configure revision 1fb744b4
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xf86-video-glint 1.2.8.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/glint>.
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&component=Driver/glint
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-glint'
573PACKAGE_TARNAME='xf86-video-glint'
574PACKAGE_VERSION='1.2.8'
575PACKAGE_STRING='xf86-video-glint 1.2.8'
576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/glint'
577PACKAGE_URL=''
578
579ac_unique_file="Makefile.am"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
583#ifdef HAVE_SYS_TYPES_H
584# include <sys/types.h>
585#endif
586#ifdef HAVE_SYS_STAT_H
587# include <sys/stat.h>
588#endif
589#ifdef STDC_HEADERS
590# include <stdlib.h>
591# include <stddef.h>
592#else
593# ifdef HAVE_STDLIB_H
594#  include <stdlib.h>
595# endif
596#endif
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599#  include <memory.h>
600# endif
601# include <string.h>
602#endif
603#ifdef HAVE_STRINGS_H
604# include <strings.h>
605#endif
606#ifdef HAVE_INTTYPES_H
607# include <inttypes.h>
608#endif
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
613# include <unistd.h>
614#endif"
615
616ac_subst_vars='am__EXEEXT_FALSE
617am__EXEEXT_TRUE
618LTLIBOBJS
619LIBOBJS
620DRIVER_NAME
621moduledir
622XAA_FALSE
623XAA_TRUE
624XSERVER_LIBPCIACCESS_FALSE
625XSERVER_LIBPCIACCESS_TRUE
626PCIACCESS_LIBS
627PCIACCESS_CFLAGS
628HAVE_XEXTPROTO_71_FALSE
629HAVE_XEXTPROTO_71_TRUE
630XEXT_LIBS
631XEXT_CFLAGS
632XORG_LIBS
633XORG_CFLAGS
634OTOOL64
635OTOOL
636LIPO
637NMEDIT
638DSYMUTIL
639MANIFEST_TOOL
640RANLIB
641ac_ct_AR
642AR
643DLLTOOL
644OBJDUMP
645LN_S
646NM
647ac_ct_DUMPBIN
648DUMPBIN
649LD
650FGREP
651LIBTOOL
652AM_BACKSLASH
653AM_DEFAULT_VERBOSITY
654AM_DEFAULT_V
655AM_V
656MAN_SUBSTS
657XORG_MAN_PAGE
658ADMIN_MAN_DIR
659DRIVER_MAN_DIR
660MISC_MAN_DIR
661FILE_MAN_DIR
662LIB_MAN_DIR
663APP_MAN_DIR
664ADMIN_MAN_SUFFIX
665DRIVER_MAN_SUFFIX
666MISC_MAN_SUFFIX
667FILE_MAN_SUFFIX
668LIB_MAN_SUFFIX
669APP_MAN_SUFFIX
670SED
671host_os
672host_vendor
673host_cpu
674host
675build_os
676build_vendor
677build_cpu
678build
679INSTALL_CMD
680PKG_CONFIG_LIBDIR
681PKG_CONFIG_PATH
682PKG_CONFIG
683CHANGELOG_CMD
684STRICT_CFLAGS
685CWARNFLAGS
686BASE_CFLAGS
687EGREP
688GREP
689CPP
690am__fastdepCC_FALSE
691am__fastdepCC_TRUE
692CCDEPMODE
693am__nodep
694AMDEPBACKSLASH
695AMDEP_FALSE
696AMDEP_TRUE
697am__quote
698am__include
699DEPDIR
700OBJEXT
701EXEEXT
702ac_ct_CC
703CPPFLAGS
704LDFLAGS
705CFLAGS
706CC
707MAINT
708MAINTAINER_MODE_FALSE
709MAINTAINER_MODE_TRUE
710am__untar
711am__tar
712AMTAR
713am__leading_dot
714SET_MAKE
715AWK
716mkdir_p
717MKDIR_P
718INSTALL_STRIP_PROGRAM
719STRIP
720install_sh
721MAKEINFO
722AUTOHEADER
723AUTOMAKE
724AUTOCONF
725ACLOCAL
726VERSION
727PACKAGE
728CYGPATH_W
729am__isrc
730INSTALL_DATA
731INSTALL_SCRIPT
732INSTALL_PROGRAM
733target_alias
734host_alias
735build_alias
736LIBS
737ECHO_T
738ECHO_N
739ECHO_C
740DEFS
741mandir
742localedir
743libdir
744psdir
745pdfdir
746dvidir
747htmldir
748infodir
749docdir
750oldincludedir
751includedir
752localstatedir
753sharedstatedir
754sysconfdir
755datadir
756datarootdir
757libexecdir
758sbindir
759bindir
760program_transform_name
761prefix
762exec_prefix
763PACKAGE_URL
764PACKAGE_BUGREPORT
765PACKAGE_STRING
766PACKAGE_VERSION
767PACKAGE_TARNAME
768PACKAGE_NAME
769PATH_SEPARATOR
770SHELL'
771ac_subst_files=''
772ac_user_opts='
773enable_option_checking
774enable_maintainer_mode
775enable_dependency_tracking
776enable_selective_werror
777enable_strict_compilation
778enable_silent_rules
779enable_static
780enable_shared
781with_pic
782enable_fast_install
783with_gnu_ld
784with_sysroot
785enable_libtool_lock
786with_xorg_module_dir
787enable_xaa
788'
789      ac_precious_vars='build_alias
790host_alias
791target_alias
792CC
793CFLAGS
794LDFLAGS
795LIBS
796CPPFLAGS
797CPP
798PKG_CONFIG
799PKG_CONFIG_PATH
800PKG_CONFIG_LIBDIR
801XORG_CFLAGS
802XORG_LIBS
803XEXT_CFLAGS
804XEXT_LIBS
805PCIACCESS_CFLAGS
806PCIACCESS_LIBS'
807
808
809# Initialize some variables set by options.
810ac_init_help=
811ac_init_version=false
812ac_unrecognized_opts=
813ac_unrecognized_sep=
814# The variables have the same names as the options, with
815# dashes changed to underlines.
816cache_file=/dev/null
817exec_prefix=NONE
818no_create=
819no_recursion=
820prefix=NONE
821program_prefix=NONE
822program_suffix=NONE
823program_transform_name=s,x,x,
824silent=
825site=
826srcdir=
827verbose=
828x_includes=NONE
829x_libraries=NONE
830
831# Installation directory options.
832# These are left unexpanded so users can "make install exec_prefix=/foo"
833# and all the variables that are supposed to be based on exec_prefix
834# by default will actually change.
835# Use braces instead of parens because sh, perl, etc. also accept them.
836# (The list follows the same order as the GNU Coding Standards.)
837bindir='${exec_prefix}/bin'
838sbindir='${exec_prefix}/sbin'
839libexecdir='${exec_prefix}/libexec'
840datarootdir='${prefix}/share'
841datadir='${datarootdir}'
842sysconfdir='${prefix}/etc'
843sharedstatedir='${prefix}/com'
844localstatedir='${prefix}/var'
845includedir='${prefix}/include'
846oldincludedir='/usr/include'
847docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848infodir='${datarootdir}/info'
849htmldir='${docdir}'
850dvidir='${docdir}'
851pdfdir='${docdir}'
852psdir='${docdir}'
853libdir='${exec_prefix}/lib'
854localedir='${datarootdir}/locale'
855mandir='${datarootdir}/man'
856
857ac_prev=
858ac_dashdash=
859for ac_option
860do
861  # If the previous option needs an argument, assign it.
862  if test -n "$ac_prev"; then
863    eval $ac_prev=\$ac_option
864    ac_prev=
865    continue
866  fi
867
868  case $ac_option in
869  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870  *=)   ac_optarg= ;;
871  *)    ac_optarg=yes ;;
872  esac
873
874  # Accept the important Cygnus configure options, so we can diagnose typos.
875
876  case $ac_dashdash$ac_option in
877  --)
878    ac_dashdash=yes ;;
879
880  -bindir | --bindir | --bindi | --bind | --bin | --bi)
881    ac_prev=bindir ;;
882  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883    bindir=$ac_optarg ;;
884
885  -build | --build | --buil | --bui | --bu)
886    ac_prev=build_alias ;;
887  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888    build_alias=$ac_optarg ;;
889
890  -cache-file | --cache-file | --cache-fil | --cache-fi \
891  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892    ac_prev=cache_file ;;
893  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895    cache_file=$ac_optarg ;;
896
897  --config-cache | -C)
898    cache_file=config.cache ;;
899
900  -datadir | --datadir | --datadi | --datad)
901    ac_prev=datadir ;;
902  -datadir=* | --datadir=* | --datadi=* | --datad=*)
903    datadir=$ac_optarg ;;
904
905  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906  | --dataroo | --dataro | --datar)
907    ac_prev=datarootdir ;;
908  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910    datarootdir=$ac_optarg ;;
911
912  -disable-* | --disable-*)
913    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914    # Reject names that are not valid shell variable names.
915    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916      as_fn_error $? "invalid feature name: $ac_useropt"
917    ac_useropt_orig=$ac_useropt
918    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919    case $ac_user_opts in
920      *"
921"enable_$ac_useropt"
922"*) ;;
923      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924	 ac_unrecognized_sep=', ';;
925    esac
926    eval enable_$ac_useropt=no ;;
927
928  -docdir | --docdir | --docdi | --doc | --do)
929    ac_prev=docdir ;;
930  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931    docdir=$ac_optarg ;;
932
933  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934    ac_prev=dvidir ;;
935  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936    dvidir=$ac_optarg ;;
937
938  -enable-* | --enable-*)
939    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940    # Reject names that are not valid shell variable names.
941    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942      as_fn_error $? "invalid feature name: $ac_useropt"
943    ac_useropt_orig=$ac_useropt
944    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945    case $ac_user_opts in
946      *"
947"enable_$ac_useropt"
948"*) ;;
949      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950	 ac_unrecognized_sep=', ';;
951    esac
952    eval enable_$ac_useropt=\$ac_optarg ;;
953
954  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956  | --exec | --exe | --ex)
957    ac_prev=exec_prefix ;;
958  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960  | --exec=* | --exe=* | --ex=*)
961    exec_prefix=$ac_optarg ;;
962
963  -gas | --gas | --ga | --g)
964    # Obsolete; use --with-gas.
965    with_gas=yes ;;
966
967  -help | --help | --hel | --he | -h)
968    ac_init_help=long ;;
969  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970    ac_init_help=recursive ;;
971  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972    ac_init_help=short ;;
973
974  -host | --host | --hos | --ho)
975    ac_prev=host_alias ;;
976  -host=* | --host=* | --hos=* | --ho=*)
977    host_alias=$ac_optarg ;;
978
979  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980    ac_prev=htmldir ;;
981  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982  | --ht=*)
983    htmldir=$ac_optarg ;;
984
985  -includedir | --includedir | --includedi | --included | --include \
986  | --includ | --inclu | --incl | --inc)
987    ac_prev=includedir ;;
988  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989  | --includ=* | --inclu=* | --incl=* | --inc=*)
990    includedir=$ac_optarg ;;
991
992  -infodir | --infodir | --infodi | --infod | --info | --inf)
993    ac_prev=infodir ;;
994  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995    infodir=$ac_optarg ;;
996
997  -libdir | --libdir | --libdi | --libd)
998    ac_prev=libdir ;;
999  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000    libdir=$ac_optarg ;;
1001
1002  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003  | --libexe | --libex | --libe)
1004    ac_prev=libexecdir ;;
1005  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006  | --libexe=* | --libex=* | --libe=*)
1007    libexecdir=$ac_optarg ;;
1008
1009  -localedir | --localedir | --localedi | --localed | --locale)
1010    ac_prev=localedir ;;
1011  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012    localedir=$ac_optarg ;;
1013
1014  -localstatedir | --localstatedir | --localstatedi | --localstated \
1015  | --localstate | --localstat | --localsta | --localst | --locals)
1016    ac_prev=localstatedir ;;
1017  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019    localstatedir=$ac_optarg ;;
1020
1021  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022    ac_prev=mandir ;;
1023  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024    mandir=$ac_optarg ;;
1025
1026  -nfp | --nfp | --nf)
1027    # Obsolete; use --without-fp.
1028    with_fp=no ;;
1029
1030  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031  | --no-cr | --no-c | -n)
1032    no_create=yes ;;
1033
1034  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036    no_recursion=yes ;;
1037
1038  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040  | --oldin | --oldi | --old | --ol | --o)
1041    ac_prev=oldincludedir ;;
1042  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045    oldincludedir=$ac_optarg ;;
1046
1047  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048    ac_prev=prefix ;;
1049  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050    prefix=$ac_optarg ;;
1051
1052  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053  | --program-pre | --program-pr | --program-p)
1054    ac_prev=program_prefix ;;
1055  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057    program_prefix=$ac_optarg ;;
1058
1059  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060  | --program-suf | --program-su | --program-s)
1061    ac_prev=program_suffix ;;
1062  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064    program_suffix=$ac_optarg ;;
1065
1066  -program-transform-name | --program-transform-name \
1067  | --program-transform-nam | --program-transform-na \
1068  | --program-transform-n | --program-transform- \
1069  | --program-transform | --program-transfor \
1070  | --program-transfo | --program-transf \
1071  | --program-trans | --program-tran \
1072  | --progr-tra | --program-tr | --program-t)
1073    ac_prev=program_transform_name ;;
1074  -program-transform-name=* | --program-transform-name=* \
1075  | --program-transform-nam=* | --program-transform-na=* \
1076  | --program-transform-n=* | --program-transform-=* \
1077  | --program-transform=* | --program-transfor=* \
1078  | --program-transfo=* | --program-transf=* \
1079  | --program-trans=* | --program-tran=* \
1080  | --progr-tra=* | --program-tr=* | --program-t=*)
1081    program_transform_name=$ac_optarg ;;
1082
1083  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084    ac_prev=pdfdir ;;
1085  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086    pdfdir=$ac_optarg ;;
1087
1088  -psdir | --psdir | --psdi | --psd | --ps)
1089    ac_prev=psdir ;;
1090  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091    psdir=$ac_optarg ;;
1092
1093  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094  | -silent | --silent | --silen | --sile | --sil)
1095    silent=yes ;;
1096
1097  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098    ac_prev=sbindir ;;
1099  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100  | --sbi=* | --sb=*)
1101    sbindir=$ac_optarg ;;
1102
1103  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105  | --sharedst | --shareds | --shared | --share | --shar \
1106  | --sha | --sh)
1107    ac_prev=sharedstatedir ;;
1108  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111  | --sha=* | --sh=*)
1112    sharedstatedir=$ac_optarg ;;
1113
1114  -site | --site | --sit)
1115    ac_prev=site ;;
1116  -site=* | --site=* | --sit=*)
1117    site=$ac_optarg ;;
1118
1119  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120    ac_prev=srcdir ;;
1121  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122    srcdir=$ac_optarg ;;
1123
1124  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125  | --syscon | --sysco | --sysc | --sys | --sy)
1126    ac_prev=sysconfdir ;;
1127  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129    sysconfdir=$ac_optarg ;;
1130
1131  -target | --target | --targe | --targ | --tar | --ta | --t)
1132    ac_prev=target_alias ;;
1133  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134    target_alias=$ac_optarg ;;
1135
1136  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137    verbose=yes ;;
1138
1139  -version | --version | --versio | --versi | --vers | -V)
1140    ac_init_version=: ;;
1141
1142  -with-* | --with-*)
1143    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144    # Reject names that are not valid shell variable names.
1145    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146      as_fn_error $? "invalid package name: $ac_useropt"
1147    ac_useropt_orig=$ac_useropt
1148    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149    case $ac_user_opts in
1150      *"
1151"with_$ac_useropt"
1152"*) ;;
1153      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154	 ac_unrecognized_sep=', ';;
1155    esac
1156    eval with_$ac_useropt=\$ac_optarg ;;
1157
1158  -without-* | --without-*)
1159    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160    # Reject names that are not valid shell variable names.
1161    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162      as_fn_error $? "invalid package name: $ac_useropt"
1163    ac_useropt_orig=$ac_useropt
1164    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165    case $ac_user_opts in
1166      *"
1167"with_$ac_useropt"
1168"*) ;;
1169      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170	 ac_unrecognized_sep=', ';;
1171    esac
1172    eval with_$ac_useropt=no ;;
1173
1174  --x)
1175    # Obsolete; use --with-x.
1176    with_x=yes ;;
1177
1178  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179  | --x-incl | --x-inc | --x-in | --x-i)
1180    ac_prev=x_includes ;;
1181  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183    x_includes=$ac_optarg ;;
1184
1185  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187    ac_prev=x_libraries ;;
1188  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190    x_libraries=$ac_optarg ;;
1191
1192  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193Try \`$0 --help' for more information"
1194    ;;
1195
1196  *=*)
1197    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198    # Reject names that are not valid shell variable names.
1199    case $ac_envvar in #(
1200      '' | [0-9]* | *[!_$as_cr_alnum]* )
1201      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202    esac
1203    eval $ac_envvar=\$ac_optarg
1204    export $ac_envvar ;;
1205
1206  *)
1207    # FIXME: should be removed in autoconf 3.0.
1208    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212    ;;
1213
1214  esac
1215done
1216
1217if test -n "$ac_prev"; then
1218  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219  as_fn_error $? "missing argument to $ac_option"
1220fi
1221
1222if test -n "$ac_unrecognized_opts"; then
1223  case $enable_option_checking in
1224    no) ;;
1225    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227  esac
1228fi
1229
1230# Check all directory arguments for consistency.
1231for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232		datadir sysconfdir sharedstatedir localstatedir includedir \
1233		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234		libdir localedir mandir
1235do
1236  eval ac_val=\$$ac_var
1237  # Remove trailing slashes.
1238  case $ac_val in
1239    */ )
1240      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241      eval $ac_var=\$ac_val;;
1242  esac
1243  # Be sure to have absolute directory names.
1244  case $ac_val in
1245    [\\/$]* | ?:[\\/]* )  continue;;
1246    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247  esac
1248  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249done
1250
1251# There might be people who depend on the old broken behavior: `$host'
1252# used to hold the argument of --host etc.
1253# FIXME: To remove some day.
1254build=$build_alias
1255host=$host_alias
1256target=$target_alias
1257
1258# FIXME: To remove some day.
1259if test "x$host_alias" != x; then
1260  if test "x$build_alias" = x; then
1261    cross_compiling=maybe
1262    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1263    If a cross compiler is detected then cross compile mode will be used" >&2
1264  elif test "x$build_alias" != "x$host_alias"; then
1265    cross_compiling=yes
1266  fi
1267fi
1268
1269ac_tool_prefix=
1270test -n "$host_alias" && ac_tool_prefix=$host_alias-
1271
1272test "$silent" = yes && exec 6>/dev/null
1273
1274
1275ac_pwd=`pwd` && test -n "$ac_pwd" &&
1276ac_ls_di=`ls -di .` &&
1277ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1278  as_fn_error $? "working directory cannot be determined"
1279test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1280  as_fn_error $? "pwd does not report name of working directory"
1281
1282
1283# Find the source files, if location was not specified.
1284if test -z "$srcdir"; then
1285  ac_srcdir_defaulted=yes
1286  # Try the directory containing this script, then the parent directory.
1287  ac_confdir=`$as_dirname -- "$as_myself" ||
1288$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289	 X"$as_myself" : 'X\(//\)[^/]' \| \
1290	 X"$as_myself" : 'X\(//\)$' \| \
1291	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1292$as_echo X"$as_myself" |
1293    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294	    s//\1/
1295	    q
1296	  }
1297	  /^X\(\/\/\)[^/].*/{
1298	    s//\1/
1299	    q
1300	  }
1301	  /^X\(\/\/\)$/{
1302	    s//\1/
1303	    q
1304	  }
1305	  /^X\(\/\).*/{
1306	    s//\1/
1307	    q
1308	  }
1309	  s/.*/./; q'`
1310  srcdir=$ac_confdir
1311  if test ! -r "$srcdir/$ac_unique_file"; then
1312    srcdir=..
1313  fi
1314else
1315  ac_srcdir_defaulted=no
1316fi
1317if test ! -r "$srcdir/$ac_unique_file"; then
1318  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1320fi
1321ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1322ac_abs_confdir=`(
1323	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1324	pwd)`
1325# When building in place, set srcdir=.
1326if test "$ac_abs_confdir" = "$ac_pwd"; then
1327  srcdir=.
1328fi
1329# Remove unnecessary trailing slashes from srcdir.
1330# Double slashes in file names in object file debugging info
1331# mess up M-x gdb in Emacs.
1332case $srcdir in
1333*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334esac
1335for ac_var in $ac_precious_vars; do
1336  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1337  eval ac_env_${ac_var}_value=\$${ac_var}
1338  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1339  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340done
1341
1342#
1343# Report the --help message.
1344#
1345if test "$ac_init_help" = "long"; then
1346  # Omit some internal or obsolete options to make the list less imposing.
1347  # This message is too long to be a string in the A/UX 3.1 sh.
1348  cat <<_ACEOF
1349\`configure' configures xf86-video-glint 1.2.8 to adapt to many kinds of systems.
1350
1351Usage: $0 [OPTION]... [VAR=VALUE]...
1352
1353To assign environment variables (e.g., CC, CFLAGS...), specify them as
1354VAR=VALUE.  See below for descriptions of some of the useful variables.
1355
1356Defaults for the options are specified in brackets.
1357
1358Configuration:
1359  -h, --help              display this help and exit
1360      --help=short        display options specific to this package
1361      --help=recursive    display the short help of all the included packages
1362  -V, --version           display version information and exit
1363  -q, --quiet, --silent   do not print \`checking ...' messages
1364      --cache-file=FILE   cache test results in FILE [disabled]
1365  -C, --config-cache      alias for \`--cache-file=config.cache'
1366  -n, --no-create         do not create output files
1367      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1368
1369Installation directories:
1370  --prefix=PREFIX         install architecture-independent files in PREFIX
1371                          [$ac_default_prefix]
1372  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1373                          [PREFIX]
1374
1375By default, \`make install' will install all the files in
1376\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1377an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1378for instance \`--prefix=\$HOME'.
1379
1380For better control, use the options below.
1381
1382Fine tuning of the installation directories:
1383  --bindir=DIR            user executables [EPREFIX/bin]
1384  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1385  --libexecdir=DIR        program executables [EPREFIX/libexec]
1386  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1387  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1388  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1389  --libdir=DIR            object code libraries [EPREFIX/lib]
1390  --includedir=DIR        C header files [PREFIX/include]
1391  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1392  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1393  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1394  --infodir=DIR           info documentation [DATAROOTDIR/info]
1395  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1396  --mandir=DIR            man documentation [DATAROOTDIR/man]
1397  --docdir=DIR            documentation root
1398                          [DATAROOTDIR/doc/xf86-video-glint]
1399  --htmldir=DIR           html documentation [DOCDIR]
1400  --dvidir=DIR            dvi documentation [DOCDIR]
1401  --pdfdir=DIR            pdf documentation [DOCDIR]
1402  --psdir=DIR             ps documentation [DOCDIR]
1403_ACEOF
1404
1405  cat <<\_ACEOF
1406
1407Program names:
1408  --program-prefix=PREFIX            prepend PREFIX to installed program names
1409  --program-suffix=SUFFIX            append SUFFIX to installed program names
1410  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1411
1412System types:
1413  --build=BUILD     configure for building on BUILD [guessed]
1414  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1415_ACEOF
1416fi
1417
1418if test -n "$ac_init_help"; then
1419  case $ac_init_help in
1420     short | recursive ) echo "Configuration of xf86-video-glint 1.2.8:";;
1421   esac
1422  cat <<\_ACEOF
1423
1424Optional Features:
1425  --disable-option-checking  ignore unrecognized --enable/--with options
1426  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1427  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1428  --enable-maintainer-mode  enable make rules and dependencies not useful
1429			  (and sometimes confusing) to the casual installer
1430  --disable-dependency-tracking  speeds up one-time build
1431  --enable-dependency-tracking   do not reject slow dependency extractors
1432  --disable-selective-werror
1433                          Turn off selective compiler errors. (default:
1434                          enabled)
1435  --enable-strict-compilation
1436                          Enable all warnings from compiler and make them
1437                          errors (default: disabled)
1438  --enable-silent-rules          less verbose build output (undo: `make V=1')
1439  --disable-silent-rules         verbose build output (undo: `make V=0')
1440  --enable-static[=PKGS]  build static libraries [default=no]
1441  --enable-shared[=PKGS]  build shared libraries [default=yes]
1442  --enable-fast-install[=PKGS]
1443                          optimize for fast installation [default=yes]
1444  --disable-libtool-lock  avoid locking (might break parallel builds)
1445  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1446                          [default=auto]
1447
1448Optional Packages:
1449  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1450  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1451  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1452                          both]
1453  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1454  --with-sysroot=DIR Search for dependent libraries within DIR
1455                        (or the compiler's sysroot if not specified).
1456  --with-xorg-module-dir=DIR
1457                          Default xorg module directory
1458                          [[default=$libdir/xorg/modules]]
1459
1460Some influential environment variables:
1461  CC          C compiler command
1462  CFLAGS      C compiler flags
1463  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1464              nonstandard directory <lib dir>
1465  LIBS        libraries to pass to the linker, e.g. -l<library>
1466  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1467              you have headers in a nonstandard directory <include dir>
1468  CPP         C preprocessor
1469  PKG_CONFIG  path to pkg-config utility
1470  PKG_CONFIG_PATH
1471              directories to add to pkg-config's search path
1472  PKG_CONFIG_LIBDIR
1473              path overriding pkg-config's built-in search path
1474  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1475  XORG_LIBS   linker flags for XORG, overriding pkg-config
1476  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1477  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1478  PCIACCESS_CFLAGS
1479              C compiler flags for PCIACCESS, overriding pkg-config
1480  PCIACCESS_LIBS
1481              linker flags for PCIACCESS, overriding pkg-config
1482
1483Use these variables to override the choices made by `configure' or to help
1484it to find libraries and programs with nonstandard names/locations.
1485
1486Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/glint>.
1487_ACEOF
1488ac_status=$?
1489fi
1490
1491if test "$ac_init_help" = "recursive"; then
1492  # If there are subdirs, report their specific --help.
1493  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494    test -d "$ac_dir" ||
1495      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496      continue
1497    ac_builddir=.
1498
1499case "$ac_dir" in
1500.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501*)
1502  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1503  # A ".." for each directory in $ac_dir_suffix.
1504  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505  case $ac_top_builddir_sub in
1506  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508  esac ;;
1509esac
1510ac_abs_top_builddir=$ac_pwd
1511ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512# for backward compatibility:
1513ac_top_builddir=$ac_top_build_prefix
1514
1515case $srcdir in
1516  .)  # We are building in place.
1517    ac_srcdir=.
1518    ac_top_srcdir=$ac_top_builddir_sub
1519    ac_abs_top_srcdir=$ac_pwd ;;
1520  [\\/]* | ?:[\\/]* )  # Absolute name.
1521    ac_srcdir=$srcdir$ac_dir_suffix;
1522    ac_top_srcdir=$srcdir
1523    ac_abs_top_srcdir=$srcdir ;;
1524  *) # Relative name.
1525    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526    ac_top_srcdir=$ac_top_build_prefix$srcdir
1527    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528esac
1529ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530
1531    cd "$ac_dir" || { ac_status=$?; continue; }
1532    # Check for guested configure.
1533    if test -f "$ac_srcdir/configure.gnu"; then
1534      echo &&
1535      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1536    elif test -f "$ac_srcdir/configure"; then
1537      echo &&
1538      $SHELL "$ac_srcdir/configure" --help=recursive
1539    else
1540      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541    fi || ac_status=$?
1542    cd "$ac_pwd" || { ac_status=$?; break; }
1543  done
1544fi
1545
1546test -n "$ac_init_help" && exit $ac_status
1547if $ac_init_version; then
1548  cat <<\_ACEOF
1549xf86-video-glint configure 1.2.8
1550generated by GNU Autoconf 2.68
1551
1552Copyright (C) 2010 Free Software Foundation, Inc.
1553This configure script is free software; the Free Software Foundation
1554gives unlimited permission to copy, distribute and modify it.
1555_ACEOF
1556  exit
1557fi
1558
1559## ------------------------ ##
1560## Autoconf initialization. ##
1561## ------------------------ ##
1562
1563# ac_fn_c_try_compile LINENO
1564# --------------------------
1565# Try to compile conftest.$ac_ext, and return whether this succeeded.
1566ac_fn_c_try_compile ()
1567{
1568  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1569  rm -f conftest.$ac_objext
1570  if { { ac_try="$ac_compile"
1571case "(($ac_try" in
1572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1573  *) ac_try_echo=$ac_try;;
1574esac
1575eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1576$as_echo "$ac_try_echo"; } >&5
1577  (eval "$ac_compile") 2>conftest.err
1578  ac_status=$?
1579  if test -s conftest.err; then
1580    grep -v '^ *+' conftest.err >conftest.er1
1581    cat conftest.er1 >&5
1582    mv -f conftest.er1 conftest.err
1583  fi
1584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1585  test $ac_status = 0; } && {
1586	 test -z "$ac_c_werror_flag" ||
1587	 test ! -s conftest.err
1588       } && test -s conftest.$ac_objext; then :
1589  ac_retval=0
1590else
1591  $as_echo "$as_me: failed program was:" >&5
1592sed 's/^/| /' conftest.$ac_ext >&5
1593
1594	ac_retval=1
1595fi
1596  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1597  as_fn_set_status $ac_retval
1598
1599} # ac_fn_c_try_compile
1600
1601# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1602# ---------------------------------------------
1603# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1604# accordingly.
1605ac_fn_c_check_decl ()
1606{
1607  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608  as_decl_name=`echo $2|sed 's/ *(.*//'`
1609  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1610  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1611$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1612if eval \${$3+:} false; then :
1613  $as_echo_n "(cached) " >&6
1614else
1615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1616/* end confdefs.h.  */
1617$4
1618int
1619main ()
1620{
1621#ifndef $as_decl_name
1622#ifdef __cplusplus
1623  (void) $as_decl_use;
1624#else
1625  (void) $as_decl_name;
1626#endif
1627#endif
1628
1629  ;
1630  return 0;
1631}
1632_ACEOF
1633if ac_fn_c_try_compile "$LINENO"; then :
1634  eval "$3=yes"
1635else
1636  eval "$3=no"
1637fi
1638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1639fi
1640eval ac_res=\$$3
1641	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1642$as_echo "$ac_res" >&6; }
1643  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644
1645} # ac_fn_c_check_decl
1646
1647# ac_fn_c_try_cpp LINENO
1648# ----------------------
1649# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1650ac_fn_c_try_cpp ()
1651{
1652  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653  if { { ac_try="$ac_cpp conftest.$ac_ext"
1654case "(($ac_try" in
1655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656  *) ac_try_echo=$ac_try;;
1657esac
1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659$as_echo "$ac_try_echo"; } >&5
1660  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1661  ac_status=$?
1662  if test -s conftest.err; then
1663    grep -v '^ *+' conftest.err >conftest.er1
1664    cat conftest.er1 >&5
1665    mv -f conftest.er1 conftest.err
1666  fi
1667  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668  test $ac_status = 0; } > conftest.i && {
1669	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1670	 test ! -s conftest.err
1671       }; then :
1672  ac_retval=0
1673else
1674  $as_echo "$as_me: failed program was:" >&5
1675sed 's/^/| /' conftest.$ac_ext >&5
1676
1677    ac_retval=1
1678fi
1679  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680  as_fn_set_status $ac_retval
1681
1682} # ac_fn_c_try_cpp
1683
1684# ac_fn_c_try_run LINENO
1685# ----------------------
1686# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1687# that executables *can* be run.
1688ac_fn_c_try_run ()
1689{
1690  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691  if { { ac_try="$ac_link"
1692case "(($ac_try" in
1693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694  *) ac_try_echo=$ac_try;;
1695esac
1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697$as_echo "$ac_try_echo"; } >&5
1698  (eval "$ac_link") 2>&5
1699  ac_status=$?
1700  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1702  { { case "(($ac_try" in
1703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704  *) ac_try_echo=$ac_try;;
1705esac
1706eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707$as_echo "$ac_try_echo"; } >&5
1708  (eval "$ac_try") 2>&5
1709  ac_status=$?
1710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711  test $ac_status = 0; }; }; then :
1712  ac_retval=0
1713else
1714  $as_echo "$as_me: program exited with status $ac_status" >&5
1715       $as_echo "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718       ac_retval=$ac_status
1719fi
1720  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722  as_fn_set_status $ac_retval
1723
1724} # ac_fn_c_try_run
1725
1726# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1727# -------------------------------------------------------
1728# Tests whether HEADER exists and can be compiled using the include files in
1729# INCLUDES, setting the cache variable VAR accordingly.
1730ac_fn_c_check_header_compile ()
1731{
1732  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734$as_echo_n "checking for $2... " >&6; }
1735if eval \${$3+:} false; then :
1736  $as_echo_n "(cached) " >&6
1737else
1738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739/* end confdefs.h.  */
1740$4
1741#include <$2>
1742_ACEOF
1743if ac_fn_c_try_compile "$LINENO"; then :
1744  eval "$3=yes"
1745else
1746  eval "$3=no"
1747fi
1748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1749fi
1750eval ac_res=\$$3
1751	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752$as_echo "$ac_res" >&6; }
1753  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754
1755} # ac_fn_c_check_header_compile
1756
1757# ac_fn_c_try_link LINENO
1758# -----------------------
1759# Try to link conftest.$ac_ext, and return whether this succeeded.
1760ac_fn_c_try_link ()
1761{
1762  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763  rm -f conftest.$ac_objext conftest$ac_exeext
1764  if { { ac_try="$ac_link"
1765case "(($ac_try" in
1766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767  *) ac_try_echo=$ac_try;;
1768esac
1769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770$as_echo "$ac_try_echo"; } >&5
1771  (eval "$ac_link") 2>conftest.err
1772  ac_status=$?
1773  if test -s conftest.err; then
1774    grep -v '^ *+' conftest.err >conftest.er1
1775    cat conftest.er1 >&5
1776    mv -f conftest.er1 conftest.err
1777  fi
1778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779  test $ac_status = 0; } && {
1780	 test -z "$ac_c_werror_flag" ||
1781	 test ! -s conftest.err
1782       } && test -s conftest$ac_exeext && {
1783	 test "$cross_compiling" = yes ||
1784	 $as_test_x conftest$ac_exeext
1785       }; then :
1786  ac_retval=0
1787else
1788  $as_echo "$as_me: failed program was:" >&5
1789sed 's/^/| /' conftest.$ac_ext >&5
1790
1791	ac_retval=1
1792fi
1793  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1794  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1795  # interfere with the next link command; also delete a directory that is
1796  # left behind by Apple's compiler.  We do this before executing the actions.
1797  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1798  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799  as_fn_set_status $ac_retval
1800
1801} # ac_fn_c_try_link
1802
1803# ac_fn_c_check_func LINENO FUNC VAR
1804# ----------------------------------
1805# Tests whether FUNC exists, setting the cache variable VAR accordingly
1806ac_fn_c_check_func ()
1807{
1808  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810$as_echo_n "checking for $2... " >&6; }
1811if eval \${$3+:} false; then :
1812  $as_echo_n "(cached) " >&6
1813else
1814  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815/* end confdefs.h.  */
1816/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1817   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1818#define $2 innocuous_$2
1819
1820/* System header to define __stub macros and hopefully few prototypes,
1821    which can conflict with char $2 (); below.
1822    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1823    <limits.h> exists even on freestanding compilers.  */
1824
1825#ifdef __STDC__
1826# include <limits.h>
1827#else
1828# include <assert.h>
1829#endif
1830
1831#undef $2
1832
1833/* Override any GCC internal prototype to avoid an error.
1834   Use char because int might match the return type of a GCC
1835   builtin and then its argument prototype would still apply.  */
1836#ifdef __cplusplus
1837extern "C"
1838#endif
1839char $2 ();
1840/* The GNU C library defines this for functions which it implements
1841    to always fail with ENOSYS.  Some functions are actually named
1842    something starting with __ and the normal name is an alias.  */
1843#if defined __stub_$2 || defined __stub___$2
1844choke me
1845#endif
1846
1847int
1848main ()
1849{
1850return $2 ();
1851  ;
1852  return 0;
1853}
1854_ACEOF
1855if ac_fn_c_try_link "$LINENO"; then :
1856  eval "$3=yes"
1857else
1858  eval "$3=no"
1859fi
1860rm -f core conftest.err conftest.$ac_objext \
1861    conftest$ac_exeext conftest.$ac_ext
1862fi
1863eval ac_res=\$$3
1864	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865$as_echo "$ac_res" >&6; }
1866  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867
1868} # ac_fn_c_check_func
1869
1870# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1871# -------------------------------------------------------
1872# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1873# the include files in INCLUDES and setting the cache variable VAR
1874# accordingly.
1875ac_fn_c_check_header_mongrel ()
1876{
1877  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878  if eval \${$3+:} false; then :
1879  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880$as_echo_n "checking for $2... " >&6; }
1881if eval \${$3+:} false; then :
1882  $as_echo_n "(cached) " >&6
1883fi
1884eval ac_res=\$$3
1885	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886$as_echo "$ac_res" >&6; }
1887else
1888  # Is the header compilable?
1889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1890$as_echo_n "checking $2 usability... " >&6; }
1891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892/* end confdefs.h.  */
1893$4
1894#include <$2>
1895_ACEOF
1896if ac_fn_c_try_compile "$LINENO"; then :
1897  ac_header_compiler=yes
1898else
1899  ac_header_compiler=no
1900fi
1901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1903$as_echo "$ac_header_compiler" >&6; }
1904
1905# Is the header present?
1906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1907$as_echo_n "checking $2 presence... " >&6; }
1908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909/* end confdefs.h.  */
1910#include <$2>
1911_ACEOF
1912if ac_fn_c_try_cpp "$LINENO"; then :
1913  ac_header_preproc=yes
1914else
1915  ac_header_preproc=no
1916fi
1917rm -f conftest.err conftest.i conftest.$ac_ext
1918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1919$as_echo "$ac_header_preproc" >&6; }
1920
1921# So?  What about this header?
1922case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1923  yes:no: )
1924    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1925$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1926    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1927$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1928    ;;
1929  no:yes:* )
1930    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1931$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1932    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1933$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1934    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1935$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1936    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1937$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1938    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1939$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1940( $as_echo "## --------------------------------------------------------------------------------------------- ##
1941## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/glint ##
1942## --------------------------------------------------------------------------------------------- ##"
1943     ) | sed "s/^/$as_me: WARNING:     /" >&2
1944    ;;
1945esac
1946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947$as_echo_n "checking for $2... " >&6; }
1948if eval \${$3+:} false; then :
1949  $as_echo_n "(cached) " >&6
1950else
1951  eval "$3=\$ac_header_compiler"
1952fi
1953eval ac_res=\$$3
1954	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955$as_echo "$ac_res" >&6; }
1956fi
1957  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958
1959} # ac_fn_c_check_header_mongrel
1960cat >config.log <<_ACEOF
1961This file contains any messages produced by compilers while
1962running configure, to aid debugging if configure makes a mistake.
1963
1964It was created by xf86-video-glint $as_me 1.2.8, which was
1965generated by GNU Autoconf 2.68.  Invocation command line was
1966
1967  $ $0 $@
1968
1969_ACEOF
1970exec 5>>config.log
1971{
1972cat <<_ASUNAME
1973## --------- ##
1974## Platform. ##
1975## --------- ##
1976
1977hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1978uname -m = `(uname -m) 2>/dev/null || echo unknown`
1979uname -r = `(uname -r) 2>/dev/null || echo unknown`
1980uname -s = `(uname -s) 2>/dev/null || echo unknown`
1981uname -v = `(uname -v) 2>/dev/null || echo unknown`
1982
1983/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1984/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1985
1986/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1987/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1988/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1989/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1990/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1991/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1992/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1993
1994_ASUNAME
1995
1996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997for as_dir in $PATH
1998do
1999  IFS=$as_save_IFS
2000  test -z "$as_dir" && as_dir=.
2001    $as_echo "PATH: $as_dir"
2002  done
2003IFS=$as_save_IFS
2004
2005} >&5
2006
2007cat >&5 <<_ACEOF
2008
2009
2010## ----------- ##
2011## Core tests. ##
2012## ----------- ##
2013
2014_ACEOF
2015
2016
2017# Keep a trace of the command line.
2018# Strip out --no-create and --no-recursion so they do not pile up.
2019# Strip out --silent because we don't want to record it for future runs.
2020# Also quote any args containing shell meta-characters.
2021# Make two passes to allow for proper duplicate-argument suppression.
2022ac_configure_args=
2023ac_configure_args0=
2024ac_configure_args1=
2025ac_must_keep_next=false
2026for ac_pass in 1 2
2027do
2028  for ac_arg
2029  do
2030    case $ac_arg in
2031    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2032    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2033    | -silent | --silent | --silen | --sile | --sil)
2034      continue ;;
2035    *\'*)
2036      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2037    esac
2038    case $ac_pass in
2039    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2040    2)
2041      as_fn_append ac_configure_args1 " '$ac_arg'"
2042      if test $ac_must_keep_next = true; then
2043	ac_must_keep_next=false # Got value, back to normal.
2044      else
2045	case $ac_arg in
2046	  *=* | --config-cache | -C | -disable-* | --disable-* \
2047	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2048	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2049	  | -with-* | --with-* | -without-* | --without-* | --x)
2050	    case "$ac_configure_args0 " in
2051	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2052	    esac
2053	    ;;
2054	  -* ) ac_must_keep_next=true ;;
2055	esac
2056      fi
2057      as_fn_append ac_configure_args " '$ac_arg'"
2058      ;;
2059    esac
2060  done
2061done
2062{ ac_configure_args0=; unset ac_configure_args0;}
2063{ ac_configure_args1=; unset ac_configure_args1;}
2064
2065# When interrupted or exit'd, cleanup temporary files, and complete
2066# config.log.  We remove comments because anyway the quotes in there
2067# would cause problems or look ugly.
2068# WARNING: Use '\'' to represent an apostrophe within the trap.
2069# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2070trap 'exit_status=$?
2071  # Save into config.log some information that might help in debugging.
2072  {
2073    echo
2074
2075    $as_echo "## ---------------- ##
2076## Cache variables. ##
2077## ---------------- ##"
2078    echo
2079    # The following way of writing the cache mishandles newlines in values,
2080(
2081  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2082    eval ac_val=\$$ac_var
2083    case $ac_val in #(
2084    *${as_nl}*)
2085      case $ac_var in #(
2086      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2087$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2088      esac
2089      case $ac_var in #(
2090      _ | IFS | as_nl) ;; #(
2091      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2092      *) { eval $ac_var=; unset $ac_var;} ;;
2093      esac ;;
2094    esac
2095  done
2096  (set) 2>&1 |
2097    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2098    *${as_nl}ac_space=\ *)
2099      sed -n \
2100	"s/'\''/'\''\\\\'\'''\''/g;
2101	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2102      ;; #(
2103    *)
2104      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2105      ;;
2106    esac |
2107    sort
2108)
2109    echo
2110
2111    $as_echo "## ----------------- ##
2112## Output variables. ##
2113## ----------------- ##"
2114    echo
2115    for ac_var in $ac_subst_vars
2116    do
2117      eval ac_val=\$$ac_var
2118      case $ac_val in
2119      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2120      esac
2121      $as_echo "$ac_var='\''$ac_val'\''"
2122    done | sort
2123    echo
2124
2125    if test -n "$ac_subst_files"; then
2126      $as_echo "## ------------------- ##
2127## File substitutions. ##
2128## ------------------- ##"
2129      echo
2130      for ac_var in $ac_subst_files
2131      do
2132	eval ac_val=\$$ac_var
2133	case $ac_val in
2134	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2135	esac
2136	$as_echo "$ac_var='\''$ac_val'\''"
2137      done | sort
2138      echo
2139    fi
2140
2141    if test -s confdefs.h; then
2142      $as_echo "## ----------- ##
2143## confdefs.h. ##
2144## ----------- ##"
2145      echo
2146      cat confdefs.h
2147      echo
2148    fi
2149    test "$ac_signal" != 0 &&
2150      $as_echo "$as_me: caught signal $ac_signal"
2151    $as_echo "$as_me: exit $exit_status"
2152  } >&5
2153  rm -f core *.core core.conftest.* &&
2154    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2155    exit $exit_status
2156' 0
2157for ac_signal in 1 2 13 15; do
2158  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2159done
2160ac_signal=0
2161
2162# confdefs.h avoids OS command line length limits that DEFS can exceed.
2163rm -f -r conftest* confdefs.h
2164
2165$as_echo "/* confdefs.h */" > confdefs.h
2166
2167# Predefined preprocessor variables.
2168
2169cat >>confdefs.h <<_ACEOF
2170#define PACKAGE_NAME "$PACKAGE_NAME"
2171_ACEOF
2172
2173cat >>confdefs.h <<_ACEOF
2174#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2175_ACEOF
2176
2177cat >>confdefs.h <<_ACEOF
2178#define PACKAGE_VERSION "$PACKAGE_VERSION"
2179_ACEOF
2180
2181cat >>confdefs.h <<_ACEOF
2182#define PACKAGE_STRING "$PACKAGE_STRING"
2183_ACEOF
2184
2185cat >>confdefs.h <<_ACEOF
2186#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2187_ACEOF
2188
2189cat >>confdefs.h <<_ACEOF
2190#define PACKAGE_URL "$PACKAGE_URL"
2191_ACEOF
2192
2193
2194# Let the site file select an alternate cache file if it wants to.
2195# Prefer an explicitly selected file to automatically selected ones.
2196ac_site_file1=NONE
2197ac_site_file2=NONE
2198if test -n "$CONFIG_SITE"; then
2199  # We do not want a PATH search for config.site.
2200  case $CONFIG_SITE in #((
2201    -*)  ac_site_file1=./$CONFIG_SITE;;
2202    */*) ac_site_file1=$CONFIG_SITE;;
2203    *)   ac_site_file1=./$CONFIG_SITE;;
2204  esac
2205elif test "x$prefix" != xNONE; then
2206  ac_site_file1=$prefix/share/config.site
2207  ac_site_file2=$prefix/etc/config.site
2208else
2209  ac_site_file1=$ac_default_prefix/share/config.site
2210  ac_site_file2=$ac_default_prefix/etc/config.site
2211fi
2212for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2213do
2214  test "x$ac_site_file" = xNONE && continue
2215  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2216    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2217$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2218    sed 's/^/| /' "$ac_site_file" >&5
2219    . "$ac_site_file" \
2220      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2222as_fn_error $? "failed to load site script $ac_site_file
2223See \`config.log' for more details" "$LINENO" 5; }
2224  fi
2225done
2226
2227if test -r "$cache_file"; then
2228  # Some versions of bash will fail to source /dev/null (special files
2229  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2230  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2231    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2232$as_echo "$as_me: loading cache $cache_file" >&6;}
2233    case $cache_file in
2234      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2235      *)                      . "./$cache_file";;
2236    esac
2237  fi
2238else
2239  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2240$as_echo "$as_me: creating cache $cache_file" >&6;}
2241  >$cache_file
2242fi
2243
2244# Check that the precious variables saved in the cache have kept the same
2245# value.
2246ac_cache_corrupted=false
2247for ac_var in $ac_precious_vars; do
2248  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2249  eval ac_new_set=\$ac_env_${ac_var}_set
2250  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2251  eval ac_new_val=\$ac_env_${ac_var}_value
2252  case $ac_old_set,$ac_new_set in
2253    set,)
2254      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2255$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2256      ac_cache_corrupted=: ;;
2257    ,set)
2258      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2259$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2260      ac_cache_corrupted=: ;;
2261    ,);;
2262    *)
2263      if test "x$ac_old_val" != "x$ac_new_val"; then
2264	# differences in whitespace do not lead to failure.
2265	ac_old_val_w=`echo x $ac_old_val`
2266	ac_new_val_w=`echo x $ac_new_val`
2267	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2268	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2269$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2270	  ac_cache_corrupted=:
2271	else
2272	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2273$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2274	  eval $ac_var=\$ac_old_val
2275	fi
2276	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2277$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2278	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2279$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2280      fi;;
2281  esac
2282  # Pass precious variables to config.status.
2283  if test "$ac_new_set" = set; then
2284    case $ac_new_val in
2285    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2286    *) ac_arg=$ac_var=$ac_new_val ;;
2287    esac
2288    case " $ac_configure_args " in
2289      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2290      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2291    esac
2292  fi
2293done
2294if $ac_cache_corrupted; then
2295  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2296$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2297  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2298$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2299  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2300fi
2301## -------------------- ##
2302## Main body of script. ##
2303## -------------------- ##
2304
2305ac_ext=c
2306ac_cpp='$CPP $CPPFLAGS'
2307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310
2311
2312
2313ac_config_headers="$ac_config_headers config.h"
2314
2315ac_aux_dir=
2316for ac_dir in . "$srcdir"/.; do
2317  if test -f "$ac_dir/install-sh"; then
2318    ac_aux_dir=$ac_dir
2319    ac_install_sh="$ac_aux_dir/install-sh -c"
2320    break
2321  elif test -f "$ac_dir/install.sh"; then
2322    ac_aux_dir=$ac_dir
2323    ac_install_sh="$ac_aux_dir/install.sh -c"
2324    break
2325  elif test -f "$ac_dir/shtool"; then
2326    ac_aux_dir=$ac_dir
2327    ac_install_sh="$ac_aux_dir/shtool install -c"
2328    break
2329  fi
2330done
2331if test -z "$ac_aux_dir"; then
2332  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2333fi
2334
2335# These three variables are undocumented and unsupported,
2336# and are intended to be withdrawn in a future Autoconf release.
2337# They can cause serious problems if a builder's source tree is in a directory
2338# whose full name contains unusual characters.
2339ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2340ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2341ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2342
2343
2344
2345# Initialize Automake
2346am__api_version='1.11'
2347
2348# Find a good install program.  We prefer a C program (faster),
2349# so one script is as good as another.  But avoid the broken or
2350# incompatible versions:
2351# SysV /etc/install, /usr/sbin/install
2352# SunOS /usr/etc/install
2353# IRIX /sbin/install
2354# AIX /bin/install
2355# AmigaOS /C/install, which installs bootblocks on floppy discs
2356# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2357# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2358# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2359# OS/2's system install, which has a completely different semantic
2360# ./install, which can be erroneously created by make from ./install.sh.
2361# Reject install programs that cannot install multiple files.
2362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2363$as_echo_n "checking for a BSD-compatible install... " >&6; }
2364if test -z "$INSTALL"; then
2365if ${ac_cv_path_install+:} false; then :
2366  $as_echo_n "(cached) " >&6
2367else
2368  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369for as_dir in $PATH
2370do
2371  IFS=$as_save_IFS
2372  test -z "$as_dir" && as_dir=.
2373    # Account for people who put trailing slashes in PATH elements.
2374case $as_dir/ in #((
2375  ./ | .// | /[cC]/* | \
2376  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2377  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2378  /usr/ucb/* ) ;;
2379  *)
2380    # OSF1 and SCO ODT 3.0 have their own names for install.
2381    # Don't use installbsd from OSF since it installs stuff as root
2382    # by default.
2383    for ac_prog in ginstall scoinst install; do
2384      for ac_exec_ext in '' $ac_executable_extensions; do
2385	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2386	  if test $ac_prog = install &&
2387	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2388	    # AIX install.  It has an incompatible calling convention.
2389	    :
2390	  elif test $ac_prog = install &&
2391	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2392	    # program-specific install script used by HP pwplus--don't use.
2393	    :
2394	  else
2395	    rm -rf conftest.one conftest.two conftest.dir
2396	    echo one > conftest.one
2397	    echo two > conftest.two
2398	    mkdir conftest.dir
2399	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2400	      test -s conftest.one && test -s conftest.two &&
2401	      test -s conftest.dir/conftest.one &&
2402	      test -s conftest.dir/conftest.two
2403	    then
2404	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2405	      break 3
2406	    fi
2407	  fi
2408	fi
2409      done
2410    done
2411    ;;
2412esac
2413
2414  done
2415IFS=$as_save_IFS
2416
2417rm -rf conftest.one conftest.two conftest.dir
2418
2419fi
2420  if test "${ac_cv_path_install+set}" = set; then
2421    INSTALL=$ac_cv_path_install
2422  else
2423    # As a last resort, use the slow shell script.  Don't cache a
2424    # value for INSTALL within a source directory, because that will
2425    # break other packages using the cache if that directory is
2426    # removed, or if the value is a relative name.
2427    INSTALL=$ac_install_sh
2428  fi
2429fi
2430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2431$as_echo "$INSTALL" >&6; }
2432
2433# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2434# It thinks the first close brace ends the variable substitution.
2435test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2436
2437test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2438
2439test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2440
2441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2442$as_echo_n "checking whether build environment is sane... " >&6; }
2443# Just in case
2444sleep 1
2445echo timestamp > conftest.file
2446# Reject unsafe characters in $srcdir or the absolute working directory
2447# name.  Accept space and tab only in the latter.
2448am_lf='
2449'
2450case `pwd` in
2451  *[\\\"\#\$\&\'\`$am_lf]*)
2452    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2453esac
2454case $srcdir in
2455  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2456    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2457esac
2458
2459# Do `set' in a subshell so we don't clobber the current shell's
2460# arguments.  Must try -L first in case configure is actually a
2461# symlink; some systems play weird games with the mod time of symlinks
2462# (eg FreeBSD returns the mod time of the symlink's containing
2463# directory).
2464if (
2465   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2466   if test "$*" = "X"; then
2467      # -L didn't work.
2468      set X `ls -t "$srcdir/configure" conftest.file`
2469   fi
2470   rm -f conftest.file
2471   if test "$*" != "X $srcdir/configure conftest.file" \
2472      && test "$*" != "X conftest.file $srcdir/configure"; then
2473
2474      # If neither matched, then we have a broken ls.  This can happen
2475      # if, for instance, CONFIG_SHELL is bash and it inherits a
2476      # broken ls alias from the environment.  This has actually
2477      # happened.  Such a system could not be considered "sane".
2478      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2479alias in your environment" "$LINENO" 5
2480   fi
2481
2482   test "$2" = conftest.file
2483   )
2484then
2485   # Ok.
2486   :
2487else
2488   as_fn_error $? "newly created file is older than distributed files!
2489Check your system clock" "$LINENO" 5
2490fi
2491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2492$as_echo "yes" >&6; }
2493test "$program_prefix" != NONE &&
2494  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2495# Use a double $ so make ignores it.
2496test "$program_suffix" != NONE &&
2497  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2498# Double any \ or $.
2499# By default was `s,x,x', remove it if useless.
2500ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2501program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2502
2503# expand $ac_aux_dir to an absolute path
2504am_aux_dir=`cd $ac_aux_dir && pwd`
2505
2506if test x"${MISSING+set}" != xset; then
2507  case $am_aux_dir in
2508  *\ * | *\	*)
2509    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2510  *)
2511    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2512  esac
2513fi
2514# Use eval to expand $SHELL
2515if eval "$MISSING --run true"; then
2516  am_missing_run="$MISSING --run "
2517else
2518  am_missing_run=
2519  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2520$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2521fi
2522
2523if test x"${install_sh}" != xset; then
2524  case $am_aux_dir in
2525  *\ * | *\	*)
2526    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2527  *)
2528    install_sh="\${SHELL} $am_aux_dir/install-sh"
2529  esac
2530fi
2531
2532# Installed binaries are usually stripped using `strip' when the user
2533# run `make install-strip'.  However `strip' might not be the right
2534# tool to use in cross-compilation environments, therefore Automake
2535# will honor the `STRIP' environment variable to overrule this program.
2536if test "$cross_compiling" != no; then
2537  if test -n "$ac_tool_prefix"; then
2538  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2539set dummy ${ac_tool_prefix}strip; ac_word=$2
2540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541$as_echo_n "checking for $ac_word... " >&6; }
2542if ${ac_cv_prog_STRIP+:} false; then :
2543  $as_echo_n "(cached) " >&6
2544else
2545  if test -n "$STRIP"; then
2546  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2547else
2548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549for as_dir in $PATH
2550do
2551  IFS=$as_save_IFS
2552  test -z "$as_dir" && as_dir=.
2553    for ac_exec_ext in '' $ac_executable_extensions; do
2554  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2555    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2557    break 2
2558  fi
2559done
2560  done
2561IFS=$as_save_IFS
2562
2563fi
2564fi
2565STRIP=$ac_cv_prog_STRIP
2566if test -n "$STRIP"; then
2567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2568$as_echo "$STRIP" >&6; }
2569else
2570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2571$as_echo "no" >&6; }
2572fi
2573
2574
2575fi
2576if test -z "$ac_cv_prog_STRIP"; then
2577  ac_ct_STRIP=$STRIP
2578  # Extract the first word of "strip", so it can be a program name with args.
2579set dummy strip; ac_word=$2
2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581$as_echo_n "checking for $ac_word... " >&6; }
2582if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2583  $as_echo_n "(cached) " >&6
2584else
2585  if test -n "$ac_ct_STRIP"; then
2586  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2587else
2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589for as_dir in $PATH
2590do
2591  IFS=$as_save_IFS
2592  test -z "$as_dir" && as_dir=.
2593    for ac_exec_ext in '' $ac_executable_extensions; do
2594  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2595    ac_cv_prog_ac_ct_STRIP="strip"
2596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597    break 2
2598  fi
2599done
2600  done
2601IFS=$as_save_IFS
2602
2603fi
2604fi
2605ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2606if test -n "$ac_ct_STRIP"; then
2607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2608$as_echo "$ac_ct_STRIP" >&6; }
2609else
2610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611$as_echo "no" >&6; }
2612fi
2613
2614  if test "x$ac_ct_STRIP" = x; then
2615    STRIP=":"
2616  else
2617    case $cross_compiling:$ac_tool_warned in
2618yes:)
2619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2621ac_tool_warned=yes ;;
2622esac
2623    STRIP=$ac_ct_STRIP
2624  fi
2625else
2626  STRIP="$ac_cv_prog_STRIP"
2627fi
2628
2629fi
2630INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2631
2632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2633$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2634if test -z "$MKDIR_P"; then
2635  if ${ac_cv_path_mkdir+:} false; then :
2636  $as_echo_n "(cached) " >&6
2637else
2638  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2640do
2641  IFS=$as_save_IFS
2642  test -z "$as_dir" && as_dir=.
2643    for ac_prog in mkdir gmkdir; do
2644	 for ac_exec_ext in '' $ac_executable_extensions; do
2645	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2646	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2647	     'mkdir (GNU coreutils) '* | \
2648	     'mkdir (coreutils) '* | \
2649	     'mkdir (fileutils) '4.1*)
2650	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2651	       break 3;;
2652	   esac
2653	 done
2654       done
2655  done
2656IFS=$as_save_IFS
2657
2658fi
2659
2660  test -d ./--version && rmdir ./--version
2661  if test "${ac_cv_path_mkdir+set}" = set; then
2662    MKDIR_P="$ac_cv_path_mkdir -p"
2663  else
2664    # As a last resort, use the slow shell script.  Don't cache a
2665    # value for MKDIR_P within a source directory, because that will
2666    # break other packages using the cache if that directory is
2667    # removed, or if the value is a relative name.
2668    MKDIR_P="$ac_install_sh -d"
2669  fi
2670fi
2671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2672$as_echo "$MKDIR_P" >&6; }
2673
2674mkdir_p="$MKDIR_P"
2675case $mkdir_p in
2676  [\\/$]* | ?:[\\/]*) ;;
2677  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2678esac
2679
2680for ac_prog in gawk mawk nawk awk
2681do
2682  # Extract the first word of "$ac_prog", so it can be a program name with args.
2683set dummy $ac_prog; ac_word=$2
2684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2685$as_echo_n "checking for $ac_word... " >&6; }
2686if ${ac_cv_prog_AWK+:} false; then :
2687  $as_echo_n "(cached) " >&6
2688else
2689  if test -n "$AWK"; then
2690  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2691else
2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH
2694do
2695  IFS=$as_save_IFS
2696  test -z "$as_dir" && as_dir=.
2697    for ac_exec_ext in '' $ac_executable_extensions; do
2698  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2699    ac_cv_prog_AWK="$ac_prog"
2700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2701    break 2
2702  fi
2703done
2704  done
2705IFS=$as_save_IFS
2706
2707fi
2708fi
2709AWK=$ac_cv_prog_AWK
2710if test -n "$AWK"; then
2711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2712$as_echo "$AWK" >&6; }
2713else
2714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715$as_echo "no" >&6; }
2716fi
2717
2718
2719  test -n "$AWK" && break
2720done
2721
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2723$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2724set x ${MAKE-make}
2725ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2726if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2727  $as_echo_n "(cached) " >&6
2728else
2729  cat >conftest.make <<\_ACEOF
2730SHELL = /bin/sh
2731all:
2732	@echo '@@@%%%=$(MAKE)=@@@%%%'
2733_ACEOF
2734# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2735case `${MAKE-make} -f conftest.make 2>/dev/null` in
2736  *@@@%%%=?*=@@@%%%*)
2737    eval ac_cv_prog_make_${ac_make}_set=yes;;
2738  *)
2739    eval ac_cv_prog_make_${ac_make}_set=no;;
2740esac
2741rm -f conftest.make
2742fi
2743if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2745$as_echo "yes" >&6; }
2746  SET_MAKE=
2747else
2748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749$as_echo "no" >&6; }
2750  SET_MAKE="MAKE=${MAKE-make}"
2751fi
2752
2753rm -rf .tst 2>/dev/null
2754mkdir .tst 2>/dev/null
2755if test -d .tst; then
2756  am__leading_dot=.
2757else
2758  am__leading_dot=_
2759fi
2760rmdir .tst 2>/dev/null
2761
2762if test "`cd $srcdir && pwd`" != "`pwd`"; then
2763  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2764  # is not polluted with repeated "-I."
2765  am__isrc=' -I$(srcdir)'
2766  # test to see if srcdir already configured
2767  if test -f $srcdir/config.status; then
2768    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2769  fi
2770fi
2771
2772# test whether we have cygpath
2773if test -z "$CYGPATH_W"; then
2774  if (cygpath --version) >/dev/null 2>/dev/null; then
2775    CYGPATH_W='cygpath -w'
2776  else
2777    CYGPATH_W=echo
2778  fi
2779fi
2780
2781
2782# Define the identity of the package.
2783 PACKAGE='xf86-video-glint'
2784 VERSION='1.2.8'
2785
2786
2787cat >>confdefs.h <<_ACEOF
2788#define PACKAGE "$PACKAGE"
2789_ACEOF
2790
2791
2792cat >>confdefs.h <<_ACEOF
2793#define VERSION "$VERSION"
2794_ACEOF
2795
2796# Some tools Automake needs.
2797
2798ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2799
2800
2801AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2802
2803
2804AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2805
2806
2807AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2808
2809
2810MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2811
2812# We need awk for the "check" target.  The system "awk" is bad on
2813# some platforms.
2814# Always define AMTAR for backward compatibility.  Yes, it's still used
2815# in the wild :-(  We should find a proper way to deprecate it ...
2816AMTAR='$${TAR-tar}'
2817
2818am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2819
2820
2821
2822
2823
2824
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2826$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2827    # Check whether --enable-maintainer-mode was given.
2828if test "${enable_maintainer_mode+set}" = set; then :
2829  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2830else
2831  USE_MAINTAINER_MODE=no
2832fi
2833
2834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2835$as_echo "$USE_MAINTAINER_MODE" >&6; }
2836   if test $USE_MAINTAINER_MODE = yes; then
2837  MAINTAINER_MODE_TRUE=
2838  MAINTAINER_MODE_FALSE='#'
2839else
2840  MAINTAINER_MODE_TRUE='#'
2841  MAINTAINER_MODE_FALSE=
2842fi
2843
2844  MAINT=$MAINTAINER_MODE_TRUE
2845
2846
2847
2848# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860DEPDIR="${am__leading_dot}deps"
2861
2862ac_config_commands="$ac_config_commands depfiles"
2863
2864
2865am_make=${MAKE-make}
2866cat > confinc << 'END'
2867am__doit:
2868	@echo this is the am__doit target
2869.PHONY: am__doit
2870END
2871# If we don't find an include directive, just comment out the code.
2872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2873$as_echo_n "checking for style of include used by $am_make... " >&6; }
2874am__include="#"
2875am__quote=
2876_am_result=none
2877# First try GNU make style include.
2878echo "include confinc" > confmf
2879# Ignore all kinds of additional output from `make'.
2880case `$am_make -s -f confmf 2> /dev/null` in #(
2881*the\ am__doit\ target*)
2882  am__include=include
2883  am__quote=
2884  _am_result=GNU
2885  ;;
2886esac
2887# Now try BSD make style include.
2888if test "$am__include" = "#"; then
2889   echo '.include "confinc"' > confmf
2890   case `$am_make -s -f confmf 2> /dev/null` in #(
2891   *the\ am__doit\ target*)
2892     am__include=.include
2893     am__quote="\""
2894     _am_result=BSD
2895     ;;
2896   esac
2897fi
2898
2899
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2901$as_echo "$_am_result" >&6; }
2902rm -f confinc confmf
2903
2904# Check whether --enable-dependency-tracking was given.
2905if test "${enable_dependency_tracking+set}" = set; then :
2906  enableval=$enable_dependency_tracking;
2907fi
2908
2909if test "x$enable_dependency_tracking" != xno; then
2910  am_depcomp="$ac_aux_dir/depcomp"
2911  AMDEPBACKSLASH='\'
2912  am__nodep='_no'
2913fi
2914 if test "x$enable_dependency_tracking" != xno; then
2915  AMDEP_TRUE=
2916  AMDEP_FALSE='#'
2917else
2918  AMDEP_TRUE='#'
2919  AMDEP_FALSE=
2920fi
2921
2922
2923ac_ext=c
2924ac_cpp='$CPP $CPPFLAGS'
2925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2927ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928if test -n "$ac_tool_prefix"; then
2929  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2930set dummy ${ac_tool_prefix}gcc; ac_word=$2
2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932$as_echo_n "checking for $ac_word... " >&6; }
2933if ${ac_cv_prog_CC+:} false; then :
2934  $as_echo_n "(cached) " >&6
2935else
2936  if test -n "$CC"; then
2937  ac_cv_prog_CC="$CC" # Let the user override the test.
2938else
2939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940for as_dir in $PATH
2941do
2942  IFS=$as_save_IFS
2943  test -z "$as_dir" && as_dir=.
2944    for ac_exec_ext in '' $ac_executable_extensions; do
2945  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2947    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948    break 2
2949  fi
2950done
2951  done
2952IFS=$as_save_IFS
2953
2954fi
2955fi
2956CC=$ac_cv_prog_CC
2957if test -n "$CC"; then
2958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2959$as_echo "$CC" >&6; }
2960else
2961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962$as_echo "no" >&6; }
2963fi
2964
2965
2966fi
2967if test -z "$ac_cv_prog_CC"; then
2968  ac_ct_CC=$CC
2969  # Extract the first word of "gcc", so it can be a program name with args.
2970set dummy gcc; ac_word=$2
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972$as_echo_n "checking for $ac_word... " >&6; }
2973if ${ac_cv_prog_ac_ct_CC+:} false; then :
2974  $as_echo_n "(cached) " >&6
2975else
2976  if test -n "$ac_ct_CC"; then
2977  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2978else
2979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980for as_dir in $PATH
2981do
2982  IFS=$as_save_IFS
2983  test -z "$as_dir" && as_dir=.
2984    for ac_exec_ext in '' $ac_executable_extensions; do
2985  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986    ac_cv_prog_ac_ct_CC="gcc"
2987    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988    break 2
2989  fi
2990done
2991  done
2992IFS=$as_save_IFS
2993
2994fi
2995fi
2996ac_ct_CC=$ac_cv_prog_ac_ct_CC
2997if test -n "$ac_ct_CC"; then
2998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2999$as_echo "$ac_ct_CC" >&6; }
3000else
3001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3002$as_echo "no" >&6; }
3003fi
3004
3005  if test "x$ac_ct_CC" = x; then
3006    CC=""
3007  else
3008    case $cross_compiling:$ac_tool_warned in
3009yes:)
3010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3012ac_tool_warned=yes ;;
3013esac
3014    CC=$ac_ct_CC
3015  fi
3016else
3017  CC="$ac_cv_prog_CC"
3018fi
3019
3020if test -z "$CC"; then
3021          if test -n "$ac_tool_prefix"; then
3022    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3023set dummy ${ac_tool_prefix}cc; ac_word=$2
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025$as_echo_n "checking for $ac_word... " >&6; }
3026if ${ac_cv_prog_CC+:} false; then :
3027  $as_echo_n "(cached) " >&6
3028else
3029  if test -n "$CC"; then
3030  ac_cv_prog_CC="$CC" # Let the user override the test.
3031else
3032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033for as_dir in $PATH
3034do
3035  IFS=$as_save_IFS
3036  test -z "$as_dir" && as_dir=.
3037    for ac_exec_ext in '' $ac_executable_extensions; do
3038  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3039    ac_cv_prog_CC="${ac_tool_prefix}cc"
3040    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041    break 2
3042  fi
3043done
3044  done
3045IFS=$as_save_IFS
3046
3047fi
3048fi
3049CC=$ac_cv_prog_CC
3050if test -n "$CC"; then
3051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3052$as_echo "$CC" >&6; }
3053else
3054  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055$as_echo "no" >&6; }
3056fi
3057
3058
3059  fi
3060fi
3061if test -z "$CC"; then
3062  # Extract the first word of "cc", so it can be a program name with args.
3063set dummy cc; ac_word=$2
3064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065$as_echo_n "checking for $ac_word... " >&6; }
3066if ${ac_cv_prog_CC+:} false; then :
3067  $as_echo_n "(cached) " >&6
3068else
3069  if test -n "$CC"; then
3070  ac_cv_prog_CC="$CC" # Let the user override the test.
3071else
3072  ac_prog_rejected=no
3073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074for as_dir in $PATH
3075do
3076  IFS=$as_save_IFS
3077  test -z "$as_dir" && as_dir=.
3078    for ac_exec_ext in '' $ac_executable_extensions; do
3079  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3080    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3081       ac_prog_rejected=yes
3082       continue
3083     fi
3084    ac_cv_prog_CC="cc"
3085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086    break 2
3087  fi
3088done
3089  done
3090IFS=$as_save_IFS
3091
3092if test $ac_prog_rejected = yes; then
3093  # We found a bogon in the path, so make sure we never use it.
3094  set dummy $ac_cv_prog_CC
3095  shift
3096  if test $# != 0; then
3097    # We chose a different compiler from the bogus one.
3098    # However, it has the same basename, so the bogon will be chosen
3099    # first if we set CC to just the basename; use the full file name.
3100    shift
3101    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3102  fi
3103fi
3104fi
3105fi
3106CC=$ac_cv_prog_CC
3107if test -n "$CC"; then
3108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3109$as_echo "$CC" >&6; }
3110else
3111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112$as_echo "no" >&6; }
3113fi
3114
3115
3116fi
3117if test -z "$CC"; then
3118  if test -n "$ac_tool_prefix"; then
3119  for ac_prog in cl.exe
3120  do
3121    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3122set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124$as_echo_n "checking for $ac_word... " >&6; }
3125if ${ac_cv_prog_CC+:} false; then :
3126  $as_echo_n "(cached) " >&6
3127else
3128  if test -n "$CC"; then
3129  ac_cv_prog_CC="$CC" # Let the user override the test.
3130else
3131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132for as_dir in $PATH
3133do
3134  IFS=$as_save_IFS
3135  test -z "$as_dir" && as_dir=.
3136    for ac_exec_ext in '' $ac_executable_extensions; do
3137  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3138    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140    break 2
3141  fi
3142done
3143  done
3144IFS=$as_save_IFS
3145
3146fi
3147fi
3148CC=$ac_cv_prog_CC
3149if test -n "$CC"; then
3150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3151$as_echo "$CC" >&6; }
3152else
3153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154$as_echo "no" >&6; }
3155fi
3156
3157
3158    test -n "$CC" && break
3159  done
3160fi
3161if test -z "$CC"; then
3162  ac_ct_CC=$CC
3163  for ac_prog in cl.exe
3164do
3165  # Extract the first word of "$ac_prog", so it can be a program name with args.
3166set dummy $ac_prog; ac_word=$2
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168$as_echo_n "checking for $ac_word... " >&6; }
3169if ${ac_cv_prog_ac_ct_CC+:} false; then :
3170  $as_echo_n "(cached) " >&6
3171else
3172  if test -n "$ac_ct_CC"; then
3173  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3174else
3175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176for as_dir in $PATH
3177do
3178  IFS=$as_save_IFS
3179  test -z "$as_dir" && as_dir=.
3180    for ac_exec_ext in '' $ac_executable_extensions; do
3181  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3182    ac_cv_prog_ac_ct_CC="$ac_prog"
3183    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184    break 2
3185  fi
3186done
3187  done
3188IFS=$as_save_IFS
3189
3190fi
3191fi
3192ac_ct_CC=$ac_cv_prog_ac_ct_CC
3193if test -n "$ac_ct_CC"; then
3194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3195$as_echo "$ac_ct_CC" >&6; }
3196else
3197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198$as_echo "no" >&6; }
3199fi
3200
3201
3202  test -n "$ac_ct_CC" && break
3203done
3204
3205  if test "x$ac_ct_CC" = x; then
3206    CC=""
3207  else
3208    case $cross_compiling:$ac_tool_warned in
3209yes:)
3210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3212ac_tool_warned=yes ;;
3213esac
3214    CC=$ac_ct_CC
3215  fi
3216fi
3217
3218fi
3219
3220
3221test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3223as_fn_error $? "no acceptable C compiler found in \$PATH
3224See \`config.log' for more details" "$LINENO" 5; }
3225
3226# Provide some information about the compiler.
3227$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3228set X $ac_compile
3229ac_compiler=$2
3230for ac_option in --version -v -V -qversion; do
3231  { { ac_try="$ac_compiler $ac_option >&5"
3232case "(($ac_try" in
3233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234  *) ac_try_echo=$ac_try;;
3235esac
3236eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237$as_echo "$ac_try_echo"; } >&5
3238  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3239  ac_status=$?
3240  if test -s conftest.err; then
3241    sed '10a\
3242... rest of stderr output deleted ...
3243         10q' conftest.err >conftest.er1
3244    cat conftest.er1 >&5
3245  fi
3246  rm -f conftest.er1 conftest.err
3247  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248  test $ac_status = 0; }
3249done
3250
3251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252/* end confdefs.h.  */
3253
3254int
3255main ()
3256{
3257
3258  ;
3259  return 0;
3260}
3261_ACEOF
3262ac_clean_files_save=$ac_clean_files
3263ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3264# Try to create an executable without -o first, disregard a.out.
3265# It will help us diagnose broken compilers, and finding out an intuition
3266# of exeext.
3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3268$as_echo_n "checking whether the C compiler works... " >&6; }
3269ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3270
3271# The possible output files:
3272ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3273
3274ac_rmfiles=
3275for ac_file in $ac_files
3276do
3277  case $ac_file in
3278    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3279    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3280  esac
3281done
3282rm -f $ac_rmfiles
3283
3284if { { ac_try="$ac_link_default"
3285case "(($ac_try" in
3286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287  *) ac_try_echo=$ac_try;;
3288esac
3289eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290$as_echo "$ac_try_echo"; } >&5
3291  (eval "$ac_link_default") 2>&5
3292  ac_status=$?
3293  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294  test $ac_status = 0; }; then :
3295  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3296# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3297# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3298# so that the user can short-circuit this test for compilers unknown to
3299# Autoconf.
3300for ac_file in $ac_files ''
3301do
3302  test -f "$ac_file" || continue
3303  case $ac_file in
3304    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3305	;;
3306    [ab].out )
3307	# We found the default executable, but exeext='' is most
3308	# certainly right.
3309	break;;
3310    *.* )
3311	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3312	then :; else
3313	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3314	fi
3315	# We set ac_cv_exeext here because the later test for it is not
3316	# safe: cross compilers may not add the suffix if given an `-o'
3317	# argument, so we may need to know it at that point already.
3318	# Even if this section looks crufty: it has the advantage of
3319	# actually working.
3320	break;;
3321    * )
3322	break;;
3323  esac
3324done
3325test "$ac_cv_exeext" = no && ac_cv_exeext=
3326
3327else
3328  ac_file=''
3329fi
3330if test -z "$ac_file"; then :
3331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332$as_echo "no" >&6; }
3333$as_echo "$as_me: failed program was:" >&5
3334sed 's/^/| /' conftest.$ac_ext >&5
3335
3336{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3338as_fn_error 77 "C compiler cannot create executables
3339See \`config.log' for more details" "$LINENO" 5; }
3340else
3341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3342$as_echo "yes" >&6; }
3343fi
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3345$as_echo_n "checking for C compiler default output file name... " >&6; }
3346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3347$as_echo "$ac_file" >&6; }
3348ac_exeext=$ac_cv_exeext
3349
3350rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3351ac_clean_files=$ac_clean_files_save
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3353$as_echo_n "checking for suffix of executables... " >&6; }
3354if { { ac_try="$ac_link"
3355case "(($ac_try" in
3356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357  *) ac_try_echo=$ac_try;;
3358esac
3359eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3360$as_echo "$ac_try_echo"; } >&5
3361  (eval "$ac_link") 2>&5
3362  ac_status=$?
3363  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3364  test $ac_status = 0; }; then :
3365  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3366# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3367# work properly (i.e., refer to `conftest.exe'), while it won't with
3368# `rm'.
3369for ac_file in conftest.exe conftest conftest.*; do
3370  test -f "$ac_file" || continue
3371  case $ac_file in
3372    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3373    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3374	  break;;
3375    * ) break;;
3376  esac
3377done
3378else
3379  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3382See \`config.log' for more details" "$LINENO" 5; }
3383fi
3384rm -f conftest conftest$ac_cv_exeext
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3386$as_echo "$ac_cv_exeext" >&6; }
3387
3388rm -f conftest.$ac_ext
3389EXEEXT=$ac_cv_exeext
3390ac_exeext=$EXEEXT
3391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392/* end confdefs.h.  */
3393#include <stdio.h>
3394int
3395main ()
3396{
3397FILE *f = fopen ("conftest.out", "w");
3398 return ferror (f) || fclose (f) != 0;
3399
3400  ;
3401  return 0;
3402}
3403_ACEOF
3404ac_clean_files="$ac_clean_files conftest.out"
3405# Check that the compiler produces executables we can run.  If not, either
3406# the compiler is broken, or we cross compile.
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3408$as_echo_n "checking whether we are cross compiling... " >&6; }
3409if test "$cross_compiling" != yes; then
3410  { { ac_try="$ac_link"
3411case "(($ac_try" in
3412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413  *) ac_try_echo=$ac_try;;
3414esac
3415eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3416$as_echo "$ac_try_echo"; } >&5
3417  (eval "$ac_link") 2>&5
3418  ac_status=$?
3419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420  test $ac_status = 0; }
3421  if { ac_try='./conftest$ac_cv_exeext'
3422  { { case "(($ac_try" in
3423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424  *) ac_try_echo=$ac_try;;
3425esac
3426eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427$as_echo "$ac_try_echo"; } >&5
3428  (eval "$ac_try") 2>&5
3429  ac_status=$?
3430  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431  test $ac_status = 0; }; }; then
3432    cross_compiling=no
3433  else
3434    if test "$cross_compiling" = maybe; then
3435	cross_compiling=yes
3436    else
3437	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3439as_fn_error $? "cannot run C compiled programs.
3440If you meant to cross compile, use \`--host'.
3441See \`config.log' for more details" "$LINENO" 5; }
3442    fi
3443  fi
3444fi
3445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3446$as_echo "$cross_compiling" >&6; }
3447
3448rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3449ac_clean_files=$ac_clean_files_save
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3451$as_echo_n "checking for suffix of object files... " >&6; }
3452if ${ac_cv_objext+:} false; then :
3453  $as_echo_n "(cached) " >&6
3454else
3455  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456/* end confdefs.h.  */
3457
3458int
3459main ()
3460{
3461
3462  ;
3463  return 0;
3464}
3465_ACEOF
3466rm -f conftest.o conftest.obj
3467if { { ac_try="$ac_compile"
3468case "(($ac_try" in
3469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470  *) ac_try_echo=$ac_try;;
3471esac
3472eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3473$as_echo "$ac_try_echo"; } >&5
3474  (eval "$ac_compile") 2>&5
3475  ac_status=$?
3476  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3477  test $ac_status = 0; }; then :
3478  for ac_file in conftest.o conftest.obj conftest.*; do
3479  test -f "$ac_file" || continue;
3480  case $ac_file in
3481    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3482    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3483       break;;
3484  esac
3485done
3486else
3487  $as_echo "$as_me: failed program was:" >&5
3488sed 's/^/| /' conftest.$ac_ext >&5
3489
3490{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3491$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3492as_fn_error $? "cannot compute suffix of object files: cannot compile
3493See \`config.log' for more details" "$LINENO" 5; }
3494fi
3495rm -f conftest.$ac_cv_objext conftest.$ac_ext
3496fi
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3498$as_echo "$ac_cv_objext" >&6; }
3499OBJEXT=$ac_cv_objext
3500ac_objext=$OBJEXT
3501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3502$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3503if ${ac_cv_c_compiler_gnu+:} false; then :
3504  $as_echo_n "(cached) " >&6
3505else
3506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507/* end confdefs.h.  */
3508
3509int
3510main ()
3511{
3512#ifndef __GNUC__
3513       choke me
3514#endif
3515
3516  ;
3517  return 0;
3518}
3519_ACEOF
3520if ac_fn_c_try_compile "$LINENO"; then :
3521  ac_compiler_gnu=yes
3522else
3523  ac_compiler_gnu=no
3524fi
3525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3526ac_cv_c_compiler_gnu=$ac_compiler_gnu
3527
3528fi
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3530$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3531if test $ac_compiler_gnu = yes; then
3532  GCC=yes
3533else
3534  GCC=
3535fi
3536ac_test_CFLAGS=${CFLAGS+set}
3537ac_save_CFLAGS=$CFLAGS
3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3539$as_echo_n "checking whether $CC accepts -g... " >&6; }
3540if ${ac_cv_prog_cc_g+:} false; then :
3541  $as_echo_n "(cached) " >&6
3542else
3543  ac_save_c_werror_flag=$ac_c_werror_flag
3544   ac_c_werror_flag=yes
3545   ac_cv_prog_cc_g=no
3546   CFLAGS="-g"
3547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548/* end confdefs.h.  */
3549
3550int
3551main ()
3552{
3553
3554  ;
3555  return 0;
3556}
3557_ACEOF
3558if ac_fn_c_try_compile "$LINENO"; then :
3559  ac_cv_prog_cc_g=yes
3560else
3561  CFLAGS=""
3562      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563/* end confdefs.h.  */
3564
3565int
3566main ()
3567{
3568
3569  ;
3570  return 0;
3571}
3572_ACEOF
3573if ac_fn_c_try_compile "$LINENO"; then :
3574
3575else
3576  ac_c_werror_flag=$ac_save_c_werror_flag
3577	 CFLAGS="-g"
3578	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579/* end confdefs.h.  */
3580
3581int
3582main ()
3583{
3584
3585  ;
3586  return 0;
3587}
3588_ACEOF
3589if ac_fn_c_try_compile "$LINENO"; then :
3590  ac_cv_prog_cc_g=yes
3591fi
3592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3593fi
3594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595fi
3596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597   ac_c_werror_flag=$ac_save_c_werror_flag
3598fi
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3600$as_echo "$ac_cv_prog_cc_g" >&6; }
3601if test "$ac_test_CFLAGS" = set; then
3602  CFLAGS=$ac_save_CFLAGS
3603elif test $ac_cv_prog_cc_g = yes; then
3604  if test "$GCC" = yes; then
3605    CFLAGS="-g -O2"
3606  else
3607    CFLAGS="-g"
3608  fi
3609else
3610  if test "$GCC" = yes; then
3611    CFLAGS="-O2"
3612  else
3613    CFLAGS=
3614  fi
3615fi
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3617$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3618if ${ac_cv_prog_cc_c89+:} false; then :
3619  $as_echo_n "(cached) " >&6
3620else
3621  ac_cv_prog_cc_c89=no
3622ac_save_CC=$CC
3623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624/* end confdefs.h.  */
3625#include <stdarg.h>
3626#include <stdio.h>
3627#include <sys/types.h>
3628#include <sys/stat.h>
3629/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3630struct buf { int x; };
3631FILE * (*rcsopen) (struct buf *, struct stat *, int);
3632static char *e (p, i)
3633     char **p;
3634     int i;
3635{
3636  return p[i];
3637}
3638static char *f (char * (*g) (char **, int), char **p, ...)
3639{
3640  char *s;
3641  va_list v;
3642  va_start (v,p);
3643  s = g (p, va_arg (v,int));
3644  va_end (v);
3645  return s;
3646}
3647
3648/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3649   function prototypes and stuff, but not '\xHH' hex character constants.
3650   These don't provoke an error unfortunately, instead are silently treated
3651   as 'x'.  The following induces an error, until -std is added to get
3652   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3653   array size at least.  It's necessary to write '\x00'==0 to get something
3654   that's true only with -std.  */
3655int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3656
3657/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3658   inside strings and character constants.  */
3659#define FOO(x) 'x'
3660int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3661
3662int test (int i, double x);
3663struct s1 {int (*f) (int a);};
3664struct s2 {int (*f) (double a);};
3665int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3666int argc;
3667char **argv;
3668int
3669main ()
3670{
3671return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3672  ;
3673  return 0;
3674}
3675_ACEOF
3676for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3677	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3678do
3679  CC="$ac_save_CC $ac_arg"
3680  if ac_fn_c_try_compile "$LINENO"; then :
3681  ac_cv_prog_cc_c89=$ac_arg
3682fi
3683rm -f core conftest.err conftest.$ac_objext
3684  test "x$ac_cv_prog_cc_c89" != "xno" && break
3685done
3686rm -f conftest.$ac_ext
3687CC=$ac_save_CC
3688
3689fi
3690# AC_CACHE_VAL
3691case "x$ac_cv_prog_cc_c89" in
3692  x)
3693    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3694$as_echo "none needed" >&6; } ;;
3695  xno)
3696    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3697$as_echo "unsupported" >&6; } ;;
3698  *)
3699    CC="$CC $ac_cv_prog_cc_c89"
3700    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3701$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3702esac
3703if test "x$ac_cv_prog_cc_c89" != xno; then :
3704
3705fi
3706
3707ac_ext=c
3708ac_cpp='$CPP $CPPFLAGS'
3709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711ac_compiler_gnu=$ac_cv_c_compiler_gnu
3712
3713depcc="$CC"   am_compiler_list=
3714
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3716$as_echo_n "checking dependency style of $depcc... " >&6; }
3717if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3718  $as_echo_n "(cached) " >&6
3719else
3720  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3721  # We make a subdir and do the tests there.  Otherwise we can end up
3722  # making bogus files that we don't know about and never remove.  For
3723  # instance it was reported that on HP-UX the gcc test will end up
3724  # making a dummy file named `D' -- because `-MD' means `put the output
3725  # in D'.
3726  rm -rf conftest.dir
3727  mkdir conftest.dir
3728  # Copy depcomp to subdir because otherwise we won't find it if we're
3729  # using a relative directory.
3730  cp "$am_depcomp" conftest.dir
3731  cd conftest.dir
3732  # We will build objects and dependencies in a subdirectory because
3733  # it helps to detect inapplicable dependency modes.  For instance
3734  # both Tru64's cc and ICC support -MD to output dependencies as a
3735  # side effect of compilation, but ICC will put the dependencies in
3736  # the current directory while Tru64 will put them in the object
3737  # directory.
3738  mkdir sub
3739
3740  am_cv_CC_dependencies_compiler_type=none
3741  if test "$am_compiler_list" = ""; then
3742     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3743  fi
3744  am__universal=false
3745  case " $depcc " in #(
3746     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3747     esac
3748
3749  for depmode in $am_compiler_list; do
3750    # Setup a source with many dependencies, because some compilers
3751    # like to wrap large dependency lists on column 80 (with \), and
3752    # we should not choose a depcomp mode which is confused by this.
3753    #
3754    # We need to recreate these files for each test, as the compiler may
3755    # overwrite some of them when testing with obscure command lines.
3756    # This happens at least with the AIX C compiler.
3757    : > sub/conftest.c
3758    for i in 1 2 3 4 5 6; do
3759      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3760      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3761      # Solaris 8's {/usr,}/bin/sh.
3762      touch sub/conftst$i.h
3763    done
3764    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3765
3766    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3767    # mode.  It turns out that the SunPro C++ compiler does not properly
3768    # handle `-M -o', and we need to detect this.  Also, some Intel
3769    # versions had trouble with output in subdirs
3770    am__obj=sub/conftest.${OBJEXT-o}
3771    am__minus_obj="-o $am__obj"
3772    case $depmode in
3773    gcc)
3774      # This depmode causes a compiler race in universal mode.
3775      test "$am__universal" = false || continue
3776      ;;
3777    nosideeffect)
3778      # after this tag, mechanisms are not by side-effect, so they'll
3779      # only be used when explicitly requested
3780      if test "x$enable_dependency_tracking" = xyes; then
3781	continue
3782      else
3783	break
3784      fi
3785      ;;
3786    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3787      # This compiler won't grok `-c -o', but also, the minuso test has
3788      # not run yet.  These depmodes are late enough in the game, and
3789      # so weak that their functioning should not be impacted.
3790      am__obj=conftest.${OBJEXT-o}
3791      am__minus_obj=
3792      ;;
3793    none) break ;;
3794    esac
3795    if depmode=$depmode \
3796       source=sub/conftest.c object=$am__obj \
3797       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3798       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3799         >/dev/null 2>conftest.err &&
3800       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3801       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3802       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3803       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3804      # icc doesn't choke on unknown options, it will just issue warnings
3805      # or remarks (even with -Werror).  So we grep stderr for any message
3806      # that says an option was ignored or not supported.
3807      # When given -MP, icc 7.0 and 7.1 complain thusly:
3808      #   icc: Command line warning: ignoring option '-M'; no argument required
3809      # The diagnosis changed in icc 8.0:
3810      #   icc: Command line remark: option '-MP' not supported
3811      if (grep 'ignoring option' conftest.err ||
3812          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3813        am_cv_CC_dependencies_compiler_type=$depmode
3814        break
3815      fi
3816    fi
3817  done
3818
3819  cd ..
3820  rm -rf conftest.dir
3821else
3822  am_cv_CC_dependencies_compiler_type=none
3823fi
3824
3825fi
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3827$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3828CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3829
3830 if
3831  test "x$enable_dependency_tracking" != xno \
3832  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3833  am__fastdepCC_TRUE=
3834  am__fastdepCC_FALSE='#'
3835else
3836  am__fastdepCC_TRUE='#'
3837  am__fastdepCC_FALSE=
3838fi
3839
3840
3841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3842$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3843if ${ac_cv_prog_cc_c99+:} false; then :
3844  $as_echo_n "(cached) " >&6
3845else
3846  ac_cv_prog_cc_c99=no
3847ac_save_CC=$CC
3848cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849/* end confdefs.h.  */
3850#include <stdarg.h>
3851#include <stdbool.h>
3852#include <stdlib.h>
3853#include <wchar.h>
3854#include <stdio.h>
3855
3856// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3857#define debug(...) fprintf (stderr, __VA_ARGS__)
3858#define showlist(...) puts (#__VA_ARGS__)
3859#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3860static void
3861test_varargs_macros (void)
3862{
3863  int x = 1234;
3864  int y = 5678;
3865  debug ("Flag");
3866  debug ("X = %d\n", x);
3867  showlist (The first, second, and third items.);
3868  report (x>y, "x is %d but y is %d", x, y);
3869}
3870
3871// Check long long types.
3872#define BIG64 18446744073709551615ull
3873#define BIG32 4294967295ul
3874#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3875#if !BIG_OK
3876  your preprocessor is broken;
3877#endif
3878#if BIG_OK
3879#else
3880  your preprocessor is broken;
3881#endif
3882static long long int bignum = -9223372036854775807LL;
3883static unsigned long long int ubignum = BIG64;
3884
3885struct incomplete_array
3886{
3887  int datasize;
3888  double data[];
3889};
3890
3891struct named_init {
3892  int number;
3893  const wchar_t *name;
3894  double average;
3895};
3896
3897typedef const char *ccp;
3898
3899static inline int
3900test_restrict (ccp restrict text)
3901{
3902  // See if C++-style comments work.
3903  // Iterate through items via the restricted pointer.
3904  // Also check for declarations in for loops.
3905  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3906    continue;
3907  return 0;
3908}
3909
3910// Check varargs and va_copy.
3911static void
3912test_varargs (const char *format, ...)
3913{
3914  va_list args;
3915  va_start (args, format);
3916  va_list args_copy;
3917  va_copy (args_copy, args);
3918
3919  const char *str;
3920  int number;
3921  float fnumber;
3922
3923  while (*format)
3924    {
3925      switch (*format++)
3926	{
3927	case 's': // string
3928	  str = va_arg (args_copy, const char *);
3929	  break;
3930	case 'd': // int
3931	  number = va_arg (args_copy, int);
3932	  break;
3933	case 'f': // float
3934	  fnumber = va_arg (args_copy, double);
3935	  break;
3936	default:
3937	  break;
3938	}
3939    }
3940  va_end (args_copy);
3941  va_end (args);
3942}
3943
3944int
3945main ()
3946{
3947
3948  // Check bool.
3949  _Bool success = false;
3950
3951  // Check restrict.
3952  if (test_restrict ("String literal") == 0)
3953    success = true;
3954  char *restrict newvar = "Another string";
3955
3956  // Check varargs.
3957  test_varargs ("s, d' f .", "string", 65, 34.234);
3958  test_varargs_macros ();
3959
3960  // Check flexible array members.
3961  struct incomplete_array *ia =
3962    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3963  ia->datasize = 10;
3964  for (int i = 0; i < ia->datasize; ++i)
3965    ia->data[i] = i * 1.234;
3966
3967  // Check named initializers.
3968  struct named_init ni = {
3969    .number = 34,
3970    .name = L"Test wide string",
3971    .average = 543.34343,
3972  };
3973
3974  ni.number = 58;
3975
3976  int dynamic_array[ni.number];
3977  dynamic_array[ni.number - 1] = 543;
3978
3979  // work around unused variable warnings
3980  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3981	  || dynamic_array[ni.number - 1] != 543);
3982
3983  ;
3984  return 0;
3985}
3986_ACEOF
3987for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3988do
3989  CC="$ac_save_CC $ac_arg"
3990  if ac_fn_c_try_compile "$LINENO"; then :
3991  ac_cv_prog_cc_c99=$ac_arg
3992fi
3993rm -f core conftest.err conftest.$ac_objext
3994  test "x$ac_cv_prog_cc_c99" != "xno" && break
3995done
3996rm -f conftest.$ac_ext
3997CC=$ac_save_CC
3998
3999fi
4000# AC_CACHE_VAL
4001case "x$ac_cv_prog_cc_c99" in
4002  x)
4003    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4004$as_echo "none needed" >&6; } ;;
4005  xno)
4006    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4007$as_echo "unsupported" >&6; } ;;
4008  *)
4009    CC="$CC $ac_cv_prog_cc_c99"
4010    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4011$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4012esac
4013if test "x$ac_cv_prog_cc_c99" != xno; then :
4014
4015fi
4016
4017
4018
4019ac_ext=c
4020ac_cpp='$CPP $CPPFLAGS'
4021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4023ac_compiler_gnu=$ac_cv_c_compiler_gnu
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4025$as_echo_n "checking how to run the C preprocessor... " >&6; }
4026# On Suns, sometimes $CPP names a directory.
4027if test -n "$CPP" && test -d "$CPP"; then
4028  CPP=
4029fi
4030if test -z "$CPP"; then
4031  if ${ac_cv_prog_CPP+:} false; then :
4032  $as_echo_n "(cached) " >&6
4033else
4034      # Double quotes because CPP needs to be expanded
4035    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4036    do
4037      ac_preproc_ok=false
4038for ac_c_preproc_warn_flag in '' yes
4039do
4040  # Use a header file that comes with gcc, so configuring glibc
4041  # with a fresh cross-compiler works.
4042  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4043  # <limits.h> exists even on freestanding compilers.
4044  # On the NeXT, cc -E runs the code through the compiler's parser,
4045  # not just through cpp. "Syntax error" is here to catch this case.
4046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047/* end confdefs.h.  */
4048#ifdef __STDC__
4049# include <limits.h>
4050#else
4051# include <assert.h>
4052#endif
4053		     Syntax error
4054_ACEOF
4055if ac_fn_c_try_cpp "$LINENO"; then :
4056
4057else
4058  # Broken: fails on valid input.
4059continue
4060fi
4061rm -f conftest.err conftest.i conftest.$ac_ext
4062
4063  # OK, works on sane cases.  Now check whether nonexistent headers
4064  # can be detected and how.
4065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066/* end confdefs.h.  */
4067#include <ac_nonexistent.h>
4068_ACEOF
4069if ac_fn_c_try_cpp "$LINENO"; then :
4070  # Broken: success on invalid input.
4071continue
4072else
4073  # Passes both tests.
4074ac_preproc_ok=:
4075break
4076fi
4077rm -f conftest.err conftest.i conftest.$ac_ext
4078
4079done
4080# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4081rm -f conftest.i conftest.err conftest.$ac_ext
4082if $ac_preproc_ok; then :
4083  break
4084fi
4085
4086    done
4087    ac_cv_prog_CPP=$CPP
4088
4089fi
4090  CPP=$ac_cv_prog_CPP
4091else
4092  ac_cv_prog_CPP=$CPP
4093fi
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4095$as_echo "$CPP" >&6; }
4096ac_preproc_ok=false
4097for ac_c_preproc_warn_flag in '' yes
4098do
4099  # Use a header file that comes with gcc, so configuring glibc
4100  # with a fresh cross-compiler works.
4101  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4102  # <limits.h> exists even on freestanding compilers.
4103  # On the NeXT, cc -E runs the code through the compiler's parser,
4104  # not just through cpp. "Syntax error" is here to catch this case.
4105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106/* end confdefs.h.  */
4107#ifdef __STDC__
4108# include <limits.h>
4109#else
4110# include <assert.h>
4111#endif
4112		     Syntax error
4113_ACEOF
4114if ac_fn_c_try_cpp "$LINENO"; then :
4115
4116else
4117  # Broken: fails on valid input.
4118continue
4119fi
4120rm -f conftest.err conftest.i conftest.$ac_ext
4121
4122  # OK, works on sane cases.  Now check whether nonexistent headers
4123  # can be detected and how.
4124  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125/* end confdefs.h.  */
4126#include <ac_nonexistent.h>
4127_ACEOF
4128if ac_fn_c_try_cpp "$LINENO"; then :
4129  # Broken: success on invalid input.
4130continue
4131else
4132  # Passes both tests.
4133ac_preproc_ok=:
4134break
4135fi
4136rm -f conftest.err conftest.i conftest.$ac_ext
4137
4138done
4139# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4140rm -f conftest.i conftest.err conftest.$ac_ext
4141if $ac_preproc_ok; then :
4142
4143else
4144  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4146as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4147See \`config.log' for more details" "$LINENO" 5; }
4148fi
4149
4150ac_ext=c
4151ac_cpp='$CPP $CPPFLAGS'
4152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4154ac_compiler_gnu=$ac_cv_c_compiler_gnu
4155
4156
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4158$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4159if ${ac_cv_path_GREP+:} false; then :
4160  $as_echo_n "(cached) " >&6
4161else
4162  if test -z "$GREP"; then
4163  ac_path_GREP_found=false
4164  # Loop through the user's path and test for each of PROGNAME-LIST
4165  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4167do
4168  IFS=$as_save_IFS
4169  test -z "$as_dir" && as_dir=.
4170    for ac_prog in grep ggrep; do
4171    for ac_exec_ext in '' $ac_executable_extensions; do
4172      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4173      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4174# Check for GNU ac_path_GREP and select it if it is found.
4175  # Check for GNU $ac_path_GREP
4176case `"$ac_path_GREP" --version 2>&1` in
4177*GNU*)
4178  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4179*)
4180  ac_count=0
4181  $as_echo_n 0123456789 >"conftest.in"
4182  while :
4183  do
4184    cat "conftest.in" "conftest.in" >"conftest.tmp"
4185    mv "conftest.tmp" "conftest.in"
4186    cp "conftest.in" "conftest.nl"
4187    $as_echo 'GREP' >> "conftest.nl"
4188    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4189    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4190    as_fn_arith $ac_count + 1 && ac_count=$as_val
4191    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4192      # Best one so far, save it but keep looking for a better one
4193      ac_cv_path_GREP="$ac_path_GREP"
4194      ac_path_GREP_max=$ac_count
4195    fi
4196    # 10*(2^10) chars as input seems more than enough
4197    test $ac_count -gt 10 && break
4198  done
4199  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4200esac
4201
4202      $ac_path_GREP_found && break 3
4203    done
4204  done
4205  done
4206IFS=$as_save_IFS
4207  if test -z "$ac_cv_path_GREP"; then
4208    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4209  fi
4210else
4211  ac_cv_path_GREP=$GREP
4212fi
4213
4214fi
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4216$as_echo "$ac_cv_path_GREP" >&6; }
4217 GREP="$ac_cv_path_GREP"
4218
4219
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4221$as_echo_n "checking for egrep... " >&6; }
4222if ${ac_cv_path_EGREP+:} false; then :
4223  $as_echo_n "(cached) " >&6
4224else
4225  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4226   then ac_cv_path_EGREP="$GREP -E"
4227   else
4228     if test -z "$EGREP"; then
4229  ac_path_EGREP_found=false
4230  # Loop through the user's path and test for each of PROGNAME-LIST
4231  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4233do
4234  IFS=$as_save_IFS
4235  test -z "$as_dir" && as_dir=.
4236    for ac_prog in egrep; do
4237    for ac_exec_ext in '' $ac_executable_extensions; do
4238      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4239      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4240# Check for GNU ac_path_EGREP and select it if it is found.
4241  # Check for GNU $ac_path_EGREP
4242case `"$ac_path_EGREP" --version 2>&1` in
4243*GNU*)
4244  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4245*)
4246  ac_count=0
4247  $as_echo_n 0123456789 >"conftest.in"
4248  while :
4249  do
4250    cat "conftest.in" "conftest.in" >"conftest.tmp"
4251    mv "conftest.tmp" "conftest.in"
4252    cp "conftest.in" "conftest.nl"
4253    $as_echo 'EGREP' >> "conftest.nl"
4254    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4255    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4256    as_fn_arith $ac_count + 1 && ac_count=$as_val
4257    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4258      # Best one so far, save it but keep looking for a better one
4259      ac_cv_path_EGREP="$ac_path_EGREP"
4260      ac_path_EGREP_max=$ac_count
4261    fi
4262    # 10*(2^10) chars as input seems more than enough
4263    test $ac_count -gt 10 && break
4264  done
4265  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4266esac
4267
4268      $ac_path_EGREP_found && break 3
4269    done
4270  done
4271  done
4272IFS=$as_save_IFS
4273  if test -z "$ac_cv_path_EGREP"; then
4274    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4275  fi
4276else
4277  ac_cv_path_EGREP=$EGREP
4278fi
4279
4280   fi
4281fi
4282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4283$as_echo "$ac_cv_path_EGREP" >&6; }
4284 EGREP="$ac_cv_path_EGREP"
4285
4286
4287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4288$as_echo_n "checking for ANSI C header files... " >&6; }
4289if ${ac_cv_header_stdc+:} false; then :
4290  $as_echo_n "(cached) " >&6
4291else
4292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293/* end confdefs.h.  */
4294#include <stdlib.h>
4295#include <stdarg.h>
4296#include <string.h>
4297#include <float.h>
4298
4299int
4300main ()
4301{
4302
4303  ;
4304  return 0;
4305}
4306_ACEOF
4307if ac_fn_c_try_compile "$LINENO"; then :
4308  ac_cv_header_stdc=yes
4309else
4310  ac_cv_header_stdc=no
4311fi
4312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313
4314if test $ac_cv_header_stdc = yes; then
4315  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4317/* end confdefs.h.  */
4318#include <string.h>
4319
4320_ACEOF
4321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4322  $EGREP "memchr" >/dev/null 2>&1; then :
4323
4324else
4325  ac_cv_header_stdc=no
4326fi
4327rm -f conftest*
4328
4329fi
4330
4331if test $ac_cv_header_stdc = yes; then
4332  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334/* end confdefs.h.  */
4335#include <stdlib.h>
4336
4337_ACEOF
4338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4339  $EGREP "free" >/dev/null 2>&1; then :
4340
4341else
4342  ac_cv_header_stdc=no
4343fi
4344rm -f conftest*
4345
4346fi
4347
4348if test $ac_cv_header_stdc = yes; then
4349  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4350  if test "$cross_compiling" = yes; then :
4351  :
4352else
4353  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354/* end confdefs.h.  */
4355#include <ctype.h>
4356#include <stdlib.h>
4357#if ((' ' & 0x0FF) == 0x020)
4358# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4359# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4360#else
4361# define ISLOWER(c) \
4362		   (('a' <= (c) && (c) <= 'i') \
4363		     || ('j' <= (c) && (c) <= 'r') \
4364		     || ('s' <= (c) && (c) <= 'z'))
4365# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4366#endif
4367
4368#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4369int
4370main ()
4371{
4372  int i;
4373  for (i = 0; i < 256; i++)
4374    if (XOR (islower (i), ISLOWER (i))
4375	|| toupper (i) != TOUPPER (i))
4376      return 2;
4377  return 0;
4378}
4379_ACEOF
4380if ac_fn_c_try_run "$LINENO"; then :
4381
4382else
4383  ac_cv_header_stdc=no
4384fi
4385rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4386  conftest.$ac_objext conftest.beam conftest.$ac_ext
4387fi
4388
4389fi
4390fi
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4392$as_echo "$ac_cv_header_stdc" >&6; }
4393if test $ac_cv_header_stdc = yes; then
4394
4395$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4396
4397fi
4398
4399# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4400for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4401		  inttypes.h stdint.h unistd.h
4402do :
4403  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4404ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4405"
4406if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4407  cat >>confdefs.h <<_ACEOF
4408#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4409_ACEOF
4410
4411fi
4412
4413done
4414
4415
4416
4417
4418
4419
4420ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4421if test "x$ac_cv_have_decl___clang__" = xyes; then :
4422  CLANGCC="yes"
4423else
4424  CLANGCC="no"
4425fi
4426
4427ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4428if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4429  INTELCC="yes"
4430else
4431  INTELCC="no"
4432fi
4433
4434ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4435if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4436  SUNCC="yes"
4437else
4438  SUNCC="no"
4439fi
4440
4441
4442
4443
4444
4445
4446
4447
4448if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4449	if test -n "$ac_tool_prefix"; then
4450  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4451set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4453$as_echo_n "checking for $ac_word... " >&6; }
4454if ${ac_cv_path_PKG_CONFIG+:} false; then :
4455  $as_echo_n "(cached) " >&6
4456else
4457  case $PKG_CONFIG in
4458  [\\/]* | ?:[\\/]*)
4459  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4460  ;;
4461  *)
4462  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463for as_dir in $PATH
4464do
4465  IFS=$as_save_IFS
4466  test -z "$as_dir" && as_dir=.
4467    for ac_exec_ext in '' $ac_executable_extensions; do
4468  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4470    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4471    break 2
4472  fi
4473done
4474  done
4475IFS=$as_save_IFS
4476
4477  ;;
4478esac
4479fi
4480PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4481if test -n "$PKG_CONFIG"; then
4482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4483$as_echo "$PKG_CONFIG" >&6; }
4484else
4485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486$as_echo "no" >&6; }
4487fi
4488
4489
4490fi
4491if test -z "$ac_cv_path_PKG_CONFIG"; then
4492  ac_pt_PKG_CONFIG=$PKG_CONFIG
4493  # Extract the first word of "pkg-config", so it can be a program name with args.
4494set dummy pkg-config; ac_word=$2
4495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4496$as_echo_n "checking for $ac_word... " >&6; }
4497if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4498  $as_echo_n "(cached) " >&6
4499else
4500  case $ac_pt_PKG_CONFIG in
4501  [\\/]* | ?:[\\/]*)
4502  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4503  ;;
4504  *)
4505  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506for as_dir in $PATH
4507do
4508  IFS=$as_save_IFS
4509  test -z "$as_dir" && as_dir=.
4510    for ac_exec_ext in '' $ac_executable_extensions; do
4511  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4513    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4514    break 2
4515  fi
4516done
4517  done
4518IFS=$as_save_IFS
4519
4520  ;;
4521esac
4522fi
4523ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4524if test -n "$ac_pt_PKG_CONFIG"; then
4525  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4526$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4527else
4528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529$as_echo "no" >&6; }
4530fi
4531
4532  if test "x$ac_pt_PKG_CONFIG" = x; then
4533    PKG_CONFIG=""
4534  else
4535    case $cross_compiling:$ac_tool_warned in
4536yes:)
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4539ac_tool_warned=yes ;;
4540esac
4541    PKG_CONFIG=$ac_pt_PKG_CONFIG
4542  fi
4543else
4544  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4545fi
4546
4547fi
4548if test -n "$PKG_CONFIG"; then
4549	_pkg_min_version=0.9.0
4550	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4551$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4552	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4553		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4554$as_echo "yes" >&6; }
4555	else
4556		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4557$as_echo "no" >&6; }
4558		PKG_CONFIG=""
4559	fi
4560fi
4561# Make sure we can run config.sub.
4562$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4563  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4564
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4566$as_echo_n "checking build system type... " >&6; }
4567if ${ac_cv_build+:} false; then :
4568  $as_echo_n "(cached) " >&6
4569else
4570  ac_build_alias=$build_alias
4571test "x$ac_build_alias" = x &&
4572  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4573test "x$ac_build_alias" = x &&
4574  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4575ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4576  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4577
4578fi
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4580$as_echo "$ac_cv_build" >&6; }
4581case $ac_cv_build in
4582*-*-*) ;;
4583*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4584esac
4585build=$ac_cv_build
4586ac_save_IFS=$IFS; IFS='-'
4587set x $ac_cv_build
4588shift
4589build_cpu=$1
4590build_vendor=$2
4591shift; shift
4592# Remember, the first character of IFS is used to create $*,
4593# except with old shells:
4594build_os=$*
4595IFS=$ac_save_IFS
4596case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4597
4598
4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4600$as_echo_n "checking host system type... " >&6; }
4601if ${ac_cv_host+:} false; then :
4602  $as_echo_n "(cached) " >&6
4603else
4604  if test "x$host_alias" = x; then
4605  ac_cv_host=$ac_cv_build
4606else
4607  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4608    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4609fi
4610
4611fi
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4613$as_echo "$ac_cv_host" >&6; }
4614case $ac_cv_host in
4615*-*-*) ;;
4616*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4617esac
4618host=$ac_cv_host
4619ac_save_IFS=$IFS; IFS='-'
4620set x $ac_cv_host
4621shift
4622host_cpu=$1
4623host_vendor=$2
4624shift; shift
4625# Remember, the first character of IFS is used to create $*,
4626# except with old shells:
4627host_os=$*
4628IFS=$ac_save_IFS
4629case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4630
4631
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4633$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4634if ${ac_cv_path_SED+:} false; then :
4635  $as_echo_n "(cached) " >&6
4636else
4637            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4638     for ac_i in 1 2 3 4 5 6 7; do
4639       ac_script="$ac_script$as_nl$ac_script"
4640     done
4641     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4642     { ac_script=; unset ac_script;}
4643     if test -z "$SED"; then
4644  ac_path_SED_found=false
4645  # Loop through the user's path and test for each of PROGNAME-LIST
4646  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647for as_dir in $PATH
4648do
4649  IFS=$as_save_IFS
4650  test -z "$as_dir" && as_dir=.
4651    for ac_prog in sed gsed; do
4652    for ac_exec_ext in '' $ac_executable_extensions; do
4653      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4654      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4655# Check for GNU ac_path_SED and select it if it is found.
4656  # Check for GNU $ac_path_SED
4657case `"$ac_path_SED" --version 2>&1` in
4658*GNU*)
4659  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4660*)
4661  ac_count=0
4662  $as_echo_n 0123456789 >"conftest.in"
4663  while :
4664  do
4665    cat "conftest.in" "conftest.in" >"conftest.tmp"
4666    mv "conftest.tmp" "conftest.in"
4667    cp "conftest.in" "conftest.nl"
4668    $as_echo '' >> "conftest.nl"
4669    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4670    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4671    as_fn_arith $ac_count + 1 && ac_count=$as_val
4672    if test $ac_count -gt ${ac_path_SED_max-0}; then
4673      # Best one so far, save it but keep looking for a better one
4674      ac_cv_path_SED="$ac_path_SED"
4675      ac_path_SED_max=$ac_count
4676    fi
4677    # 10*(2^10) chars as input seems more than enough
4678    test $ac_count -gt 10 && break
4679  done
4680  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4681esac
4682
4683      $ac_path_SED_found && break 3
4684    done
4685  done
4686  done
4687IFS=$as_save_IFS
4688  if test -z "$ac_cv_path_SED"; then
4689    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4690  fi
4691else
4692  ac_cv_path_SED=$SED
4693fi
4694
4695fi
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4697$as_echo "$ac_cv_path_SED" >&6; }
4698 SED="$ac_cv_path_SED"
4699  rm -f conftest.sed
4700
4701
4702
4703
4704
4705
4706# Check whether --enable-selective-werror was given.
4707if test "${enable_selective_werror+set}" = set; then :
4708  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4709else
4710  SELECTIVE_WERROR=yes
4711fi
4712
4713
4714
4715
4716
4717# -v is too short to test reliably with XORG_TESTSET_CFLAG
4718if test "x$SUNCC" = "xyes"; then
4719    BASE_CFLAGS="-v"
4720else
4721    BASE_CFLAGS=""
4722fi
4723
4724# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738xorg_testset_save_CFLAGS="$CFLAGS"
4739
4740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4741	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4742	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4743$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4744if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4745  $as_echo_n "(cached) " >&6
4746else
4747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748/* end confdefs.h.  */
4749int i;
4750_ACEOF
4751if ac_fn_c_try_compile "$LINENO"; then :
4752  xorg_cv_cc_flag_unknown_warning_option=yes
4753else
4754  xorg_cv_cc_flag_unknown_warning_option=no
4755fi
4756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757fi
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4759$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4760	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4761	CFLAGS="$xorg_testset_save_CFLAGS"
4762fi
4763
4764if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4765	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4766		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4767	fi
4768	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4769	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4770$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4771if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4772  $as_echo_n "(cached) " >&6
4773else
4774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775/* end confdefs.h.  */
4776int i;
4777_ACEOF
4778if ac_fn_c_try_compile "$LINENO"; then :
4779  xorg_cv_cc_flag_unused_command_line_argument=yes
4780else
4781  xorg_cv_cc_flag_unused_command_line_argument=no
4782fi
4783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784fi
4785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4786$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4787	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4788	CFLAGS="$xorg_testset_save_CFLAGS"
4789fi
4790
4791found="no"
4792
4793	if test $found = "no" ; then
4794		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4795			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4796		fi
4797
4798		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4799			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4800		fi
4801
4802		CFLAGS="$CFLAGS -Wall"
4803
4804		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4805$as_echo_n "checking if $CC supports -Wall... " >&6; }
4806		cacheid=xorg_cv_cc_flag__Wall
4807		if eval \${$cacheid+:} false; then :
4808  $as_echo_n "(cached) " >&6
4809else
4810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811/* end confdefs.h.  */
4812int i;
4813int
4814main ()
4815{
4816
4817  ;
4818  return 0;
4819}
4820_ACEOF
4821if ac_fn_c_try_link "$LINENO"; then :
4822  eval $cacheid=yes
4823else
4824  eval $cacheid=no
4825fi
4826rm -f core conftest.err conftest.$ac_objext \
4827    conftest$ac_exeext conftest.$ac_ext
4828fi
4829
4830
4831		CFLAGS="$xorg_testset_save_CFLAGS"
4832
4833		eval supported=\$$cacheid
4834		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4835$as_echo "$supported" >&6; }
4836		if test "$supported" = "yes" ; then
4837			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4838			found="yes"
4839		fi
4840	fi
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856xorg_testset_save_CFLAGS="$CFLAGS"
4857
4858if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4859	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4860	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4861$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4862if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4863  $as_echo_n "(cached) " >&6
4864else
4865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866/* end confdefs.h.  */
4867int i;
4868_ACEOF
4869if ac_fn_c_try_compile "$LINENO"; then :
4870  xorg_cv_cc_flag_unknown_warning_option=yes
4871else
4872  xorg_cv_cc_flag_unknown_warning_option=no
4873fi
4874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875fi
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4877$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4878	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4879	CFLAGS="$xorg_testset_save_CFLAGS"
4880fi
4881
4882if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4883	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4884		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4885	fi
4886	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4887	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4888$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4889if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4890  $as_echo_n "(cached) " >&6
4891else
4892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893/* end confdefs.h.  */
4894int i;
4895_ACEOF
4896if ac_fn_c_try_compile "$LINENO"; then :
4897  xorg_cv_cc_flag_unused_command_line_argument=yes
4898else
4899  xorg_cv_cc_flag_unused_command_line_argument=no
4900fi
4901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902fi
4903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4904$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4905	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4906	CFLAGS="$xorg_testset_save_CFLAGS"
4907fi
4908
4909found="no"
4910
4911	if test $found = "no" ; then
4912		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4913			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4914		fi
4915
4916		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4917			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4918		fi
4919
4920		CFLAGS="$CFLAGS -Wpointer-arith"
4921
4922		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4923$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4924		cacheid=xorg_cv_cc_flag__Wpointer_arith
4925		if eval \${$cacheid+:} false; then :
4926  $as_echo_n "(cached) " >&6
4927else
4928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929/* end confdefs.h.  */
4930int i;
4931int
4932main ()
4933{
4934
4935  ;
4936  return 0;
4937}
4938_ACEOF
4939if ac_fn_c_try_link "$LINENO"; then :
4940  eval $cacheid=yes
4941else
4942  eval $cacheid=no
4943fi
4944rm -f core conftest.err conftest.$ac_objext \
4945    conftest$ac_exeext conftest.$ac_ext
4946fi
4947
4948
4949		CFLAGS="$xorg_testset_save_CFLAGS"
4950
4951		eval supported=\$$cacheid
4952		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4953$as_echo "$supported" >&6; }
4954		if test "$supported" = "yes" ; then
4955			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4956			found="yes"
4957		fi
4958	fi
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974xorg_testset_save_CFLAGS="$CFLAGS"
4975
4976if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4977	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4978	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4979$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4980if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4981  $as_echo_n "(cached) " >&6
4982else
4983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984/* end confdefs.h.  */
4985int i;
4986_ACEOF
4987if ac_fn_c_try_compile "$LINENO"; then :
4988  xorg_cv_cc_flag_unknown_warning_option=yes
4989else
4990  xorg_cv_cc_flag_unknown_warning_option=no
4991fi
4992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993fi
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4995$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4996	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4997	CFLAGS="$xorg_testset_save_CFLAGS"
4998fi
4999
5000if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5001	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5002		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5003	fi
5004	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5005	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5006$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5007if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5008  $as_echo_n "(cached) " >&6
5009else
5010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011/* end confdefs.h.  */
5012int i;
5013_ACEOF
5014if ac_fn_c_try_compile "$LINENO"; then :
5015  xorg_cv_cc_flag_unused_command_line_argument=yes
5016else
5017  xorg_cv_cc_flag_unused_command_line_argument=no
5018fi
5019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5020fi
5021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5022$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5023	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5024	CFLAGS="$xorg_testset_save_CFLAGS"
5025fi
5026
5027found="no"
5028
5029	if test $found = "no" ; then
5030		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5031			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5032		fi
5033
5034		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5035			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5036		fi
5037
5038		CFLAGS="$CFLAGS -Wmissing-declarations"
5039
5040		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5041$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5042		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5043		if eval \${$cacheid+:} false; then :
5044  $as_echo_n "(cached) " >&6
5045else
5046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047/* end confdefs.h.  */
5048int i;
5049int
5050main ()
5051{
5052
5053  ;
5054  return 0;
5055}
5056_ACEOF
5057if ac_fn_c_try_link "$LINENO"; then :
5058  eval $cacheid=yes
5059else
5060  eval $cacheid=no
5061fi
5062rm -f core conftest.err conftest.$ac_objext \
5063    conftest$ac_exeext conftest.$ac_ext
5064fi
5065
5066
5067		CFLAGS="$xorg_testset_save_CFLAGS"
5068
5069		eval supported=\$$cacheid
5070		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5071$as_echo "$supported" >&6; }
5072		if test "$supported" = "yes" ; then
5073			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5074			found="yes"
5075		fi
5076	fi
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092xorg_testset_save_CFLAGS="$CFLAGS"
5093
5094if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5095	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5096	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5097$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5098if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5099  $as_echo_n "(cached) " >&6
5100else
5101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102/* end confdefs.h.  */
5103int i;
5104_ACEOF
5105if ac_fn_c_try_compile "$LINENO"; then :
5106  xorg_cv_cc_flag_unknown_warning_option=yes
5107else
5108  xorg_cv_cc_flag_unknown_warning_option=no
5109fi
5110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111fi
5112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5113$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5114	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5115	CFLAGS="$xorg_testset_save_CFLAGS"
5116fi
5117
5118if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5119	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5120		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5121	fi
5122	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5123	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5124$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5125if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5126  $as_echo_n "(cached) " >&6
5127else
5128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129/* end confdefs.h.  */
5130int i;
5131_ACEOF
5132if ac_fn_c_try_compile "$LINENO"; then :
5133  xorg_cv_cc_flag_unused_command_line_argument=yes
5134else
5135  xorg_cv_cc_flag_unused_command_line_argument=no
5136fi
5137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138fi
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5140$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5141	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5142	CFLAGS="$xorg_testset_save_CFLAGS"
5143fi
5144
5145found="no"
5146
5147	if test $found = "no" ; then
5148		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5149			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5150		fi
5151
5152		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5153			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5154		fi
5155
5156		CFLAGS="$CFLAGS -Wformat=2"
5157
5158		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5159$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5160		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5161		if eval \${$cacheid+:} false; then :
5162  $as_echo_n "(cached) " >&6
5163else
5164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5165/* end confdefs.h.  */
5166int i;
5167int
5168main ()
5169{
5170
5171  ;
5172  return 0;
5173}
5174_ACEOF
5175if ac_fn_c_try_link "$LINENO"; then :
5176  eval $cacheid=yes
5177else
5178  eval $cacheid=no
5179fi
5180rm -f core conftest.err conftest.$ac_objext \
5181    conftest$ac_exeext conftest.$ac_ext
5182fi
5183
5184
5185		CFLAGS="$xorg_testset_save_CFLAGS"
5186
5187		eval supported=\$$cacheid
5188		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5189$as_echo "$supported" >&6; }
5190		if test "$supported" = "yes" ; then
5191			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5192			found="yes"
5193		fi
5194	fi
5195
5196	if test $found = "no" ; then
5197		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5198			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5199		fi
5200
5201		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5202			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5203		fi
5204
5205		CFLAGS="$CFLAGS -Wformat"
5206
5207		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5208$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5209		cacheid=xorg_cv_cc_flag__Wformat
5210		if eval \${$cacheid+:} false; then :
5211  $as_echo_n "(cached) " >&6
5212else
5213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214/* end confdefs.h.  */
5215int i;
5216int
5217main ()
5218{
5219
5220  ;
5221  return 0;
5222}
5223_ACEOF
5224if ac_fn_c_try_link "$LINENO"; then :
5225  eval $cacheid=yes
5226else
5227  eval $cacheid=no
5228fi
5229rm -f core conftest.err conftest.$ac_objext \
5230    conftest$ac_exeext conftest.$ac_ext
5231fi
5232
5233
5234		CFLAGS="$xorg_testset_save_CFLAGS"
5235
5236		eval supported=\$$cacheid
5237		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5238$as_echo "$supported" >&6; }
5239		if test "$supported" = "yes" ; then
5240			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5241			found="yes"
5242		fi
5243	fi
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261xorg_testset_save_CFLAGS="$CFLAGS"
5262
5263if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5264	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5265	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5266$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5267if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5268  $as_echo_n "(cached) " >&6
5269else
5270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271/* end confdefs.h.  */
5272int i;
5273_ACEOF
5274if ac_fn_c_try_compile "$LINENO"; then :
5275  xorg_cv_cc_flag_unknown_warning_option=yes
5276else
5277  xorg_cv_cc_flag_unknown_warning_option=no
5278fi
5279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5280fi
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5282$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5283	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5284	CFLAGS="$xorg_testset_save_CFLAGS"
5285fi
5286
5287if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5288	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5289		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5290	fi
5291	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5292	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5293$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5294if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5295  $as_echo_n "(cached) " >&6
5296else
5297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298/* end confdefs.h.  */
5299int i;
5300_ACEOF
5301if ac_fn_c_try_compile "$LINENO"; then :
5302  xorg_cv_cc_flag_unused_command_line_argument=yes
5303else
5304  xorg_cv_cc_flag_unused_command_line_argument=no
5305fi
5306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307fi
5308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5309$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5310	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5311	CFLAGS="$xorg_testset_save_CFLAGS"
5312fi
5313
5314found="no"
5315
5316	if test $found = "no" ; then
5317		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5318			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5319		fi
5320
5321		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5322			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5323		fi
5324
5325		CFLAGS="$CFLAGS -Wstrict-prototypes"
5326
5327		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5328$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5329		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5330		if eval \${$cacheid+:} false; then :
5331  $as_echo_n "(cached) " >&6
5332else
5333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334/* end confdefs.h.  */
5335int i;
5336int
5337main ()
5338{
5339
5340  ;
5341  return 0;
5342}
5343_ACEOF
5344if ac_fn_c_try_link "$LINENO"; then :
5345  eval $cacheid=yes
5346else
5347  eval $cacheid=no
5348fi
5349rm -f core conftest.err conftest.$ac_objext \
5350    conftest$ac_exeext conftest.$ac_ext
5351fi
5352
5353
5354		CFLAGS="$xorg_testset_save_CFLAGS"
5355
5356		eval supported=\$$cacheid
5357		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5358$as_echo "$supported" >&6; }
5359		if test "$supported" = "yes" ; then
5360			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5361			found="yes"
5362		fi
5363	fi
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379xorg_testset_save_CFLAGS="$CFLAGS"
5380
5381if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5382	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5383	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5384$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5385if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5386  $as_echo_n "(cached) " >&6
5387else
5388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389/* end confdefs.h.  */
5390int i;
5391_ACEOF
5392if ac_fn_c_try_compile "$LINENO"; then :
5393  xorg_cv_cc_flag_unknown_warning_option=yes
5394else
5395  xorg_cv_cc_flag_unknown_warning_option=no
5396fi
5397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398fi
5399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5400$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5401	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5402	CFLAGS="$xorg_testset_save_CFLAGS"
5403fi
5404
5405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5406	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5407		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5408	fi
5409	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5410	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5411$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5412if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5413  $as_echo_n "(cached) " >&6
5414else
5415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416/* end confdefs.h.  */
5417int i;
5418_ACEOF
5419if ac_fn_c_try_compile "$LINENO"; then :
5420  xorg_cv_cc_flag_unused_command_line_argument=yes
5421else
5422  xorg_cv_cc_flag_unused_command_line_argument=no
5423fi
5424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5425fi
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5427$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5428	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5429	CFLAGS="$xorg_testset_save_CFLAGS"
5430fi
5431
5432found="no"
5433
5434	if test $found = "no" ; then
5435		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5436			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5437		fi
5438
5439		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5440			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5441		fi
5442
5443		CFLAGS="$CFLAGS -Wmissing-prototypes"
5444
5445		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5446$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5447		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5448		if eval \${$cacheid+:} false; then :
5449  $as_echo_n "(cached) " >&6
5450else
5451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452/* end confdefs.h.  */
5453int i;
5454int
5455main ()
5456{
5457
5458  ;
5459  return 0;
5460}
5461_ACEOF
5462if ac_fn_c_try_link "$LINENO"; then :
5463  eval $cacheid=yes
5464else
5465  eval $cacheid=no
5466fi
5467rm -f core conftest.err conftest.$ac_objext \
5468    conftest$ac_exeext conftest.$ac_ext
5469fi
5470
5471
5472		CFLAGS="$xorg_testset_save_CFLAGS"
5473
5474		eval supported=\$$cacheid
5475		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5476$as_echo "$supported" >&6; }
5477		if test "$supported" = "yes" ; then
5478			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5479			found="yes"
5480		fi
5481	fi
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497xorg_testset_save_CFLAGS="$CFLAGS"
5498
5499if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5500	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5501	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5502$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5503if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5504  $as_echo_n "(cached) " >&6
5505else
5506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507/* end confdefs.h.  */
5508int i;
5509_ACEOF
5510if ac_fn_c_try_compile "$LINENO"; then :
5511  xorg_cv_cc_flag_unknown_warning_option=yes
5512else
5513  xorg_cv_cc_flag_unknown_warning_option=no
5514fi
5515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516fi
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5518$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5519	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5520	CFLAGS="$xorg_testset_save_CFLAGS"
5521fi
5522
5523if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5524	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5525		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5526	fi
5527	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5528	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5529$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5530if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5531  $as_echo_n "(cached) " >&6
5532else
5533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534/* end confdefs.h.  */
5535int i;
5536_ACEOF
5537if ac_fn_c_try_compile "$LINENO"; then :
5538  xorg_cv_cc_flag_unused_command_line_argument=yes
5539else
5540  xorg_cv_cc_flag_unused_command_line_argument=no
5541fi
5542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5543fi
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5545$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5546	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5547	CFLAGS="$xorg_testset_save_CFLAGS"
5548fi
5549
5550found="no"
5551
5552	if test $found = "no" ; then
5553		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5554			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5555		fi
5556
5557		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5558			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5559		fi
5560
5561		CFLAGS="$CFLAGS -Wnested-externs"
5562
5563		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5564$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5565		cacheid=xorg_cv_cc_flag__Wnested_externs
5566		if eval \${$cacheid+:} false; then :
5567  $as_echo_n "(cached) " >&6
5568else
5569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570/* end confdefs.h.  */
5571int i;
5572int
5573main ()
5574{
5575
5576  ;
5577  return 0;
5578}
5579_ACEOF
5580if ac_fn_c_try_link "$LINENO"; then :
5581  eval $cacheid=yes
5582else
5583  eval $cacheid=no
5584fi
5585rm -f core conftest.err conftest.$ac_objext \
5586    conftest$ac_exeext conftest.$ac_ext
5587fi
5588
5589
5590		CFLAGS="$xorg_testset_save_CFLAGS"
5591
5592		eval supported=\$$cacheid
5593		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5594$as_echo "$supported" >&6; }
5595		if test "$supported" = "yes" ; then
5596			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5597			found="yes"
5598		fi
5599	fi
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615xorg_testset_save_CFLAGS="$CFLAGS"
5616
5617if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5618	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5619	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5620$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5621if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5622  $as_echo_n "(cached) " >&6
5623else
5624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625/* end confdefs.h.  */
5626int i;
5627_ACEOF
5628if ac_fn_c_try_compile "$LINENO"; then :
5629  xorg_cv_cc_flag_unknown_warning_option=yes
5630else
5631  xorg_cv_cc_flag_unknown_warning_option=no
5632fi
5633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634fi
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5636$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5637	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5638	CFLAGS="$xorg_testset_save_CFLAGS"
5639fi
5640
5641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5642	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5643		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5644	fi
5645	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5646	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5647$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5648if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5649  $as_echo_n "(cached) " >&6
5650else
5651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652/* end confdefs.h.  */
5653int i;
5654_ACEOF
5655if ac_fn_c_try_compile "$LINENO"; then :
5656  xorg_cv_cc_flag_unused_command_line_argument=yes
5657else
5658  xorg_cv_cc_flag_unused_command_line_argument=no
5659fi
5660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5661fi
5662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5663$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5664	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5665	CFLAGS="$xorg_testset_save_CFLAGS"
5666fi
5667
5668found="no"
5669
5670	if test $found = "no" ; then
5671		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5672			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5673		fi
5674
5675		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5676			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5677		fi
5678
5679		CFLAGS="$CFLAGS -Wbad-function-cast"
5680
5681		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5682$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5683		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5684		if eval \${$cacheid+:} false; then :
5685  $as_echo_n "(cached) " >&6
5686else
5687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688/* end confdefs.h.  */
5689int i;
5690int
5691main ()
5692{
5693
5694  ;
5695  return 0;
5696}
5697_ACEOF
5698if ac_fn_c_try_link "$LINENO"; then :
5699  eval $cacheid=yes
5700else
5701  eval $cacheid=no
5702fi
5703rm -f core conftest.err conftest.$ac_objext \
5704    conftest$ac_exeext conftest.$ac_ext
5705fi
5706
5707
5708		CFLAGS="$xorg_testset_save_CFLAGS"
5709
5710		eval supported=\$$cacheid
5711		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5712$as_echo "$supported" >&6; }
5713		if test "$supported" = "yes" ; then
5714			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5715			found="yes"
5716		fi
5717	fi
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733xorg_testset_save_CFLAGS="$CFLAGS"
5734
5735if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5736	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5737	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5738$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5739if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5740  $as_echo_n "(cached) " >&6
5741else
5742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743/* end confdefs.h.  */
5744int i;
5745_ACEOF
5746if ac_fn_c_try_compile "$LINENO"; then :
5747  xorg_cv_cc_flag_unknown_warning_option=yes
5748else
5749  xorg_cv_cc_flag_unknown_warning_option=no
5750fi
5751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5752fi
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5754$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5755	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5756	CFLAGS="$xorg_testset_save_CFLAGS"
5757fi
5758
5759if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5760	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5761		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5762	fi
5763	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5764	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5765$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5766if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5767  $as_echo_n "(cached) " >&6
5768else
5769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770/* end confdefs.h.  */
5771int i;
5772_ACEOF
5773if ac_fn_c_try_compile "$LINENO"; then :
5774  xorg_cv_cc_flag_unused_command_line_argument=yes
5775else
5776  xorg_cv_cc_flag_unused_command_line_argument=no
5777fi
5778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779fi
5780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5781$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5782	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5783	CFLAGS="$xorg_testset_save_CFLAGS"
5784fi
5785
5786found="no"
5787
5788	if test $found = "no" ; then
5789		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5790			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5791		fi
5792
5793		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5794			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5795		fi
5796
5797		CFLAGS="$CFLAGS -Wold-style-definition"
5798
5799		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5800$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5801		cacheid=xorg_cv_cc_flag__Wold_style_definition
5802		if eval \${$cacheid+:} false; then :
5803  $as_echo_n "(cached) " >&6
5804else
5805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806/* end confdefs.h.  */
5807int i;
5808int
5809main ()
5810{
5811
5812  ;
5813  return 0;
5814}
5815_ACEOF
5816if ac_fn_c_try_link "$LINENO"; then :
5817  eval $cacheid=yes
5818else
5819  eval $cacheid=no
5820fi
5821rm -f core conftest.err conftest.$ac_objext \
5822    conftest$ac_exeext conftest.$ac_ext
5823fi
5824
5825
5826		CFLAGS="$xorg_testset_save_CFLAGS"
5827
5828		eval supported=\$$cacheid
5829		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5830$as_echo "$supported" >&6; }
5831		if test "$supported" = "yes" ; then
5832			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5833			found="yes"
5834		fi
5835	fi
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851xorg_testset_save_CFLAGS="$CFLAGS"
5852
5853if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5854	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5855	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5856$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5857if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5858  $as_echo_n "(cached) " >&6
5859else
5860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861/* end confdefs.h.  */
5862int i;
5863_ACEOF
5864if ac_fn_c_try_compile "$LINENO"; then :
5865  xorg_cv_cc_flag_unknown_warning_option=yes
5866else
5867  xorg_cv_cc_flag_unknown_warning_option=no
5868fi
5869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870fi
5871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5872$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5873	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5874	CFLAGS="$xorg_testset_save_CFLAGS"
5875fi
5876
5877if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5878	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5879		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5880	fi
5881	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5882	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5883$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5884if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5885  $as_echo_n "(cached) " >&6
5886else
5887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888/* end confdefs.h.  */
5889int i;
5890_ACEOF
5891if ac_fn_c_try_compile "$LINENO"; then :
5892  xorg_cv_cc_flag_unused_command_line_argument=yes
5893else
5894  xorg_cv_cc_flag_unused_command_line_argument=no
5895fi
5896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5897fi
5898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5899$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5900	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5901	CFLAGS="$xorg_testset_save_CFLAGS"
5902fi
5903
5904found="no"
5905
5906	if test $found = "no" ; then
5907		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5908			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5909		fi
5910
5911		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5912			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5913		fi
5914
5915		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5916
5917		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5918$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5919		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5920		if eval \${$cacheid+:} false; then :
5921  $as_echo_n "(cached) " >&6
5922else
5923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924/* end confdefs.h.  */
5925int i;
5926int
5927main ()
5928{
5929
5930  ;
5931  return 0;
5932}
5933_ACEOF
5934if ac_fn_c_try_link "$LINENO"; then :
5935  eval $cacheid=yes
5936else
5937  eval $cacheid=no
5938fi
5939rm -f core conftest.err conftest.$ac_objext \
5940    conftest$ac_exeext conftest.$ac_ext
5941fi
5942
5943
5944		CFLAGS="$xorg_testset_save_CFLAGS"
5945
5946		eval supported=\$$cacheid
5947		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5948$as_echo "$supported" >&6; }
5949		if test "$supported" = "yes" ; then
5950			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5951			found="yes"
5952		fi
5953	fi
5954
5955
5956
5957
5958
5959# This chunk adds additional warnings that could catch undesired effects.
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973xorg_testset_save_CFLAGS="$CFLAGS"
5974
5975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5976	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5977	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5978$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5979if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5980  $as_echo_n "(cached) " >&6
5981else
5982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5983/* end confdefs.h.  */
5984int i;
5985_ACEOF
5986if ac_fn_c_try_compile "$LINENO"; then :
5987  xorg_cv_cc_flag_unknown_warning_option=yes
5988else
5989  xorg_cv_cc_flag_unknown_warning_option=no
5990fi
5991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5992fi
5993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5994$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5995	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5996	CFLAGS="$xorg_testset_save_CFLAGS"
5997fi
5998
5999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6000	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6001		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6002	fi
6003	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6004	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6005$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6006if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6007  $as_echo_n "(cached) " >&6
6008else
6009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010/* end confdefs.h.  */
6011int i;
6012_ACEOF
6013if ac_fn_c_try_compile "$LINENO"; then :
6014  xorg_cv_cc_flag_unused_command_line_argument=yes
6015else
6016  xorg_cv_cc_flag_unused_command_line_argument=no
6017fi
6018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019fi
6020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6021$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6022	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6023	CFLAGS="$xorg_testset_save_CFLAGS"
6024fi
6025
6026found="no"
6027
6028	if test $found = "no" ; then
6029		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6030			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6031		fi
6032
6033		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6034			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6035		fi
6036
6037		CFLAGS="$CFLAGS -Wunused"
6038
6039		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6040$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6041		cacheid=xorg_cv_cc_flag__Wunused
6042		if eval \${$cacheid+:} false; then :
6043  $as_echo_n "(cached) " >&6
6044else
6045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046/* end confdefs.h.  */
6047int i;
6048int
6049main ()
6050{
6051
6052  ;
6053  return 0;
6054}
6055_ACEOF
6056if ac_fn_c_try_link "$LINENO"; then :
6057  eval $cacheid=yes
6058else
6059  eval $cacheid=no
6060fi
6061rm -f core conftest.err conftest.$ac_objext \
6062    conftest$ac_exeext conftest.$ac_ext
6063fi
6064
6065
6066		CFLAGS="$xorg_testset_save_CFLAGS"
6067
6068		eval supported=\$$cacheid
6069		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6070$as_echo "$supported" >&6; }
6071		if test "$supported" = "yes" ; then
6072			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6073			found="yes"
6074		fi
6075	fi
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091xorg_testset_save_CFLAGS="$CFLAGS"
6092
6093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6094	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6095	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6096$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6097if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6098  $as_echo_n "(cached) " >&6
6099else
6100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101/* end confdefs.h.  */
6102int i;
6103_ACEOF
6104if ac_fn_c_try_compile "$LINENO"; then :
6105  xorg_cv_cc_flag_unknown_warning_option=yes
6106else
6107  xorg_cv_cc_flag_unknown_warning_option=no
6108fi
6109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6110fi
6111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6112$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6113	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6114	CFLAGS="$xorg_testset_save_CFLAGS"
6115fi
6116
6117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6118	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6119		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6120	fi
6121	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6122	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6123$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6124if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6125  $as_echo_n "(cached) " >&6
6126else
6127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128/* end confdefs.h.  */
6129int i;
6130_ACEOF
6131if ac_fn_c_try_compile "$LINENO"; then :
6132  xorg_cv_cc_flag_unused_command_line_argument=yes
6133else
6134  xorg_cv_cc_flag_unused_command_line_argument=no
6135fi
6136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6137fi
6138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6139$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6140	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6141	CFLAGS="$xorg_testset_save_CFLAGS"
6142fi
6143
6144found="no"
6145
6146	if test $found = "no" ; then
6147		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6148			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6149		fi
6150
6151		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6152			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6153		fi
6154
6155		CFLAGS="$CFLAGS -Wuninitialized"
6156
6157		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6158$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6159		cacheid=xorg_cv_cc_flag__Wuninitialized
6160		if eval \${$cacheid+:} false; then :
6161  $as_echo_n "(cached) " >&6
6162else
6163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164/* end confdefs.h.  */
6165int i;
6166int
6167main ()
6168{
6169
6170  ;
6171  return 0;
6172}
6173_ACEOF
6174if ac_fn_c_try_link "$LINENO"; then :
6175  eval $cacheid=yes
6176else
6177  eval $cacheid=no
6178fi
6179rm -f core conftest.err conftest.$ac_objext \
6180    conftest$ac_exeext conftest.$ac_ext
6181fi
6182
6183
6184		CFLAGS="$xorg_testset_save_CFLAGS"
6185
6186		eval supported=\$$cacheid
6187		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6188$as_echo "$supported" >&6; }
6189		if test "$supported" = "yes" ; then
6190			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6191			found="yes"
6192		fi
6193	fi
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209xorg_testset_save_CFLAGS="$CFLAGS"
6210
6211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6212	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6213	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6214$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6215if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6216  $as_echo_n "(cached) " >&6
6217else
6218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219/* end confdefs.h.  */
6220int i;
6221_ACEOF
6222if ac_fn_c_try_compile "$LINENO"; then :
6223  xorg_cv_cc_flag_unknown_warning_option=yes
6224else
6225  xorg_cv_cc_flag_unknown_warning_option=no
6226fi
6227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228fi
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6230$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6231	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6232	CFLAGS="$xorg_testset_save_CFLAGS"
6233fi
6234
6235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6236	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6237		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6238	fi
6239	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6240	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6241$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6242if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6243  $as_echo_n "(cached) " >&6
6244else
6245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246/* end confdefs.h.  */
6247int i;
6248_ACEOF
6249if ac_fn_c_try_compile "$LINENO"; then :
6250  xorg_cv_cc_flag_unused_command_line_argument=yes
6251else
6252  xorg_cv_cc_flag_unused_command_line_argument=no
6253fi
6254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6255fi
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6257$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6258	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6259	CFLAGS="$xorg_testset_save_CFLAGS"
6260fi
6261
6262found="no"
6263
6264	if test $found = "no" ; then
6265		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6266			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6267		fi
6268
6269		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6270			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6271		fi
6272
6273		CFLAGS="$CFLAGS -Wshadow"
6274
6275		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6276$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6277		cacheid=xorg_cv_cc_flag__Wshadow
6278		if eval \${$cacheid+:} false; then :
6279  $as_echo_n "(cached) " >&6
6280else
6281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282/* end confdefs.h.  */
6283int i;
6284int
6285main ()
6286{
6287
6288  ;
6289  return 0;
6290}
6291_ACEOF
6292if ac_fn_c_try_link "$LINENO"; then :
6293  eval $cacheid=yes
6294else
6295  eval $cacheid=no
6296fi
6297rm -f core conftest.err conftest.$ac_objext \
6298    conftest$ac_exeext conftest.$ac_ext
6299fi
6300
6301
6302		CFLAGS="$xorg_testset_save_CFLAGS"
6303
6304		eval supported=\$$cacheid
6305		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6306$as_echo "$supported" >&6; }
6307		if test "$supported" = "yes" ; then
6308			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6309			found="yes"
6310		fi
6311	fi
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327xorg_testset_save_CFLAGS="$CFLAGS"
6328
6329if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6330	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6331	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6332$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6333if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6334  $as_echo_n "(cached) " >&6
6335else
6336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337/* end confdefs.h.  */
6338int i;
6339_ACEOF
6340if ac_fn_c_try_compile "$LINENO"; then :
6341  xorg_cv_cc_flag_unknown_warning_option=yes
6342else
6343  xorg_cv_cc_flag_unknown_warning_option=no
6344fi
6345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6346fi
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6348$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6349	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6350	CFLAGS="$xorg_testset_save_CFLAGS"
6351fi
6352
6353if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6354	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6355		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6356	fi
6357	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6358	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6359$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6360if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6361  $as_echo_n "(cached) " >&6
6362else
6363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364/* end confdefs.h.  */
6365int i;
6366_ACEOF
6367if ac_fn_c_try_compile "$LINENO"; then :
6368  xorg_cv_cc_flag_unused_command_line_argument=yes
6369else
6370  xorg_cv_cc_flag_unused_command_line_argument=no
6371fi
6372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6373fi
6374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6375$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6376	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6377	CFLAGS="$xorg_testset_save_CFLAGS"
6378fi
6379
6380found="no"
6381
6382	if test $found = "no" ; then
6383		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6384			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6385		fi
6386
6387		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6388			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6389		fi
6390
6391		CFLAGS="$CFLAGS -Wcast-qual"
6392
6393		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6394$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6395		cacheid=xorg_cv_cc_flag__Wcast_qual
6396		if eval \${$cacheid+:} false; then :
6397  $as_echo_n "(cached) " >&6
6398else
6399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400/* end confdefs.h.  */
6401int i;
6402int
6403main ()
6404{
6405
6406  ;
6407  return 0;
6408}
6409_ACEOF
6410if ac_fn_c_try_link "$LINENO"; then :
6411  eval $cacheid=yes
6412else
6413  eval $cacheid=no
6414fi
6415rm -f core conftest.err conftest.$ac_objext \
6416    conftest$ac_exeext conftest.$ac_ext
6417fi
6418
6419
6420		CFLAGS="$xorg_testset_save_CFLAGS"
6421
6422		eval supported=\$$cacheid
6423		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6424$as_echo "$supported" >&6; }
6425		if test "$supported" = "yes" ; then
6426			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6427			found="yes"
6428		fi
6429	fi
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445xorg_testset_save_CFLAGS="$CFLAGS"
6446
6447if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6448	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6449	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6450$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6451if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6452  $as_echo_n "(cached) " >&6
6453else
6454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455/* end confdefs.h.  */
6456int i;
6457_ACEOF
6458if ac_fn_c_try_compile "$LINENO"; then :
6459  xorg_cv_cc_flag_unknown_warning_option=yes
6460else
6461  xorg_cv_cc_flag_unknown_warning_option=no
6462fi
6463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6464fi
6465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6466$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6467	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6468	CFLAGS="$xorg_testset_save_CFLAGS"
6469fi
6470
6471if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6472	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6473		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6474	fi
6475	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6476	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6477$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6478if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6479  $as_echo_n "(cached) " >&6
6480else
6481  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482/* end confdefs.h.  */
6483int i;
6484_ACEOF
6485if ac_fn_c_try_compile "$LINENO"; then :
6486  xorg_cv_cc_flag_unused_command_line_argument=yes
6487else
6488  xorg_cv_cc_flag_unused_command_line_argument=no
6489fi
6490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6491fi
6492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6493$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6494	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6495	CFLAGS="$xorg_testset_save_CFLAGS"
6496fi
6497
6498found="no"
6499
6500	if test $found = "no" ; then
6501		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6502			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6503		fi
6504
6505		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6506			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6507		fi
6508
6509		CFLAGS="$CFLAGS -Wmissing-noreturn"
6510
6511		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6512$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6513		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6514		if eval \${$cacheid+:} false; then :
6515  $as_echo_n "(cached) " >&6
6516else
6517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518/* end confdefs.h.  */
6519int i;
6520int
6521main ()
6522{
6523
6524  ;
6525  return 0;
6526}
6527_ACEOF
6528if ac_fn_c_try_link "$LINENO"; then :
6529  eval $cacheid=yes
6530else
6531  eval $cacheid=no
6532fi
6533rm -f core conftest.err conftest.$ac_objext \
6534    conftest$ac_exeext conftest.$ac_ext
6535fi
6536
6537
6538		CFLAGS="$xorg_testset_save_CFLAGS"
6539
6540		eval supported=\$$cacheid
6541		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6542$as_echo "$supported" >&6; }
6543		if test "$supported" = "yes" ; then
6544			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6545			found="yes"
6546		fi
6547	fi
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563xorg_testset_save_CFLAGS="$CFLAGS"
6564
6565if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6566	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6567	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6568$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6569if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6570  $as_echo_n "(cached) " >&6
6571else
6572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573/* end confdefs.h.  */
6574int i;
6575_ACEOF
6576if ac_fn_c_try_compile "$LINENO"; then :
6577  xorg_cv_cc_flag_unknown_warning_option=yes
6578else
6579  xorg_cv_cc_flag_unknown_warning_option=no
6580fi
6581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582fi
6583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6584$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6585	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6586	CFLAGS="$xorg_testset_save_CFLAGS"
6587fi
6588
6589if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6590	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6591		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6592	fi
6593	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6594	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6595$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6596if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6597  $as_echo_n "(cached) " >&6
6598else
6599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600/* end confdefs.h.  */
6601int i;
6602_ACEOF
6603if ac_fn_c_try_compile "$LINENO"; then :
6604  xorg_cv_cc_flag_unused_command_line_argument=yes
6605else
6606  xorg_cv_cc_flag_unused_command_line_argument=no
6607fi
6608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609fi
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6611$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6612	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6613	CFLAGS="$xorg_testset_save_CFLAGS"
6614fi
6615
6616found="no"
6617
6618	if test $found = "no" ; then
6619		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6620			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6621		fi
6622
6623		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6624			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6625		fi
6626
6627		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6628
6629		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6630$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6631		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6632		if eval \${$cacheid+:} false; then :
6633  $as_echo_n "(cached) " >&6
6634else
6635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6636/* end confdefs.h.  */
6637int i;
6638int
6639main ()
6640{
6641
6642  ;
6643  return 0;
6644}
6645_ACEOF
6646if ac_fn_c_try_link "$LINENO"; then :
6647  eval $cacheid=yes
6648else
6649  eval $cacheid=no
6650fi
6651rm -f core conftest.err conftest.$ac_objext \
6652    conftest$ac_exeext conftest.$ac_ext
6653fi
6654
6655
6656		CFLAGS="$xorg_testset_save_CFLAGS"
6657
6658		eval supported=\$$cacheid
6659		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6660$as_echo "$supported" >&6; }
6661		if test "$supported" = "yes" ; then
6662			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6663			found="yes"
6664		fi
6665	fi
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681xorg_testset_save_CFLAGS="$CFLAGS"
6682
6683if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6684	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6685	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6686$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6687if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6688  $as_echo_n "(cached) " >&6
6689else
6690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691/* end confdefs.h.  */
6692int i;
6693_ACEOF
6694if ac_fn_c_try_compile "$LINENO"; then :
6695  xorg_cv_cc_flag_unknown_warning_option=yes
6696else
6697  xorg_cv_cc_flag_unknown_warning_option=no
6698fi
6699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700fi
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6702$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6703	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6704	CFLAGS="$xorg_testset_save_CFLAGS"
6705fi
6706
6707if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6708	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6709		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6710	fi
6711	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6712	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6713$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6714if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6715  $as_echo_n "(cached) " >&6
6716else
6717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718/* end confdefs.h.  */
6719int i;
6720_ACEOF
6721if ac_fn_c_try_compile "$LINENO"; then :
6722  xorg_cv_cc_flag_unused_command_line_argument=yes
6723else
6724  xorg_cv_cc_flag_unused_command_line_argument=no
6725fi
6726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6727fi
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6729$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6730	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6731	CFLAGS="$xorg_testset_save_CFLAGS"
6732fi
6733
6734found="no"
6735
6736	if test $found = "no" ; then
6737		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6738			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6739		fi
6740
6741		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6742			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6743		fi
6744
6745		CFLAGS="$CFLAGS -Wredundant-decls"
6746
6747		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6748$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6749		cacheid=xorg_cv_cc_flag__Wredundant_decls
6750		if eval \${$cacheid+:} false; then :
6751  $as_echo_n "(cached) " >&6
6752else
6753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754/* end confdefs.h.  */
6755int i;
6756int
6757main ()
6758{
6759
6760  ;
6761  return 0;
6762}
6763_ACEOF
6764if ac_fn_c_try_link "$LINENO"; then :
6765  eval $cacheid=yes
6766else
6767  eval $cacheid=no
6768fi
6769rm -f core conftest.err conftest.$ac_objext \
6770    conftest$ac_exeext conftest.$ac_ext
6771fi
6772
6773
6774		CFLAGS="$xorg_testset_save_CFLAGS"
6775
6776		eval supported=\$$cacheid
6777		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6778$as_echo "$supported" >&6; }
6779		if test "$supported" = "yes" ; then
6780			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6781			found="yes"
6782		fi
6783	fi
6784
6785
6786
6787# These are currently disabled because they are noisy.  They will be enabled
6788# in the future once the codebase is sufficiently modernized to silence
6789# them.  For now, I don't want them to drown out the other warnings.
6790# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6791# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6792# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6793
6794# Turn some warnings into errors, so we don't accidently get successful builds
6795# when there are problems that should be fixed.
6796
6797if test "x$SELECTIVE_WERROR" = "xyes" ; then
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811xorg_testset_save_CFLAGS="$CFLAGS"
6812
6813if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6814	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6815	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6816$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6817if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6818  $as_echo_n "(cached) " >&6
6819else
6820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821/* end confdefs.h.  */
6822int i;
6823_ACEOF
6824if ac_fn_c_try_compile "$LINENO"; then :
6825  xorg_cv_cc_flag_unknown_warning_option=yes
6826else
6827  xorg_cv_cc_flag_unknown_warning_option=no
6828fi
6829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6830fi
6831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6832$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6833	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6834	CFLAGS="$xorg_testset_save_CFLAGS"
6835fi
6836
6837if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6838	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6839		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6840	fi
6841	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6842	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6843$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6844if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6845  $as_echo_n "(cached) " >&6
6846else
6847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848/* end confdefs.h.  */
6849int i;
6850_ACEOF
6851if ac_fn_c_try_compile "$LINENO"; then :
6852  xorg_cv_cc_flag_unused_command_line_argument=yes
6853else
6854  xorg_cv_cc_flag_unused_command_line_argument=no
6855fi
6856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6857fi
6858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6859$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6860	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6861	CFLAGS="$xorg_testset_save_CFLAGS"
6862fi
6863
6864found="no"
6865
6866	if test $found = "no" ; then
6867		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6868			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6869		fi
6870
6871		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6872			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6873		fi
6874
6875		CFLAGS="$CFLAGS -Werror=implicit"
6876
6877		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6878$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6879		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6880		if eval \${$cacheid+:} false; then :
6881  $as_echo_n "(cached) " >&6
6882else
6883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884/* end confdefs.h.  */
6885int i;
6886int
6887main ()
6888{
6889
6890  ;
6891  return 0;
6892}
6893_ACEOF
6894if ac_fn_c_try_link "$LINENO"; then :
6895  eval $cacheid=yes
6896else
6897  eval $cacheid=no
6898fi
6899rm -f core conftest.err conftest.$ac_objext \
6900    conftest$ac_exeext conftest.$ac_ext
6901fi
6902
6903
6904		CFLAGS="$xorg_testset_save_CFLAGS"
6905
6906		eval supported=\$$cacheid
6907		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6908$as_echo "$supported" >&6; }
6909		if test "$supported" = "yes" ; then
6910			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6911			found="yes"
6912		fi
6913	fi
6914
6915	if test $found = "no" ; then
6916		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6917			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6918		fi
6919
6920		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6921			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6922		fi
6923
6924		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6925
6926		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6927$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6928		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6929		if eval \${$cacheid+:} false; then :
6930  $as_echo_n "(cached) " >&6
6931else
6932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933/* end confdefs.h.  */
6934int i;
6935int
6936main ()
6937{
6938
6939  ;
6940  return 0;
6941}
6942_ACEOF
6943if ac_fn_c_try_link "$LINENO"; then :
6944  eval $cacheid=yes
6945else
6946  eval $cacheid=no
6947fi
6948rm -f core conftest.err conftest.$ac_objext \
6949    conftest$ac_exeext conftest.$ac_ext
6950fi
6951
6952
6953		CFLAGS="$xorg_testset_save_CFLAGS"
6954
6955		eval supported=\$$cacheid
6956		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6957$as_echo "$supported" >&6; }
6958		if test "$supported" = "yes" ; then
6959			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6960			found="yes"
6961		fi
6962	fi
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978xorg_testset_save_CFLAGS="$CFLAGS"
6979
6980if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6981	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6982	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6983$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6984if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6985  $as_echo_n "(cached) " >&6
6986else
6987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988/* end confdefs.h.  */
6989int i;
6990_ACEOF
6991if ac_fn_c_try_compile "$LINENO"; then :
6992  xorg_cv_cc_flag_unknown_warning_option=yes
6993else
6994  xorg_cv_cc_flag_unknown_warning_option=no
6995fi
6996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6997fi
6998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6999$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7000	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7001	CFLAGS="$xorg_testset_save_CFLAGS"
7002fi
7003
7004if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7005	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7006		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7007	fi
7008	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7009	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7010$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7011if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7012  $as_echo_n "(cached) " >&6
7013else
7014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015/* end confdefs.h.  */
7016int i;
7017_ACEOF
7018if ac_fn_c_try_compile "$LINENO"; then :
7019  xorg_cv_cc_flag_unused_command_line_argument=yes
7020else
7021  xorg_cv_cc_flag_unused_command_line_argument=no
7022fi
7023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7024fi
7025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7026$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7027	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7028	CFLAGS="$xorg_testset_save_CFLAGS"
7029fi
7030
7031found="no"
7032
7033	if test $found = "no" ; then
7034		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7035			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7036		fi
7037
7038		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7039			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7040		fi
7041
7042		CFLAGS="$CFLAGS -Werror=nonnull"
7043
7044		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7045$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7046		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7047		if eval \${$cacheid+:} false; then :
7048  $as_echo_n "(cached) " >&6
7049else
7050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051/* end confdefs.h.  */
7052int i;
7053int
7054main ()
7055{
7056
7057  ;
7058  return 0;
7059}
7060_ACEOF
7061if ac_fn_c_try_link "$LINENO"; then :
7062  eval $cacheid=yes
7063else
7064  eval $cacheid=no
7065fi
7066rm -f core conftest.err conftest.$ac_objext \
7067    conftest$ac_exeext conftest.$ac_ext
7068fi
7069
7070
7071		CFLAGS="$xorg_testset_save_CFLAGS"
7072
7073		eval supported=\$$cacheid
7074		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7075$as_echo "$supported" >&6; }
7076		if test "$supported" = "yes" ; then
7077			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7078			found="yes"
7079		fi
7080	fi
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096xorg_testset_save_CFLAGS="$CFLAGS"
7097
7098if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7099	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7100	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7101$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7102if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7103  $as_echo_n "(cached) " >&6
7104else
7105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106/* end confdefs.h.  */
7107int i;
7108_ACEOF
7109if ac_fn_c_try_compile "$LINENO"; then :
7110  xorg_cv_cc_flag_unknown_warning_option=yes
7111else
7112  xorg_cv_cc_flag_unknown_warning_option=no
7113fi
7114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115fi
7116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7117$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7118	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7119	CFLAGS="$xorg_testset_save_CFLAGS"
7120fi
7121
7122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7123	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7124		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7125	fi
7126	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7127	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7128$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7129if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7130  $as_echo_n "(cached) " >&6
7131else
7132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133/* end confdefs.h.  */
7134int i;
7135_ACEOF
7136if ac_fn_c_try_compile "$LINENO"; then :
7137  xorg_cv_cc_flag_unused_command_line_argument=yes
7138else
7139  xorg_cv_cc_flag_unused_command_line_argument=no
7140fi
7141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7142fi
7143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7144$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7145	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7146	CFLAGS="$xorg_testset_save_CFLAGS"
7147fi
7148
7149found="no"
7150
7151	if test $found = "no" ; then
7152		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7153			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7154		fi
7155
7156		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7157			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7158		fi
7159
7160		CFLAGS="$CFLAGS -Werror=init-self"
7161
7162		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7163$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7164		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7165		if eval \${$cacheid+:} false; then :
7166  $as_echo_n "(cached) " >&6
7167else
7168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169/* end confdefs.h.  */
7170int i;
7171int
7172main ()
7173{
7174
7175  ;
7176  return 0;
7177}
7178_ACEOF
7179if ac_fn_c_try_link "$LINENO"; then :
7180  eval $cacheid=yes
7181else
7182  eval $cacheid=no
7183fi
7184rm -f core conftest.err conftest.$ac_objext \
7185    conftest$ac_exeext conftest.$ac_ext
7186fi
7187
7188
7189		CFLAGS="$xorg_testset_save_CFLAGS"
7190
7191		eval supported=\$$cacheid
7192		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7193$as_echo "$supported" >&6; }
7194		if test "$supported" = "yes" ; then
7195			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7196			found="yes"
7197		fi
7198	fi
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214xorg_testset_save_CFLAGS="$CFLAGS"
7215
7216if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7217	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7218	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7219$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7220if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7221  $as_echo_n "(cached) " >&6
7222else
7223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224/* end confdefs.h.  */
7225int i;
7226_ACEOF
7227if ac_fn_c_try_compile "$LINENO"; then :
7228  xorg_cv_cc_flag_unknown_warning_option=yes
7229else
7230  xorg_cv_cc_flag_unknown_warning_option=no
7231fi
7232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7233fi
7234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7235$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7236	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7237	CFLAGS="$xorg_testset_save_CFLAGS"
7238fi
7239
7240if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7241	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7242		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7243	fi
7244	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7245	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7246$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7247if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7248  $as_echo_n "(cached) " >&6
7249else
7250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251/* end confdefs.h.  */
7252int i;
7253_ACEOF
7254if ac_fn_c_try_compile "$LINENO"; then :
7255  xorg_cv_cc_flag_unused_command_line_argument=yes
7256else
7257  xorg_cv_cc_flag_unused_command_line_argument=no
7258fi
7259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7260fi
7261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7262$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7263	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7264	CFLAGS="$xorg_testset_save_CFLAGS"
7265fi
7266
7267found="no"
7268
7269	if test $found = "no" ; then
7270		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7271			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7272		fi
7273
7274		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7275			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7276		fi
7277
7278		CFLAGS="$CFLAGS -Werror=main"
7279
7280		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7281$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7282		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7283		if eval \${$cacheid+:} false; then :
7284  $as_echo_n "(cached) " >&6
7285else
7286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287/* end confdefs.h.  */
7288int i;
7289int
7290main ()
7291{
7292
7293  ;
7294  return 0;
7295}
7296_ACEOF
7297if ac_fn_c_try_link "$LINENO"; then :
7298  eval $cacheid=yes
7299else
7300  eval $cacheid=no
7301fi
7302rm -f core conftest.err conftest.$ac_objext \
7303    conftest$ac_exeext conftest.$ac_ext
7304fi
7305
7306
7307		CFLAGS="$xorg_testset_save_CFLAGS"
7308
7309		eval supported=\$$cacheid
7310		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7311$as_echo "$supported" >&6; }
7312		if test "$supported" = "yes" ; then
7313			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7314			found="yes"
7315		fi
7316	fi
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332xorg_testset_save_CFLAGS="$CFLAGS"
7333
7334if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7335	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7336	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7337$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7338if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7339  $as_echo_n "(cached) " >&6
7340else
7341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342/* end confdefs.h.  */
7343int i;
7344_ACEOF
7345if ac_fn_c_try_compile "$LINENO"; then :
7346  xorg_cv_cc_flag_unknown_warning_option=yes
7347else
7348  xorg_cv_cc_flag_unknown_warning_option=no
7349fi
7350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7351fi
7352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7353$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7354	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7355	CFLAGS="$xorg_testset_save_CFLAGS"
7356fi
7357
7358if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7359	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7360		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7361	fi
7362	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7363	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7364$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7365if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7366  $as_echo_n "(cached) " >&6
7367else
7368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369/* end confdefs.h.  */
7370int i;
7371_ACEOF
7372if ac_fn_c_try_compile "$LINENO"; then :
7373  xorg_cv_cc_flag_unused_command_line_argument=yes
7374else
7375  xorg_cv_cc_flag_unused_command_line_argument=no
7376fi
7377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378fi
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7380$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7381	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7382	CFLAGS="$xorg_testset_save_CFLAGS"
7383fi
7384
7385found="no"
7386
7387	if test $found = "no" ; then
7388		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7389			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7390		fi
7391
7392		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7393			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7394		fi
7395
7396		CFLAGS="$CFLAGS -Werror=missing-braces"
7397
7398		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7399$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7400		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7401		if eval \${$cacheid+:} false; then :
7402  $as_echo_n "(cached) " >&6
7403else
7404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405/* end confdefs.h.  */
7406int i;
7407int
7408main ()
7409{
7410
7411  ;
7412  return 0;
7413}
7414_ACEOF
7415if ac_fn_c_try_link "$LINENO"; then :
7416  eval $cacheid=yes
7417else
7418  eval $cacheid=no
7419fi
7420rm -f core conftest.err conftest.$ac_objext \
7421    conftest$ac_exeext conftest.$ac_ext
7422fi
7423
7424
7425		CFLAGS="$xorg_testset_save_CFLAGS"
7426
7427		eval supported=\$$cacheid
7428		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7429$as_echo "$supported" >&6; }
7430		if test "$supported" = "yes" ; then
7431			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7432			found="yes"
7433		fi
7434	fi
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450xorg_testset_save_CFLAGS="$CFLAGS"
7451
7452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7453	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7454	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7455$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7456if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7457  $as_echo_n "(cached) " >&6
7458else
7459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460/* end confdefs.h.  */
7461int i;
7462_ACEOF
7463if ac_fn_c_try_compile "$LINENO"; then :
7464  xorg_cv_cc_flag_unknown_warning_option=yes
7465else
7466  xorg_cv_cc_flag_unknown_warning_option=no
7467fi
7468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469fi
7470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7471$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7472	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7473	CFLAGS="$xorg_testset_save_CFLAGS"
7474fi
7475
7476if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7477	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7478		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7479	fi
7480	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7481	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7482$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7483if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7484  $as_echo_n "(cached) " >&6
7485else
7486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7487/* end confdefs.h.  */
7488int i;
7489_ACEOF
7490if ac_fn_c_try_compile "$LINENO"; then :
7491  xorg_cv_cc_flag_unused_command_line_argument=yes
7492else
7493  xorg_cv_cc_flag_unused_command_line_argument=no
7494fi
7495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7496fi
7497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7498$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7499	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7500	CFLAGS="$xorg_testset_save_CFLAGS"
7501fi
7502
7503found="no"
7504
7505	if test $found = "no" ; then
7506		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7507			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7508		fi
7509
7510		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7511			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7512		fi
7513
7514		CFLAGS="$CFLAGS -Werror=sequence-point"
7515
7516		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7517$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7518		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7519		if eval \${$cacheid+:} false; then :
7520  $as_echo_n "(cached) " >&6
7521else
7522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523/* end confdefs.h.  */
7524int i;
7525int
7526main ()
7527{
7528
7529  ;
7530  return 0;
7531}
7532_ACEOF
7533if ac_fn_c_try_link "$LINENO"; then :
7534  eval $cacheid=yes
7535else
7536  eval $cacheid=no
7537fi
7538rm -f core conftest.err conftest.$ac_objext \
7539    conftest$ac_exeext conftest.$ac_ext
7540fi
7541
7542
7543		CFLAGS="$xorg_testset_save_CFLAGS"
7544
7545		eval supported=\$$cacheid
7546		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7547$as_echo "$supported" >&6; }
7548		if test "$supported" = "yes" ; then
7549			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7550			found="yes"
7551		fi
7552	fi
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568xorg_testset_save_CFLAGS="$CFLAGS"
7569
7570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7571	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7572	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7573$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7574if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7575  $as_echo_n "(cached) " >&6
7576else
7577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578/* end confdefs.h.  */
7579int i;
7580_ACEOF
7581if ac_fn_c_try_compile "$LINENO"; then :
7582  xorg_cv_cc_flag_unknown_warning_option=yes
7583else
7584  xorg_cv_cc_flag_unknown_warning_option=no
7585fi
7586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7587fi
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7589$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7590	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7591	CFLAGS="$xorg_testset_save_CFLAGS"
7592fi
7593
7594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7595	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7596		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7597	fi
7598	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7599	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7600$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7601if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7602  $as_echo_n "(cached) " >&6
7603else
7604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605/* end confdefs.h.  */
7606int i;
7607_ACEOF
7608if ac_fn_c_try_compile "$LINENO"; then :
7609  xorg_cv_cc_flag_unused_command_line_argument=yes
7610else
7611  xorg_cv_cc_flag_unused_command_line_argument=no
7612fi
7613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7614fi
7615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7616$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7617	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7618	CFLAGS="$xorg_testset_save_CFLAGS"
7619fi
7620
7621found="no"
7622
7623	if test $found = "no" ; then
7624		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7625			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7626		fi
7627
7628		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7629			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7630		fi
7631
7632		CFLAGS="$CFLAGS -Werror=return-type"
7633
7634		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7635$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7636		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7637		if eval \${$cacheid+:} false; then :
7638  $as_echo_n "(cached) " >&6
7639else
7640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641/* end confdefs.h.  */
7642int i;
7643int
7644main ()
7645{
7646
7647  ;
7648  return 0;
7649}
7650_ACEOF
7651if ac_fn_c_try_link "$LINENO"; then :
7652  eval $cacheid=yes
7653else
7654  eval $cacheid=no
7655fi
7656rm -f core conftest.err conftest.$ac_objext \
7657    conftest$ac_exeext conftest.$ac_ext
7658fi
7659
7660
7661		CFLAGS="$xorg_testset_save_CFLAGS"
7662
7663		eval supported=\$$cacheid
7664		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7665$as_echo "$supported" >&6; }
7666		if test "$supported" = "yes" ; then
7667			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7668			found="yes"
7669		fi
7670	fi
7671
7672	if test $found = "no" ; then
7673		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7674			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7675		fi
7676
7677		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7678			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7679		fi
7680
7681		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7682
7683		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7684$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7685		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7686		if eval \${$cacheid+:} false; then :
7687  $as_echo_n "(cached) " >&6
7688else
7689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690/* end confdefs.h.  */
7691int i;
7692int
7693main ()
7694{
7695
7696  ;
7697  return 0;
7698}
7699_ACEOF
7700if ac_fn_c_try_link "$LINENO"; then :
7701  eval $cacheid=yes
7702else
7703  eval $cacheid=no
7704fi
7705rm -f core conftest.err conftest.$ac_objext \
7706    conftest$ac_exeext conftest.$ac_ext
7707fi
7708
7709
7710		CFLAGS="$xorg_testset_save_CFLAGS"
7711
7712		eval supported=\$$cacheid
7713		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7714$as_echo "$supported" >&6; }
7715		if test "$supported" = "yes" ; then
7716			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7717			found="yes"
7718		fi
7719	fi
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735xorg_testset_save_CFLAGS="$CFLAGS"
7736
7737if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7738	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7739	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7740$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7741if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7742  $as_echo_n "(cached) " >&6
7743else
7744  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745/* end confdefs.h.  */
7746int i;
7747_ACEOF
7748if ac_fn_c_try_compile "$LINENO"; then :
7749  xorg_cv_cc_flag_unknown_warning_option=yes
7750else
7751  xorg_cv_cc_flag_unknown_warning_option=no
7752fi
7753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7754fi
7755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7756$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7757	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7758	CFLAGS="$xorg_testset_save_CFLAGS"
7759fi
7760
7761if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7762	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7763		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7764	fi
7765	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7766	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7767$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7768if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7769  $as_echo_n "(cached) " >&6
7770else
7771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772/* end confdefs.h.  */
7773int i;
7774_ACEOF
7775if ac_fn_c_try_compile "$LINENO"; then :
7776  xorg_cv_cc_flag_unused_command_line_argument=yes
7777else
7778  xorg_cv_cc_flag_unused_command_line_argument=no
7779fi
7780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781fi
7782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7783$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7784	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7785	CFLAGS="$xorg_testset_save_CFLAGS"
7786fi
7787
7788found="no"
7789
7790	if test $found = "no" ; then
7791		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7792			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7793		fi
7794
7795		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7796			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7797		fi
7798
7799		CFLAGS="$CFLAGS -Werror=trigraphs"
7800
7801		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7802$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7803		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7804		if eval \${$cacheid+:} false; then :
7805  $as_echo_n "(cached) " >&6
7806else
7807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808/* end confdefs.h.  */
7809int i;
7810int
7811main ()
7812{
7813
7814  ;
7815  return 0;
7816}
7817_ACEOF
7818if ac_fn_c_try_link "$LINENO"; then :
7819  eval $cacheid=yes
7820else
7821  eval $cacheid=no
7822fi
7823rm -f core conftest.err conftest.$ac_objext \
7824    conftest$ac_exeext conftest.$ac_ext
7825fi
7826
7827
7828		CFLAGS="$xorg_testset_save_CFLAGS"
7829
7830		eval supported=\$$cacheid
7831		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7832$as_echo "$supported" >&6; }
7833		if test "$supported" = "yes" ; then
7834			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7835			found="yes"
7836		fi
7837	fi
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853xorg_testset_save_CFLAGS="$CFLAGS"
7854
7855if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7856	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7857	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7858$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7859if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7860  $as_echo_n "(cached) " >&6
7861else
7862  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863/* end confdefs.h.  */
7864int i;
7865_ACEOF
7866if ac_fn_c_try_compile "$LINENO"; then :
7867  xorg_cv_cc_flag_unknown_warning_option=yes
7868else
7869  xorg_cv_cc_flag_unknown_warning_option=no
7870fi
7871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872fi
7873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7874$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7875	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7876	CFLAGS="$xorg_testset_save_CFLAGS"
7877fi
7878
7879if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7880	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7881		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7882	fi
7883	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7884	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7885$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7886if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7887  $as_echo_n "(cached) " >&6
7888else
7889  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890/* end confdefs.h.  */
7891int i;
7892_ACEOF
7893if ac_fn_c_try_compile "$LINENO"; then :
7894  xorg_cv_cc_flag_unused_command_line_argument=yes
7895else
7896  xorg_cv_cc_flag_unused_command_line_argument=no
7897fi
7898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7899fi
7900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7901$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7902	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7903	CFLAGS="$xorg_testset_save_CFLAGS"
7904fi
7905
7906found="no"
7907
7908	if test $found = "no" ; then
7909		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7910			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7911		fi
7912
7913		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7914			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7915		fi
7916
7917		CFLAGS="$CFLAGS -Werror=array-bounds"
7918
7919		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7920$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7921		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7922		if eval \${$cacheid+:} false; then :
7923  $as_echo_n "(cached) " >&6
7924else
7925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926/* end confdefs.h.  */
7927int i;
7928int
7929main ()
7930{
7931
7932  ;
7933  return 0;
7934}
7935_ACEOF
7936if ac_fn_c_try_link "$LINENO"; then :
7937  eval $cacheid=yes
7938else
7939  eval $cacheid=no
7940fi
7941rm -f core conftest.err conftest.$ac_objext \
7942    conftest$ac_exeext conftest.$ac_ext
7943fi
7944
7945
7946		CFLAGS="$xorg_testset_save_CFLAGS"
7947
7948		eval supported=\$$cacheid
7949		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7950$as_echo "$supported" >&6; }
7951		if test "$supported" = "yes" ; then
7952			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7953			found="yes"
7954		fi
7955	fi
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971xorg_testset_save_CFLAGS="$CFLAGS"
7972
7973if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7974	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7975	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7976$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7977if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7978  $as_echo_n "(cached) " >&6
7979else
7980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981/* end confdefs.h.  */
7982int i;
7983_ACEOF
7984if ac_fn_c_try_compile "$LINENO"; then :
7985  xorg_cv_cc_flag_unknown_warning_option=yes
7986else
7987  xorg_cv_cc_flag_unknown_warning_option=no
7988fi
7989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7990fi
7991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7992$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7993	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7994	CFLAGS="$xorg_testset_save_CFLAGS"
7995fi
7996
7997if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7998	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7999		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8000	fi
8001	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8002	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8003$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8004if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8005  $as_echo_n "(cached) " >&6
8006else
8007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008/* end confdefs.h.  */
8009int i;
8010_ACEOF
8011if ac_fn_c_try_compile "$LINENO"; then :
8012  xorg_cv_cc_flag_unused_command_line_argument=yes
8013else
8014  xorg_cv_cc_flag_unused_command_line_argument=no
8015fi
8016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8017fi
8018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8019$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8020	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8021	CFLAGS="$xorg_testset_save_CFLAGS"
8022fi
8023
8024found="no"
8025
8026	if test $found = "no" ; then
8027		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8028			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8029		fi
8030
8031		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8032			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8033		fi
8034
8035		CFLAGS="$CFLAGS -Werror=write-strings"
8036
8037		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8038$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8039		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8040		if eval \${$cacheid+:} false; then :
8041  $as_echo_n "(cached) " >&6
8042else
8043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044/* end confdefs.h.  */
8045int i;
8046int
8047main ()
8048{
8049
8050  ;
8051  return 0;
8052}
8053_ACEOF
8054if ac_fn_c_try_link "$LINENO"; then :
8055  eval $cacheid=yes
8056else
8057  eval $cacheid=no
8058fi
8059rm -f core conftest.err conftest.$ac_objext \
8060    conftest$ac_exeext conftest.$ac_ext
8061fi
8062
8063
8064		CFLAGS="$xorg_testset_save_CFLAGS"
8065
8066		eval supported=\$$cacheid
8067		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8068$as_echo "$supported" >&6; }
8069		if test "$supported" = "yes" ; then
8070			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8071			found="yes"
8072		fi
8073	fi
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089xorg_testset_save_CFLAGS="$CFLAGS"
8090
8091if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8092	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8093	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8094$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8095if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8096  $as_echo_n "(cached) " >&6
8097else
8098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099/* end confdefs.h.  */
8100int i;
8101_ACEOF
8102if ac_fn_c_try_compile "$LINENO"; then :
8103  xorg_cv_cc_flag_unknown_warning_option=yes
8104else
8105  xorg_cv_cc_flag_unknown_warning_option=no
8106fi
8107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8108fi
8109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8110$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8111	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8112	CFLAGS="$xorg_testset_save_CFLAGS"
8113fi
8114
8115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8116	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8117		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8118	fi
8119	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8120	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8121$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8122if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8123  $as_echo_n "(cached) " >&6
8124else
8125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126/* end confdefs.h.  */
8127int i;
8128_ACEOF
8129if ac_fn_c_try_compile "$LINENO"; then :
8130  xorg_cv_cc_flag_unused_command_line_argument=yes
8131else
8132  xorg_cv_cc_flag_unused_command_line_argument=no
8133fi
8134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8135fi
8136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8137$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8138	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8139	CFLAGS="$xorg_testset_save_CFLAGS"
8140fi
8141
8142found="no"
8143
8144	if test $found = "no" ; then
8145		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8146			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8147		fi
8148
8149		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8150			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8151		fi
8152
8153		CFLAGS="$CFLAGS -Werror=address"
8154
8155		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8156$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8157		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8158		if eval \${$cacheid+:} false; then :
8159  $as_echo_n "(cached) " >&6
8160else
8161  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162/* end confdefs.h.  */
8163int i;
8164int
8165main ()
8166{
8167
8168  ;
8169  return 0;
8170}
8171_ACEOF
8172if ac_fn_c_try_link "$LINENO"; then :
8173  eval $cacheid=yes
8174else
8175  eval $cacheid=no
8176fi
8177rm -f core conftest.err conftest.$ac_objext \
8178    conftest$ac_exeext conftest.$ac_ext
8179fi
8180
8181
8182		CFLAGS="$xorg_testset_save_CFLAGS"
8183
8184		eval supported=\$$cacheid
8185		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8186$as_echo "$supported" >&6; }
8187		if test "$supported" = "yes" ; then
8188			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8189			found="yes"
8190		fi
8191	fi
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207xorg_testset_save_CFLAGS="$CFLAGS"
8208
8209if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8210	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8211	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8212$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8213if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8214  $as_echo_n "(cached) " >&6
8215else
8216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217/* end confdefs.h.  */
8218int i;
8219_ACEOF
8220if ac_fn_c_try_compile "$LINENO"; then :
8221  xorg_cv_cc_flag_unknown_warning_option=yes
8222else
8223  xorg_cv_cc_flag_unknown_warning_option=no
8224fi
8225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8226fi
8227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8228$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8229	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8230	CFLAGS="$xorg_testset_save_CFLAGS"
8231fi
8232
8233if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8234	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8235		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8236	fi
8237	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8238	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8239$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8240if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8241  $as_echo_n "(cached) " >&6
8242else
8243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8244/* end confdefs.h.  */
8245int i;
8246_ACEOF
8247if ac_fn_c_try_compile "$LINENO"; then :
8248  xorg_cv_cc_flag_unused_command_line_argument=yes
8249else
8250  xorg_cv_cc_flag_unused_command_line_argument=no
8251fi
8252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8253fi
8254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8255$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8256	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8257	CFLAGS="$xorg_testset_save_CFLAGS"
8258fi
8259
8260found="no"
8261
8262	if test $found = "no" ; then
8263		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8264			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8265		fi
8266
8267		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8268			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8269		fi
8270
8271		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8272
8273		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8274$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8275		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8276		if eval \${$cacheid+:} false; then :
8277  $as_echo_n "(cached) " >&6
8278else
8279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280/* end confdefs.h.  */
8281int i;
8282int
8283main ()
8284{
8285
8286  ;
8287  return 0;
8288}
8289_ACEOF
8290if ac_fn_c_try_link "$LINENO"; then :
8291  eval $cacheid=yes
8292else
8293  eval $cacheid=no
8294fi
8295rm -f core conftest.err conftest.$ac_objext \
8296    conftest$ac_exeext conftest.$ac_ext
8297fi
8298
8299
8300		CFLAGS="$xorg_testset_save_CFLAGS"
8301
8302		eval supported=\$$cacheid
8303		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8304$as_echo "$supported" >&6; }
8305		if test "$supported" = "yes" ; then
8306			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8307			found="yes"
8308		fi
8309	fi
8310
8311	if test $found = "no" ; then
8312		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8313			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8314		fi
8315
8316		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8317			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8318		fi
8319
8320		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8321
8322		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8323$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8324		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8325		if eval \${$cacheid+:} false; then :
8326  $as_echo_n "(cached) " >&6
8327else
8328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329/* end confdefs.h.  */
8330int i;
8331int
8332main ()
8333{
8334
8335  ;
8336  return 0;
8337}
8338_ACEOF
8339if ac_fn_c_try_link "$LINENO"; then :
8340  eval $cacheid=yes
8341else
8342  eval $cacheid=no
8343fi
8344rm -f core conftest.err conftest.$ac_objext \
8345    conftest$ac_exeext conftest.$ac_ext
8346fi
8347
8348
8349		CFLAGS="$xorg_testset_save_CFLAGS"
8350
8351		eval supported=\$$cacheid
8352		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8353$as_echo "$supported" >&6; }
8354		if test "$supported" = "yes" ; then
8355			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8356			found="yes"
8357		fi
8358	fi
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374xorg_testset_save_CFLAGS="$CFLAGS"
8375
8376if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8377	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8378	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8379$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8380if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8381  $as_echo_n "(cached) " >&6
8382else
8383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384/* end confdefs.h.  */
8385int i;
8386_ACEOF
8387if ac_fn_c_try_compile "$LINENO"; then :
8388  xorg_cv_cc_flag_unknown_warning_option=yes
8389else
8390  xorg_cv_cc_flag_unknown_warning_option=no
8391fi
8392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8393fi
8394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8395$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8396	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8397	CFLAGS="$xorg_testset_save_CFLAGS"
8398fi
8399
8400if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8401	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8402		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8403	fi
8404	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8405	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8406$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8407if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8408  $as_echo_n "(cached) " >&6
8409else
8410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8411/* end confdefs.h.  */
8412int i;
8413_ACEOF
8414if ac_fn_c_try_compile "$LINENO"; then :
8415  xorg_cv_cc_flag_unused_command_line_argument=yes
8416else
8417  xorg_cv_cc_flag_unused_command_line_argument=no
8418fi
8419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420fi
8421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8422$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8423	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8424	CFLAGS="$xorg_testset_save_CFLAGS"
8425fi
8426
8427found="no"
8428
8429	if test $found = "no" ; then
8430		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8431			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8432		fi
8433
8434		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8435			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8436		fi
8437
8438		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8439
8440		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8441$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8442		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8443		if eval \${$cacheid+:} false; then :
8444  $as_echo_n "(cached) " >&6
8445else
8446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447/* end confdefs.h.  */
8448int i;
8449int
8450main ()
8451{
8452
8453  ;
8454  return 0;
8455}
8456_ACEOF
8457if ac_fn_c_try_link "$LINENO"; then :
8458  eval $cacheid=yes
8459else
8460  eval $cacheid=no
8461fi
8462rm -f core conftest.err conftest.$ac_objext \
8463    conftest$ac_exeext conftest.$ac_ext
8464fi
8465
8466
8467		CFLAGS="$xorg_testset_save_CFLAGS"
8468
8469		eval supported=\$$cacheid
8470		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8471$as_echo "$supported" >&6; }
8472		if test "$supported" = "yes" ; then
8473			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8474			found="yes"
8475		fi
8476	fi
8477
8478 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8479else
8480{ $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
8481$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;}
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495xorg_testset_save_CFLAGS="$CFLAGS"
8496
8497if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8498	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8499	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8500$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8501if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8502  $as_echo_n "(cached) " >&6
8503else
8504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505/* end confdefs.h.  */
8506int i;
8507_ACEOF
8508if ac_fn_c_try_compile "$LINENO"; then :
8509  xorg_cv_cc_flag_unknown_warning_option=yes
8510else
8511  xorg_cv_cc_flag_unknown_warning_option=no
8512fi
8513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8514fi
8515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8516$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8517	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8518	CFLAGS="$xorg_testset_save_CFLAGS"
8519fi
8520
8521if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8522	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8523		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8524	fi
8525	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8526	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8527$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8528if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8529  $as_echo_n "(cached) " >&6
8530else
8531  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532/* end confdefs.h.  */
8533int i;
8534_ACEOF
8535if ac_fn_c_try_compile "$LINENO"; then :
8536  xorg_cv_cc_flag_unused_command_line_argument=yes
8537else
8538  xorg_cv_cc_flag_unused_command_line_argument=no
8539fi
8540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8541fi
8542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8543$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8544	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8545	CFLAGS="$xorg_testset_save_CFLAGS"
8546fi
8547
8548found="no"
8549
8550	if test $found = "no" ; then
8551		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8552			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8553		fi
8554
8555		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8556			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8557		fi
8558
8559		CFLAGS="$CFLAGS -Wimplicit"
8560
8561		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8562$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8563		cacheid=xorg_cv_cc_flag__Wimplicit
8564		if eval \${$cacheid+:} false; then :
8565  $as_echo_n "(cached) " >&6
8566else
8567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568/* end confdefs.h.  */
8569int i;
8570int
8571main ()
8572{
8573
8574  ;
8575  return 0;
8576}
8577_ACEOF
8578if ac_fn_c_try_link "$LINENO"; then :
8579  eval $cacheid=yes
8580else
8581  eval $cacheid=no
8582fi
8583rm -f core conftest.err conftest.$ac_objext \
8584    conftest$ac_exeext conftest.$ac_ext
8585fi
8586
8587
8588		CFLAGS="$xorg_testset_save_CFLAGS"
8589
8590		eval supported=\$$cacheid
8591		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8592$as_echo "$supported" >&6; }
8593		if test "$supported" = "yes" ; then
8594			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8595			found="yes"
8596		fi
8597	fi
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613xorg_testset_save_CFLAGS="$CFLAGS"
8614
8615if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8616	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8617	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8618$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8619if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8620  $as_echo_n "(cached) " >&6
8621else
8622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623/* end confdefs.h.  */
8624int i;
8625_ACEOF
8626if ac_fn_c_try_compile "$LINENO"; then :
8627  xorg_cv_cc_flag_unknown_warning_option=yes
8628else
8629  xorg_cv_cc_flag_unknown_warning_option=no
8630fi
8631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8632fi
8633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8634$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8635	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8636	CFLAGS="$xorg_testset_save_CFLAGS"
8637fi
8638
8639if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8640	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8641		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8642	fi
8643	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8644	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8645$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8646if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8647  $as_echo_n "(cached) " >&6
8648else
8649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650/* end confdefs.h.  */
8651int i;
8652_ACEOF
8653if ac_fn_c_try_compile "$LINENO"; then :
8654  xorg_cv_cc_flag_unused_command_line_argument=yes
8655else
8656  xorg_cv_cc_flag_unused_command_line_argument=no
8657fi
8658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8659fi
8660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8661$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8662	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8663	CFLAGS="$xorg_testset_save_CFLAGS"
8664fi
8665
8666found="no"
8667
8668	if test $found = "no" ; then
8669		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8670			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8671		fi
8672
8673		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8674			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8675		fi
8676
8677		CFLAGS="$CFLAGS -Wnonnull"
8678
8679		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8680$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8681		cacheid=xorg_cv_cc_flag__Wnonnull
8682		if eval \${$cacheid+:} false; then :
8683  $as_echo_n "(cached) " >&6
8684else
8685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686/* end confdefs.h.  */
8687int i;
8688int
8689main ()
8690{
8691
8692  ;
8693  return 0;
8694}
8695_ACEOF
8696if ac_fn_c_try_link "$LINENO"; then :
8697  eval $cacheid=yes
8698else
8699  eval $cacheid=no
8700fi
8701rm -f core conftest.err conftest.$ac_objext \
8702    conftest$ac_exeext conftest.$ac_ext
8703fi
8704
8705
8706		CFLAGS="$xorg_testset_save_CFLAGS"
8707
8708		eval supported=\$$cacheid
8709		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8710$as_echo "$supported" >&6; }
8711		if test "$supported" = "yes" ; then
8712			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8713			found="yes"
8714		fi
8715	fi
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731xorg_testset_save_CFLAGS="$CFLAGS"
8732
8733if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8734	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8735	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8736$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8737if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8738  $as_echo_n "(cached) " >&6
8739else
8740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741/* end confdefs.h.  */
8742int i;
8743_ACEOF
8744if ac_fn_c_try_compile "$LINENO"; then :
8745  xorg_cv_cc_flag_unknown_warning_option=yes
8746else
8747  xorg_cv_cc_flag_unknown_warning_option=no
8748fi
8749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750fi
8751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8752$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8753	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8754	CFLAGS="$xorg_testset_save_CFLAGS"
8755fi
8756
8757if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8758	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8759		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8760	fi
8761	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8762	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8763$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8764if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8765  $as_echo_n "(cached) " >&6
8766else
8767  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768/* end confdefs.h.  */
8769int i;
8770_ACEOF
8771if ac_fn_c_try_compile "$LINENO"; then :
8772  xorg_cv_cc_flag_unused_command_line_argument=yes
8773else
8774  xorg_cv_cc_flag_unused_command_line_argument=no
8775fi
8776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8777fi
8778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8779$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8780	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8781	CFLAGS="$xorg_testset_save_CFLAGS"
8782fi
8783
8784found="no"
8785
8786	if test $found = "no" ; then
8787		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8788			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8789		fi
8790
8791		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8792			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8793		fi
8794
8795		CFLAGS="$CFLAGS -Winit-self"
8796
8797		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8798$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8799		cacheid=xorg_cv_cc_flag__Winit_self
8800		if eval \${$cacheid+:} false; then :
8801  $as_echo_n "(cached) " >&6
8802else
8803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804/* end confdefs.h.  */
8805int i;
8806int
8807main ()
8808{
8809
8810  ;
8811  return 0;
8812}
8813_ACEOF
8814if ac_fn_c_try_link "$LINENO"; then :
8815  eval $cacheid=yes
8816else
8817  eval $cacheid=no
8818fi
8819rm -f core conftest.err conftest.$ac_objext \
8820    conftest$ac_exeext conftest.$ac_ext
8821fi
8822
8823
8824		CFLAGS="$xorg_testset_save_CFLAGS"
8825
8826		eval supported=\$$cacheid
8827		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8828$as_echo "$supported" >&6; }
8829		if test "$supported" = "yes" ; then
8830			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8831			found="yes"
8832		fi
8833	fi
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849xorg_testset_save_CFLAGS="$CFLAGS"
8850
8851if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8852	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8853	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8854$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8855if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8856  $as_echo_n "(cached) " >&6
8857else
8858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859/* end confdefs.h.  */
8860int i;
8861_ACEOF
8862if ac_fn_c_try_compile "$LINENO"; then :
8863  xorg_cv_cc_flag_unknown_warning_option=yes
8864else
8865  xorg_cv_cc_flag_unknown_warning_option=no
8866fi
8867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8868fi
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8870$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8871	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8872	CFLAGS="$xorg_testset_save_CFLAGS"
8873fi
8874
8875if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8876	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8877		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8878	fi
8879	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8880	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8881$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8882if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8883  $as_echo_n "(cached) " >&6
8884else
8885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8886/* end confdefs.h.  */
8887int i;
8888_ACEOF
8889if ac_fn_c_try_compile "$LINENO"; then :
8890  xorg_cv_cc_flag_unused_command_line_argument=yes
8891else
8892  xorg_cv_cc_flag_unused_command_line_argument=no
8893fi
8894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8895fi
8896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8897$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8898	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8899	CFLAGS="$xorg_testset_save_CFLAGS"
8900fi
8901
8902found="no"
8903
8904	if test $found = "no" ; then
8905		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8906			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8907		fi
8908
8909		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8910			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8911		fi
8912
8913		CFLAGS="$CFLAGS -Wmain"
8914
8915		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8916$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8917		cacheid=xorg_cv_cc_flag__Wmain
8918		if eval \${$cacheid+:} false; then :
8919  $as_echo_n "(cached) " >&6
8920else
8921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922/* end confdefs.h.  */
8923int i;
8924int
8925main ()
8926{
8927
8928  ;
8929  return 0;
8930}
8931_ACEOF
8932if ac_fn_c_try_link "$LINENO"; then :
8933  eval $cacheid=yes
8934else
8935  eval $cacheid=no
8936fi
8937rm -f core conftest.err conftest.$ac_objext \
8938    conftest$ac_exeext conftest.$ac_ext
8939fi
8940
8941
8942		CFLAGS="$xorg_testset_save_CFLAGS"
8943
8944		eval supported=\$$cacheid
8945		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8946$as_echo "$supported" >&6; }
8947		if test "$supported" = "yes" ; then
8948			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8949			found="yes"
8950		fi
8951	fi
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967xorg_testset_save_CFLAGS="$CFLAGS"
8968
8969if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8970	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8971	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8972$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8973if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8974  $as_echo_n "(cached) " >&6
8975else
8976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977/* end confdefs.h.  */
8978int i;
8979_ACEOF
8980if ac_fn_c_try_compile "$LINENO"; then :
8981  xorg_cv_cc_flag_unknown_warning_option=yes
8982else
8983  xorg_cv_cc_flag_unknown_warning_option=no
8984fi
8985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8986fi
8987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8988$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8989	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8990	CFLAGS="$xorg_testset_save_CFLAGS"
8991fi
8992
8993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8994	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8995		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8996	fi
8997	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8998	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8999$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9000if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9001  $as_echo_n "(cached) " >&6
9002else
9003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004/* end confdefs.h.  */
9005int i;
9006_ACEOF
9007if ac_fn_c_try_compile "$LINENO"; then :
9008  xorg_cv_cc_flag_unused_command_line_argument=yes
9009else
9010  xorg_cv_cc_flag_unused_command_line_argument=no
9011fi
9012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9013fi
9014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9015$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9016	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9017	CFLAGS="$xorg_testset_save_CFLAGS"
9018fi
9019
9020found="no"
9021
9022	if test $found = "no" ; then
9023		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9024			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9025		fi
9026
9027		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9028			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9029		fi
9030
9031		CFLAGS="$CFLAGS -Wmissing-braces"
9032
9033		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9034$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9035		cacheid=xorg_cv_cc_flag__Wmissing_braces
9036		if eval \${$cacheid+:} false; then :
9037  $as_echo_n "(cached) " >&6
9038else
9039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040/* end confdefs.h.  */
9041int i;
9042int
9043main ()
9044{
9045
9046  ;
9047  return 0;
9048}
9049_ACEOF
9050if ac_fn_c_try_link "$LINENO"; then :
9051  eval $cacheid=yes
9052else
9053  eval $cacheid=no
9054fi
9055rm -f core conftest.err conftest.$ac_objext \
9056    conftest$ac_exeext conftest.$ac_ext
9057fi
9058
9059
9060		CFLAGS="$xorg_testset_save_CFLAGS"
9061
9062		eval supported=\$$cacheid
9063		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9064$as_echo "$supported" >&6; }
9065		if test "$supported" = "yes" ; then
9066			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9067			found="yes"
9068		fi
9069	fi
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085xorg_testset_save_CFLAGS="$CFLAGS"
9086
9087if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9088	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9089	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9090$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9091if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9092  $as_echo_n "(cached) " >&6
9093else
9094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9095/* end confdefs.h.  */
9096int i;
9097_ACEOF
9098if ac_fn_c_try_compile "$LINENO"; then :
9099  xorg_cv_cc_flag_unknown_warning_option=yes
9100else
9101  xorg_cv_cc_flag_unknown_warning_option=no
9102fi
9103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9104fi
9105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9106$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9107	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9108	CFLAGS="$xorg_testset_save_CFLAGS"
9109fi
9110
9111if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9112	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9113		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9114	fi
9115	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9116	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9117$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9118if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9119  $as_echo_n "(cached) " >&6
9120else
9121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9122/* end confdefs.h.  */
9123int i;
9124_ACEOF
9125if ac_fn_c_try_compile "$LINENO"; then :
9126  xorg_cv_cc_flag_unused_command_line_argument=yes
9127else
9128  xorg_cv_cc_flag_unused_command_line_argument=no
9129fi
9130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9131fi
9132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9133$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9134	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9135	CFLAGS="$xorg_testset_save_CFLAGS"
9136fi
9137
9138found="no"
9139
9140	if test $found = "no" ; then
9141		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9142			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9143		fi
9144
9145		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9146			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9147		fi
9148
9149		CFLAGS="$CFLAGS -Wsequence-point"
9150
9151		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9152$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9153		cacheid=xorg_cv_cc_flag__Wsequence_point
9154		if eval \${$cacheid+:} false; then :
9155  $as_echo_n "(cached) " >&6
9156else
9157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158/* end confdefs.h.  */
9159int i;
9160int
9161main ()
9162{
9163
9164  ;
9165  return 0;
9166}
9167_ACEOF
9168if ac_fn_c_try_link "$LINENO"; then :
9169  eval $cacheid=yes
9170else
9171  eval $cacheid=no
9172fi
9173rm -f core conftest.err conftest.$ac_objext \
9174    conftest$ac_exeext conftest.$ac_ext
9175fi
9176
9177
9178		CFLAGS="$xorg_testset_save_CFLAGS"
9179
9180		eval supported=\$$cacheid
9181		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9182$as_echo "$supported" >&6; }
9183		if test "$supported" = "yes" ; then
9184			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9185			found="yes"
9186		fi
9187	fi
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203xorg_testset_save_CFLAGS="$CFLAGS"
9204
9205if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9206	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9207	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9208$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9209if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9210  $as_echo_n "(cached) " >&6
9211else
9212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213/* end confdefs.h.  */
9214int i;
9215_ACEOF
9216if ac_fn_c_try_compile "$LINENO"; then :
9217  xorg_cv_cc_flag_unknown_warning_option=yes
9218else
9219  xorg_cv_cc_flag_unknown_warning_option=no
9220fi
9221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9222fi
9223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9224$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9225	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9226	CFLAGS="$xorg_testset_save_CFLAGS"
9227fi
9228
9229if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9230	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9231		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9232	fi
9233	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9234	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9235$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9236if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9237  $as_echo_n "(cached) " >&6
9238else
9239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240/* end confdefs.h.  */
9241int i;
9242_ACEOF
9243if ac_fn_c_try_compile "$LINENO"; then :
9244  xorg_cv_cc_flag_unused_command_line_argument=yes
9245else
9246  xorg_cv_cc_flag_unused_command_line_argument=no
9247fi
9248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9249fi
9250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9251$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9252	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9253	CFLAGS="$xorg_testset_save_CFLAGS"
9254fi
9255
9256found="no"
9257
9258	if test $found = "no" ; then
9259		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9260			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9261		fi
9262
9263		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9264			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9265		fi
9266
9267		CFLAGS="$CFLAGS -Wreturn-type"
9268
9269		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9270$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9271		cacheid=xorg_cv_cc_flag__Wreturn_type
9272		if eval \${$cacheid+:} false; then :
9273  $as_echo_n "(cached) " >&6
9274else
9275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9276/* end confdefs.h.  */
9277int i;
9278int
9279main ()
9280{
9281
9282  ;
9283  return 0;
9284}
9285_ACEOF
9286if ac_fn_c_try_link "$LINENO"; then :
9287  eval $cacheid=yes
9288else
9289  eval $cacheid=no
9290fi
9291rm -f core conftest.err conftest.$ac_objext \
9292    conftest$ac_exeext conftest.$ac_ext
9293fi
9294
9295
9296		CFLAGS="$xorg_testset_save_CFLAGS"
9297
9298		eval supported=\$$cacheid
9299		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9300$as_echo "$supported" >&6; }
9301		if test "$supported" = "yes" ; then
9302			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9303			found="yes"
9304		fi
9305	fi
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321xorg_testset_save_CFLAGS="$CFLAGS"
9322
9323if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9324	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9326$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9327if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9328  $as_echo_n "(cached) " >&6
9329else
9330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331/* end confdefs.h.  */
9332int i;
9333_ACEOF
9334if ac_fn_c_try_compile "$LINENO"; then :
9335  xorg_cv_cc_flag_unknown_warning_option=yes
9336else
9337  xorg_cv_cc_flag_unknown_warning_option=no
9338fi
9339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9340fi
9341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9342$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9343	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9344	CFLAGS="$xorg_testset_save_CFLAGS"
9345fi
9346
9347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9348	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9349		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9350	fi
9351	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9352	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9353$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9354if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9355  $as_echo_n "(cached) " >&6
9356else
9357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358/* end confdefs.h.  */
9359int i;
9360_ACEOF
9361if ac_fn_c_try_compile "$LINENO"; then :
9362  xorg_cv_cc_flag_unused_command_line_argument=yes
9363else
9364  xorg_cv_cc_flag_unused_command_line_argument=no
9365fi
9366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9367fi
9368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9369$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9370	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9371	CFLAGS="$xorg_testset_save_CFLAGS"
9372fi
9373
9374found="no"
9375
9376	if test $found = "no" ; then
9377		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9378			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9379		fi
9380
9381		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9382			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9383		fi
9384
9385		CFLAGS="$CFLAGS -Wtrigraphs"
9386
9387		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9388$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9389		cacheid=xorg_cv_cc_flag__Wtrigraphs
9390		if eval \${$cacheid+:} false; then :
9391  $as_echo_n "(cached) " >&6
9392else
9393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394/* end confdefs.h.  */
9395int i;
9396int
9397main ()
9398{
9399
9400  ;
9401  return 0;
9402}
9403_ACEOF
9404if ac_fn_c_try_link "$LINENO"; then :
9405  eval $cacheid=yes
9406else
9407  eval $cacheid=no
9408fi
9409rm -f core conftest.err conftest.$ac_objext \
9410    conftest$ac_exeext conftest.$ac_ext
9411fi
9412
9413
9414		CFLAGS="$xorg_testset_save_CFLAGS"
9415
9416		eval supported=\$$cacheid
9417		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9418$as_echo "$supported" >&6; }
9419		if test "$supported" = "yes" ; then
9420			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9421			found="yes"
9422		fi
9423	fi
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439xorg_testset_save_CFLAGS="$CFLAGS"
9440
9441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9442	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9444$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9445if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9446  $as_echo_n "(cached) " >&6
9447else
9448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449/* end confdefs.h.  */
9450int i;
9451_ACEOF
9452if ac_fn_c_try_compile "$LINENO"; then :
9453  xorg_cv_cc_flag_unknown_warning_option=yes
9454else
9455  xorg_cv_cc_flag_unknown_warning_option=no
9456fi
9457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9458fi
9459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9460$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9461	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9462	CFLAGS="$xorg_testset_save_CFLAGS"
9463fi
9464
9465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9466	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9467		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9468	fi
9469	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9470	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9471$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9472if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9473  $as_echo_n "(cached) " >&6
9474else
9475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476/* end confdefs.h.  */
9477int i;
9478_ACEOF
9479if ac_fn_c_try_compile "$LINENO"; then :
9480  xorg_cv_cc_flag_unused_command_line_argument=yes
9481else
9482  xorg_cv_cc_flag_unused_command_line_argument=no
9483fi
9484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9485fi
9486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9487$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9488	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9489	CFLAGS="$xorg_testset_save_CFLAGS"
9490fi
9491
9492found="no"
9493
9494	if test $found = "no" ; then
9495		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9496			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9497		fi
9498
9499		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9500			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9501		fi
9502
9503		CFLAGS="$CFLAGS -Warray-bounds"
9504
9505		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9506$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9507		cacheid=xorg_cv_cc_flag__Warray_bounds
9508		if eval \${$cacheid+:} false; then :
9509  $as_echo_n "(cached) " >&6
9510else
9511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9512/* end confdefs.h.  */
9513int i;
9514int
9515main ()
9516{
9517
9518  ;
9519  return 0;
9520}
9521_ACEOF
9522if ac_fn_c_try_link "$LINENO"; then :
9523  eval $cacheid=yes
9524else
9525  eval $cacheid=no
9526fi
9527rm -f core conftest.err conftest.$ac_objext \
9528    conftest$ac_exeext conftest.$ac_ext
9529fi
9530
9531
9532		CFLAGS="$xorg_testset_save_CFLAGS"
9533
9534		eval supported=\$$cacheid
9535		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9536$as_echo "$supported" >&6; }
9537		if test "$supported" = "yes" ; then
9538			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9539			found="yes"
9540		fi
9541	fi
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557xorg_testset_save_CFLAGS="$CFLAGS"
9558
9559if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9560	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9561	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9562$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9563if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9564  $as_echo_n "(cached) " >&6
9565else
9566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567/* end confdefs.h.  */
9568int i;
9569_ACEOF
9570if ac_fn_c_try_compile "$LINENO"; then :
9571  xorg_cv_cc_flag_unknown_warning_option=yes
9572else
9573  xorg_cv_cc_flag_unknown_warning_option=no
9574fi
9575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9576fi
9577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9578$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9579	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9580	CFLAGS="$xorg_testset_save_CFLAGS"
9581fi
9582
9583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9584	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9585		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9586	fi
9587	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9588	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9589$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9590if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9591  $as_echo_n "(cached) " >&6
9592else
9593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594/* end confdefs.h.  */
9595int i;
9596_ACEOF
9597if ac_fn_c_try_compile "$LINENO"; then :
9598  xorg_cv_cc_flag_unused_command_line_argument=yes
9599else
9600  xorg_cv_cc_flag_unused_command_line_argument=no
9601fi
9602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9603fi
9604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9605$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9606	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9607	CFLAGS="$xorg_testset_save_CFLAGS"
9608fi
9609
9610found="no"
9611
9612	if test $found = "no" ; then
9613		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9614			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9615		fi
9616
9617		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9618			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9619		fi
9620
9621		CFLAGS="$CFLAGS -Wwrite-strings"
9622
9623		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9624$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9625		cacheid=xorg_cv_cc_flag__Wwrite_strings
9626		if eval \${$cacheid+:} false; then :
9627  $as_echo_n "(cached) " >&6
9628else
9629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630/* end confdefs.h.  */
9631int i;
9632int
9633main ()
9634{
9635
9636  ;
9637  return 0;
9638}
9639_ACEOF
9640if ac_fn_c_try_link "$LINENO"; then :
9641  eval $cacheid=yes
9642else
9643  eval $cacheid=no
9644fi
9645rm -f core conftest.err conftest.$ac_objext \
9646    conftest$ac_exeext conftest.$ac_ext
9647fi
9648
9649
9650		CFLAGS="$xorg_testset_save_CFLAGS"
9651
9652		eval supported=\$$cacheid
9653		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9654$as_echo "$supported" >&6; }
9655		if test "$supported" = "yes" ; then
9656			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9657			found="yes"
9658		fi
9659	fi
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675xorg_testset_save_CFLAGS="$CFLAGS"
9676
9677if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9678	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9679	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9680$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9681if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9682  $as_echo_n "(cached) " >&6
9683else
9684  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685/* end confdefs.h.  */
9686int i;
9687_ACEOF
9688if ac_fn_c_try_compile "$LINENO"; then :
9689  xorg_cv_cc_flag_unknown_warning_option=yes
9690else
9691  xorg_cv_cc_flag_unknown_warning_option=no
9692fi
9693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9694fi
9695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9696$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9697	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9698	CFLAGS="$xorg_testset_save_CFLAGS"
9699fi
9700
9701if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9702	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9703		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9704	fi
9705	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9706	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9707$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9708if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9709  $as_echo_n "(cached) " >&6
9710else
9711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712/* end confdefs.h.  */
9713int i;
9714_ACEOF
9715if ac_fn_c_try_compile "$LINENO"; then :
9716  xorg_cv_cc_flag_unused_command_line_argument=yes
9717else
9718  xorg_cv_cc_flag_unused_command_line_argument=no
9719fi
9720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9721fi
9722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9723$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9724	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9725	CFLAGS="$xorg_testset_save_CFLAGS"
9726fi
9727
9728found="no"
9729
9730	if test $found = "no" ; then
9731		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9732			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9733		fi
9734
9735		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9736			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9737		fi
9738
9739		CFLAGS="$CFLAGS -Waddress"
9740
9741		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9742$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9743		cacheid=xorg_cv_cc_flag__Waddress
9744		if eval \${$cacheid+:} false; then :
9745  $as_echo_n "(cached) " >&6
9746else
9747  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748/* end confdefs.h.  */
9749int i;
9750int
9751main ()
9752{
9753
9754  ;
9755  return 0;
9756}
9757_ACEOF
9758if ac_fn_c_try_link "$LINENO"; then :
9759  eval $cacheid=yes
9760else
9761  eval $cacheid=no
9762fi
9763rm -f core conftest.err conftest.$ac_objext \
9764    conftest$ac_exeext conftest.$ac_ext
9765fi
9766
9767
9768		CFLAGS="$xorg_testset_save_CFLAGS"
9769
9770		eval supported=\$$cacheid
9771		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9772$as_echo "$supported" >&6; }
9773		if test "$supported" = "yes" ; then
9774			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9775			found="yes"
9776		fi
9777	fi
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793xorg_testset_save_CFLAGS="$CFLAGS"
9794
9795if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9796	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9797	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9798$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9799if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9800  $as_echo_n "(cached) " >&6
9801else
9802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803/* end confdefs.h.  */
9804int i;
9805_ACEOF
9806if ac_fn_c_try_compile "$LINENO"; then :
9807  xorg_cv_cc_flag_unknown_warning_option=yes
9808else
9809  xorg_cv_cc_flag_unknown_warning_option=no
9810fi
9811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9812fi
9813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9814$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9815	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9816	CFLAGS="$xorg_testset_save_CFLAGS"
9817fi
9818
9819if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9820	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9821		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9822	fi
9823	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9824	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9825$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9826if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9827  $as_echo_n "(cached) " >&6
9828else
9829  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9830/* end confdefs.h.  */
9831int i;
9832_ACEOF
9833if ac_fn_c_try_compile "$LINENO"; then :
9834  xorg_cv_cc_flag_unused_command_line_argument=yes
9835else
9836  xorg_cv_cc_flag_unused_command_line_argument=no
9837fi
9838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9839fi
9840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9841$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9842	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9843	CFLAGS="$xorg_testset_save_CFLAGS"
9844fi
9845
9846found="no"
9847
9848	if test $found = "no" ; then
9849		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9850			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9851		fi
9852
9853		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9854			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9855		fi
9856
9857		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9858
9859		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9860$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9861		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9862		if eval \${$cacheid+:} false; then :
9863  $as_echo_n "(cached) " >&6
9864else
9865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866/* end confdefs.h.  */
9867int i;
9868int
9869main ()
9870{
9871
9872  ;
9873  return 0;
9874}
9875_ACEOF
9876if ac_fn_c_try_link "$LINENO"; then :
9877  eval $cacheid=yes
9878else
9879  eval $cacheid=no
9880fi
9881rm -f core conftest.err conftest.$ac_objext \
9882    conftest$ac_exeext conftest.$ac_ext
9883fi
9884
9885
9886		CFLAGS="$xorg_testset_save_CFLAGS"
9887
9888		eval supported=\$$cacheid
9889		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9890$as_echo "$supported" >&6; }
9891		if test "$supported" = "yes" ; then
9892			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9893			found="yes"
9894		fi
9895	fi
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911xorg_testset_save_CFLAGS="$CFLAGS"
9912
9913if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9914	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9916$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9917if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9918  $as_echo_n "(cached) " >&6
9919else
9920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921/* end confdefs.h.  */
9922int i;
9923_ACEOF
9924if ac_fn_c_try_compile "$LINENO"; then :
9925  xorg_cv_cc_flag_unknown_warning_option=yes
9926else
9927  xorg_cv_cc_flag_unknown_warning_option=no
9928fi
9929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9930fi
9931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9932$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9933	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9934	CFLAGS="$xorg_testset_save_CFLAGS"
9935fi
9936
9937if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9938	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9939		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9940	fi
9941	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9942	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9943$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9944if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9945  $as_echo_n "(cached) " >&6
9946else
9947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9948/* end confdefs.h.  */
9949int i;
9950_ACEOF
9951if ac_fn_c_try_compile "$LINENO"; then :
9952  xorg_cv_cc_flag_unused_command_line_argument=yes
9953else
9954  xorg_cv_cc_flag_unused_command_line_argument=no
9955fi
9956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9957fi
9958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9959$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9960	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9961	CFLAGS="$xorg_testset_save_CFLAGS"
9962fi
9963
9964found="no"
9965
9966	if test $found = "no" ; then
9967		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9968			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9969		fi
9970
9971		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9972			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9973		fi
9974
9975		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9976
9977		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9978$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9979		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9980		if eval \${$cacheid+:} false; then :
9981  $as_echo_n "(cached) " >&6
9982else
9983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9984/* end confdefs.h.  */
9985int i;
9986int
9987main ()
9988{
9989
9990  ;
9991  return 0;
9992}
9993_ACEOF
9994if ac_fn_c_try_link "$LINENO"; then :
9995  eval $cacheid=yes
9996else
9997  eval $cacheid=no
9998fi
9999rm -f core conftest.err conftest.$ac_objext \
10000    conftest$ac_exeext conftest.$ac_ext
10001fi
10002
10003
10004		CFLAGS="$xorg_testset_save_CFLAGS"
10005
10006		eval supported=\$$cacheid
10007		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10008$as_echo "$supported" >&6; }
10009		if test "$supported" = "yes" ; then
10010			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10011			found="yes"
10012		fi
10013	fi
10014
10015
10016fi
10017
10018
10019
10020
10021
10022
10023
10024		CWARNFLAGS="$BASE_CFLAGS"
10025		if  test "x$GCC" = xyes ; then
10026		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10027		fi
10028
10029
10030
10031
10032
10033
10034
10035
10036# Check whether --enable-strict-compilation was given.
10037if test "${enable_strict_compilation+set}" = set; then :
10038  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10039else
10040  STRICT_COMPILE=no
10041fi
10042
10043
10044
10045
10046
10047
10048STRICT_CFLAGS=""
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062xorg_testset_save_CFLAGS="$CFLAGS"
10063
10064if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10065	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10066	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10067$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10068if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10069  $as_echo_n "(cached) " >&6
10070else
10071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10072/* end confdefs.h.  */
10073int i;
10074_ACEOF
10075if ac_fn_c_try_compile "$LINENO"; then :
10076  xorg_cv_cc_flag_unknown_warning_option=yes
10077else
10078  xorg_cv_cc_flag_unknown_warning_option=no
10079fi
10080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10081fi
10082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10083$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10084	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10085	CFLAGS="$xorg_testset_save_CFLAGS"
10086fi
10087
10088if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10089	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10090		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10091	fi
10092	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10093	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10094$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10095if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10096  $as_echo_n "(cached) " >&6
10097else
10098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10099/* end confdefs.h.  */
10100int i;
10101_ACEOF
10102if ac_fn_c_try_compile "$LINENO"; then :
10103  xorg_cv_cc_flag_unused_command_line_argument=yes
10104else
10105  xorg_cv_cc_flag_unused_command_line_argument=no
10106fi
10107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10108fi
10109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10110$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10111	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10112	CFLAGS="$xorg_testset_save_CFLAGS"
10113fi
10114
10115found="no"
10116
10117	if test $found = "no" ; then
10118		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10119			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10120		fi
10121
10122		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10123			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10124		fi
10125
10126		CFLAGS="$CFLAGS -pedantic"
10127
10128		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10129$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10130		cacheid=xorg_cv_cc_flag__pedantic
10131		if eval \${$cacheid+:} false; then :
10132  $as_echo_n "(cached) " >&6
10133else
10134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10135/* end confdefs.h.  */
10136int i;
10137int
10138main ()
10139{
10140
10141  ;
10142  return 0;
10143}
10144_ACEOF
10145if ac_fn_c_try_link "$LINENO"; then :
10146  eval $cacheid=yes
10147else
10148  eval $cacheid=no
10149fi
10150rm -f core conftest.err conftest.$ac_objext \
10151    conftest$ac_exeext conftest.$ac_ext
10152fi
10153
10154
10155		CFLAGS="$xorg_testset_save_CFLAGS"
10156
10157		eval supported=\$$cacheid
10158		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10159$as_echo "$supported" >&6; }
10160		if test "$supported" = "yes" ; then
10161			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10162			found="yes"
10163		fi
10164	fi
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180xorg_testset_save_CFLAGS="$CFLAGS"
10181
10182if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10183	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10184	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10185$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10186if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10187  $as_echo_n "(cached) " >&6
10188else
10189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10190/* end confdefs.h.  */
10191int i;
10192_ACEOF
10193if ac_fn_c_try_compile "$LINENO"; then :
10194  xorg_cv_cc_flag_unknown_warning_option=yes
10195else
10196  xorg_cv_cc_flag_unknown_warning_option=no
10197fi
10198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10199fi
10200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10201$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10202	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10203	CFLAGS="$xorg_testset_save_CFLAGS"
10204fi
10205
10206if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10207	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10208		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10209	fi
10210	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10211	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10212$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10213if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10214  $as_echo_n "(cached) " >&6
10215else
10216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217/* end confdefs.h.  */
10218int i;
10219_ACEOF
10220if ac_fn_c_try_compile "$LINENO"; then :
10221  xorg_cv_cc_flag_unused_command_line_argument=yes
10222else
10223  xorg_cv_cc_flag_unused_command_line_argument=no
10224fi
10225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10226fi
10227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10228$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10229	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10230	CFLAGS="$xorg_testset_save_CFLAGS"
10231fi
10232
10233found="no"
10234
10235	if test $found = "no" ; then
10236		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10237			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10238		fi
10239
10240		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10241			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10242		fi
10243
10244		CFLAGS="$CFLAGS -Werror"
10245
10246		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10247$as_echo_n "checking if $CC supports -Werror... " >&6; }
10248		cacheid=xorg_cv_cc_flag__Werror
10249		if eval \${$cacheid+:} false; then :
10250  $as_echo_n "(cached) " >&6
10251else
10252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253/* end confdefs.h.  */
10254int i;
10255int
10256main ()
10257{
10258
10259  ;
10260  return 0;
10261}
10262_ACEOF
10263if ac_fn_c_try_link "$LINENO"; then :
10264  eval $cacheid=yes
10265else
10266  eval $cacheid=no
10267fi
10268rm -f core conftest.err conftest.$ac_objext \
10269    conftest$ac_exeext conftest.$ac_ext
10270fi
10271
10272
10273		CFLAGS="$xorg_testset_save_CFLAGS"
10274
10275		eval supported=\$$cacheid
10276		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10277$as_echo "$supported" >&6; }
10278		if test "$supported" = "yes" ; then
10279			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10280			found="yes"
10281		fi
10282	fi
10283
10284	if test $found = "no" ; then
10285		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10286			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10287		fi
10288
10289		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10290			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10291		fi
10292
10293		CFLAGS="$CFLAGS -errwarn"
10294
10295		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10296$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10297		cacheid=xorg_cv_cc_flag__errwarn
10298		if eval \${$cacheid+:} false; then :
10299  $as_echo_n "(cached) " >&6
10300else
10301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10302/* end confdefs.h.  */
10303int i;
10304int
10305main ()
10306{
10307
10308  ;
10309  return 0;
10310}
10311_ACEOF
10312if ac_fn_c_try_link "$LINENO"; then :
10313  eval $cacheid=yes
10314else
10315  eval $cacheid=no
10316fi
10317rm -f core conftest.err conftest.$ac_objext \
10318    conftest$ac_exeext conftest.$ac_ext
10319fi
10320
10321
10322		CFLAGS="$xorg_testset_save_CFLAGS"
10323
10324		eval supported=\$$cacheid
10325		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10326$as_echo "$supported" >&6; }
10327		if test "$supported" = "yes" ; then
10328			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10329			found="yes"
10330		fi
10331	fi
10332
10333
10334
10335# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10336# activate it with -Werror, so we add it here explicitly.
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350xorg_testset_save_CFLAGS="$CFLAGS"
10351
10352if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10353	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10354	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10355$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10356if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10357  $as_echo_n "(cached) " >&6
10358else
10359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10360/* end confdefs.h.  */
10361int i;
10362_ACEOF
10363if ac_fn_c_try_compile "$LINENO"; then :
10364  xorg_cv_cc_flag_unknown_warning_option=yes
10365else
10366  xorg_cv_cc_flag_unknown_warning_option=no
10367fi
10368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10369fi
10370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10371$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10372	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10373	CFLAGS="$xorg_testset_save_CFLAGS"
10374fi
10375
10376if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10377	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10378		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10379	fi
10380	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10381	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10382$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10383if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10384  $as_echo_n "(cached) " >&6
10385else
10386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387/* end confdefs.h.  */
10388int i;
10389_ACEOF
10390if ac_fn_c_try_compile "$LINENO"; then :
10391  xorg_cv_cc_flag_unused_command_line_argument=yes
10392else
10393  xorg_cv_cc_flag_unused_command_line_argument=no
10394fi
10395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10396fi
10397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10398$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10399	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10400	CFLAGS="$xorg_testset_save_CFLAGS"
10401fi
10402
10403found="no"
10404
10405	if test $found = "no" ; then
10406		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10407			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10408		fi
10409
10410		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10411			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10412		fi
10413
10414		CFLAGS="$CFLAGS -Werror=attributes"
10415
10416		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10417$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10418		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10419		if eval \${$cacheid+:} false; then :
10420  $as_echo_n "(cached) " >&6
10421else
10422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423/* end confdefs.h.  */
10424int i;
10425int
10426main ()
10427{
10428
10429  ;
10430  return 0;
10431}
10432_ACEOF
10433if ac_fn_c_try_link "$LINENO"; then :
10434  eval $cacheid=yes
10435else
10436  eval $cacheid=no
10437fi
10438rm -f core conftest.err conftest.$ac_objext \
10439    conftest$ac_exeext conftest.$ac_ext
10440fi
10441
10442
10443		CFLAGS="$xorg_testset_save_CFLAGS"
10444
10445		eval supported=\$$cacheid
10446		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10447$as_echo "$supported" >&6; }
10448		if test "$supported" = "yes" ; then
10449			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10450			found="yes"
10451		fi
10452	fi
10453
10454
10455
10456if test "x$STRICT_COMPILE" = "xyes"; then
10457    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10458    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10459fi
10460
10461
10462
10463
10464
10465
10466cat >>confdefs.h <<_ACEOF
10467#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10468_ACEOF
10469
10470	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10471	if test "x$PVM" = "x"; then
10472		PVM="0"
10473	fi
10474
10475cat >>confdefs.h <<_ACEOF
10476#define PACKAGE_VERSION_MINOR $PVM
10477_ACEOF
10478
10479	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10480	if test "x$PVP" = "x"; then
10481		PVP="0"
10482	fi
10483
10484cat >>confdefs.h <<_ACEOF
10485#define PACKAGE_VERSION_PATCHLEVEL $PVP
10486_ACEOF
10487
10488
10489
10490CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10491mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10492|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10493echo 'git directory not found: installing possibly empty changelog.' >&2)"
10494
10495
10496
10497
10498macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10499INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10500mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10501|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10502echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10503
10504
10505
10506
10507
10508
10509if test x$APP_MAN_SUFFIX = x    ; then
10510    APP_MAN_SUFFIX=1
10511fi
10512if test x$APP_MAN_DIR = x    ; then
10513    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10514fi
10515
10516if test x$LIB_MAN_SUFFIX = x    ; then
10517    LIB_MAN_SUFFIX=3
10518fi
10519if test x$LIB_MAN_DIR = x    ; then
10520    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10521fi
10522
10523if test x$FILE_MAN_SUFFIX = x    ; then
10524    case $host_os in
10525	solaris*)	FILE_MAN_SUFFIX=4  ;;
10526	*)		FILE_MAN_SUFFIX=5  ;;
10527    esac
10528fi
10529if test x$FILE_MAN_DIR = x    ; then
10530    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10531fi
10532
10533if test x$MISC_MAN_SUFFIX = x    ; then
10534    case $host_os in
10535	solaris*)	MISC_MAN_SUFFIX=5  ;;
10536	*)		MISC_MAN_SUFFIX=7  ;;
10537    esac
10538fi
10539if test x$MISC_MAN_DIR = x    ; then
10540    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10541fi
10542
10543if test x$DRIVER_MAN_SUFFIX = x    ; then
10544    case $host_os in
10545	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10546	*)		DRIVER_MAN_SUFFIX=4  ;;
10547    esac
10548fi
10549if test x$DRIVER_MAN_DIR = x    ; then
10550    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10551fi
10552
10553if test x$ADMIN_MAN_SUFFIX = x    ; then
10554    case $host_os in
10555	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10556	*)		ADMIN_MAN_SUFFIX=8  ;;
10557    esac
10558fi
10559if test x$ADMIN_MAN_DIR = x    ; then
10560    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10561fi
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577XORG_MAN_PAGE="X Version 11"
10578
10579MAN_SUBSTS="\
10580	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10581	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10582	-e 's|__xservername__|Xorg|g' \
10583	-e 's|__xconfigfile__|xorg.conf|g' \
10584	-e 's|__projectroot__|\$(prefix)|g' \
10585	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10586	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10587	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10588	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10589	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10590	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10591	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10592
10593
10594
10595# Check whether --enable-silent-rules was given.
10596if test "${enable_silent_rules+set}" = set; then :
10597  enableval=$enable_silent_rules;
10598fi
10599
10600case $enable_silent_rules in
10601yes) AM_DEFAULT_VERBOSITY=0;;
10602no)  AM_DEFAULT_VERBOSITY=1;;
10603*)   AM_DEFAULT_VERBOSITY=0;;
10604esac
10605am_make=${MAKE-make}
10606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10607$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10608if ${am_cv_make_support_nested_variables+:} false; then :
10609  $as_echo_n "(cached) " >&6
10610else
10611  if $as_echo 'TRUE=$(BAR$(V))
10612BAR0=false
10613BAR1=true
10614V=1
10615am__doit:
10616	@$(TRUE)
10617.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10618  am_cv_make_support_nested_variables=yes
10619else
10620  am_cv_make_support_nested_variables=no
10621fi
10622fi
10623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10624$as_echo "$am_cv_make_support_nested_variables" >&6; }
10625if test $am_cv_make_support_nested_variables = yes; then
10626    AM_V='$(V)'
10627  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10628else
10629  AM_V=$AM_DEFAULT_VERBOSITY
10630  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10631fi
10632AM_BACKSLASH='\'
10633
10634
10635
10636# Initialize libtool
10637# Check whether --enable-static was given.
10638if test "${enable_static+set}" = set; then :
10639  enableval=$enable_static; p=${PACKAGE-default}
10640    case $enableval in
10641    yes) enable_static=yes ;;
10642    no) enable_static=no ;;
10643    *)
10644     enable_static=no
10645      # Look at the argument we got.  We use all the common list separators.
10646      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10647      for pkg in $enableval; do
10648	IFS="$lt_save_ifs"
10649	if test "X$pkg" = "X$p"; then
10650	  enable_static=yes
10651	fi
10652      done
10653      IFS="$lt_save_ifs"
10654      ;;
10655    esac
10656else
10657  enable_static=no
10658fi
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668case `pwd` in
10669  *\ * | *\	*)
10670    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10671$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10672esac
10673
10674
10675
10676macro_version='2.4.2'
10677macro_revision='1.3337'
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691ltmain="$ac_aux_dir/ltmain.sh"
10692
10693# Backslashify metacharacters that are still active within
10694# double-quoted strings.
10695sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10696
10697# Same as above, but do not quote variable references.
10698double_quote_subst='s/\(["`\\]\)/\\\1/g'
10699
10700# Sed substitution to delay expansion of an escaped shell variable in a
10701# double_quote_subst'ed string.
10702delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10703
10704# Sed substitution to delay expansion of an escaped single quote.
10705delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10706
10707# Sed substitution to avoid accidental globbing in evaled expressions
10708no_glob_subst='s/\*/\\\*/g'
10709
10710ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10711ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10712ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10713
10714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10715$as_echo_n "checking how to print strings... " >&6; }
10716# Test print first, because it will be a builtin if present.
10717if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10718   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10719  ECHO='print -r --'
10720elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10721  ECHO='printf %s\n'
10722else
10723  # Use this function as a fallback that always works.
10724  func_fallback_echo ()
10725  {
10726    eval 'cat <<_LTECHO_EOF
10727$1
10728_LTECHO_EOF'
10729  }
10730  ECHO='func_fallback_echo'
10731fi
10732
10733# func_echo_all arg...
10734# Invoke $ECHO with all args, space-separated.
10735func_echo_all ()
10736{
10737    $ECHO ""
10738}
10739
10740case "$ECHO" in
10741  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10742$as_echo "printf" >&6; } ;;
10743  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10744$as_echo "print -r" >&6; } ;;
10745  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10746$as_echo "cat" >&6; } ;;
10747esac
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10763$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10764if ${ac_cv_path_SED+:} false; then :
10765  $as_echo_n "(cached) " >&6
10766else
10767            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10768     for ac_i in 1 2 3 4 5 6 7; do
10769       ac_script="$ac_script$as_nl$ac_script"
10770     done
10771     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10772     { ac_script=; unset ac_script;}
10773     if test -z "$SED"; then
10774  ac_path_SED_found=false
10775  # Loop through the user's path and test for each of PROGNAME-LIST
10776  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10777for as_dir in $PATH
10778do
10779  IFS=$as_save_IFS
10780  test -z "$as_dir" && as_dir=.
10781    for ac_prog in sed gsed; do
10782    for ac_exec_ext in '' $ac_executable_extensions; do
10783      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10784      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10785# Check for GNU ac_path_SED and select it if it is found.
10786  # Check for GNU $ac_path_SED
10787case `"$ac_path_SED" --version 2>&1` in
10788*GNU*)
10789  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10790*)
10791  ac_count=0
10792  $as_echo_n 0123456789 >"conftest.in"
10793  while :
10794  do
10795    cat "conftest.in" "conftest.in" >"conftest.tmp"
10796    mv "conftest.tmp" "conftest.in"
10797    cp "conftest.in" "conftest.nl"
10798    $as_echo '' >> "conftest.nl"
10799    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10800    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10801    as_fn_arith $ac_count + 1 && ac_count=$as_val
10802    if test $ac_count -gt ${ac_path_SED_max-0}; then
10803      # Best one so far, save it but keep looking for a better one
10804      ac_cv_path_SED="$ac_path_SED"
10805      ac_path_SED_max=$ac_count
10806    fi
10807    # 10*(2^10) chars as input seems more than enough
10808    test $ac_count -gt 10 && break
10809  done
10810  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10811esac
10812
10813      $ac_path_SED_found && break 3
10814    done
10815  done
10816  done
10817IFS=$as_save_IFS
10818  if test -z "$ac_cv_path_SED"; then
10819    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10820  fi
10821else
10822  ac_cv_path_SED=$SED
10823fi
10824
10825fi
10826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10827$as_echo "$ac_cv_path_SED" >&6; }
10828 SED="$ac_cv_path_SED"
10829  rm -f conftest.sed
10830
10831test -z "$SED" && SED=sed
10832Xsed="$SED -e 1s/^X//"
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10845$as_echo_n "checking for fgrep... " >&6; }
10846if ${ac_cv_path_FGREP+:} false; then :
10847  $as_echo_n "(cached) " >&6
10848else
10849  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10850   then ac_cv_path_FGREP="$GREP -F"
10851   else
10852     if test -z "$FGREP"; then
10853  ac_path_FGREP_found=false
10854  # Loop through the user's path and test for each of PROGNAME-LIST
10855  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10856for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10857do
10858  IFS=$as_save_IFS
10859  test -z "$as_dir" && as_dir=.
10860    for ac_prog in fgrep; do
10861    for ac_exec_ext in '' $ac_executable_extensions; do
10862      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10863      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10864# Check for GNU ac_path_FGREP and select it if it is found.
10865  # Check for GNU $ac_path_FGREP
10866case `"$ac_path_FGREP" --version 2>&1` in
10867*GNU*)
10868  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10869*)
10870  ac_count=0
10871  $as_echo_n 0123456789 >"conftest.in"
10872  while :
10873  do
10874    cat "conftest.in" "conftest.in" >"conftest.tmp"
10875    mv "conftest.tmp" "conftest.in"
10876    cp "conftest.in" "conftest.nl"
10877    $as_echo 'FGREP' >> "conftest.nl"
10878    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10879    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10880    as_fn_arith $ac_count + 1 && ac_count=$as_val
10881    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10882      # Best one so far, save it but keep looking for a better one
10883      ac_cv_path_FGREP="$ac_path_FGREP"
10884      ac_path_FGREP_max=$ac_count
10885    fi
10886    # 10*(2^10) chars as input seems more than enough
10887    test $ac_count -gt 10 && break
10888  done
10889  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10890esac
10891
10892      $ac_path_FGREP_found && break 3
10893    done
10894  done
10895  done
10896IFS=$as_save_IFS
10897  if test -z "$ac_cv_path_FGREP"; then
10898    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10899  fi
10900else
10901  ac_cv_path_FGREP=$FGREP
10902fi
10903
10904   fi
10905fi
10906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10907$as_echo "$ac_cv_path_FGREP" >&6; }
10908 FGREP="$ac_cv_path_FGREP"
10909
10910
10911test -z "$GREP" && GREP=grep
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931# Check whether --with-gnu-ld was given.
10932if test "${with_gnu_ld+set}" = set; then :
10933  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10934else
10935  with_gnu_ld=no
10936fi
10937
10938ac_prog=ld
10939if test "$GCC" = yes; then
10940  # Check if gcc -print-prog-name=ld gives a path.
10941  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10942$as_echo_n "checking for ld used by $CC... " >&6; }
10943  case $host in
10944  *-*-mingw*)
10945    # gcc leaves a trailing carriage return which upsets mingw
10946    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10947  *)
10948    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10949  esac
10950  case $ac_prog in
10951    # Accept absolute paths.
10952    [\\/]* | ?:[\\/]*)
10953      re_direlt='/[^/][^/]*/\.\./'
10954      # Canonicalize the pathname of ld
10955      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10956      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10957	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10958      done
10959      test -z "$LD" && LD="$ac_prog"
10960      ;;
10961  "")
10962    # If it fails, then pretend we aren't using GCC.
10963    ac_prog=ld
10964    ;;
10965  *)
10966    # If it is relative, then search for the first ld in PATH.
10967    with_gnu_ld=unknown
10968    ;;
10969  esac
10970elif test "$with_gnu_ld" = yes; then
10971  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10972$as_echo_n "checking for GNU ld... " >&6; }
10973else
10974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10975$as_echo_n "checking for non-GNU ld... " >&6; }
10976fi
10977if ${lt_cv_path_LD+:} false; then :
10978  $as_echo_n "(cached) " >&6
10979else
10980  if test -z "$LD"; then
10981  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10982  for ac_dir in $PATH; do
10983    IFS="$lt_save_ifs"
10984    test -z "$ac_dir" && ac_dir=.
10985    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10986      lt_cv_path_LD="$ac_dir/$ac_prog"
10987      # Check to see if the program is GNU ld.  I'd rather use --version,
10988      # but apparently some variants of GNU ld only accept -v.
10989      # Break only if it was the GNU/non-GNU ld that we prefer.
10990      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10991      *GNU* | *'with BFD'*)
10992	test "$with_gnu_ld" != no && break
10993	;;
10994      *)
10995	test "$with_gnu_ld" != yes && break
10996	;;
10997      esac
10998    fi
10999  done
11000  IFS="$lt_save_ifs"
11001else
11002  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11003fi
11004fi
11005
11006LD="$lt_cv_path_LD"
11007if test -n "$LD"; then
11008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11009$as_echo "$LD" >&6; }
11010else
11011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11012$as_echo "no" >&6; }
11013fi
11014test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11016$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11017if ${lt_cv_prog_gnu_ld+:} false; then :
11018  $as_echo_n "(cached) " >&6
11019else
11020  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11021case `$LD -v 2>&1 </dev/null` in
11022*GNU* | *'with BFD'*)
11023  lt_cv_prog_gnu_ld=yes
11024  ;;
11025*)
11026  lt_cv_prog_gnu_ld=no
11027  ;;
11028esac
11029fi
11030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11031$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11032with_gnu_ld=$lt_cv_prog_gnu_ld
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11043$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11044if ${lt_cv_path_NM+:} false; then :
11045  $as_echo_n "(cached) " >&6
11046else
11047  if test -n "$NM"; then
11048  # Let the user override the test.
11049  lt_cv_path_NM="$NM"
11050else
11051  lt_nm_to_check="${ac_tool_prefix}nm"
11052  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11053    lt_nm_to_check="$lt_nm_to_check nm"
11054  fi
11055  for lt_tmp_nm in $lt_nm_to_check; do
11056    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11057    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11058      IFS="$lt_save_ifs"
11059      test -z "$ac_dir" && ac_dir=.
11060      tmp_nm="$ac_dir/$lt_tmp_nm"
11061      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11062	# Check to see if the nm accepts a BSD-compat flag.
11063	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
11064	#   nm: unknown option "B" ignored
11065	# Tru64's nm complains that /dev/null is an invalid object file
11066	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11067	*/dev/null* | *'Invalid file or object type'*)
11068	  lt_cv_path_NM="$tmp_nm -B"
11069	  break
11070	  ;;
11071	*)
11072	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11073	  */dev/null*)
11074	    lt_cv_path_NM="$tmp_nm -p"
11075	    break
11076	    ;;
11077	  *)
11078	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11079	    continue # so that we can try to find one that supports BSD flags
11080	    ;;
11081	  esac
11082	  ;;
11083	esac
11084      fi
11085    done
11086    IFS="$lt_save_ifs"
11087  done
11088  : ${lt_cv_path_NM=no}
11089fi
11090fi
11091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11092$as_echo "$lt_cv_path_NM" >&6; }
11093if test "$lt_cv_path_NM" != "no"; then
11094  NM="$lt_cv_path_NM"
11095else
11096  # Didn't find any BSD compatible name lister, look for dumpbin.
11097  if test -n "$DUMPBIN"; then :
11098    # Let the user override the test.
11099  else
11100    if test -n "$ac_tool_prefix"; then
11101  for ac_prog in dumpbin "link -dump"
11102  do
11103    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11104set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11106$as_echo_n "checking for $ac_word... " >&6; }
11107if ${ac_cv_prog_DUMPBIN+:} false; then :
11108  $as_echo_n "(cached) " >&6
11109else
11110  if test -n "$DUMPBIN"; then
11111  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11112else
11113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11114for as_dir in $PATH
11115do
11116  IFS=$as_save_IFS
11117  test -z "$as_dir" && as_dir=.
11118    for ac_exec_ext in '' $ac_executable_extensions; do
11119  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11120    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11121    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11122    break 2
11123  fi
11124done
11125  done
11126IFS=$as_save_IFS
11127
11128fi
11129fi
11130DUMPBIN=$ac_cv_prog_DUMPBIN
11131if test -n "$DUMPBIN"; then
11132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11133$as_echo "$DUMPBIN" >&6; }
11134else
11135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11136$as_echo "no" >&6; }
11137fi
11138
11139
11140    test -n "$DUMPBIN" && break
11141  done
11142fi
11143if test -z "$DUMPBIN"; then
11144  ac_ct_DUMPBIN=$DUMPBIN
11145  for ac_prog in dumpbin "link -dump"
11146do
11147  # Extract the first word of "$ac_prog", so it can be a program name with args.
11148set dummy $ac_prog; ac_word=$2
11149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11150$as_echo_n "checking for $ac_word... " >&6; }
11151if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11152  $as_echo_n "(cached) " >&6
11153else
11154  if test -n "$ac_ct_DUMPBIN"; then
11155  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11156else
11157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11158for as_dir in $PATH
11159do
11160  IFS=$as_save_IFS
11161  test -z "$as_dir" && as_dir=.
11162    for ac_exec_ext in '' $ac_executable_extensions; do
11163  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11164    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11166    break 2
11167  fi
11168done
11169  done
11170IFS=$as_save_IFS
11171
11172fi
11173fi
11174ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11175if test -n "$ac_ct_DUMPBIN"; then
11176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11177$as_echo "$ac_ct_DUMPBIN" >&6; }
11178else
11179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11180$as_echo "no" >&6; }
11181fi
11182
11183
11184  test -n "$ac_ct_DUMPBIN" && break
11185done
11186
11187  if test "x$ac_ct_DUMPBIN" = x; then
11188    DUMPBIN=":"
11189  else
11190    case $cross_compiling:$ac_tool_warned in
11191yes:)
11192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11194ac_tool_warned=yes ;;
11195esac
11196    DUMPBIN=$ac_ct_DUMPBIN
11197  fi
11198fi
11199
11200    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11201    *COFF*)
11202      DUMPBIN="$DUMPBIN -symbols"
11203      ;;
11204    *)
11205      DUMPBIN=:
11206      ;;
11207    esac
11208  fi
11209
11210  if test "$DUMPBIN" != ":"; then
11211    NM="$DUMPBIN"
11212  fi
11213fi
11214test -z "$NM" && NM=nm
11215
11216
11217
11218
11219
11220
11221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11222$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11223if ${lt_cv_nm_interface+:} false; then :
11224  $as_echo_n "(cached) " >&6
11225else
11226  lt_cv_nm_interface="BSD nm"
11227  echo "int some_variable = 0;" > conftest.$ac_ext
11228  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11229  (eval "$ac_compile" 2>conftest.err)
11230  cat conftest.err >&5
11231  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11232  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11233  cat conftest.err >&5
11234  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11235  cat conftest.out >&5
11236  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11237    lt_cv_nm_interface="MS dumpbin"
11238  fi
11239  rm -f conftest*
11240fi
11241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11242$as_echo "$lt_cv_nm_interface" >&6; }
11243
11244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11245$as_echo_n "checking whether ln -s works... " >&6; }
11246LN_S=$as_ln_s
11247if test "$LN_S" = "ln -s"; then
11248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11249$as_echo "yes" >&6; }
11250else
11251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11252$as_echo "no, using $LN_S" >&6; }
11253fi
11254
11255# find the maximum length of command line arguments
11256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11257$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11258if ${lt_cv_sys_max_cmd_len+:} false; then :
11259  $as_echo_n "(cached) " >&6
11260else
11261    i=0
11262  teststring="ABCD"
11263
11264  case $build_os in
11265  msdosdjgpp*)
11266    # On DJGPP, this test can blow up pretty badly due to problems in libc
11267    # (any single argument exceeding 2000 bytes causes a buffer overrun
11268    # during glob expansion).  Even if it were fixed, the result of this
11269    # check would be larger than it should be.
11270    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11271    ;;
11272
11273  gnu*)
11274    # Under GNU Hurd, this test is not required because there is
11275    # no limit to the length of command line arguments.
11276    # Libtool will interpret -1 as no limit whatsoever
11277    lt_cv_sys_max_cmd_len=-1;
11278    ;;
11279
11280  cygwin* | mingw* | cegcc*)
11281    # On Win9x/ME, this test blows up -- it succeeds, but takes
11282    # about 5 minutes as the teststring grows exponentially.
11283    # Worse, since 9x/ME are not pre-emptively multitasking,
11284    # you end up with a "frozen" computer, even though with patience
11285    # the test eventually succeeds (with a max line length of 256k).
11286    # Instead, let's just punt: use the minimum linelength reported by
11287    # all of the supported platforms: 8192 (on NT/2K/XP).
11288    lt_cv_sys_max_cmd_len=8192;
11289    ;;
11290
11291  mint*)
11292    # On MiNT this can take a long time and run out of memory.
11293    lt_cv_sys_max_cmd_len=8192;
11294    ;;
11295
11296  amigaos*)
11297    # On AmigaOS with pdksh, this test takes hours, literally.
11298    # So we just punt and use a minimum line length of 8192.
11299    lt_cv_sys_max_cmd_len=8192;
11300    ;;
11301
11302  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11303    # This has been around since 386BSD, at least.  Likely further.
11304    if test -x /sbin/sysctl; then
11305      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11306    elif test -x /usr/sbin/sysctl; then
11307      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11308    else
11309      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11310    fi
11311    # And add a safety zone
11312    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11313    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11314    ;;
11315
11316  interix*)
11317    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11318    lt_cv_sys_max_cmd_len=196608
11319    ;;
11320
11321  os2*)
11322    # The test takes a long time on OS/2.
11323    lt_cv_sys_max_cmd_len=8192
11324    ;;
11325
11326  osf*)
11327    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11328    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11329    # nice to cause kernel panics so lets avoid the loop below.
11330    # First set a reasonable default.
11331    lt_cv_sys_max_cmd_len=16384
11332    #
11333    if test -x /sbin/sysconfig; then
11334      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11335        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11336      esac
11337    fi
11338    ;;
11339  sco3.2v5*)
11340    lt_cv_sys_max_cmd_len=102400
11341    ;;
11342  sysv5* | sco5v6* | sysv4.2uw2*)
11343    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11344    if test -n "$kargmax"; then
11345      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11346    else
11347      lt_cv_sys_max_cmd_len=32768
11348    fi
11349    ;;
11350  *)
11351    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11352    if test -n "$lt_cv_sys_max_cmd_len"; then
11353      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11354      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11355    else
11356      # Make teststring a little bigger before we do anything with it.
11357      # a 1K string should be a reasonable start.
11358      for i in 1 2 3 4 5 6 7 8 ; do
11359        teststring=$teststring$teststring
11360      done
11361      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11362      # If test is not a shell built-in, we'll probably end up computing a
11363      # maximum length that is only half of the actual maximum length, but
11364      # we can't tell.
11365      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11366	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11367	      test $i != 17 # 1/2 MB should be enough
11368      do
11369        i=`expr $i + 1`
11370        teststring=$teststring$teststring
11371      done
11372      # Only check the string length outside the loop.
11373      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11374      teststring=
11375      # Add a significant safety factor because C++ compilers can tack on
11376      # massive amounts of additional arguments before passing them to the
11377      # linker.  It appears as though 1/2 is a usable value.
11378      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11379    fi
11380    ;;
11381  esac
11382
11383fi
11384
11385if test -n $lt_cv_sys_max_cmd_len ; then
11386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11387$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11388else
11389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11390$as_echo "none" >&6; }
11391fi
11392max_cmd_len=$lt_cv_sys_max_cmd_len
11393
11394
11395
11396
11397
11398
11399: ${CP="cp -f"}
11400: ${MV="mv -f"}
11401: ${RM="rm -f"}
11402
11403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11404$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11405# Try some XSI features
11406xsi_shell=no
11407( _lt_dummy="a/b/c"
11408  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11409      = c,a/b,b/c, \
11410    && eval 'test $(( 1 + 1 )) -eq 2 \
11411    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11412  && xsi_shell=yes
11413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11414$as_echo "$xsi_shell" >&6; }
11415
11416
11417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11418$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11419lt_shell_append=no
11420( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11421    >/dev/null 2>&1 \
11422  && lt_shell_append=yes
11423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11424$as_echo "$lt_shell_append" >&6; }
11425
11426
11427if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11428  lt_unset=unset
11429else
11430  lt_unset=false
11431fi
11432
11433
11434
11435
11436
11437# test EBCDIC or ASCII
11438case `echo X|tr X '\101'` in
11439 A) # ASCII based system
11440    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11441  lt_SP2NL='tr \040 \012'
11442  lt_NL2SP='tr \015\012 \040\040'
11443  ;;
11444 *) # EBCDIC based system
11445  lt_SP2NL='tr \100 \n'
11446  lt_NL2SP='tr \r\n \100\100'
11447  ;;
11448esac
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11459$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11460if ${lt_cv_to_host_file_cmd+:} false; then :
11461  $as_echo_n "(cached) " >&6
11462else
11463  case $host in
11464  *-*-mingw* )
11465    case $build in
11466      *-*-mingw* ) # actually msys
11467        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11468        ;;
11469      *-*-cygwin* )
11470        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11471        ;;
11472      * ) # otherwise, assume *nix
11473        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11474        ;;
11475    esac
11476    ;;
11477  *-*-cygwin* )
11478    case $build in
11479      *-*-mingw* ) # actually msys
11480        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11481        ;;
11482      *-*-cygwin* )
11483        lt_cv_to_host_file_cmd=func_convert_file_noop
11484        ;;
11485      * ) # otherwise, assume *nix
11486        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11487        ;;
11488    esac
11489    ;;
11490  * ) # unhandled hosts (and "normal" native builds)
11491    lt_cv_to_host_file_cmd=func_convert_file_noop
11492    ;;
11493esac
11494
11495fi
11496
11497to_host_file_cmd=$lt_cv_to_host_file_cmd
11498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11499$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11500
11501
11502
11503
11504
11505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11506$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11507if ${lt_cv_to_tool_file_cmd+:} false; then :
11508  $as_echo_n "(cached) " >&6
11509else
11510  #assume ordinary cross tools, or native build.
11511lt_cv_to_tool_file_cmd=func_convert_file_noop
11512case $host in
11513  *-*-mingw* )
11514    case $build in
11515      *-*-mingw* ) # actually msys
11516        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11517        ;;
11518    esac
11519    ;;
11520esac
11521
11522fi
11523
11524to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11526$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11527
11528
11529
11530
11531
11532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11533$as_echo_n "checking for $LD option to reload object files... " >&6; }
11534if ${lt_cv_ld_reload_flag+:} false; then :
11535  $as_echo_n "(cached) " >&6
11536else
11537  lt_cv_ld_reload_flag='-r'
11538fi
11539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11540$as_echo "$lt_cv_ld_reload_flag" >&6; }
11541reload_flag=$lt_cv_ld_reload_flag
11542case $reload_flag in
11543"" | " "*) ;;
11544*) reload_flag=" $reload_flag" ;;
11545esac
11546reload_cmds='$LD$reload_flag -o $output$reload_objs'
11547case $host_os in
11548  cygwin* | mingw* | pw32* | cegcc*)
11549    if test "$GCC" != yes; then
11550      reload_cmds=false
11551    fi
11552    ;;
11553  darwin*)
11554    if test "$GCC" = yes; then
11555      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11556    else
11557      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11558    fi
11559    ;;
11560esac
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570if test -n "$ac_tool_prefix"; then
11571  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11572set dummy ${ac_tool_prefix}objdump; ac_word=$2
11573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11574$as_echo_n "checking for $ac_word... " >&6; }
11575if ${ac_cv_prog_OBJDUMP+:} false; then :
11576  $as_echo_n "(cached) " >&6
11577else
11578  if test -n "$OBJDUMP"; then
11579  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11580else
11581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11582for as_dir in $PATH
11583do
11584  IFS=$as_save_IFS
11585  test -z "$as_dir" && as_dir=.
11586    for ac_exec_ext in '' $ac_executable_extensions; do
11587  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11588    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11589    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11590    break 2
11591  fi
11592done
11593  done
11594IFS=$as_save_IFS
11595
11596fi
11597fi
11598OBJDUMP=$ac_cv_prog_OBJDUMP
11599if test -n "$OBJDUMP"; then
11600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11601$as_echo "$OBJDUMP" >&6; }
11602else
11603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11604$as_echo "no" >&6; }
11605fi
11606
11607
11608fi
11609if test -z "$ac_cv_prog_OBJDUMP"; then
11610  ac_ct_OBJDUMP=$OBJDUMP
11611  # Extract the first word of "objdump", so it can be a program name with args.
11612set dummy objdump; ac_word=$2
11613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11614$as_echo_n "checking for $ac_word... " >&6; }
11615if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11616  $as_echo_n "(cached) " >&6
11617else
11618  if test -n "$ac_ct_OBJDUMP"; then
11619  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11620else
11621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622for as_dir in $PATH
11623do
11624  IFS=$as_save_IFS
11625  test -z "$as_dir" && as_dir=.
11626    for ac_exec_ext in '' $ac_executable_extensions; do
11627  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11628    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11629    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11630    break 2
11631  fi
11632done
11633  done
11634IFS=$as_save_IFS
11635
11636fi
11637fi
11638ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11639if test -n "$ac_ct_OBJDUMP"; then
11640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11641$as_echo "$ac_ct_OBJDUMP" >&6; }
11642else
11643  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644$as_echo "no" >&6; }
11645fi
11646
11647  if test "x$ac_ct_OBJDUMP" = x; then
11648    OBJDUMP="false"
11649  else
11650    case $cross_compiling:$ac_tool_warned in
11651yes:)
11652{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11654ac_tool_warned=yes ;;
11655esac
11656    OBJDUMP=$ac_ct_OBJDUMP
11657  fi
11658else
11659  OBJDUMP="$ac_cv_prog_OBJDUMP"
11660fi
11661
11662test -z "$OBJDUMP" && OBJDUMP=objdump
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11673$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11674if ${lt_cv_deplibs_check_method+:} false; then :
11675  $as_echo_n "(cached) " >&6
11676else
11677  lt_cv_file_magic_cmd='$MAGIC_CMD'
11678lt_cv_file_magic_test_file=
11679lt_cv_deplibs_check_method='unknown'
11680# Need to set the preceding variable on all platforms that support
11681# interlibrary dependencies.
11682# 'none' -- dependencies not supported.
11683# `unknown' -- same as none, but documents that we really don't know.
11684# 'pass_all' -- all dependencies passed with no checks.
11685# 'test_compile' -- check by making test program.
11686# 'file_magic [[regex]]' -- check by looking for files in library path
11687# which responds to the $file_magic_cmd with a given extended regex.
11688# If you have `file' or equivalent on your system and you're not sure
11689# whether `pass_all' will *always* work, you probably want this one.
11690
11691case $host_os in
11692aix[4-9]*)
11693  lt_cv_deplibs_check_method=pass_all
11694  ;;
11695
11696beos*)
11697  lt_cv_deplibs_check_method=pass_all
11698  ;;
11699
11700bsdi[45]*)
11701  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11702  lt_cv_file_magic_cmd='/usr/bin/file -L'
11703  lt_cv_file_magic_test_file=/shlib/libc.so
11704  ;;
11705
11706cygwin*)
11707  # func_win32_libid is a shell function defined in ltmain.sh
11708  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11709  lt_cv_file_magic_cmd='func_win32_libid'
11710  ;;
11711
11712mingw* | pw32*)
11713  # Base MSYS/MinGW do not provide the 'file' command needed by
11714  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11715  # unless we find 'file', for example because we are cross-compiling.
11716  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11717  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11718    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11719    lt_cv_file_magic_cmd='func_win32_libid'
11720  else
11721    # Keep this pattern in sync with the one in func_win32_libid.
11722    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11723    lt_cv_file_magic_cmd='$OBJDUMP -f'
11724  fi
11725  ;;
11726
11727cegcc*)
11728  # use the weaker test based on 'objdump'. See mingw*.
11729  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11730  lt_cv_file_magic_cmd='$OBJDUMP -f'
11731  ;;
11732
11733darwin* | rhapsody*)
11734  lt_cv_deplibs_check_method=pass_all
11735  ;;
11736
11737freebsd* | dragonfly*)
11738  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11739    case $host_cpu in
11740    i*86 )
11741      # Not sure whether the presence of OpenBSD here was a mistake.
11742      # Let's accept both of them until this is cleared up.
11743      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11744      lt_cv_file_magic_cmd=/usr/bin/file
11745      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11746      ;;
11747    esac
11748  else
11749    lt_cv_deplibs_check_method=pass_all
11750  fi
11751  ;;
11752
11753gnu*)
11754  lt_cv_deplibs_check_method=pass_all
11755  ;;
11756
11757haiku*)
11758  lt_cv_deplibs_check_method=pass_all
11759  ;;
11760
11761hpux10.20* | hpux11*)
11762  lt_cv_file_magic_cmd=/usr/bin/file
11763  case $host_cpu in
11764  ia64*)
11765    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11766    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11767    ;;
11768  hppa*64*)
11769    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]'
11770    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11771    ;;
11772  *)
11773    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11774    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11775    ;;
11776  esac
11777  ;;
11778
11779interix[3-9]*)
11780  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11781  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11782  ;;
11783
11784irix5* | irix6* | nonstopux*)
11785  case $LD in
11786  *-32|*"-32 ") libmagic=32-bit;;
11787  *-n32|*"-n32 ") libmagic=N32;;
11788  *-64|*"-64 ") libmagic=64-bit;;
11789  *) libmagic=never-match;;
11790  esac
11791  lt_cv_deplibs_check_method=pass_all
11792  ;;
11793
11794# This must be glibc/ELF.
11795linux* | k*bsd*-gnu | kopensolaris*-gnu)
11796  lt_cv_deplibs_check_method=pass_all
11797  ;;
11798
11799netbsd*)
11800  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11801    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11802  else
11803    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11804  fi
11805  ;;
11806
11807newos6*)
11808  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11809  lt_cv_file_magic_cmd=/usr/bin/file
11810  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11811  ;;
11812
11813*nto* | *qnx*)
11814  lt_cv_deplibs_check_method=pass_all
11815  ;;
11816
11817openbsd*)
11818  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11819    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11820  else
11821    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11822  fi
11823  ;;
11824
11825osf3* | osf4* | osf5*)
11826  lt_cv_deplibs_check_method=pass_all
11827  ;;
11828
11829rdos*)
11830  lt_cv_deplibs_check_method=pass_all
11831  ;;
11832
11833solaris*)
11834  lt_cv_deplibs_check_method=pass_all
11835  ;;
11836
11837sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11838  lt_cv_deplibs_check_method=pass_all
11839  ;;
11840
11841sysv4 | sysv4.3*)
11842  case $host_vendor in
11843  motorola)
11844    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]'
11845    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11846    ;;
11847  ncr)
11848    lt_cv_deplibs_check_method=pass_all
11849    ;;
11850  sequent)
11851    lt_cv_file_magic_cmd='/bin/file'
11852    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11853    ;;
11854  sni)
11855    lt_cv_file_magic_cmd='/bin/file'
11856    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11857    lt_cv_file_magic_test_file=/lib/libc.so
11858    ;;
11859  siemens)
11860    lt_cv_deplibs_check_method=pass_all
11861    ;;
11862  pc)
11863    lt_cv_deplibs_check_method=pass_all
11864    ;;
11865  esac
11866  ;;
11867
11868tpf*)
11869  lt_cv_deplibs_check_method=pass_all
11870  ;;
11871esac
11872
11873fi
11874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11875$as_echo "$lt_cv_deplibs_check_method" >&6; }
11876
11877file_magic_glob=
11878want_nocaseglob=no
11879if test "$build" = "$host"; then
11880  case $host_os in
11881  mingw* | pw32*)
11882    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11883      want_nocaseglob=yes
11884    else
11885      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11886    fi
11887    ;;
11888  esac
11889fi
11890
11891file_magic_cmd=$lt_cv_file_magic_cmd
11892deplibs_check_method=$lt_cv_deplibs_check_method
11893test -z "$deplibs_check_method" && deplibs_check_method=unknown
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916if test -n "$ac_tool_prefix"; then
11917  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11918set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11920$as_echo_n "checking for $ac_word... " >&6; }
11921if ${ac_cv_prog_DLLTOOL+:} false; then :
11922  $as_echo_n "(cached) " >&6
11923else
11924  if test -n "$DLLTOOL"; then
11925  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11926else
11927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928for as_dir in $PATH
11929do
11930  IFS=$as_save_IFS
11931  test -z "$as_dir" && as_dir=.
11932    for ac_exec_ext in '' $ac_executable_extensions; do
11933  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11934    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11935    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11936    break 2
11937  fi
11938done
11939  done
11940IFS=$as_save_IFS
11941
11942fi
11943fi
11944DLLTOOL=$ac_cv_prog_DLLTOOL
11945if test -n "$DLLTOOL"; then
11946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11947$as_echo "$DLLTOOL" >&6; }
11948else
11949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11950$as_echo "no" >&6; }
11951fi
11952
11953
11954fi
11955if test -z "$ac_cv_prog_DLLTOOL"; then
11956  ac_ct_DLLTOOL=$DLLTOOL
11957  # Extract the first word of "dlltool", so it can be a program name with args.
11958set dummy dlltool; ac_word=$2
11959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11960$as_echo_n "checking for $ac_word... " >&6; }
11961if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11962  $as_echo_n "(cached) " >&6
11963else
11964  if test -n "$ac_ct_DLLTOOL"; then
11965  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11966else
11967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11968for as_dir in $PATH
11969do
11970  IFS=$as_save_IFS
11971  test -z "$as_dir" && as_dir=.
11972    for ac_exec_ext in '' $ac_executable_extensions; do
11973  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11974    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11975    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11976    break 2
11977  fi
11978done
11979  done
11980IFS=$as_save_IFS
11981
11982fi
11983fi
11984ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11985if test -n "$ac_ct_DLLTOOL"; then
11986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11987$as_echo "$ac_ct_DLLTOOL" >&6; }
11988else
11989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990$as_echo "no" >&6; }
11991fi
11992
11993  if test "x$ac_ct_DLLTOOL" = x; then
11994    DLLTOOL="false"
11995  else
11996    case $cross_compiling:$ac_tool_warned in
11997yes:)
11998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12000ac_tool_warned=yes ;;
12001esac
12002    DLLTOOL=$ac_ct_DLLTOOL
12003  fi
12004else
12005  DLLTOOL="$ac_cv_prog_DLLTOOL"
12006fi
12007
12008test -z "$DLLTOOL" && DLLTOOL=dlltool
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12020$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12021if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12022  $as_echo_n "(cached) " >&6
12023else
12024  lt_cv_sharedlib_from_linklib_cmd='unknown'
12025
12026case $host_os in
12027cygwin* | mingw* | pw32* | cegcc*)
12028  # two different shell functions defined in ltmain.sh
12029  # decide which to use based on capabilities of $DLLTOOL
12030  case `$DLLTOOL --help 2>&1` in
12031  *--identify-strict*)
12032    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12033    ;;
12034  *)
12035    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12036    ;;
12037  esac
12038  ;;
12039*)
12040  # fallback: assume linklib IS sharedlib
12041  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12042  ;;
12043esac
12044
12045fi
12046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12047$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12048sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12049test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12050
12051
12052
12053
12054
12055
12056
12057if test -n "$ac_tool_prefix"; then
12058  for ac_prog in ar
12059  do
12060    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12061set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12063$as_echo_n "checking for $ac_word... " >&6; }
12064if ${ac_cv_prog_AR+:} false; then :
12065  $as_echo_n "(cached) " >&6
12066else
12067  if test -n "$AR"; then
12068  ac_cv_prog_AR="$AR" # Let the user override the test.
12069else
12070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071for as_dir in $PATH
12072do
12073  IFS=$as_save_IFS
12074  test -z "$as_dir" && as_dir=.
12075    for ac_exec_ext in '' $ac_executable_extensions; do
12076  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12077    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12079    break 2
12080  fi
12081done
12082  done
12083IFS=$as_save_IFS
12084
12085fi
12086fi
12087AR=$ac_cv_prog_AR
12088if test -n "$AR"; then
12089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12090$as_echo "$AR" >&6; }
12091else
12092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12093$as_echo "no" >&6; }
12094fi
12095
12096
12097    test -n "$AR" && break
12098  done
12099fi
12100if test -z "$AR"; then
12101  ac_ct_AR=$AR
12102  for ac_prog in ar
12103do
12104  # Extract the first word of "$ac_prog", so it can be a program name with args.
12105set dummy $ac_prog; ac_word=$2
12106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12107$as_echo_n "checking for $ac_word... " >&6; }
12108if ${ac_cv_prog_ac_ct_AR+:} false; then :
12109  $as_echo_n "(cached) " >&6
12110else
12111  if test -n "$ac_ct_AR"; then
12112  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12113else
12114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12115for as_dir in $PATH
12116do
12117  IFS=$as_save_IFS
12118  test -z "$as_dir" && as_dir=.
12119    for ac_exec_ext in '' $ac_executable_extensions; do
12120  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12121    ac_cv_prog_ac_ct_AR="$ac_prog"
12122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12123    break 2
12124  fi
12125done
12126  done
12127IFS=$as_save_IFS
12128
12129fi
12130fi
12131ac_ct_AR=$ac_cv_prog_ac_ct_AR
12132if test -n "$ac_ct_AR"; then
12133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12134$as_echo "$ac_ct_AR" >&6; }
12135else
12136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12137$as_echo "no" >&6; }
12138fi
12139
12140
12141  test -n "$ac_ct_AR" && break
12142done
12143
12144  if test "x$ac_ct_AR" = x; then
12145    AR="false"
12146  else
12147    case $cross_compiling:$ac_tool_warned in
12148yes:)
12149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12151ac_tool_warned=yes ;;
12152esac
12153    AR=$ac_ct_AR
12154  fi
12155fi
12156
12157: ${AR=ar}
12158: ${AR_FLAGS=cru}
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12171$as_echo_n "checking for archiver @FILE support... " >&6; }
12172if ${lt_cv_ar_at_file+:} false; then :
12173  $as_echo_n "(cached) " >&6
12174else
12175  lt_cv_ar_at_file=no
12176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12177/* end confdefs.h.  */
12178
12179int
12180main ()
12181{
12182
12183  ;
12184  return 0;
12185}
12186_ACEOF
12187if ac_fn_c_try_compile "$LINENO"; then :
12188  echo conftest.$ac_objext > conftest.lst
12189      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12190      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12191  (eval $lt_ar_try) 2>&5
12192  ac_status=$?
12193  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12194  test $ac_status = 0; }
12195      if test "$ac_status" -eq 0; then
12196	# Ensure the archiver fails upon bogus file names.
12197	rm -f conftest.$ac_objext libconftest.a
12198	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12199  (eval $lt_ar_try) 2>&5
12200  ac_status=$?
12201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12202  test $ac_status = 0; }
12203	if test "$ac_status" -ne 0; then
12204          lt_cv_ar_at_file=@
12205        fi
12206      fi
12207      rm -f conftest.* libconftest.a
12208
12209fi
12210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12211
12212fi
12213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12214$as_echo "$lt_cv_ar_at_file" >&6; }
12215
12216if test "x$lt_cv_ar_at_file" = xno; then
12217  archiver_list_spec=
12218else
12219  archiver_list_spec=$lt_cv_ar_at_file
12220fi
12221
12222
12223
12224
12225
12226
12227
12228if test -n "$ac_tool_prefix"; then
12229  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12230set dummy ${ac_tool_prefix}strip; 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_STRIP+:} false; then :
12234  $as_echo_n "(cached) " >&6
12235else
12236  if test -n "$STRIP"; then
12237  ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
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
12256STRIP=$ac_cv_prog_STRIP
12257if test -n "$STRIP"; then
12258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12259$as_echo "$STRIP" >&6; }
12260else
12261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262$as_echo "no" >&6; }
12263fi
12264
12265
12266fi
12267if test -z "$ac_cv_prog_STRIP"; then
12268  ac_ct_STRIP=$STRIP
12269  # Extract the first word of "strip", so it can be a program name with args.
12270set dummy strip; ac_word=$2
12271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12272$as_echo_n "checking for $ac_word... " >&6; }
12273if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12274  $as_echo_n "(cached) " >&6
12275else
12276  if test -n "$ac_ct_STRIP"; then
12277  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12278else
12279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280for as_dir in $PATH
12281do
12282  IFS=$as_save_IFS
12283  test -z "$as_dir" && as_dir=.
12284    for ac_exec_ext in '' $ac_executable_extensions; do
12285  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12286    ac_cv_prog_ac_ct_STRIP="strip"
12287    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12288    break 2
12289  fi
12290done
12291  done
12292IFS=$as_save_IFS
12293
12294fi
12295fi
12296ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12297if test -n "$ac_ct_STRIP"; then
12298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12299$as_echo "$ac_ct_STRIP" >&6; }
12300else
12301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12302$as_echo "no" >&6; }
12303fi
12304
12305  if test "x$ac_ct_STRIP" = x; then
12306    STRIP=":"
12307  else
12308    case $cross_compiling:$ac_tool_warned in
12309yes:)
12310{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12311$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12312ac_tool_warned=yes ;;
12313esac
12314    STRIP=$ac_ct_STRIP
12315  fi
12316else
12317  STRIP="$ac_cv_prog_STRIP"
12318fi
12319
12320test -z "$STRIP" && STRIP=:
12321
12322
12323
12324
12325
12326
12327if test -n "$ac_tool_prefix"; then
12328  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12329set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12331$as_echo_n "checking for $ac_word... " >&6; }
12332if ${ac_cv_prog_RANLIB+:} false; then :
12333  $as_echo_n "(cached) " >&6
12334else
12335  if test -n "$RANLIB"; then
12336  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12337else
12338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12339for as_dir in $PATH
12340do
12341  IFS=$as_save_IFS
12342  test -z "$as_dir" && as_dir=.
12343    for ac_exec_ext in '' $ac_executable_extensions; do
12344  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12345    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12346    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12347    break 2
12348  fi
12349done
12350  done
12351IFS=$as_save_IFS
12352
12353fi
12354fi
12355RANLIB=$ac_cv_prog_RANLIB
12356if test -n "$RANLIB"; then
12357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12358$as_echo "$RANLIB" >&6; }
12359else
12360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361$as_echo "no" >&6; }
12362fi
12363
12364
12365fi
12366if test -z "$ac_cv_prog_RANLIB"; then
12367  ac_ct_RANLIB=$RANLIB
12368  # Extract the first word of "ranlib", so it can be a program name with args.
12369set dummy ranlib; ac_word=$2
12370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12371$as_echo_n "checking for $ac_word... " >&6; }
12372if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12373  $as_echo_n "(cached) " >&6
12374else
12375  if test -n "$ac_ct_RANLIB"; then
12376  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12377else
12378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12379for as_dir in $PATH
12380do
12381  IFS=$as_save_IFS
12382  test -z "$as_dir" && as_dir=.
12383    for ac_exec_ext in '' $ac_executable_extensions; do
12384  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12385    ac_cv_prog_ac_ct_RANLIB="ranlib"
12386    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12387    break 2
12388  fi
12389done
12390  done
12391IFS=$as_save_IFS
12392
12393fi
12394fi
12395ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12396if test -n "$ac_ct_RANLIB"; then
12397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12398$as_echo "$ac_ct_RANLIB" >&6; }
12399else
12400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12401$as_echo "no" >&6; }
12402fi
12403
12404  if test "x$ac_ct_RANLIB" = x; then
12405    RANLIB=":"
12406  else
12407    case $cross_compiling:$ac_tool_warned in
12408yes:)
12409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12411ac_tool_warned=yes ;;
12412esac
12413    RANLIB=$ac_ct_RANLIB
12414  fi
12415else
12416  RANLIB="$ac_cv_prog_RANLIB"
12417fi
12418
12419test -z "$RANLIB" && RANLIB=:
12420
12421
12422
12423
12424
12425
12426# Determine commands to create old-style static archives.
12427old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12428old_postinstall_cmds='chmod 644 $oldlib'
12429old_postuninstall_cmds=
12430
12431if test -n "$RANLIB"; then
12432  case $host_os in
12433  openbsd*)
12434    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12435    ;;
12436  *)
12437    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12438    ;;
12439  esac
12440  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12441fi
12442
12443case $host_os in
12444  darwin*)
12445    lock_old_archive_extraction=yes ;;
12446  *)
12447    lock_old_archive_extraction=no ;;
12448esac
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488# If no C compiler was specified, use CC.
12489LTCC=${LTCC-"$CC"}
12490
12491# If no C compiler flags were specified, use CFLAGS.
12492LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12493
12494# Allow CC to be a program name with arguments.
12495compiler=$CC
12496
12497
12498# Check for command to grab the raw symbol name followed by C symbol from nm.
12499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12500$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12501if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12502  $as_echo_n "(cached) " >&6
12503else
12504
12505# These are sane defaults that work on at least a few old systems.
12506# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12507
12508# Character class describing NM global symbol codes.
12509symcode='[BCDEGRST]'
12510
12511# Regexp to match symbols that can be accessed directly from C.
12512sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12513
12514# Define system-specific variables.
12515case $host_os in
12516aix*)
12517  symcode='[BCDT]'
12518  ;;
12519cygwin* | mingw* | pw32* | cegcc*)
12520  symcode='[ABCDGISTW]'
12521  ;;
12522hpux*)
12523  if test "$host_cpu" = ia64; then
12524    symcode='[ABCDEGRST]'
12525  fi
12526  ;;
12527irix* | nonstopux*)
12528  symcode='[BCDEGRST]'
12529  ;;
12530osf*)
12531  symcode='[BCDEGQRST]'
12532  ;;
12533solaris*)
12534  symcode='[BDRT]'
12535  ;;
12536sco3.2v5*)
12537  symcode='[DT]'
12538  ;;
12539sysv4.2uw2*)
12540  symcode='[DT]'
12541  ;;
12542sysv5* | sco5v6* | unixware* | OpenUNIX*)
12543  symcode='[ABDT]'
12544  ;;
12545sysv4)
12546  symcode='[DFNSTU]'
12547  ;;
12548esac
12549
12550# If we're using GNU nm, then use its standard symbol codes.
12551case `$NM -V 2>&1` in
12552*GNU* | *'with BFD'*)
12553  symcode='[ABCDGIRSTW]' ;;
12554esac
12555
12556# Transform an extracted symbol line into a proper C declaration.
12557# Some systems (esp. on ia64) link data and code symbols differently,
12558# so use this general approach.
12559lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12560
12561# Transform an extracted symbol line into symbol name and symbol address
12562lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12563lt_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'"
12564
12565# Handle CRLF in mingw tool chain
12566opt_cr=
12567case $build_os in
12568mingw*)
12569  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12570  ;;
12571esac
12572
12573# Try without a prefix underscore, then with it.
12574for ac_symprfx in "" "_"; do
12575
12576  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12577  symxfrm="\\1 $ac_symprfx\\2 \\2"
12578
12579  # Write the raw and C identifiers.
12580  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12581    # Fake it for dumpbin and say T for any non-static function
12582    # and D for any global variable.
12583    # Also find C++ and __fastcall symbols from MSVC++,
12584    # which start with @ or ?.
12585    lt_cv_sys_global_symbol_pipe="$AWK '"\
12586"     {last_section=section; section=\$ 3};"\
12587"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12588"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12589"     \$ 0!~/External *\|/{next};"\
12590"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12591"     {if(hide[section]) next};"\
12592"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12593"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12594"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12595"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12596"     ' prfx=^$ac_symprfx"
12597  else
12598    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12599  fi
12600  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12601
12602  # Check to see that the pipe works correctly.
12603  pipe_works=no
12604
12605  rm -f conftest*
12606  cat > conftest.$ac_ext <<_LT_EOF
12607#ifdef __cplusplus
12608extern "C" {
12609#endif
12610char nm_test_var;
12611void nm_test_func(void);
12612void nm_test_func(void){}
12613#ifdef __cplusplus
12614}
12615#endif
12616int main(){nm_test_var='a';nm_test_func();return(0);}
12617_LT_EOF
12618
12619  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12620  (eval $ac_compile) 2>&5
12621  ac_status=$?
12622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12623  test $ac_status = 0; }; then
12624    # Now try to grab the symbols.
12625    nlist=conftest.nm
12626    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12627  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12628  ac_status=$?
12629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12630  test $ac_status = 0; } && test -s "$nlist"; then
12631      # Try sorting and uniquifying the output.
12632      if sort "$nlist" | uniq > "$nlist"T; then
12633	mv -f "$nlist"T "$nlist"
12634      else
12635	rm -f "$nlist"T
12636      fi
12637
12638      # Make sure that we snagged all the symbols we need.
12639      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12640	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12641	  cat <<_LT_EOF > conftest.$ac_ext
12642/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12643#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12644/* DATA imports from DLLs on WIN32 con't be const, because runtime
12645   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12646# define LT_DLSYM_CONST
12647#elif defined(__osf__)
12648/* This system does not cope well with relocations in const data.  */
12649# define LT_DLSYM_CONST
12650#else
12651# define LT_DLSYM_CONST const
12652#endif
12653
12654#ifdef __cplusplus
12655extern "C" {
12656#endif
12657
12658_LT_EOF
12659	  # Now generate the symbol file.
12660	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12661
12662	  cat <<_LT_EOF >> conftest.$ac_ext
12663
12664/* The mapping between symbol names and symbols.  */
12665LT_DLSYM_CONST struct {
12666  const char *name;
12667  void       *address;
12668}
12669lt__PROGRAM__LTX_preloaded_symbols[] =
12670{
12671  { "@PROGRAM@", (void *) 0 },
12672_LT_EOF
12673	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12674	  cat <<\_LT_EOF >> conftest.$ac_ext
12675  {0, (void *) 0}
12676};
12677
12678/* This works around a problem in FreeBSD linker */
12679#ifdef FREEBSD_WORKAROUND
12680static const void *lt_preloaded_setup() {
12681  return lt__PROGRAM__LTX_preloaded_symbols;
12682}
12683#endif
12684
12685#ifdef __cplusplus
12686}
12687#endif
12688_LT_EOF
12689	  # Now try linking the two files.
12690	  mv conftest.$ac_objext conftstm.$ac_objext
12691	  lt_globsym_save_LIBS=$LIBS
12692	  lt_globsym_save_CFLAGS=$CFLAGS
12693	  LIBS="conftstm.$ac_objext"
12694	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12695	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12696  (eval $ac_link) 2>&5
12697  ac_status=$?
12698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12699  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12700	    pipe_works=yes
12701	  fi
12702	  LIBS=$lt_globsym_save_LIBS
12703	  CFLAGS=$lt_globsym_save_CFLAGS
12704	else
12705	  echo "cannot find nm_test_func in $nlist" >&5
12706	fi
12707      else
12708	echo "cannot find nm_test_var in $nlist" >&5
12709      fi
12710    else
12711      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12712    fi
12713  else
12714    echo "$progname: failed program was:" >&5
12715    cat conftest.$ac_ext >&5
12716  fi
12717  rm -rf conftest* conftst*
12718
12719  # Do not use the global_symbol_pipe unless it works.
12720  if test "$pipe_works" = yes; then
12721    break
12722  else
12723    lt_cv_sys_global_symbol_pipe=
12724  fi
12725done
12726
12727fi
12728
12729if test -z "$lt_cv_sys_global_symbol_pipe"; then
12730  lt_cv_sys_global_symbol_to_cdecl=
12731fi
12732if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12734$as_echo "failed" >&6; }
12735else
12736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12737$as_echo "ok" >&6; }
12738fi
12739
12740# Response file support.
12741if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12742  nm_file_list_spec='@'
12743elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12744  nm_file_list_spec='@'
12745fi
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12774$as_echo_n "checking for sysroot... " >&6; }
12775
12776# Check whether --with-sysroot was given.
12777if test "${with_sysroot+set}" = set; then :
12778  withval=$with_sysroot;
12779else
12780  with_sysroot=no
12781fi
12782
12783
12784lt_sysroot=
12785case ${with_sysroot} in #(
12786 yes)
12787   if test "$GCC" = yes; then
12788     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12789   fi
12790   ;; #(
12791 /*)
12792   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12793   ;; #(
12794 no|'')
12795   ;; #(
12796 *)
12797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12798$as_echo "${with_sysroot}" >&6; }
12799   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12800   ;;
12801esac
12802
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12804$as_echo "${lt_sysroot:-no}" >&6; }
12805
12806
12807
12808
12809
12810# Check whether --enable-libtool-lock was given.
12811if test "${enable_libtool_lock+set}" = set; then :
12812  enableval=$enable_libtool_lock;
12813fi
12814
12815test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12816
12817# Some flags need to be propagated to the compiler or linker for good
12818# libtool support.
12819case $host in
12820ia64-*-hpux*)
12821  # Find out which ABI we are using.
12822  echo 'int i;' > conftest.$ac_ext
12823  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12824  (eval $ac_compile) 2>&5
12825  ac_status=$?
12826  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12827  test $ac_status = 0; }; then
12828    case `/usr/bin/file conftest.$ac_objext` in
12829      *ELF-32*)
12830	HPUX_IA64_MODE="32"
12831	;;
12832      *ELF-64*)
12833	HPUX_IA64_MODE="64"
12834	;;
12835    esac
12836  fi
12837  rm -rf conftest*
12838  ;;
12839*-*-irix6*)
12840  # Find out which ABI we are using.
12841  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12842  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12843  (eval $ac_compile) 2>&5
12844  ac_status=$?
12845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12846  test $ac_status = 0; }; then
12847    if test "$lt_cv_prog_gnu_ld" = yes; then
12848      case `/usr/bin/file conftest.$ac_objext` in
12849	*32-bit*)
12850	  LD="${LD-ld} -melf32bsmip"
12851	  ;;
12852	*N32*)
12853	  LD="${LD-ld} -melf32bmipn32"
12854	  ;;
12855	*64-bit*)
12856	  LD="${LD-ld} -melf64bmip"
12857	;;
12858      esac
12859    else
12860      case `/usr/bin/file conftest.$ac_objext` in
12861	*32-bit*)
12862	  LD="${LD-ld} -32"
12863	  ;;
12864	*N32*)
12865	  LD="${LD-ld} -n32"
12866	  ;;
12867	*64-bit*)
12868	  LD="${LD-ld} -64"
12869	  ;;
12870      esac
12871    fi
12872  fi
12873  rm -rf conftest*
12874  ;;
12875
12876x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12877s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12878  # Find out which ABI we are using.
12879  echo 'int i;' > conftest.$ac_ext
12880  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12881  (eval $ac_compile) 2>&5
12882  ac_status=$?
12883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12884  test $ac_status = 0; }; then
12885    case `/usr/bin/file conftest.o` in
12886      *32-bit*)
12887	case $host in
12888	  x86_64-*kfreebsd*-gnu)
12889	    LD="${LD-ld} -m elf_i386_fbsd"
12890	    ;;
12891	  x86_64-*linux*)
12892	    LD="${LD-ld} -m elf_i386"
12893	    ;;
12894	  ppc64-*linux*|powerpc64-*linux*)
12895	    LD="${LD-ld} -m elf32ppclinux"
12896	    ;;
12897	  s390x-*linux*)
12898	    LD="${LD-ld} -m elf_s390"
12899	    ;;
12900	  sparc64-*linux*)
12901	    LD="${LD-ld} -m elf32_sparc"
12902	    ;;
12903	esac
12904	;;
12905      *64-bit*)
12906	case $host in
12907	  x86_64-*kfreebsd*-gnu)
12908	    LD="${LD-ld} -m elf_x86_64_fbsd"
12909	    ;;
12910	  x86_64-*linux*)
12911	    LD="${LD-ld} -m elf_x86_64"
12912	    ;;
12913	  ppc*-*linux*|powerpc*-*linux*)
12914	    LD="${LD-ld} -m elf64ppc"
12915	    ;;
12916	  s390*-*linux*|s390*-*tpf*)
12917	    LD="${LD-ld} -m elf64_s390"
12918	    ;;
12919	  sparc*-*linux*)
12920	    LD="${LD-ld} -m elf64_sparc"
12921	    ;;
12922	esac
12923	;;
12924    esac
12925  fi
12926  rm -rf conftest*
12927  ;;
12928
12929*-*-sco3.2v5*)
12930  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12931  SAVE_CFLAGS="$CFLAGS"
12932  CFLAGS="$CFLAGS -belf"
12933  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12934$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12935if ${lt_cv_cc_needs_belf+:} false; then :
12936  $as_echo_n "(cached) " >&6
12937else
12938  ac_ext=c
12939ac_cpp='$CPP $CPPFLAGS'
12940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12942ac_compiler_gnu=$ac_cv_c_compiler_gnu
12943
12944     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12945/* end confdefs.h.  */
12946
12947int
12948main ()
12949{
12950
12951  ;
12952  return 0;
12953}
12954_ACEOF
12955if ac_fn_c_try_link "$LINENO"; then :
12956  lt_cv_cc_needs_belf=yes
12957else
12958  lt_cv_cc_needs_belf=no
12959fi
12960rm -f core conftest.err conftest.$ac_objext \
12961    conftest$ac_exeext conftest.$ac_ext
12962     ac_ext=c
12963ac_cpp='$CPP $CPPFLAGS'
12964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12966ac_compiler_gnu=$ac_cv_c_compiler_gnu
12967
12968fi
12969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12970$as_echo "$lt_cv_cc_needs_belf" >&6; }
12971  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12972    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12973    CFLAGS="$SAVE_CFLAGS"
12974  fi
12975  ;;
12976*-*solaris*)
12977  # Find out which ABI we are using.
12978  echo 'int i;' > conftest.$ac_ext
12979  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12980  (eval $ac_compile) 2>&5
12981  ac_status=$?
12982  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12983  test $ac_status = 0; }; then
12984    case `/usr/bin/file conftest.o` in
12985    *64-bit*)
12986      case $lt_cv_prog_gnu_ld in
12987      yes*)
12988        case $host in
12989        i?86-*-solaris*)
12990          LD="${LD-ld} -m elf_x86_64"
12991          ;;
12992        sparc*-*-solaris*)
12993          LD="${LD-ld} -m elf64_sparc"
12994          ;;
12995        esac
12996        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
12997        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12998          LD="${LD-ld}_sol2"
12999        fi
13000        ;;
13001      *)
13002	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13003	  LD="${LD-ld} -64"
13004	fi
13005	;;
13006      esac
13007      ;;
13008    esac
13009  fi
13010  rm -rf conftest*
13011  ;;
13012esac
13013
13014need_locks="$enable_libtool_lock"
13015
13016if test -n "$ac_tool_prefix"; then
13017  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13018set dummy ${ac_tool_prefix}mt; ac_word=$2
13019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13020$as_echo_n "checking for $ac_word... " >&6; }
13021if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13022  $as_echo_n "(cached) " >&6
13023else
13024  if test -n "$MANIFEST_TOOL"; then
13025  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13026else
13027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13028for as_dir in $PATH
13029do
13030  IFS=$as_save_IFS
13031  test -z "$as_dir" && as_dir=.
13032    for ac_exec_ext in '' $ac_executable_extensions; do
13033  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13034    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13035    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13036    break 2
13037  fi
13038done
13039  done
13040IFS=$as_save_IFS
13041
13042fi
13043fi
13044MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13045if test -n "$MANIFEST_TOOL"; then
13046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13047$as_echo "$MANIFEST_TOOL" >&6; }
13048else
13049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13050$as_echo "no" >&6; }
13051fi
13052
13053
13054fi
13055if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13056  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13057  # Extract the first word of "mt", so it can be a program name with args.
13058set dummy mt; ac_word=$2
13059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13060$as_echo_n "checking for $ac_word... " >&6; }
13061if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13062  $as_echo_n "(cached) " >&6
13063else
13064  if test -n "$ac_ct_MANIFEST_TOOL"; then
13065  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13066else
13067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13068for as_dir in $PATH
13069do
13070  IFS=$as_save_IFS
13071  test -z "$as_dir" && as_dir=.
13072    for ac_exec_ext in '' $ac_executable_extensions; do
13073  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13074    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13075    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13076    break 2
13077  fi
13078done
13079  done
13080IFS=$as_save_IFS
13081
13082fi
13083fi
13084ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13085if test -n "$ac_ct_MANIFEST_TOOL"; then
13086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13087$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13088else
13089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13090$as_echo "no" >&6; }
13091fi
13092
13093  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13094    MANIFEST_TOOL=":"
13095  else
13096    case $cross_compiling:$ac_tool_warned in
13097yes:)
13098{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13100ac_tool_warned=yes ;;
13101esac
13102    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13103  fi
13104else
13105  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13106fi
13107
13108test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13110$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13111if ${lt_cv_path_mainfest_tool+:} false; then :
13112  $as_echo_n "(cached) " >&6
13113else
13114  lt_cv_path_mainfest_tool=no
13115  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13116  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13117  cat conftest.err >&5
13118  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13119    lt_cv_path_mainfest_tool=yes
13120  fi
13121  rm -f conftest*
13122fi
13123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13124$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13125if test "x$lt_cv_path_mainfest_tool" != xyes; then
13126  MANIFEST_TOOL=:
13127fi
13128
13129
13130
13131
13132
13133
13134  case $host_os in
13135    rhapsody* | darwin*)
13136    if test -n "$ac_tool_prefix"; then
13137  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13138set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13140$as_echo_n "checking for $ac_word... " >&6; }
13141if ${ac_cv_prog_DSYMUTIL+:} false; then :
13142  $as_echo_n "(cached) " >&6
13143else
13144  if test -n "$DSYMUTIL"; then
13145  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13146else
13147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13148for as_dir in $PATH
13149do
13150  IFS=$as_save_IFS
13151  test -z "$as_dir" && as_dir=.
13152    for ac_exec_ext in '' $ac_executable_extensions; do
13153  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13154    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13156    break 2
13157  fi
13158done
13159  done
13160IFS=$as_save_IFS
13161
13162fi
13163fi
13164DSYMUTIL=$ac_cv_prog_DSYMUTIL
13165if test -n "$DSYMUTIL"; then
13166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13167$as_echo "$DSYMUTIL" >&6; }
13168else
13169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13170$as_echo "no" >&6; }
13171fi
13172
13173
13174fi
13175if test -z "$ac_cv_prog_DSYMUTIL"; then
13176  ac_ct_DSYMUTIL=$DSYMUTIL
13177  # Extract the first word of "dsymutil", so it can be a program name with args.
13178set dummy dsymutil; ac_word=$2
13179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13180$as_echo_n "checking for $ac_word... " >&6; }
13181if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13182  $as_echo_n "(cached) " >&6
13183else
13184  if test -n "$ac_ct_DSYMUTIL"; then
13185  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13186else
13187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13188for as_dir in $PATH
13189do
13190  IFS=$as_save_IFS
13191  test -z "$as_dir" && as_dir=.
13192    for ac_exec_ext in '' $ac_executable_extensions; do
13193  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13194    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13196    break 2
13197  fi
13198done
13199  done
13200IFS=$as_save_IFS
13201
13202fi
13203fi
13204ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13205if test -n "$ac_ct_DSYMUTIL"; then
13206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13207$as_echo "$ac_ct_DSYMUTIL" >&6; }
13208else
13209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13210$as_echo "no" >&6; }
13211fi
13212
13213  if test "x$ac_ct_DSYMUTIL" = x; then
13214    DSYMUTIL=":"
13215  else
13216    case $cross_compiling:$ac_tool_warned in
13217yes:)
13218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13220ac_tool_warned=yes ;;
13221esac
13222    DSYMUTIL=$ac_ct_DSYMUTIL
13223  fi
13224else
13225  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13226fi
13227
13228    if test -n "$ac_tool_prefix"; then
13229  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13230set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13232$as_echo_n "checking for $ac_word... " >&6; }
13233if ${ac_cv_prog_NMEDIT+:} false; then :
13234  $as_echo_n "(cached) " >&6
13235else
13236  if test -n "$NMEDIT"; then
13237  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13238else
13239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13240for as_dir in $PATH
13241do
13242  IFS=$as_save_IFS
13243  test -z "$as_dir" && as_dir=.
13244    for ac_exec_ext in '' $ac_executable_extensions; do
13245  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13246    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13247    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13248    break 2
13249  fi
13250done
13251  done
13252IFS=$as_save_IFS
13253
13254fi
13255fi
13256NMEDIT=$ac_cv_prog_NMEDIT
13257if test -n "$NMEDIT"; then
13258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13259$as_echo "$NMEDIT" >&6; }
13260else
13261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13262$as_echo "no" >&6; }
13263fi
13264
13265
13266fi
13267if test -z "$ac_cv_prog_NMEDIT"; then
13268  ac_ct_NMEDIT=$NMEDIT
13269  # Extract the first word of "nmedit", so it can be a program name with args.
13270set dummy nmedit; ac_word=$2
13271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13272$as_echo_n "checking for $ac_word... " >&6; }
13273if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13274  $as_echo_n "(cached) " >&6
13275else
13276  if test -n "$ac_ct_NMEDIT"; then
13277  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13278else
13279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13280for as_dir in $PATH
13281do
13282  IFS=$as_save_IFS
13283  test -z "$as_dir" && as_dir=.
13284    for ac_exec_ext in '' $ac_executable_extensions; do
13285  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13286    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13287    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13288    break 2
13289  fi
13290done
13291  done
13292IFS=$as_save_IFS
13293
13294fi
13295fi
13296ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13297if test -n "$ac_ct_NMEDIT"; then
13298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13299$as_echo "$ac_ct_NMEDIT" >&6; }
13300else
13301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13302$as_echo "no" >&6; }
13303fi
13304
13305  if test "x$ac_ct_NMEDIT" = x; then
13306    NMEDIT=":"
13307  else
13308    case $cross_compiling:$ac_tool_warned in
13309yes:)
13310{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13311$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13312ac_tool_warned=yes ;;
13313esac
13314    NMEDIT=$ac_ct_NMEDIT
13315  fi
13316else
13317  NMEDIT="$ac_cv_prog_NMEDIT"
13318fi
13319
13320    if test -n "$ac_tool_prefix"; then
13321  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13322set dummy ${ac_tool_prefix}lipo; ac_word=$2
13323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13324$as_echo_n "checking for $ac_word... " >&6; }
13325if ${ac_cv_prog_LIPO+:} false; then :
13326  $as_echo_n "(cached) " >&6
13327else
13328  if test -n "$LIPO"; then
13329  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13330else
13331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13332for as_dir in $PATH
13333do
13334  IFS=$as_save_IFS
13335  test -z "$as_dir" && as_dir=.
13336    for ac_exec_ext in '' $ac_executable_extensions; do
13337  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13338    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13339    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13340    break 2
13341  fi
13342done
13343  done
13344IFS=$as_save_IFS
13345
13346fi
13347fi
13348LIPO=$ac_cv_prog_LIPO
13349if test -n "$LIPO"; then
13350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13351$as_echo "$LIPO" >&6; }
13352else
13353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13354$as_echo "no" >&6; }
13355fi
13356
13357
13358fi
13359if test -z "$ac_cv_prog_LIPO"; then
13360  ac_ct_LIPO=$LIPO
13361  # Extract the first word of "lipo", so it can be a program name with args.
13362set dummy lipo; ac_word=$2
13363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13364$as_echo_n "checking for $ac_word... " >&6; }
13365if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13366  $as_echo_n "(cached) " >&6
13367else
13368  if test -n "$ac_ct_LIPO"; then
13369  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13370else
13371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13372for as_dir in $PATH
13373do
13374  IFS=$as_save_IFS
13375  test -z "$as_dir" && as_dir=.
13376    for ac_exec_ext in '' $ac_executable_extensions; do
13377  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13378    ac_cv_prog_ac_ct_LIPO="lipo"
13379    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13380    break 2
13381  fi
13382done
13383  done
13384IFS=$as_save_IFS
13385
13386fi
13387fi
13388ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13389if test -n "$ac_ct_LIPO"; then
13390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13391$as_echo "$ac_ct_LIPO" >&6; }
13392else
13393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394$as_echo "no" >&6; }
13395fi
13396
13397  if test "x$ac_ct_LIPO" = x; then
13398    LIPO=":"
13399  else
13400    case $cross_compiling:$ac_tool_warned in
13401yes:)
13402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13404ac_tool_warned=yes ;;
13405esac
13406    LIPO=$ac_ct_LIPO
13407  fi
13408else
13409  LIPO="$ac_cv_prog_LIPO"
13410fi
13411
13412    if test -n "$ac_tool_prefix"; then
13413  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13414set dummy ${ac_tool_prefix}otool; ac_word=$2
13415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13416$as_echo_n "checking for $ac_word... " >&6; }
13417if ${ac_cv_prog_OTOOL+:} false; then :
13418  $as_echo_n "(cached) " >&6
13419else
13420  if test -n "$OTOOL"; then
13421  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13422else
13423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13424for as_dir in $PATH
13425do
13426  IFS=$as_save_IFS
13427  test -z "$as_dir" && as_dir=.
13428    for ac_exec_ext in '' $ac_executable_extensions; do
13429  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13430    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13432    break 2
13433  fi
13434done
13435  done
13436IFS=$as_save_IFS
13437
13438fi
13439fi
13440OTOOL=$ac_cv_prog_OTOOL
13441if test -n "$OTOOL"; then
13442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13443$as_echo "$OTOOL" >&6; }
13444else
13445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13446$as_echo "no" >&6; }
13447fi
13448
13449
13450fi
13451if test -z "$ac_cv_prog_OTOOL"; then
13452  ac_ct_OTOOL=$OTOOL
13453  # Extract the first word of "otool", so it can be a program name with args.
13454set dummy otool; ac_word=$2
13455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13456$as_echo_n "checking for $ac_word... " >&6; }
13457if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13458  $as_echo_n "(cached) " >&6
13459else
13460  if test -n "$ac_ct_OTOOL"; then
13461  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13462else
13463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13464for as_dir in $PATH
13465do
13466  IFS=$as_save_IFS
13467  test -z "$as_dir" && as_dir=.
13468    for ac_exec_ext in '' $ac_executable_extensions; do
13469  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13470    ac_cv_prog_ac_ct_OTOOL="otool"
13471    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13472    break 2
13473  fi
13474done
13475  done
13476IFS=$as_save_IFS
13477
13478fi
13479fi
13480ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13481if test -n "$ac_ct_OTOOL"; then
13482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13483$as_echo "$ac_ct_OTOOL" >&6; }
13484else
13485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13486$as_echo "no" >&6; }
13487fi
13488
13489  if test "x$ac_ct_OTOOL" = x; then
13490    OTOOL=":"
13491  else
13492    case $cross_compiling:$ac_tool_warned in
13493yes:)
13494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13496ac_tool_warned=yes ;;
13497esac
13498    OTOOL=$ac_ct_OTOOL
13499  fi
13500else
13501  OTOOL="$ac_cv_prog_OTOOL"
13502fi
13503
13504    if test -n "$ac_tool_prefix"; then
13505  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13506set dummy ${ac_tool_prefix}otool64; ac_word=$2
13507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13508$as_echo_n "checking for $ac_word... " >&6; }
13509if ${ac_cv_prog_OTOOL64+:} false; then :
13510  $as_echo_n "(cached) " >&6
13511else
13512  if test -n "$OTOOL64"; then
13513  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13514else
13515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13516for as_dir in $PATH
13517do
13518  IFS=$as_save_IFS
13519  test -z "$as_dir" && as_dir=.
13520    for ac_exec_ext in '' $ac_executable_extensions; do
13521  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13522    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13523    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13524    break 2
13525  fi
13526done
13527  done
13528IFS=$as_save_IFS
13529
13530fi
13531fi
13532OTOOL64=$ac_cv_prog_OTOOL64
13533if test -n "$OTOOL64"; then
13534  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13535$as_echo "$OTOOL64" >&6; }
13536else
13537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13538$as_echo "no" >&6; }
13539fi
13540
13541
13542fi
13543if test -z "$ac_cv_prog_OTOOL64"; then
13544  ac_ct_OTOOL64=$OTOOL64
13545  # Extract the first word of "otool64", so it can be a program name with args.
13546set dummy otool64; ac_word=$2
13547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13548$as_echo_n "checking for $ac_word... " >&6; }
13549if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13550  $as_echo_n "(cached) " >&6
13551else
13552  if test -n "$ac_ct_OTOOL64"; then
13553  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13554else
13555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13556for as_dir in $PATH
13557do
13558  IFS=$as_save_IFS
13559  test -z "$as_dir" && as_dir=.
13560    for ac_exec_ext in '' $ac_executable_extensions; do
13561  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13562    ac_cv_prog_ac_ct_OTOOL64="otool64"
13563    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13564    break 2
13565  fi
13566done
13567  done
13568IFS=$as_save_IFS
13569
13570fi
13571fi
13572ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13573if test -n "$ac_ct_OTOOL64"; then
13574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13575$as_echo "$ac_ct_OTOOL64" >&6; }
13576else
13577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13578$as_echo "no" >&6; }
13579fi
13580
13581  if test "x$ac_ct_OTOOL64" = x; then
13582    OTOOL64=":"
13583  else
13584    case $cross_compiling:$ac_tool_warned in
13585yes:)
13586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13588ac_tool_warned=yes ;;
13589esac
13590    OTOOL64=$ac_ct_OTOOL64
13591  fi
13592else
13593  OTOOL64="$ac_cv_prog_OTOOL64"
13594fi
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13623$as_echo_n "checking for -single_module linker flag... " >&6; }
13624if ${lt_cv_apple_cc_single_mod+:} false; then :
13625  $as_echo_n "(cached) " >&6
13626else
13627  lt_cv_apple_cc_single_mod=no
13628      if test -z "${LT_MULTI_MODULE}"; then
13629	# By default we will add the -single_module flag. You can override
13630	# by either setting the environment variable LT_MULTI_MODULE
13631	# non-empty at configure time, or by adding -multi_module to the
13632	# link flags.
13633	rm -rf libconftest.dylib*
13634	echo "int foo(void){return 1;}" > conftest.c
13635	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13636-dynamiclib -Wl,-single_module conftest.c" >&5
13637	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13638	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13639        _lt_result=$?
13640	# If there is a non-empty error log, and "single_module"
13641	# appears in it, assume the flag caused a linker warning
13642        if test -s conftest.err && $GREP single_module conftest.err; then
13643	  cat conftest.err >&5
13644	# Otherwise, if the output was created with a 0 exit code from
13645	# the compiler, it worked.
13646	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13647	  lt_cv_apple_cc_single_mod=yes
13648	else
13649	  cat conftest.err >&5
13650	fi
13651	rm -rf libconftest.dylib*
13652	rm -f conftest.*
13653      fi
13654fi
13655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13656$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13657
13658    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13659$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13660if ${lt_cv_ld_exported_symbols_list+:} false; then :
13661  $as_echo_n "(cached) " >&6
13662else
13663  lt_cv_ld_exported_symbols_list=no
13664      save_LDFLAGS=$LDFLAGS
13665      echo "_main" > conftest.sym
13666      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13667      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13668/* end confdefs.h.  */
13669
13670int
13671main ()
13672{
13673
13674  ;
13675  return 0;
13676}
13677_ACEOF
13678if ac_fn_c_try_link "$LINENO"; then :
13679  lt_cv_ld_exported_symbols_list=yes
13680else
13681  lt_cv_ld_exported_symbols_list=no
13682fi
13683rm -f core conftest.err conftest.$ac_objext \
13684    conftest$ac_exeext conftest.$ac_ext
13685	LDFLAGS="$save_LDFLAGS"
13686
13687fi
13688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13689$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13690
13691    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13692$as_echo_n "checking for -force_load linker flag... " >&6; }
13693if ${lt_cv_ld_force_load+:} false; then :
13694  $as_echo_n "(cached) " >&6
13695else
13696  lt_cv_ld_force_load=no
13697      cat > conftest.c << _LT_EOF
13698int forced_loaded() { return 2;}
13699_LT_EOF
13700      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13701      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13702      echo "$AR cru libconftest.a conftest.o" >&5
13703      $AR cru libconftest.a conftest.o 2>&5
13704      echo "$RANLIB libconftest.a" >&5
13705      $RANLIB libconftest.a 2>&5
13706      cat > conftest.c << _LT_EOF
13707int main() { return 0;}
13708_LT_EOF
13709      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13710      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13711      _lt_result=$?
13712      if test -s conftest.err && $GREP force_load conftest.err; then
13713	cat conftest.err >&5
13714      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13715	lt_cv_ld_force_load=yes
13716      else
13717	cat conftest.err >&5
13718      fi
13719        rm -f conftest.err libconftest.a conftest conftest.c
13720        rm -rf conftest.dSYM
13721
13722fi
13723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13724$as_echo "$lt_cv_ld_force_load" >&6; }
13725    case $host_os in
13726    rhapsody* | darwin1.[012])
13727      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13728    darwin1.*)
13729      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13730    darwin*) # darwin 5.x on
13731      # if running on 10.5 or later, the deployment target defaults
13732      # to the OS version, if on x86, and 10.4, the deployment
13733      # target defaults to 10.4. Don't you love it?
13734      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13735	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13736	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13737	10.[012]*)
13738	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13739	10.*)
13740	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13741      esac
13742    ;;
13743  esac
13744    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13745      _lt_dar_single_mod='$single_module'
13746    fi
13747    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13748      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13749    else
13750      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13751    fi
13752    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13753      _lt_dsymutil='~$DSYMUTIL $lib || :'
13754    else
13755      _lt_dsymutil=
13756    fi
13757    ;;
13758  esac
13759
13760for ac_header in dlfcn.h
13761do :
13762  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13763"
13764if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13765  cat >>confdefs.h <<_ACEOF
13766#define HAVE_DLFCN_H 1
13767_ACEOF
13768
13769fi
13770
13771done
13772
13773
13774
13775
13776
13777# Set options
13778
13779
13780
13781        enable_dlopen=no
13782
13783
13784  enable_win32_dll=no
13785
13786
13787            # Check whether --enable-shared was given.
13788if test "${enable_shared+set}" = set; then :
13789  enableval=$enable_shared; p=${PACKAGE-default}
13790    case $enableval in
13791    yes) enable_shared=yes ;;
13792    no) enable_shared=no ;;
13793    *)
13794      enable_shared=no
13795      # Look at the argument we got.  We use all the common list separators.
13796      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13797      for pkg in $enableval; do
13798	IFS="$lt_save_ifs"
13799	if test "X$pkg" = "X$p"; then
13800	  enable_shared=yes
13801	fi
13802      done
13803      IFS="$lt_save_ifs"
13804      ;;
13805    esac
13806else
13807  enable_shared=yes
13808fi
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820# Check whether --with-pic was given.
13821if test "${with_pic+set}" = set; then :
13822  withval=$with_pic; lt_p=${PACKAGE-default}
13823    case $withval in
13824    yes|no) pic_mode=$withval ;;
13825    *)
13826      pic_mode=default
13827      # Look at the argument we got.  We use all the common list separators.
13828      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13829      for lt_pkg in $withval; do
13830	IFS="$lt_save_ifs"
13831	if test "X$lt_pkg" = "X$lt_p"; then
13832	  pic_mode=yes
13833	fi
13834      done
13835      IFS="$lt_save_ifs"
13836      ;;
13837    esac
13838else
13839  pic_mode=default
13840fi
13841
13842
13843test -z "$pic_mode" && pic_mode=default
13844
13845
13846
13847
13848
13849
13850
13851  # Check whether --enable-fast-install was given.
13852if test "${enable_fast_install+set}" = set; then :
13853  enableval=$enable_fast_install; p=${PACKAGE-default}
13854    case $enableval in
13855    yes) enable_fast_install=yes ;;
13856    no) enable_fast_install=no ;;
13857    *)
13858      enable_fast_install=no
13859      # Look at the argument we got.  We use all the common list separators.
13860      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13861      for pkg in $enableval; do
13862	IFS="$lt_save_ifs"
13863	if test "X$pkg" = "X$p"; then
13864	  enable_fast_install=yes
13865	fi
13866      done
13867      IFS="$lt_save_ifs"
13868      ;;
13869    esac
13870else
13871  enable_fast_install=yes
13872fi
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884# This can be used to rebuild libtool when needed
13885LIBTOOL_DEPS="$ltmain"
13886
13887# Always use our own libtool.
13888LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919test -z "$LN_S" && LN_S="ln -s"
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934if test -n "${ZSH_VERSION+set}" ; then
13935   setopt NO_GLOB_SUBST
13936fi
13937
13938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13939$as_echo_n "checking for objdir... " >&6; }
13940if ${lt_cv_objdir+:} false; then :
13941  $as_echo_n "(cached) " >&6
13942else
13943  rm -f .libs 2>/dev/null
13944mkdir .libs 2>/dev/null
13945if test -d .libs; then
13946  lt_cv_objdir=.libs
13947else
13948  # MS-DOS does not allow filenames that begin with a dot.
13949  lt_cv_objdir=_libs
13950fi
13951rmdir .libs 2>/dev/null
13952fi
13953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13954$as_echo "$lt_cv_objdir" >&6; }
13955objdir=$lt_cv_objdir
13956
13957
13958
13959
13960
13961cat >>confdefs.h <<_ACEOF
13962#define LT_OBJDIR "$lt_cv_objdir/"
13963_ACEOF
13964
13965
13966
13967
13968case $host_os in
13969aix3*)
13970  # AIX sometimes has problems with the GCC collect2 program.  For some
13971  # reason, if we set the COLLECT_NAMES environment variable, the problems
13972  # vanish in a puff of smoke.
13973  if test "X${COLLECT_NAMES+set}" != Xset; then
13974    COLLECT_NAMES=
13975    export COLLECT_NAMES
13976  fi
13977  ;;
13978esac
13979
13980# Global variables:
13981ofile=libtool
13982can_build_shared=yes
13983
13984# All known linkers require a `.a' archive for static linking (except MSVC,
13985# which needs '.lib').
13986libext=a
13987
13988with_gnu_ld="$lt_cv_prog_gnu_ld"
13989
13990old_CC="$CC"
13991old_CFLAGS="$CFLAGS"
13992
13993# Set sane defaults for various variables
13994test -z "$CC" && CC=cc
13995test -z "$LTCC" && LTCC=$CC
13996test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13997test -z "$LD" && LD=ld
13998test -z "$ac_objext" && ac_objext=o
13999
14000for cc_temp in $compiler""; do
14001  case $cc_temp in
14002    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14003    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14004    \-*) ;;
14005    *) break;;
14006  esac
14007done
14008cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14009
14010
14011# Only perform the check for file, if the check method requires it
14012test -z "$MAGIC_CMD" && MAGIC_CMD=file
14013case $deplibs_check_method in
14014file_magic*)
14015  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14016    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14017$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14018if ${lt_cv_path_MAGIC_CMD+:} false; then :
14019  $as_echo_n "(cached) " >&6
14020else
14021  case $MAGIC_CMD in
14022[\\/*] |  ?:[\\/]*)
14023  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14024  ;;
14025*)
14026  lt_save_MAGIC_CMD="$MAGIC_CMD"
14027  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14028  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14029  for ac_dir in $ac_dummy; do
14030    IFS="$lt_save_ifs"
14031    test -z "$ac_dir" && ac_dir=.
14032    if test -f $ac_dir/${ac_tool_prefix}file; then
14033      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14034      if test -n "$file_magic_test_file"; then
14035	case $deplibs_check_method in
14036	"file_magic "*)
14037	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14038	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14039	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14040	    $EGREP "$file_magic_regex" > /dev/null; then
14041	    :
14042	  else
14043	    cat <<_LT_EOF 1>&2
14044
14045*** Warning: the command libtool uses to detect shared libraries,
14046*** $file_magic_cmd, produces output that libtool cannot recognize.
14047*** The result is that libtool may fail to recognize shared libraries
14048*** as such.  This will affect the creation of libtool libraries that
14049*** depend on shared libraries, but programs linked with such libtool
14050*** libraries will work regardless of this problem.  Nevertheless, you
14051*** may want to report the problem to your system manager and/or to
14052*** bug-libtool@gnu.org
14053
14054_LT_EOF
14055	  fi ;;
14056	esac
14057      fi
14058      break
14059    fi
14060  done
14061  IFS="$lt_save_ifs"
14062  MAGIC_CMD="$lt_save_MAGIC_CMD"
14063  ;;
14064esac
14065fi
14066
14067MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14068if test -n "$MAGIC_CMD"; then
14069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14070$as_echo "$MAGIC_CMD" >&6; }
14071else
14072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14073$as_echo "no" >&6; }
14074fi
14075
14076
14077
14078
14079
14080if test -z "$lt_cv_path_MAGIC_CMD"; then
14081  if test -n "$ac_tool_prefix"; then
14082    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14083$as_echo_n "checking for file... " >&6; }
14084if ${lt_cv_path_MAGIC_CMD+:} false; then :
14085  $as_echo_n "(cached) " >&6
14086else
14087  case $MAGIC_CMD in
14088[\\/*] |  ?:[\\/]*)
14089  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14090  ;;
14091*)
14092  lt_save_MAGIC_CMD="$MAGIC_CMD"
14093  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14094  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14095  for ac_dir in $ac_dummy; do
14096    IFS="$lt_save_ifs"
14097    test -z "$ac_dir" && ac_dir=.
14098    if test -f $ac_dir/file; then
14099      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14100      if test -n "$file_magic_test_file"; then
14101	case $deplibs_check_method in
14102	"file_magic "*)
14103	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14104	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14105	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14106	    $EGREP "$file_magic_regex" > /dev/null; then
14107	    :
14108	  else
14109	    cat <<_LT_EOF 1>&2
14110
14111*** Warning: the command libtool uses to detect shared libraries,
14112*** $file_magic_cmd, produces output that libtool cannot recognize.
14113*** The result is that libtool may fail to recognize shared libraries
14114*** as such.  This will affect the creation of libtool libraries that
14115*** depend on shared libraries, but programs linked with such libtool
14116*** libraries will work regardless of this problem.  Nevertheless, you
14117*** may want to report the problem to your system manager and/or to
14118*** bug-libtool@gnu.org
14119
14120_LT_EOF
14121	  fi ;;
14122	esac
14123      fi
14124      break
14125    fi
14126  done
14127  IFS="$lt_save_ifs"
14128  MAGIC_CMD="$lt_save_MAGIC_CMD"
14129  ;;
14130esac
14131fi
14132
14133MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14134if test -n "$MAGIC_CMD"; then
14135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14136$as_echo "$MAGIC_CMD" >&6; }
14137else
14138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14139$as_echo "no" >&6; }
14140fi
14141
14142
14143  else
14144    MAGIC_CMD=:
14145  fi
14146fi
14147
14148  fi
14149  ;;
14150esac
14151
14152# Use C for the default configuration in the libtool script
14153
14154lt_save_CC="$CC"
14155ac_ext=c
14156ac_cpp='$CPP $CPPFLAGS'
14157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14159ac_compiler_gnu=$ac_cv_c_compiler_gnu
14160
14161
14162# Source file extension for C test sources.
14163ac_ext=c
14164
14165# Object file extension for compiled C test sources.
14166objext=o
14167objext=$objext
14168
14169# Code to be used in simple compile tests
14170lt_simple_compile_test_code="int some_variable = 0;"
14171
14172# Code to be used in simple link tests
14173lt_simple_link_test_code='int main(){return(0);}'
14174
14175
14176
14177
14178
14179
14180
14181# If no C compiler was specified, use CC.
14182LTCC=${LTCC-"$CC"}
14183
14184# If no C compiler flags were specified, use CFLAGS.
14185LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14186
14187# Allow CC to be a program name with arguments.
14188compiler=$CC
14189
14190# Save the default compiler, since it gets overwritten when the other
14191# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14192compiler_DEFAULT=$CC
14193
14194# save warnings/boilerplate of simple test code
14195ac_outfile=conftest.$ac_objext
14196echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14197eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14198_lt_compiler_boilerplate=`cat conftest.err`
14199$RM conftest*
14200
14201ac_outfile=conftest.$ac_objext
14202echo "$lt_simple_link_test_code" >conftest.$ac_ext
14203eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14204_lt_linker_boilerplate=`cat conftest.err`
14205$RM -r conftest*
14206
14207
14208if test -n "$compiler"; then
14209
14210lt_prog_compiler_no_builtin_flag=
14211
14212if test "$GCC" = yes; then
14213  case $cc_basename in
14214  nvcc*)
14215    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14216  *)
14217    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14218  esac
14219
14220  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14221$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14222if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14223  $as_echo_n "(cached) " >&6
14224else
14225  lt_cv_prog_compiler_rtti_exceptions=no
14226   ac_outfile=conftest.$ac_objext
14227   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14228   lt_compiler_flag="-fno-rtti -fno-exceptions"
14229   # Insert the option either (1) after the last *FLAGS variable, or
14230   # (2) before a word containing "conftest.", or (3) at the end.
14231   # Note that $ac_compile itself does not contain backslashes and begins
14232   # with a dollar sign (not a hyphen), so the echo should work correctly.
14233   # The option is referenced via a variable to avoid confusing sed.
14234   lt_compile=`echo "$ac_compile" | $SED \
14235   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14236   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14237   -e 's:$: $lt_compiler_flag:'`
14238   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14239   (eval "$lt_compile" 2>conftest.err)
14240   ac_status=$?
14241   cat conftest.err >&5
14242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243   if (exit $ac_status) && test -s "$ac_outfile"; then
14244     # The compiler can only warn and ignore the option if not recognized
14245     # So say no if there are warnings other than the usual output.
14246     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14247     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14248     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14249       lt_cv_prog_compiler_rtti_exceptions=yes
14250     fi
14251   fi
14252   $RM conftest*
14253
14254fi
14255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14256$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14257
14258if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14259    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14260else
14261    :
14262fi
14263
14264fi
14265
14266
14267
14268
14269
14270
14271  lt_prog_compiler_wl=
14272lt_prog_compiler_pic=
14273lt_prog_compiler_static=
14274
14275
14276  if test "$GCC" = yes; then
14277    lt_prog_compiler_wl='-Wl,'
14278    lt_prog_compiler_static='-static'
14279
14280    case $host_os in
14281      aix*)
14282      # All AIX code is PIC.
14283      if test "$host_cpu" = ia64; then
14284	# AIX 5 now supports IA64 processor
14285	lt_prog_compiler_static='-Bstatic'
14286      fi
14287      ;;
14288
14289    amigaos*)
14290      case $host_cpu in
14291      powerpc)
14292            # see comment about AmigaOS4 .so support
14293            lt_prog_compiler_pic='-fPIC'
14294        ;;
14295      m68k)
14296            # FIXME: we need at least 68020 code to build shared libraries, but
14297            # adding the `-m68020' flag to GCC prevents building anything better,
14298            # like `-m68040'.
14299            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14300        ;;
14301      esac
14302      ;;
14303
14304    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14305      # PIC is the default for these OSes.
14306      ;;
14307
14308    mingw* | cygwin* | pw32* | os2* | cegcc*)
14309      # This hack is so that the source file can tell whether it is being
14310      # built for inclusion in a dll (and should export symbols for example).
14311      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14312      # (--disable-auto-import) libraries
14313      lt_prog_compiler_pic='-DDLL_EXPORT'
14314      ;;
14315
14316    darwin* | rhapsody*)
14317      # PIC is the default on this platform
14318      # Common symbols not allowed in MH_DYLIB files
14319      lt_prog_compiler_pic='-fno-common'
14320      ;;
14321
14322    haiku*)
14323      # PIC is the default for Haiku.
14324      # The "-static" flag exists, but is broken.
14325      lt_prog_compiler_static=
14326      ;;
14327
14328    hpux*)
14329      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14330      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14331      # sets the default TLS model and affects inlining.
14332      case $host_cpu in
14333      hppa*64*)
14334	# +Z the default
14335	;;
14336      *)
14337	lt_prog_compiler_pic='-fPIC'
14338	;;
14339      esac
14340      ;;
14341
14342    interix[3-9]*)
14343      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14344      # Instead, we relocate shared libraries at runtime.
14345      ;;
14346
14347    msdosdjgpp*)
14348      # Just because we use GCC doesn't mean we suddenly get shared libraries
14349      # on systems that don't support them.
14350      lt_prog_compiler_can_build_shared=no
14351      enable_shared=no
14352      ;;
14353
14354    *nto* | *qnx*)
14355      # QNX uses GNU C++, but need to define -shared option too, otherwise
14356      # it will coredump.
14357      lt_prog_compiler_pic='-fPIC -shared'
14358      ;;
14359
14360    sysv4*MP*)
14361      if test -d /usr/nec; then
14362	lt_prog_compiler_pic=-Kconform_pic
14363      fi
14364      ;;
14365
14366    *)
14367      lt_prog_compiler_pic='-fPIC'
14368      ;;
14369    esac
14370
14371    case $cc_basename in
14372    nvcc*) # Cuda Compiler Driver 2.2
14373      lt_prog_compiler_wl='-Xlinker '
14374      if test -n "$lt_prog_compiler_pic"; then
14375        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14376      fi
14377      ;;
14378    esac
14379  else
14380    # PORTME Check for flag to pass linker flags through the system compiler.
14381    case $host_os in
14382    aix*)
14383      lt_prog_compiler_wl='-Wl,'
14384      if test "$host_cpu" = ia64; then
14385	# AIX 5 now supports IA64 processor
14386	lt_prog_compiler_static='-Bstatic'
14387      else
14388	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14389      fi
14390      ;;
14391
14392    mingw* | cygwin* | pw32* | os2* | cegcc*)
14393      # This hack is so that the source file can tell whether it is being
14394      # built for inclusion in a dll (and should export symbols for example).
14395      lt_prog_compiler_pic='-DDLL_EXPORT'
14396      ;;
14397
14398    hpux9* | hpux10* | hpux11*)
14399      lt_prog_compiler_wl='-Wl,'
14400      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14401      # not for PA HP-UX.
14402      case $host_cpu in
14403      hppa*64*|ia64*)
14404	# +Z the default
14405	;;
14406      *)
14407	lt_prog_compiler_pic='+Z'
14408	;;
14409      esac
14410      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14411      lt_prog_compiler_static='${wl}-a ${wl}archive'
14412      ;;
14413
14414    irix5* | irix6* | nonstopux*)
14415      lt_prog_compiler_wl='-Wl,'
14416      # PIC (with -KPIC) is the default.
14417      lt_prog_compiler_static='-non_shared'
14418      ;;
14419
14420    linux* | k*bsd*-gnu | kopensolaris*-gnu)
14421      case $cc_basename in
14422      # old Intel for x86_64 which still supported -KPIC.
14423      ecc*)
14424	lt_prog_compiler_wl='-Wl,'
14425	lt_prog_compiler_pic='-KPIC'
14426	lt_prog_compiler_static='-static'
14427        ;;
14428      # icc used to be incompatible with GCC.
14429      # ICC 10 doesn't accept -KPIC any more.
14430      icc* | ifort*)
14431	lt_prog_compiler_wl='-Wl,'
14432	lt_prog_compiler_pic='-fPIC'
14433	lt_prog_compiler_static='-static'
14434        ;;
14435      # Lahey Fortran 8.1.
14436      lf95*)
14437	lt_prog_compiler_wl='-Wl,'
14438	lt_prog_compiler_pic='--shared'
14439	lt_prog_compiler_static='--static'
14440	;;
14441      nagfor*)
14442	# NAG Fortran compiler
14443	lt_prog_compiler_wl='-Wl,-Wl,,'
14444	lt_prog_compiler_pic='-PIC'
14445	lt_prog_compiler_static='-Bstatic'
14446	;;
14447      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14448        # Portland Group compilers (*not* the Pentium gcc compiler,
14449	# which looks to be a dead project)
14450	lt_prog_compiler_wl='-Wl,'
14451	lt_prog_compiler_pic='-fpic'
14452	lt_prog_compiler_static='-Bstatic'
14453        ;;
14454      ccc*)
14455        lt_prog_compiler_wl='-Wl,'
14456        # All Alpha code is PIC.
14457        lt_prog_compiler_static='-non_shared'
14458        ;;
14459      xl* | bgxl* | bgf* | mpixl*)
14460	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14461	lt_prog_compiler_wl='-Wl,'
14462	lt_prog_compiler_pic='-qpic'
14463	lt_prog_compiler_static='-qstaticlink'
14464	;;
14465      *)
14466	case `$CC -V 2>&1 | sed 5q` in
14467	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14468	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14469	  lt_prog_compiler_pic='-KPIC'
14470	  lt_prog_compiler_static='-Bstatic'
14471	  lt_prog_compiler_wl=''
14472	  ;;
14473	*Sun\ F* | *Sun*Fortran*)
14474	  lt_prog_compiler_pic='-KPIC'
14475	  lt_prog_compiler_static='-Bstatic'
14476	  lt_prog_compiler_wl='-Qoption ld '
14477	  ;;
14478	*Sun\ C*)
14479	  # Sun C 5.9
14480	  lt_prog_compiler_pic='-KPIC'
14481	  lt_prog_compiler_static='-Bstatic'
14482	  lt_prog_compiler_wl='-Wl,'
14483	  ;;
14484        *Intel*\ [CF]*Compiler*)
14485	  lt_prog_compiler_wl='-Wl,'
14486	  lt_prog_compiler_pic='-fPIC'
14487	  lt_prog_compiler_static='-static'
14488	  ;;
14489	*Portland\ Group*)
14490	  lt_prog_compiler_wl='-Wl,'
14491	  lt_prog_compiler_pic='-fpic'
14492	  lt_prog_compiler_static='-Bstatic'
14493	  ;;
14494	esac
14495	;;
14496      esac
14497      ;;
14498
14499    newsos6)
14500      lt_prog_compiler_pic='-KPIC'
14501      lt_prog_compiler_static='-Bstatic'
14502      ;;
14503
14504    *nto* | *qnx*)
14505      # QNX uses GNU C++, but need to define -shared option too, otherwise
14506      # it will coredump.
14507      lt_prog_compiler_pic='-fPIC -shared'
14508      ;;
14509
14510    osf3* | osf4* | osf5*)
14511      lt_prog_compiler_wl='-Wl,'
14512      # All OSF/1 code is PIC.
14513      lt_prog_compiler_static='-non_shared'
14514      ;;
14515
14516    rdos*)
14517      lt_prog_compiler_static='-non_shared'
14518      ;;
14519
14520    solaris*)
14521      lt_prog_compiler_pic='-KPIC'
14522      lt_prog_compiler_static='-Bstatic'
14523      case $cc_basename in
14524      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14525	lt_prog_compiler_wl='-Qoption ld ';;
14526      *)
14527	lt_prog_compiler_wl='-Wl,';;
14528      esac
14529      ;;
14530
14531    sunos4*)
14532      lt_prog_compiler_wl='-Qoption ld '
14533      lt_prog_compiler_pic='-PIC'
14534      lt_prog_compiler_static='-Bstatic'
14535      ;;
14536
14537    sysv4 | sysv4.2uw2* | sysv4.3*)
14538      lt_prog_compiler_wl='-Wl,'
14539      lt_prog_compiler_pic='-KPIC'
14540      lt_prog_compiler_static='-Bstatic'
14541      ;;
14542
14543    sysv4*MP*)
14544      if test -d /usr/nec ;then
14545	lt_prog_compiler_pic='-Kconform_pic'
14546	lt_prog_compiler_static='-Bstatic'
14547      fi
14548      ;;
14549
14550    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14551      lt_prog_compiler_wl='-Wl,'
14552      lt_prog_compiler_pic='-KPIC'
14553      lt_prog_compiler_static='-Bstatic'
14554      ;;
14555
14556    unicos*)
14557      lt_prog_compiler_wl='-Wl,'
14558      lt_prog_compiler_can_build_shared=no
14559      ;;
14560
14561    uts4*)
14562      lt_prog_compiler_pic='-pic'
14563      lt_prog_compiler_static='-Bstatic'
14564      ;;
14565
14566    *)
14567      lt_prog_compiler_can_build_shared=no
14568      ;;
14569    esac
14570  fi
14571
14572case $host_os in
14573  # For platforms which do not support PIC, -DPIC is meaningless:
14574  *djgpp*)
14575    lt_prog_compiler_pic=
14576    ;;
14577  *)
14578    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14579    ;;
14580esac
14581
14582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14583$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14584if ${lt_cv_prog_compiler_pic+:} false; then :
14585  $as_echo_n "(cached) " >&6
14586else
14587  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14588fi
14589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14590$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14591lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14592
14593#
14594# Check to make sure the PIC flag actually works.
14595#
14596if test -n "$lt_prog_compiler_pic"; then
14597  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14598$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14599if ${lt_cv_prog_compiler_pic_works+:} false; then :
14600  $as_echo_n "(cached) " >&6
14601else
14602  lt_cv_prog_compiler_pic_works=no
14603   ac_outfile=conftest.$ac_objext
14604   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14605   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14606   # Insert the option either (1) after the last *FLAGS variable, or
14607   # (2) before a word containing "conftest.", or (3) at the end.
14608   # Note that $ac_compile itself does not contain backslashes and begins
14609   # with a dollar sign (not a hyphen), so the echo should work correctly.
14610   # The option is referenced via a variable to avoid confusing sed.
14611   lt_compile=`echo "$ac_compile" | $SED \
14612   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14613   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14614   -e 's:$: $lt_compiler_flag:'`
14615   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14616   (eval "$lt_compile" 2>conftest.err)
14617   ac_status=$?
14618   cat conftest.err >&5
14619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620   if (exit $ac_status) && test -s "$ac_outfile"; then
14621     # The compiler can only warn and ignore the option if not recognized
14622     # So say no if there are warnings other than the usual output.
14623     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14624     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14625     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14626       lt_cv_prog_compiler_pic_works=yes
14627     fi
14628   fi
14629   $RM conftest*
14630
14631fi
14632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14633$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14634
14635if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14636    case $lt_prog_compiler_pic in
14637     "" | " "*) ;;
14638     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14639     esac
14640else
14641    lt_prog_compiler_pic=
14642     lt_prog_compiler_can_build_shared=no
14643fi
14644
14645fi
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657#
14658# Check to make sure the static flag actually works.
14659#
14660wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14662$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14663if ${lt_cv_prog_compiler_static_works+:} false; then :
14664  $as_echo_n "(cached) " >&6
14665else
14666  lt_cv_prog_compiler_static_works=no
14667   save_LDFLAGS="$LDFLAGS"
14668   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14669   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14670   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14671     # The linker can only warn and ignore the option if not recognized
14672     # So say no if there are warnings
14673     if test -s conftest.err; then
14674       # Append any errors to the config.log.
14675       cat conftest.err 1>&5
14676       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14677       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14678       if diff conftest.exp conftest.er2 >/dev/null; then
14679         lt_cv_prog_compiler_static_works=yes
14680       fi
14681     else
14682       lt_cv_prog_compiler_static_works=yes
14683     fi
14684   fi
14685   $RM -r conftest*
14686   LDFLAGS="$save_LDFLAGS"
14687
14688fi
14689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14690$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14691
14692if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14693    :
14694else
14695    lt_prog_compiler_static=
14696fi
14697
14698
14699
14700
14701
14702
14703
14704  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14705$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14706if ${lt_cv_prog_compiler_c_o+:} false; then :
14707  $as_echo_n "(cached) " >&6
14708else
14709  lt_cv_prog_compiler_c_o=no
14710   $RM -r conftest 2>/dev/null
14711   mkdir conftest
14712   cd conftest
14713   mkdir out
14714   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14715
14716   lt_compiler_flag="-o out/conftest2.$ac_objext"
14717   # Insert the option either (1) after the last *FLAGS variable, or
14718   # (2) before a word containing "conftest.", or (3) at the end.
14719   # Note that $ac_compile itself does not contain backslashes and begins
14720   # with a dollar sign (not a hyphen), so the echo should work correctly.
14721   lt_compile=`echo "$ac_compile" | $SED \
14722   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14723   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14724   -e 's:$: $lt_compiler_flag:'`
14725   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14726   (eval "$lt_compile" 2>out/conftest.err)
14727   ac_status=$?
14728   cat out/conftest.err >&5
14729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14731   then
14732     # The compiler can only warn and ignore the option if not recognized
14733     # So say no if there are warnings
14734     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14735     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14736     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14737       lt_cv_prog_compiler_c_o=yes
14738     fi
14739   fi
14740   chmod u+w . 2>&5
14741   $RM conftest*
14742   # SGI C++ compiler will create directory out/ii_files/ for
14743   # template instantiation
14744   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14745   $RM out/* && rmdir out
14746   cd ..
14747   $RM -r conftest
14748   $RM conftest*
14749
14750fi
14751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14752$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14753
14754
14755
14756
14757
14758
14759  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14760$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14761if ${lt_cv_prog_compiler_c_o+:} false; then :
14762  $as_echo_n "(cached) " >&6
14763else
14764  lt_cv_prog_compiler_c_o=no
14765   $RM -r conftest 2>/dev/null
14766   mkdir conftest
14767   cd conftest
14768   mkdir out
14769   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14770
14771   lt_compiler_flag="-o out/conftest2.$ac_objext"
14772   # Insert the option either (1) after the last *FLAGS variable, or
14773   # (2) before a word containing "conftest.", or (3) at the end.
14774   # Note that $ac_compile itself does not contain backslashes and begins
14775   # with a dollar sign (not a hyphen), so the echo should work correctly.
14776   lt_compile=`echo "$ac_compile" | $SED \
14777   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14778   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14779   -e 's:$: $lt_compiler_flag:'`
14780   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14781   (eval "$lt_compile" 2>out/conftest.err)
14782   ac_status=$?
14783   cat out/conftest.err >&5
14784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14786   then
14787     # The compiler can only warn and ignore the option if not recognized
14788     # So say no if there are warnings
14789     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14790     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14791     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14792       lt_cv_prog_compiler_c_o=yes
14793     fi
14794   fi
14795   chmod u+w . 2>&5
14796   $RM conftest*
14797   # SGI C++ compiler will create directory out/ii_files/ for
14798   # template instantiation
14799   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14800   $RM out/* && rmdir out
14801   cd ..
14802   $RM -r conftest
14803   $RM conftest*
14804
14805fi
14806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14807$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14808
14809
14810
14811
14812hard_links="nottested"
14813if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14814  # do not overwrite the value of need_locks provided by the user
14815  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14816$as_echo_n "checking if we can lock with hard links... " >&6; }
14817  hard_links=yes
14818  $RM conftest*
14819  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14820  touch conftest.a
14821  ln conftest.a conftest.b 2>&5 || hard_links=no
14822  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14824$as_echo "$hard_links" >&6; }
14825  if test "$hard_links" = no; then
14826    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14827$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14828    need_locks=warn
14829  fi
14830else
14831  need_locks=no
14832fi
14833
14834
14835
14836
14837
14838
14839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14840$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14841
14842  runpath_var=
14843  allow_undefined_flag=
14844  always_export_symbols=no
14845  archive_cmds=
14846  archive_expsym_cmds=
14847  compiler_needs_object=no
14848  enable_shared_with_static_runtimes=no
14849  export_dynamic_flag_spec=
14850  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14851  hardcode_automatic=no
14852  hardcode_direct=no
14853  hardcode_direct_absolute=no
14854  hardcode_libdir_flag_spec=
14855  hardcode_libdir_separator=
14856  hardcode_minus_L=no
14857  hardcode_shlibpath_var=unsupported
14858  inherit_rpath=no
14859  link_all_deplibs=unknown
14860  module_cmds=
14861  module_expsym_cmds=
14862  old_archive_from_new_cmds=
14863  old_archive_from_expsyms_cmds=
14864  thread_safe_flag_spec=
14865  whole_archive_flag_spec=
14866  # include_expsyms should be a list of space-separated symbols to be *always*
14867  # included in the symbol list
14868  include_expsyms=
14869  # exclude_expsyms can be an extended regexp of symbols to exclude
14870  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14871  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14872  # as well as any symbol that contains `d'.
14873  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14874  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14875  # platforms (ab)use it in PIC code, but their linkers get confused if
14876  # the symbol is explicitly referenced.  Since portable code cannot
14877  # rely on this symbol name, it's probably fine to never include it in
14878  # preloaded symbol tables.
14879  # Exclude shared library initialization/finalization symbols.
14880  extract_expsyms_cmds=
14881
14882  case $host_os in
14883  cygwin* | mingw* | pw32* | cegcc*)
14884    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14885    # When not using gcc, we currently assume that we are using
14886    # Microsoft Visual C++.
14887    if test "$GCC" != yes; then
14888      with_gnu_ld=no
14889    fi
14890    ;;
14891  interix*)
14892    # we just hope/assume this is gcc and not c89 (= MSVC++)
14893    with_gnu_ld=yes
14894    ;;
14895  openbsd*)
14896    with_gnu_ld=no
14897    ;;
14898  esac
14899
14900  ld_shlibs=yes
14901
14902  # On some targets, GNU ld is compatible enough with the native linker
14903  # that we're better off using the native interface for both.
14904  lt_use_gnu_ld_interface=no
14905  if test "$with_gnu_ld" = yes; then
14906    case $host_os in
14907      aix*)
14908	# The AIX port of GNU ld has always aspired to compatibility
14909	# with the native linker.  However, as the warning in the GNU ld
14910	# block says, versions before 2.19.5* couldn't really create working
14911	# shared libraries, regardless of the interface used.
14912	case `$LD -v 2>&1` in
14913	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14914	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14915	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14916	  *)
14917	    lt_use_gnu_ld_interface=yes
14918	    ;;
14919	esac
14920	;;
14921      *)
14922	lt_use_gnu_ld_interface=yes
14923	;;
14924    esac
14925  fi
14926
14927  if test "$lt_use_gnu_ld_interface" = yes; then
14928    # If archive_cmds runs LD, not CC, wlarc should be empty
14929    wlarc='${wl}'
14930
14931    # Set some defaults for GNU ld with shared library support. These
14932    # are reset later if shared libraries are not supported. Putting them
14933    # here allows them to be overridden if necessary.
14934    runpath_var=LD_RUN_PATH
14935    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14936    export_dynamic_flag_spec='${wl}--export-dynamic'
14937    # ancient GNU ld didn't support --whole-archive et. al.
14938    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14939      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14940    else
14941      whole_archive_flag_spec=
14942    fi
14943    supports_anon_versioning=no
14944    case `$LD -v 2>&1` in
14945      *GNU\ gold*) supports_anon_versioning=yes ;;
14946      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14947      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14948      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14949      *\ 2.11.*) ;; # other 2.11 versions
14950      *) supports_anon_versioning=yes ;;
14951    esac
14952
14953    # See if GNU ld supports shared libraries.
14954    case $host_os in
14955    aix[3-9]*)
14956      # On AIX/PPC, the GNU linker is very broken
14957      if test "$host_cpu" != ia64; then
14958	ld_shlibs=no
14959	cat <<_LT_EOF 1>&2
14960
14961*** Warning: the GNU linker, at least up to release 2.19, is reported
14962*** to be unable to reliably create shared libraries on AIX.
14963*** Therefore, libtool is disabling shared libraries support.  If you
14964*** really care for shared libraries, you may want to install binutils
14965*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14966*** You will then need to restart the configuration process.
14967
14968_LT_EOF
14969      fi
14970      ;;
14971
14972    amigaos*)
14973      case $host_cpu in
14974      powerpc)
14975            # see comment about AmigaOS4 .so support
14976            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14977            archive_expsym_cmds=''
14978        ;;
14979      m68k)
14980            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)'
14981            hardcode_libdir_flag_spec='-L$libdir'
14982            hardcode_minus_L=yes
14983        ;;
14984      esac
14985      ;;
14986
14987    beos*)
14988      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14989	allow_undefined_flag=unsupported
14990	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14991	# support --undefined.  This deserves some investigation.  FIXME
14992	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14993      else
14994	ld_shlibs=no
14995      fi
14996      ;;
14997
14998    cygwin* | mingw* | pw32* | cegcc*)
14999      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15000      # as there is no search path for DLLs.
15001      hardcode_libdir_flag_spec='-L$libdir'
15002      export_dynamic_flag_spec='${wl}--export-all-symbols'
15003      allow_undefined_flag=unsupported
15004      always_export_symbols=no
15005      enable_shared_with_static_runtimes=yes
15006      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'
15007      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15008
15009      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15010        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15011	# If the export-symbols file already is a .def file (1st line
15012	# is EXPORTS), use it as is; otherwise, prepend...
15013	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15014	  cp $export_symbols $output_objdir/$soname.def;
15015	else
15016	  echo EXPORTS > $output_objdir/$soname.def;
15017	  cat $export_symbols >> $output_objdir/$soname.def;
15018	fi~
15019	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15020      else
15021	ld_shlibs=no
15022      fi
15023      ;;
15024
15025    haiku*)
15026      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15027      link_all_deplibs=yes
15028      ;;
15029
15030    interix[3-9]*)
15031      hardcode_direct=no
15032      hardcode_shlibpath_var=no
15033      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15034      export_dynamic_flag_spec='${wl}-E'
15035      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15036      # Instead, shared libraries are loaded at an image base (0x10000000 by
15037      # default) and relocated if they conflict, which is a slow very memory
15038      # consuming and fragmenting process.  To avoid this, we pick a random,
15039      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15040      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15041      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15042      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'
15043      ;;
15044
15045    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15046      tmp_diet=no
15047      if test "$host_os" = linux-dietlibc; then
15048	case $cc_basename in
15049	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15050	esac
15051      fi
15052      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15053	 && test "$tmp_diet" = no
15054      then
15055	tmp_addflag=' $pic_flag'
15056	tmp_sharedflag='-shared'
15057	case $cc_basename,$host_cpu in
15058        pgcc*)				# Portland Group C compiler
15059	  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'
15060	  tmp_addflag=' $pic_flag'
15061	  ;;
15062	pgf77* | pgf90* | pgf95* | pgfortran*)
15063					# Portland Group f77 and f90 compilers
15064	  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'
15065	  tmp_addflag=' $pic_flag -Mnomain' ;;
15066	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15067	  tmp_addflag=' -i_dynamic' ;;
15068	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15069	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15070	ifc* | ifort*)			# Intel Fortran compiler
15071	  tmp_addflag=' -nofor_main' ;;
15072	lf95*)				# Lahey Fortran 8.1
15073	  whole_archive_flag_spec=
15074	  tmp_sharedflag='--shared' ;;
15075	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15076	  tmp_sharedflag='-qmkshrobj'
15077	  tmp_addflag= ;;
15078	nvcc*)	# Cuda Compiler Driver 2.2
15079	  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'
15080	  compiler_needs_object=yes
15081	  ;;
15082	esac
15083	case `$CC -V 2>&1 | sed 5q` in
15084	*Sun\ C*)			# Sun C 5.9
15085	  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'
15086	  compiler_needs_object=yes
15087	  tmp_sharedflag='-G' ;;
15088	*Sun\ F*)			# Sun Fortran 8.3
15089	  tmp_sharedflag='-G' ;;
15090	esac
15091	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15092
15093        if test "x$supports_anon_versioning" = xyes; then
15094          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15095	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15096	    echo "local: *; };" >> $output_objdir/$libname.ver~
15097	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15098        fi
15099
15100	case $cc_basename in
15101	xlf* | bgf* | bgxlf* | mpixlf*)
15102	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15103	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15104	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15105	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15106	  if test "x$supports_anon_versioning" = xyes; then
15107	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15108	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15109	      echo "local: *; };" >> $output_objdir/$libname.ver~
15110	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15111	  fi
15112	  ;;
15113	esac
15114      else
15115        ld_shlibs=no
15116      fi
15117      ;;
15118
15119    netbsd*)
15120      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15121	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15122	wlarc=
15123      else
15124	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15125	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15126      fi
15127      ;;
15128
15129    solaris*)
15130      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15131	ld_shlibs=no
15132	cat <<_LT_EOF 1>&2
15133
15134*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15135*** create shared libraries on Solaris systems.  Therefore, libtool
15136*** is disabling shared libraries support.  We urge you to upgrade GNU
15137*** binutils to release 2.9.1 or newer.  Another option is to modify
15138*** your PATH or compiler configuration so that the native linker is
15139*** used, and then restart.
15140
15141_LT_EOF
15142      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15143	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15144	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15145      else
15146	ld_shlibs=no
15147      fi
15148      ;;
15149
15150    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15151      case `$LD -v 2>&1` in
15152        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15153	ld_shlibs=no
15154	cat <<_LT_EOF 1>&2
15155
15156*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15157*** reliably create shared libraries on SCO systems.  Therefore, libtool
15158*** is disabling shared libraries support.  We urge you to upgrade GNU
15159*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15160*** your PATH or compiler configuration so that the native linker is
15161*** used, and then restart.
15162
15163_LT_EOF
15164	;;
15165	*)
15166	  # For security reasons, it is highly recommended that you always
15167	  # use absolute paths for naming shared libraries, and exclude the
15168	  # DT_RUNPATH tag from executables and libraries.  But doing so
15169	  # requires that you compile everything twice, which is a pain.
15170	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15171	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15172	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15173	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15174	  else
15175	    ld_shlibs=no
15176	  fi
15177	;;
15178      esac
15179      ;;
15180
15181    sunos4*)
15182      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15183      wlarc=
15184      hardcode_direct=yes
15185      hardcode_shlibpath_var=no
15186      ;;
15187
15188    *)
15189      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15190	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15191	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15192      else
15193	ld_shlibs=no
15194      fi
15195      ;;
15196    esac
15197
15198    if test "$ld_shlibs" = no; then
15199      runpath_var=
15200      hardcode_libdir_flag_spec=
15201      export_dynamic_flag_spec=
15202      whole_archive_flag_spec=
15203    fi
15204  else
15205    # PORTME fill in a description of your system's linker (not GNU ld)
15206    case $host_os in
15207    aix3*)
15208      allow_undefined_flag=unsupported
15209      always_export_symbols=yes
15210      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'
15211      # Note: this linker hardcodes the directories in LIBPATH if there
15212      # are no directories specified by -L.
15213      hardcode_minus_L=yes
15214      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15215	# Neither direct hardcoding nor static linking is supported with a
15216	# broken collect2.
15217	hardcode_direct=unsupported
15218      fi
15219      ;;
15220
15221    aix[4-9]*)
15222      if test "$host_cpu" = ia64; then
15223	# On IA64, the linker does run time linking by default, so we don't
15224	# have to do anything special.
15225	aix_use_runtimelinking=no
15226	exp_sym_flag='-Bexport'
15227	no_entry_flag=""
15228      else
15229	# If we're using GNU nm, then we don't want the "-C" option.
15230	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15231	# Also, AIX nm treats weak defined symbols like other global
15232	# defined symbols, whereas GNU nm marks them as "W".
15233	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15234	  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'
15235	else
15236	  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'
15237	fi
15238	aix_use_runtimelinking=no
15239
15240	# Test if we are trying to use run time linking or normal
15241	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15242	# need to do runtime linking.
15243	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15244	  for ld_flag in $LDFLAGS; do
15245	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15246	    aix_use_runtimelinking=yes
15247	    break
15248	  fi
15249	  done
15250	  ;;
15251	esac
15252
15253	exp_sym_flag='-bexport'
15254	no_entry_flag='-bnoentry'
15255      fi
15256
15257      # When large executables or shared objects are built, AIX ld can
15258      # have problems creating the table of contents.  If linking a library
15259      # or program results in "error TOC overflow" add -mminimal-toc to
15260      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15261      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15262
15263      archive_cmds=''
15264      hardcode_direct=yes
15265      hardcode_direct_absolute=yes
15266      hardcode_libdir_separator=':'
15267      link_all_deplibs=yes
15268      file_list_spec='${wl}-f,'
15269
15270      if test "$GCC" = yes; then
15271	case $host_os in aix4.[012]|aix4.[012].*)
15272	# We only want to do this on AIX 4.2 and lower, the check
15273	# below for broken collect2 doesn't work under 4.3+
15274	  collect2name=`${CC} -print-prog-name=collect2`
15275	  if test -f "$collect2name" &&
15276	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15277	  then
15278	  # We have reworked collect2
15279	  :
15280	  else
15281	  # We have old collect2
15282	  hardcode_direct=unsupported
15283	  # It fails to find uninstalled libraries when the uninstalled
15284	  # path is not listed in the libpath.  Setting hardcode_minus_L
15285	  # to unsupported forces relinking
15286	  hardcode_minus_L=yes
15287	  hardcode_libdir_flag_spec='-L$libdir'
15288	  hardcode_libdir_separator=
15289	  fi
15290	  ;;
15291	esac
15292	shared_flag='-shared'
15293	if test "$aix_use_runtimelinking" = yes; then
15294	  shared_flag="$shared_flag "'${wl}-G'
15295	fi
15296      else
15297	# not using gcc
15298	if test "$host_cpu" = ia64; then
15299	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15300	# chokes on -Wl,-G. The following line is correct:
15301	  shared_flag='-G'
15302	else
15303	  if test "$aix_use_runtimelinking" = yes; then
15304	    shared_flag='${wl}-G'
15305	  else
15306	    shared_flag='${wl}-bM:SRE'
15307	  fi
15308	fi
15309      fi
15310
15311      export_dynamic_flag_spec='${wl}-bexpall'
15312      # It seems that -bexpall does not export symbols beginning with
15313      # underscore (_), so it is better to generate a list of symbols to export.
15314      always_export_symbols=yes
15315      if test "$aix_use_runtimelinking" = yes; then
15316	# Warning - without using the other runtime loading flags (-brtl),
15317	# -berok will link without error, but may produce a broken library.
15318	allow_undefined_flag='-berok'
15319        # Determine the default libpath from the value encoded in an
15320        # empty executable.
15321        if test "${lt_cv_aix_libpath+set}" = set; then
15322  aix_libpath=$lt_cv_aix_libpath
15323else
15324  if ${lt_cv_aix_libpath_+:} false; then :
15325  $as_echo_n "(cached) " >&6
15326else
15327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15328/* end confdefs.h.  */
15329
15330int
15331main ()
15332{
15333
15334  ;
15335  return 0;
15336}
15337_ACEOF
15338if ac_fn_c_try_link "$LINENO"; then :
15339
15340  lt_aix_libpath_sed='
15341      /Import File Strings/,/^$/ {
15342	  /^0/ {
15343	      s/^0  *\([^ ]*\) *$/\1/
15344	      p
15345	  }
15346      }'
15347  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15348  # Check for a 64-bit object if we didn't find anything.
15349  if test -z "$lt_cv_aix_libpath_"; then
15350    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15351  fi
15352fi
15353rm -f core conftest.err conftest.$ac_objext \
15354    conftest$ac_exeext conftest.$ac_ext
15355  if test -z "$lt_cv_aix_libpath_"; then
15356    lt_cv_aix_libpath_="/usr/lib:/lib"
15357  fi
15358
15359fi
15360
15361  aix_libpath=$lt_cv_aix_libpath_
15362fi
15363
15364        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15365        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"
15366      else
15367	if test "$host_cpu" = ia64; then
15368	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15369	  allow_undefined_flag="-z nodefs"
15370	  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"
15371	else
15372	 # Determine the default libpath from the value encoded in an
15373	 # empty executable.
15374	 if test "${lt_cv_aix_libpath+set}" = set; then
15375  aix_libpath=$lt_cv_aix_libpath
15376else
15377  if ${lt_cv_aix_libpath_+:} false; then :
15378  $as_echo_n "(cached) " >&6
15379else
15380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381/* end confdefs.h.  */
15382
15383int
15384main ()
15385{
15386
15387  ;
15388  return 0;
15389}
15390_ACEOF
15391if ac_fn_c_try_link "$LINENO"; then :
15392
15393  lt_aix_libpath_sed='
15394      /Import File Strings/,/^$/ {
15395	  /^0/ {
15396	      s/^0  *\([^ ]*\) *$/\1/
15397	      p
15398	  }
15399      }'
15400  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15401  # Check for a 64-bit object if we didn't find anything.
15402  if test -z "$lt_cv_aix_libpath_"; then
15403    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15404  fi
15405fi
15406rm -f core conftest.err conftest.$ac_objext \
15407    conftest$ac_exeext conftest.$ac_ext
15408  if test -z "$lt_cv_aix_libpath_"; then
15409    lt_cv_aix_libpath_="/usr/lib:/lib"
15410  fi
15411
15412fi
15413
15414  aix_libpath=$lt_cv_aix_libpath_
15415fi
15416
15417	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15418	  # Warning - without using the other run time loading flags,
15419	  # -berok will link without error, but may produce a broken library.
15420	  no_undefined_flag=' ${wl}-bernotok'
15421	  allow_undefined_flag=' ${wl}-berok'
15422	  if test "$with_gnu_ld" = yes; then
15423	    # We only use this code for GNU lds that support --whole-archive.
15424	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15425	  else
15426	    # Exported symbols can be pulled into shared objects from archives
15427	    whole_archive_flag_spec='$convenience'
15428	  fi
15429	  archive_cmds_need_lc=yes
15430	  # This is similar to how AIX traditionally builds its shared libraries.
15431	  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'
15432	fi
15433      fi
15434      ;;
15435
15436    amigaos*)
15437      case $host_cpu in
15438      powerpc)
15439            # see comment about AmigaOS4 .so support
15440            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15441            archive_expsym_cmds=''
15442        ;;
15443      m68k)
15444            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)'
15445            hardcode_libdir_flag_spec='-L$libdir'
15446            hardcode_minus_L=yes
15447        ;;
15448      esac
15449      ;;
15450
15451    bsdi[45]*)
15452      export_dynamic_flag_spec=-rdynamic
15453      ;;
15454
15455    cygwin* | mingw* | pw32* | cegcc*)
15456      # When not using gcc, we currently assume that we are using
15457      # Microsoft Visual C++.
15458      # hardcode_libdir_flag_spec is actually meaningless, as there is
15459      # no search path for DLLs.
15460      case $cc_basename in
15461      cl*)
15462	# Native MSVC
15463	hardcode_libdir_flag_spec=' '
15464	allow_undefined_flag=unsupported
15465	always_export_symbols=yes
15466	file_list_spec='@'
15467	# Tell ltmain to make .lib files, not .a files.
15468	libext=lib
15469	# Tell ltmain to make .dll files, not .so files.
15470	shrext_cmds=".dll"
15471	# FIXME: Setting linknames here is a bad hack.
15472	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15473	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15474	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15475	  else
15476	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15477	  fi~
15478	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15479	  linknames='
15480	# The linker will not automatically build a static lib if we build a DLL.
15481	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15482	enable_shared_with_static_runtimes=yes
15483	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15484	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15485	# Don't use ranlib
15486	old_postinstall_cmds='chmod 644 $oldlib'
15487	postlink_cmds='lt_outputfile="@OUTPUT@"~
15488	  lt_tool_outputfile="@TOOL_OUTPUT@"~
15489	  case $lt_outputfile in
15490	    *.exe|*.EXE) ;;
15491	    *)
15492	      lt_outputfile="$lt_outputfile.exe"
15493	      lt_tool_outputfile="$lt_tool_outputfile.exe"
15494	      ;;
15495	  esac~
15496	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15497	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15498	    $RM "$lt_outputfile.manifest";
15499	  fi'
15500	;;
15501      *)
15502	# Assume MSVC wrapper
15503	hardcode_libdir_flag_spec=' '
15504	allow_undefined_flag=unsupported
15505	# Tell ltmain to make .lib files, not .a files.
15506	libext=lib
15507	# Tell ltmain to make .dll files, not .so files.
15508	shrext_cmds=".dll"
15509	# FIXME: Setting linknames here is a bad hack.
15510	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15511	# The linker will automatically build a .lib file if we build a DLL.
15512	old_archive_from_new_cmds='true'
15513	# FIXME: Should let the user specify the lib program.
15514	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15515	enable_shared_with_static_runtimes=yes
15516	;;
15517      esac
15518      ;;
15519
15520    darwin* | rhapsody*)
15521
15522
15523  archive_cmds_need_lc=no
15524  hardcode_direct=no
15525  hardcode_automatic=yes
15526  hardcode_shlibpath_var=unsupported
15527  if test "$lt_cv_ld_force_load" = "yes"; then
15528    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\"`'
15529
15530  else
15531    whole_archive_flag_spec=''
15532  fi
15533  link_all_deplibs=yes
15534  allow_undefined_flag="$_lt_dar_allow_undefined"
15535  case $cc_basename in
15536     ifort*) _lt_dar_can_shared=yes ;;
15537     *) _lt_dar_can_shared=$GCC ;;
15538  esac
15539  if test "$_lt_dar_can_shared" = "yes"; then
15540    output_verbose_link_cmd=func_echo_all
15541    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15542    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15543    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}"
15544    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}"
15545
15546  else
15547  ld_shlibs=no
15548  fi
15549
15550      ;;
15551
15552    dgux*)
15553      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15554      hardcode_libdir_flag_spec='-L$libdir'
15555      hardcode_shlibpath_var=no
15556      ;;
15557
15558    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15559    # support.  Future versions do this automatically, but an explicit c++rt0.o
15560    # does not break anything, and helps significantly (at the cost of a little
15561    # extra space).
15562    freebsd2.2*)
15563      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15564      hardcode_libdir_flag_spec='-R$libdir'
15565      hardcode_direct=yes
15566      hardcode_shlibpath_var=no
15567      ;;
15568
15569    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15570    freebsd2.*)
15571      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15572      hardcode_direct=yes
15573      hardcode_minus_L=yes
15574      hardcode_shlibpath_var=no
15575      ;;
15576
15577    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15578    freebsd* | dragonfly*)
15579      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15580      hardcode_libdir_flag_spec='-R$libdir'
15581      hardcode_direct=yes
15582      hardcode_shlibpath_var=no
15583      ;;
15584
15585    hpux9*)
15586      if test "$GCC" = yes; then
15587	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'
15588      else
15589	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'
15590      fi
15591      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15592      hardcode_libdir_separator=:
15593      hardcode_direct=yes
15594
15595      # hardcode_minus_L: Not really in the search PATH,
15596      # but as the default location of the library.
15597      hardcode_minus_L=yes
15598      export_dynamic_flag_spec='${wl}-E'
15599      ;;
15600
15601    hpux10*)
15602      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15603	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15604      else
15605	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15606      fi
15607      if test "$with_gnu_ld" = no; then
15608	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15609	hardcode_libdir_separator=:
15610	hardcode_direct=yes
15611	hardcode_direct_absolute=yes
15612	export_dynamic_flag_spec='${wl}-E'
15613	# hardcode_minus_L: Not really in the search PATH,
15614	# but as the default location of the library.
15615	hardcode_minus_L=yes
15616      fi
15617      ;;
15618
15619    hpux11*)
15620      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15621	case $host_cpu in
15622	hppa*64*)
15623	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15624	  ;;
15625	ia64*)
15626	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15627	  ;;
15628	*)
15629	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15630	  ;;
15631	esac
15632      else
15633	case $host_cpu in
15634	hppa*64*)
15635	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15636	  ;;
15637	ia64*)
15638	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15639	  ;;
15640	*)
15641
15642	  # Older versions of the 11.00 compiler do not understand -b yet
15643	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15644	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15645$as_echo_n "checking if $CC understands -b... " >&6; }
15646if ${lt_cv_prog_compiler__b+:} false; then :
15647  $as_echo_n "(cached) " >&6
15648else
15649  lt_cv_prog_compiler__b=no
15650   save_LDFLAGS="$LDFLAGS"
15651   LDFLAGS="$LDFLAGS -b"
15652   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15653   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15654     # The linker can only warn and ignore the option if not recognized
15655     # So say no if there are warnings
15656     if test -s conftest.err; then
15657       # Append any errors to the config.log.
15658       cat conftest.err 1>&5
15659       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15660       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15661       if diff conftest.exp conftest.er2 >/dev/null; then
15662         lt_cv_prog_compiler__b=yes
15663       fi
15664     else
15665       lt_cv_prog_compiler__b=yes
15666     fi
15667   fi
15668   $RM -r conftest*
15669   LDFLAGS="$save_LDFLAGS"
15670
15671fi
15672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15673$as_echo "$lt_cv_prog_compiler__b" >&6; }
15674
15675if test x"$lt_cv_prog_compiler__b" = xyes; then
15676    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15677else
15678    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15679fi
15680
15681	  ;;
15682	esac
15683      fi
15684      if test "$with_gnu_ld" = no; then
15685	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15686	hardcode_libdir_separator=:
15687
15688	case $host_cpu in
15689	hppa*64*|ia64*)
15690	  hardcode_direct=no
15691	  hardcode_shlibpath_var=no
15692	  ;;
15693	*)
15694	  hardcode_direct=yes
15695	  hardcode_direct_absolute=yes
15696	  export_dynamic_flag_spec='${wl}-E'
15697
15698	  # hardcode_minus_L: Not really in the search PATH,
15699	  # but as the default location of the library.
15700	  hardcode_minus_L=yes
15701	  ;;
15702	esac
15703      fi
15704      ;;
15705
15706    irix5* | irix6* | nonstopux*)
15707      if test "$GCC" = yes; then
15708	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'
15709	# Try to use the -exported_symbol ld option, if it does not
15710	# work, assume that -exports_file does not work either and
15711	# implicitly export all symbols.
15712	# This should be the same for all languages, so no per-tag cache variable.
15713	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15714$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15715if ${lt_cv_irix_exported_symbol+:} false; then :
15716  $as_echo_n "(cached) " >&6
15717else
15718  save_LDFLAGS="$LDFLAGS"
15719	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15720	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15721/* end confdefs.h.  */
15722int foo (void) { return 0; }
15723_ACEOF
15724if ac_fn_c_try_link "$LINENO"; then :
15725  lt_cv_irix_exported_symbol=yes
15726else
15727  lt_cv_irix_exported_symbol=no
15728fi
15729rm -f core conftest.err conftest.$ac_objext \
15730    conftest$ac_exeext conftest.$ac_ext
15731           LDFLAGS="$save_LDFLAGS"
15732fi
15733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15734$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15735	if test "$lt_cv_irix_exported_symbol" = yes; then
15736          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'
15737	fi
15738      else
15739	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'
15740	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'
15741      fi
15742      archive_cmds_need_lc='no'
15743      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15744      hardcode_libdir_separator=:
15745      inherit_rpath=yes
15746      link_all_deplibs=yes
15747      ;;
15748
15749    netbsd*)
15750      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15751	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15752      else
15753	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15754      fi
15755      hardcode_libdir_flag_spec='-R$libdir'
15756      hardcode_direct=yes
15757      hardcode_shlibpath_var=no
15758      ;;
15759
15760    newsos6)
15761      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15762      hardcode_direct=yes
15763      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15764      hardcode_libdir_separator=:
15765      hardcode_shlibpath_var=no
15766      ;;
15767
15768    *nto* | *qnx*)
15769      ;;
15770
15771    openbsd*)
15772      if test -f /usr/libexec/ld.so; then
15773	hardcode_direct=yes
15774	hardcode_shlibpath_var=no
15775	hardcode_direct_absolute=yes
15776	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15777	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15778	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15779	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15780	  export_dynamic_flag_spec='${wl}-E'
15781	else
15782	  case $host_os in
15783	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15784	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15785	     hardcode_libdir_flag_spec='-R$libdir'
15786	     ;;
15787	   *)
15788	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15789	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15790	     ;;
15791	  esac
15792	fi
15793      else
15794	ld_shlibs=no
15795      fi
15796      ;;
15797
15798    os2*)
15799      hardcode_libdir_flag_spec='-L$libdir'
15800      hardcode_minus_L=yes
15801      allow_undefined_flag=unsupported
15802      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'
15803      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15804      ;;
15805
15806    osf3*)
15807      if test "$GCC" = yes; then
15808	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15809	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'
15810      else
15811	allow_undefined_flag=' -expect_unresolved \*'
15812	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'
15813      fi
15814      archive_cmds_need_lc='no'
15815      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15816      hardcode_libdir_separator=:
15817      ;;
15818
15819    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15820      if test "$GCC" = yes; then
15821	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15822	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'
15823	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15824      else
15825	allow_undefined_flag=' -expect_unresolved \*'
15826	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'
15827	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~
15828	$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'
15829
15830	# Both c and cxx compiler support -rpath directly
15831	hardcode_libdir_flag_spec='-rpath $libdir'
15832      fi
15833      archive_cmds_need_lc='no'
15834      hardcode_libdir_separator=:
15835      ;;
15836
15837    solaris*)
15838      no_undefined_flag=' -z defs'
15839      if test "$GCC" = yes; then
15840	wlarc='${wl}'
15841	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15842	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15843	  $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'
15844      else
15845	case `$CC -V 2>&1` in
15846	*"Compilers 5.0"*)
15847	  wlarc=''
15848	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15849	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15850	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15851	  ;;
15852	*)
15853	  wlarc='${wl}'
15854	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15855	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15856	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15857	  ;;
15858	esac
15859      fi
15860      hardcode_libdir_flag_spec='-R$libdir'
15861      hardcode_shlibpath_var=no
15862      case $host_os in
15863      solaris2.[0-5] | solaris2.[0-5].*) ;;
15864      *)
15865	# The compiler driver will combine and reorder linker options,
15866	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15867	# but is careful enough not to reorder.
15868	# Supported since Solaris 2.6 (maybe 2.5.1?)
15869	if test "$GCC" = yes; then
15870	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15871	else
15872	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15873	fi
15874	;;
15875      esac
15876      link_all_deplibs=yes
15877      ;;
15878
15879    sunos4*)
15880      if test "x$host_vendor" = xsequent; then
15881	# Use $CC to link under sequent, because it throws in some extra .o
15882	# files that make .init and .fini sections work.
15883	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15884      else
15885	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15886      fi
15887      hardcode_libdir_flag_spec='-L$libdir'
15888      hardcode_direct=yes
15889      hardcode_minus_L=yes
15890      hardcode_shlibpath_var=no
15891      ;;
15892
15893    sysv4)
15894      case $host_vendor in
15895	sni)
15896	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15897	  hardcode_direct=yes # is this really true???
15898	;;
15899	siemens)
15900	  ## LD is ld it makes a PLAMLIB
15901	  ## CC just makes a GrossModule.
15902	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15903	  reload_cmds='$CC -r -o $output$reload_objs'
15904	  hardcode_direct=no
15905        ;;
15906	motorola)
15907	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15908	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15909	;;
15910      esac
15911      runpath_var='LD_RUN_PATH'
15912      hardcode_shlibpath_var=no
15913      ;;
15914
15915    sysv4.3*)
15916      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15917      hardcode_shlibpath_var=no
15918      export_dynamic_flag_spec='-Bexport'
15919      ;;
15920
15921    sysv4*MP*)
15922      if test -d /usr/nec; then
15923	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15924	hardcode_shlibpath_var=no
15925	runpath_var=LD_RUN_PATH
15926	hardcode_runpath_var=yes
15927	ld_shlibs=yes
15928      fi
15929      ;;
15930
15931    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15932      no_undefined_flag='${wl}-z,text'
15933      archive_cmds_need_lc=no
15934      hardcode_shlibpath_var=no
15935      runpath_var='LD_RUN_PATH'
15936
15937      if test "$GCC" = yes; then
15938	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15939	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15940      else
15941	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15942	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15943      fi
15944      ;;
15945
15946    sysv5* | sco3.2v5* | sco5v6*)
15947      # Note: We can NOT use -z defs as we might desire, because we do not
15948      # link with -lc, and that would cause any symbols used from libc to
15949      # always be unresolved, which means just about no library would
15950      # ever link correctly.  If we're not using GNU ld we use -z text
15951      # though, which does catch some bad symbols but isn't as heavy-handed
15952      # as -z defs.
15953      no_undefined_flag='${wl}-z,text'
15954      allow_undefined_flag='${wl}-z,nodefs'
15955      archive_cmds_need_lc=no
15956      hardcode_shlibpath_var=no
15957      hardcode_libdir_flag_spec='${wl}-R,$libdir'
15958      hardcode_libdir_separator=':'
15959      link_all_deplibs=yes
15960      export_dynamic_flag_spec='${wl}-Bexport'
15961      runpath_var='LD_RUN_PATH'
15962
15963      if test "$GCC" = yes; then
15964	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15965	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15966      else
15967	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15968	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15969      fi
15970      ;;
15971
15972    uts4*)
15973      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15974      hardcode_libdir_flag_spec='-L$libdir'
15975      hardcode_shlibpath_var=no
15976      ;;
15977
15978    *)
15979      ld_shlibs=no
15980      ;;
15981    esac
15982
15983    if test x$host_vendor = xsni; then
15984      case $host in
15985      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15986	export_dynamic_flag_spec='${wl}-Blargedynsym'
15987	;;
15988      esac
15989    fi
15990  fi
15991
15992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15993$as_echo "$ld_shlibs" >&6; }
15994test "$ld_shlibs" = no && can_build_shared=no
15995
15996with_gnu_ld=$with_gnu_ld
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012#
16013# Do we need to explicitly link libc?
16014#
16015case "x$archive_cmds_need_lc" in
16016x|xyes)
16017  # Assume -lc should be added
16018  archive_cmds_need_lc=yes
16019
16020  if test "$enable_shared" = yes && test "$GCC" = yes; then
16021    case $archive_cmds in
16022    *'~'*)
16023      # FIXME: we may have to deal with multi-command sequences.
16024      ;;
16025    '$CC '*)
16026      # Test whether the compiler implicitly links with -lc since on some
16027      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16028      # to ld, don't add -lc before -lgcc.
16029      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16030$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16031if ${lt_cv_archive_cmds_need_lc+:} false; then :
16032  $as_echo_n "(cached) " >&6
16033else
16034  $RM conftest*
16035	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16036
16037	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16038  (eval $ac_compile) 2>&5
16039  ac_status=$?
16040  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16041  test $ac_status = 0; } 2>conftest.err; then
16042	  soname=conftest
16043	  lib=conftest
16044	  libobjs=conftest.$ac_objext
16045	  deplibs=
16046	  wl=$lt_prog_compiler_wl
16047	  pic_flag=$lt_prog_compiler_pic
16048	  compiler_flags=-v
16049	  linker_flags=-v
16050	  verstring=
16051	  output_objdir=.
16052	  libname=conftest
16053	  lt_save_allow_undefined_flag=$allow_undefined_flag
16054	  allow_undefined_flag=
16055	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16056  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16057  ac_status=$?
16058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16059  test $ac_status = 0; }
16060	  then
16061	    lt_cv_archive_cmds_need_lc=no
16062	  else
16063	    lt_cv_archive_cmds_need_lc=yes
16064	  fi
16065	  allow_undefined_flag=$lt_save_allow_undefined_flag
16066	else
16067	  cat conftest.err 1>&5
16068	fi
16069	$RM conftest*
16070
16071fi
16072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16073$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16074      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16075      ;;
16076    esac
16077  fi
16078  ;;
16079esac
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16233$as_echo_n "checking dynamic linker characteristics... " >&6; }
16234
16235if test "$GCC" = yes; then
16236  case $host_os in
16237    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16238    *) lt_awk_arg="/^libraries:/" ;;
16239  esac
16240  case $host_os in
16241    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16242    *) lt_sed_strip_eq="s,=/,/,g" ;;
16243  esac
16244  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16245  case $lt_search_path_spec in
16246  *\;*)
16247    # if the path contains ";" then we assume it to be the separator
16248    # otherwise default to the standard path separator (i.e. ":") - it is
16249    # assumed that no part of a normal pathname contains ";" but that should
16250    # okay in the real world where ";" in dirpaths is itself problematic.
16251    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16252    ;;
16253  *)
16254    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16255    ;;
16256  esac
16257  # Ok, now we have the path, separated by spaces, we can step through it
16258  # and add multilib dir if necessary.
16259  lt_tmp_lt_search_path_spec=
16260  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16261  for lt_sys_path in $lt_search_path_spec; do
16262    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16263      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16264    else
16265      test -d "$lt_sys_path" && \
16266	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16267    fi
16268  done
16269  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16270BEGIN {RS=" "; FS="/|\n";} {
16271  lt_foo="";
16272  lt_count=0;
16273  for (lt_i = NF; lt_i > 0; lt_i--) {
16274    if ($lt_i != "" && $lt_i != ".") {
16275      if ($lt_i == "..") {
16276        lt_count++;
16277      } else {
16278        if (lt_count == 0) {
16279          lt_foo="/" $lt_i lt_foo;
16280        } else {
16281          lt_count--;
16282        }
16283      }
16284    }
16285  }
16286  if (lt_foo != "") { lt_freq[lt_foo]++; }
16287  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16288}'`
16289  # AWK program above erroneously prepends '/' to C:/dos/paths
16290  # for these hosts.
16291  case $host_os in
16292    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16293      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16294  esac
16295  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16296else
16297  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16298fi
16299library_names_spec=
16300libname_spec='lib$name'
16301soname_spec=
16302shrext_cmds=".so"
16303postinstall_cmds=
16304postuninstall_cmds=
16305finish_cmds=
16306finish_eval=
16307shlibpath_var=
16308shlibpath_overrides_runpath=unknown
16309version_type=none
16310dynamic_linker="$host_os ld.so"
16311sys_lib_dlsearch_path_spec="/lib /usr/lib"
16312need_lib_prefix=unknown
16313hardcode_into_libs=no
16314
16315# when you set need_version to no, make sure it does not cause -set_version
16316# flags to be left without arguments
16317need_version=unknown
16318
16319case $host_os in
16320aix3*)
16321  version_type=linux # correct to gnu/linux during the next big refactor
16322  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16323  shlibpath_var=LIBPATH
16324
16325  # AIX 3 has no versioning support, so we append a major version to the name.
16326  soname_spec='${libname}${release}${shared_ext}$major'
16327  ;;
16328
16329aix[4-9]*)
16330  version_type=linux # correct to gnu/linux during the next big refactor
16331  need_lib_prefix=no
16332  need_version=no
16333  hardcode_into_libs=yes
16334  if test "$host_cpu" = ia64; then
16335    # AIX 5 supports IA64
16336    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16337    shlibpath_var=LD_LIBRARY_PATH
16338  else
16339    # With GCC up to 2.95.x, collect2 would create an import file
16340    # for dependence libraries.  The import file would start with
16341    # the line `#! .'.  This would cause the generated library to
16342    # depend on `.', always an invalid library.  This was fixed in
16343    # development snapshots of GCC prior to 3.0.
16344    case $host_os in
16345      aix4 | aix4.[01] | aix4.[01].*)
16346      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16347	   echo ' yes '
16348	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16349	:
16350      else
16351	can_build_shared=no
16352      fi
16353      ;;
16354    esac
16355    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16356    # soname into executable. Probably we can add versioning support to
16357    # collect2, so additional links can be useful in future.
16358    if test "$aix_use_runtimelinking" = yes; then
16359      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16360      # instead of lib<name>.a to let people know that these are not
16361      # typical AIX shared libraries.
16362      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16363    else
16364      # We preserve .a as extension for shared libraries through AIX4.2
16365      # and later when we are not doing run time linking.
16366      library_names_spec='${libname}${release}.a $libname.a'
16367      soname_spec='${libname}${release}${shared_ext}$major'
16368    fi
16369    shlibpath_var=LIBPATH
16370  fi
16371  ;;
16372
16373amigaos*)
16374  case $host_cpu in
16375  powerpc)
16376    # Since July 2007 AmigaOS4 officially supports .so libraries.
16377    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16378    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16379    ;;
16380  m68k)
16381    library_names_spec='$libname.ixlibrary $libname.a'
16382    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16383    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'
16384    ;;
16385  esac
16386  ;;
16387
16388beos*)
16389  library_names_spec='${libname}${shared_ext}'
16390  dynamic_linker="$host_os ld.so"
16391  shlibpath_var=LIBRARY_PATH
16392  ;;
16393
16394bsdi[45]*)
16395  version_type=linux # correct to gnu/linux during the next big refactor
16396  need_version=no
16397  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16398  soname_spec='${libname}${release}${shared_ext}$major'
16399  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16400  shlibpath_var=LD_LIBRARY_PATH
16401  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16402  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16403  # the default ld.so.conf also contains /usr/contrib/lib and
16404  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16405  # libtool to hard-code these into programs
16406  ;;
16407
16408cygwin* | mingw* | pw32* | cegcc*)
16409  version_type=windows
16410  shrext_cmds=".dll"
16411  need_version=no
16412  need_lib_prefix=no
16413
16414  case $GCC,$cc_basename in
16415  yes,*)
16416    # gcc
16417    library_names_spec='$libname.dll.a'
16418    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16419    postinstall_cmds='base_file=`basename \${file}`~
16420      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16421      dldir=$destdir/`dirname \$dlpath`~
16422      test -d \$dldir || mkdir -p \$dldir~
16423      $install_prog $dir/$dlname \$dldir/$dlname~
16424      chmod a+x \$dldir/$dlname~
16425      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16426        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16427      fi'
16428    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16429      dlpath=$dir/\$dldll~
16430       $RM \$dlpath'
16431    shlibpath_overrides_runpath=yes
16432
16433    case $host_os in
16434    cygwin*)
16435      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16436      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16437
16438      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16439      ;;
16440    mingw* | cegcc*)
16441      # MinGW DLLs use traditional 'lib' prefix
16442      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16443      ;;
16444    pw32*)
16445      # pw32 DLLs use 'pw' prefix rather than 'lib'
16446      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16447      ;;
16448    esac
16449    dynamic_linker='Win32 ld.exe'
16450    ;;
16451
16452  *,cl*)
16453    # Native MSVC
16454    libname_spec='$name'
16455    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16456    library_names_spec='${libname}.dll.lib'
16457
16458    case $build_os in
16459    mingw*)
16460      sys_lib_search_path_spec=
16461      lt_save_ifs=$IFS
16462      IFS=';'
16463      for lt_path in $LIB
16464      do
16465        IFS=$lt_save_ifs
16466        # Let DOS variable expansion print the short 8.3 style file name.
16467        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16468        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16469      done
16470      IFS=$lt_save_ifs
16471      # Convert to MSYS style.
16472      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16473      ;;
16474    cygwin*)
16475      # Convert to unix form, then to dos form, then back to unix form
16476      # but this time dos style (no spaces!) so that the unix form looks
16477      # like /cygdrive/c/PROGRA~1:/cygdr...
16478      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16479      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16480      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16481      ;;
16482    *)
16483      sys_lib_search_path_spec="$LIB"
16484      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16485        # It is most probably a Windows format PATH.
16486        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16487      else
16488        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16489      fi
16490      # FIXME: find the short name or the path components, as spaces are
16491      # common. (e.g. "Program Files" -> "PROGRA~1")
16492      ;;
16493    esac
16494
16495    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16496    postinstall_cmds='base_file=`basename \${file}`~
16497      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16498      dldir=$destdir/`dirname \$dlpath`~
16499      test -d \$dldir || mkdir -p \$dldir~
16500      $install_prog $dir/$dlname \$dldir/$dlname'
16501    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16502      dlpath=$dir/\$dldll~
16503       $RM \$dlpath'
16504    shlibpath_overrides_runpath=yes
16505    dynamic_linker='Win32 link.exe'
16506    ;;
16507
16508  *)
16509    # Assume MSVC wrapper
16510    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16511    dynamic_linker='Win32 ld.exe'
16512    ;;
16513  esac
16514  # FIXME: first we should search . and the directory the executable is in
16515  shlibpath_var=PATH
16516  ;;
16517
16518darwin* | rhapsody*)
16519  dynamic_linker="$host_os dyld"
16520  version_type=darwin
16521  need_lib_prefix=no
16522  need_version=no
16523  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16524  soname_spec='${libname}${release}${major}$shared_ext'
16525  shlibpath_overrides_runpath=yes
16526  shlibpath_var=DYLD_LIBRARY_PATH
16527  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16528
16529  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16530  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16531  ;;
16532
16533dgux*)
16534  version_type=linux # correct to gnu/linux during the next big refactor
16535  need_lib_prefix=no
16536  need_version=no
16537  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16538  soname_spec='${libname}${release}${shared_ext}$major'
16539  shlibpath_var=LD_LIBRARY_PATH
16540  ;;
16541
16542freebsd* | dragonfly*)
16543  # DragonFly does not have aout.  When/if they implement a new
16544  # versioning mechanism, adjust this.
16545  if test -x /usr/bin/objformat; then
16546    objformat=`/usr/bin/objformat`
16547  else
16548    case $host_os in
16549    freebsd[23].*) objformat=aout ;;
16550    *) objformat=elf ;;
16551    esac
16552  fi
16553  version_type=freebsd-$objformat
16554  case $version_type in
16555    freebsd-elf*)
16556      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16557      need_version=no
16558      need_lib_prefix=no
16559      ;;
16560    freebsd-*)
16561      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16562      need_version=yes
16563      ;;
16564  esac
16565  shlibpath_var=LD_LIBRARY_PATH
16566  case $host_os in
16567  freebsd2.*)
16568    shlibpath_overrides_runpath=yes
16569    ;;
16570  freebsd3.[01]* | freebsdelf3.[01]*)
16571    shlibpath_overrides_runpath=yes
16572    hardcode_into_libs=yes
16573    ;;
16574  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16575  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16576    shlibpath_overrides_runpath=no
16577    hardcode_into_libs=yes
16578    ;;
16579  *) # from 4.6 on, and DragonFly
16580    shlibpath_overrides_runpath=yes
16581    hardcode_into_libs=yes
16582    ;;
16583  esac
16584  ;;
16585
16586gnu*)
16587  version_type=linux # correct to gnu/linux during the next big refactor
16588  need_lib_prefix=no
16589  need_version=no
16590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16591  soname_spec='${libname}${release}${shared_ext}$major'
16592  shlibpath_var=LD_LIBRARY_PATH
16593  shlibpath_overrides_runpath=no
16594  hardcode_into_libs=yes
16595  ;;
16596
16597haiku*)
16598  version_type=linux # correct to gnu/linux during the next big refactor
16599  need_lib_prefix=no
16600  need_version=no
16601  dynamic_linker="$host_os runtime_loader"
16602  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16603  soname_spec='${libname}${release}${shared_ext}$major'
16604  shlibpath_var=LIBRARY_PATH
16605  shlibpath_overrides_runpath=yes
16606  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16607  hardcode_into_libs=yes
16608  ;;
16609
16610hpux9* | hpux10* | hpux11*)
16611  # Give a soname corresponding to the major version so that dld.sl refuses to
16612  # link against other versions.
16613  version_type=sunos
16614  need_lib_prefix=no
16615  need_version=no
16616  case $host_cpu in
16617  ia64*)
16618    shrext_cmds='.so'
16619    hardcode_into_libs=yes
16620    dynamic_linker="$host_os dld.so"
16621    shlibpath_var=LD_LIBRARY_PATH
16622    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16623    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16624    soname_spec='${libname}${release}${shared_ext}$major'
16625    if test "X$HPUX_IA64_MODE" = X32; then
16626      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16627    else
16628      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16629    fi
16630    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16631    ;;
16632  hppa*64*)
16633    shrext_cmds='.sl'
16634    hardcode_into_libs=yes
16635    dynamic_linker="$host_os dld.sl"
16636    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16637    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16638    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16639    soname_spec='${libname}${release}${shared_ext}$major'
16640    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16641    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16642    ;;
16643  *)
16644    shrext_cmds='.sl'
16645    dynamic_linker="$host_os dld.sl"
16646    shlibpath_var=SHLIB_PATH
16647    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16648    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16649    soname_spec='${libname}${release}${shared_ext}$major'
16650    ;;
16651  esac
16652  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16653  postinstall_cmds='chmod 555 $lib'
16654  # or fails outright, so override atomically:
16655  install_override_mode=555
16656  ;;
16657
16658interix[3-9]*)
16659  version_type=linux # correct to gnu/linux during the next big refactor
16660  need_lib_prefix=no
16661  need_version=no
16662  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16663  soname_spec='${libname}${release}${shared_ext}$major'
16664  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16665  shlibpath_var=LD_LIBRARY_PATH
16666  shlibpath_overrides_runpath=no
16667  hardcode_into_libs=yes
16668  ;;
16669
16670irix5* | irix6* | nonstopux*)
16671  case $host_os in
16672    nonstopux*) version_type=nonstopux ;;
16673    *)
16674	if test "$lt_cv_prog_gnu_ld" = yes; then
16675		version_type=linux # correct to gnu/linux during the next big refactor
16676	else
16677		version_type=irix
16678	fi ;;
16679  esac
16680  need_lib_prefix=no
16681  need_version=no
16682  soname_spec='${libname}${release}${shared_ext}$major'
16683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16684  case $host_os in
16685  irix5* | nonstopux*)
16686    libsuff= shlibsuff=
16687    ;;
16688  *)
16689    case $LD in # libtool.m4 will add one of these switches to LD
16690    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16691      libsuff= shlibsuff= libmagic=32-bit;;
16692    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16693      libsuff=32 shlibsuff=N32 libmagic=N32;;
16694    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16695      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16696    *) libsuff= shlibsuff= libmagic=never-match;;
16697    esac
16698    ;;
16699  esac
16700  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16701  shlibpath_overrides_runpath=no
16702  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16703  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16704  hardcode_into_libs=yes
16705  ;;
16706
16707# No shared lib support for Linux oldld, aout, or coff.
16708linux*oldld* | linux*aout* | linux*coff*)
16709  dynamic_linker=no
16710  ;;
16711
16712# This must be glibc/ELF.
16713linux* | k*bsd*-gnu | kopensolaris*-gnu)
16714  version_type=linux # correct to gnu/linux during the next big refactor
16715  need_lib_prefix=no
16716  need_version=no
16717  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16718  soname_spec='${libname}${release}${shared_ext}$major'
16719  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16720  shlibpath_var=LD_LIBRARY_PATH
16721  shlibpath_overrides_runpath=no
16722
16723  # Some binutils ld are patched to set DT_RUNPATH
16724  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16725  $as_echo_n "(cached) " >&6
16726else
16727  lt_cv_shlibpath_overrides_runpath=no
16728    save_LDFLAGS=$LDFLAGS
16729    save_libdir=$libdir
16730    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16731	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16732    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16733/* end confdefs.h.  */
16734
16735int
16736main ()
16737{
16738
16739  ;
16740  return 0;
16741}
16742_ACEOF
16743if ac_fn_c_try_link "$LINENO"; then :
16744  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16745  lt_cv_shlibpath_overrides_runpath=yes
16746fi
16747fi
16748rm -f core conftest.err conftest.$ac_objext \
16749    conftest$ac_exeext conftest.$ac_ext
16750    LDFLAGS=$save_LDFLAGS
16751    libdir=$save_libdir
16752
16753fi
16754
16755  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16756
16757  # This implies no fast_install, which is unacceptable.
16758  # Some rework will be needed to allow for fast_install
16759  # before this can be enabled.
16760  hardcode_into_libs=yes
16761
16762  # Add ABI-specific directories to the system library path.
16763  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16764
16765  # Append ld.so.conf contents to the search path
16766  if test -f /etc/ld.so.conf; then
16767    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' ' '`
16768    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16769
16770  fi
16771
16772  # We used to test for /lib/ld.so.1 and disable shared libraries on
16773  # powerpc, because MkLinux only supported shared libraries with the
16774  # GNU dynamic linker.  Since this was broken with cross compilers,
16775  # most powerpc-linux boxes support dynamic linking these days and
16776  # people can always --disable-shared, the test was removed, and we
16777  # assume the GNU/Linux dynamic linker is in use.
16778  dynamic_linker='GNU/Linux ld.so'
16779  ;;
16780
16781netbsd*)
16782  version_type=sunos
16783  need_lib_prefix=no
16784  need_version=no
16785  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16786    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16787    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16788    dynamic_linker='NetBSD (a.out) ld.so'
16789  else
16790    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16791    soname_spec='${libname}${release}${shared_ext}$major'
16792    dynamic_linker='NetBSD ld.elf_so'
16793  fi
16794  shlibpath_var=LD_LIBRARY_PATH
16795  shlibpath_overrides_runpath=yes
16796  hardcode_into_libs=yes
16797  ;;
16798
16799newsos6)
16800  version_type=linux # correct to gnu/linux during the next big refactor
16801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16802  shlibpath_var=LD_LIBRARY_PATH
16803  shlibpath_overrides_runpath=yes
16804  ;;
16805
16806*nto* | *qnx*)
16807  version_type=qnx
16808  need_lib_prefix=no
16809  need_version=no
16810  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16811  soname_spec='${libname}${release}${shared_ext}$major'
16812  shlibpath_var=LD_LIBRARY_PATH
16813  shlibpath_overrides_runpath=no
16814  hardcode_into_libs=yes
16815  dynamic_linker='ldqnx.so'
16816  ;;
16817
16818openbsd*)
16819  version_type=sunos
16820  sys_lib_dlsearch_path_spec="/usr/lib"
16821  need_lib_prefix=no
16822  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16823  case $host_os in
16824    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16825    *)				need_version=no  ;;
16826  esac
16827  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16828  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16829  shlibpath_var=LD_LIBRARY_PATH
16830  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16831    case $host_os in
16832      openbsd2.[89] | openbsd2.[89].*)
16833	shlibpath_overrides_runpath=no
16834	;;
16835      *)
16836	shlibpath_overrides_runpath=yes
16837	;;
16838      esac
16839  else
16840    shlibpath_overrides_runpath=yes
16841  fi
16842  ;;
16843
16844os2*)
16845  libname_spec='$name'
16846  shrext_cmds=".dll"
16847  need_lib_prefix=no
16848  library_names_spec='$libname${shared_ext} $libname.a'
16849  dynamic_linker='OS/2 ld.exe'
16850  shlibpath_var=LIBPATH
16851  ;;
16852
16853osf3* | osf4* | osf5*)
16854  version_type=osf
16855  need_lib_prefix=no
16856  need_version=no
16857  soname_spec='${libname}${release}${shared_ext}$major'
16858  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16859  shlibpath_var=LD_LIBRARY_PATH
16860  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16861  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16862  ;;
16863
16864rdos*)
16865  dynamic_linker=no
16866  ;;
16867
16868solaris*)
16869  version_type=linux # correct to gnu/linux during the next big refactor
16870  need_lib_prefix=no
16871  need_version=no
16872  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16873  soname_spec='${libname}${release}${shared_ext}$major'
16874  shlibpath_var=LD_LIBRARY_PATH
16875  shlibpath_overrides_runpath=yes
16876  hardcode_into_libs=yes
16877  # ldd complains unless libraries are executable
16878  postinstall_cmds='chmod +x $lib'
16879  ;;
16880
16881sunos4*)
16882  version_type=sunos
16883  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16884  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16885  shlibpath_var=LD_LIBRARY_PATH
16886  shlibpath_overrides_runpath=yes
16887  if test "$with_gnu_ld" = yes; then
16888    need_lib_prefix=no
16889  fi
16890  need_version=yes
16891  ;;
16892
16893sysv4 | sysv4.3*)
16894  version_type=linux # correct to gnu/linux during the next big refactor
16895  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16896  soname_spec='${libname}${release}${shared_ext}$major'
16897  shlibpath_var=LD_LIBRARY_PATH
16898  case $host_vendor in
16899    sni)
16900      shlibpath_overrides_runpath=no
16901      need_lib_prefix=no
16902      runpath_var=LD_RUN_PATH
16903      ;;
16904    siemens)
16905      need_lib_prefix=no
16906      ;;
16907    motorola)
16908      need_lib_prefix=no
16909      need_version=no
16910      shlibpath_overrides_runpath=no
16911      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16912      ;;
16913  esac
16914  ;;
16915
16916sysv4*MP*)
16917  if test -d /usr/nec ;then
16918    version_type=linux # correct to gnu/linux during the next big refactor
16919    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16920    soname_spec='$libname${shared_ext}.$major'
16921    shlibpath_var=LD_LIBRARY_PATH
16922  fi
16923  ;;
16924
16925sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16926  version_type=freebsd-elf
16927  need_lib_prefix=no
16928  need_version=no
16929  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16930  soname_spec='${libname}${release}${shared_ext}$major'
16931  shlibpath_var=LD_LIBRARY_PATH
16932  shlibpath_overrides_runpath=yes
16933  hardcode_into_libs=yes
16934  if test "$with_gnu_ld" = yes; then
16935    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16936  else
16937    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16938    case $host_os in
16939      sco3.2v5*)
16940        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16941	;;
16942    esac
16943  fi
16944  sys_lib_dlsearch_path_spec='/usr/lib'
16945  ;;
16946
16947tpf*)
16948  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16949  version_type=linux # correct to gnu/linux during the next big refactor
16950  need_lib_prefix=no
16951  need_version=no
16952  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16953  shlibpath_var=LD_LIBRARY_PATH
16954  shlibpath_overrides_runpath=no
16955  hardcode_into_libs=yes
16956  ;;
16957
16958uts4*)
16959  version_type=linux # correct to gnu/linux during the next big refactor
16960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16961  soname_spec='${libname}${release}${shared_ext}$major'
16962  shlibpath_var=LD_LIBRARY_PATH
16963  ;;
16964
16965*)
16966  dynamic_linker=no
16967  ;;
16968esac
16969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16970$as_echo "$dynamic_linker" >&6; }
16971test "$dynamic_linker" = no && can_build_shared=no
16972
16973variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16974if test "$GCC" = yes; then
16975  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16976fi
16977
16978if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16979  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16980fi
16981if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16982  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16983fi
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17077$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17078hardcode_action=
17079if test -n "$hardcode_libdir_flag_spec" ||
17080   test -n "$runpath_var" ||
17081   test "X$hardcode_automatic" = "Xyes" ; then
17082
17083  # We can hardcode non-existent directories.
17084  if test "$hardcode_direct" != no &&
17085     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17086     # have to relink, otherwise we might link with an installed library
17087     # when we should be linking with a yet-to-be-installed one
17088     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17089     test "$hardcode_minus_L" != no; then
17090    # Linking always hardcodes the temporary library directory.
17091    hardcode_action=relink
17092  else
17093    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17094    hardcode_action=immediate
17095  fi
17096else
17097  # We cannot hardcode anything, or else we can only hardcode existing
17098  # directories.
17099  hardcode_action=unsupported
17100fi
17101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17102$as_echo "$hardcode_action" >&6; }
17103
17104if test "$hardcode_action" = relink ||
17105   test "$inherit_rpath" = yes; then
17106  # Fast installation is not supported
17107  enable_fast_install=no
17108elif test "$shlibpath_overrides_runpath" = yes ||
17109     test "$enable_shared" = no; then
17110  # Fast installation is not necessary
17111  enable_fast_install=needless
17112fi
17113
17114
17115
17116
17117
17118
17119  if test "x$enable_dlopen" != xyes; then
17120  enable_dlopen=unknown
17121  enable_dlopen_self=unknown
17122  enable_dlopen_self_static=unknown
17123else
17124  lt_cv_dlopen=no
17125  lt_cv_dlopen_libs=
17126
17127  case $host_os in
17128  beos*)
17129    lt_cv_dlopen="load_add_on"
17130    lt_cv_dlopen_libs=
17131    lt_cv_dlopen_self=yes
17132    ;;
17133
17134  mingw* | pw32* | cegcc*)
17135    lt_cv_dlopen="LoadLibrary"
17136    lt_cv_dlopen_libs=
17137    ;;
17138
17139  cygwin*)
17140    lt_cv_dlopen="dlopen"
17141    lt_cv_dlopen_libs=
17142    ;;
17143
17144  darwin*)
17145  # if libdl is installed we need to link against it
17146    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17147$as_echo_n "checking for dlopen in -ldl... " >&6; }
17148if ${ac_cv_lib_dl_dlopen+:} false; then :
17149  $as_echo_n "(cached) " >&6
17150else
17151  ac_check_lib_save_LIBS=$LIBS
17152LIBS="-ldl  $LIBS"
17153cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17154/* end confdefs.h.  */
17155
17156/* Override any GCC internal prototype to avoid an error.
17157   Use char because int might match the return type of a GCC
17158   builtin and then its argument prototype would still apply.  */
17159#ifdef __cplusplus
17160extern "C"
17161#endif
17162char dlopen ();
17163int
17164main ()
17165{
17166return dlopen ();
17167  ;
17168  return 0;
17169}
17170_ACEOF
17171if ac_fn_c_try_link "$LINENO"; then :
17172  ac_cv_lib_dl_dlopen=yes
17173else
17174  ac_cv_lib_dl_dlopen=no
17175fi
17176rm -f core conftest.err conftest.$ac_objext \
17177    conftest$ac_exeext conftest.$ac_ext
17178LIBS=$ac_check_lib_save_LIBS
17179fi
17180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17181$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17182if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17183  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17184else
17185
17186    lt_cv_dlopen="dyld"
17187    lt_cv_dlopen_libs=
17188    lt_cv_dlopen_self=yes
17189
17190fi
17191
17192    ;;
17193
17194  *)
17195    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17196if test "x$ac_cv_func_shl_load" = xyes; then :
17197  lt_cv_dlopen="shl_load"
17198else
17199  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17200$as_echo_n "checking for shl_load in -ldld... " >&6; }
17201if ${ac_cv_lib_dld_shl_load+:} false; then :
17202  $as_echo_n "(cached) " >&6
17203else
17204  ac_check_lib_save_LIBS=$LIBS
17205LIBS="-ldld  $LIBS"
17206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17207/* end confdefs.h.  */
17208
17209/* Override any GCC internal prototype to avoid an error.
17210   Use char because int might match the return type of a GCC
17211   builtin and then its argument prototype would still apply.  */
17212#ifdef __cplusplus
17213extern "C"
17214#endif
17215char shl_load ();
17216int
17217main ()
17218{
17219return shl_load ();
17220  ;
17221  return 0;
17222}
17223_ACEOF
17224if ac_fn_c_try_link "$LINENO"; then :
17225  ac_cv_lib_dld_shl_load=yes
17226else
17227  ac_cv_lib_dld_shl_load=no
17228fi
17229rm -f core conftest.err conftest.$ac_objext \
17230    conftest$ac_exeext conftest.$ac_ext
17231LIBS=$ac_check_lib_save_LIBS
17232fi
17233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17234$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17235if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17236  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17237else
17238  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17239if test "x$ac_cv_func_dlopen" = xyes; then :
17240  lt_cv_dlopen="dlopen"
17241else
17242  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17243$as_echo_n "checking for dlopen in -ldl... " >&6; }
17244if ${ac_cv_lib_dl_dlopen+:} false; then :
17245  $as_echo_n "(cached) " >&6
17246else
17247  ac_check_lib_save_LIBS=$LIBS
17248LIBS="-ldl  $LIBS"
17249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17250/* end confdefs.h.  */
17251
17252/* Override any GCC internal prototype to avoid an error.
17253   Use char because int might match the return type of a GCC
17254   builtin and then its argument prototype would still apply.  */
17255#ifdef __cplusplus
17256extern "C"
17257#endif
17258char dlopen ();
17259int
17260main ()
17261{
17262return dlopen ();
17263  ;
17264  return 0;
17265}
17266_ACEOF
17267if ac_fn_c_try_link "$LINENO"; then :
17268  ac_cv_lib_dl_dlopen=yes
17269else
17270  ac_cv_lib_dl_dlopen=no
17271fi
17272rm -f core conftest.err conftest.$ac_objext \
17273    conftest$ac_exeext conftest.$ac_ext
17274LIBS=$ac_check_lib_save_LIBS
17275fi
17276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17277$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17278if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17279  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17280else
17281  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17282$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17283if ${ac_cv_lib_svld_dlopen+:} false; then :
17284  $as_echo_n "(cached) " >&6
17285else
17286  ac_check_lib_save_LIBS=$LIBS
17287LIBS="-lsvld  $LIBS"
17288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17289/* end confdefs.h.  */
17290
17291/* Override any GCC internal prototype to avoid an error.
17292   Use char because int might match the return type of a GCC
17293   builtin and then its argument prototype would still apply.  */
17294#ifdef __cplusplus
17295extern "C"
17296#endif
17297char dlopen ();
17298int
17299main ()
17300{
17301return dlopen ();
17302  ;
17303  return 0;
17304}
17305_ACEOF
17306if ac_fn_c_try_link "$LINENO"; then :
17307  ac_cv_lib_svld_dlopen=yes
17308else
17309  ac_cv_lib_svld_dlopen=no
17310fi
17311rm -f core conftest.err conftest.$ac_objext \
17312    conftest$ac_exeext conftest.$ac_ext
17313LIBS=$ac_check_lib_save_LIBS
17314fi
17315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17316$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17317if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17318  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17319else
17320  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17321$as_echo_n "checking for dld_link in -ldld... " >&6; }
17322if ${ac_cv_lib_dld_dld_link+:} false; then :
17323  $as_echo_n "(cached) " >&6
17324else
17325  ac_check_lib_save_LIBS=$LIBS
17326LIBS="-ldld  $LIBS"
17327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17328/* end confdefs.h.  */
17329
17330/* Override any GCC internal prototype to avoid an error.
17331   Use char because int might match the return type of a GCC
17332   builtin and then its argument prototype would still apply.  */
17333#ifdef __cplusplus
17334extern "C"
17335#endif
17336char dld_link ();
17337int
17338main ()
17339{
17340return dld_link ();
17341  ;
17342  return 0;
17343}
17344_ACEOF
17345if ac_fn_c_try_link "$LINENO"; then :
17346  ac_cv_lib_dld_dld_link=yes
17347else
17348  ac_cv_lib_dld_dld_link=no
17349fi
17350rm -f core conftest.err conftest.$ac_objext \
17351    conftest$ac_exeext conftest.$ac_ext
17352LIBS=$ac_check_lib_save_LIBS
17353fi
17354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17355$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17356if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17357  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17358fi
17359
17360
17361fi
17362
17363
17364fi
17365
17366
17367fi
17368
17369
17370fi
17371
17372
17373fi
17374
17375    ;;
17376  esac
17377
17378  if test "x$lt_cv_dlopen" != xno; then
17379    enable_dlopen=yes
17380  else
17381    enable_dlopen=no
17382  fi
17383
17384  case $lt_cv_dlopen in
17385  dlopen)
17386    save_CPPFLAGS="$CPPFLAGS"
17387    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17388
17389    save_LDFLAGS="$LDFLAGS"
17390    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17391
17392    save_LIBS="$LIBS"
17393    LIBS="$lt_cv_dlopen_libs $LIBS"
17394
17395    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17396$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17397if ${lt_cv_dlopen_self+:} false; then :
17398  $as_echo_n "(cached) " >&6
17399else
17400  	  if test "$cross_compiling" = yes; then :
17401  lt_cv_dlopen_self=cross
17402else
17403  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17404  lt_status=$lt_dlunknown
17405  cat > conftest.$ac_ext <<_LT_EOF
17406#line $LINENO "configure"
17407#include "confdefs.h"
17408
17409#if HAVE_DLFCN_H
17410#include <dlfcn.h>
17411#endif
17412
17413#include <stdio.h>
17414
17415#ifdef RTLD_GLOBAL
17416#  define LT_DLGLOBAL		RTLD_GLOBAL
17417#else
17418#  ifdef DL_GLOBAL
17419#    define LT_DLGLOBAL		DL_GLOBAL
17420#  else
17421#    define LT_DLGLOBAL		0
17422#  endif
17423#endif
17424
17425/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17426   find out it does not work in some platform. */
17427#ifndef LT_DLLAZY_OR_NOW
17428#  ifdef RTLD_LAZY
17429#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17430#  else
17431#    ifdef DL_LAZY
17432#      define LT_DLLAZY_OR_NOW		DL_LAZY
17433#    else
17434#      ifdef RTLD_NOW
17435#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17436#      else
17437#        ifdef DL_NOW
17438#          define LT_DLLAZY_OR_NOW	DL_NOW
17439#        else
17440#          define LT_DLLAZY_OR_NOW	0
17441#        endif
17442#      endif
17443#    endif
17444#  endif
17445#endif
17446
17447/* When -fvisbility=hidden is used, assume the code has been annotated
17448   correspondingly for the symbols needed.  */
17449#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17450int fnord () __attribute__((visibility("default")));
17451#endif
17452
17453int fnord () { return 42; }
17454int main ()
17455{
17456  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17457  int status = $lt_dlunknown;
17458
17459  if (self)
17460    {
17461      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17462      else
17463        {
17464	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17465          else puts (dlerror ());
17466	}
17467      /* dlclose (self); */
17468    }
17469  else
17470    puts (dlerror ());
17471
17472  return status;
17473}
17474_LT_EOF
17475  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17476  (eval $ac_link) 2>&5
17477  ac_status=$?
17478  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17479  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17480    (./conftest; exit; ) >&5 2>/dev/null
17481    lt_status=$?
17482    case x$lt_status in
17483      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17484      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17485      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17486    esac
17487  else :
17488    # compilation failed
17489    lt_cv_dlopen_self=no
17490  fi
17491fi
17492rm -fr conftest*
17493
17494
17495fi
17496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17497$as_echo "$lt_cv_dlopen_self" >&6; }
17498
17499    if test "x$lt_cv_dlopen_self" = xyes; then
17500      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17501      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17502$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17503if ${lt_cv_dlopen_self_static+:} false; then :
17504  $as_echo_n "(cached) " >&6
17505else
17506  	  if test "$cross_compiling" = yes; then :
17507  lt_cv_dlopen_self_static=cross
17508else
17509  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17510  lt_status=$lt_dlunknown
17511  cat > conftest.$ac_ext <<_LT_EOF
17512#line $LINENO "configure"
17513#include "confdefs.h"
17514
17515#if HAVE_DLFCN_H
17516#include <dlfcn.h>
17517#endif
17518
17519#include <stdio.h>
17520
17521#ifdef RTLD_GLOBAL
17522#  define LT_DLGLOBAL		RTLD_GLOBAL
17523#else
17524#  ifdef DL_GLOBAL
17525#    define LT_DLGLOBAL		DL_GLOBAL
17526#  else
17527#    define LT_DLGLOBAL		0
17528#  endif
17529#endif
17530
17531/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17532   find out it does not work in some platform. */
17533#ifndef LT_DLLAZY_OR_NOW
17534#  ifdef RTLD_LAZY
17535#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17536#  else
17537#    ifdef DL_LAZY
17538#      define LT_DLLAZY_OR_NOW		DL_LAZY
17539#    else
17540#      ifdef RTLD_NOW
17541#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17542#      else
17543#        ifdef DL_NOW
17544#          define LT_DLLAZY_OR_NOW	DL_NOW
17545#        else
17546#          define LT_DLLAZY_OR_NOW	0
17547#        endif
17548#      endif
17549#    endif
17550#  endif
17551#endif
17552
17553/* When -fvisbility=hidden is used, assume the code has been annotated
17554   correspondingly for the symbols needed.  */
17555#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17556int fnord () __attribute__((visibility("default")));
17557#endif
17558
17559int fnord () { return 42; }
17560int main ()
17561{
17562  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17563  int status = $lt_dlunknown;
17564
17565  if (self)
17566    {
17567      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17568      else
17569        {
17570	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17571          else puts (dlerror ());
17572	}
17573      /* dlclose (self); */
17574    }
17575  else
17576    puts (dlerror ());
17577
17578  return status;
17579}
17580_LT_EOF
17581  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17582  (eval $ac_link) 2>&5
17583  ac_status=$?
17584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17585  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17586    (./conftest; exit; ) >&5 2>/dev/null
17587    lt_status=$?
17588    case x$lt_status in
17589      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17590      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17591      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17592    esac
17593  else :
17594    # compilation failed
17595    lt_cv_dlopen_self_static=no
17596  fi
17597fi
17598rm -fr conftest*
17599
17600
17601fi
17602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17603$as_echo "$lt_cv_dlopen_self_static" >&6; }
17604    fi
17605
17606    CPPFLAGS="$save_CPPFLAGS"
17607    LDFLAGS="$save_LDFLAGS"
17608    LIBS="$save_LIBS"
17609    ;;
17610  esac
17611
17612  case $lt_cv_dlopen_self in
17613  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17614  *) enable_dlopen_self=unknown ;;
17615  esac
17616
17617  case $lt_cv_dlopen_self_static in
17618  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17619  *) enable_dlopen_self_static=unknown ;;
17620  esac
17621fi
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639striplib=
17640old_striplib=
17641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17642$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17643if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17644  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17645  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17647$as_echo "yes" >&6; }
17648else
17649# FIXME - insert some real tests, host_os isn't really good enough
17650  case $host_os in
17651  darwin*)
17652    if test -n "$STRIP" ; then
17653      striplib="$STRIP -x"
17654      old_striplib="$STRIP -S"
17655      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17656$as_echo "yes" >&6; }
17657    else
17658      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17659$as_echo "no" >&6; }
17660    fi
17661    ;;
17662  *)
17663    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17664$as_echo "no" >&6; }
17665    ;;
17666  esac
17667fi
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680  # Report which library types will actually be built
17681  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17682$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17684$as_echo "$can_build_shared" >&6; }
17685
17686  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17687$as_echo_n "checking whether to build shared libraries... " >&6; }
17688  test "$can_build_shared" = "no" && enable_shared=no
17689
17690  # On AIX, shared libraries and static libraries use the same namespace, and
17691  # are all built from PIC.
17692  case $host_os in
17693  aix3*)
17694    test "$enable_shared" = yes && enable_static=no
17695    if test -n "$RANLIB"; then
17696      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17697      postinstall_cmds='$RANLIB $lib'
17698    fi
17699    ;;
17700
17701  aix[4-9]*)
17702    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17703      test "$enable_shared" = yes && enable_static=no
17704    fi
17705    ;;
17706  esac
17707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17708$as_echo "$enable_shared" >&6; }
17709
17710  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17711$as_echo_n "checking whether to build static libraries... " >&6; }
17712  # Make sure either enable_shared or enable_static is yes.
17713  test "$enable_shared" = yes || enable_static=yes
17714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17715$as_echo "$enable_static" >&6; }
17716
17717
17718
17719
17720fi
17721ac_ext=c
17722ac_cpp='$CPP $CPPFLAGS'
17723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17725ac_compiler_gnu=$ac_cv_c_compiler_gnu
17726
17727CC="$lt_save_CC"
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743        ac_config_commands="$ac_config_commands libtool"
17744
17745
17746
17747
17748# Only expand once:
17749
17750
17751
17752
17753
17754# Define a configure option for an alternate module directory
17755
17756# Check whether --with-xorg-module-dir was given.
17757if test "${with_xorg_module_dir+set}" = set; then :
17758  withval=$with_xorg_module_dir; moduledir="$withval"
17759else
17760  moduledir="$libdir/xorg/modules"
17761fi
17762
17763
17764# Store the list of server defined optional extensions in REQUIRED_MODULES
17765
17766
17767	SAVE_CFLAGS="$CFLAGS"
17768	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17769	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17770/* end confdefs.h.  */
17771
17772#include "xorg-server.h"
17773#if !defined XV
17774#error XV not defined
17775#endif
17776
17777int
17778main ()
17779{
17780
17781  ;
17782  return 0;
17783}
17784_ACEOF
17785if ac_fn_c_try_compile "$LINENO"; then :
17786  _EXT_CHECK=yes
17787else
17788  _EXT_CHECK=no
17789fi
17790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17791	CFLAGS="$SAVE_CFLAGS"
17792	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
17793$as_echo_n "checking if XV is defined... " >&6; }
17794	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17795$as_echo "$_EXT_CHECK" >&6; }
17796	if test "$_EXT_CHECK" != no; then
17797		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
17798	fi
17799
17800
17801
17802	SAVE_CFLAGS="$CFLAGS"
17803	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17804	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17805/* end confdefs.h.  */
17806
17807#include "xorg-server.h"
17808#if !defined DPMSExtension
17809#error DPMSExtension not defined
17810#endif
17811
17812int
17813main ()
17814{
17815
17816  ;
17817  return 0;
17818}
17819_ACEOF
17820if ac_fn_c_try_compile "$LINENO"; then :
17821  _EXT_CHECK=yes
17822else
17823  _EXT_CHECK=no
17824fi
17825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17826	CFLAGS="$SAVE_CFLAGS"
17827	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17828$as_echo_n "checking if DPMSExtension is defined... " >&6; }
17829	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17830$as_echo "$_EXT_CHECK" >&6; }
17831	if test "$_EXT_CHECK" != no; then
17832		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17833	fi
17834
17835
17836
17837	SAVE_CFLAGS="$CFLAGS"
17838	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17839	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17840/* end confdefs.h.  */
17841
17842#include "xorg-server.h"
17843#if !defined XFreeXDGA
17844#error XFreeXDGA not defined
17845#endif
17846
17847int
17848main ()
17849{
17850
17851  ;
17852  return 0;
17853}
17854_ACEOF
17855if ac_fn_c_try_compile "$LINENO"; then :
17856  _EXT_CHECK=yes
17857else
17858  _EXT_CHECK=no
17859fi
17860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17861	CFLAGS="$SAVE_CFLAGS"
17862	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XFreeXDGA is defined" >&5
17863$as_echo_n "checking if XFreeXDGA is defined... " >&6; }
17864	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17865$as_echo "$_EXT_CHECK" >&6; }
17866	if test "$_EXT_CHECK" != no; then
17867		REQUIRED_MODULES="$REQUIRED_MODULES xf86dgaproto"
17868	fi
17869
17870
17871# Obtain compiler/linker options for the driver dependencies
17872
17873pkg_failed=no
17874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17875$as_echo_n "checking for XORG... " >&6; }
17876
17877if test -n "$XORG_CFLAGS"; then
17878    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17879 elif test -n "$PKG_CONFIG"; then
17880    if test -n "$PKG_CONFIG" && \
17881    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto \$REQUIRED_MODULES\""; } >&5
17882  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES") 2>&5
17883  ac_status=$?
17884  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17885  test $ac_status = 0; }; then
17886  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>/dev/null`
17887else
17888  pkg_failed=yes
17889fi
17890 else
17891    pkg_failed=untried
17892fi
17893if test -n "$XORG_LIBS"; then
17894    pkg_cv_XORG_LIBS="$XORG_LIBS"
17895 elif test -n "$PKG_CONFIG"; then
17896    if test -n "$PKG_CONFIG" && \
17897    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto \$REQUIRED_MODULES\""; } >&5
17898  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES") 2>&5
17899  ac_status=$?
17900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17901  test $ac_status = 0; }; then
17902  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>/dev/null`
17903else
17904  pkg_failed=yes
17905fi
17906 else
17907    pkg_failed=untried
17908fi
17909
17910
17911
17912if test $pkg_failed = yes; then
17913   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17914$as_echo "no" >&6; }
17915
17916if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17917        _pkg_short_errors_supported=yes
17918else
17919        _pkg_short_errors_supported=no
17920fi
17921        if test $_pkg_short_errors_supported = yes; then
17922	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>&1`
17923        else
17924	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES" 2>&1`
17925        fi
17926	# Put the nasty error message in config.log where it belongs
17927	echo "$XORG_PKG_ERRORS" >&5
17928
17929	as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto $REQUIRED_MODULES) were not met:
17930
17931$XORG_PKG_ERRORS
17932
17933Consider adjusting the PKG_CONFIG_PATH environment variable if you
17934installed software in a non-standard prefix.
17935
17936Alternatively, you may set the environment variables XORG_CFLAGS
17937and XORG_LIBS to avoid the need to call pkg-config.
17938See the pkg-config man page for more details." "$LINENO" 5
17939
17940elif test $pkg_failed = untried; then
17941     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17942$as_echo "no" >&6; }
17943	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17944$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17945as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17946is in your PATH or set the PKG_CONFIG environment variable to the full
17947path to pkg-config.
17948
17949Alternatively, you may set the environment variables XORG_CFLAGS
17950and XORG_LIBS to avoid the need to call pkg-config.
17951See the pkg-config man page for more details.
17952
17953To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17954See \`config.log' for more details" "$LINENO" 5; }
17955
17956else
17957	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
17958	XORG_LIBS=$pkg_cv_XORG_LIBS
17959        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17960$as_echo "yes" >&6; }
17961
17962fi
17963
17964pkg_failed=no
17965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
17966$as_echo_n "checking for XEXT... " >&6; }
17967
17968if test -n "$XEXT_CFLAGS"; then
17969    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
17970 elif test -n "$PKG_CONFIG"; then
17971    if test -n "$PKG_CONFIG" && \
17972    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
17973  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
17974  ac_status=$?
17975  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17976  test $ac_status = 0; }; then
17977  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
17978else
17979  pkg_failed=yes
17980fi
17981 else
17982    pkg_failed=untried
17983fi
17984if test -n "$XEXT_LIBS"; then
17985    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
17986 elif test -n "$PKG_CONFIG"; then
17987    if test -n "$PKG_CONFIG" && \
17988    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
17989  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
17990  ac_status=$?
17991  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17992  test $ac_status = 0; }; then
17993  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
17994else
17995  pkg_failed=yes
17996fi
17997 else
17998    pkg_failed=untried
17999fi
18000
18001
18002
18003if test $pkg_failed = yes; then
18004   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18005$as_echo "no" >&6; }
18006
18007if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18008        _pkg_short_errors_supported=yes
18009else
18010        _pkg_short_errors_supported=no
18011fi
18012        if test $_pkg_short_errors_supported = yes; then
18013	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xextproto >= 7.0.99.1" 2>&1`
18014        else
18015	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xextproto >= 7.0.99.1" 2>&1`
18016        fi
18017	# Put the nasty error message in config.log where it belongs
18018	echo "$XEXT_PKG_ERRORS" >&5
18019
18020	HAVE_XEXTPROTO_71="no"
18021elif test $pkg_failed = untried; then
18022     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18023$as_echo "no" >&6; }
18024	HAVE_XEXTPROTO_71="no"
18025else
18026	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18027	XEXT_LIBS=$pkg_cv_XEXT_LIBS
18028        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18029$as_echo "yes" >&6; }
18030	HAVE_XEXTPROTO_71="yes";
18031$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18032
18033fi
18034 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
18035  HAVE_XEXTPROTO_71_TRUE=
18036  HAVE_XEXTPROTO_71_FALSE='#'
18037else
18038  HAVE_XEXTPROTO_71_TRUE='#'
18039  HAVE_XEXTPROTO_71_FALSE=
18040fi
18041
18042sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
18043
18044# Checks for libraries.
18045SAVE_CPPFLAGS="$CPPFLAGS"
18046CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18047ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18048"
18049if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18050  XSERVER_LIBPCIACCESS=yes
18051else
18052  XSERVER_LIBPCIACCESS=no
18053fi
18054
18055CPPFLAGS="$SAVE_CPPFLAGS"
18056
18057if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18058
18059pkg_failed=no
18060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18061$as_echo_n "checking for PCIACCESS... " >&6; }
18062
18063if test -n "$PCIACCESS_CFLAGS"; then
18064    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18065 elif test -n "$PKG_CONFIG"; then
18066    if test -n "$PKG_CONFIG" && \
18067    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18068  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18069  ac_status=$?
18070  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18071  test $ac_status = 0; }; then
18072  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18073else
18074  pkg_failed=yes
18075fi
18076 else
18077    pkg_failed=untried
18078fi
18079if test -n "$PCIACCESS_LIBS"; then
18080    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18081 elif test -n "$PKG_CONFIG"; then
18082    if test -n "$PKG_CONFIG" && \
18083    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18084  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18085  ac_status=$?
18086  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18087  test $ac_status = 0; }; then
18088  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18089else
18090  pkg_failed=yes
18091fi
18092 else
18093    pkg_failed=untried
18094fi
18095
18096
18097
18098if test $pkg_failed = yes; then
18099   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18100$as_echo "no" >&6; }
18101
18102if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18103        _pkg_short_errors_supported=yes
18104else
18105        _pkg_short_errors_supported=no
18106fi
18107        if test $_pkg_short_errors_supported = yes; then
18108	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.8.0" 2>&1`
18109        else
18110	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.8.0" 2>&1`
18111        fi
18112	# Put the nasty error message in config.log where it belongs
18113	echo "$PCIACCESS_PKG_ERRORS" >&5
18114
18115	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18116
18117$PCIACCESS_PKG_ERRORS
18118
18119Consider adjusting the PKG_CONFIG_PATH environment variable if you
18120installed software in a non-standard prefix.
18121
18122Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18123and PCIACCESS_LIBS to avoid the need to call pkg-config.
18124See the pkg-config man page for more details." "$LINENO" 5
18125
18126elif test $pkg_failed = untried; then
18127     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18128$as_echo "no" >&6; }
18129	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18131as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18132is in your PATH or set the PKG_CONFIG environment variable to the full
18133path to pkg-config.
18134
18135Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18136and PCIACCESS_LIBS to avoid the need to call pkg-config.
18137See the pkg-config man page for more details.
18138
18139To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18140See \`config.log' for more details" "$LINENO" 5; }
18141
18142else
18143	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18144	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18145        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18146$as_echo "yes" >&6; }
18147
18148fi
18149    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18150fi
18151 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18152  XSERVER_LIBPCIACCESS_TRUE=
18153  XSERVER_LIBPCIACCESS_FALSE='#'
18154else
18155  XSERVER_LIBPCIACCESS_TRUE='#'
18156  XSERVER_LIBPCIACCESS_FALSE=
18157fi
18158
18159
18160# Check whether --enable-xaa was given.
18161if test "${enable_xaa+set}" = set; then :
18162  enableval=$enable_xaa; XAA="$enableval"
18163else
18164  XAA=auto
18165fi
18166
18167if test "x$XAA" != xno; then
18168        save_CFLAGS=$CFLAGS
18169        save_CPPFLAGS=$CPPFLAGS
18170        CFLAGS=$XORG_CFLAGS
18171        CPPFLAGS="$XORG_CFLAGS"
18172        for ac_header in xaa.h
18173do :
18174  ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18175if test "x$ac_cv_header_xaa_h" = xyes; then :
18176  cat >>confdefs.h <<_ACEOF
18177#define HAVE_XAA_H 1
18178_ACEOF
18179 XAA=yes
18180else
18181  XAA=no
18182fi
18183
18184done
18185
18186        CFLAGS=$save_CFLAGS
18187        CPPFLAGS=$save_CPPFLAGS
18188fi
18189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18190$as_echo_n "checking whether to include XAA support... " >&6; }
18191 if test "x$XAA" = xyes; then
18192  XAA_TRUE=
18193  XAA_FALSE='#'
18194else
18195  XAA_TRUE='#'
18196  XAA_FALSE=
18197fi
18198
18199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18200$as_echo "$XAA" >&6; }
18201
18202
18203
18204DRIVER_NAME=glint
18205
18206
18207ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18208
18209cat >confcache <<\_ACEOF
18210# This file is a shell script that caches the results of configure
18211# tests run on this system so they can be shared between configure
18212# scripts and configure runs, see configure's option --config-cache.
18213# It is not useful on other systems.  If it contains results you don't
18214# want to keep, you may remove or edit it.
18215#
18216# config.status only pays attention to the cache file if you give it
18217# the --recheck option to rerun configure.
18218#
18219# `ac_cv_env_foo' variables (set or unset) will be overridden when
18220# loading this file, other *unset* `ac_cv_foo' will be assigned the
18221# following values.
18222
18223_ACEOF
18224
18225# The following way of writing the cache mishandles newlines in values,
18226# but we know of no workaround that is simple, portable, and efficient.
18227# So, we kill variables containing newlines.
18228# Ultrix sh set writes to stderr and can't be redirected directly,
18229# and sets the high bit in the cache file unless we assign to the vars.
18230(
18231  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18232    eval ac_val=\$$ac_var
18233    case $ac_val in #(
18234    *${as_nl}*)
18235      case $ac_var in #(
18236      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18237$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18238      esac
18239      case $ac_var in #(
18240      _ | IFS | as_nl) ;; #(
18241      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18242      *) { eval $ac_var=; unset $ac_var;} ;;
18243      esac ;;
18244    esac
18245  done
18246
18247  (set) 2>&1 |
18248    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18249    *${as_nl}ac_space=\ *)
18250      # `set' does not quote correctly, so add quotes: double-quote
18251      # substitution turns \\\\ into \\, and sed turns \\ into \.
18252      sed -n \
18253	"s/'/'\\\\''/g;
18254	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18255      ;; #(
18256    *)
18257      # `set' quotes correctly as required by POSIX, so do not add quotes.
18258      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18259      ;;
18260    esac |
18261    sort
18262) |
18263  sed '
18264     /^ac_cv_env_/b end
18265     t clear
18266     :clear
18267     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18268     t end
18269     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18270     :end' >>confcache
18271if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18272  if test -w "$cache_file"; then
18273    if test "x$cache_file" != "x/dev/null"; then
18274      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18275$as_echo "$as_me: updating cache $cache_file" >&6;}
18276      if test ! -f "$cache_file" || test -h "$cache_file"; then
18277	cat confcache >"$cache_file"
18278      else
18279        case $cache_file in #(
18280        */* | ?:*)
18281	  mv -f confcache "$cache_file"$$ &&
18282	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18283        *)
18284	  mv -f confcache "$cache_file" ;;
18285	esac
18286      fi
18287    fi
18288  else
18289    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18290$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18291  fi
18292fi
18293rm -f confcache
18294
18295test "x$prefix" = xNONE && prefix=$ac_default_prefix
18296# Let make expand exec_prefix.
18297test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18298
18299DEFS=-DHAVE_CONFIG_H
18300
18301ac_libobjs=
18302ac_ltlibobjs=
18303U=
18304for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18305  # 1. Remove the extension, and $U if already installed.
18306  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18307  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18308  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18309  #    will be set to the directory where LIBOBJS objects are built.
18310  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18311  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18312done
18313LIBOBJS=$ac_libobjs
18314
18315LTLIBOBJS=$ac_ltlibobjs
18316
18317
18318 if test -n "$EXEEXT"; then
18319  am__EXEEXT_TRUE=
18320  am__EXEEXT_FALSE='#'
18321else
18322  am__EXEEXT_TRUE='#'
18323  am__EXEEXT_FALSE=
18324fi
18325
18326if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18327  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18328Usually this means the macro was only invoked conditionally." "$LINENO" 5
18329fi
18330if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18331  as_fn_error $? "conditional \"AMDEP\" was never defined.
18332Usually this means the macro was only invoked conditionally." "$LINENO" 5
18333fi
18334if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18335  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18336Usually this means the macro was only invoked conditionally." "$LINENO" 5
18337fi
18338if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
18339  as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
18340Usually this means the macro was only invoked conditionally." "$LINENO" 5
18341fi
18342if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18343  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18344Usually this means the macro was only invoked conditionally." "$LINENO" 5
18345fi
18346if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
18347  as_fn_error $? "conditional \"XAA\" was never defined.
18348Usually this means the macro was only invoked conditionally." "$LINENO" 5
18349fi
18350
18351: "${CONFIG_STATUS=./config.status}"
18352ac_write_fail=0
18353ac_clean_files_save=$ac_clean_files
18354ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18355{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18356$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18357as_write_fail=0
18358cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18359#! $SHELL
18360# Generated by $as_me.
18361# Run this file to recreate the current configuration.
18362# Compiler output produced by configure, useful for debugging
18363# configure, is in config.log if it exists.
18364
18365debug=false
18366ac_cs_recheck=false
18367ac_cs_silent=false
18368
18369SHELL=\${CONFIG_SHELL-$SHELL}
18370export SHELL
18371_ASEOF
18372cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18373## -------------------- ##
18374## M4sh Initialization. ##
18375## -------------------- ##
18376
18377# Be more Bourne compatible
18378DUALCASE=1; export DUALCASE # for MKS sh
18379if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18380  emulate sh
18381  NULLCMD=:
18382  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18383  # is contrary to our usage.  Disable this feature.
18384  alias -g '${1+"$@"}'='"$@"'
18385  setopt NO_GLOB_SUBST
18386else
18387  case `(set -o) 2>/dev/null` in #(
18388  *posix*) :
18389    set -o posix ;; #(
18390  *) :
18391     ;;
18392esac
18393fi
18394
18395
18396as_nl='
18397'
18398export as_nl
18399# Printing a long string crashes Solaris 7 /usr/bin/printf.
18400as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18401as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18402as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18403# Prefer a ksh shell builtin over an external printf program on Solaris,
18404# but without wasting forks for bash or zsh.
18405if test -z "$BASH_VERSION$ZSH_VERSION" \
18406    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18407  as_echo='print -r --'
18408  as_echo_n='print -rn --'
18409elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18410  as_echo='printf %s\n'
18411  as_echo_n='printf %s'
18412else
18413  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18414    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18415    as_echo_n='/usr/ucb/echo -n'
18416  else
18417    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18418    as_echo_n_body='eval
18419      arg=$1;
18420      case $arg in #(
18421      *"$as_nl"*)
18422	expr "X$arg" : "X\\(.*\\)$as_nl";
18423	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18424      esac;
18425      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18426    '
18427    export as_echo_n_body
18428    as_echo_n='sh -c $as_echo_n_body as_echo'
18429  fi
18430  export as_echo_body
18431  as_echo='sh -c $as_echo_body as_echo'
18432fi
18433
18434# The user is always right.
18435if test "${PATH_SEPARATOR+set}" != set; then
18436  PATH_SEPARATOR=:
18437  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18438    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18439      PATH_SEPARATOR=';'
18440  }
18441fi
18442
18443
18444# IFS
18445# We need space, tab and new line, in precisely that order.  Quoting is
18446# there to prevent editors from complaining about space-tab.
18447# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18448# splitting by setting IFS to empty value.)
18449IFS=" ""	$as_nl"
18450
18451# Find who we are.  Look in the path if we contain no directory separator.
18452as_myself=
18453case $0 in #((
18454  *[\\/]* ) as_myself=$0 ;;
18455  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18456for as_dir in $PATH
18457do
18458  IFS=$as_save_IFS
18459  test -z "$as_dir" && as_dir=.
18460    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18461  done
18462IFS=$as_save_IFS
18463
18464     ;;
18465esac
18466# We did not find ourselves, most probably we were run as `sh COMMAND'
18467# in which case we are not to be found in the path.
18468if test "x$as_myself" = x; then
18469  as_myself=$0
18470fi
18471if test ! -f "$as_myself"; then
18472  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18473  exit 1
18474fi
18475
18476# Unset variables that we do not need and which cause bugs (e.g. in
18477# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18478# suppresses any "Segmentation fault" message there.  '((' could
18479# trigger a bug in pdksh 5.2.14.
18480for as_var in BASH_ENV ENV MAIL MAILPATH
18481do eval test x\${$as_var+set} = xset \
18482  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18483done
18484PS1='$ '
18485PS2='> '
18486PS4='+ '
18487
18488# NLS nuisances.
18489LC_ALL=C
18490export LC_ALL
18491LANGUAGE=C
18492export LANGUAGE
18493
18494# CDPATH.
18495(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18496
18497
18498# as_fn_error STATUS ERROR [LINENO LOG_FD]
18499# ----------------------------------------
18500# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18501# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18502# script with STATUS, using 1 if that was 0.
18503as_fn_error ()
18504{
18505  as_status=$1; test $as_status -eq 0 && as_status=1
18506  if test "$4"; then
18507    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18508    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18509  fi
18510  $as_echo "$as_me: error: $2" >&2
18511  as_fn_exit $as_status
18512} # as_fn_error
18513
18514
18515# as_fn_set_status STATUS
18516# -----------------------
18517# Set $? to STATUS, without forking.
18518as_fn_set_status ()
18519{
18520  return $1
18521} # as_fn_set_status
18522
18523# as_fn_exit STATUS
18524# -----------------
18525# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18526as_fn_exit ()
18527{
18528  set +e
18529  as_fn_set_status $1
18530  exit $1
18531} # as_fn_exit
18532
18533# as_fn_unset VAR
18534# ---------------
18535# Portably unset VAR.
18536as_fn_unset ()
18537{
18538  { eval $1=; unset $1;}
18539}
18540as_unset=as_fn_unset
18541# as_fn_append VAR VALUE
18542# ----------------------
18543# Append the text in VALUE to the end of the definition contained in VAR. Take
18544# advantage of any shell optimizations that allow amortized linear growth over
18545# repeated appends, instead of the typical quadratic growth present in naive
18546# implementations.
18547if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18548  eval 'as_fn_append ()
18549  {
18550    eval $1+=\$2
18551  }'
18552else
18553  as_fn_append ()
18554  {
18555    eval $1=\$$1\$2
18556  }
18557fi # as_fn_append
18558
18559# as_fn_arith ARG...
18560# ------------------
18561# Perform arithmetic evaluation on the ARGs, and store the result in the
18562# global $as_val. Take advantage of shells that can avoid forks. The arguments
18563# must be portable across $(()) and expr.
18564if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18565  eval 'as_fn_arith ()
18566  {
18567    as_val=$(( $* ))
18568  }'
18569else
18570  as_fn_arith ()
18571  {
18572    as_val=`expr "$@" || test $? -eq 1`
18573  }
18574fi # as_fn_arith
18575
18576
18577if expr a : '\(a\)' >/dev/null 2>&1 &&
18578   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18579  as_expr=expr
18580else
18581  as_expr=false
18582fi
18583
18584if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18585  as_basename=basename
18586else
18587  as_basename=false
18588fi
18589
18590if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18591  as_dirname=dirname
18592else
18593  as_dirname=false
18594fi
18595
18596as_me=`$as_basename -- "$0" ||
18597$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18598	 X"$0" : 'X\(//\)$' \| \
18599	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18600$as_echo X/"$0" |
18601    sed '/^.*\/\([^/][^/]*\)\/*$/{
18602	    s//\1/
18603	    q
18604	  }
18605	  /^X\/\(\/\/\)$/{
18606	    s//\1/
18607	    q
18608	  }
18609	  /^X\/\(\/\).*/{
18610	    s//\1/
18611	    q
18612	  }
18613	  s/.*/./; q'`
18614
18615# Avoid depending upon Character Ranges.
18616as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18617as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18618as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18619as_cr_digits='0123456789'
18620as_cr_alnum=$as_cr_Letters$as_cr_digits
18621
18622ECHO_C= ECHO_N= ECHO_T=
18623case `echo -n x` in #(((((
18624-n*)
18625  case `echo 'xy\c'` in
18626  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18627  xy)  ECHO_C='\c';;
18628  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18629       ECHO_T='	';;
18630  esac;;
18631*)
18632  ECHO_N='-n';;
18633esac
18634
18635rm -f conf$$ conf$$.exe conf$$.file
18636if test -d conf$$.dir; then
18637  rm -f conf$$.dir/conf$$.file
18638else
18639  rm -f conf$$.dir
18640  mkdir conf$$.dir 2>/dev/null
18641fi
18642if (echo >conf$$.file) 2>/dev/null; then
18643  if ln -s conf$$.file conf$$ 2>/dev/null; then
18644    as_ln_s='ln -s'
18645    # ... but there are two gotchas:
18646    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18647    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18648    # In both cases, we have to default to `cp -p'.
18649    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18650      as_ln_s='cp -p'
18651  elif ln conf$$.file conf$$ 2>/dev/null; then
18652    as_ln_s=ln
18653  else
18654    as_ln_s='cp -p'
18655  fi
18656else
18657  as_ln_s='cp -p'
18658fi
18659rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18660rmdir conf$$.dir 2>/dev/null
18661
18662
18663# as_fn_mkdir_p
18664# -------------
18665# Create "$as_dir" as a directory, including parents if necessary.
18666as_fn_mkdir_p ()
18667{
18668
18669  case $as_dir in #(
18670  -*) as_dir=./$as_dir;;
18671  esac
18672  test -d "$as_dir" || eval $as_mkdir_p || {
18673    as_dirs=
18674    while :; do
18675      case $as_dir in #(
18676      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18677      *) as_qdir=$as_dir;;
18678      esac
18679      as_dirs="'$as_qdir' $as_dirs"
18680      as_dir=`$as_dirname -- "$as_dir" ||
18681$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18682	 X"$as_dir" : 'X\(//\)[^/]' \| \
18683	 X"$as_dir" : 'X\(//\)$' \| \
18684	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18685$as_echo X"$as_dir" |
18686    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18687	    s//\1/
18688	    q
18689	  }
18690	  /^X\(\/\/\)[^/].*/{
18691	    s//\1/
18692	    q
18693	  }
18694	  /^X\(\/\/\)$/{
18695	    s//\1/
18696	    q
18697	  }
18698	  /^X\(\/\).*/{
18699	    s//\1/
18700	    q
18701	  }
18702	  s/.*/./; q'`
18703      test -d "$as_dir" && break
18704    done
18705    test -z "$as_dirs" || eval "mkdir $as_dirs"
18706  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18707
18708
18709} # as_fn_mkdir_p
18710if mkdir -p . 2>/dev/null; then
18711  as_mkdir_p='mkdir -p "$as_dir"'
18712else
18713  test -d ./-p && rmdir ./-p
18714  as_mkdir_p=false
18715fi
18716
18717if test -x / >/dev/null 2>&1; then
18718  as_test_x='test -x'
18719else
18720  if ls -dL / >/dev/null 2>&1; then
18721    as_ls_L_option=L
18722  else
18723    as_ls_L_option=
18724  fi
18725  as_test_x='
18726    eval sh -c '\''
18727      if test -d "$1"; then
18728	test -d "$1/.";
18729      else
18730	case $1 in #(
18731	-*)set "./$1";;
18732	esac;
18733	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18734	???[sx]*):;;*)false;;esac;fi
18735    '\'' sh
18736  '
18737fi
18738as_executable_p=$as_test_x
18739
18740# Sed expression to map a string onto a valid CPP name.
18741as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18742
18743# Sed expression to map a string onto a valid variable name.
18744as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18745
18746
18747exec 6>&1
18748## ----------------------------------- ##
18749## Main body of $CONFIG_STATUS script. ##
18750## ----------------------------------- ##
18751_ASEOF
18752test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18753
18754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18755# Save the log message, to keep $0 and so on meaningful, and to
18756# report actual input values of CONFIG_FILES etc. instead of their
18757# values after options handling.
18758ac_log="
18759This file was extended by xf86-video-glint $as_me 1.2.8, which was
18760generated by GNU Autoconf 2.68.  Invocation command line was
18761
18762  CONFIG_FILES    = $CONFIG_FILES
18763  CONFIG_HEADERS  = $CONFIG_HEADERS
18764  CONFIG_LINKS    = $CONFIG_LINKS
18765  CONFIG_COMMANDS = $CONFIG_COMMANDS
18766  $ $0 $@
18767
18768on `(hostname || uname -n) 2>/dev/null | sed 1q`
18769"
18770
18771_ACEOF
18772
18773case $ac_config_files in *"
18774"*) set x $ac_config_files; shift; ac_config_files=$*;;
18775esac
18776
18777case $ac_config_headers in *"
18778"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18779esac
18780
18781
18782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18783# Files that config.status was made for.
18784config_files="$ac_config_files"
18785config_headers="$ac_config_headers"
18786config_commands="$ac_config_commands"
18787
18788_ACEOF
18789
18790cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18791ac_cs_usage="\
18792\`$as_me' instantiates files and other configuration actions
18793from templates according to the current configuration.  Unless the files
18794and actions are specified as TAGs, all are instantiated by default.
18795
18796Usage: $0 [OPTION]... [TAG]...
18797
18798  -h, --help       print this help, then exit
18799  -V, --version    print version number and configuration settings, then exit
18800      --config     print configuration, then exit
18801  -q, --quiet, --silent
18802                   do not print progress messages
18803  -d, --debug      don't remove temporary files
18804      --recheck    update $as_me by reconfiguring in the same conditions
18805      --file=FILE[:TEMPLATE]
18806                   instantiate the configuration file FILE
18807      --header=FILE[:TEMPLATE]
18808                   instantiate the configuration header FILE
18809
18810Configuration files:
18811$config_files
18812
18813Configuration headers:
18814$config_headers
18815
18816Configuration commands:
18817$config_commands
18818
18819Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/glint>."
18820
18821_ACEOF
18822cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18823ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18824ac_cs_version="\\
18825xf86-video-glint config.status 1.2.8
18826configured by $0, generated by GNU Autoconf 2.68,
18827  with options \\"\$ac_cs_config\\"
18828
18829Copyright (C) 2010 Free Software Foundation, Inc.
18830This config.status script is free software; the Free Software Foundation
18831gives unlimited permission to copy, distribute and modify it."
18832
18833ac_pwd='$ac_pwd'
18834srcdir='$srcdir'
18835INSTALL='$INSTALL'
18836MKDIR_P='$MKDIR_P'
18837AWK='$AWK'
18838test -n "\$AWK" || AWK=awk
18839_ACEOF
18840
18841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18842# The default lists apply if the user does not specify any file.
18843ac_need_defaults=:
18844while test $# != 0
18845do
18846  case $1 in
18847  --*=?*)
18848    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18849    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18850    ac_shift=:
18851    ;;
18852  --*=)
18853    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18854    ac_optarg=
18855    ac_shift=:
18856    ;;
18857  *)
18858    ac_option=$1
18859    ac_optarg=$2
18860    ac_shift=shift
18861    ;;
18862  esac
18863
18864  case $ac_option in
18865  # Handling of the options.
18866  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18867    ac_cs_recheck=: ;;
18868  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18869    $as_echo "$ac_cs_version"; exit ;;
18870  --config | --confi | --conf | --con | --co | --c )
18871    $as_echo "$ac_cs_config"; exit ;;
18872  --debug | --debu | --deb | --de | --d | -d )
18873    debug=: ;;
18874  --file | --fil | --fi | --f )
18875    $ac_shift
18876    case $ac_optarg in
18877    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18878    '') as_fn_error $? "missing file argument" ;;
18879    esac
18880    as_fn_append CONFIG_FILES " '$ac_optarg'"
18881    ac_need_defaults=false;;
18882  --header | --heade | --head | --hea )
18883    $ac_shift
18884    case $ac_optarg in
18885    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18886    esac
18887    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18888    ac_need_defaults=false;;
18889  --he | --h)
18890    # Conflict between --help and --header
18891    as_fn_error $? "ambiguous option: \`$1'
18892Try \`$0 --help' for more information.";;
18893  --help | --hel | -h )
18894    $as_echo "$ac_cs_usage"; exit ;;
18895  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18896  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18897    ac_cs_silent=: ;;
18898
18899  # This is an error.
18900  -*) as_fn_error $? "unrecognized option: \`$1'
18901Try \`$0 --help' for more information." ;;
18902
18903  *) as_fn_append ac_config_targets " $1"
18904     ac_need_defaults=false ;;
18905
18906  esac
18907  shift
18908done
18909
18910ac_configure_extra_args=
18911
18912if $ac_cs_silent; then
18913  exec 6>/dev/null
18914  ac_configure_extra_args="$ac_configure_extra_args --silent"
18915fi
18916
18917_ACEOF
18918cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18919if \$ac_cs_recheck; then
18920  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18921  shift
18922  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18923  CONFIG_SHELL='$SHELL'
18924  export CONFIG_SHELL
18925  exec "\$@"
18926fi
18927
18928_ACEOF
18929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18930exec 5>>config.log
18931{
18932  echo
18933  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18934## Running $as_me. ##
18935_ASBOX
18936  $as_echo "$ac_log"
18937} >&5
18938
18939_ACEOF
18940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18941#
18942# INIT-COMMANDS
18943#
18944AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18945
18946
18947# The HP-UX ksh and POSIX shell print the target directory to stdout
18948# if CDPATH is set.
18949(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18950
18951sed_quote_subst='$sed_quote_subst'
18952double_quote_subst='$double_quote_subst'
18953delay_variable_subst='$delay_variable_subst'
18954enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18955macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18956macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18957enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18958pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18959enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18960SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18961ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18962PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18963host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18964host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18965host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18966build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18967build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18968build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18969SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18970Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18971GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18972EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18973FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18974LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18975NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18976LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18977max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18978ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18979exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18980lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18981lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18982lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18983lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18984lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18985reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18986reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18987OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18988deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18989file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18990file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18991want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18992DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18993sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18994AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18995AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18996archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18997STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18998RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18999old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19000old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19001old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19002lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19003CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19004CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19005compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19006GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19007lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19008lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19009lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19010lt_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"`'
19011nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19012lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19013objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19014MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19015lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19016lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19017lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19018lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19019lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19020need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19021MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19022DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19023NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19024LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19025OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19026OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19027libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19028shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19029extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19030archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19031enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19032export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19033whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19034compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19035old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19036old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19037archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19038archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19039module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19040module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19041with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19042allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19043no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19044hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19045hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19046hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19047hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19048hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19049hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19050hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19051inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19052link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19053always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19054export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19055exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19056include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19057prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19058postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19059file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19060variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19061need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19062need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19063version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19064runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19065shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19066shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19067libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19068library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19069soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19070install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19071postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19072postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19073finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19074finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19075hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19076sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19077sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19078hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19079enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19080enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19081enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19082old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19083striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19084
19085LTCC='$LTCC'
19086LTCFLAGS='$LTCFLAGS'
19087compiler='$compiler_DEFAULT'
19088
19089# A function that is used when there is no print builtin or printf.
19090func_fallback_echo ()
19091{
19092  eval 'cat <<_LTECHO_EOF
19093\$1
19094_LTECHO_EOF'
19095}
19096
19097# Quote evaled strings.
19098for var in SHELL \
19099ECHO \
19100PATH_SEPARATOR \
19101SED \
19102GREP \
19103EGREP \
19104FGREP \
19105LD \
19106NM \
19107LN_S \
19108lt_SP2NL \
19109lt_NL2SP \
19110reload_flag \
19111OBJDUMP \
19112deplibs_check_method \
19113file_magic_cmd \
19114file_magic_glob \
19115want_nocaseglob \
19116DLLTOOL \
19117sharedlib_from_linklib_cmd \
19118AR \
19119AR_FLAGS \
19120archiver_list_spec \
19121STRIP \
19122RANLIB \
19123CC \
19124CFLAGS \
19125compiler \
19126lt_cv_sys_global_symbol_pipe \
19127lt_cv_sys_global_symbol_to_cdecl \
19128lt_cv_sys_global_symbol_to_c_name_address \
19129lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19130nm_file_list_spec \
19131lt_prog_compiler_no_builtin_flag \
19132lt_prog_compiler_pic \
19133lt_prog_compiler_wl \
19134lt_prog_compiler_static \
19135lt_cv_prog_compiler_c_o \
19136need_locks \
19137MANIFEST_TOOL \
19138DSYMUTIL \
19139NMEDIT \
19140LIPO \
19141OTOOL \
19142OTOOL64 \
19143shrext_cmds \
19144export_dynamic_flag_spec \
19145whole_archive_flag_spec \
19146compiler_needs_object \
19147with_gnu_ld \
19148allow_undefined_flag \
19149no_undefined_flag \
19150hardcode_libdir_flag_spec \
19151hardcode_libdir_separator \
19152exclude_expsyms \
19153include_expsyms \
19154file_list_spec \
19155variables_saved_for_relink \
19156libname_spec \
19157library_names_spec \
19158soname_spec \
19159install_override_mode \
19160finish_eval \
19161old_striplib \
19162striplib; do
19163    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19164    *[\\\\\\\`\\"\\\$]*)
19165      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19166      ;;
19167    *)
19168      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19169      ;;
19170    esac
19171done
19172
19173# Double-quote double-evaled strings.
19174for var in reload_cmds \
19175old_postinstall_cmds \
19176old_postuninstall_cmds \
19177old_archive_cmds \
19178extract_expsyms_cmds \
19179old_archive_from_new_cmds \
19180old_archive_from_expsyms_cmds \
19181archive_cmds \
19182archive_expsym_cmds \
19183module_cmds \
19184module_expsym_cmds \
19185export_symbols_cmds \
19186prelink_cmds \
19187postlink_cmds \
19188postinstall_cmds \
19189postuninstall_cmds \
19190finish_cmds \
19191sys_lib_search_path_spec \
19192sys_lib_dlsearch_path_spec; do
19193    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19194    *[\\\\\\\`\\"\\\$]*)
19195      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19196      ;;
19197    *)
19198      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19199      ;;
19200    esac
19201done
19202
19203ac_aux_dir='$ac_aux_dir'
19204xsi_shell='$xsi_shell'
19205lt_shell_append='$lt_shell_append'
19206
19207# See if we are running on zsh, and set the options which allow our
19208# commands through without removal of \ escapes INIT.
19209if test -n "\${ZSH_VERSION+set}" ; then
19210   setopt NO_GLOB_SUBST
19211fi
19212
19213
19214    PACKAGE='$PACKAGE'
19215    VERSION='$VERSION'
19216    TIMESTAMP='$TIMESTAMP'
19217    RM='$RM'
19218    ofile='$ofile'
19219
19220
19221
19222
19223_ACEOF
19224
19225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19226
19227# Handling of arguments.
19228for ac_config_target in $ac_config_targets
19229do
19230  case $ac_config_target in
19231    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19232    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19233    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19234    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19235    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19236    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19237
19238  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19239  esac
19240done
19241
19242
19243# If the user did not use the arguments to specify the items to instantiate,
19244# then the envvar interface is used.  Set only those that are not.
19245# We use the long form for the default assignment because of an extremely
19246# bizarre bug on SunOS 4.1.3.
19247if $ac_need_defaults; then
19248  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19249  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19250  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19251fi
19252
19253# Have a temporary directory for convenience.  Make it in the build tree
19254# simply because there is no reason against having it here, and in addition,
19255# creating and moving files from /tmp can sometimes cause problems.
19256# Hook for its removal unless debugging.
19257# Note that there is a small window in which the directory will not be cleaned:
19258# after its creation but before its name has been assigned to `$tmp'.
19259$debug ||
19260{
19261  tmp= ac_tmp=
19262  trap 'exit_status=$?
19263  : "${ac_tmp:=$tmp}"
19264  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19265' 0
19266  trap 'as_fn_exit 1' 1 2 13 15
19267}
19268# Create a (secure) tmp directory for tmp files.
19269
19270{
19271  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19272  test -d "$tmp"
19273}  ||
19274{
19275  tmp=./conf$$-$RANDOM
19276  (umask 077 && mkdir "$tmp")
19277} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19278ac_tmp=$tmp
19279
19280# Set up the scripts for CONFIG_FILES section.
19281# No need to generate them if there are no CONFIG_FILES.
19282# This happens for instance with `./config.status config.h'.
19283if test -n "$CONFIG_FILES"; then
19284
19285
19286ac_cr=`echo X | tr X '\015'`
19287# On cygwin, bash can eat \r inside `` if the user requested igncr.
19288# But we know of no other shell where ac_cr would be empty at this
19289# point, so we can use a bashism as a fallback.
19290if test "x$ac_cr" = x; then
19291  eval ac_cr=\$\'\\r\'
19292fi
19293ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19294if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19295  ac_cs_awk_cr='\\r'
19296else
19297  ac_cs_awk_cr=$ac_cr
19298fi
19299
19300echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19301_ACEOF
19302
19303
19304{
19305  echo "cat >conf$$subs.awk <<_ACEOF" &&
19306  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19307  echo "_ACEOF"
19308} >conf$$subs.sh ||
19309  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19310ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19311ac_delim='%!_!# '
19312for ac_last_try in false false false false false :; do
19313  . ./conf$$subs.sh ||
19314    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19315
19316  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19317  if test $ac_delim_n = $ac_delim_num; then
19318    break
19319  elif $ac_last_try; then
19320    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19321  else
19322    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19323  fi
19324done
19325rm -f conf$$subs.sh
19326
19327cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19328cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19329_ACEOF
19330sed -n '
19331h
19332s/^/S["/; s/!.*/"]=/
19333p
19334g
19335s/^[^!]*!//
19336:repl
19337t repl
19338s/'"$ac_delim"'$//
19339t delim
19340:nl
19341h
19342s/\(.\{148\}\)..*/\1/
19343t more1
19344s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19345p
19346n
19347b repl
19348:more1
19349s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19350p
19351g
19352s/.\{148\}//
19353t nl
19354:delim
19355h
19356s/\(.\{148\}\)..*/\1/
19357t more2
19358s/["\\]/\\&/g; s/^/"/; s/$/"/
19359p
19360b
19361:more2
19362s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19363p
19364g
19365s/.\{148\}//
19366t delim
19367' <conf$$subs.awk | sed '
19368/^[^""]/{
19369  N
19370  s/\n//
19371}
19372' >>$CONFIG_STATUS || ac_write_fail=1
19373rm -f conf$$subs.awk
19374cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19375_ACAWK
19376cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19377  for (key in S) S_is_set[key] = 1
19378  FS = ""
19379
19380}
19381{
19382  line = $ 0
19383  nfields = split(line, field, "@")
19384  substed = 0
19385  len = length(field[1])
19386  for (i = 2; i < nfields; i++) {
19387    key = field[i]
19388    keylen = length(key)
19389    if (S_is_set[key]) {
19390      value = S[key]
19391      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19392      len += length(value) + length(field[++i])
19393      substed = 1
19394    } else
19395      len += 1 + keylen
19396  }
19397
19398  print line
19399}
19400
19401_ACAWK
19402_ACEOF
19403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19404if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19405  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19406else
19407  cat
19408fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19409  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19410_ACEOF
19411
19412# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19413# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19414# trailing colons and then remove the whole line if VPATH becomes empty
19415# (actually we leave an empty line to preserve line numbers).
19416if test "x$srcdir" = x.; then
19417  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19418h
19419s///
19420s/^/:/
19421s/[	 ]*$/:/
19422s/:\$(srcdir):/:/g
19423s/:\${srcdir}:/:/g
19424s/:@srcdir@:/:/g
19425s/^:*//
19426s/:*$//
19427x
19428s/\(=[	 ]*\).*/\1/
19429G
19430s/\n//
19431s/^[^=]*=[	 ]*$//
19432}'
19433fi
19434
19435cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19436fi # test -n "$CONFIG_FILES"
19437
19438# Set up the scripts for CONFIG_HEADERS section.
19439# No need to generate them if there are no CONFIG_HEADERS.
19440# This happens for instance with `./config.status Makefile'.
19441if test -n "$CONFIG_HEADERS"; then
19442cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19443BEGIN {
19444_ACEOF
19445
19446# Transform confdefs.h into an awk script `defines.awk', embedded as
19447# here-document in config.status, that substitutes the proper values into
19448# config.h.in to produce config.h.
19449
19450# Create a delimiter string that does not exist in confdefs.h, to ease
19451# handling of long lines.
19452ac_delim='%!_!# '
19453for ac_last_try in false false :; do
19454  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19455  if test -z "$ac_tt"; then
19456    break
19457  elif $ac_last_try; then
19458    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19459  else
19460    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19461  fi
19462done
19463
19464# For the awk script, D is an array of macro values keyed by name,
19465# likewise P contains macro parameters if any.  Preserve backslash
19466# newline sequences.
19467
19468ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19469sed -n '
19470s/.\{148\}/&'"$ac_delim"'/g
19471t rset
19472:rset
19473s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19474t def
19475d
19476:def
19477s/\\$//
19478t bsnl
19479s/["\\]/\\&/g
19480s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19481D["\1"]=" \3"/p
19482s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19483d
19484:bsnl
19485s/["\\]/\\&/g
19486s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19487D["\1"]=" \3\\\\\\n"\\/p
19488t cont
19489s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19490t cont
19491d
19492:cont
19493n
19494s/.\{148\}/&'"$ac_delim"'/g
19495t clear
19496:clear
19497s/\\$//
19498t bsnlc
19499s/["\\]/\\&/g; s/^/"/; s/$/"/p
19500d
19501:bsnlc
19502s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19503b cont
19504' <confdefs.h | sed '
19505s/'"$ac_delim"'/"\\\
19506"/g' >>$CONFIG_STATUS || ac_write_fail=1
19507
19508cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19509  for (key in D) D_is_set[key] = 1
19510  FS = ""
19511}
19512/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19513  line = \$ 0
19514  split(line, arg, " ")
19515  if (arg[1] == "#") {
19516    defundef = arg[2]
19517    mac1 = arg[3]
19518  } else {
19519    defundef = substr(arg[1], 2)
19520    mac1 = arg[2]
19521  }
19522  split(mac1, mac2, "(") #)
19523  macro = mac2[1]
19524  prefix = substr(line, 1, index(line, defundef) - 1)
19525  if (D_is_set[macro]) {
19526    # Preserve the white space surrounding the "#".
19527    print prefix "define", macro P[macro] D[macro]
19528    next
19529  } else {
19530    # Replace #undef with comments.  This is necessary, for example,
19531    # in the case of _POSIX_SOURCE, which is predefined and required
19532    # on some systems where configure will not decide to define it.
19533    if (defundef == "undef") {
19534      print "/*", prefix defundef, macro, "*/"
19535      next
19536    }
19537  }
19538}
19539{ print }
19540_ACAWK
19541_ACEOF
19542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19543  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19544fi # test -n "$CONFIG_HEADERS"
19545
19546
19547eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19548shift
19549for ac_tag
19550do
19551  case $ac_tag in
19552  :[FHLC]) ac_mode=$ac_tag; continue;;
19553  esac
19554  case $ac_mode$ac_tag in
19555  :[FHL]*:*);;
19556  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19557  :[FH]-) ac_tag=-:-;;
19558  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19559  esac
19560  ac_save_IFS=$IFS
19561  IFS=:
19562  set x $ac_tag
19563  IFS=$ac_save_IFS
19564  shift
19565  ac_file=$1
19566  shift
19567
19568  case $ac_mode in
19569  :L) ac_source=$1;;
19570  :[FH])
19571    ac_file_inputs=
19572    for ac_f
19573    do
19574      case $ac_f in
19575      -) ac_f="$ac_tmp/stdin";;
19576      *) # Look for the file first in the build tree, then in the source tree
19577	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19578	 # because $ac_f cannot contain `:'.
19579	 test -f "$ac_f" ||
19580	   case $ac_f in
19581	   [\\/$]*) false;;
19582	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19583	   esac ||
19584	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19585      esac
19586      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19587      as_fn_append ac_file_inputs " '$ac_f'"
19588    done
19589
19590    # Let's still pretend it is `configure' which instantiates (i.e., don't
19591    # use $as_me), people would be surprised to read:
19592    #    /* config.h.  Generated by config.status.  */
19593    configure_input='Generated from '`
19594	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19595	`' by configure.'
19596    if test x"$ac_file" != x-; then
19597      configure_input="$ac_file.  $configure_input"
19598      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19599$as_echo "$as_me: creating $ac_file" >&6;}
19600    fi
19601    # Neutralize special characters interpreted by sed in replacement strings.
19602    case $configure_input in #(
19603    *\&* | *\|* | *\\* )
19604       ac_sed_conf_input=`$as_echo "$configure_input" |
19605       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19606    *) ac_sed_conf_input=$configure_input;;
19607    esac
19608
19609    case $ac_tag in
19610    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19611      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19612    esac
19613    ;;
19614  esac
19615
19616  ac_dir=`$as_dirname -- "$ac_file" ||
19617$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19618	 X"$ac_file" : 'X\(//\)[^/]' \| \
19619	 X"$ac_file" : 'X\(//\)$' \| \
19620	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19621$as_echo X"$ac_file" |
19622    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19623	    s//\1/
19624	    q
19625	  }
19626	  /^X\(\/\/\)[^/].*/{
19627	    s//\1/
19628	    q
19629	  }
19630	  /^X\(\/\/\)$/{
19631	    s//\1/
19632	    q
19633	  }
19634	  /^X\(\/\).*/{
19635	    s//\1/
19636	    q
19637	  }
19638	  s/.*/./; q'`
19639  as_dir="$ac_dir"; as_fn_mkdir_p
19640  ac_builddir=.
19641
19642case "$ac_dir" in
19643.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19644*)
19645  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19646  # A ".." for each directory in $ac_dir_suffix.
19647  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19648  case $ac_top_builddir_sub in
19649  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19650  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19651  esac ;;
19652esac
19653ac_abs_top_builddir=$ac_pwd
19654ac_abs_builddir=$ac_pwd$ac_dir_suffix
19655# for backward compatibility:
19656ac_top_builddir=$ac_top_build_prefix
19657
19658case $srcdir in
19659  .)  # We are building in place.
19660    ac_srcdir=.
19661    ac_top_srcdir=$ac_top_builddir_sub
19662    ac_abs_top_srcdir=$ac_pwd ;;
19663  [\\/]* | ?:[\\/]* )  # Absolute name.
19664    ac_srcdir=$srcdir$ac_dir_suffix;
19665    ac_top_srcdir=$srcdir
19666    ac_abs_top_srcdir=$srcdir ;;
19667  *) # Relative name.
19668    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19669    ac_top_srcdir=$ac_top_build_prefix$srcdir
19670    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19671esac
19672ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19673
19674
19675  case $ac_mode in
19676  :F)
19677  #
19678  # CONFIG_FILE
19679  #
19680
19681  case $INSTALL in
19682  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19683  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19684  esac
19685  ac_MKDIR_P=$MKDIR_P
19686  case $MKDIR_P in
19687  [\\/$]* | ?:[\\/]* ) ;;
19688  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19689  esac
19690_ACEOF
19691
19692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19693# If the template does not know about datarootdir, expand it.
19694# FIXME: This hack should be removed a few years after 2.60.
19695ac_datarootdir_hack=; ac_datarootdir_seen=
19696ac_sed_dataroot='
19697/datarootdir/ {
19698  p
19699  q
19700}
19701/@datadir@/p
19702/@docdir@/p
19703/@infodir@/p
19704/@localedir@/p
19705/@mandir@/p'
19706case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19707*datarootdir*) ac_datarootdir_seen=yes;;
19708*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19709  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19710$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19711_ACEOF
19712cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19713  ac_datarootdir_hack='
19714  s&@datadir@&$datadir&g
19715  s&@docdir@&$docdir&g
19716  s&@infodir@&$infodir&g
19717  s&@localedir@&$localedir&g
19718  s&@mandir@&$mandir&g
19719  s&\\\${datarootdir}&$datarootdir&g' ;;
19720esac
19721_ACEOF
19722
19723# Neutralize VPATH when `$srcdir' = `.'.
19724# Shell code in configure.ac might set extrasub.
19725# FIXME: do we really want to maintain this feature?
19726cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19727ac_sed_extra="$ac_vpsub
19728$extrasub
19729_ACEOF
19730cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19731:t
19732/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19733s|@configure_input@|$ac_sed_conf_input|;t t
19734s&@top_builddir@&$ac_top_builddir_sub&;t t
19735s&@top_build_prefix@&$ac_top_build_prefix&;t t
19736s&@srcdir@&$ac_srcdir&;t t
19737s&@abs_srcdir@&$ac_abs_srcdir&;t t
19738s&@top_srcdir@&$ac_top_srcdir&;t t
19739s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19740s&@builddir@&$ac_builddir&;t t
19741s&@abs_builddir@&$ac_abs_builddir&;t t
19742s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19743s&@INSTALL@&$ac_INSTALL&;t t
19744s&@MKDIR_P@&$ac_MKDIR_P&;t t
19745$ac_datarootdir_hack
19746"
19747eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19748  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19749
19750test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19751  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19752  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19753      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19754  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19755which seems to be undefined.  Please make sure it is defined" >&5
19756$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19757which seems to be undefined.  Please make sure it is defined" >&2;}
19758
19759  rm -f "$ac_tmp/stdin"
19760  case $ac_file in
19761  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19762  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19763  esac \
19764  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19765 ;;
19766  :H)
19767  #
19768  # CONFIG_HEADER
19769  #
19770  if test x"$ac_file" != x-; then
19771    {
19772      $as_echo "/* $configure_input  */" \
19773      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19774    } >"$ac_tmp/config.h" \
19775      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19776    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19777      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19778$as_echo "$as_me: $ac_file is unchanged" >&6;}
19779    else
19780      rm -f "$ac_file"
19781      mv "$ac_tmp/config.h" "$ac_file" \
19782	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19783    fi
19784  else
19785    $as_echo "/* $configure_input  */" \
19786      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19787      || as_fn_error $? "could not create -" "$LINENO" 5
19788  fi
19789# Compute "$ac_file"'s index in $config_headers.
19790_am_arg="$ac_file"
19791_am_stamp_count=1
19792for _am_header in $config_headers :; do
19793  case $_am_header in
19794    $_am_arg | $_am_arg:* )
19795      break ;;
19796    * )
19797      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19798  esac
19799done
19800echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19801$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19802	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19803	 X"$_am_arg" : 'X\(//\)$' \| \
19804	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19805$as_echo X"$_am_arg" |
19806    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19807	    s//\1/
19808	    q
19809	  }
19810	  /^X\(\/\/\)[^/].*/{
19811	    s//\1/
19812	    q
19813	  }
19814	  /^X\(\/\/\)$/{
19815	    s//\1/
19816	    q
19817	  }
19818	  /^X\(\/\).*/{
19819	    s//\1/
19820	    q
19821	  }
19822	  s/.*/./; q'`/stamp-h$_am_stamp_count
19823 ;;
19824
19825  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19826$as_echo "$as_me: executing $ac_file commands" >&6;}
19827 ;;
19828  esac
19829
19830
19831  case $ac_file$ac_mode in
19832    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19833  # Autoconf 2.62 quotes --file arguments for eval, but not when files
19834  # are listed without --file.  Let's play safe and only enable the eval
19835  # if we detect the quoting.
19836  case $CONFIG_FILES in
19837  *\'*) eval set x "$CONFIG_FILES" ;;
19838  *)   set x $CONFIG_FILES ;;
19839  esac
19840  shift
19841  for mf
19842  do
19843    # Strip MF so we end up with the name of the file.
19844    mf=`echo "$mf" | sed -e 's/:.*$//'`
19845    # Check whether this is an Automake generated Makefile or not.
19846    # We used to match only the files named `Makefile.in', but
19847    # some people rename them; so instead we look at the file content.
19848    # Grep'ing the first line is not enough: some people post-process
19849    # each Makefile.in and add a new line on top of each file to say so.
19850    # Grep'ing the whole file is not good either: AIX grep has a line
19851    # limit of 2048, but all sed's we know have understand at least 4000.
19852    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19853      dirpart=`$as_dirname -- "$mf" ||
19854$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19855	 X"$mf" : 'X\(//\)[^/]' \| \
19856	 X"$mf" : 'X\(//\)$' \| \
19857	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19858$as_echo X"$mf" |
19859    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19860	    s//\1/
19861	    q
19862	  }
19863	  /^X\(\/\/\)[^/].*/{
19864	    s//\1/
19865	    q
19866	  }
19867	  /^X\(\/\/\)$/{
19868	    s//\1/
19869	    q
19870	  }
19871	  /^X\(\/\).*/{
19872	    s//\1/
19873	    q
19874	  }
19875	  s/.*/./; q'`
19876    else
19877      continue
19878    fi
19879    # Extract the definition of DEPDIR, am__include, and am__quote
19880    # from the Makefile without running `make'.
19881    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19882    test -z "$DEPDIR" && continue
19883    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19884    test -z "am__include" && continue
19885    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19886    # When using ansi2knr, U may be empty or an underscore; expand it
19887    U=`sed -n 's/^U = //p' < "$mf"`
19888    # Find all dependency output files, they are included files with
19889    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19890    # simplest approach to changing $(DEPDIR) to its actual value in the
19891    # expansion.
19892    for file in `sed -n "
19893      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19894	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19895      # Make sure the directory exists.
19896      test -f "$dirpart/$file" && continue
19897      fdir=`$as_dirname -- "$file" ||
19898$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19899	 X"$file" : 'X\(//\)[^/]' \| \
19900	 X"$file" : 'X\(//\)$' \| \
19901	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19902$as_echo X"$file" |
19903    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19904	    s//\1/
19905	    q
19906	  }
19907	  /^X\(\/\/\)[^/].*/{
19908	    s//\1/
19909	    q
19910	  }
19911	  /^X\(\/\/\)$/{
19912	    s//\1/
19913	    q
19914	  }
19915	  /^X\(\/\).*/{
19916	    s//\1/
19917	    q
19918	  }
19919	  s/.*/./; q'`
19920      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19921      # echo "creating $dirpart/$file"
19922      echo '# dummy' > "$dirpart/$file"
19923    done
19924  done
19925}
19926 ;;
19927    "libtool":C)
19928
19929    # See if we are running on zsh, and set the options which allow our
19930    # commands through without removal of \ escapes.
19931    if test -n "${ZSH_VERSION+set}" ; then
19932      setopt NO_GLOB_SUBST
19933    fi
19934
19935    cfgfile="${ofile}T"
19936    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19937    $RM "$cfgfile"
19938
19939    cat <<_LT_EOF >> "$cfgfile"
19940#! $SHELL
19941
19942# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19943# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19944# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19945# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19946#
19947#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19948#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19949#                 Foundation, Inc.
19950#   Written by Gordon Matzigkeit, 1996
19951#
19952#   This file is part of GNU Libtool.
19953#
19954# GNU Libtool is free software; you can redistribute it and/or
19955# modify it under the terms of the GNU General Public License as
19956# published by the Free Software Foundation; either version 2 of
19957# the License, or (at your option) any later version.
19958#
19959# As a special exception to the GNU General Public License,
19960# if you distribute this file as part of a program or library that
19961# is built using GNU Libtool, you may include this file under the
19962# same distribution terms that you use for the rest of that program.
19963#
19964# GNU Libtool is distributed in the hope that it will be useful,
19965# but WITHOUT ANY WARRANTY; without even the implied warranty of
19966# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19967# GNU General Public License for more details.
19968#
19969# You should have received a copy of the GNU General Public License
19970# along with GNU Libtool; see the file COPYING.  If not, a copy
19971# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19972# obtained by writing to the Free Software Foundation, Inc.,
19973# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19974
19975
19976# The names of the tagged configurations supported by this script.
19977available_tags=""
19978
19979# ### BEGIN LIBTOOL CONFIG
19980
19981# Whether or not to build static libraries.
19982build_old_libs=$enable_static
19983
19984# Which release of libtool.m4 was used?
19985macro_version=$macro_version
19986macro_revision=$macro_revision
19987
19988# Whether or not to build shared libraries.
19989build_libtool_libs=$enable_shared
19990
19991# What type of objects to build.
19992pic_mode=$pic_mode
19993
19994# Whether or not to optimize for fast installation.
19995fast_install=$enable_fast_install
19996
19997# Shell to use when invoking shell scripts.
19998SHELL=$lt_SHELL
19999
20000# An echo program that protects backslashes.
20001ECHO=$lt_ECHO
20002
20003# The PATH separator for the build system.
20004PATH_SEPARATOR=$lt_PATH_SEPARATOR
20005
20006# The host system.
20007host_alias=$host_alias
20008host=$host
20009host_os=$host_os
20010
20011# The build system.
20012build_alias=$build_alias
20013build=$build
20014build_os=$build_os
20015
20016# A sed program that does not truncate output.
20017SED=$lt_SED
20018
20019# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20020Xsed="\$SED -e 1s/^X//"
20021
20022# A grep program that handles long lines.
20023GREP=$lt_GREP
20024
20025# An ERE matcher.
20026EGREP=$lt_EGREP
20027
20028# A literal string matcher.
20029FGREP=$lt_FGREP
20030
20031# A BSD- or MS-compatible name lister.
20032NM=$lt_NM
20033
20034# Whether we need soft or hard links.
20035LN_S=$lt_LN_S
20036
20037# What is the maximum length of a command?
20038max_cmd_len=$max_cmd_len
20039
20040# Object file suffix (normally "o").
20041objext=$ac_objext
20042
20043# Executable file suffix (normally "").
20044exeext=$exeext
20045
20046# whether the shell understands "unset".
20047lt_unset=$lt_unset
20048
20049# turn spaces into newlines.
20050SP2NL=$lt_lt_SP2NL
20051
20052# turn newlines into spaces.
20053NL2SP=$lt_lt_NL2SP
20054
20055# convert \$build file names to \$host format.
20056to_host_file_cmd=$lt_cv_to_host_file_cmd
20057
20058# convert \$build files to toolchain format.
20059to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20060
20061# An object symbol dumper.
20062OBJDUMP=$lt_OBJDUMP
20063
20064# Method to check whether dependent libraries are shared objects.
20065deplibs_check_method=$lt_deplibs_check_method
20066
20067# Command to use when deplibs_check_method = "file_magic".
20068file_magic_cmd=$lt_file_magic_cmd
20069
20070# How to find potential files when deplibs_check_method = "file_magic".
20071file_magic_glob=$lt_file_magic_glob
20072
20073# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20074want_nocaseglob=$lt_want_nocaseglob
20075
20076# DLL creation program.
20077DLLTOOL=$lt_DLLTOOL
20078
20079# Command to associate shared and link libraries.
20080sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20081
20082# The archiver.
20083AR=$lt_AR
20084
20085# Flags to create an archive.
20086AR_FLAGS=$lt_AR_FLAGS
20087
20088# How to feed a file listing to the archiver.
20089archiver_list_spec=$lt_archiver_list_spec
20090
20091# A symbol stripping program.
20092STRIP=$lt_STRIP
20093
20094# Commands used to install an old-style archive.
20095RANLIB=$lt_RANLIB
20096old_postinstall_cmds=$lt_old_postinstall_cmds
20097old_postuninstall_cmds=$lt_old_postuninstall_cmds
20098
20099# Whether to use a lock for old archive extraction.
20100lock_old_archive_extraction=$lock_old_archive_extraction
20101
20102# A C compiler.
20103LTCC=$lt_CC
20104
20105# LTCC compiler flags.
20106LTCFLAGS=$lt_CFLAGS
20107
20108# Take the output of nm and produce a listing of raw symbols and C names.
20109global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20110
20111# Transform the output of nm in a proper C declaration.
20112global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20113
20114# Transform the output of nm in a C name address pair.
20115global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20116
20117# Transform the output of nm in a C name address pair when lib prefix is needed.
20118global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20119
20120# Specify filename containing input files for \$NM.
20121nm_file_list_spec=$lt_nm_file_list_spec
20122
20123# The root where to search for dependent libraries,and in which our libraries should be installed.
20124lt_sysroot=$lt_sysroot
20125
20126# The name of the directory that contains temporary libtool files.
20127objdir=$objdir
20128
20129# Used to examine libraries when file_magic_cmd begins with "file".
20130MAGIC_CMD=$MAGIC_CMD
20131
20132# Must we lock files when doing compilation?
20133need_locks=$lt_need_locks
20134
20135# Manifest tool.
20136MANIFEST_TOOL=$lt_MANIFEST_TOOL
20137
20138# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20139DSYMUTIL=$lt_DSYMUTIL
20140
20141# Tool to change global to local symbols on Mac OS X.
20142NMEDIT=$lt_NMEDIT
20143
20144# Tool to manipulate fat objects and archives on Mac OS X.
20145LIPO=$lt_LIPO
20146
20147# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20148OTOOL=$lt_OTOOL
20149
20150# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20151OTOOL64=$lt_OTOOL64
20152
20153# Old archive suffix (normally "a").
20154libext=$libext
20155
20156# Shared library suffix (normally ".so").
20157shrext_cmds=$lt_shrext_cmds
20158
20159# The commands to extract the exported symbol list from a shared archive.
20160extract_expsyms_cmds=$lt_extract_expsyms_cmds
20161
20162# Variables whose values should be saved in libtool wrapper scripts and
20163# restored at link time.
20164variables_saved_for_relink=$lt_variables_saved_for_relink
20165
20166# Do we need the "lib" prefix for modules?
20167need_lib_prefix=$need_lib_prefix
20168
20169# Do we need a version for libraries?
20170need_version=$need_version
20171
20172# Library versioning type.
20173version_type=$version_type
20174
20175# Shared library runtime path variable.
20176runpath_var=$runpath_var
20177
20178# Shared library path variable.
20179shlibpath_var=$shlibpath_var
20180
20181# Is shlibpath searched before the hard-coded library search path?
20182shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20183
20184# Format of library name prefix.
20185libname_spec=$lt_libname_spec
20186
20187# List of archive names.  First name is the real one, the rest are links.
20188# The last name is the one that the linker finds with -lNAME
20189library_names_spec=$lt_library_names_spec
20190
20191# The coded name of the library, if different from the real name.
20192soname_spec=$lt_soname_spec
20193
20194# Permission mode override for installation of shared libraries.
20195install_override_mode=$lt_install_override_mode
20196
20197# Command to use after installation of a shared archive.
20198postinstall_cmds=$lt_postinstall_cmds
20199
20200# Command to use after uninstallation of a shared archive.
20201postuninstall_cmds=$lt_postuninstall_cmds
20202
20203# Commands used to finish a libtool library installation in a directory.
20204finish_cmds=$lt_finish_cmds
20205
20206# As "finish_cmds", except a single script fragment to be evaled but
20207# not shown.
20208finish_eval=$lt_finish_eval
20209
20210# Whether we should hardcode library paths into libraries.
20211hardcode_into_libs=$hardcode_into_libs
20212
20213# Compile-time system search path for libraries.
20214sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20215
20216# Run-time system search path for libraries.
20217sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20218
20219# Whether dlopen is supported.
20220dlopen_support=$enable_dlopen
20221
20222# Whether dlopen of programs is supported.
20223dlopen_self=$enable_dlopen_self
20224
20225# Whether dlopen of statically linked programs is supported.
20226dlopen_self_static=$enable_dlopen_self_static
20227
20228# Commands to strip libraries.
20229old_striplib=$lt_old_striplib
20230striplib=$lt_striplib
20231
20232
20233# The linker used to build libraries.
20234LD=$lt_LD
20235
20236# How to create reloadable object files.
20237reload_flag=$lt_reload_flag
20238reload_cmds=$lt_reload_cmds
20239
20240# Commands used to build an old-style archive.
20241old_archive_cmds=$lt_old_archive_cmds
20242
20243# A language specific compiler.
20244CC=$lt_compiler
20245
20246# Is the compiler the GNU compiler?
20247with_gcc=$GCC
20248
20249# Compiler flag to turn off builtin functions.
20250no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20251
20252# Additional compiler flags for building library objects.
20253pic_flag=$lt_lt_prog_compiler_pic
20254
20255# How to pass a linker flag through the compiler.
20256wl=$lt_lt_prog_compiler_wl
20257
20258# Compiler flag to prevent dynamic linking.
20259link_static_flag=$lt_lt_prog_compiler_static
20260
20261# Does compiler simultaneously support -c and -o options?
20262compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20263
20264# Whether or not to add -lc for building shared libraries.
20265build_libtool_need_lc=$archive_cmds_need_lc
20266
20267# Whether or not to disallow shared libs when runtime libs are static.
20268allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20269
20270# Compiler flag to allow reflexive dlopens.
20271export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20272
20273# Compiler flag to generate shared objects directly from archives.
20274whole_archive_flag_spec=$lt_whole_archive_flag_spec
20275
20276# Whether the compiler copes with passing no objects directly.
20277compiler_needs_object=$lt_compiler_needs_object
20278
20279# Create an old-style archive from a shared archive.
20280old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20281
20282# Create a temporary old-style archive to link instead of a shared archive.
20283old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20284
20285# Commands used to build a shared archive.
20286archive_cmds=$lt_archive_cmds
20287archive_expsym_cmds=$lt_archive_expsym_cmds
20288
20289# Commands used to build a loadable module if different from building
20290# a shared archive.
20291module_cmds=$lt_module_cmds
20292module_expsym_cmds=$lt_module_expsym_cmds
20293
20294# Whether we are building with GNU ld or not.
20295with_gnu_ld=$lt_with_gnu_ld
20296
20297# Flag that allows shared libraries with undefined symbols to be built.
20298allow_undefined_flag=$lt_allow_undefined_flag
20299
20300# Flag that enforces no undefined symbols.
20301no_undefined_flag=$lt_no_undefined_flag
20302
20303# Flag to hardcode \$libdir into a binary during linking.
20304# This must work even if \$libdir does not exist
20305hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20306
20307# Whether we need a single "-rpath" flag with a separated argument.
20308hardcode_libdir_separator=$lt_hardcode_libdir_separator
20309
20310# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20311# DIR into the resulting binary.
20312hardcode_direct=$hardcode_direct
20313
20314# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20315# DIR into the resulting binary and the resulting library dependency is
20316# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20317# library is relocated.
20318hardcode_direct_absolute=$hardcode_direct_absolute
20319
20320# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20321# into the resulting binary.
20322hardcode_minus_L=$hardcode_minus_L
20323
20324# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20325# into the resulting binary.
20326hardcode_shlibpath_var=$hardcode_shlibpath_var
20327
20328# Set to "yes" if building a shared library automatically hardcodes DIR
20329# into the library and all subsequent libraries and executables linked
20330# against it.
20331hardcode_automatic=$hardcode_automatic
20332
20333# Set to yes if linker adds runtime paths of dependent libraries
20334# to runtime path list.
20335inherit_rpath=$inherit_rpath
20336
20337# Whether libtool must link a program against all its dependency libraries.
20338link_all_deplibs=$link_all_deplibs
20339
20340# Set to "yes" if exported symbols are required.
20341always_export_symbols=$always_export_symbols
20342
20343# The commands to list exported symbols.
20344export_symbols_cmds=$lt_export_symbols_cmds
20345
20346# Symbols that should not be listed in the preloaded symbols.
20347exclude_expsyms=$lt_exclude_expsyms
20348
20349# Symbols that must always be exported.
20350include_expsyms=$lt_include_expsyms
20351
20352# Commands necessary for linking programs (against libraries) with templates.
20353prelink_cmds=$lt_prelink_cmds
20354
20355# Commands necessary for finishing linking programs.
20356postlink_cmds=$lt_postlink_cmds
20357
20358# Specify filename containing input files.
20359file_list_spec=$lt_file_list_spec
20360
20361# How to hardcode a shared library path into an executable.
20362hardcode_action=$hardcode_action
20363
20364# ### END LIBTOOL CONFIG
20365
20366_LT_EOF
20367
20368  case $host_os in
20369  aix3*)
20370    cat <<\_LT_EOF >> "$cfgfile"
20371# AIX sometimes has problems with the GCC collect2 program.  For some
20372# reason, if we set the COLLECT_NAMES environment variable, the problems
20373# vanish in a puff of smoke.
20374if test "X${COLLECT_NAMES+set}" != Xset; then
20375  COLLECT_NAMES=
20376  export COLLECT_NAMES
20377fi
20378_LT_EOF
20379    ;;
20380  esac
20381
20382
20383ltmain="$ac_aux_dir/ltmain.sh"
20384
20385
20386  # We use sed instead of cat because bash on DJGPP gets confused if
20387  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20388  # text mode, it properly converts lines to CR/LF.  This bash problem
20389  # is reportedly fixed, but why not run on old versions too?
20390  sed '$q' "$ltmain" >> "$cfgfile" \
20391     || (rm -f "$cfgfile"; exit 1)
20392
20393  if test x"$xsi_shell" = xyes; then
20394  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20395func_dirname ()\
20396{\
20397\    case ${1} in\
20398\      */*) func_dirname_result="${1%/*}${2}" ;;\
20399\      *  ) func_dirname_result="${3}" ;;\
20400\    esac\
20401} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20402  && mv -f "$cfgfile.tmp" "$cfgfile" \
20403    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20404test 0 -eq $? || _lt_function_replace_fail=:
20405
20406
20407  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20408func_basename ()\
20409{\
20410\    func_basename_result="${1##*/}"\
20411} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20412  && mv -f "$cfgfile.tmp" "$cfgfile" \
20413    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20414test 0 -eq $? || _lt_function_replace_fail=:
20415
20416
20417  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20418func_dirname_and_basename ()\
20419{\
20420\    case ${1} in\
20421\      */*) func_dirname_result="${1%/*}${2}" ;;\
20422\      *  ) func_dirname_result="${3}" ;;\
20423\    esac\
20424\    func_basename_result="${1##*/}"\
20425} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20426  && mv -f "$cfgfile.tmp" "$cfgfile" \
20427    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20428test 0 -eq $? || _lt_function_replace_fail=:
20429
20430
20431  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20432func_stripname ()\
20433{\
20434\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20435\    # positional parameters, so assign one to ordinary parameter first.\
20436\    func_stripname_result=${3}\
20437\    func_stripname_result=${func_stripname_result#"${1}"}\
20438\    func_stripname_result=${func_stripname_result%"${2}"}\
20439} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20440  && mv -f "$cfgfile.tmp" "$cfgfile" \
20441    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20442test 0 -eq $? || _lt_function_replace_fail=:
20443
20444
20445  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20446func_split_long_opt ()\
20447{\
20448\    func_split_long_opt_name=${1%%=*}\
20449\    func_split_long_opt_arg=${1#*=}\
20450} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20451  && mv -f "$cfgfile.tmp" "$cfgfile" \
20452    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20453test 0 -eq $? || _lt_function_replace_fail=:
20454
20455
20456  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20457func_split_short_opt ()\
20458{\
20459\    func_split_short_opt_arg=${1#??}\
20460\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20461} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20462  && mv -f "$cfgfile.tmp" "$cfgfile" \
20463    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20464test 0 -eq $? || _lt_function_replace_fail=:
20465
20466
20467  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20468func_lo2o ()\
20469{\
20470\    case ${1} in\
20471\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20472\      *)    func_lo2o_result=${1} ;;\
20473\    esac\
20474} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20475  && mv -f "$cfgfile.tmp" "$cfgfile" \
20476    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20477test 0 -eq $? || _lt_function_replace_fail=:
20478
20479
20480  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20481func_xform ()\
20482{\
20483    func_xform_result=${1%.*}.lo\
20484} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20485  && mv -f "$cfgfile.tmp" "$cfgfile" \
20486    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20487test 0 -eq $? || _lt_function_replace_fail=:
20488
20489
20490  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20491func_arith ()\
20492{\
20493    func_arith_result=$(( $* ))\
20494} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20495  && mv -f "$cfgfile.tmp" "$cfgfile" \
20496    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20497test 0 -eq $? || _lt_function_replace_fail=:
20498
20499
20500  sed -e '/^func_len ()$/,/^} # func_len /c\
20501func_len ()\
20502{\
20503    func_len_result=${#1}\
20504} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20505  && mv -f "$cfgfile.tmp" "$cfgfile" \
20506    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20507test 0 -eq $? || _lt_function_replace_fail=:
20508
20509fi
20510
20511if test x"$lt_shell_append" = xyes; then
20512  sed -e '/^func_append ()$/,/^} # func_append /c\
20513func_append ()\
20514{\
20515    eval "${1}+=\\${2}"\
20516} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20517  && mv -f "$cfgfile.tmp" "$cfgfile" \
20518    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20519test 0 -eq $? || _lt_function_replace_fail=:
20520
20521
20522  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20523func_append_quoted ()\
20524{\
20525\    func_quote_for_eval "${2}"\
20526\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20527} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20528  && mv -f "$cfgfile.tmp" "$cfgfile" \
20529    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20530test 0 -eq $? || _lt_function_replace_fail=:
20531
20532
20533  # Save a `func_append' function call where possible by direct use of '+='
20534  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20535    && mv -f "$cfgfile.tmp" "$cfgfile" \
20536      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20537  test 0 -eq $? || _lt_function_replace_fail=:
20538else
20539  # Save a `func_append' function call even when '+=' is not available
20540  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20541    && mv -f "$cfgfile.tmp" "$cfgfile" \
20542      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20543  test 0 -eq $? || _lt_function_replace_fail=:
20544fi
20545
20546if test x"$_lt_function_replace_fail" = x":"; then
20547  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20548$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20549fi
20550
20551
20552   mv -f "$cfgfile" "$ofile" ||
20553    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20554  chmod +x "$ofile"
20555
20556 ;;
20557
20558  esac
20559done # for ac_tag
20560
20561
20562as_fn_exit 0
20563_ACEOF
20564ac_clean_files=$ac_clean_files_save
20565
20566test $ac_write_fail = 0 ||
20567  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20568
20569
20570# configure is writing to config.log, and then calls config.status.
20571# config.status does its own redirection, appending to config.log.
20572# Unfortunately, on DOS this fails, as config.log is still kept open
20573# by configure, so config.status won't be able to write to it; its
20574# output is simply discarded.  So we exec the FD to /dev/null,
20575# effectively closing config.log, so it can be properly (re)opened and
20576# appended to by config.status.  When coming back to configure, we
20577# need to make the FD available again.
20578if test "$no_create" != yes; then
20579  ac_cs_success=:
20580  ac_config_status_args=
20581  test "$silent" = yes &&
20582    ac_config_status_args="$ac_config_status_args --quiet"
20583  exec 5>/dev/null
20584  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20585  exec 5>>config.log
20586  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20587  # would make configure fail if this is the last instruction.
20588  $ac_cs_success || as_fn_exit 1
20589fi
20590if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20591  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20592$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20593fi
20594
20595