configure revision 3e51e026
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for xf86-video-ark 0.7.5.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/ark>.
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/ark
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-ark'
573PACKAGE_TARNAME='xf86-video-ark'
574PACKAGE_VERSION='0.7.5'
575PACKAGE_STRING='xf86-video-ark 0.7.5'
576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/ark'
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
621XAA_FALSE
622XAA_TRUE
623XSERVER_LIBPCIACCESS_FALSE
624XSERVER_LIBPCIACCESS_TRUE
625PCIACCESS_LIBS
626PCIACCESS_CFLAGS
627XORG_LIBS
628XORG_CFLAGS
629moduledir
630OTOOL64
631OTOOL
632LIPO
633NMEDIT
634DSYMUTIL
635MANIFEST_TOOL
636RANLIB
637ac_ct_AR
638AR
639DLLTOOL
640OBJDUMP
641LN_S
642NM
643ac_ct_DUMPBIN
644DUMPBIN
645LD
646FGREP
647LIBTOOL
648AM_BACKSLASH
649AM_DEFAULT_VERBOSITY
650AM_DEFAULT_V
651AM_V
652MAN_SUBSTS
653XORG_MAN_PAGE
654ADMIN_MAN_DIR
655DRIVER_MAN_DIR
656MISC_MAN_DIR
657FILE_MAN_DIR
658LIB_MAN_DIR
659APP_MAN_DIR
660ADMIN_MAN_SUFFIX
661DRIVER_MAN_SUFFIX
662MISC_MAN_SUFFIX
663FILE_MAN_SUFFIX
664LIB_MAN_SUFFIX
665APP_MAN_SUFFIX
666SED
667host_os
668host_vendor
669host_cpu
670host
671build_os
672build_vendor
673build_cpu
674build
675INSTALL_CMD
676PKG_CONFIG_LIBDIR
677PKG_CONFIG_PATH
678PKG_CONFIG
679CHANGELOG_CMD
680STRICT_CFLAGS
681CWARNFLAGS
682BASE_CFLAGS
683EGREP
684GREP
685CPP
686am__fastdepCC_FALSE
687am__fastdepCC_TRUE
688CCDEPMODE
689am__nodep
690AMDEPBACKSLASH
691AMDEP_FALSE
692AMDEP_TRUE
693am__quote
694am__include
695DEPDIR
696OBJEXT
697EXEEXT
698ac_ct_CC
699CPPFLAGS
700LDFLAGS
701CFLAGS
702CC
703MAINT
704MAINTAINER_MODE_FALSE
705MAINTAINER_MODE_TRUE
706am__untar
707am__tar
708AMTAR
709am__leading_dot
710SET_MAKE
711AWK
712mkdir_p
713MKDIR_P
714INSTALL_STRIP_PROGRAM
715STRIP
716install_sh
717MAKEINFO
718AUTOHEADER
719AUTOMAKE
720AUTOCONF
721ACLOCAL
722VERSION
723PACKAGE
724CYGPATH_W
725am__isrc
726INSTALL_DATA
727INSTALL_SCRIPT
728INSTALL_PROGRAM
729target_alias
730host_alias
731build_alias
732LIBS
733ECHO_T
734ECHO_N
735ECHO_C
736DEFS
737mandir
738localedir
739libdir
740psdir
741pdfdir
742dvidir
743htmldir
744infodir
745docdir
746oldincludedir
747includedir
748localstatedir
749sharedstatedir
750sysconfdir
751datadir
752datarootdir
753libexecdir
754sbindir
755bindir
756program_transform_name
757prefix
758exec_prefix
759PACKAGE_URL
760PACKAGE_BUGREPORT
761PACKAGE_STRING
762PACKAGE_VERSION
763PACKAGE_TARNAME
764PACKAGE_NAME
765PATH_SEPARATOR
766SHELL'
767ac_subst_files=''
768ac_user_opts='
769enable_option_checking
770enable_maintainer_mode
771enable_dependency_tracking
772enable_selective_werror
773enable_strict_compilation
774enable_silent_rules
775enable_static
776enable_shared
777with_pic
778enable_fast_install
779with_gnu_ld
780with_sysroot
781enable_libtool_lock
782with_xorg_module_dir
783enable_xaa
784'
785      ac_precious_vars='build_alias
786host_alias
787target_alias
788CC
789CFLAGS
790LDFLAGS
791LIBS
792CPPFLAGS
793CPP
794PKG_CONFIG
795PKG_CONFIG_PATH
796PKG_CONFIG_LIBDIR
797XORG_CFLAGS
798XORG_LIBS
799PCIACCESS_CFLAGS
800PCIACCESS_LIBS'
801
802
803# Initialize some variables set by options.
804ac_init_help=
805ac_init_version=false
806ac_unrecognized_opts=
807ac_unrecognized_sep=
808# The variables have the same names as the options, with
809# dashes changed to underlines.
810cache_file=/dev/null
811exec_prefix=NONE
812no_create=
813no_recursion=
814prefix=NONE
815program_prefix=NONE
816program_suffix=NONE
817program_transform_name=s,x,x,
818silent=
819site=
820srcdir=
821verbose=
822x_includes=NONE
823x_libraries=NONE
824
825# Installation directory options.
826# These are left unexpanded so users can "make install exec_prefix=/foo"
827# and all the variables that are supposed to be based on exec_prefix
828# by default will actually change.
829# Use braces instead of parens because sh, perl, etc. also accept them.
830# (The list follows the same order as the GNU Coding Standards.)
831bindir='${exec_prefix}/bin'
832sbindir='${exec_prefix}/sbin'
833libexecdir='${exec_prefix}/libexec'
834datarootdir='${prefix}/share'
835datadir='${datarootdir}'
836sysconfdir='${prefix}/etc'
837sharedstatedir='${prefix}/com'
838localstatedir='${prefix}/var'
839includedir='${prefix}/include'
840oldincludedir='/usr/include'
841docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842infodir='${datarootdir}/info'
843htmldir='${docdir}'
844dvidir='${docdir}'
845pdfdir='${docdir}'
846psdir='${docdir}'
847libdir='${exec_prefix}/lib'
848localedir='${datarootdir}/locale'
849mandir='${datarootdir}/man'
850
851ac_prev=
852ac_dashdash=
853for ac_option
854do
855  # If the previous option needs an argument, assign it.
856  if test -n "$ac_prev"; then
857    eval $ac_prev=\$ac_option
858    ac_prev=
859    continue
860  fi
861
862  case $ac_option in
863  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864  *=)   ac_optarg= ;;
865  *)    ac_optarg=yes ;;
866  esac
867
868  # Accept the important Cygnus configure options, so we can diagnose typos.
869
870  case $ac_dashdash$ac_option in
871  --)
872    ac_dashdash=yes ;;
873
874  -bindir | --bindir | --bindi | --bind | --bin | --bi)
875    ac_prev=bindir ;;
876  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877    bindir=$ac_optarg ;;
878
879  -build | --build | --buil | --bui | --bu)
880    ac_prev=build_alias ;;
881  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882    build_alias=$ac_optarg ;;
883
884  -cache-file | --cache-file | --cache-fil | --cache-fi \
885  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886    ac_prev=cache_file ;;
887  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889    cache_file=$ac_optarg ;;
890
891  --config-cache | -C)
892    cache_file=config.cache ;;
893
894  -datadir | --datadir | --datadi | --datad)
895    ac_prev=datadir ;;
896  -datadir=* | --datadir=* | --datadi=* | --datad=*)
897    datadir=$ac_optarg ;;
898
899  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900  | --dataroo | --dataro | --datar)
901    ac_prev=datarootdir ;;
902  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904    datarootdir=$ac_optarg ;;
905
906  -disable-* | --disable-*)
907    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908    # Reject names that are not valid shell variable names.
909    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910      as_fn_error $? "invalid feature name: $ac_useropt"
911    ac_useropt_orig=$ac_useropt
912    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913    case $ac_user_opts in
914      *"
915"enable_$ac_useropt"
916"*) ;;
917      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918	 ac_unrecognized_sep=', ';;
919    esac
920    eval enable_$ac_useropt=no ;;
921
922  -docdir | --docdir | --docdi | --doc | --do)
923    ac_prev=docdir ;;
924  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925    docdir=$ac_optarg ;;
926
927  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928    ac_prev=dvidir ;;
929  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930    dvidir=$ac_optarg ;;
931
932  -enable-* | --enable-*)
933    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934    # Reject names that are not valid shell variable names.
935    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936      as_fn_error $? "invalid feature name: $ac_useropt"
937    ac_useropt_orig=$ac_useropt
938    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939    case $ac_user_opts in
940      *"
941"enable_$ac_useropt"
942"*) ;;
943      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944	 ac_unrecognized_sep=', ';;
945    esac
946    eval enable_$ac_useropt=\$ac_optarg ;;
947
948  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950  | --exec | --exe | --ex)
951    ac_prev=exec_prefix ;;
952  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954  | --exec=* | --exe=* | --ex=*)
955    exec_prefix=$ac_optarg ;;
956
957  -gas | --gas | --ga | --g)
958    # Obsolete; use --with-gas.
959    with_gas=yes ;;
960
961  -help | --help | --hel | --he | -h)
962    ac_init_help=long ;;
963  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964    ac_init_help=recursive ;;
965  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966    ac_init_help=short ;;
967
968  -host | --host | --hos | --ho)
969    ac_prev=host_alias ;;
970  -host=* | --host=* | --hos=* | --ho=*)
971    host_alias=$ac_optarg ;;
972
973  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974    ac_prev=htmldir ;;
975  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976  | --ht=*)
977    htmldir=$ac_optarg ;;
978
979  -includedir | --includedir | --includedi | --included | --include \
980  | --includ | --inclu | --incl | --inc)
981    ac_prev=includedir ;;
982  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983  | --includ=* | --inclu=* | --incl=* | --inc=*)
984    includedir=$ac_optarg ;;
985
986  -infodir | --infodir | --infodi | --infod | --info | --inf)
987    ac_prev=infodir ;;
988  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989    infodir=$ac_optarg ;;
990
991  -libdir | --libdir | --libdi | --libd)
992    ac_prev=libdir ;;
993  -libdir=* | --libdir=* | --libdi=* | --libd=*)
994    libdir=$ac_optarg ;;
995
996  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997  | --libexe | --libex | --libe)
998    ac_prev=libexecdir ;;
999  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000  | --libexe=* | --libex=* | --libe=*)
1001    libexecdir=$ac_optarg ;;
1002
1003  -localedir | --localedir | --localedi | --localed | --locale)
1004    ac_prev=localedir ;;
1005  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006    localedir=$ac_optarg ;;
1007
1008  -localstatedir | --localstatedir | --localstatedi | --localstated \
1009  | --localstate | --localstat | --localsta | --localst | --locals)
1010    ac_prev=localstatedir ;;
1011  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013    localstatedir=$ac_optarg ;;
1014
1015  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016    ac_prev=mandir ;;
1017  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018    mandir=$ac_optarg ;;
1019
1020  -nfp | --nfp | --nf)
1021    # Obsolete; use --without-fp.
1022    with_fp=no ;;
1023
1024  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025  | --no-cr | --no-c | -n)
1026    no_create=yes ;;
1027
1028  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030    no_recursion=yes ;;
1031
1032  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034  | --oldin | --oldi | --old | --ol | --o)
1035    ac_prev=oldincludedir ;;
1036  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039    oldincludedir=$ac_optarg ;;
1040
1041  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042    ac_prev=prefix ;;
1043  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044    prefix=$ac_optarg ;;
1045
1046  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047  | --program-pre | --program-pr | --program-p)
1048    ac_prev=program_prefix ;;
1049  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051    program_prefix=$ac_optarg ;;
1052
1053  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054  | --program-suf | --program-su | --program-s)
1055    ac_prev=program_suffix ;;
1056  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058    program_suffix=$ac_optarg ;;
1059
1060  -program-transform-name | --program-transform-name \
1061  | --program-transform-nam | --program-transform-na \
1062  | --program-transform-n | --program-transform- \
1063  | --program-transform | --program-transfor \
1064  | --program-transfo | --program-transf \
1065  | --program-trans | --program-tran \
1066  | --progr-tra | --program-tr | --program-t)
1067    ac_prev=program_transform_name ;;
1068  -program-transform-name=* | --program-transform-name=* \
1069  | --program-transform-nam=* | --program-transform-na=* \
1070  | --program-transform-n=* | --program-transform-=* \
1071  | --program-transform=* | --program-transfor=* \
1072  | --program-transfo=* | --program-transf=* \
1073  | --program-trans=* | --program-tran=* \
1074  | --progr-tra=* | --program-tr=* | --program-t=*)
1075    program_transform_name=$ac_optarg ;;
1076
1077  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078    ac_prev=pdfdir ;;
1079  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080    pdfdir=$ac_optarg ;;
1081
1082  -psdir | --psdir | --psdi | --psd | --ps)
1083    ac_prev=psdir ;;
1084  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085    psdir=$ac_optarg ;;
1086
1087  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088  | -silent | --silent | --silen | --sile | --sil)
1089    silent=yes ;;
1090
1091  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092    ac_prev=sbindir ;;
1093  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094  | --sbi=* | --sb=*)
1095    sbindir=$ac_optarg ;;
1096
1097  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099  | --sharedst | --shareds | --shared | --share | --shar \
1100  | --sha | --sh)
1101    ac_prev=sharedstatedir ;;
1102  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105  | --sha=* | --sh=*)
1106    sharedstatedir=$ac_optarg ;;
1107
1108  -site | --site | --sit)
1109    ac_prev=site ;;
1110  -site=* | --site=* | --sit=*)
1111    site=$ac_optarg ;;
1112
1113  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114    ac_prev=srcdir ;;
1115  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116    srcdir=$ac_optarg ;;
1117
1118  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119  | --syscon | --sysco | --sysc | --sys | --sy)
1120    ac_prev=sysconfdir ;;
1121  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123    sysconfdir=$ac_optarg ;;
1124
1125  -target | --target | --targe | --targ | --tar | --ta | --t)
1126    ac_prev=target_alias ;;
1127  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128    target_alias=$ac_optarg ;;
1129
1130  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131    verbose=yes ;;
1132
1133  -version | --version | --versio | --versi | --vers | -V)
1134    ac_init_version=: ;;
1135
1136  -with-* | --with-*)
1137    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138    # Reject names that are not valid shell variable names.
1139    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140      as_fn_error $? "invalid package name: $ac_useropt"
1141    ac_useropt_orig=$ac_useropt
1142    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143    case $ac_user_opts in
1144      *"
1145"with_$ac_useropt"
1146"*) ;;
1147      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1148	 ac_unrecognized_sep=', ';;
1149    esac
1150    eval with_$ac_useropt=\$ac_optarg ;;
1151
1152  -without-* | --without-*)
1153    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1154    # Reject names that are not valid shell variable names.
1155    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156      as_fn_error $? "invalid package name: $ac_useropt"
1157    ac_useropt_orig=$ac_useropt
1158    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159    case $ac_user_opts in
1160      *"
1161"with_$ac_useropt"
1162"*) ;;
1163      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1164	 ac_unrecognized_sep=', ';;
1165    esac
1166    eval with_$ac_useropt=no ;;
1167
1168  --x)
1169    # Obsolete; use --with-x.
1170    with_x=yes ;;
1171
1172  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173  | --x-incl | --x-inc | --x-in | --x-i)
1174    ac_prev=x_includes ;;
1175  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177    x_includes=$ac_optarg ;;
1178
1179  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181    ac_prev=x_libraries ;;
1182  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184    x_libraries=$ac_optarg ;;
1185
1186  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1187Try \`$0 --help' for more information"
1188    ;;
1189
1190  *=*)
1191    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192    # Reject names that are not valid shell variable names.
1193    case $ac_envvar in #(
1194      '' | [0-9]* | *[!_$as_cr_alnum]* )
1195      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1196    esac
1197    eval $ac_envvar=\$ac_optarg
1198    export $ac_envvar ;;
1199
1200  *)
1201    # FIXME: should be removed in autoconf 3.0.
1202    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1206    ;;
1207
1208  esac
1209done
1210
1211if test -n "$ac_prev"; then
1212  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213  as_fn_error $? "missing argument to $ac_option"
1214fi
1215
1216if test -n "$ac_unrecognized_opts"; then
1217  case $enable_option_checking in
1218    no) ;;
1219    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1220    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1221  esac
1222fi
1223
1224# Check all directory arguments for consistency.
1225for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1226		datadir sysconfdir sharedstatedir localstatedir includedir \
1227		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1228		libdir localedir mandir
1229do
1230  eval ac_val=\$$ac_var
1231  # Remove trailing slashes.
1232  case $ac_val in
1233    */ )
1234      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1235      eval $ac_var=\$ac_val;;
1236  esac
1237  # Be sure to have absolute directory names.
1238  case $ac_val in
1239    [\\/$]* | ?:[\\/]* )  continue;;
1240    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1241  esac
1242  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1243done
1244
1245# There might be people who depend on the old broken behavior: `$host'
1246# used to hold the argument of --host etc.
1247# FIXME: To remove some day.
1248build=$build_alias
1249host=$host_alias
1250target=$target_alias
1251
1252# FIXME: To remove some day.
1253if test "x$host_alias" != x; then
1254  if test "x$build_alias" = x; then
1255    cross_compiling=maybe
1256    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1257    If a cross compiler is detected then cross compile mode will be used" >&2
1258  elif test "x$build_alias" != "x$host_alias"; then
1259    cross_compiling=yes
1260  fi
1261fi
1262
1263ac_tool_prefix=
1264test -n "$host_alias" && ac_tool_prefix=$host_alias-
1265
1266test "$silent" = yes && exec 6>/dev/null
1267
1268
1269ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270ac_ls_di=`ls -di .` &&
1271ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272  as_fn_error $? "working directory cannot be determined"
1273test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274  as_fn_error $? "pwd does not report name of working directory"
1275
1276
1277# Find the source files, if location was not specified.
1278if test -z "$srcdir"; then
1279  ac_srcdir_defaulted=yes
1280  # Try the directory containing this script, then the parent directory.
1281  ac_confdir=`$as_dirname -- "$as_myself" ||
1282$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283	 X"$as_myself" : 'X\(//\)[^/]' \| \
1284	 X"$as_myself" : 'X\(//\)$' \| \
1285	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286$as_echo X"$as_myself" |
1287    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288	    s//\1/
1289	    q
1290	  }
1291	  /^X\(\/\/\)[^/].*/{
1292	    s//\1/
1293	    q
1294	  }
1295	  /^X\(\/\/\)$/{
1296	    s//\1/
1297	    q
1298	  }
1299	  /^X\(\/\).*/{
1300	    s//\1/
1301	    q
1302	  }
1303	  s/.*/./; q'`
1304  srcdir=$ac_confdir
1305  if test ! -r "$srcdir/$ac_unique_file"; then
1306    srcdir=..
1307  fi
1308else
1309  ac_srcdir_defaulted=no
1310fi
1311if test ! -r "$srcdir/$ac_unique_file"; then
1312  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1314fi
1315ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1316ac_abs_confdir=`(
1317	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1318	pwd)`
1319# When building in place, set srcdir=.
1320if test "$ac_abs_confdir" = "$ac_pwd"; then
1321  srcdir=.
1322fi
1323# Remove unnecessary trailing slashes from srcdir.
1324# Double slashes in file names in object file debugging info
1325# mess up M-x gdb in Emacs.
1326case $srcdir in
1327*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328esac
1329for ac_var in $ac_precious_vars; do
1330  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331  eval ac_env_${ac_var}_value=\$${ac_var}
1332  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334done
1335
1336#
1337# Report the --help message.
1338#
1339if test "$ac_init_help" = "long"; then
1340  # Omit some internal or obsolete options to make the list less imposing.
1341  # This message is too long to be a string in the A/UX 3.1 sh.
1342  cat <<_ACEOF
1343\`configure' configures xf86-video-ark 0.7.5 to adapt to many kinds of systems.
1344
1345Usage: $0 [OPTION]... [VAR=VALUE]...
1346
1347To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348VAR=VALUE.  See below for descriptions of some of the useful variables.
1349
1350Defaults for the options are specified in brackets.
1351
1352Configuration:
1353  -h, --help              display this help and exit
1354      --help=short        display options specific to this package
1355      --help=recursive    display the short help of all the included packages
1356  -V, --version           display version information and exit
1357  -q, --quiet, --silent   do not print \`checking ...' messages
1358      --cache-file=FILE   cache test results in FILE [disabled]
1359  -C, --config-cache      alias for \`--cache-file=config.cache'
1360  -n, --no-create         do not create output files
1361      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1362
1363Installation directories:
1364  --prefix=PREFIX         install architecture-independent files in PREFIX
1365                          [$ac_default_prefix]
1366  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1367                          [PREFIX]
1368
1369By default, \`make install' will install all the files in
1370\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1371an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372for instance \`--prefix=\$HOME'.
1373
1374For better control, use the options below.
1375
1376Fine tuning of the installation directories:
1377  --bindir=DIR            user executables [EPREFIX/bin]
1378  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1379  --libexecdir=DIR        program executables [EPREFIX/libexec]
1380  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1381  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1382  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1383  --libdir=DIR            object code libraries [EPREFIX/lib]
1384  --includedir=DIR        C header files [PREFIX/include]
1385  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1386  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1387  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1388  --infodir=DIR           info documentation [DATAROOTDIR/info]
1389  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1390  --mandir=DIR            man documentation [DATAROOTDIR/man]
1391  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-ark]
1392  --htmldir=DIR           html documentation [DOCDIR]
1393  --dvidir=DIR            dvi documentation [DOCDIR]
1394  --pdfdir=DIR            pdf documentation [DOCDIR]
1395  --psdir=DIR             ps documentation [DOCDIR]
1396_ACEOF
1397
1398  cat <<\_ACEOF
1399
1400Program names:
1401  --program-prefix=PREFIX            prepend PREFIX to installed program names
1402  --program-suffix=SUFFIX            append SUFFIX to installed program names
1403  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1404
1405System types:
1406  --build=BUILD     configure for building on BUILD [guessed]
1407  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1408_ACEOF
1409fi
1410
1411if test -n "$ac_init_help"; then
1412  case $ac_init_help in
1413     short | recursive ) echo "Configuration of xf86-video-ark 0.7.5:";;
1414   esac
1415  cat <<\_ACEOF
1416
1417Optional Features:
1418  --disable-option-checking  ignore unrecognized --enable/--with options
1419  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1420  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1421  --enable-maintainer-mode  enable make rules and dependencies not useful
1422			  (and sometimes confusing) to the casual installer
1423  --disable-dependency-tracking  speeds up one-time build
1424  --enable-dependency-tracking   do not reject slow dependency extractors
1425  --disable-selective-werror
1426                          Turn off selective compiler errors. (default:
1427                          enabled)
1428  --enable-strict-compilation
1429                          Enable all warnings from compiler and make them
1430                          errors (default: disabled)
1431  --enable-silent-rules          less verbose build output (undo: `make V=1')
1432  --disable-silent-rules         verbose build output (undo: `make V=0')
1433  --enable-static[=PKGS]  build static libraries [default=no]
1434  --enable-shared[=PKGS]  build shared libraries [default=yes]
1435  --enable-fast-install[=PKGS]
1436                          optimize for fast installation [default=yes]
1437  --disable-libtool-lock  avoid locking (might break parallel builds)
1438  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1439                          [default=auto]
1440
1441Optional Packages:
1442  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1443  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1444  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1445                          both]
1446  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1447  --with-sysroot=DIR Search for dependent libraries within DIR
1448                        (or the compiler's sysroot if not specified).
1449  --with-xorg-module-dir=DIR
1450
1451Some influential environment variables:
1452  CC          C compiler command
1453  CFLAGS      C compiler flags
1454  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1455              nonstandard directory <lib dir>
1456  LIBS        libraries to pass to the linker, e.g. -l<library>
1457  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458              you have headers in a nonstandard directory <include dir>
1459  CPP         C preprocessor
1460  PKG_CONFIG  path to pkg-config utility
1461  PKG_CONFIG_PATH
1462              directories to add to pkg-config's search path
1463  PKG_CONFIG_LIBDIR
1464              path overriding pkg-config's built-in search path
1465  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1466  XORG_LIBS   linker flags for XORG, overriding pkg-config
1467  PCIACCESS_CFLAGS
1468              C compiler flags for PCIACCESS, overriding pkg-config
1469  PCIACCESS_LIBS
1470              linker flags for PCIACCESS, overriding pkg-config
1471
1472Use these variables to override the choices made by `configure' or to help
1473it to find libraries and programs with nonstandard names/locations.
1474
1475Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/ark>.
1476_ACEOF
1477ac_status=$?
1478fi
1479
1480if test "$ac_init_help" = "recursive"; then
1481  # If there are subdirs, report their specific --help.
1482  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483    test -d "$ac_dir" ||
1484      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1485      continue
1486    ac_builddir=.
1487
1488case "$ac_dir" in
1489.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490*)
1491  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1492  # A ".." for each directory in $ac_dir_suffix.
1493  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1494  case $ac_top_builddir_sub in
1495  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497  esac ;;
1498esac
1499ac_abs_top_builddir=$ac_pwd
1500ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501# for backward compatibility:
1502ac_top_builddir=$ac_top_build_prefix
1503
1504case $srcdir in
1505  .)  # We are building in place.
1506    ac_srcdir=.
1507    ac_top_srcdir=$ac_top_builddir_sub
1508    ac_abs_top_srcdir=$ac_pwd ;;
1509  [\\/]* | ?:[\\/]* )  # Absolute name.
1510    ac_srcdir=$srcdir$ac_dir_suffix;
1511    ac_top_srcdir=$srcdir
1512    ac_abs_top_srcdir=$srcdir ;;
1513  *) # Relative name.
1514    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515    ac_top_srcdir=$ac_top_build_prefix$srcdir
1516    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517esac
1518ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519
1520    cd "$ac_dir" || { ac_status=$?; continue; }
1521    # Check for guested configure.
1522    if test -f "$ac_srcdir/configure.gnu"; then
1523      echo &&
1524      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525    elif test -f "$ac_srcdir/configure"; then
1526      echo &&
1527      $SHELL "$ac_srcdir/configure" --help=recursive
1528    else
1529      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530    fi || ac_status=$?
1531    cd "$ac_pwd" || { ac_status=$?; break; }
1532  done
1533fi
1534
1535test -n "$ac_init_help" && exit $ac_status
1536if $ac_init_version; then
1537  cat <<\_ACEOF
1538xf86-video-ark configure 0.7.5
1539generated by GNU Autoconf 2.68
1540
1541Copyright (C) 2010 Free Software Foundation, Inc.
1542This configure script is free software; the Free Software Foundation
1543gives unlimited permission to copy, distribute and modify it.
1544_ACEOF
1545  exit
1546fi
1547
1548## ------------------------ ##
1549## Autoconf initialization. ##
1550## ------------------------ ##
1551
1552# ac_fn_c_try_compile LINENO
1553# --------------------------
1554# Try to compile conftest.$ac_ext, and return whether this succeeded.
1555ac_fn_c_try_compile ()
1556{
1557  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558  rm -f conftest.$ac_objext
1559  if { { ac_try="$ac_compile"
1560case "(($ac_try" in
1561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562  *) ac_try_echo=$ac_try;;
1563esac
1564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565$as_echo "$ac_try_echo"; } >&5
1566  (eval "$ac_compile") 2>conftest.err
1567  ac_status=$?
1568  if test -s conftest.err; then
1569    grep -v '^ *+' conftest.err >conftest.er1
1570    cat conftest.er1 >&5
1571    mv -f conftest.er1 conftest.err
1572  fi
1573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574  test $ac_status = 0; } && {
1575	 test -z "$ac_c_werror_flag" ||
1576	 test ! -s conftest.err
1577       } && test -s conftest.$ac_objext; then :
1578  ac_retval=0
1579else
1580  $as_echo "$as_me: failed program was:" >&5
1581sed 's/^/| /' conftest.$ac_ext >&5
1582
1583	ac_retval=1
1584fi
1585  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1586  as_fn_set_status $ac_retval
1587
1588} # ac_fn_c_try_compile
1589
1590# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1591# ---------------------------------------------
1592# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1593# accordingly.
1594ac_fn_c_check_decl ()
1595{
1596  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597  as_decl_name=`echo $2|sed 's/ *(.*//'`
1598  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1599  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1600$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1601if eval \${$3+:} false; then :
1602  $as_echo_n "(cached) " >&6
1603else
1604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1605/* end confdefs.h.  */
1606$4
1607int
1608main ()
1609{
1610#ifndef $as_decl_name
1611#ifdef __cplusplus
1612  (void) $as_decl_use;
1613#else
1614  (void) $as_decl_name;
1615#endif
1616#endif
1617
1618  ;
1619  return 0;
1620}
1621_ACEOF
1622if ac_fn_c_try_compile "$LINENO"; then :
1623  eval "$3=yes"
1624else
1625  eval "$3=no"
1626fi
1627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1628fi
1629eval ac_res=\$$3
1630	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631$as_echo "$ac_res" >&6; }
1632  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633
1634} # ac_fn_c_check_decl
1635
1636# ac_fn_c_try_cpp LINENO
1637# ----------------------
1638# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1639ac_fn_c_try_cpp ()
1640{
1641  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642  if { { ac_try="$ac_cpp conftest.$ac_ext"
1643case "(($ac_try" in
1644  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645  *) ac_try_echo=$ac_try;;
1646esac
1647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648$as_echo "$ac_try_echo"; } >&5
1649  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1650  ac_status=$?
1651  if test -s conftest.err; then
1652    grep -v '^ *+' conftest.err >conftest.er1
1653    cat conftest.er1 >&5
1654    mv -f conftest.er1 conftest.err
1655  fi
1656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657  test $ac_status = 0; } > conftest.i && {
1658	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1659	 test ! -s conftest.err
1660       }; then :
1661  ac_retval=0
1662else
1663  $as_echo "$as_me: failed program was:" >&5
1664sed 's/^/| /' conftest.$ac_ext >&5
1665
1666    ac_retval=1
1667fi
1668  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669  as_fn_set_status $ac_retval
1670
1671} # ac_fn_c_try_cpp
1672
1673# ac_fn_c_try_run LINENO
1674# ----------------------
1675# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1676# that executables *can* be run.
1677ac_fn_c_try_run ()
1678{
1679  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680  if { { ac_try="$ac_link"
1681case "(($ac_try" in
1682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683  *) ac_try_echo=$ac_try;;
1684esac
1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686$as_echo "$ac_try_echo"; } >&5
1687  (eval "$ac_link") 2>&5
1688  ac_status=$?
1689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1691  { { case "(($ac_try" in
1692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693  *) ac_try_echo=$ac_try;;
1694esac
1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696$as_echo "$ac_try_echo"; } >&5
1697  (eval "$ac_try") 2>&5
1698  ac_status=$?
1699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700  test $ac_status = 0; }; }; then :
1701  ac_retval=0
1702else
1703  $as_echo "$as_me: program exited with status $ac_status" >&5
1704       $as_echo "$as_me: failed program was:" >&5
1705sed 's/^/| /' conftest.$ac_ext >&5
1706
1707       ac_retval=$ac_status
1708fi
1709  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711  as_fn_set_status $ac_retval
1712
1713} # ac_fn_c_try_run
1714
1715# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1716# -------------------------------------------------------
1717# Tests whether HEADER exists and can be compiled using the include files in
1718# INCLUDES, setting the cache variable VAR accordingly.
1719ac_fn_c_check_header_compile ()
1720{
1721  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723$as_echo_n "checking for $2... " >&6; }
1724if eval \${$3+:} false; then :
1725  $as_echo_n "(cached) " >&6
1726else
1727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728/* end confdefs.h.  */
1729$4
1730#include <$2>
1731_ACEOF
1732if ac_fn_c_try_compile "$LINENO"; then :
1733  eval "$3=yes"
1734else
1735  eval "$3=no"
1736fi
1737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1738fi
1739eval ac_res=\$$3
1740	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741$as_echo "$ac_res" >&6; }
1742  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743
1744} # ac_fn_c_check_header_compile
1745
1746# ac_fn_c_try_link LINENO
1747# -----------------------
1748# Try to link conftest.$ac_ext, and return whether this succeeded.
1749ac_fn_c_try_link ()
1750{
1751  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752  rm -f conftest.$ac_objext conftest$ac_exeext
1753  if { { ac_try="$ac_link"
1754case "(($ac_try" in
1755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756  *) ac_try_echo=$ac_try;;
1757esac
1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759$as_echo "$ac_try_echo"; } >&5
1760  (eval "$ac_link") 2>conftest.err
1761  ac_status=$?
1762  if test -s conftest.err; then
1763    grep -v '^ *+' conftest.err >conftest.er1
1764    cat conftest.er1 >&5
1765    mv -f conftest.er1 conftest.err
1766  fi
1767  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768  test $ac_status = 0; } && {
1769	 test -z "$ac_c_werror_flag" ||
1770	 test ! -s conftest.err
1771       } && test -s conftest$ac_exeext && {
1772	 test "$cross_compiling" = yes ||
1773	 $as_test_x conftest$ac_exeext
1774       }; then :
1775  ac_retval=0
1776else
1777  $as_echo "$as_me: failed program was:" >&5
1778sed 's/^/| /' conftest.$ac_ext >&5
1779
1780	ac_retval=1
1781fi
1782  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1783  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1784  # interfere with the next link command; also delete a directory that is
1785  # left behind by Apple's compiler.  We do this before executing the actions.
1786  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1787  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788  as_fn_set_status $ac_retval
1789
1790} # ac_fn_c_try_link
1791
1792# ac_fn_c_check_func LINENO FUNC VAR
1793# ----------------------------------
1794# Tests whether FUNC exists, setting the cache variable VAR accordingly
1795ac_fn_c_check_func ()
1796{
1797  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799$as_echo_n "checking for $2... " >&6; }
1800if eval \${$3+:} false; then :
1801  $as_echo_n "(cached) " >&6
1802else
1803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804/* end confdefs.h.  */
1805/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1806   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1807#define $2 innocuous_$2
1808
1809/* System header to define __stub macros and hopefully few prototypes,
1810    which can conflict with char $2 (); below.
1811    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1812    <limits.h> exists even on freestanding compilers.  */
1813
1814#ifdef __STDC__
1815# include <limits.h>
1816#else
1817# include <assert.h>
1818#endif
1819
1820#undef $2
1821
1822/* Override any GCC internal prototype to avoid an error.
1823   Use char because int might match the return type of a GCC
1824   builtin and then its argument prototype would still apply.  */
1825#ifdef __cplusplus
1826extern "C"
1827#endif
1828char $2 ();
1829/* The GNU C library defines this for functions which it implements
1830    to always fail with ENOSYS.  Some functions are actually named
1831    something starting with __ and the normal name is an alias.  */
1832#if defined __stub_$2 || defined __stub___$2
1833choke me
1834#endif
1835
1836int
1837main ()
1838{
1839return $2 ();
1840  ;
1841  return 0;
1842}
1843_ACEOF
1844if ac_fn_c_try_link "$LINENO"; then :
1845  eval "$3=yes"
1846else
1847  eval "$3=no"
1848fi
1849rm -f core conftest.err conftest.$ac_objext \
1850    conftest$ac_exeext conftest.$ac_ext
1851fi
1852eval ac_res=\$$3
1853	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854$as_echo "$ac_res" >&6; }
1855  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856
1857} # ac_fn_c_check_func
1858
1859# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1860# -------------------------------------------------------
1861# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1862# the include files in INCLUDES and setting the cache variable VAR
1863# accordingly.
1864ac_fn_c_check_header_mongrel ()
1865{
1866  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867  if eval \${$3+:} false; then :
1868  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869$as_echo_n "checking for $2... " >&6; }
1870if eval \${$3+:} false; then :
1871  $as_echo_n "(cached) " >&6
1872fi
1873eval ac_res=\$$3
1874	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875$as_echo "$ac_res" >&6; }
1876else
1877  # Is the header compilable?
1878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1879$as_echo_n "checking $2 usability... " >&6; }
1880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881/* end confdefs.h.  */
1882$4
1883#include <$2>
1884_ACEOF
1885if ac_fn_c_try_compile "$LINENO"; then :
1886  ac_header_compiler=yes
1887else
1888  ac_header_compiler=no
1889fi
1890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1892$as_echo "$ac_header_compiler" >&6; }
1893
1894# Is the header present?
1895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1896$as_echo_n "checking $2 presence... " >&6; }
1897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898/* end confdefs.h.  */
1899#include <$2>
1900_ACEOF
1901if ac_fn_c_try_cpp "$LINENO"; then :
1902  ac_header_preproc=yes
1903else
1904  ac_header_preproc=no
1905fi
1906rm -f conftest.err conftest.i conftest.$ac_ext
1907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1908$as_echo "$ac_header_preproc" >&6; }
1909
1910# So?  What about this header?
1911case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1912  yes:no: )
1913    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1914$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1915    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1916$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1917    ;;
1918  no:yes:* )
1919    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1920$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1921    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1922$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1923    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1924$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1925    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1926$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1927    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1928$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1929( $as_echo "## ------------------------------------------------------------------------------------------- ##
1930## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/ark ##
1931## ------------------------------------------------------------------------------------------- ##"
1932     ) | sed "s/^/$as_me: WARNING:     /" >&2
1933    ;;
1934esac
1935  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936$as_echo_n "checking for $2... " >&6; }
1937if eval \${$3+:} false; then :
1938  $as_echo_n "(cached) " >&6
1939else
1940  eval "$3=\$ac_header_compiler"
1941fi
1942eval ac_res=\$$3
1943	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944$as_echo "$ac_res" >&6; }
1945fi
1946  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947
1948} # ac_fn_c_check_header_mongrel
1949cat >config.log <<_ACEOF
1950This file contains any messages produced by compilers while
1951running configure, to aid debugging if configure makes a mistake.
1952
1953It was created by xf86-video-ark $as_me 0.7.5, which was
1954generated by GNU Autoconf 2.68.  Invocation command line was
1955
1956  $ $0 $@
1957
1958_ACEOF
1959exec 5>>config.log
1960{
1961cat <<_ASUNAME
1962## --------- ##
1963## Platform. ##
1964## --------- ##
1965
1966hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1967uname -m = `(uname -m) 2>/dev/null || echo unknown`
1968uname -r = `(uname -r) 2>/dev/null || echo unknown`
1969uname -s = `(uname -s) 2>/dev/null || echo unknown`
1970uname -v = `(uname -v) 2>/dev/null || echo unknown`
1971
1972/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1973/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1974
1975/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1976/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1977/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1978/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1979/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1980/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1981/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1982
1983_ASUNAME
1984
1985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986for as_dir in $PATH
1987do
1988  IFS=$as_save_IFS
1989  test -z "$as_dir" && as_dir=.
1990    $as_echo "PATH: $as_dir"
1991  done
1992IFS=$as_save_IFS
1993
1994} >&5
1995
1996cat >&5 <<_ACEOF
1997
1998
1999## ----------- ##
2000## Core tests. ##
2001## ----------- ##
2002
2003_ACEOF
2004
2005
2006# Keep a trace of the command line.
2007# Strip out --no-create and --no-recursion so they do not pile up.
2008# Strip out --silent because we don't want to record it for future runs.
2009# Also quote any args containing shell meta-characters.
2010# Make two passes to allow for proper duplicate-argument suppression.
2011ac_configure_args=
2012ac_configure_args0=
2013ac_configure_args1=
2014ac_must_keep_next=false
2015for ac_pass in 1 2
2016do
2017  for ac_arg
2018  do
2019    case $ac_arg in
2020    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2021    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2022    | -silent | --silent | --silen | --sile | --sil)
2023      continue ;;
2024    *\'*)
2025      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2026    esac
2027    case $ac_pass in
2028    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2029    2)
2030      as_fn_append ac_configure_args1 " '$ac_arg'"
2031      if test $ac_must_keep_next = true; then
2032	ac_must_keep_next=false # Got value, back to normal.
2033      else
2034	case $ac_arg in
2035	  *=* | --config-cache | -C | -disable-* | --disable-* \
2036	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2037	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2038	  | -with-* | --with-* | -without-* | --without-* | --x)
2039	    case "$ac_configure_args0 " in
2040	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2041	    esac
2042	    ;;
2043	  -* ) ac_must_keep_next=true ;;
2044	esac
2045      fi
2046      as_fn_append ac_configure_args " '$ac_arg'"
2047      ;;
2048    esac
2049  done
2050done
2051{ ac_configure_args0=; unset ac_configure_args0;}
2052{ ac_configure_args1=; unset ac_configure_args1;}
2053
2054# When interrupted or exit'd, cleanup temporary files, and complete
2055# config.log.  We remove comments because anyway the quotes in there
2056# would cause problems or look ugly.
2057# WARNING: Use '\'' to represent an apostrophe within the trap.
2058# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2059trap 'exit_status=$?
2060  # Save into config.log some information that might help in debugging.
2061  {
2062    echo
2063
2064    $as_echo "## ---------------- ##
2065## Cache variables. ##
2066## ---------------- ##"
2067    echo
2068    # The following way of writing the cache mishandles newlines in values,
2069(
2070  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2071    eval ac_val=\$$ac_var
2072    case $ac_val in #(
2073    *${as_nl}*)
2074      case $ac_var in #(
2075      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2076$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2077      esac
2078      case $ac_var in #(
2079      _ | IFS | as_nl) ;; #(
2080      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2081      *) { eval $ac_var=; unset $ac_var;} ;;
2082      esac ;;
2083    esac
2084  done
2085  (set) 2>&1 |
2086    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2087    *${as_nl}ac_space=\ *)
2088      sed -n \
2089	"s/'\''/'\''\\\\'\'''\''/g;
2090	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2091      ;; #(
2092    *)
2093      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2094      ;;
2095    esac |
2096    sort
2097)
2098    echo
2099
2100    $as_echo "## ----------------- ##
2101## Output variables. ##
2102## ----------------- ##"
2103    echo
2104    for ac_var in $ac_subst_vars
2105    do
2106      eval ac_val=\$$ac_var
2107      case $ac_val in
2108      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2109      esac
2110      $as_echo "$ac_var='\''$ac_val'\''"
2111    done | sort
2112    echo
2113
2114    if test -n "$ac_subst_files"; then
2115      $as_echo "## ------------------- ##
2116## File substitutions. ##
2117## ------------------- ##"
2118      echo
2119      for ac_var in $ac_subst_files
2120      do
2121	eval ac_val=\$$ac_var
2122	case $ac_val in
2123	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2124	esac
2125	$as_echo "$ac_var='\''$ac_val'\''"
2126      done | sort
2127      echo
2128    fi
2129
2130    if test -s confdefs.h; then
2131      $as_echo "## ----------- ##
2132## confdefs.h. ##
2133## ----------- ##"
2134      echo
2135      cat confdefs.h
2136      echo
2137    fi
2138    test "$ac_signal" != 0 &&
2139      $as_echo "$as_me: caught signal $ac_signal"
2140    $as_echo "$as_me: exit $exit_status"
2141  } >&5
2142  rm -f core *.core core.conftest.* &&
2143    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2144    exit $exit_status
2145' 0
2146for ac_signal in 1 2 13 15; do
2147  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2148done
2149ac_signal=0
2150
2151# confdefs.h avoids OS command line length limits that DEFS can exceed.
2152rm -f -r conftest* confdefs.h
2153
2154$as_echo "/* confdefs.h */" > confdefs.h
2155
2156# Predefined preprocessor variables.
2157
2158cat >>confdefs.h <<_ACEOF
2159#define PACKAGE_NAME "$PACKAGE_NAME"
2160_ACEOF
2161
2162cat >>confdefs.h <<_ACEOF
2163#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2164_ACEOF
2165
2166cat >>confdefs.h <<_ACEOF
2167#define PACKAGE_VERSION "$PACKAGE_VERSION"
2168_ACEOF
2169
2170cat >>confdefs.h <<_ACEOF
2171#define PACKAGE_STRING "$PACKAGE_STRING"
2172_ACEOF
2173
2174cat >>confdefs.h <<_ACEOF
2175#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2176_ACEOF
2177
2178cat >>confdefs.h <<_ACEOF
2179#define PACKAGE_URL "$PACKAGE_URL"
2180_ACEOF
2181
2182
2183# Let the site file select an alternate cache file if it wants to.
2184# Prefer an explicitly selected file to automatically selected ones.
2185ac_site_file1=NONE
2186ac_site_file2=NONE
2187if test -n "$CONFIG_SITE"; then
2188  # We do not want a PATH search for config.site.
2189  case $CONFIG_SITE in #((
2190    -*)  ac_site_file1=./$CONFIG_SITE;;
2191    */*) ac_site_file1=$CONFIG_SITE;;
2192    *)   ac_site_file1=./$CONFIG_SITE;;
2193  esac
2194elif test "x$prefix" != xNONE; then
2195  ac_site_file1=$prefix/share/config.site
2196  ac_site_file2=$prefix/etc/config.site
2197else
2198  ac_site_file1=$ac_default_prefix/share/config.site
2199  ac_site_file2=$ac_default_prefix/etc/config.site
2200fi
2201for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2202do
2203  test "x$ac_site_file" = xNONE && continue
2204  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2205    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2206$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2207    sed 's/^/| /' "$ac_site_file" >&5
2208    . "$ac_site_file" \
2209      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2211as_fn_error $? "failed to load site script $ac_site_file
2212See \`config.log' for more details" "$LINENO" 5; }
2213  fi
2214done
2215
2216if test -r "$cache_file"; then
2217  # Some versions of bash will fail to source /dev/null (special files
2218  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2219  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2220    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2221$as_echo "$as_me: loading cache $cache_file" >&6;}
2222    case $cache_file in
2223      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2224      *)                      . "./$cache_file";;
2225    esac
2226  fi
2227else
2228  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2229$as_echo "$as_me: creating cache $cache_file" >&6;}
2230  >$cache_file
2231fi
2232
2233# Check that the precious variables saved in the cache have kept the same
2234# value.
2235ac_cache_corrupted=false
2236for ac_var in $ac_precious_vars; do
2237  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2238  eval ac_new_set=\$ac_env_${ac_var}_set
2239  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2240  eval ac_new_val=\$ac_env_${ac_var}_value
2241  case $ac_old_set,$ac_new_set in
2242    set,)
2243      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2244$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2245      ac_cache_corrupted=: ;;
2246    ,set)
2247      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2248$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2249      ac_cache_corrupted=: ;;
2250    ,);;
2251    *)
2252      if test "x$ac_old_val" != "x$ac_new_val"; then
2253	# differences in whitespace do not lead to failure.
2254	ac_old_val_w=`echo x $ac_old_val`
2255	ac_new_val_w=`echo x $ac_new_val`
2256	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2257	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2258$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2259	  ac_cache_corrupted=:
2260	else
2261	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2262$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2263	  eval $ac_var=\$ac_old_val
2264	fi
2265	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2266$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2267	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2268$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2269      fi;;
2270  esac
2271  # Pass precious variables to config.status.
2272  if test "$ac_new_set" = set; then
2273    case $ac_new_val in
2274    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2275    *) ac_arg=$ac_var=$ac_new_val ;;
2276    esac
2277    case " $ac_configure_args " in
2278      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2279      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2280    esac
2281  fi
2282done
2283if $ac_cache_corrupted; then
2284  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2286  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2287$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2288  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2289fi
2290## -------------------- ##
2291## Main body of script. ##
2292## -------------------- ##
2293
2294ac_ext=c
2295ac_cpp='$CPP $CPPFLAGS'
2296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2298ac_compiler_gnu=$ac_cv_c_compiler_gnu
2299
2300
2301
2302ac_config_headers="$ac_config_headers config.h"
2303
2304ac_aux_dir=
2305for ac_dir in . "$srcdir"/.; do
2306  if test -f "$ac_dir/install-sh"; then
2307    ac_aux_dir=$ac_dir
2308    ac_install_sh="$ac_aux_dir/install-sh -c"
2309    break
2310  elif test -f "$ac_dir/install.sh"; then
2311    ac_aux_dir=$ac_dir
2312    ac_install_sh="$ac_aux_dir/install.sh -c"
2313    break
2314  elif test -f "$ac_dir/shtool"; then
2315    ac_aux_dir=$ac_dir
2316    ac_install_sh="$ac_aux_dir/shtool install -c"
2317    break
2318  fi
2319done
2320if test -z "$ac_aux_dir"; then
2321  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2322fi
2323
2324# These three variables are undocumented and unsupported,
2325# and are intended to be withdrawn in a future Autoconf release.
2326# They can cause serious problems if a builder's source tree is in a directory
2327# whose full name contains unusual characters.
2328ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2329ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2330ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2331
2332
2333
2334# Initialize Automake
2335am__api_version='1.11'
2336
2337# Find a good install program.  We prefer a C program (faster),
2338# so one script is as good as another.  But avoid the broken or
2339# incompatible versions:
2340# SysV /etc/install, /usr/sbin/install
2341# SunOS /usr/etc/install
2342# IRIX /sbin/install
2343# AIX /bin/install
2344# AmigaOS /C/install, which installs bootblocks on floppy discs
2345# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2346# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2347# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2348# OS/2's system install, which has a completely different semantic
2349# ./install, which can be erroneously created by make from ./install.sh.
2350# Reject install programs that cannot install multiple files.
2351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2352$as_echo_n "checking for a BSD-compatible install... " >&6; }
2353if test -z "$INSTALL"; then
2354if ${ac_cv_path_install+:} false; then :
2355  $as_echo_n "(cached) " >&6
2356else
2357  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358for as_dir in $PATH
2359do
2360  IFS=$as_save_IFS
2361  test -z "$as_dir" && as_dir=.
2362    # Account for people who put trailing slashes in PATH elements.
2363case $as_dir/ in #((
2364  ./ | .// | /[cC]/* | \
2365  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2366  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2367  /usr/ucb/* ) ;;
2368  *)
2369    # OSF1 and SCO ODT 3.0 have their own names for install.
2370    # Don't use installbsd from OSF since it installs stuff as root
2371    # by default.
2372    for ac_prog in ginstall scoinst install; do
2373      for ac_exec_ext in '' $ac_executable_extensions; do
2374	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2375	  if test $ac_prog = install &&
2376	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2377	    # AIX install.  It has an incompatible calling convention.
2378	    :
2379	  elif test $ac_prog = install &&
2380	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2381	    # program-specific install script used by HP pwplus--don't use.
2382	    :
2383	  else
2384	    rm -rf conftest.one conftest.two conftest.dir
2385	    echo one > conftest.one
2386	    echo two > conftest.two
2387	    mkdir conftest.dir
2388	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2389	      test -s conftest.one && test -s conftest.two &&
2390	      test -s conftest.dir/conftest.one &&
2391	      test -s conftest.dir/conftest.two
2392	    then
2393	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2394	      break 3
2395	    fi
2396	  fi
2397	fi
2398      done
2399    done
2400    ;;
2401esac
2402
2403  done
2404IFS=$as_save_IFS
2405
2406rm -rf conftest.one conftest.two conftest.dir
2407
2408fi
2409  if test "${ac_cv_path_install+set}" = set; then
2410    INSTALL=$ac_cv_path_install
2411  else
2412    # As a last resort, use the slow shell script.  Don't cache a
2413    # value for INSTALL within a source directory, because that will
2414    # break other packages using the cache if that directory is
2415    # removed, or if the value is a relative name.
2416    INSTALL=$ac_install_sh
2417  fi
2418fi
2419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2420$as_echo "$INSTALL" >&6; }
2421
2422# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2423# It thinks the first close brace ends the variable substitution.
2424test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2425
2426test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2427
2428test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2429
2430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2431$as_echo_n "checking whether build environment is sane... " >&6; }
2432# Just in case
2433sleep 1
2434echo timestamp > conftest.file
2435# Reject unsafe characters in $srcdir or the absolute working directory
2436# name.  Accept space and tab only in the latter.
2437am_lf='
2438'
2439case `pwd` in
2440  *[\\\"\#\$\&\'\`$am_lf]*)
2441    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2442esac
2443case $srcdir in
2444  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2445    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2446esac
2447
2448# Do `set' in a subshell so we don't clobber the current shell's
2449# arguments.  Must try -L first in case configure is actually a
2450# symlink; some systems play weird games with the mod time of symlinks
2451# (eg FreeBSD returns the mod time of the symlink's containing
2452# directory).
2453if (
2454   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2455   if test "$*" = "X"; then
2456      # -L didn't work.
2457      set X `ls -t "$srcdir/configure" conftest.file`
2458   fi
2459   rm -f conftest.file
2460   if test "$*" != "X $srcdir/configure conftest.file" \
2461      && test "$*" != "X conftest.file $srcdir/configure"; then
2462
2463      # If neither matched, then we have a broken ls.  This can happen
2464      # if, for instance, CONFIG_SHELL is bash and it inherits a
2465      # broken ls alias from the environment.  This has actually
2466      # happened.  Such a system could not be considered "sane".
2467      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2468alias in your environment" "$LINENO" 5
2469   fi
2470
2471   test "$2" = conftest.file
2472   )
2473then
2474   # Ok.
2475   :
2476else
2477   as_fn_error $? "newly created file is older than distributed files!
2478Check your system clock" "$LINENO" 5
2479fi
2480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2481$as_echo "yes" >&6; }
2482test "$program_prefix" != NONE &&
2483  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2484# Use a double $ so make ignores it.
2485test "$program_suffix" != NONE &&
2486  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2487# Double any \ or $.
2488# By default was `s,x,x', remove it if useless.
2489ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2490program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2491
2492# expand $ac_aux_dir to an absolute path
2493am_aux_dir=`cd $ac_aux_dir && pwd`
2494
2495if test x"${MISSING+set}" != xset; then
2496  case $am_aux_dir in
2497  *\ * | *\	*)
2498    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2499  *)
2500    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2501  esac
2502fi
2503# Use eval to expand $SHELL
2504if eval "$MISSING --run true"; then
2505  am_missing_run="$MISSING --run "
2506else
2507  am_missing_run=
2508  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2509$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2510fi
2511
2512if test x"${install_sh}" != xset; then
2513  case $am_aux_dir in
2514  *\ * | *\	*)
2515    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2516  *)
2517    install_sh="\${SHELL} $am_aux_dir/install-sh"
2518  esac
2519fi
2520
2521# Installed binaries are usually stripped using `strip' when the user
2522# run `make install-strip'.  However `strip' might not be the right
2523# tool to use in cross-compilation environments, therefore Automake
2524# will honor the `STRIP' environment variable to overrule this program.
2525if test "$cross_compiling" != no; then
2526  if test -n "$ac_tool_prefix"; then
2527  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2528set dummy ${ac_tool_prefix}strip; ac_word=$2
2529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2530$as_echo_n "checking for $ac_word... " >&6; }
2531if ${ac_cv_prog_STRIP+:} false; then :
2532  $as_echo_n "(cached) " >&6
2533else
2534  if test -n "$STRIP"; then
2535  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2536else
2537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538for as_dir in $PATH
2539do
2540  IFS=$as_save_IFS
2541  test -z "$as_dir" && as_dir=.
2542    for ac_exec_ext in '' $ac_executable_extensions; do
2543  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2545    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2546    break 2
2547  fi
2548done
2549  done
2550IFS=$as_save_IFS
2551
2552fi
2553fi
2554STRIP=$ac_cv_prog_STRIP
2555if test -n "$STRIP"; then
2556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2557$as_echo "$STRIP" >&6; }
2558else
2559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560$as_echo "no" >&6; }
2561fi
2562
2563
2564fi
2565if test -z "$ac_cv_prog_STRIP"; then
2566  ac_ct_STRIP=$STRIP
2567  # Extract the first word of "strip", so it can be a program name with args.
2568set dummy strip; ac_word=$2
2569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2570$as_echo_n "checking for $ac_word... " >&6; }
2571if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2572  $as_echo_n "(cached) " >&6
2573else
2574  if test -n "$ac_ct_STRIP"; then
2575  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2576else
2577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578for as_dir in $PATH
2579do
2580  IFS=$as_save_IFS
2581  test -z "$as_dir" && as_dir=.
2582    for ac_exec_ext in '' $ac_executable_extensions; do
2583  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2584    ac_cv_prog_ac_ct_STRIP="strip"
2585    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586    break 2
2587  fi
2588done
2589  done
2590IFS=$as_save_IFS
2591
2592fi
2593fi
2594ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2595if test -n "$ac_ct_STRIP"; then
2596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2597$as_echo "$ac_ct_STRIP" >&6; }
2598else
2599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2600$as_echo "no" >&6; }
2601fi
2602
2603  if test "x$ac_ct_STRIP" = x; then
2604    STRIP=":"
2605  else
2606    case $cross_compiling:$ac_tool_warned in
2607yes:)
2608{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2609$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2610ac_tool_warned=yes ;;
2611esac
2612    STRIP=$ac_ct_STRIP
2613  fi
2614else
2615  STRIP="$ac_cv_prog_STRIP"
2616fi
2617
2618fi
2619INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2620
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2622$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2623if test -z "$MKDIR_P"; then
2624  if ${ac_cv_path_mkdir+:} false; then :
2625  $as_echo_n "(cached) " >&6
2626else
2627  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2629do
2630  IFS=$as_save_IFS
2631  test -z "$as_dir" && as_dir=.
2632    for ac_prog in mkdir gmkdir; do
2633	 for ac_exec_ext in '' $ac_executable_extensions; do
2634	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2635	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2636	     'mkdir (GNU coreutils) '* | \
2637	     'mkdir (coreutils) '* | \
2638	     'mkdir (fileutils) '4.1*)
2639	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2640	       break 3;;
2641	   esac
2642	 done
2643       done
2644  done
2645IFS=$as_save_IFS
2646
2647fi
2648
2649  test -d ./--version && rmdir ./--version
2650  if test "${ac_cv_path_mkdir+set}" = set; then
2651    MKDIR_P="$ac_cv_path_mkdir -p"
2652  else
2653    # As a last resort, use the slow shell script.  Don't cache a
2654    # value for MKDIR_P within a source directory, because that will
2655    # break other packages using the cache if that directory is
2656    # removed, or if the value is a relative name.
2657    MKDIR_P="$ac_install_sh -d"
2658  fi
2659fi
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2661$as_echo "$MKDIR_P" >&6; }
2662
2663mkdir_p="$MKDIR_P"
2664case $mkdir_p in
2665  [\\/$]* | ?:[\\/]*) ;;
2666  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2667esac
2668
2669for ac_prog in gawk mawk nawk awk
2670do
2671  # Extract the first word of "$ac_prog", so it can be a program name with args.
2672set dummy $ac_prog; ac_word=$2
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674$as_echo_n "checking for $ac_word... " >&6; }
2675if ${ac_cv_prog_AWK+:} false; then :
2676  $as_echo_n "(cached) " >&6
2677else
2678  if test -n "$AWK"; then
2679  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2680else
2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH
2683do
2684  IFS=$as_save_IFS
2685  test -z "$as_dir" && as_dir=.
2686    for ac_exec_ext in '' $ac_executable_extensions; do
2687  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2688    ac_cv_prog_AWK="$ac_prog"
2689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690    break 2
2691  fi
2692done
2693  done
2694IFS=$as_save_IFS
2695
2696fi
2697fi
2698AWK=$ac_cv_prog_AWK
2699if test -n "$AWK"; then
2700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2701$as_echo "$AWK" >&6; }
2702else
2703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704$as_echo "no" >&6; }
2705fi
2706
2707
2708  test -n "$AWK" && break
2709done
2710
2711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2712$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2713set x ${MAKE-make}
2714ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2715if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2716  $as_echo_n "(cached) " >&6
2717else
2718  cat >conftest.make <<\_ACEOF
2719SHELL = /bin/sh
2720all:
2721	@echo '@@@%%%=$(MAKE)=@@@%%%'
2722_ACEOF
2723# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2724case `${MAKE-make} -f conftest.make 2>/dev/null` in
2725  *@@@%%%=?*=@@@%%%*)
2726    eval ac_cv_prog_make_${ac_make}_set=yes;;
2727  *)
2728    eval ac_cv_prog_make_${ac_make}_set=no;;
2729esac
2730rm -f conftest.make
2731fi
2732if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2734$as_echo "yes" >&6; }
2735  SET_MAKE=
2736else
2737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738$as_echo "no" >&6; }
2739  SET_MAKE="MAKE=${MAKE-make}"
2740fi
2741
2742rm -rf .tst 2>/dev/null
2743mkdir .tst 2>/dev/null
2744if test -d .tst; then
2745  am__leading_dot=.
2746else
2747  am__leading_dot=_
2748fi
2749rmdir .tst 2>/dev/null
2750
2751if test "`cd $srcdir && pwd`" != "`pwd`"; then
2752  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2753  # is not polluted with repeated "-I."
2754  am__isrc=' -I$(srcdir)'
2755  # test to see if srcdir already configured
2756  if test -f $srcdir/config.status; then
2757    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2758  fi
2759fi
2760
2761# test whether we have cygpath
2762if test -z "$CYGPATH_W"; then
2763  if (cygpath --version) >/dev/null 2>/dev/null; then
2764    CYGPATH_W='cygpath -w'
2765  else
2766    CYGPATH_W=echo
2767  fi
2768fi
2769
2770
2771# Define the identity of the package.
2772 PACKAGE='xf86-video-ark'
2773 VERSION='0.7.5'
2774
2775
2776cat >>confdefs.h <<_ACEOF
2777#define PACKAGE "$PACKAGE"
2778_ACEOF
2779
2780
2781cat >>confdefs.h <<_ACEOF
2782#define VERSION "$VERSION"
2783_ACEOF
2784
2785# Some tools Automake needs.
2786
2787ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2788
2789
2790AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2791
2792
2793AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2794
2795
2796AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2797
2798
2799MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2800
2801# We need awk for the "check" target.  The system "awk" is bad on
2802# some platforms.
2803# Always define AMTAR for backward compatibility.  Yes, it's still used
2804# in the wild :-(  We should find a proper way to deprecate it ...
2805AMTAR='$${TAR-tar}'
2806
2807am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2808
2809
2810
2811
2812
2813
2814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2815$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2816    # Check whether --enable-maintainer-mode was given.
2817if test "${enable_maintainer_mode+set}" = set; then :
2818  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2819else
2820  USE_MAINTAINER_MODE=no
2821fi
2822
2823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2824$as_echo "$USE_MAINTAINER_MODE" >&6; }
2825   if test $USE_MAINTAINER_MODE = yes; then
2826  MAINTAINER_MODE_TRUE=
2827  MAINTAINER_MODE_FALSE='#'
2828else
2829  MAINTAINER_MODE_TRUE='#'
2830  MAINTAINER_MODE_FALSE=
2831fi
2832
2833  MAINT=$MAINTAINER_MODE_TRUE
2834
2835
2836
2837# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849DEPDIR="${am__leading_dot}deps"
2850
2851ac_config_commands="$ac_config_commands depfiles"
2852
2853
2854am_make=${MAKE-make}
2855cat > confinc << 'END'
2856am__doit:
2857	@echo this is the am__doit target
2858.PHONY: am__doit
2859END
2860# If we don't find an include directive, just comment out the code.
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2862$as_echo_n "checking for style of include used by $am_make... " >&6; }
2863am__include="#"
2864am__quote=
2865_am_result=none
2866# First try GNU make style include.
2867echo "include confinc" > confmf
2868# Ignore all kinds of additional output from `make'.
2869case `$am_make -s -f confmf 2> /dev/null` in #(
2870*the\ am__doit\ target*)
2871  am__include=include
2872  am__quote=
2873  _am_result=GNU
2874  ;;
2875esac
2876# Now try BSD make style include.
2877if test "$am__include" = "#"; then
2878   echo '.include "confinc"' > confmf
2879   case `$am_make -s -f confmf 2> /dev/null` in #(
2880   *the\ am__doit\ target*)
2881     am__include=.include
2882     am__quote="\""
2883     _am_result=BSD
2884     ;;
2885   esac
2886fi
2887
2888
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2890$as_echo "$_am_result" >&6; }
2891rm -f confinc confmf
2892
2893# Check whether --enable-dependency-tracking was given.
2894if test "${enable_dependency_tracking+set}" = set; then :
2895  enableval=$enable_dependency_tracking;
2896fi
2897
2898if test "x$enable_dependency_tracking" != xno; then
2899  am_depcomp="$ac_aux_dir/depcomp"
2900  AMDEPBACKSLASH='\'
2901  am__nodep='_no'
2902fi
2903 if test "x$enable_dependency_tracking" != xno; then
2904  AMDEP_TRUE=
2905  AMDEP_FALSE='#'
2906else
2907  AMDEP_TRUE='#'
2908  AMDEP_FALSE=
2909fi
2910
2911
2912ac_ext=c
2913ac_cpp='$CPP $CPPFLAGS'
2914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2916ac_compiler_gnu=$ac_cv_c_compiler_gnu
2917if test -n "$ac_tool_prefix"; then
2918  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2919set dummy ${ac_tool_prefix}gcc; ac_word=$2
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921$as_echo_n "checking for $ac_word... " >&6; }
2922if ${ac_cv_prog_CC+:} false; then :
2923  $as_echo_n "(cached) " >&6
2924else
2925  if test -n "$CC"; then
2926  ac_cv_prog_CC="$CC" # Let the user override the test.
2927else
2928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929for as_dir in $PATH
2930do
2931  IFS=$as_save_IFS
2932  test -z "$as_dir" && as_dir=.
2933    for ac_exec_ext in '' $ac_executable_extensions; do
2934  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2936    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937    break 2
2938  fi
2939done
2940  done
2941IFS=$as_save_IFS
2942
2943fi
2944fi
2945CC=$ac_cv_prog_CC
2946if test -n "$CC"; then
2947  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2948$as_echo "$CC" >&6; }
2949else
2950  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951$as_echo "no" >&6; }
2952fi
2953
2954
2955fi
2956if test -z "$ac_cv_prog_CC"; then
2957  ac_ct_CC=$CC
2958  # Extract the first word of "gcc", so it can be a program name with args.
2959set dummy gcc; ac_word=$2
2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961$as_echo_n "checking for $ac_word... " >&6; }
2962if ${ac_cv_prog_ac_ct_CC+:} false; then :
2963  $as_echo_n "(cached) " >&6
2964else
2965  if test -n "$ac_ct_CC"; then
2966  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2967else
2968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969for as_dir in $PATH
2970do
2971  IFS=$as_save_IFS
2972  test -z "$as_dir" && as_dir=.
2973    for ac_exec_ext in '' $ac_executable_extensions; do
2974  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975    ac_cv_prog_ac_ct_CC="gcc"
2976    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977    break 2
2978  fi
2979done
2980  done
2981IFS=$as_save_IFS
2982
2983fi
2984fi
2985ac_ct_CC=$ac_cv_prog_ac_ct_CC
2986if test -n "$ac_ct_CC"; then
2987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2988$as_echo "$ac_ct_CC" >&6; }
2989else
2990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991$as_echo "no" >&6; }
2992fi
2993
2994  if test "x$ac_ct_CC" = x; then
2995    CC=""
2996  else
2997    case $cross_compiling:$ac_tool_warned in
2998yes:)
2999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3001ac_tool_warned=yes ;;
3002esac
3003    CC=$ac_ct_CC
3004  fi
3005else
3006  CC="$ac_cv_prog_CC"
3007fi
3008
3009if test -z "$CC"; then
3010          if test -n "$ac_tool_prefix"; then
3011    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3012set dummy ${ac_tool_prefix}cc; ac_word=$2
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014$as_echo_n "checking for $ac_word... " >&6; }
3015if ${ac_cv_prog_CC+:} false; then :
3016  $as_echo_n "(cached) " >&6
3017else
3018  if test -n "$CC"; then
3019  ac_cv_prog_CC="$CC" # Let the user override the test.
3020else
3021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022for as_dir in $PATH
3023do
3024  IFS=$as_save_IFS
3025  test -z "$as_dir" && as_dir=.
3026    for ac_exec_ext in '' $ac_executable_extensions; do
3027  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3028    ac_cv_prog_CC="${ac_tool_prefix}cc"
3029    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030    break 2
3031  fi
3032done
3033  done
3034IFS=$as_save_IFS
3035
3036fi
3037fi
3038CC=$ac_cv_prog_CC
3039if test -n "$CC"; then
3040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3041$as_echo "$CC" >&6; }
3042else
3043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044$as_echo "no" >&6; }
3045fi
3046
3047
3048  fi
3049fi
3050if test -z "$CC"; then
3051  # Extract the first word of "cc", so it can be a program name with args.
3052set dummy cc; ac_word=$2
3053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3054$as_echo_n "checking for $ac_word... " >&6; }
3055if ${ac_cv_prog_CC+:} false; then :
3056  $as_echo_n "(cached) " >&6
3057else
3058  if test -n "$CC"; then
3059  ac_cv_prog_CC="$CC" # Let the user override the test.
3060else
3061  ac_prog_rejected=no
3062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063for as_dir in $PATH
3064do
3065  IFS=$as_save_IFS
3066  test -z "$as_dir" && as_dir=.
3067    for ac_exec_ext in '' $ac_executable_extensions; do
3068  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3069    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3070       ac_prog_rejected=yes
3071       continue
3072     fi
3073    ac_cv_prog_CC="cc"
3074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075    break 2
3076  fi
3077done
3078  done
3079IFS=$as_save_IFS
3080
3081if test $ac_prog_rejected = yes; then
3082  # We found a bogon in the path, so make sure we never use it.
3083  set dummy $ac_cv_prog_CC
3084  shift
3085  if test $# != 0; then
3086    # We chose a different compiler from the bogus one.
3087    # However, it has the same basename, so the bogon will be chosen
3088    # first if we set CC to just the basename; use the full file name.
3089    shift
3090    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3091  fi
3092fi
3093fi
3094fi
3095CC=$ac_cv_prog_CC
3096if test -n "$CC"; then
3097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3098$as_echo "$CC" >&6; }
3099else
3100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101$as_echo "no" >&6; }
3102fi
3103
3104
3105fi
3106if test -z "$CC"; then
3107  if test -n "$ac_tool_prefix"; then
3108  for ac_prog in cl.exe
3109  do
3110    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3111set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113$as_echo_n "checking for $ac_word... " >&6; }
3114if ${ac_cv_prog_CC+:} false; then :
3115  $as_echo_n "(cached) " >&6
3116else
3117  if test -n "$CC"; then
3118  ac_cv_prog_CC="$CC" # Let the user override the test.
3119else
3120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121for as_dir in $PATH
3122do
3123  IFS=$as_save_IFS
3124  test -z "$as_dir" && as_dir=.
3125    for ac_exec_ext in '' $ac_executable_extensions; do
3126  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3127    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129    break 2
3130  fi
3131done
3132  done
3133IFS=$as_save_IFS
3134
3135fi
3136fi
3137CC=$ac_cv_prog_CC
3138if test -n "$CC"; then
3139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3140$as_echo "$CC" >&6; }
3141else
3142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143$as_echo "no" >&6; }
3144fi
3145
3146
3147    test -n "$CC" && break
3148  done
3149fi
3150if test -z "$CC"; then
3151  ac_ct_CC=$CC
3152  for ac_prog in cl.exe
3153do
3154  # Extract the first word of "$ac_prog", so it can be a program name with args.
3155set dummy $ac_prog; ac_word=$2
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157$as_echo_n "checking for $ac_word... " >&6; }
3158if ${ac_cv_prog_ac_ct_CC+:} false; then :
3159  $as_echo_n "(cached) " >&6
3160else
3161  if test -n "$ac_ct_CC"; then
3162  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3163else
3164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165for as_dir in $PATH
3166do
3167  IFS=$as_save_IFS
3168  test -z "$as_dir" && as_dir=.
3169    for ac_exec_ext in '' $ac_executable_extensions; do
3170  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3171    ac_cv_prog_ac_ct_CC="$ac_prog"
3172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173    break 2
3174  fi
3175done
3176  done
3177IFS=$as_save_IFS
3178
3179fi
3180fi
3181ac_ct_CC=$ac_cv_prog_ac_ct_CC
3182if test -n "$ac_ct_CC"; then
3183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3184$as_echo "$ac_ct_CC" >&6; }
3185else
3186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187$as_echo "no" >&6; }
3188fi
3189
3190
3191  test -n "$ac_ct_CC" && break
3192done
3193
3194  if test "x$ac_ct_CC" = x; then
3195    CC=""
3196  else
3197    case $cross_compiling:$ac_tool_warned in
3198yes:)
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3200$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3201ac_tool_warned=yes ;;
3202esac
3203    CC=$ac_ct_CC
3204  fi
3205fi
3206
3207fi
3208
3209
3210test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3212as_fn_error $? "no acceptable C compiler found in \$PATH
3213See \`config.log' for more details" "$LINENO" 5; }
3214
3215# Provide some information about the compiler.
3216$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3217set X $ac_compile
3218ac_compiler=$2
3219for ac_option in --version -v -V -qversion; do
3220  { { ac_try="$ac_compiler $ac_option >&5"
3221case "(($ac_try" in
3222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223  *) ac_try_echo=$ac_try;;
3224esac
3225eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3226$as_echo "$ac_try_echo"; } >&5
3227  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3228  ac_status=$?
3229  if test -s conftest.err; then
3230    sed '10a\
3231... rest of stderr output deleted ...
3232         10q' conftest.err >conftest.er1
3233    cat conftest.er1 >&5
3234  fi
3235  rm -f conftest.er1 conftest.err
3236  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3237  test $ac_status = 0; }
3238done
3239
3240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241/* end confdefs.h.  */
3242
3243int
3244main ()
3245{
3246
3247  ;
3248  return 0;
3249}
3250_ACEOF
3251ac_clean_files_save=$ac_clean_files
3252ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3253# Try to create an executable without -o first, disregard a.out.
3254# It will help us diagnose broken compilers, and finding out an intuition
3255# of exeext.
3256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3257$as_echo_n "checking whether the C compiler works... " >&6; }
3258ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3259
3260# The possible output files:
3261ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3262
3263ac_rmfiles=
3264for ac_file in $ac_files
3265do
3266  case $ac_file in
3267    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3268    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3269  esac
3270done
3271rm -f $ac_rmfiles
3272
3273if { { ac_try="$ac_link_default"
3274case "(($ac_try" in
3275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276  *) ac_try_echo=$ac_try;;
3277esac
3278eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279$as_echo "$ac_try_echo"; } >&5
3280  (eval "$ac_link_default") 2>&5
3281  ac_status=$?
3282  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283  test $ac_status = 0; }; then :
3284  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3285# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3286# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3287# so that the user can short-circuit this test for compilers unknown to
3288# Autoconf.
3289for ac_file in $ac_files ''
3290do
3291  test -f "$ac_file" || continue
3292  case $ac_file in
3293    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3294	;;
3295    [ab].out )
3296	# We found the default executable, but exeext='' is most
3297	# certainly right.
3298	break;;
3299    *.* )
3300	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3301	then :; else
3302	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3303	fi
3304	# We set ac_cv_exeext here because the later test for it is not
3305	# safe: cross compilers may not add the suffix if given an `-o'
3306	# argument, so we may need to know it at that point already.
3307	# Even if this section looks crufty: it has the advantage of
3308	# actually working.
3309	break;;
3310    * )
3311	break;;
3312  esac
3313done
3314test "$ac_cv_exeext" = no && ac_cv_exeext=
3315
3316else
3317  ac_file=''
3318fi
3319if test -z "$ac_file"; then :
3320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321$as_echo "no" >&6; }
3322$as_echo "$as_me: failed program was:" >&5
3323sed 's/^/| /' conftest.$ac_ext >&5
3324
3325{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3326$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3327as_fn_error 77 "C compiler cannot create executables
3328See \`config.log' for more details" "$LINENO" 5; }
3329else
3330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3331$as_echo "yes" >&6; }
3332fi
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3334$as_echo_n "checking for C compiler default output file name... " >&6; }
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3336$as_echo "$ac_file" >&6; }
3337ac_exeext=$ac_cv_exeext
3338
3339rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3340ac_clean_files=$ac_clean_files_save
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3342$as_echo_n "checking for suffix of executables... " >&6; }
3343if { { ac_try="$ac_link"
3344case "(($ac_try" in
3345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346  *) ac_try_echo=$ac_try;;
3347esac
3348eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349$as_echo "$ac_try_echo"; } >&5
3350  (eval "$ac_link") 2>&5
3351  ac_status=$?
3352  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3353  test $ac_status = 0; }; then :
3354  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3355# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3356# work properly (i.e., refer to `conftest.exe'), while it won't with
3357# `rm'.
3358for ac_file in conftest.exe conftest conftest.*; do
3359  test -f "$ac_file" || continue
3360  case $ac_file in
3361    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3362    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3363	  break;;
3364    * ) break;;
3365  esac
3366done
3367else
3368  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3369$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3370as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3371See \`config.log' for more details" "$LINENO" 5; }
3372fi
3373rm -f conftest conftest$ac_cv_exeext
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3375$as_echo "$ac_cv_exeext" >&6; }
3376
3377rm -f conftest.$ac_ext
3378EXEEXT=$ac_cv_exeext
3379ac_exeext=$EXEEXT
3380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381/* end confdefs.h.  */
3382#include <stdio.h>
3383int
3384main ()
3385{
3386FILE *f = fopen ("conftest.out", "w");
3387 return ferror (f) || fclose (f) != 0;
3388
3389  ;
3390  return 0;
3391}
3392_ACEOF
3393ac_clean_files="$ac_clean_files conftest.out"
3394# Check that the compiler produces executables we can run.  If not, either
3395# the compiler is broken, or we cross compile.
3396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3397$as_echo_n "checking whether we are cross compiling... " >&6; }
3398if test "$cross_compiling" != yes; then
3399  { { ac_try="$ac_link"
3400case "(($ac_try" in
3401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402  *) ac_try_echo=$ac_try;;
3403esac
3404eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405$as_echo "$ac_try_echo"; } >&5
3406  (eval "$ac_link") 2>&5
3407  ac_status=$?
3408  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3409  test $ac_status = 0; }
3410  if { ac_try='./conftest$ac_cv_exeext'
3411  { { case "(($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_try") 2>&5
3418  ac_status=$?
3419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420  test $ac_status = 0; }; }; then
3421    cross_compiling=no
3422  else
3423    if test "$cross_compiling" = maybe; then
3424	cross_compiling=yes
3425    else
3426	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3427$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3428as_fn_error $? "cannot run C compiled programs.
3429If you meant to cross compile, use \`--host'.
3430See \`config.log' for more details" "$LINENO" 5; }
3431    fi
3432  fi
3433fi
3434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3435$as_echo "$cross_compiling" >&6; }
3436
3437rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3438ac_clean_files=$ac_clean_files_save
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3440$as_echo_n "checking for suffix of object files... " >&6; }
3441if ${ac_cv_objext+:} false; then :
3442  $as_echo_n "(cached) " >&6
3443else
3444  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445/* end confdefs.h.  */
3446
3447int
3448main ()
3449{
3450
3451  ;
3452  return 0;
3453}
3454_ACEOF
3455rm -f conftest.o conftest.obj
3456if { { ac_try="$ac_compile"
3457case "(($ac_try" in
3458  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459  *) ac_try_echo=$ac_try;;
3460esac
3461eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462$as_echo "$ac_try_echo"; } >&5
3463  (eval "$ac_compile") 2>&5
3464  ac_status=$?
3465  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466  test $ac_status = 0; }; then :
3467  for ac_file in conftest.o conftest.obj conftest.*; do
3468  test -f "$ac_file" || continue;
3469  case $ac_file in
3470    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3471    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3472       break;;
3473  esac
3474done
3475else
3476  $as_echo "$as_me: failed program was:" >&5
3477sed 's/^/| /' conftest.$ac_ext >&5
3478
3479{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481as_fn_error $? "cannot compute suffix of object files: cannot compile
3482See \`config.log' for more details" "$LINENO" 5; }
3483fi
3484rm -f conftest.$ac_cv_objext conftest.$ac_ext
3485fi
3486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3487$as_echo "$ac_cv_objext" >&6; }
3488OBJEXT=$ac_cv_objext
3489ac_objext=$OBJEXT
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3491$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3492if ${ac_cv_c_compiler_gnu+:} false; then :
3493  $as_echo_n "(cached) " >&6
3494else
3495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496/* end confdefs.h.  */
3497
3498int
3499main ()
3500{
3501#ifndef __GNUC__
3502       choke me
3503#endif
3504
3505  ;
3506  return 0;
3507}
3508_ACEOF
3509if ac_fn_c_try_compile "$LINENO"; then :
3510  ac_compiler_gnu=yes
3511else
3512  ac_compiler_gnu=no
3513fi
3514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515ac_cv_c_compiler_gnu=$ac_compiler_gnu
3516
3517fi
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3519$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3520if test $ac_compiler_gnu = yes; then
3521  GCC=yes
3522else
3523  GCC=
3524fi
3525ac_test_CFLAGS=${CFLAGS+set}
3526ac_save_CFLAGS=$CFLAGS
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3528$as_echo_n "checking whether $CC accepts -g... " >&6; }
3529if ${ac_cv_prog_cc_g+:} false; then :
3530  $as_echo_n "(cached) " >&6
3531else
3532  ac_save_c_werror_flag=$ac_c_werror_flag
3533   ac_c_werror_flag=yes
3534   ac_cv_prog_cc_g=no
3535   CFLAGS="-g"
3536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537/* end confdefs.h.  */
3538
3539int
3540main ()
3541{
3542
3543  ;
3544  return 0;
3545}
3546_ACEOF
3547if ac_fn_c_try_compile "$LINENO"; then :
3548  ac_cv_prog_cc_g=yes
3549else
3550  CFLAGS=""
3551      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552/* end confdefs.h.  */
3553
3554int
3555main ()
3556{
3557
3558  ;
3559  return 0;
3560}
3561_ACEOF
3562if ac_fn_c_try_compile "$LINENO"; then :
3563
3564else
3565  ac_c_werror_flag=$ac_save_c_werror_flag
3566	 CFLAGS="-g"
3567	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568/* end confdefs.h.  */
3569
3570int
3571main ()
3572{
3573
3574  ;
3575  return 0;
3576}
3577_ACEOF
3578if ac_fn_c_try_compile "$LINENO"; then :
3579  ac_cv_prog_cc_g=yes
3580fi
3581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582fi
3583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584fi
3585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586   ac_c_werror_flag=$ac_save_c_werror_flag
3587fi
3588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3589$as_echo "$ac_cv_prog_cc_g" >&6; }
3590if test "$ac_test_CFLAGS" = set; then
3591  CFLAGS=$ac_save_CFLAGS
3592elif test $ac_cv_prog_cc_g = yes; then
3593  if test "$GCC" = yes; then
3594    CFLAGS="-g -O2"
3595  else
3596    CFLAGS="-g"
3597  fi
3598else
3599  if test "$GCC" = yes; then
3600    CFLAGS="-O2"
3601  else
3602    CFLAGS=
3603  fi
3604fi
3605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3606$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3607if ${ac_cv_prog_cc_c89+:} false; then :
3608  $as_echo_n "(cached) " >&6
3609else
3610  ac_cv_prog_cc_c89=no
3611ac_save_CC=$CC
3612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613/* end confdefs.h.  */
3614#include <stdarg.h>
3615#include <stdio.h>
3616#include <sys/types.h>
3617#include <sys/stat.h>
3618/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3619struct buf { int x; };
3620FILE * (*rcsopen) (struct buf *, struct stat *, int);
3621static char *e (p, i)
3622     char **p;
3623     int i;
3624{
3625  return p[i];
3626}
3627static char *f (char * (*g) (char **, int), char **p, ...)
3628{
3629  char *s;
3630  va_list v;
3631  va_start (v,p);
3632  s = g (p, va_arg (v,int));
3633  va_end (v);
3634  return s;
3635}
3636
3637/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3638   function prototypes and stuff, but not '\xHH' hex character constants.
3639   These don't provoke an error unfortunately, instead are silently treated
3640   as 'x'.  The following induces an error, until -std is added to get
3641   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3642   array size at least.  It's necessary to write '\x00'==0 to get something
3643   that's true only with -std.  */
3644int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3645
3646/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3647   inside strings and character constants.  */
3648#define FOO(x) 'x'
3649int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3650
3651int test (int i, double x);
3652struct s1 {int (*f) (int a);};
3653struct s2 {int (*f) (double a);};
3654int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3655int argc;
3656char **argv;
3657int
3658main ()
3659{
3660return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3661  ;
3662  return 0;
3663}
3664_ACEOF
3665for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3666	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3667do
3668  CC="$ac_save_CC $ac_arg"
3669  if ac_fn_c_try_compile "$LINENO"; then :
3670  ac_cv_prog_cc_c89=$ac_arg
3671fi
3672rm -f core conftest.err conftest.$ac_objext
3673  test "x$ac_cv_prog_cc_c89" != "xno" && break
3674done
3675rm -f conftest.$ac_ext
3676CC=$ac_save_CC
3677
3678fi
3679# AC_CACHE_VAL
3680case "x$ac_cv_prog_cc_c89" in
3681  x)
3682    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3683$as_echo "none needed" >&6; } ;;
3684  xno)
3685    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3686$as_echo "unsupported" >&6; } ;;
3687  *)
3688    CC="$CC $ac_cv_prog_cc_c89"
3689    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3690$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3691esac
3692if test "x$ac_cv_prog_cc_c89" != xno; then :
3693
3694fi
3695
3696ac_ext=c
3697ac_cpp='$CPP $CPPFLAGS'
3698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700ac_compiler_gnu=$ac_cv_c_compiler_gnu
3701
3702depcc="$CC"   am_compiler_list=
3703
3704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3705$as_echo_n "checking dependency style of $depcc... " >&6; }
3706if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3707  $as_echo_n "(cached) " >&6
3708else
3709  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3710  # We make a subdir and do the tests there.  Otherwise we can end up
3711  # making bogus files that we don't know about and never remove.  For
3712  # instance it was reported that on HP-UX the gcc test will end up
3713  # making a dummy file named `D' -- because `-MD' means `put the output
3714  # in D'.
3715  rm -rf conftest.dir
3716  mkdir conftest.dir
3717  # Copy depcomp to subdir because otherwise we won't find it if we're
3718  # using a relative directory.
3719  cp "$am_depcomp" conftest.dir
3720  cd conftest.dir
3721  # We will build objects and dependencies in a subdirectory because
3722  # it helps to detect inapplicable dependency modes.  For instance
3723  # both Tru64's cc and ICC support -MD to output dependencies as a
3724  # side effect of compilation, but ICC will put the dependencies in
3725  # the current directory while Tru64 will put them in the object
3726  # directory.
3727  mkdir sub
3728
3729  am_cv_CC_dependencies_compiler_type=none
3730  if test "$am_compiler_list" = ""; then
3731     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3732  fi
3733  am__universal=false
3734  case " $depcc " in #(
3735     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3736     esac
3737
3738  for depmode in $am_compiler_list; do
3739    # Setup a source with many dependencies, because some compilers
3740    # like to wrap large dependency lists on column 80 (with \), and
3741    # we should not choose a depcomp mode which is confused by this.
3742    #
3743    # We need to recreate these files for each test, as the compiler may
3744    # overwrite some of them when testing with obscure command lines.
3745    # This happens at least with the AIX C compiler.
3746    : > sub/conftest.c
3747    for i in 1 2 3 4 5 6; do
3748      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3749      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3750      # Solaris 8's {/usr,}/bin/sh.
3751      touch sub/conftst$i.h
3752    done
3753    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3754
3755    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3756    # mode.  It turns out that the SunPro C++ compiler does not properly
3757    # handle `-M -o', and we need to detect this.  Also, some Intel
3758    # versions had trouble with output in subdirs
3759    am__obj=sub/conftest.${OBJEXT-o}
3760    am__minus_obj="-o $am__obj"
3761    case $depmode in
3762    gcc)
3763      # This depmode causes a compiler race in universal mode.
3764      test "$am__universal" = false || continue
3765      ;;
3766    nosideeffect)
3767      # after this tag, mechanisms are not by side-effect, so they'll
3768      # only be used when explicitly requested
3769      if test "x$enable_dependency_tracking" = xyes; then
3770	continue
3771      else
3772	break
3773      fi
3774      ;;
3775    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3776      # This compiler won't grok `-c -o', but also, the minuso test has
3777      # not run yet.  These depmodes are late enough in the game, and
3778      # so weak that their functioning should not be impacted.
3779      am__obj=conftest.${OBJEXT-o}
3780      am__minus_obj=
3781      ;;
3782    none) break ;;
3783    esac
3784    if depmode=$depmode \
3785       source=sub/conftest.c object=$am__obj \
3786       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3787       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3788         >/dev/null 2>conftest.err &&
3789       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3790       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3791       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3792       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3793      # icc doesn't choke on unknown options, it will just issue warnings
3794      # or remarks (even with -Werror).  So we grep stderr for any message
3795      # that says an option was ignored or not supported.
3796      # When given -MP, icc 7.0 and 7.1 complain thusly:
3797      #   icc: Command line warning: ignoring option '-M'; no argument required
3798      # The diagnosis changed in icc 8.0:
3799      #   icc: Command line remark: option '-MP' not supported
3800      if (grep 'ignoring option' conftest.err ||
3801          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3802        am_cv_CC_dependencies_compiler_type=$depmode
3803        break
3804      fi
3805    fi
3806  done
3807
3808  cd ..
3809  rm -rf conftest.dir
3810else
3811  am_cv_CC_dependencies_compiler_type=none
3812fi
3813
3814fi
3815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3816$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3817CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3818
3819 if
3820  test "x$enable_dependency_tracking" != xno \
3821  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3822  am__fastdepCC_TRUE=
3823  am__fastdepCC_FALSE='#'
3824else
3825  am__fastdepCC_TRUE='#'
3826  am__fastdepCC_FALSE=
3827fi
3828
3829
3830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3831$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3832if ${ac_cv_prog_cc_c99+:} false; then :
3833  $as_echo_n "(cached) " >&6
3834else
3835  ac_cv_prog_cc_c99=no
3836ac_save_CC=$CC
3837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838/* end confdefs.h.  */
3839#include <stdarg.h>
3840#include <stdbool.h>
3841#include <stdlib.h>
3842#include <wchar.h>
3843#include <stdio.h>
3844
3845// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3846#define debug(...) fprintf (stderr, __VA_ARGS__)
3847#define showlist(...) puts (#__VA_ARGS__)
3848#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3849static void
3850test_varargs_macros (void)
3851{
3852  int x = 1234;
3853  int y = 5678;
3854  debug ("Flag");
3855  debug ("X = %d\n", x);
3856  showlist (The first, second, and third items.);
3857  report (x>y, "x is %d but y is %d", x, y);
3858}
3859
3860// Check long long types.
3861#define BIG64 18446744073709551615ull
3862#define BIG32 4294967295ul
3863#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3864#if !BIG_OK
3865  your preprocessor is broken;
3866#endif
3867#if BIG_OK
3868#else
3869  your preprocessor is broken;
3870#endif
3871static long long int bignum = -9223372036854775807LL;
3872static unsigned long long int ubignum = BIG64;
3873
3874struct incomplete_array
3875{
3876  int datasize;
3877  double data[];
3878};
3879
3880struct named_init {
3881  int number;
3882  const wchar_t *name;
3883  double average;
3884};
3885
3886typedef const char *ccp;
3887
3888static inline int
3889test_restrict (ccp restrict text)
3890{
3891  // See if C++-style comments work.
3892  // Iterate through items via the restricted pointer.
3893  // Also check for declarations in for loops.
3894  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3895    continue;
3896  return 0;
3897}
3898
3899// Check varargs and va_copy.
3900static void
3901test_varargs (const char *format, ...)
3902{
3903  va_list args;
3904  va_start (args, format);
3905  va_list args_copy;
3906  va_copy (args_copy, args);
3907
3908  const char *str;
3909  int number;
3910  float fnumber;
3911
3912  while (*format)
3913    {
3914      switch (*format++)
3915	{
3916	case 's': // string
3917	  str = va_arg (args_copy, const char *);
3918	  break;
3919	case 'd': // int
3920	  number = va_arg (args_copy, int);
3921	  break;
3922	case 'f': // float
3923	  fnumber = va_arg (args_copy, double);
3924	  break;
3925	default:
3926	  break;
3927	}
3928    }
3929  va_end (args_copy);
3930  va_end (args);
3931}
3932
3933int
3934main ()
3935{
3936
3937  // Check bool.
3938  _Bool success = false;
3939
3940  // Check restrict.
3941  if (test_restrict ("String literal") == 0)
3942    success = true;
3943  char *restrict newvar = "Another string";
3944
3945  // Check varargs.
3946  test_varargs ("s, d' f .", "string", 65, 34.234);
3947  test_varargs_macros ();
3948
3949  // Check flexible array members.
3950  struct incomplete_array *ia =
3951    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3952  ia->datasize = 10;
3953  for (int i = 0; i < ia->datasize; ++i)
3954    ia->data[i] = i * 1.234;
3955
3956  // Check named initializers.
3957  struct named_init ni = {
3958    .number = 34,
3959    .name = L"Test wide string",
3960    .average = 543.34343,
3961  };
3962
3963  ni.number = 58;
3964
3965  int dynamic_array[ni.number];
3966  dynamic_array[ni.number - 1] = 543;
3967
3968  // work around unused variable warnings
3969  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3970	  || dynamic_array[ni.number - 1] != 543);
3971
3972  ;
3973  return 0;
3974}
3975_ACEOF
3976for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3977do
3978  CC="$ac_save_CC $ac_arg"
3979  if ac_fn_c_try_compile "$LINENO"; then :
3980  ac_cv_prog_cc_c99=$ac_arg
3981fi
3982rm -f core conftest.err conftest.$ac_objext
3983  test "x$ac_cv_prog_cc_c99" != "xno" && break
3984done
3985rm -f conftest.$ac_ext
3986CC=$ac_save_CC
3987
3988fi
3989# AC_CACHE_VAL
3990case "x$ac_cv_prog_cc_c99" in
3991  x)
3992    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3993$as_echo "none needed" >&6; } ;;
3994  xno)
3995    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3996$as_echo "unsupported" >&6; } ;;
3997  *)
3998    CC="$CC $ac_cv_prog_cc_c99"
3999    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4000$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4001esac
4002if test "x$ac_cv_prog_cc_c99" != xno; then :
4003
4004fi
4005
4006
4007
4008ac_ext=c
4009ac_cpp='$CPP $CPPFLAGS'
4010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4012ac_compiler_gnu=$ac_cv_c_compiler_gnu
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4014$as_echo_n "checking how to run the C preprocessor... " >&6; }
4015# On Suns, sometimes $CPP names a directory.
4016if test -n "$CPP" && test -d "$CPP"; then
4017  CPP=
4018fi
4019if test -z "$CPP"; then
4020  if ${ac_cv_prog_CPP+:} false; then :
4021  $as_echo_n "(cached) " >&6
4022else
4023      # Double quotes because CPP needs to be expanded
4024    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4025    do
4026      ac_preproc_ok=false
4027for ac_c_preproc_warn_flag in '' yes
4028do
4029  # Use a header file that comes with gcc, so configuring glibc
4030  # with a fresh cross-compiler works.
4031  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4032  # <limits.h> exists even on freestanding compilers.
4033  # On the NeXT, cc -E runs the code through the compiler's parser,
4034  # not just through cpp. "Syntax error" is here to catch this case.
4035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036/* end confdefs.h.  */
4037#ifdef __STDC__
4038# include <limits.h>
4039#else
4040# include <assert.h>
4041#endif
4042		     Syntax error
4043_ACEOF
4044if ac_fn_c_try_cpp "$LINENO"; then :
4045
4046else
4047  # Broken: fails on valid input.
4048continue
4049fi
4050rm -f conftest.err conftest.i conftest.$ac_ext
4051
4052  # OK, works on sane cases.  Now check whether nonexistent headers
4053  # can be detected and how.
4054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055/* end confdefs.h.  */
4056#include <ac_nonexistent.h>
4057_ACEOF
4058if ac_fn_c_try_cpp "$LINENO"; then :
4059  # Broken: success on invalid input.
4060continue
4061else
4062  # Passes both tests.
4063ac_preproc_ok=:
4064break
4065fi
4066rm -f conftest.err conftest.i conftest.$ac_ext
4067
4068done
4069# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4070rm -f conftest.i conftest.err conftest.$ac_ext
4071if $ac_preproc_ok; then :
4072  break
4073fi
4074
4075    done
4076    ac_cv_prog_CPP=$CPP
4077
4078fi
4079  CPP=$ac_cv_prog_CPP
4080else
4081  ac_cv_prog_CPP=$CPP
4082fi
4083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4084$as_echo "$CPP" >&6; }
4085ac_preproc_ok=false
4086for ac_c_preproc_warn_flag in '' yes
4087do
4088  # Use a header file that comes with gcc, so configuring glibc
4089  # with a fresh cross-compiler works.
4090  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4091  # <limits.h> exists even on freestanding compilers.
4092  # On the NeXT, cc -E runs the code through the compiler's parser,
4093  # not just through cpp. "Syntax error" is here to catch this case.
4094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095/* end confdefs.h.  */
4096#ifdef __STDC__
4097# include <limits.h>
4098#else
4099# include <assert.h>
4100#endif
4101		     Syntax error
4102_ACEOF
4103if ac_fn_c_try_cpp "$LINENO"; then :
4104
4105else
4106  # Broken: fails on valid input.
4107continue
4108fi
4109rm -f conftest.err conftest.i conftest.$ac_ext
4110
4111  # OK, works on sane cases.  Now check whether nonexistent headers
4112  # can be detected and how.
4113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114/* end confdefs.h.  */
4115#include <ac_nonexistent.h>
4116_ACEOF
4117if ac_fn_c_try_cpp "$LINENO"; then :
4118  # Broken: success on invalid input.
4119continue
4120else
4121  # Passes both tests.
4122ac_preproc_ok=:
4123break
4124fi
4125rm -f conftest.err conftest.i conftest.$ac_ext
4126
4127done
4128# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4129rm -f conftest.i conftest.err conftest.$ac_ext
4130if $ac_preproc_ok; then :
4131
4132else
4133  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4135as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4136See \`config.log' for more details" "$LINENO" 5; }
4137fi
4138
4139ac_ext=c
4140ac_cpp='$CPP $CPPFLAGS'
4141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4143ac_compiler_gnu=$ac_cv_c_compiler_gnu
4144
4145
4146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4147$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4148if ${ac_cv_path_GREP+:} false; then :
4149  $as_echo_n "(cached) " >&6
4150else
4151  if test -z "$GREP"; then
4152  ac_path_GREP_found=false
4153  # Loop through the user's path and test for each of PROGNAME-LIST
4154  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4156do
4157  IFS=$as_save_IFS
4158  test -z "$as_dir" && as_dir=.
4159    for ac_prog in grep ggrep; do
4160    for ac_exec_ext in '' $ac_executable_extensions; do
4161      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4162      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4163# Check for GNU ac_path_GREP and select it if it is found.
4164  # Check for GNU $ac_path_GREP
4165case `"$ac_path_GREP" --version 2>&1` in
4166*GNU*)
4167  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4168*)
4169  ac_count=0
4170  $as_echo_n 0123456789 >"conftest.in"
4171  while :
4172  do
4173    cat "conftest.in" "conftest.in" >"conftest.tmp"
4174    mv "conftest.tmp" "conftest.in"
4175    cp "conftest.in" "conftest.nl"
4176    $as_echo 'GREP' >> "conftest.nl"
4177    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4178    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4179    as_fn_arith $ac_count + 1 && ac_count=$as_val
4180    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4181      # Best one so far, save it but keep looking for a better one
4182      ac_cv_path_GREP="$ac_path_GREP"
4183      ac_path_GREP_max=$ac_count
4184    fi
4185    # 10*(2^10) chars as input seems more than enough
4186    test $ac_count -gt 10 && break
4187  done
4188  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4189esac
4190
4191      $ac_path_GREP_found && break 3
4192    done
4193  done
4194  done
4195IFS=$as_save_IFS
4196  if test -z "$ac_cv_path_GREP"; then
4197    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4198  fi
4199else
4200  ac_cv_path_GREP=$GREP
4201fi
4202
4203fi
4204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4205$as_echo "$ac_cv_path_GREP" >&6; }
4206 GREP="$ac_cv_path_GREP"
4207
4208
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4210$as_echo_n "checking for egrep... " >&6; }
4211if ${ac_cv_path_EGREP+:} false; then :
4212  $as_echo_n "(cached) " >&6
4213else
4214  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4215   then ac_cv_path_EGREP="$GREP -E"
4216   else
4217     if test -z "$EGREP"; then
4218  ac_path_EGREP_found=false
4219  # Loop through the user's path and test for each of PROGNAME-LIST
4220  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4222do
4223  IFS=$as_save_IFS
4224  test -z "$as_dir" && as_dir=.
4225    for ac_prog in egrep; do
4226    for ac_exec_ext in '' $ac_executable_extensions; do
4227      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4228      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4229# Check for GNU ac_path_EGREP and select it if it is found.
4230  # Check for GNU $ac_path_EGREP
4231case `"$ac_path_EGREP" --version 2>&1` in
4232*GNU*)
4233  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4234*)
4235  ac_count=0
4236  $as_echo_n 0123456789 >"conftest.in"
4237  while :
4238  do
4239    cat "conftest.in" "conftest.in" >"conftest.tmp"
4240    mv "conftest.tmp" "conftest.in"
4241    cp "conftest.in" "conftest.nl"
4242    $as_echo 'EGREP' >> "conftest.nl"
4243    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4244    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4245    as_fn_arith $ac_count + 1 && ac_count=$as_val
4246    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4247      # Best one so far, save it but keep looking for a better one
4248      ac_cv_path_EGREP="$ac_path_EGREP"
4249      ac_path_EGREP_max=$ac_count
4250    fi
4251    # 10*(2^10) chars as input seems more than enough
4252    test $ac_count -gt 10 && break
4253  done
4254  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4255esac
4256
4257      $ac_path_EGREP_found && break 3
4258    done
4259  done
4260  done
4261IFS=$as_save_IFS
4262  if test -z "$ac_cv_path_EGREP"; then
4263    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4264  fi
4265else
4266  ac_cv_path_EGREP=$EGREP
4267fi
4268
4269   fi
4270fi
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4272$as_echo "$ac_cv_path_EGREP" >&6; }
4273 EGREP="$ac_cv_path_EGREP"
4274
4275
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4277$as_echo_n "checking for ANSI C header files... " >&6; }
4278if ${ac_cv_header_stdc+:} false; then :
4279  $as_echo_n "(cached) " >&6
4280else
4281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282/* end confdefs.h.  */
4283#include <stdlib.h>
4284#include <stdarg.h>
4285#include <string.h>
4286#include <float.h>
4287
4288int
4289main ()
4290{
4291
4292  ;
4293  return 0;
4294}
4295_ACEOF
4296if ac_fn_c_try_compile "$LINENO"; then :
4297  ac_cv_header_stdc=yes
4298else
4299  ac_cv_header_stdc=no
4300fi
4301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4302
4303if test $ac_cv_header_stdc = yes; then
4304  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306/* end confdefs.h.  */
4307#include <string.h>
4308
4309_ACEOF
4310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4311  $EGREP "memchr" >/dev/null 2>&1; then :
4312
4313else
4314  ac_cv_header_stdc=no
4315fi
4316rm -f conftest*
4317
4318fi
4319
4320if test $ac_cv_header_stdc = yes; then
4321  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323/* end confdefs.h.  */
4324#include <stdlib.h>
4325
4326_ACEOF
4327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4328  $EGREP "free" >/dev/null 2>&1; then :
4329
4330else
4331  ac_cv_header_stdc=no
4332fi
4333rm -f conftest*
4334
4335fi
4336
4337if test $ac_cv_header_stdc = yes; then
4338  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4339  if test "$cross_compiling" = yes; then :
4340  :
4341else
4342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343/* end confdefs.h.  */
4344#include <ctype.h>
4345#include <stdlib.h>
4346#if ((' ' & 0x0FF) == 0x020)
4347# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4348# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4349#else
4350# define ISLOWER(c) \
4351		   (('a' <= (c) && (c) <= 'i') \
4352		     || ('j' <= (c) && (c) <= 'r') \
4353		     || ('s' <= (c) && (c) <= 'z'))
4354# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4355#endif
4356
4357#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4358int
4359main ()
4360{
4361  int i;
4362  for (i = 0; i < 256; i++)
4363    if (XOR (islower (i), ISLOWER (i))
4364	|| toupper (i) != TOUPPER (i))
4365      return 2;
4366  return 0;
4367}
4368_ACEOF
4369if ac_fn_c_try_run "$LINENO"; then :
4370
4371else
4372  ac_cv_header_stdc=no
4373fi
4374rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4375  conftest.$ac_objext conftest.beam conftest.$ac_ext
4376fi
4377
4378fi
4379fi
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4381$as_echo "$ac_cv_header_stdc" >&6; }
4382if test $ac_cv_header_stdc = yes; then
4383
4384$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4385
4386fi
4387
4388# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4389for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4390		  inttypes.h stdint.h unistd.h
4391do :
4392  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4393ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4394"
4395if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4396  cat >>confdefs.h <<_ACEOF
4397#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4398_ACEOF
4399
4400fi
4401
4402done
4403
4404
4405
4406
4407
4408
4409ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4410if test "x$ac_cv_have_decl___clang__" = xyes; then :
4411  CLANGCC="yes"
4412else
4413  CLANGCC="no"
4414fi
4415
4416ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4417if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4418  INTELCC="yes"
4419else
4420  INTELCC="no"
4421fi
4422
4423ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4424if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4425  SUNCC="yes"
4426else
4427  SUNCC="no"
4428fi
4429
4430
4431
4432
4433
4434
4435
4436
4437if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4438	if test -n "$ac_tool_prefix"; then
4439  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4440set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442$as_echo_n "checking for $ac_word... " >&6; }
4443if ${ac_cv_path_PKG_CONFIG+:} false; then :
4444  $as_echo_n "(cached) " >&6
4445else
4446  case $PKG_CONFIG in
4447  [\\/]* | ?:[\\/]*)
4448  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4449  ;;
4450  *)
4451  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452for as_dir in $PATH
4453do
4454  IFS=$as_save_IFS
4455  test -z "$as_dir" && as_dir=.
4456    for ac_exec_ext in '' $ac_executable_extensions; do
4457  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4459    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460    break 2
4461  fi
4462done
4463  done
4464IFS=$as_save_IFS
4465
4466  ;;
4467esac
4468fi
4469PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4470if test -n "$PKG_CONFIG"; then
4471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4472$as_echo "$PKG_CONFIG" >&6; }
4473else
4474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475$as_echo "no" >&6; }
4476fi
4477
4478
4479fi
4480if test -z "$ac_cv_path_PKG_CONFIG"; then
4481  ac_pt_PKG_CONFIG=$PKG_CONFIG
4482  # Extract the first word of "pkg-config", so it can be a program name with args.
4483set dummy pkg-config; ac_word=$2
4484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4485$as_echo_n "checking for $ac_word... " >&6; }
4486if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4487  $as_echo_n "(cached) " >&6
4488else
4489  case $ac_pt_PKG_CONFIG in
4490  [\\/]* | ?:[\\/]*)
4491  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4492  ;;
4493  *)
4494  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495for as_dir in $PATH
4496do
4497  IFS=$as_save_IFS
4498  test -z "$as_dir" && as_dir=.
4499    for ac_exec_ext in '' $ac_executable_extensions; do
4500  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4501    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4502    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4503    break 2
4504  fi
4505done
4506  done
4507IFS=$as_save_IFS
4508
4509  ;;
4510esac
4511fi
4512ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4513if test -n "$ac_pt_PKG_CONFIG"; then
4514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4515$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4516else
4517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4518$as_echo "no" >&6; }
4519fi
4520
4521  if test "x$ac_pt_PKG_CONFIG" = x; then
4522    PKG_CONFIG=""
4523  else
4524    case $cross_compiling:$ac_tool_warned in
4525yes:)
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4528ac_tool_warned=yes ;;
4529esac
4530    PKG_CONFIG=$ac_pt_PKG_CONFIG
4531  fi
4532else
4533  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4534fi
4535
4536fi
4537if test -n "$PKG_CONFIG"; then
4538	_pkg_min_version=0.9.0
4539	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4540$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4541	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4542		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4543$as_echo "yes" >&6; }
4544	else
4545		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546$as_echo "no" >&6; }
4547		PKG_CONFIG=""
4548	fi
4549fi
4550# Make sure we can run config.sub.
4551$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4552  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4553
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4555$as_echo_n "checking build system type... " >&6; }
4556if ${ac_cv_build+:} false; then :
4557  $as_echo_n "(cached) " >&6
4558else
4559  ac_build_alias=$build_alias
4560test "x$ac_build_alias" = x &&
4561  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4562test "x$ac_build_alias" = x &&
4563  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4564ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4565  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4566
4567fi
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4569$as_echo "$ac_cv_build" >&6; }
4570case $ac_cv_build in
4571*-*-*) ;;
4572*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4573esac
4574build=$ac_cv_build
4575ac_save_IFS=$IFS; IFS='-'
4576set x $ac_cv_build
4577shift
4578build_cpu=$1
4579build_vendor=$2
4580shift; shift
4581# Remember, the first character of IFS is used to create $*,
4582# except with old shells:
4583build_os=$*
4584IFS=$ac_save_IFS
4585case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4586
4587
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4589$as_echo_n "checking host system type... " >&6; }
4590if ${ac_cv_host+:} false; then :
4591  $as_echo_n "(cached) " >&6
4592else
4593  if test "x$host_alias" = x; then
4594  ac_cv_host=$ac_cv_build
4595else
4596  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4597    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4598fi
4599
4600fi
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4602$as_echo "$ac_cv_host" >&6; }
4603case $ac_cv_host in
4604*-*-*) ;;
4605*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4606esac
4607host=$ac_cv_host
4608ac_save_IFS=$IFS; IFS='-'
4609set x $ac_cv_host
4610shift
4611host_cpu=$1
4612host_vendor=$2
4613shift; shift
4614# Remember, the first character of IFS is used to create $*,
4615# except with old shells:
4616host_os=$*
4617IFS=$ac_save_IFS
4618case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4619
4620
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4622$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4623if ${ac_cv_path_SED+:} false; then :
4624  $as_echo_n "(cached) " >&6
4625else
4626            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4627     for ac_i in 1 2 3 4 5 6 7; do
4628       ac_script="$ac_script$as_nl$ac_script"
4629     done
4630     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4631     { ac_script=; unset ac_script;}
4632     if test -z "$SED"; then
4633  ac_path_SED_found=false
4634  # Loop through the user's path and test for each of PROGNAME-LIST
4635  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636for as_dir in $PATH
4637do
4638  IFS=$as_save_IFS
4639  test -z "$as_dir" && as_dir=.
4640    for ac_prog in sed gsed; do
4641    for ac_exec_ext in '' $ac_executable_extensions; do
4642      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4643      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4644# Check for GNU ac_path_SED and select it if it is found.
4645  # Check for GNU $ac_path_SED
4646case `"$ac_path_SED" --version 2>&1` in
4647*GNU*)
4648  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4649*)
4650  ac_count=0
4651  $as_echo_n 0123456789 >"conftest.in"
4652  while :
4653  do
4654    cat "conftest.in" "conftest.in" >"conftest.tmp"
4655    mv "conftest.tmp" "conftest.in"
4656    cp "conftest.in" "conftest.nl"
4657    $as_echo '' >> "conftest.nl"
4658    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4659    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4660    as_fn_arith $ac_count + 1 && ac_count=$as_val
4661    if test $ac_count -gt ${ac_path_SED_max-0}; then
4662      # Best one so far, save it but keep looking for a better one
4663      ac_cv_path_SED="$ac_path_SED"
4664      ac_path_SED_max=$ac_count
4665    fi
4666    # 10*(2^10) chars as input seems more than enough
4667    test $ac_count -gt 10 && break
4668  done
4669  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4670esac
4671
4672      $ac_path_SED_found && break 3
4673    done
4674  done
4675  done
4676IFS=$as_save_IFS
4677  if test -z "$ac_cv_path_SED"; then
4678    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4679  fi
4680else
4681  ac_cv_path_SED=$SED
4682fi
4683
4684fi
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4686$as_echo "$ac_cv_path_SED" >&6; }
4687 SED="$ac_cv_path_SED"
4688  rm -f conftest.sed
4689
4690
4691
4692
4693
4694
4695# Check whether --enable-selective-werror was given.
4696if test "${enable_selective_werror+set}" = set; then :
4697  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4698else
4699  SELECTIVE_WERROR=yes
4700fi
4701
4702
4703
4704
4705
4706# -v is too short to test reliably with XORG_TESTSET_CFLAG
4707if test "x$SUNCC" = "xyes"; then
4708    BASE_CFLAGS="-v"
4709else
4710    BASE_CFLAGS=""
4711fi
4712
4713# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727xorg_testset_save_CFLAGS="$CFLAGS"
4728
4729if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4730	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4731	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4732$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4733if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4734  $as_echo_n "(cached) " >&6
4735else
4736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737/* end confdefs.h.  */
4738int i;
4739_ACEOF
4740if ac_fn_c_try_compile "$LINENO"; then :
4741  xorg_cv_cc_flag_unknown_warning_option=yes
4742else
4743  xorg_cv_cc_flag_unknown_warning_option=no
4744fi
4745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4746fi
4747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4748$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4749	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4750	CFLAGS="$xorg_testset_save_CFLAGS"
4751fi
4752
4753if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4754	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4755		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4756	fi
4757	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4758	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4759$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4760if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4761  $as_echo_n "(cached) " >&6
4762else
4763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764/* end confdefs.h.  */
4765int i;
4766_ACEOF
4767if ac_fn_c_try_compile "$LINENO"; then :
4768  xorg_cv_cc_flag_unused_command_line_argument=yes
4769else
4770  xorg_cv_cc_flag_unused_command_line_argument=no
4771fi
4772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4773fi
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4775$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4776	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4777	CFLAGS="$xorg_testset_save_CFLAGS"
4778fi
4779
4780found="no"
4781
4782	if test $found = "no" ; then
4783		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4784			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4785		fi
4786
4787		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4788			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4789		fi
4790
4791		CFLAGS="$CFLAGS -Wall"
4792
4793		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4794$as_echo_n "checking if $CC supports -Wall... " >&6; }
4795		cacheid=xorg_cv_cc_flag__Wall
4796		if eval \${$cacheid+:} false; then :
4797  $as_echo_n "(cached) " >&6
4798else
4799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800/* end confdefs.h.  */
4801int i;
4802int
4803main ()
4804{
4805
4806  ;
4807  return 0;
4808}
4809_ACEOF
4810if ac_fn_c_try_link "$LINENO"; then :
4811  eval $cacheid=yes
4812else
4813  eval $cacheid=no
4814fi
4815rm -f core conftest.err conftest.$ac_objext \
4816    conftest$ac_exeext conftest.$ac_ext
4817fi
4818
4819
4820		CFLAGS="$xorg_testset_save_CFLAGS"
4821
4822		eval supported=\$$cacheid
4823		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4824$as_echo "$supported" >&6; }
4825		if test "$supported" = "yes" ; then
4826			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4827			found="yes"
4828		fi
4829	fi
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845xorg_testset_save_CFLAGS="$CFLAGS"
4846
4847if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4848	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4849	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4850$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4851if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4852  $as_echo_n "(cached) " >&6
4853else
4854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855/* end confdefs.h.  */
4856int i;
4857_ACEOF
4858if ac_fn_c_try_compile "$LINENO"; then :
4859  xorg_cv_cc_flag_unknown_warning_option=yes
4860else
4861  xorg_cv_cc_flag_unknown_warning_option=no
4862fi
4863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864fi
4865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4866$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4867	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4868	CFLAGS="$xorg_testset_save_CFLAGS"
4869fi
4870
4871if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4872	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4873		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4874	fi
4875	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4876	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4877$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4878if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4879  $as_echo_n "(cached) " >&6
4880else
4881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882/* end confdefs.h.  */
4883int i;
4884_ACEOF
4885if ac_fn_c_try_compile "$LINENO"; then :
4886  xorg_cv_cc_flag_unused_command_line_argument=yes
4887else
4888  xorg_cv_cc_flag_unused_command_line_argument=no
4889fi
4890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891fi
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4893$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4894	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4895	CFLAGS="$xorg_testset_save_CFLAGS"
4896fi
4897
4898found="no"
4899
4900	if test $found = "no" ; then
4901		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4902			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4903		fi
4904
4905		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4906			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4907		fi
4908
4909		CFLAGS="$CFLAGS -Wpointer-arith"
4910
4911		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4912$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4913		cacheid=xorg_cv_cc_flag__Wpointer_arith
4914		if eval \${$cacheid+:} false; then :
4915  $as_echo_n "(cached) " >&6
4916else
4917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918/* end confdefs.h.  */
4919int i;
4920int
4921main ()
4922{
4923
4924  ;
4925  return 0;
4926}
4927_ACEOF
4928if ac_fn_c_try_link "$LINENO"; then :
4929  eval $cacheid=yes
4930else
4931  eval $cacheid=no
4932fi
4933rm -f core conftest.err conftest.$ac_objext \
4934    conftest$ac_exeext conftest.$ac_ext
4935fi
4936
4937
4938		CFLAGS="$xorg_testset_save_CFLAGS"
4939
4940		eval supported=\$$cacheid
4941		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4942$as_echo "$supported" >&6; }
4943		if test "$supported" = "yes" ; then
4944			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4945			found="yes"
4946		fi
4947	fi
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963xorg_testset_save_CFLAGS="$CFLAGS"
4964
4965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4966	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4967	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4968$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4969if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4970  $as_echo_n "(cached) " >&6
4971else
4972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973/* end confdefs.h.  */
4974int i;
4975_ACEOF
4976if ac_fn_c_try_compile "$LINENO"; then :
4977  xorg_cv_cc_flag_unknown_warning_option=yes
4978else
4979  xorg_cv_cc_flag_unknown_warning_option=no
4980fi
4981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4982fi
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4984$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4985	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4986	CFLAGS="$xorg_testset_save_CFLAGS"
4987fi
4988
4989if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4990	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4991		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4992	fi
4993	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4994	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4995$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4996if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4997  $as_echo_n "(cached) " >&6
4998else
4999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000/* end confdefs.h.  */
5001int i;
5002_ACEOF
5003if ac_fn_c_try_compile "$LINENO"; then :
5004  xorg_cv_cc_flag_unused_command_line_argument=yes
5005else
5006  xorg_cv_cc_flag_unused_command_line_argument=no
5007fi
5008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5009fi
5010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5011$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5012	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5013	CFLAGS="$xorg_testset_save_CFLAGS"
5014fi
5015
5016found="no"
5017
5018	if test $found = "no" ; then
5019		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5020			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5021		fi
5022
5023		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5024			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5025		fi
5026
5027		CFLAGS="$CFLAGS -Wmissing-declarations"
5028
5029		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5030$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5031		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5032		if eval \${$cacheid+:} false; then :
5033  $as_echo_n "(cached) " >&6
5034else
5035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036/* end confdefs.h.  */
5037int i;
5038int
5039main ()
5040{
5041
5042  ;
5043  return 0;
5044}
5045_ACEOF
5046if ac_fn_c_try_link "$LINENO"; then :
5047  eval $cacheid=yes
5048else
5049  eval $cacheid=no
5050fi
5051rm -f core conftest.err conftest.$ac_objext \
5052    conftest$ac_exeext conftest.$ac_ext
5053fi
5054
5055
5056		CFLAGS="$xorg_testset_save_CFLAGS"
5057
5058		eval supported=\$$cacheid
5059		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5060$as_echo "$supported" >&6; }
5061		if test "$supported" = "yes" ; then
5062			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5063			found="yes"
5064		fi
5065	fi
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081xorg_testset_save_CFLAGS="$CFLAGS"
5082
5083if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5084	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5085	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5086$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5087if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5088  $as_echo_n "(cached) " >&6
5089else
5090  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091/* end confdefs.h.  */
5092int i;
5093_ACEOF
5094if ac_fn_c_try_compile "$LINENO"; then :
5095  xorg_cv_cc_flag_unknown_warning_option=yes
5096else
5097  xorg_cv_cc_flag_unknown_warning_option=no
5098fi
5099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5100fi
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5102$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5103	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5104	CFLAGS="$xorg_testset_save_CFLAGS"
5105fi
5106
5107if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5108	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5109		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5110	fi
5111	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5112	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5113$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5114if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5115  $as_echo_n "(cached) " >&6
5116else
5117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118/* end confdefs.h.  */
5119int i;
5120_ACEOF
5121if ac_fn_c_try_compile "$LINENO"; then :
5122  xorg_cv_cc_flag_unused_command_line_argument=yes
5123else
5124  xorg_cv_cc_flag_unused_command_line_argument=no
5125fi
5126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5127fi
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5129$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5130	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5131	CFLAGS="$xorg_testset_save_CFLAGS"
5132fi
5133
5134found="no"
5135
5136	if test $found = "no" ; then
5137		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5138			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5139		fi
5140
5141		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5142			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5143		fi
5144
5145		CFLAGS="$CFLAGS -Wformat=2"
5146
5147		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5148$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5149		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5150		if eval \${$cacheid+:} false; then :
5151  $as_echo_n "(cached) " >&6
5152else
5153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154/* end confdefs.h.  */
5155int i;
5156int
5157main ()
5158{
5159
5160  ;
5161  return 0;
5162}
5163_ACEOF
5164if ac_fn_c_try_link "$LINENO"; then :
5165  eval $cacheid=yes
5166else
5167  eval $cacheid=no
5168fi
5169rm -f core conftest.err conftest.$ac_objext \
5170    conftest$ac_exeext conftest.$ac_ext
5171fi
5172
5173
5174		CFLAGS="$xorg_testset_save_CFLAGS"
5175
5176		eval supported=\$$cacheid
5177		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5178$as_echo "$supported" >&6; }
5179		if test "$supported" = "yes" ; then
5180			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5181			found="yes"
5182		fi
5183	fi
5184
5185	if test $found = "no" ; then
5186		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5187			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5188		fi
5189
5190		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5191			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5192		fi
5193
5194		CFLAGS="$CFLAGS -Wformat"
5195
5196		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5197$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5198		cacheid=xorg_cv_cc_flag__Wformat
5199		if eval \${$cacheid+:} false; then :
5200  $as_echo_n "(cached) " >&6
5201else
5202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203/* end confdefs.h.  */
5204int i;
5205int
5206main ()
5207{
5208
5209  ;
5210  return 0;
5211}
5212_ACEOF
5213if ac_fn_c_try_link "$LINENO"; then :
5214  eval $cacheid=yes
5215else
5216  eval $cacheid=no
5217fi
5218rm -f core conftest.err conftest.$ac_objext \
5219    conftest$ac_exeext conftest.$ac_ext
5220fi
5221
5222
5223		CFLAGS="$xorg_testset_save_CFLAGS"
5224
5225		eval supported=\$$cacheid
5226		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5227$as_echo "$supported" >&6; }
5228		if test "$supported" = "yes" ; then
5229			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5230			found="yes"
5231		fi
5232	fi
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250xorg_testset_save_CFLAGS="$CFLAGS"
5251
5252if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5253	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5254	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5255$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5256if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5257  $as_echo_n "(cached) " >&6
5258else
5259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260/* end confdefs.h.  */
5261int i;
5262_ACEOF
5263if ac_fn_c_try_compile "$LINENO"; then :
5264  xorg_cv_cc_flag_unknown_warning_option=yes
5265else
5266  xorg_cv_cc_flag_unknown_warning_option=no
5267fi
5268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5269fi
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5271$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5272	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5273	CFLAGS="$xorg_testset_save_CFLAGS"
5274fi
5275
5276if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5277	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5278		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5279	fi
5280	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5281	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5282$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5283if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5284  $as_echo_n "(cached) " >&6
5285else
5286  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287/* end confdefs.h.  */
5288int i;
5289_ACEOF
5290if ac_fn_c_try_compile "$LINENO"; then :
5291  xorg_cv_cc_flag_unused_command_line_argument=yes
5292else
5293  xorg_cv_cc_flag_unused_command_line_argument=no
5294fi
5295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5296fi
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5298$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5299	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5300	CFLAGS="$xorg_testset_save_CFLAGS"
5301fi
5302
5303found="no"
5304
5305	if test $found = "no" ; then
5306		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5307			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5308		fi
5309
5310		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5311			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5312		fi
5313
5314		CFLAGS="$CFLAGS -Wstrict-prototypes"
5315
5316		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5317$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5318		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5319		if eval \${$cacheid+:} false; then :
5320  $as_echo_n "(cached) " >&6
5321else
5322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323/* end confdefs.h.  */
5324int i;
5325int
5326main ()
5327{
5328
5329  ;
5330  return 0;
5331}
5332_ACEOF
5333if ac_fn_c_try_link "$LINENO"; then :
5334  eval $cacheid=yes
5335else
5336  eval $cacheid=no
5337fi
5338rm -f core conftest.err conftest.$ac_objext \
5339    conftest$ac_exeext conftest.$ac_ext
5340fi
5341
5342
5343		CFLAGS="$xorg_testset_save_CFLAGS"
5344
5345		eval supported=\$$cacheid
5346		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5347$as_echo "$supported" >&6; }
5348		if test "$supported" = "yes" ; then
5349			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5350			found="yes"
5351		fi
5352	fi
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368xorg_testset_save_CFLAGS="$CFLAGS"
5369
5370if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5371	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5372	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5373$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5374if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5375  $as_echo_n "(cached) " >&6
5376else
5377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5378/* end confdefs.h.  */
5379int i;
5380_ACEOF
5381if ac_fn_c_try_compile "$LINENO"; then :
5382  xorg_cv_cc_flag_unknown_warning_option=yes
5383else
5384  xorg_cv_cc_flag_unknown_warning_option=no
5385fi
5386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5387fi
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5389$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5390	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5391	CFLAGS="$xorg_testset_save_CFLAGS"
5392fi
5393
5394if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5395	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5396		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5397	fi
5398	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5399	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5400$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5401if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5402  $as_echo_n "(cached) " >&6
5403else
5404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405/* end confdefs.h.  */
5406int i;
5407_ACEOF
5408if ac_fn_c_try_compile "$LINENO"; then :
5409  xorg_cv_cc_flag_unused_command_line_argument=yes
5410else
5411  xorg_cv_cc_flag_unused_command_line_argument=no
5412fi
5413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414fi
5415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5416$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5417	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5418	CFLAGS="$xorg_testset_save_CFLAGS"
5419fi
5420
5421found="no"
5422
5423	if test $found = "no" ; then
5424		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5425			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5426		fi
5427
5428		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5429			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5430		fi
5431
5432		CFLAGS="$CFLAGS -Wmissing-prototypes"
5433
5434		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5435$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5436		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5437		if eval \${$cacheid+:} false; then :
5438  $as_echo_n "(cached) " >&6
5439else
5440  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441/* end confdefs.h.  */
5442int i;
5443int
5444main ()
5445{
5446
5447  ;
5448  return 0;
5449}
5450_ACEOF
5451if ac_fn_c_try_link "$LINENO"; then :
5452  eval $cacheid=yes
5453else
5454  eval $cacheid=no
5455fi
5456rm -f core conftest.err conftest.$ac_objext \
5457    conftest$ac_exeext conftest.$ac_ext
5458fi
5459
5460
5461		CFLAGS="$xorg_testset_save_CFLAGS"
5462
5463		eval supported=\$$cacheid
5464		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5465$as_echo "$supported" >&6; }
5466		if test "$supported" = "yes" ; then
5467			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5468			found="yes"
5469		fi
5470	fi
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486xorg_testset_save_CFLAGS="$CFLAGS"
5487
5488if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5489	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5490	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5491$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5492if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5493  $as_echo_n "(cached) " >&6
5494else
5495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496/* end confdefs.h.  */
5497int i;
5498_ACEOF
5499if ac_fn_c_try_compile "$LINENO"; then :
5500  xorg_cv_cc_flag_unknown_warning_option=yes
5501else
5502  xorg_cv_cc_flag_unknown_warning_option=no
5503fi
5504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505fi
5506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5507$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5508	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5509	CFLAGS="$xorg_testset_save_CFLAGS"
5510fi
5511
5512if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5513	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5514		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5515	fi
5516	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5517	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5518$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5519if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5520  $as_echo_n "(cached) " >&6
5521else
5522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523/* end confdefs.h.  */
5524int i;
5525_ACEOF
5526if ac_fn_c_try_compile "$LINENO"; then :
5527  xorg_cv_cc_flag_unused_command_line_argument=yes
5528else
5529  xorg_cv_cc_flag_unused_command_line_argument=no
5530fi
5531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5532fi
5533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5534$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5535	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5536	CFLAGS="$xorg_testset_save_CFLAGS"
5537fi
5538
5539found="no"
5540
5541	if test $found = "no" ; then
5542		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5543			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5544		fi
5545
5546		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5547			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5548		fi
5549
5550		CFLAGS="$CFLAGS -Wnested-externs"
5551
5552		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5553$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5554		cacheid=xorg_cv_cc_flag__Wnested_externs
5555		if eval \${$cacheid+:} false; then :
5556  $as_echo_n "(cached) " >&6
5557else
5558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559/* end confdefs.h.  */
5560int i;
5561int
5562main ()
5563{
5564
5565  ;
5566  return 0;
5567}
5568_ACEOF
5569if ac_fn_c_try_link "$LINENO"; then :
5570  eval $cacheid=yes
5571else
5572  eval $cacheid=no
5573fi
5574rm -f core conftest.err conftest.$ac_objext \
5575    conftest$ac_exeext conftest.$ac_ext
5576fi
5577
5578
5579		CFLAGS="$xorg_testset_save_CFLAGS"
5580
5581		eval supported=\$$cacheid
5582		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5583$as_echo "$supported" >&6; }
5584		if test "$supported" = "yes" ; then
5585			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5586			found="yes"
5587		fi
5588	fi
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604xorg_testset_save_CFLAGS="$CFLAGS"
5605
5606if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5607	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5608	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5609$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5610if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5611  $as_echo_n "(cached) " >&6
5612else
5613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614/* end confdefs.h.  */
5615int i;
5616_ACEOF
5617if ac_fn_c_try_compile "$LINENO"; then :
5618  xorg_cv_cc_flag_unknown_warning_option=yes
5619else
5620  xorg_cv_cc_flag_unknown_warning_option=no
5621fi
5622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623fi
5624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5625$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5626	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5627	CFLAGS="$xorg_testset_save_CFLAGS"
5628fi
5629
5630if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5631	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5632		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5633	fi
5634	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5635	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5636$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5637if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5638  $as_echo_n "(cached) " >&6
5639else
5640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641/* end confdefs.h.  */
5642int i;
5643_ACEOF
5644if ac_fn_c_try_compile "$LINENO"; then :
5645  xorg_cv_cc_flag_unused_command_line_argument=yes
5646else
5647  xorg_cv_cc_flag_unused_command_line_argument=no
5648fi
5649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5650fi
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5652$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5653	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5654	CFLAGS="$xorg_testset_save_CFLAGS"
5655fi
5656
5657found="no"
5658
5659	if test $found = "no" ; then
5660		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5661			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5662		fi
5663
5664		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5665			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5666		fi
5667
5668		CFLAGS="$CFLAGS -Wbad-function-cast"
5669
5670		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5671$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5672		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5673		if eval \${$cacheid+:} false; then :
5674  $as_echo_n "(cached) " >&6
5675else
5676  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5677/* end confdefs.h.  */
5678int i;
5679int
5680main ()
5681{
5682
5683  ;
5684  return 0;
5685}
5686_ACEOF
5687if ac_fn_c_try_link "$LINENO"; then :
5688  eval $cacheid=yes
5689else
5690  eval $cacheid=no
5691fi
5692rm -f core conftest.err conftest.$ac_objext \
5693    conftest$ac_exeext conftest.$ac_ext
5694fi
5695
5696
5697		CFLAGS="$xorg_testset_save_CFLAGS"
5698
5699		eval supported=\$$cacheid
5700		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5701$as_echo "$supported" >&6; }
5702		if test "$supported" = "yes" ; then
5703			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5704			found="yes"
5705		fi
5706	fi
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722xorg_testset_save_CFLAGS="$CFLAGS"
5723
5724if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5725	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5726	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5727$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5728if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5729  $as_echo_n "(cached) " >&6
5730else
5731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732/* end confdefs.h.  */
5733int i;
5734_ACEOF
5735if ac_fn_c_try_compile "$LINENO"; then :
5736  xorg_cv_cc_flag_unknown_warning_option=yes
5737else
5738  xorg_cv_cc_flag_unknown_warning_option=no
5739fi
5740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741fi
5742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5743$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5744	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5745	CFLAGS="$xorg_testset_save_CFLAGS"
5746fi
5747
5748if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5749	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5750		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5751	fi
5752	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5753	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5754$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5755if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5756  $as_echo_n "(cached) " >&6
5757else
5758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759/* end confdefs.h.  */
5760int i;
5761_ACEOF
5762if ac_fn_c_try_compile "$LINENO"; then :
5763  xorg_cv_cc_flag_unused_command_line_argument=yes
5764else
5765  xorg_cv_cc_flag_unused_command_line_argument=no
5766fi
5767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5768fi
5769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5770$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5771	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5772	CFLAGS="$xorg_testset_save_CFLAGS"
5773fi
5774
5775found="no"
5776
5777	if test $found = "no" ; then
5778		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5779			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5780		fi
5781
5782		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5783			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5784		fi
5785
5786		CFLAGS="$CFLAGS -Wold-style-definition"
5787
5788		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5789$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5790		cacheid=xorg_cv_cc_flag__Wold_style_definition
5791		if eval \${$cacheid+:} false; then :
5792  $as_echo_n "(cached) " >&6
5793else
5794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5795/* end confdefs.h.  */
5796int i;
5797int
5798main ()
5799{
5800
5801  ;
5802  return 0;
5803}
5804_ACEOF
5805if ac_fn_c_try_link "$LINENO"; then :
5806  eval $cacheid=yes
5807else
5808  eval $cacheid=no
5809fi
5810rm -f core conftest.err conftest.$ac_objext \
5811    conftest$ac_exeext conftest.$ac_ext
5812fi
5813
5814
5815		CFLAGS="$xorg_testset_save_CFLAGS"
5816
5817		eval supported=\$$cacheid
5818		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5819$as_echo "$supported" >&6; }
5820		if test "$supported" = "yes" ; then
5821			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5822			found="yes"
5823		fi
5824	fi
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840xorg_testset_save_CFLAGS="$CFLAGS"
5841
5842if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5843	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5844	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5845$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5846if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5847  $as_echo_n "(cached) " >&6
5848else
5849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850/* end confdefs.h.  */
5851int i;
5852_ACEOF
5853if ac_fn_c_try_compile "$LINENO"; then :
5854  xorg_cv_cc_flag_unknown_warning_option=yes
5855else
5856  xorg_cv_cc_flag_unknown_warning_option=no
5857fi
5858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859fi
5860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5861$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5862	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5863	CFLAGS="$xorg_testset_save_CFLAGS"
5864fi
5865
5866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5867	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5868		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5869	fi
5870	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5871	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5872$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5873if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5874  $as_echo_n "(cached) " >&6
5875else
5876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877/* end confdefs.h.  */
5878int i;
5879_ACEOF
5880if ac_fn_c_try_compile "$LINENO"; then :
5881  xorg_cv_cc_flag_unused_command_line_argument=yes
5882else
5883  xorg_cv_cc_flag_unused_command_line_argument=no
5884fi
5885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5886fi
5887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5888$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5889	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5890	CFLAGS="$xorg_testset_save_CFLAGS"
5891fi
5892
5893found="no"
5894
5895	if test $found = "no" ; then
5896		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5897			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5898		fi
5899
5900		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5901			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5902		fi
5903
5904		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5905
5906		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5907$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5908		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5909		if eval \${$cacheid+:} false; then :
5910  $as_echo_n "(cached) " >&6
5911else
5912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913/* end confdefs.h.  */
5914int i;
5915int
5916main ()
5917{
5918
5919  ;
5920  return 0;
5921}
5922_ACEOF
5923if ac_fn_c_try_link "$LINENO"; then :
5924  eval $cacheid=yes
5925else
5926  eval $cacheid=no
5927fi
5928rm -f core conftest.err conftest.$ac_objext \
5929    conftest$ac_exeext conftest.$ac_ext
5930fi
5931
5932
5933		CFLAGS="$xorg_testset_save_CFLAGS"
5934
5935		eval supported=\$$cacheid
5936		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5937$as_echo "$supported" >&6; }
5938		if test "$supported" = "yes" ; then
5939			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5940			found="yes"
5941		fi
5942	fi
5943
5944
5945
5946
5947
5948# This chunk adds additional warnings that could catch undesired effects.
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962xorg_testset_save_CFLAGS="$CFLAGS"
5963
5964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5965	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5966	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5967$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5968if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5969  $as_echo_n "(cached) " >&6
5970else
5971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972/* end confdefs.h.  */
5973int i;
5974_ACEOF
5975if ac_fn_c_try_compile "$LINENO"; then :
5976  xorg_cv_cc_flag_unknown_warning_option=yes
5977else
5978  xorg_cv_cc_flag_unknown_warning_option=no
5979fi
5980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5981fi
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5983$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5984	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5985	CFLAGS="$xorg_testset_save_CFLAGS"
5986fi
5987
5988if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5989	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5990		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5991	fi
5992	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5993	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5994$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5995if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5996  $as_echo_n "(cached) " >&6
5997else
5998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999/* end confdefs.h.  */
6000int i;
6001_ACEOF
6002if ac_fn_c_try_compile "$LINENO"; then :
6003  xorg_cv_cc_flag_unused_command_line_argument=yes
6004else
6005  xorg_cv_cc_flag_unused_command_line_argument=no
6006fi
6007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008fi
6009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6010$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6011	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6012	CFLAGS="$xorg_testset_save_CFLAGS"
6013fi
6014
6015found="no"
6016
6017	if test $found = "no" ; then
6018		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6019			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6020		fi
6021
6022		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6023			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6024		fi
6025
6026		CFLAGS="$CFLAGS -Wunused"
6027
6028		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6029$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6030		cacheid=xorg_cv_cc_flag__Wunused
6031		if eval \${$cacheid+:} false; then :
6032  $as_echo_n "(cached) " >&6
6033else
6034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035/* end confdefs.h.  */
6036int i;
6037int
6038main ()
6039{
6040
6041  ;
6042  return 0;
6043}
6044_ACEOF
6045if ac_fn_c_try_link "$LINENO"; then :
6046  eval $cacheid=yes
6047else
6048  eval $cacheid=no
6049fi
6050rm -f core conftest.err conftest.$ac_objext \
6051    conftest$ac_exeext conftest.$ac_ext
6052fi
6053
6054
6055		CFLAGS="$xorg_testset_save_CFLAGS"
6056
6057		eval supported=\$$cacheid
6058		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6059$as_echo "$supported" >&6; }
6060		if test "$supported" = "yes" ; then
6061			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6062			found="yes"
6063		fi
6064	fi
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080xorg_testset_save_CFLAGS="$CFLAGS"
6081
6082if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6083	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6084	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6085$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6086if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6087  $as_echo_n "(cached) " >&6
6088else
6089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090/* end confdefs.h.  */
6091int i;
6092_ACEOF
6093if ac_fn_c_try_compile "$LINENO"; then :
6094  xorg_cv_cc_flag_unknown_warning_option=yes
6095else
6096  xorg_cv_cc_flag_unknown_warning_option=no
6097fi
6098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099fi
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6101$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6102	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6103	CFLAGS="$xorg_testset_save_CFLAGS"
6104fi
6105
6106if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6107	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6108		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6109	fi
6110	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6111	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6112$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6113if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6114  $as_echo_n "(cached) " >&6
6115else
6116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117/* end confdefs.h.  */
6118int i;
6119_ACEOF
6120if ac_fn_c_try_compile "$LINENO"; then :
6121  xorg_cv_cc_flag_unused_command_line_argument=yes
6122else
6123  xorg_cv_cc_flag_unused_command_line_argument=no
6124fi
6125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126fi
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6128$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6129	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6130	CFLAGS="$xorg_testset_save_CFLAGS"
6131fi
6132
6133found="no"
6134
6135	if test $found = "no" ; then
6136		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6137			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6138		fi
6139
6140		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6141			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6142		fi
6143
6144		CFLAGS="$CFLAGS -Wuninitialized"
6145
6146		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6147$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6148		cacheid=xorg_cv_cc_flag__Wuninitialized
6149		if eval \${$cacheid+:} false; then :
6150  $as_echo_n "(cached) " >&6
6151else
6152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153/* end confdefs.h.  */
6154int i;
6155int
6156main ()
6157{
6158
6159  ;
6160  return 0;
6161}
6162_ACEOF
6163if ac_fn_c_try_link "$LINENO"; then :
6164  eval $cacheid=yes
6165else
6166  eval $cacheid=no
6167fi
6168rm -f core conftest.err conftest.$ac_objext \
6169    conftest$ac_exeext conftest.$ac_ext
6170fi
6171
6172
6173		CFLAGS="$xorg_testset_save_CFLAGS"
6174
6175		eval supported=\$$cacheid
6176		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6177$as_echo "$supported" >&6; }
6178		if test "$supported" = "yes" ; then
6179			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6180			found="yes"
6181		fi
6182	fi
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198xorg_testset_save_CFLAGS="$CFLAGS"
6199
6200if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6201	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6202	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6203$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6204if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6205  $as_echo_n "(cached) " >&6
6206else
6207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208/* end confdefs.h.  */
6209int i;
6210_ACEOF
6211if ac_fn_c_try_compile "$LINENO"; then :
6212  xorg_cv_cc_flag_unknown_warning_option=yes
6213else
6214  xorg_cv_cc_flag_unknown_warning_option=no
6215fi
6216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217fi
6218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6219$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6220	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6221	CFLAGS="$xorg_testset_save_CFLAGS"
6222fi
6223
6224if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6225	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6226		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6227	fi
6228	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6229	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6230$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6231if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6232  $as_echo_n "(cached) " >&6
6233else
6234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235/* end confdefs.h.  */
6236int i;
6237_ACEOF
6238if ac_fn_c_try_compile "$LINENO"; then :
6239  xorg_cv_cc_flag_unused_command_line_argument=yes
6240else
6241  xorg_cv_cc_flag_unused_command_line_argument=no
6242fi
6243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244fi
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6246$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6247	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6248	CFLAGS="$xorg_testset_save_CFLAGS"
6249fi
6250
6251found="no"
6252
6253	if test $found = "no" ; then
6254		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6255			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6256		fi
6257
6258		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6259			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6260		fi
6261
6262		CFLAGS="$CFLAGS -Wshadow"
6263
6264		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6265$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6266		cacheid=xorg_cv_cc_flag__Wshadow
6267		if eval \${$cacheid+:} false; then :
6268  $as_echo_n "(cached) " >&6
6269else
6270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6271/* end confdefs.h.  */
6272int i;
6273int
6274main ()
6275{
6276
6277  ;
6278  return 0;
6279}
6280_ACEOF
6281if ac_fn_c_try_link "$LINENO"; then :
6282  eval $cacheid=yes
6283else
6284  eval $cacheid=no
6285fi
6286rm -f core conftest.err conftest.$ac_objext \
6287    conftest$ac_exeext conftest.$ac_ext
6288fi
6289
6290
6291		CFLAGS="$xorg_testset_save_CFLAGS"
6292
6293		eval supported=\$$cacheid
6294		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6295$as_echo "$supported" >&6; }
6296		if test "$supported" = "yes" ; then
6297			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6298			found="yes"
6299		fi
6300	fi
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316xorg_testset_save_CFLAGS="$CFLAGS"
6317
6318if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6319	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6320	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6321$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6322if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6323  $as_echo_n "(cached) " >&6
6324else
6325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326/* end confdefs.h.  */
6327int i;
6328_ACEOF
6329if ac_fn_c_try_compile "$LINENO"; then :
6330  xorg_cv_cc_flag_unknown_warning_option=yes
6331else
6332  xorg_cv_cc_flag_unknown_warning_option=no
6333fi
6334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6335fi
6336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6337$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6338	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6339	CFLAGS="$xorg_testset_save_CFLAGS"
6340fi
6341
6342if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6343	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6344		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6345	fi
6346	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6347	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6348$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6349if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6350  $as_echo_n "(cached) " >&6
6351else
6352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353/* end confdefs.h.  */
6354int i;
6355_ACEOF
6356if ac_fn_c_try_compile "$LINENO"; then :
6357  xorg_cv_cc_flag_unused_command_line_argument=yes
6358else
6359  xorg_cv_cc_flag_unused_command_line_argument=no
6360fi
6361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362fi
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6364$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6365	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6366	CFLAGS="$xorg_testset_save_CFLAGS"
6367fi
6368
6369found="no"
6370
6371	if test $found = "no" ; then
6372		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6373			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6374		fi
6375
6376		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6377			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6378		fi
6379
6380		CFLAGS="$CFLAGS -Wcast-qual"
6381
6382		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6383$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6384		cacheid=xorg_cv_cc_flag__Wcast_qual
6385		if eval \${$cacheid+:} false; then :
6386  $as_echo_n "(cached) " >&6
6387else
6388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389/* end confdefs.h.  */
6390int i;
6391int
6392main ()
6393{
6394
6395  ;
6396  return 0;
6397}
6398_ACEOF
6399if ac_fn_c_try_link "$LINENO"; then :
6400  eval $cacheid=yes
6401else
6402  eval $cacheid=no
6403fi
6404rm -f core conftest.err conftest.$ac_objext \
6405    conftest$ac_exeext conftest.$ac_ext
6406fi
6407
6408
6409		CFLAGS="$xorg_testset_save_CFLAGS"
6410
6411		eval supported=\$$cacheid
6412		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6413$as_echo "$supported" >&6; }
6414		if test "$supported" = "yes" ; then
6415			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6416			found="yes"
6417		fi
6418	fi
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434xorg_testset_save_CFLAGS="$CFLAGS"
6435
6436if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6437	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6438	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6439$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6440if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6441  $as_echo_n "(cached) " >&6
6442else
6443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6444/* end confdefs.h.  */
6445int i;
6446_ACEOF
6447if ac_fn_c_try_compile "$LINENO"; then :
6448  xorg_cv_cc_flag_unknown_warning_option=yes
6449else
6450  xorg_cv_cc_flag_unknown_warning_option=no
6451fi
6452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453fi
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6455$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6456	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6457	CFLAGS="$xorg_testset_save_CFLAGS"
6458fi
6459
6460if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6461	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6462		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6463	fi
6464	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6465	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6466$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6467if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6468  $as_echo_n "(cached) " >&6
6469else
6470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6471/* end confdefs.h.  */
6472int i;
6473_ACEOF
6474if ac_fn_c_try_compile "$LINENO"; then :
6475  xorg_cv_cc_flag_unused_command_line_argument=yes
6476else
6477  xorg_cv_cc_flag_unused_command_line_argument=no
6478fi
6479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480fi
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6482$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6483	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6484	CFLAGS="$xorg_testset_save_CFLAGS"
6485fi
6486
6487found="no"
6488
6489	if test $found = "no" ; then
6490		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6491			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6492		fi
6493
6494		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6495			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6496		fi
6497
6498		CFLAGS="$CFLAGS -Wmissing-noreturn"
6499
6500		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6501$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6502		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6503		if eval \${$cacheid+:} false; then :
6504  $as_echo_n "(cached) " >&6
6505else
6506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507/* end confdefs.h.  */
6508int i;
6509int
6510main ()
6511{
6512
6513  ;
6514  return 0;
6515}
6516_ACEOF
6517if ac_fn_c_try_link "$LINENO"; then :
6518  eval $cacheid=yes
6519else
6520  eval $cacheid=no
6521fi
6522rm -f core conftest.err conftest.$ac_objext \
6523    conftest$ac_exeext conftest.$ac_ext
6524fi
6525
6526
6527		CFLAGS="$xorg_testset_save_CFLAGS"
6528
6529		eval supported=\$$cacheid
6530		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6531$as_echo "$supported" >&6; }
6532		if test "$supported" = "yes" ; then
6533			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6534			found="yes"
6535		fi
6536	fi
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552xorg_testset_save_CFLAGS="$CFLAGS"
6553
6554if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6555	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6556	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6557$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6558if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6559  $as_echo_n "(cached) " >&6
6560else
6561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6562/* end confdefs.h.  */
6563int i;
6564_ACEOF
6565if ac_fn_c_try_compile "$LINENO"; then :
6566  xorg_cv_cc_flag_unknown_warning_option=yes
6567else
6568  xorg_cv_cc_flag_unknown_warning_option=no
6569fi
6570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6571fi
6572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6573$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6574	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6575	CFLAGS="$xorg_testset_save_CFLAGS"
6576fi
6577
6578if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6579	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6580		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6581	fi
6582	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6583	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6584$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6585if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6586  $as_echo_n "(cached) " >&6
6587else
6588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589/* end confdefs.h.  */
6590int i;
6591_ACEOF
6592if ac_fn_c_try_compile "$LINENO"; then :
6593  xorg_cv_cc_flag_unused_command_line_argument=yes
6594else
6595  xorg_cv_cc_flag_unused_command_line_argument=no
6596fi
6597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598fi
6599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6600$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6601	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6602	CFLAGS="$xorg_testset_save_CFLAGS"
6603fi
6604
6605found="no"
6606
6607	if test $found = "no" ; then
6608		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6609			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6610		fi
6611
6612		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6613			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6614		fi
6615
6616		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6617
6618		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6619$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6620		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6621		if eval \${$cacheid+:} false; then :
6622  $as_echo_n "(cached) " >&6
6623else
6624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625/* end confdefs.h.  */
6626int i;
6627int
6628main ()
6629{
6630
6631  ;
6632  return 0;
6633}
6634_ACEOF
6635if ac_fn_c_try_link "$LINENO"; then :
6636  eval $cacheid=yes
6637else
6638  eval $cacheid=no
6639fi
6640rm -f core conftest.err conftest.$ac_objext \
6641    conftest$ac_exeext conftest.$ac_ext
6642fi
6643
6644
6645		CFLAGS="$xorg_testset_save_CFLAGS"
6646
6647		eval supported=\$$cacheid
6648		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6649$as_echo "$supported" >&6; }
6650		if test "$supported" = "yes" ; then
6651			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6652			found="yes"
6653		fi
6654	fi
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670xorg_testset_save_CFLAGS="$CFLAGS"
6671
6672if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6673	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6674	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6675$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6676if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6677  $as_echo_n "(cached) " >&6
6678else
6679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680/* end confdefs.h.  */
6681int i;
6682_ACEOF
6683if ac_fn_c_try_compile "$LINENO"; then :
6684  xorg_cv_cc_flag_unknown_warning_option=yes
6685else
6686  xorg_cv_cc_flag_unknown_warning_option=no
6687fi
6688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6689fi
6690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6691$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6692	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6693	CFLAGS="$xorg_testset_save_CFLAGS"
6694fi
6695
6696if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6697	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6698		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6699	fi
6700	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6701	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6702$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6703if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6704  $as_echo_n "(cached) " >&6
6705else
6706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707/* end confdefs.h.  */
6708int i;
6709_ACEOF
6710if ac_fn_c_try_compile "$LINENO"; then :
6711  xorg_cv_cc_flag_unused_command_line_argument=yes
6712else
6713  xorg_cv_cc_flag_unused_command_line_argument=no
6714fi
6715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716fi
6717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6718$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6719	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6720	CFLAGS="$xorg_testset_save_CFLAGS"
6721fi
6722
6723found="no"
6724
6725	if test $found = "no" ; then
6726		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6727			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6728		fi
6729
6730		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6731			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6732		fi
6733
6734		CFLAGS="$CFLAGS -Wredundant-decls"
6735
6736		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6737$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6738		cacheid=xorg_cv_cc_flag__Wredundant_decls
6739		if eval \${$cacheid+:} false; then :
6740  $as_echo_n "(cached) " >&6
6741else
6742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743/* end confdefs.h.  */
6744int i;
6745int
6746main ()
6747{
6748
6749  ;
6750  return 0;
6751}
6752_ACEOF
6753if ac_fn_c_try_link "$LINENO"; then :
6754  eval $cacheid=yes
6755else
6756  eval $cacheid=no
6757fi
6758rm -f core conftest.err conftest.$ac_objext \
6759    conftest$ac_exeext conftest.$ac_ext
6760fi
6761
6762
6763		CFLAGS="$xorg_testset_save_CFLAGS"
6764
6765		eval supported=\$$cacheid
6766		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6767$as_echo "$supported" >&6; }
6768		if test "$supported" = "yes" ; then
6769			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6770			found="yes"
6771		fi
6772	fi
6773
6774
6775
6776# These are currently disabled because they are noisy.  They will be enabled
6777# in the future once the codebase is sufficiently modernized to silence
6778# them.  For now, I don't want them to drown out the other warnings.
6779# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6780# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6781# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6782
6783# Turn some warnings into errors, so we don't accidently get successful builds
6784# when there are problems that should be fixed.
6785
6786if test "x$SELECTIVE_WERROR" = "xyes" ; then
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800xorg_testset_save_CFLAGS="$CFLAGS"
6801
6802if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6803	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6804	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6805$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6806if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6807  $as_echo_n "(cached) " >&6
6808else
6809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6810/* end confdefs.h.  */
6811int i;
6812_ACEOF
6813if ac_fn_c_try_compile "$LINENO"; then :
6814  xorg_cv_cc_flag_unknown_warning_option=yes
6815else
6816  xorg_cv_cc_flag_unknown_warning_option=no
6817fi
6818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6819fi
6820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6821$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6822	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6823	CFLAGS="$xorg_testset_save_CFLAGS"
6824fi
6825
6826if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6827	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6828		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6829	fi
6830	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6831	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6832$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6833if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6834  $as_echo_n "(cached) " >&6
6835else
6836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837/* end confdefs.h.  */
6838int i;
6839_ACEOF
6840if ac_fn_c_try_compile "$LINENO"; then :
6841  xorg_cv_cc_flag_unused_command_line_argument=yes
6842else
6843  xorg_cv_cc_flag_unused_command_line_argument=no
6844fi
6845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6846fi
6847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6848$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6849	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6850	CFLAGS="$xorg_testset_save_CFLAGS"
6851fi
6852
6853found="no"
6854
6855	if test $found = "no" ; then
6856		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6857			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6858		fi
6859
6860		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6861			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6862		fi
6863
6864		CFLAGS="$CFLAGS -Werror=implicit"
6865
6866		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6867$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6868		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6869		if eval \${$cacheid+:} false; then :
6870  $as_echo_n "(cached) " >&6
6871else
6872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873/* end confdefs.h.  */
6874int i;
6875int
6876main ()
6877{
6878
6879  ;
6880  return 0;
6881}
6882_ACEOF
6883if ac_fn_c_try_link "$LINENO"; then :
6884  eval $cacheid=yes
6885else
6886  eval $cacheid=no
6887fi
6888rm -f core conftest.err conftest.$ac_objext \
6889    conftest$ac_exeext conftest.$ac_ext
6890fi
6891
6892
6893		CFLAGS="$xorg_testset_save_CFLAGS"
6894
6895		eval supported=\$$cacheid
6896		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6897$as_echo "$supported" >&6; }
6898		if test "$supported" = "yes" ; then
6899			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6900			found="yes"
6901		fi
6902	fi
6903
6904	if test $found = "no" ; then
6905		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6906			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6907		fi
6908
6909		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6910			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6911		fi
6912
6913		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6914
6915		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6916$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6917		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6918		if eval \${$cacheid+:} false; then :
6919  $as_echo_n "(cached) " >&6
6920else
6921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922/* end confdefs.h.  */
6923int i;
6924int
6925main ()
6926{
6927
6928  ;
6929  return 0;
6930}
6931_ACEOF
6932if ac_fn_c_try_link "$LINENO"; then :
6933  eval $cacheid=yes
6934else
6935  eval $cacheid=no
6936fi
6937rm -f core conftest.err conftest.$ac_objext \
6938    conftest$ac_exeext conftest.$ac_ext
6939fi
6940
6941
6942		CFLAGS="$xorg_testset_save_CFLAGS"
6943
6944		eval supported=\$$cacheid
6945		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6946$as_echo "$supported" >&6; }
6947		if test "$supported" = "yes" ; then
6948			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6949			found="yes"
6950		fi
6951	fi
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967xorg_testset_save_CFLAGS="$CFLAGS"
6968
6969if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6970	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6971	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6972$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6973if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6974  $as_echo_n "(cached) " >&6
6975else
6976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6977/* end confdefs.h.  */
6978int i;
6979_ACEOF
6980if ac_fn_c_try_compile "$LINENO"; then :
6981  xorg_cv_cc_flag_unknown_warning_option=yes
6982else
6983  xorg_cv_cc_flag_unknown_warning_option=no
6984fi
6985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6986fi
6987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6988$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6989	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6990	CFLAGS="$xorg_testset_save_CFLAGS"
6991fi
6992
6993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6994	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6995		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6996	fi
6997	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6998	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6999$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7000if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7001  $as_echo_n "(cached) " >&6
7002else
7003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7004/* end confdefs.h.  */
7005int i;
7006_ACEOF
7007if ac_fn_c_try_compile "$LINENO"; then :
7008  xorg_cv_cc_flag_unused_command_line_argument=yes
7009else
7010  xorg_cv_cc_flag_unused_command_line_argument=no
7011fi
7012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013fi
7014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7015$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7016	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7017	CFLAGS="$xorg_testset_save_CFLAGS"
7018fi
7019
7020found="no"
7021
7022	if test $found = "no" ; then
7023		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7024			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7025		fi
7026
7027		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7028			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7029		fi
7030
7031		CFLAGS="$CFLAGS -Werror=nonnull"
7032
7033		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7034$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7035		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7036		if eval \${$cacheid+:} false; then :
7037  $as_echo_n "(cached) " >&6
7038else
7039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040/* end confdefs.h.  */
7041int i;
7042int
7043main ()
7044{
7045
7046  ;
7047  return 0;
7048}
7049_ACEOF
7050if ac_fn_c_try_link "$LINENO"; then :
7051  eval $cacheid=yes
7052else
7053  eval $cacheid=no
7054fi
7055rm -f core conftest.err conftest.$ac_objext \
7056    conftest$ac_exeext conftest.$ac_ext
7057fi
7058
7059
7060		CFLAGS="$xorg_testset_save_CFLAGS"
7061
7062		eval supported=\$$cacheid
7063		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7064$as_echo "$supported" >&6; }
7065		if test "$supported" = "yes" ; then
7066			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7067			found="yes"
7068		fi
7069	fi
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085xorg_testset_save_CFLAGS="$CFLAGS"
7086
7087if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7088	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7089	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7090$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7091if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7092  $as_echo_n "(cached) " >&6
7093else
7094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095/* end confdefs.h.  */
7096int i;
7097_ACEOF
7098if ac_fn_c_try_compile "$LINENO"; then :
7099  xorg_cv_cc_flag_unknown_warning_option=yes
7100else
7101  xorg_cv_cc_flag_unknown_warning_option=no
7102fi
7103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7104fi
7105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7106$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7107	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7108	CFLAGS="$xorg_testset_save_CFLAGS"
7109fi
7110
7111if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7112	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7113		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7114	fi
7115	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7116	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7117$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7118if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7119  $as_echo_n "(cached) " >&6
7120else
7121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122/* end confdefs.h.  */
7123int i;
7124_ACEOF
7125if ac_fn_c_try_compile "$LINENO"; then :
7126  xorg_cv_cc_flag_unused_command_line_argument=yes
7127else
7128  xorg_cv_cc_flag_unused_command_line_argument=no
7129fi
7130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7131fi
7132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7133$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7134	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7135	CFLAGS="$xorg_testset_save_CFLAGS"
7136fi
7137
7138found="no"
7139
7140	if test $found = "no" ; then
7141		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7142			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7143		fi
7144
7145		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7146			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7147		fi
7148
7149		CFLAGS="$CFLAGS -Werror=init-self"
7150
7151		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7152$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7153		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7154		if eval \${$cacheid+:} false; then :
7155  $as_echo_n "(cached) " >&6
7156else
7157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158/* end confdefs.h.  */
7159int i;
7160int
7161main ()
7162{
7163
7164  ;
7165  return 0;
7166}
7167_ACEOF
7168if ac_fn_c_try_link "$LINENO"; then :
7169  eval $cacheid=yes
7170else
7171  eval $cacheid=no
7172fi
7173rm -f core conftest.err conftest.$ac_objext \
7174    conftest$ac_exeext conftest.$ac_ext
7175fi
7176
7177
7178		CFLAGS="$xorg_testset_save_CFLAGS"
7179
7180		eval supported=\$$cacheid
7181		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7182$as_echo "$supported" >&6; }
7183		if test "$supported" = "yes" ; then
7184			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7185			found="yes"
7186		fi
7187	fi
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203xorg_testset_save_CFLAGS="$CFLAGS"
7204
7205if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7206	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7207	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7208$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7209if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7210  $as_echo_n "(cached) " >&6
7211else
7212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213/* end confdefs.h.  */
7214int i;
7215_ACEOF
7216if ac_fn_c_try_compile "$LINENO"; then :
7217  xorg_cv_cc_flag_unknown_warning_option=yes
7218else
7219  xorg_cv_cc_flag_unknown_warning_option=no
7220fi
7221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7222fi
7223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7224$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7225	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7226	CFLAGS="$xorg_testset_save_CFLAGS"
7227fi
7228
7229if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7230	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7231		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7232	fi
7233	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7234	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7235$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7236if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7237  $as_echo_n "(cached) " >&6
7238else
7239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240/* end confdefs.h.  */
7241int i;
7242_ACEOF
7243if ac_fn_c_try_compile "$LINENO"; then :
7244  xorg_cv_cc_flag_unused_command_line_argument=yes
7245else
7246  xorg_cv_cc_flag_unused_command_line_argument=no
7247fi
7248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7249fi
7250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7251$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7252	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7253	CFLAGS="$xorg_testset_save_CFLAGS"
7254fi
7255
7256found="no"
7257
7258	if test $found = "no" ; then
7259		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7260			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7261		fi
7262
7263		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7264			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7265		fi
7266
7267		CFLAGS="$CFLAGS -Werror=main"
7268
7269		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7270$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7271		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7272		if eval \${$cacheid+:} false; then :
7273  $as_echo_n "(cached) " >&6
7274else
7275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276/* end confdefs.h.  */
7277int i;
7278int
7279main ()
7280{
7281
7282  ;
7283  return 0;
7284}
7285_ACEOF
7286if ac_fn_c_try_link "$LINENO"; then :
7287  eval $cacheid=yes
7288else
7289  eval $cacheid=no
7290fi
7291rm -f core conftest.err conftest.$ac_objext \
7292    conftest$ac_exeext conftest.$ac_ext
7293fi
7294
7295
7296		CFLAGS="$xorg_testset_save_CFLAGS"
7297
7298		eval supported=\$$cacheid
7299		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7300$as_echo "$supported" >&6; }
7301		if test "$supported" = "yes" ; then
7302			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7303			found="yes"
7304		fi
7305	fi
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321xorg_testset_save_CFLAGS="$CFLAGS"
7322
7323if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7324	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7326$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7327if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7328  $as_echo_n "(cached) " >&6
7329else
7330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331/* end confdefs.h.  */
7332int i;
7333_ACEOF
7334if ac_fn_c_try_compile "$LINENO"; then :
7335  xorg_cv_cc_flag_unknown_warning_option=yes
7336else
7337  xorg_cv_cc_flag_unknown_warning_option=no
7338fi
7339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7340fi
7341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7342$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7343	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7344	CFLAGS="$xorg_testset_save_CFLAGS"
7345fi
7346
7347if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7348	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7349		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7350	fi
7351	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7352	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7353$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7354if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7355  $as_echo_n "(cached) " >&6
7356else
7357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358/* end confdefs.h.  */
7359int i;
7360_ACEOF
7361if ac_fn_c_try_compile "$LINENO"; then :
7362  xorg_cv_cc_flag_unused_command_line_argument=yes
7363else
7364  xorg_cv_cc_flag_unused_command_line_argument=no
7365fi
7366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7367fi
7368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7369$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7370	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7371	CFLAGS="$xorg_testset_save_CFLAGS"
7372fi
7373
7374found="no"
7375
7376	if test $found = "no" ; then
7377		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7378			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7379		fi
7380
7381		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7382			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7383		fi
7384
7385		CFLAGS="$CFLAGS -Werror=missing-braces"
7386
7387		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7388$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7389		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7390		if eval \${$cacheid+:} false; then :
7391  $as_echo_n "(cached) " >&6
7392else
7393  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394/* end confdefs.h.  */
7395int i;
7396int
7397main ()
7398{
7399
7400  ;
7401  return 0;
7402}
7403_ACEOF
7404if ac_fn_c_try_link "$LINENO"; then :
7405  eval $cacheid=yes
7406else
7407  eval $cacheid=no
7408fi
7409rm -f core conftest.err conftest.$ac_objext \
7410    conftest$ac_exeext conftest.$ac_ext
7411fi
7412
7413
7414		CFLAGS="$xorg_testset_save_CFLAGS"
7415
7416		eval supported=\$$cacheid
7417		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7418$as_echo "$supported" >&6; }
7419		if test "$supported" = "yes" ; then
7420			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7421			found="yes"
7422		fi
7423	fi
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439xorg_testset_save_CFLAGS="$CFLAGS"
7440
7441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7442	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7443	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7444$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7445if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7446  $as_echo_n "(cached) " >&6
7447else
7448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449/* end confdefs.h.  */
7450int i;
7451_ACEOF
7452if ac_fn_c_try_compile "$LINENO"; then :
7453  xorg_cv_cc_flag_unknown_warning_option=yes
7454else
7455  xorg_cv_cc_flag_unknown_warning_option=no
7456fi
7457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7458fi
7459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7460$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7461	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7462	CFLAGS="$xorg_testset_save_CFLAGS"
7463fi
7464
7465if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7466	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7467		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7468	fi
7469	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7470	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7471$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7472if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7473  $as_echo_n "(cached) " >&6
7474else
7475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476/* end confdefs.h.  */
7477int i;
7478_ACEOF
7479if ac_fn_c_try_compile "$LINENO"; then :
7480  xorg_cv_cc_flag_unused_command_line_argument=yes
7481else
7482  xorg_cv_cc_flag_unused_command_line_argument=no
7483fi
7484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7485fi
7486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7487$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7488	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7489	CFLAGS="$xorg_testset_save_CFLAGS"
7490fi
7491
7492found="no"
7493
7494	if test $found = "no" ; then
7495		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7496			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7497		fi
7498
7499		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7500			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7501		fi
7502
7503		CFLAGS="$CFLAGS -Werror=sequence-point"
7504
7505		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7506$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7507		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7508		if eval \${$cacheid+:} false; then :
7509  $as_echo_n "(cached) " >&6
7510else
7511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512/* end confdefs.h.  */
7513int i;
7514int
7515main ()
7516{
7517
7518  ;
7519  return 0;
7520}
7521_ACEOF
7522if ac_fn_c_try_link "$LINENO"; then :
7523  eval $cacheid=yes
7524else
7525  eval $cacheid=no
7526fi
7527rm -f core conftest.err conftest.$ac_objext \
7528    conftest$ac_exeext conftest.$ac_ext
7529fi
7530
7531
7532		CFLAGS="$xorg_testset_save_CFLAGS"
7533
7534		eval supported=\$$cacheid
7535		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7536$as_echo "$supported" >&6; }
7537		if test "$supported" = "yes" ; then
7538			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7539			found="yes"
7540		fi
7541	fi
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557xorg_testset_save_CFLAGS="$CFLAGS"
7558
7559if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7560	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7561	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7562$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7563if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7564  $as_echo_n "(cached) " >&6
7565else
7566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7567/* end confdefs.h.  */
7568int i;
7569_ACEOF
7570if ac_fn_c_try_compile "$LINENO"; then :
7571  xorg_cv_cc_flag_unknown_warning_option=yes
7572else
7573  xorg_cv_cc_flag_unknown_warning_option=no
7574fi
7575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576fi
7577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7578$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7579	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7580	CFLAGS="$xorg_testset_save_CFLAGS"
7581fi
7582
7583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7584	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7585		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7586	fi
7587	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7588	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7589$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7590if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7591  $as_echo_n "(cached) " >&6
7592else
7593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594/* end confdefs.h.  */
7595int i;
7596_ACEOF
7597if ac_fn_c_try_compile "$LINENO"; then :
7598  xorg_cv_cc_flag_unused_command_line_argument=yes
7599else
7600  xorg_cv_cc_flag_unused_command_line_argument=no
7601fi
7602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7603fi
7604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7605$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7606	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7607	CFLAGS="$xorg_testset_save_CFLAGS"
7608fi
7609
7610found="no"
7611
7612	if test $found = "no" ; then
7613		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7614			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7615		fi
7616
7617		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7618			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7619		fi
7620
7621		CFLAGS="$CFLAGS -Werror=return-type"
7622
7623		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7624$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7625		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7626		if eval \${$cacheid+:} false; then :
7627  $as_echo_n "(cached) " >&6
7628else
7629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630/* end confdefs.h.  */
7631int i;
7632int
7633main ()
7634{
7635
7636  ;
7637  return 0;
7638}
7639_ACEOF
7640if ac_fn_c_try_link "$LINENO"; then :
7641  eval $cacheid=yes
7642else
7643  eval $cacheid=no
7644fi
7645rm -f core conftest.err conftest.$ac_objext \
7646    conftest$ac_exeext conftest.$ac_ext
7647fi
7648
7649
7650		CFLAGS="$xorg_testset_save_CFLAGS"
7651
7652		eval supported=\$$cacheid
7653		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7654$as_echo "$supported" >&6; }
7655		if test "$supported" = "yes" ; then
7656			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7657			found="yes"
7658		fi
7659	fi
7660
7661	if test $found = "no" ; then
7662		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7663			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7664		fi
7665
7666		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7667			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7668		fi
7669
7670		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7671
7672		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7673$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7674		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7675		if eval \${$cacheid+:} false; then :
7676  $as_echo_n "(cached) " >&6
7677else
7678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679/* end confdefs.h.  */
7680int i;
7681int
7682main ()
7683{
7684
7685  ;
7686  return 0;
7687}
7688_ACEOF
7689if ac_fn_c_try_link "$LINENO"; then :
7690  eval $cacheid=yes
7691else
7692  eval $cacheid=no
7693fi
7694rm -f core conftest.err conftest.$ac_objext \
7695    conftest$ac_exeext conftest.$ac_ext
7696fi
7697
7698
7699		CFLAGS="$xorg_testset_save_CFLAGS"
7700
7701		eval supported=\$$cacheid
7702		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7703$as_echo "$supported" >&6; }
7704		if test "$supported" = "yes" ; then
7705			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7706			found="yes"
7707		fi
7708	fi
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724xorg_testset_save_CFLAGS="$CFLAGS"
7725
7726if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7727	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7728	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7729$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7730if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7731  $as_echo_n "(cached) " >&6
7732else
7733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7734/* end confdefs.h.  */
7735int i;
7736_ACEOF
7737if ac_fn_c_try_compile "$LINENO"; then :
7738  xorg_cv_cc_flag_unknown_warning_option=yes
7739else
7740  xorg_cv_cc_flag_unknown_warning_option=no
7741fi
7742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743fi
7744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7745$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7746	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7747	CFLAGS="$xorg_testset_save_CFLAGS"
7748fi
7749
7750if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7751	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7752		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7753	fi
7754	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7755	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7756$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7757if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7758  $as_echo_n "(cached) " >&6
7759else
7760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761/* end confdefs.h.  */
7762int i;
7763_ACEOF
7764if ac_fn_c_try_compile "$LINENO"; then :
7765  xorg_cv_cc_flag_unused_command_line_argument=yes
7766else
7767  xorg_cv_cc_flag_unused_command_line_argument=no
7768fi
7769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770fi
7771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7772$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7773	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7774	CFLAGS="$xorg_testset_save_CFLAGS"
7775fi
7776
7777found="no"
7778
7779	if test $found = "no" ; then
7780		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7781			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7782		fi
7783
7784		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7785			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7786		fi
7787
7788		CFLAGS="$CFLAGS -Werror=trigraphs"
7789
7790		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7791$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7792		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7793		if eval \${$cacheid+:} false; then :
7794  $as_echo_n "(cached) " >&6
7795else
7796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797/* end confdefs.h.  */
7798int i;
7799int
7800main ()
7801{
7802
7803  ;
7804  return 0;
7805}
7806_ACEOF
7807if ac_fn_c_try_link "$LINENO"; then :
7808  eval $cacheid=yes
7809else
7810  eval $cacheid=no
7811fi
7812rm -f core conftest.err conftest.$ac_objext \
7813    conftest$ac_exeext conftest.$ac_ext
7814fi
7815
7816
7817		CFLAGS="$xorg_testset_save_CFLAGS"
7818
7819		eval supported=\$$cacheid
7820		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7821$as_echo "$supported" >&6; }
7822		if test "$supported" = "yes" ; then
7823			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7824			found="yes"
7825		fi
7826	fi
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842xorg_testset_save_CFLAGS="$CFLAGS"
7843
7844if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7845	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7846	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7847$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7848if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7849  $as_echo_n "(cached) " >&6
7850else
7851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852/* end confdefs.h.  */
7853int i;
7854_ACEOF
7855if ac_fn_c_try_compile "$LINENO"; then :
7856  xorg_cv_cc_flag_unknown_warning_option=yes
7857else
7858  xorg_cv_cc_flag_unknown_warning_option=no
7859fi
7860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7861fi
7862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7863$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7864	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7865	CFLAGS="$xorg_testset_save_CFLAGS"
7866fi
7867
7868if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7869	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7870		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7871	fi
7872	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7873	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7874$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7875if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7876  $as_echo_n "(cached) " >&6
7877else
7878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879/* end confdefs.h.  */
7880int i;
7881_ACEOF
7882if ac_fn_c_try_compile "$LINENO"; then :
7883  xorg_cv_cc_flag_unused_command_line_argument=yes
7884else
7885  xorg_cv_cc_flag_unused_command_line_argument=no
7886fi
7887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7888fi
7889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7890$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7891	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7892	CFLAGS="$xorg_testset_save_CFLAGS"
7893fi
7894
7895found="no"
7896
7897	if test $found = "no" ; then
7898		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7899			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7900		fi
7901
7902		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7903			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7904		fi
7905
7906		CFLAGS="$CFLAGS -Werror=array-bounds"
7907
7908		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7909$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7910		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7911		if eval \${$cacheid+:} false; then :
7912  $as_echo_n "(cached) " >&6
7913else
7914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7915/* end confdefs.h.  */
7916int i;
7917int
7918main ()
7919{
7920
7921  ;
7922  return 0;
7923}
7924_ACEOF
7925if ac_fn_c_try_link "$LINENO"; then :
7926  eval $cacheid=yes
7927else
7928  eval $cacheid=no
7929fi
7930rm -f core conftest.err conftest.$ac_objext \
7931    conftest$ac_exeext conftest.$ac_ext
7932fi
7933
7934
7935		CFLAGS="$xorg_testset_save_CFLAGS"
7936
7937		eval supported=\$$cacheid
7938		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7939$as_echo "$supported" >&6; }
7940		if test "$supported" = "yes" ; then
7941			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7942			found="yes"
7943		fi
7944	fi
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960xorg_testset_save_CFLAGS="$CFLAGS"
7961
7962if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7963	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7964	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7965$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7966if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7967  $as_echo_n "(cached) " >&6
7968else
7969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970/* end confdefs.h.  */
7971int i;
7972_ACEOF
7973if ac_fn_c_try_compile "$LINENO"; then :
7974  xorg_cv_cc_flag_unknown_warning_option=yes
7975else
7976  xorg_cv_cc_flag_unknown_warning_option=no
7977fi
7978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7979fi
7980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7981$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7982	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7983	CFLAGS="$xorg_testset_save_CFLAGS"
7984fi
7985
7986if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7987	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7988		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7989	fi
7990	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7991	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7992$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7993if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7994  $as_echo_n "(cached) " >&6
7995else
7996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997/* end confdefs.h.  */
7998int i;
7999_ACEOF
8000if ac_fn_c_try_compile "$LINENO"; then :
8001  xorg_cv_cc_flag_unused_command_line_argument=yes
8002else
8003  xorg_cv_cc_flag_unused_command_line_argument=no
8004fi
8005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8006fi
8007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8008$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8009	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8010	CFLAGS="$xorg_testset_save_CFLAGS"
8011fi
8012
8013found="no"
8014
8015	if test $found = "no" ; then
8016		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8017			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8018		fi
8019
8020		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8021			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8022		fi
8023
8024		CFLAGS="$CFLAGS -Werror=write-strings"
8025
8026		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8027$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8028		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8029		if eval \${$cacheid+:} false; then :
8030  $as_echo_n "(cached) " >&6
8031else
8032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033/* end confdefs.h.  */
8034int i;
8035int
8036main ()
8037{
8038
8039  ;
8040  return 0;
8041}
8042_ACEOF
8043if ac_fn_c_try_link "$LINENO"; then :
8044  eval $cacheid=yes
8045else
8046  eval $cacheid=no
8047fi
8048rm -f core conftest.err conftest.$ac_objext \
8049    conftest$ac_exeext conftest.$ac_ext
8050fi
8051
8052
8053		CFLAGS="$xorg_testset_save_CFLAGS"
8054
8055		eval supported=\$$cacheid
8056		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8057$as_echo "$supported" >&6; }
8058		if test "$supported" = "yes" ; then
8059			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8060			found="yes"
8061		fi
8062	fi
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078xorg_testset_save_CFLAGS="$CFLAGS"
8079
8080if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8081	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8082	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8083$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8084if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8085  $as_echo_n "(cached) " >&6
8086else
8087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088/* end confdefs.h.  */
8089int i;
8090_ACEOF
8091if ac_fn_c_try_compile "$LINENO"; then :
8092  xorg_cv_cc_flag_unknown_warning_option=yes
8093else
8094  xorg_cv_cc_flag_unknown_warning_option=no
8095fi
8096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8097fi
8098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8099$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8100	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8101	CFLAGS="$xorg_testset_save_CFLAGS"
8102fi
8103
8104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8105	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8106		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8107	fi
8108	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8109	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8110$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8111if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8112  $as_echo_n "(cached) " >&6
8113else
8114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115/* end confdefs.h.  */
8116int i;
8117_ACEOF
8118if ac_fn_c_try_compile "$LINENO"; then :
8119  xorg_cv_cc_flag_unused_command_line_argument=yes
8120else
8121  xorg_cv_cc_flag_unused_command_line_argument=no
8122fi
8123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8124fi
8125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8126$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8127	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8128	CFLAGS="$xorg_testset_save_CFLAGS"
8129fi
8130
8131found="no"
8132
8133	if test $found = "no" ; then
8134		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8135			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8136		fi
8137
8138		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8139			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8140		fi
8141
8142		CFLAGS="$CFLAGS -Werror=address"
8143
8144		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8145$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8146		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8147		if eval \${$cacheid+:} false; then :
8148  $as_echo_n "(cached) " >&6
8149else
8150  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8151/* end confdefs.h.  */
8152int i;
8153int
8154main ()
8155{
8156
8157  ;
8158  return 0;
8159}
8160_ACEOF
8161if ac_fn_c_try_link "$LINENO"; then :
8162  eval $cacheid=yes
8163else
8164  eval $cacheid=no
8165fi
8166rm -f core conftest.err conftest.$ac_objext \
8167    conftest$ac_exeext conftest.$ac_ext
8168fi
8169
8170
8171		CFLAGS="$xorg_testset_save_CFLAGS"
8172
8173		eval supported=\$$cacheid
8174		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8175$as_echo "$supported" >&6; }
8176		if test "$supported" = "yes" ; then
8177			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8178			found="yes"
8179		fi
8180	fi
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196xorg_testset_save_CFLAGS="$CFLAGS"
8197
8198if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8199	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8200	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8201$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8202if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8203  $as_echo_n "(cached) " >&6
8204else
8205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206/* end confdefs.h.  */
8207int i;
8208_ACEOF
8209if ac_fn_c_try_compile "$LINENO"; then :
8210  xorg_cv_cc_flag_unknown_warning_option=yes
8211else
8212  xorg_cv_cc_flag_unknown_warning_option=no
8213fi
8214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8215fi
8216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8217$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8218	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8219	CFLAGS="$xorg_testset_save_CFLAGS"
8220fi
8221
8222if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8223	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8224		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8225	fi
8226	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8227	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8228$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8229if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8230  $as_echo_n "(cached) " >&6
8231else
8232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233/* end confdefs.h.  */
8234int i;
8235_ACEOF
8236if ac_fn_c_try_compile "$LINENO"; then :
8237  xorg_cv_cc_flag_unused_command_line_argument=yes
8238else
8239  xorg_cv_cc_flag_unused_command_line_argument=no
8240fi
8241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8242fi
8243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8244$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8245	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8246	CFLAGS="$xorg_testset_save_CFLAGS"
8247fi
8248
8249found="no"
8250
8251	if test $found = "no" ; then
8252		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8253			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8254		fi
8255
8256		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8257			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8258		fi
8259
8260		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8261
8262		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8263$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8264		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8265		if eval \${$cacheid+:} false; then :
8266  $as_echo_n "(cached) " >&6
8267else
8268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269/* end confdefs.h.  */
8270int i;
8271int
8272main ()
8273{
8274
8275  ;
8276  return 0;
8277}
8278_ACEOF
8279if ac_fn_c_try_link "$LINENO"; then :
8280  eval $cacheid=yes
8281else
8282  eval $cacheid=no
8283fi
8284rm -f core conftest.err conftest.$ac_objext \
8285    conftest$ac_exeext conftest.$ac_ext
8286fi
8287
8288
8289		CFLAGS="$xorg_testset_save_CFLAGS"
8290
8291		eval supported=\$$cacheid
8292		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8293$as_echo "$supported" >&6; }
8294		if test "$supported" = "yes" ; then
8295			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8296			found="yes"
8297		fi
8298	fi
8299
8300	if test $found = "no" ; then
8301		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8302			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8303		fi
8304
8305		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8306			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8307		fi
8308
8309		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8310
8311		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8312$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8313		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8314		if eval \${$cacheid+:} false; then :
8315  $as_echo_n "(cached) " >&6
8316else
8317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318/* end confdefs.h.  */
8319int i;
8320int
8321main ()
8322{
8323
8324  ;
8325  return 0;
8326}
8327_ACEOF
8328if ac_fn_c_try_link "$LINENO"; then :
8329  eval $cacheid=yes
8330else
8331  eval $cacheid=no
8332fi
8333rm -f core conftest.err conftest.$ac_objext \
8334    conftest$ac_exeext conftest.$ac_ext
8335fi
8336
8337
8338		CFLAGS="$xorg_testset_save_CFLAGS"
8339
8340		eval supported=\$$cacheid
8341		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8342$as_echo "$supported" >&6; }
8343		if test "$supported" = "yes" ; then
8344			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8345			found="yes"
8346		fi
8347	fi
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363xorg_testset_save_CFLAGS="$CFLAGS"
8364
8365if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8366	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8367	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8368$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8369if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8370  $as_echo_n "(cached) " >&6
8371else
8372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8373/* end confdefs.h.  */
8374int i;
8375_ACEOF
8376if ac_fn_c_try_compile "$LINENO"; then :
8377  xorg_cv_cc_flag_unknown_warning_option=yes
8378else
8379  xorg_cv_cc_flag_unknown_warning_option=no
8380fi
8381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8382fi
8383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8384$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8385	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8386	CFLAGS="$xorg_testset_save_CFLAGS"
8387fi
8388
8389if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8390	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8391		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8392	fi
8393	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8394	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8395$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8396if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8397  $as_echo_n "(cached) " >&6
8398else
8399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400/* end confdefs.h.  */
8401int i;
8402_ACEOF
8403if ac_fn_c_try_compile "$LINENO"; then :
8404  xorg_cv_cc_flag_unused_command_line_argument=yes
8405else
8406  xorg_cv_cc_flag_unused_command_line_argument=no
8407fi
8408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8409fi
8410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8411$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8412	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8413	CFLAGS="$xorg_testset_save_CFLAGS"
8414fi
8415
8416found="no"
8417
8418	if test $found = "no" ; then
8419		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8420			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8421		fi
8422
8423		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8424			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8425		fi
8426
8427		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8428
8429		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8430$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8431		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8432		if eval \${$cacheid+:} false; then :
8433  $as_echo_n "(cached) " >&6
8434else
8435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436/* end confdefs.h.  */
8437int i;
8438int
8439main ()
8440{
8441
8442  ;
8443  return 0;
8444}
8445_ACEOF
8446if ac_fn_c_try_link "$LINENO"; then :
8447  eval $cacheid=yes
8448else
8449  eval $cacheid=no
8450fi
8451rm -f core conftest.err conftest.$ac_objext \
8452    conftest$ac_exeext conftest.$ac_ext
8453fi
8454
8455
8456		CFLAGS="$xorg_testset_save_CFLAGS"
8457
8458		eval supported=\$$cacheid
8459		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8460$as_echo "$supported" >&6; }
8461		if test "$supported" = "yes" ; then
8462			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8463			found="yes"
8464		fi
8465	fi
8466
8467 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8468else
8469{ $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
8470$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;}
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484xorg_testset_save_CFLAGS="$CFLAGS"
8485
8486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8487	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8488	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8489$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8490if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8491  $as_echo_n "(cached) " >&6
8492else
8493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494/* end confdefs.h.  */
8495int i;
8496_ACEOF
8497if ac_fn_c_try_compile "$LINENO"; then :
8498  xorg_cv_cc_flag_unknown_warning_option=yes
8499else
8500  xorg_cv_cc_flag_unknown_warning_option=no
8501fi
8502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503fi
8504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8505$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8506	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8507	CFLAGS="$xorg_testset_save_CFLAGS"
8508fi
8509
8510if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8511	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8512		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8513	fi
8514	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8515	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8516$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8517if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8518  $as_echo_n "(cached) " >&6
8519else
8520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8521/* end confdefs.h.  */
8522int i;
8523_ACEOF
8524if ac_fn_c_try_compile "$LINENO"; then :
8525  xorg_cv_cc_flag_unused_command_line_argument=yes
8526else
8527  xorg_cv_cc_flag_unused_command_line_argument=no
8528fi
8529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8530fi
8531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8532$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8533	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8534	CFLAGS="$xorg_testset_save_CFLAGS"
8535fi
8536
8537found="no"
8538
8539	if test $found = "no" ; then
8540		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8541			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8542		fi
8543
8544		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8545			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8546		fi
8547
8548		CFLAGS="$CFLAGS -Wimplicit"
8549
8550		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8551$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8552		cacheid=xorg_cv_cc_flag__Wimplicit
8553		if eval \${$cacheid+:} false; then :
8554  $as_echo_n "(cached) " >&6
8555else
8556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8557/* end confdefs.h.  */
8558int i;
8559int
8560main ()
8561{
8562
8563  ;
8564  return 0;
8565}
8566_ACEOF
8567if ac_fn_c_try_link "$LINENO"; then :
8568  eval $cacheid=yes
8569else
8570  eval $cacheid=no
8571fi
8572rm -f core conftest.err conftest.$ac_objext \
8573    conftest$ac_exeext conftest.$ac_ext
8574fi
8575
8576
8577		CFLAGS="$xorg_testset_save_CFLAGS"
8578
8579		eval supported=\$$cacheid
8580		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8581$as_echo "$supported" >&6; }
8582		if test "$supported" = "yes" ; then
8583			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8584			found="yes"
8585		fi
8586	fi
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602xorg_testset_save_CFLAGS="$CFLAGS"
8603
8604if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8605	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8606	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8607$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8608if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8609  $as_echo_n "(cached) " >&6
8610else
8611  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612/* end confdefs.h.  */
8613int i;
8614_ACEOF
8615if ac_fn_c_try_compile "$LINENO"; then :
8616  xorg_cv_cc_flag_unknown_warning_option=yes
8617else
8618  xorg_cv_cc_flag_unknown_warning_option=no
8619fi
8620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8621fi
8622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8623$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8624	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8625	CFLAGS="$xorg_testset_save_CFLAGS"
8626fi
8627
8628if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8629	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8630		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8631	fi
8632	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8633	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8634$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8635if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8636  $as_echo_n "(cached) " >&6
8637else
8638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8639/* end confdefs.h.  */
8640int i;
8641_ACEOF
8642if ac_fn_c_try_compile "$LINENO"; then :
8643  xorg_cv_cc_flag_unused_command_line_argument=yes
8644else
8645  xorg_cv_cc_flag_unused_command_line_argument=no
8646fi
8647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8648fi
8649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8650$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8651	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8652	CFLAGS="$xorg_testset_save_CFLAGS"
8653fi
8654
8655found="no"
8656
8657	if test $found = "no" ; then
8658		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8659			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8660		fi
8661
8662		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8663			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8664		fi
8665
8666		CFLAGS="$CFLAGS -Wnonnull"
8667
8668		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8669$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8670		cacheid=xorg_cv_cc_flag__Wnonnull
8671		if eval \${$cacheid+:} false; then :
8672  $as_echo_n "(cached) " >&6
8673else
8674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675/* end confdefs.h.  */
8676int i;
8677int
8678main ()
8679{
8680
8681  ;
8682  return 0;
8683}
8684_ACEOF
8685if ac_fn_c_try_link "$LINENO"; then :
8686  eval $cacheid=yes
8687else
8688  eval $cacheid=no
8689fi
8690rm -f core conftest.err conftest.$ac_objext \
8691    conftest$ac_exeext conftest.$ac_ext
8692fi
8693
8694
8695		CFLAGS="$xorg_testset_save_CFLAGS"
8696
8697		eval supported=\$$cacheid
8698		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8699$as_echo "$supported" >&6; }
8700		if test "$supported" = "yes" ; then
8701			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8702			found="yes"
8703		fi
8704	fi
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720xorg_testset_save_CFLAGS="$CFLAGS"
8721
8722if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8723	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8724	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8725$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8726if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8727  $as_echo_n "(cached) " >&6
8728else
8729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730/* end confdefs.h.  */
8731int i;
8732_ACEOF
8733if ac_fn_c_try_compile "$LINENO"; then :
8734  xorg_cv_cc_flag_unknown_warning_option=yes
8735else
8736  xorg_cv_cc_flag_unknown_warning_option=no
8737fi
8738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8739fi
8740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8741$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8742	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8743	CFLAGS="$xorg_testset_save_CFLAGS"
8744fi
8745
8746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8747	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8748		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8749	fi
8750	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8751	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8752$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8753if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8754  $as_echo_n "(cached) " >&6
8755else
8756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757/* end confdefs.h.  */
8758int i;
8759_ACEOF
8760if ac_fn_c_try_compile "$LINENO"; then :
8761  xorg_cv_cc_flag_unused_command_line_argument=yes
8762else
8763  xorg_cv_cc_flag_unused_command_line_argument=no
8764fi
8765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8766fi
8767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8768$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8769	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8770	CFLAGS="$xorg_testset_save_CFLAGS"
8771fi
8772
8773found="no"
8774
8775	if test $found = "no" ; then
8776		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8777			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8778		fi
8779
8780		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8781			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8782		fi
8783
8784		CFLAGS="$CFLAGS -Winit-self"
8785
8786		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8787$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8788		cacheid=xorg_cv_cc_flag__Winit_self
8789		if eval \${$cacheid+:} false; then :
8790  $as_echo_n "(cached) " >&6
8791else
8792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793/* end confdefs.h.  */
8794int i;
8795int
8796main ()
8797{
8798
8799  ;
8800  return 0;
8801}
8802_ACEOF
8803if ac_fn_c_try_link "$LINENO"; then :
8804  eval $cacheid=yes
8805else
8806  eval $cacheid=no
8807fi
8808rm -f core conftest.err conftest.$ac_objext \
8809    conftest$ac_exeext conftest.$ac_ext
8810fi
8811
8812
8813		CFLAGS="$xorg_testset_save_CFLAGS"
8814
8815		eval supported=\$$cacheid
8816		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8817$as_echo "$supported" >&6; }
8818		if test "$supported" = "yes" ; then
8819			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8820			found="yes"
8821		fi
8822	fi
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838xorg_testset_save_CFLAGS="$CFLAGS"
8839
8840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8841	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8842	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8843$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8844if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8845  $as_echo_n "(cached) " >&6
8846else
8847  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848/* end confdefs.h.  */
8849int i;
8850_ACEOF
8851if ac_fn_c_try_compile "$LINENO"; then :
8852  xorg_cv_cc_flag_unknown_warning_option=yes
8853else
8854  xorg_cv_cc_flag_unknown_warning_option=no
8855fi
8856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8857fi
8858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8859$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8860	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8861	CFLAGS="$xorg_testset_save_CFLAGS"
8862fi
8863
8864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8865	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8866		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8867	fi
8868	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8869	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8870$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8871if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8872  $as_echo_n "(cached) " >&6
8873else
8874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875/* end confdefs.h.  */
8876int i;
8877_ACEOF
8878if ac_fn_c_try_compile "$LINENO"; then :
8879  xorg_cv_cc_flag_unused_command_line_argument=yes
8880else
8881  xorg_cv_cc_flag_unused_command_line_argument=no
8882fi
8883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8884fi
8885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8886$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8887	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8888	CFLAGS="$xorg_testset_save_CFLAGS"
8889fi
8890
8891found="no"
8892
8893	if test $found = "no" ; then
8894		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8895			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8896		fi
8897
8898		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8899			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8900		fi
8901
8902		CFLAGS="$CFLAGS -Wmain"
8903
8904		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8905$as_echo_n "checking if $CC supports -Wmain... " >&6; }
8906		cacheid=xorg_cv_cc_flag__Wmain
8907		if eval \${$cacheid+:} false; then :
8908  $as_echo_n "(cached) " >&6
8909else
8910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911/* end confdefs.h.  */
8912int i;
8913int
8914main ()
8915{
8916
8917  ;
8918  return 0;
8919}
8920_ACEOF
8921if ac_fn_c_try_link "$LINENO"; then :
8922  eval $cacheid=yes
8923else
8924  eval $cacheid=no
8925fi
8926rm -f core conftest.err conftest.$ac_objext \
8927    conftest$ac_exeext conftest.$ac_ext
8928fi
8929
8930
8931		CFLAGS="$xorg_testset_save_CFLAGS"
8932
8933		eval supported=\$$cacheid
8934		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8935$as_echo "$supported" >&6; }
8936		if test "$supported" = "yes" ; then
8937			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8938			found="yes"
8939		fi
8940	fi
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956xorg_testset_save_CFLAGS="$CFLAGS"
8957
8958if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8959	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8960	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8961$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8962if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8963  $as_echo_n "(cached) " >&6
8964else
8965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966/* end confdefs.h.  */
8967int i;
8968_ACEOF
8969if ac_fn_c_try_compile "$LINENO"; then :
8970  xorg_cv_cc_flag_unknown_warning_option=yes
8971else
8972  xorg_cv_cc_flag_unknown_warning_option=no
8973fi
8974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8975fi
8976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8977$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8978	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8979	CFLAGS="$xorg_testset_save_CFLAGS"
8980fi
8981
8982if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8983	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8984		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8985	fi
8986	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8987	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8988$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8989if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8990  $as_echo_n "(cached) " >&6
8991else
8992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993/* end confdefs.h.  */
8994int i;
8995_ACEOF
8996if ac_fn_c_try_compile "$LINENO"; then :
8997  xorg_cv_cc_flag_unused_command_line_argument=yes
8998else
8999  xorg_cv_cc_flag_unused_command_line_argument=no
9000fi
9001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9002fi
9003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9004$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9005	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9006	CFLAGS="$xorg_testset_save_CFLAGS"
9007fi
9008
9009found="no"
9010
9011	if test $found = "no" ; then
9012		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9013			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9014		fi
9015
9016		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9017			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9018		fi
9019
9020		CFLAGS="$CFLAGS -Wmissing-braces"
9021
9022		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9023$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9024		cacheid=xorg_cv_cc_flag__Wmissing_braces
9025		if eval \${$cacheid+:} false; then :
9026  $as_echo_n "(cached) " >&6
9027else
9028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029/* end confdefs.h.  */
9030int i;
9031int
9032main ()
9033{
9034
9035  ;
9036  return 0;
9037}
9038_ACEOF
9039if ac_fn_c_try_link "$LINENO"; then :
9040  eval $cacheid=yes
9041else
9042  eval $cacheid=no
9043fi
9044rm -f core conftest.err conftest.$ac_objext \
9045    conftest$ac_exeext conftest.$ac_ext
9046fi
9047
9048
9049		CFLAGS="$xorg_testset_save_CFLAGS"
9050
9051		eval supported=\$$cacheid
9052		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9053$as_echo "$supported" >&6; }
9054		if test "$supported" = "yes" ; then
9055			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9056			found="yes"
9057		fi
9058	fi
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074xorg_testset_save_CFLAGS="$CFLAGS"
9075
9076if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9077	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9078	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9079$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9080if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9081  $as_echo_n "(cached) " >&6
9082else
9083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9084/* end confdefs.h.  */
9085int i;
9086_ACEOF
9087if ac_fn_c_try_compile "$LINENO"; then :
9088  xorg_cv_cc_flag_unknown_warning_option=yes
9089else
9090  xorg_cv_cc_flag_unknown_warning_option=no
9091fi
9092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9093fi
9094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9095$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9096	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9097	CFLAGS="$xorg_testset_save_CFLAGS"
9098fi
9099
9100if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9101	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9102		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9103	fi
9104	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9105	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9106$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9107if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9108  $as_echo_n "(cached) " >&6
9109else
9110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111/* end confdefs.h.  */
9112int i;
9113_ACEOF
9114if ac_fn_c_try_compile "$LINENO"; then :
9115  xorg_cv_cc_flag_unused_command_line_argument=yes
9116else
9117  xorg_cv_cc_flag_unused_command_line_argument=no
9118fi
9119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9120fi
9121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9122$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9123	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9124	CFLAGS="$xorg_testset_save_CFLAGS"
9125fi
9126
9127found="no"
9128
9129	if test $found = "no" ; then
9130		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9131			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9132		fi
9133
9134		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9135			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9136		fi
9137
9138		CFLAGS="$CFLAGS -Wsequence-point"
9139
9140		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9141$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9142		cacheid=xorg_cv_cc_flag__Wsequence_point
9143		if eval \${$cacheid+:} false; then :
9144  $as_echo_n "(cached) " >&6
9145else
9146  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9147/* end confdefs.h.  */
9148int i;
9149int
9150main ()
9151{
9152
9153  ;
9154  return 0;
9155}
9156_ACEOF
9157if ac_fn_c_try_link "$LINENO"; then :
9158  eval $cacheid=yes
9159else
9160  eval $cacheid=no
9161fi
9162rm -f core conftest.err conftest.$ac_objext \
9163    conftest$ac_exeext conftest.$ac_ext
9164fi
9165
9166
9167		CFLAGS="$xorg_testset_save_CFLAGS"
9168
9169		eval supported=\$$cacheid
9170		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9171$as_echo "$supported" >&6; }
9172		if test "$supported" = "yes" ; then
9173			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9174			found="yes"
9175		fi
9176	fi
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192xorg_testset_save_CFLAGS="$CFLAGS"
9193
9194if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9195	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9196	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9197$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9198if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9199  $as_echo_n "(cached) " >&6
9200else
9201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202/* end confdefs.h.  */
9203int i;
9204_ACEOF
9205if ac_fn_c_try_compile "$LINENO"; then :
9206  xorg_cv_cc_flag_unknown_warning_option=yes
9207else
9208  xorg_cv_cc_flag_unknown_warning_option=no
9209fi
9210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9211fi
9212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9213$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9214	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9215	CFLAGS="$xorg_testset_save_CFLAGS"
9216fi
9217
9218if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9219	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9220		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9221	fi
9222	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9223	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9224$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9225if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9226  $as_echo_n "(cached) " >&6
9227else
9228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229/* end confdefs.h.  */
9230int i;
9231_ACEOF
9232if ac_fn_c_try_compile "$LINENO"; then :
9233  xorg_cv_cc_flag_unused_command_line_argument=yes
9234else
9235  xorg_cv_cc_flag_unused_command_line_argument=no
9236fi
9237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9238fi
9239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9240$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9241	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9242	CFLAGS="$xorg_testset_save_CFLAGS"
9243fi
9244
9245found="no"
9246
9247	if test $found = "no" ; then
9248		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9249			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9250		fi
9251
9252		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9253			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9254		fi
9255
9256		CFLAGS="$CFLAGS -Wreturn-type"
9257
9258		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9259$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9260		cacheid=xorg_cv_cc_flag__Wreturn_type
9261		if eval \${$cacheid+:} false; then :
9262  $as_echo_n "(cached) " >&6
9263else
9264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9265/* end confdefs.h.  */
9266int i;
9267int
9268main ()
9269{
9270
9271  ;
9272  return 0;
9273}
9274_ACEOF
9275if ac_fn_c_try_link "$LINENO"; then :
9276  eval $cacheid=yes
9277else
9278  eval $cacheid=no
9279fi
9280rm -f core conftest.err conftest.$ac_objext \
9281    conftest$ac_exeext conftest.$ac_ext
9282fi
9283
9284
9285		CFLAGS="$xorg_testset_save_CFLAGS"
9286
9287		eval supported=\$$cacheid
9288		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9289$as_echo "$supported" >&6; }
9290		if test "$supported" = "yes" ; then
9291			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9292			found="yes"
9293		fi
9294	fi
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310xorg_testset_save_CFLAGS="$CFLAGS"
9311
9312if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9313	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9314	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9315$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9316if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9317  $as_echo_n "(cached) " >&6
9318else
9319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9320/* end confdefs.h.  */
9321int i;
9322_ACEOF
9323if ac_fn_c_try_compile "$LINENO"; then :
9324  xorg_cv_cc_flag_unknown_warning_option=yes
9325else
9326  xorg_cv_cc_flag_unknown_warning_option=no
9327fi
9328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9329fi
9330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9331$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9332	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9333	CFLAGS="$xorg_testset_save_CFLAGS"
9334fi
9335
9336if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9337	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9338		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9339	fi
9340	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9341	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9342$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9343if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9344  $as_echo_n "(cached) " >&6
9345else
9346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347/* end confdefs.h.  */
9348int i;
9349_ACEOF
9350if ac_fn_c_try_compile "$LINENO"; then :
9351  xorg_cv_cc_flag_unused_command_line_argument=yes
9352else
9353  xorg_cv_cc_flag_unused_command_line_argument=no
9354fi
9355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9356fi
9357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9358$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9359	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9360	CFLAGS="$xorg_testset_save_CFLAGS"
9361fi
9362
9363found="no"
9364
9365	if test $found = "no" ; then
9366		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9367			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9368		fi
9369
9370		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9371			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9372		fi
9373
9374		CFLAGS="$CFLAGS -Wtrigraphs"
9375
9376		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9377$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9378		cacheid=xorg_cv_cc_flag__Wtrigraphs
9379		if eval \${$cacheid+:} false; then :
9380  $as_echo_n "(cached) " >&6
9381else
9382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383/* end confdefs.h.  */
9384int i;
9385int
9386main ()
9387{
9388
9389  ;
9390  return 0;
9391}
9392_ACEOF
9393if ac_fn_c_try_link "$LINENO"; then :
9394  eval $cacheid=yes
9395else
9396  eval $cacheid=no
9397fi
9398rm -f core conftest.err conftest.$ac_objext \
9399    conftest$ac_exeext conftest.$ac_ext
9400fi
9401
9402
9403		CFLAGS="$xorg_testset_save_CFLAGS"
9404
9405		eval supported=\$$cacheid
9406		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9407$as_echo "$supported" >&6; }
9408		if test "$supported" = "yes" ; then
9409			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9410			found="yes"
9411		fi
9412	fi
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428xorg_testset_save_CFLAGS="$CFLAGS"
9429
9430if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9431	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9432	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9433$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9434if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9435  $as_echo_n "(cached) " >&6
9436else
9437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438/* end confdefs.h.  */
9439int i;
9440_ACEOF
9441if ac_fn_c_try_compile "$LINENO"; then :
9442  xorg_cv_cc_flag_unknown_warning_option=yes
9443else
9444  xorg_cv_cc_flag_unknown_warning_option=no
9445fi
9446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9447fi
9448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9449$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9450	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9451	CFLAGS="$xorg_testset_save_CFLAGS"
9452fi
9453
9454if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9455	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9456		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9457	fi
9458	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9459	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9460$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9461if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9462  $as_echo_n "(cached) " >&6
9463else
9464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465/* end confdefs.h.  */
9466int i;
9467_ACEOF
9468if ac_fn_c_try_compile "$LINENO"; then :
9469  xorg_cv_cc_flag_unused_command_line_argument=yes
9470else
9471  xorg_cv_cc_flag_unused_command_line_argument=no
9472fi
9473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9474fi
9475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9476$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9477	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9478	CFLAGS="$xorg_testset_save_CFLAGS"
9479fi
9480
9481found="no"
9482
9483	if test $found = "no" ; then
9484		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9485			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9486		fi
9487
9488		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9489			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9490		fi
9491
9492		CFLAGS="$CFLAGS -Warray-bounds"
9493
9494		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9495$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9496		cacheid=xorg_cv_cc_flag__Warray_bounds
9497		if eval \${$cacheid+:} false; then :
9498  $as_echo_n "(cached) " >&6
9499else
9500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501/* end confdefs.h.  */
9502int i;
9503int
9504main ()
9505{
9506
9507  ;
9508  return 0;
9509}
9510_ACEOF
9511if ac_fn_c_try_link "$LINENO"; then :
9512  eval $cacheid=yes
9513else
9514  eval $cacheid=no
9515fi
9516rm -f core conftest.err conftest.$ac_objext \
9517    conftest$ac_exeext conftest.$ac_ext
9518fi
9519
9520
9521		CFLAGS="$xorg_testset_save_CFLAGS"
9522
9523		eval supported=\$$cacheid
9524		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9525$as_echo "$supported" >&6; }
9526		if test "$supported" = "yes" ; then
9527			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9528			found="yes"
9529		fi
9530	fi
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546xorg_testset_save_CFLAGS="$CFLAGS"
9547
9548if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9549	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9550	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9551$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9552if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9553  $as_echo_n "(cached) " >&6
9554else
9555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556/* end confdefs.h.  */
9557int i;
9558_ACEOF
9559if ac_fn_c_try_compile "$LINENO"; then :
9560  xorg_cv_cc_flag_unknown_warning_option=yes
9561else
9562  xorg_cv_cc_flag_unknown_warning_option=no
9563fi
9564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9565fi
9566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9567$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9568	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9569	CFLAGS="$xorg_testset_save_CFLAGS"
9570fi
9571
9572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9573	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9574		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9575	fi
9576	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9577	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9578$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9579if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9580  $as_echo_n "(cached) " >&6
9581else
9582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583/* end confdefs.h.  */
9584int i;
9585_ACEOF
9586if ac_fn_c_try_compile "$LINENO"; then :
9587  xorg_cv_cc_flag_unused_command_line_argument=yes
9588else
9589  xorg_cv_cc_flag_unused_command_line_argument=no
9590fi
9591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9592fi
9593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9594$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9595	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9596	CFLAGS="$xorg_testset_save_CFLAGS"
9597fi
9598
9599found="no"
9600
9601	if test $found = "no" ; then
9602		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9603			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9604		fi
9605
9606		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9607			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9608		fi
9609
9610		CFLAGS="$CFLAGS -Wwrite-strings"
9611
9612		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9613$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9614		cacheid=xorg_cv_cc_flag__Wwrite_strings
9615		if eval \${$cacheid+:} false; then :
9616  $as_echo_n "(cached) " >&6
9617else
9618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9619/* end confdefs.h.  */
9620int i;
9621int
9622main ()
9623{
9624
9625  ;
9626  return 0;
9627}
9628_ACEOF
9629if ac_fn_c_try_link "$LINENO"; then :
9630  eval $cacheid=yes
9631else
9632  eval $cacheid=no
9633fi
9634rm -f core conftest.err conftest.$ac_objext \
9635    conftest$ac_exeext conftest.$ac_ext
9636fi
9637
9638
9639		CFLAGS="$xorg_testset_save_CFLAGS"
9640
9641		eval supported=\$$cacheid
9642		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9643$as_echo "$supported" >&6; }
9644		if test "$supported" = "yes" ; then
9645			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9646			found="yes"
9647		fi
9648	fi
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664xorg_testset_save_CFLAGS="$CFLAGS"
9665
9666if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9667	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9668	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9669$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9670if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9671  $as_echo_n "(cached) " >&6
9672else
9673  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674/* end confdefs.h.  */
9675int i;
9676_ACEOF
9677if ac_fn_c_try_compile "$LINENO"; then :
9678  xorg_cv_cc_flag_unknown_warning_option=yes
9679else
9680  xorg_cv_cc_flag_unknown_warning_option=no
9681fi
9682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9683fi
9684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9685$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9686	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9687	CFLAGS="$xorg_testset_save_CFLAGS"
9688fi
9689
9690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9691	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9692		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9693	fi
9694	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9695	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9696$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9697if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9698  $as_echo_n "(cached) " >&6
9699else
9700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701/* end confdefs.h.  */
9702int i;
9703_ACEOF
9704if ac_fn_c_try_compile "$LINENO"; then :
9705  xorg_cv_cc_flag_unused_command_line_argument=yes
9706else
9707  xorg_cv_cc_flag_unused_command_line_argument=no
9708fi
9709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9710fi
9711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9712$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9713	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9714	CFLAGS="$xorg_testset_save_CFLAGS"
9715fi
9716
9717found="no"
9718
9719	if test $found = "no" ; then
9720		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9721			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9722		fi
9723
9724		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9725			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9726		fi
9727
9728		CFLAGS="$CFLAGS -Waddress"
9729
9730		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9731$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9732		cacheid=xorg_cv_cc_flag__Waddress
9733		if eval \${$cacheid+:} false; then :
9734  $as_echo_n "(cached) " >&6
9735else
9736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737/* end confdefs.h.  */
9738int i;
9739int
9740main ()
9741{
9742
9743  ;
9744  return 0;
9745}
9746_ACEOF
9747if ac_fn_c_try_link "$LINENO"; then :
9748  eval $cacheid=yes
9749else
9750  eval $cacheid=no
9751fi
9752rm -f core conftest.err conftest.$ac_objext \
9753    conftest$ac_exeext conftest.$ac_ext
9754fi
9755
9756
9757		CFLAGS="$xorg_testset_save_CFLAGS"
9758
9759		eval supported=\$$cacheid
9760		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9761$as_echo "$supported" >&6; }
9762		if test "$supported" = "yes" ; then
9763			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9764			found="yes"
9765		fi
9766	fi
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782xorg_testset_save_CFLAGS="$CFLAGS"
9783
9784if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9785	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9786	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9787$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9788if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9789  $as_echo_n "(cached) " >&6
9790else
9791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9792/* end confdefs.h.  */
9793int i;
9794_ACEOF
9795if ac_fn_c_try_compile "$LINENO"; then :
9796  xorg_cv_cc_flag_unknown_warning_option=yes
9797else
9798  xorg_cv_cc_flag_unknown_warning_option=no
9799fi
9800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9801fi
9802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9803$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9804	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9805	CFLAGS="$xorg_testset_save_CFLAGS"
9806fi
9807
9808if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9809	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9810		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9811	fi
9812	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9813	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9814$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9815if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9816  $as_echo_n "(cached) " >&6
9817else
9818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9819/* end confdefs.h.  */
9820int i;
9821_ACEOF
9822if ac_fn_c_try_compile "$LINENO"; then :
9823  xorg_cv_cc_flag_unused_command_line_argument=yes
9824else
9825  xorg_cv_cc_flag_unused_command_line_argument=no
9826fi
9827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9828fi
9829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9830$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9831	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9832	CFLAGS="$xorg_testset_save_CFLAGS"
9833fi
9834
9835found="no"
9836
9837	if test $found = "no" ; then
9838		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9839			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9840		fi
9841
9842		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9843			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9844		fi
9845
9846		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9847
9848		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9849$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9850		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9851		if eval \${$cacheid+:} false; then :
9852  $as_echo_n "(cached) " >&6
9853else
9854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855/* end confdefs.h.  */
9856int i;
9857int
9858main ()
9859{
9860
9861  ;
9862  return 0;
9863}
9864_ACEOF
9865if ac_fn_c_try_link "$LINENO"; then :
9866  eval $cacheid=yes
9867else
9868  eval $cacheid=no
9869fi
9870rm -f core conftest.err conftest.$ac_objext \
9871    conftest$ac_exeext conftest.$ac_ext
9872fi
9873
9874
9875		CFLAGS="$xorg_testset_save_CFLAGS"
9876
9877		eval supported=\$$cacheid
9878		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9879$as_echo "$supported" >&6; }
9880		if test "$supported" = "yes" ; then
9881			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9882			found="yes"
9883		fi
9884	fi
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900xorg_testset_save_CFLAGS="$CFLAGS"
9901
9902if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9903	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9904	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9905$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9906if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9907  $as_echo_n "(cached) " >&6
9908else
9909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9910/* end confdefs.h.  */
9911int i;
9912_ACEOF
9913if ac_fn_c_try_compile "$LINENO"; then :
9914  xorg_cv_cc_flag_unknown_warning_option=yes
9915else
9916  xorg_cv_cc_flag_unknown_warning_option=no
9917fi
9918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9919fi
9920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9921$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9922	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9923	CFLAGS="$xorg_testset_save_CFLAGS"
9924fi
9925
9926if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9927	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9928		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9929	fi
9930	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9931	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9932$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9933if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9934  $as_echo_n "(cached) " >&6
9935else
9936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9937/* end confdefs.h.  */
9938int i;
9939_ACEOF
9940if ac_fn_c_try_compile "$LINENO"; then :
9941  xorg_cv_cc_flag_unused_command_line_argument=yes
9942else
9943  xorg_cv_cc_flag_unused_command_line_argument=no
9944fi
9945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9946fi
9947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9948$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9949	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9950	CFLAGS="$xorg_testset_save_CFLAGS"
9951fi
9952
9953found="no"
9954
9955	if test $found = "no" ; then
9956		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9957			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9958		fi
9959
9960		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9961			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9962		fi
9963
9964		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9965
9966		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9967$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9968		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9969		if eval \${$cacheid+:} false; then :
9970  $as_echo_n "(cached) " >&6
9971else
9972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9973/* end confdefs.h.  */
9974int i;
9975int
9976main ()
9977{
9978
9979  ;
9980  return 0;
9981}
9982_ACEOF
9983if ac_fn_c_try_link "$LINENO"; then :
9984  eval $cacheid=yes
9985else
9986  eval $cacheid=no
9987fi
9988rm -f core conftest.err conftest.$ac_objext \
9989    conftest$ac_exeext conftest.$ac_ext
9990fi
9991
9992
9993		CFLAGS="$xorg_testset_save_CFLAGS"
9994
9995		eval supported=\$$cacheid
9996		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9997$as_echo "$supported" >&6; }
9998		if test "$supported" = "yes" ; then
9999			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10000			found="yes"
10001		fi
10002	fi
10003
10004
10005fi
10006
10007
10008
10009
10010
10011
10012
10013		CWARNFLAGS="$BASE_CFLAGS"
10014		if  test "x$GCC" = xyes ; then
10015		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10016		fi
10017
10018
10019
10020
10021
10022
10023
10024
10025# Check whether --enable-strict-compilation was given.
10026if test "${enable_strict_compilation+set}" = set; then :
10027  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10028else
10029  STRICT_COMPILE=no
10030fi
10031
10032
10033
10034
10035
10036
10037STRICT_CFLAGS=""
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051xorg_testset_save_CFLAGS="$CFLAGS"
10052
10053if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10054	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10055	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10056$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10057if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10058  $as_echo_n "(cached) " >&6
10059else
10060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10061/* end confdefs.h.  */
10062int i;
10063_ACEOF
10064if ac_fn_c_try_compile "$LINENO"; then :
10065  xorg_cv_cc_flag_unknown_warning_option=yes
10066else
10067  xorg_cv_cc_flag_unknown_warning_option=no
10068fi
10069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10070fi
10071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10072$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10073	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10074	CFLAGS="$xorg_testset_save_CFLAGS"
10075fi
10076
10077if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10078	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10079		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10080	fi
10081	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10082	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10083$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10084if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10085  $as_echo_n "(cached) " >&6
10086else
10087  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10088/* end confdefs.h.  */
10089int i;
10090_ACEOF
10091if ac_fn_c_try_compile "$LINENO"; then :
10092  xorg_cv_cc_flag_unused_command_line_argument=yes
10093else
10094  xorg_cv_cc_flag_unused_command_line_argument=no
10095fi
10096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10097fi
10098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10099$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10100	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10101	CFLAGS="$xorg_testset_save_CFLAGS"
10102fi
10103
10104found="no"
10105
10106	if test $found = "no" ; then
10107		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10108			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10109		fi
10110
10111		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10112			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10113		fi
10114
10115		CFLAGS="$CFLAGS -pedantic"
10116
10117		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10118$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10119		cacheid=xorg_cv_cc_flag__pedantic
10120		if eval \${$cacheid+:} false; then :
10121  $as_echo_n "(cached) " >&6
10122else
10123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124/* end confdefs.h.  */
10125int i;
10126int
10127main ()
10128{
10129
10130  ;
10131  return 0;
10132}
10133_ACEOF
10134if ac_fn_c_try_link "$LINENO"; then :
10135  eval $cacheid=yes
10136else
10137  eval $cacheid=no
10138fi
10139rm -f core conftest.err conftest.$ac_objext \
10140    conftest$ac_exeext conftest.$ac_ext
10141fi
10142
10143
10144		CFLAGS="$xorg_testset_save_CFLAGS"
10145
10146		eval supported=\$$cacheid
10147		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10148$as_echo "$supported" >&6; }
10149		if test "$supported" = "yes" ; then
10150			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10151			found="yes"
10152		fi
10153	fi
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169xorg_testset_save_CFLAGS="$CFLAGS"
10170
10171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10172	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10173	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10174$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10175if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10176  $as_echo_n "(cached) " >&6
10177else
10178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10179/* end confdefs.h.  */
10180int i;
10181_ACEOF
10182if ac_fn_c_try_compile "$LINENO"; then :
10183  xorg_cv_cc_flag_unknown_warning_option=yes
10184else
10185  xorg_cv_cc_flag_unknown_warning_option=no
10186fi
10187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10188fi
10189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10190$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10191	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10192	CFLAGS="$xorg_testset_save_CFLAGS"
10193fi
10194
10195if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10196	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10197		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10198	fi
10199	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10200	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10201$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10202if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10203  $as_echo_n "(cached) " >&6
10204else
10205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206/* end confdefs.h.  */
10207int i;
10208_ACEOF
10209if ac_fn_c_try_compile "$LINENO"; then :
10210  xorg_cv_cc_flag_unused_command_line_argument=yes
10211else
10212  xorg_cv_cc_flag_unused_command_line_argument=no
10213fi
10214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10215fi
10216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10217$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10218	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10219	CFLAGS="$xorg_testset_save_CFLAGS"
10220fi
10221
10222found="no"
10223
10224	if test $found = "no" ; then
10225		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10226			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10227		fi
10228
10229		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10230			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10231		fi
10232
10233		CFLAGS="$CFLAGS -Werror"
10234
10235		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10236$as_echo_n "checking if $CC supports -Werror... " >&6; }
10237		cacheid=xorg_cv_cc_flag__Werror
10238		if eval \${$cacheid+:} false; then :
10239  $as_echo_n "(cached) " >&6
10240else
10241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242/* end confdefs.h.  */
10243int i;
10244int
10245main ()
10246{
10247
10248  ;
10249  return 0;
10250}
10251_ACEOF
10252if ac_fn_c_try_link "$LINENO"; then :
10253  eval $cacheid=yes
10254else
10255  eval $cacheid=no
10256fi
10257rm -f core conftest.err conftest.$ac_objext \
10258    conftest$ac_exeext conftest.$ac_ext
10259fi
10260
10261
10262		CFLAGS="$xorg_testset_save_CFLAGS"
10263
10264		eval supported=\$$cacheid
10265		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10266$as_echo "$supported" >&6; }
10267		if test "$supported" = "yes" ; then
10268			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10269			found="yes"
10270		fi
10271	fi
10272
10273	if test $found = "no" ; then
10274		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10275			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10276		fi
10277
10278		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10279			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10280		fi
10281
10282		CFLAGS="$CFLAGS -errwarn"
10283
10284		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10285$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10286		cacheid=xorg_cv_cc_flag__errwarn
10287		if eval \${$cacheid+:} false; then :
10288  $as_echo_n "(cached) " >&6
10289else
10290  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291/* end confdefs.h.  */
10292int i;
10293int
10294main ()
10295{
10296
10297  ;
10298  return 0;
10299}
10300_ACEOF
10301if ac_fn_c_try_link "$LINENO"; then :
10302  eval $cacheid=yes
10303else
10304  eval $cacheid=no
10305fi
10306rm -f core conftest.err conftest.$ac_objext \
10307    conftest$ac_exeext conftest.$ac_ext
10308fi
10309
10310
10311		CFLAGS="$xorg_testset_save_CFLAGS"
10312
10313		eval supported=\$$cacheid
10314		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10315$as_echo "$supported" >&6; }
10316		if test "$supported" = "yes" ; then
10317			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10318			found="yes"
10319		fi
10320	fi
10321
10322
10323
10324# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10325# activate it with -Werror, so we add it here explicitly.
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339xorg_testset_save_CFLAGS="$CFLAGS"
10340
10341if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10342	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10343	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10344$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10345if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10346  $as_echo_n "(cached) " >&6
10347else
10348  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10349/* end confdefs.h.  */
10350int i;
10351_ACEOF
10352if ac_fn_c_try_compile "$LINENO"; then :
10353  xorg_cv_cc_flag_unknown_warning_option=yes
10354else
10355  xorg_cv_cc_flag_unknown_warning_option=no
10356fi
10357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10358fi
10359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10360$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10361	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10362	CFLAGS="$xorg_testset_save_CFLAGS"
10363fi
10364
10365if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10366	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10367		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10368	fi
10369	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10370	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10371$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10372if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10373  $as_echo_n "(cached) " >&6
10374else
10375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10376/* end confdefs.h.  */
10377int i;
10378_ACEOF
10379if ac_fn_c_try_compile "$LINENO"; then :
10380  xorg_cv_cc_flag_unused_command_line_argument=yes
10381else
10382  xorg_cv_cc_flag_unused_command_line_argument=no
10383fi
10384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10385fi
10386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10387$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10388	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10389	CFLAGS="$xorg_testset_save_CFLAGS"
10390fi
10391
10392found="no"
10393
10394	if test $found = "no" ; then
10395		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10396			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10397		fi
10398
10399		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10400			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10401		fi
10402
10403		CFLAGS="$CFLAGS -Werror=attributes"
10404
10405		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10406$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10407		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10408		if eval \${$cacheid+:} false; then :
10409  $as_echo_n "(cached) " >&6
10410else
10411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412/* end confdefs.h.  */
10413int i;
10414int
10415main ()
10416{
10417
10418  ;
10419  return 0;
10420}
10421_ACEOF
10422if ac_fn_c_try_link "$LINENO"; then :
10423  eval $cacheid=yes
10424else
10425  eval $cacheid=no
10426fi
10427rm -f core conftest.err conftest.$ac_objext \
10428    conftest$ac_exeext conftest.$ac_ext
10429fi
10430
10431
10432		CFLAGS="$xorg_testset_save_CFLAGS"
10433
10434		eval supported=\$$cacheid
10435		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10436$as_echo "$supported" >&6; }
10437		if test "$supported" = "yes" ; then
10438			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10439			found="yes"
10440		fi
10441	fi
10442
10443
10444
10445if test "x$STRICT_COMPILE" = "xyes"; then
10446    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10447    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10448fi
10449
10450
10451
10452
10453
10454
10455cat >>confdefs.h <<_ACEOF
10456#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10457_ACEOF
10458
10459	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10460	if test "x$PVM" = "x"; then
10461		PVM="0"
10462	fi
10463
10464cat >>confdefs.h <<_ACEOF
10465#define PACKAGE_VERSION_MINOR $PVM
10466_ACEOF
10467
10468	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10469	if test "x$PVP" = "x"; then
10470		PVP="0"
10471	fi
10472
10473cat >>confdefs.h <<_ACEOF
10474#define PACKAGE_VERSION_PATCHLEVEL $PVP
10475_ACEOF
10476
10477
10478
10479CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10480mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10481|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10482echo 'git directory not found: installing possibly empty changelog.' >&2)"
10483
10484
10485
10486
10487macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10488INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10489mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10490|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10491echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10492
10493
10494
10495
10496
10497
10498if test x$APP_MAN_SUFFIX = x    ; then
10499    APP_MAN_SUFFIX=1
10500fi
10501if test x$APP_MAN_DIR = x    ; then
10502    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10503fi
10504
10505if test x$LIB_MAN_SUFFIX = x    ; then
10506    LIB_MAN_SUFFIX=3
10507fi
10508if test x$LIB_MAN_DIR = x    ; then
10509    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10510fi
10511
10512if test x$FILE_MAN_SUFFIX = x    ; then
10513    case $host_os in
10514	solaris*)	FILE_MAN_SUFFIX=4  ;;
10515	*)		FILE_MAN_SUFFIX=5  ;;
10516    esac
10517fi
10518if test x$FILE_MAN_DIR = x    ; then
10519    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10520fi
10521
10522if test x$MISC_MAN_SUFFIX = x    ; then
10523    case $host_os in
10524	solaris*)	MISC_MAN_SUFFIX=5  ;;
10525	*)		MISC_MAN_SUFFIX=7  ;;
10526    esac
10527fi
10528if test x$MISC_MAN_DIR = x    ; then
10529    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10530fi
10531
10532if test x$DRIVER_MAN_SUFFIX = x    ; then
10533    case $host_os in
10534	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10535	*)		DRIVER_MAN_SUFFIX=4  ;;
10536    esac
10537fi
10538if test x$DRIVER_MAN_DIR = x    ; then
10539    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10540fi
10541
10542if test x$ADMIN_MAN_SUFFIX = x    ; then
10543    case $host_os in
10544	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10545	*)		ADMIN_MAN_SUFFIX=8  ;;
10546    esac
10547fi
10548if test x$ADMIN_MAN_DIR = x    ; then
10549    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10550fi
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566XORG_MAN_PAGE="X Version 11"
10567
10568MAN_SUBSTS="\
10569	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10570	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10571	-e 's|__xservername__|Xorg|g' \
10572	-e 's|__xconfigfile__|xorg.conf|g' \
10573	-e 's|__projectroot__|\$(prefix)|g' \
10574	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10575	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10576	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10577	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10578	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10579	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10580	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10581
10582
10583
10584# Check whether --enable-silent-rules was given.
10585if test "${enable_silent_rules+set}" = set; then :
10586  enableval=$enable_silent_rules;
10587fi
10588
10589case $enable_silent_rules in
10590yes) AM_DEFAULT_VERBOSITY=0;;
10591no)  AM_DEFAULT_VERBOSITY=1;;
10592*)   AM_DEFAULT_VERBOSITY=0;;
10593esac
10594am_make=${MAKE-make}
10595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10596$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10597if ${am_cv_make_support_nested_variables+:} false; then :
10598  $as_echo_n "(cached) " >&6
10599else
10600  if $as_echo 'TRUE=$(BAR$(V))
10601BAR0=false
10602BAR1=true
10603V=1
10604am__doit:
10605	@$(TRUE)
10606.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10607  am_cv_make_support_nested_variables=yes
10608else
10609  am_cv_make_support_nested_variables=no
10610fi
10611fi
10612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10613$as_echo "$am_cv_make_support_nested_variables" >&6; }
10614if test $am_cv_make_support_nested_variables = yes; then
10615    AM_V='$(V)'
10616  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10617else
10618  AM_V=$AM_DEFAULT_VERBOSITY
10619  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10620fi
10621AM_BACKSLASH='\'
10622
10623
10624
10625# Initialize libtool
10626# Check whether --enable-static was given.
10627if test "${enable_static+set}" = set; then :
10628  enableval=$enable_static; p=${PACKAGE-default}
10629    case $enableval in
10630    yes) enable_static=yes ;;
10631    no) enable_static=no ;;
10632    *)
10633     enable_static=no
10634      # Look at the argument we got.  We use all the common list separators.
10635      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10636      for pkg in $enableval; do
10637	IFS="$lt_save_ifs"
10638	if test "X$pkg" = "X$p"; then
10639	  enable_static=yes
10640	fi
10641      done
10642      IFS="$lt_save_ifs"
10643      ;;
10644    esac
10645else
10646  enable_static=no
10647fi
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657case `pwd` in
10658  *\ * | *\	*)
10659    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10660$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10661esac
10662
10663
10664
10665macro_version='2.4.2'
10666macro_revision='1.3337'
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680ltmain="$ac_aux_dir/ltmain.sh"
10681
10682# Backslashify metacharacters that are still active within
10683# double-quoted strings.
10684sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10685
10686# Same as above, but do not quote variable references.
10687double_quote_subst='s/\(["`\\]\)/\\\1/g'
10688
10689# Sed substitution to delay expansion of an escaped shell variable in a
10690# double_quote_subst'ed string.
10691delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10692
10693# Sed substitution to delay expansion of an escaped single quote.
10694delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10695
10696# Sed substitution to avoid accidental globbing in evaled expressions
10697no_glob_subst='s/\*/\\\*/g'
10698
10699ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10700ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10701ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10702
10703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10704$as_echo_n "checking how to print strings... " >&6; }
10705# Test print first, because it will be a builtin if present.
10706if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10707   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10708  ECHO='print -r --'
10709elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10710  ECHO='printf %s\n'
10711else
10712  # Use this function as a fallback that always works.
10713  func_fallback_echo ()
10714  {
10715    eval 'cat <<_LTECHO_EOF
10716$1
10717_LTECHO_EOF'
10718  }
10719  ECHO='func_fallback_echo'
10720fi
10721
10722# func_echo_all arg...
10723# Invoke $ECHO with all args, space-separated.
10724func_echo_all ()
10725{
10726    $ECHO ""
10727}
10728
10729case "$ECHO" in
10730  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10731$as_echo "printf" >&6; } ;;
10732  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10733$as_echo "print -r" >&6; } ;;
10734  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10735$as_echo "cat" >&6; } ;;
10736esac
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10752$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10753if ${ac_cv_path_SED+:} false; then :
10754  $as_echo_n "(cached) " >&6
10755else
10756            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10757     for ac_i in 1 2 3 4 5 6 7; do
10758       ac_script="$ac_script$as_nl$ac_script"
10759     done
10760     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10761     { ac_script=; unset ac_script;}
10762     if test -z "$SED"; then
10763  ac_path_SED_found=false
10764  # Loop through the user's path and test for each of PROGNAME-LIST
10765  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766for as_dir in $PATH
10767do
10768  IFS=$as_save_IFS
10769  test -z "$as_dir" && as_dir=.
10770    for ac_prog in sed gsed; do
10771    for ac_exec_ext in '' $ac_executable_extensions; do
10772      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10773      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10774# Check for GNU ac_path_SED and select it if it is found.
10775  # Check for GNU $ac_path_SED
10776case `"$ac_path_SED" --version 2>&1` in
10777*GNU*)
10778  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10779*)
10780  ac_count=0
10781  $as_echo_n 0123456789 >"conftest.in"
10782  while :
10783  do
10784    cat "conftest.in" "conftest.in" >"conftest.tmp"
10785    mv "conftest.tmp" "conftest.in"
10786    cp "conftest.in" "conftest.nl"
10787    $as_echo '' >> "conftest.nl"
10788    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10789    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10790    as_fn_arith $ac_count + 1 && ac_count=$as_val
10791    if test $ac_count -gt ${ac_path_SED_max-0}; then
10792      # Best one so far, save it but keep looking for a better one
10793      ac_cv_path_SED="$ac_path_SED"
10794      ac_path_SED_max=$ac_count
10795    fi
10796    # 10*(2^10) chars as input seems more than enough
10797    test $ac_count -gt 10 && break
10798  done
10799  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10800esac
10801
10802      $ac_path_SED_found && break 3
10803    done
10804  done
10805  done
10806IFS=$as_save_IFS
10807  if test -z "$ac_cv_path_SED"; then
10808    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10809  fi
10810else
10811  ac_cv_path_SED=$SED
10812fi
10813
10814fi
10815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10816$as_echo "$ac_cv_path_SED" >&6; }
10817 SED="$ac_cv_path_SED"
10818  rm -f conftest.sed
10819
10820test -z "$SED" && SED=sed
10821Xsed="$SED -e 1s/^X//"
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10834$as_echo_n "checking for fgrep... " >&6; }
10835if ${ac_cv_path_FGREP+:} false; then :
10836  $as_echo_n "(cached) " >&6
10837else
10838  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10839   then ac_cv_path_FGREP="$GREP -F"
10840   else
10841     if test -z "$FGREP"; then
10842  ac_path_FGREP_found=false
10843  # Loop through the user's path and test for each of PROGNAME-LIST
10844  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10845for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10846do
10847  IFS=$as_save_IFS
10848  test -z "$as_dir" && as_dir=.
10849    for ac_prog in fgrep; do
10850    for ac_exec_ext in '' $ac_executable_extensions; do
10851      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10852      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10853# Check for GNU ac_path_FGREP and select it if it is found.
10854  # Check for GNU $ac_path_FGREP
10855case `"$ac_path_FGREP" --version 2>&1` in
10856*GNU*)
10857  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10858*)
10859  ac_count=0
10860  $as_echo_n 0123456789 >"conftest.in"
10861  while :
10862  do
10863    cat "conftest.in" "conftest.in" >"conftest.tmp"
10864    mv "conftest.tmp" "conftest.in"
10865    cp "conftest.in" "conftest.nl"
10866    $as_echo 'FGREP' >> "conftest.nl"
10867    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10868    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10869    as_fn_arith $ac_count + 1 && ac_count=$as_val
10870    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10871      # Best one so far, save it but keep looking for a better one
10872      ac_cv_path_FGREP="$ac_path_FGREP"
10873      ac_path_FGREP_max=$ac_count
10874    fi
10875    # 10*(2^10) chars as input seems more than enough
10876    test $ac_count -gt 10 && break
10877  done
10878  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10879esac
10880
10881      $ac_path_FGREP_found && break 3
10882    done
10883  done
10884  done
10885IFS=$as_save_IFS
10886  if test -z "$ac_cv_path_FGREP"; then
10887    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10888  fi
10889else
10890  ac_cv_path_FGREP=$FGREP
10891fi
10892
10893   fi
10894fi
10895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10896$as_echo "$ac_cv_path_FGREP" >&6; }
10897 FGREP="$ac_cv_path_FGREP"
10898
10899
10900test -z "$GREP" && GREP=grep
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920# Check whether --with-gnu-ld was given.
10921if test "${with_gnu_ld+set}" = set; then :
10922  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10923else
10924  with_gnu_ld=no
10925fi
10926
10927ac_prog=ld
10928if test "$GCC" = yes; then
10929  # Check if gcc -print-prog-name=ld gives a path.
10930  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10931$as_echo_n "checking for ld used by $CC... " >&6; }
10932  case $host in
10933  *-*-mingw*)
10934    # gcc leaves a trailing carriage return which upsets mingw
10935    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10936  *)
10937    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10938  esac
10939  case $ac_prog in
10940    # Accept absolute paths.
10941    [\\/]* | ?:[\\/]*)
10942      re_direlt='/[^/][^/]*/\.\./'
10943      # Canonicalize the pathname of ld
10944      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10945      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10946	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10947      done
10948      test -z "$LD" && LD="$ac_prog"
10949      ;;
10950  "")
10951    # If it fails, then pretend we aren't using GCC.
10952    ac_prog=ld
10953    ;;
10954  *)
10955    # If it is relative, then search for the first ld in PATH.
10956    with_gnu_ld=unknown
10957    ;;
10958  esac
10959elif test "$with_gnu_ld" = yes; then
10960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10961$as_echo_n "checking for GNU ld... " >&6; }
10962else
10963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10964$as_echo_n "checking for non-GNU ld... " >&6; }
10965fi
10966if ${lt_cv_path_LD+:} false; then :
10967  $as_echo_n "(cached) " >&6
10968else
10969  if test -z "$LD"; then
10970  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10971  for ac_dir in $PATH; do
10972    IFS="$lt_save_ifs"
10973    test -z "$ac_dir" && ac_dir=.
10974    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10975      lt_cv_path_LD="$ac_dir/$ac_prog"
10976      # Check to see if the program is GNU ld.  I'd rather use --version,
10977      # but apparently some variants of GNU ld only accept -v.
10978      # Break only if it was the GNU/non-GNU ld that we prefer.
10979      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10980      *GNU* | *'with BFD'*)
10981	test "$with_gnu_ld" != no && break
10982	;;
10983      *)
10984	test "$with_gnu_ld" != yes && break
10985	;;
10986      esac
10987    fi
10988  done
10989  IFS="$lt_save_ifs"
10990else
10991  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10992fi
10993fi
10994
10995LD="$lt_cv_path_LD"
10996if test -n "$LD"; then
10997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10998$as_echo "$LD" >&6; }
10999else
11000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001$as_echo "no" >&6; }
11002fi
11003test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11005$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11006if ${lt_cv_prog_gnu_ld+:} false; then :
11007  $as_echo_n "(cached) " >&6
11008else
11009  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11010case `$LD -v 2>&1 </dev/null` in
11011*GNU* | *'with BFD'*)
11012  lt_cv_prog_gnu_ld=yes
11013  ;;
11014*)
11015  lt_cv_prog_gnu_ld=no
11016  ;;
11017esac
11018fi
11019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11020$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11021with_gnu_ld=$lt_cv_prog_gnu_ld
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11032$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11033if ${lt_cv_path_NM+:} false; then :
11034  $as_echo_n "(cached) " >&6
11035else
11036  if test -n "$NM"; then
11037  # Let the user override the test.
11038  lt_cv_path_NM="$NM"
11039else
11040  lt_nm_to_check="${ac_tool_prefix}nm"
11041  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11042    lt_nm_to_check="$lt_nm_to_check nm"
11043  fi
11044  for lt_tmp_nm in $lt_nm_to_check; do
11045    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11046    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11047      IFS="$lt_save_ifs"
11048      test -z "$ac_dir" && ac_dir=.
11049      tmp_nm="$ac_dir/$lt_tmp_nm"
11050      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11051	# Check to see if the nm accepts a BSD-compat flag.
11052	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
11053	#   nm: unknown option "B" ignored
11054	# Tru64's nm complains that /dev/null is an invalid object file
11055	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11056	*/dev/null* | *'Invalid file or object type'*)
11057	  lt_cv_path_NM="$tmp_nm -B"
11058	  break
11059	  ;;
11060	*)
11061	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11062	  */dev/null*)
11063	    lt_cv_path_NM="$tmp_nm -p"
11064	    break
11065	    ;;
11066	  *)
11067	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11068	    continue # so that we can try to find one that supports BSD flags
11069	    ;;
11070	  esac
11071	  ;;
11072	esac
11073      fi
11074    done
11075    IFS="$lt_save_ifs"
11076  done
11077  : ${lt_cv_path_NM=no}
11078fi
11079fi
11080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11081$as_echo "$lt_cv_path_NM" >&6; }
11082if test "$lt_cv_path_NM" != "no"; then
11083  NM="$lt_cv_path_NM"
11084else
11085  # Didn't find any BSD compatible name lister, look for dumpbin.
11086  if test -n "$DUMPBIN"; then :
11087    # Let the user override the test.
11088  else
11089    if test -n "$ac_tool_prefix"; then
11090  for ac_prog in dumpbin "link -dump"
11091  do
11092    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11093set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11095$as_echo_n "checking for $ac_word... " >&6; }
11096if ${ac_cv_prog_DUMPBIN+:} false; then :
11097  $as_echo_n "(cached) " >&6
11098else
11099  if test -n "$DUMPBIN"; then
11100  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11101else
11102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103for as_dir in $PATH
11104do
11105  IFS=$as_save_IFS
11106  test -z "$as_dir" && as_dir=.
11107    for ac_exec_ext in '' $ac_executable_extensions; do
11108  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11109    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11110    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11111    break 2
11112  fi
11113done
11114  done
11115IFS=$as_save_IFS
11116
11117fi
11118fi
11119DUMPBIN=$ac_cv_prog_DUMPBIN
11120if test -n "$DUMPBIN"; then
11121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11122$as_echo "$DUMPBIN" >&6; }
11123else
11124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11125$as_echo "no" >&6; }
11126fi
11127
11128
11129    test -n "$DUMPBIN" && break
11130  done
11131fi
11132if test -z "$DUMPBIN"; then
11133  ac_ct_DUMPBIN=$DUMPBIN
11134  for ac_prog in dumpbin "link -dump"
11135do
11136  # Extract the first word of "$ac_prog", so it can be a program name with args.
11137set dummy $ac_prog; ac_word=$2
11138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11139$as_echo_n "checking for $ac_word... " >&6; }
11140if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11141  $as_echo_n "(cached) " >&6
11142else
11143  if test -n "$ac_ct_DUMPBIN"; then
11144  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11145else
11146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11147for as_dir in $PATH
11148do
11149  IFS=$as_save_IFS
11150  test -z "$as_dir" && as_dir=.
11151    for ac_exec_ext in '' $ac_executable_extensions; do
11152  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11153    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11155    break 2
11156  fi
11157done
11158  done
11159IFS=$as_save_IFS
11160
11161fi
11162fi
11163ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11164if test -n "$ac_ct_DUMPBIN"; then
11165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11166$as_echo "$ac_ct_DUMPBIN" >&6; }
11167else
11168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169$as_echo "no" >&6; }
11170fi
11171
11172
11173  test -n "$ac_ct_DUMPBIN" && break
11174done
11175
11176  if test "x$ac_ct_DUMPBIN" = x; then
11177    DUMPBIN=":"
11178  else
11179    case $cross_compiling:$ac_tool_warned in
11180yes:)
11181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11183ac_tool_warned=yes ;;
11184esac
11185    DUMPBIN=$ac_ct_DUMPBIN
11186  fi
11187fi
11188
11189    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11190    *COFF*)
11191      DUMPBIN="$DUMPBIN -symbols"
11192      ;;
11193    *)
11194      DUMPBIN=:
11195      ;;
11196    esac
11197  fi
11198
11199  if test "$DUMPBIN" != ":"; then
11200    NM="$DUMPBIN"
11201  fi
11202fi
11203test -z "$NM" && NM=nm
11204
11205
11206
11207
11208
11209
11210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11211$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11212if ${lt_cv_nm_interface+:} false; then :
11213  $as_echo_n "(cached) " >&6
11214else
11215  lt_cv_nm_interface="BSD nm"
11216  echo "int some_variable = 0;" > conftest.$ac_ext
11217  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11218  (eval "$ac_compile" 2>conftest.err)
11219  cat conftest.err >&5
11220  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11221  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11222  cat conftest.err >&5
11223  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11224  cat conftest.out >&5
11225  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11226    lt_cv_nm_interface="MS dumpbin"
11227  fi
11228  rm -f conftest*
11229fi
11230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11231$as_echo "$lt_cv_nm_interface" >&6; }
11232
11233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11234$as_echo_n "checking whether ln -s works... " >&6; }
11235LN_S=$as_ln_s
11236if test "$LN_S" = "ln -s"; then
11237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11238$as_echo "yes" >&6; }
11239else
11240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11241$as_echo "no, using $LN_S" >&6; }
11242fi
11243
11244# find the maximum length of command line arguments
11245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11246$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11247if ${lt_cv_sys_max_cmd_len+:} false; then :
11248  $as_echo_n "(cached) " >&6
11249else
11250    i=0
11251  teststring="ABCD"
11252
11253  case $build_os in
11254  msdosdjgpp*)
11255    # On DJGPP, this test can blow up pretty badly due to problems in libc
11256    # (any single argument exceeding 2000 bytes causes a buffer overrun
11257    # during glob expansion).  Even if it were fixed, the result of this
11258    # check would be larger than it should be.
11259    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11260    ;;
11261
11262  gnu*)
11263    # Under GNU Hurd, this test is not required because there is
11264    # no limit to the length of command line arguments.
11265    # Libtool will interpret -1 as no limit whatsoever
11266    lt_cv_sys_max_cmd_len=-1;
11267    ;;
11268
11269  cygwin* | mingw* | cegcc*)
11270    # On Win9x/ME, this test blows up -- it succeeds, but takes
11271    # about 5 minutes as the teststring grows exponentially.
11272    # Worse, since 9x/ME are not pre-emptively multitasking,
11273    # you end up with a "frozen" computer, even though with patience
11274    # the test eventually succeeds (with a max line length of 256k).
11275    # Instead, let's just punt: use the minimum linelength reported by
11276    # all of the supported platforms: 8192 (on NT/2K/XP).
11277    lt_cv_sys_max_cmd_len=8192;
11278    ;;
11279
11280  mint*)
11281    # On MiNT this can take a long time and run out of memory.
11282    lt_cv_sys_max_cmd_len=8192;
11283    ;;
11284
11285  amigaos*)
11286    # On AmigaOS with pdksh, this test takes hours, literally.
11287    # So we just punt and use a minimum line length of 8192.
11288    lt_cv_sys_max_cmd_len=8192;
11289    ;;
11290
11291  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11292    # This has been around since 386BSD, at least.  Likely further.
11293    if test -x /sbin/sysctl; then
11294      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11295    elif test -x /usr/sbin/sysctl; then
11296      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11297    else
11298      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11299    fi
11300    # And add a safety zone
11301    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11302    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11303    ;;
11304
11305  interix*)
11306    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11307    lt_cv_sys_max_cmd_len=196608
11308    ;;
11309
11310  os2*)
11311    # The test takes a long time on OS/2.
11312    lt_cv_sys_max_cmd_len=8192
11313    ;;
11314
11315  osf*)
11316    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11317    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11318    # nice to cause kernel panics so lets avoid the loop below.
11319    # First set a reasonable default.
11320    lt_cv_sys_max_cmd_len=16384
11321    #
11322    if test -x /sbin/sysconfig; then
11323      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11324        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11325      esac
11326    fi
11327    ;;
11328  sco3.2v5*)
11329    lt_cv_sys_max_cmd_len=102400
11330    ;;
11331  sysv5* | sco5v6* | sysv4.2uw2*)
11332    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11333    if test -n "$kargmax"; then
11334      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11335    else
11336      lt_cv_sys_max_cmd_len=32768
11337    fi
11338    ;;
11339  *)
11340    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11341    if test -n "$lt_cv_sys_max_cmd_len"; then
11342      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11343      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11344    else
11345      # Make teststring a little bigger before we do anything with it.
11346      # a 1K string should be a reasonable start.
11347      for i in 1 2 3 4 5 6 7 8 ; do
11348        teststring=$teststring$teststring
11349      done
11350      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11351      # If test is not a shell built-in, we'll probably end up computing a
11352      # maximum length that is only half of the actual maximum length, but
11353      # we can't tell.
11354      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11355	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11356	      test $i != 17 # 1/2 MB should be enough
11357      do
11358        i=`expr $i + 1`
11359        teststring=$teststring$teststring
11360      done
11361      # Only check the string length outside the loop.
11362      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11363      teststring=
11364      # Add a significant safety factor because C++ compilers can tack on
11365      # massive amounts of additional arguments before passing them to the
11366      # linker.  It appears as though 1/2 is a usable value.
11367      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11368    fi
11369    ;;
11370  esac
11371
11372fi
11373
11374if test -n $lt_cv_sys_max_cmd_len ; then
11375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11376$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11377else
11378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11379$as_echo "none" >&6; }
11380fi
11381max_cmd_len=$lt_cv_sys_max_cmd_len
11382
11383
11384
11385
11386
11387
11388: ${CP="cp -f"}
11389: ${MV="mv -f"}
11390: ${RM="rm -f"}
11391
11392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11393$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11394# Try some XSI features
11395xsi_shell=no
11396( _lt_dummy="a/b/c"
11397  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11398      = c,a/b,b/c, \
11399    && eval 'test $(( 1 + 1 )) -eq 2 \
11400    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11401  && xsi_shell=yes
11402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11403$as_echo "$xsi_shell" >&6; }
11404
11405
11406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11407$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11408lt_shell_append=no
11409( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11410    >/dev/null 2>&1 \
11411  && lt_shell_append=yes
11412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11413$as_echo "$lt_shell_append" >&6; }
11414
11415
11416if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11417  lt_unset=unset
11418else
11419  lt_unset=false
11420fi
11421
11422
11423
11424
11425
11426# test EBCDIC or ASCII
11427case `echo X|tr X '\101'` in
11428 A) # ASCII based system
11429    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11430  lt_SP2NL='tr \040 \012'
11431  lt_NL2SP='tr \015\012 \040\040'
11432  ;;
11433 *) # EBCDIC based system
11434  lt_SP2NL='tr \100 \n'
11435  lt_NL2SP='tr \r\n \100\100'
11436  ;;
11437esac
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11448$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11449if ${lt_cv_to_host_file_cmd+:} false; then :
11450  $as_echo_n "(cached) " >&6
11451else
11452  case $host in
11453  *-*-mingw* )
11454    case $build in
11455      *-*-mingw* ) # actually msys
11456        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11457        ;;
11458      *-*-cygwin* )
11459        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11460        ;;
11461      * ) # otherwise, assume *nix
11462        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11463        ;;
11464    esac
11465    ;;
11466  *-*-cygwin* )
11467    case $build in
11468      *-*-mingw* ) # actually msys
11469        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11470        ;;
11471      *-*-cygwin* )
11472        lt_cv_to_host_file_cmd=func_convert_file_noop
11473        ;;
11474      * ) # otherwise, assume *nix
11475        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11476        ;;
11477    esac
11478    ;;
11479  * ) # unhandled hosts (and "normal" native builds)
11480    lt_cv_to_host_file_cmd=func_convert_file_noop
11481    ;;
11482esac
11483
11484fi
11485
11486to_host_file_cmd=$lt_cv_to_host_file_cmd
11487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11488$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11489
11490
11491
11492
11493
11494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11495$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11496if ${lt_cv_to_tool_file_cmd+:} false; then :
11497  $as_echo_n "(cached) " >&6
11498else
11499  #assume ordinary cross tools, or native build.
11500lt_cv_to_tool_file_cmd=func_convert_file_noop
11501case $host in
11502  *-*-mingw* )
11503    case $build in
11504      *-*-mingw* ) # actually msys
11505        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11506        ;;
11507    esac
11508    ;;
11509esac
11510
11511fi
11512
11513to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11515$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11516
11517
11518
11519
11520
11521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11522$as_echo_n "checking for $LD option to reload object files... " >&6; }
11523if ${lt_cv_ld_reload_flag+:} false; then :
11524  $as_echo_n "(cached) " >&6
11525else
11526  lt_cv_ld_reload_flag='-r'
11527fi
11528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11529$as_echo "$lt_cv_ld_reload_flag" >&6; }
11530reload_flag=$lt_cv_ld_reload_flag
11531case $reload_flag in
11532"" | " "*) ;;
11533*) reload_flag=" $reload_flag" ;;
11534esac
11535reload_cmds='$LD$reload_flag -o $output$reload_objs'
11536case $host_os in
11537  cygwin* | mingw* | pw32* | cegcc*)
11538    if test "$GCC" != yes; then
11539      reload_cmds=false
11540    fi
11541    ;;
11542  darwin*)
11543    if test "$GCC" = yes; then
11544      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11545    else
11546      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11547    fi
11548    ;;
11549esac
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559if test -n "$ac_tool_prefix"; then
11560  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11561set dummy ${ac_tool_prefix}objdump; ac_word=$2
11562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11563$as_echo_n "checking for $ac_word... " >&6; }
11564if ${ac_cv_prog_OBJDUMP+:} false; then :
11565  $as_echo_n "(cached) " >&6
11566else
11567  if test -n "$OBJDUMP"; then
11568  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11569else
11570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11571for as_dir in $PATH
11572do
11573  IFS=$as_save_IFS
11574  test -z "$as_dir" && as_dir=.
11575    for ac_exec_ext in '' $ac_executable_extensions; do
11576  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11577    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11578    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11579    break 2
11580  fi
11581done
11582  done
11583IFS=$as_save_IFS
11584
11585fi
11586fi
11587OBJDUMP=$ac_cv_prog_OBJDUMP
11588if test -n "$OBJDUMP"; then
11589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11590$as_echo "$OBJDUMP" >&6; }
11591else
11592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11593$as_echo "no" >&6; }
11594fi
11595
11596
11597fi
11598if test -z "$ac_cv_prog_OBJDUMP"; then
11599  ac_ct_OBJDUMP=$OBJDUMP
11600  # Extract the first word of "objdump", so it can be a program name with args.
11601set dummy objdump; ac_word=$2
11602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11603$as_echo_n "checking for $ac_word... " >&6; }
11604if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11605  $as_echo_n "(cached) " >&6
11606else
11607  if test -n "$ac_ct_OBJDUMP"; then
11608  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11609else
11610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611for as_dir in $PATH
11612do
11613  IFS=$as_save_IFS
11614  test -z "$as_dir" && as_dir=.
11615    for ac_exec_ext in '' $ac_executable_extensions; do
11616  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11617    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11619    break 2
11620  fi
11621done
11622  done
11623IFS=$as_save_IFS
11624
11625fi
11626fi
11627ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11628if test -n "$ac_ct_OBJDUMP"; then
11629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11630$as_echo "$ac_ct_OBJDUMP" >&6; }
11631else
11632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11633$as_echo "no" >&6; }
11634fi
11635
11636  if test "x$ac_ct_OBJDUMP" = x; then
11637    OBJDUMP="false"
11638  else
11639    case $cross_compiling:$ac_tool_warned in
11640yes:)
11641{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11642$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11643ac_tool_warned=yes ;;
11644esac
11645    OBJDUMP=$ac_ct_OBJDUMP
11646  fi
11647else
11648  OBJDUMP="$ac_cv_prog_OBJDUMP"
11649fi
11650
11651test -z "$OBJDUMP" && OBJDUMP=objdump
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11662$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11663if ${lt_cv_deplibs_check_method+:} false; then :
11664  $as_echo_n "(cached) " >&6
11665else
11666  lt_cv_file_magic_cmd='$MAGIC_CMD'
11667lt_cv_file_magic_test_file=
11668lt_cv_deplibs_check_method='unknown'
11669# Need to set the preceding variable on all platforms that support
11670# interlibrary dependencies.
11671# 'none' -- dependencies not supported.
11672# `unknown' -- same as none, but documents that we really don't know.
11673# 'pass_all' -- all dependencies passed with no checks.
11674# 'test_compile' -- check by making test program.
11675# 'file_magic [[regex]]' -- check by looking for files in library path
11676# which responds to the $file_magic_cmd with a given extended regex.
11677# If you have `file' or equivalent on your system and you're not sure
11678# whether `pass_all' will *always* work, you probably want this one.
11679
11680case $host_os in
11681aix[4-9]*)
11682  lt_cv_deplibs_check_method=pass_all
11683  ;;
11684
11685beos*)
11686  lt_cv_deplibs_check_method=pass_all
11687  ;;
11688
11689bsdi[45]*)
11690  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11691  lt_cv_file_magic_cmd='/usr/bin/file -L'
11692  lt_cv_file_magic_test_file=/shlib/libc.so
11693  ;;
11694
11695cygwin*)
11696  # func_win32_libid is a shell function defined in ltmain.sh
11697  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11698  lt_cv_file_magic_cmd='func_win32_libid'
11699  ;;
11700
11701mingw* | pw32*)
11702  # Base MSYS/MinGW do not provide the 'file' command needed by
11703  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11704  # unless we find 'file', for example because we are cross-compiling.
11705  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11706  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11707    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11708    lt_cv_file_magic_cmd='func_win32_libid'
11709  else
11710    # Keep this pattern in sync with the one in func_win32_libid.
11711    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11712    lt_cv_file_magic_cmd='$OBJDUMP -f'
11713  fi
11714  ;;
11715
11716cegcc*)
11717  # use the weaker test based on 'objdump'. See mingw*.
11718  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11719  lt_cv_file_magic_cmd='$OBJDUMP -f'
11720  ;;
11721
11722darwin* | rhapsody*)
11723  lt_cv_deplibs_check_method=pass_all
11724  ;;
11725
11726freebsd* | dragonfly*)
11727  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11728    case $host_cpu in
11729    i*86 )
11730      # Not sure whether the presence of OpenBSD here was a mistake.
11731      # Let's accept both of them until this is cleared up.
11732      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11733      lt_cv_file_magic_cmd=/usr/bin/file
11734      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11735      ;;
11736    esac
11737  else
11738    lt_cv_deplibs_check_method=pass_all
11739  fi
11740  ;;
11741
11742gnu*)
11743  lt_cv_deplibs_check_method=pass_all
11744  ;;
11745
11746haiku*)
11747  lt_cv_deplibs_check_method=pass_all
11748  ;;
11749
11750hpux10.20* | hpux11*)
11751  lt_cv_file_magic_cmd=/usr/bin/file
11752  case $host_cpu in
11753  ia64*)
11754    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11755    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11756    ;;
11757  hppa*64*)
11758    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]'
11759    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11760    ;;
11761  *)
11762    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11763    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11764    ;;
11765  esac
11766  ;;
11767
11768interix[3-9]*)
11769  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11770  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11771  ;;
11772
11773irix5* | irix6* | nonstopux*)
11774  case $LD in
11775  *-32|*"-32 ") libmagic=32-bit;;
11776  *-n32|*"-n32 ") libmagic=N32;;
11777  *-64|*"-64 ") libmagic=64-bit;;
11778  *) libmagic=never-match;;
11779  esac
11780  lt_cv_deplibs_check_method=pass_all
11781  ;;
11782
11783# This must be glibc/ELF.
11784linux* | k*bsd*-gnu | kopensolaris*-gnu)
11785  lt_cv_deplibs_check_method=pass_all
11786  ;;
11787
11788netbsd*)
11789  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11790    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11791  else
11792    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11793  fi
11794  ;;
11795
11796newos6*)
11797  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11798  lt_cv_file_magic_cmd=/usr/bin/file
11799  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11800  ;;
11801
11802*nto* | *qnx*)
11803  lt_cv_deplibs_check_method=pass_all
11804  ;;
11805
11806openbsd*)
11807  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11808    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11809  else
11810    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11811  fi
11812  ;;
11813
11814osf3* | osf4* | osf5*)
11815  lt_cv_deplibs_check_method=pass_all
11816  ;;
11817
11818rdos*)
11819  lt_cv_deplibs_check_method=pass_all
11820  ;;
11821
11822solaris*)
11823  lt_cv_deplibs_check_method=pass_all
11824  ;;
11825
11826sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11827  lt_cv_deplibs_check_method=pass_all
11828  ;;
11829
11830sysv4 | sysv4.3*)
11831  case $host_vendor in
11832  motorola)
11833    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]'
11834    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11835    ;;
11836  ncr)
11837    lt_cv_deplibs_check_method=pass_all
11838    ;;
11839  sequent)
11840    lt_cv_file_magic_cmd='/bin/file'
11841    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11842    ;;
11843  sni)
11844    lt_cv_file_magic_cmd='/bin/file'
11845    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11846    lt_cv_file_magic_test_file=/lib/libc.so
11847    ;;
11848  siemens)
11849    lt_cv_deplibs_check_method=pass_all
11850    ;;
11851  pc)
11852    lt_cv_deplibs_check_method=pass_all
11853    ;;
11854  esac
11855  ;;
11856
11857tpf*)
11858  lt_cv_deplibs_check_method=pass_all
11859  ;;
11860esac
11861
11862fi
11863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11864$as_echo "$lt_cv_deplibs_check_method" >&6; }
11865
11866file_magic_glob=
11867want_nocaseglob=no
11868if test "$build" = "$host"; then
11869  case $host_os in
11870  mingw* | pw32*)
11871    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11872      want_nocaseglob=yes
11873    else
11874      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11875    fi
11876    ;;
11877  esac
11878fi
11879
11880file_magic_cmd=$lt_cv_file_magic_cmd
11881deplibs_check_method=$lt_cv_deplibs_check_method
11882test -z "$deplibs_check_method" && deplibs_check_method=unknown
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905if test -n "$ac_tool_prefix"; then
11906  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11907set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11909$as_echo_n "checking for $ac_word... " >&6; }
11910if ${ac_cv_prog_DLLTOOL+:} false; then :
11911  $as_echo_n "(cached) " >&6
11912else
11913  if test -n "$DLLTOOL"; then
11914  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11915else
11916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11917for as_dir in $PATH
11918do
11919  IFS=$as_save_IFS
11920  test -z "$as_dir" && as_dir=.
11921    for ac_exec_ext in '' $ac_executable_extensions; do
11922  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11923    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11924    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11925    break 2
11926  fi
11927done
11928  done
11929IFS=$as_save_IFS
11930
11931fi
11932fi
11933DLLTOOL=$ac_cv_prog_DLLTOOL
11934if test -n "$DLLTOOL"; then
11935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11936$as_echo "$DLLTOOL" >&6; }
11937else
11938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11939$as_echo "no" >&6; }
11940fi
11941
11942
11943fi
11944if test -z "$ac_cv_prog_DLLTOOL"; then
11945  ac_ct_DLLTOOL=$DLLTOOL
11946  # Extract the first word of "dlltool", so it can be a program name with args.
11947set dummy dlltool; ac_word=$2
11948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11949$as_echo_n "checking for $ac_word... " >&6; }
11950if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11951  $as_echo_n "(cached) " >&6
11952else
11953  if test -n "$ac_ct_DLLTOOL"; then
11954  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11955else
11956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957for as_dir in $PATH
11958do
11959  IFS=$as_save_IFS
11960  test -z "$as_dir" && as_dir=.
11961    for ac_exec_ext in '' $ac_executable_extensions; do
11962  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11963    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11964    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11965    break 2
11966  fi
11967done
11968  done
11969IFS=$as_save_IFS
11970
11971fi
11972fi
11973ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11974if test -n "$ac_ct_DLLTOOL"; then
11975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11976$as_echo "$ac_ct_DLLTOOL" >&6; }
11977else
11978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979$as_echo "no" >&6; }
11980fi
11981
11982  if test "x$ac_ct_DLLTOOL" = x; then
11983    DLLTOOL="false"
11984  else
11985    case $cross_compiling:$ac_tool_warned in
11986yes:)
11987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11989ac_tool_warned=yes ;;
11990esac
11991    DLLTOOL=$ac_ct_DLLTOOL
11992  fi
11993else
11994  DLLTOOL="$ac_cv_prog_DLLTOOL"
11995fi
11996
11997test -z "$DLLTOOL" && DLLTOOL=dlltool
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12009$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12010if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12011  $as_echo_n "(cached) " >&6
12012else
12013  lt_cv_sharedlib_from_linklib_cmd='unknown'
12014
12015case $host_os in
12016cygwin* | mingw* | pw32* | cegcc*)
12017  # two different shell functions defined in ltmain.sh
12018  # decide which to use based on capabilities of $DLLTOOL
12019  case `$DLLTOOL --help 2>&1` in
12020  *--identify-strict*)
12021    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12022    ;;
12023  *)
12024    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12025    ;;
12026  esac
12027  ;;
12028*)
12029  # fallback: assume linklib IS sharedlib
12030  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12031  ;;
12032esac
12033
12034fi
12035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12036$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12037sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12038test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12039
12040
12041
12042
12043
12044
12045
12046if test -n "$ac_tool_prefix"; then
12047  for ac_prog in ar
12048  do
12049    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12050set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12052$as_echo_n "checking for $ac_word... " >&6; }
12053if ${ac_cv_prog_AR+:} false; then :
12054  $as_echo_n "(cached) " >&6
12055else
12056  if test -n "$AR"; then
12057  ac_cv_prog_AR="$AR" # Let the user override the test.
12058else
12059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12060for as_dir in $PATH
12061do
12062  IFS=$as_save_IFS
12063  test -z "$as_dir" && as_dir=.
12064    for ac_exec_ext in '' $ac_executable_extensions; do
12065  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12066    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12067    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12068    break 2
12069  fi
12070done
12071  done
12072IFS=$as_save_IFS
12073
12074fi
12075fi
12076AR=$ac_cv_prog_AR
12077if test -n "$AR"; then
12078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12079$as_echo "$AR" >&6; }
12080else
12081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12082$as_echo "no" >&6; }
12083fi
12084
12085
12086    test -n "$AR" && break
12087  done
12088fi
12089if test -z "$AR"; then
12090  ac_ct_AR=$AR
12091  for ac_prog in ar
12092do
12093  # Extract the first word of "$ac_prog", so it can be a program name with args.
12094set dummy $ac_prog; ac_word=$2
12095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12096$as_echo_n "checking for $ac_word... " >&6; }
12097if ${ac_cv_prog_ac_ct_AR+:} false; then :
12098  $as_echo_n "(cached) " >&6
12099else
12100  if test -n "$ac_ct_AR"; then
12101  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12102else
12103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12104for as_dir in $PATH
12105do
12106  IFS=$as_save_IFS
12107  test -z "$as_dir" && as_dir=.
12108    for ac_exec_ext in '' $ac_executable_extensions; do
12109  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12110    ac_cv_prog_ac_ct_AR="$ac_prog"
12111    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12112    break 2
12113  fi
12114done
12115  done
12116IFS=$as_save_IFS
12117
12118fi
12119fi
12120ac_ct_AR=$ac_cv_prog_ac_ct_AR
12121if test -n "$ac_ct_AR"; then
12122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12123$as_echo "$ac_ct_AR" >&6; }
12124else
12125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126$as_echo "no" >&6; }
12127fi
12128
12129
12130  test -n "$ac_ct_AR" && break
12131done
12132
12133  if test "x$ac_ct_AR" = x; then
12134    AR="false"
12135  else
12136    case $cross_compiling:$ac_tool_warned in
12137yes:)
12138{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12140ac_tool_warned=yes ;;
12141esac
12142    AR=$ac_ct_AR
12143  fi
12144fi
12145
12146: ${AR=ar}
12147: ${AR_FLAGS=cru}
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12160$as_echo_n "checking for archiver @FILE support... " >&6; }
12161if ${lt_cv_ar_at_file+:} false; then :
12162  $as_echo_n "(cached) " >&6
12163else
12164  lt_cv_ar_at_file=no
12165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12166/* end confdefs.h.  */
12167
12168int
12169main ()
12170{
12171
12172  ;
12173  return 0;
12174}
12175_ACEOF
12176if ac_fn_c_try_compile "$LINENO"; then :
12177  echo conftest.$ac_objext > conftest.lst
12178      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12179      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12180  (eval $lt_ar_try) 2>&5
12181  ac_status=$?
12182  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12183  test $ac_status = 0; }
12184      if test "$ac_status" -eq 0; then
12185	# Ensure the archiver fails upon bogus file names.
12186	rm -f conftest.$ac_objext libconftest.a
12187	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12188  (eval $lt_ar_try) 2>&5
12189  ac_status=$?
12190  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12191  test $ac_status = 0; }
12192	if test "$ac_status" -ne 0; then
12193          lt_cv_ar_at_file=@
12194        fi
12195      fi
12196      rm -f conftest.* libconftest.a
12197
12198fi
12199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12200
12201fi
12202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12203$as_echo "$lt_cv_ar_at_file" >&6; }
12204
12205if test "x$lt_cv_ar_at_file" = xno; then
12206  archiver_list_spec=
12207else
12208  archiver_list_spec=$lt_cv_ar_at_file
12209fi
12210
12211
12212
12213
12214
12215
12216
12217if test -n "$ac_tool_prefix"; then
12218  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12219set dummy ${ac_tool_prefix}strip; ac_word=$2
12220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12221$as_echo_n "checking for $ac_word... " >&6; }
12222if ${ac_cv_prog_STRIP+:} false; then :
12223  $as_echo_n "(cached) " >&6
12224else
12225  if test -n "$STRIP"; then
12226  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12227else
12228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229for as_dir in $PATH
12230do
12231  IFS=$as_save_IFS
12232  test -z "$as_dir" && as_dir=.
12233    for ac_exec_ext in '' $ac_executable_extensions; do
12234  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12235    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12237    break 2
12238  fi
12239done
12240  done
12241IFS=$as_save_IFS
12242
12243fi
12244fi
12245STRIP=$ac_cv_prog_STRIP
12246if test -n "$STRIP"; then
12247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12248$as_echo "$STRIP" >&6; }
12249else
12250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251$as_echo "no" >&6; }
12252fi
12253
12254
12255fi
12256if test -z "$ac_cv_prog_STRIP"; then
12257  ac_ct_STRIP=$STRIP
12258  # Extract the first word of "strip", so it can be a program name with args.
12259set dummy strip; ac_word=$2
12260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12261$as_echo_n "checking for $ac_word... " >&6; }
12262if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12263  $as_echo_n "(cached) " >&6
12264else
12265  if test -n "$ac_ct_STRIP"; then
12266  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12267else
12268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12269for as_dir in $PATH
12270do
12271  IFS=$as_save_IFS
12272  test -z "$as_dir" && as_dir=.
12273    for ac_exec_ext in '' $ac_executable_extensions; do
12274  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12275    ac_cv_prog_ac_ct_STRIP="strip"
12276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12277    break 2
12278  fi
12279done
12280  done
12281IFS=$as_save_IFS
12282
12283fi
12284fi
12285ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12286if test -n "$ac_ct_STRIP"; then
12287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12288$as_echo "$ac_ct_STRIP" >&6; }
12289else
12290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12291$as_echo "no" >&6; }
12292fi
12293
12294  if test "x$ac_ct_STRIP" = x; then
12295    STRIP=":"
12296  else
12297    case $cross_compiling:$ac_tool_warned in
12298yes:)
12299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12301ac_tool_warned=yes ;;
12302esac
12303    STRIP=$ac_ct_STRIP
12304  fi
12305else
12306  STRIP="$ac_cv_prog_STRIP"
12307fi
12308
12309test -z "$STRIP" && STRIP=:
12310
12311
12312
12313
12314
12315
12316if test -n "$ac_tool_prefix"; then
12317  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12318set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12320$as_echo_n "checking for $ac_word... " >&6; }
12321if ${ac_cv_prog_RANLIB+:} false; then :
12322  $as_echo_n "(cached) " >&6
12323else
12324  if test -n "$RANLIB"; then
12325  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12326else
12327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328for as_dir in $PATH
12329do
12330  IFS=$as_save_IFS
12331  test -z "$as_dir" && as_dir=.
12332    for ac_exec_ext in '' $ac_executable_extensions; do
12333  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12334    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12335    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12336    break 2
12337  fi
12338done
12339  done
12340IFS=$as_save_IFS
12341
12342fi
12343fi
12344RANLIB=$ac_cv_prog_RANLIB
12345if test -n "$RANLIB"; then
12346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12347$as_echo "$RANLIB" >&6; }
12348else
12349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12350$as_echo "no" >&6; }
12351fi
12352
12353
12354fi
12355if test -z "$ac_cv_prog_RANLIB"; then
12356  ac_ct_RANLIB=$RANLIB
12357  # Extract the first word of "ranlib", so it can be a program name with args.
12358set dummy ranlib; ac_word=$2
12359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12360$as_echo_n "checking for $ac_word... " >&6; }
12361if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12362  $as_echo_n "(cached) " >&6
12363else
12364  if test -n "$ac_ct_RANLIB"; then
12365  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12366else
12367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12368for as_dir in $PATH
12369do
12370  IFS=$as_save_IFS
12371  test -z "$as_dir" && as_dir=.
12372    for ac_exec_ext in '' $ac_executable_extensions; do
12373  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12374    ac_cv_prog_ac_ct_RANLIB="ranlib"
12375    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12376    break 2
12377  fi
12378done
12379  done
12380IFS=$as_save_IFS
12381
12382fi
12383fi
12384ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12385if test -n "$ac_ct_RANLIB"; then
12386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12387$as_echo "$ac_ct_RANLIB" >&6; }
12388else
12389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390$as_echo "no" >&6; }
12391fi
12392
12393  if test "x$ac_ct_RANLIB" = x; then
12394    RANLIB=":"
12395  else
12396    case $cross_compiling:$ac_tool_warned in
12397yes:)
12398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12400ac_tool_warned=yes ;;
12401esac
12402    RANLIB=$ac_ct_RANLIB
12403  fi
12404else
12405  RANLIB="$ac_cv_prog_RANLIB"
12406fi
12407
12408test -z "$RANLIB" && RANLIB=:
12409
12410
12411
12412
12413
12414
12415# Determine commands to create old-style static archives.
12416old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12417old_postinstall_cmds='chmod 644 $oldlib'
12418old_postuninstall_cmds=
12419
12420if test -n "$RANLIB"; then
12421  case $host_os in
12422  openbsd*)
12423    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12424    ;;
12425  *)
12426    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12427    ;;
12428  esac
12429  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12430fi
12431
12432case $host_os in
12433  darwin*)
12434    lock_old_archive_extraction=yes ;;
12435  *)
12436    lock_old_archive_extraction=no ;;
12437esac
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
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# If no C compiler was specified, use CC.
12478LTCC=${LTCC-"$CC"}
12479
12480# If no C compiler flags were specified, use CFLAGS.
12481LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12482
12483# Allow CC to be a program name with arguments.
12484compiler=$CC
12485
12486
12487# Check for command to grab the raw symbol name followed by C symbol from nm.
12488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12489$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12490if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12491  $as_echo_n "(cached) " >&6
12492else
12493
12494# These are sane defaults that work on at least a few old systems.
12495# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12496
12497# Character class describing NM global symbol codes.
12498symcode='[BCDEGRST]'
12499
12500# Regexp to match symbols that can be accessed directly from C.
12501sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12502
12503# Define system-specific variables.
12504case $host_os in
12505aix*)
12506  symcode='[BCDT]'
12507  ;;
12508cygwin* | mingw* | pw32* | cegcc*)
12509  symcode='[ABCDGISTW]'
12510  ;;
12511hpux*)
12512  if test "$host_cpu" = ia64; then
12513    symcode='[ABCDEGRST]'
12514  fi
12515  ;;
12516irix* | nonstopux*)
12517  symcode='[BCDEGRST]'
12518  ;;
12519osf*)
12520  symcode='[BCDEGQRST]'
12521  ;;
12522solaris*)
12523  symcode='[BDRT]'
12524  ;;
12525sco3.2v5*)
12526  symcode='[DT]'
12527  ;;
12528sysv4.2uw2*)
12529  symcode='[DT]'
12530  ;;
12531sysv5* | sco5v6* | unixware* | OpenUNIX*)
12532  symcode='[ABDT]'
12533  ;;
12534sysv4)
12535  symcode='[DFNSTU]'
12536  ;;
12537esac
12538
12539# If we're using GNU nm, then use its standard symbol codes.
12540case `$NM -V 2>&1` in
12541*GNU* | *'with BFD'*)
12542  symcode='[ABCDGIRSTW]' ;;
12543esac
12544
12545# Transform an extracted symbol line into a proper C declaration.
12546# Some systems (esp. on ia64) link data and code symbols differently,
12547# so use this general approach.
12548lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12549
12550# Transform an extracted symbol line into symbol name and symbol address
12551lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12552lt_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'"
12553
12554# Handle CRLF in mingw tool chain
12555opt_cr=
12556case $build_os in
12557mingw*)
12558  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12559  ;;
12560esac
12561
12562# Try without a prefix underscore, then with it.
12563for ac_symprfx in "" "_"; do
12564
12565  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12566  symxfrm="\\1 $ac_symprfx\\2 \\2"
12567
12568  # Write the raw and C identifiers.
12569  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12570    # Fake it for dumpbin and say T for any non-static function
12571    # and D for any global variable.
12572    # Also find C++ and __fastcall symbols from MSVC++,
12573    # which start with @ or ?.
12574    lt_cv_sys_global_symbol_pipe="$AWK '"\
12575"     {last_section=section; section=\$ 3};"\
12576"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12577"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12578"     \$ 0!~/External *\|/{next};"\
12579"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12580"     {if(hide[section]) next};"\
12581"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12582"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12583"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12584"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12585"     ' prfx=^$ac_symprfx"
12586  else
12587    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12588  fi
12589  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12590
12591  # Check to see that the pipe works correctly.
12592  pipe_works=no
12593
12594  rm -f conftest*
12595  cat > conftest.$ac_ext <<_LT_EOF
12596#ifdef __cplusplus
12597extern "C" {
12598#endif
12599char nm_test_var;
12600void nm_test_func(void);
12601void nm_test_func(void){}
12602#ifdef __cplusplus
12603}
12604#endif
12605int main(){nm_test_var='a';nm_test_func();return(0);}
12606_LT_EOF
12607
12608  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12609  (eval $ac_compile) 2>&5
12610  ac_status=$?
12611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12612  test $ac_status = 0; }; then
12613    # Now try to grab the symbols.
12614    nlist=conftest.nm
12615    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12616  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12617  ac_status=$?
12618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12619  test $ac_status = 0; } && test -s "$nlist"; then
12620      # Try sorting and uniquifying the output.
12621      if sort "$nlist" | uniq > "$nlist"T; then
12622	mv -f "$nlist"T "$nlist"
12623      else
12624	rm -f "$nlist"T
12625      fi
12626
12627      # Make sure that we snagged all the symbols we need.
12628      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12629	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12630	  cat <<_LT_EOF > conftest.$ac_ext
12631/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12632#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12633/* DATA imports from DLLs on WIN32 con't be const, because runtime
12634   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12635# define LT_DLSYM_CONST
12636#elif defined(__osf__)
12637/* This system does not cope well with relocations in const data.  */
12638# define LT_DLSYM_CONST
12639#else
12640# define LT_DLSYM_CONST const
12641#endif
12642
12643#ifdef __cplusplus
12644extern "C" {
12645#endif
12646
12647_LT_EOF
12648	  # Now generate the symbol file.
12649	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12650
12651	  cat <<_LT_EOF >> conftest.$ac_ext
12652
12653/* The mapping between symbol names and symbols.  */
12654LT_DLSYM_CONST struct {
12655  const char *name;
12656  void       *address;
12657}
12658lt__PROGRAM__LTX_preloaded_symbols[] =
12659{
12660  { "@PROGRAM@", (void *) 0 },
12661_LT_EOF
12662	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12663	  cat <<\_LT_EOF >> conftest.$ac_ext
12664  {0, (void *) 0}
12665};
12666
12667/* This works around a problem in FreeBSD linker */
12668#ifdef FREEBSD_WORKAROUND
12669static const void *lt_preloaded_setup() {
12670  return lt__PROGRAM__LTX_preloaded_symbols;
12671}
12672#endif
12673
12674#ifdef __cplusplus
12675}
12676#endif
12677_LT_EOF
12678	  # Now try linking the two files.
12679	  mv conftest.$ac_objext conftstm.$ac_objext
12680	  lt_globsym_save_LIBS=$LIBS
12681	  lt_globsym_save_CFLAGS=$CFLAGS
12682	  LIBS="conftstm.$ac_objext"
12683	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12684	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12685  (eval $ac_link) 2>&5
12686  ac_status=$?
12687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12688  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12689	    pipe_works=yes
12690	  fi
12691	  LIBS=$lt_globsym_save_LIBS
12692	  CFLAGS=$lt_globsym_save_CFLAGS
12693	else
12694	  echo "cannot find nm_test_func in $nlist" >&5
12695	fi
12696      else
12697	echo "cannot find nm_test_var in $nlist" >&5
12698      fi
12699    else
12700      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12701    fi
12702  else
12703    echo "$progname: failed program was:" >&5
12704    cat conftest.$ac_ext >&5
12705  fi
12706  rm -rf conftest* conftst*
12707
12708  # Do not use the global_symbol_pipe unless it works.
12709  if test "$pipe_works" = yes; then
12710    break
12711  else
12712    lt_cv_sys_global_symbol_pipe=
12713  fi
12714done
12715
12716fi
12717
12718if test -z "$lt_cv_sys_global_symbol_pipe"; then
12719  lt_cv_sys_global_symbol_to_cdecl=
12720fi
12721if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12723$as_echo "failed" >&6; }
12724else
12725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12726$as_echo "ok" >&6; }
12727fi
12728
12729# Response file support.
12730if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12731  nm_file_list_spec='@'
12732elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12733  nm_file_list_spec='@'
12734fi
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12763$as_echo_n "checking for sysroot... " >&6; }
12764
12765# Check whether --with-sysroot was given.
12766if test "${with_sysroot+set}" = set; then :
12767  withval=$with_sysroot;
12768else
12769  with_sysroot=no
12770fi
12771
12772
12773lt_sysroot=
12774case ${with_sysroot} in #(
12775 yes)
12776   if test "$GCC" = yes; then
12777     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12778   fi
12779   ;; #(
12780 /*)
12781   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12782   ;; #(
12783 no|'')
12784   ;; #(
12785 *)
12786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12787$as_echo "${with_sysroot}" >&6; }
12788   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12789   ;;
12790esac
12791
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12793$as_echo "${lt_sysroot:-no}" >&6; }
12794
12795
12796
12797
12798
12799# Check whether --enable-libtool-lock was given.
12800if test "${enable_libtool_lock+set}" = set; then :
12801  enableval=$enable_libtool_lock;
12802fi
12803
12804test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12805
12806# Some flags need to be propagated to the compiler or linker for good
12807# libtool support.
12808case $host in
12809ia64-*-hpux*)
12810  # Find out which ABI we are using.
12811  echo 'int i;' > conftest.$ac_ext
12812  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12813  (eval $ac_compile) 2>&5
12814  ac_status=$?
12815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12816  test $ac_status = 0; }; then
12817    case `/usr/bin/file conftest.$ac_objext` in
12818      *ELF-32*)
12819	HPUX_IA64_MODE="32"
12820	;;
12821      *ELF-64*)
12822	HPUX_IA64_MODE="64"
12823	;;
12824    esac
12825  fi
12826  rm -rf conftest*
12827  ;;
12828*-*-irix6*)
12829  # Find out which ABI we are using.
12830  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12831  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12832  (eval $ac_compile) 2>&5
12833  ac_status=$?
12834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12835  test $ac_status = 0; }; then
12836    if test "$lt_cv_prog_gnu_ld" = yes; then
12837      case `/usr/bin/file conftest.$ac_objext` in
12838	*32-bit*)
12839	  LD="${LD-ld} -melf32bsmip"
12840	  ;;
12841	*N32*)
12842	  LD="${LD-ld} -melf32bmipn32"
12843	  ;;
12844	*64-bit*)
12845	  LD="${LD-ld} -melf64bmip"
12846	;;
12847      esac
12848    else
12849      case `/usr/bin/file conftest.$ac_objext` in
12850	*32-bit*)
12851	  LD="${LD-ld} -32"
12852	  ;;
12853	*N32*)
12854	  LD="${LD-ld} -n32"
12855	  ;;
12856	*64-bit*)
12857	  LD="${LD-ld} -64"
12858	  ;;
12859      esac
12860    fi
12861  fi
12862  rm -rf conftest*
12863  ;;
12864
12865x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12866s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12867  # Find out which ABI we are using.
12868  echo 'int i;' > conftest.$ac_ext
12869  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12870  (eval $ac_compile) 2>&5
12871  ac_status=$?
12872  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12873  test $ac_status = 0; }; then
12874    case `/usr/bin/file conftest.o` in
12875      *32-bit*)
12876	case $host in
12877	  x86_64-*kfreebsd*-gnu)
12878	    LD="${LD-ld} -m elf_i386_fbsd"
12879	    ;;
12880	  x86_64-*linux*)
12881	    LD="${LD-ld} -m elf_i386"
12882	    ;;
12883	  ppc64-*linux*|powerpc64-*linux*)
12884	    LD="${LD-ld} -m elf32ppclinux"
12885	    ;;
12886	  s390x-*linux*)
12887	    LD="${LD-ld} -m elf_s390"
12888	    ;;
12889	  sparc64-*linux*)
12890	    LD="${LD-ld} -m elf32_sparc"
12891	    ;;
12892	esac
12893	;;
12894      *64-bit*)
12895	case $host in
12896	  x86_64-*kfreebsd*-gnu)
12897	    LD="${LD-ld} -m elf_x86_64_fbsd"
12898	    ;;
12899	  x86_64-*linux*)
12900	    LD="${LD-ld} -m elf_x86_64"
12901	    ;;
12902	  ppc*-*linux*|powerpc*-*linux*)
12903	    LD="${LD-ld} -m elf64ppc"
12904	    ;;
12905	  s390*-*linux*|s390*-*tpf*)
12906	    LD="${LD-ld} -m elf64_s390"
12907	    ;;
12908	  sparc*-*linux*)
12909	    LD="${LD-ld} -m elf64_sparc"
12910	    ;;
12911	esac
12912	;;
12913    esac
12914  fi
12915  rm -rf conftest*
12916  ;;
12917
12918*-*-sco3.2v5*)
12919  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12920  SAVE_CFLAGS="$CFLAGS"
12921  CFLAGS="$CFLAGS -belf"
12922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12923$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12924if ${lt_cv_cc_needs_belf+:} false; then :
12925  $as_echo_n "(cached) " >&6
12926else
12927  ac_ext=c
12928ac_cpp='$CPP $CPPFLAGS'
12929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12931ac_compiler_gnu=$ac_cv_c_compiler_gnu
12932
12933     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12934/* end confdefs.h.  */
12935
12936int
12937main ()
12938{
12939
12940  ;
12941  return 0;
12942}
12943_ACEOF
12944if ac_fn_c_try_link "$LINENO"; then :
12945  lt_cv_cc_needs_belf=yes
12946else
12947  lt_cv_cc_needs_belf=no
12948fi
12949rm -f core conftest.err conftest.$ac_objext \
12950    conftest$ac_exeext conftest.$ac_ext
12951     ac_ext=c
12952ac_cpp='$CPP $CPPFLAGS'
12953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12955ac_compiler_gnu=$ac_cv_c_compiler_gnu
12956
12957fi
12958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12959$as_echo "$lt_cv_cc_needs_belf" >&6; }
12960  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12961    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12962    CFLAGS="$SAVE_CFLAGS"
12963  fi
12964  ;;
12965*-*solaris*)
12966  # Find out which ABI we are using.
12967  echo 'int i;' > conftest.$ac_ext
12968  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12969  (eval $ac_compile) 2>&5
12970  ac_status=$?
12971  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12972  test $ac_status = 0; }; then
12973    case `/usr/bin/file conftest.o` in
12974    *64-bit*)
12975      case $lt_cv_prog_gnu_ld in
12976      yes*)
12977        case $host in
12978        i?86-*-solaris*)
12979          LD="${LD-ld} -m elf_x86_64"
12980          ;;
12981        sparc*-*-solaris*)
12982          LD="${LD-ld} -m elf64_sparc"
12983          ;;
12984        esac
12985        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
12986        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12987          LD="${LD-ld}_sol2"
12988        fi
12989        ;;
12990      *)
12991	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12992	  LD="${LD-ld} -64"
12993	fi
12994	;;
12995      esac
12996      ;;
12997    esac
12998  fi
12999  rm -rf conftest*
13000  ;;
13001esac
13002
13003need_locks="$enable_libtool_lock"
13004
13005if test -n "$ac_tool_prefix"; then
13006  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13007set dummy ${ac_tool_prefix}mt; ac_word=$2
13008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13009$as_echo_n "checking for $ac_word... " >&6; }
13010if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13011  $as_echo_n "(cached) " >&6
13012else
13013  if test -n "$MANIFEST_TOOL"; then
13014  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13015else
13016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13017for as_dir in $PATH
13018do
13019  IFS=$as_save_IFS
13020  test -z "$as_dir" && as_dir=.
13021    for ac_exec_ext in '' $ac_executable_extensions; do
13022  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13023    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13025    break 2
13026  fi
13027done
13028  done
13029IFS=$as_save_IFS
13030
13031fi
13032fi
13033MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13034if test -n "$MANIFEST_TOOL"; then
13035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13036$as_echo "$MANIFEST_TOOL" >&6; }
13037else
13038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13039$as_echo "no" >&6; }
13040fi
13041
13042
13043fi
13044if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13045  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13046  # Extract the first word of "mt", so it can be a program name with args.
13047set dummy mt; ac_word=$2
13048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13049$as_echo_n "checking for $ac_word... " >&6; }
13050if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13051  $as_echo_n "(cached) " >&6
13052else
13053  if test -n "$ac_ct_MANIFEST_TOOL"; then
13054  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13055else
13056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13057for as_dir in $PATH
13058do
13059  IFS=$as_save_IFS
13060  test -z "$as_dir" && as_dir=.
13061    for ac_exec_ext in '' $ac_executable_extensions; do
13062  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13063    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13064    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13065    break 2
13066  fi
13067done
13068  done
13069IFS=$as_save_IFS
13070
13071fi
13072fi
13073ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13074if test -n "$ac_ct_MANIFEST_TOOL"; then
13075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13076$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13077else
13078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13079$as_echo "no" >&6; }
13080fi
13081
13082  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13083    MANIFEST_TOOL=":"
13084  else
13085    case $cross_compiling:$ac_tool_warned in
13086yes:)
13087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13089ac_tool_warned=yes ;;
13090esac
13091    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13092  fi
13093else
13094  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13095fi
13096
13097test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13099$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13100if ${lt_cv_path_mainfest_tool+:} false; then :
13101  $as_echo_n "(cached) " >&6
13102else
13103  lt_cv_path_mainfest_tool=no
13104  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13105  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13106  cat conftest.err >&5
13107  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13108    lt_cv_path_mainfest_tool=yes
13109  fi
13110  rm -f conftest*
13111fi
13112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13113$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13114if test "x$lt_cv_path_mainfest_tool" != xyes; then
13115  MANIFEST_TOOL=:
13116fi
13117
13118
13119
13120
13121
13122
13123  case $host_os in
13124    rhapsody* | darwin*)
13125    if test -n "$ac_tool_prefix"; then
13126  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13127set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13129$as_echo_n "checking for $ac_word... " >&6; }
13130if ${ac_cv_prog_DSYMUTIL+:} false; then :
13131  $as_echo_n "(cached) " >&6
13132else
13133  if test -n "$DSYMUTIL"; then
13134  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13135else
13136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13137for as_dir in $PATH
13138do
13139  IFS=$as_save_IFS
13140  test -z "$as_dir" && as_dir=.
13141    for ac_exec_ext in '' $ac_executable_extensions; do
13142  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13143    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13144    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13145    break 2
13146  fi
13147done
13148  done
13149IFS=$as_save_IFS
13150
13151fi
13152fi
13153DSYMUTIL=$ac_cv_prog_DSYMUTIL
13154if test -n "$DSYMUTIL"; then
13155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13156$as_echo "$DSYMUTIL" >&6; }
13157else
13158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13159$as_echo "no" >&6; }
13160fi
13161
13162
13163fi
13164if test -z "$ac_cv_prog_DSYMUTIL"; then
13165  ac_ct_DSYMUTIL=$DSYMUTIL
13166  # Extract the first word of "dsymutil", so it can be a program name with args.
13167set dummy dsymutil; ac_word=$2
13168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13169$as_echo_n "checking for $ac_word... " >&6; }
13170if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13171  $as_echo_n "(cached) " >&6
13172else
13173  if test -n "$ac_ct_DSYMUTIL"; then
13174  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13175else
13176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13177for as_dir in $PATH
13178do
13179  IFS=$as_save_IFS
13180  test -z "$as_dir" && as_dir=.
13181    for ac_exec_ext in '' $ac_executable_extensions; do
13182  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13183    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13185    break 2
13186  fi
13187done
13188  done
13189IFS=$as_save_IFS
13190
13191fi
13192fi
13193ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13194if test -n "$ac_ct_DSYMUTIL"; then
13195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13196$as_echo "$ac_ct_DSYMUTIL" >&6; }
13197else
13198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13199$as_echo "no" >&6; }
13200fi
13201
13202  if test "x$ac_ct_DSYMUTIL" = x; then
13203    DSYMUTIL=":"
13204  else
13205    case $cross_compiling:$ac_tool_warned in
13206yes:)
13207{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13208$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13209ac_tool_warned=yes ;;
13210esac
13211    DSYMUTIL=$ac_ct_DSYMUTIL
13212  fi
13213else
13214  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13215fi
13216
13217    if test -n "$ac_tool_prefix"; then
13218  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13219set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13221$as_echo_n "checking for $ac_word... " >&6; }
13222if ${ac_cv_prog_NMEDIT+:} false; then :
13223  $as_echo_n "(cached) " >&6
13224else
13225  if test -n "$NMEDIT"; then
13226  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13227else
13228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13229for as_dir in $PATH
13230do
13231  IFS=$as_save_IFS
13232  test -z "$as_dir" && as_dir=.
13233    for ac_exec_ext in '' $ac_executable_extensions; do
13234  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13235    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13237    break 2
13238  fi
13239done
13240  done
13241IFS=$as_save_IFS
13242
13243fi
13244fi
13245NMEDIT=$ac_cv_prog_NMEDIT
13246if test -n "$NMEDIT"; then
13247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13248$as_echo "$NMEDIT" >&6; }
13249else
13250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13251$as_echo "no" >&6; }
13252fi
13253
13254
13255fi
13256if test -z "$ac_cv_prog_NMEDIT"; then
13257  ac_ct_NMEDIT=$NMEDIT
13258  # Extract the first word of "nmedit", so it can be a program name with args.
13259set dummy nmedit; ac_word=$2
13260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13261$as_echo_n "checking for $ac_word... " >&6; }
13262if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13263  $as_echo_n "(cached) " >&6
13264else
13265  if test -n "$ac_ct_NMEDIT"; then
13266  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13267else
13268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13269for as_dir in $PATH
13270do
13271  IFS=$as_save_IFS
13272  test -z "$as_dir" && as_dir=.
13273    for ac_exec_ext in '' $ac_executable_extensions; do
13274  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13275    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13276    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13277    break 2
13278  fi
13279done
13280  done
13281IFS=$as_save_IFS
13282
13283fi
13284fi
13285ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13286if test -n "$ac_ct_NMEDIT"; then
13287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13288$as_echo "$ac_ct_NMEDIT" >&6; }
13289else
13290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13291$as_echo "no" >&6; }
13292fi
13293
13294  if test "x$ac_ct_NMEDIT" = x; then
13295    NMEDIT=":"
13296  else
13297    case $cross_compiling:$ac_tool_warned in
13298yes:)
13299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13301ac_tool_warned=yes ;;
13302esac
13303    NMEDIT=$ac_ct_NMEDIT
13304  fi
13305else
13306  NMEDIT="$ac_cv_prog_NMEDIT"
13307fi
13308
13309    if test -n "$ac_tool_prefix"; then
13310  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13311set dummy ${ac_tool_prefix}lipo; ac_word=$2
13312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13313$as_echo_n "checking for $ac_word... " >&6; }
13314if ${ac_cv_prog_LIPO+:} false; then :
13315  $as_echo_n "(cached) " >&6
13316else
13317  if test -n "$LIPO"; then
13318  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13319else
13320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13321for as_dir in $PATH
13322do
13323  IFS=$as_save_IFS
13324  test -z "$as_dir" && as_dir=.
13325    for ac_exec_ext in '' $ac_executable_extensions; do
13326  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13327    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13328    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13329    break 2
13330  fi
13331done
13332  done
13333IFS=$as_save_IFS
13334
13335fi
13336fi
13337LIPO=$ac_cv_prog_LIPO
13338if test -n "$LIPO"; then
13339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13340$as_echo "$LIPO" >&6; }
13341else
13342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343$as_echo "no" >&6; }
13344fi
13345
13346
13347fi
13348if test -z "$ac_cv_prog_LIPO"; then
13349  ac_ct_LIPO=$LIPO
13350  # Extract the first word of "lipo", so it can be a program name with args.
13351set dummy lipo; ac_word=$2
13352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13353$as_echo_n "checking for $ac_word... " >&6; }
13354if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13355  $as_echo_n "(cached) " >&6
13356else
13357  if test -n "$ac_ct_LIPO"; then
13358  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13359else
13360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13361for as_dir in $PATH
13362do
13363  IFS=$as_save_IFS
13364  test -z "$as_dir" && as_dir=.
13365    for ac_exec_ext in '' $ac_executable_extensions; do
13366  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13367    ac_cv_prog_ac_ct_LIPO="lipo"
13368    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13369    break 2
13370  fi
13371done
13372  done
13373IFS=$as_save_IFS
13374
13375fi
13376fi
13377ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13378if test -n "$ac_ct_LIPO"; then
13379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13380$as_echo "$ac_ct_LIPO" >&6; }
13381else
13382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13383$as_echo "no" >&6; }
13384fi
13385
13386  if test "x$ac_ct_LIPO" = x; then
13387    LIPO=":"
13388  else
13389    case $cross_compiling:$ac_tool_warned in
13390yes:)
13391{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13392$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13393ac_tool_warned=yes ;;
13394esac
13395    LIPO=$ac_ct_LIPO
13396  fi
13397else
13398  LIPO="$ac_cv_prog_LIPO"
13399fi
13400
13401    if test -n "$ac_tool_prefix"; then
13402  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13403set dummy ${ac_tool_prefix}otool; ac_word=$2
13404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13405$as_echo_n "checking for $ac_word... " >&6; }
13406if ${ac_cv_prog_OTOOL+:} false; then :
13407  $as_echo_n "(cached) " >&6
13408else
13409  if test -n "$OTOOL"; then
13410  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13411else
13412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13413for as_dir in $PATH
13414do
13415  IFS=$as_save_IFS
13416  test -z "$as_dir" && as_dir=.
13417    for ac_exec_ext in '' $ac_executable_extensions; do
13418  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13419    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13420    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13421    break 2
13422  fi
13423done
13424  done
13425IFS=$as_save_IFS
13426
13427fi
13428fi
13429OTOOL=$ac_cv_prog_OTOOL
13430if test -n "$OTOOL"; then
13431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13432$as_echo "$OTOOL" >&6; }
13433else
13434  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13435$as_echo "no" >&6; }
13436fi
13437
13438
13439fi
13440if test -z "$ac_cv_prog_OTOOL"; then
13441  ac_ct_OTOOL=$OTOOL
13442  # Extract the first word of "otool", so it can be a program name with args.
13443set dummy otool; ac_word=$2
13444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13445$as_echo_n "checking for $ac_word... " >&6; }
13446if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13447  $as_echo_n "(cached) " >&6
13448else
13449  if test -n "$ac_ct_OTOOL"; then
13450  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13451else
13452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13453for as_dir in $PATH
13454do
13455  IFS=$as_save_IFS
13456  test -z "$as_dir" && as_dir=.
13457    for ac_exec_ext in '' $ac_executable_extensions; do
13458  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13459    ac_cv_prog_ac_ct_OTOOL="otool"
13460    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13461    break 2
13462  fi
13463done
13464  done
13465IFS=$as_save_IFS
13466
13467fi
13468fi
13469ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13470if test -n "$ac_ct_OTOOL"; then
13471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13472$as_echo "$ac_ct_OTOOL" >&6; }
13473else
13474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13475$as_echo "no" >&6; }
13476fi
13477
13478  if test "x$ac_ct_OTOOL" = x; then
13479    OTOOL=":"
13480  else
13481    case $cross_compiling:$ac_tool_warned in
13482yes:)
13483{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13485ac_tool_warned=yes ;;
13486esac
13487    OTOOL=$ac_ct_OTOOL
13488  fi
13489else
13490  OTOOL="$ac_cv_prog_OTOOL"
13491fi
13492
13493    if test -n "$ac_tool_prefix"; then
13494  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13495set dummy ${ac_tool_prefix}otool64; ac_word=$2
13496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13497$as_echo_n "checking for $ac_word... " >&6; }
13498if ${ac_cv_prog_OTOOL64+:} false; then :
13499  $as_echo_n "(cached) " >&6
13500else
13501  if test -n "$OTOOL64"; then
13502  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13503else
13504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13505for as_dir in $PATH
13506do
13507  IFS=$as_save_IFS
13508  test -z "$as_dir" && as_dir=.
13509    for ac_exec_ext in '' $ac_executable_extensions; do
13510  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13511    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13513    break 2
13514  fi
13515done
13516  done
13517IFS=$as_save_IFS
13518
13519fi
13520fi
13521OTOOL64=$ac_cv_prog_OTOOL64
13522if test -n "$OTOOL64"; then
13523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13524$as_echo "$OTOOL64" >&6; }
13525else
13526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13527$as_echo "no" >&6; }
13528fi
13529
13530
13531fi
13532if test -z "$ac_cv_prog_OTOOL64"; then
13533  ac_ct_OTOOL64=$OTOOL64
13534  # Extract the first word of "otool64", so it can be a program name with args.
13535set dummy otool64; ac_word=$2
13536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13537$as_echo_n "checking for $ac_word... " >&6; }
13538if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13539  $as_echo_n "(cached) " >&6
13540else
13541  if test -n "$ac_ct_OTOOL64"; then
13542  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13543else
13544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13545for as_dir in $PATH
13546do
13547  IFS=$as_save_IFS
13548  test -z "$as_dir" && as_dir=.
13549    for ac_exec_ext in '' $ac_executable_extensions; do
13550  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13551    ac_cv_prog_ac_ct_OTOOL64="otool64"
13552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13553    break 2
13554  fi
13555done
13556  done
13557IFS=$as_save_IFS
13558
13559fi
13560fi
13561ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13562if test -n "$ac_ct_OTOOL64"; then
13563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13564$as_echo "$ac_ct_OTOOL64" >&6; }
13565else
13566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13567$as_echo "no" >&6; }
13568fi
13569
13570  if test "x$ac_ct_OTOOL64" = x; then
13571    OTOOL64=":"
13572  else
13573    case $cross_compiling:$ac_tool_warned in
13574yes:)
13575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13577ac_tool_warned=yes ;;
13578esac
13579    OTOOL64=$ac_ct_OTOOL64
13580  fi
13581else
13582  OTOOL64="$ac_cv_prog_OTOOL64"
13583fi
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13612$as_echo_n "checking for -single_module linker flag... " >&6; }
13613if ${lt_cv_apple_cc_single_mod+:} false; then :
13614  $as_echo_n "(cached) " >&6
13615else
13616  lt_cv_apple_cc_single_mod=no
13617      if test -z "${LT_MULTI_MODULE}"; then
13618	# By default we will add the -single_module flag. You can override
13619	# by either setting the environment variable LT_MULTI_MODULE
13620	# non-empty at configure time, or by adding -multi_module to the
13621	# link flags.
13622	rm -rf libconftest.dylib*
13623	echo "int foo(void){return 1;}" > conftest.c
13624	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13625-dynamiclib -Wl,-single_module conftest.c" >&5
13626	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13627	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13628        _lt_result=$?
13629	# If there is a non-empty error log, and "single_module"
13630	# appears in it, assume the flag caused a linker warning
13631        if test -s conftest.err && $GREP single_module conftest.err; then
13632	  cat conftest.err >&5
13633	# Otherwise, if the output was created with a 0 exit code from
13634	# the compiler, it worked.
13635	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13636	  lt_cv_apple_cc_single_mod=yes
13637	else
13638	  cat conftest.err >&5
13639	fi
13640	rm -rf libconftest.dylib*
13641	rm -f conftest.*
13642      fi
13643fi
13644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13645$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13646
13647    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13648$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13649if ${lt_cv_ld_exported_symbols_list+:} false; then :
13650  $as_echo_n "(cached) " >&6
13651else
13652  lt_cv_ld_exported_symbols_list=no
13653      save_LDFLAGS=$LDFLAGS
13654      echo "_main" > conftest.sym
13655      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13656      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13657/* end confdefs.h.  */
13658
13659int
13660main ()
13661{
13662
13663  ;
13664  return 0;
13665}
13666_ACEOF
13667if ac_fn_c_try_link "$LINENO"; then :
13668  lt_cv_ld_exported_symbols_list=yes
13669else
13670  lt_cv_ld_exported_symbols_list=no
13671fi
13672rm -f core conftest.err conftest.$ac_objext \
13673    conftest$ac_exeext conftest.$ac_ext
13674	LDFLAGS="$save_LDFLAGS"
13675
13676fi
13677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13678$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13679
13680    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13681$as_echo_n "checking for -force_load linker flag... " >&6; }
13682if ${lt_cv_ld_force_load+:} false; then :
13683  $as_echo_n "(cached) " >&6
13684else
13685  lt_cv_ld_force_load=no
13686      cat > conftest.c << _LT_EOF
13687int forced_loaded() { return 2;}
13688_LT_EOF
13689      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13690      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13691      echo "$AR cru libconftest.a conftest.o" >&5
13692      $AR cru libconftest.a conftest.o 2>&5
13693      echo "$RANLIB libconftest.a" >&5
13694      $RANLIB libconftest.a 2>&5
13695      cat > conftest.c << _LT_EOF
13696int main() { return 0;}
13697_LT_EOF
13698      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13699      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13700      _lt_result=$?
13701      if test -s conftest.err && $GREP force_load conftest.err; then
13702	cat conftest.err >&5
13703      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13704	lt_cv_ld_force_load=yes
13705      else
13706	cat conftest.err >&5
13707      fi
13708        rm -f conftest.err libconftest.a conftest conftest.c
13709        rm -rf conftest.dSYM
13710
13711fi
13712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13713$as_echo "$lt_cv_ld_force_load" >&6; }
13714    case $host_os in
13715    rhapsody* | darwin1.[012])
13716      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13717    darwin1.*)
13718      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13719    darwin*) # darwin 5.x on
13720      # if running on 10.5 or later, the deployment target defaults
13721      # to the OS version, if on x86, and 10.4, the deployment
13722      # target defaults to 10.4. Don't you love it?
13723      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13724	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13725	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13726	10.[012]*)
13727	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13728	10.*)
13729	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13730      esac
13731    ;;
13732  esac
13733    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13734      _lt_dar_single_mod='$single_module'
13735    fi
13736    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13737      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13738    else
13739      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13740    fi
13741    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13742      _lt_dsymutil='~$DSYMUTIL $lib || :'
13743    else
13744      _lt_dsymutil=
13745    fi
13746    ;;
13747  esac
13748
13749for ac_header in dlfcn.h
13750do :
13751  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13752"
13753if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13754  cat >>confdefs.h <<_ACEOF
13755#define HAVE_DLFCN_H 1
13756_ACEOF
13757
13758fi
13759
13760done
13761
13762
13763
13764
13765
13766# Set options
13767
13768
13769
13770        enable_dlopen=no
13771
13772
13773  enable_win32_dll=no
13774
13775
13776            # Check whether --enable-shared was given.
13777if test "${enable_shared+set}" = set; then :
13778  enableval=$enable_shared; p=${PACKAGE-default}
13779    case $enableval in
13780    yes) enable_shared=yes ;;
13781    no) enable_shared=no ;;
13782    *)
13783      enable_shared=no
13784      # Look at the argument we got.  We use all the common list separators.
13785      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13786      for pkg in $enableval; do
13787	IFS="$lt_save_ifs"
13788	if test "X$pkg" = "X$p"; then
13789	  enable_shared=yes
13790	fi
13791      done
13792      IFS="$lt_save_ifs"
13793      ;;
13794    esac
13795else
13796  enable_shared=yes
13797fi
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809# Check whether --with-pic was given.
13810if test "${with_pic+set}" = set; then :
13811  withval=$with_pic; lt_p=${PACKAGE-default}
13812    case $withval in
13813    yes|no) pic_mode=$withval ;;
13814    *)
13815      pic_mode=default
13816      # Look at the argument we got.  We use all the common list separators.
13817      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13818      for lt_pkg in $withval; do
13819	IFS="$lt_save_ifs"
13820	if test "X$lt_pkg" = "X$lt_p"; then
13821	  pic_mode=yes
13822	fi
13823      done
13824      IFS="$lt_save_ifs"
13825      ;;
13826    esac
13827else
13828  pic_mode=default
13829fi
13830
13831
13832test -z "$pic_mode" && pic_mode=default
13833
13834
13835
13836
13837
13838
13839
13840  # Check whether --enable-fast-install was given.
13841if test "${enable_fast_install+set}" = set; then :
13842  enableval=$enable_fast_install; p=${PACKAGE-default}
13843    case $enableval in
13844    yes) enable_fast_install=yes ;;
13845    no) enable_fast_install=no ;;
13846    *)
13847      enable_fast_install=no
13848      # Look at the argument we got.  We use all the common list separators.
13849      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13850      for pkg in $enableval; do
13851	IFS="$lt_save_ifs"
13852	if test "X$pkg" = "X$p"; then
13853	  enable_fast_install=yes
13854	fi
13855      done
13856      IFS="$lt_save_ifs"
13857      ;;
13858    esac
13859else
13860  enable_fast_install=yes
13861fi
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873# This can be used to rebuild libtool when needed
13874LIBTOOL_DEPS="$ltmain"
13875
13876# Always use our own libtool.
13877LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908test -z "$LN_S" && LN_S="ln -s"
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923if test -n "${ZSH_VERSION+set}" ; then
13924   setopt NO_GLOB_SUBST
13925fi
13926
13927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13928$as_echo_n "checking for objdir... " >&6; }
13929if ${lt_cv_objdir+:} false; then :
13930  $as_echo_n "(cached) " >&6
13931else
13932  rm -f .libs 2>/dev/null
13933mkdir .libs 2>/dev/null
13934if test -d .libs; then
13935  lt_cv_objdir=.libs
13936else
13937  # MS-DOS does not allow filenames that begin with a dot.
13938  lt_cv_objdir=_libs
13939fi
13940rmdir .libs 2>/dev/null
13941fi
13942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13943$as_echo "$lt_cv_objdir" >&6; }
13944objdir=$lt_cv_objdir
13945
13946
13947
13948
13949
13950cat >>confdefs.h <<_ACEOF
13951#define LT_OBJDIR "$lt_cv_objdir/"
13952_ACEOF
13953
13954
13955
13956
13957case $host_os in
13958aix3*)
13959  # AIX sometimes has problems with the GCC collect2 program.  For some
13960  # reason, if we set the COLLECT_NAMES environment variable, the problems
13961  # vanish in a puff of smoke.
13962  if test "X${COLLECT_NAMES+set}" != Xset; then
13963    COLLECT_NAMES=
13964    export COLLECT_NAMES
13965  fi
13966  ;;
13967esac
13968
13969# Global variables:
13970ofile=libtool
13971can_build_shared=yes
13972
13973# All known linkers require a `.a' archive for static linking (except MSVC,
13974# which needs '.lib').
13975libext=a
13976
13977with_gnu_ld="$lt_cv_prog_gnu_ld"
13978
13979old_CC="$CC"
13980old_CFLAGS="$CFLAGS"
13981
13982# Set sane defaults for various variables
13983test -z "$CC" && CC=cc
13984test -z "$LTCC" && LTCC=$CC
13985test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13986test -z "$LD" && LD=ld
13987test -z "$ac_objext" && ac_objext=o
13988
13989for cc_temp in $compiler""; do
13990  case $cc_temp in
13991    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13992    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13993    \-*) ;;
13994    *) break;;
13995  esac
13996done
13997cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13998
13999
14000# Only perform the check for file, if the check method requires it
14001test -z "$MAGIC_CMD" && MAGIC_CMD=file
14002case $deplibs_check_method in
14003file_magic*)
14004  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14005    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14006$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14007if ${lt_cv_path_MAGIC_CMD+:} false; then :
14008  $as_echo_n "(cached) " >&6
14009else
14010  case $MAGIC_CMD in
14011[\\/*] |  ?:[\\/]*)
14012  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14013  ;;
14014*)
14015  lt_save_MAGIC_CMD="$MAGIC_CMD"
14016  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14017  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14018  for ac_dir in $ac_dummy; do
14019    IFS="$lt_save_ifs"
14020    test -z "$ac_dir" && ac_dir=.
14021    if test -f $ac_dir/${ac_tool_prefix}file; then
14022      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14023      if test -n "$file_magic_test_file"; then
14024	case $deplibs_check_method in
14025	"file_magic "*)
14026	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14027	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14028	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14029	    $EGREP "$file_magic_regex" > /dev/null; then
14030	    :
14031	  else
14032	    cat <<_LT_EOF 1>&2
14033
14034*** Warning: the command libtool uses to detect shared libraries,
14035*** $file_magic_cmd, produces output that libtool cannot recognize.
14036*** The result is that libtool may fail to recognize shared libraries
14037*** as such.  This will affect the creation of libtool libraries that
14038*** depend on shared libraries, but programs linked with such libtool
14039*** libraries will work regardless of this problem.  Nevertheless, you
14040*** may want to report the problem to your system manager and/or to
14041*** bug-libtool@gnu.org
14042
14043_LT_EOF
14044	  fi ;;
14045	esac
14046      fi
14047      break
14048    fi
14049  done
14050  IFS="$lt_save_ifs"
14051  MAGIC_CMD="$lt_save_MAGIC_CMD"
14052  ;;
14053esac
14054fi
14055
14056MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14057if test -n "$MAGIC_CMD"; then
14058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14059$as_echo "$MAGIC_CMD" >&6; }
14060else
14061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14062$as_echo "no" >&6; }
14063fi
14064
14065
14066
14067
14068
14069if test -z "$lt_cv_path_MAGIC_CMD"; then
14070  if test -n "$ac_tool_prefix"; then
14071    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14072$as_echo_n "checking for file... " >&6; }
14073if ${lt_cv_path_MAGIC_CMD+:} false; then :
14074  $as_echo_n "(cached) " >&6
14075else
14076  case $MAGIC_CMD in
14077[\\/*] |  ?:[\\/]*)
14078  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14079  ;;
14080*)
14081  lt_save_MAGIC_CMD="$MAGIC_CMD"
14082  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14083  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14084  for ac_dir in $ac_dummy; do
14085    IFS="$lt_save_ifs"
14086    test -z "$ac_dir" && ac_dir=.
14087    if test -f $ac_dir/file; then
14088      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14089      if test -n "$file_magic_test_file"; then
14090	case $deplibs_check_method in
14091	"file_magic "*)
14092	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14093	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14094	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14095	    $EGREP "$file_magic_regex" > /dev/null; then
14096	    :
14097	  else
14098	    cat <<_LT_EOF 1>&2
14099
14100*** Warning: the command libtool uses to detect shared libraries,
14101*** $file_magic_cmd, produces output that libtool cannot recognize.
14102*** The result is that libtool may fail to recognize shared libraries
14103*** as such.  This will affect the creation of libtool libraries that
14104*** depend on shared libraries, but programs linked with such libtool
14105*** libraries will work regardless of this problem.  Nevertheless, you
14106*** may want to report the problem to your system manager and/or to
14107*** bug-libtool@gnu.org
14108
14109_LT_EOF
14110	  fi ;;
14111	esac
14112      fi
14113      break
14114    fi
14115  done
14116  IFS="$lt_save_ifs"
14117  MAGIC_CMD="$lt_save_MAGIC_CMD"
14118  ;;
14119esac
14120fi
14121
14122MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14123if test -n "$MAGIC_CMD"; then
14124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14125$as_echo "$MAGIC_CMD" >&6; }
14126else
14127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14128$as_echo "no" >&6; }
14129fi
14130
14131
14132  else
14133    MAGIC_CMD=:
14134  fi
14135fi
14136
14137  fi
14138  ;;
14139esac
14140
14141# Use C for the default configuration in the libtool script
14142
14143lt_save_CC="$CC"
14144ac_ext=c
14145ac_cpp='$CPP $CPPFLAGS'
14146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14148ac_compiler_gnu=$ac_cv_c_compiler_gnu
14149
14150
14151# Source file extension for C test sources.
14152ac_ext=c
14153
14154# Object file extension for compiled C test sources.
14155objext=o
14156objext=$objext
14157
14158# Code to be used in simple compile tests
14159lt_simple_compile_test_code="int some_variable = 0;"
14160
14161# Code to be used in simple link tests
14162lt_simple_link_test_code='int main(){return(0);}'
14163
14164
14165
14166
14167
14168
14169
14170# If no C compiler was specified, use CC.
14171LTCC=${LTCC-"$CC"}
14172
14173# If no C compiler flags were specified, use CFLAGS.
14174LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14175
14176# Allow CC to be a program name with arguments.
14177compiler=$CC
14178
14179# Save the default compiler, since it gets overwritten when the other
14180# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14181compiler_DEFAULT=$CC
14182
14183# save warnings/boilerplate of simple test code
14184ac_outfile=conftest.$ac_objext
14185echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14186eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14187_lt_compiler_boilerplate=`cat conftest.err`
14188$RM conftest*
14189
14190ac_outfile=conftest.$ac_objext
14191echo "$lt_simple_link_test_code" >conftest.$ac_ext
14192eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14193_lt_linker_boilerplate=`cat conftest.err`
14194$RM -r conftest*
14195
14196
14197if test -n "$compiler"; then
14198
14199lt_prog_compiler_no_builtin_flag=
14200
14201if test "$GCC" = yes; then
14202  case $cc_basename in
14203  nvcc*)
14204    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14205  *)
14206    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14207  esac
14208
14209  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14210$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14211if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14212  $as_echo_n "(cached) " >&6
14213else
14214  lt_cv_prog_compiler_rtti_exceptions=no
14215   ac_outfile=conftest.$ac_objext
14216   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14217   lt_compiler_flag="-fno-rtti -fno-exceptions"
14218   # Insert the option either (1) after the last *FLAGS variable, or
14219   # (2) before a word containing "conftest.", or (3) at the end.
14220   # Note that $ac_compile itself does not contain backslashes and begins
14221   # with a dollar sign (not a hyphen), so the echo should work correctly.
14222   # The option is referenced via a variable to avoid confusing sed.
14223   lt_compile=`echo "$ac_compile" | $SED \
14224   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14225   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14226   -e 's:$: $lt_compiler_flag:'`
14227   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14228   (eval "$lt_compile" 2>conftest.err)
14229   ac_status=$?
14230   cat conftest.err >&5
14231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232   if (exit $ac_status) && test -s "$ac_outfile"; then
14233     # The compiler can only warn and ignore the option if not recognized
14234     # So say no if there are warnings other than the usual output.
14235     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14236     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14237     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14238       lt_cv_prog_compiler_rtti_exceptions=yes
14239     fi
14240   fi
14241   $RM conftest*
14242
14243fi
14244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14245$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14246
14247if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14248    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14249else
14250    :
14251fi
14252
14253fi
14254
14255
14256
14257
14258
14259
14260  lt_prog_compiler_wl=
14261lt_prog_compiler_pic=
14262lt_prog_compiler_static=
14263
14264
14265  if test "$GCC" = yes; then
14266    lt_prog_compiler_wl='-Wl,'
14267    lt_prog_compiler_static='-static'
14268
14269    case $host_os in
14270      aix*)
14271      # All AIX code is PIC.
14272      if test "$host_cpu" = ia64; then
14273	# AIX 5 now supports IA64 processor
14274	lt_prog_compiler_static='-Bstatic'
14275      fi
14276      ;;
14277
14278    amigaos*)
14279      case $host_cpu in
14280      powerpc)
14281            # see comment about AmigaOS4 .so support
14282            lt_prog_compiler_pic='-fPIC'
14283        ;;
14284      m68k)
14285            # FIXME: we need at least 68020 code to build shared libraries, but
14286            # adding the `-m68020' flag to GCC prevents building anything better,
14287            # like `-m68040'.
14288            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14289        ;;
14290      esac
14291      ;;
14292
14293    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14294      # PIC is the default for these OSes.
14295      ;;
14296
14297    mingw* | cygwin* | pw32* | os2* | cegcc*)
14298      # This hack is so that the source file can tell whether it is being
14299      # built for inclusion in a dll (and should export symbols for example).
14300      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14301      # (--disable-auto-import) libraries
14302      lt_prog_compiler_pic='-DDLL_EXPORT'
14303      ;;
14304
14305    darwin* | rhapsody*)
14306      # PIC is the default on this platform
14307      # Common symbols not allowed in MH_DYLIB files
14308      lt_prog_compiler_pic='-fno-common'
14309      ;;
14310
14311    haiku*)
14312      # PIC is the default for Haiku.
14313      # The "-static" flag exists, but is broken.
14314      lt_prog_compiler_static=
14315      ;;
14316
14317    hpux*)
14318      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14319      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14320      # sets the default TLS model and affects inlining.
14321      case $host_cpu in
14322      hppa*64*)
14323	# +Z the default
14324	;;
14325      *)
14326	lt_prog_compiler_pic='-fPIC'
14327	;;
14328      esac
14329      ;;
14330
14331    interix[3-9]*)
14332      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14333      # Instead, we relocate shared libraries at runtime.
14334      ;;
14335
14336    msdosdjgpp*)
14337      # Just because we use GCC doesn't mean we suddenly get shared libraries
14338      # on systems that don't support them.
14339      lt_prog_compiler_can_build_shared=no
14340      enable_shared=no
14341      ;;
14342
14343    *nto* | *qnx*)
14344      # QNX uses GNU C++, but need to define -shared option too, otherwise
14345      # it will coredump.
14346      lt_prog_compiler_pic='-fPIC -shared'
14347      ;;
14348
14349    sysv4*MP*)
14350      if test -d /usr/nec; then
14351	lt_prog_compiler_pic=-Kconform_pic
14352      fi
14353      ;;
14354
14355    *)
14356      lt_prog_compiler_pic='-fPIC'
14357      ;;
14358    esac
14359
14360    case $cc_basename in
14361    nvcc*) # Cuda Compiler Driver 2.2
14362      lt_prog_compiler_wl='-Xlinker '
14363      if test -n "$lt_prog_compiler_pic"; then
14364        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14365      fi
14366      ;;
14367    esac
14368  else
14369    # PORTME Check for flag to pass linker flags through the system compiler.
14370    case $host_os in
14371    aix*)
14372      lt_prog_compiler_wl='-Wl,'
14373      if test "$host_cpu" = ia64; then
14374	# AIX 5 now supports IA64 processor
14375	lt_prog_compiler_static='-Bstatic'
14376      else
14377	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14378      fi
14379      ;;
14380
14381    mingw* | cygwin* | pw32* | os2* | cegcc*)
14382      # This hack is so that the source file can tell whether it is being
14383      # built for inclusion in a dll (and should export symbols for example).
14384      lt_prog_compiler_pic='-DDLL_EXPORT'
14385      ;;
14386
14387    hpux9* | hpux10* | hpux11*)
14388      lt_prog_compiler_wl='-Wl,'
14389      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14390      # not for PA HP-UX.
14391      case $host_cpu in
14392      hppa*64*|ia64*)
14393	# +Z the default
14394	;;
14395      *)
14396	lt_prog_compiler_pic='+Z'
14397	;;
14398      esac
14399      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14400      lt_prog_compiler_static='${wl}-a ${wl}archive'
14401      ;;
14402
14403    irix5* | irix6* | nonstopux*)
14404      lt_prog_compiler_wl='-Wl,'
14405      # PIC (with -KPIC) is the default.
14406      lt_prog_compiler_static='-non_shared'
14407      ;;
14408
14409    linux* | k*bsd*-gnu | kopensolaris*-gnu)
14410      case $cc_basename in
14411      # old Intel for x86_64 which still supported -KPIC.
14412      ecc*)
14413	lt_prog_compiler_wl='-Wl,'
14414	lt_prog_compiler_pic='-KPIC'
14415	lt_prog_compiler_static='-static'
14416        ;;
14417      # icc used to be incompatible with GCC.
14418      # ICC 10 doesn't accept -KPIC any more.
14419      icc* | ifort*)
14420	lt_prog_compiler_wl='-Wl,'
14421	lt_prog_compiler_pic='-fPIC'
14422	lt_prog_compiler_static='-static'
14423        ;;
14424      # Lahey Fortran 8.1.
14425      lf95*)
14426	lt_prog_compiler_wl='-Wl,'
14427	lt_prog_compiler_pic='--shared'
14428	lt_prog_compiler_static='--static'
14429	;;
14430      nagfor*)
14431	# NAG Fortran compiler
14432	lt_prog_compiler_wl='-Wl,-Wl,,'
14433	lt_prog_compiler_pic='-PIC'
14434	lt_prog_compiler_static='-Bstatic'
14435	;;
14436      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14437        # Portland Group compilers (*not* the Pentium gcc compiler,
14438	# which looks to be a dead project)
14439	lt_prog_compiler_wl='-Wl,'
14440	lt_prog_compiler_pic='-fpic'
14441	lt_prog_compiler_static='-Bstatic'
14442        ;;
14443      ccc*)
14444        lt_prog_compiler_wl='-Wl,'
14445        # All Alpha code is PIC.
14446        lt_prog_compiler_static='-non_shared'
14447        ;;
14448      xl* | bgxl* | bgf* | mpixl*)
14449	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14450	lt_prog_compiler_wl='-Wl,'
14451	lt_prog_compiler_pic='-qpic'
14452	lt_prog_compiler_static='-qstaticlink'
14453	;;
14454      *)
14455	case `$CC -V 2>&1 | sed 5q` in
14456	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14457	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14458	  lt_prog_compiler_pic='-KPIC'
14459	  lt_prog_compiler_static='-Bstatic'
14460	  lt_prog_compiler_wl=''
14461	  ;;
14462	*Sun\ F* | *Sun*Fortran*)
14463	  lt_prog_compiler_pic='-KPIC'
14464	  lt_prog_compiler_static='-Bstatic'
14465	  lt_prog_compiler_wl='-Qoption ld '
14466	  ;;
14467	*Sun\ C*)
14468	  # Sun C 5.9
14469	  lt_prog_compiler_pic='-KPIC'
14470	  lt_prog_compiler_static='-Bstatic'
14471	  lt_prog_compiler_wl='-Wl,'
14472	  ;;
14473        *Intel*\ [CF]*Compiler*)
14474	  lt_prog_compiler_wl='-Wl,'
14475	  lt_prog_compiler_pic='-fPIC'
14476	  lt_prog_compiler_static='-static'
14477	  ;;
14478	*Portland\ Group*)
14479	  lt_prog_compiler_wl='-Wl,'
14480	  lt_prog_compiler_pic='-fpic'
14481	  lt_prog_compiler_static='-Bstatic'
14482	  ;;
14483	esac
14484	;;
14485      esac
14486      ;;
14487
14488    newsos6)
14489      lt_prog_compiler_pic='-KPIC'
14490      lt_prog_compiler_static='-Bstatic'
14491      ;;
14492
14493    *nto* | *qnx*)
14494      # QNX uses GNU C++, but need to define -shared option too, otherwise
14495      # it will coredump.
14496      lt_prog_compiler_pic='-fPIC -shared'
14497      ;;
14498
14499    osf3* | osf4* | osf5*)
14500      lt_prog_compiler_wl='-Wl,'
14501      # All OSF/1 code is PIC.
14502      lt_prog_compiler_static='-non_shared'
14503      ;;
14504
14505    rdos*)
14506      lt_prog_compiler_static='-non_shared'
14507      ;;
14508
14509    solaris*)
14510      lt_prog_compiler_pic='-KPIC'
14511      lt_prog_compiler_static='-Bstatic'
14512      case $cc_basename in
14513      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14514	lt_prog_compiler_wl='-Qoption ld ';;
14515      *)
14516	lt_prog_compiler_wl='-Wl,';;
14517      esac
14518      ;;
14519
14520    sunos4*)
14521      lt_prog_compiler_wl='-Qoption ld '
14522      lt_prog_compiler_pic='-PIC'
14523      lt_prog_compiler_static='-Bstatic'
14524      ;;
14525
14526    sysv4 | sysv4.2uw2* | sysv4.3*)
14527      lt_prog_compiler_wl='-Wl,'
14528      lt_prog_compiler_pic='-KPIC'
14529      lt_prog_compiler_static='-Bstatic'
14530      ;;
14531
14532    sysv4*MP*)
14533      if test -d /usr/nec ;then
14534	lt_prog_compiler_pic='-Kconform_pic'
14535	lt_prog_compiler_static='-Bstatic'
14536      fi
14537      ;;
14538
14539    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14540      lt_prog_compiler_wl='-Wl,'
14541      lt_prog_compiler_pic='-KPIC'
14542      lt_prog_compiler_static='-Bstatic'
14543      ;;
14544
14545    unicos*)
14546      lt_prog_compiler_wl='-Wl,'
14547      lt_prog_compiler_can_build_shared=no
14548      ;;
14549
14550    uts4*)
14551      lt_prog_compiler_pic='-pic'
14552      lt_prog_compiler_static='-Bstatic'
14553      ;;
14554
14555    *)
14556      lt_prog_compiler_can_build_shared=no
14557      ;;
14558    esac
14559  fi
14560
14561case $host_os in
14562  # For platforms which do not support PIC, -DPIC is meaningless:
14563  *djgpp*)
14564    lt_prog_compiler_pic=
14565    ;;
14566  *)
14567    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14568    ;;
14569esac
14570
14571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14572$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14573if ${lt_cv_prog_compiler_pic+:} false; then :
14574  $as_echo_n "(cached) " >&6
14575else
14576  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14577fi
14578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14579$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14580lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14581
14582#
14583# Check to make sure the PIC flag actually works.
14584#
14585if test -n "$lt_prog_compiler_pic"; then
14586  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14587$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14588if ${lt_cv_prog_compiler_pic_works+:} false; then :
14589  $as_echo_n "(cached) " >&6
14590else
14591  lt_cv_prog_compiler_pic_works=no
14592   ac_outfile=conftest.$ac_objext
14593   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14594   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14595   # Insert the option either (1) after the last *FLAGS variable, or
14596   # (2) before a word containing "conftest.", or (3) at the end.
14597   # Note that $ac_compile itself does not contain backslashes and begins
14598   # with a dollar sign (not a hyphen), so the echo should work correctly.
14599   # The option is referenced via a variable to avoid confusing sed.
14600   lt_compile=`echo "$ac_compile" | $SED \
14601   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14602   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14603   -e 's:$: $lt_compiler_flag:'`
14604   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14605   (eval "$lt_compile" 2>conftest.err)
14606   ac_status=$?
14607   cat conftest.err >&5
14608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609   if (exit $ac_status) && test -s "$ac_outfile"; then
14610     # The compiler can only warn and ignore the option if not recognized
14611     # So say no if there are warnings other than the usual output.
14612     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14613     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14614     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14615       lt_cv_prog_compiler_pic_works=yes
14616     fi
14617   fi
14618   $RM conftest*
14619
14620fi
14621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14622$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14623
14624if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14625    case $lt_prog_compiler_pic in
14626     "" | " "*) ;;
14627     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14628     esac
14629else
14630    lt_prog_compiler_pic=
14631     lt_prog_compiler_can_build_shared=no
14632fi
14633
14634fi
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646#
14647# Check to make sure the static flag actually works.
14648#
14649wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14651$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14652if ${lt_cv_prog_compiler_static_works+:} false; then :
14653  $as_echo_n "(cached) " >&6
14654else
14655  lt_cv_prog_compiler_static_works=no
14656   save_LDFLAGS="$LDFLAGS"
14657   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14658   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14659   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14660     # The linker can only warn and ignore the option if not recognized
14661     # So say no if there are warnings
14662     if test -s conftest.err; then
14663       # Append any errors to the config.log.
14664       cat conftest.err 1>&5
14665       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14666       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14667       if diff conftest.exp conftest.er2 >/dev/null; then
14668         lt_cv_prog_compiler_static_works=yes
14669       fi
14670     else
14671       lt_cv_prog_compiler_static_works=yes
14672     fi
14673   fi
14674   $RM -r conftest*
14675   LDFLAGS="$save_LDFLAGS"
14676
14677fi
14678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14679$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14680
14681if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14682    :
14683else
14684    lt_prog_compiler_static=
14685fi
14686
14687
14688
14689
14690
14691
14692
14693  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14694$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14695if ${lt_cv_prog_compiler_c_o+:} false; then :
14696  $as_echo_n "(cached) " >&6
14697else
14698  lt_cv_prog_compiler_c_o=no
14699   $RM -r conftest 2>/dev/null
14700   mkdir conftest
14701   cd conftest
14702   mkdir out
14703   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14704
14705   lt_compiler_flag="-o out/conftest2.$ac_objext"
14706   # Insert the option either (1) after the last *FLAGS variable, or
14707   # (2) before a word containing "conftest.", or (3) at the end.
14708   # Note that $ac_compile itself does not contain backslashes and begins
14709   # with a dollar sign (not a hyphen), so the echo should work correctly.
14710   lt_compile=`echo "$ac_compile" | $SED \
14711   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14712   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14713   -e 's:$: $lt_compiler_flag:'`
14714   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14715   (eval "$lt_compile" 2>out/conftest.err)
14716   ac_status=$?
14717   cat out/conftest.err >&5
14718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14720   then
14721     # The compiler can only warn and ignore the option if not recognized
14722     # So say no if there are warnings
14723     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14724     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14725     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14726       lt_cv_prog_compiler_c_o=yes
14727     fi
14728   fi
14729   chmod u+w . 2>&5
14730   $RM conftest*
14731   # SGI C++ compiler will create directory out/ii_files/ for
14732   # template instantiation
14733   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14734   $RM out/* && rmdir out
14735   cd ..
14736   $RM -r conftest
14737   $RM conftest*
14738
14739fi
14740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14741$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14742
14743
14744
14745
14746
14747
14748  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14749$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14750if ${lt_cv_prog_compiler_c_o+:} false; then :
14751  $as_echo_n "(cached) " >&6
14752else
14753  lt_cv_prog_compiler_c_o=no
14754   $RM -r conftest 2>/dev/null
14755   mkdir conftest
14756   cd conftest
14757   mkdir out
14758   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14759
14760   lt_compiler_flag="-o out/conftest2.$ac_objext"
14761   # Insert the option either (1) after the last *FLAGS variable, or
14762   # (2) before a word containing "conftest.", or (3) at the end.
14763   # Note that $ac_compile itself does not contain backslashes and begins
14764   # with a dollar sign (not a hyphen), so the echo should work correctly.
14765   lt_compile=`echo "$ac_compile" | $SED \
14766   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14767   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14768   -e 's:$: $lt_compiler_flag:'`
14769   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14770   (eval "$lt_compile" 2>out/conftest.err)
14771   ac_status=$?
14772   cat out/conftest.err >&5
14773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14775   then
14776     # The compiler can only warn and ignore the option if not recognized
14777     # So say no if there are warnings
14778     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14779     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14780     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14781       lt_cv_prog_compiler_c_o=yes
14782     fi
14783   fi
14784   chmod u+w . 2>&5
14785   $RM conftest*
14786   # SGI C++ compiler will create directory out/ii_files/ for
14787   # template instantiation
14788   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14789   $RM out/* && rmdir out
14790   cd ..
14791   $RM -r conftest
14792   $RM conftest*
14793
14794fi
14795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14796$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14797
14798
14799
14800
14801hard_links="nottested"
14802if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14803  # do not overwrite the value of need_locks provided by the user
14804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14805$as_echo_n "checking if we can lock with hard links... " >&6; }
14806  hard_links=yes
14807  $RM conftest*
14808  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14809  touch conftest.a
14810  ln conftest.a conftest.b 2>&5 || hard_links=no
14811  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14813$as_echo "$hard_links" >&6; }
14814  if test "$hard_links" = no; then
14815    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14816$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14817    need_locks=warn
14818  fi
14819else
14820  need_locks=no
14821fi
14822
14823
14824
14825
14826
14827
14828  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14829$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14830
14831  runpath_var=
14832  allow_undefined_flag=
14833  always_export_symbols=no
14834  archive_cmds=
14835  archive_expsym_cmds=
14836  compiler_needs_object=no
14837  enable_shared_with_static_runtimes=no
14838  export_dynamic_flag_spec=
14839  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14840  hardcode_automatic=no
14841  hardcode_direct=no
14842  hardcode_direct_absolute=no
14843  hardcode_libdir_flag_spec=
14844  hardcode_libdir_separator=
14845  hardcode_minus_L=no
14846  hardcode_shlibpath_var=unsupported
14847  inherit_rpath=no
14848  link_all_deplibs=unknown
14849  module_cmds=
14850  module_expsym_cmds=
14851  old_archive_from_new_cmds=
14852  old_archive_from_expsyms_cmds=
14853  thread_safe_flag_spec=
14854  whole_archive_flag_spec=
14855  # include_expsyms should be a list of space-separated symbols to be *always*
14856  # included in the symbol list
14857  include_expsyms=
14858  # exclude_expsyms can be an extended regexp of symbols to exclude
14859  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14860  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14861  # as well as any symbol that contains `d'.
14862  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14863  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14864  # platforms (ab)use it in PIC code, but their linkers get confused if
14865  # the symbol is explicitly referenced.  Since portable code cannot
14866  # rely on this symbol name, it's probably fine to never include it in
14867  # preloaded symbol tables.
14868  # Exclude shared library initialization/finalization symbols.
14869  extract_expsyms_cmds=
14870
14871  case $host_os in
14872  cygwin* | mingw* | pw32* | cegcc*)
14873    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14874    # When not using gcc, we currently assume that we are using
14875    # Microsoft Visual C++.
14876    if test "$GCC" != yes; then
14877      with_gnu_ld=no
14878    fi
14879    ;;
14880  interix*)
14881    # we just hope/assume this is gcc and not c89 (= MSVC++)
14882    with_gnu_ld=yes
14883    ;;
14884  openbsd*)
14885    with_gnu_ld=no
14886    ;;
14887  esac
14888
14889  ld_shlibs=yes
14890
14891  # On some targets, GNU ld is compatible enough with the native linker
14892  # that we're better off using the native interface for both.
14893  lt_use_gnu_ld_interface=no
14894  if test "$with_gnu_ld" = yes; then
14895    case $host_os in
14896      aix*)
14897	# The AIX port of GNU ld has always aspired to compatibility
14898	# with the native linker.  However, as the warning in the GNU ld
14899	# block says, versions before 2.19.5* couldn't really create working
14900	# shared libraries, regardless of the interface used.
14901	case `$LD -v 2>&1` in
14902	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14903	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14904	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14905	  *)
14906	    lt_use_gnu_ld_interface=yes
14907	    ;;
14908	esac
14909	;;
14910      *)
14911	lt_use_gnu_ld_interface=yes
14912	;;
14913    esac
14914  fi
14915
14916  if test "$lt_use_gnu_ld_interface" = yes; then
14917    # If archive_cmds runs LD, not CC, wlarc should be empty
14918    wlarc='${wl}'
14919
14920    # Set some defaults for GNU ld with shared library support. These
14921    # are reset later if shared libraries are not supported. Putting them
14922    # here allows them to be overridden if necessary.
14923    runpath_var=LD_RUN_PATH
14924    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14925    export_dynamic_flag_spec='${wl}--export-dynamic'
14926    # ancient GNU ld didn't support --whole-archive et. al.
14927    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14928      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14929    else
14930      whole_archive_flag_spec=
14931    fi
14932    supports_anon_versioning=no
14933    case `$LD -v 2>&1` in
14934      *GNU\ gold*) supports_anon_versioning=yes ;;
14935      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14936      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14937      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14938      *\ 2.11.*) ;; # other 2.11 versions
14939      *) supports_anon_versioning=yes ;;
14940    esac
14941
14942    # See if GNU ld supports shared libraries.
14943    case $host_os in
14944    aix[3-9]*)
14945      # On AIX/PPC, the GNU linker is very broken
14946      if test "$host_cpu" != ia64; then
14947	ld_shlibs=no
14948	cat <<_LT_EOF 1>&2
14949
14950*** Warning: the GNU linker, at least up to release 2.19, is reported
14951*** to be unable to reliably create shared libraries on AIX.
14952*** Therefore, libtool is disabling shared libraries support.  If you
14953*** really care for shared libraries, you may want to install binutils
14954*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14955*** You will then need to restart the configuration process.
14956
14957_LT_EOF
14958      fi
14959      ;;
14960
14961    amigaos*)
14962      case $host_cpu in
14963      powerpc)
14964            # see comment about AmigaOS4 .so support
14965            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14966            archive_expsym_cmds=''
14967        ;;
14968      m68k)
14969            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)'
14970            hardcode_libdir_flag_spec='-L$libdir'
14971            hardcode_minus_L=yes
14972        ;;
14973      esac
14974      ;;
14975
14976    beos*)
14977      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14978	allow_undefined_flag=unsupported
14979	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14980	# support --undefined.  This deserves some investigation.  FIXME
14981	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14982      else
14983	ld_shlibs=no
14984      fi
14985      ;;
14986
14987    cygwin* | mingw* | pw32* | cegcc*)
14988      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14989      # as there is no search path for DLLs.
14990      hardcode_libdir_flag_spec='-L$libdir'
14991      export_dynamic_flag_spec='${wl}--export-all-symbols'
14992      allow_undefined_flag=unsupported
14993      always_export_symbols=no
14994      enable_shared_with_static_runtimes=yes
14995      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'
14996      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14997
14998      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14999        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15000	# If the export-symbols file already is a .def file (1st line
15001	# is EXPORTS), use it as is; otherwise, prepend...
15002	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15003	  cp $export_symbols $output_objdir/$soname.def;
15004	else
15005	  echo EXPORTS > $output_objdir/$soname.def;
15006	  cat $export_symbols >> $output_objdir/$soname.def;
15007	fi~
15008	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15009      else
15010	ld_shlibs=no
15011      fi
15012      ;;
15013
15014    haiku*)
15015      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15016      link_all_deplibs=yes
15017      ;;
15018
15019    interix[3-9]*)
15020      hardcode_direct=no
15021      hardcode_shlibpath_var=no
15022      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15023      export_dynamic_flag_spec='${wl}-E'
15024      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15025      # Instead, shared libraries are loaded at an image base (0x10000000 by
15026      # default) and relocated if they conflict, which is a slow very memory
15027      # consuming and fragmenting process.  To avoid this, we pick a random,
15028      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15029      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15030      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15031      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'
15032      ;;
15033
15034    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15035      tmp_diet=no
15036      if test "$host_os" = linux-dietlibc; then
15037	case $cc_basename in
15038	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15039	esac
15040      fi
15041      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15042	 && test "$tmp_diet" = no
15043      then
15044	tmp_addflag=' $pic_flag'
15045	tmp_sharedflag='-shared'
15046	case $cc_basename,$host_cpu in
15047        pgcc*)				# Portland Group C compiler
15048	  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'
15049	  tmp_addflag=' $pic_flag'
15050	  ;;
15051	pgf77* | pgf90* | pgf95* | pgfortran*)
15052					# Portland Group f77 and f90 compilers
15053	  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'
15054	  tmp_addflag=' $pic_flag -Mnomain' ;;
15055	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15056	  tmp_addflag=' -i_dynamic' ;;
15057	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15058	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15059	ifc* | ifort*)			# Intel Fortran compiler
15060	  tmp_addflag=' -nofor_main' ;;
15061	lf95*)				# Lahey Fortran 8.1
15062	  whole_archive_flag_spec=
15063	  tmp_sharedflag='--shared' ;;
15064	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15065	  tmp_sharedflag='-qmkshrobj'
15066	  tmp_addflag= ;;
15067	nvcc*)	# Cuda Compiler Driver 2.2
15068	  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'
15069	  compiler_needs_object=yes
15070	  ;;
15071	esac
15072	case `$CC -V 2>&1 | sed 5q` in
15073	*Sun\ C*)			# Sun C 5.9
15074	  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'
15075	  compiler_needs_object=yes
15076	  tmp_sharedflag='-G' ;;
15077	*Sun\ F*)			# Sun Fortran 8.3
15078	  tmp_sharedflag='-G' ;;
15079	esac
15080	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15081
15082        if test "x$supports_anon_versioning" = xyes; then
15083          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15084	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15085	    echo "local: *; };" >> $output_objdir/$libname.ver~
15086	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15087        fi
15088
15089	case $cc_basename in
15090	xlf* | bgf* | bgxlf* | mpixlf*)
15091	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15092	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15093	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15094	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15095	  if test "x$supports_anon_versioning" = xyes; then
15096	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15097	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15098	      echo "local: *; };" >> $output_objdir/$libname.ver~
15099	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15100	  fi
15101	  ;;
15102	esac
15103      else
15104        ld_shlibs=no
15105      fi
15106      ;;
15107
15108    netbsd*)
15109      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15110	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15111	wlarc=
15112      else
15113	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15114	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15115      fi
15116      ;;
15117
15118    solaris*)
15119      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15120	ld_shlibs=no
15121	cat <<_LT_EOF 1>&2
15122
15123*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15124*** create shared libraries on Solaris systems.  Therefore, libtool
15125*** is disabling shared libraries support.  We urge you to upgrade GNU
15126*** binutils to release 2.9.1 or newer.  Another option is to modify
15127*** your PATH or compiler configuration so that the native linker is
15128*** used, and then restart.
15129
15130_LT_EOF
15131      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15132	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15133	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15134      else
15135	ld_shlibs=no
15136      fi
15137      ;;
15138
15139    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15140      case `$LD -v 2>&1` in
15141        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15142	ld_shlibs=no
15143	cat <<_LT_EOF 1>&2
15144
15145*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15146*** reliably create shared libraries on SCO systems.  Therefore, libtool
15147*** is disabling shared libraries support.  We urge you to upgrade GNU
15148*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15149*** your PATH or compiler configuration so that the native linker is
15150*** used, and then restart.
15151
15152_LT_EOF
15153	;;
15154	*)
15155	  # For security reasons, it is highly recommended that you always
15156	  # use absolute paths for naming shared libraries, and exclude the
15157	  # DT_RUNPATH tag from executables and libraries.  But doing so
15158	  # requires that you compile everything twice, which is a pain.
15159	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15160	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15161	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15162	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15163	  else
15164	    ld_shlibs=no
15165	  fi
15166	;;
15167      esac
15168      ;;
15169
15170    sunos4*)
15171      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15172      wlarc=
15173      hardcode_direct=yes
15174      hardcode_shlibpath_var=no
15175      ;;
15176
15177    *)
15178      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15179	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15180	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15181      else
15182	ld_shlibs=no
15183      fi
15184      ;;
15185    esac
15186
15187    if test "$ld_shlibs" = no; then
15188      runpath_var=
15189      hardcode_libdir_flag_spec=
15190      export_dynamic_flag_spec=
15191      whole_archive_flag_spec=
15192    fi
15193  else
15194    # PORTME fill in a description of your system's linker (not GNU ld)
15195    case $host_os in
15196    aix3*)
15197      allow_undefined_flag=unsupported
15198      always_export_symbols=yes
15199      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'
15200      # Note: this linker hardcodes the directories in LIBPATH if there
15201      # are no directories specified by -L.
15202      hardcode_minus_L=yes
15203      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15204	# Neither direct hardcoding nor static linking is supported with a
15205	# broken collect2.
15206	hardcode_direct=unsupported
15207      fi
15208      ;;
15209
15210    aix[4-9]*)
15211      if test "$host_cpu" = ia64; then
15212	# On IA64, the linker does run time linking by default, so we don't
15213	# have to do anything special.
15214	aix_use_runtimelinking=no
15215	exp_sym_flag='-Bexport'
15216	no_entry_flag=""
15217      else
15218	# If we're using GNU nm, then we don't want the "-C" option.
15219	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15220	# Also, AIX nm treats weak defined symbols like other global
15221	# defined symbols, whereas GNU nm marks them as "W".
15222	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15223	  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'
15224	else
15225	  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'
15226	fi
15227	aix_use_runtimelinking=no
15228
15229	# Test if we are trying to use run time linking or normal
15230	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15231	# need to do runtime linking.
15232	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15233	  for ld_flag in $LDFLAGS; do
15234	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15235	    aix_use_runtimelinking=yes
15236	    break
15237	  fi
15238	  done
15239	  ;;
15240	esac
15241
15242	exp_sym_flag='-bexport'
15243	no_entry_flag='-bnoentry'
15244      fi
15245
15246      # When large executables or shared objects are built, AIX ld can
15247      # have problems creating the table of contents.  If linking a library
15248      # or program results in "error TOC overflow" add -mminimal-toc to
15249      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15250      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15251
15252      archive_cmds=''
15253      hardcode_direct=yes
15254      hardcode_direct_absolute=yes
15255      hardcode_libdir_separator=':'
15256      link_all_deplibs=yes
15257      file_list_spec='${wl}-f,'
15258
15259      if test "$GCC" = yes; then
15260	case $host_os in aix4.[012]|aix4.[012].*)
15261	# We only want to do this on AIX 4.2 and lower, the check
15262	# below for broken collect2 doesn't work under 4.3+
15263	  collect2name=`${CC} -print-prog-name=collect2`
15264	  if test -f "$collect2name" &&
15265	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15266	  then
15267	  # We have reworked collect2
15268	  :
15269	  else
15270	  # We have old collect2
15271	  hardcode_direct=unsupported
15272	  # It fails to find uninstalled libraries when the uninstalled
15273	  # path is not listed in the libpath.  Setting hardcode_minus_L
15274	  # to unsupported forces relinking
15275	  hardcode_minus_L=yes
15276	  hardcode_libdir_flag_spec='-L$libdir'
15277	  hardcode_libdir_separator=
15278	  fi
15279	  ;;
15280	esac
15281	shared_flag='-shared'
15282	if test "$aix_use_runtimelinking" = yes; then
15283	  shared_flag="$shared_flag "'${wl}-G'
15284	fi
15285      else
15286	# not using gcc
15287	if test "$host_cpu" = ia64; then
15288	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15289	# chokes on -Wl,-G. The following line is correct:
15290	  shared_flag='-G'
15291	else
15292	  if test "$aix_use_runtimelinking" = yes; then
15293	    shared_flag='${wl}-G'
15294	  else
15295	    shared_flag='${wl}-bM:SRE'
15296	  fi
15297	fi
15298      fi
15299
15300      export_dynamic_flag_spec='${wl}-bexpall'
15301      # It seems that -bexpall does not export symbols beginning with
15302      # underscore (_), so it is better to generate a list of symbols to export.
15303      always_export_symbols=yes
15304      if test "$aix_use_runtimelinking" = yes; then
15305	# Warning - without using the other runtime loading flags (-brtl),
15306	# -berok will link without error, but may produce a broken library.
15307	allow_undefined_flag='-berok'
15308        # Determine the default libpath from the value encoded in an
15309        # empty executable.
15310        if test "${lt_cv_aix_libpath+set}" = set; then
15311  aix_libpath=$lt_cv_aix_libpath
15312else
15313  if ${lt_cv_aix_libpath_+:} false; then :
15314  $as_echo_n "(cached) " >&6
15315else
15316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15317/* end confdefs.h.  */
15318
15319int
15320main ()
15321{
15322
15323  ;
15324  return 0;
15325}
15326_ACEOF
15327if ac_fn_c_try_link "$LINENO"; then :
15328
15329  lt_aix_libpath_sed='
15330      /Import File Strings/,/^$/ {
15331	  /^0/ {
15332	      s/^0  *\([^ ]*\) *$/\1/
15333	      p
15334	  }
15335      }'
15336  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15337  # Check for a 64-bit object if we didn't find anything.
15338  if test -z "$lt_cv_aix_libpath_"; then
15339    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15340  fi
15341fi
15342rm -f core conftest.err conftest.$ac_objext \
15343    conftest$ac_exeext conftest.$ac_ext
15344  if test -z "$lt_cv_aix_libpath_"; then
15345    lt_cv_aix_libpath_="/usr/lib:/lib"
15346  fi
15347
15348fi
15349
15350  aix_libpath=$lt_cv_aix_libpath_
15351fi
15352
15353        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15354        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"
15355      else
15356	if test "$host_cpu" = ia64; then
15357	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15358	  allow_undefined_flag="-z nodefs"
15359	  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"
15360	else
15361	 # Determine the default libpath from the value encoded in an
15362	 # empty executable.
15363	 if test "${lt_cv_aix_libpath+set}" = set; then
15364  aix_libpath=$lt_cv_aix_libpath
15365else
15366  if ${lt_cv_aix_libpath_+:} false; then :
15367  $as_echo_n "(cached) " >&6
15368else
15369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15370/* end confdefs.h.  */
15371
15372int
15373main ()
15374{
15375
15376  ;
15377  return 0;
15378}
15379_ACEOF
15380if ac_fn_c_try_link "$LINENO"; then :
15381
15382  lt_aix_libpath_sed='
15383      /Import File Strings/,/^$/ {
15384	  /^0/ {
15385	      s/^0  *\([^ ]*\) *$/\1/
15386	      p
15387	  }
15388      }'
15389  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15390  # Check for a 64-bit object if we didn't find anything.
15391  if test -z "$lt_cv_aix_libpath_"; then
15392    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15393  fi
15394fi
15395rm -f core conftest.err conftest.$ac_objext \
15396    conftest$ac_exeext conftest.$ac_ext
15397  if test -z "$lt_cv_aix_libpath_"; then
15398    lt_cv_aix_libpath_="/usr/lib:/lib"
15399  fi
15400
15401fi
15402
15403  aix_libpath=$lt_cv_aix_libpath_
15404fi
15405
15406	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15407	  # Warning - without using the other run time loading flags,
15408	  # -berok will link without error, but may produce a broken library.
15409	  no_undefined_flag=' ${wl}-bernotok'
15410	  allow_undefined_flag=' ${wl}-berok'
15411	  if test "$with_gnu_ld" = yes; then
15412	    # We only use this code for GNU lds that support --whole-archive.
15413	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15414	  else
15415	    # Exported symbols can be pulled into shared objects from archives
15416	    whole_archive_flag_spec='$convenience'
15417	  fi
15418	  archive_cmds_need_lc=yes
15419	  # This is similar to how AIX traditionally builds its shared libraries.
15420	  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'
15421	fi
15422      fi
15423      ;;
15424
15425    amigaos*)
15426      case $host_cpu in
15427      powerpc)
15428            # see comment about AmigaOS4 .so support
15429            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15430            archive_expsym_cmds=''
15431        ;;
15432      m68k)
15433            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)'
15434            hardcode_libdir_flag_spec='-L$libdir'
15435            hardcode_minus_L=yes
15436        ;;
15437      esac
15438      ;;
15439
15440    bsdi[45]*)
15441      export_dynamic_flag_spec=-rdynamic
15442      ;;
15443
15444    cygwin* | mingw* | pw32* | cegcc*)
15445      # When not using gcc, we currently assume that we are using
15446      # Microsoft Visual C++.
15447      # hardcode_libdir_flag_spec is actually meaningless, as there is
15448      # no search path for DLLs.
15449      case $cc_basename in
15450      cl*)
15451	# Native MSVC
15452	hardcode_libdir_flag_spec=' '
15453	allow_undefined_flag=unsupported
15454	always_export_symbols=yes
15455	file_list_spec='@'
15456	# Tell ltmain to make .lib files, not .a files.
15457	libext=lib
15458	# Tell ltmain to make .dll files, not .so files.
15459	shrext_cmds=".dll"
15460	# FIXME: Setting linknames here is a bad hack.
15461	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15462	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15463	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15464	  else
15465	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15466	  fi~
15467	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15468	  linknames='
15469	# The linker will not automatically build a static lib if we build a DLL.
15470	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15471	enable_shared_with_static_runtimes=yes
15472	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15473	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15474	# Don't use ranlib
15475	old_postinstall_cmds='chmod 644 $oldlib'
15476	postlink_cmds='lt_outputfile="@OUTPUT@"~
15477	  lt_tool_outputfile="@TOOL_OUTPUT@"~
15478	  case $lt_outputfile in
15479	    *.exe|*.EXE) ;;
15480	    *)
15481	      lt_outputfile="$lt_outputfile.exe"
15482	      lt_tool_outputfile="$lt_tool_outputfile.exe"
15483	      ;;
15484	  esac~
15485	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15486	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15487	    $RM "$lt_outputfile.manifest";
15488	  fi'
15489	;;
15490      *)
15491	# Assume MSVC wrapper
15492	hardcode_libdir_flag_spec=' '
15493	allow_undefined_flag=unsupported
15494	# Tell ltmain to make .lib files, not .a files.
15495	libext=lib
15496	# Tell ltmain to make .dll files, not .so files.
15497	shrext_cmds=".dll"
15498	# FIXME: Setting linknames here is a bad hack.
15499	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15500	# The linker will automatically build a .lib file if we build a DLL.
15501	old_archive_from_new_cmds='true'
15502	# FIXME: Should let the user specify the lib program.
15503	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15504	enable_shared_with_static_runtimes=yes
15505	;;
15506      esac
15507      ;;
15508
15509    darwin* | rhapsody*)
15510
15511
15512  archive_cmds_need_lc=no
15513  hardcode_direct=no
15514  hardcode_automatic=yes
15515  hardcode_shlibpath_var=unsupported
15516  if test "$lt_cv_ld_force_load" = "yes"; then
15517    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\"`'
15518
15519  else
15520    whole_archive_flag_spec=''
15521  fi
15522  link_all_deplibs=yes
15523  allow_undefined_flag="$_lt_dar_allow_undefined"
15524  case $cc_basename in
15525     ifort*) _lt_dar_can_shared=yes ;;
15526     *) _lt_dar_can_shared=$GCC ;;
15527  esac
15528  if test "$_lt_dar_can_shared" = "yes"; then
15529    output_verbose_link_cmd=func_echo_all
15530    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15531    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15532    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}"
15533    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}"
15534
15535  else
15536  ld_shlibs=no
15537  fi
15538
15539      ;;
15540
15541    dgux*)
15542      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15543      hardcode_libdir_flag_spec='-L$libdir'
15544      hardcode_shlibpath_var=no
15545      ;;
15546
15547    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15548    # support.  Future versions do this automatically, but an explicit c++rt0.o
15549    # does not break anything, and helps significantly (at the cost of a little
15550    # extra space).
15551    freebsd2.2*)
15552      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15553      hardcode_libdir_flag_spec='-R$libdir'
15554      hardcode_direct=yes
15555      hardcode_shlibpath_var=no
15556      ;;
15557
15558    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15559    freebsd2.*)
15560      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15561      hardcode_direct=yes
15562      hardcode_minus_L=yes
15563      hardcode_shlibpath_var=no
15564      ;;
15565
15566    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15567    freebsd* | dragonfly*)
15568      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15569      hardcode_libdir_flag_spec='-R$libdir'
15570      hardcode_direct=yes
15571      hardcode_shlibpath_var=no
15572      ;;
15573
15574    hpux9*)
15575      if test "$GCC" = yes; then
15576	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'
15577      else
15578	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'
15579      fi
15580      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15581      hardcode_libdir_separator=:
15582      hardcode_direct=yes
15583
15584      # hardcode_minus_L: Not really in the search PATH,
15585      # but as the default location of the library.
15586      hardcode_minus_L=yes
15587      export_dynamic_flag_spec='${wl}-E'
15588      ;;
15589
15590    hpux10*)
15591      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15592	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15593      else
15594	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15595      fi
15596      if test "$with_gnu_ld" = no; then
15597	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15598	hardcode_libdir_separator=:
15599	hardcode_direct=yes
15600	hardcode_direct_absolute=yes
15601	export_dynamic_flag_spec='${wl}-E'
15602	# hardcode_minus_L: Not really in the search PATH,
15603	# but as the default location of the library.
15604	hardcode_minus_L=yes
15605      fi
15606      ;;
15607
15608    hpux11*)
15609      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15610	case $host_cpu in
15611	hppa*64*)
15612	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15613	  ;;
15614	ia64*)
15615	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15616	  ;;
15617	*)
15618	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15619	  ;;
15620	esac
15621      else
15622	case $host_cpu in
15623	hppa*64*)
15624	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15625	  ;;
15626	ia64*)
15627	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15628	  ;;
15629	*)
15630
15631	  # Older versions of the 11.00 compiler do not understand -b yet
15632	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15633	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15634$as_echo_n "checking if $CC understands -b... " >&6; }
15635if ${lt_cv_prog_compiler__b+:} false; then :
15636  $as_echo_n "(cached) " >&6
15637else
15638  lt_cv_prog_compiler__b=no
15639   save_LDFLAGS="$LDFLAGS"
15640   LDFLAGS="$LDFLAGS -b"
15641   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15642   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15643     # The linker can only warn and ignore the option if not recognized
15644     # So say no if there are warnings
15645     if test -s conftest.err; then
15646       # Append any errors to the config.log.
15647       cat conftest.err 1>&5
15648       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15649       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15650       if diff conftest.exp conftest.er2 >/dev/null; then
15651         lt_cv_prog_compiler__b=yes
15652       fi
15653     else
15654       lt_cv_prog_compiler__b=yes
15655     fi
15656   fi
15657   $RM -r conftest*
15658   LDFLAGS="$save_LDFLAGS"
15659
15660fi
15661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15662$as_echo "$lt_cv_prog_compiler__b" >&6; }
15663
15664if test x"$lt_cv_prog_compiler__b" = xyes; then
15665    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15666else
15667    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15668fi
15669
15670	  ;;
15671	esac
15672      fi
15673      if test "$with_gnu_ld" = no; then
15674	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15675	hardcode_libdir_separator=:
15676
15677	case $host_cpu in
15678	hppa*64*|ia64*)
15679	  hardcode_direct=no
15680	  hardcode_shlibpath_var=no
15681	  ;;
15682	*)
15683	  hardcode_direct=yes
15684	  hardcode_direct_absolute=yes
15685	  export_dynamic_flag_spec='${wl}-E'
15686
15687	  # hardcode_minus_L: Not really in the search PATH,
15688	  # but as the default location of the library.
15689	  hardcode_minus_L=yes
15690	  ;;
15691	esac
15692      fi
15693      ;;
15694
15695    irix5* | irix6* | nonstopux*)
15696      if test "$GCC" = yes; then
15697	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'
15698	# Try to use the -exported_symbol ld option, if it does not
15699	# work, assume that -exports_file does not work either and
15700	# implicitly export all symbols.
15701	# This should be the same for all languages, so no per-tag cache variable.
15702	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15703$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15704if ${lt_cv_irix_exported_symbol+:} false; then :
15705  $as_echo_n "(cached) " >&6
15706else
15707  save_LDFLAGS="$LDFLAGS"
15708	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15709	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15710/* end confdefs.h.  */
15711int foo (void) { return 0; }
15712_ACEOF
15713if ac_fn_c_try_link "$LINENO"; then :
15714  lt_cv_irix_exported_symbol=yes
15715else
15716  lt_cv_irix_exported_symbol=no
15717fi
15718rm -f core conftest.err conftest.$ac_objext \
15719    conftest$ac_exeext conftest.$ac_ext
15720           LDFLAGS="$save_LDFLAGS"
15721fi
15722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15723$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15724	if test "$lt_cv_irix_exported_symbol" = yes; then
15725          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'
15726	fi
15727      else
15728	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'
15729	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'
15730      fi
15731      archive_cmds_need_lc='no'
15732      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15733      hardcode_libdir_separator=:
15734      inherit_rpath=yes
15735      link_all_deplibs=yes
15736      ;;
15737
15738    netbsd*)
15739      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15740	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15741      else
15742	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15743      fi
15744      hardcode_libdir_flag_spec='-R$libdir'
15745      hardcode_direct=yes
15746      hardcode_shlibpath_var=no
15747      ;;
15748
15749    newsos6)
15750      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15751      hardcode_direct=yes
15752      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15753      hardcode_libdir_separator=:
15754      hardcode_shlibpath_var=no
15755      ;;
15756
15757    *nto* | *qnx*)
15758      ;;
15759
15760    openbsd*)
15761      if test -f /usr/libexec/ld.so; then
15762	hardcode_direct=yes
15763	hardcode_shlibpath_var=no
15764	hardcode_direct_absolute=yes
15765	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15766	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15767	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15768	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15769	  export_dynamic_flag_spec='${wl}-E'
15770	else
15771	  case $host_os in
15772	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15773	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15774	     hardcode_libdir_flag_spec='-R$libdir'
15775	     ;;
15776	   *)
15777	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15778	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15779	     ;;
15780	  esac
15781	fi
15782      else
15783	ld_shlibs=no
15784      fi
15785      ;;
15786
15787    os2*)
15788      hardcode_libdir_flag_spec='-L$libdir'
15789      hardcode_minus_L=yes
15790      allow_undefined_flag=unsupported
15791      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'
15792      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15793      ;;
15794
15795    osf3*)
15796      if test "$GCC" = yes; then
15797	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15798	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'
15799      else
15800	allow_undefined_flag=' -expect_unresolved \*'
15801	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'
15802      fi
15803      archive_cmds_need_lc='no'
15804      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15805      hardcode_libdir_separator=:
15806      ;;
15807
15808    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15809      if test "$GCC" = yes; then
15810	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15811	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'
15812	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15813      else
15814	allow_undefined_flag=' -expect_unresolved \*'
15815	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'
15816	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~
15817	$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'
15818
15819	# Both c and cxx compiler support -rpath directly
15820	hardcode_libdir_flag_spec='-rpath $libdir'
15821      fi
15822      archive_cmds_need_lc='no'
15823      hardcode_libdir_separator=:
15824      ;;
15825
15826    solaris*)
15827      no_undefined_flag=' -z defs'
15828      if test "$GCC" = yes; then
15829	wlarc='${wl}'
15830	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15831	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15832	  $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'
15833      else
15834	case `$CC -V 2>&1` in
15835	*"Compilers 5.0"*)
15836	  wlarc=''
15837	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15838	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15839	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15840	  ;;
15841	*)
15842	  wlarc='${wl}'
15843	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15844	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15845	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15846	  ;;
15847	esac
15848      fi
15849      hardcode_libdir_flag_spec='-R$libdir'
15850      hardcode_shlibpath_var=no
15851      case $host_os in
15852      solaris2.[0-5] | solaris2.[0-5].*) ;;
15853      *)
15854	# The compiler driver will combine and reorder linker options,
15855	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15856	# but is careful enough not to reorder.
15857	# Supported since Solaris 2.6 (maybe 2.5.1?)
15858	if test "$GCC" = yes; then
15859	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15860	else
15861	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15862	fi
15863	;;
15864      esac
15865      link_all_deplibs=yes
15866      ;;
15867
15868    sunos4*)
15869      if test "x$host_vendor" = xsequent; then
15870	# Use $CC to link under sequent, because it throws in some extra .o
15871	# files that make .init and .fini sections work.
15872	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15873      else
15874	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15875      fi
15876      hardcode_libdir_flag_spec='-L$libdir'
15877      hardcode_direct=yes
15878      hardcode_minus_L=yes
15879      hardcode_shlibpath_var=no
15880      ;;
15881
15882    sysv4)
15883      case $host_vendor in
15884	sni)
15885	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15886	  hardcode_direct=yes # is this really true???
15887	;;
15888	siemens)
15889	  ## LD is ld it makes a PLAMLIB
15890	  ## CC just makes a GrossModule.
15891	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15892	  reload_cmds='$CC -r -o $output$reload_objs'
15893	  hardcode_direct=no
15894        ;;
15895	motorola)
15896	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15897	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15898	;;
15899      esac
15900      runpath_var='LD_RUN_PATH'
15901      hardcode_shlibpath_var=no
15902      ;;
15903
15904    sysv4.3*)
15905      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15906      hardcode_shlibpath_var=no
15907      export_dynamic_flag_spec='-Bexport'
15908      ;;
15909
15910    sysv4*MP*)
15911      if test -d /usr/nec; then
15912	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15913	hardcode_shlibpath_var=no
15914	runpath_var=LD_RUN_PATH
15915	hardcode_runpath_var=yes
15916	ld_shlibs=yes
15917      fi
15918      ;;
15919
15920    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15921      no_undefined_flag='${wl}-z,text'
15922      archive_cmds_need_lc=no
15923      hardcode_shlibpath_var=no
15924      runpath_var='LD_RUN_PATH'
15925
15926      if test "$GCC" = yes; then
15927	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15928	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15929      else
15930	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15931	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15932      fi
15933      ;;
15934
15935    sysv5* | sco3.2v5* | sco5v6*)
15936      # Note: We can NOT use -z defs as we might desire, because we do not
15937      # link with -lc, and that would cause any symbols used from libc to
15938      # always be unresolved, which means just about no library would
15939      # ever link correctly.  If we're not using GNU ld we use -z text
15940      # though, which does catch some bad symbols but isn't as heavy-handed
15941      # as -z defs.
15942      no_undefined_flag='${wl}-z,text'
15943      allow_undefined_flag='${wl}-z,nodefs'
15944      archive_cmds_need_lc=no
15945      hardcode_shlibpath_var=no
15946      hardcode_libdir_flag_spec='${wl}-R,$libdir'
15947      hardcode_libdir_separator=':'
15948      link_all_deplibs=yes
15949      export_dynamic_flag_spec='${wl}-Bexport'
15950      runpath_var='LD_RUN_PATH'
15951
15952      if test "$GCC" = yes; then
15953	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15954	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15955      else
15956	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15957	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15958      fi
15959      ;;
15960
15961    uts4*)
15962      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15963      hardcode_libdir_flag_spec='-L$libdir'
15964      hardcode_shlibpath_var=no
15965      ;;
15966
15967    *)
15968      ld_shlibs=no
15969      ;;
15970    esac
15971
15972    if test x$host_vendor = xsni; then
15973      case $host in
15974      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15975	export_dynamic_flag_spec='${wl}-Blargedynsym'
15976	;;
15977      esac
15978    fi
15979  fi
15980
15981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15982$as_echo "$ld_shlibs" >&6; }
15983test "$ld_shlibs" = no && can_build_shared=no
15984
15985with_gnu_ld=$with_gnu_ld
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001#
16002# Do we need to explicitly link libc?
16003#
16004case "x$archive_cmds_need_lc" in
16005x|xyes)
16006  # Assume -lc should be added
16007  archive_cmds_need_lc=yes
16008
16009  if test "$enable_shared" = yes && test "$GCC" = yes; then
16010    case $archive_cmds in
16011    *'~'*)
16012      # FIXME: we may have to deal with multi-command sequences.
16013      ;;
16014    '$CC '*)
16015      # Test whether the compiler implicitly links with -lc since on some
16016      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16017      # to ld, don't add -lc before -lgcc.
16018      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16019$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16020if ${lt_cv_archive_cmds_need_lc+:} false; then :
16021  $as_echo_n "(cached) " >&6
16022else
16023  $RM conftest*
16024	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16025
16026	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16027  (eval $ac_compile) 2>&5
16028  ac_status=$?
16029  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16030  test $ac_status = 0; } 2>conftest.err; then
16031	  soname=conftest
16032	  lib=conftest
16033	  libobjs=conftest.$ac_objext
16034	  deplibs=
16035	  wl=$lt_prog_compiler_wl
16036	  pic_flag=$lt_prog_compiler_pic
16037	  compiler_flags=-v
16038	  linker_flags=-v
16039	  verstring=
16040	  output_objdir=.
16041	  libname=conftest
16042	  lt_save_allow_undefined_flag=$allow_undefined_flag
16043	  allow_undefined_flag=
16044	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16045  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16046  ac_status=$?
16047  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16048  test $ac_status = 0; }
16049	  then
16050	    lt_cv_archive_cmds_need_lc=no
16051	  else
16052	    lt_cv_archive_cmds_need_lc=yes
16053	  fi
16054	  allow_undefined_flag=$lt_save_allow_undefined_flag
16055	else
16056	  cat conftest.err 1>&5
16057	fi
16058	$RM conftest*
16059
16060fi
16061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16062$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16063      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16064      ;;
16065    esac
16066  fi
16067  ;;
16068esac
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16222$as_echo_n "checking dynamic linker characteristics... " >&6; }
16223
16224if test "$GCC" = yes; then
16225  case $host_os in
16226    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16227    *) lt_awk_arg="/^libraries:/" ;;
16228  esac
16229  case $host_os in
16230    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16231    *) lt_sed_strip_eq="s,=/,/,g" ;;
16232  esac
16233  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16234  case $lt_search_path_spec in
16235  *\;*)
16236    # if the path contains ";" then we assume it to be the separator
16237    # otherwise default to the standard path separator (i.e. ":") - it is
16238    # assumed that no part of a normal pathname contains ";" but that should
16239    # okay in the real world where ";" in dirpaths is itself problematic.
16240    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16241    ;;
16242  *)
16243    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16244    ;;
16245  esac
16246  # Ok, now we have the path, separated by spaces, we can step through it
16247  # and add multilib dir if necessary.
16248  lt_tmp_lt_search_path_spec=
16249  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16250  for lt_sys_path in $lt_search_path_spec; do
16251    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16252      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16253    else
16254      test -d "$lt_sys_path" && \
16255	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16256    fi
16257  done
16258  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16259BEGIN {RS=" "; FS="/|\n";} {
16260  lt_foo="";
16261  lt_count=0;
16262  for (lt_i = NF; lt_i > 0; lt_i--) {
16263    if ($lt_i != "" && $lt_i != ".") {
16264      if ($lt_i == "..") {
16265        lt_count++;
16266      } else {
16267        if (lt_count == 0) {
16268          lt_foo="/" $lt_i lt_foo;
16269        } else {
16270          lt_count--;
16271        }
16272      }
16273    }
16274  }
16275  if (lt_foo != "") { lt_freq[lt_foo]++; }
16276  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16277}'`
16278  # AWK program above erroneously prepends '/' to C:/dos/paths
16279  # for these hosts.
16280  case $host_os in
16281    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16282      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16283  esac
16284  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16285else
16286  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16287fi
16288library_names_spec=
16289libname_spec='lib$name'
16290soname_spec=
16291shrext_cmds=".so"
16292postinstall_cmds=
16293postuninstall_cmds=
16294finish_cmds=
16295finish_eval=
16296shlibpath_var=
16297shlibpath_overrides_runpath=unknown
16298version_type=none
16299dynamic_linker="$host_os ld.so"
16300sys_lib_dlsearch_path_spec="/lib /usr/lib"
16301need_lib_prefix=unknown
16302hardcode_into_libs=no
16303
16304# when you set need_version to no, make sure it does not cause -set_version
16305# flags to be left without arguments
16306need_version=unknown
16307
16308case $host_os in
16309aix3*)
16310  version_type=linux # correct to gnu/linux during the next big refactor
16311  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16312  shlibpath_var=LIBPATH
16313
16314  # AIX 3 has no versioning support, so we append a major version to the name.
16315  soname_spec='${libname}${release}${shared_ext}$major'
16316  ;;
16317
16318aix[4-9]*)
16319  version_type=linux # correct to gnu/linux during the next big refactor
16320  need_lib_prefix=no
16321  need_version=no
16322  hardcode_into_libs=yes
16323  if test "$host_cpu" = ia64; then
16324    # AIX 5 supports IA64
16325    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16326    shlibpath_var=LD_LIBRARY_PATH
16327  else
16328    # With GCC up to 2.95.x, collect2 would create an import file
16329    # for dependence libraries.  The import file would start with
16330    # the line `#! .'.  This would cause the generated library to
16331    # depend on `.', always an invalid library.  This was fixed in
16332    # development snapshots of GCC prior to 3.0.
16333    case $host_os in
16334      aix4 | aix4.[01] | aix4.[01].*)
16335      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16336	   echo ' yes '
16337	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16338	:
16339      else
16340	can_build_shared=no
16341      fi
16342      ;;
16343    esac
16344    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16345    # soname into executable. Probably we can add versioning support to
16346    # collect2, so additional links can be useful in future.
16347    if test "$aix_use_runtimelinking" = yes; then
16348      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16349      # instead of lib<name>.a to let people know that these are not
16350      # typical AIX shared libraries.
16351      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16352    else
16353      # We preserve .a as extension for shared libraries through AIX4.2
16354      # and later when we are not doing run time linking.
16355      library_names_spec='${libname}${release}.a $libname.a'
16356      soname_spec='${libname}${release}${shared_ext}$major'
16357    fi
16358    shlibpath_var=LIBPATH
16359  fi
16360  ;;
16361
16362amigaos*)
16363  case $host_cpu in
16364  powerpc)
16365    # Since July 2007 AmigaOS4 officially supports .so libraries.
16366    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16367    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16368    ;;
16369  m68k)
16370    library_names_spec='$libname.ixlibrary $libname.a'
16371    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16372    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'
16373    ;;
16374  esac
16375  ;;
16376
16377beos*)
16378  library_names_spec='${libname}${shared_ext}'
16379  dynamic_linker="$host_os ld.so"
16380  shlibpath_var=LIBRARY_PATH
16381  ;;
16382
16383bsdi[45]*)
16384  version_type=linux # correct to gnu/linux during the next big refactor
16385  need_version=no
16386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16387  soname_spec='${libname}${release}${shared_ext}$major'
16388  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16389  shlibpath_var=LD_LIBRARY_PATH
16390  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16391  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16392  # the default ld.so.conf also contains /usr/contrib/lib and
16393  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16394  # libtool to hard-code these into programs
16395  ;;
16396
16397cygwin* | mingw* | pw32* | cegcc*)
16398  version_type=windows
16399  shrext_cmds=".dll"
16400  need_version=no
16401  need_lib_prefix=no
16402
16403  case $GCC,$cc_basename in
16404  yes,*)
16405    # gcc
16406    library_names_spec='$libname.dll.a'
16407    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16408    postinstall_cmds='base_file=`basename \${file}`~
16409      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16410      dldir=$destdir/`dirname \$dlpath`~
16411      test -d \$dldir || mkdir -p \$dldir~
16412      $install_prog $dir/$dlname \$dldir/$dlname~
16413      chmod a+x \$dldir/$dlname~
16414      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16415        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16416      fi'
16417    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16418      dlpath=$dir/\$dldll~
16419       $RM \$dlpath'
16420    shlibpath_overrides_runpath=yes
16421
16422    case $host_os in
16423    cygwin*)
16424      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16425      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16426
16427      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16428      ;;
16429    mingw* | cegcc*)
16430      # MinGW DLLs use traditional 'lib' prefix
16431      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16432      ;;
16433    pw32*)
16434      # pw32 DLLs use 'pw' prefix rather than 'lib'
16435      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16436      ;;
16437    esac
16438    dynamic_linker='Win32 ld.exe'
16439    ;;
16440
16441  *,cl*)
16442    # Native MSVC
16443    libname_spec='$name'
16444    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16445    library_names_spec='${libname}.dll.lib'
16446
16447    case $build_os in
16448    mingw*)
16449      sys_lib_search_path_spec=
16450      lt_save_ifs=$IFS
16451      IFS=';'
16452      for lt_path in $LIB
16453      do
16454        IFS=$lt_save_ifs
16455        # Let DOS variable expansion print the short 8.3 style file name.
16456        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16457        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16458      done
16459      IFS=$lt_save_ifs
16460      # Convert to MSYS style.
16461      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16462      ;;
16463    cygwin*)
16464      # Convert to unix form, then to dos form, then back to unix form
16465      # but this time dos style (no spaces!) so that the unix form looks
16466      # like /cygdrive/c/PROGRA~1:/cygdr...
16467      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16468      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16469      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16470      ;;
16471    *)
16472      sys_lib_search_path_spec="$LIB"
16473      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16474        # It is most probably a Windows format PATH.
16475        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16476      else
16477        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16478      fi
16479      # FIXME: find the short name or the path components, as spaces are
16480      # common. (e.g. "Program Files" -> "PROGRA~1")
16481      ;;
16482    esac
16483
16484    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16485    postinstall_cmds='base_file=`basename \${file}`~
16486      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16487      dldir=$destdir/`dirname \$dlpath`~
16488      test -d \$dldir || mkdir -p \$dldir~
16489      $install_prog $dir/$dlname \$dldir/$dlname'
16490    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16491      dlpath=$dir/\$dldll~
16492       $RM \$dlpath'
16493    shlibpath_overrides_runpath=yes
16494    dynamic_linker='Win32 link.exe'
16495    ;;
16496
16497  *)
16498    # Assume MSVC wrapper
16499    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16500    dynamic_linker='Win32 ld.exe'
16501    ;;
16502  esac
16503  # FIXME: first we should search . and the directory the executable is in
16504  shlibpath_var=PATH
16505  ;;
16506
16507darwin* | rhapsody*)
16508  dynamic_linker="$host_os dyld"
16509  version_type=darwin
16510  need_lib_prefix=no
16511  need_version=no
16512  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16513  soname_spec='${libname}${release}${major}$shared_ext'
16514  shlibpath_overrides_runpath=yes
16515  shlibpath_var=DYLD_LIBRARY_PATH
16516  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16517
16518  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16519  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16520  ;;
16521
16522dgux*)
16523  version_type=linux # correct to gnu/linux during the next big refactor
16524  need_lib_prefix=no
16525  need_version=no
16526  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16527  soname_spec='${libname}${release}${shared_ext}$major'
16528  shlibpath_var=LD_LIBRARY_PATH
16529  ;;
16530
16531freebsd* | dragonfly*)
16532  # DragonFly does not have aout.  When/if they implement a new
16533  # versioning mechanism, adjust this.
16534  if test -x /usr/bin/objformat; then
16535    objformat=`/usr/bin/objformat`
16536  else
16537    case $host_os in
16538    freebsd[23].*) objformat=aout ;;
16539    *) objformat=elf ;;
16540    esac
16541  fi
16542  version_type=freebsd-$objformat
16543  case $version_type in
16544    freebsd-elf*)
16545      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16546      need_version=no
16547      need_lib_prefix=no
16548      ;;
16549    freebsd-*)
16550      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16551      need_version=yes
16552      ;;
16553  esac
16554  shlibpath_var=LD_LIBRARY_PATH
16555  case $host_os in
16556  freebsd2.*)
16557    shlibpath_overrides_runpath=yes
16558    ;;
16559  freebsd3.[01]* | freebsdelf3.[01]*)
16560    shlibpath_overrides_runpath=yes
16561    hardcode_into_libs=yes
16562    ;;
16563  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16564  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16565    shlibpath_overrides_runpath=no
16566    hardcode_into_libs=yes
16567    ;;
16568  *) # from 4.6 on, and DragonFly
16569    shlibpath_overrides_runpath=yes
16570    hardcode_into_libs=yes
16571    ;;
16572  esac
16573  ;;
16574
16575gnu*)
16576  version_type=linux # correct to gnu/linux during the next big refactor
16577  need_lib_prefix=no
16578  need_version=no
16579  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16580  soname_spec='${libname}${release}${shared_ext}$major'
16581  shlibpath_var=LD_LIBRARY_PATH
16582  shlibpath_overrides_runpath=no
16583  hardcode_into_libs=yes
16584  ;;
16585
16586haiku*)
16587  version_type=linux # correct to gnu/linux during the next big refactor
16588  need_lib_prefix=no
16589  need_version=no
16590  dynamic_linker="$host_os runtime_loader"
16591  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16592  soname_spec='${libname}${release}${shared_ext}$major'
16593  shlibpath_var=LIBRARY_PATH
16594  shlibpath_overrides_runpath=yes
16595  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16596  hardcode_into_libs=yes
16597  ;;
16598
16599hpux9* | hpux10* | hpux11*)
16600  # Give a soname corresponding to the major version so that dld.sl refuses to
16601  # link against other versions.
16602  version_type=sunos
16603  need_lib_prefix=no
16604  need_version=no
16605  case $host_cpu in
16606  ia64*)
16607    shrext_cmds='.so'
16608    hardcode_into_libs=yes
16609    dynamic_linker="$host_os dld.so"
16610    shlibpath_var=LD_LIBRARY_PATH
16611    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16612    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16613    soname_spec='${libname}${release}${shared_ext}$major'
16614    if test "X$HPUX_IA64_MODE" = X32; then
16615      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16616    else
16617      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16618    fi
16619    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16620    ;;
16621  hppa*64*)
16622    shrext_cmds='.sl'
16623    hardcode_into_libs=yes
16624    dynamic_linker="$host_os dld.sl"
16625    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16626    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16627    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16628    soname_spec='${libname}${release}${shared_ext}$major'
16629    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16630    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16631    ;;
16632  *)
16633    shrext_cmds='.sl'
16634    dynamic_linker="$host_os dld.sl"
16635    shlibpath_var=SHLIB_PATH
16636    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16637    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16638    soname_spec='${libname}${release}${shared_ext}$major'
16639    ;;
16640  esac
16641  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16642  postinstall_cmds='chmod 555 $lib'
16643  # or fails outright, so override atomically:
16644  install_override_mode=555
16645  ;;
16646
16647interix[3-9]*)
16648  version_type=linux # correct to gnu/linux during the next big refactor
16649  need_lib_prefix=no
16650  need_version=no
16651  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16652  soname_spec='${libname}${release}${shared_ext}$major'
16653  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16654  shlibpath_var=LD_LIBRARY_PATH
16655  shlibpath_overrides_runpath=no
16656  hardcode_into_libs=yes
16657  ;;
16658
16659irix5* | irix6* | nonstopux*)
16660  case $host_os in
16661    nonstopux*) version_type=nonstopux ;;
16662    *)
16663	if test "$lt_cv_prog_gnu_ld" = yes; then
16664		version_type=linux # correct to gnu/linux during the next big refactor
16665	else
16666		version_type=irix
16667	fi ;;
16668  esac
16669  need_lib_prefix=no
16670  need_version=no
16671  soname_spec='${libname}${release}${shared_ext}$major'
16672  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16673  case $host_os in
16674  irix5* | nonstopux*)
16675    libsuff= shlibsuff=
16676    ;;
16677  *)
16678    case $LD in # libtool.m4 will add one of these switches to LD
16679    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16680      libsuff= shlibsuff= libmagic=32-bit;;
16681    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16682      libsuff=32 shlibsuff=N32 libmagic=N32;;
16683    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16684      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16685    *) libsuff= shlibsuff= libmagic=never-match;;
16686    esac
16687    ;;
16688  esac
16689  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16690  shlibpath_overrides_runpath=no
16691  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16692  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16693  hardcode_into_libs=yes
16694  ;;
16695
16696# No shared lib support for Linux oldld, aout, or coff.
16697linux*oldld* | linux*aout* | linux*coff*)
16698  dynamic_linker=no
16699  ;;
16700
16701# This must be glibc/ELF.
16702linux* | k*bsd*-gnu | kopensolaris*-gnu)
16703  version_type=linux # correct to gnu/linux during the next big refactor
16704  need_lib_prefix=no
16705  need_version=no
16706  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16707  soname_spec='${libname}${release}${shared_ext}$major'
16708  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16709  shlibpath_var=LD_LIBRARY_PATH
16710  shlibpath_overrides_runpath=no
16711
16712  # Some binutils ld are patched to set DT_RUNPATH
16713  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16714  $as_echo_n "(cached) " >&6
16715else
16716  lt_cv_shlibpath_overrides_runpath=no
16717    save_LDFLAGS=$LDFLAGS
16718    save_libdir=$libdir
16719    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16720	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16721    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16722/* end confdefs.h.  */
16723
16724int
16725main ()
16726{
16727
16728  ;
16729  return 0;
16730}
16731_ACEOF
16732if ac_fn_c_try_link "$LINENO"; then :
16733  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16734  lt_cv_shlibpath_overrides_runpath=yes
16735fi
16736fi
16737rm -f core conftest.err conftest.$ac_objext \
16738    conftest$ac_exeext conftest.$ac_ext
16739    LDFLAGS=$save_LDFLAGS
16740    libdir=$save_libdir
16741
16742fi
16743
16744  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16745
16746  # This implies no fast_install, which is unacceptable.
16747  # Some rework will be needed to allow for fast_install
16748  # before this can be enabled.
16749  hardcode_into_libs=yes
16750
16751  # Add ABI-specific directories to the system library path.
16752  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16753
16754  # Append ld.so.conf contents to the search path
16755  if test -f /etc/ld.so.conf; then
16756    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' ' '`
16757    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16758
16759  fi
16760
16761  # We used to test for /lib/ld.so.1 and disable shared libraries on
16762  # powerpc, because MkLinux only supported shared libraries with the
16763  # GNU dynamic linker.  Since this was broken with cross compilers,
16764  # most powerpc-linux boxes support dynamic linking these days and
16765  # people can always --disable-shared, the test was removed, and we
16766  # assume the GNU/Linux dynamic linker is in use.
16767  dynamic_linker='GNU/Linux ld.so'
16768  ;;
16769
16770netbsd*)
16771  version_type=sunos
16772  need_lib_prefix=no
16773  need_version=no
16774  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16775    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16776    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16777    dynamic_linker='NetBSD (a.out) ld.so'
16778  else
16779    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16780    soname_spec='${libname}${release}${shared_ext}$major'
16781    dynamic_linker='NetBSD ld.elf_so'
16782  fi
16783  shlibpath_var=LD_LIBRARY_PATH
16784  shlibpath_overrides_runpath=yes
16785  hardcode_into_libs=yes
16786  ;;
16787
16788newsos6)
16789  version_type=linux # correct to gnu/linux during the next big refactor
16790  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16791  shlibpath_var=LD_LIBRARY_PATH
16792  shlibpath_overrides_runpath=yes
16793  ;;
16794
16795*nto* | *qnx*)
16796  version_type=qnx
16797  need_lib_prefix=no
16798  need_version=no
16799  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16800  soname_spec='${libname}${release}${shared_ext}$major'
16801  shlibpath_var=LD_LIBRARY_PATH
16802  shlibpath_overrides_runpath=no
16803  hardcode_into_libs=yes
16804  dynamic_linker='ldqnx.so'
16805  ;;
16806
16807openbsd*)
16808  version_type=sunos
16809  sys_lib_dlsearch_path_spec="/usr/lib"
16810  need_lib_prefix=no
16811  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16812  case $host_os in
16813    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16814    *)				need_version=no  ;;
16815  esac
16816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16817  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16818  shlibpath_var=LD_LIBRARY_PATH
16819  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16820    case $host_os in
16821      openbsd2.[89] | openbsd2.[89].*)
16822	shlibpath_overrides_runpath=no
16823	;;
16824      *)
16825	shlibpath_overrides_runpath=yes
16826	;;
16827      esac
16828  else
16829    shlibpath_overrides_runpath=yes
16830  fi
16831  ;;
16832
16833os2*)
16834  libname_spec='$name'
16835  shrext_cmds=".dll"
16836  need_lib_prefix=no
16837  library_names_spec='$libname${shared_ext} $libname.a'
16838  dynamic_linker='OS/2 ld.exe'
16839  shlibpath_var=LIBPATH
16840  ;;
16841
16842osf3* | osf4* | osf5*)
16843  version_type=osf
16844  need_lib_prefix=no
16845  need_version=no
16846  soname_spec='${libname}${release}${shared_ext}$major'
16847  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16848  shlibpath_var=LD_LIBRARY_PATH
16849  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16850  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16851  ;;
16852
16853rdos*)
16854  dynamic_linker=no
16855  ;;
16856
16857solaris*)
16858  version_type=linux # correct to gnu/linux during the next big refactor
16859  need_lib_prefix=no
16860  need_version=no
16861  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16862  soname_spec='${libname}${release}${shared_ext}$major'
16863  shlibpath_var=LD_LIBRARY_PATH
16864  shlibpath_overrides_runpath=yes
16865  hardcode_into_libs=yes
16866  # ldd complains unless libraries are executable
16867  postinstall_cmds='chmod +x $lib'
16868  ;;
16869
16870sunos4*)
16871  version_type=sunos
16872  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16873  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16874  shlibpath_var=LD_LIBRARY_PATH
16875  shlibpath_overrides_runpath=yes
16876  if test "$with_gnu_ld" = yes; then
16877    need_lib_prefix=no
16878  fi
16879  need_version=yes
16880  ;;
16881
16882sysv4 | sysv4.3*)
16883  version_type=linux # correct to gnu/linux during the next big refactor
16884  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16885  soname_spec='${libname}${release}${shared_ext}$major'
16886  shlibpath_var=LD_LIBRARY_PATH
16887  case $host_vendor in
16888    sni)
16889      shlibpath_overrides_runpath=no
16890      need_lib_prefix=no
16891      runpath_var=LD_RUN_PATH
16892      ;;
16893    siemens)
16894      need_lib_prefix=no
16895      ;;
16896    motorola)
16897      need_lib_prefix=no
16898      need_version=no
16899      shlibpath_overrides_runpath=no
16900      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16901      ;;
16902  esac
16903  ;;
16904
16905sysv4*MP*)
16906  if test -d /usr/nec ;then
16907    version_type=linux # correct to gnu/linux during the next big refactor
16908    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16909    soname_spec='$libname${shared_ext}.$major'
16910    shlibpath_var=LD_LIBRARY_PATH
16911  fi
16912  ;;
16913
16914sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16915  version_type=freebsd-elf
16916  need_lib_prefix=no
16917  need_version=no
16918  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16919  soname_spec='${libname}${release}${shared_ext}$major'
16920  shlibpath_var=LD_LIBRARY_PATH
16921  shlibpath_overrides_runpath=yes
16922  hardcode_into_libs=yes
16923  if test "$with_gnu_ld" = yes; then
16924    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16925  else
16926    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16927    case $host_os in
16928      sco3.2v5*)
16929        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16930	;;
16931    esac
16932  fi
16933  sys_lib_dlsearch_path_spec='/usr/lib'
16934  ;;
16935
16936tpf*)
16937  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16938  version_type=linux # correct to gnu/linux during the next big refactor
16939  need_lib_prefix=no
16940  need_version=no
16941  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16942  shlibpath_var=LD_LIBRARY_PATH
16943  shlibpath_overrides_runpath=no
16944  hardcode_into_libs=yes
16945  ;;
16946
16947uts4*)
16948  version_type=linux # correct to gnu/linux during the next big refactor
16949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16950  soname_spec='${libname}${release}${shared_ext}$major'
16951  shlibpath_var=LD_LIBRARY_PATH
16952  ;;
16953
16954*)
16955  dynamic_linker=no
16956  ;;
16957esac
16958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16959$as_echo "$dynamic_linker" >&6; }
16960test "$dynamic_linker" = no && can_build_shared=no
16961
16962variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16963if test "$GCC" = yes; then
16964  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16965fi
16966
16967if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16968  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16969fi
16970if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16971  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16972fi
16973
16974
16975
16976
16977
16978
16979
16980
16981
16982
16983
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17066$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17067hardcode_action=
17068if test -n "$hardcode_libdir_flag_spec" ||
17069   test -n "$runpath_var" ||
17070   test "X$hardcode_automatic" = "Xyes" ; then
17071
17072  # We can hardcode non-existent directories.
17073  if test "$hardcode_direct" != no &&
17074     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17075     # have to relink, otherwise we might link with an installed library
17076     # when we should be linking with a yet-to-be-installed one
17077     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17078     test "$hardcode_minus_L" != no; then
17079    # Linking always hardcodes the temporary library directory.
17080    hardcode_action=relink
17081  else
17082    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17083    hardcode_action=immediate
17084  fi
17085else
17086  # We cannot hardcode anything, or else we can only hardcode existing
17087  # directories.
17088  hardcode_action=unsupported
17089fi
17090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17091$as_echo "$hardcode_action" >&6; }
17092
17093if test "$hardcode_action" = relink ||
17094   test "$inherit_rpath" = yes; then
17095  # Fast installation is not supported
17096  enable_fast_install=no
17097elif test "$shlibpath_overrides_runpath" = yes ||
17098     test "$enable_shared" = no; then
17099  # Fast installation is not necessary
17100  enable_fast_install=needless
17101fi
17102
17103
17104
17105
17106
17107
17108  if test "x$enable_dlopen" != xyes; then
17109  enable_dlopen=unknown
17110  enable_dlopen_self=unknown
17111  enable_dlopen_self_static=unknown
17112else
17113  lt_cv_dlopen=no
17114  lt_cv_dlopen_libs=
17115
17116  case $host_os in
17117  beos*)
17118    lt_cv_dlopen="load_add_on"
17119    lt_cv_dlopen_libs=
17120    lt_cv_dlopen_self=yes
17121    ;;
17122
17123  mingw* | pw32* | cegcc*)
17124    lt_cv_dlopen="LoadLibrary"
17125    lt_cv_dlopen_libs=
17126    ;;
17127
17128  cygwin*)
17129    lt_cv_dlopen="dlopen"
17130    lt_cv_dlopen_libs=
17131    ;;
17132
17133  darwin*)
17134  # if libdl is installed we need to link against it
17135    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17136$as_echo_n "checking for dlopen in -ldl... " >&6; }
17137if ${ac_cv_lib_dl_dlopen+:} false; then :
17138  $as_echo_n "(cached) " >&6
17139else
17140  ac_check_lib_save_LIBS=$LIBS
17141LIBS="-ldl  $LIBS"
17142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17143/* end confdefs.h.  */
17144
17145/* Override any GCC internal prototype to avoid an error.
17146   Use char because int might match the return type of a GCC
17147   builtin and then its argument prototype would still apply.  */
17148#ifdef __cplusplus
17149extern "C"
17150#endif
17151char dlopen ();
17152int
17153main ()
17154{
17155return dlopen ();
17156  ;
17157  return 0;
17158}
17159_ACEOF
17160if ac_fn_c_try_link "$LINENO"; then :
17161  ac_cv_lib_dl_dlopen=yes
17162else
17163  ac_cv_lib_dl_dlopen=no
17164fi
17165rm -f core conftest.err conftest.$ac_objext \
17166    conftest$ac_exeext conftest.$ac_ext
17167LIBS=$ac_check_lib_save_LIBS
17168fi
17169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17170$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17171if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17172  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17173else
17174
17175    lt_cv_dlopen="dyld"
17176    lt_cv_dlopen_libs=
17177    lt_cv_dlopen_self=yes
17178
17179fi
17180
17181    ;;
17182
17183  *)
17184    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17185if test "x$ac_cv_func_shl_load" = xyes; then :
17186  lt_cv_dlopen="shl_load"
17187else
17188  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17189$as_echo_n "checking for shl_load in -ldld... " >&6; }
17190if ${ac_cv_lib_dld_shl_load+:} false; then :
17191  $as_echo_n "(cached) " >&6
17192else
17193  ac_check_lib_save_LIBS=$LIBS
17194LIBS="-ldld  $LIBS"
17195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17196/* end confdefs.h.  */
17197
17198/* Override any GCC internal prototype to avoid an error.
17199   Use char because int might match the return type of a GCC
17200   builtin and then its argument prototype would still apply.  */
17201#ifdef __cplusplus
17202extern "C"
17203#endif
17204char shl_load ();
17205int
17206main ()
17207{
17208return shl_load ();
17209  ;
17210  return 0;
17211}
17212_ACEOF
17213if ac_fn_c_try_link "$LINENO"; then :
17214  ac_cv_lib_dld_shl_load=yes
17215else
17216  ac_cv_lib_dld_shl_load=no
17217fi
17218rm -f core conftest.err conftest.$ac_objext \
17219    conftest$ac_exeext conftest.$ac_ext
17220LIBS=$ac_check_lib_save_LIBS
17221fi
17222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17223$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17224if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17225  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17226else
17227  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17228if test "x$ac_cv_func_dlopen" = xyes; then :
17229  lt_cv_dlopen="dlopen"
17230else
17231  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17232$as_echo_n "checking for dlopen in -ldl... " >&6; }
17233if ${ac_cv_lib_dl_dlopen+:} false; then :
17234  $as_echo_n "(cached) " >&6
17235else
17236  ac_check_lib_save_LIBS=$LIBS
17237LIBS="-ldl  $LIBS"
17238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17239/* end confdefs.h.  */
17240
17241/* Override any GCC internal prototype to avoid an error.
17242   Use char because int might match the return type of a GCC
17243   builtin and then its argument prototype would still apply.  */
17244#ifdef __cplusplus
17245extern "C"
17246#endif
17247char dlopen ();
17248int
17249main ()
17250{
17251return dlopen ();
17252  ;
17253  return 0;
17254}
17255_ACEOF
17256if ac_fn_c_try_link "$LINENO"; then :
17257  ac_cv_lib_dl_dlopen=yes
17258else
17259  ac_cv_lib_dl_dlopen=no
17260fi
17261rm -f core conftest.err conftest.$ac_objext \
17262    conftest$ac_exeext conftest.$ac_ext
17263LIBS=$ac_check_lib_save_LIBS
17264fi
17265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17266$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17267if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17268  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17269else
17270  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17271$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17272if ${ac_cv_lib_svld_dlopen+:} false; then :
17273  $as_echo_n "(cached) " >&6
17274else
17275  ac_check_lib_save_LIBS=$LIBS
17276LIBS="-lsvld  $LIBS"
17277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17278/* end confdefs.h.  */
17279
17280/* Override any GCC internal prototype to avoid an error.
17281   Use char because int might match the return type of a GCC
17282   builtin and then its argument prototype would still apply.  */
17283#ifdef __cplusplus
17284extern "C"
17285#endif
17286char dlopen ();
17287int
17288main ()
17289{
17290return dlopen ();
17291  ;
17292  return 0;
17293}
17294_ACEOF
17295if ac_fn_c_try_link "$LINENO"; then :
17296  ac_cv_lib_svld_dlopen=yes
17297else
17298  ac_cv_lib_svld_dlopen=no
17299fi
17300rm -f core conftest.err conftest.$ac_objext \
17301    conftest$ac_exeext conftest.$ac_ext
17302LIBS=$ac_check_lib_save_LIBS
17303fi
17304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17305$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17306if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17307  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17308else
17309  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17310$as_echo_n "checking for dld_link in -ldld... " >&6; }
17311if ${ac_cv_lib_dld_dld_link+:} false; then :
17312  $as_echo_n "(cached) " >&6
17313else
17314  ac_check_lib_save_LIBS=$LIBS
17315LIBS="-ldld  $LIBS"
17316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17317/* end confdefs.h.  */
17318
17319/* Override any GCC internal prototype to avoid an error.
17320   Use char because int might match the return type of a GCC
17321   builtin and then its argument prototype would still apply.  */
17322#ifdef __cplusplus
17323extern "C"
17324#endif
17325char dld_link ();
17326int
17327main ()
17328{
17329return dld_link ();
17330  ;
17331  return 0;
17332}
17333_ACEOF
17334if ac_fn_c_try_link "$LINENO"; then :
17335  ac_cv_lib_dld_dld_link=yes
17336else
17337  ac_cv_lib_dld_dld_link=no
17338fi
17339rm -f core conftest.err conftest.$ac_objext \
17340    conftest$ac_exeext conftest.$ac_ext
17341LIBS=$ac_check_lib_save_LIBS
17342fi
17343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17344$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17345if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17346  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17347fi
17348
17349
17350fi
17351
17352
17353fi
17354
17355
17356fi
17357
17358
17359fi
17360
17361
17362fi
17363
17364    ;;
17365  esac
17366
17367  if test "x$lt_cv_dlopen" != xno; then
17368    enable_dlopen=yes
17369  else
17370    enable_dlopen=no
17371  fi
17372
17373  case $lt_cv_dlopen in
17374  dlopen)
17375    save_CPPFLAGS="$CPPFLAGS"
17376    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17377
17378    save_LDFLAGS="$LDFLAGS"
17379    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17380
17381    save_LIBS="$LIBS"
17382    LIBS="$lt_cv_dlopen_libs $LIBS"
17383
17384    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17385$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17386if ${lt_cv_dlopen_self+:} false; then :
17387  $as_echo_n "(cached) " >&6
17388else
17389  	  if test "$cross_compiling" = yes; then :
17390  lt_cv_dlopen_self=cross
17391else
17392  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17393  lt_status=$lt_dlunknown
17394  cat > conftest.$ac_ext <<_LT_EOF
17395#line $LINENO "configure"
17396#include "confdefs.h"
17397
17398#if HAVE_DLFCN_H
17399#include <dlfcn.h>
17400#endif
17401
17402#include <stdio.h>
17403
17404#ifdef RTLD_GLOBAL
17405#  define LT_DLGLOBAL		RTLD_GLOBAL
17406#else
17407#  ifdef DL_GLOBAL
17408#    define LT_DLGLOBAL		DL_GLOBAL
17409#  else
17410#    define LT_DLGLOBAL		0
17411#  endif
17412#endif
17413
17414/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17415   find out it does not work in some platform. */
17416#ifndef LT_DLLAZY_OR_NOW
17417#  ifdef RTLD_LAZY
17418#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17419#  else
17420#    ifdef DL_LAZY
17421#      define LT_DLLAZY_OR_NOW		DL_LAZY
17422#    else
17423#      ifdef RTLD_NOW
17424#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17425#      else
17426#        ifdef DL_NOW
17427#          define LT_DLLAZY_OR_NOW	DL_NOW
17428#        else
17429#          define LT_DLLAZY_OR_NOW	0
17430#        endif
17431#      endif
17432#    endif
17433#  endif
17434#endif
17435
17436/* When -fvisbility=hidden is used, assume the code has been annotated
17437   correspondingly for the symbols needed.  */
17438#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17439int fnord () __attribute__((visibility("default")));
17440#endif
17441
17442int fnord () { return 42; }
17443int main ()
17444{
17445  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17446  int status = $lt_dlunknown;
17447
17448  if (self)
17449    {
17450      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17451      else
17452        {
17453	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17454          else puts (dlerror ());
17455	}
17456      /* dlclose (self); */
17457    }
17458  else
17459    puts (dlerror ());
17460
17461  return status;
17462}
17463_LT_EOF
17464  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17465  (eval $ac_link) 2>&5
17466  ac_status=$?
17467  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17468  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17469    (./conftest; exit; ) >&5 2>/dev/null
17470    lt_status=$?
17471    case x$lt_status in
17472      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17473      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17474      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17475    esac
17476  else :
17477    # compilation failed
17478    lt_cv_dlopen_self=no
17479  fi
17480fi
17481rm -fr conftest*
17482
17483
17484fi
17485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17486$as_echo "$lt_cv_dlopen_self" >&6; }
17487
17488    if test "x$lt_cv_dlopen_self" = xyes; then
17489      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17490      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17491$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17492if ${lt_cv_dlopen_self_static+:} false; then :
17493  $as_echo_n "(cached) " >&6
17494else
17495  	  if test "$cross_compiling" = yes; then :
17496  lt_cv_dlopen_self_static=cross
17497else
17498  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17499  lt_status=$lt_dlunknown
17500  cat > conftest.$ac_ext <<_LT_EOF
17501#line $LINENO "configure"
17502#include "confdefs.h"
17503
17504#if HAVE_DLFCN_H
17505#include <dlfcn.h>
17506#endif
17507
17508#include <stdio.h>
17509
17510#ifdef RTLD_GLOBAL
17511#  define LT_DLGLOBAL		RTLD_GLOBAL
17512#else
17513#  ifdef DL_GLOBAL
17514#    define LT_DLGLOBAL		DL_GLOBAL
17515#  else
17516#    define LT_DLGLOBAL		0
17517#  endif
17518#endif
17519
17520/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17521   find out it does not work in some platform. */
17522#ifndef LT_DLLAZY_OR_NOW
17523#  ifdef RTLD_LAZY
17524#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17525#  else
17526#    ifdef DL_LAZY
17527#      define LT_DLLAZY_OR_NOW		DL_LAZY
17528#    else
17529#      ifdef RTLD_NOW
17530#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17531#      else
17532#        ifdef DL_NOW
17533#          define LT_DLLAZY_OR_NOW	DL_NOW
17534#        else
17535#          define LT_DLLAZY_OR_NOW	0
17536#        endif
17537#      endif
17538#    endif
17539#  endif
17540#endif
17541
17542/* When -fvisbility=hidden is used, assume the code has been annotated
17543   correspondingly for the symbols needed.  */
17544#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17545int fnord () __attribute__((visibility("default")));
17546#endif
17547
17548int fnord () { return 42; }
17549int main ()
17550{
17551  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17552  int status = $lt_dlunknown;
17553
17554  if (self)
17555    {
17556      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17557      else
17558        {
17559	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17560          else puts (dlerror ());
17561	}
17562      /* dlclose (self); */
17563    }
17564  else
17565    puts (dlerror ());
17566
17567  return status;
17568}
17569_LT_EOF
17570  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17571  (eval $ac_link) 2>&5
17572  ac_status=$?
17573  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17574  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17575    (./conftest; exit; ) >&5 2>/dev/null
17576    lt_status=$?
17577    case x$lt_status in
17578      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17579      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17580      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17581    esac
17582  else :
17583    # compilation failed
17584    lt_cv_dlopen_self_static=no
17585  fi
17586fi
17587rm -fr conftest*
17588
17589
17590fi
17591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17592$as_echo "$lt_cv_dlopen_self_static" >&6; }
17593    fi
17594
17595    CPPFLAGS="$save_CPPFLAGS"
17596    LDFLAGS="$save_LDFLAGS"
17597    LIBS="$save_LIBS"
17598    ;;
17599  esac
17600
17601  case $lt_cv_dlopen_self in
17602  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17603  *) enable_dlopen_self=unknown ;;
17604  esac
17605
17606  case $lt_cv_dlopen_self_static in
17607  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17608  *) enable_dlopen_self_static=unknown ;;
17609  esac
17610fi
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628striplib=
17629old_striplib=
17630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17631$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17632if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17633  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17634  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17636$as_echo "yes" >&6; }
17637else
17638# FIXME - insert some real tests, host_os isn't really good enough
17639  case $host_os in
17640  darwin*)
17641    if test -n "$STRIP" ; then
17642      striplib="$STRIP -x"
17643      old_striplib="$STRIP -S"
17644      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17645$as_echo "yes" >&6; }
17646    else
17647      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17648$as_echo "no" >&6; }
17649    fi
17650    ;;
17651  *)
17652    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17653$as_echo "no" >&6; }
17654    ;;
17655  esac
17656fi
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669  # Report which library types will actually be built
17670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17671$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17673$as_echo "$can_build_shared" >&6; }
17674
17675  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17676$as_echo_n "checking whether to build shared libraries... " >&6; }
17677  test "$can_build_shared" = "no" && enable_shared=no
17678
17679  # On AIX, shared libraries and static libraries use the same namespace, and
17680  # are all built from PIC.
17681  case $host_os in
17682  aix3*)
17683    test "$enable_shared" = yes && enable_static=no
17684    if test -n "$RANLIB"; then
17685      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17686      postinstall_cmds='$RANLIB $lib'
17687    fi
17688    ;;
17689
17690  aix[4-9]*)
17691    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17692      test "$enable_shared" = yes && enable_static=no
17693    fi
17694    ;;
17695  esac
17696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17697$as_echo "$enable_shared" >&6; }
17698
17699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17700$as_echo_n "checking whether to build static libraries... " >&6; }
17701  # Make sure either enable_shared or enable_static is yes.
17702  test "$enable_shared" = yes || enable_static=yes
17703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17704$as_echo "$enable_static" >&6; }
17705
17706
17707
17708
17709fi
17710ac_ext=c
17711ac_cpp='$CPP $CPPFLAGS'
17712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17714ac_compiler_gnu=$ac_cv_c_compiler_gnu
17715
17716CC="$lt_save_CC"
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732        ac_config_commands="$ac_config_commands libtool"
17733
17734
17735
17736
17737# Only expand once:
17738
17739
17740
17741
17742
17743# Define a configure option for an alternate module directory
17744
17745# Check whether --with-xorg-module-dir was given.
17746if test "${with_xorg_module_dir+set}" = set; then :
17747  withval=$with_xorg_module_dir;  moduledir="$withval"
17748else
17749   moduledir="$libdir/xorg/modules"
17750fi
17751
17752
17753
17754# Store the list of server defined optional extensions in REQUIRED_MODULES
17755
17756
17757	SAVE_CFLAGS="$CFLAGS"
17758	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17759	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17760/* end confdefs.h.  */
17761
17762#include "xorg-server.h"
17763#if !defined DPMSExtension
17764#error DPMSExtension not defined
17765#endif
17766
17767int
17768main ()
17769{
17770
17771  ;
17772  return 0;
17773}
17774_ACEOF
17775if ac_fn_c_try_compile "$LINENO"; then :
17776  _EXT_CHECK=yes
17777else
17778  _EXT_CHECK=no
17779fi
17780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17781	CFLAGS="$SAVE_CFLAGS"
17782	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
17783$as_echo_n "checking if DPMSExtension is defined... " >&6; }
17784	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17785$as_echo "$_EXT_CHECK" >&6; }
17786	if test "$_EXT_CHECK" != no; then
17787		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
17788	fi
17789
17790
17791# Obtain compiler/linker options for the driver dependencies
17792
17793pkg_failed=no
17794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
17795$as_echo_n "checking for XORG... " >&6; }
17796
17797if test -n "$XORG_CFLAGS"; then
17798    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
17799 elif test -n "$PKG_CONFIG"; then
17800    if test -n "$PKG_CONFIG" && \
17801    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17802  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17803  ac_status=$?
17804  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17805  test $ac_status = 0; }; then
17806  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17807else
17808  pkg_failed=yes
17809fi
17810 else
17811    pkg_failed=untried
17812fi
17813if test -n "$XORG_LIBS"; then
17814    pkg_cv_XORG_LIBS="$XORG_LIBS"
17815 elif test -n "$PKG_CONFIG"; then
17816    if test -n "$PKG_CONFIG" && \
17817    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
17818  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
17819  ac_status=$?
17820  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17821  test $ac_status = 0; }; then
17822  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
17823else
17824  pkg_failed=yes
17825fi
17826 else
17827    pkg_failed=untried
17828fi
17829
17830
17831
17832if test $pkg_failed = yes; then
17833   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17834$as_echo "no" >&6; }
17835
17836if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17837        _pkg_short_errors_supported=yes
17838else
17839        _pkg_short_errors_supported=no
17840fi
17841        if test $_pkg_short_errors_supported = yes; then
17842	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17843        else
17844	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
17845        fi
17846	# Put the nasty error message in config.log where it belongs
17847	echo "$XORG_PKG_ERRORS" >&5
17848
17849	as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
17850
17851$XORG_PKG_ERRORS
17852
17853Consider adjusting the PKG_CONFIG_PATH environment variable if you
17854installed software in a non-standard prefix.
17855
17856Alternatively, you may set the environment variables XORG_CFLAGS
17857and XORG_LIBS to avoid the need to call pkg-config.
17858See the pkg-config man page for more details." "$LINENO" 5
17859
17860elif test $pkg_failed = untried; then
17861     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17862$as_echo "no" >&6; }
17863	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17865as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17866is in your PATH or set the PKG_CONFIG environment variable to the full
17867path to pkg-config.
17868
17869Alternatively, you may set the environment variables XORG_CFLAGS
17870and XORG_LIBS to avoid the need to call pkg-config.
17871See the pkg-config man page for more details.
17872
17873To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17874See \`config.log' for more details" "$LINENO" 5; }
17875
17876else
17877	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
17878	XORG_LIBS=$pkg_cv_XORG_LIBS
17879        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17880$as_echo "yes" >&6; }
17881
17882fi
17883
17884# Checks for libraries.
17885SAVE_CPPFLAGS="$CPPFLAGS"
17886CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
17887ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
17888"
17889if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
17890  XSERVER_LIBPCIACCESS=yes
17891else
17892  XSERVER_LIBPCIACCESS=no
17893fi
17894
17895CPPFLAGS="$SAVE_CPPFLAGS"
17896
17897if test "x$XSERVER_LIBPCIACCESS" = xyes; then
17898
17899pkg_failed=no
17900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
17901$as_echo_n "checking for PCIACCESS... " >&6; }
17902
17903if test -n "$PCIACCESS_CFLAGS"; then
17904    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
17905 elif test -n "$PKG_CONFIG"; then
17906    if test -n "$PKG_CONFIG" && \
17907    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
17908  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
17909  ac_status=$?
17910  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17911  test $ac_status = 0; }; then
17912  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null`
17913else
17914  pkg_failed=yes
17915fi
17916 else
17917    pkg_failed=untried
17918fi
17919if test -n "$PCIACCESS_LIBS"; then
17920    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
17921 elif test -n "$PKG_CONFIG"; then
17922    if test -n "$PKG_CONFIG" && \
17923    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
17924  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
17925  ac_status=$?
17926  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17927  test $ac_status = 0; }; then
17928  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null`
17929else
17930  pkg_failed=yes
17931fi
17932 else
17933    pkg_failed=untried
17934fi
17935
17936
17937
17938if test $pkg_failed = yes; then
17939   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17940$as_echo "no" >&6; }
17941
17942if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17943        _pkg_short_errors_supported=yes
17944else
17945        _pkg_short_errors_supported=no
17946fi
17947        if test $_pkg_short_errors_supported = yes; then
17948	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pciaccess >= 0.12.901" 2>&1`
17949        else
17950	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors "pciaccess >= 0.12.901" 2>&1`
17951        fi
17952	# Put the nasty error message in config.log where it belongs
17953	echo "$PCIACCESS_PKG_ERRORS" >&5
17954
17955	as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met:
17956
17957$PCIACCESS_PKG_ERRORS
17958
17959Consider adjusting the PKG_CONFIG_PATH environment variable if you
17960installed software in a non-standard prefix.
17961
17962Alternatively, you may set the environment variables PCIACCESS_CFLAGS
17963and PCIACCESS_LIBS to avoid the need to call pkg-config.
17964See the pkg-config man page for more details." "$LINENO" 5
17965
17966elif test $pkg_failed = untried; then
17967     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17968$as_echo "no" >&6; }
17969	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17971as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17972is in your PATH or set the PKG_CONFIG environment variable to the full
17973path to pkg-config.
17974
17975Alternatively, you may set the environment variables PCIACCESS_CFLAGS
17976and PCIACCESS_LIBS to avoid the need to call pkg-config.
17977See the pkg-config man page for more details.
17978
17979To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17980See \`config.log' for more details" "$LINENO" 5; }
17981
17982else
17983	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
17984	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
17985        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17986$as_echo "yes" >&6; }
17987
17988fi
17989fi
17990 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
17991  XSERVER_LIBPCIACCESS_TRUE=
17992  XSERVER_LIBPCIACCESS_FALSE='#'
17993else
17994  XSERVER_LIBPCIACCESS_TRUE='#'
17995  XSERVER_LIBPCIACCESS_FALSE=
17996fi
17997
17998# Check whether --enable-xaa was given.
17999if test "${enable_xaa+set}" = set; then :
18000  enableval=$enable_xaa; XAA="$enableval"
18001else
18002  XAA=auto
18003fi
18004
18005if test "x$XAA" != xno; then
18006        save_CFLAGS=$CFLAGS
18007        save_CPPFLAGS=$CPPFLAGS
18008        CFLAGS=$XORG_CFLAGS
18009        CPPFLAGS="$XORG_CFLAGS"
18010        for ac_header in xaa.h
18011do :
18012  ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18013if test "x$ac_cv_header_xaa_h" = xyes; then :
18014  cat >>confdefs.h <<_ACEOF
18015#define HAVE_XAA_H 1
18016_ACEOF
18017 XAA=yes
18018else
18019  XAA=no
18020fi
18021
18022done
18023
18024        CFLAGS=$save_CFLAGS
18025        CPPFLAGS=$save_CPPFLAGS
18026fi
18027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18028$as_echo_n "checking whether to include XAA support... " >&6; }
18029 if test "x$XAA" = xyes; then
18030  XAA_TRUE=
18031  XAA_FALSE='#'
18032else
18033  XAA_TRUE='#'
18034  XAA_FALSE=
18035fi
18036
18037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18038$as_echo "$XAA" >&6; }
18039
18040DRIVER_NAME=ark
18041
18042
18043ac_config_files="$ac_config_files Makefile src/Makefile"
18044
18045cat >confcache <<\_ACEOF
18046# This file is a shell script that caches the results of configure
18047# tests run on this system so they can be shared between configure
18048# scripts and configure runs, see configure's option --config-cache.
18049# It is not useful on other systems.  If it contains results you don't
18050# want to keep, you may remove or edit it.
18051#
18052# config.status only pays attention to the cache file if you give it
18053# the --recheck option to rerun configure.
18054#
18055# `ac_cv_env_foo' variables (set or unset) will be overridden when
18056# loading this file, other *unset* `ac_cv_foo' will be assigned the
18057# following values.
18058
18059_ACEOF
18060
18061# The following way of writing the cache mishandles newlines in values,
18062# but we know of no workaround that is simple, portable, and efficient.
18063# So, we kill variables containing newlines.
18064# Ultrix sh set writes to stderr and can't be redirected directly,
18065# and sets the high bit in the cache file unless we assign to the vars.
18066(
18067  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18068    eval ac_val=\$$ac_var
18069    case $ac_val in #(
18070    *${as_nl}*)
18071      case $ac_var in #(
18072      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18073$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18074      esac
18075      case $ac_var in #(
18076      _ | IFS | as_nl) ;; #(
18077      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18078      *) { eval $ac_var=; unset $ac_var;} ;;
18079      esac ;;
18080    esac
18081  done
18082
18083  (set) 2>&1 |
18084    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18085    *${as_nl}ac_space=\ *)
18086      # `set' does not quote correctly, so add quotes: double-quote
18087      # substitution turns \\\\ into \\, and sed turns \\ into \.
18088      sed -n \
18089	"s/'/'\\\\''/g;
18090	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18091      ;; #(
18092    *)
18093      # `set' quotes correctly as required by POSIX, so do not add quotes.
18094      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18095      ;;
18096    esac |
18097    sort
18098) |
18099  sed '
18100     /^ac_cv_env_/b end
18101     t clear
18102     :clear
18103     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18104     t end
18105     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18106     :end' >>confcache
18107if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18108  if test -w "$cache_file"; then
18109    if test "x$cache_file" != "x/dev/null"; then
18110      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18111$as_echo "$as_me: updating cache $cache_file" >&6;}
18112      if test ! -f "$cache_file" || test -h "$cache_file"; then
18113	cat confcache >"$cache_file"
18114      else
18115        case $cache_file in #(
18116        */* | ?:*)
18117	  mv -f confcache "$cache_file"$$ &&
18118	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18119        *)
18120	  mv -f confcache "$cache_file" ;;
18121	esac
18122      fi
18123    fi
18124  else
18125    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18126$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18127  fi
18128fi
18129rm -f confcache
18130
18131test "x$prefix" = xNONE && prefix=$ac_default_prefix
18132# Let make expand exec_prefix.
18133test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18134
18135DEFS=-DHAVE_CONFIG_H
18136
18137ac_libobjs=
18138ac_ltlibobjs=
18139U=
18140for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18141  # 1. Remove the extension, and $U if already installed.
18142  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18143  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18144  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18145  #    will be set to the directory where LIBOBJS objects are built.
18146  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18147  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18148done
18149LIBOBJS=$ac_libobjs
18150
18151LTLIBOBJS=$ac_ltlibobjs
18152
18153
18154 if test -n "$EXEEXT"; then
18155  am__EXEEXT_TRUE=
18156  am__EXEEXT_FALSE='#'
18157else
18158  am__EXEEXT_TRUE='#'
18159  am__EXEEXT_FALSE=
18160fi
18161
18162if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18163  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18164Usually this means the macro was only invoked conditionally." "$LINENO" 5
18165fi
18166if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18167  as_fn_error $? "conditional \"AMDEP\" was never defined.
18168Usually this means the macro was only invoked conditionally." "$LINENO" 5
18169fi
18170if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18171  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18172Usually this means the macro was only invoked conditionally." "$LINENO" 5
18173fi
18174if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18175  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18176Usually this means the macro was only invoked conditionally." "$LINENO" 5
18177fi
18178if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
18179  as_fn_error $? "conditional \"XAA\" was never defined.
18180Usually this means the macro was only invoked conditionally." "$LINENO" 5
18181fi
18182
18183: "${CONFIG_STATUS=./config.status}"
18184ac_write_fail=0
18185ac_clean_files_save=$ac_clean_files
18186ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18187{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18188$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18189as_write_fail=0
18190cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18191#! $SHELL
18192# Generated by $as_me.
18193# Run this file to recreate the current configuration.
18194# Compiler output produced by configure, useful for debugging
18195# configure, is in config.log if it exists.
18196
18197debug=false
18198ac_cs_recheck=false
18199ac_cs_silent=false
18200
18201SHELL=\${CONFIG_SHELL-$SHELL}
18202export SHELL
18203_ASEOF
18204cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18205## -------------------- ##
18206## M4sh Initialization. ##
18207## -------------------- ##
18208
18209# Be more Bourne compatible
18210DUALCASE=1; export DUALCASE # for MKS sh
18211if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18212  emulate sh
18213  NULLCMD=:
18214  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18215  # is contrary to our usage.  Disable this feature.
18216  alias -g '${1+"$@"}'='"$@"'
18217  setopt NO_GLOB_SUBST
18218else
18219  case `(set -o) 2>/dev/null` in #(
18220  *posix*) :
18221    set -o posix ;; #(
18222  *) :
18223     ;;
18224esac
18225fi
18226
18227
18228as_nl='
18229'
18230export as_nl
18231# Printing a long string crashes Solaris 7 /usr/bin/printf.
18232as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18233as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18234as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18235# Prefer a ksh shell builtin over an external printf program on Solaris,
18236# but without wasting forks for bash or zsh.
18237if test -z "$BASH_VERSION$ZSH_VERSION" \
18238    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18239  as_echo='print -r --'
18240  as_echo_n='print -rn --'
18241elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18242  as_echo='printf %s\n'
18243  as_echo_n='printf %s'
18244else
18245  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18246    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18247    as_echo_n='/usr/ucb/echo -n'
18248  else
18249    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18250    as_echo_n_body='eval
18251      arg=$1;
18252      case $arg in #(
18253      *"$as_nl"*)
18254	expr "X$arg" : "X\\(.*\\)$as_nl";
18255	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18256      esac;
18257      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18258    '
18259    export as_echo_n_body
18260    as_echo_n='sh -c $as_echo_n_body as_echo'
18261  fi
18262  export as_echo_body
18263  as_echo='sh -c $as_echo_body as_echo'
18264fi
18265
18266# The user is always right.
18267if test "${PATH_SEPARATOR+set}" != set; then
18268  PATH_SEPARATOR=:
18269  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18270    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18271      PATH_SEPARATOR=';'
18272  }
18273fi
18274
18275
18276# IFS
18277# We need space, tab and new line, in precisely that order.  Quoting is
18278# there to prevent editors from complaining about space-tab.
18279# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18280# splitting by setting IFS to empty value.)
18281IFS=" ""	$as_nl"
18282
18283# Find who we are.  Look in the path if we contain no directory separator.
18284as_myself=
18285case $0 in #((
18286  *[\\/]* ) as_myself=$0 ;;
18287  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18288for as_dir in $PATH
18289do
18290  IFS=$as_save_IFS
18291  test -z "$as_dir" && as_dir=.
18292    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18293  done
18294IFS=$as_save_IFS
18295
18296     ;;
18297esac
18298# We did not find ourselves, most probably we were run as `sh COMMAND'
18299# in which case we are not to be found in the path.
18300if test "x$as_myself" = x; then
18301  as_myself=$0
18302fi
18303if test ! -f "$as_myself"; then
18304  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18305  exit 1
18306fi
18307
18308# Unset variables that we do not need and which cause bugs (e.g. in
18309# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18310# suppresses any "Segmentation fault" message there.  '((' could
18311# trigger a bug in pdksh 5.2.14.
18312for as_var in BASH_ENV ENV MAIL MAILPATH
18313do eval test x\${$as_var+set} = xset \
18314  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18315done
18316PS1='$ '
18317PS2='> '
18318PS4='+ '
18319
18320# NLS nuisances.
18321LC_ALL=C
18322export LC_ALL
18323LANGUAGE=C
18324export LANGUAGE
18325
18326# CDPATH.
18327(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18328
18329
18330# as_fn_error STATUS ERROR [LINENO LOG_FD]
18331# ----------------------------------------
18332# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18333# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18334# script with STATUS, using 1 if that was 0.
18335as_fn_error ()
18336{
18337  as_status=$1; test $as_status -eq 0 && as_status=1
18338  if test "$4"; then
18339    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18340    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18341  fi
18342  $as_echo "$as_me: error: $2" >&2
18343  as_fn_exit $as_status
18344} # as_fn_error
18345
18346
18347# as_fn_set_status STATUS
18348# -----------------------
18349# Set $? to STATUS, without forking.
18350as_fn_set_status ()
18351{
18352  return $1
18353} # as_fn_set_status
18354
18355# as_fn_exit STATUS
18356# -----------------
18357# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18358as_fn_exit ()
18359{
18360  set +e
18361  as_fn_set_status $1
18362  exit $1
18363} # as_fn_exit
18364
18365# as_fn_unset VAR
18366# ---------------
18367# Portably unset VAR.
18368as_fn_unset ()
18369{
18370  { eval $1=; unset $1;}
18371}
18372as_unset=as_fn_unset
18373# as_fn_append VAR VALUE
18374# ----------------------
18375# Append the text in VALUE to the end of the definition contained in VAR. Take
18376# advantage of any shell optimizations that allow amortized linear growth over
18377# repeated appends, instead of the typical quadratic growth present in naive
18378# implementations.
18379if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18380  eval 'as_fn_append ()
18381  {
18382    eval $1+=\$2
18383  }'
18384else
18385  as_fn_append ()
18386  {
18387    eval $1=\$$1\$2
18388  }
18389fi # as_fn_append
18390
18391# as_fn_arith ARG...
18392# ------------------
18393# Perform arithmetic evaluation on the ARGs, and store the result in the
18394# global $as_val. Take advantage of shells that can avoid forks. The arguments
18395# must be portable across $(()) and expr.
18396if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18397  eval 'as_fn_arith ()
18398  {
18399    as_val=$(( $* ))
18400  }'
18401else
18402  as_fn_arith ()
18403  {
18404    as_val=`expr "$@" || test $? -eq 1`
18405  }
18406fi # as_fn_arith
18407
18408
18409if expr a : '\(a\)' >/dev/null 2>&1 &&
18410   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18411  as_expr=expr
18412else
18413  as_expr=false
18414fi
18415
18416if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18417  as_basename=basename
18418else
18419  as_basename=false
18420fi
18421
18422if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18423  as_dirname=dirname
18424else
18425  as_dirname=false
18426fi
18427
18428as_me=`$as_basename -- "$0" ||
18429$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18430	 X"$0" : 'X\(//\)$' \| \
18431	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18432$as_echo X/"$0" |
18433    sed '/^.*\/\([^/][^/]*\)\/*$/{
18434	    s//\1/
18435	    q
18436	  }
18437	  /^X\/\(\/\/\)$/{
18438	    s//\1/
18439	    q
18440	  }
18441	  /^X\/\(\/\).*/{
18442	    s//\1/
18443	    q
18444	  }
18445	  s/.*/./; q'`
18446
18447# Avoid depending upon Character Ranges.
18448as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18449as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18450as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18451as_cr_digits='0123456789'
18452as_cr_alnum=$as_cr_Letters$as_cr_digits
18453
18454ECHO_C= ECHO_N= ECHO_T=
18455case `echo -n x` in #(((((
18456-n*)
18457  case `echo 'xy\c'` in
18458  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18459  xy)  ECHO_C='\c';;
18460  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18461       ECHO_T='	';;
18462  esac;;
18463*)
18464  ECHO_N='-n';;
18465esac
18466
18467rm -f conf$$ conf$$.exe conf$$.file
18468if test -d conf$$.dir; then
18469  rm -f conf$$.dir/conf$$.file
18470else
18471  rm -f conf$$.dir
18472  mkdir conf$$.dir 2>/dev/null
18473fi
18474if (echo >conf$$.file) 2>/dev/null; then
18475  if ln -s conf$$.file conf$$ 2>/dev/null; then
18476    as_ln_s='ln -s'
18477    # ... but there are two gotchas:
18478    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18479    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18480    # In both cases, we have to default to `cp -p'.
18481    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18482      as_ln_s='cp -p'
18483  elif ln conf$$.file conf$$ 2>/dev/null; then
18484    as_ln_s=ln
18485  else
18486    as_ln_s='cp -p'
18487  fi
18488else
18489  as_ln_s='cp -p'
18490fi
18491rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18492rmdir conf$$.dir 2>/dev/null
18493
18494
18495# as_fn_mkdir_p
18496# -------------
18497# Create "$as_dir" as a directory, including parents if necessary.
18498as_fn_mkdir_p ()
18499{
18500
18501  case $as_dir in #(
18502  -*) as_dir=./$as_dir;;
18503  esac
18504  test -d "$as_dir" || eval $as_mkdir_p || {
18505    as_dirs=
18506    while :; do
18507      case $as_dir in #(
18508      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18509      *) as_qdir=$as_dir;;
18510      esac
18511      as_dirs="'$as_qdir' $as_dirs"
18512      as_dir=`$as_dirname -- "$as_dir" ||
18513$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18514	 X"$as_dir" : 'X\(//\)[^/]' \| \
18515	 X"$as_dir" : 'X\(//\)$' \| \
18516	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18517$as_echo X"$as_dir" |
18518    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18519	    s//\1/
18520	    q
18521	  }
18522	  /^X\(\/\/\)[^/].*/{
18523	    s//\1/
18524	    q
18525	  }
18526	  /^X\(\/\/\)$/{
18527	    s//\1/
18528	    q
18529	  }
18530	  /^X\(\/\).*/{
18531	    s//\1/
18532	    q
18533	  }
18534	  s/.*/./; q'`
18535      test -d "$as_dir" && break
18536    done
18537    test -z "$as_dirs" || eval "mkdir $as_dirs"
18538  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18539
18540
18541} # as_fn_mkdir_p
18542if mkdir -p . 2>/dev/null; then
18543  as_mkdir_p='mkdir -p "$as_dir"'
18544else
18545  test -d ./-p && rmdir ./-p
18546  as_mkdir_p=false
18547fi
18548
18549if test -x / >/dev/null 2>&1; then
18550  as_test_x='test -x'
18551else
18552  if ls -dL / >/dev/null 2>&1; then
18553    as_ls_L_option=L
18554  else
18555    as_ls_L_option=
18556  fi
18557  as_test_x='
18558    eval sh -c '\''
18559      if test -d "$1"; then
18560	test -d "$1/.";
18561      else
18562	case $1 in #(
18563	-*)set "./$1";;
18564	esac;
18565	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18566	???[sx]*):;;*)false;;esac;fi
18567    '\'' sh
18568  '
18569fi
18570as_executable_p=$as_test_x
18571
18572# Sed expression to map a string onto a valid CPP name.
18573as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18574
18575# Sed expression to map a string onto a valid variable name.
18576as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18577
18578
18579exec 6>&1
18580## ----------------------------------- ##
18581## Main body of $CONFIG_STATUS script. ##
18582## ----------------------------------- ##
18583_ASEOF
18584test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18585
18586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18587# Save the log message, to keep $0 and so on meaningful, and to
18588# report actual input values of CONFIG_FILES etc. instead of their
18589# values after options handling.
18590ac_log="
18591This file was extended by xf86-video-ark $as_me 0.7.5, which was
18592generated by GNU Autoconf 2.68.  Invocation command line was
18593
18594  CONFIG_FILES    = $CONFIG_FILES
18595  CONFIG_HEADERS  = $CONFIG_HEADERS
18596  CONFIG_LINKS    = $CONFIG_LINKS
18597  CONFIG_COMMANDS = $CONFIG_COMMANDS
18598  $ $0 $@
18599
18600on `(hostname || uname -n) 2>/dev/null | sed 1q`
18601"
18602
18603_ACEOF
18604
18605case $ac_config_files in *"
18606"*) set x $ac_config_files; shift; ac_config_files=$*;;
18607esac
18608
18609case $ac_config_headers in *"
18610"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18611esac
18612
18613
18614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18615# Files that config.status was made for.
18616config_files="$ac_config_files"
18617config_headers="$ac_config_headers"
18618config_commands="$ac_config_commands"
18619
18620_ACEOF
18621
18622cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18623ac_cs_usage="\
18624\`$as_me' instantiates files and other configuration actions
18625from templates according to the current configuration.  Unless the files
18626and actions are specified as TAGs, all are instantiated by default.
18627
18628Usage: $0 [OPTION]... [TAG]...
18629
18630  -h, --help       print this help, then exit
18631  -V, --version    print version number and configuration settings, then exit
18632      --config     print configuration, then exit
18633  -q, --quiet, --silent
18634                   do not print progress messages
18635  -d, --debug      don't remove temporary files
18636      --recheck    update $as_me by reconfiguring in the same conditions
18637      --file=FILE[:TEMPLATE]
18638                   instantiate the configuration file FILE
18639      --header=FILE[:TEMPLATE]
18640                   instantiate the configuration header FILE
18641
18642Configuration files:
18643$config_files
18644
18645Configuration headers:
18646$config_headers
18647
18648Configuration commands:
18649$config_commands
18650
18651Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/ark>."
18652
18653_ACEOF
18654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18655ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18656ac_cs_version="\\
18657xf86-video-ark config.status 0.7.5
18658configured by $0, generated by GNU Autoconf 2.68,
18659  with options \\"\$ac_cs_config\\"
18660
18661Copyright (C) 2010 Free Software Foundation, Inc.
18662This config.status script is free software; the Free Software Foundation
18663gives unlimited permission to copy, distribute and modify it."
18664
18665ac_pwd='$ac_pwd'
18666srcdir='$srcdir'
18667INSTALL='$INSTALL'
18668MKDIR_P='$MKDIR_P'
18669AWK='$AWK'
18670test -n "\$AWK" || AWK=awk
18671_ACEOF
18672
18673cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18674# The default lists apply if the user does not specify any file.
18675ac_need_defaults=:
18676while test $# != 0
18677do
18678  case $1 in
18679  --*=?*)
18680    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18681    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18682    ac_shift=:
18683    ;;
18684  --*=)
18685    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18686    ac_optarg=
18687    ac_shift=:
18688    ;;
18689  *)
18690    ac_option=$1
18691    ac_optarg=$2
18692    ac_shift=shift
18693    ;;
18694  esac
18695
18696  case $ac_option in
18697  # Handling of the options.
18698  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18699    ac_cs_recheck=: ;;
18700  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18701    $as_echo "$ac_cs_version"; exit ;;
18702  --config | --confi | --conf | --con | --co | --c )
18703    $as_echo "$ac_cs_config"; exit ;;
18704  --debug | --debu | --deb | --de | --d | -d )
18705    debug=: ;;
18706  --file | --fil | --fi | --f )
18707    $ac_shift
18708    case $ac_optarg in
18709    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18710    '') as_fn_error $? "missing file argument" ;;
18711    esac
18712    as_fn_append CONFIG_FILES " '$ac_optarg'"
18713    ac_need_defaults=false;;
18714  --header | --heade | --head | --hea )
18715    $ac_shift
18716    case $ac_optarg in
18717    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18718    esac
18719    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18720    ac_need_defaults=false;;
18721  --he | --h)
18722    # Conflict between --help and --header
18723    as_fn_error $? "ambiguous option: \`$1'
18724Try \`$0 --help' for more information.";;
18725  --help | --hel | -h )
18726    $as_echo "$ac_cs_usage"; exit ;;
18727  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18728  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18729    ac_cs_silent=: ;;
18730
18731  # This is an error.
18732  -*) as_fn_error $? "unrecognized option: \`$1'
18733Try \`$0 --help' for more information." ;;
18734
18735  *) as_fn_append ac_config_targets " $1"
18736     ac_need_defaults=false ;;
18737
18738  esac
18739  shift
18740done
18741
18742ac_configure_extra_args=
18743
18744if $ac_cs_silent; then
18745  exec 6>/dev/null
18746  ac_configure_extra_args="$ac_configure_extra_args --silent"
18747fi
18748
18749_ACEOF
18750cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18751if \$ac_cs_recheck; then
18752  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18753  shift
18754  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18755  CONFIG_SHELL='$SHELL'
18756  export CONFIG_SHELL
18757  exec "\$@"
18758fi
18759
18760_ACEOF
18761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18762exec 5>>config.log
18763{
18764  echo
18765  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18766## Running $as_me. ##
18767_ASBOX
18768  $as_echo "$ac_log"
18769} >&5
18770
18771_ACEOF
18772cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18773#
18774# INIT-COMMANDS
18775#
18776AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18777
18778
18779# The HP-UX ksh and POSIX shell print the target directory to stdout
18780# if CDPATH is set.
18781(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18782
18783sed_quote_subst='$sed_quote_subst'
18784double_quote_subst='$double_quote_subst'
18785delay_variable_subst='$delay_variable_subst'
18786enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18787macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18788macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18789enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18790pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18791enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18792SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18793ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18794PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18795host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18796host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18797host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18798build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18799build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18800build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18801SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18802Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18803GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18804EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18805FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18806LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18807NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18808LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18809max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18810ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18811exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18812lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18813lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18814lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18815lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18816lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18817reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18818reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18819OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18820deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18821file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18822file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18823want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18824DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18825sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18826AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18827AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18828archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18829STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18830RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18831old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18832old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18833old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18834lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18835CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18836CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18837compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18838GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18839lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18840lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18841lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18842lt_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"`'
18843nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18844lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18845objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18846MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18847lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18848lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18849lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18850lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18851lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18852need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18853MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18854DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18855NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18856LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18857OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18858OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18859libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18860shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18861extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18862archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18863enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18864export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18865whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18866compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18867old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18868old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18869archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18870archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18871module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18872module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18873with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18874allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18875no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18876hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18877hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18878hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18879hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18880hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18881hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18882hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18883inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18884link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18885always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18886export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18887exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18888include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18889prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18890postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18891file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18892variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18893need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18894need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18895version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18896runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18897shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18898shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18899libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18900library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18901soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18902install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18903postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18904postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18905finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18906finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18907hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18908sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18909sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18910hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18911enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18912enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18913enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18914old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18915striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18916
18917LTCC='$LTCC'
18918LTCFLAGS='$LTCFLAGS'
18919compiler='$compiler_DEFAULT'
18920
18921# A function that is used when there is no print builtin or printf.
18922func_fallback_echo ()
18923{
18924  eval 'cat <<_LTECHO_EOF
18925\$1
18926_LTECHO_EOF'
18927}
18928
18929# Quote evaled strings.
18930for var in SHELL \
18931ECHO \
18932PATH_SEPARATOR \
18933SED \
18934GREP \
18935EGREP \
18936FGREP \
18937LD \
18938NM \
18939LN_S \
18940lt_SP2NL \
18941lt_NL2SP \
18942reload_flag \
18943OBJDUMP \
18944deplibs_check_method \
18945file_magic_cmd \
18946file_magic_glob \
18947want_nocaseglob \
18948DLLTOOL \
18949sharedlib_from_linklib_cmd \
18950AR \
18951AR_FLAGS \
18952archiver_list_spec \
18953STRIP \
18954RANLIB \
18955CC \
18956CFLAGS \
18957compiler \
18958lt_cv_sys_global_symbol_pipe \
18959lt_cv_sys_global_symbol_to_cdecl \
18960lt_cv_sys_global_symbol_to_c_name_address \
18961lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18962nm_file_list_spec \
18963lt_prog_compiler_no_builtin_flag \
18964lt_prog_compiler_pic \
18965lt_prog_compiler_wl \
18966lt_prog_compiler_static \
18967lt_cv_prog_compiler_c_o \
18968need_locks \
18969MANIFEST_TOOL \
18970DSYMUTIL \
18971NMEDIT \
18972LIPO \
18973OTOOL \
18974OTOOL64 \
18975shrext_cmds \
18976export_dynamic_flag_spec \
18977whole_archive_flag_spec \
18978compiler_needs_object \
18979with_gnu_ld \
18980allow_undefined_flag \
18981no_undefined_flag \
18982hardcode_libdir_flag_spec \
18983hardcode_libdir_separator \
18984exclude_expsyms \
18985include_expsyms \
18986file_list_spec \
18987variables_saved_for_relink \
18988libname_spec \
18989library_names_spec \
18990soname_spec \
18991install_override_mode \
18992finish_eval \
18993old_striplib \
18994striplib; do
18995    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18996    *[\\\\\\\`\\"\\\$]*)
18997      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18998      ;;
18999    *)
19000      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19001      ;;
19002    esac
19003done
19004
19005# Double-quote double-evaled strings.
19006for var in reload_cmds \
19007old_postinstall_cmds \
19008old_postuninstall_cmds \
19009old_archive_cmds \
19010extract_expsyms_cmds \
19011old_archive_from_new_cmds \
19012old_archive_from_expsyms_cmds \
19013archive_cmds \
19014archive_expsym_cmds \
19015module_cmds \
19016module_expsym_cmds \
19017export_symbols_cmds \
19018prelink_cmds \
19019postlink_cmds \
19020postinstall_cmds \
19021postuninstall_cmds \
19022finish_cmds \
19023sys_lib_search_path_spec \
19024sys_lib_dlsearch_path_spec; do
19025    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19026    *[\\\\\\\`\\"\\\$]*)
19027      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19028      ;;
19029    *)
19030      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19031      ;;
19032    esac
19033done
19034
19035ac_aux_dir='$ac_aux_dir'
19036xsi_shell='$xsi_shell'
19037lt_shell_append='$lt_shell_append'
19038
19039# See if we are running on zsh, and set the options which allow our
19040# commands through without removal of \ escapes INIT.
19041if test -n "\${ZSH_VERSION+set}" ; then
19042   setopt NO_GLOB_SUBST
19043fi
19044
19045
19046    PACKAGE='$PACKAGE'
19047    VERSION='$VERSION'
19048    TIMESTAMP='$TIMESTAMP'
19049    RM='$RM'
19050    ofile='$ofile'
19051
19052
19053
19054
19055_ACEOF
19056
19057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19058
19059# Handling of arguments.
19060for ac_config_target in $ac_config_targets
19061do
19062  case $ac_config_target in
19063    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19064    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19065    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19066    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19067    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19068
19069  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19070  esac
19071done
19072
19073
19074# If the user did not use the arguments to specify the items to instantiate,
19075# then the envvar interface is used.  Set only those that are not.
19076# We use the long form for the default assignment because of an extremely
19077# bizarre bug on SunOS 4.1.3.
19078if $ac_need_defaults; then
19079  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19080  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19081  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19082fi
19083
19084# Have a temporary directory for convenience.  Make it in the build tree
19085# simply because there is no reason against having it here, and in addition,
19086# creating and moving files from /tmp can sometimes cause problems.
19087# Hook for its removal unless debugging.
19088# Note that there is a small window in which the directory will not be cleaned:
19089# after its creation but before its name has been assigned to `$tmp'.
19090$debug ||
19091{
19092  tmp= ac_tmp=
19093  trap 'exit_status=$?
19094  : "${ac_tmp:=$tmp}"
19095  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19096' 0
19097  trap 'as_fn_exit 1' 1 2 13 15
19098}
19099# Create a (secure) tmp directory for tmp files.
19100
19101{
19102  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19103  test -d "$tmp"
19104}  ||
19105{
19106  tmp=./conf$$-$RANDOM
19107  (umask 077 && mkdir "$tmp")
19108} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19109ac_tmp=$tmp
19110
19111# Set up the scripts for CONFIG_FILES section.
19112# No need to generate them if there are no CONFIG_FILES.
19113# This happens for instance with `./config.status config.h'.
19114if test -n "$CONFIG_FILES"; then
19115
19116
19117ac_cr=`echo X | tr X '\015'`
19118# On cygwin, bash can eat \r inside `` if the user requested igncr.
19119# But we know of no other shell where ac_cr would be empty at this
19120# point, so we can use a bashism as a fallback.
19121if test "x$ac_cr" = x; then
19122  eval ac_cr=\$\'\\r\'
19123fi
19124ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19125if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19126  ac_cs_awk_cr='\\r'
19127else
19128  ac_cs_awk_cr=$ac_cr
19129fi
19130
19131echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19132_ACEOF
19133
19134
19135{
19136  echo "cat >conf$$subs.awk <<_ACEOF" &&
19137  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19138  echo "_ACEOF"
19139} >conf$$subs.sh ||
19140  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19141ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19142ac_delim='%!_!# '
19143for ac_last_try in false false false false false :; do
19144  . ./conf$$subs.sh ||
19145    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19146
19147  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19148  if test $ac_delim_n = $ac_delim_num; then
19149    break
19150  elif $ac_last_try; then
19151    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19152  else
19153    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19154  fi
19155done
19156rm -f conf$$subs.sh
19157
19158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19159cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19160_ACEOF
19161sed -n '
19162h
19163s/^/S["/; s/!.*/"]=/
19164p
19165g
19166s/^[^!]*!//
19167:repl
19168t repl
19169s/'"$ac_delim"'$//
19170t delim
19171:nl
19172h
19173s/\(.\{148\}\)..*/\1/
19174t more1
19175s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19176p
19177n
19178b repl
19179:more1
19180s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19181p
19182g
19183s/.\{148\}//
19184t nl
19185:delim
19186h
19187s/\(.\{148\}\)..*/\1/
19188t more2
19189s/["\\]/\\&/g; s/^/"/; s/$/"/
19190p
19191b
19192:more2
19193s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19194p
19195g
19196s/.\{148\}//
19197t delim
19198' <conf$$subs.awk | sed '
19199/^[^""]/{
19200  N
19201  s/\n//
19202}
19203' >>$CONFIG_STATUS || ac_write_fail=1
19204rm -f conf$$subs.awk
19205cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19206_ACAWK
19207cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19208  for (key in S) S_is_set[key] = 1
19209  FS = ""
19210
19211}
19212{
19213  line = $ 0
19214  nfields = split(line, field, "@")
19215  substed = 0
19216  len = length(field[1])
19217  for (i = 2; i < nfields; i++) {
19218    key = field[i]
19219    keylen = length(key)
19220    if (S_is_set[key]) {
19221      value = S[key]
19222      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19223      len += length(value) + length(field[++i])
19224      substed = 1
19225    } else
19226      len += 1 + keylen
19227  }
19228
19229  print line
19230}
19231
19232_ACAWK
19233_ACEOF
19234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19235if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19236  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19237else
19238  cat
19239fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19240  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19241_ACEOF
19242
19243# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19244# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19245# trailing colons and then remove the whole line if VPATH becomes empty
19246# (actually we leave an empty line to preserve line numbers).
19247if test "x$srcdir" = x.; then
19248  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19249h
19250s///
19251s/^/:/
19252s/[	 ]*$/:/
19253s/:\$(srcdir):/:/g
19254s/:\${srcdir}:/:/g
19255s/:@srcdir@:/:/g
19256s/^:*//
19257s/:*$//
19258x
19259s/\(=[	 ]*\).*/\1/
19260G
19261s/\n//
19262s/^[^=]*=[	 ]*$//
19263}'
19264fi
19265
19266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19267fi # test -n "$CONFIG_FILES"
19268
19269# Set up the scripts for CONFIG_HEADERS section.
19270# No need to generate them if there are no CONFIG_HEADERS.
19271# This happens for instance with `./config.status Makefile'.
19272if test -n "$CONFIG_HEADERS"; then
19273cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19274BEGIN {
19275_ACEOF
19276
19277# Transform confdefs.h into an awk script `defines.awk', embedded as
19278# here-document in config.status, that substitutes the proper values into
19279# config.h.in to produce config.h.
19280
19281# Create a delimiter string that does not exist in confdefs.h, to ease
19282# handling of long lines.
19283ac_delim='%!_!# '
19284for ac_last_try in false false :; do
19285  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19286  if test -z "$ac_tt"; then
19287    break
19288  elif $ac_last_try; then
19289    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19290  else
19291    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19292  fi
19293done
19294
19295# For the awk script, D is an array of macro values keyed by name,
19296# likewise P contains macro parameters if any.  Preserve backslash
19297# newline sequences.
19298
19299ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19300sed -n '
19301s/.\{148\}/&'"$ac_delim"'/g
19302t rset
19303:rset
19304s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19305t def
19306d
19307:def
19308s/\\$//
19309t bsnl
19310s/["\\]/\\&/g
19311s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19312D["\1"]=" \3"/p
19313s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19314d
19315:bsnl
19316s/["\\]/\\&/g
19317s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19318D["\1"]=" \3\\\\\\n"\\/p
19319t cont
19320s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19321t cont
19322d
19323:cont
19324n
19325s/.\{148\}/&'"$ac_delim"'/g
19326t clear
19327:clear
19328s/\\$//
19329t bsnlc
19330s/["\\]/\\&/g; s/^/"/; s/$/"/p
19331d
19332:bsnlc
19333s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19334b cont
19335' <confdefs.h | sed '
19336s/'"$ac_delim"'/"\\\
19337"/g' >>$CONFIG_STATUS || ac_write_fail=1
19338
19339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19340  for (key in D) D_is_set[key] = 1
19341  FS = ""
19342}
19343/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19344  line = \$ 0
19345  split(line, arg, " ")
19346  if (arg[1] == "#") {
19347    defundef = arg[2]
19348    mac1 = arg[3]
19349  } else {
19350    defundef = substr(arg[1], 2)
19351    mac1 = arg[2]
19352  }
19353  split(mac1, mac2, "(") #)
19354  macro = mac2[1]
19355  prefix = substr(line, 1, index(line, defundef) - 1)
19356  if (D_is_set[macro]) {
19357    # Preserve the white space surrounding the "#".
19358    print prefix "define", macro P[macro] D[macro]
19359    next
19360  } else {
19361    # Replace #undef with comments.  This is necessary, for example,
19362    # in the case of _POSIX_SOURCE, which is predefined and required
19363    # on some systems where configure will not decide to define it.
19364    if (defundef == "undef") {
19365      print "/*", prefix defundef, macro, "*/"
19366      next
19367    }
19368  }
19369}
19370{ print }
19371_ACAWK
19372_ACEOF
19373cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19374  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19375fi # test -n "$CONFIG_HEADERS"
19376
19377
19378eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19379shift
19380for ac_tag
19381do
19382  case $ac_tag in
19383  :[FHLC]) ac_mode=$ac_tag; continue;;
19384  esac
19385  case $ac_mode$ac_tag in
19386  :[FHL]*:*);;
19387  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19388  :[FH]-) ac_tag=-:-;;
19389  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19390  esac
19391  ac_save_IFS=$IFS
19392  IFS=:
19393  set x $ac_tag
19394  IFS=$ac_save_IFS
19395  shift
19396  ac_file=$1
19397  shift
19398
19399  case $ac_mode in
19400  :L) ac_source=$1;;
19401  :[FH])
19402    ac_file_inputs=
19403    for ac_f
19404    do
19405      case $ac_f in
19406      -) ac_f="$ac_tmp/stdin";;
19407      *) # Look for the file first in the build tree, then in the source tree
19408	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19409	 # because $ac_f cannot contain `:'.
19410	 test -f "$ac_f" ||
19411	   case $ac_f in
19412	   [\\/$]*) false;;
19413	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19414	   esac ||
19415	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19416      esac
19417      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19418      as_fn_append ac_file_inputs " '$ac_f'"
19419    done
19420
19421    # Let's still pretend it is `configure' which instantiates (i.e., don't
19422    # use $as_me), people would be surprised to read:
19423    #    /* config.h.  Generated by config.status.  */
19424    configure_input='Generated from '`
19425	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19426	`' by configure.'
19427    if test x"$ac_file" != x-; then
19428      configure_input="$ac_file.  $configure_input"
19429      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19430$as_echo "$as_me: creating $ac_file" >&6;}
19431    fi
19432    # Neutralize special characters interpreted by sed in replacement strings.
19433    case $configure_input in #(
19434    *\&* | *\|* | *\\* )
19435       ac_sed_conf_input=`$as_echo "$configure_input" |
19436       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19437    *) ac_sed_conf_input=$configure_input;;
19438    esac
19439
19440    case $ac_tag in
19441    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19442      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19443    esac
19444    ;;
19445  esac
19446
19447  ac_dir=`$as_dirname -- "$ac_file" ||
19448$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19449	 X"$ac_file" : 'X\(//\)[^/]' \| \
19450	 X"$ac_file" : 'X\(//\)$' \| \
19451	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19452$as_echo X"$ac_file" |
19453    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19454	    s//\1/
19455	    q
19456	  }
19457	  /^X\(\/\/\)[^/].*/{
19458	    s//\1/
19459	    q
19460	  }
19461	  /^X\(\/\/\)$/{
19462	    s//\1/
19463	    q
19464	  }
19465	  /^X\(\/\).*/{
19466	    s//\1/
19467	    q
19468	  }
19469	  s/.*/./; q'`
19470  as_dir="$ac_dir"; as_fn_mkdir_p
19471  ac_builddir=.
19472
19473case "$ac_dir" in
19474.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19475*)
19476  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19477  # A ".." for each directory in $ac_dir_suffix.
19478  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19479  case $ac_top_builddir_sub in
19480  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19481  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19482  esac ;;
19483esac
19484ac_abs_top_builddir=$ac_pwd
19485ac_abs_builddir=$ac_pwd$ac_dir_suffix
19486# for backward compatibility:
19487ac_top_builddir=$ac_top_build_prefix
19488
19489case $srcdir in
19490  .)  # We are building in place.
19491    ac_srcdir=.
19492    ac_top_srcdir=$ac_top_builddir_sub
19493    ac_abs_top_srcdir=$ac_pwd ;;
19494  [\\/]* | ?:[\\/]* )  # Absolute name.
19495    ac_srcdir=$srcdir$ac_dir_suffix;
19496    ac_top_srcdir=$srcdir
19497    ac_abs_top_srcdir=$srcdir ;;
19498  *) # Relative name.
19499    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19500    ac_top_srcdir=$ac_top_build_prefix$srcdir
19501    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19502esac
19503ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19504
19505
19506  case $ac_mode in
19507  :F)
19508  #
19509  # CONFIG_FILE
19510  #
19511
19512  case $INSTALL in
19513  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19514  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19515  esac
19516  ac_MKDIR_P=$MKDIR_P
19517  case $MKDIR_P in
19518  [\\/$]* | ?:[\\/]* ) ;;
19519  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19520  esac
19521_ACEOF
19522
19523cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19524# If the template does not know about datarootdir, expand it.
19525# FIXME: This hack should be removed a few years after 2.60.
19526ac_datarootdir_hack=; ac_datarootdir_seen=
19527ac_sed_dataroot='
19528/datarootdir/ {
19529  p
19530  q
19531}
19532/@datadir@/p
19533/@docdir@/p
19534/@infodir@/p
19535/@localedir@/p
19536/@mandir@/p'
19537case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19538*datarootdir*) ac_datarootdir_seen=yes;;
19539*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19540  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19541$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19542_ACEOF
19543cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19544  ac_datarootdir_hack='
19545  s&@datadir@&$datadir&g
19546  s&@docdir@&$docdir&g
19547  s&@infodir@&$infodir&g
19548  s&@localedir@&$localedir&g
19549  s&@mandir@&$mandir&g
19550  s&\\\${datarootdir}&$datarootdir&g' ;;
19551esac
19552_ACEOF
19553
19554# Neutralize VPATH when `$srcdir' = `.'.
19555# Shell code in configure.ac might set extrasub.
19556# FIXME: do we really want to maintain this feature?
19557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19558ac_sed_extra="$ac_vpsub
19559$extrasub
19560_ACEOF
19561cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19562:t
19563/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19564s|@configure_input@|$ac_sed_conf_input|;t t
19565s&@top_builddir@&$ac_top_builddir_sub&;t t
19566s&@top_build_prefix@&$ac_top_build_prefix&;t t
19567s&@srcdir@&$ac_srcdir&;t t
19568s&@abs_srcdir@&$ac_abs_srcdir&;t t
19569s&@top_srcdir@&$ac_top_srcdir&;t t
19570s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19571s&@builddir@&$ac_builddir&;t t
19572s&@abs_builddir@&$ac_abs_builddir&;t t
19573s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19574s&@INSTALL@&$ac_INSTALL&;t t
19575s&@MKDIR_P@&$ac_MKDIR_P&;t t
19576$ac_datarootdir_hack
19577"
19578eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19579  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19580
19581test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19582  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19583  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19584      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19585  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19586which seems to be undefined.  Please make sure it is defined" >&5
19587$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19588which seems to be undefined.  Please make sure it is defined" >&2;}
19589
19590  rm -f "$ac_tmp/stdin"
19591  case $ac_file in
19592  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19593  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19594  esac \
19595  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19596 ;;
19597  :H)
19598  #
19599  # CONFIG_HEADER
19600  #
19601  if test x"$ac_file" != x-; then
19602    {
19603      $as_echo "/* $configure_input  */" \
19604      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19605    } >"$ac_tmp/config.h" \
19606      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19607    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19608      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19609$as_echo "$as_me: $ac_file is unchanged" >&6;}
19610    else
19611      rm -f "$ac_file"
19612      mv "$ac_tmp/config.h" "$ac_file" \
19613	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19614    fi
19615  else
19616    $as_echo "/* $configure_input  */" \
19617      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19618      || as_fn_error $? "could not create -" "$LINENO" 5
19619  fi
19620# Compute "$ac_file"'s index in $config_headers.
19621_am_arg="$ac_file"
19622_am_stamp_count=1
19623for _am_header in $config_headers :; do
19624  case $_am_header in
19625    $_am_arg | $_am_arg:* )
19626      break ;;
19627    * )
19628      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19629  esac
19630done
19631echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19632$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19633	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19634	 X"$_am_arg" : 'X\(//\)$' \| \
19635	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19636$as_echo X"$_am_arg" |
19637    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19638	    s//\1/
19639	    q
19640	  }
19641	  /^X\(\/\/\)[^/].*/{
19642	    s//\1/
19643	    q
19644	  }
19645	  /^X\(\/\/\)$/{
19646	    s//\1/
19647	    q
19648	  }
19649	  /^X\(\/\).*/{
19650	    s//\1/
19651	    q
19652	  }
19653	  s/.*/./; q'`/stamp-h$_am_stamp_count
19654 ;;
19655
19656  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19657$as_echo "$as_me: executing $ac_file commands" >&6;}
19658 ;;
19659  esac
19660
19661
19662  case $ac_file$ac_mode in
19663    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19664  # Autoconf 2.62 quotes --file arguments for eval, but not when files
19665  # are listed without --file.  Let's play safe and only enable the eval
19666  # if we detect the quoting.
19667  case $CONFIG_FILES in
19668  *\'*) eval set x "$CONFIG_FILES" ;;
19669  *)   set x $CONFIG_FILES ;;
19670  esac
19671  shift
19672  for mf
19673  do
19674    # Strip MF so we end up with the name of the file.
19675    mf=`echo "$mf" | sed -e 's/:.*$//'`
19676    # Check whether this is an Automake generated Makefile or not.
19677    # We used to match only the files named `Makefile.in', but
19678    # some people rename them; so instead we look at the file content.
19679    # Grep'ing the first line is not enough: some people post-process
19680    # each Makefile.in and add a new line on top of each file to say so.
19681    # Grep'ing the whole file is not good either: AIX grep has a line
19682    # limit of 2048, but all sed's we know have understand at least 4000.
19683    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19684      dirpart=`$as_dirname -- "$mf" ||
19685$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19686	 X"$mf" : 'X\(//\)[^/]' \| \
19687	 X"$mf" : 'X\(//\)$' \| \
19688	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19689$as_echo X"$mf" |
19690    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19691	    s//\1/
19692	    q
19693	  }
19694	  /^X\(\/\/\)[^/].*/{
19695	    s//\1/
19696	    q
19697	  }
19698	  /^X\(\/\/\)$/{
19699	    s//\1/
19700	    q
19701	  }
19702	  /^X\(\/\).*/{
19703	    s//\1/
19704	    q
19705	  }
19706	  s/.*/./; q'`
19707    else
19708      continue
19709    fi
19710    # Extract the definition of DEPDIR, am__include, and am__quote
19711    # from the Makefile without running `make'.
19712    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19713    test -z "$DEPDIR" && continue
19714    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19715    test -z "am__include" && continue
19716    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19717    # When using ansi2knr, U may be empty or an underscore; expand it
19718    U=`sed -n 's/^U = //p' < "$mf"`
19719    # Find all dependency output files, they are included files with
19720    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19721    # simplest approach to changing $(DEPDIR) to its actual value in the
19722    # expansion.
19723    for file in `sed -n "
19724      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19725	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19726      # Make sure the directory exists.
19727      test -f "$dirpart/$file" && continue
19728      fdir=`$as_dirname -- "$file" ||
19729$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19730	 X"$file" : 'X\(//\)[^/]' \| \
19731	 X"$file" : 'X\(//\)$' \| \
19732	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19733$as_echo X"$file" |
19734    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19735	    s//\1/
19736	    q
19737	  }
19738	  /^X\(\/\/\)[^/].*/{
19739	    s//\1/
19740	    q
19741	  }
19742	  /^X\(\/\/\)$/{
19743	    s//\1/
19744	    q
19745	  }
19746	  /^X\(\/\).*/{
19747	    s//\1/
19748	    q
19749	  }
19750	  s/.*/./; q'`
19751      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19752      # echo "creating $dirpart/$file"
19753      echo '# dummy' > "$dirpart/$file"
19754    done
19755  done
19756}
19757 ;;
19758    "libtool":C)
19759
19760    # See if we are running on zsh, and set the options which allow our
19761    # commands through without removal of \ escapes.
19762    if test -n "${ZSH_VERSION+set}" ; then
19763      setopt NO_GLOB_SUBST
19764    fi
19765
19766    cfgfile="${ofile}T"
19767    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19768    $RM "$cfgfile"
19769
19770    cat <<_LT_EOF >> "$cfgfile"
19771#! $SHELL
19772
19773# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19774# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19775# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19776# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19777#
19778#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19779#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19780#                 Foundation, Inc.
19781#   Written by Gordon Matzigkeit, 1996
19782#
19783#   This file is part of GNU Libtool.
19784#
19785# GNU Libtool is free software; you can redistribute it and/or
19786# modify it under the terms of the GNU General Public License as
19787# published by the Free Software Foundation; either version 2 of
19788# the License, or (at your option) any later version.
19789#
19790# As a special exception to the GNU General Public License,
19791# if you distribute this file as part of a program or library that
19792# is built using GNU Libtool, you may include this file under the
19793# same distribution terms that you use for the rest of that program.
19794#
19795# GNU Libtool is distributed in the hope that it will be useful,
19796# but WITHOUT ANY WARRANTY; without even the implied warranty of
19797# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19798# GNU General Public License for more details.
19799#
19800# You should have received a copy of the GNU General Public License
19801# along with GNU Libtool; see the file COPYING.  If not, a copy
19802# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19803# obtained by writing to the Free Software Foundation, Inc.,
19804# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19805
19806
19807# The names of the tagged configurations supported by this script.
19808available_tags=""
19809
19810# ### BEGIN LIBTOOL CONFIG
19811
19812# Whether or not to build static libraries.
19813build_old_libs=$enable_static
19814
19815# Which release of libtool.m4 was used?
19816macro_version=$macro_version
19817macro_revision=$macro_revision
19818
19819# Whether or not to build shared libraries.
19820build_libtool_libs=$enable_shared
19821
19822# What type of objects to build.
19823pic_mode=$pic_mode
19824
19825# Whether or not to optimize for fast installation.
19826fast_install=$enable_fast_install
19827
19828# Shell to use when invoking shell scripts.
19829SHELL=$lt_SHELL
19830
19831# An echo program that protects backslashes.
19832ECHO=$lt_ECHO
19833
19834# The PATH separator for the build system.
19835PATH_SEPARATOR=$lt_PATH_SEPARATOR
19836
19837# The host system.
19838host_alias=$host_alias
19839host=$host
19840host_os=$host_os
19841
19842# The build system.
19843build_alias=$build_alias
19844build=$build
19845build_os=$build_os
19846
19847# A sed program that does not truncate output.
19848SED=$lt_SED
19849
19850# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19851Xsed="\$SED -e 1s/^X//"
19852
19853# A grep program that handles long lines.
19854GREP=$lt_GREP
19855
19856# An ERE matcher.
19857EGREP=$lt_EGREP
19858
19859# A literal string matcher.
19860FGREP=$lt_FGREP
19861
19862# A BSD- or MS-compatible name lister.
19863NM=$lt_NM
19864
19865# Whether we need soft or hard links.
19866LN_S=$lt_LN_S
19867
19868# What is the maximum length of a command?
19869max_cmd_len=$max_cmd_len
19870
19871# Object file suffix (normally "o").
19872objext=$ac_objext
19873
19874# Executable file suffix (normally "").
19875exeext=$exeext
19876
19877# whether the shell understands "unset".
19878lt_unset=$lt_unset
19879
19880# turn spaces into newlines.
19881SP2NL=$lt_lt_SP2NL
19882
19883# turn newlines into spaces.
19884NL2SP=$lt_lt_NL2SP
19885
19886# convert \$build file names to \$host format.
19887to_host_file_cmd=$lt_cv_to_host_file_cmd
19888
19889# convert \$build files to toolchain format.
19890to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19891
19892# An object symbol dumper.
19893OBJDUMP=$lt_OBJDUMP
19894
19895# Method to check whether dependent libraries are shared objects.
19896deplibs_check_method=$lt_deplibs_check_method
19897
19898# Command to use when deplibs_check_method = "file_magic".
19899file_magic_cmd=$lt_file_magic_cmd
19900
19901# How to find potential files when deplibs_check_method = "file_magic".
19902file_magic_glob=$lt_file_magic_glob
19903
19904# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19905want_nocaseglob=$lt_want_nocaseglob
19906
19907# DLL creation program.
19908DLLTOOL=$lt_DLLTOOL
19909
19910# Command to associate shared and link libraries.
19911sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19912
19913# The archiver.
19914AR=$lt_AR
19915
19916# Flags to create an archive.
19917AR_FLAGS=$lt_AR_FLAGS
19918
19919# How to feed a file listing to the archiver.
19920archiver_list_spec=$lt_archiver_list_spec
19921
19922# A symbol stripping program.
19923STRIP=$lt_STRIP
19924
19925# Commands used to install an old-style archive.
19926RANLIB=$lt_RANLIB
19927old_postinstall_cmds=$lt_old_postinstall_cmds
19928old_postuninstall_cmds=$lt_old_postuninstall_cmds
19929
19930# Whether to use a lock for old archive extraction.
19931lock_old_archive_extraction=$lock_old_archive_extraction
19932
19933# A C compiler.
19934LTCC=$lt_CC
19935
19936# LTCC compiler flags.
19937LTCFLAGS=$lt_CFLAGS
19938
19939# Take the output of nm and produce a listing of raw symbols and C names.
19940global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19941
19942# Transform the output of nm in a proper C declaration.
19943global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19944
19945# Transform the output of nm in a C name address pair.
19946global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19947
19948# Transform the output of nm in a C name address pair when lib prefix is needed.
19949global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19950
19951# Specify filename containing input files for \$NM.
19952nm_file_list_spec=$lt_nm_file_list_spec
19953
19954# The root where to search for dependent libraries,and in which our libraries should be installed.
19955lt_sysroot=$lt_sysroot
19956
19957# The name of the directory that contains temporary libtool files.
19958objdir=$objdir
19959
19960# Used to examine libraries when file_magic_cmd begins with "file".
19961MAGIC_CMD=$MAGIC_CMD
19962
19963# Must we lock files when doing compilation?
19964need_locks=$lt_need_locks
19965
19966# Manifest tool.
19967MANIFEST_TOOL=$lt_MANIFEST_TOOL
19968
19969# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19970DSYMUTIL=$lt_DSYMUTIL
19971
19972# Tool to change global to local symbols on Mac OS X.
19973NMEDIT=$lt_NMEDIT
19974
19975# Tool to manipulate fat objects and archives on Mac OS X.
19976LIPO=$lt_LIPO
19977
19978# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19979OTOOL=$lt_OTOOL
19980
19981# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19982OTOOL64=$lt_OTOOL64
19983
19984# Old archive suffix (normally "a").
19985libext=$libext
19986
19987# Shared library suffix (normally ".so").
19988shrext_cmds=$lt_shrext_cmds
19989
19990# The commands to extract the exported symbol list from a shared archive.
19991extract_expsyms_cmds=$lt_extract_expsyms_cmds
19992
19993# Variables whose values should be saved in libtool wrapper scripts and
19994# restored at link time.
19995variables_saved_for_relink=$lt_variables_saved_for_relink
19996
19997# Do we need the "lib" prefix for modules?
19998need_lib_prefix=$need_lib_prefix
19999
20000# Do we need a version for libraries?
20001need_version=$need_version
20002
20003# Library versioning type.
20004version_type=$version_type
20005
20006# Shared library runtime path variable.
20007runpath_var=$runpath_var
20008
20009# Shared library path variable.
20010shlibpath_var=$shlibpath_var
20011
20012# Is shlibpath searched before the hard-coded library search path?
20013shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20014
20015# Format of library name prefix.
20016libname_spec=$lt_libname_spec
20017
20018# List of archive names.  First name is the real one, the rest are links.
20019# The last name is the one that the linker finds with -lNAME
20020library_names_spec=$lt_library_names_spec
20021
20022# The coded name of the library, if different from the real name.
20023soname_spec=$lt_soname_spec
20024
20025# Permission mode override for installation of shared libraries.
20026install_override_mode=$lt_install_override_mode
20027
20028# Command to use after installation of a shared archive.
20029postinstall_cmds=$lt_postinstall_cmds
20030
20031# Command to use after uninstallation of a shared archive.
20032postuninstall_cmds=$lt_postuninstall_cmds
20033
20034# Commands used to finish a libtool library installation in a directory.
20035finish_cmds=$lt_finish_cmds
20036
20037# As "finish_cmds", except a single script fragment to be evaled but
20038# not shown.
20039finish_eval=$lt_finish_eval
20040
20041# Whether we should hardcode library paths into libraries.
20042hardcode_into_libs=$hardcode_into_libs
20043
20044# Compile-time system search path for libraries.
20045sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20046
20047# Run-time system search path for libraries.
20048sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20049
20050# Whether dlopen is supported.
20051dlopen_support=$enable_dlopen
20052
20053# Whether dlopen of programs is supported.
20054dlopen_self=$enable_dlopen_self
20055
20056# Whether dlopen of statically linked programs is supported.
20057dlopen_self_static=$enable_dlopen_self_static
20058
20059# Commands to strip libraries.
20060old_striplib=$lt_old_striplib
20061striplib=$lt_striplib
20062
20063
20064# The linker used to build libraries.
20065LD=$lt_LD
20066
20067# How to create reloadable object files.
20068reload_flag=$lt_reload_flag
20069reload_cmds=$lt_reload_cmds
20070
20071# Commands used to build an old-style archive.
20072old_archive_cmds=$lt_old_archive_cmds
20073
20074# A language specific compiler.
20075CC=$lt_compiler
20076
20077# Is the compiler the GNU compiler?
20078with_gcc=$GCC
20079
20080# Compiler flag to turn off builtin functions.
20081no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20082
20083# Additional compiler flags for building library objects.
20084pic_flag=$lt_lt_prog_compiler_pic
20085
20086# How to pass a linker flag through the compiler.
20087wl=$lt_lt_prog_compiler_wl
20088
20089# Compiler flag to prevent dynamic linking.
20090link_static_flag=$lt_lt_prog_compiler_static
20091
20092# Does compiler simultaneously support -c and -o options?
20093compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20094
20095# Whether or not to add -lc for building shared libraries.
20096build_libtool_need_lc=$archive_cmds_need_lc
20097
20098# Whether or not to disallow shared libs when runtime libs are static.
20099allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20100
20101# Compiler flag to allow reflexive dlopens.
20102export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20103
20104# Compiler flag to generate shared objects directly from archives.
20105whole_archive_flag_spec=$lt_whole_archive_flag_spec
20106
20107# Whether the compiler copes with passing no objects directly.
20108compiler_needs_object=$lt_compiler_needs_object
20109
20110# Create an old-style archive from a shared archive.
20111old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20112
20113# Create a temporary old-style archive to link instead of a shared archive.
20114old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20115
20116# Commands used to build a shared archive.
20117archive_cmds=$lt_archive_cmds
20118archive_expsym_cmds=$lt_archive_expsym_cmds
20119
20120# Commands used to build a loadable module if different from building
20121# a shared archive.
20122module_cmds=$lt_module_cmds
20123module_expsym_cmds=$lt_module_expsym_cmds
20124
20125# Whether we are building with GNU ld or not.
20126with_gnu_ld=$lt_with_gnu_ld
20127
20128# Flag that allows shared libraries with undefined symbols to be built.
20129allow_undefined_flag=$lt_allow_undefined_flag
20130
20131# Flag that enforces no undefined symbols.
20132no_undefined_flag=$lt_no_undefined_flag
20133
20134# Flag to hardcode \$libdir into a binary during linking.
20135# This must work even if \$libdir does not exist
20136hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20137
20138# Whether we need a single "-rpath" flag with a separated argument.
20139hardcode_libdir_separator=$lt_hardcode_libdir_separator
20140
20141# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20142# DIR into the resulting binary.
20143hardcode_direct=$hardcode_direct
20144
20145# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20146# DIR into the resulting binary and the resulting library dependency is
20147# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20148# library is relocated.
20149hardcode_direct_absolute=$hardcode_direct_absolute
20150
20151# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20152# into the resulting binary.
20153hardcode_minus_L=$hardcode_minus_L
20154
20155# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20156# into the resulting binary.
20157hardcode_shlibpath_var=$hardcode_shlibpath_var
20158
20159# Set to "yes" if building a shared library automatically hardcodes DIR
20160# into the library and all subsequent libraries and executables linked
20161# against it.
20162hardcode_automatic=$hardcode_automatic
20163
20164# Set to yes if linker adds runtime paths of dependent libraries
20165# to runtime path list.
20166inherit_rpath=$inherit_rpath
20167
20168# Whether libtool must link a program against all its dependency libraries.
20169link_all_deplibs=$link_all_deplibs
20170
20171# Set to "yes" if exported symbols are required.
20172always_export_symbols=$always_export_symbols
20173
20174# The commands to list exported symbols.
20175export_symbols_cmds=$lt_export_symbols_cmds
20176
20177# Symbols that should not be listed in the preloaded symbols.
20178exclude_expsyms=$lt_exclude_expsyms
20179
20180# Symbols that must always be exported.
20181include_expsyms=$lt_include_expsyms
20182
20183# Commands necessary for linking programs (against libraries) with templates.
20184prelink_cmds=$lt_prelink_cmds
20185
20186# Commands necessary for finishing linking programs.
20187postlink_cmds=$lt_postlink_cmds
20188
20189# Specify filename containing input files.
20190file_list_spec=$lt_file_list_spec
20191
20192# How to hardcode a shared library path into an executable.
20193hardcode_action=$hardcode_action
20194
20195# ### END LIBTOOL CONFIG
20196
20197_LT_EOF
20198
20199  case $host_os in
20200  aix3*)
20201    cat <<\_LT_EOF >> "$cfgfile"
20202# AIX sometimes has problems with the GCC collect2 program.  For some
20203# reason, if we set the COLLECT_NAMES environment variable, the problems
20204# vanish in a puff of smoke.
20205if test "X${COLLECT_NAMES+set}" != Xset; then
20206  COLLECT_NAMES=
20207  export COLLECT_NAMES
20208fi
20209_LT_EOF
20210    ;;
20211  esac
20212
20213
20214ltmain="$ac_aux_dir/ltmain.sh"
20215
20216
20217  # We use sed instead of cat because bash on DJGPP gets confused if
20218  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20219  # text mode, it properly converts lines to CR/LF.  This bash problem
20220  # is reportedly fixed, but why not run on old versions too?
20221  sed '$q' "$ltmain" >> "$cfgfile" \
20222     || (rm -f "$cfgfile"; exit 1)
20223
20224  if test x"$xsi_shell" = xyes; then
20225  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20226func_dirname ()\
20227{\
20228\    case ${1} in\
20229\      */*) func_dirname_result="${1%/*}${2}" ;;\
20230\      *  ) func_dirname_result="${3}" ;;\
20231\    esac\
20232} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20233  && mv -f "$cfgfile.tmp" "$cfgfile" \
20234    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20235test 0 -eq $? || _lt_function_replace_fail=:
20236
20237
20238  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20239func_basename ()\
20240{\
20241\    func_basename_result="${1##*/}"\
20242} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20243  && mv -f "$cfgfile.tmp" "$cfgfile" \
20244    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20245test 0 -eq $? || _lt_function_replace_fail=:
20246
20247
20248  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20249func_dirname_and_basename ()\
20250{\
20251\    case ${1} in\
20252\      */*) func_dirname_result="${1%/*}${2}" ;;\
20253\      *  ) func_dirname_result="${3}" ;;\
20254\    esac\
20255\    func_basename_result="${1##*/}"\
20256} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20257  && mv -f "$cfgfile.tmp" "$cfgfile" \
20258    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20259test 0 -eq $? || _lt_function_replace_fail=:
20260
20261
20262  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20263func_stripname ()\
20264{\
20265\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20266\    # positional parameters, so assign one to ordinary parameter first.\
20267\    func_stripname_result=${3}\
20268\    func_stripname_result=${func_stripname_result#"${1}"}\
20269\    func_stripname_result=${func_stripname_result%"${2}"}\
20270} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20271  && mv -f "$cfgfile.tmp" "$cfgfile" \
20272    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20273test 0 -eq $? || _lt_function_replace_fail=:
20274
20275
20276  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20277func_split_long_opt ()\
20278{\
20279\    func_split_long_opt_name=${1%%=*}\
20280\    func_split_long_opt_arg=${1#*=}\
20281} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20282  && mv -f "$cfgfile.tmp" "$cfgfile" \
20283    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20284test 0 -eq $? || _lt_function_replace_fail=:
20285
20286
20287  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20288func_split_short_opt ()\
20289{\
20290\    func_split_short_opt_arg=${1#??}\
20291\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20292} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20293  && mv -f "$cfgfile.tmp" "$cfgfile" \
20294    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20295test 0 -eq $? || _lt_function_replace_fail=:
20296
20297
20298  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20299func_lo2o ()\
20300{\
20301\    case ${1} in\
20302\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20303\      *)    func_lo2o_result=${1} ;;\
20304\    esac\
20305} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20306  && mv -f "$cfgfile.tmp" "$cfgfile" \
20307    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20308test 0 -eq $? || _lt_function_replace_fail=:
20309
20310
20311  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20312func_xform ()\
20313{\
20314    func_xform_result=${1%.*}.lo\
20315} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20316  && mv -f "$cfgfile.tmp" "$cfgfile" \
20317    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20318test 0 -eq $? || _lt_function_replace_fail=:
20319
20320
20321  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20322func_arith ()\
20323{\
20324    func_arith_result=$(( $* ))\
20325} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20326  && mv -f "$cfgfile.tmp" "$cfgfile" \
20327    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20328test 0 -eq $? || _lt_function_replace_fail=:
20329
20330
20331  sed -e '/^func_len ()$/,/^} # func_len /c\
20332func_len ()\
20333{\
20334    func_len_result=${#1}\
20335} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20336  && mv -f "$cfgfile.tmp" "$cfgfile" \
20337    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20338test 0 -eq $? || _lt_function_replace_fail=:
20339
20340fi
20341
20342if test x"$lt_shell_append" = xyes; then
20343  sed -e '/^func_append ()$/,/^} # func_append /c\
20344func_append ()\
20345{\
20346    eval "${1}+=\\${2}"\
20347} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20348  && mv -f "$cfgfile.tmp" "$cfgfile" \
20349    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20350test 0 -eq $? || _lt_function_replace_fail=:
20351
20352
20353  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20354func_append_quoted ()\
20355{\
20356\    func_quote_for_eval "${2}"\
20357\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20358} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20359  && mv -f "$cfgfile.tmp" "$cfgfile" \
20360    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20361test 0 -eq $? || _lt_function_replace_fail=:
20362
20363
20364  # Save a `func_append' function call where possible by direct use of '+='
20365  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20366    && mv -f "$cfgfile.tmp" "$cfgfile" \
20367      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20368  test 0 -eq $? || _lt_function_replace_fail=:
20369else
20370  # Save a `func_append' function call even when '+=' is not available
20371  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20372    && mv -f "$cfgfile.tmp" "$cfgfile" \
20373      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20374  test 0 -eq $? || _lt_function_replace_fail=:
20375fi
20376
20377if test x"$_lt_function_replace_fail" = x":"; then
20378  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20379$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20380fi
20381
20382
20383   mv -f "$cfgfile" "$ofile" ||
20384    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20385  chmod +x "$ofile"
20386
20387 ;;
20388
20389  esac
20390done # for ac_tag
20391
20392
20393as_fn_exit 0
20394_ACEOF
20395ac_clean_files=$ac_clean_files_save
20396
20397test $ac_write_fail = 0 ||
20398  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20399
20400
20401# configure is writing to config.log, and then calls config.status.
20402# config.status does its own redirection, appending to config.log.
20403# Unfortunately, on DOS this fails, as config.log is still kept open
20404# by configure, so config.status won't be able to write to it; its
20405# output is simply discarded.  So we exec the FD to /dev/null,
20406# effectively closing config.log, so it can be properly (re)opened and
20407# appended to by config.status.  When coming back to configure, we
20408# need to make the FD available again.
20409if test "$no_create" != yes; then
20410  ac_cs_success=:
20411  ac_config_status_args=
20412  test "$silent" = yes &&
20413    ac_config_status_args="$ac_config_status_args --quiet"
20414  exec 5>/dev/null
20415  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20416  exec 5>>config.log
20417  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20418  # would make configure fail if this is the last instruction.
20419  $ac_cs_success || as_fn_exit 1
20420fi
20421if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20422  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20423$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20424fi
20425
20426