configure revision 86ea1d58
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for libpciaccess 0.13.2.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess>.
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=libpciaccess
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='libpciaccess'
573PACKAGE_TARNAME='libpciaccess'
574PACKAGE_VERSION='0.13.2'
575PACKAGE_STRING='libpciaccess 0.13.2'
576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess'
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
620PCIACCESS_LIBS
621PCIACCESS_CFLAGS
622GNU_FALSE
623GNU_TRUE
624SOLARIS_FALSE
625SOLARIS_TRUE
626OPENBSD_FALSE
627OPENBSD_TRUE
628NETBSD_FALSE
629NETBSD_TRUE
630FREEBSD_FALSE
631FREEBSD_TRUE
632LINUX_FALSE
633LINUX_TRUE
634PCIIDS_PATH
635MAN_SUBSTS
636XORG_MAN_PAGE
637ADMIN_MAN_DIR
638DRIVER_MAN_DIR
639MISC_MAN_DIR
640FILE_MAN_DIR
641LIB_MAN_DIR
642APP_MAN_DIR
643ADMIN_MAN_SUFFIX
644DRIVER_MAN_SUFFIX
645MISC_MAN_SUFFIX
646FILE_MAN_SUFFIX
647LIB_MAN_SUFFIX
648APP_MAN_SUFFIX
649INSTALL_CMD
650PKG_CONFIG
651CHANGELOG_CMD
652STRICT_CFLAGS
653CWARNFLAGS
654BASE_CFLAGS
655OTOOL64
656OTOOL
657LIPO
658NMEDIT
659DSYMUTIL
660MANIFEST_TOOL
661RANLIB
662ac_ct_AR
663AR
664DLLTOOL
665OBJDUMP
666LN_S
667NM
668ac_ct_DUMPBIN
669DUMPBIN
670LD
671FGREP
672SED
673host_os
674host_vendor
675host_cpu
676host
677build_os
678build_vendor
679build_cpu
680build
681LIBTOOL
682EGREP
683GREP
684CPP
685am__fastdepCC_FALSE
686am__fastdepCC_TRUE
687CCDEPMODE
688am__nodep
689AMDEPBACKSLASH
690AMDEP_FALSE
691AMDEP_TRUE
692am__quote
693am__include
694DEPDIR
695OBJEXT
696EXEEXT
697ac_ct_CC
698CPPFLAGS
699LDFLAGS
700CFLAGS
701CC
702AM_BACKSLASH
703AM_DEFAULT_VERBOSITY
704AM_DEFAULT_V
705AM_V
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_silent_rules
771enable_dependency_tracking
772enable_shared
773enable_static
774with_pic
775enable_fast_install
776with_gnu_ld
777with_sysroot
778enable_libtool_lock
779enable_selective_werror
780enable_strict_compilation
781with_pciids_path
782enable_linux_rom_fallback
783with_zlib
784enable_largefile
785'
786      ac_precious_vars='build_alias
787host_alias
788target_alias
789CC
790CFLAGS
791LDFLAGS
792LIBS
793CPPFLAGS
794CPP
795PKG_CONFIG'
796
797
798# Initialize some variables set by options.
799ac_init_help=
800ac_init_version=false
801ac_unrecognized_opts=
802ac_unrecognized_sep=
803# The variables have the same names as the options, with
804# dashes changed to underlines.
805cache_file=/dev/null
806exec_prefix=NONE
807no_create=
808no_recursion=
809prefix=NONE
810program_prefix=NONE
811program_suffix=NONE
812program_transform_name=s,x,x,
813silent=
814site=
815srcdir=
816verbose=
817x_includes=NONE
818x_libraries=NONE
819
820# Installation directory options.
821# These are left unexpanded so users can "make install exec_prefix=/foo"
822# and all the variables that are supposed to be based on exec_prefix
823# by default will actually change.
824# Use braces instead of parens because sh, perl, etc. also accept them.
825# (The list follows the same order as the GNU Coding Standards.)
826bindir='${exec_prefix}/bin'
827sbindir='${exec_prefix}/sbin'
828libexecdir='${exec_prefix}/libexec'
829datarootdir='${prefix}/share'
830datadir='${datarootdir}'
831sysconfdir='${prefix}/etc'
832sharedstatedir='${prefix}/com'
833localstatedir='${prefix}/var'
834includedir='${prefix}/include'
835oldincludedir='/usr/include'
836docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837infodir='${datarootdir}/info'
838htmldir='${docdir}'
839dvidir='${docdir}'
840pdfdir='${docdir}'
841psdir='${docdir}'
842libdir='${exec_prefix}/lib'
843localedir='${datarootdir}/locale'
844mandir='${datarootdir}/man'
845
846ac_prev=
847ac_dashdash=
848for ac_option
849do
850  # If the previous option needs an argument, assign it.
851  if test -n "$ac_prev"; then
852    eval $ac_prev=\$ac_option
853    ac_prev=
854    continue
855  fi
856
857  case $ac_option in
858  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859  *=)   ac_optarg= ;;
860  *)    ac_optarg=yes ;;
861  esac
862
863  # Accept the important Cygnus configure options, so we can diagnose typos.
864
865  case $ac_dashdash$ac_option in
866  --)
867    ac_dashdash=yes ;;
868
869  -bindir | --bindir | --bindi | --bind | --bin | --bi)
870    ac_prev=bindir ;;
871  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872    bindir=$ac_optarg ;;
873
874  -build | --build | --buil | --bui | --bu)
875    ac_prev=build_alias ;;
876  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877    build_alias=$ac_optarg ;;
878
879  -cache-file | --cache-file | --cache-fil | --cache-fi \
880  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881    ac_prev=cache_file ;;
882  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884    cache_file=$ac_optarg ;;
885
886  --config-cache | -C)
887    cache_file=config.cache ;;
888
889  -datadir | --datadir | --datadi | --datad)
890    ac_prev=datadir ;;
891  -datadir=* | --datadir=* | --datadi=* | --datad=*)
892    datadir=$ac_optarg ;;
893
894  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895  | --dataroo | --dataro | --datar)
896    ac_prev=datarootdir ;;
897  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899    datarootdir=$ac_optarg ;;
900
901  -disable-* | --disable-*)
902    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903    # Reject names that are not valid shell variable names.
904    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905      as_fn_error $? "invalid feature name: $ac_useropt"
906    ac_useropt_orig=$ac_useropt
907    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908    case $ac_user_opts in
909      *"
910"enable_$ac_useropt"
911"*) ;;
912      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913	 ac_unrecognized_sep=', ';;
914    esac
915    eval enable_$ac_useropt=no ;;
916
917  -docdir | --docdir | --docdi | --doc | --do)
918    ac_prev=docdir ;;
919  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920    docdir=$ac_optarg ;;
921
922  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923    ac_prev=dvidir ;;
924  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925    dvidir=$ac_optarg ;;
926
927  -enable-* | --enable-*)
928    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929    # Reject names that are not valid shell variable names.
930    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931      as_fn_error $? "invalid feature name: $ac_useropt"
932    ac_useropt_orig=$ac_useropt
933    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934    case $ac_user_opts in
935      *"
936"enable_$ac_useropt"
937"*) ;;
938      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939	 ac_unrecognized_sep=', ';;
940    esac
941    eval enable_$ac_useropt=\$ac_optarg ;;
942
943  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945  | --exec | --exe | --ex)
946    ac_prev=exec_prefix ;;
947  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949  | --exec=* | --exe=* | --ex=*)
950    exec_prefix=$ac_optarg ;;
951
952  -gas | --gas | --ga | --g)
953    # Obsolete; use --with-gas.
954    with_gas=yes ;;
955
956  -help | --help | --hel | --he | -h)
957    ac_init_help=long ;;
958  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959    ac_init_help=recursive ;;
960  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961    ac_init_help=short ;;
962
963  -host | --host | --hos | --ho)
964    ac_prev=host_alias ;;
965  -host=* | --host=* | --hos=* | --ho=*)
966    host_alias=$ac_optarg ;;
967
968  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969    ac_prev=htmldir ;;
970  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971  | --ht=*)
972    htmldir=$ac_optarg ;;
973
974  -includedir | --includedir | --includedi | --included | --include \
975  | --includ | --inclu | --incl | --inc)
976    ac_prev=includedir ;;
977  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978  | --includ=* | --inclu=* | --incl=* | --inc=*)
979    includedir=$ac_optarg ;;
980
981  -infodir | --infodir | --infodi | --infod | --info | --inf)
982    ac_prev=infodir ;;
983  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984    infodir=$ac_optarg ;;
985
986  -libdir | --libdir | --libdi | --libd)
987    ac_prev=libdir ;;
988  -libdir=* | --libdir=* | --libdi=* | --libd=*)
989    libdir=$ac_optarg ;;
990
991  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992  | --libexe | --libex | --libe)
993    ac_prev=libexecdir ;;
994  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995  | --libexe=* | --libex=* | --libe=*)
996    libexecdir=$ac_optarg ;;
997
998  -localedir | --localedir | --localedi | --localed | --locale)
999    ac_prev=localedir ;;
1000  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001    localedir=$ac_optarg ;;
1002
1003  -localstatedir | --localstatedir | --localstatedi | --localstated \
1004  | --localstate | --localstat | --localsta | --localst | --locals)
1005    ac_prev=localstatedir ;;
1006  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008    localstatedir=$ac_optarg ;;
1009
1010  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011    ac_prev=mandir ;;
1012  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013    mandir=$ac_optarg ;;
1014
1015  -nfp | --nfp | --nf)
1016    # Obsolete; use --without-fp.
1017    with_fp=no ;;
1018
1019  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020  | --no-cr | --no-c | -n)
1021    no_create=yes ;;
1022
1023  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025    no_recursion=yes ;;
1026
1027  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029  | --oldin | --oldi | --old | --ol | --o)
1030    ac_prev=oldincludedir ;;
1031  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034    oldincludedir=$ac_optarg ;;
1035
1036  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037    ac_prev=prefix ;;
1038  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039    prefix=$ac_optarg ;;
1040
1041  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042  | --program-pre | --program-pr | --program-p)
1043    ac_prev=program_prefix ;;
1044  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046    program_prefix=$ac_optarg ;;
1047
1048  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049  | --program-suf | --program-su | --program-s)
1050    ac_prev=program_suffix ;;
1051  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053    program_suffix=$ac_optarg ;;
1054
1055  -program-transform-name | --program-transform-name \
1056  | --program-transform-nam | --program-transform-na \
1057  | --program-transform-n | --program-transform- \
1058  | --program-transform | --program-transfor \
1059  | --program-transfo | --program-transf \
1060  | --program-trans | --program-tran \
1061  | --progr-tra | --program-tr | --program-t)
1062    ac_prev=program_transform_name ;;
1063  -program-transform-name=* | --program-transform-name=* \
1064  | --program-transform-nam=* | --program-transform-na=* \
1065  | --program-transform-n=* | --program-transform-=* \
1066  | --program-transform=* | --program-transfor=* \
1067  | --program-transfo=* | --program-transf=* \
1068  | --program-trans=* | --program-tran=* \
1069  | --progr-tra=* | --program-tr=* | --program-t=*)
1070    program_transform_name=$ac_optarg ;;
1071
1072  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073    ac_prev=pdfdir ;;
1074  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075    pdfdir=$ac_optarg ;;
1076
1077  -psdir | --psdir | --psdi | --psd | --ps)
1078    ac_prev=psdir ;;
1079  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080    psdir=$ac_optarg ;;
1081
1082  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083  | -silent | --silent | --silen | --sile | --sil)
1084    silent=yes ;;
1085
1086  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1087    ac_prev=sbindir ;;
1088  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1089  | --sbi=* | --sb=*)
1090    sbindir=$ac_optarg ;;
1091
1092  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1093  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1094  | --sharedst | --shareds | --shared | --share | --shar \
1095  | --sha | --sh)
1096    ac_prev=sharedstatedir ;;
1097  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1098  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1099  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1100  | --sha=* | --sh=*)
1101    sharedstatedir=$ac_optarg ;;
1102
1103  -site | --site | --sit)
1104    ac_prev=site ;;
1105  -site=* | --site=* | --sit=*)
1106    site=$ac_optarg ;;
1107
1108  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1109    ac_prev=srcdir ;;
1110  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1111    srcdir=$ac_optarg ;;
1112
1113  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1114  | --syscon | --sysco | --sysc | --sys | --sy)
1115    ac_prev=sysconfdir ;;
1116  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1117  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1118    sysconfdir=$ac_optarg ;;
1119
1120  -target | --target | --targe | --targ | --tar | --ta | --t)
1121    ac_prev=target_alias ;;
1122  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1123    target_alias=$ac_optarg ;;
1124
1125  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1126    verbose=yes ;;
1127
1128  -version | --version | --versio | --versi | --vers | -V)
1129    ac_init_version=: ;;
1130
1131  -with-* | --with-*)
1132    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1133    # Reject names that are not valid shell variable names.
1134    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135      as_fn_error $? "invalid package name: $ac_useropt"
1136    ac_useropt_orig=$ac_useropt
1137    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138    case $ac_user_opts in
1139      *"
1140"with_$ac_useropt"
1141"*) ;;
1142      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1143	 ac_unrecognized_sep=', ';;
1144    esac
1145    eval with_$ac_useropt=\$ac_optarg ;;
1146
1147  -without-* | --without-*)
1148    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149    # Reject names that are not valid shell variable names.
1150    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151      as_fn_error $? "invalid package name: $ac_useropt"
1152    ac_useropt_orig=$ac_useropt
1153    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154    case $ac_user_opts in
1155      *"
1156"with_$ac_useropt"
1157"*) ;;
1158      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1159	 ac_unrecognized_sep=', ';;
1160    esac
1161    eval with_$ac_useropt=no ;;
1162
1163  --x)
1164    # Obsolete; use --with-x.
1165    with_x=yes ;;
1166
1167  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168  | --x-incl | --x-inc | --x-in | --x-i)
1169    ac_prev=x_includes ;;
1170  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172    x_includes=$ac_optarg ;;
1173
1174  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176    ac_prev=x_libraries ;;
1177  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179    x_libraries=$ac_optarg ;;
1180
1181  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1182Try \`$0 --help' for more information"
1183    ;;
1184
1185  *=*)
1186    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1187    # Reject names that are not valid shell variable names.
1188    case $ac_envvar in #(
1189      '' | [0-9]* | *[!_$as_cr_alnum]* )
1190      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1191    esac
1192    eval $ac_envvar=\$ac_optarg
1193    export $ac_envvar ;;
1194
1195  *)
1196    # FIXME: should be removed in autoconf 3.0.
1197    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1201    ;;
1202
1203  esac
1204done
1205
1206if test -n "$ac_prev"; then
1207  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208  as_fn_error $? "missing argument to $ac_option"
1209fi
1210
1211if test -n "$ac_unrecognized_opts"; then
1212  case $enable_option_checking in
1213    no) ;;
1214    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1215    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1216  esac
1217fi
1218
1219# Check all directory arguments for consistency.
1220for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221		datadir sysconfdir sharedstatedir localstatedir includedir \
1222		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223		libdir localedir mandir
1224do
1225  eval ac_val=\$$ac_var
1226  # Remove trailing slashes.
1227  case $ac_val in
1228    */ )
1229      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1230      eval $ac_var=\$ac_val;;
1231  esac
1232  # Be sure to have absolute directory names.
1233  case $ac_val in
1234    [\\/$]* | ?:[\\/]* )  continue;;
1235    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1236  esac
1237  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1238done
1239
1240# There might be people who depend on the old broken behavior: `$host'
1241# used to hold the argument of --host etc.
1242# FIXME: To remove some day.
1243build=$build_alias
1244host=$host_alias
1245target=$target_alias
1246
1247# FIXME: To remove some day.
1248if test "x$host_alias" != x; then
1249  if test "x$build_alias" = x; then
1250    cross_compiling=maybe
1251    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1252    If a cross compiler is detected then cross compile mode will be used" >&2
1253  elif test "x$build_alias" != "x$host_alias"; then
1254    cross_compiling=yes
1255  fi
1256fi
1257
1258ac_tool_prefix=
1259test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260
1261test "$silent" = yes && exec 6>/dev/null
1262
1263
1264ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265ac_ls_di=`ls -di .` &&
1266ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1267  as_fn_error $? "working directory cannot be determined"
1268test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269  as_fn_error $? "pwd does not report name of working directory"
1270
1271
1272# Find the source files, if location was not specified.
1273if test -z "$srcdir"; then
1274  ac_srcdir_defaulted=yes
1275  # Try the directory containing this script, then the parent directory.
1276  ac_confdir=`$as_dirname -- "$as_myself" ||
1277$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1278	 X"$as_myself" : 'X\(//\)[^/]' \| \
1279	 X"$as_myself" : 'X\(//\)$' \| \
1280	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1281$as_echo X"$as_myself" |
1282    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283	    s//\1/
1284	    q
1285	  }
1286	  /^X\(\/\/\)[^/].*/{
1287	    s//\1/
1288	    q
1289	  }
1290	  /^X\(\/\/\)$/{
1291	    s//\1/
1292	    q
1293	  }
1294	  /^X\(\/\).*/{
1295	    s//\1/
1296	    q
1297	  }
1298	  s/.*/./; q'`
1299  srcdir=$ac_confdir
1300  if test ! -r "$srcdir/$ac_unique_file"; then
1301    srcdir=..
1302  fi
1303else
1304  ac_srcdir_defaulted=no
1305fi
1306if test ! -r "$srcdir/$ac_unique_file"; then
1307  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1308  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1309fi
1310ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1311ac_abs_confdir=`(
1312	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1313	pwd)`
1314# When building in place, set srcdir=.
1315if test "$ac_abs_confdir" = "$ac_pwd"; then
1316  srcdir=.
1317fi
1318# Remove unnecessary trailing slashes from srcdir.
1319# Double slashes in file names in object file debugging info
1320# mess up M-x gdb in Emacs.
1321case $srcdir in
1322*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323esac
1324for ac_var in $ac_precious_vars; do
1325  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1326  eval ac_env_${ac_var}_value=\$${ac_var}
1327  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1328  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329done
1330
1331#
1332# Report the --help message.
1333#
1334if test "$ac_init_help" = "long"; then
1335  # Omit some internal or obsolete options to make the list less imposing.
1336  # This message is too long to be a string in the A/UX 3.1 sh.
1337  cat <<_ACEOF
1338\`configure' configures libpciaccess 0.13.2 to adapt to many kinds of systems.
1339
1340Usage: $0 [OPTION]... [VAR=VALUE]...
1341
1342To assign environment variables (e.g., CC, CFLAGS...), specify them as
1343VAR=VALUE.  See below for descriptions of some of the useful variables.
1344
1345Defaults for the options are specified in brackets.
1346
1347Configuration:
1348  -h, --help              display this help and exit
1349      --help=short        display options specific to this package
1350      --help=recursive    display the short help of all the included packages
1351  -V, --version           display version information and exit
1352  -q, --quiet, --silent   do not print \`checking ...' messages
1353      --cache-file=FILE   cache test results in FILE [disabled]
1354  -C, --config-cache      alias for \`--cache-file=config.cache'
1355  -n, --no-create         do not create output files
1356      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1357
1358Installation directories:
1359  --prefix=PREFIX         install architecture-independent files in PREFIX
1360                          [$ac_default_prefix]
1361  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1362                          [PREFIX]
1363
1364By default, \`make install' will install all the files in
1365\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1366an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1367for instance \`--prefix=\$HOME'.
1368
1369For better control, use the options below.
1370
1371Fine tuning of the installation directories:
1372  --bindir=DIR            user executables [EPREFIX/bin]
1373  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1374  --libexecdir=DIR        program executables [EPREFIX/libexec]
1375  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1376  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1377  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1378  --libdir=DIR            object code libraries [EPREFIX/lib]
1379  --includedir=DIR        C header files [PREFIX/include]
1380  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1381  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1382  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1383  --infodir=DIR           info documentation [DATAROOTDIR/info]
1384  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1385  --mandir=DIR            man documentation [DATAROOTDIR/man]
1386  --docdir=DIR            documentation root [DATAROOTDIR/doc/libpciaccess]
1387  --htmldir=DIR           html documentation [DOCDIR]
1388  --dvidir=DIR            dvi documentation [DOCDIR]
1389  --pdfdir=DIR            pdf documentation [DOCDIR]
1390  --psdir=DIR             ps documentation [DOCDIR]
1391_ACEOF
1392
1393  cat <<\_ACEOF
1394
1395Program names:
1396  --program-prefix=PREFIX            prepend PREFIX to installed program names
1397  --program-suffix=SUFFIX            append SUFFIX to installed program names
1398  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1399
1400System types:
1401  --build=BUILD     configure for building on BUILD [guessed]
1402  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1403_ACEOF
1404fi
1405
1406if test -n "$ac_init_help"; then
1407  case $ac_init_help in
1408     short | recursive ) echo "Configuration of libpciaccess 0.13.2:";;
1409   esac
1410  cat <<\_ACEOF
1411
1412Optional Features:
1413  --disable-option-checking  ignore unrecognized --enable/--with options
1414  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1415  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1416  --enable-silent-rules   less verbose build output (undo: "make V=1")
1417  --disable-silent-rules  verbose build output (undo: "make V=0")
1418  --enable-dependency-tracking
1419                          do not reject slow dependency extractors
1420  --disable-dependency-tracking
1421                          speeds up one-time build
1422  --enable-shared[=PKGS]  build shared libraries [default=yes]
1423  --enable-static[=PKGS]  build static libraries [default=yes]
1424  --enable-fast-install[=PKGS]
1425                          optimize for fast installation [default=yes]
1426  --disable-libtool-lock  avoid locking (might break parallel builds)
1427  --disable-selective-werror
1428                          Turn off selective compiler errors. (default:
1429                          enabled)
1430  --enable-strict-compilation
1431                          Enable all warnings from compiler and make them
1432                          errors (default: disabled)
1433  --enable-linux-rom-fallback
1434                          Enable support for falling back to /dev/mem for roms
1435                          (default: disabled)
1436  --disable-largefile     omit support for large files
1437
1438Optional Packages:
1439  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1440  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1441  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1442                          both]
1443  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1444  --with-sysroot=DIR Search for dependent libraries within DIR
1445                        (or the compiler's sysroot if not specified).
1446  --with-pciids-path=PCIIDS_PATH
1447                          Path to pci.ids file
1448  --with-zlib             Enable zlib support to read gzip compressed pci.ids
1449
1450Some influential environment variables:
1451  CC          C compiler command
1452  CFLAGS      C compiler flags
1453  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1454              nonstandard directory <lib dir>
1455  LIBS        libraries to pass to the linker, e.g. -l<library>
1456  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1457              you have headers in a nonstandard directory <include dir>
1458  CPP         C preprocessor
1459  PKG_CONFIG  path to pkg-config utility
1460
1461Use these variables to override the choices made by `configure' or to help
1462it to find libraries and programs with nonstandard names/locations.
1463
1464Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess>.
1465_ACEOF
1466ac_status=$?
1467fi
1468
1469if test "$ac_init_help" = "recursive"; then
1470  # If there are subdirs, report their specific --help.
1471  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1472    test -d "$ac_dir" ||
1473      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1474      continue
1475    ac_builddir=.
1476
1477case "$ac_dir" in
1478.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479*)
1480  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1481  # A ".." for each directory in $ac_dir_suffix.
1482  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1483  case $ac_top_builddir_sub in
1484  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486  esac ;;
1487esac
1488ac_abs_top_builddir=$ac_pwd
1489ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490# for backward compatibility:
1491ac_top_builddir=$ac_top_build_prefix
1492
1493case $srcdir in
1494  .)  # We are building in place.
1495    ac_srcdir=.
1496    ac_top_srcdir=$ac_top_builddir_sub
1497    ac_abs_top_srcdir=$ac_pwd ;;
1498  [\\/]* | ?:[\\/]* )  # Absolute name.
1499    ac_srcdir=$srcdir$ac_dir_suffix;
1500    ac_top_srcdir=$srcdir
1501    ac_abs_top_srcdir=$srcdir ;;
1502  *) # Relative name.
1503    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504    ac_top_srcdir=$ac_top_build_prefix$srcdir
1505    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1506esac
1507ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1508
1509    cd "$ac_dir" || { ac_status=$?; continue; }
1510    # Check for guested configure.
1511    if test -f "$ac_srcdir/configure.gnu"; then
1512      echo &&
1513      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514    elif test -f "$ac_srcdir/configure"; then
1515      echo &&
1516      $SHELL "$ac_srcdir/configure" --help=recursive
1517    else
1518      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519    fi || ac_status=$?
1520    cd "$ac_pwd" || { ac_status=$?; break; }
1521  done
1522fi
1523
1524test -n "$ac_init_help" && exit $ac_status
1525if $ac_init_version; then
1526  cat <<\_ACEOF
1527libpciaccess configure 0.13.2
1528generated by GNU Autoconf 2.68
1529
1530Copyright (C) 2010 Free Software Foundation, Inc.
1531This configure script is free software; the Free Software Foundation
1532gives unlimited permission to copy, distribute and modify it.
1533_ACEOF
1534  exit
1535fi
1536
1537## ------------------------ ##
1538## Autoconf initialization. ##
1539## ------------------------ ##
1540
1541# ac_fn_c_try_compile LINENO
1542# --------------------------
1543# Try to compile conftest.$ac_ext, and return whether this succeeded.
1544ac_fn_c_try_compile ()
1545{
1546  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1547  rm -f conftest.$ac_objext
1548  if { { ac_try="$ac_compile"
1549case "(($ac_try" in
1550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551  *) ac_try_echo=$ac_try;;
1552esac
1553eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554$as_echo "$ac_try_echo"; } >&5
1555  (eval "$ac_compile") 2>conftest.err
1556  ac_status=$?
1557  if test -s conftest.err; then
1558    grep -v '^ *+' conftest.err >conftest.er1
1559    cat conftest.er1 >&5
1560    mv -f conftest.er1 conftest.err
1561  fi
1562  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1563  test $ac_status = 0; } && {
1564	 test -z "$ac_c_werror_flag" ||
1565	 test ! -s conftest.err
1566       } && test -s conftest.$ac_objext; then :
1567  ac_retval=0
1568else
1569  $as_echo "$as_me: failed program was:" >&5
1570sed 's/^/| /' conftest.$ac_ext >&5
1571
1572	ac_retval=1
1573fi
1574  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1575  as_fn_set_status $ac_retval
1576
1577} # ac_fn_c_try_compile
1578
1579# ac_fn_c_try_cpp LINENO
1580# ----------------------
1581# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1582ac_fn_c_try_cpp ()
1583{
1584  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585  if { { ac_try="$ac_cpp conftest.$ac_ext"
1586case "(($ac_try" in
1587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1588  *) ac_try_echo=$ac_try;;
1589esac
1590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1591$as_echo "$ac_try_echo"; } >&5
1592  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1593  ac_status=$?
1594  if test -s conftest.err; then
1595    grep -v '^ *+' conftest.err >conftest.er1
1596    cat conftest.er1 >&5
1597    mv -f conftest.er1 conftest.err
1598  fi
1599  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1600  test $ac_status = 0; } > conftest.i && {
1601	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1602	 test ! -s conftest.err
1603       }; then :
1604  ac_retval=0
1605else
1606  $as_echo "$as_me: failed program was:" >&5
1607sed 's/^/| /' conftest.$ac_ext >&5
1608
1609    ac_retval=1
1610fi
1611  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1612  as_fn_set_status $ac_retval
1613
1614} # ac_fn_c_try_cpp
1615
1616# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1617# -------------------------------------------------------
1618# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1619# the include files in INCLUDES and setting the cache variable VAR
1620# accordingly.
1621ac_fn_c_check_header_mongrel ()
1622{
1623  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624  if eval \${$3+:} false; then :
1625  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626$as_echo_n "checking for $2... " >&6; }
1627if eval \${$3+:} false; then :
1628  $as_echo_n "(cached) " >&6
1629fi
1630eval ac_res=\$$3
1631	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632$as_echo "$ac_res" >&6; }
1633else
1634  # Is the header compilable?
1635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1636$as_echo_n "checking $2 usability... " >&6; }
1637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1638/* end confdefs.h.  */
1639$4
1640#include <$2>
1641_ACEOF
1642if ac_fn_c_try_compile "$LINENO"; then :
1643  ac_header_compiler=yes
1644else
1645  ac_header_compiler=no
1646fi
1647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1649$as_echo "$ac_header_compiler" >&6; }
1650
1651# Is the header present?
1652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1653$as_echo_n "checking $2 presence... " >&6; }
1654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655/* end confdefs.h.  */
1656#include <$2>
1657_ACEOF
1658if ac_fn_c_try_cpp "$LINENO"; then :
1659  ac_header_preproc=yes
1660else
1661  ac_header_preproc=no
1662fi
1663rm -f conftest.err conftest.i conftest.$ac_ext
1664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1665$as_echo "$ac_header_preproc" >&6; }
1666
1667# So?  What about this header?
1668case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1669  yes:no: )
1670    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1671$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1672    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1673$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674    ;;
1675  no:yes:* )
1676    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1677$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1678    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1679$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1680    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1681$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1682    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1683$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1684    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1685$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1686( $as_echo "## --------------------------------------------------------------------------------------------- ##
1687## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess ##
1688## --------------------------------------------------------------------------------------------- ##"
1689     ) | sed "s/^/$as_me: WARNING:     /" >&2
1690    ;;
1691esac
1692  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1693$as_echo_n "checking for $2... " >&6; }
1694if eval \${$3+:} false; then :
1695  $as_echo_n "(cached) " >&6
1696else
1697  eval "$3=\$ac_header_compiler"
1698fi
1699eval ac_res=\$$3
1700	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701$as_echo "$ac_res" >&6; }
1702fi
1703  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704
1705} # ac_fn_c_check_header_mongrel
1706
1707# ac_fn_c_try_run LINENO
1708# ----------------------
1709# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1710# that executables *can* be run.
1711ac_fn_c_try_run ()
1712{
1713  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714  if { { ac_try="$ac_link"
1715case "(($ac_try" in
1716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717  *) ac_try_echo=$ac_try;;
1718esac
1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720$as_echo "$ac_try_echo"; } >&5
1721  (eval "$ac_link") 2>&5
1722  ac_status=$?
1723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1725  { { case "(($ac_try" in
1726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727  *) ac_try_echo=$ac_try;;
1728esac
1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730$as_echo "$ac_try_echo"; } >&5
1731  (eval "$ac_try") 2>&5
1732  ac_status=$?
1733  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734  test $ac_status = 0; }; }; then :
1735  ac_retval=0
1736else
1737  $as_echo "$as_me: program exited with status $ac_status" >&5
1738       $as_echo "$as_me: failed program was:" >&5
1739sed 's/^/| /' conftest.$ac_ext >&5
1740
1741       ac_retval=$ac_status
1742fi
1743  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745  as_fn_set_status $ac_retval
1746
1747} # ac_fn_c_try_run
1748
1749# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1750# -------------------------------------------------------
1751# Tests whether HEADER exists and can be compiled using the include files in
1752# INCLUDES, setting the cache variable VAR accordingly.
1753ac_fn_c_check_header_compile ()
1754{
1755  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757$as_echo_n "checking for $2... " >&6; }
1758if eval \${$3+:} false; then :
1759  $as_echo_n "(cached) " >&6
1760else
1761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762/* end confdefs.h.  */
1763$4
1764#include <$2>
1765_ACEOF
1766if ac_fn_c_try_compile "$LINENO"; then :
1767  eval "$3=yes"
1768else
1769  eval "$3=no"
1770fi
1771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772fi
1773eval ac_res=\$$3
1774	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775$as_echo "$ac_res" >&6; }
1776  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777
1778} # ac_fn_c_check_header_compile
1779
1780# ac_fn_c_try_link LINENO
1781# -----------------------
1782# Try to link conftest.$ac_ext, and return whether this succeeded.
1783ac_fn_c_try_link ()
1784{
1785  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786  rm -f conftest.$ac_objext conftest$ac_exeext
1787  if { { ac_try="$ac_link"
1788case "(($ac_try" in
1789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790  *) ac_try_echo=$ac_try;;
1791esac
1792eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793$as_echo "$ac_try_echo"; } >&5
1794  (eval "$ac_link") 2>conftest.err
1795  ac_status=$?
1796  if test -s conftest.err; then
1797    grep -v '^ *+' conftest.err >conftest.er1
1798    cat conftest.er1 >&5
1799    mv -f conftest.er1 conftest.err
1800  fi
1801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802  test $ac_status = 0; } && {
1803	 test -z "$ac_c_werror_flag" ||
1804	 test ! -s conftest.err
1805       } && test -s conftest$ac_exeext && {
1806	 test "$cross_compiling" = yes ||
1807	 $as_test_x conftest$ac_exeext
1808       }; then :
1809  ac_retval=0
1810else
1811  $as_echo "$as_me: failed program was:" >&5
1812sed 's/^/| /' conftest.$ac_ext >&5
1813
1814	ac_retval=1
1815fi
1816  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818  # interfere with the next link command; also delete a directory that is
1819  # left behind by Apple's compiler.  We do this before executing the actions.
1820  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822  as_fn_set_status $ac_retval
1823
1824} # ac_fn_c_try_link
1825
1826# ac_fn_c_check_func LINENO FUNC VAR
1827# ----------------------------------
1828# Tests whether FUNC exists, setting the cache variable VAR accordingly
1829ac_fn_c_check_func ()
1830{
1831  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833$as_echo_n "checking for $2... " >&6; }
1834if eval \${$3+:} false; then :
1835  $as_echo_n "(cached) " >&6
1836else
1837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838/* end confdefs.h.  */
1839/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1841#define $2 innocuous_$2
1842
1843/* System header to define __stub macros and hopefully few prototypes,
1844    which can conflict with char $2 (); below.
1845    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846    <limits.h> exists even on freestanding compilers.  */
1847
1848#ifdef __STDC__
1849# include <limits.h>
1850#else
1851# include <assert.h>
1852#endif
1853
1854#undef $2
1855
1856/* Override any GCC internal prototype to avoid an error.
1857   Use char because int might match the return type of a GCC
1858   builtin and then its argument prototype would still apply.  */
1859#ifdef __cplusplus
1860extern "C"
1861#endif
1862char $2 ();
1863/* The GNU C library defines this for functions which it implements
1864    to always fail with ENOSYS.  Some functions are actually named
1865    something starting with __ and the normal name is an alias.  */
1866#if defined __stub_$2 || defined __stub___$2
1867choke me
1868#endif
1869
1870int
1871main ()
1872{
1873return $2 ();
1874  ;
1875  return 0;
1876}
1877_ACEOF
1878if ac_fn_c_try_link "$LINENO"; then :
1879  eval "$3=yes"
1880else
1881  eval "$3=no"
1882fi
1883rm -f core conftest.err conftest.$ac_objext \
1884    conftest$ac_exeext conftest.$ac_ext
1885fi
1886eval ac_res=\$$3
1887	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888$as_echo "$ac_res" >&6; }
1889  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891} # ac_fn_c_check_func
1892
1893# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1894# ---------------------------------------------
1895# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1896# accordingly.
1897ac_fn_c_check_decl ()
1898{
1899  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900  as_decl_name=`echo $2|sed 's/ *(.*//'`
1901  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1903$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1904if eval \${$3+:} false; then :
1905  $as_echo_n "(cached) " >&6
1906else
1907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908/* end confdefs.h.  */
1909$4
1910int
1911main ()
1912{
1913#ifndef $as_decl_name
1914#ifdef __cplusplus
1915  (void) $as_decl_use;
1916#else
1917  (void) $as_decl_name;
1918#endif
1919#endif
1920
1921  ;
1922  return 0;
1923}
1924_ACEOF
1925if ac_fn_c_try_compile "$LINENO"; then :
1926  eval "$3=yes"
1927else
1928  eval "$3=no"
1929fi
1930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931fi
1932eval ac_res=\$$3
1933	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934$as_echo "$ac_res" >&6; }
1935  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936
1937} # ac_fn_c_check_decl
1938
1939# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1940# ----------------------------------------------------
1941# Tries to find if the field MEMBER exists in type AGGR, after including
1942# INCLUDES, setting cache variable VAR accordingly.
1943ac_fn_c_check_member ()
1944{
1945  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1947$as_echo_n "checking for $2.$3... " >&6; }
1948if eval \${$4+:} false; then :
1949  $as_echo_n "(cached) " >&6
1950else
1951  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952/* end confdefs.h.  */
1953$5
1954int
1955main ()
1956{
1957static $2 ac_aggr;
1958if (ac_aggr.$3)
1959return 0;
1960  ;
1961  return 0;
1962}
1963_ACEOF
1964if ac_fn_c_try_compile "$LINENO"; then :
1965  eval "$4=yes"
1966else
1967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968/* end confdefs.h.  */
1969$5
1970int
1971main ()
1972{
1973static $2 ac_aggr;
1974if (sizeof ac_aggr.$3)
1975return 0;
1976  ;
1977  return 0;
1978}
1979_ACEOF
1980if ac_fn_c_try_compile "$LINENO"; then :
1981  eval "$4=yes"
1982else
1983  eval "$4=no"
1984fi
1985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986fi
1987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988fi
1989eval ac_res=\$$4
1990	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991$as_echo "$ac_res" >&6; }
1992  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993
1994} # ac_fn_c_check_member
1995cat >config.log <<_ACEOF
1996This file contains any messages produced by compilers while
1997running configure, to aid debugging if configure makes a mistake.
1998
1999It was created by libpciaccess $as_me 0.13.2, which was
2000generated by GNU Autoconf 2.68.  Invocation command line was
2001
2002  $ $0 $@
2003
2004_ACEOF
2005exec 5>>config.log
2006{
2007cat <<_ASUNAME
2008## --------- ##
2009## Platform. ##
2010## --------- ##
2011
2012hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2013uname -m = `(uname -m) 2>/dev/null || echo unknown`
2014uname -r = `(uname -r) 2>/dev/null || echo unknown`
2015uname -s = `(uname -s) 2>/dev/null || echo unknown`
2016uname -v = `(uname -v) 2>/dev/null || echo unknown`
2017
2018/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2019/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2020
2021/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2022/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2023/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2024/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2025/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2026/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2027/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2028
2029_ASUNAME
2030
2031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032for as_dir in $PATH
2033do
2034  IFS=$as_save_IFS
2035  test -z "$as_dir" && as_dir=.
2036    $as_echo "PATH: $as_dir"
2037  done
2038IFS=$as_save_IFS
2039
2040} >&5
2041
2042cat >&5 <<_ACEOF
2043
2044
2045## ----------- ##
2046## Core tests. ##
2047## ----------- ##
2048
2049_ACEOF
2050
2051
2052# Keep a trace of the command line.
2053# Strip out --no-create and --no-recursion so they do not pile up.
2054# Strip out --silent because we don't want to record it for future runs.
2055# Also quote any args containing shell meta-characters.
2056# Make two passes to allow for proper duplicate-argument suppression.
2057ac_configure_args=
2058ac_configure_args0=
2059ac_configure_args1=
2060ac_must_keep_next=false
2061for ac_pass in 1 2
2062do
2063  for ac_arg
2064  do
2065    case $ac_arg in
2066    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2067    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2068    | -silent | --silent | --silen | --sile | --sil)
2069      continue ;;
2070    *\'*)
2071      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2072    esac
2073    case $ac_pass in
2074    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2075    2)
2076      as_fn_append ac_configure_args1 " '$ac_arg'"
2077      if test $ac_must_keep_next = true; then
2078	ac_must_keep_next=false # Got value, back to normal.
2079      else
2080	case $ac_arg in
2081	  *=* | --config-cache | -C | -disable-* | --disable-* \
2082	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2083	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2084	  | -with-* | --with-* | -without-* | --without-* | --x)
2085	    case "$ac_configure_args0 " in
2086	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2087	    esac
2088	    ;;
2089	  -* ) ac_must_keep_next=true ;;
2090	esac
2091      fi
2092      as_fn_append ac_configure_args " '$ac_arg'"
2093      ;;
2094    esac
2095  done
2096done
2097{ ac_configure_args0=; unset ac_configure_args0;}
2098{ ac_configure_args1=; unset ac_configure_args1;}
2099
2100# When interrupted or exit'd, cleanup temporary files, and complete
2101# config.log.  We remove comments because anyway the quotes in there
2102# would cause problems or look ugly.
2103# WARNING: Use '\'' to represent an apostrophe within the trap.
2104# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2105trap 'exit_status=$?
2106  # Save into config.log some information that might help in debugging.
2107  {
2108    echo
2109
2110    $as_echo "## ---------------- ##
2111## Cache variables. ##
2112## ---------------- ##"
2113    echo
2114    # The following way of writing the cache mishandles newlines in values,
2115(
2116  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2117    eval ac_val=\$$ac_var
2118    case $ac_val in #(
2119    *${as_nl}*)
2120      case $ac_var in #(
2121      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2122$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2123      esac
2124      case $ac_var in #(
2125      _ | IFS | as_nl) ;; #(
2126      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2127      *) { eval $ac_var=; unset $ac_var;} ;;
2128      esac ;;
2129    esac
2130  done
2131  (set) 2>&1 |
2132    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2133    *${as_nl}ac_space=\ *)
2134      sed -n \
2135	"s/'\''/'\''\\\\'\'''\''/g;
2136	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2137      ;; #(
2138    *)
2139      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2140      ;;
2141    esac |
2142    sort
2143)
2144    echo
2145
2146    $as_echo "## ----------------- ##
2147## Output variables. ##
2148## ----------------- ##"
2149    echo
2150    for ac_var in $ac_subst_vars
2151    do
2152      eval ac_val=\$$ac_var
2153      case $ac_val in
2154      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2155      esac
2156      $as_echo "$ac_var='\''$ac_val'\''"
2157    done | sort
2158    echo
2159
2160    if test -n "$ac_subst_files"; then
2161      $as_echo "## ------------------- ##
2162## File substitutions. ##
2163## ------------------- ##"
2164      echo
2165      for ac_var in $ac_subst_files
2166      do
2167	eval ac_val=\$$ac_var
2168	case $ac_val in
2169	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2170	esac
2171	$as_echo "$ac_var='\''$ac_val'\''"
2172      done | sort
2173      echo
2174    fi
2175
2176    if test -s confdefs.h; then
2177      $as_echo "## ----------- ##
2178## confdefs.h. ##
2179## ----------- ##"
2180      echo
2181      cat confdefs.h
2182      echo
2183    fi
2184    test "$ac_signal" != 0 &&
2185      $as_echo "$as_me: caught signal $ac_signal"
2186    $as_echo "$as_me: exit $exit_status"
2187  } >&5
2188  rm -f core *.core core.conftest.* &&
2189    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2190    exit $exit_status
2191' 0
2192for ac_signal in 1 2 13 15; do
2193  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2194done
2195ac_signal=0
2196
2197# confdefs.h avoids OS command line length limits that DEFS can exceed.
2198rm -f -r conftest* confdefs.h
2199
2200$as_echo "/* confdefs.h */" > confdefs.h
2201
2202# Predefined preprocessor variables.
2203
2204cat >>confdefs.h <<_ACEOF
2205#define PACKAGE_NAME "$PACKAGE_NAME"
2206_ACEOF
2207
2208cat >>confdefs.h <<_ACEOF
2209#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2210_ACEOF
2211
2212cat >>confdefs.h <<_ACEOF
2213#define PACKAGE_VERSION "$PACKAGE_VERSION"
2214_ACEOF
2215
2216cat >>confdefs.h <<_ACEOF
2217#define PACKAGE_STRING "$PACKAGE_STRING"
2218_ACEOF
2219
2220cat >>confdefs.h <<_ACEOF
2221#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2222_ACEOF
2223
2224cat >>confdefs.h <<_ACEOF
2225#define PACKAGE_URL "$PACKAGE_URL"
2226_ACEOF
2227
2228
2229# Let the site file select an alternate cache file if it wants to.
2230# Prefer an explicitly selected file to automatically selected ones.
2231ac_site_file1=NONE
2232ac_site_file2=NONE
2233if test -n "$CONFIG_SITE"; then
2234  # We do not want a PATH search for config.site.
2235  case $CONFIG_SITE in #((
2236    -*)  ac_site_file1=./$CONFIG_SITE;;
2237    */*) ac_site_file1=$CONFIG_SITE;;
2238    *)   ac_site_file1=./$CONFIG_SITE;;
2239  esac
2240elif test "x$prefix" != xNONE; then
2241  ac_site_file1=$prefix/share/config.site
2242  ac_site_file2=$prefix/etc/config.site
2243else
2244  ac_site_file1=$ac_default_prefix/share/config.site
2245  ac_site_file2=$ac_default_prefix/etc/config.site
2246fi
2247for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2248do
2249  test "x$ac_site_file" = xNONE && continue
2250  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2251    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2252$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2253    sed 's/^/| /' "$ac_site_file" >&5
2254    . "$ac_site_file" \
2255      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2257as_fn_error $? "failed to load site script $ac_site_file
2258See \`config.log' for more details" "$LINENO" 5; }
2259  fi
2260done
2261
2262if test -r "$cache_file"; then
2263  # Some versions of bash will fail to source /dev/null (special files
2264  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2265  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2266    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2267$as_echo "$as_me: loading cache $cache_file" >&6;}
2268    case $cache_file in
2269      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2270      *)                      . "./$cache_file";;
2271    esac
2272  fi
2273else
2274  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2275$as_echo "$as_me: creating cache $cache_file" >&6;}
2276  >$cache_file
2277fi
2278
2279# Check that the precious variables saved in the cache have kept the same
2280# value.
2281ac_cache_corrupted=false
2282for ac_var in $ac_precious_vars; do
2283  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2284  eval ac_new_set=\$ac_env_${ac_var}_set
2285  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2286  eval ac_new_val=\$ac_env_${ac_var}_value
2287  case $ac_old_set,$ac_new_set in
2288    set,)
2289      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2290$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2291      ac_cache_corrupted=: ;;
2292    ,set)
2293      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2294$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2295      ac_cache_corrupted=: ;;
2296    ,);;
2297    *)
2298      if test "x$ac_old_val" != "x$ac_new_val"; then
2299	# differences in whitespace do not lead to failure.
2300	ac_old_val_w=`echo x $ac_old_val`
2301	ac_new_val_w=`echo x $ac_new_val`
2302	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2303	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2304$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2305	  ac_cache_corrupted=:
2306	else
2307	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2308$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2309	  eval $ac_var=\$ac_old_val
2310	fi
2311	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2312$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2313	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2314$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2315      fi;;
2316  esac
2317  # Pass precious variables to config.status.
2318  if test "$ac_new_set" = set; then
2319    case $ac_new_val in
2320    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2321    *) ac_arg=$ac_var=$ac_new_val ;;
2322    esac
2323    case " $ac_configure_args " in
2324      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2325      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2326    esac
2327  fi
2328done
2329if $ac_cache_corrupted; then
2330  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2331$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2332  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2333$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2334  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2335fi
2336## -------------------- ##
2337## Main body of script. ##
2338## -------------------- ##
2339
2340ac_ext=c
2341ac_cpp='$CPP $CPPFLAGS'
2342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344ac_compiler_gnu=$ac_cv_c_compiler_gnu
2345
2346
2347
2348ac_config_headers="$ac_config_headers config.h"
2349
2350
2351# Initialize Automake
2352am__api_version='1.14'
2353
2354ac_aux_dir=
2355for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2356  if test -f "$ac_dir/install-sh"; then
2357    ac_aux_dir=$ac_dir
2358    ac_install_sh="$ac_aux_dir/install-sh -c"
2359    break
2360  elif test -f "$ac_dir/install.sh"; then
2361    ac_aux_dir=$ac_dir
2362    ac_install_sh="$ac_aux_dir/install.sh -c"
2363    break
2364  elif test -f "$ac_dir/shtool"; then
2365    ac_aux_dir=$ac_dir
2366    ac_install_sh="$ac_aux_dir/shtool install -c"
2367    break
2368  fi
2369done
2370if test -z "$ac_aux_dir"; then
2371  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2372fi
2373
2374# These three variables are undocumented and unsupported,
2375# and are intended to be withdrawn in a future Autoconf release.
2376# They can cause serious problems if a builder's source tree is in a directory
2377# whose full name contains unusual characters.
2378ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2379ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2380ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2381
2382
2383# Find a good install program.  We prefer a C program (faster),
2384# so one script is as good as another.  But avoid the broken or
2385# incompatible versions:
2386# SysV /etc/install, /usr/sbin/install
2387# SunOS /usr/etc/install
2388# IRIX /sbin/install
2389# AIX /bin/install
2390# AmigaOS /C/install, which installs bootblocks on floppy discs
2391# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2392# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2393# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2394# OS/2's system install, which has a completely different semantic
2395# ./install, which can be erroneously created by make from ./install.sh.
2396# Reject install programs that cannot install multiple files.
2397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2398$as_echo_n "checking for a BSD-compatible install... " >&6; }
2399if test -z "$INSTALL"; then
2400if ${ac_cv_path_install+:} false; then :
2401  $as_echo_n "(cached) " >&6
2402else
2403  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404for as_dir in $PATH
2405do
2406  IFS=$as_save_IFS
2407  test -z "$as_dir" && as_dir=.
2408    # Account for people who put trailing slashes in PATH elements.
2409case $as_dir/ in #((
2410  ./ | .// | /[cC]/* | \
2411  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2412  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2413  /usr/ucb/* ) ;;
2414  *)
2415    # OSF1 and SCO ODT 3.0 have their own names for install.
2416    # Don't use installbsd from OSF since it installs stuff as root
2417    # by default.
2418    for ac_prog in ginstall scoinst install; do
2419      for ac_exec_ext in '' $ac_executable_extensions; do
2420	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2421	  if test $ac_prog = install &&
2422	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2423	    # AIX install.  It has an incompatible calling convention.
2424	    :
2425	  elif test $ac_prog = install &&
2426	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2427	    # program-specific install script used by HP pwplus--don't use.
2428	    :
2429	  else
2430	    rm -rf conftest.one conftest.two conftest.dir
2431	    echo one > conftest.one
2432	    echo two > conftest.two
2433	    mkdir conftest.dir
2434	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2435	      test -s conftest.one && test -s conftest.two &&
2436	      test -s conftest.dir/conftest.one &&
2437	      test -s conftest.dir/conftest.two
2438	    then
2439	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2440	      break 3
2441	    fi
2442	  fi
2443	fi
2444      done
2445    done
2446    ;;
2447esac
2448
2449  done
2450IFS=$as_save_IFS
2451
2452rm -rf conftest.one conftest.two conftest.dir
2453
2454fi
2455  if test "${ac_cv_path_install+set}" = set; then
2456    INSTALL=$ac_cv_path_install
2457  else
2458    # As a last resort, use the slow shell script.  Don't cache a
2459    # value for INSTALL within a source directory, because that will
2460    # break other packages using the cache if that directory is
2461    # removed, or if the value is a relative name.
2462    INSTALL=$ac_install_sh
2463  fi
2464fi
2465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2466$as_echo "$INSTALL" >&6; }
2467
2468# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2469# It thinks the first close brace ends the variable substitution.
2470test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2471
2472test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2473
2474test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2475
2476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2477$as_echo_n "checking whether build environment is sane... " >&6; }
2478# Reject unsafe characters in $srcdir or the absolute working directory
2479# name.  Accept space and tab only in the latter.
2480am_lf='
2481'
2482case `pwd` in
2483  *[\\\"\#\$\&\'\`$am_lf]*)
2484    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2485esac
2486case $srcdir in
2487  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2488    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2489esac
2490
2491# Do 'set' in a subshell so we don't clobber the current shell's
2492# arguments.  Must try -L first in case configure is actually a
2493# symlink; some systems play weird games with the mod time of symlinks
2494# (eg FreeBSD returns the mod time of the symlink's containing
2495# directory).
2496if (
2497   am_has_slept=no
2498   for am_try in 1 2; do
2499     echo "timestamp, slept: $am_has_slept" > conftest.file
2500     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2501     if test "$*" = "X"; then
2502	# -L didn't work.
2503	set X `ls -t "$srcdir/configure" conftest.file`
2504     fi
2505     if test "$*" != "X $srcdir/configure conftest.file" \
2506	&& test "$*" != "X conftest.file $srcdir/configure"; then
2507
2508	# If neither matched, then we have a broken ls.  This can happen
2509	# if, for instance, CONFIG_SHELL is bash and it inherits a
2510	# broken ls alias from the environment.  This has actually
2511	# happened.  Such a system could not be considered "sane".
2512	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2513  alias in your environment" "$LINENO" 5
2514     fi
2515     if test "$2" = conftest.file || test $am_try -eq 2; then
2516       break
2517     fi
2518     # Just in case.
2519     sleep 1
2520     am_has_slept=yes
2521   done
2522   test "$2" = conftest.file
2523   )
2524then
2525   # Ok.
2526   :
2527else
2528   as_fn_error $? "newly created file is older than distributed files!
2529Check your system clock" "$LINENO" 5
2530fi
2531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2532$as_echo "yes" >&6; }
2533# If we didn't sleep, we still need to ensure time stamps of config.status and
2534# generated files are strictly newer.
2535am_sleep_pid=
2536if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2537  ( sleep 1 ) &
2538  am_sleep_pid=$!
2539fi
2540
2541rm -f conftest.file
2542
2543test "$program_prefix" != NONE &&
2544  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2545# Use a double $ so make ignores it.
2546test "$program_suffix" != NONE &&
2547  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2548# Double any \ or $.
2549# By default was `s,x,x', remove it if useless.
2550ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2551program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2552
2553# expand $ac_aux_dir to an absolute path
2554am_aux_dir=`cd $ac_aux_dir && pwd`
2555
2556if test x"${MISSING+set}" != xset; then
2557  case $am_aux_dir in
2558  *\ * | *\	*)
2559    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2560  *)
2561    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2562  esac
2563fi
2564# Use eval to expand $SHELL
2565if eval "$MISSING --is-lightweight"; then
2566  am_missing_run="$MISSING "
2567else
2568  am_missing_run=
2569  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2570$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2571fi
2572
2573if test x"${install_sh}" != xset; then
2574  case $am_aux_dir in
2575  *\ * | *\	*)
2576    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2577  *)
2578    install_sh="\${SHELL} $am_aux_dir/install-sh"
2579  esac
2580fi
2581
2582# Installed binaries are usually stripped using 'strip' when the user
2583# run "make install-strip".  However 'strip' might not be the right
2584# tool to use in cross-compilation environments, therefore Automake
2585# will honor the 'STRIP' environment variable to overrule this program.
2586if test "$cross_compiling" != no; then
2587  if test -n "$ac_tool_prefix"; then
2588  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2589set dummy ${ac_tool_prefix}strip; ac_word=$2
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2591$as_echo_n "checking for $ac_word... " >&6; }
2592if ${ac_cv_prog_STRIP+:} false; then :
2593  $as_echo_n "(cached) " >&6
2594else
2595  if test -n "$STRIP"; then
2596  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2597else
2598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599for as_dir in $PATH
2600do
2601  IFS=$as_save_IFS
2602  test -z "$as_dir" && as_dir=.
2603    for ac_exec_ext in '' $ac_executable_extensions; do
2604  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2605    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2607    break 2
2608  fi
2609done
2610  done
2611IFS=$as_save_IFS
2612
2613fi
2614fi
2615STRIP=$ac_cv_prog_STRIP
2616if test -n "$STRIP"; then
2617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2618$as_echo "$STRIP" >&6; }
2619else
2620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621$as_echo "no" >&6; }
2622fi
2623
2624
2625fi
2626if test -z "$ac_cv_prog_STRIP"; then
2627  ac_ct_STRIP=$STRIP
2628  # Extract the first word of "strip", so it can be a program name with args.
2629set dummy strip; ac_word=$2
2630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2631$as_echo_n "checking for $ac_word... " >&6; }
2632if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2633  $as_echo_n "(cached) " >&6
2634else
2635  if test -n "$ac_ct_STRIP"; then
2636  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2637else
2638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639for as_dir in $PATH
2640do
2641  IFS=$as_save_IFS
2642  test -z "$as_dir" && as_dir=.
2643    for ac_exec_ext in '' $ac_executable_extensions; do
2644  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2645    ac_cv_prog_ac_ct_STRIP="strip"
2646    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2647    break 2
2648  fi
2649done
2650  done
2651IFS=$as_save_IFS
2652
2653fi
2654fi
2655ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2656if test -n "$ac_ct_STRIP"; then
2657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2658$as_echo "$ac_ct_STRIP" >&6; }
2659else
2660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661$as_echo "no" >&6; }
2662fi
2663
2664  if test "x$ac_ct_STRIP" = x; then
2665    STRIP=":"
2666  else
2667    case $cross_compiling:$ac_tool_warned in
2668yes:)
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2671ac_tool_warned=yes ;;
2672esac
2673    STRIP=$ac_ct_STRIP
2674  fi
2675else
2676  STRIP="$ac_cv_prog_STRIP"
2677fi
2678
2679fi
2680INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2681
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2683$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2684if test -z "$MKDIR_P"; then
2685  if ${ac_cv_path_mkdir+:} false; then :
2686  $as_echo_n "(cached) " >&6
2687else
2688  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2690do
2691  IFS=$as_save_IFS
2692  test -z "$as_dir" && as_dir=.
2693    for ac_prog in mkdir gmkdir; do
2694	 for ac_exec_ext in '' $ac_executable_extensions; do
2695	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2696	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2697	     'mkdir (GNU coreutils) '* | \
2698	     'mkdir (coreutils) '* | \
2699	     'mkdir (fileutils) '4.1*)
2700	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2701	       break 3;;
2702	   esac
2703	 done
2704       done
2705  done
2706IFS=$as_save_IFS
2707
2708fi
2709
2710  test -d ./--version && rmdir ./--version
2711  if test "${ac_cv_path_mkdir+set}" = set; then
2712    MKDIR_P="$ac_cv_path_mkdir -p"
2713  else
2714    # As a last resort, use the slow shell script.  Don't cache a
2715    # value for MKDIR_P within a source directory, because that will
2716    # break other packages using the cache if that directory is
2717    # removed, or if the value is a relative name.
2718    MKDIR_P="$ac_install_sh -d"
2719  fi
2720fi
2721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2722$as_echo "$MKDIR_P" >&6; }
2723
2724for ac_prog in gawk mawk nawk awk
2725do
2726  # Extract the first word of "$ac_prog", so it can be a program name with args.
2727set dummy $ac_prog; ac_word=$2
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729$as_echo_n "checking for $ac_word... " >&6; }
2730if ${ac_cv_prog_AWK+:} false; then :
2731  $as_echo_n "(cached) " >&6
2732else
2733  if test -n "$AWK"; then
2734  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2735else
2736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737for as_dir in $PATH
2738do
2739  IFS=$as_save_IFS
2740  test -z "$as_dir" && as_dir=.
2741    for ac_exec_ext in '' $ac_executable_extensions; do
2742  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2743    ac_cv_prog_AWK="$ac_prog"
2744    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745    break 2
2746  fi
2747done
2748  done
2749IFS=$as_save_IFS
2750
2751fi
2752fi
2753AWK=$ac_cv_prog_AWK
2754if test -n "$AWK"; then
2755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2756$as_echo "$AWK" >&6; }
2757else
2758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759$as_echo "no" >&6; }
2760fi
2761
2762
2763  test -n "$AWK" && break
2764done
2765
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2767$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2768set x ${MAKE-make}
2769ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2770if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2771  $as_echo_n "(cached) " >&6
2772else
2773  cat >conftest.make <<\_ACEOF
2774SHELL = /bin/sh
2775all:
2776	@echo '@@@%%%=$(MAKE)=@@@%%%'
2777_ACEOF
2778# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2779case `${MAKE-make} -f conftest.make 2>/dev/null` in
2780  *@@@%%%=?*=@@@%%%*)
2781    eval ac_cv_prog_make_${ac_make}_set=yes;;
2782  *)
2783    eval ac_cv_prog_make_${ac_make}_set=no;;
2784esac
2785rm -f conftest.make
2786fi
2787if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2789$as_echo "yes" >&6; }
2790  SET_MAKE=
2791else
2792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793$as_echo "no" >&6; }
2794  SET_MAKE="MAKE=${MAKE-make}"
2795fi
2796
2797rm -rf .tst 2>/dev/null
2798mkdir .tst 2>/dev/null
2799if test -d .tst; then
2800  am__leading_dot=.
2801else
2802  am__leading_dot=_
2803fi
2804rmdir .tst 2>/dev/null
2805
2806# Check whether --enable-silent-rules was given.
2807if test "${enable_silent_rules+set}" = set; then :
2808  enableval=$enable_silent_rules;
2809fi
2810
2811case $enable_silent_rules in # (((
2812  yes) AM_DEFAULT_VERBOSITY=0;;
2813   no) AM_DEFAULT_VERBOSITY=1;;
2814    *) AM_DEFAULT_VERBOSITY=1;;
2815esac
2816am_make=${MAKE-make}
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2818$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2819if ${am_cv_make_support_nested_variables+:} false; then :
2820  $as_echo_n "(cached) " >&6
2821else
2822  if $as_echo 'TRUE=$(BAR$(V))
2823BAR0=false
2824BAR1=true
2825V=1
2826am__doit:
2827	@$(TRUE)
2828.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2829  am_cv_make_support_nested_variables=yes
2830else
2831  am_cv_make_support_nested_variables=no
2832fi
2833fi
2834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2835$as_echo "$am_cv_make_support_nested_variables" >&6; }
2836if test $am_cv_make_support_nested_variables = yes; then
2837    AM_V='$(V)'
2838  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2839else
2840  AM_V=$AM_DEFAULT_VERBOSITY
2841  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2842fi
2843AM_BACKSLASH='\'
2844
2845if test "`cd $srcdir && pwd`" != "`pwd`"; then
2846  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2847  # is not polluted with repeated "-I."
2848  am__isrc=' -I$(srcdir)'
2849  # test to see if srcdir already configured
2850  if test -f $srcdir/config.status; then
2851    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2852  fi
2853fi
2854
2855# test whether we have cygpath
2856if test -z "$CYGPATH_W"; then
2857  if (cygpath --version) >/dev/null 2>/dev/null; then
2858    CYGPATH_W='cygpath -w'
2859  else
2860    CYGPATH_W=echo
2861  fi
2862fi
2863
2864
2865# Define the identity of the package.
2866 PACKAGE='libpciaccess'
2867 VERSION='0.13.2'
2868
2869
2870cat >>confdefs.h <<_ACEOF
2871#define PACKAGE "$PACKAGE"
2872_ACEOF
2873
2874
2875cat >>confdefs.h <<_ACEOF
2876#define VERSION "$VERSION"
2877_ACEOF
2878
2879# Some tools Automake needs.
2880
2881ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2882
2883
2884AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2885
2886
2887AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2888
2889
2890AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2891
2892
2893MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2894
2895# For better backward compatibility.  To be removed once Automake 1.9.x
2896# dies out for good.  For more background, see:
2897# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2898# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2899mkdir_p='$(MKDIR_P)'
2900
2901# We need awk for the "check" target.  The system "awk" is bad on
2902# some platforms.
2903# Always define AMTAR for backward compatibility.  Yes, it's still used
2904# in the wild :-(  We should find a proper way to deprecate it ...
2905AMTAR='$${TAR-tar}'
2906
2907
2908# We'll loop over all known methods to create a tar archive until one works.
2909_am_tools='gnutar  pax cpio none'
2910
2911am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2912
2913
2914
2915
2916
2917
2918# POSIX will say in a future version that running "rm -f" with no argument
2919# is OK; and we want to be able to make that assumption in our Makefile
2920# recipes.  So use an aggressive probe to check that the usage we want is
2921# actually supported "in the wild" to an acceptable degree.
2922# See automake bug#10828.
2923# To make any issue more visible, cause the running configure to be aborted
2924# by default if the 'rm' program in use doesn't match our expectations; the
2925# user can still override this though.
2926if rm -f && rm -fr && rm -rf; then : OK; else
2927  cat >&2 <<'END'
2928Oops!
2929
2930Your 'rm' program seems unable to run without file operands specified
2931on the command line, even when the '-f' option is present.  This is contrary
2932to the behaviour of most rm programs out there, and not conforming with
2933the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2934
2935Please tell bug-automake@gnu.org about your system, including the value
2936of your $PATH and any error possibly output before this message.  This
2937can help us improve future automake versions.
2938
2939END
2940  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2941    echo 'Configuration will proceed anyway, since you have set the' >&2
2942    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2943    echo >&2
2944  else
2945    cat >&2 <<'END'
2946Aborting the configuration process, to ensure you take notice of the issue.
2947
2948You can download and install GNU coreutils to get an 'rm' implementation
2949that behaves properly: <http://www.gnu.org/software/coreutils/>.
2950
2951If you want to complete the configuration process using your problematic
2952'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2953to "yes", and re-run configure.
2954
2955END
2956    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2957  fi
2958fi
2959DEPDIR="${am__leading_dot}deps"
2960
2961ac_config_commands="$ac_config_commands depfiles"
2962
2963
2964am_make=${MAKE-make}
2965cat > confinc << 'END'
2966am__doit:
2967	@echo this is the am__doit target
2968.PHONY: am__doit
2969END
2970# If we don't find an include directive, just comment out the code.
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2972$as_echo_n "checking for style of include used by $am_make... " >&6; }
2973am__include="#"
2974am__quote=
2975_am_result=none
2976# First try GNU make style include.
2977echo "include confinc" > confmf
2978# Ignore all kinds of additional output from 'make'.
2979case `$am_make -s -f confmf 2> /dev/null` in #(
2980*the\ am__doit\ target*)
2981  am__include=include
2982  am__quote=
2983  _am_result=GNU
2984  ;;
2985esac
2986# Now try BSD make style include.
2987if test "$am__include" = "#"; then
2988   echo '.include "confinc"' > confmf
2989   case `$am_make -s -f confmf 2> /dev/null` in #(
2990   *the\ am__doit\ target*)
2991     am__include=.include
2992     am__quote="\""
2993     _am_result=BSD
2994     ;;
2995   esac
2996fi
2997
2998
2999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3000$as_echo "$_am_result" >&6; }
3001rm -f confinc confmf
3002
3003# Check whether --enable-dependency-tracking was given.
3004if test "${enable_dependency_tracking+set}" = set; then :
3005  enableval=$enable_dependency_tracking;
3006fi
3007
3008if test "x$enable_dependency_tracking" != xno; then
3009  am_depcomp="$ac_aux_dir/depcomp"
3010  AMDEPBACKSLASH='\'
3011  am__nodep='_no'
3012fi
3013 if test "x$enable_dependency_tracking" != xno; then
3014  AMDEP_TRUE=
3015  AMDEP_FALSE='#'
3016else
3017  AMDEP_TRUE='#'
3018  AMDEP_FALSE=
3019fi
3020
3021
3022ac_ext=c
3023ac_cpp='$CPP $CPPFLAGS'
3024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026ac_compiler_gnu=$ac_cv_c_compiler_gnu
3027if test -n "$ac_tool_prefix"; then
3028  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3029set dummy ${ac_tool_prefix}gcc; ac_word=$2
3030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031$as_echo_n "checking for $ac_word... " >&6; }
3032if ${ac_cv_prog_CC+:} false; then :
3033  $as_echo_n "(cached) " >&6
3034else
3035  if test -n "$CC"; then
3036  ac_cv_prog_CC="$CC" # Let the user override the test.
3037else
3038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039for as_dir in $PATH
3040do
3041  IFS=$as_save_IFS
3042  test -z "$as_dir" && as_dir=.
3043    for ac_exec_ext in '' $ac_executable_extensions; do
3044  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3046    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047    break 2
3048  fi
3049done
3050  done
3051IFS=$as_save_IFS
3052
3053fi
3054fi
3055CC=$ac_cv_prog_CC
3056if test -n "$CC"; then
3057  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3058$as_echo "$CC" >&6; }
3059else
3060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061$as_echo "no" >&6; }
3062fi
3063
3064
3065fi
3066if test -z "$ac_cv_prog_CC"; then
3067  ac_ct_CC=$CC
3068  # Extract the first word of "gcc", so it can be a program name with args.
3069set dummy gcc; ac_word=$2
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3071$as_echo_n "checking for $ac_word... " >&6; }
3072if ${ac_cv_prog_ac_ct_CC+:} false; then :
3073  $as_echo_n "(cached) " >&6
3074else
3075  if test -n "$ac_ct_CC"; then
3076  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3077else
3078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079for as_dir in $PATH
3080do
3081  IFS=$as_save_IFS
3082  test -z "$as_dir" && as_dir=.
3083    for ac_exec_ext in '' $ac_executable_extensions; do
3084  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3085    ac_cv_prog_ac_ct_CC="gcc"
3086    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3087    break 2
3088  fi
3089done
3090  done
3091IFS=$as_save_IFS
3092
3093fi
3094fi
3095ac_ct_CC=$ac_cv_prog_ac_ct_CC
3096if test -n "$ac_ct_CC"; then
3097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3098$as_echo "$ac_ct_CC" >&6; }
3099else
3100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3101$as_echo "no" >&6; }
3102fi
3103
3104  if test "x$ac_ct_CC" = x; then
3105    CC=""
3106  else
3107    case $cross_compiling:$ac_tool_warned in
3108yes:)
3109{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3110$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3111ac_tool_warned=yes ;;
3112esac
3113    CC=$ac_ct_CC
3114  fi
3115else
3116  CC="$ac_cv_prog_CC"
3117fi
3118
3119if test -z "$CC"; then
3120          if test -n "$ac_tool_prefix"; then
3121    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3122set dummy ${ac_tool_prefix}cc; ac_word=$2
3123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124$as_echo_n "checking for $ac_word... " >&6; }
3125if ${ac_cv_prog_CC+:} false; then :
3126  $as_echo_n "(cached) " >&6
3127else
3128  if test -n "$CC"; then
3129  ac_cv_prog_CC="$CC" # Let the user override the test.
3130else
3131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132for as_dir in $PATH
3133do
3134  IFS=$as_save_IFS
3135  test -z "$as_dir" && as_dir=.
3136    for ac_exec_ext in '' $ac_executable_extensions; do
3137  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3138    ac_cv_prog_CC="${ac_tool_prefix}cc"
3139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140    break 2
3141  fi
3142done
3143  done
3144IFS=$as_save_IFS
3145
3146fi
3147fi
3148CC=$ac_cv_prog_CC
3149if test -n "$CC"; then
3150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3151$as_echo "$CC" >&6; }
3152else
3153  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154$as_echo "no" >&6; }
3155fi
3156
3157
3158  fi
3159fi
3160if test -z "$CC"; then
3161  # Extract the first word of "cc", so it can be a program name with args.
3162set dummy cc; ac_word=$2
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164$as_echo_n "checking for $ac_word... " >&6; }
3165if ${ac_cv_prog_CC+:} false; then :
3166  $as_echo_n "(cached) " >&6
3167else
3168  if test -n "$CC"; then
3169  ac_cv_prog_CC="$CC" # Let the user override the test.
3170else
3171  ac_prog_rejected=no
3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173for as_dir in $PATH
3174do
3175  IFS=$as_save_IFS
3176  test -z "$as_dir" && as_dir=.
3177    for ac_exec_ext in '' $ac_executable_extensions; do
3178  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3180       ac_prog_rejected=yes
3181       continue
3182     fi
3183    ac_cv_prog_CC="cc"
3184    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3185    break 2
3186  fi
3187done
3188  done
3189IFS=$as_save_IFS
3190
3191if test $ac_prog_rejected = yes; then
3192  # We found a bogon in the path, so make sure we never use it.
3193  set dummy $ac_cv_prog_CC
3194  shift
3195  if test $# != 0; then
3196    # We chose a different compiler from the bogus one.
3197    # However, it has the same basename, so the bogon will be chosen
3198    # first if we set CC to just the basename; use the full file name.
3199    shift
3200    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3201  fi
3202fi
3203fi
3204fi
3205CC=$ac_cv_prog_CC
3206if test -n "$CC"; then
3207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3208$as_echo "$CC" >&6; }
3209else
3210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211$as_echo "no" >&6; }
3212fi
3213
3214
3215fi
3216if test -z "$CC"; then
3217  if test -n "$ac_tool_prefix"; then
3218  for ac_prog in cl.exe
3219  do
3220    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3221set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223$as_echo_n "checking for $ac_word... " >&6; }
3224if ${ac_cv_prog_CC+:} false; then :
3225  $as_echo_n "(cached) " >&6
3226else
3227  if test -n "$CC"; then
3228  ac_cv_prog_CC="$CC" # Let the user override the test.
3229else
3230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231for as_dir in $PATH
3232do
3233  IFS=$as_save_IFS
3234  test -z "$as_dir" && as_dir=.
3235    for ac_exec_ext in '' $ac_executable_extensions; do
3236  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3237    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3239    break 2
3240  fi
3241done
3242  done
3243IFS=$as_save_IFS
3244
3245fi
3246fi
3247CC=$ac_cv_prog_CC
3248if test -n "$CC"; then
3249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3250$as_echo "$CC" >&6; }
3251else
3252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253$as_echo "no" >&6; }
3254fi
3255
3256
3257    test -n "$CC" && break
3258  done
3259fi
3260if test -z "$CC"; then
3261  ac_ct_CC=$CC
3262  for ac_prog in cl.exe
3263do
3264  # Extract the first word of "$ac_prog", so it can be a program name with args.
3265set dummy $ac_prog; ac_word=$2
3266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267$as_echo_n "checking for $ac_word... " >&6; }
3268if ${ac_cv_prog_ac_ct_CC+:} false; then :
3269  $as_echo_n "(cached) " >&6
3270else
3271  if test -n "$ac_ct_CC"; then
3272  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3273else
3274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275for as_dir in $PATH
3276do
3277  IFS=$as_save_IFS
3278  test -z "$as_dir" && as_dir=.
3279    for ac_exec_ext in '' $ac_executable_extensions; do
3280  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3281    ac_cv_prog_ac_ct_CC="$ac_prog"
3282    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3283    break 2
3284  fi
3285done
3286  done
3287IFS=$as_save_IFS
3288
3289fi
3290fi
3291ac_ct_CC=$ac_cv_prog_ac_ct_CC
3292if test -n "$ac_ct_CC"; then
3293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3294$as_echo "$ac_ct_CC" >&6; }
3295else
3296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297$as_echo "no" >&6; }
3298fi
3299
3300
3301  test -n "$ac_ct_CC" && break
3302done
3303
3304  if test "x$ac_ct_CC" = x; then
3305    CC=""
3306  else
3307    case $cross_compiling:$ac_tool_warned in
3308yes:)
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3311ac_tool_warned=yes ;;
3312esac
3313    CC=$ac_ct_CC
3314  fi
3315fi
3316
3317fi
3318
3319
3320test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3321$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322as_fn_error $? "no acceptable C compiler found in \$PATH
3323See \`config.log' for more details" "$LINENO" 5; }
3324
3325# Provide some information about the compiler.
3326$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3327set X $ac_compile
3328ac_compiler=$2
3329for ac_option in --version -v -V -qversion; do
3330  { { ac_try="$ac_compiler $ac_option >&5"
3331case "(($ac_try" in
3332  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333  *) ac_try_echo=$ac_try;;
3334esac
3335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336$as_echo "$ac_try_echo"; } >&5
3337  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3338  ac_status=$?
3339  if test -s conftest.err; then
3340    sed '10a\
3341... rest of stderr output deleted ...
3342         10q' conftest.err >conftest.er1
3343    cat conftest.er1 >&5
3344  fi
3345  rm -f conftest.er1 conftest.err
3346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347  test $ac_status = 0; }
3348done
3349
3350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351/* end confdefs.h.  */
3352
3353int
3354main ()
3355{
3356
3357  ;
3358  return 0;
3359}
3360_ACEOF
3361ac_clean_files_save=$ac_clean_files
3362ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3363# Try to create an executable without -o first, disregard a.out.
3364# It will help us diagnose broken compilers, and finding out an intuition
3365# of exeext.
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3367$as_echo_n "checking whether the C compiler works... " >&6; }
3368ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3369
3370# The possible output files:
3371ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3372
3373ac_rmfiles=
3374for ac_file in $ac_files
3375do
3376  case $ac_file in
3377    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3378    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3379  esac
3380done
3381rm -f $ac_rmfiles
3382
3383if { { ac_try="$ac_link_default"
3384case "(($ac_try" in
3385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386  *) ac_try_echo=$ac_try;;
3387esac
3388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389$as_echo "$ac_try_echo"; } >&5
3390  (eval "$ac_link_default") 2>&5
3391  ac_status=$?
3392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393  test $ac_status = 0; }; then :
3394  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3395# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3396# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3397# so that the user can short-circuit this test for compilers unknown to
3398# Autoconf.
3399for ac_file in $ac_files ''
3400do
3401  test -f "$ac_file" || continue
3402  case $ac_file in
3403    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3404	;;
3405    [ab].out )
3406	# We found the default executable, but exeext='' is most
3407	# certainly right.
3408	break;;
3409    *.* )
3410	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3411	then :; else
3412	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3413	fi
3414	# We set ac_cv_exeext here because the later test for it is not
3415	# safe: cross compilers may not add the suffix if given an `-o'
3416	# argument, so we may need to know it at that point already.
3417	# Even if this section looks crufty: it has the advantage of
3418	# actually working.
3419	break;;
3420    * )
3421	break;;
3422  esac
3423done
3424test "$ac_cv_exeext" = no && ac_cv_exeext=
3425
3426else
3427  ac_file=''
3428fi
3429if test -z "$ac_file"; then :
3430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431$as_echo "no" >&6; }
3432$as_echo "$as_me: failed program was:" >&5
3433sed 's/^/| /' conftest.$ac_ext >&5
3434
3435{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3437as_fn_error 77 "C compiler cannot create executables
3438See \`config.log' for more details" "$LINENO" 5; }
3439else
3440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3441$as_echo "yes" >&6; }
3442fi
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3444$as_echo_n "checking for C compiler default output file name... " >&6; }
3445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3446$as_echo "$ac_file" >&6; }
3447ac_exeext=$ac_cv_exeext
3448
3449rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3450ac_clean_files=$ac_clean_files_save
3451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3452$as_echo_n "checking for suffix of executables... " >&6; }
3453if { { ac_try="$ac_link"
3454case "(($ac_try" in
3455  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456  *) ac_try_echo=$ac_try;;
3457esac
3458eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3459$as_echo "$ac_try_echo"; } >&5
3460  (eval "$ac_link") 2>&5
3461  ac_status=$?
3462  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3463  test $ac_status = 0; }; then :
3464  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3465# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3466# work properly (i.e., refer to `conftest.exe'), while it won't with
3467# `rm'.
3468for ac_file in conftest.exe conftest conftest.*; do
3469  test -f "$ac_file" || continue
3470  case $ac_file in
3471    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3472    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3473	  break;;
3474    * ) break;;
3475  esac
3476done
3477else
3478  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3480as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3481See \`config.log' for more details" "$LINENO" 5; }
3482fi
3483rm -f conftest conftest$ac_cv_exeext
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3485$as_echo "$ac_cv_exeext" >&6; }
3486
3487rm -f conftest.$ac_ext
3488EXEEXT=$ac_cv_exeext
3489ac_exeext=$EXEEXT
3490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491/* end confdefs.h.  */
3492#include <stdio.h>
3493int
3494main ()
3495{
3496FILE *f = fopen ("conftest.out", "w");
3497 return ferror (f) || fclose (f) != 0;
3498
3499  ;
3500  return 0;
3501}
3502_ACEOF
3503ac_clean_files="$ac_clean_files conftest.out"
3504# Check that the compiler produces executables we can run.  If not, either
3505# the compiler is broken, or we cross compile.
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3507$as_echo_n "checking whether we are cross compiling... " >&6; }
3508if test "$cross_compiling" != yes; then
3509  { { ac_try="$ac_link"
3510case "(($ac_try" in
3511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512  *) ac_try_echo=$ac_try;;
3513esac
3514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515$as_echo "$ac_try_echo"; } >&5
3516  (eval "$ac_link") 2>&5
3517  ac_status=$?
3518  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519  test $ac_status = 0; }
3520  if { ac_try='./conftest$ac_cv_exeext'
3521  { { case "(($ac_try" in
3522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523  *) ac_try_echo=$ac_try;;
3524esac
3525eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3526$as_echo "$ac_try_echo"; } >&5
3527  (eval "$ac_try") 2>&5
3528  ac_status=$?
3529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530  test $ac_status = 0; }; }; then
3531    cross_compiling=no
3532  else
3533    if test "$cross_compiling" = maybe; then
3534	cross_compiling=yes
3535    else
3536	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3538as_fn_error $? "cannot run C compiled programs.
3539If you meant to cross compile, use \`--host'.
3540See \`config.log' for more details" "$LINENO" 5; }
3541    fi
3542  fi
3543fi
3544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3545$as_echo "$cross_compiling" >&6; }
3546
3547rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3548ac_clean_files=$ac_clean_files_save
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3550$as_echo_n "checking for suffix of object files... " >&6; }
3551if ${ac_cv_objext+:} false; then :
3552  $as_echo_n "(cached) " >&6
3553else
3554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555/* end confdefs.h.  */
3556
3557int
3558main ()
3559{
3560
3561  ;
3562  return 0;
3563}
3564_ACEOF
3565rm -f conftest.o conftest.obj
3566if { { ac_try="$ac_compile"
3567case "(($ac_try" in
3568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569  *) ac_try_echo=$ac_try;;
3570esac
3571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3572$as_echo "$ac_try_echo"; } >&5
3573  (eval "$ac_compile") 2>&5
3574  ac_status=$?
3575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3576  test $ac_status = 0; }; then :
3577  for ac_file in conftest.o conftest.obj conftest.*; do
3578  test -f "$ac_file" || continue;
3579  case $ac_file in
3580    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3581    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3582       break;;
3583  esac
3584done
3585else
3586  $as_echo "$as_me: failed program was:" >&5
3587sed 's/^/| /' conftest.$ac_ext >&5
3588
3589{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3591as_fn_error $? "cannot compute suffix of object files: cannot compile
3592See \`config.log' for more details" "$LINENO" 5; }
3593fi
3594rm -f conftest.$ac_cv_objext conftest.$ac_ext
3595fi
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3597$as_echo "$ac_cv_objext" >&6; }
3598OBJEXT=$ac_cv_objext
3599ac_objext=$OBJEXT
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3601$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3602if ${ac_cv_c_compiler_gnu+:} false; then :
3603  $as_echo_n "(cached) " >&6
3604else
3605  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606/* end confdefs.h.  */
3607
3608int
3609main ()
3610{
3611#ifndef __GNUC__
3612       choke me
3613#endif
3614
3615  ;
3616  return 0;
3617}
3618_ACEOF
3619if ac_fn_c_try_compile "$LINENO"; then :
3620  ac_compiler_gnu=yes
3621else
3622  ac_compiler_gnu=no
3623fi
3624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625ac_cv_c_compiler_gnu=$ac_compiler_gnu
3626
3627fi
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3629$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3630if test $ac_compiler_gnu = yes; then
3631  GCC=yes
3632else
3633  GCC=
3634fi
3635ac_test_CFLAGS=${CFLAGS+set}
3636ac_save_CFLAGS=$CFLAGS
3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3638$as_echo_n "checking whether $CC accepts -g... " >&6; }
3639if ${ac_cv_prog_cc_g+:} false; then :
3640  $as_echo_n "(cached) " >&6
3641else
3642  ac_save_c_werror_flag=$ac_c_werror_flag
3643   ac_c_werror_flag=yes
3644   ac_cv_prog_cc_g=no
3645   CFLAGS="-g"
3646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647/* end confdefs.h.  */
3648
3649int
3650main ()
3651{
3652
3653  ;
3654  return 0;
3655}
3656_ACEOF
3657if ac_fn_c_try_compile "$LINENO"; then :
3658  ac_cv_prog_cc_g=yes
3659else
3660  CFLAGS=""
3661      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662/* end confdefs.h.  */
3663
3664int
3665main ()
3666{
3667
3668  ;
3669  return 0;
3670}
3671_ACEOF
3672if ac_fn_c_try_compile "$LINENO"; then :
3673
3674else
3675  ac_c_werror_flag=$ac_save_c_werror_flag
3676	 CFLAGS="-g"
3677	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678/* end confdefs.h.  */
3679
3680int
3681main ()
3682{
3683
3684  ;
3685  return 0;
3686}
3687_ACEOF
3688if ac_fn_c_try_compile "$LINENO"; then :
3689  ac_cv_prog_cc_g=yes
3690fi
3691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692fi
3693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3694fi
3695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3696   ac_c_werror_flag=$ac_save_c_werror_flag
3697fi
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3699$as_echo "$ac_cv_prog_cc_g" >&6; }
3700if test "$ac_test_CFLAGS" = set; then
3701  CFLAGS=$ac_save_CFLAGS
3702elif test $ac_cv_prog_cc_g = yes; then
3703  if test "$GCC" = yes; then
3704    CFLAGS="-g -O2"
3705  else
3706    CFLAGS="-g"
3707  fi
3708else
3709  if test "$GCC" = yes; then
3710    CFLAGS="-O2"
3711  else
3712    CFLAGS=
3713  fi
3714fi
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3716$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3717if ${ac_cv_prog_cc_c89+:} false; then :
3718  $as_echo_n "(cached) " >&6
3719else
3720  ac_cv_prog_cc_c89=no
3721ac_save_CC=$CC
3722cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723/* end confdefs.h.  */
3724#include <stdarg.h>
3725#include <stdio.h>
3726#include <sys/types.h>
3727#include <sys/stat.h>
3728/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3729struct buf { int x; };
3730FILE * (*rcsopen) (struct buf *, struct stat *, int);
3731static char *e (p, i)
3732     char **p;
3733     int i;
3734{
3735  return p[i];
3736}
3737static char *f (char * (*g) (char **, int), char **p, ...)
3738{
3739  char *s;
3740  va_list v;
3741  va_start (v,p);
3742  s = g (p, va_arg (v,int));
3743  va_end (v);
3744  return s;
3745}
3746
3747/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3748   function prototypes and stuff, but not '\xHH' hex character constants.
3749   These don't provoke an error unfortunately, instead are silently treated
3750   as 'x'.  The following induces an error, until -std is added to get
3751   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3752   array size at least.  It's necessary to write '\x00'==0 to get something
3753   that's true only with -std.  */
3754int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3755
3756/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3757   inside strings and character constants.  */
3758#define FOO(x) 'x'
3759int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3760
3761int test (int i, double x);
3762struct s1 {int (*f) (int a);};
3763struct s2 {int (*f) (double a);};
3764int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3765int argc;
3766char **argv;
3767int
3768main ()
3769{
3770return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3771  ;
3772  return 0;
3773}
3774_ACEOF
3775for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3776	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3777do
3778  CC="$ac_save_CC $ac_arg"
3779  if ac_fn_c_try_compile "$LINENO"; then :
3780  ac_cv_prog_cc_c89=$ac_arg
3781fi
3782rm -f core conftest.err conftest.$ac_objext
3783  test "x$ac_cv_prog_cc_c89" != "xno" && break
3784done
3785rm -f conftest.$ac_ext
3786CC=$ac_save_CC
3787
3788fi
3789# AC_CACHE_VAL
3790case "x$ac_cv_prog_cc_c89" in
3791  x)
3792    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3793$as_echo "none needed" >&6; } ;;
3794  xno)
3795    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3796$as_echo "unsupported" >&6; } ;;
3797  *)
3798    CC="$CC $ac_cv_prog_cc_c89"
3799    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3800$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3801esac
3802if test "x$ac_cv_prog_cc_c89" != xno; then :
3803
3804fi
3805
3806ac_ext=c
3807ac_cpp='$CPP $CPPFLAGS'
3808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810ac_compiler_gnu=$ac_cv_c_compiler_gnu
3811
3812ac_ext=c
3813ac_cpp='$CPP $CPPFLAGS'
3814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3816ac_compiler_gnu=$ac_cv_c_compiler_gnu
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3818$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3819if ${am_cv_prog_cc_c_o+:} false; then :
3820  $as_echo_n "(cached) " >&6
3821else
3822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823/* end confdefs.h.  */
3824
3825int
3826main ()
3827{
3828
3829  ;
3830  return 0;
3831}
3832_ACEOF
3833  # Make sure it works both with $CC and with simple cc.
3834  # Following AC_PROG_CC_C_O, we do the test twice because some
3835  # compilers refuse to overwrite an existing .o file with -o,
3836  # though they will create one.
3837  am_cv_prog_cc_c_o=yes
3838  for am_i in 1 2; do
3839    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3840   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3841   ac_status=$?
3842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843   (exit $ac_status); } \
3844         && test -f conftest2.$ac_objext; then
3845      : OK
3846    else
3847      am_cv_prog_cc_c_o=no
3848      break
3849    fi
3850  done
3851  rm -f core conftest*
3852  unset am_i
3853fi
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3855$as_echo "$am_cv_prog_cc_c_o" >&6; }
3856if test "$am_cv_prog_cc_c_o" != yes; then
3857   # Losing compiler, so override with the script.
3858   # FIXME: It is wrong to rewrite CC.
3859   # But if we don't then we get into trouble of one sort or another.
3860   # A longer-term fix would be to have automake use am__CC in this case,
3861   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3862   CC="$am_aux_dir/compile $CC"
3863fi
3864ac_ext=c
3865ac_cpp='$CPP $CPPFLAGS'
3866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868ac_compiler_gnu=$ac_cv_c_compiler_gnu
3869
3870
3871depcc="$CC"   am_compiler_list=
3872
3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3874$as_echo_n "checking dependency style of $depcc... " >&6; }
3875if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3876  $as_echo_n "(cached) " >&6
3877else
3878  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3879  # We make a subdir and do the tests there.  Otherwise we can end up
3880  # making bogus files that we don't know about and never remove.  For
3881  # instance it was reported that on HP-UX the gcc test will end up
3882  # making a dummy file named 'D' -- because '-MD' means "put the output
3883  # in D".
3884  rm -rf conftest.dir
3885  mkdir conftest.dir
3886  # Copy depcomp to subdir because otherwise we won't find it if we're
3887  # using a relative directory.
3888  cp "$am_depcomp" conftest.dir
3889  cd conftest.dir
3890  # We will build objects and dependencies in a subdirectory because
3891  # it helps to detect inapplicable dependency modes.  For instance
3892  # both Tru64's cc and ICC support -MD to output dependencies as a
3893  # side effect of compilation, but ICC will put the dependencies in
3894  # the current directory while Tru64 will put them in the object
3895  # directory.
3896  mkdir sub
3897
3898  am_cv_CC_dependencies_compiler_type=none
3899  if test "$am_compiler_list" = ""; then
3900     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3901  fi
3902  am__universal=false
3903  case " $depcc " in #(
3904     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3905     esac
3906
3907  for depmode in $am_compiler_list; do
3908    # Setup a source with many dependencies, because some compilers
3909    # like to wrap large dependency lists on column 80 (with \), and
3910    # we should not choose a depcomp mode which is confused by this.
3911    #
3912    # We need to recreate these files for each test, as the compiler may
3913    # overwrite some of them when testing with obscure command lines.
3914    # This happens at least with the AIX C compiler.
3915    : > sub/conftest.c
3916    for i in 1 2 3 4 5 6; do
3917      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3918      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3919      # Solaris 10 /bin/sh.
3920      echo '/* dummy */' > sub/conftst$i.h
3921    done
3922    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3923
3924    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3925    # mode.  It turns out that the SunPro C++ compiler does not properly
3926    # handle '-M -o', and we need to detect this.  Also, some Intel
3927    # versions had trouble with output in subdirs.
3928    am__obj=sub/conftest.${OBJEXT-o}
3929    am__minus_obj="-o $am__obj"
3930    case $depmode in
3931    gcc)
3932      # This depmode causes a compiler race in universal mode.
3933      test "$am__universal" = false || continue
3934      ;;
3935    nosideeffect)
3936      # After this tag, mechanisms are not by side-effect, so they'll
3937      # only be used when explicitly requested.
3938      if test "x$enable_dependency_tracking" = xyes; then
3939	continue
3940      else
3941	break
3942      fi
3943      ;;
3944    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3945      # This compiler won't grok '-c -o', but also, the minuso test has
3946      # not run yet.  These depmodes are late enough in the game, and
3947      # so weak that their functioning should not be impacted.
3948      am__obj=conftest.${OBJEXT-o}
3949      am__minus_obj=
3950      ;;
3951    none) break ;;
3952    esac
3953    if depmode=$depmode \
3954       source=sub/conftest.c object=$am__obj \
3955       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3956       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3957         >/dev/null 2>conftest.err &&
3958       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3959       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3960       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3961       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3962      # icc doesn't choke on unknown options, it will just issue warnings
3963      # or remarks (even with -Werror).  So we grep stderr for any message
3964      # that says an option was ignored or not supported.
3965      # When given -MP, icc 7.0 and 7.1 complain thusly:
3966      #   icc: Command line warning: ignoring option '-M'; no argument required
3967      # The diagnosis changed in icc 8.0:
3968      #   icc: Command line remark: option '-MP' not supported
3969      if (grep 'ignoring option' conftest.err ||
3970          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3971        am_cv_CC_dependencies_compiler_type=$depmode
3972        break
3973      fi
3974    fi
3975  done
3976
3977  cd ..
3978  rm -rf conftest.dir
3979else
3980  am_cv_CC_dependencies_compiler_type=none
3981fi
3982
3983fi
3984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3985$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3986CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3987
3988 if
3989  test "x$enable_dependency_tracking" != xno \
3990  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3991  am__fastdepCC_TRUE=
3992  am__fastdepCC_FALSE='#'
3993else
3994  am__fastdepCC_TRUE='#'
3995  am__fastdepCC_FALSE=
3996fi
3997
3998
3999
4000ac_ext=c
4001ac_cpp='$CPP $CPPFLAGS'
4002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4004ac_compiler_gnu=$ac_cv_c_compiler_gnu
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4006$as_echo_n "checking how to run the C preprocessor... " >&6; }
4007# On Suns, sometimes $CPP names a directory.
4008if test -n "$CPP" && test -d "$CPP"; then
4009  CPP=
4010fi
4011if test -z "$CPP"; then
4012  if ${ac_cv_prog_CPP+:} false; then :
4013  $as_echo_n "(cached) " >&6
4014else
4015      # Double quotes because CPP needs to be expanded
4016    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4017    do
4018      ac_preproc_ok=false
4019for ac_c_preproc_warn_flag in '' yes
4020do
4021  # Use a header file that comes with gcc, so configuring glibc
4022  # with a fresh cross-compiler works.
4023  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4024  # <limits.h> exists even on freestanding compilers.
4025  # On the NeXT, cc -E runs the code through the compiler's parser,
4026  # not just through cpp. "Syntax error" is here to catch this case.
4027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028/* end confdefs.h.  */
4029#ifdef __STDC__
4030# include <limits.h>
4031#else
4032# include <assert.h>
4033#endif
4034		     Syntax error
4035_ACEOF
4036if ac_fn_c_try_cpp "$LINENO"; then :
4037
4038else
4039  # Broken: fails on valid input.
4040continue
4041fi
4042rm -f conftest.err conftest.i conftest.$ac_ext
4043
4044  # OK, works on sane cases.  Now check whether nonexistent headers
4045  # can be detected and how.
4046  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047/* end confdefs.h.  */
4048#include <ac_nonexistent.h>
4049_ACEOF
4050if ac_fn_c_try_cpp "$LINENO"; then :
4051  # Broken: success on invalid input.
4052continue
4053else
4054  # Passes both tests.
4055ac_preproc_ok=:
4056break
4057fi
4058rm -f conftest.err conftest.i conftest.$ac_ext
4059
4060done
4061# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4062rm -f conftest.i conftest.err conftest.$ac_ext
4063if $ac_preproc_ok; then :
4064  break
4065fi
4066
4067    done
4068    ac_cv_prog_CPP=$CPP
4069
4070fi
4071  CPP=$ac_cv_prog_CPP
4072else
4073  ac_cv_prog_CPP=$CPP
4074fi
4075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4076$as_echo "$CPP" >&6; }
4077ac_preproc_ok=false
4078for ac_c_preproc_warn_flag in '' yes
4079do
4080  # Use a header file that comes with gcc, so configuring glibc
4081  # with a fresh cross-compiler works.
4082  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4083  # <limits.h> exists even on freestanding compilers.
4084  # On the NeXT, cc -E runs the code through the compiler's parser,
4085  # not just through cpp. "Syntax error" is here to catch this case.
4086  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087/* end confdefs.h.  */
4088#ifdef __STDC__
4089# include <limits.h>
4090#else
4091# include <assert.h>
4092#endif
4093		     Syntax error
4094_ACEOF
4095if ac_fn_c_try_cpp "$LINENO"; then :
4096
4097else
4098  # Broken: fails on valid input.
4099continue
4100fi
4101rm -f conftest.err conftest.i conftest.$ac_ext
4102
4103  # OK, works on sane cases.  Now check whether nonexistent headers
4104  # can be detected and how.
4105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106/* end confdefs.h.  */
4107#include <ac_nonexistent.h>
4108_ACEOF
4109if ac_fn_c_try_cpp "$LINENO"; then :
4110  # Broken: success on invalid input.
4111continue
4112else
4113  # Passes both tests.
4114ac_preproc_ok=:
4115break
4116fi
4117rm -f conftest.err conftest.i conftest.$ac_ext
4118
4119done
4120# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4121rm -f conftest.i conftest.err conftest.$ac_ext
4122if $ac_preproc_ok; then :
4123
4124else
4125  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4127as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4128See \`config.log' for more details" "$LINENO" 5; }
4129fi
4130
4131ac_ext=c
4132ac_cpp='$CPP $CPPFLAGS'
4133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4135ac_compiler_gnu=$ac_cv_c_compiler_gnu
4136
4137
4138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4139$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4140if ${ac_cv_path_GREP+:} false; then :
4141  $as_echo_n "(cached) " >&6
4142else
4143  if test -z "$GREP"; then
4144  ac_path_GREP_found=false
4145  # Loop through the user's path and test for each of PROGNAME-LIST
4146  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4148do
4149  IFS=$as_save_IFS
4150  test -z "$as_dir" && as_dir=.
4151    for ac_prog in grep ggrep; do
4152    for ac_exec_ext in '' $ac_executable_extensions; do
4153      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4154      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4155# Check for GNU ac_path_GREP and select it if it is found.
4156  # Check for GNU $ac_path_GREP
4157case `"$ac_path_GREP" --version 2>&1` in
4158*GNU*)
4159  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4160*)
4161  ac_count=0
4162  $as_echo_n 0123456789 >"conftest.in"
4163  while :
4164  do
4165    cat "conftest.in" "conftest.in" >"conftest.tmp"
4166    mv "conftest.tmp" "conftest.in"
4167    cp "conftest.in" "conftest.nl"
4168    $as_echo 'GREP' >> "conftest.nl"
4169    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4170    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4171    as_fn_arith $ac_count + 1 && ac_count=$as_val
4172    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4173      # Best one so far, save it but keep looking for a better one
4174      ac_cv_path_GREP="$ac_path_GREP"
4175      ac_path_GREP_max=$ac_count
4176    fi
4177    # 10*(2^10) chars as input seems more than enough
4178    test $ac_count -gt 10 && break
4179  done
4180  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4181esac
4182
4183      $ac_path_GREP_found && break 3
4184    done
4185  done
4186  done
4187IFS=$as_save_IFS
4188  if test -z "$ac_cv_path_GREP"; then
4189    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4190  fi
4191else
4192  ac_cv_path_GREP=$GREP
4193fi
4194
4195fi
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4197$as_echo "$ac_cv_path_GREP" >&6; }
4198 GREP="$ac_cv_path_GREP"
4199
4200
4201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4202$as_echo_n "checking for egrep... " >&6; }
4203if ${ac_cv_path_EGREP+:} false; then :
4204  $as_echo_n "(cached) " >&6
4205else
4206  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4207   then ac_cv_path_EGREP="$GREP -E"
4208   else
4209     if test -z "$EGREP"; then
4210  ac_path_EGREP_found=false
4211  # Loop through the user's path and test for each of PROGNAME-LIST
4212  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4214do
4215  IFS=$as_save_IFS
4216  test -z "$as_dir" && as_dir=.
4217    for ac_prog in egrep; do
4218    for ac_exec_ext in '' $ac_executable_extensions; do
4219      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4220      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4221# Check for GNU ac_path_EGREP and select it if it is found.
4222  # Check for GNU $ac_path_EGREP
4223case `"$ac_path_EGREP" --version 2>&1` in
4224*GNU*)
4225  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4226*)
4227  ac_count=0
4228  $as_echo_n 0123456789 >"conftest.in"
4229  while :
4230  do
4231    cat "conftest.in" "conftest.in" >"conftest.tmp"
4232    mv "conftest.tmp" "conftest.in"
4233    cp "conftest.in" "conftest.nl"
4234    $as_echo 'EGREP' >> "conftest.nl"
4235    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4236    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4237    as_fn_arith $ac_count + 1 && ac_count=$as_val
4238    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4239      # Best one so far, save it but keep looking for a better one
4240      ac_cv_path_EGREP="$ac_path_EGREP"
4241      ac_path_EGREP_max=$ac_count
4242    fi
4243    # 10*(2^10) chars as input seems more than enough
4244    test $ac_count -gt 10 && break
4245  done
4246  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4247esac
4248
4249      $ac_path_EGREP_found && break 3
4250    done
4251  done
4252  done
4253IFS=$as_save_IFS
4254  if test -z "$ac_cv_path_EGREP"; then
4255    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4256  fi
4257else
4258  ac_cv_path_EGREP=$EGREP
4259fi
4260
4261   fi
4262fi
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4264$as_echo "$ac_cv_path_EGREP" >&6; }
4265 EGREP="$ac_cv_path_EGREP"
4266
4267
4268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4269$as_echo_n "checking for ANSI C header files... " >&6; }
4270if ${ac_cv_header_stdc+:} false; then :
4271  $as_echo_n "(cached) " >&6
4272else
4273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274/* end confdefs.h.  */
4275#include <stdlib.h>
4276#include <stdarg.h>
4277#include <string.h>
4278#include <float.h>
4279
4280int
4281main ()
4282{
4283
4284  ;
4285  return 0;
4286}
4287_ACEOF
4288if ac_fn_c_try_compile "$LINENO"; then :
4289  ac_cv_header_stdc=yes
4290else
4291  ac_cv_header_stdc=no
4292fi
4293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294
4295if test $ac_cv_header_stdc = yes; then
4296  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298/* end confdefs.h.  */
4299#include <string.h>
4300
4301_ACEOF
4302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4303  $EGREP "memchr" >/dev/null 2>&1; then :
4304
4305else
4306  ac_cv_header_stdc=no
4307fi
4308rm -f conftest*
4309
4310fi
4311
4312if test $ac_cv_header_stdc = yes; then
4313  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315/* end confdefs.h.  */
4316#include <stdlib.h>
4317
4318_ACEOF
4319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4320  $EGREP "free" >/dev/null 2>&1; then :
4321
4322else
4323  ac_cv_header_stdc=no
4324fi
4325rm -f conftest*
4326
4327fi
4328
4329if test $ac_cv_header_stdc = yes; then
4330  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4331  if test "$cross_compiling" = yes; then :
4332  :
4333else
4334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335/* end confdefs.h.  */
4336#include <ctype.h>
4337#include <stdlib.h>
4338#if ((' ' & 0x0FF) == 0x020)
4339# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4340# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4341#else
4342# define ISLOWER(c) \
4343		   (('a' <= (c) && (c) <= 'i') \
4344		     || ('j' <= (c) && (c) <= 'r') \
4345		     || ('s' <= (c) && (c) <= 'z'))
4346# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4347#endif
4348
4349#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4350int
4351main ()
4352{
4353  int i;
4354  for (i = 0; i < 256; i++)
4355    if (XOR (islower (i), ISLOWER (i))
4356	|| toupper (i) != TOUPPER (i))
4357      return 2;
4358  return 0;
4359}
4360_ACEOF
4361if ac_fn_c_try_run "$LINENO"; then :
4362
4363else
4364  ac_cv_header_stdc=no
4365fi
4366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4367  conftest.$ac_objext conftest.beam conftest.$ac_ext
4368fi
4369
4370fi
4371fi
4372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4373$as_echo "$ac_cv_header_stdc" >&6; }
4374if test $ac_cv_header_stdc = yes; then
4375
4376$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4377
4378fi
4379
4380# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4381for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4382		  inttypes.h stdint.h unistd.h
4383do :
4384  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4385ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4386"
4387if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4388  cat >>confdefs.h <<_ACEOF
4389#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4390_ACEOF
4391
4392fi
4393
4394done
4395
4396
4397
4398  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4399if test "x$ac_cv_header_minix_config_h" = xyes; then :
4400  MINIX=yes
4401else
4402  MINIX=
4403fi
4404
4405
4406  if test "$MINIX" = yes; then
4407
4408$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4409
4410
4411$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4412
4413
4414$as_echo "#define _MINIX 1" >>confdefs.h
4415
4416  fi
4417
4418
4419  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4420$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4421if ${ac_cv_safe_to_define___extensions__+:} false; then :
4422  $as_echo_n "(cached) " >&6
4423else
4424  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425/* end confdefs.h.  */
4426
4427#	  define __EXTENSIONS__ 1
4428	  $ac_includes_default
4429int
4430main ()
4431{
4432
4433  ;
4434  return 0;
4435}
4436_ACEOF
4437if ac_fn_c_try_compile "$LINENO"; then :
4438  ac_cv_safe_to_define___extensions__=yes
4439else
4440  ac_cv_safe_to_define___extensions__=no
4441fi
4442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4443fi
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4445$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4446  test $ac_cv_safe_to_define___extensions__ = yes &&
4447    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4448
4449  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4450
4451  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4452
4453  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4454
4455  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4456
4457
4458
4459# Initialize libtool
4460case `pwd` in
4461  *\ * | *\	*)
4462    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4463$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4464esac
4465
4466
4467
4468macro_version='2.4.2'
4469macro_revision='1.3337'
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483ltmain="$ac_aux_dir/ltmain.sh"
4484
4485# Make sure we can run config.sub.
4486$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4487  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4488
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4490$as_echo_n "checking build system type... " >&6; }
4491if ${ac_cv_build+:} false; then :
4492  $as_echo_n "(cached) " >&6
4493else
4494  ac_build_alias=$build_alias
4495test "x$ac_build_alias" = x &&
4496  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4497test "x$ac_build_alias" = x &&
4498  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4499ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4500  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4501
4502fi
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4504$as_echo "$ac_cv_build" >&6; }
4505case $ac_cv_build in
4506*-*-*) ;;
4507*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4508esac
4509build=$ac_cv_build
4510ac_save_IFS=$IFS; IFS='-'
4511set x $ac_cv_build
4512shift
4513build_cpu=$1
4514build_vendor=$2
4515shift; shift
4516# Remember, the first character of IFS is used to create $*,
4517# except with old shells:
4518build_os=$*
4519IFS=$ac_save_IFS
4520case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4521
4522
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4524$as_echo_n "checking host system type... " >&6; }
4525if ${ac_cv_host+:} false; then :
4526  $as_echo_n "(cached) " >&6
4527else
4528  if test "x$host_alias" = x; then
4529  ac_cv_host=$ac_cv_build
4530else
4531  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4532    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4533fi
4534
4535fi
4536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4537$as_echo "$ac_cv_host" >&6; }
4538case $ac_cv_host in
4539*-*-*) ;;
4540*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4541esac
4542host=$ac_cv_host
4543ac_save_IFS=$IFS; IFS='-'
4544set x $ac_cv_host
4545shift
4546host_cpu=$1
4547host_vendor=$2
4548shift; shift
4549# Remember, the first character of IFS is used to create $*,
4550# except with old shells:
4551host_os=$*
4552IFS=$ac_save_IFS
4553case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4554
4555
4556# Backslashify metacharacters that are still active within
4557# double-quoted strings.
4558sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4559
4560# Same as above, but do not quote variable references.
4561double_quote_subst='s/\(["`\\]\)/\\\1/g'
4562
4563# Sed substitution to delay expansion of an escaped shell variable in a
4564# double_quote_subst'ed string.
4565delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4566
4567# Sed substitution to delay expansion of an escaped single quote.
4568delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4569
4570# Sed substitution to avoid accidental globbing in evaled expressions
4571no_glob_subst='s/\*/\\\*/g'
4572
4573ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4574ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4575ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4576
4577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4578$as_echo_n "checking how to print strings... " >&6; }
4579# Test print first, because it will be a builtin if present.
4580if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4581   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4582  ECHO='print -r --'
4583elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4584  ECHO='printf %s\n'
4585else
4586  # Use this function as a fallback that always works.
4587  func_fallback_echo ()
4588  {
4589    eval 'cat <<_LTECHO_EOF
4590$1
4591_LTECHO_EOF'
4592  }
4593  ECHO='func_fallback_echo'
4594fi
4595
4596# func_echo_all arg...
4597# Invoke $ECHO with all args, space-separated.
4598func_echo_all ()
4599{
4600    $ECHO ""
4601}
4602
4603case "$ECHO" in
4604  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4605$as_echo "printf" >&6; } ;;
4606  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4607$as_echo "print -r" >&6; } ;;
4608  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4609$as_echo "cat" >&6; } ;;
4610esac
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4626$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4627if ${ac_cv_path_SED+:} false; then :
4628  $as_echo_n "(cached) " >&6
4629else
4630            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4631     for ac_i in 1 2 3 4 5 6 7; do
4632       ac_script="$ac_script$as_nl$ac_script"
4633     done
4634     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4635     { ac_script=; unset ac_script;}
4636     if test -z "$SED"; then
4637  ac_path_SED_found=false
4638  # Loop through the user's path and test for each of PROGNAME-LIST
4639  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640for as_dir in $PATH
4641do
4642  IFS=$as_save_IFS
4643  test -z "$as_dir" && as_dir=.
4644    for ac_prog in sed gsed; do
4645    for ac_exec_ext in '' $ac_executable_extensions; do
4646      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4647      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4648# Check for GNU ac_path_SED and select it if it is found.
4649  # Check for GNU $ac_path_SED
4650case `"$ac_path_SED" --version 2>&1` in
4651*GNU*)
4652  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4653*)
4654  ac_count=0
4655  $as_echo_n 0123456789 >"conftest.in"
4656  while :
4657  do
4658    cat "conftest.in" "conftest.in" >"conftest.tmp"
4659    mv "conftest.tmp" "conftest.in"
4660    cp "conftest.in" "conftest.nl"
4661    $as_echo '' >> "conftest.nl"
4662    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4663    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4664    as_fn_arith $ac_count + 1 && ac_count=$as_val
4665    if test $ac_count -gt ${ac_path_SED_max-0}; then
4666      # Best one so far, save it but keep looking for a better one
4667      ac_cv_path_SED="$ac_path_SED"
4668      ac_path_SED_max=$ac_count
4669    fi
4670    # 10*(2^10) chars as input seems more than enough
4671    test $ac_count -gt 10 && break
4672  done
4673  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4674esac
4675
4676      $ac_path_SED_found && break 3
4677    done
4678  done
4679  done
4680IFS=$as_save_IFS
4681  if test -z "$ac_cv_path_SED"; then
4682    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4683  fi
4684else
4685  ac_cv_path_SED=$SED
4686fi
4687
4688fi
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4690$as_echo "$ac_cv_path_SED" >&6; }
4691 SED="$ac_cv_path_SED"
4692  rm -f conftest.sed
4693
4694test -z "$SED" && SED=sed
4695Xsed="$SED -e 1s/^X//"
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4708$as_echo_n "checking for fgrep... " >&6; }
4709if ${ac_cv_path_FGREP+:} false; then :
4710  $as_echo_n "(cached) " >&6
4711else
4712  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4713   then ac_cv_path_FGREP="$GREP -F"
4714   else
4715     if test -z "$FGREP"; then
4716  ac_path_FGREP_found=false
4717  # Loop through the user's path and test for each of PROGNAME-LIST
4718  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4720do
4721  IFS=$as_save_IFS
4722  test -z "$as_dir" && as_dir=.
4723    for ac_prog in fgrep; do
4724    for ac_exec_ext in '' $ac_executable_extensions; do
4725      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4726      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4727# Check for GNU ac_path_FGREP and select it if it is found.
4728  # Check for GNU $ac_path_FGREP
4729case `"$ac_path_FGREP" --version 2>&1` in
4730*GNU*)
4731  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4732*)
4733  ac_count=0
4734  $as_echo_n 0123456789 >"conftest.in"
4735  while :
4736  do
4737    cat "conftest.in" "conftest.in" >"conftest.tmp"
4738    mv "conftest.tmp" "conftest.in"
4739    cp "conftest.in" "conftest.nl"
4740    $as_echo 'FGREP' >> "conftest.nl"
4741    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4742    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4743    as_fn_arith $ac_count + 1 && ac_count=$as_val
4744    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4745      # Best one so far, save it but keep looking for a better one
4746      ac_cv_path_FGREP="$ac_path_FGREP"
4747      ac_path_FGREP_max=$ac_count
4748    fi
4749    # 10*(2^10) chars as input seems more than enough
4750    test $ac_count -gt 10 && break
4751  done
4752  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4753esac
4754
4755      $ac_path_FGREP_found && break 3
4756    done
4757  done
4758  done
4759IFS=$as_save_IFS
4760  if test -z "$ac_cv_path_FGREP"; then
4761    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4762  fi
4763else
4764  ac_cv_path_FGREP=$FGREP
4765fi
4766
4767   fi
4768fi
4769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4770$as_echo "$ac_cv_path_FGREP" >&6; }
4771 FGREP="$ac_cv_path_FGREP"
4772
4773
4774test -z "$GREP" && GREP=grep
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794# Check whether --with-gnu-ld was given.
4795if test "${with_gnu_ld+set}" = set; then :
4796  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4797else
4798  with_gnu_ld=no
4799fi
4800
4801ac_prog=ld
4802if test "$GCC" = yes; then
4803  # Check if gcc -print-prog-name=ld gives a path.
4804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4805$as_echo_n "checking for ld used by $CC... " >&6; }
4806  case $host in
4807  *-*-mingw*)
4808    # gcc leaves a trailing carriage return which upsets mingw
4809    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4810  *)
4811    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4812  esac
4813  case $ac_prog in
4814    # Accept absolute paths.
4815    [\\/]* | ?:[\\/]*)
4816      re_direlt='/[^/][^/]*/\.\./'
4817      # Canonicalize the pathname of ld
4818      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4819      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4820	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4821      done
4822      test -z "$LD" && LD="$ac_prog"
4823      ;;
4824  "")
4825    # If it fails, then pretend we aren't using GCC.
4826    ac_prog=ld
4827    ;;
4828  *)
4829    # If it is relative, then search for the first ld in PATH.
4830    with_gnu_ld=unknown
4831    ;;
4832  esac
4833elif test "$with_gnu_ld" = yes; then
4834  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4835$as_echo_n "checking for GNU ld... " >&6; }
4836else
4837  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4838$as_echo_n "checking for non-GNU ld... " >&6; }
4839fi
4840if ${lt_cv_path_LD+:} false; then :
4841  $as_echo_n "(cached) " >&6
4842else
4843  if test -z "$LD"; then
4844  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4845  for ac_dir in $PATH; do
4846    IFS="$lt_save_ifs"
4847    test -z "$ac_dir" && ac_dir=.
4848    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4849      lt_cv_path_LD="$ac_dir/$ac_prog"
4850      # Check to see if the program is GNU ld.  I'd rather use --version,
4851      # but apparently some variants of GNU ld only accept -v.
4852      # Break only if it was the GNU/non-GNU ld that we prefer.
4853      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4854      *GNU* | *'with BFD'*)
4855	test "$with_gnu_ld" != no && break
4856	;;
4857      *)
4858	test "$with_gnu_ld" != yes && break
4859	;;
4860      esac
4861    fi
4862  done
4863  IFS="$lt_save_ifs"
4864else
4865  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4866fi
4867fi
4868
4869LD="$lt_cv_path_LD"
4870if test -n "$LD"; then
4871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4872$as_echo "$LD" >&6; }
4873else
4874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875$as_echo "no" >&6; }
4876fi
4877test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4879$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4880if ${lt_cv_prog_gnu_ld+:} false; then :
4881  $as_echo_n "(cached) " >&6
4882else
4883  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4884case `$LD -v 2>&1 </dev/null` in
4885*GNU* | *'with BFD'*)
4886  lt_cv_prog_gnu_ld=yes
4887  ;;
4888*)
4889  lt_cv_prog_gnu_ld=no
4890  ;;
4891esac
4892fi
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4894$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4895with_gnu_ld=$lt_cv_prog_gnu_ld
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4906$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4907if ${lt_cv_path_NM+:} false; then :
4908  $as_echo_n "(cached) " >&6
4909else
4910  if test -n "$NM"; then
4911  # Let the user override the test.
4912  lt_cv_path_NM="$NM"
4913else
4914  lt_nm_to_check="${ac_tool_prefix}nm"
4915  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4916    lt_nm_to_check="$lt_nm_to_check nm"
4917  fi
4918  for lt_tmp_nm in $lt_nm_to_check; do
4919    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4920    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4921      IFS="$lt_save_ifs"
4922      test -z "$ac_dir" && ac_dir=.
4923      tmp_nm="$ac_dir/$lt_tmp_nm"
4924      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4925	# Check to see if the nm accepts a BSD-compat flag.
4926	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4927	#   nm: unknown option "B" ignored
4928	# Tru64's nm complains that /dev/null is an invalid object file
4929	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4930	*/dev/null* | *'Invalid file or object type'*)
4931	  lt_cv_path_NM="$tmp_nm -B"
4932	  break
4933	  ;;
4934	*)
4935	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4936	  */dev/null*)
4937	    lt_cv_path_NM="$tmp_nm -p"
4938	    break
4939	    ;;
4940	  *)
4941	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4942	    continue # so that we can try to find one that supports BSD flags
4943	    ;;
4944	  esac
4945	  ;;
4946	esac
4947      fi
4948    done
4949    IFS="$lt_save_ifs"
4950  done
4951  : ${lt_cv_path_NM=no}
4952fi
4953fi
4954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4955$as_echo "$lt_cv_path_NM" >&6; }
4956if test "$lt_cv_path_NM" != "no"; then
4957  NM="$lt_cv_path_NM"
4958else
4959  # Didn't find any BSD compatible name lister, look for dumpbin.
4960  if test -n "$DUMPBIN"; then :
4961    # Let the user override the test.
4962  else
4963    if test -n "$ac_tool_prefix"; then
4964  for ac_prog in dumpbin "link -dump"
4965  do
4966    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4967set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969$as_echo_n "checking for $ac_word... " >&6; }
4970if ${ac_cv_prog_DUMPBIN+:} false; then :
4971  $as_echo_n "(cached) " >&6
4972else
4973  if test -n "$DUMPBIN"; then
4974  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4975else
4976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977for as_dir in $PATH
4978do
4979  IFS=$as_save_IFS
4980  test -z "$as_dir" && as_dir=.
4981    for ac_exec_ext in '' $ac_executable_extensions; do
4982  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4983    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985    break 2
4986  fi
4987done
4988  done
4989IFS=$as_save_IFS
4990
4991fi
4992fi
4993DUMPBIN=$ac_cv_prog_DUMPBIN
4994if test -n "$DUMPBIN"; then
4995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4996$as_echo "$DUMPBIN" >&6; }
4997else
4998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999$as_echo "no" >&6; }
5000fi
5001
5002
5003    test -n "$DUMPBIN" && break
5004  done
5005fi
5006if test -z "$DUMPBIN"; then
5007  ac_ct_DUMPBIN=$DUMPBIN
5008  for ac_prog in dumpbin "link -dump"
5009do
5010  # Extract the first word of "$ac_prog", so it can be a program name with args.
5011set dummy $ac_prog; ac_word=$2
5012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5013$as_echo_n "checking for $ac_word... " >&6; }
5014if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5015  $as_echo_n "(cached) " >&6
5016else
5017  if test -n "$ac_ct_DUMPBIN"; then
5018  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5019else
5020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021for as_dir in $PATH
5022do
5023  IFS=$as_save_IFS
5024  test -z "$as_dir" && as_dir=.
5025    for ac_exec_ext in '' $ac_executable_extensions; do
5026  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5027    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5028    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5029    break 2
5030  fi
5031done
5032  done
5033IFS=$as_save_IFS
5034
5035fi
5036fi
5037ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5038if test -n "$ac_ct_DUMPBIN"; then
5039  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5040$as_echo "$ac_ct_DUMPBIN" >&6; }
5041else
5042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5043$as_echo "no" >&6; }
5044fi
5045
5046
5047  test -n "$ac_ct_DUMPBIN" && break
5048done
5049
5050  if test "x$ac_ct_DUMPBIN" = x; then
5051    DUMPBIN=":"
5052  else
5053    case $cross_compiling:$ac_tool_warned in
5054yes:)
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5057ac_tool_warned=yes ;;
5058esac
5059    DUMPBIN=$ac_ct_DUMPBIN
5060  fi
5061fi
5062
5063    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5064    *COFF*)
5065      DUMPBIN="$DUMPBIN -symbols"
5066      ;;
5067    *)
5068      DUMPBIN=:
5069      ;;
5070    esac
5071  fi
5072
5073  if test "$DUMPBIN" != ":"; then
5074    NM="$DUMPBIN"
5075  fi
5076fi
5077test -z "$NM" && NM=nm
5078
5079
5080
5081
5082
5083
5084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5085$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5086if ${lt_cv_nm_interface+:} false; then :
5087  $as_echo_n "(cached) " >&6
5088else
5089  lt_cv_nm_interface="BSD nm"
5090  echo "int some_variable = 0;" > conftest.$ac_ext
5091  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5092  (eval "$ac_compile" 2>conftest.err)
5093  cat conftest.err >&5
5094  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5095  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5096  cat conftest.err >&5
5097  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5098  cat conftest.out >&5
5099  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5100    lt_cv_nm_interface="MS dumpbin"
5101  fi
5102  rm -f conftest*
5103fi
5104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5105$as_echo "$lt_cv_nm_interface" >&6; }
5106
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5108$as_echo_n "checking whether ln -s works... " >&6; }
5109LN_S=$as_ln_s
5110if test "$LN_S" = "ln -s"; then
5111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5112$as_echo "yes" >&6; }
5113else
5114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5115$as_echo "no, using $LN_S" >&6; }
5116fi
5117
5118# find the maximum length of command line arguments
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5120$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5121if ${lt_cv_sys_max_cmd_len+:} false; then :
5122  $as_echo_n "(cached) " >&6
5123else
5124    i=0
5125  teststring="ABCD"
5126
5127  case $build_os in
5128  msdosdjgpp*)
5129    # On DJGPP, this test can blow up pretty badly due to problems in libc
5130    # (any single argument exceeding 2000 bytes causes a buffer overrun
5131    # during glob expansion).  Even if it were fixed, the result of this
5132    # check would be larger than it should be.
5133    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5134    ;;
5135
5136  gnu*)
5137    # Under GNU Hurd, this test is not required because there is
5138    # no limit to the length of command line arguments.
5139    # Libtool will interpret -1 as no limit whatsoever
5140    lt_cv_sys_max_cmd_len=-1;
5141    ;;
5142
5143  cygwin* | mingw* | cegcc*)
5144    # On Win9x/ME, this test blows up -- it succeeds, but takes
5145    # about 5 minutes as the teststring grows exponentially.
5146    # Worse, since 9x/ME are not pre-emptively multitasking,
5147    # you end up with a "frozen" computer, even though with patience
5148    # the test eventually succeeds (with a max line length of 256k).
5149    # Instead, let's just punt: use the minimum linelength reported by
5150    # all of the supported platforms: 8192 (on NT/2K/XP).
5151    lt_cv_sys_max_cmd_len=8192;
5152    ;;
5153
5154  mint*)
5155    # On MiNT this can take a long time and run out of memory.
5156    lt_cv_sys_max_cmd_len=8192;
5157    ;;
5158
5159  amigaos*)
5160    # On AmigaOS with pdksh, this test takes hours, literally.
5161    # So we just punt and use a minimum line length of 8192.
5162    lt_cv_sys_max_cmd_len=8192;
5163    ;;
5164
5165  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5166    # This has been around since 386BSD, at least.  Likely further.
5167    if test -x /sbin/sysctl; then
5168      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5169    elif test -x /usr/sbin/sysctl; then
5170      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5171    else
5172      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5173    fi
5174    # And add a safety zone
5175    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5176    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5177    ;;
5178
5179  interix*)
5180    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5181    lt_cv_sys_max_cmd_len=196608
5182    ;;
5183
5184  os2*)
5185    # The test takes a long time on OS/2.
5186    lt_cv_sys_max_cmd_len=8192
5187    ;;
5188
5189  osf*)
5190    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5191    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5192    # nice to cause kernel panics so lets avoid the loop below.
5193    # First set a reasonable default.
5194    lt_cv_sys_max_cmd_len=16384
5195    #
5196    if test -x /sbin/sysconfig; then
5197      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5198        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5199      esac
5200    fi
5201    ;;
5202  sco3.2v5*)
5203    lt_cv_sys_max_cmd_len=102400
5204    ;;
5205  sysv5* | sco5v6* | sysv4.2uw2*)
5206    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5207    if test -n "$kargmax"; then
5208      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5209    else
5210      lt_cv_sys_max_cmd_len=32768
5211    fi
5212    ;;
5213  *)
5214    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5215    if test -n "$lt_cv_sys_max_cmd_len"; then
5216      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5217      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5218    else
5219      # Make teststring a little bigger before we do anything with it.
5220      # a 1K string should be a reasonable start.
5221      for i in 1 2 3 4 5 6 7 8 ; do
5222        teststring=$teststring$teststring
5223      done
5224      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5225      # If test is not a shell built-in, we'll probably end up computing a
5226      # maximum length that is only half of the actual maximum length, but
5227      # we can't tell.
5228      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5229	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5230	      test $i != 17 # 1/2 MB should be enough
5231      do
5232        i=`expr $i + 1`
5233        teststring=$teststring$teststring
5234      done
5235      # Only check the string length outside the loop.
5236      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5237      teststring=
5238      # Add a significant safety factor because C++ compilers can tack on
5239      # massive amounts of additional arguments before passing them to the
5240      # linker.  It appears as though 1/2 is a usable value.
5241      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5242    fi
5243    ;;
5244  esac
5245
5246fi
5247
5248if test -n $lt_cv_sys_max_cmd_len ; then
5249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5250$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5251else
5252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5253$as_echo "none" >&6; }
5254fi
5255max_cmd_len=$lt_cv_sys_max_cmd_len
5256
5257
5258
5259
5260
5261
5262: ${CP="cp -f"}
5263: ${MV="mv -f"}
5264: ${RM="rm -f"}
5265
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5267$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5268# Try some XSI features
5269xsi_shell=no
5270( _lt_dummy="a/b/c"
5271  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5272      = c,a/b,b/c, \
5273    && eval 'test $(( 1 + 1 )) -eq 2 \
5274    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5275  && xsi_shell=yes
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5277$as_echo "$xsi_shell" >&6; }
5278
5279
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5281$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5282lt_shell_append=no
5283( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5284    >/dev/null 2>&1 \
5285  && lt_shell_append=yes
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5287$as_echo "$lt_shell_append" >&6; }
5288
5289
5290if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5291  lt_unset=unset
5292else
5293  lt_unset=false
5294fi
5295
5296
5297
5298
5299
5300# test EBCDIC or ASCII
5301case `echo X|tr X '\101'` in
5302 A) # ASCII based system
5303    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5304  lt_SP2NL='tr \040 \012'
5305  lt_NL2SP='tr \015\012 \040\040'
5306  ;;
5307 *) # EBCDIC based system
5308  lt_SP2NL='tr \100 \n'
5309  lt_NL2SP='tr \r\n \100\100'
5310  ;;
5311esac
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5322$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5323if ${lt_cv_to_host_file_cmd+:} false; then :
5324  $as_echo_n "(cached) " >&6
5325else
5326  case $host in
5327  *-*-mingw* )
5328    case $build in
5329      *-*-mingw* ) # actually msys
5330        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5331        ;;
5332      *-*-cygwin* )
5333        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5334        ;;
5335      * ) # otherwise, assume *nix
5336        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5337        ;;
5338    esac
5339    ;;
5340  *-*-cygwin* )
5341    case $build in
5342      *-*-mingw* ) # actually msys
5343        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5344        ;;
5345      *-*-cygwin* )
5346        lt_cv_to_host_file_cmd=func_convert_file_noop
5347        ;;
5348      * ) # otherwise, assume *nix
5349        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5350        ;;
5351    esac
5352    ;;
5353  * ) # unhandled hosts (and "normal" native builds)
5354    lt_cv_to_host_file_cmd=func_convert_file_noop
5355    ;;
5356esac
5357
5358fi
5359
5360to_host_file_cmd=$lt_cv_to_host_file_cmd
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5362$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5363
5364
5365
5366
5367
5368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5369$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5370if ${lt_cv_to_tool_file_cmd+:} false; then :
5371  $as_echo_n "(cached) " >&6
5372else
5373  #assume ordinary cross tools, or native build.
5374lt_cv_to_tool_file_cmd=func_convert_file_noop
5375case $host in
5376  *-*-mingw* )
5377    case $build in
5378      *-*-mingw* ) # actually msys
5379        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5380        ;;
5381    esac
5382    ;;
5383esac
5384
5385fi
5386
5387to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5389$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5390
5391
5392
5393
5394
5395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5396$as_echo_n "checking for $LD option to reload object files... " >&6; }
5397if ${lt_cv_ld_reload_flag+:} false; then :
5398  $as_echo_n "(cached) " >&6
5399else
5400  lt_cv_ld_reload_flag='-r'
5401fi
5402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5403$as_echo "$lt_cv_ld_reload_flag" >&6; }
5404reload_flag=$lt_cv_ld_reload_flag
5405case $reload_flag in
5406"" | " "*) ;;
5407*) reload_flag=" $reload_flag" ;;
5408esac
5409reload_cmds='$LD$reload_flag -o $output$reload_objs'
5410case $host_os in
5411  cygwin* | mingw* | pw32* | cegcc*)
5412    if test "$GCC" != yes; then
5413      reload_cmds=false
5414    fi
5415    ;;
5416  darwin*)
5417    if test "$GCC" = yes; then
5418      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5419    else
5420      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5421    fi
5422    ;;
5423esac
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433if test -n "$ac_tool_prefix"; then
5434  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5435set dummy ${ac_tool_prefix}objdump; ac_word=$2
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5437$as_echo_n "checking for $ac_word... " >&6; }
5438if ${ac_cv_prog_OBJDUMP+:} false; then :
5439  $as_echo_n "(cached) " >&6
5440else
5441  if test -n "$OBJDUMP"; then
5442  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5443else
5444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445for as_dir in $PATH
5446do
5447  IFS=$as_save_IFS
5448  test -z "$as_dir" && as_dir=.
5449    for ac_exec_ext in '' $ac_executable_extensions; do
5450  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5451    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5453    break 2
5454  fi
5455done
5456  done
5457IFS=$as_save_IFS
5458
5459fi
5460fi
5461OBJDUMP=$ac_cv_prog_OBJDUMP
5462if test -n "$OBJDUMP"; then
5463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5464$as_echo "$OBJDUMP" >&6; }
5465else
5466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467$as_echo "no" >&6; }
5468fi
5469
5470
5471fi
5472if test -z "$ac_cv_prog_OBJDUMP"; then
5473  ac_ct_OBJDUMP=$OBJDUMP
5474  # Extract the first word of "objdump", so it can be a program name with args.
5475set dummy objdump; ac_word=$2
5476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5477$as_echo_n "checking for $ac_word... " >&6; }
5478if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5479  $as_echo_n "(cached) " >&6
5480else
5481  if test -n "$ac_ct_OBJDUMP"; then
5482  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5483else
5484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485for as_dir in $PATH
5486do
5487  IFS=$as_save_IFS
5488  test -z "$as_dir" && as_dir=.
5489    for ac_exec_ext in '' $ac_executable_extensions; do
5490  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5491    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5492    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5493    break 2
5494  fi
5495done
5496  done
5497IFS=$as_save_IFS
5498
5499fi
5500fi
5501ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5502if test -n "$ac_ct_OBJDUMP"; then
5503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5504$as_echo "$ac_ct_OBJDUMP" >&6; }
5505else
5506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507$as_echo "no" >&6; }
5508fi
5509
5510  if test "x$ac_ct_OBJDUMP" = x; then
5511    OBJDUMP="false"
5512  else
5513    case $cross_compiling:$ac_tool_warned in
5514yes:)
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5517ac_tool_warned=yes ;;
5518esac
5519    OBJDUMP=$ac_ct_OBJDUMP
5520  fi
5521else
5522  OBJDUMP="$ac_cv_prog_OBJDUMP"
5523fi
5524
5525test -z "$OBJDUMP" && OBJDUMP=objdump
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5536$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5537if ${lt_cv_deplibs_check_method+:} false; then :
5538  $as_echo_n "(cached) " >&6
5539else
5540  lt_cv_file_magic_cmd='$MAGIC_CMD'
5541lt_cv_file_magic_test_file=
5542lt_cv_deplibs_check_method='unknown'
5543# Need to set the preceding variable on all platforms that support
5544# interlibrary dependencies.
5545# 'none' -- dependencies not supported.
5546# `unknown' -- same as none, but documents that we really don't know.
5547# 'pass_all' -- all dependencies passed with no checks.
5548# 'test_compile' -- check by making test program.
5549# 'file_magic [[regex]]' -- check by looking for files in library path
5550# which responds to the $file_magic_cmd with a given extended regex.
5551# If you have `file' or equivalent on your system and you're not sure
5552# whether `pass_all' will *always* work, you probably want this one.
5553
5554case $host_os in
5555aix[4-9]*)
5556  lt_cv_deplibs_check_method=pass_all
5557  ;;
5558
5559beos*)
5560  lt_cv_deplibs_check_method=pass_all
5561  ;;
5562
5563bsdi[45]*)
5564  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5565  lt_cv_file_magic_cmd='/usr/bin/file -L'
5566  lt_cv_file_magic_test_file=/shlib/libc.so
5567  ;;
5568
5569cygwin*)
5570  # func_win32_libid is a shell function defined in ltmain.sh
5571  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5572  lt_cv_file_magic_cmd='func_win32_libid'
5573  ;;
5574
5575mingw* | pw32*)
5576  # Base MSYS/MinGW do not provide the 'file' command needed by
5577  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5578  # unless we find 'file', for example because we are cross-compiling.
5579  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5580  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5581    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5582    lt_cv_file_magic_cmd='func_win32_libid'
5583  else
5584    # Keep this pattern in sync with the one in func_win32_libid.
5585    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5586    lt_cv_file_magic_cmd='$OBJDUMP -f'
5587  fi
5588  ;;
5589
5590cegcc*)
5591  # use the weaker test based on 'objdump'. See mingw*.
5592  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5593  lt_cv_file_magic_cmd='$OBJDUMP -f'
5594  ;;
5595
5596darwin* | rhapsody*)
5597  lt_cv_deplibs_check_method=pass_all
5598  ;;
5599
5600freebsd* | dragonfly*)
5601  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5602    case $host_cpu in
5603    i*86 )
5604      # Not sure whether the presence of OpenBSD here was a mistake.
5605      # Let's accept both of them until this is cleared up.
5606      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5607      lt_cv_file_magic_cmd=/usr/bin/file
5608      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5609      ;;
5610    esac
5611  else
5612    lt_cv_deplibs_check_method=pass_all
5613  fi
5614  ;;
5615
5616gnu*)
5617  lt_cv_deplibs_check_method=pass_all
5618  ;;
5619
5620haiku*)
5621  lt_cv_deplibs_check_method=pass_all
5622  ;;
5623
5624hpux10.20* | hpux11*)
5625  lt_cv_file_magic_cmd=/usr/bin/file
5626  case $host_cpu in
5627  ia64*)
5628    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5629    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5630    ;;
5631  hppa*64*)
5632    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]'
5633    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5634    ;;
5635  *)
5636    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5637    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5638    ;;
5639  esac
5640  ;;
5641
5642interix[3-9]*)
5643  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5644  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5645  ;;
5646
5647irix5* | irix6* | nonstopux*)
5648  case $LD in
5649  *-32|*"-32 ") libmagic=32-bit;;
5650  *-n32|*"-n32 ") libmagic=N32;;
5651  *-64|*"-64 ") libmagic=64-bit;;
5652  *) libmagic=never-match;;
5653  esac
5654  lt_cv_deplibs_check_method=pass_all
5655  ;;
5656
5657# This must be glibc/ELF.
5658linux* | k*bsd*-gnu | kopensolaris*-gnu)
5659  lt_cv_deplibs_check_method=pass_all
5660  ;;
5661
5662netbsd*)
5663  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5664    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5665  else
5666    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5667  fi
5668  ;;
5669
5670newos6*)
5671  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5672  lt_cv_file_magic_cmd=/usr/bin/file
5673  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5674  ;;
5675
5676*nto* | *qnx*)
5677  lt_cv_deplibs_check_method=pass_all
5678  ;;
5679
5680openbsd*)
5681  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5682    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5683  else
5684    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5685  fi
5686  ;;
5687
5688osf3* | osf4* | osf5*)
5689  lt_cv_deplibs_check_method=pass_all
5690  ;;
5691
5692rdos*)
5693  lt_cv_deplibs_check_method=pass_all
5694  ;;
5695
5696solaris*)
5697  lt_cv_deplibs_check_method=pass_all
5698  ;;
5699
5700sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5701  lt_cv_deplibs_check_method=pass_all
5702  ;;
5703
5704sysv4 | sysv4.3*)
5705  case $host_vendor in
5706  motorola)
5707    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]'
5708    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5709    ;;
5710  ncr)
5711    lt_cv_deplibs_check_method=pass_all
5712    ;;
5713  sequent)
5714    lt_cv_file_magic_cmd='/bin/file'
5715    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5716    ;;
5717  sni)
5718    lt_cv_file_magic_cmd='/bin/file'
5719    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5720    lt_cv_file_magic_test_file=/lib/libc.so
5721    ;;
5722  siemens)
5723    lt_cv_deplibs_check_method=pass_all
5724    ;;
5725  pc)
5726    lt_cv_deplibs_check_method=pass_all
5727    ;;
5728  esac
5729  ;;
5730
5731tpf*)
5732  lt_cv_deplibs_check_method=pass_all
5733  ;;
5734esac
5735
5736fi
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5738$as_echo "$lt_cv_deplibs_check_method" >&6; }
5739
5740file_magic_glob=
5741want_nocaseglob=no
5742if test "$build" = "$host"; then
5743  case $host_os in
5744  mingw* | pw32*)
5745    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5746      want_nocaseglob=yes
5747    else
5748      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5749    fi
5750    ;;
5751  esac
5752fi
5753
5754file_magic_cmd=$lt_cv_file_magic_cmd
5755deplibs_check_method=$lt_cv_deplibs_check_method
5756test -z "$deplibs_check_method" && deplibs_check_method=unknown
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779if test -n "$ac_tool_prefix"; then
5780  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5781set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5783$as_echo_n "checking for $ac_word... " >&6; }
5784if ${ac_cv_prog_DLLTOOL+:} false; then :
5785  $as_echo_n "(cached) " >&6
5786else
5787  if test -n "$DLLTOOL"; then
5788  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5789else
5790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5791for as_dir in $PATH
5792do
5793  IFS=$as_save_IFS
5794  test -z "$as_dir" && as_dir=.
5795    for ac_exec_ext in '' $ac_executable_extensions; do
5796  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5797    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5798    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5799    break 2
5800  fi
5801done
5802  done
5803IFS=$as_save_IFS
5804
5805fi
5806fi
5807DLLTOOL=$ac_cv_prog_DLLTOOL
5808if test -n "$DLLTOOL"; then
5809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5810$as_echo "$DLLTOOL" >&6; }
5811else
5812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5813$as_echo "no" >&6; }
5814fi
5815
5816
5817fi
5818if test -z "$ac_cv_prog_DLLTOOL"; then
5819  ac_ct_DLLTOOL=$DLLTOOL
5820  # Extract the first word of "dlltool", so it can be a program name with args.
5821set dummy dlltool; ac_word=$2
5822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5823$as_echo_n "checking for $ac_word... " >&6; }
5824if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5825  $as_echo_n "(cached) " >&6
5826else
5827  if test -n "$ac_ct_DLLTOOL"; then
5828  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5829else
5830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831for as_dir in $PATH
5832do
5833  IFS=$as_save_IFS
5834  test -z "$as_dir" && as_dir=.
5835    for ac_exec_ext in '' $ac_executable_extensions; do
5836  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5837    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5838    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5839    break 2
5840  fi
5841done
5842  done
5843IFS=$as_save_IFS
5844
5845fi
5846fi
5847ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5848if test -n "$ac_ct_DLLTOOL"; then
5849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5850$as_echo "$ac_ct_DLLTOOL" >&6; }
5851else
5852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5853$as_echo "no" >&6; }
5854fi
5855
5856  if test "x$ac_ct_DLLTOOL" = x; then
5857    DLLTOOL="false"
5858  else
5859    case $cross_compiling:$ac_tool_warned in
5860yes:)
5861{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5862$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5863ac_tool_warned=yes ;;
5864esac
5865    DLLTOOL=$ac_ct_DLLTOOL
5866  fi
5867else
5868  DLLTOOL="$ac_cv_prog_DLLTOOL"
5869fi
5870
5871test -z "$DLLTOOL" && DLLTOOL=dlltool
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5883$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5884if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5885  $as_echo_n "(cached) " >&6
5886else
5887  lt_cv_sharedlib_from_linklib_cmd='unknown'
5888
5889case $host_os in
5890cygwin* | mingw* | pw32* | cegcc*)
5891  # two different shell functions defined in ltmain.sh
5892  # decide which to use based on capabilities of $DLLTOOL
5893  case `$DLLTOOL --help 2>&1` in
5894  *--identify-strict*)
5895    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5896    ;;
5897  *)
5898    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5899    ;;
5900  esac
5901  ;;
5902*)
5903  # fallback: assume linklib IS sharedlib
5904  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5905  ;;
5906esac
5907
5908fi
5909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5910$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5911sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5912test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5913
5914
5915
5916
5917
5918
5919
5920if test -n "$ac_tool_prefix"; then
5921  for ac_prog in ar
5922  do
5923    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5924set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926$as_echo_n "checking for $ac_word... " >&6; }
5927if ${ac_cv_prog_AR+:} false; then :
5928  $as_echo_n "(cached) " >&6
5929else
5930  if test -n "$AR"; then
5931  ac_cv_prog_AR="$AR" # Let the user override the test.
5932else
5933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934for as_dir in $PATH
5935do
5936  IFS=$as_save_IFS
5937  test -z "$as_dir" && as_dir=.
5938    for ac_exec_ext in '' $ac_executable_extensions; do
5939  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5940    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942    break 2
5943  fi
5944done
5945  done
5946IFS=$as_save_IFS
5947
5948fi
5949fi
5950AR=$ac_cv_prog_AR
5951if test -n "$AR"; then
5952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5953$as_echo "$AR" >&6; }
5954else
5955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956$as_echo "no" >&6; }
5957fi
5958
5959
5960    test -n "$AR" && break
5961  done
5962fi
5963if test -z "$AR"; then
5964  ac_ct_AR=$AR
5965  for ac_prog in ar
5966do
5967  # Extract the first word of "$ac_prog", so it can be a program name with args.
5968set dummy $ac_prog; ac_word=$2
5969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970$as_echo_n "checking for $ac_word... " >&6; }
5971if ${ac_cv_prog_ac_ct_AR+:} false; then :
5972  $as_echo_n "(cached) " >&6
5973else
5974  if test -n "$ac_ct_AR"; then
5975  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5976else
5977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978for as_dir in $PATH
5979do
5980  IFS=$as_save_IFS
5981  test -z "$as_dir" && as_dir=.
5982    for ac_exec_ext in '' $ac_executable_extensions; do
5983  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5984    ac_cv_prog_ac_ct_AR="$ac_prog"
5985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5986    break 2
5987  fi
5988done
5989  done
5990IFS=$as_save_IFS
5991
5992fi
5993fi
5994ac_ct_AR=$ac_cv_prog_ac_ct_AR
5995if test -n "$ac_ct_AR"; then
5996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5997$as_echo "$ac_ct_AR" >&6; }
5998else
5999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000$as_echo "no" >&6; }
6001fi
6002
6003
6004  test -n "$ac_ct_AR" && break
6005done
6006
6007  if test "x$ac_ct_AR" = x; then
6008    AR="false"
6009  else
6010    case $cross_compiling:$ac_tool_warned in
6011yes:)
6012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6014ac_tool_warned=yes ;;
6015esac
6016    AR=$ac_ct_AR
6017  fi
6018fi
6019
6020: ${AR=ar}
6021: ${AR_FLAGS=cru}
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6034$as_echo_n "checking for archiver @FILE support... " >&6; }
6035if ${lt_cv_ar_at_file+:} false; then :
6036  $as_echo_n "(cached) " >&6
6037else
6038  lt_cv_ar_at_file=no
6039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040/* end confdefs.h.  */
6041
6042int
6043main ()
6044{
6045
6046  ;
6047  return 0;
6048}
6049_ACEOF
6050if ac_fn_c_try_compile "$LINENO"; then :
6051  echo conftest.$ac_objext > conftest.lst
6052      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6053      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6054  (eval $lt_ar_try) 2>&5
6055  ac_status=$?
6056  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6057  test $ac_status = 0; }
6058      if test "$ac_status" -eq 0; then
6059	# Ensure the archiver fails upon bogus file names.
6060	rm -f conftest.$ac_objext libconftest.a
6061	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6062  (eval $lt_ar_try) 2>&5
6063  ac_status=$?
6064  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6065  test $ac_status = 0; }
6066	if test "$ac_status" -ne 0; then
6067          lt_cv_ar_at_file=@
6068        fi
6069      fi
6070      rm -f conftest.* libconftest.a
6071
6072fi
6073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6074
6075fi
6076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6077$as_echo "$lt_cv_ar_at_file" >&6; }
6078
6079if test "x$lt_cv_ar_at_file" = xno; then
6080  archiver_list_spec=
6081else
6082  archiver_list_spec=$lt_cv_ar_at_file
6083fi
6084
6085
6086
6087
6088
6089
6090
6091if test -n "$ac_tool_prefix"; then
6092  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6093set dummy ${ac_tool_prefix}strip; ac_word=$2
6094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6095$as_echo_n "checking for $ac_word... " >&6; }
6096if ${ac_cv_prog_STRIP+:} false; then :
6097  $as_echo_n "(cached) " >&6
6098else
6099  if test -n "$STRIP"; then
6100  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6101else
6102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103for as_dir in $PATH
6104do
6105  IFS=$as_save_IFS
6106  test -z "$as_dir" && as_dir=.
6107    for ac_exec_ext in '' $ac_executable_extensions; do
6108  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6109    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6110    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6111    break 2
6112  fi
6113done
6114  done
6115IFS=$as_save_IFS
6116
6117fi
6118fi
6119STRIP=$ac_cv_prog_STRIP
6120if test -n "$STRIP"; then
6121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6122$as_echo "$STRIP" >&6; }
6123else
6124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125$as_echo "no" >&6; }
6126fi
6127
6128
6129fi
6130if test -z "$ac_cv_prog_STRIP"; then
6131  ac_ct_STRIP=$STRIP
6132  # Extract the first word of "strip", so it can be a program name with args.
6133set dummy strip; ac_word=$2
6134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6135$as_echo_n "checking for $ac_word... " >&6; }
6136if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6137  $as_echo_n "(cached) " >&6
6138else
6139  if test -n "$ac_ct_STRIP"; then
6140  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6141else
6142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143for as_dir in $PATH
6144do
6145  IFS=$as_save_IFS
6146  test -z "$as_dir" && as_dir=.
6147    for ac_exec_ext in '' $ac_executable_extensions; do
6148  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6149    ac_cv_prog_ac_ct_STRIP="strip"
6150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6151    break 2
6152  fi
6153done
6154  done
6155IFS=$as_save_IFS
6156
6157fi
6158fi
6159ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6160if test -n "$ac_ct_STRIP"; then
6161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6162$as_echo "$ac_ct_STRIP" >&6; }
6163else
6164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6165$as_echo "no" >&6; }
6166fi
6167
6168  if test "x$ac_ct_STRIP" = x; then
6169    STRIP=":"
6170  else
6171    case $cross_compiling:$ac_tool_warned in
6172yes:)
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6175ac_tool_warned=yes ;;
6176esac
6177    STRIP=$ac_ct_STRIP
6178  fi
6179else
6180  STRIP="$ac_cv_prog_STRIP"
6181fi
6182
6183test -z "$STRIP" && STRIP=:
6184
6185
6186
6187
6188
6189
6190if test -n "$ac_tool_prefix"; then
6191  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6192set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194$as_echo_n "checking for $ac_word... " >&6; }
6195if ${ac_cv_prog_RANLIB+:} false; then :
6196  $as_echo_n "(cached) " >&6
6197else
6198  if test -n "$RANLIB"; then
6199  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6200else
6201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202for as_dir in $PATH
6203do
6204  IFS=$as_save_IFS
6205  test -z "$as_dir" && as_dir=.
6206    for ac_exec_ext in '' $ac_executable_extensions; do
6207  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6209    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6210    break 2
6211  fi
6212done
6213  done
6214IFS=$as_save_IFS
6215
6216fi
6217fi
6218RANLIB=$ac_cv_prog_RANLIB
6219if test -n "$RANLIB"; then
6220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6221$as_echo "$RANLIB" >&6; }
6222else
6223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224$as_echo "no" >&6; }
6225fi
6226
6227
6228fi
6229if test -z "$ac_cv_prog_RANLIB"; then
6230  ac_ct_RANLIB=$RANLIB
6231  # Extract the first word of "ranlib", so it can be a program name with args.
6232set dummy ranlib; ac_word=$2
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234$as_echo_n "checking for $ac_word... " >&6; }
6235if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6236  $as_echo_n "(cached) " >&6
6237else
6238  if test -n "$ac_ct_RANLIB"; then
6239  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6240else
6241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242for as_dir in $PATH
6243do
6244  IFS=$as_save_IFS
6245  test -z "$as_dir" && as_dir=.
6246    for ac_exec_ext in '' $ac_executable_extensions; do
6247  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6248    ac_cv_prog_ac_ct_RANLIB="ranlib"
6249    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6250    break 2
6251  fi
6252done
6253  done
6254IFS=$as_save_IFS
6255
6256fi
6257fi
6258ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6259if test -n "$ac_ct_RANLIB"; then
6260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6261$as_echo "$ac_ct_RANLIB" >&6; }
6262else
6263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264$as_echo "no" >&6; }
6265fi
6266
6267  if test "x$ac_ct_RANLIB" = x; then
6268    RANLIB=":"
6269  else
6270    case $cross_compiling:$ac_tool_warned in
6271yes:)
6272{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6273$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6274ac_tool_warned=yes ;;
6275esac
6276    RANLIB=$ac_ct_RANLIB
6277  fi
6278else
6279  RANLIB="$ac_cv_prog_RANLIB"
6280fi
6281
6282test -z "$RANLIB" && RANLIB=:
6283
6284
6285
6286
6287
6288
6289# Determine commands to create old-style static archives.
6290old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6291old_postinstall_cmds='chmod 644 $oldlib'
6292old_postuninstall_cmds=
6293
6294if test -n "$RANLIB"; then
6295  case $host_os in
6296  openbsd*)
6297    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6298    ;;
6299  *)
6300    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6301    ;;
6302  esac
6303  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6304fi
6305
6306case $host_os in
6307  darwin*)
6308    lock_old_archive_extraction=yes ;;
6309  *)
6310    lock_old_archive_extraction=no ;;
6311esac
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351# If no C compiler was specified, use CC.
6352LTCC=${LTCC-"$CC"}
6353
6354# If no C compiler flags were specified, use CFLAGS.
6355LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6356
6357# Allow CC to be a program name with arguments.
6358compiler=$CC
6359
6360
6361# Check for command to grab the raw symbol name followed by C symbol from nm.
6362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6363$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6364if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6365  $as_echo_n "(cached) " >&6
6366else
6367
6368# These are sane defaults that work on at least a few old systems.
6369# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6370
6371# Character class describing NM global symbol codes.
6372symcode='[BCDEGRST]'
6373
6374# Regexp to match symbols that can be accessed directly from C.
6375sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6376
6377# Define system-specific variables.
6378case $host_os in
6379aix*)
6380  symcode='[BCDT]'
6381  ;;
6382cygwin* | mingw* | pw32* | cegcc*)
6383  symcode='[ABCDGISTW]'
6384  ;;
6385hpux*)
6386  if test "$host_cpu" = ia64; then
6387    symcode='[ABCDEGRST]'
6388  fi
6389  ;;
6390irix* | nonstopux*)
6391  symcode='[BCDEGRST]'
6392  ;;
6393osf*)
6394  symcode='[BCDEGQRST]'
6395  ;;
6396solaris*)
6397  symcode='[BDRT]'
6398  ;;
6399sco3.2v5*)
6400  symcode='[DT]'
6401  ;;
6402sysv4.2uw2*)
6403  symcode='[DT]'
6404  ;;
6405sysv5* | sco5v6* | unixware* | OpenUNIX*)
6406  symcode='[ABDT]'
6407  ;;
6408sysv4)
6409  symcode='[DFNSTU]'
6410  ;;
6411esac
6412
6413# If we're using GNU nm, then use its standard symbol codes.
6414case `$NM -V 2>&1` in
6415*GNU* | *'with BFD'*)
6416  symcode='[ABCDGIRSTW]' ;;
6417esac
6418
6419# Transform an extracted symbol line into a proper C declaration.
6420# Some systems (esp. on ia64) link data and code symbols differently,
6421# so use this general approach.
6422lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6423
6424# Transform an extracted symbol line into symbol name and symbol address
6425lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6426lt_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'"
6427
6428# Handle CRLF in mingw tool chain
6429opt_cr=
6430case $build_os in
6431mingw*)
6432  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6433  ;;
6434esac
6435
6436# Try without a prefix underscore, then with it.
6437for ac_symprfx in "" "_"; do
6438
6439  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6440  symxfrm="\\1 $ac_symprfx\\2 \\2"
6441
6442  # Write the raw and C identifiers.
6443  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6444    # Fake it for dumpbin and say T for any non-static function
6445    # and D for any global variable.
6446    # Also find C++ and __fastcall symbols from MSVC++,
6447    # which start with @ or ?.
6448    lt_cv_sys_global_symbol_pipe="$AWK '"\
6449"     {last_section=section; section=\$ 3};"\
6450"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6451"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6452"     \$ 0!~/External *\|/{next};"\
6453"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6454"     {if(hide[section]) next};"\
6455"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6456"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6457"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6458"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6459"     ' prfx=^$ac_symprfx"
6460  else
6461    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6462  fi
6463  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6464
6465  # Check to see that the pipe works correctly.
6466  pipe_works=no
6467
6468  rm -f conftest*
6469  cat > conftest.$ac_ext <<_LT_EOF
6470#ifdef __cplusplus
6471extern "C" {
6472#endif
6473char nm_test_var;
6474void nm_test_func(void);
6475void nm_test_func(void){}
6476#ifdef __cplusplus
6477}
6478#endif
6479int main(){nm_test_var='a';nm_test_func();return(0);}
6480_LT_EOF
6481
6482  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6483  (eval $ac_compile) 2>&5
6484  ac_status=$?
6485  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6486  test $ac_status = 0; }; then
6487    # Now try to grab the symbols.
6488    nlist=conftest.nm
6489    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6490  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6491  ac_status=$?
6492  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6493  test $ac_status = 0; } && test -s "$nlist"; then
6494      # Try sorting and uniquifying the output.
6495      if sort "$nlist" | uniq > "$nlist"T; then
6496	mv -f "$nlist"T "$nlist"
6497      else
6498	rm -f "$nlist"T
6499      fi
6500
6501      # Make sure that we snagged all the symbols we need.
6502      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6503	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6504	  cat <<_LT_EOF > conftest.$ac_ext
6505/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6506#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6507/* DATA imports from DLLs on WIN32 con't be const, because runtime
6508   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6509# define LT_DLSYM_CONST
6510#elif defined(__osf__)
6511/* This system does not cope well with relocations in const data.  */
6512# define LT_DLSYM_CONST
6513#else
6514# define LT_DLSYM_CONST const
6515#endif
6516
6517#ifdef __cplusplus
6518extern "C" {
6519#endif
6520
6521_LT_EOF
6522	  # Now generate the symbol file.
6523	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6524
6525	  cat <<_LT_EOF >> conftest.$ac_ext
6526
6527/* The mapping between symbol names and symbols.  */
6528LT_DLSYM_CONST struct {
6529  const char *name;
6530  void       *address;
6531}
6532lt__PROGRAM__LTX_preloaded_symbols[] =
6533{
6534  { "@PROGRAM@", (void *) 0 },
6535_LT_EOF
6536	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6537	  cat <<\_LT_EOF >> conftest.$ac_ext
6538  {0, (void *) 0}
6539};
6540
6541/* This works around a problem in FreeBSD linker */
6542#ifdef FREEBSD_WORKAROUND
6543static const void *lt_preloaded_setup() {
6544  return lt__PROGRAM__LTX_preloaded_symbols;
6545}
6546#endif
6547
6548#ifdef __cplusplus
6549}
6550#endif
6551_LT_EOF
6552	  # Now try linking the two files.
6553	  mv conftest.$ac_objext conftstm.$ac_objext
6554	  lt_globsym_save_LIBS=$LIBS
6555	  lt_globsym_save_CFLAGS=$CFLAGS
6556	  LIBS="conftstm.$ac_objext"
6557	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6558	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6559  (eval $ac_link) 2>&5
6560  ac_status=$?
6561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6562  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6563	    pipe_works=yes
6564	  fi
6565	  LIBS=$lt_globsym_save_LIBS
6566	  CFLAGS=$lt_globsym_save_CFLAGS
6567	else
6568	  echo "cannot find nm_test_func in $nlist" >&5
6569	fi
6570      else
6571	echo "cannot find nm_test_var in $nlist" >&5
6572      fi
6573    else
6574      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6575    fi
6576  else
6577    echo "$progname: failed program was:" >&5
6578    cat conftest.$ac_ext >&5
6579  fi
6580  rm -rf conftest* conftst*
6581
6582  # Do not use the global_symbol_pipe unless it works.
6583  if test "$pipe_works" = yes; then
6584    break
6585  else
6586    lt_cv_sys_global_symbol_pipe=
6587  fi
6588done
6589
6590fi
6591
6592if test -z "$lt_cv_sys_global_symbol_pipe"; then
6593  lt_cv_sys_global_symbol_to_cdecl=
6594fi
6595if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6597$as_echo "failed" >&6; }
6598else
6599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6600$as_echo "ok" >&6; }
6601fi
6602
6603# Response file support.
6604if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6605  nm_file_list_spec='@'
6606elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6607  nm_file_list_spec='@'
6608fi
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6637$as_echo_n "checking for sysroot... " >&6; }
6638
6639# Check whether --with-sysroot was given.
6640if test "${with_sysroot+set}" = set; then :
6641  withval=$with_sysroot;
6642else
6643  with_sysroot=no
6644fi
6645
6646
6647lt_sysroot=
6648case ${with_sysroot} in #(
6649 yes)
6650   if test "$GCC" = yes; then
6651     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6652   fi
6653   ;; #(
6654 /*)
6655   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6656   ;; #(
6657 no|'')
6658   ;; #(
6659 *)
6660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6661$as_echo "${with_sysroot}" >&6; }
6662   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6663   ;;
6664esac
6665
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6667$as_echo "${lt_sysroot:-no}" >&6; }
6668
6669
6670
6671
6672
6673# Check whether --enable-libtool-lock was given.
6674if test "${enable_libtool_lock+set}" = set; then :
6675  enableval=$enable_libtool_lock;
6676fi
6677
6678test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6679
6680# Some flags need to be propagated to the compiler or linker for good
6681# libtool support.
6682case $host in
6683ia64-*-hpux*)
6684  # Find out which ABI we are using.
6685  echo 'int i;' > conftest.$ac_ext
6686  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6687  (eval $ac_compile) 2>&5
6688  ac_status=$?
6689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6690  test $ac_status = 0; }; then
6691    case `/usr/bin/file conftest.$ac_objext` in
6692      *ELF-32*)
6693	HPUX_IA64_MODE="32"
6694	;;
6695      *ELF-64*)
6696	HPUX_IA64_MODE="64"
6697	;;
6698    esac
6699  fi
6700  rm -rf conftest*
6701  ;;
6702*-*-irix6*)
6703  # Find out which ABI we are using.
6704  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6705  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6706  (eval $ac_compile) 2>&5
6707  ac_status=$?
6708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6709  test $ac_status = 0; }; then
6710    if test "$lt_cv_prog_gnu_ld" = yes; then
6711      case `/usr/bin/file conftest.$ac_objext` in
6712	*32-bit*)
6713	  LD="${LD-ld} -melf32bsmip"
6714	  ;;
6715	*N32*)
6716	  LD="${LD-ld} -melf32bmipn32"
6717	  ;;
6718	*64-bit*)
6719	  LD="${LD-ld} -melf64bmip"
6720	;;
6721      esac
6722    else
6723      case `/usr/bin/file conftest.$ac_objext` in
6724	*32-bit*)
6725	  LD="${LD-ld} -32"
6726	  ;;
6727	*N32*)
6728	  LD="${LD-ld} -n32"
6729	  ;;
6730	*64-bit*)
6731	  LD="${LD-ld} -64"
6732	  ;;
6733      esac
6734    fi
6735  fi
6736  rm -rf conftest*
6737  ;;
6738
6739x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6740s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6741  # Find out which ABI we are using.
6742  echo 'int i;' > conftest.$ac_ext
6743  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6744  (eval $ac_compile) 2>&5
6745  ac_status=$?
6746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6747  test $ac_status = 0; }; then
6748    case `/usr/bin/file conftest.o` in
6749      *32-bit*)
6750	case $host in
6751	  x86_64-*kfreebsd*-gnu)
6752	    LD="${LD-ld} -m elf_i386_fbsd"
6753	    ;;
6754	  x86_64-*linux*)
6755	    LD="${LD-ld} -m elf_i386"
6756	    ;;
6757	  ppc64-*linux*|powerpc64-*linux*)
6758	    LD="${LD-ld} -m elf32ppclinux"
6759	    ;;
6760	  s390x-*linux*)
6761	    LD="${LD-ld} -m elf_s390"
6762	    ;;
6763	  sparc64-*linux*)
6764	    LD="${LD-ld} -m elf32_sparc"
6765	    ;;
6766	esac
6767	;;
6768      *64-bit*)
6769	case $host in
6770	  x86_64-*kfreebsd*-gnu)
6771	    LD="${LD-ld} -m elf_x86_64_fbsd"
6772	    ;;
6773	  x86_64-*linux*)
6774	    LD="${LD-ld} -m elf_x86_64"
6775	    ;;
6776	  ppc*-*linux*|powerpc*-*linux*)
6777	    LD="${LD-ld} -m elf64ppc"
6778	    ;;
6779	  s390*-*linux*|s390*-*tpf*)
6780	    LD="${LD-ld} -m elf64_s390"
6781	    ;;
6782	  sparc*-*linux*)
6783	    LD="${LD-ld} -m elf64_sparc"
6784	    ;;
6785	esac
6786	;;
6787    esac
6788  fi
6789  rm -rf conftest*
6790  ;;
6791
6792*-*-sco3.2v5*)
6793  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6794  SAVE_CFLAGS="$CFLAGS"
6795  CFLAGS="$CFLAGS -belf"
6796  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6797$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6798if ${lt_cv_cc_needs_belf+:} false; then :
6799  $as_echo_n "(cached) " >&6
6800else
6801  ac_ext=c
6802ac_cpp='$CPP $CPPFLAGS'
6803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6805ac_compiler_gnu=$ac_cv_c_compiler_gnu
6806
6807     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808/* end confdefs.h.  */
6809
6810int
6811main ()
6812{
6813
6814  ;
6815  return 0;
6816}
6817_ACEOF
6818if ac_fn_c_try_link "$LINENO"; then :
6819  lt_cv_cc_needs_belf=yes
6820else
6821  lt_cv_cc_needs_belf=no
6822fi
6823rm -f core conftest.err conftest.$ac_objext \
6824    conftest$ac_exeext conftest.$ac_ext
6825     ac_ext=c
6826ac_cpp='$CPP $CPPFLAGS'
6827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6829ac_compiler_gnu=$ac_cv_c_compiler_gnu
6830
6831fi
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6833$as_echo "$lt_cv_cc_needs_belf" >&6; }
6834  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6835    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6836    CFLAGS="$SAVE_CFLAGS"
6837  fi
6838  ;;
6839*-*solaris*)
6840  # Find out which ABI we are using.
6841  echo 'int i;' > conftest.$ac_ext
6842  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6843  (eval $ac_compile) 2>&5
6844  ac_status=$?
6845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6846  test $ac_status = 0; }; then
6847    case `/usr/bin/file conftest.o` in
6848    *64-bit*)
6849      case $lt_cv_prog_gnu_ld in
6850      yes*)
6851        case $host in
6852        i?86-*-solaris*)
6853          LD="${LD-ld} -m elf_x86_64"
6854          ;;
6855        sparc*-*-solaris*)
6856          LD="${LD-ld} -m elf64_sparc"
6857          ;;
6858        esac
6859        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6860        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6861          LD="${LD-ld}_sol2"
6862        fi
6863        ;;
6864      *)
6865	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6866	  LD="${LD-ld} -64"
6867	fi
6868	;;
6869      esac
6870      ;;
6871    esac
6872  fi
6873  rm -rf conftest*
6874  ;;
6875esac
6876
6877need_locks="$enable_libtool_lock"
6878
6879if test -n "$ac_tool_prefix"; then
6880  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6881set dummy ${ac_tool_prefix}mt; ac_word=$2
6882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6883$as_echo_n "checking for $ac_word... " >&6; }
6884if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6885  $as_echo_n "(cached) " >&6
6886else
6887  if test -n "$MANIFEST_TOOL"; then
6888  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6889else
6890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891for as_dir in $PATH
6892do
6893  IFS=$as_save_IFS
6894  test -z "$as_dir" && as_dir=.
6895    for ac_exec_ext in '' $ac_executable_extensions; do
6896  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6897    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6898    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6899    break 2
6900  fi
6901done
6902  done
6903IFS=$as_save_IFS
6904
6905fi
6906fi
6907MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6908if test -n "$MANIFEST_TOOL"; then
6909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6910$as_echo "$MANIFEST_TOOL" >&6; }
6911else
6912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913$as_echo "no" >&6; }
6914fi
6915
6916
6917fi
6918if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6919  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6920  # Extract the first word of "mt", so it can be a program name with args.
6921set dummy mt; ac_word=$2
6922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6923$as_echo_n "checking for $ac_word... " >&6; }
6924if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6925  $as_echo_n "(cached) " >&6
6926else
6927  if test -n "$ac_ct_MANIFEST_TOOL"; then
6928  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6929else
6930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931for as_dir in $PATH
6932do
6933  IFS=$as_save_IFS
6934  test -z "$as_dir" && as_dir=.
6935    for ac_exec_ext in '' $ac_executable_extensions; do
6936  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6937    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6939    break 2
6940  fi
6941done
6942  done
6943IFS=$as_save_IFS
6944
6945fi
6946fi
6947ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6948if test -n "$ac_ct_MANIFEST_TOOL"; then
6949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6950$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6951else
6952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6953$as_echo "no" >&6; }
6954fi
6955
6956  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6957    MANIFEST_TOOL=":"
6958  else
6959    case $cross_compiling:$ac_tool_warned in
6960yes:)
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6963ac_tool_warned=yes ;;
6964esac
6965    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6966  fi
6967else
6968  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6969fi
6970
6971test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6973$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6974if ${lt_cv_path_mainfest_tool+:} false; then :
6975  $as_echo_n "(cached) " >&6
6976else
6977  lt_cv_path_mainfest_tool=no
6978  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6979  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6980  cat conftest.err >&5
6981  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6982    lt_cv_path_mainfest_tool=yes
6983  fi
6984  rm -f conftest*
6985fi
6986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6987$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6988if test "x$lt_cv_path_mainfest_tool" != xyes; then
6989  MANIFEST_TOOL=:
6990fi
6991
6992
6993
6994
6995
6996
6997  case $host_os in
6998    rhapsody* | darwin*)
6999    if test -n "$ac_tool_prefix"; then
7000  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7001set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003$as_echo_n "checking for $ac_word... " >&6; }
7004if ${ac_cv_prog_DSYMUTIL+:} false; then :
7005  $as_echo_n "(cached) " >&6
7006else
7007  if test -n "$DSYMUTIL"; then
7008  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7009else
7010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011for as_dir in $PATH
7012do
7013  IFS=$as_save_IFS
7014  test -z "$as_dir" && as_dir=.
7015    for ac_exec_ext in '' $ac_executable_extensions; do
7016  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7017    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019    break 2
7020  fi
7021done
7022  done
7023IFS=$as_save_IFS
7024
7025fi
7026fi
7027DSYMUTIL=$ac_cv_prog_DSYMUTIL
7028if test -n "$DSYMUTIL"; then
7029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7030$as_echo "$DSYMUTIL" >&6; }
7031else
7032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033$as_echo "no" >&6; }
7034fi
7035
7036
7037fi
7038if test -z "$ac_cv_prog_DSYMUTIL"; then
7039  ac_ct_DSYMUTIL=$DSYMUTIL
7040  # Extract the first word of "dsymutil", so it can be a program name with args.
7041set dummy dsymutil; ac_word=$2
7042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7043$as_echo_n "checking for $ac_word... " >&6; }
7044if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7045  $as_echo_n "(cached) " >&6
7046else
7047  if test -n "$ac_ct_DSYMUTIL"; then
7048  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7049else
7050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051for as_dir in $PATH
7052do
7053  IFS=$as_save_IFS
7054  test -z "$as_dir" && as_dir=.
7055    for ac_exec_ext in '' $ac_executable_extensions; do
7056  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7057    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7058    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7059    break 2
7060  fi
7061done
7062  done
7063IFS=$as_save_IFS
7064
7065fi
7066fi
7067ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7068if test -n "$ac_ct_DSYMUTIL"; then
7069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7070$as_echo "$ac_ct_DSYMUTIL" >&6; }
7071else
7072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073$as_echo "no" >&6; }
7074fi
7075
7076  if test "x$ac_ct_DSYMUTIL" = x; then
7077    DSYMUTIL=":"
7078  else
7079    case $cross_compiling:$ac_tool_warned in
7080yes:)
7081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7083ac_tool_warned=yes ;;
7084esac
7085    DSYMUTIL=$ac_ct_DSYMUTIL
7086  fi
7087else
7088  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7089fi
7090
7091    if test -n "$ac_tool_prefix"; then
7092  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7093set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095$as_echo_n "checking for $ac_word... " >&6; }
7096if ${ac_cv_prog_NMEDIT+:} false; then :
7097  $as_echo_n "(cached) " >&6
7098else
7099  if test -n "$NMEDIT"; then
7100  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7101else
7102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103for as_dir in $PATH
7104do
7105  IFS=$as_save_IFS
7106  test -z "$as_dir" && as_dir=.
7107    for ac_exec_ext in '' $ac_executable_extensions; do
7108  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7109    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7110    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7111    break 2
7112  fi
7113done
7114  done
7115IFS=$as_save_IFS
7116
7117fi
7118fi
7119NMEDIT=$ac_cv_prog_NMEDIT
7120if test -n "$NMEDIT"; then
7121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7122$as_echo "$NMEDIT" >&6; }
7123else
7124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125$as_echo "no" >&6; }
7126fi
7127
7128
7129fi
7130if test -z "$ac_cv_prog_NMEDIT"; then
7131  ac_ct_NMEDIT=$NMEDIT
7132  # Extract the first word of "nmedit", so it can be a program name with args.
7133set dummy nmedit; ac_word=$2
7134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135$as_echo_n "checking for $ac_word... " >&6; }
7136if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7137  $as_echo_n "(cached) " >&6
7138else
7139  if test -n "$ac_ct_NMEDIT"; then
7140  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7141else
7142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143for as_dir in $PATH
7144do
7145  IFS=$as_save_IFS
7146  test -z "$as_dir" && as_dir=.
7147    for ac_exec_ext in '' $ac_executable_extensions; do
7148  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7149    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7151    break 2
7152  fi
7153done
7154  done
7155IFS=$as_save_IFS
7156
7157fi
7158fi
7159ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7160if test -n "$ac_ct_NMEDIT"; then
7161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7162$as_echo "$ac_ct_NMEDIT" >&6; }
7163else
7164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7165$as_echo "no" >&6; }
7166fi
7167
7168  if test "x$ac_ct_NMEDIT" = x; then
7169    NMEDIT=":"
7170  else
7171    case $cross_compiling:$ac_tool_warned in
7172yes:)
7173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7175ac_tool_warned=yes ;;
7176esac
7177    NMEDIT=$ac_ct_NMEDIT
7178  fi
7179else
7180  NMEDIT="$ac_cv_prog_NMEDIT"
7181fi
7182
7183    if test -n "$ac_tool_prefix"; then
7184  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7185set dummy ${ac_tool_prefix}lipo; ac_word=$2
7186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187$as_echo_n "checking for $ac_word... " >&6; }
7188if ${ac_cv_prog_LIPO+:} false; then :
7189  $as_echo_n "(cached) " >&6
7190else
7191  if test -n "$LIPO"; then
7192  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7193else
7194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195for as_dir in $PATH
7196do
7197  IFS=$as_save_IFS
7198  test -z "$as_dir" && as_dir=.
7199    for ac_exec_ext in '' $ac_executable_extensions; do
7200  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7201    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7203    break 2
7204  fi
7205done
7206  done
7207IFS=$as_save_IFS
7208
7209fi
7210fi
7211LIPO=$ac_cv_prog_LIPO
7212if test -n "$LIPO"; then
7213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7214$as_echo "$LIPO" >&6; }
7215else
7216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217$as_echo "no" >&6; }
7218fi
7219
7220
7221fi
7222if test -z "$ac_cv_prog_LIPO"; then
7223  ac_ct_LIPO=$LIPO
7224  # Extract the first word of "lipo", so it can be a program name with args.
7225set dummy lipo; ac_word=$2
7226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7227$as_echo_n "checking for $ac_word... " >&6; }
7228if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7229  $as_echo_n "(cached) " >&6
7230else
7231  if test -n "$ac_ct_LIPO"; then
7232  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7233else
7234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235for as_dir in $PATH
7236do
7237  IFS=$as_save_IFS
7238  test -z "$as_dir" && as_dir=.
7239    for ac_exec_ext in '' $ac_executable_extensions; do
7240  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7241    ac_cv_prog_ac_ct_LIPO="lipo"
7242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7243    break 2
7244  fi
7245done
7246  done
7247IFS=$as_save_IFS
7248
7249fi
7250fi
7251ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7252if test -n "$ac_ct_LIPO"; then
7253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7254$as_echo "$ac_ct_LIPO" >&6; }
7255else
7256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7257$as_echo "no" >&6; }
7258fi
7259
7260  if test "x$ac_ct_LIPO" = x; then
7261    LIPO=":"
7262  else
7263    case $cross_compiling:$ac_tool_warned in
7264yes:)
7265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7267ac_tool_warned=yes ;;
7268esac
7269    LIPO=$ac_ct_LIPO
7270  fi
7271else
7272  LIPO="$ac_cv_prog_LIPO"
7273fi
7274
7275    if test -n "$ac_tool_prefix"; then
7276  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7277set dummy ${ac_tool_prefix}otool; ac_word=$2
7278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7279$as_echo_n "checking for $ac_word... " >&6; }
7280if ${ac_cv_prog_OTOOL+:} false; then :
7281  $as_echo_n "(cached) " >&6
7282else
7283  if test -n "$OTOOL"; then
7284  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7285else
7286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287for as_dir in $PATH
7288do
7289  IFS=$as_save_IFS
7290  test -z "$as_dir" && as_dir=.
7291    for ac_exec_ext in '' $ac_executable_extensions; do
7292  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7293    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7295    break 2
7296  fi
7297done
7298  done
7299IFS=$as_save_IFS
7300
7301fi
7302fi
7303OTOOL=$ac_cv_prog_OTOOL
7304if test -n "$OTOOL"; then
7305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7306$as_echo "$OTOOL" >&6; }
7307else
7308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309$as_echo "no" >&6; }
7310fi
7311
7312
7313fi
7314if test -z "$ac_cv_prog_OTOOL"; then
7315  ac_ct_OTOOL=$OTOOL
7316  # Extract the first word of "otool", so it can be a program name with args.
7317set dummy otool; ac_word=$2
7318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7319$as_echo_n "checking for $ac_word... " >&6; }
7320if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7321  $as_echo_n "(cached) " >&6
7322else
7323  if test -n "$ac_ct_OTOOL"; then
7324  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7325else
7326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7327for as_dir in $PATH
7328do
7329  IFS=$as_save_IFS
7330  test -z "$as_dir" && as_dir=.
7331    for ac_exec_ext in '' $ac_executable_extensions; do
7332  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7333    ac_cv_prog_ac_ct_OTOOL="otool"
7334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7335    break 2
7336  fi
7337done
7338  done
7339IFS=$as_save_IFS
7340
7341fi
7342fi
7343ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7344if test -n "$ac_ct_OTOOL"; then
7345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7346$as_echo "$ac_ct_OTOOL" >&6; }
7347else
7348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349$as_echo "no" >&6; }
7350fi
7351
7352  if test "x$ac_ct_OTOOL" = x; then
7353    OTOOL=":"
7354  else
7355    case $cross_compiling:$ac_tool_warned in
7356yes:)
7357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7359ac_tool_warned=yes ;;
7360esac
7361    OTOOL=$ac_ct_OTOOL
7362  fi
7363else
7364  OTOOL="$ac_cv_prog_OTOOL"
7365fi
7366
7367    if test -n "$ac_tool_prefix"; then
7368  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7369set dummy ${ac_tool_prefix}otool64; ac_word=$2
7370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371$as_echo_n "checking for $ac_word... " >&6; }
7372if ${ac_cv_prog_OTOOL64+:} false; then :
7373  $as_echo_n "(cached) " >&6
7374else
7375  if test -n "$OTOOL64"; then
7376  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7377else
7378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379for as_dir in $PATH
7380do
7381  IFS=$as_save_IFS
7382  test -z "$as_dir" && as_dir=.
7383    for ac_exec_ext in '' $ac_executable_extensions; do
7384  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7385    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7386    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387    break 2
7388  fi
7389done
7390  done
7391IFS=$as_save_IFS
7392
7393fi
7394fi
7395OTOOL64=$ac_cv_prog_OTOOL64
7396if test -n "$OTOOL64"; then
7397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7398$as_echo "$OTOOL64" >&6; }
7399else
7400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401$as_echo "no" >&6; }
7402fi
7403
7404
7405fi
7406if test -z "$ac_cv_prog_OTOOL64"; then
7407  ac_ct_OTOOL64=$OTOOL64
7408  # Extract the first word of "otool64", so it can be a program name with args.
7409set dummy otool64; ac_word=$2
7410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7411$as_echo_n "checking for $ac_word... " >&6; }
7412if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7413  $as_echo_n "(cached) " >&6
7414else
7415  if test -n "$ac_ct_OTOOL64"; then
7416  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7417else
7418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7419for as_dir in $PATH
7420do
7421  IFS=$as_save_IFS
7422  test -z "$as_dir" && as_dir=.
7423    for ac_exec_ext in '' $ac_executable_extensions; do
7424  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7425    ac_cv_prog_ac_ct_OTOOL64="otool64"
7426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7427    break 2
7428  fi
7429done
7430  done
7431IFS=$as_save_IFS
7432
7433fi
7434fi
7435ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7436if test -n "$ac_ct_OTOOL64"; then
7437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7438$as_echo "$ac_ct_OTOOL64" >&6; }
7439else
7440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441$as_echo "no" >&6; }
7442fi
7443
7444  if test "x$ac_ct_OTOOL64" = x; then
7445    OTOOL64=":"
7446  else
7447    case $cross_compiling:$ac_tool_warned in
7448yes:)
7449{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7451ac_tool_warned=yes ;;
7452esac
7453    OTOOL64=$ac_ct_OTOOL64
7454  fi
7455else
7456  OTOOL64="$ac_cv_prog_OTOOL64"
7457fi
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7486$as_echo_n "checking for -single_module linker flag... " >&6; }
7487if ${lt_cv_apple_cc_single_mod+:} false; then :
7488  $as_echo_n "(cached) " >&6
7489else
7490  lt_cv_apple_cc_single_mod=no
7491      if test -z "${LT_MULTI_MODULE}"; then
7492	# By default we will add the -single_module flag. You can override
7493	# by either setting the environment variable LT_MULTI_MODULE
7494	# non-empty at configure time, or by adding -multi_module to the
7495	# link flags.
7496	rm -rf libconftest.dylib*
7497	echo "int foo(void){return 1;}" > conftest.c
7498	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7499-dynamiclib -Wl,-single_module conftest.c" >&5
7500	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7501	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7502        _lt_result=$?
7503	# If there is a non-empty error log, and "single_module"
7504	# appears in it, assume the flag caused a linker warning
7505        if test -s conftest.err && $GREP single_module conftest.err; then
7506	  cat conftest.err >&5
7507	# Otherwise, if the output was created with a 0 exit code from
7508	# the compiler, it worked.
7509	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7510	  lt_cv_apple_cc_single_mod=yes
7511	else
7512	  cat conftest.err >&5
7513	fi
7514	rm -rf libconftest.dylib*
7515	rm -f conftest.*
7516      fi
7517fi
7518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7519$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7520
7521    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7522$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7523if ${lt_cv_ld_exported_symbols_list+:} false; then :
7524  $as_echo_n "(cached) " >&6
7525else
7526  lt_cv_ld_exported_symbols_list=no
7527      save_LDFLAGS=$LDFLAGS
7528      echo "_main" > conftest.sym
7529      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7530      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7531/* end confdefs.h.  */
7532
7533int
7534main ()
7535{
7536
7537  ;
7538  return 0;
7539}
7540_ACEOF
7541if ac_fn_c_try_link "$LINENO"; then :
7542  lt_cv_ld_exported_symbols_list=yes
7543else
7544  lt_cv_ld_exported_symbols_list=no
7545fi
7546rm -f core conftest.err conftest.$ac_objext \
7547    conftest$ac_exeext conftest.$ac_ext
7548	LDFLAGS="$save_LDFLAGS"
7549
7550fi
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7552$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7553
7554    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7555$as_echo_n "checking for -force_load linker flag... " >&6; }
7556if ${lt_cv_ld_force_load+:} false; then :
7557  $as_echo_n "(cached) " >&6
7558else
7559  lt_cv_ld_force_load=no
7560      cat > conftest.c << _LT_EOF
7561int forced_loaded() { return 2;}
7562_LT_EOF
7563      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7564      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7565      echo "$AR cru libconftest.a conftest.o" >&5
7566      $AR cru libconftest.a conftest.o 2>&5
7567      echo "$RANLIB libconftest.a" >&5
7568      $RANLIB libconftest.a 2>&5
7569      cat > conftest.c << _LT_EOF
7570int main() { return 0;}
7571_LT_EOF
7572      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7573      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7574      _lt_result=$?
7575      if test -s conftest.err && $GREP force_load conftest.err; then
7576	cat conftest.err >&5
7577      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7578	lt_cv_ld_force_load=yes
7579      else
7580	cat conftest.err >&5
7581      fi
7582        rm -f conftest.err libconftest.a conftest conftest.c
7583        rm -rf conftest.dSYM
7584
7585fi
7586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7587$as_echo "$lt_cv_ld_force_load" >&6; }
7588    case $host_os in
7589    rhapsody* | darwin1.[012])
7590      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7591    darwin1.*)
7592      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7593    darwin*) # darwin 5.x on
7594      # if running on 10.5 or later, the deployment target defaults
7595      # to the OS version, if on x86, and 10.4, the deployment
7596      # target defaults to 10.4. Don't you love it?
7597      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7598	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7599	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7600	10.[012]*)
7601	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7602	10.*)
7603	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7604      esac
7605    ;;
7606  esac
7607    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7608      _lt_dar_single_mod='$single_module'
7609    fi
7610    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7611      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7612    else
7613      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7614    fi
7615    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7616      _lt_dsymutil='~$DSYMUTIL $lib || :'
7617    else
7618      _lt_dsymutil=
7619    fi
7620    ;;
7621  esac
7622
7623for ac_header in dlfcn.h
7624do :
7625  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7626"
7627if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7628  cat >>confdefs.h <<_ACEOF
7629#define HAVE_DLFCN_H 1
7630_ACEOF
7631
7632fi
7633
7634done
7635
7636
7637
7638
7639
7640# Set options
7641
7642
7643
7644        enable_dlopen=no
7645
7646
7647  enable_win32_dll=no
7648
7649
7650            # Check whether --enable-shared was given.
7651if test "${enable_shared+set}" = set; then :
7652  enableval=$enable_shared; p=${PACKAGE-default}
7653    case $enableval in
7654    yes) enable_shared=yes ;;
7655    no) enable_shared=no ;;
7656    *)
7657      enable_shared=no
7658      # Look at the argument we got.  We use all the common list separators.
7659      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7660      for pkg in $enableval; do
7661	IFS="$lt_save_ifs"
7662	if test "X$pkg" = "X$p"; then
7663	  enable_shared=yes
7664	fi
7665      done
7666      IFS="$lt_save_ifs"
7667      ;;
7668    esac
7669else
7670  enable_shared=yes
7671fi
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681  # Check whether --enable-static was given.
7682if test "${enable_static+set}" = set; then :
7683  enableval=$enable_static; p=${PACKAGE-default}
7684    case $enableval in
7685    yes) enable_static=yes ;;
7686    no) enable_static=no ;;
7687    *)
7688     enable_static=no
7689      # Look at the argument we got.  We use all the common list separators.
7690      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7691      for pkg in $enableval; do
7692	IFS="$lt_save_ifs"
7693	if test "X$pkg" = "X$p"; then
7694	  enable_static=yes
7695	fi
7696      done
7697      IFS="$lt_save_ifs"
7698      ;;
7699    esac
7700else
7701  enable_static=yes
7702fi
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713# Check whether --with-pic was given.
7714if test "${with_pic+set}" = set; then :
7715  withval=$with_pic; lt_p=${PACKAGE-default}
7716    case $withval in
7717    yes|no) pic_mode=$withval ;;
7718    *)
7719      pic_mode=default
7720      # Look at the argument we got.  We use all the common list separators.
7721      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7722      for lt_pkg in $withval; do
7723	IFS="$lt_save_ifs"
7724	if test "X$lt_pkg" = "X$lt_p"; then
7725	  pic_mode=yes
7726	fi
7727      done
7728      IFS="$lt_save_ifs"
7729      ;;
7730    esac
7731else
7732  pic_mode=default
7733fi
7734
7735
7736test -z "$pic_mode" && pic_mode=default
7737
7738
7739
7740
7741
7742
7743
7744  # Check whether --enable-fast-install was given.
7745if test "${enable_fast_install+set}" = set; then :
7746  enableval=$enable_fast_install; p=${PACKAGE-default}
7747    case $enableval in
7748    yes) enable_fast_install=yes ;;
7749    no) enable_fast_install=no ;;
7750    *)
7751      enable_fast_install=no
7752      # Look at the argument we got.  We use all the common list separators.
7753      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7754      for pkg in $enableval; do
7755	IFS="$lt_save_ifs"
7756	if test "X$pkg" = "X$p"; then
7757	  enable_fast_install=yes
7758	fi
7759      done
7760      IFS="$lt_save_ifs"
7761      ;;
7762    esac
7763else
7764  enable_fast_install=yes
7765fi
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777# This can be used to rebuild libtool when needed
7778LIBTOOL_DEPS="$ltmain"
7779
7780# Always use our own libtool.
7781LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812test -z "$LN_S" && LN_S="ln -s"
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827if test -n "${ZSH_VERSION+set}" ; then
7828   setopt NO_GLOB_SUBST
7829fi
7830
7831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7832$as_echo_n "checking for objdir... " >&6; }
7833if ${lt_cv_objdir+:} false; then :
7834  $as_echo_n "(cached) " >&6
7835else
7836  rm -f .libs 2>/dev/null
7837mkdir .libs 2>/dev/null
7838if test -d .libs; then
7839  lt_cv_objdir=.libs
7840else
7841  # MS-DOS does not allow filenames that begin with a dot.
7842  lt_cv_objdir=_libs
7843fi
7844rmdir .libs 2>/dev/null
7845fi
7846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7847$as_echo "$lt_cv_objdir" >&6; }
7848objdir=$lt_cv_objdir
7849
7850
7851
7852
7853
7854cat >>confdefs.h <<_ACEOF
7855#define LT_OBJDIR "$lt_cv_objdir/"
7856_ACEOF
7857
7858
7859
7860
7861case $host_os in
7862aix3*)
7863  # AIX sometimes has problems with the GCC collect2 program.  For some
7864  # reason, if we set the COLLECT_NAMES environment variable, the problems
7865  # vanish in a puff of smoke.
7866  if test "X${COLLECT_NAMES+set}" != Xset; then
7867    COLLECT_NAMES=
7868    export COLLECT_NAMES
7869  fi
7870  ;;
7871esac
7872
7873# Global variables:
7874ofile=libtool
7875can_build_shared=yes
7876
7877# All known linkers require a `.a' archive for static linking (except MSVC,
7878# which needs '.lib').
7879libext=a
7880
7881with_gnu_ld="$lt_cv_prog_gnu_ld"
7882
7883old_CC="$CC"
7884old_CFLAGS="$CFLAGS"
7885
7886# Set sane defaults for various variables
7887test -z "$CC" && CC=cc
7888test -z "$LTCC" && LTCC=$CC
7889test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7890test -z "$LD" && LD=ld
7891test -z "$ac_objext" && ac_objext=o
7892
7893for cc_temp in $compiler""; do
7894  case $cc_temp in
7895    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7896    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7897    \-*) ;;
7898    *) break;;
7899  esac
7900done
7901cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7902
7903
7904# Only perform the check for file, if the check method requires it
7905test -z "$MAGIC_CMD" && MAGIC_CMD=file
7906case $deplibs_check_method in
7907file_magic*)
7908  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7909    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7910$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7911if ${lt_cv_path_MAGIC_CMD+:} false; then :
7912  $as_echo_n "(cached) " >&6
7913else
7914  case $MAGIC_CMD in
7915[\\/*] |  ?:[\\/]*)
7916  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7917  ;;
7918*)
7919  lt_save_MAGIC_CMD="$MAGIC_CMD"
7920  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7921  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7922  for ac_dir in $ac_dummy; do
7923    IFS="$lt_save_ifs"
7924    test -z "$ac_dir" && ac_dir=.
7925    if test -f $ac_dir/${ac_tool_prefix}file; then
7926      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7927      if test -n "$file_magic_test_file"; then
7928	case $deplibs_check_method in
7929	"file_magic "*)
7930	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7931	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7932	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7933	    $EGREP "$file_magic_regex" > /dev/null; then
7934	    :
7935	  else
7936	    cat <<_LT_EOF 1>&2
7937
7938*** Warning: the command libtool uses to detect shared libraries,
7939*** $file_magic_cmd, produces output that libtool cannot recognize.
7940*** The result is that libtool may fail to recognize shared libraries
7941*** as such.  This will affect the creation of libtool libraries that
7942*** depend on shared libraries, but programs linked with such libtool
7943*** libraries will work regardless of this problem.  Nevertheless, you
7944*** may want to report the problem to your system manager and/or to
7945*** bug-libtool@gnu.org
7946
7947_LT_EOF
7948	  fi ;;
7949	esac
7950      fi
7951      break
7952    fi
7953  done
7954  IFS="$lt_save_ifs"
7955  MAGIC_CMD="$lt_save_MAGIC_CMD"
7956  ;;
7957esac
7958fi
7959
7960MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7961if test -n "$MAGIC_CMD"; then
7962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7963$as_echo "$MAGIC_CMD" >&6; }
7964else
7965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7966$as_echo "no" >&6; }
7967fi
7968
7969
7970
7971
7972
7973if test -z "$lt_cv_path_MAGIC_CMD"; then
7974  if test -n "$ac_tool_prefix"; then
7975    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7976$as_echo_n "checking for file... " >&6; }
7977if ${lt_cv_path_MAGIC_CMD+:} false; then :
7978  $as_echo_n "(cached) " >&6
7979else
7980  case $MAGIC_CMD in
7981[\\/*] |  ?:[\\/]*)
7982  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7983  ;;
7984*)
7985  lt_save_MAGIC_CMD="$MAGIC_CMD"
7986  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7987  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7988  for ac_dir in $ac_dummy; do
7989    IFS="$lt_save_ifs"
7990    test -z "$ac_dir" && ac_dir=.
7991    if test -f $ac_dir/file; then
7992      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7993      if test -n "$file_magic_test_file"; then
7994	case $deplibs_check_method in
7995	"file_magic "*)
7996	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7997	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7998	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7999	    $EGREP "$file_magic_regex" > /dev/null; then
8000	    :
8001	  else
8002	    cat <<_LT_EOF 1>&2
8003
8004*** Warning: the command libtool uses to detect shared libraries,
8005*** $file_magic_cmd, produces output that libtool cannot recognize.
8006*** The result is that libtool may fail to recognize shared libraries
8007*** as such.  This will affect the creation of libtool libraries that
8008*** depend on shared libraries, but programs linked with such libtool
8009*** libraries will work regardless of this problem.  Nevertheless, you
8010*** may want to report the problem to your system manager and/or to
8011*** bug-libtool@gnu.org
8012
8013_LT_EOF
8014	  fi ;;
8015	esac
8016      fi
8017      break
8018    fi
8019  done
8020  IFS="$lt_save_ifs"
8021  MAGIC_CMD="$lt_save_MAGIC_CMD"
8022  ;;
8023esac
8024fi
8025
8026MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8027if test -n "$MAGIC_CMD"; then
8028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8029$as_echo "$MAGIC_CMD" >&6; }
8030else
8031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8032$as_echo "no" >&6; }
8033fi
8034
8035
8036  else
8037    MAGIC_CMD=:
8038  fi
8039fi
8040
8041  fi
8042  ;;
8043esac
8044
8045# Use C for the default configuration in the libtool script
8046
8047lt_save_CC="$CC"
8048ac_ext=c
8049ac_cpp='$CPP $CPPFLAGS'
8050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8052ac_compiler_gnu=$ac_cv_c_compiler_gnu
8053
8054
8055# Source file extension for C test sources.
8056ac_ext=c
8057
8058# Object file extension for compiled C test sources.
8059objext=o
8060objext=$objext
8061
8062# Code to be used in simple compile tests
8063lt_simple_compile_test_code="int some_variable = 0;"
8064
8065# Code to be used in simple link tests
8066lt_simple_link_test_code='int main(){return(0);}'
8067
8068
8069
8070
8071
8072
8073
8074# If no C compiler was specified, use CC.
8075LTCC=${LTCC-"$CC"}
8076
8077# If no C compiler flags were specified, use CFLAGS.
8078LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8079
8080# Allow CC to be a program name with arguments.
8081compiler=$CC
8082
8083# Save the default compiler, since it gets overwritten when the other
8084# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8085compiler_DEFAULT=$CC
8086
8087# save warnings/boilerplate of simple test code
8088ac_outfile=conftest.$ac_objext
8089echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8090eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8091_lt_compiler_boilerplate=`cat conftest.err`
8092$RM conftest*
8093
8094ac_outfile=conftest.$ac_objext
8095echo "$lt_simple_link_test_code" >conftest.$ac_ext
8096eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8097_lt_linker_boilerplate=`cat conftest.err`
8098$RM -r conftest*
8099
8100
8101if test -n "$compiler"; then
8102
8103lt_prog_compiler_no_builtin_flag=
8104
8105if test "$GCC" = yes; then
8106  case $cc_basename in
8107  nvcc*)
8108    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8109  *)
8110    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8111  esac
8112
8113  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8114$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8115if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8116  $as_echo_n "(cached) " >&6
8117else
8118  lt_cv_prog_compiler_rtti_exceptions=no
8119   ac_outfile=conftest.$ac_objext
8120   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8121   lt_compiler_flag="-fno-rtti -fno-exceptions"
8122   # Insert the option either (1) after the last *FLAGS variable, or
8123   # (2) before a word containing "conftest.", or (3) at the end.
8124   # Note that $ac_compile itself does not contain backslashes and begins
8125   # with a dollar sign (not a hyphen), so the echo should work correctly.
8126   # The option is referenced via a variable to avoid confusing sed.
8127   lt_compile=`echo "$ac_compile" | $SED \
8128   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8129   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8130   -e 's:$: $lt_compiler_flag:'`
8131   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8132   (eval "$lt_compile" 2>conftest.err)
8133   ac_status=$?
8134   cat conftest.err >&5
8135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136   if (exit $ac_status) && test -s "$ac_outfile"; then
8137     # The compiler can only warn and ignore the option if not recognized
8138     # So say no if there are warnings other than the usual output.
8139     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8140     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8141     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8142       lt_cv_prog_compiler_rtti_exceptions=yes
8143     fi
8144   fi
8145   $RM conftest*
8146
8147fi
8148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8149$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8150
8151if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8152    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8153else
8154    :
8155fi
8156
8157fi
8158
8159
8160
8161
8162
8163
8164  lt_prog_compiler_wl=
8165lt_prog_compiler_pic=
8166lt_prog_compiler_static=
8167
8168
8169  if test "$GCC" = yes; then
8170    lt_prog_compiler_wl='-Wl,'
8171    lt_prog_compiler_static='-static'
8172
8173    case $host_os in
8174      aix*)
8175      # All AIX code is PIC.
8176      if test "$host_cpu" = ia64; then
8177	# AIX 5 now supports IA64 processor
8178	lt_prog_compiler_static='-Bstatic'
8179      fi
8180      ;;
8181
8182    amigaos*)
8183      case $host_cpu in
8184      powerpc)
8185            # see comment about AmigaOS4 .so support
8186            lt_prog_compiler_pic='-fPIC'
8187        ;;
8188      m68k)
8189            # FIXME: we need at least 68020 code to build shared libraries, but
8190            # adding the `-m68020' flag to GCC prevents building anything better,
8191            # like `-m68040'.
8192            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8193        ;;
8194      esac
8195      ;;
8196
8197    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8198      # PIC is the default for these OSes.
8199      ;;
8200
8201    mingw* | cygwin* | pw32* | os2* | cegcc*)
8202      # This hack is so that the source file can tell whether it is being
8203      # built for inclusion in a dll (and should export symbols for example).
8204      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8205      # (--disable-auto-import) libraries
8206      lt_prog_compiler_pic='-DDLL_EXPORT'
8207      ;;
8208
8209    darwin* | rhapsody*)
8210      # PIC is the default on this platform
8211      # Common symbols not allowed in MH_DYLIB files
8212      lt_prog_compiler_pic='-fno-common'
8213      ;;
8214
8215    haiku*)
8216      # PIC is the default for Haiku.
8217      # The "-static" flag exists, but is broken.
8218      lt_prog_compiler_static=
8219      ;;
8220
8221    hpux*)
8222      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8223      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8224      # sets the default TLS model and affects inlining.
8225      case $host_cpu in
8226      hppa*64*)
8227	# +Z the default
8228	;;
8229      *)
8230	lt_prog_compiler_pic='-fPIC'
8231	;;
8232      esac
8233      ;;
8234
8235    interix[3-9]*)
8236      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8237      # Instead, we relocate shared libraries at runtime.
8238      ;;
8239
8240    msdosdjgpp*)
8241      # Just because we use GCC doesn't mean we suddenly get shared libraries
8242      # on systems that don't support them.
8243      lt_prog_compiler_can_build_shared=no
8244      enable_shared=no
8245      ;;
8246
8247    *nto* | *qnx*)
8248      # QNX uses GNU C++, but need to define -shared option too, otherwise
8249      # it will coredump.
8250      lt_prog_compiler_pic='-fPIC -shared'
8251      ;;
8252
8253    sysv4*MP*)
8254      if test -d /usr/nec; then
8255	lt_prog_compiler_pic=-Kconform_pic
8256      fi
8257      ;;
8258
8259    *)
8260      lt_prog_compiler_pic='-fPIC'
8261      ;;
8262    esac
8263
8264    case $cc_basename in
8265    nvcc*) # Cuda Compiler Driver 2.2
8266      lt_prog_compiler_wl='-Xlinker '
8267      if test -n "$lt_prog_compiler_pic"; then
8268        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8269      fi
8270      ;;
8271    esac
8272  else
8273    # PORTME Check for flag to pass linker flags through the system compiler.
8274    case $host_os in
8275    aix*)
8276      lt_prog_compiler_wl='-Wl,'
8277      if test "$host_cpu" = ia64; then
8278	# AIX 5 now supports IA64 processor
8279	lt_prog_compiler_static='-Bstatic'
8280      else
8281	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8282      fi
8283      ;;
8284
8285    mingw* | cygwin* | pw32* | os2* | cegcc*)
8286      # This hack is so that the source file can tell whether it is being
8287      # built for inclusion in a dll (and should export symbols for example).
8288      lt_prog_compiler_pic='-DDLL_EXPORT'
8289      ;;
8290
8291    hpux9* | hpux10* | hpux11*)
8292      lt_prog_compiler_wl='-Wl,'
8293      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8294      # not for PA HP-UX.
8295      case $host_cpu in
8296      hppa*64*|ia64*)
8297	# +Z the default
8298	;;
8299      *)
8300	lt_prog_compiler_pic='+Z'
8301	;;
8302      esac
8303      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8304      lt_prog_compiler_static='${wl}-a ${wl}archive'
8305      ;;
8306
8307    irix5* | irix6* | nonstopux*)
8308      lt_prog_compiler_wl='-Wl,'
8309      # PIC (with -KPIC) is the default.
8310      lt_prog_compiler_static='-non_shared'
8311      ;;
8312
8313    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8314      case $cc_basename in
8315      # old Intel for x86_64 which still supported -KPIC.
8316      ecc*)
8317	lt_prog_compiler_wl='-Wl,'
8318	lt_prog_compiler_pic='-KPIC'
8319	lt_prog_compiler_static='-static'
8320        ;;
8321      # icc used to be incompatible with GCC.
8322      # ICC 10 doesn't accept -KPIC any more.
8323      icc* | ifort*)
8324	lt_prog_compiler_wl='-Wl,'
8325	lt_prog_compiler_pic='-fPIC'
8326	lt_prog_compiler_static='-static'
8327        ;;
8328      # Lahey Fortran 8.1.
8329      lf95*)
8330	lt_prog_compiler_wl='-Wl,'
8331	lt_prog_compiler_pic='--shared'
8332	lt_prog_compiler_static='--static'
8333	;;
8334      nagfor*)
8335	# NAG Fortran compiler
8336	lt_prog_compiler_wl='-Wl,-Wl,,'
8337	lt_prog_compiler_pic='-PIC'
8338	lt_prog_compiler_static='-Bstatic'
8339	;;
8340      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8341        # Portland Group compilers (*not* the Pentium gcc compiler,
8342	# which looks to be a dead project)
8343	lt_prog_compiler_wl='-Wl,'
8344	lt_prog_compiler_pic='-fpic'
8345	lt_prog_compiler_static='-Bstatic'
8346        ;;
8347      ccc*)
8348        lt_prog_compiler_wl='-Wl,'
8349        # All Alpha code is PIC.
8350        lt_prog_compiler_static='-non_shared'
8351        ;;
8352      xl* | bgxl* | bgf* | mpixl*)
8353	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8354	lt_prog_compiler_wl='-Wl,'
8355	lt_prog_compiler_pic='-qpic'
8356	lt_prog_compiler_static='-qstaticlink'
8357	;;
8358      *)
8359	case `$CC -V 2>&1 | sed 5q` in
8360	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8361	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8362	  lt_prog_compiler_pic='-KPIC'
8363	  lt_prog_compiler_static='-Bstatic'
8364	  lt_prog_compiler_wl=''
8365	  ;;
8366	*Sun\ F* | *Sun*Fortran*)
8367	  lt_prog_compiler_pic='-KPIC'
8368	  lt_prog_compiler_static='-Bstatic'
8369	  lt_prog_compiler_wl='-Qoption ld '
8370	  ;;
8371	*Sun\ C*)
8372	  # Sun C 5.9
8373	  lt_prog_compiler_pic='-KPIC'
8374	  lt_prog_compiler_static='-Bstatic'
8375	  lt_prog_compiler_wl='-Wl,'
8376	  ;;
8377        *Intel*\ [CF]*Compiler*)
8378	  lt_prog_compiler_wl='-Wl,'
8379	  lt_prog_compiler_pic='-fPIC'
8380	  lt_prog_compiler_static='-static'
8381	  ;;
8382	*Portland\ Group*)
8383	  lt_prog_compiler_wl='-Wl,'
8384	  lt_prog_compiler_pic='-fpic'
8385	  lt_prog_compiler_static='-Bstatic'
8386	  ;;
8387	esac
8388	;;
8389      esac
8390      ;;
8391
8392    newsos6)
8393      lt_prog_compiler_pic='-KPIC'
8394      lt_prog_compiler_static='-Bstatic'
8395      ;;
8396
8397    *nto* | *qnx*)
8398      # QNX uses GNU C++, but need to define -shared option too, otherwise
8399      # it will coredump.
8400      lt_prog_compiler_pic='-fPIC -shared'
8401      ;;
8402
8403    osf3* | osf4* | osf5*)
8404      lt_prog_compiler_wl='-Wl,'
8405      # All OSF/1 code is PIC.
8406      lt_prog_compiler_static='-non_shared'
8407      ;;
8408
8409    rdos*)
8410      lt_prog_compiler_static='-non_shared'
8411      ;;
8412
8413    solaris*)
8414      lt_prog_compiler_pic='-KPIC'
8415      lt_prog_compiler_static='-Bstatic'
8416      case $cc_basename in
8417      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8418	lt_prog_compiler_wl='-Qoption ld ';;
8419      *)
8420	lt_prog_compiler_wl='-Wl,';;
8421      esac
8422      ;;
8423
8424    sunos4*)
8425      lt_prog_compiler_wl='-Qoption ld '
8426      lt_prog_compiler_pic='-PIC'
8427      lt_prog_compiler_static='-Bstatic'
8428      ;;
8429
8430    sysv4 | sysv4.2uw2* | sysv4.3*)
8431      lt_prog_compiler_wl='-Wl,'
8432      lt_prog_compiler_pic='-KPIC'
8433      lt_prog_compiler_static='-Bstatic'
8434      ;;
8435
8436    sysv4*MP*)
8437      if test -d /usr/nec ;then
8438	lt_prog_compiler_pic='-Kconform_pic'
8439	lt_prog_compiler_static='-Bstatic'
8440      fi
8441      ;;
8442
8443    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8444      lt_prog_compiler_wl='-Wl,'
8445      lt_prog_compiler_pic='-KPIC'
8446      lt_prog_compiler_static='-Bstatic'
8447      ;;
8448
8449    unicos*)
8450      lt_prog_compiler_wl='-Wl,'
8451      lt_prog_compiler_can_build_shared=no
8452      ;;
8453
8454    uts4*)
8455      lt_prog_compiler_pic='-pic'
8456      lt_prog_compiler_static='-Bstatic'
8457      ;;
8458
8459    *)
8460      lt_prog_compiler_can_build_shared=no
8461      ;;
8462    esac
8463  fi
8464
8465case $host_os in
8466  # For platforms which do not support PIC, -DPIC is meaningless:
8467  *djgpp*)
8468    lt_prog_compiler_pic=
8469    ;;
8470  *)
8471    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8472    ;;
8473esac
8474
8475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8476$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8477if ${lt_cv_prog_compiler_pic+:} false; then :
8478  $as_echo_n "(cached) " >&6
8479else
8480  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8481fi
8482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8483$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8484lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8485
8486#
8487# Check to make sure the PIC flag actually works.
8488#
8489if test -n "$lt_prog_compiler_pic"; then
8490  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8491$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8492if ${lt_cv_prog_compiler_pic_works+:} false; then :
8493  $as_echo_n "(cached) " >&6
8494else
8495  lt_cv_prog_compiler_pic_works=no
8496   ac_outfile=conftest.$ac_objext
8497   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8498   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8499   # Insert the option either (1) after the last *FLAGS variable, or
8500   # (2) before a word containing "conftest.", or (3) at the end.
8501   # Note that $ac_compile itself does not contain backslashes and begins
8502   # with a dollar sign (not a hyphen), so the echo should work correctly.
8503   # The option is referenced via a variable to avoid confusing sed.
8504   lt_compile=`echo "$ac_compile" | $SED \
8505   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8506   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8507   -e 's:$: $lt_compiler_flag:'`
8508   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8509   (eval "$lt_compile" 2>conftest.err)
8510   ac_status=$?
8511   cat conftest.err >&5
8512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513   if (exit $ac_status) && test -s "$ac_outfile"; then
8514     # The compiler can only warn and ignore the option if not recognized
8515     # So say no if there are warnings other than the usual output.
8516     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8517     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8518     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8519       lt_cv_prog_compiler_pic_works=yes
8520     fi
8521   fi
8522   $RM conftest*
8523
8524fi
8525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8526$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8527
8528if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8529    case $lt_prog_compiler_pic in
8530     "" | " "*) ;;
8531     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8532     esac
8533else
8534    lt_prog_compiler_pic=
8535     lt_prog_compiler_can_build_shared=no
8536fi
8537
8538fi
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550#
8551# Check to make sure the static flag actually works.
8552#
8553wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8555$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8556if ${lt_cv_prog_compiler_static_works+:} false; then :
8557  $as_echo_n "(cached) " >&6
8558else
8559  lt_cv_prog_compiler_static_works=no
8560   save_LDFLAGS="$LDFLAGS"
8561   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8562   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8563   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8564     # The linker can only warn and ignore the option if not recognized
8565     # So say no if there are warnings
8566     if test -s conftest.err; then
8567       # Append any errors to the config.log.
8568       cat conftest.err 1>&5
8569       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8570       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8571       if diff conftest.exp conftest.er2 >/dev/null; then
8572         lt_cv_prog_compiler_static_works=yes
8573       fi
8574     else
8575       lt_cv_prog_compiler_static_works=yes
8576     fi
8577   fi
8578   $RM -r conftest*
8579   LDFLAGS="$save_LDFLAGS"
8580
8581fi
8582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8583$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8584
8585if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8586    :
8587else
8588    lt_prog_compiler_static=
8589fi
8590
8591
8592
8593
8594
8595
8596
8597  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8598$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8599if ${lt_cv_prog_compiler_c_o+:} false; then :
8600  $as_echo_n "(cached) " >&6
8601else
8602  lt_cv_prog_compiler_c_o=no
8603   $RM -r conftest 2>/dev/null
8604   mkdir conftest
8605   cd conftest
8606   mkdir out
8607   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8608
8609   lt_compiler_flag="-o out/conftest2.$ac_objext"
8610   # Insert the option either (1) after the last *FLAGS variable, or
8611   # (2) before a word containing "conftest.", or (3) at the end.
8612   # Note that $ac_compile itself does not contain backslashes and begins
8613   # with a dollar sign (not a hyphen), so the echo should work correctly.
8614   lt_compile=`echo "$ac_compile" | $SED \
8615   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8616   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8617   -e 's:$: $lt_compiler_flag:'`
8618   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8619   (eval "$lt_compile" 2>out/conftest.err)
8620   ac_status=$?
8621   cat out/conftest.err >&5
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8624   then
8625     # The compiler can only warn and ignore the option if not recognized
8626     # So say no if there are warnings
8627     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8628     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8629     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8630       lt_cv_prog_compiler_c_o=yes
8631     fi
8632   fi
8633   chmod u+w . 2>&5
8634   $RM conftest*
8635   # SGI C++ compiler will create directory out/ii_files/ for
8636   # template instantiation
8637   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8638   $RM out/* && rmdir out
8639   cd ..
8640   $RM -r conftest
8641   $RM conftest*
8642
8643fi
8644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8645$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8646
8647
8648
8649
8650
8651
8652  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8653$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8654if ${lt_cv_prog_compiler_c_o+:} false; then :
8655  $as_echo_n "(cached) " >&6
8656else
8657  lt_cv_prog_compiler_c_o=no
8658   $RM -r conftest 2>/dev/null
8659   mkdir conftest
8660   cd conftest
8661   mkdir out
8662   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8663
8664   lt_compiler_flag="-o out/conftest2.$ac_objext"
8665   # Insert the option either (1) after the last *FLAGS variable, or
8666   # (2) before a word containing "conftest.", or (3) at the end.
8667   # Note that $ac_compile itself does not contain backslashes and begins
8668   # with a dollar sign (not a hyphen), so the echo should work correctly.
8669   lt_compile=`echo "$ac_compile" | $SED \
8670   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8671   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8672   -e 's:$: $lt_compiler_flag:'`
8673   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8674   (eval "$lt_compile" 2>out/conftest.err)
8675   ac_status=$?
8676   cat out/conftest.err >&5
8677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8679   then
8680     # The compiler can only warn and ignore the option if not recognized
8681     # So say no if there are warnings
8682     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8683     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8684     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8685       lt_cv_prog_compiler_c_o=yes
8686     fi
8687   fi
8688   chmod u+w . 2>&5
8689   $RM conftest*
8690   # SGI C++ compiler will create directory out/ii_files/ for
8691   # template instantiation
8692   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8693   $RM out/* && rmdir out
8694   cd ..
8695   $RM -r conftest
8696   $RM conftest*
8697
8698fi
8699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8700$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8701
8702
8703
8704
8705hard_links="nottested"
8706if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8707  # do not overwrite the value of need_locks provided by the user
8708  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8709$as_echo_n "checking if we can lock with hard links... " >&6; }
8710  hard_links=yes
8711  $RM conftest*
8712  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8713  touch conftest.a
8714  ln conftest.a conftest.b 2>&5 || hard_links=no
8715  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8717$as_echo "$hard_links" >&6; }
8718  if test "$hard_links" = no; then
8719    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8720$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8721    need_locks=warn
8722  fi
8723else
8724  need_locks=no
8725fi
8726
8727
8728
8729
8730
8731
8732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8733$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8734
8735  runpath_var=
8736  allow_undefined_flag=
8737  always_export_symbols=no
8738  archive_cmds=
8739  archive_expsym_cmds=
8740  compiler_needs_object=no
8741  enable_shared_with_static_runtimes=no
8742  export_dynamic_flag_spec=
8743  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8744  hardcode_automatic=no
8745  hardcode_direct=no
8746  hardcode_direct_absolute=no
8747  hardcode_libdir_flag_spec=
8748  hardcode_libdir_separator=
8749  hardcode_minus_L=no
8750  hardcode_shlibpath_var=unsupported
8751  inherit_rpath=no
8752  link_all_deplibs=unknown
8753  module_cmds=
8754  module_expsym_cmds=
8755  old_archive_from_new_cmds=
8756  old_archive_from_expsyms_cmds=
8757  thread_safe_flag_spec=
8758  whole_archive_flag_spec=
8759  # include_expsyms should be a list of space-separated symbols to be *always*
8760  # included in the symbol list
8761  include_expsyms=
8762  # exclude_expsyms can be an extended regexp of symbols to exclude
8763  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8764  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8765  # as well as any symbol that contains `d'.
8766  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8767  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8768  # platforms (ab)use it in PIC code, but their linkers get confused if
8769  # the symbol is explicitly referenced.  Since portable code cannot
8770  # rely on this symbol name, it's probably fine to never include it in
8771  # preloaded symbol tables.
8772  # Exclude shared library initialization/finalization symbols.
8773  extract_expsyms_cmds=
8774
8775  case $host_os in
8776  cygwin* | mingw* | pw32* | cegcc*)
8777    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8778    # When not using gcc, we currently assume that we are using
8779    # Microsoft Visual C++.
8780    if test "$GCC" != yes; then
8781      with_gnu_ld=no
8782    fi
8783    ;;
8784  interix*)
8785    # we just hope/assume this is gcc and not c89 (= MSVC++)
8786    with_gnu_ld=yes
8787    ;;
8788  openbsd*)
8789    with_gnu_ld=no
8790    ;;
8791  esac
8792
8793  ld_shlibs=yes
8794
8795  # On some targets, GNU ld is compatible enough with the native linker
8796  # that we're better off using the native interface for both.
8797  lt_use_gnu_ld_interface=no
8798  if test "$with_gnu_ld" = yes; then
8799    case $host_os in
8800      aix*)
8801	# The AIX port of GNU ld has always aspired to compatibility
8802	# with the native linker.  However, as the warning in the GNU ld
8803	# block says, versions before 2.19.5* couldn't really create working
8804	# shared libraries, regardless of the interface used.
8805	case `$LD -v 2>&1` in
8806	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8807	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8808	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8809	  *)
8810	    lt_use_gnu_ld_interface=yes
8811	    ;;
8812	esac
8813	;;
8814      *)
8815	lt_use_gnu_ld_interface=yes
8816	;;
8817    esac
8818  fi
8819
8820  if test "$lt_use_gnu_ld_interface" = yes; then
8821    # If archive_cmds runs LD, not CC, wlarc should be empty
8822    wlarc='${wl}'
8823
8824    # Set some defaults for GNU ld with shared library support. These
8825    # are reset later if shared libraries are not supported. Putting them
8826    # here allows them to be overridden if necessary.
8827    runpath_var=LD_RUN_PATH
8828    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8829    export_dynamic_flag_spec='${wl}--export-dynamic'
8830    # ancient GNU ld didn't support --whole-archive et. al.
8831    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8832      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8833    else
8834      whole_archive_flag_spec=
8835    fi
8836    supports_anon_versioning=no
8837    case `$LD -v 2>&1` in
8838      *GNU\ gold*) supports_anon_versioning=yes ;;
8839      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8840      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8841      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8842      *\ 2.11.*) ;; # other 2.11 versions
8843      *) supports_anon_versioning=yes ;;
8844    esac
8845
8846    # See if GNU ld supports shared libraries.
8847    case $host_os in
8848    aix[3-9]*)
8849      # On AIX/PPC, the GNU linker is very broken
8850      if test "$host_cpu" != ia64; then
8851	ld_shlibs=no
8852	cat <<_LT_EOF 1>&2
8853
8854*** Warning: the GNU linker, at least up to release 2.19, is reported
8855*** to be unable to reliably create shared libraries on AIX.
8856*** Therefore, libtool is disabling shared libraries support.  If you
8857*** really care for shared libraries, you may want to install binutils
8858*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8859*** You will then need to restart the configuration process.
8860
8861_LT_EOF
8862      fi
8863      ;;
8864
8865    amigaos*)
8866      case $host_cpu in
8867      powerpc)
8868            # see comment about AmigaOS4 .so support
8869            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8870            archive_expsym_cmds=''
8871        ;;
8872      m68k)
8873            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)'
8874            hardcode_libdir_flag_spec='-L$libdir'
8875            hardcode_minus_L=yes
8876        ;;
8877      esac
8878      ;;
8879
8880    beos*)
8881      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8882	allow_undefined_flag=unsupported
8883	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8884	# support --undefined.  This deserves some investigation.  FIXME
8885	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8886      else
8887	ld_shlibs=no
8888      fi
8889      ;;
8890
8891    cygwin* | mingw* | pw32* | cegcc*)
8892      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8893      # as there is no search path for DLLs.
8894      hardcode_libdir_flag_spec='-L$libdir'
8895      export_dynamic_flag_spec='${wl}--export-all-symbols'
8896      allow_undefined_flag=unsupported
8897      always_export_symbols=no
8898      enable_shared_with_static_runtimes=yes
8899      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'
8900      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8901
8902      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8903        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8904	# If the export-symbols file already is a .def file (1st line
8905	# is EXPORTS), use it as is; otherwise, prepend...
8906	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8907	  cp $export_symbols $output_objdir/$soname.def;
8908	else
8909	  echo EXPORTS > $output_objdir/$soname.def;
8910	  cat $export_symbols >> $output_objdir/$soname.def;
8911	fi~
8912	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8913      else
8914	ld_shlibs=no
8915      fi
8916      ;;
8917
8918    haiku*)
8919      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8920      link_all_deplibs=yes
8921      ;;
8922
8923    interix[3-9]*)
8924      hardcode_direct=no
8925      hardcode_shlibpath_var=no
8926      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8927      export_dynamic_flag_spec='${wl}-E'
8928      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8929      # Instead, shared libraries are loaded at an image base (0x10000000 by
8930      # default) and relocated if they conflict, which is a slow very memory
8931      # consuming and fragmenting process.  To avoid this, we pick a random,
8932      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8933      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8934      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8935      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'
8936      ;;
8937
8938    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8939      tmp_diet=no
8940      if test "$host_os" = linux-dietlibc; then
8941	case $cc_basename in
8942	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8943	esac
8944      fi
8945      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8946	 && test "$tmp_diet" = no
8947      then
8948	tmp_addflag=' $pic_flag'
8949	tmp_sharedflag='-shared'
8950	case $cc_basename,$host_cpu in
8951        pgcc*)				# Portland Group C compiler
8952	  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'
8953	  tmp_addflag=' $pic_flag'
8954	  ;;
8955	pgf77* | pgf90* | pgf95* | pgfortran*)
8956					# Portland Group f77 and f90 compilers
8957	  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'
8958	  tmp_addflag=' $pic_flag -Mnomain' ;;
8959	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8960	  tmp_addflag=' -i_dynamic' ;;
8961	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8962	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8963	ifc* | ifort*)			# Intel Fortran compiler
8964	  tmp_addflag=' -nofor_main' ;;
8965	lf95*)				# Lahey Fortran 8.1
8966	  whole_archive_flag_spec=
8967	  tmp_sharedflag='--shared' ;;
8968	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8969	  tmp_sharedflag='-qmkshrobj'
8970	  tmp_addflag= ;;
8971	nvcc*)	# Cuda Compiler Driver 2.2
8972	  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'
8973	  compiler_needs_object=yes
8974	  ;;
8975	esac
8976	case `$CC -V 2>&1 | sed 5q` in
8977	*Sun\ C*)			# Sun C 5.9
8978	  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'
8979	  compiler_needs_object=yes
8980	  tmp_sharedflag='-G' ;;
8981	*Sun\ F*)			# Sun Fortran 8.3
8982	  tmp_sharedflag='-G' ;;
8983	esac
8984	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8985
8986        if test "x$supports_anon_versioning" = xyes; then
8987          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8988	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8989	    echo "local: *; };" >> $output_objdir/$libname.ver~
8990	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8991        fi
8992
8993	case $cc_basename in
8994	xlf* | bgf* | bgxlf* | mpixlf*)
8995	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8996	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8997	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8998	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8999	  if test "x$supports_anon_versioning" = xyes; then
9000	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9001	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9002	      echo "local: *; };" >> $output_objdir/$libname.ver~
9003	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9004	  fi
9005	  ;;
9006	esac
9007      else
9008        ld_shlibs=no
9009      fi
9010      ;;
9011
9012    netbsd*)
9013      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9014	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9015	wlarc=
9016      else
9017	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9018	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9019      fi
9020      ;;
9021
9022    solaris*)
9023      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9024	ld_shlibs=no
9025	cat <<_LT_EOF 1>&2
9026
9027*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9028*** create shared libraries on Solaris systems.  Therefore, libtool
9029*** is disabling shared libraries support.  We urge you to upgrade GNU
9030*** binutils to release 2.9.1 or newer.  Another option is to modify
9031*** your PATH or compiler configuration so that the native linker is
9032*** used, and then restart.
9033
9034_LT_EOF
9035      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9036	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9037	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9038      else
9039	ld_shlibs=no
9040      fi
9041      ;;
9042
9043    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9044      case `$LD -v 2>&1` in
9045        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9046	ld_shlibs=no
9047	cat <<_LT_EOF 1>&2
9048
9049*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9050*** reliably create shared libraries on SCO systems.  Therefore, libtool
9051*** is disabling shared libraries support.  We urge you to upgrade GNU
9052*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9053*** your PATH or compiler configuration so that the native linker is
9054*** used, and then restart.
9055
9056_LT_EOF
9057	;;
9058	*)
9059	  # For security reasons, it is highly recommended that you always
9060	  # use absolute paths for naming shared libraries, and exclude the
9061	  # DT_RUNPATH tag from executables and libraries.  But doing so
9062	  # requires that you compile everything twice, which is a pain.
9063	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9064	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9065	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9066	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9067	  else
9068	    ld_shlibs=no
9069	  fi
9070	;;
9071      esac
9072      ;;
9073
9074    sunos4*)
9075      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9076      wlarc=
9077      hardcode_direct=yes
9078      hardcode_shlibpath_var=no
9079      ;;
9080
9081    *)
9082      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9083	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9084	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9085      else
9086	ld_shlibs=no
9087      fi
9088      ;;
9089    esac
9090
9091    if test "$ld_shlibs" = no; then
9092      runpath_var=
9093      hardcode_libdir_flag_spec=
9094      export_dynamic_flag_spec=
9095      whole_archive_flag_spec=
9096    fi
9097  else
9098    # PORTME fill in a description of your system's linker (not GNU ld)
9099    case $host_os in
9100    aix3*)
9101      allow_undefined_flag=unsupported
9102      always_export_symbols=yes
9103      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'
9104      # Note: this linker hardcodes the directories in LIBPATH if there
9105      # are no directories specified by -L.
9106      hardcode_minus_L=yes
9107      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9108	# Neither direct hardcoding nor static linking is supported with a
9109	# broken collect2.
9110	hardcode_direct=unsupported
9111      fi
9112      ;;
9113
9114    aix[4-9]*)
9115      if test "$host_cpu" = ia64; then
9116	# On IA64, the linker does run time linking by default, so we don't
9117	# have to do anything special.
9118	aix_use_runtimelinking=no
9119	exp_sym_flag='-Bexport'
9120	no_entry_flag=""
9121      else
9122	# If we're using GNU nm, then we don't want the "-C" option.
9123	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9124	# Also, AIX nm treats weak defined symbols like other global
9125	# defined symbols, whereas GNU nm marks them as "W".
9126	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9127	  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'
9128	else
9129	  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'
9130	fi
9131	aix_use_runtimelinking=no
9132
9133	# Test if we are trying to use run time linking or normal
9134	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9135	# need to do runtime linking.
9136	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9137	  for ld_flag in $LDFLAGS; do
9138	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9139	    aix_use_runtimelinking=yes
9140	    break
9141	  fi
9142	  done
9143	  ;;
9144	esac
9145
9146	exp_sym_flag='-bexport'
9147	no_entry_flag='-bnoentry'
9148      fi
9149
9150      # When large executables or shared objects are built, AIX ld can
9151      # have problems creating the table of contents.  If linking a library
9152      # or program results in "error TOC overflow" add -mminimal-toc to
9153      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9154      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9155
9156      archive_cmds=''
9157      hardcode_direct=yes
9158      hardcode_direct_absolute=yes
9159      hardcode_libdir_separator=':'
9160      link_all_deplibs=yes
9161      file_list_spec='${wl}-f,'
9162
9163      if test "$GCC" = yes; then
9164	case $host_os in aix4.[012]|aix4.[012].*)
9165	# We only want to do this on AIX 4.2 and lower, the check
9166	# below for broken collect2 doesn't work under 4.3+
9167	  collect2name=`${CC} -print-prog-name=collect2`
9168	  if test -f "$collect2name" &&
9169	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9170	  then
9171	  # We have reworked collect2
9172	  :
9173	  else
9174	  # We have old collect2
9175	  hardcode_direct=unsupported
9176	  # It fails to find uninstalled libraries when the uninstalled
9177	  # path is not listed in the libpath.  Setting hardcode_minus_L
9178	  # to unsupported forces relinking
9179	  hardcode_minus_L=yes
9180	  hardcode_libdir_flag_spec='-L$libdir'
9181	  hardcode_libdir_separator=
9182	  fi
9183	  ;;
9184	esac
9185	shared_flag='-shared'
9186	if test "$aix_use_runtimelinking" = yes; then
9187	  shared_flag="$shared_flag "'${wl}-G'
9188	fi
9189      else
9190	# not using gcc
9191	if test "$host_cpu" = ia64; then
9192	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9193	# chokes on -Wl,-G. The following line is correct:
9194	  shared_flag='-G'
9195	else
9196	  if test "$aix_use_runtimelinking" = yes; then
9197	    shared_flag='${wl}-G'
9198	  else
9199	    shared_flag='${wl}-bM:SRE'
9200	  fi
9201	fi
9202      fi
9203
9204      export_dynamic_flag_spec='${wl}-bexpall'
9205      # It seems that -bexpall does not export symbols beginning with
9206      # underscore (_), so it is better to generate a list of symbols to export.
9207      always_export_symbols=yes
9208      if test "$aix_use_runtimelinking" = yes; then
9209	# Warning - without using the other runtime loading flags (-brtl),
9210	# -berok will link without error, but may produce a broken library.
9211	allow_undefined_flag='-berok'
9212        # Determine the default libpath from the value encoded in an
9213        # empty executable.
9214        if test "${lt_cv_aix_libpath+set}" = set; then
9215  aix_libpath=$lt_cv_aix_libpath
9216else
9217  if ${lt_cv_aix_libpath_+:} false; then :
9218  $as_echo_n "(cached) " >&6
9219else
9220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221/* end confdefs.h.  */
9222
9223int
9224main ()
9225{
9226
9227  ;
9228  return 0;
9229}
9230_ACEOF
9231if ac_fn_c_try_link "$LINENO"; then :
9232
9233  lt_aix_libpath_sed='
9234      /Import File Strings/,/^$/ {
9235	  /^0/ {
9236	      s/^0  *\([^ ]*\) *$/\1/
9237	      p
9238	  }
9239      }'
9240  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9241  # Check for a 64-bit object if we didn't find anything.
9242  if test -z "$lt_cv_aix_libpath_"; then
9243    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9244  fi
9245fi
9246rm -f core conftest.err conftest.$ac_objext \
9247    conftest$ac_exeext conftest.$ac_ext
9248  if test -z "$lt_cv_aix_libpath_"; then
9249    lt_cv_aix_libpath_="/usr/lib:/lib"
9250  fi
9251
9252fi
9253
9254  aix_libpath=$lt_cv_aix_libpath_
9255fi
9256
9257        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9258        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"
9259      else
9260	if test "$host_cpu" = ia64; then
9261	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9262	  allow_undefined_flag="-z nodefs"
9263	  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"
9264	else
9265	 # Determine the default libpath from the value encoded in an
9266	 # empty executable.
9267	 if test "${lt_cv_aix_libpath+set}" = set; then
9268  aix_libpath=$lt_cv_aix_libpath
9269else
9270  if ${lt_cv_aix_libpath_+:} false; then :
9271  $as_echo_n "(cached) " >&6
9272else
9273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274/* end confdefs.h.  */
9275
9276int
9277main ()
9278{
9279
9280  ;
9281  return 0;
9282}
9283_ACEOF
9284if ac_fn_c_try_link "$LINENO"; then :
9285
9286  lt_aix_libpath_sed='
9287      /Import File Strings/,/^$/ {
9288	  /^0/ {
9289	      s/^0  *\([^ ]*\) *$/\1/
9290	      p
9291	  }
9292      }'
9293  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9294  # Check for a 64-bit object if we didn't find anything.
9295  if test -z "$lt_cv_aix_libpath_"; then
9296    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9297  fi
9298fi
9299rm -f core conftest.err conftest.$ac_objext \
9300    conftest$ac_exeext conftest.$ac_ext
9301  if test -z "$lt_cv_aix_libpath_"; then
9302    lt_cv_aix_libpath_="/usr/lib:/lib"
9303  fi
9304
9305fi
9306
9307  aix_libpath=$lt_cv_aix_libpath_
9308fi
9309
9310	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9311	  # Warning - without using the other run time loading flags,
9312	  # -berok will link without error, but may produce a broken library.
9313	  no_undefined_flag=' ${wl}-bernotok'
9314	  allow_undefined_flag=' ${wl}-berok'
9315	  if test "$with_gnu_ld" = yes; then
9316	    # We only use this code for GNU lds that support --whole-archive.
9317	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9318	  else
9319	    # Exported symbols can be pulled into shared objects from archives
9320	    whole_archive_flag_spec='$convenience'
9321	  fi
9322	  archive_cmds_need_lc=yes
9323	  # This is similar to how AIX traditionally builds its shared libraries.
9324	  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'
9325	fi
9326      fi
9327      ;;
9328
9329    amigaos*)
9330      case $host_cpu in
9331      powerpc)
9332            # see comment about AmigaOS4 .so support
9333            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9334            archive_expsym_cmds=''
9335        ;;
9336      m68k)
9337            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)'
9338            hardcode_libdir_flag_spec='-L$libdir'
9339            hardcode_minus_L=yes
9340        ;;
9341      esac
9342      ;;
9343
9344    bsdi[45]*)
9345      export_dynamic_flag_spec=-rdynamic
9346      ;;
9347
9348    cygwin* | mingw* | pw32* | cegcc*)
9349      # When not using gcc, we currently assume that we are using
9350      # Microsoft Visual C++.
9351      # hardcode_libdir_flag_spec is actually meaningless, as there is
9352      # no search path for DLLs.
9353      case $cc_basename in
9354      cl*)
9355	# Native MSVC
9356	hardcode_libdir_flag_spec=' '
9357	allow_undefined_flag=unsupported
9358	always_export_symbols=yes
9359	file_list_spec='@'
9360	# Tell ltmain to make .lib files, not .a files.
9361	libext=lib
9362	# Tell ltmain to make .dll files, not .so files.
9363	shrext_cmds=".dll"
9364	# FIXME: Setting linknames here is a bad hack.
9365	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9366	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9367	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9368	  else
9369	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9370	  fi~
9371	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9372	  linknames='
9373	# The linker will not automatically build a static lib if we build a DLL.
9374	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9375	enable_shared_with_static_runtimes=yes
9376	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9377	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9378	# Don't use ranlib
9379	old_postinstall_cmds='chmod 644 $oldlib'
9380	postlink_cmds='lt_outputfile="@OUTPUT@"~
9381	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9382	  case $lt_outputfile in
9383	    *.exe|*.EXE) ;;
9384	    *)
9385	      lt_outputfile="$lt_outputfile.exe"
9386	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9387	      ;;
9388	  esac~
9389	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9390	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9391	    $RM "$lt_outputfile.manifest";
9392	  fi'
9393	;;
9394      *)
9395	# Assume MSVC wrapper
9396	hardcode_libdir_flag_spec=' '
9397	allow_undefined_flag=unsupported
9398	# Tell ltmain to make .lib files, not .a files.
9399	libext=lib
9400	# Tell ltmain to make .dll files, not .so files.
9401	shrext_cmds=".dll"
9402	# FIXME: Setting linknames here is a bad hack.
9403	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9404	# The linker will automatically build a .lib file if we build a DLL.
9405	old_archive_from_new_cmds='true'
9406	# FIXME: Should let the user specify the lib program.
9407	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9408	enable_shared_with_static_runtimes=yes
9409	;;
9410      esac
9411      ;;
9412
9413    darwin* | rhapsody*)
9414
9415
9416  archive_cmds_need_lc=no
9417  hardcode_direct=no
9418  hardcode_automatic=yes
9419  hardcode_shlibpath_var=unsupported
9420  if test "$lt_cv_ld_force_load" = "yes"; then
9421    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\"`'
9422
9423  else
9424    whole_archive_flag_spec=''
9425  fi
9426  link_all_deplibs=yes
9427  allow_undefined_flag="$_lt_dar_allow_undefined"
9428  case $cc_basename in
9429     ifort*) _lt_dar_can_shared=yes ;;
9430     *) _lt_dar_can_shared=$GCC ;;
9431  esac
9432  if test "$_lt_dar_can_shared" = "yes"; then
9433    output_verbose_link_cmd=func_echo_all
9434    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9435    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9436    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}"
9437    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}"
9438
9439  else
9440  ld_shlibs=no
9441  fi
9442
9443      ;;
9444
9445    dgux*)
9446      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9447      hardcode_libdir_flag_spec='-L$libdir'
9448      hardcode_shlibpath_var=no
9449      ;;
9450
9451    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9452    # support.  Future versions do this automatically, but an explicit c++rt0.o
9453    # does not break anything, and helps significantly (at the cost of a little
9454    # extra space).
9455    freebsd2.2*)
9456      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9457      hardcode_libdir_flag_spec='-R$libdir'
9458      hardcode_direct=yes
9459      hardcode_shlibpath_var=no
9460      ;;
9461
9462    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9463    freebsd2.*)
9464      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9465      hardcode_direct=yes
9466      hardcode_minus_L=yes
9467      hardcode_shlibpath_var=no
9468      ;;
9469
9470    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9471    freebsd* | dragonfly*)
9472      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9473      hardcode_libdir_flag_spec='-R$libdir'
9474      hardcode_direct=yes
9475      hardcode_shlibpath_var=no
9476      ;;
9477
9478    hpux9*)
9479      if test "$GCC" = yes; then
9480	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'
9481      else
9482	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'
9483      fi
9484      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9485      hardcode_libdir_separator=:
9486      hardcode_direct=yes
9487
9488      # hardcode_minus_L: Not really in the search PATH,
9489      # but as the default location of the library.
9490      hardcode_minus_L=yes
9491      export_dynamic_flag_spec='${wl}-E'
9492      ;;
9493
9494    hpux10*)
9495      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9496	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9497      else
9498	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9499      fi
9500      if test "$with_gnu_ld" = no; then
9501	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9502	hardcode_libdir_separator=:
9503	hardcode_direct=yes
9504	hardcode_direct_absolute=yes
9505	export_dynamic_flag_spec='${wl}-E'
9506	# hardcode_minus_L: Not really in the search PATH,
9507	# but as the default location of the library.
9508	hardcode_minus_L=yes
9509      fi
9510      ;;
9511
9512    hpux11*)
9513      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9514	case $host_cpu in
9515	hppa*64*)
9516	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9517	  ;;
9518	ia64*)
9519	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9520	  ;;
9521	*)
9522	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9523	  ;;
9524	esac
9525      else
9526	case $host_cpu in
9527	hppa*64*)
9528	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9529	  ;;
9530	ia64*)
9531	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9532	  ;;
9533	*)
9534
9535	  # Older versions of the 11.00 compiler do not understand -b yet
9536	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9537	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9538$as_echo_n "checking if $CC understands -b... " >&6; }
9539if ${lt_cv_prog_compiler__b+:} false; then :
9540  $as_echo_n "(cached) " >&6
9541else
9542  lt_cv_prog_compiler__b=no
9543   save_LDFLAGS="$LDFLAGS"
9544   LDFLAGS="$LDFLAGS -b"
9545   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9546   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9547     # The linker can only warn and ignore the option if not recognized
9548     # So say no if there are warnings
9549     if test -s conftest.err; then
9550       # Append any errors to the config.log.
9551       cat conftest.err 1>&5
9552       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9553       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9554       if diff conftest.exp conftest.er2 >/dev/null; then
9555         lt_cv_prog_compiler__b=yes
9556       fi
9557     else
9558       lt_cv_prog_compiler__b=yes
9559     fi
9560   fi
9561   $RM -r conftest*
9562   LDFLAGS="$save_LDFLAGS"
9563
9564fi
9565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9566$as_echo "$lt_cv_prog_compiler__b" >&6; }
9567
9568if test x"$lt_cv_prog_compiler__b" = xyes; then
9569    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9570else
9571    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9572fi
9573
9574	  ;;
9575	esac
9576      fi
9577      if test "$with_gnu_ld" = no; then
9578	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9579	hardcode_libdir_separator=:
9580
9581	case $host_cpu in
9582	hppa*64*|ia64*)
9583	  hardcode_direct=no
9584	  hardcode_shlibpath_var=no
9585	  ;;
9586	*)
9587	  hardcode_direct=yes
9588	  hardcode_direct_absolute=yes
9589	  export_dynamic_flag_spec='${wl}-E'
9590
9591	  # hardcode_minus_L: Not really in the search PATH,
9592	  # but as the default location of the library.
9593	  hardcode_minus_L=yes
9594	  ;;
9595	esac
9596      fi
9597      ;;
9598
9599    irix5* | irix6* | nonstopux*)
9600      if test "$GCC" = yes; then
9601	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'
9602	# Try to use the -exported_symbol ld option, if it does not
9603	# work, assume that -exports_file does not work either and
9604	# implicitly export all symbols.
9605	# This should be the same for all languages, so no per-tag cache variable.
9606	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9607$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9608if ${lt_cv_irix_exported_symbol+:} false; then :
9609  $as_echo_n "(cached) " >&6
9610else
9611  save_LDFLAGS="$LDFLAGS"
9612	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9613	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9614/* end confdefs.h.  */
9615int foo (void) { return 0; }
9616_ACEOF
9617if ac_fn_c_try_link "$LINENO"; then :
9618  lt_cv_irix_exported_symbol=yes
9619else
9620  lt_cv_irix_exported_symbol=no
9621fi
9622rm -f core conftest.err conftest.$ac_objext \
9623    conftest$ac_exeext conftest.$ac_ext
9624           LDFLAGS="$save_LDFLAGS"
9625fi
9626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9627$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9628	if test "$lt_cv_irix_exported_symbol" = yes; then
9629          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'
9630	fi
9631      else
9632	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'
9633	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'
9634      fi
9635      archive_cmds_need_lc='no'
9636      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9637      hardcode_libdir_separator=:
9638      inherit_rpath=yes
9639      link_all_deplibs=yes
9640      ;;
9641
9642    netbsd*)
9643      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9644	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9645      else
9646	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9647      fi
9648      hardcode_libdir_flag_spec='-R$libdir'
9649      hardcode_direct=yes
9650      hardcode_shlibpath_var=no
9651      ;;
9652
9653    newsos6)
9654      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9655      hardcode_direct=yes
9656      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9657      hardcode_libdir_separator=:
9658      hardcode_shlibpath_var=no
9659      ;;
9660
9661    *nto* | *qnx*)
9662      ;;
9663
9664    openbsd*)
9665      if test -f /usr/libexec/ld.so; then
9666	hardcode_direct=yes
9667	hardcode_shlibpath_var=no
9668	hardcode_direct_absolute=yes
9669	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9670	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9671	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9672	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9673	  export_dynamic_flag_spec='${wl}-E'
9674	else
9675	  case $host_os in
9676	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9677	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9678	     hardcode_libdir_flag_spec='-R$libdir'
9679	     ;;
9680	   *)
9681	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9682	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9683	     ;;
9684	  esac
9685	fi
9686      else
9687	ld_shlibs=no
9688      fi
9689      ;;
9690
9691    os2*)
9692      hardcode_libdir_flag_spec='-L$libdir'
9693      hardcode_minus_L=yes
9694      allow_undefined_flag=unsupported
9695      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'
9696      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9697      ;;
9698
9699    osf3*)
9700      if test "$GCC" = yes; then
9701	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9702	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'
9703      else
9704	allow_undefined_flag=' -expect_unresolved \*'
9705	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'
9706      fi
9707      archive_cmds_need_lc='no'
9708      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9709      hardcode_libdir_separator=:
9710      ;;
9711
9712    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9713      if test "$GCC" = yes; then
9714	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9715	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'
9716	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9717      else
9718	allow_undefined_flag=' -expect_unresolved \*'
9719	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'
9720	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~
9721	$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'
9722
9723	# Both c and cxx compiler support -rpath directly
9724	hardcode_libdir_flag_spec='-rpath $libdir'
9725      fi
9726      archive_cmds_need_lc='no'
9727      hardcode_libdir_separator=:
9728      ;;
9729
9730    solaris*)
9731      no_undefined_flag=' -z defs'
9732      if test "$GCC" = yes; then
9733	wlarc='${wl}'
9734	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9735	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9736	  $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'
9737      else
9738	case `$CC -V 2>&1` in
9739	*"Compilers 5.0"*)
9740	  wlarc=''
9741	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9742	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9743	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9744	  ;;
9745	*)
9746	  wlarc='${wl}'
9747	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9748	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9749	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9750	  ;;
9751	esac
9752      fi
9753      hardcode_libdir_flag_spec='-R$libdir'
9754      hardcode_shlibpath_var=no
9755      case $host_os in
9756      solaris2.[0-5] | solaris2.[0-5].*) ;;
9757      *)
9758	# The compiler driver will combine and reorder linker options,
9759	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9760	# but is careful enough not to reorder.
9761	# Supported since Solaris 2.6 (maybe 2.5.1?)
9762	if test "$GCC" = yes; then
9763	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9764	else
9765	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9766	fi
9767	;;
9768      esac
9769      link_all_deplibs=yes
9770      ;;
9771
9772    sunos4*)
9773      if test "x$host_vendor" = xsequent; then
9774	# Use $CC to link under sequent, because it throws in some extra .o
9775	# files that make .init and .fini sections work.
9776	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9777      else
9778	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9779      fi
9780      hardcode_libdir_flag_spec='-L$libdir'
9781      hardcode_direct=yes
9782      hardcode_minus_L=yes
9783      hardcode_shlibpath_var=no
9784      ;;
9785
9786    sysv4)
9787      case $host_vendor in
9788	sni)
9789	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9790	  hardcode_direct=yes # is this really true???
9791	;;
9792	siemens)
9793	  ## LD is ld it makes a PLAMLIB
9794	  ## CC just makes a GrossModule.
9795	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9796	  reload_cmds='$CC -r -o $output$reload_objs'
9797	  hardcode_direct=no
9798        ;;
9799	motorola)
9800	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9801	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9802	;;
9803      esac
9804      runpath_var='LD_RUN_PATH'
9805      hardcode_shlibpath_var=no
9806      ;;
9807
9808    sysv4.3*)
9809      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9810      hardcode_shlibpath_var=no
9811      export_dynamic_flag_spec='-Bexport'
9812      ;;
9813
9814    sysv4*MP*)
9815      if test -d /usr/nec; then
9816	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9817	hardcode_shlibpath_var=no
9818	runpath_var=LD_RUN_PATH
9819	hardcode_runpath_var=yes
9820	ld_shlibs=yes
9821      fi
9822      ;;
9823
9824    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9825      no_undefined_flag='${wl}-z,text'
9826      archive_cmds_need_lc=no
9827      hardcode_shlibpath_var=no
9828      runpath_var='LD_RUN_PATH'
9829
9830      if test "$GCC" = yes; then
9831	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9832	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9833      else
9834	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9835	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9836      fi
9837      ;;
9838
9839    sysv5* | sco3.2v5* | sco5v6*)
9840      # Note: We can NOT use -z defs as we might desire, because we do not
9841      # link with -lc, and that would cause any symbols used from libc to
9842      # always be unresolved, which means just about no library would
9843      # ever link correctly.  If we're not using GNU ld we use -z text
9844      # though, which does catch some bad symbols but isn't as heavy-handed
9845      # as -z defs.
9846      no_undefined_flag='${wl}-z,text'
9847      allow_undefined_flag='${wl}-z,nodefs'
9848      archive_cmds_need_lc=no
9849      hardcode_shlibpath_var=no
9850      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9851      hardcode_libdir_separator=':'
9852      link_all_deplibs=yes
9853      export_dynamic_flag_spec='${wl}-Bexport'
9854      runpath_var='LD_RUN_PATH'
9855
9856      if test "$GCC" = yes; then
9857	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9858	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9859      else
9860	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9861	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9862      fi
9863      ;;
9864
9865    uts4*)
9866      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9867      hardcode_libdir_flag_spec='-L$libdir'
9868      hardcode_shlibpath_var=no
9869      ;;
9870
9871    *)
9872      ld_shlibs=no
9873      ;;
9874    esac
9875
9876    if test x$host_vendor = xsni; then
9877      case $host in
9878      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9879	export_dynamic_flag_spec='${wl}-Blargedynsym'
9880	;;
9881      esac
9882    fi
9883  fi
9884
9885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9886$as_echo "$ld_shlibs" >&6; }
9887test "$ld_shlibs" = no && can_build_shared=no
9888
9889with_gnu_ld=$with_gnu_ld
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905#
9906# Do we need to explicitly link libc?
9907#
9908case "x$archive_cmds_need_lc" in
9909x|xyes)
9910  # Assume -lc should be added
9911  archive_cmds_need_lc=yes
9912
9913  if test "$enable_shared" = yes && test "$GCC" = yes; then
9914    case $archive_cmds in
9915    *'~'*)
9916      # FIXME: we may have to deal with multi-command sequences.
9917      ;;
9918    '$CC '*)
9919      # Test whether the compiler implicitly links with -lc since on some
9920      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9921      # to ld, don't add -lc before -lgcc.
9922      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9923$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9924if ${lt_cv_archive_cmds_need_lc+:} false; then :
9925  $as_echo_n "(cached) " >&6
9926else
9927  $RM conftest*
9928	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9929
9930	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9931  (eval $ac_compile) 2>&5
9932  ac_status=$?
9933  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9934  test $ac_status = 0; } 2>conftest.err; then
9935	  soname=conftest
9936	  lib=conftest
9937	  libobjs=conftest.$ac_objext
9938	  deplibs=
9939	  wl=$lt_prog_compiler_wl
9940	  pic_flag=$lt_prog_compiler_pic
9941	  compiler_flags=-v
9942	  linker_flags=-v
9943	  verstring=
9944	  output_objdir=.
9945	  libname=conftest
9946	  lt_save_allow_undefined_flag=$allow_undefined_flag
9947	  allow_undefined_flag=
9948	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9949  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9950  ac_status=$?
9951  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9952  test $ac_status = 0; }
9953	  then
9954	    lt_cv_archive_cmds_need_lc=no
9955	  else
9956	    lt_cv_archive_cmds_need_lc=yes
9957	  fi
9958	  allow_undefined_flag=$lt_save_allow_undefined_flag
9959	else
9960	  cat conftest.err 1>&5
9961	fi
9962	$RM conftest*
9963
9964fi
9965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9966$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9967      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9968      ;;
9969    esac
9970  fi
9971  ;;
9972esac
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10126$as_echo_n "checking dynamic linker characteristics... " >&6; }
10127
10128if test "$GCC" = yes; then
10129  case $host_os in
10130    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10131    *) lt_awk_arg="/^libraries:/" ;;
10132  esac
10133  case $host_os in
10134    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10135    *) lt_sed_strip_eq="s,=/,/,g" ;;
10136  esac
10137  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10138  case $lt_search_path_spec in
10139  *\;*)
10140    # if the path contains ";" then we assume it to be the separator
10141    # otherwise default to the standard path separator (i.e. ":") - it is
10142    # assumed that no part of a normal pathname contains ";" but that should
10143    # okay in the real world where ";" in dirpaths is itself problematic.
10144    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10145    ;;
10146  *)
10147    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10148    ;;
10149  esac
10150  # Ok, now we have the path, separated by spaces, we can step through it
10151  # and add multilib dir if necessary.
10152  lt_tmp_lt_search_path_spec=
10153  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10154  for lt_sys_path in $lt_search_path_spec; do
10155    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10156      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10157    else
10158      test -d "$lt_sys_path" && \
10159	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10160    fi
10161  done
10162  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10163BEGIN {RS=" "; FS="/|\n";} {
10164  lt_foo="";
10165  lt_count=0;
10166  for (lt_i = NF; lt_i > 0; lt_i--) {
10167    if ($lt_i != "" && $lt_i != ".") {
10168      if ($lt_i == "..") {
10169        lt_count++;
10170      } else {
10171        if (lt_count == 0) {
10172          lt_foo="/" $lt_i lt_foo;
10173        } else {
10174          lt_count--;
10175        }
10176      }
10177    }
10178  }
10179  if (lt_foo != "") { lt_freq[lt_foo]++; }
10180  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10181}'`
10182  # AWK program above erroneously prepends '/' to C:/dos/paths
10183  # for these hosts.
10184  case $host_os in
10185    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10186      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10187  esac
10188  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10189else
10190  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10191fi
10192library_names_spec=
10193libname_spec='lib$name'
10194soname_spec=
10195shrext_cmds=".so"
10196postinstall_cmds=
10197postuninstall_cmds=
10198finish_cmds=
10199finish_eval=
10200shlibpath_var=
10201shlibpath_overrides_runpath=unknown
10202version_type=none
10203dynamic_linker="$host_os ld.so"
10204sys_lib_dlsearch_path_spec="/lib /usr/lib"
10205need_lib_prefix=unknown
10206hardcode_into_libs=no
10207
10208# when you set need_version to no, make sure it does not cause -set_version
10209# flags to be left without arguments
10210need_version=unknown
10211
10212case $host_os in
10213aix3*)
10214  version_type=linux # correct to gnu/linux during the next big refactor
10215  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10216  shlibpath_var=LIBPATH
10217
10218  # AIX 3 has no versioning support, so we append a major version to the name.
10219  soname_spec='${libname}${release}${shared_ext}$major'
10220  ;;
10221
10222aix[4-9]*)
10223  version_type=linux # correct to gnu/linux during the next big refactor
10224  need_lib_prefix=no
10225  need_version=no
10226  hardcode_into_libs=yes
10227  if test "$host_cpu" = ia64; then
10228    # AIX 5 supports IA64
10229    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10230    shlibpath_var=LD_LIBRARY_PATH
10231  else
10232    # With GCC up to 2.95.x, collect2 would create an import file
10233    # for dependence libraries.  The import file would start with
10234    # the line `#! .'.  This would cause the generated library to
10235    # depend on `.', always an invalid library.  This was fixed in
10236    # development snapshots of GCC prior to 3.0.
10237    case $host_os in
10238      aix4 | aix4.[01] | aix4.[01].*)
10239      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10240	   echo ' yes '
10241	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10242	:
10243      else
10244	can_build_shared=no
10245      fi
10246      ;;
10247    esac
10248    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10249    # soname into executable. Probably we can add versioning support to
10250    # collect2, so additional links can be useful in future.
10251    if test "$aix_use_runtimelinking" = yes; then
10252      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10253      # instead of lib<name>.a to let people know that these are not
10254      # typical AIX shared libraries.
10255      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10256    else
10257      # We preserve .a as extension for shared libraries through AIX4.2
10258      # and later when we are not doing run time linking.
10259      library_names_spec='${libname}${release}.a $libname.a'
10260      soname_spec='${libname}${release}${shared_ext}$major'
10261    fi
10262    shlibpath_var=LIBPATH
10263  fi
10264  ;;
10265
10266amigaos*)
10267  case $host_cpu in
10268  powerpc)
10269    # Since July 2007 AmigaOS4 officially supports .so libraries.
10270    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10271    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10272    ;;
10273  m68k)
10274    library_names_spec='$libname.ixlibrary $libname.a'
10275    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10276    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'
10277    ;;
10278  esac
10279  ;;
10280
10281beos*)
10282  library_names_spec='${libname}${shared_ext}'
10283  dynamic_linker="$host_os ld.so"
10284  shlibpath_var=LIBRARY_PATH
10285  ;;
10286
10287bsdi[45]*)
10288  version_type=linux # correct to gnu/linux during the next big refactor
10289  need_version=no
10290  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10291  soname_spec='${libname}${release}${shared_ext}$major'
10292  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10293  shlibpath_var=LD_LIBRARY_PATH
10294  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10295  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10296  # the default ld.so.conf also contains /usr/contrib/lib and
10297  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10298  # libtool to hard-code these into programs
10299  ;;
10300
10301cygwin* | mingw* | pw32* | cegcc*)
10302  version_type=windows
10303  shrext_cmds=".dll"
10304  need_version=no
10305  need_lib_prefix=no
10306
10307  case $GCC,$cc_basename in
10308  yes,*)
10309    # gcc
10310    library_names_spec='$libname.dll.a'
10311    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10312    postinstall_cmds='base_file=`basename \${file}`~
10313      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10314      dldir=$destdir/`dirname \$dlpath`~
10315      test -d \$dldir || mkdir -p \$dldir~
10316      $install_prog $dir/$dlname \$dldir/$dlname~
10317      chmod a+x \$dldir/$dlname~
10318      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10319        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10320      fi'
10321    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10322      dlpath=$dir/\$dldll~
10323       $RM \$dlpath'
10324    shlibpath_overrides_runpath=yes
10325
10326    case $host_os in
10327    cygwin*)
10328      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10329      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10330
10331      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10332      ;;
10333    mingw* | cegcc*)
10334      # MinGW DLLs use traditional 'lib' prefix
10335      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10336      ;;
10337    pw32*)
10338      # pw32 DLLs use 'pw' prefix rather than 'lib'
10339      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10340      ;;
10341    esac
10342    dynamic_linker='Win32 ld.exe'
10343    ;;
10344
10345  *,cl*)
10346    # Native MSVC
10347    libname_spec='$name'
10348    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10349    library_names_spec='${libname}.dll.lib'
10350
10351    case $build_os in
10352    mingw*)
10353      sys_lib_search_path_spec=
10354      lt_save_ifs=$IFS
10355      IFS=';'
10356      for lt_path in $LIB
10357      do
10358        IFS=$lt_save_ifs
10359        # Let DOS variable expansion print the short 8.3 style file name.
10360        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10361        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10362      done
10363      IFS=$lt_save_ifs
10364      # Convert to MSYS style.
10365      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10366      ;;
10367    cygwin*)
10368      # Convert to unix form, then to dos form, then back to unix form
10369      # but this time dos style (no spaces!) so that the unix form looks
10370      # like /cygdrive/c/PROGRA~1:/cygdr...
10371      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10372      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10373      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10374      ;;
10375    *)
10376      sys_lib_search_path_spec="$LIB"
10377      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10378        # It is most probably a Windows format PATH.
10379        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10380      else
10381        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10382      fi
10383      # FIXME: find the short name or the path components, as spaces are
10384      # common. (e.g. "Program Files" -> "PROGRA~1")
10385      ;;
10386    esac
10387
10388    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10389    postinstall_cmds='base_file=`basename \${file}`~
10390      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10391      dldir=$destdir/`dirname \$dlpath`~
10392      test -d \$dldir || mkdir -p \$dldir~
10393      $install_prog $dir/$dlname \$dldir/$dlname'
10394    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10395      dlpath=$dir/\$dldll~
10396       $RM \$dlpath'
10397    shlibpath_overrides_runpath=yes
10398    dynamic_linker='Win32 link.exe'
10399    ;;
10400
10401  *)
10402    # Assume MSVC wrapper
10403    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10404    dynamic_linker='Win32 ld.exe'
10405    ;;
10406  esac
10407  # FIXME: first we should search . and the directory the executable is in
10408  shlibpath_var=PATH
10409  ;;
10410
10411darwin* | rhapsody*)
10412  dynamic_linker="$host_os dyld"
10413  version_type=darwin
10414  need_lib_prefix=no
10415  need_version=no
10416  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10417  soname_spec='${libname}${release}${major}$shared_ext'
10418  shlibpath_overrides_runpath=yes
10419  shlibpath_var=DYLD_LIBRARY_PATH
10420  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10421
10422  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10423  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10424  ;;
10425
10426dgux*)
10427  version_type=linux # correct to gnu/linux during the next big refactor
10428  need_lib_prefix=no
10429  need_version=no
10430  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10431  soname_spec='${libname}${release}${shared_ext}$major'
10432  shlibpath_var=LD_LIBRARY_PATH
10433  ;;
10434
10435freebsd* | dragonfly*)
10436  # DragonFly does not have aout.  When/if they implement a new
10437  # versioning mechanism, adjust this.
10438  if test -x /usr/bin/objformat; then
10439    objformat=`/usr/bin/objformat`
10440  else
10441    case $host_os in
10442    freebsd[23].*) objformat=aout ;;
10443    *) objformat=elf ;;
10444    esac
10445  fi
10446  version_type=freebsd-$objformat
10447  case $version_type in
10448    freebsd-elf*)
10449      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10450      need_version=no
10451      need_lib_prefix=no
10452      ;;
10453    freebsd-*)
10454      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10455      need_version=yes
10456      ;;
10457  esac
10458  shlibpath_var=LD_LIBRARY_PATH
10459  case $host_os in
10460  freebsd2.*)
10461    shlibpath_overrides_runpath=yes
10462    ;;
10463  freebsd3.[01]* | freebsdelf3.[01]*)
10464    shlibpath_overrides_runpath=yes
10465    hardcode_into_libs=yes
10466    ;;
10467  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10468  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10469    shlibpath_overrides_runpath=no
10470    hardcode_into_libs=yes
10471    ;;
10472  *) # from 4.6 on, and DragonFly
10473    shlibpath_overrides_runpath=yes
10474    hardcode_into_libs=yes
10475    ;;
10476  esac
10477  ;;
10478
10479gnu*)
10480  version_type=linux # correct to gnu/linux during the next big refactor
10481  need_lib_prefix=no
10482  need_version=no
10483  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10484  soname_spec='${libname}${release}${shared_ext}$major'
10485  shlibpath_var=LD_LIBRARY_PATH
10486  shlibpath_overrides_runpath=no
10487  hardcode_into_libs=yes
10488  ;;
10489
10490haiku*)
10491  version_type=linux # correct to gnu/linux during the next big refactor
10492  need_lib_prefix=no
10493  need_version=no
10494  dynamic_linker="$host_os runtime_loader"
10495  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10496  soname_spec='${libname}${release}${shared_ext}$major'
10497  shlibpath_var=LIBRARY_PATH
10498  shlibpath_overrides_runpath=yes
10499  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10500  hardcode_into_libs=yes
10501  ;;
10502
10503hpux9* | hpux10* | hpux11*)
10504  # Give a soname corresponding to the major version so that dld.sl refuses to
10505  # link against other versions.
10506  version_type=sunos
10507  need_lib_prefix=no
10508  need_version=no
10509  case $host_cpu in
10510  ia64*)
10511    shrext_cmds='.so'
10512    hardcode_into_libs=yes
10513    dynamic_linker="$host_os dld.so"
10514    shlibpath_var=LD_LIBRARY_PATH
10515    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10516    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10517    soname_spec='${libname}${release}${shared_ext}$major'
10518    if test "X$HPUX_IA64_MODE" = X32; then
10519      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10520    else
10521      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10522    fi
10523    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10524    ;;
10525  hppa*64*)
10526    shrext_cmds='.sl'
10527    hardcode_into_libs=yes
10528    dynamic_linker="$host_os dld.sl"
10529    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10530    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10531    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10532    soname_spec='${libname}${release}${shared_ext}$major'
10533    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10534    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10535    ;;
10536  *)
10537    shrext_cmds='.sl'
10538    dynamic_linker="$host_os dld.sl"
10539    shlibpath_var=SHLIB_PATH
10540    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10541    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10542    soname_spec='${libname}${release}${shared_ext}$major'
10543    ;;
10544  esac
10545  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10546  postinstall_cmds='chmod 555 $lib'
10547  # or fails outright, so override atomically:
10548  install_override_mode=555
10549  ;;
10550
10551interix[3-9]*)
10552  version_type=linux # correct to gnu/linux during the next big refactor
10553  need_lib_prefix=no
10554  need_version=no
10555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10556  soname_spec='${libname}${release}${shared_ext}$major'
10557  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10558  shlibpath_var=LD_LIBRARY_PATH
10559  shlibpath_overrides_runpath=no
10560  hardcode_into_libs=yes
10561  ;;
10562
10563irix5* | irix6* | nonstopux*)
10564  case $host_os in
10565    nonstopux*) version_type=nonstopux ;;
10566    *)
10567	if test "$lt_cv_prog_gnu_ld" = yes; then
10568		version_type=linux # correct to gnu/linux during the next big refactor
10569	else
10570		version_type=irix
10571	fi ;;
10572  esac
10573  need_lib_prefix=no
10574  need_version=no
10575  soname_spec='${libname}${release}${shared_ext}$major'
10576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10577  case $host_os in
10578  irix5* | nonstopux*)
10579    libsuff= shlibsuff=
10580    ;;
10581  *)
10582    case $LD in # libtool.m4 will add one of these switches to LD
10583    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10584      libsuff= shlibsuff= libmagic=32-bit;;
10585    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10586      libsuff=32 shlibsuff=N32 libmagic=N32;;
10587    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10588      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10589    *) libsuff= shlibsuff= libmagic=never-match;;
10590    esac
10591    ;;
10592  esac
10593  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10594  shlibpath_overrides_runpath=no
10595  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10596  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10597  hardcode_into_libs=yes
10598  ;;
10599
10600# No shared lib support for Linux oldld, aout, or coff.
10601linux*oldld* | linux*aout* | linux*coff*)
10602  dynamic_linker=no
10603  ;;
10604
10605# This must be glibc/ELF.
10606linux* | k*bsd*-gnu | kopensolaris*-gnu)
10607  version_type=linux # correct to gnu/linux during the next big refactor
10608  need_lib_prefix=no
10609  need_version=no
10610  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10611  soname_spec='${libname}${release}${shared_ext}$major'
10612  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10613  shlibpath_var=LD_LIBRARY_PATH
10614  shlibpath_overrides_runpath=no
10615
10616  # Some binutils ld are patched to set DT_RUNPATH
10617  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10618  $as_echo_n "(cached) " >&6
10619else
10620  lt_cv_shlibpath_overrides_runpath=no
10621    save_LDFLAGS=$LDFLAGS
10622    save_libdir=$libdir
10623    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10624	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10625    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10626/* end confdefs.h.  */
10627
10628int
10629main ()
10630{
10631
10632  ;
10633  return 0;
10634}
10635_ACEOF
10636if ac_fn_c_try_link "$LINENO"; then :
10637  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10638  lt_cv_shlibpath_overrides_runpath=yes
10639fi
10640fi
10641rm -f core conftest.err conftest.$ac_objext \
10642    conftest$ac_exeext conftest.$ac_ext
10643    LDFLAGS=$save_LDFLAGS
10644    libdir=$save_libdir
10645
10646fi
10647
10648  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10649
10650  # This implies no fast_install, which is unacceptable.
10651  # Some rework will be needed to allow for fast_install
10652  # before this can be enabled.
10653  hardcode_into_libs=yes
10654
10655  # Append ld.so.conf contents to the search path
10656  if test -f /etc/ld.so.conf; then
10657    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' ' '`
10658    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10659  fi
10660
10661  # We used to test for /lib/ld.so.1 and disable shared libraries on
10662  # powerpc, because MkLinux only supported shared libraries with the
10663  # GNU dynamic linker.  Since this was broken with cross compilers,
10664  # most powerpc-linux boxes support dynamic linking these days and
10665  # people can always --disable-shared, the test was removed, and we
10666  # assume the GNU/Linux dynamic linker is in use.
10667  dynamic_linker='GNU/Linux ld.so'
10668  ;;
10669
10670netbsd*)
10671  version_type=sunos
10672  need_lib_prefix=no
10673  need_version=no
10674  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10675    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10676    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10677    dynamic_linker='NetBSD (a.out) ld.so'
10678  else
10679    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10680    soname_spec='${libname}${release}${shared_ext}$major'
10681    dynamic_linker='NetBSD ld.elf_so'
10682  fi
10683  shlibpath_var=LD_LIBRARY_PATH
10684  shlibpath_overrides_runpath=yes
10685  hardcode_into_libs=yes
10686  ;;
10687
10688newsos6)
10689  version_type=linux # correct to gnu/linux during the next big refactor
10690  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10691  shlibpath_var=LD_LIBRARY_PATH
10692  shlibpath_overrides_runpath=yes
10693  ;;
10694
10695*nto* | *qnx*)
10696  version_type=qnx
10697  need_lib_prefix=no
10698  need_version=no
10699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10700  soname_spec='${libname}${release}${shared_ext}$major'
10701  shlibpath_var=LD_LIBRARY_PATH
10702  shlibpath_overrides_runpath=no
10703  hardcode_into_libs=yes
10704  dynamic_linker='ldqnx.so'
10705  ;;
10706
10707openbsd*)
10708  version_type=sunos
10709  sys_lib_dlsearch_path_spec="/usr/lib"
10710  need_lib_prefix=no
10711  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10712  case $host_os in
10713    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10714    *)				need_version=no  ;;
10715  esac
10716  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10717  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10718  shlibpath_var=LD_LIBRARY_PATH
10719  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10720    case $host_os in
10721      openbsd2.[89] | openbsd2.[89].*)
10722	shlibpath_overrides_runpath=no
10723	;;
10724      *)
10725	shlibpath_overrides_runpath=yes
10726	;;
10727      esac
10728  else
10729    shlibpath_overrides_runpath=yes
10730  fi
10731  ;;
10732
10733os2*)
10734  libname_spec='$name'
10735  shrext_cmds=".dll"
10736  need_lib_prefix=no
10737  library_names_spec='$libname${shared_ext} $libname.a'
10738  dynamic_linker='OS/2 ld.exe'
10739  shlibpath_var=LIBPATH
10740  ;;
10741
10742osf3* | osf4* | osf5*)
10743  version_type=osf
10744  need_lib_prefix=no
10745  need_version=no
10746  soname_spec='${libname}${release}${shared_ext}$major'
10747  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10748  shlibpath_var=LD_LIBRARY_PATH
10749  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10750  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10751  ;;
10752
10753rdos*)
10754  dynamic_linker=no
10755  ;;
10756
10757solaris*)
10758  version_type=linux # correct to gnu/linux during the next big refactor
10759  need_lib_prefix=no
10760  need_version=no
10761  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10762  soname_spec='${libname}${release}${shared_ext}$major'
10763  shlibpath_var=LD_LIBRARY_PATH
10764  shlibpath_overrides_runpath=yes
10765  hardcode_into_libs=yes
10766  # ldd complains unless libraries are executable
10767  postinstall_cmds='chmod +x $lib'
10768  ;;
10769
10770sunos4*)
10771  version_type=sunos
10772  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10773  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10774  shlibpath_var=LD_LIBRARY_PATH
10775  shlibpath_overrides_runpath=yes
10776  if test "$with_gnu_ld" = yes; then
10777    need_lib_prefix=no
10778  fi
10779  need_version=yes
10780  ;;
10781
10782sysv4 | sysv4.3*)
10783  version_type=linux # correct to gnu/linux during the next big refactor
10784  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10785  soname_spec='${libname}${release}${shared_ext}$major'
10786  shlibpath_var=LD_LIBRARY_PATH
10787  case $host_vendor in
10788    sni)
10789      shlibpath_overrides_runpath=no
10790      need_lib_prefix=no
10791      runpath_var=LD_RUN_PATH
10792      ;;
10793    siemens)
10794      need_lib_prefix=no
10795      ;;
10796    motorola)
10797      need_lib_prefix=no
10798      need_version=no
10799      shlibpath_overrides_runpath=no
10800      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10801      ;;
10802  esac
10803  ;;
10804
10805sysv4*MP*)
10806  if test -d /usr/nec ;then
10807    version_type=linux # correct to gnu/linux during the next big refactor
10808    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10809    soname_spec='$libname${shared_ext}.$major'
10810    shlibpath_var=LD_LIBRARY_PATH
10811  fi
10812  ;;
10813
10814sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10815  version_type=freebsd-elf
10816  need_lib_prefix=no
10817  need_version=no
10818  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10819  soname_spec='${libname}${release}${shared_ext}$major'
10820  shlibpath_var=LD_LIBRARY_PATH
10821  shlibpath_overrides_runpath=yes
10822  hardcode_into_libs=yes
10823  if test "$with_gnu_ld" = yes; then
10824    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10825  else
10826    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10827    case $host_os in
10828      sco3.2v5*)
10829        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10830	;;
10831    esac
10832  fi
10833  sys_lib_dlsearch_path_spec='/usr/lib'
10834  ;;
10835
10836tpf*)
10837  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10838  version_type=linux # correct to gnu/linux during the next big refactor
10839  need_lib_prefix=no
10840  need_version=no
10841  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10842  shlibpath_var=LD_LIBRARY_PATH
10843  shlibpath_overrides_runpath=no
10844  hardcode_into_libs=yes
10845  ;;
10846
10847uts4*)
10848  version_type=linux # correct to gnu/linux during the next big refactor
10849  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10850  soname_spec='${libname}${release}${shared_ext}$major'
10851  shlibpath_var=LD_LIBRARY_PATH
10852  ;;
10853
10854*)
10855  dynamic_linker=no
10856  ;;
10857esac
10858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10859$as_echo "$dynamic_linker" >&6; }
10860test "$dynamic_linker" = no && can_build_shared=no
10861
10862variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10863if test "$GCC" = yes; then
10864  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10865fi
10866
10867if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10868  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10869fi
10870if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10871  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10872fi
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10966$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10967hardcode_action=
10968if test -n "$hardcode_libdir_flag_spec" ||
10969   test -n "$runpath_var" ||
10970   test "X$hardcode_automatic" = "Xyes" ; then
10971
10972  # We can hardcode non-existent directories.
10973  if test "$hardcode_direct" != no &&
10974     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10975     # have to relink, otherwise we might link with an installed library
10976     # when we should be linking with a yet-to-be-installed one
10977     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10978     test "$hardcode_minus_L" != no; then
10979    # Linking always hardcodes the temporary library directory.
10980    hardcode_action=relink
10981  else
10982    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10983    hardcode_action=immediate
10984  fi
10985else
10986  # We cannot hardcode anything, or else we can only hardcode existing
10987  # directories.
10988  hardcode_action=unsupported
10989fi
10990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10991$as_echo "$hardcode_action" >&6; }
10992
10993if test "$hardcode_action" = relink ||
10994   test "$inherit_rpath" = yes; then
10995  # Fast installation is not supported
10996  enable_fast_install=no
10997elif test "$shlibpath_overrides_runpath" = yes ||
10998     test "$enable_shared" = no; then
10999  # Fast installation is not necessary
11000  enable_fast_install=needless
11001fi
11002
11003
11004
11005
11006
11007
11008  if test "x$enable_dlopen" != xyes; then
11009  enable_dlopen=unknown
11010  enable_dlopen_self=unknown
11011  enable_dlopen_self_static=unknown
11012else
11013  lt_cv_dlopen=no
11014  lt_cv_dlopen_libs=
11015
11016  case $host_os in
11017  beos*)
11018    lt_cv_dlopen="load_add_on"
11019    lt_cv_dlopen_libs=
11020    lt_cv_dlopen_self=yes
11021    ;;
11022
11023  mingw* | pw32* | cegcc*)
11024    lt_cv_dlopen="LoadLibrary"
11025    lt_cv_dlopen_libs=
11026    ;;
11027
11028  cygwin*)
11029    lt_cv_dlopen="dlopen"
11030    lt_cv_dlopen_libs=
11031    ;;
11032
11033  darwin*)
11034  # if libdl is installed we need to link against it
11035    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11036$as_echo_n "checking for dlopen in -ldl... " >&6; }
11037if ${ac_cv_lib_dl_dlopen+:} false; then :
11038  $as_echo_n "(cached) " >&6
11039else
11040  ac_check_lib_save_LIBS=$LIBS
11041LIBS="-ldl  $LIBS"
11042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043/* end confdefs.h.  */
11044
11045/* Override any GCC internal prototype to avoid an error.
11046   Use char because int might match the return type of a GCC
11047   builtin and then its argument prototype would still apply.  */
11048#ifdef __cplusplus
11049extern "C"
11050#endif
11051char dlopen ();
11052int
11053main ()
11054{
11055return dlopen ();
11056  ;
11057  return 0;
11058}
11059_ACEOF
11060if ac_fn_c_try_link "$LINENO"; then :
11061  ac_cv_lib_dl_dlopen=yes
11062else
11063  ac_cv_lib_dl_dlopen=no
11064fi
11065rm -f core conftest.err conftest.$ac_objext \
11066    conftest$ac_exeext conftest.$ac_ext
11067LIBS=$ac_check_lib_save_LIBS
11068fi
11069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11070$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11071if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11072  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11073else
11074
11075    lt_cv_dlopen="dyld"
11076    lt_cv_dlopen_libs=
11077    lt_cv_dlopen_self=yes
11078
11079fi
11080
11081    ;;
11082
11083  *)
11084    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11085if test "x$ac_cv_func_shl_load" = xyes; then :
11086  lt_cv_dlopen="shl_load"
11087else
11088  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11089$as_echo_n "checking for shl_load in -ldld... " >&6; }
11090if ${ac_cv_lib_dld_shl_load+:} false; then :
11091  $as_echo_n "(cached) " >&6
11092else
11093  ac_check_lib_save_LIBS=$LIBS
11094LIBS="-ldld  $LIBS"
11095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11096/* end confdefs.h.  */
11097
11098/* Override any GCC internal prototype to avoid an error.
11099   Use char because int might match the return type of a GCC
11100   builtin and then its argument prototype would still apply.  */
11101#ifdef __cplusplus
11102extern "C"
11103#endif
11104char shl_load ();
11105int
11106main ()
11107{
11108return shl_load ();
11109  ;
11110  return 0;
11111}
11112_ACEOF
11113if ac_fn_c_try_link "$LINENO"; then :
11114  ac_cv_lib_dld_shl_load=yes
11115else
11116  ac_cv_lib_dld_shl_load=no
11117fi
11118rm -f core conftest.err conftest.$ac_objext \
11119    conftest$ac_exeext conftest.$ac_ext
11120LIBS=$ac_check_lib_save_LIBS
11121fi
11122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11123$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11124if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11125  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11126else
11127  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11128if test "x$ac_cv_func_dlopen" = xyes; then :
11129  lt_cv_dlopen="dlopen"
11130else
11131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11132$as_echo_n "checking for dlopen in -ldl... " >&6; }
11133if ${ac_cv_lib_dl_dlopen+:} false; then :
11134  $as_echo_n "(cached) " >&6
11135else
11136  ac_check_lib_save_LIBS=$LIBS
11137LIBS="-ldl  $LIBS"
11138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11139/* end confdefs.h.  */
11140
11141/* Override any GCC internal prototype to avoid an error.
11142   Use char because int might match the return type of a GCC
11143   builtin and then its argument prototype would still apply.  */
11144#ifdef __cplusplus
11145extern "C"
11146#endif
11147char dlopen ();
11148int
11149main ()
11150{
11151return dlopen ();
11152  ;
11153  return 0;
11154}
11155_ACEOF
11156if ac_fn_c_try_link "$LINENO"; then :
11157  ac_cv_lib_dl_dlopen=yes
11158else
11159  ac_cv_lib_dl_dlopen=no
11160fi
11161rm -f core conftest.err conftest.$ac_objext \
11162    conftest$ac_exeext conftest.$ac_ext
11163LIBS=$ac_check_lib_save_LIBS
11164fi
11165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11166$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11167if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11168  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11169else
11170  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11171$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11172if ${ac_cv_lib_svld_dlopen+:} false; then :
11173  $as_echo_n "(cached) " >&6
11174else
11175  ac_check_lib_save_LIBS=$LIBS
11176LIBS="-lsvld  $LIBS"
11177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11178/* end confdefs.h.  */
11179
11180/* Override any GCC internal prototype to avoid an error.
11181   Use char because int might match the return type of a GCC
11182   builtin and then its argument prototype would still apply.  */
11183#ifdef __cplusplus
11184extern "C"
11185#endif
11186char dlopen ();
11187int
11188main ()
11189{
11190return dlopen ();
11191  ;
11192  return 0;
11193}
11194_ACEOF
11195if ac_fn_c_try_link "$LINENO"; then :
11196  ac_cv_lib_svld_dlopen=yes
11197else
11198  ac_cv_lib_svld_dlopen=no
11199fi
11200rm -f core conftest.err conftest.$ac_objext \
11201    conftest$ac_exeext conftest.$ac_ext
11202LIBS=$ac_check_lib_save_LIBS
11203fi
11204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11205$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11206if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11207  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11208else
11209  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11210$as_echo_n "checking for dld_link in -ldld... " >&6; }
11211if ${ac_cv_lib_dld_dld_link+:} false; then :
11212  $as_echo_n "(cached) " >&6
11213else
11214  ac_check_lib_save_LIBS=$LIBS
11215LIBS="-ldld  $LIBS"
11216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11217/* end confdefs.h.  */
11218
11219/* Override any GCC internal prototype to avoid an error.
11220   Use char because int might match the return type of a GCC
11221   builtin and then its argument prototype would still apply.  */
11222#ifdef __cplusplus
11223extern "C"
11224#endif
11225char dld_link ();
11226int
11227main ()
11228{
11229return dld_link ();
11230  ;
11231  return 0;
11232}
11233_ACEOF
11234if ac_fn_c_try_link "$LINENO"; then :
11235  ac_cv_lib_dld_dld_link=yes
11236else
11237  ac_cv_lib_dld_dld_link=no
11238fi
11239rm -f core conftest.err conftest.$ac_objext \
11240    conftest$ac_exeext conftest.$ac_ext
11241LIBS=$ac_check_lib_save_LIBS
11242fi
11243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11244$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11245if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11246  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11247fi
11248
11249
11250fi
11251
11252
11253fi
11254
11255
11256fi
11257
11258
11259fi
11260
11261
11262fi
11263
11264    ;;
11265  esac
11266
11267  if test "x$lt_cv_dlopen" != xno; then
11268    enable_dlopen=yes
11269  else
11270    enable_dlopen=no
11271  fi
11272
11273  case $lt_cv_dlopen in
11274  dlopen)
11275    save_CPPFLAGS="$CPPFLAGS"
11276    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11277
11278    save_LDFLAGS="$LDFLAGS"
11279    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11280
11281    save_LIBS="$LIBS"
11282    LIBS="$lt_cv_dlopen_libs $LIBS"
11283
11284    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11285$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11286if ${lt_cv_dlopen_self+:} false; then :
11287  $as_echo_n "(cached) " >&6
11288else
11289  	  if test "$cross_compiling" = yes; then :
11290  lt_cv_dlopen_self=cross
11291else
11292  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11293  lt_status=$lt_dlunknown
11294  cat > conftest.$ac_ext <<_LT_EOF
11295#line $LINENO "configure"
11296#include "confdefs.h"
11297
11298#if HAVE_DLFCN_H
11299#include <dlfcn.h>
11300#endif
11301
11302#include <stdio.h>
11303
11304#ifdef RTLD_GLOBAL
11305#  define LT_DLGLOBAL		RTLD_GLOBAL
11306#else
11307#  ifdef DL_GLOBAL
11308#    define LT_DLGLOBAL		DL_GLOBAL
11309#  else
11310#    define LT_DLGLOBAL		0
11311#  endif
11312#endif
11313
11314/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11315   find out it does not work in some platform. */
11316#ifndef LT_DLLAZY_OR_NOW
11317#  ifdef RTLD_LAZY
11318#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11319#  else
11320#    ifdef DL_LAZY
11321#      define LT_DLLAZY_OR_NOW		DL_LAZY
11322#    else
11323#      ifdef RTLD_NOW
11324#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11325#      else
11326#        ifdef DL_NOW
11327#          define LT_DLLAZY_OR_NOW	DL_NOW
11328#        else
11329#          define LT_DLLAZY_OR_NOW	0
11330#        endif
11331#      endif
11332#    endif
11333#  endif
11334#endif
11335
11336/* When -fvisbility=hidden is used, assume the code has been annotated
11337   correspondingly for the symbols needed.  */
11338#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11339int fnord () __attribute__((visibility("default")));
11340#endif
11341
11342int fnord () { return 42; }
11343int main ()
11344{
11345  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11346  int status = $lt_dlunknown;
11347
11348  if (self)
11349    {
11350      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11351      else
11352        {
11353	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11354          else puts (dlerror ());
11355	}
11356      /* dlclose (self); */
11357    }
11358  else
11359    puts (dlerror ());
11360
11361  return status;
11362}
11363_LT_EOF
11364  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11365  (eval $ac_link) 2>&5
11366  ac_status=$?
11367  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11368  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11369    (./conftest; exit; ) >&5 2>/dev/null
11370    lt_status=$?
11371    case x$lt_status in
11372      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11373      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11374      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11375    esac
11376  else :
11377    # compilation failed
11378    lt_cv_dlopen_self=no
11379  fi
11380fi
11381rm -fr conftest*
11382
11383
11384fi
11385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11386$as_echo "$lt_cv_dlopen_self" >&6; }
11387
11388    if test "x$lt_cv_dlopen_self" = xyes; then
11389      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11390      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11391$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11392if ${lt_cv_dlopen_self_static+:} false; then :
11393  $as_echo_n "(cached) " >&6
11394else
11395  	  if test "$cross_compiling" = yes; then :
11396  lt_cv_dlopen_self_static=cross
11397else
11398  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11399  lt_status=$lt_dlunknown
11400  cat > conftest.$ac_ext <<_LT_EOF
11401#line $LINENO "configure"
11402#include "confdefs.h"
11403
11404#if HAVE_DLFCN_H
11405#include <dlfcn.h>
11406#endif
11407
11408#include <stdio.h>
11409
11410#ifdef RTLD_GLOBAL
11411#  define LT_DLGLOBAL		RTLD_GLOBAL
11412#else
11413#  ifdef DL_GLOBAL
11414#    define LT_DLGLOBAL		DL_GLOBAL
11415#  else
11416#    define LT_DLGLOBAL		0
11417#  endif
11418#endif
11419
11420/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11421   find out it does not work in some platform. */
11422#ifndef LT_DLLAZY_OR_NOW
11423#  ifdef RTLD_LAZY
11424#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11425#  else
11426#    ifdef DL_LAZY
11427#      define LT_DLLAZY_OR_NOW		DL_LAZY
11428#    else
11429#      ifdef RTLD_NOW
11430#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11431#      else
11432#        ifdef DL_NOW
11433#          define LT_DLLAZY_OR_NOW	DL_NOW
11434#        else
11435#          define LT_DLLAZY_OR_NOW	0
11436#        endif
11437#      endif
11438#    endif
11439#  endif
11440#endif
11441
11442/* When -fvisbility=hidden is used, assume the code has been annotated
11443   correspondingly for the symbols needed.  */
11444#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11445int fnord () __attribute__((visibility("default")));
11446#endif
11447
11448int fnord () { return 42; }
11449int main ()
11450{
11451  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11452  int status = $lt_dlunknown;
11453
11454  if (self)
11455    {
11456      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11457      else
11458        {
11459	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11460          else puts (dlerror ());
11461	}
11462      /* dlclose (self); */
11463    }
11464  else
11465    puts (dlerror ());
11466
11467  return status;
11468}
11469_LT_EOF
11470  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11471  (eval $ac_link) 2>&5
11472  ac_status=$?
11473  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11474  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11475    (./conftest; exit; ) >&5 2>/dev/null
11476    lt_status=$?
11477    case x$lt_status in
11478      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11479      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11480      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11481    esac
11482  else :
11483    # compilation failed
11484    lt_cv_dlopen_self_static=no
11485  fi
11486fi
11487rm -fr conftest*
11488
11489
11490fi
11491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11492$as_echo "$lt_cv_dlopen_self_static" >&6; }
11493    fi
11494
11495    CPPFLAGS="$save_CPPFLAGS"
11496    LDFLAGS="$save_LDFLAGS"
11497    LIBS="$save_LIBS"
11498    ;;
11499  esac
11500
11501  case $lt_cv_dlopen_self in
11502  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11503  *) enable_dlopen_self=unknown ;;
11504  esac
11505
11506  case $lt_cv_dlopen_self_static in
11507  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11508  *) enable_dlopen_self_static=unknown ;;
11509  esac
11510fi
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528striplib=
11529old_striplib=
11530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11531$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11532if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11533  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11534  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11536$as_echo "yes" >&6; }
11537else
11538# FIXME - insert some real tests, host_os isn't really good enough
11539  case $host_os in
11540  darwin*)
11541    if test -n "$STRIP" ; then
11542      striplib="$STRIP -x"
11543      old_striplib="$STRIP -S"
11544      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11545$as_echo "yes" >&6; }
11546    else
11547      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11548$as_echo "no" >&6; }
11549    fi
11550    ;;
11551  *)
11552    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11553$as_echo "no" >&6; }
11554    ;;
11555  esac
11556fi
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569  # Report which library types will actually be built
11570  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11571$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11573$as_echo "$can_build_shared" >&6; }
11574
11575  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11576$as_echo_n "checking whether to build shared libraries... " >&6; }
11577  test "$can_build_shared" = "no" && enable_shared=no
11578
11579  # On AIX, shared libraries and static libraries use the same namespace, and
11580  # are all built from PIC.
11581  case $host_os in
11582  aix3*)
11583    test "$enable_shared" = yes && enable_static=no
11584    if test -n "$RANLIB"; then
11585      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11586      postinstall_cmds='$RANLIB $lib'
11587    fi
11588    ;;
11589
11590  aix[4-9]*)
11591    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11592      test "$enable_shared" = yes && enable_static=no
11593    fi
11594    ;;
11595  esac
11596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11597$as_echo "$enable_shared" >&6; }
11598
11599  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11600$as_echo_n "checking whether to build static libraries... " >&6; }
11601  # Make sure either enable_shared or enable_static is yes.
11602  test "$enable_shared" = yes || enable_static=yes
11603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11604$as_echo "$enable_static" >&6; }
11605
11606
11607
11608
11609fi
11610ac_ext=c
11611ac_cpp='$CPP $CPPFLAGS'
11612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11614ac_compiler_gnu=$ac_cv_c_compiler_gnu
11615
11616CC="$lt_save_CC"
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632        ac_config_commands="$ac_config_commands libtool"
11633
11634
11635
11636
11637# Only expand once:
11638
11639
11640
11641# Require X.Org macros 1.8 or later
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11654$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11655if ${ac_cv_prog_cc_c99+:} false; then :
11656  $as_echo_n "(cached) " >&6
11657else
11658  ac_cv_prog_cc_c99=no
11659ac_save_CC=$CC
11660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661/* end confdefs.h.  */
11662#include <stdarg.h>
11663#include <stdbool.h>
11664#include <stdlib.h>
11665#include <wchar.h>
11666#include <stdio.h>
11667
11668// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11669#define debug(...) fprintf (stderr, __VA_ARGS__)
11670#define showlist(...) puts (#__VA_ARGS__)
11671#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11672static void
11673test_varargs_macros (void)
11674{
11675  int x = 1234;
11676  int y = 5678;
11677  debug ("Flag");
11678  debug ("X = %d\n", x);
11679  showlist (The first, second, and third items.);
11680  report (x>y, "x is %d but y is %d", x, y);
11681}
11682
11683// Check long long types.
11684#define BIG64 18446744073709551615ull
11685#define BIG32 4294967295ul
11686#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11687#if !BIG_OK
11688  your preprocessor is broken;
11689#endif
11690#if BIG_OK
11691#else
11692  your preprocessor is broken;
11693#endif
11694static long long int bignum = -9223372036854775807LL;
11695static unsigned long long int ubignum = BIG64;
11696
11697struct incomplete_array
11698{
11699  int datasize;
11700  double data[];
11701};
11702
11703struct named_init {
11704  int number;
11705  const wchar_t *name;
11706  double average;
11707};
11708
11709typedef const char *ccp;
11710
11711static inline int
11712test_restrict (ccp restrict text)
11713{
11714  // See if C++-style comments work.
11715  // Iterate through items via the restricted pointer.
11716  // Also check for declarations in for loops.
11717  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11718    continue;
11719  return 0;
11720}
11721
11722// Check varargs and va_copy.
11723static void
11724test_varargs (const char *format, ...)
11725{
11726  va_list args;
11727  va_start (args, format);
11728  va_list args_copy;
11729  va_copy (args_copy, args);
11730
11731  const char *str;
11732  int number;
11733  float fnumber;
11734
11735  while (*format)
11736    {
11737      switch (*format++)
11738	{
11739	case 's': // string
11740	  str = va_arg (args_copy, const char *);
11741	  break;
11742	case 'd': // int
11743	  number = va_arg (args_copy, int);
11744	  break;
11745	case 'f': // float
11746	  fnumber = va_arg (args_copy, double);
11747	  break;
11748	default:
11749	  break;
11750	}
11751    }
11752  va_end (args_copy);
11753  va_end (args);
11754}
11755
11756int
11757main ()
11758{
11759
11760  // Check bool.
11761  _Bool success = false;
11762
11763  // Check restrict.
11764  if (test_restrict ("String literal") == 0)
11765    success = true;
11766  char *restrict newvar = "Another string";
11767
11768  // Check varargs.
11769  test_varargs ("s, d' f .", "string", 65, 34.234);
11770  test_varargs_macros ();
11771
11772  // Check flexible array members.
11773  struct incomplete_array *ia =
11774    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11775  ia->datasize = 10;
11776  for (int i = 0; i < ia->datasize; ++i)
11777    ia->data[i] = i * 1.234;
11778
11779  // Check named initializers.
11780  struct named_init ni = {
11781    .number = 34,
11782    .name = L"Test wide string",
11783    .average = 543.34343,
11784  };
11785
11786  ni.number = 58;
11787
11788  int dynamic_array[ni.number];
11789  dynamic_array[ni.number - 1] = 543;
11790
11791  // work around unused variable warnings
11792  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11793	  || dynamic_array[ni.number - 1] != 543);
11794
11795  ;
11796  return 0;
11797}
11798_ACEOF
11799for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11800do
11801  CC="$ac_save_CC $ac_arg"
11802  if ac_fn_c_try_compile "$LINENO"; then :
11803  ac_cv_prog_cc_c99=$ac_arg
11804fi
11805rm -f core conftest.err conftest.$ac_objext
11806  test "x$ac_cv_prog_cc_c99" != "xno" && break
11807done
11808rm -f conftest.$ac_ext
11809CC=$ac_save_CC
11810
11811fi
11812# AC_CACHE_VAL
11813case "x$ac_cv_prog_cc_c99" in
11814  x)
11815    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11816$as_echo "none needed" >&6; } ;;
11817  xno)
11818    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11819$as_echo "unsupported" >&6; } ;;
11820  *)
11821    CC="$CC $ac_cv_prog_cc_c99"
11822    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11823$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11824esac
11825if test "x$ac_cv_prog_cc_c99" != xno; then :
11826
11827fi
11828
11829
11830
11831
11832
11833
11834ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11835if test "x$ac_cv_have_decl___clang__" = xyes; then :
11836  CLANGCC="yes"
11837else
11838  CLANGCC="no"
11839fi
11840
11841ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11842if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11843  INTELCC="yes"
11844else
11845  INTELCC="no"
11846fi
11847
11848ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11849if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11850  SUNCC="yes"
11851else
11852  SUNCC="no"
11853fi
11854
11855
11856
11857
11858if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11859	if test -n "$ac_tool_prefix"; then
11860  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11861set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11863$as_echo_n "checking for $ac_word... " >&6; }
11864if ${ac_cv_path_PKG_CONFIG+:} false; then :
11865  $as_echo_n "(cached) " >&6
11866else
11867  case $PKG_CONFIG in
11868  [\\/]* | ?:[\\/]*)
11869  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11870  ;;
11871  *)
11872  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873for as_dir in $PATH
11874do
11875  IFS=$as_save_IFS
11876  test -z "$as_dir" && as_dir=.
11877    for ac_exec_ext in '' $ac_executable_extensions; do
11878  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11879    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11880    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11881    break 2
11882  fi
11883done
11884  done
11885IFS=$as_save_IFS
11886
11887  ;;
11888esac
11889fi
11890PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11891if test -n "$PKG_CONFIG"; then
11892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11893$as_echo "$PKG_CONFIG" >&6; }
11894else
11895  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896$as_echo "no" >&6; }
11897fi
11898
11899
11900fi
11901if test -z "$ac_cv_path_PKG_CONFIG"; then
11902  ac_pt_PKG_CONFIG=$PKG_CONFIG
11903  # Extract the first word of "pkg-config", so it can be a program name with args.
11904set dummy pkg-config; ac_word=$2
11905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11906$as_echo_n "checking for $ac_word... " >&6; }
11907if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11908  $as_echo_n "(cached) " >&6
11909else
11910  case $ac_pt_PKG_CONFIG in
11911  [\\/]* | ?:[\\/]*)
11912  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11913  ;;
11914  *)
11915  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11916for as_dir in $PATH
11917do
11918  IFS=$as_save_IFS
11919  test -z "$as_dir" && as_dir=.
11920    for ac_exec_ext in '' $ac_executable_extensions; do
11921  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11922    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11923    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11924    break 2
11925  fi
11926done
11927  done
11928IFS=$as_save_IFS
11929
11930  ;;
11931esac
11932fi
11933ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11934if test -n "$ac_pt_PKG_CONFIG"; then
11935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11936$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11937else
11938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11939$as_echo "no" >&6; }
11940fi
11941
11942  if test "x$ac_pt_PKG_CONFIG" = x; then
11943    PKG_CONFIG=""
11944  else
11945    case $cross_compiling:$ac_tool_warned in
11946yes:)
11947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11949ac_tool_warned=yes ;;
11950esac
11951    PKG_CONFIG=$ac_pt_PKG_CONFIG
11952  fi
11953else
11954  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11955fi
11956
11957fi
11958if test -n "$PKG_CONFIG"; then
11959	_pkg_min_version=0.9.0
11960	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11961$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11962	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11963		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11964$as_echo "yes" >&6; }
11965	else
11966		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11967$as_echo "no" >&6; }
11968		PKG_CONFIG=""
11969	fi
11970
11971fi
11972
11973
11974
11975
11976
11977# Check whether --enable-selective-werror was given.
11978if test "${enable_selective_werror+set}" = set; then :
11979  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11980else
11981  SELECTIVE_WERROR=yes
11982fi
11983
11984
11985
11986
11987
11988# -v is too short to test reliably with XORG_TESTSET_CFLAG
11989if test "x$SUNCC" = "xyes"; then
11990    BASE_CFLAGS="-v"
11991else
11992    BASE_CFLAGS=""
11993fi
11994
11995# This chunk of warnings were those that existed in the legacy CWARNFLAGS
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009xorg_testset_save_CFLAGS="$CFLAGS"
12010
12011if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12012	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12013	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12014$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12015if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12016  $as_echo_n "(cached) " >&6
12017else
12018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12019/* end confdefs.h.  */
12020int i;
12021_ACEOF
12022if ac_fn_c_try_compile "$LINENO"; then :
12023  xorg_cv_cc_flag_unknown_warning_option=yes
12024else
12025  xorg_cv_cc_flag_unknown_warning_option=no
12026fi
12027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12028fi
12029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12030$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12031	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12032	CFLAGS="$xorg_testset_save_CFLAGS"
12033fi
12034
12035if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12036	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12037		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12038	fi
12039	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12040	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12041$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12042if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12043  $as_echo_n "(cached) " >&6
12044else
12045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046/* end confdefs.h.  */
12047int i;
12048_ACEOF
12049if ac_fn_c_try_compile "$LINENO"; then :
12050  xorg_cv_cc_flag_unused_command_line_argument=yes
12051else
12052  xorg_cv_cc_flag_unused_command_line_argument=no
12053fi
12054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12055fi
12056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12057$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12058	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12059	CFLAGS="$xorg_testset_save_CFLAGS"
12060fi
12061
12062found="no"
12063
12064	if test $found = "no" ; then
12065		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12066			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12067		fi
12068
12069		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12070			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12071		fi
12072
12073		CFLAGS="$CFLAGS -Wall"
12074
12075		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12076$as_echo_n "checking if $CC supports -Wall... " >&6; }
12077		cacheid=xorg_cv_cc_flag__Wall
12078		if eval \${$cacheid+:} false; then :
12079  $as_echo_n "(cached) " >&6
12080else
12081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12082/* end confdefs.h.  */
12083int i;
12084int
12085main ()
12086{
12087
12088  ;
12089  return 0;
12090}
12091_ACEOF
12092if ac_fn_c_try_link "$LINENO"; then :
12093  eval $cacheid=yes
12094else
12095  eval $cacheid=no
12096fi
12097rm -f core conftest.err conftest.$ac_objext \
12098    conftest$ac_exeext conftest.$ac_ext
12099fi
12100
12101
12102		CFLAGS="$xorg_testset_save_CFLAGS"
12103
12104		eval supported=\$$cacheid
12105		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12106$as_echo "$supported" >&6; }
12107		if test "$supported" = "yes" ; then
12108			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12109			found="yes"
12110		fi
12111	fi
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127xorg_testset_save_CFLAGS="$CFLAGS"
12128
12129if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12130	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12131	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12132$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12133if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12134  $as_echo_n "(cached) " >&6
12135else
12136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12137/* end confdefs.h.  */
12138int i;
12139_ACEOF
12140if ac_fn_c_try_compile "$LINENO"; then :
12141  xorg_cv_cc_flag_unknown_warning_option=yes
12142else
12143  xorg_cv_cc_flag_unknown_warning_option=no
12144fi
12145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12146fi
12147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12148$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12149	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12150	CFLAGS="$xorg_testset_save_CFLAGS"
12151fi
12152
12153if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12154	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12155		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12156	fi
12157	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12158	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12159$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12160if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12161  $as_echo_n "(cached) " >&6
12162else
12163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164/* end confdefs.h.  */
12165int i;
12166_ACEOF
12167if ac_fn_c_try_compile "$LINENO"; then :
12168  xorg_cv_cc_flag_unused_command_line_argument=yes
12169else
12170  xorg_cv_cc_flag_unused_command_line_argument=no
12171fi
12172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12173fi
12174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12175$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12176	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12177	CFLAGS="$xorg_testset_save_CFLAGS"
12178fi
12179
12180found="no"
12181
12182	if test $found = "no" ; then
12183		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12184			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12185		fi
12186
12187		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12188			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12189		fi
12190
12191		CFLAGS="$CFLAGS -Wpointer-arith"
12192
12193		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12194$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12195		cacheid=xorg_cv_cc_flag__Wpointer_arith
12196		if eval \${$cacheid+:} false; then :
12197  $as_echo_n "(cached) " >&6
12198else
12199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12200/* end confdefs.h.  */
12201int i;
12202int
12203main ()
12204{
12205
12206  ;
12207  return 0;
12208}
12209_ACEOF
12210if ac_fn_c_try_link "$LINENO"; then :
12211  eval $cacheid=yes
12212else
12213  eval $cacheid=no
12214fi
12215rm -f core conftest.err conftest.$ac_objext \
12216    conftest$ac_exeext conftest.$ac_ext
12217fi
12218
12219
12220		CFLAGS="$xorg_testset_save_CFLAGS"
12221
12222		eval supported=\$$cacheid
12223		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12224$as_echo "$supported" >&6; }
12225		if test "$supported" = "yes" ; then
12226			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12227			found="yes"
12228		fi
12229	fi
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245xorg_testset_save_CFLAGS="$CFLAGS"
12246
12247if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12248	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12249	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12250$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12251if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12252  $as_echo_n "(cached) " >&6
12253else
12254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255/* end confdefs.h.  */
12256int i;
12257_ACEOF
12258if ac_fn_c_try_compile "$LINENO"; then :
12259  xorg_cv_cc_flag_unknown_warning_option=yes
12260else
12261  xorg_cv_cc_flag_unknown_warning_option=no
12262fi
12263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12264fi
12265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12266$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12267	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12268	CFLAGS="$xorg_testset_save_CFLAGS"
12269fi
12270
12271if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12272	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12273		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12274	fi
12275	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12276	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12277$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12278if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12279  $as_echo_n "(cached) " >&6
12280else
12281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282/* end confdefs.h.  */
12283int i;
12284_ACEOF
12285if ac_fn_c_try_compile "$LINENO"; then :
12286  xorg_cv_cc_flag_unused_command_line_argument=yes
12287else
12288  xorg_cv_cc_flag_unused_command_line_argument=no
12289fi
12290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12291fi
12292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12293$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12294	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12295	CFLAGS="$xorg_testset_save_CFLAGS"
12296fi
12297
12298found="no"
12299
12300	if test $found = "no" ; then
12301		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12302			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12303		fi
12304
12305		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12306			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12307		fi
12308
12309		CFLAGS="$CFLAGS -Wmissing-declarations"
12310
12311		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12312$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12313		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12314		if eval \${$cacheid+:} false; then :
12315  $as_echo_n "(cached) " >&6
12316else
12317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12318/* end confdefs.h.  */
12319int i;
12320int
12321main ()
12322{
12323
12324  ;
12325  return 0;
12326}
12327_ACEOF
12328if ac_fn_c_try_link "$LINENO"; then :
12329  eval $cacheid=yes
12330else
12331  eval $cacheid=no
12332fi
12333rm -f core conftest.err conftest.$ac_objext \
12334    conftest$ac_exeext conftest.$ac_ext
12335fi
12336
12337
12338		CFLAGS="$xorg_testset_save_CFLAGS"
12339
12340		eval supported=\$$cacheid
12341		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12342$as_echo "$supported" >&6; }
12343		if test "$supported" = "yes" ; then
12344			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12345			found="yes"
12346		fi
12347	fi
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363xorg_testset_save_CFLAGS="$CFLAGS"
12364
12365if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12366	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12367	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12368$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12369if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12370  $as_echo_n "(cached) " >&6
12371else
12372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373/* end confdefs.h.  */
12374int i;
12375_ACEOF
12376if ac_fn_c_try_compile "$LINENO"; then :
12377  xorg_cv_cc_flag_unknown_warning_option=yes
12378else
12379  xorg_cv_cc_flag_unknown_warning_option=no
12380fi
12381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12382fi
12383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12384$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12385	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12386	CFLAGS="$xorg_testset_save_CFLAGS"
12387fi
12388
12389if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12390	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12391		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12392	fi
12393	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12394	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12395$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12396if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12397  $as_echo_n "(cached) " >&6
12398else
12399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12400/* end confdefs.h.  */
12401int i;
12402_ACEOF
12403if ac_fn_c_try_compile "$LINENO"; then :
12404  xorg_cv_cc_flag_unused_command_line_argument=yes
12405else
12406  xorg_cv_cc_flag_unused_command_line_argument=no
12407fi
12408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12409fi
12410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12411$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12412	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12413	CFLAGS="$xorg_testset_save_CFLAGS"
12414fi
12415
12416found="no"
12417
12418	if test $found = "no" ; then
12419		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12420			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12421		fi
12422
12423		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12424			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12425		fi
12426
12427		CFLAGS="$CFLAGS -Wformat=2"
12428
12429		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12430$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12431		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
12432		if eval \${$cacheid+:} false; then :
12433  $as_echo_n "(cached) " >&6
12434else
12435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12436/* end confdefs.h.  */
12437int i;
12438int
12439main ()
12440{
12441
12442  ;
12443  return 0;
12444}
12445_ACEOF
12446if ac_fn_c_try_link "$LINENO"; then :
12447  eval $cacheid=yes
12448else
12449  eval $cacheid=no
12450fi
12451rm -f core conftest.err conftest.$ac_objext \
12452    conftest$ac_exeext conftest.$ac_ext
12453fi
12454
12455
12456		CFLAGS="$xorg_testset_save_CFLAGS"
12457
12458		eval supported=\$$cacheid
12459		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12460$as_echo "$supported" >&6; }
12461		if test "$supported" = "yes" ; then
12462			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12463			found="yes"
12464		fi
12465	fi
12466
12467	if test $found = "no" ; then
12468		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12469			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12470		fi
12471
12472		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12473			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12474		fi
12475
12476		CFLAGS="$CFLAGS -Wformat"
12477
12478		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12479$as_echo_n "checking if $CC supports -Wformat... " >&6; }
12480		cacheid=xorg_cv_cc_flag__Wformat
12481		if eval \${$cacheid+:} false; then :
12482  $as_echo_n "(cached) " >&6
12483else
12484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12485/* end confdefs.h.  */
12486int i;
12487int
12488main ()
12489{
12490
12491  ;
12492  return 0;
12493}
12494_ACEOF
12495if ac_fn_c_try_link "$LINENO"; then :
12496  eval $cacheid=yes
12497else
12498  eval $cacheid=no
12499fi
12500rm -f core conftest.err conftest.$ac_objext \
12501    conftest$ac_exeext conftest.$ac_ext
12502fi
12503
12504
12505		CFLAGS="$xorg_testset_save_CFLAGS"
12506
12507		eval supported=\$$cacheid
12508		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12509$as_echo "$supported" >&6; }
12510		if test "$supported" = "yes" ; then
12511			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12512			found="yes"
12513		fi
12514	fi
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532xorg_testset_save_CFLAGS="$CFLAGS"
12533
12534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12535	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12536	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12537$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12538if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12539  $as_echo_n "(cached) " >&6
12540else
12541  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542/* end confdefs.h.  */
12543int i;
12544_ACEOF
12545if ac_fn_c_try_compile "$LINENO"; then :
12546  xorg_cv_cc_flag_unknown_warning_option=yes
12547else
12548  xorg_cv_cc_flag_unknown_warning_option=no
12549fi
12550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12551fi
12552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12553$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12554	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12555	CFLAGS="$xorg_testset_save_CFLAGS"
12556fi
12557
12558if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12559	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12560		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12561	fi
12562	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12563	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12564$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12565if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12566  $as_echo_n "(cached) " >&6
12567else
12568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569/* end confdefs.h.  */
12570int i;
12571_ACEOF
12572if ac_fn_c_try_compile "$LINENO"; then :
12573  xorg_cv_cc_flag_unused_command_line_argument=yes
12574else
12575  xorg_cv_cc_flag_unused_command_line_argument=no
12576fi
12577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12578fi
12579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12580$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12581	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12582	CFLAGS="$xorg_testset_save_CFLAGS"
12583fi
12584
12585found="no"
12586
12587	if test $found = "no" ; then
12588		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12589			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12590		fi
12591
12592		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12593			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12594		fi
12595
12596		CFLAGS="$CFLAGS -Wstrict-prototypes"
12597
12598		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12599$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12600		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12601		if eval \${$cacheid+:} false; then :
12602  $as_echo_n "(cached) " >&6
12603else
12604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605/* end confdefs.h.  */
12606int i;
12607int
12608main ()
12609{
12610
12611  ;
12612  return 0;
12613}
12614_ACEOF
12615if ac_fn_c_try_link "$LINENO"; then :
12616  eval $cacheid=yes
12617else
12618  eval $cacheid=no
12619fi
12620rm -f core conftest.err conftest.$ac_objext \
12621    conftest$ac_exeext conftest.$ac_ext
12622fi
12623
12624
12625		CFLAGS="$xorg_testset_save_CFLAGS"
12626
12627		eval supported=\$$cacheid
12628		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12629$as_echo "$supported" >&6; }
12630		if test "$supported" = "yes" ; then
12631			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12632			found="yes"
12633		fi
12634	fi
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650xorg_testset_save_CFLAGS="$CFLAGS"
12651
12652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12653	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12654	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12655$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12656if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12657  $as_echo_n "(cached) " >&6
12658else
12659  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660/* end confdefs.h.  */
12661int i;
12662_ACEOF
12663if ac_fn_c_try_compile "$LINENO"; then :
12664  xorg_cv_cc_flag_unknown_warning_option=yes
12665else
12666  xorg_cv_cc_flag_unknown_warning_option=no
12667fi
12668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12669fi
12670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12671$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12672	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12673	CFLAGS="$xorg_testset_save_CFLAGS"
12674fi
12675
12676if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12677	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12678		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12679	fi
12680	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12681	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12682$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12683if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12684  $as_echo_n "(cached) " >&6
12685else
12686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12687/* end confdefs.h.  */
12688int i;
12689_ACEOF
12690if ac_fn_c_try_compile "$LINENO"; then :
12691  xorg_cv_cc_flag_unused_command_line_argument=yes
12692else
12693  xorg_cv_cc_flag_unused_command_line_argument=no
12694fi
12695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696fi
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12698$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12699	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12700	CFLAGS="$xorg_testset_save_CFLAGS"
12701fi
12702
12703found="no"
12704
12705	if test $found = "no" ; then
12706		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12707			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12708		fi
12709
12710		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12711			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12712		fi
12713
12714		CFLAGS="$CFLAGS -Wmissing-prototypes"
12715
12716		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12717$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12718		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12719		if eval \${$cacheid+:} false; then :
12720  $as_echo_n "(cached) " >&6
12721else
12722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12723/* end confdefs.h.  */
12724int i;
12725int
12726main ()
12727{
12728
12729  ;
12730  return 0;
12731}
12732_ACEOF
12733if ac_fn_c_try_link "$LINENO"; then :
12734  eval $cacheid=yes
12735else
12736  eval $cacheid=no
12737fi
12738rm -f core conftest.err conftest.$ac_objext \
12739    conftest$ac_exeext conftest.$ac_ext
12740fi
12741
12742
12743		CFLAGS="$xorg_testset_save_CFLAGS"
12744
12745		eval supported=\$$cacheid
12746		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12747$as_echo "$supported" >&6; }
12748		if test "$supported" = "yes" ; then
12749			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12750			found="yes"
12751		fi
12752	fi
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768xorg_testset_save_CFLAGS="$CFLAGS"
12769
12770if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12771	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12772	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12773$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12774if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12775  $as_echo_n "(cached) " >&6
12776else
12777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778/* end confdefs.h.  */
12779int i;
12780_ACEOF
12781if ac_fn_c_try_compile "$LINENO"; then :
12782  xorg_cv_cc_flag_unknown_warning_option=yes
12783else
12784  xorg_cv_cc_flag_unknown_warning_option=no
12785fi
12786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12787fi
12788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12789$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12790	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12791	CFLAGS="$xorg_testset_save_CFLAGS"
12792fi
12793
12794if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12795	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12796		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12797	fi
12798	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12799	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12800$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12801if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12802  $as_echo_n "(cached) " >&6
12803else
12804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805/* end confdefs.h.  */
12806int i;
12807_ACEOF
12808if ac_fn_c_try_compile "$LINENO"; then :
12809  xorg_cv_cc_flag_unused_command_line_argument=yes
12810else
12811  xorg_cv_cc_flag_unused_command_line_argument=no
12812fi
12813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12814fi
12815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12816$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12817	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12818	CFLAGS="$xorg_testset_save_CFLAGS"
12819fi
12820
12821found="no"
12822
12823	if test $found = "no" ; then
12824		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12825			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12826		fi
12827
12828		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12829			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12830		fi
12831
12832		CFLAGS="$CFLAGS -Wnested-externs"
12833
12834		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12835$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12836		cacheid=xorg_cv_cc_flag__Wnested_externs
12837		if eval \${$cacheid+:} false; then :
12838  $as_echo_n "(cached) " >&6
12839else
12840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12841/* end confdefs.h.  */
12842int i;
12843int
12844main ()
12845{
12846
12847  ;
12848  return 0;
12849}
12850_ACEOF
12851if ac_fn_c_try_link "$LINENO"; then :
12852  eval $cacheid=yes
12853else
12854  eval $cacheid=no
12855fi
12856rm -f core conftest.err conftest.$ac_objext \
12857    conftest$ac_exeext conftest.$ac_ext
12858fi
12859
12860
12861		CFLAGS="$xorg_testset_save_CFLAGS"
12862
12863		eval supported=\$$cacheid
12864		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12865$as_echo "$supported" >&6; }
12866		if test "$supported" = "yes" ; then
12867			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12868			found="yes"
12869		fi
12870	fi
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886xorg_testset_save_CFLAGS="$CFLAGS"
12887
12888if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12889	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12890	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12891$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12892if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12893  $as_echo_n "(cached) " >&6
12894else
12895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12896/* end confdefs.h.  */
12897int i;
12898_ACEOF
12899if ac_fn_c_try_compile "$LINENO"; then :
12900  xorg_cv_cc_flag_unknown_warning_option=yes
12901else
12902  xorg_cv_cc_flag_unknown_warning_option=no
12903fi
12904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12905fi
12906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12907$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12908	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12909	CFLAGS="$xorg_testset_save_CFLAGS"
12910fi
12911
12912if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12913	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12914		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12915	fi
12916	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12917	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12918$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12919if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12920  $as_echo_n "(cached) " >&6
12921else
12922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12923/* end confdefs.h.  */
12924int i;
12925_ACEOF
12926if ac_fn_c_try_compile "$LINENO"; then :
12927  xorg_cv_cc_flag_unused_command_line_argument=yes
12928else
12929  xorg_cv_cc_flag_unused_command_line_argument=no
12930fi
12931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12932fi
12933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12934$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12935	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12936	CFLAGS="$xorg_testset_save_CFLAGS"
12937fi
12938
12939found="no"
12940
12941	if test $found = "no" ; then
12942		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12943			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12944		fi
12945
12946		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12947			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12948		fi
12949
12950		CFLAGS="$CFLAGS -Wbad-function-cast"
12951
12952		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12953$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12954		cacheid=xorg_cv_cc_flag__Wbad_function_cast
12955		if eval \${$cacheid+:} false; then :
12956  $as_echo_n "(cached) " >&6
12957else
12958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12959/* end confdefs.h.  */
12960int i;
12961int
12962main ()
12963{
12964
12965  ;
12966  return 0;
12967}
12968_ACEOF
12969if ac_fn_c_try_link "$LINENO"; then :
12970  eval $cacheid=yes
12971else
12972  eval $cacheid=no
12973fi
12974rm -f core conftest.err conftest.$ac_objext \
12975    conftest$ac_exeext conftest.$ac_ext
12976fi
12977
12978
12979		CFLAGS="$xorg_testset_save_CFLAGS"
12980
12981		eval supported=\$$cacheid
12982		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12983$as_echo "$supported" >&6; }
12984		if test "$supported" = "yes" ; then
12985			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12986			found="yes"
12987		fi
12988	fi
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004xorg_testset_save_CFLAGS="$CFLAGS"
13005
13006if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13007	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13008	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13009$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13010if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13011  $as_echo_n "(cached) " >&6
13012else
13013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014/* end confdefs.h.  */
13015int i;
13016_ACEOF
13017if ac_fn_c_try_compile "$LINENO"; then :
13018  xorg_cv_cc_flag_unknown_warning_option=yes
13019else
13020  xorg_cv_cc_flag_unknown_warning_option=no
13021fi
13022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13023fi
13024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13025$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13026	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13027	CFLAGS="$xorg_testset_save_CFLAGS"
13028fi
13029
13030if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13031	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13032		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13033	fi
13034	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13035	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13036$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13037if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13038  $as_echo_n "(cached) " >&6
13039else
13040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13041/* end confdefs.h.  */
13042int i;
13043_ACEOF
13044if ac_fn_c_try_compile "$LINENO"; then :
13045  xorg_cv_cc_flag_unused_command_line_argument=yes
13046else
13047  xorg_cv_cc_flag_unused_command_line_argument=no
13048fi
13049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13050fi
13051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13052$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13053	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13054	CFLAGS="$xorg_testset_save_CFLAGS"
13055fi
13056
13057found="no"
13058
13059	if test $found = "no" ; then
13060		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13061			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13062		fi
13063
13064		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13065			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13066		fi
13067
13068		CFLAGS="$CFLAGS -Wold-style-definition"
13069
13070		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13071$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13072		cacheid=xorg_cv_cc_flag__Wold_style_definition
13073		if eval \${$cacheid+:} false; then :
13074  $as_echo_n "(cached) " >&6
13075else
13076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13077/* end confdefs.h.  */
13078int i;
13079int
13080main ()
13081{
13082
13083  ;
13084  return 0;
13085}
13086_ACEOF
13087if ac_fn_c_try_link "$LINENO"; then :
13088  eval $cacheid=yes
13089else
13090  eval $cacheid=no
13091fi
13092rm -f core conftest.err conftest.$ac_objext \
13093    conftest$ac_exeext conftest.$ac_ext
13094fi
13095
13096
13097		CFLAGS="$xorg_testset_save_CFLAGS"
13098
13099		eval supported=\$$cacheid
13100		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13101$as_echo "$supported" >&6; }
13102		if test "$supported" = "yes" ; then
13103			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13104			found="yes"
13105		fi
13106	fi
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122xorg_testset_save_CFLAGS="$CFLAGS"
13123
13124if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13125	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13126	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13127$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13128if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13129  $as_echo_n "(cached) " >&6
13130else
13131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13132/* end confdefs.h.  */
13133int i;
13134_ACEOF
13135if ac_fn_c_try_compile "$LINENO"; then :
13136  xorg_cv_cc_flag_unknown_warning_option=yes
13137else
13138  xorg_cv_cc_flag_unknown_warning_option=no
13139fi
13140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13141fi
13142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13143$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13144	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13145	CFLAGS="$xorg_testset_save_CFLAGS"
13146fi
13147
13148if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13149	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13150		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13151	fi
13152	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13153	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13154$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13155if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13156  $as_echo_n "(cached) " >&6
13157else
13158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159/* end confdefs.h.  */
13160int i;
13161_ACEOF
13162if ac_fn_c_try_compile "$LINENO"; then :
13163  xorg_cv_cc_flag_unused_command_line_argument=yes
13164else
13165  xorg_cv_cc_flag_unused_command_line_argument=no
13166fi
13167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13168fi
13169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13170$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13171	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13172	CFLAGS="$xorg_testset_save_CFLAGS"
13173fi
13174
13175found="no"
13176
13177	if test $found = "no" ; then
13178		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13179			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13180		fi
13181
13182		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13183			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13184		fi
13185
13186		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13187
13188		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13189$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13190		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13191		if eval \${$cacheid+:} false; then :
13192  $as_echo_n "(cached) " >&6
13193else
13194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13195/* end confdefs.h.  */
13196int i;
13197int
13198main ()
13199{
13200
13201  ;
13202  return 0;
13203}
13204_ACEOF
13205if ac_fn_c_try_link "$LINENO"; then :
13206  eval $cacheid=yes
13207else
13208  eval $cacheid=no
13209fi
13210rm -f core conftest.err conftest.$ac_objext \
13211    conftest$ac_exeext conftest.$ac_ext
13212fi
13213
13214
13215		CFLAGS="$xorg_testset_save_CFLAGS"
13216
13217		eval supported=\$$cacheid
13218		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13219$as_echo "$supported" >&6; }
13220		if test "$supported" = "yes" ; then
13221			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13222			found="yes"
13223		fi
13224	fi
13225
13226
13227
13228
13229
13230# This chunk adds additional warnings that could catch undesired effects.
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244xorg_testset_save_CFLAGS="$CFLAGS"
13245
13246if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13247	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13248	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13249$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13250if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13251  $as_echo_n "(cached) " >&6
13252else
13253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13254/* end confdefs.h.  */
13255int i;
13256_ACEOF
13257if ac_fn_c_try_compile "$LINENO"; then :
13258  xorg_cv_cc_flag_unknown_warning_option=yes
13259else
13260  xorg_cv_cc_flag_unknown_warning_option=no
13261fi
13262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13263fi
13264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13265$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13266	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13267	CFLAGS="$xorg_testset_save_CFLAGS"
13268fi
13269
13270if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13271	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13272		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13273	fi
13274	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13275	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13276$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13277if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13278  $as_echo_n "(cached) " >&6
13279else
13280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281/* end confdefs.h.  */
13282int i;
13283_ACEOF
13284if ac_fn_c_try_compile "$LINENO"; then :
13285  xorg_cv_cc_flag_unused_command_line_argument=yes
13286else
13287  xorg_cv_cc_flag_unused_command_line_argument=no
13288fi
13289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13290fi
13291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13292$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13293	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13294	CFLAGS="$xorg_testset_save_CFLAGS"
13295fi
13296
13297found="no"
13298
13299	if test $found = "no" ; then
13300		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13301			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13302		fi
13303
13304		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13305			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13306		fi
13307
13308		CFLAGS="$CFLAGS -Wunused"
13309
13310		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13311$as_echo_n "checking if $CC supports -Wunused... " >&6; }
13312		cacheid=xorg_cv_cc_flag__Wunused
13313		if eval \${$cacheid+:} false; then :
13314  $as_echo_n "(cached) " >&6
13315else
13316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317/* end confdefs.h.  */
13318int i;
13319int
13320main ()
13321{
13322
13323  ;
13324  return 0;
13325}
13326_ACEOF
13327if ac_fn_c_try_link "$LINENO"; then :
13328  eval $cacheid=yes
13329else
13330  eval $cacheid=no
13331fi
13332rm -f core conftest.err conftest.$ac_objext \
13333    conftest$ac_exeext conftest.$ac_ext
13334fi
13335
13336
13337		CFLAGS="$xorg_testset_save_CFLAGS"
13338
13339		eval supported=\$$cacheid
13340		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13341$as_echo "$supported" >&6; }
13342		if test "$supported" = "yes" ; then
13343			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13344			found="yes"
13345		fi
13346	fi
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362xorg_testset_save_CFLAGS="$CFLAGS"
13363
13364if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13365	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13366	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13367$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13368if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13369  $as_echo_n "(cached) " >&6
13370else
13371  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13372/* end confdefs.h.  */
13373int i;
13374_ACEOF
13375if ac_fn_c_try_compile "$LINENO"; then :
13376  xorg_cv_cc_flag_unknown_warning_option=yes
13377else
13378  xorg_cv_cc_flag_unknown_warning_option=no
13379fi
13380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13381fi
13382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13383$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13384	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13385	CFLAGS="$xorg_testset_save_CFLAGS"
13386fi
13387
13388if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13389	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13390		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13391	fi
13392	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13393	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13394$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13395if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13396  $as_echo_n "(cached) " >&6
13397else
13398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13399/* end confdefs.h.  */
13400int i;
13401_ACEOF
13402if ac_fn_c_try_compile "$LINENO"; then :
13403  xorg_cv_cc_flag_unused_command_line_argument=yes
13404else
13405  xorg_cv_cc_flag_unused_command_line_argument=no
13406fi
13407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13408fi
13409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13410$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13411	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13412	CFLAGS="$xorg_testset_save_CFLAGS"
13413fi
13414
13415found="no"
13416
13417	if test $found = "no" ; then
13418		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13419			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13420		fi
13421
13422		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13423			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13424		fi
13425
13426		CFLAGS="$CFLAGS -Wuninitialized"
13427
13428		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13429$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13430		cacheid=xorg_cv_cc_flag__Wuninitialized
13431		if eval \${$cacheid+:} false; then :
13432  $as_echo_n "(cached) " >&6
13433else
13434  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13435/* end confdefs.h.  */
13436int i;
13437int
13438main ()
13439{
13440
13441  ;
13442  return 0;
13443}
13444_ACEOF
13445if ac_fn_c_try_link "$LINENO"; then :
13446  eval $cacheid=yes
13447else
13448  eval $cacheid=no
13449fi
13450rm -f core conftest.err conftest.$ac_objext \
13451    conftest$ac_exeext conftest.$ac_ext
13452fi
13453
13454
13455		CFLAGS="$xorg_testset_save_CFLAGS"
13456
13457		eval supported=\$$cacheid
13458		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13459$as_echo "$supported" >&6; }
13460		if test "$supported" = "yes" ; then
13461			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13462			found="yes"
13463		fi
13464	fi
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480xorg_testset_save_CFLAGS="$CFLAGS"
13481
13482if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13483	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13484	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13485$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13486if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13487  $as_echo_n "(cached) " >&6
13488else
13489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490/* end confdefs.h.  */
13491int i;
13492_ACEOF
13493if ac_fn_c_try_compile "$LINENO"; then :
13494  xorg_cv_cc_flag_unknown_warning_option=yes
13495else
13496  xorg_cv_cc_flag_unknown_warning_option=no
13497fi
13498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13499fi
13500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13501$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13502	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13503	CFLAGS="$xorg_testset_save_CFLAGS"
13504fi
13505
13506if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13507	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13508		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13509	fi
13510	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13511	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13512$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13513if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13514  $as_echo_n "(cached) " >&6
13515else
13516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13517/* end confdefs.h.  */
13518int i;
13519_ACEOF
13520if ac_fn_c_try_compile "$LINENO"; then :
13521  xorg_cv_cc_flag_unused_command_line_argument=yes
13522else
13523  xorg_cv_cc_flag_unused_command_line_argument=no
13524fi
13525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13526fi
13527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13528$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13529	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13530	CFLAGS="$xorg_testset_save_CFLAGS"
13531fi
13532
13533found="no"
13534
13535	if test $found = "no" ; then
13536		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13537			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13538		fi
13539
13540		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13541			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13542		fi
13543
13544		CFLAGS="$CFLAGS -Wshadow"
13545
13546		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13547$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13548		cacheid=xorg_cv_cc_flag__Wshadow
13549		if eval \${$cacheid+:} false; then :
13550  $as_echo_n "(cached) " >&6
13551else
13552  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13553/* end confdefs.h.  */
13554int i;
13555int
13556main ()
13557{
13558
13559  ;
13560  return 0;
13561}
13562_ACEOF
13563if ac_fn_c_try_link "$LINENO"; then :
13564  eval $cacheid=yes
13565else
13566  eval $cacheid=no
13567fi
13568rm -f core conftest.err conftest.$ac_objext \
13569    conftest$ac_exeext conftest.$ac_ext
13570fi
13571
13572
13573		CFLAGS="$xorg_testset_save_CFLAGS"
13574
13575		eval supported=\$$cacheid
13576		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13577$as_echo "$supported" >&6; }
13578		if test "$supported" = "yes" ; then
13579			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13580			found="yes"
13581		fi
13582	fi
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598xorg_testset_save_CFLAGS="$CFLAGS"
13599
13600if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13601	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13602	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13603$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13604if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13605  $as_echo_n "(cached) " >&6
13606else
13607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13608/* end confdefs.h.  */
13609int i;
13610_ACEOF
13611if ac_fn_c_try_compile "$LINENO"; then :
13612  xorg_cv_cc_flag_unknown_warning_option=yes
13613else
13614  xorg_cv_cc_flag_unknown_warning_option=no
13615fi
13616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13617fi
13618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13619$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13620	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13621	CFLAGS="$xorg_testset_save_CFLAGS"
13622fi
13623
13624if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13625	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13626		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13627	fi
13628	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13629	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13630$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13631if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13632  $as_echo_n "(cached) " >&6
13633else
13634  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635/* end confdefs.h.  */
13636int i;
13637_ACEOF
13638if ac_fn_c_try_compile "$LINENO"; then :
13639  xorg_cv_cc_flag_unused_command_line_argument=yes
13640else
13641  xorg_cv_cc_flag_unused_command_line_argument=no
13642fi
13643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13644fi
13645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13646$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13647	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13648	CFLAGS="$xorg_testset_save_CFLAGS"
13649fi
13650
13651found="no"
13652
13653	if test $found = "no" ; then
13654		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13655			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13656		fi
13657
13658		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13659			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13660		fi
13661
13662		CFLAGS="$CFLAGS -Wcast-qual"
13663
13664		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13665$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13666		cacheid=xorg_cv_cc_flag__Wcast_qual
13667		if eval \${$cacheid+:} false; then :
13668  $as_echo_n "(cached) " >&6
13669else
13670  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13671/* end confdefs.h.  */
13672int i;
13673int
13674main ()
13675{
13676
13677  ;
13678  return 0;
13679}
13680_ACEOF
13681if ac_fn_c_try_link "$LINENO"; then :
13682  eval $cacheid=yes
13683else
13684  eval $cacheid=no
13685fi
13686rm -f core conftest.err conftest.$ac_objext \
13687    conftest$ac_exeext conftest.$ac_ext
13688fi
13689
13690
13691		CFLAGS="$xorg_testset_save_CFLAGS"
13692
13693		eval supported=\$$cacheid
13694		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13695$as_echo "$supported" >&6; }
13696		if test "$supported" = "yes" ; then
13697			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13698			found="yes"
13699		fi
13700	fi
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716xorg_testset_save_CFLAGS="$CFLAGS"
13717
13718if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13719	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13720	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13721$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13722if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13723  $as_echo_n "(cached) " >&6
13724else
13725  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13726/* end confdefs.h.  */
13727int i;
13728_ACEOF
13729if ac_fn_c_try_compile "$LINENO"; then :
13730  xorg_cv_cc_flag_unknown_warning_option=yes
13731else
13732  xorg_cv_cc_flag_unknown_warning_option=no
13733fi
13734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13735fi
13736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13737$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13738	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13739	CFLAGS="$xorg_testset_save_CFLAGS"
13740fi
13741
13742if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13743	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13744		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13745	fi
13746	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13747	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13748$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13749if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13750  $as_echo_n "(cached) " >&6
13751else
13752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13753/* end confdefs.h.  */
13754int i;
13755_ACEOF
13756if ac_fn_c_try_compile "$LINENO"; then :
13757  xorg_cv_cc_flag_unused_command_line_argument=yes
13758else
13759  xorg_cv_cc_flag_unused_command_line_argument=no
13760fi
13761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13762fi
13763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13764$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13765	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13766	CFLAGS="$xorg_testset_save_CFLAGS"
13767fi
13768
13769found="no"
13770
13771	if test $found = "no" ; then
13772		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13773			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13774		fi
13775
13776		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13777			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13778		fi
13779
13780		CFLAGS="$CFLAGS -Wmissing-noreturn"
13781
13782		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13783$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13784		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13785		if eval \${$cacheid+:} false; then :
13786  $as_echo_n "(cached) " >&6
13787else
13788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789/* end confdefs.h.  */
13790int i;
13791int
13792main ()
13793{
13794
13795  ;
13796  return 0;
13797}
13798_ACEOF
13799if ac_fn_c_try_link "$LINENO"; then :
13800  eval $cacheid=yes
13801else
13802  eval $cacheid=no
13803fi
13804rm -f core conftest.err conftest.$ac_objext \
13805    conftest$ac_exeext conftest.$ac_ext
13806fi
13807
13808
13809		CFLAGS="$xorg_testset_save_CFLAGS"
13810
13811		eval supported=\$$cacheid
13812		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13813$as_echo "$supported" >&6; }
13814		if test "$supported" = "yes" ; then
13815			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13816			found="yes"
13817		fi
13818	fi
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834xorg_testset_save_CFLAGS="$CFLAGS"
13835
13836if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13837	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13838	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13839$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13840if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13841  $as_echo_n "(cached) " >&6
13842else
13843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13844/* end confdefs.h.  */
13845int i;
13846_ACEOF
13847if ac_fn_c_try_compile "$LINENO"; then :
13848  xorg_cv_cc_flag_unknown_warning_option=yes
13849else
13850  xorg_cv_cc_flag_unknown_warning_option=no
13851fi
13852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13853fi
13854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13855$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13856	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13857	CFLAGS="$xorg_testset_save_CFLAGS"
13858fi
13859
13860if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13861	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13862		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13863	fi
13864	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13865	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13866$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13867if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13868  $as_echo_n "(cached) " >&6
13869else
13870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13871/* end confdefs.h.  */
13872int i;
13873_ACEOF
13874if ac_fn_c_try_compile "$LINENO"; then :
13875  xorg_cv_cc_flag_unused_command_line_argument=yes
13876else
13877  xorg_cv_cc_flag_unused_command_line_argument=no
13878fi
13879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13880fi
13881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13882$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13883	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13884	CFLAGS="$xorg_testset_save_CFLAGS"
13885fi
13886
13887found="no"
13888
13889	if test $found = "no" ; then
13890		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13891			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13892		fi
13893
13894		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13895			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13896		fi
13897
13898		CFLAGS="$CFLAGS -Wmissing-format-attribute"
13899
13900		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13901$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13902		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13903		if eval \${$cacheid+:} false; then :
13904  $as_echo_n "(cached) " >&6
13905else
13906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13907/* end confdefs.h.  */
13908int i;
13909int
13910main ()
13911{
13912
13913  ;
13914  return 0;
13915}
13916_ACEOF
13917if ac_fn_c_try_link "$LINENO"; then :
13918  eval $cacheid=yes
13919else
13920  eval $cacheid=no
13921fi
13922rm -f core conftest.err conftest.$ac_objext \
13923    conftest$ac_exeext conftest.$ac_ext
13924fi
13925
13926
13927		CFLAGS="$xorg_testset_save_CFLAGS"
13928
13929		eval supported=\$$cacheid
13930		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13931$as_echo "$supported" >&6; }
13932		if test "$supported" = "yes" ; then
13933			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13934			found="yes"
13935		fi
13936	fi
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952xorg_testset_save_CFLAGS="$CFLAGS"
13953
13954if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13955	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13956	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13957$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13958if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13959  $as_echo_n "(cached) " >&6
13960else
13961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13962/* end confdefs.h.  */
13963int i;
13964_ACEOF
13965if ac_fn_c_try_compile "$LINENO"; then :
13966  xorg_cv_cc_flag_unknown_warning_option=yes
13967else
13968  xorg_cv_cc_flag_unknown_warning_option=no
13969fi
13970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13971fi
13972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13973$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13974	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13975	CFLAGS="$xorg_testset_save_CFLAGS"
13976fi
13977
13978if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13979	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13980		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13981	fi
13982	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13983	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13984$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13985if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13986  $as_echo_n "(cached) " >&6
13987else
13988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13989/* end confdefs.h.  */
13990int i;
13991_ACEOF
13992if ac_fn_c_try_compile "$LINENO"; then :
13993  xorg_cv_cc_flag_unused_command_line_argument=yes
13994else
13995  xorg_cv_cc_flag_unused_command_line_argument=no
13996fi
13997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13998fi
13999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14000$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14001	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14002	CFLAGS="$xorg_testset_save_CFLAGS"
14003fi
14004
14005found="no"
14006
14007	if test $found = "no" ; then
14008		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14009			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14010		fi
14011
14012		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14013			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14014		fi
14015
14016		CFLAGS="$CFLAGS -Wredundant-decls"
14017
14018		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14019$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14020		cacheid=xorg_cv_cc_flag__Wredundant_decls
14021		if eval \${$cacheid+:} false; then :
14022  $as_echo_n "(cached) " >&6
14023else
14024  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14025/* end confdefs.h.  */
14026int i;
14027int
14028main ()
14029{
14030
14031  ;
14032  return 0;
14033}
14034_ACEOF
14035if ac_fn_c_try_link "$LINENO"; then :
14036  eval $cacheid=yes
14037else
14038  eval $cacheid=no
14039fi
14040rm -f core conftest.err conftest.$ac_objext \
14041    conftest$ac_exeext conftest.$ac_ext
14042fi
14043
14044
14045		CFLAGS="$xorg_testset_save_CFLAGS"
14046
14047		eval supported=\$$cacheid
14048		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14049$as_echo "$supported" >&6; }
14050		if test "$supported" = "yes" ; then
14051			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14052			found="yes"
14053		fi
14054	fi
14055
14056
14057
14058# These are currently disabled because they are noisy.  They will be enabled
14059# in the future once the codebase is sufficiently modernized to silence
14060# them.  For now, I don't want them to drown out the other warnings.
14061# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
14062# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14063# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14064
14065# Turn some warnings into errors, so we don't accidently get successful builds
14066# when there are problems that should be fixed.
14067
14068if test "x$SELECTIVE_WERROR" = "xyes" ; then
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082xorg_testset_save_CFLAGS="$CFLAGS"
14083
14084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14085	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14086	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14087$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14088if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14089  $as_echo_n "(cached) " >&6
14090else
14091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092/* end confdefs.h.  */
14093int i;
14094_ACEOF
14095if ac_fn_c_try_compile "$LINENO"; then :
14096  xorg_cv_cc_flag_unknown_warning_option=yes
14097else
14098  xorg_cv_cc_flag_unknown_warning_option=no
14099fi
14100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14101fi
14102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14103$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14104	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14105	CFLAGS="$xorg_testset_save_CFLAGS"
14106fi
14107
14108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14109	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14110		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14111	fi
14112	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14113	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14114$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14115if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14116  $as_echo_n "(cached) " >&6
14117else
14118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14119/* end confdefs.h.  */
14120int i;
14121_ACEOF
14122if ac_fn_c_try_compile "$LINENO"; then :
14123  xorg_cv_cc_flag_unused_command_line_argument=yes
14124else
14125  xorg_cv_cc_flag_unused_command_line_argument=no
14126fi
14127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14128fi
14129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14130$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14131	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14132	CFLAGS="$xorg_testset_save_CFLAGS"
14133fi
14134
14135found="no"
14136
14137	if test $found = "no" ; then
14138		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14139			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14140		fi
14141
14142		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14143			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14144		fi
14145
14146		CFLAGS="$CFLAGS -Werror=implicit"
14147
14148		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14149$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14150		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
14151		if eval \${$cacheid+:} false; then :
14152  $as_echo_n "(cached) " >&6
14153else
14154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14155/* end confdefs.h.  */
14156int i;
14157int
14158main ()
14159{
14160
14161  ;
14162  return 0;
14163}
14164_ACEOF
14165if ac_fn_c_try_link "$LINENO"; then :
14166  eval $cacheid=yes
14167else
14168  eval $cacheid=no
14169fi
14170rm -f core conftest.err conftest.$ac_objext \
14171    conftest$ac_exeext conftest.$ac_ext
14172fi
14173
14174
14175		CFLAGS="$xorg_testset_save_CFLAGS"
14176
14177		eval supported=\$$cacheid
14178		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14179$as_echo "$supported" >&6; }
14180		if test "$supported" = "yes" ; then
14181			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14182			found="yes"
14183		fi
14184	fi
14185
14186	if test $found = "no" ; then
14187		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14188			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14189		fi
14190
14191		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14192			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14193		fi
14194
14195		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14196
14197		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14198$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14199		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
14200		if eval \${$cacheid+:} false; then :
14201  $as_echo_n "(cached) " >&6
14202else
14203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204/* end confdefs.h.  */
14205int i;
14206int
14207main ()
14208{
14209
14210  ;
14211  return 0;
14212}
14213_ACEOF
14214if ac_fn_c_try_link "$LINENO"; then :
14215  eval $cacheid=yes
14216else
14217  eval $cacheid=no
14218fi
14219rm -f core conftest.err conftest.$ac_objext \
14220    conftest$ac_exeext conftest.$ac_ext
14221fi
14222
14223
14224		CFLAGS="$xorg_testset_save_CFLAGS"
14225
14226		eval supported=\$$cacheid
14227		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14228$as_echo "$supported" >&6; }
14229		if test "$supported" = "yes" ; then
14230			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14231			found="yes"
14232		fi
14233	fi
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249xorg_testset_save_CFLAGS="$CFLAGS"
14250
14251if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14252	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14253	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14254$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14255if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14256  $as_echo_n "(cached) " >&6
14257else
14258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14259/* end confdefs.h.  */
14260int i;
14261_ACEOF
14262if ac_fn_c_try_compile "$LINENO"; then :
14263  xorg_cv_cc_flag_unknown_warning_option=yes
14264else
14265  xorg_cv_cc_flag_unknown_warning_option=no
14266fi
14267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14268fi
14269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14270$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14271	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14272	CFLAGS="$xorg_testset_save_CFLAGS"
14273fi
14274
14275if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14276	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14277		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14278	fi
14279	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14280	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14281$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14282if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14283  $as_echo_n "(cached) " >&6
14284else
14285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14286/* end confdefs.h.  */
14287int i;
14288_ACEOF
14289if ac_fn_c_try_compile "$LINENO"; then :
14290  xorg_cv_cc_flag_unused_command_line_argument=yes
14291else
14292  xorg_cv_cc_flag_unused_command_line_argument=no
14293fi
14294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14295fi
14296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14297$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14298	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14299	CFLAGS="$xorg_testset_save_CFLAGS"
14300fi
14301
14302found="no"
14303
14304	if test $found = "no" ; then
14305		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14306			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14307		fi
14308
14309		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14310			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14311		fi
14312
14313		CFLAGS="$CFLAGS -Werror=nonnull"
14314
14315		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14316$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14317		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
14318		if eval \${$cacheid+:} false; then :
14319  $as_echo_n "(cached) " >&6
14320else
14321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322/* end confdefs.h.  */
14323int i;
14324int
14325main ()
14326{
14327
14328  ;
14329  return 0;
14330}
14331_ACEOF
14332if ac_fn_c_try_link "$LINENO"; then :
14333  eval $cacheid=yes
14334else
14335  eval $cacheid=no
14336fi
14337rm -f core conftest.err conftest.$ac_objext \
14338    conftest$ac_exeext conftest.$ac_ext
14339fi
14340
14341
14342		CFLAGS="$xorg_testset_save_CFLAGS"
14343
14344		eval supported=\$$cacheid
14345		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14346$as_echo "$supported" >&6; }
14347		if test "$supported" = "yes" ; then
14348			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14349			found="yes"
14350		fi
14351	fi
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367xorg_testset_save_CFLAGS="$CFLAGS"
14368
14369if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14370	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14371	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14372$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14373if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14374  $as_echo_n "(cached) " >&6
14375else
14376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14377/* end confdefs.h.  */
14378int i;
14379_ACEOF
14380if ac_fn_c_try_compile "$LINENO"; then :
14381  xorg_cv_cc_flag_unknown_warning_option=yes
14382else
14383  xorg_cv_cc_flag_unknown_warning_option=no
14384fi
14385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14386fi
14387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14388$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14389	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14390	CFLAGS="$xorg_testset_save_CFLAGS"
14391fi
14392
14393if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14394	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14395		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14396	fi
14397	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14398	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14399$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14400if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14401  $as_echo_n "(cached) " >&6
14402else
14403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14404/* end confdefs.h.  */
14405int i;
14406_ACEOF
14407if ac_fn_c_try_compile "$LINENO"; then :
14408  xorg_cv_cc_flag_unused_command_line_argument=yes
14409else
14410  xorg_cv_cc_flag_unused_command_line_argument=no
14411fi
14412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14413fi
14414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14415$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14416	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14417	CFLAGS="$xorg_testset_save_CFLAGS"
14418fi
14419
14420found="no"
14421
14422	if test $found = "no" ; then
14423		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14424			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14425		fi
14426
14427		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14428			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14429		fi
14430
14431		CFLAGS="$CFLAGS -Werror=init-self"
14432
14433		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14434$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14435		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
14436		if eval \${$cacheid+:} false; then :
14437  $as_echo_n "(cached) " >&6
14438else
14439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14440/* end confdefs.h.  */
14441int i;
14442int
14443main ()
14444{
14445
14446  ;
14447  return 0;
14448}
14449_ACEOF
14450if ac_fn_c_try_link "$LINENO"; then :
14451  eval $cacheid=yes
14452else
14453  eval $cacheid=no
14454fi
14455rm -f core conftest.err conftest.$ac_objext \
14456    conftest$ac_exeext conftest.$ac_ext
14457fi
14458
14459
14460		CFLAGS="$xorg_testset_save_CFLAGS"
14461
14462		eval supported=\$$cacheid
14463		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14464$as_echo "$supported" >&6; }
14465		if test "$supported" = "yes" ; then
14466			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14467			found="yes"
14468		fi
14469	fi
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485xorg_testset_save_CFLAGS="$CFLAGS"
14486
14487if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14488	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14489	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14490$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14491if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14492  $as_echo_n "(cached) " >&6
14493else
14494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495/* end confdefs.h.  */
14496int i;
14497_ACEOF
14498if ac_fn_c_try_compile "$LINENO"; then :
14499  xorg_cv_cc_flag_unknown_warning_option=yes
14500else
14501  xorg_cv_cc_flag_unknown_warning_option=no
14502fi
14503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14504fi
14505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14506$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14507	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14508	CFLAGS="$xorg_testset_save_CFLAGS"
14509fi
14510
14511if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14512	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14513		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14514	fi
14515	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14516	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14517$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14518if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14519  $as_echo_n "(cached) " >&6
14520else
14521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14522/* end confdefs.h.  */
14523int i;
14524_ACEOF
14525if ac_fn_c_try_compile "$LINENO"; then :
14526  xorg_cv_cc_flag_unused_command_line_argument=yes
14527else
14528  xorg_cv_cc_flag_unused_command_line_argument=no
14529fi
14530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14531fi
14532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14533$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14534	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14535	CFLAGS="$xorg_testset_save_CFLAGS"
14536fi
14537
14538found="no"
14539
14540	if test $found = "no" ; then
14541		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14542			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14543		fi
14544
14545		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14546			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14547		fi
14548
14549		CFLAGS="$CFLAGS -Werror=main"
14550
14551		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14552$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14553		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
14554		if eval \${$cacheid+:} false; then :
14555  $as_echo_n "(cached) " >&6
14556else
14557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14558/* end confdefs.h.  */
14559int i;
14560int
14561main ()
14562{
14563
14564  ;
14565  return 0;
14566}
14567_ACEOF
14568if ac_fn_c_try_link "$LINENO"; then :
14569  eval $cacheid=yes
14570else
14571  eval $cacheid=no
14572fi
14573rm -f core conftest.err conftest.$ac_objext \
14574    conftest$ac_exeext conftest.$ac_ext
14575fi
14576
14577
14578		CFLAGS="$xorg_testset_save_CFLAGS"
14579
14580		eval supported=\$$cacheid
14581		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14582$as_echo "$supported" >&6; }
14583		if test "$supported" = "yes" ; then
14584			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14585			found="yes"
14586		fi
14587	fi
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603xorg_testset_save_CFLAGS="$CFLAGS"
14604
14605if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14606	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14607	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14608$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14609if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14610  $as_echo_n "(cached) " >&6
14611else
14612  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14613/* end confdefs.h.  */
14614int i;
14615_ACEOF
14616if ac_fn_c_try_compile "$LINENO"; then :
14617  xorg_cv_cc_flag_unknown_warning_option=yes
14618else
14619  xorg_cv_cc_flag_unknown_warning_option=no
14620fi
14621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14622fi
14623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14624$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14625	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14626	CFLAGS="$xorg_testset_save_CFLAGS"
14627fi
14628
14629if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14630	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14631		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14632	fi
14633	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14634	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14635$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14636if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14637  $as_echo_n "(cached) " >&6
14638else
14639  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14640/* end confdefs.h.  */
14641int i;
14642_ACEOF
14643if ac_fn_c_try_compile "$LINENO"; then :
14644  xorg_cv_cc_flag_unused_command_line_argument=yes
14645else
14646  xorg_cv_cc_flag_unused_command_line_argument=no
14647fi
14648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14649fi
14650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14651$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14652	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14653	CFLAGS="$xorg_testset_save_CFLAGS"
14654fi
14655
14656found="no"
14657
14658	if test $found = "no" ; then
14659		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14660			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14661		fi
14662
14663		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14664			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14665		fi
14666
14667		CFLAGS="$CFLAGS -Werror=missing-braces"
14668
14669		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14670$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14671		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
14672		if eval \${$cacheid+:} false; then :
14673  $as_echo_n "(cached) " >&6
14674else
14675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14676/* end confdefs.h.  */
14677int i;
14678int
14679main ()
14680{
14681
14682  ;
14683  return 0;
14684}
14685_ACEOF
14686if ac_fn_c_try_link "$LINENO"; then :
14687  eval $cacheid=yes
14688else
14689  eval $cacheid=no
14690fi
14691rm -f core conftest.err conftest.$ac_objext \
14692    conftest$ac_exeext conftest.$ac_ext
14693fi
14694
14695
14696		CFLAGS="$xorg_testset_save_CFLAGS"
14697
14698		eval supported=\$$cacheid
14699		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14700$as_echo "$supported" >&6; }
14701		if test "$supported" = "yes" ; then
14702			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14703			found="yes"
14704		fi
14705	fi
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721xorg_testset_save_CFLAGS="$CFLAGS"
14722
14723if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14724	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14725	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14726$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14727if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14728  $as_echo_n "(cached) " >&6
14729else
14730  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14731/* end confdefs.h.  */
14732int i;
14733_ACEOF
14734if ac_fn_c_try_compile "$LINENO"; then :
14735  xorg_cv_cc_flag_unknown_warning_option=yes
14736else
14737  xorg_cv_cc_flag_unknown_warning_option=no
14738fi
14739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14740fi
14741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14742$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14743	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14744	CFLAGS="$xorg_testset_save_CFLAGS"
14745fi
14746
14747if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14748	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14749		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14750	fi
14751	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14752	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14753$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14754if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14755  $as_echo_n "(cached) " >&6
14756else
14757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758/* end confdefs.h.  */
14759int i;
14760_ACEOF
14761if ac_fn_c_try_compile "$LINENO"; then :
14762  xorg_cv_cc_flag_unused_command_line_argument=yes
14763else
14764  xorg_cv_cc_flag_unused_command_line_argument=no
14765fi
14766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14767fi
14768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14769$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14770	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14771	CFLAGS="$xorg_testset_save_CFLAGS"
14772fi
14773
14774found="no"
14775
14776	if test $found = "no" ; then
14777		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14778			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14779		fi
14780
14781		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14782			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14783		fi
14784
14785		CFLAGS="$CFLAGS -Werror=sequence-point"
14786
14787		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14788$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14789		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
14790		if eval \${$cacheid+:} false; then :
14791  $as_echo_n "(cached) " >&6
14792else
14793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14794/* end confdefs.h.  */
14795int i;
14796int
14797main ()
14798{
14799
14800  ;
14801  return 0;
14802}
14803_ACEOF
14804if ac_fn_c_try_link "$LINENO"; then :
14805  eval $cacheid=yes
14806else
14807  eval $cacheid=no
14808fi
14809rm -f core conftest.err conftest.$ac_objext \
14810    conftest$ac_exeext conftest.$ac_ext
14811fi
14812
14813
14814		CFLAGS="$xorg_testset_save_CFLAGS"
14815
14816		eval supported=\$$cacheid
14817		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14818$as_echo "$supported" >&6; }
14819		if test "$supported" = "yes" ; then
14820			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14821			found="yes"
14822		fi
14823	fi
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839xorg_testset_save_CFLAGS="$CFLAGS"
14840
14841if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14842	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14843	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14844$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14845if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14846  $as_echo_n "(cached) " >&6
14847else
14848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14849/* end confdefs.h.  */
14850int i;
14851_ACEOF
14852if ac_fn_c_try_compile "$LINENO"; then :
14853  xorg_cv_cc_flag_unknown_warning_option=yes
14854else
14855  xorg_cv_cc_flag_unknown_warning_option=no
14856fi
14857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14858fi
14859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14860$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14861	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14862	CFLAGS="$xorg_testset_save_CFLAGS"
14863fi
14864
14865if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14866	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14867		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14868	fi
14869	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14870	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14871$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14872if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14873  $as_echo_n "(cached) " >&6
14874else
14875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14876/* end confdefs.h.  */
14877int i;
14878_ACEOF
14879if ac_fn_c_try_compile "$LINENO"; then :
14880  xorg_cv_cc_flag_unused_command_line_argument=yes
14881else
14882  xorg_cv_cc_flag_unused_command_line_argument=no
14883fi
14884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14885fi
14886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14887$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14888	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14889	CFLAGS="$xorg_testset_save_CFLAGS"
14890fi
14891
14892found="no"
14893
14894	if test $found = "no" ; then
14895		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14896			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14897		fi
14898
14899		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14900			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14901		fi
14902
14903		CFLAGS="$CFLAGS -Werror=return-type"
14904
14905		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14906$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14907		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
14908		if eval \${$cacheid+:} false; then :
14909  $as_echo_n "(cached) " >&6
14910else
14911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14912/* end confdefs.h.  */
14913int i;
14914int
14915main ()
14916{
14917
14918  ;
14919  return 0;
14920}
14921_ACEOF
14922if ac_fn_c_try_link "$LINENO"; then :
14923  eval $cacheid=yes
14924else
14925  eval $cacheid=no
14926fi
14927rm -f core conftest.err conftest.$ac_objext \
14928    conftest$ac_exeext conftest.$ac_ext
14929fi
14930
14931
14932		CFLAGS="$xorg_testset_save_CFLAGS"
14933
14934		eval supported=\$$cacheid
14935		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14936$as_echo "$supported" >&6; }
14937		if test "$supported" = "yes" ; then
14938			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14939			found="yes"
14940		fi
14941	fi
14942
14943	if test $found = "no" ; then
14944		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14945			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14946		fi
14947
14948		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14949			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14950		fi
14951
14952		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14953
14954		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14955$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14956		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
14957		if eval \${$cacheid+:} false; then :
14958  $as_echo_n "(cached) " >&6
14959else
14960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14961/* end confdefs.h.  */
14962int i;
14963int
14964main ()
14965{
14966
14967  ;
14968  return 0;
14969}
14970_ACEOF
14971if ac_fn_c_try_link "$LINENO"; then :
14972  eval $cacheid=yes
14973else
14974  eval $cacheid=no
14975fi
14976rm -f core conftest.err conftest.$ac_objext \
14977    conftest$ac_exeext conftest.$ac_ext
14978fi
14979
14980
14981		CFLAGS="$xorg_testset_save_CFLAGS"
14982
14983		eval supported=\$$cacheid
14984		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14985$as_echo "$supported" >&6; }
14986		if test "$supported" = "yes" ; then
14987			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14988			found="yes"
14989		fi
14990	fi
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006xorg_testset_save_CFLAGS="$CFLAGS"
15007
15008if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15009	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15010	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15011$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15012if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15013  $as_echo_n "(cached) " >&6
15014else
15015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15016/* end confdefs.h.  */
15017int i;
15018_ACEOF
15019if ac_fn_c_try_compile "$LINENO"; then :
15020  xorg_cv_cc_flag_unknown_warning_option=yes
15021else
15022  xorg_cv_cc_flag_unknown_warning_option=no
15023fi
15024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15025fi
15026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15027$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15028	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15029	CFLAGS="$xorg_testset_save_CFLAGS"
15030fi
15031
15032if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15033	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15034		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15035	fi
15036	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15037	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15038$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15039if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15040  $as_echo_n "(cached) " >&6
15041else
15042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043/* end confdefs.h.  */
15044int i;
15045_ACEOF
15046if ac_fn_c_try_compile "$LINENO"; then :
15047  xorg_cv_cc_flag_unused_command_line_argument=yes
15048else
15049  xorg_cv_cc_flag_unused_command_line_argument=no
15050fi
15051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052fi
15053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15054$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15055	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15056	CFLAGS="$xorg_testset_save_CFLAGS"
15057fi
15058
15059found="no"
15060
15061	if test $found = "no" ; then
15062		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15063			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15064		fi
15065
15066		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15067			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15068		fi
15069
15070		CFLAGS="$CFLAGS -Werror=trigraphs"
15071
15072		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15073$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15074		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
15075		if eval \${$cacheid+:} false; then :
15076  $as_echo_n "(cached) " >&6
15077else
15078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15079/* end confdefs.h.  */
15080int i;
15081int
15082main ()
15083{
15084
15085  ;
15086  return 0;
15087}
15088_ACEOF
15089if ac_fn_c_try_link "$LINENO"; then :
15090  eval $cacheid=yes
15091else
15092  eval $cacheid=no
15093fi
15094rm -f core conftest.err conftest.$ac_objext \
15095    conftest$ac_exeext conftest.$ac_ext
15096fi
15097
15098
15099		CFLAGS="$xorg_testset_save_CFLAGS"
15100
15101		eval supported=\$$cacheid
15102		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15103$as_echo "$supported" >&6; }
15104		if test "$supported" = "yes" ; then
15105			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15106			found="yes"
15107		fi
15108	fi
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124xorg_testset_save_CFLAGS="$CFLAGS"
15125
15126if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15127	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15128	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15129$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15130if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15131  $as_echo_n "(cached) " >&6
15132else
15133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15134/* end confdefs.h.  */
15135int i;
15136_ACEOF
15137if ac_fn_c_try_compile "$LINENO"; then :
15138  xorg_cv_cc_flag_unknown_warning_option=yes
15139else
15140  xorg_cv_cc_flag_unknown_warning_option=no
15141fi
15142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15143fi
15144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15145$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15146	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15147	CFLAGS="$xorg_testset_save_CFLAGS"
15148fi
15149
15150if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15151	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15152		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15153	fi
15154	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15155	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15156$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15157if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15158  $as_echo_n "(cached) " >&6
15159else
15160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15161/* end confdefs.h.  */
15162int i;
15163_ACEOF
15164if ac_fn_c_try_compile "$LINENO"; then :
15165  xorg_cv_cc_flag_unused_command_line_argument=yes
15166else
15167  xorg_cv_cc_flag_unused_command_line_argument=no
15168fi
15169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15170fi
15171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15172$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15173	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15174	CFLAGS="$xorg_testset_save_CFLAGS"
15175fi
15176
15177found="no"
15178
15179	if test $found = "no" ; then
15180		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15181			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15182		fi
15183
15184		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15185			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15186		fi
15187
15188		CFLAGS="$CFLAGS -Werror=array-bounds"
15189
15190		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15191$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15192		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
15193		if eval \${$cacheid+:} false; then :
15194  $as_echo_n "(cached) " >&6
15195else
15196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15197/* end confdefs.h.  */
15198int i;
15199int
15200main ()
15201{
15202
15203  ;
15204  return 0;
15205}
15206_ACEOF
15207if ac_fn_c_try_link "$LINENO"; then :
15208  eval $cacheid=yes
15209else
15210  eval $cacheid=no
15211fi
15212rm -f core conftest.err conftest.$ac_objext \
15213    conftest$ac_exeext conftest.$ac_ext
15214fi
15215
15216
15217		CFLAGS="$xorg_testset_save_CFLAGS"
15218
15219		eval supported=\$$cacheid
15220		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15221$as_echo "$supported" >&6; }
15222		if test "$supported" = "yes" ; then
15223			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15224			found="yes"
15225		fi
15226	fi
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242xorg_testset_save_CFLAGS="$CFLAGS"
15243
15244if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15245	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15246	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15247$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15248if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15249  $as_echo_n "(cached) " >&6
15250else
15251  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15252/* end confdefs.h.  */
15253int i;
15254_ACEOF
15255if ac_fn_c_try_compile "$LINENO"; then :
15256  xorg_cv_cc_flag_unknown_warning_option=yes
15257else
15258  xorg_cv_cc_flag_unknown_warning_option=no
15259fi
15260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15261fi
15262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15263$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15264	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15265	CFLAGS="$xorg_testset_save_CFLAGS"
15266fi
15267
15268if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15269	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15270		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15271	fi
15272	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15273	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15274$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15275if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15276  $as_echo_n "(cached) " >&6
15277else
15278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15279/* end confdefs.h.  */
15280int i;
15281_ACEOF
15282if ac_fn_c_try_compile "$LINENO"; then :
15283  xorg_cv_cc_flag_unused_command_line_argument=yes
15284else
15285  xorg_cv_cc_flag_unused_command_line_argument=no
15286fi
15287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15288fi
15289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15290$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15291	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15292	CFLAGS="$xorg_testset_save_CFLAGS"
15293fi
15294
15295found="no"
15296
15297	if test $found = "no" ; then
15298		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15299			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15300		fi
15301
15302		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15303			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15304		fi
15305
15306		CFLAGS="$CFLAGS -Werror=write-strings"
15307
15308		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15309$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15310		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
15311		if eval \${$cacheid+:} false; then :
15312  $as_echo_n "(cached) " >&6
15313else
15314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15315/* end confdefs.h.  */
15316int i;
15317int
15318main ()
15319{
15320
15321  ;
15322  return 0;
15323}
15324_ACEOF
15325if ac_fn_c_try_link "$LINENO"; then :
15326  eval $cacheid=yes
15327else
15328  eval $cacheid=no
15329fi
15330rm -f core conftest.err conftest.$ac_objext \
15331    conftest$ac_exeext conftest.$ac_ext
15332fi
15333
15334
15335		CFLAGS="$xorg_testset_save_CFLAGS"
15336
15337		eval supported=\$$cacheid
15338		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15339$as_echo "$supported" >&6; }
15340		if test "$supported" = "yes" ; then
15341			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15342			found="yes"
15343		fi
15344	fi
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360xorg_testset_save_CFLAGS="$CFLAGS"
15361
15362if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15363	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15364	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15365$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15366if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15367  $as_echo_n "(cached) " >&6
15368else
15369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15370/* end confdefs.h.  */
15371int i;
15372_ACEOF
15373if ac_fn_c_try_compile "$LINENO"; then :
15374  xorg_cv_cc_flag_unknown_warning_option=yes
15375else
15376  xorg_cv_cc_flag_unknown_warning_option=no
15377fi
15378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15379fi
15380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15381$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15382	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15383	CFLAGS="$xorg_testset_save_CFLAGS"
15384fi
15385
15386if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15387	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15388		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15389	fi
15390	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15391	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15392$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15393if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15394  $as_echo_n "(cached) " >&6
15395else
15396  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397/* end confdefs.h.  */
15398int i;
15399_ACEOF
15400if ac_fn_c_try_compile "$LINENO"; then :
15401  xorg_cv_cc_flag_unused_command_line_argument=yes
15402else
15403  xorg_cv_cc_flag_unused_command_line_argument=no
15404fi
15405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15406fi
15407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15408$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15409	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15410	CFLAGS="$xorg_testset_save_CFLAGS"
15411fi
15412
15413found="no"
15414
15415	if test $found = "no" ; then
15416		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15417			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15418		fi
15419
15420		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15421			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15422		fi
15423
15424		CFLAGS="$CFLAGS -Werror=address"
15425
15426		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15427$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15428		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
15429		if eval \${$cacheid+:} false; then :
15430  $as_echo_n "(cached) " >&6
15431else
15432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15433/* end confdefs.h.  */
15434int i;
15435int
15436main ()
15437{
15438
15439  ;
15440  return 0;
15441}
15442_ACEOF
15443if ac_fn_c_try_link "$LINENO"; then :
15444  eval $cacheid=yes
15445else
15446  eval $cacheid=no
15447fi
15448rm -f core conftest.err conftest.$ac_objext \
15449    conftest$ac_exeext conftest.$ac_ext
15450fi
15451
15452
15453		CFLAGS="$xorg_testset_save_CFLAGS"
15454
15455		eval supported=\$$cacheid
15456		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15457$as_echo "$supported" >&6; }
15458		if test "$supported" = "yes" ; then
15459			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15460			found="yes"
15461		fi
15462	fi
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478xorg_testset_save_CFLAGS="$CFLAGS"
15479
15480if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15481	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15482	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15483$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15484if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15485  $as_echo_n "(cached) " >&6
15486else
15487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15488/* end confdefs.h.  */
15489int i;
15490_ACEOF
15491if ac_fn_c_try_compile "$LINENO"; then :
15492  xorg_cv_cc_flag_unknown_warning_option=yes
15493else
15494  xorg_cv_cc_flag_unknown_warning_option=no
15495fi
15496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15497fi
15498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15499$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15500	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15501	CFLAGS="$xorg_testset_save_CFLAGS"
15502fi
15503
15504if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15505	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15506		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15507	fi
15508	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15509	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15510$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15511if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15512  $as_echo_n "(cached) " >&6
15513else
15514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15515/* end confdefs.h.  */
15516int i;
15517_ACEOF
15518if ac_fn_c_try_compile "$LINENO"; then :
15519  xorg_cv_cc_flag_unused_command_line_argument=yes
15520else
15521  xorg_cv_cc_flag_unused_command_line_argument=no
15522fi
15523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15524fi
15525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15526$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15527	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15528	CFLAGS="$xorg_testset_save_CFLAGS"
15529fi
15530
15531found="no"
15532
15533	if test $found = "no" ; then
15534		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15535			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15536		fi
15537
15538		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15539			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15540		fi
15541
15542		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15543
15544		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15545$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15546		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
15547		if eval \${$cacheid+:} false; then :
15548  $as_echo_n "(cached) " >&6
15549else
15550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15551/* end confdefs.h.  */
15552int i;
15553int
15554main ()
15555{
15556
15557  ;
15558  return 0;
15559}
15560_ACEOF
15561if ac_fn_c_try_link "$LINENO"; then :
15562  eval $cacheid=yes
15563else
15564  eval $cacheid=no
15565fi
15566rm -f core conftest.err conftest.$ac_objext \
15567    conftest$ac_exeext conftest.$ac_ext
15568fi
15569
15570
15571		CFLAGS="$xorg_testset_save_CFLAGS"
15572
15573		eval supported=\$$cacheid
15574		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15575$as_echo "$supported" >&6; }
15576		if test "$supported" = "yes" ; then
15577			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15578			found="yes"
15579		fi
15580	fi
15581
15582	if test $found = "no" ; then
15583		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15584			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15585		fi
15586
15587		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15588			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15589		fi
15590
15591		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15592
15593		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15594$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15595		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
15596		if eval \${$cacheid+:} false; then :
15597  $as_echo_n "(cached) " >&6
15598else
15599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15600/* end confdefs.h.  */
15601int i;
15602int
15603main ()
15604{
15605
15606  ;
15607  return 0;
15608}
15609_ACEOF
15610if ac_fn_c_try_link "$LINENO"; then :
15611  eval $cacheid=yes
15612else
15613  eval $cacheid=no
15614fi
15615rm -f core conftest.err conftest.$ac_objext \
15616    conftest$ac_exeext conftest.$ac_ext
15617fi
15618
15619
15620		CFLAGS="$xorg_testset_save_CFLAGS"
15621
15622		eval supported=\$$cacheid
15623		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15624$as_echo "$supported" >&6; }
15625		if test "$supported" = "yes" ; then
15626			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15627			found="yes"
15628		fi
15629	fi
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645xorg_testset_save_CFLAGS="$CFLAGS"
15646
15647if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15648	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15649	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15650$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15651if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15652  $as_echo_n "(cached) " >&6
15653else
15654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15655/* end confdefs.h.  */
15656int i;
15657_ACEOF
15658if ac_fn_c_try_compile "$LINENO"; then :
15659  xorg_cv_cc_flag_unknown_warning_option=yes
15660else
15661  xorg_cv_cc_flag_unknown_warning_option=no
15662fi
15663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15664fi
15665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15666$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15667	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15668	CFLAGS="$xorg_testset_save_CFLAGS"
15669fi
15670
15671if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15672	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15673		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15674	fi
15675	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15676	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15677$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15678if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15679  $as_echo_n "(cached) " >&6
15680else
15681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15682/* end confdefs.h.  */
15683int i;
15684_ACEOF
15685if ac_fn_c_try_compile "$LINENO"; then :
15686  xorg_cv_cc_flag_unused_command_line_argument=yes
15687else
15688  xorg_cv_cc_flag_unused_command_line_argument=no
15689fi
15690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15691fi
15692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15693$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15694	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15695	CFLAGS="$xorg_testset_save_CFLAGS"
15696fi
15697
15698found="no"
15699
15700	if test $found = "no" ; then
15701		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15702			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15703		fi
15704
15705		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15706			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15707		fi
15708
15709		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15710
15711		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15712$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15713		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
15714		if eval \${$cacheid+:} false; then :
15715  $as_echo_n "(cached) " >&6
15716else
15717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15718/* end confdefs.h.  */
15719int i;
15720int
15721main ()
15722{
15723
15724  ;
15725  return 0;
15726}
15727_ACEOF
15728if ac_fn_c_try_link "$LINENO"; then :
15729  eval $cacheid=yes
15730else
15731  eval $cacheid=no
15732fi
15733rm -f core conftest.err conftest.$ac_objext \
15734    conftest$ac_exeext conftest.$ac_ext
15735fi
15736
15737
15738		CFLAGS="$xorg_testset_save_CFLAGS"
15739
15740		eval supported=\$$cacheid
15741		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15742$as_echo "$supported" >&6; }
15743		if test "$supported" = "yes" ; then
15744			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15745			found="yes"
15746		fi
15747	fi
15748
15749 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15750else
15751{ $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
15752$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;}
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766xorg_testset_save_CFLAGS="$CFLAGS"
15767
15768if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15769	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15770	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15771$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15772if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15773  $as_echo_n "(cached) " >&6
15774else
15775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15776/* end confdefs.h.  */
15777int i;
15778_ACEOF
15779if ac_fn_c_try_compile "$LINENO"; then :
15780  xorg_cv_cc_flag_unknown_warning_option=yes
15781else
15782  xorg_cv_cc_flag_unknown_warning_option=no
15783fi
15784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15785fi
15786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15787$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15788	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15789	CFLAGS="$xorg_testset_save_CFLAGS"
15790fi
15791
15792if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15793	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15794		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15795	fi
15796	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15797	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15798$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15799if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15800  $as_echo_n "(cached) " >&6
15801else
15802  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15803/* end confdefs.h.  */
15804int i;
15805_ACEOF
15806if ac_fn_c_try_compile "$LINENO"; then :
15807  xorg_cv_cc_flag_unused_command_line_argument=yes
15808else
15809  xorg_cv_cc_flag_unused_command_line_argument=no
15810fi
15811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15812fi
15813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15814$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15815	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15816	CFLAGS="$xorg_testset_save_CFLAGS"
15817fi
15818
15819found="no"
15820
15821	if test $found = "no" ; then
15822		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15823			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15824		fi
15825
15826		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15827			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15828		fi
15829
15830		CFLAGS="$CFLAGS -Wimplicit"
15831
15832		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15833$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15834		cacheid=xorg_cv_cc_flag__Wimplicit
15835		if eval \${$cacheid+:} false; then :
15836  $as_echo_n "(cached) " >&6
15837else
15838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15839/* end confdefs.h.  */
15840int i;
15841int
15842main ()
15843{
15844
15845  ;
15846  return 0;
15847}
15848_ACEOF
15849if ac_fn_c_try_link "$LINENO"; then :
15850  eval $cacheid=yes
15851else
15852  eval $cacheid=no
15853fi
15854rm -f core conftest.err conftest.$ac_objext \
15855    conftest$ac_exeext conftest.$ac_ext
15856fi
15857
15858
15859		CFLAGS="$xorg_testset_save_CFLAGS"
15860
15861		eval supported=\$$cacheid
15862		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15863$as_echo "$supported" >&6; }
15864		if test "$supported" = "yes" ; then
15865			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15866			found="yes"
15867		fi
15868	fi
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884xorg_testset_save_CFLAGS="$CFLAGS"
15885
15886if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15887	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15888	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15889$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15890if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15891  $as_echo_n "(cached) " >&6
15892else
15893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15894/* end confdefs.h.  */
15895int i;
15896_ACEOF
15897if ac_fn_c_try_compile "$LINENO"; then :
15898  xorg_cv_cc_flag_unknown_warning_option=yes
15899else
15900  xorg_cv_cc_flag_unknown_warning_option=no
15901fi
15902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15903fi
15904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15905$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15906	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15907	CFLAGS="$xorg_testset_save_CFLAGS"
15908fi
15909
15910if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15911	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15912		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15913	fi
15914	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15915	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15916$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15917if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15918  $as_echo_n "(cached) " >&6
15919else
15920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15921/* end confdefs.h.  */
15922int i;
15923_ACEOF
15924if ac_fn_c_try_compile "$LINENO"; then :
15925  xorg_cv_cc_flag_unused_command_line_argument=yes
15926else
15927  xorg_cv_cc_flag_unused_command_line_argument=no
15928fi
15929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15930fi
15931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15932$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15933	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15934	CFLAGS="$xorg_testset_save_CFLAGS"
15935fi
15936
15937found="no"
15938
15939	if test $found = "no" ; then
15940		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15941			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15942		fi
15943
15944		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15945			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15946		fi
15947
15948		CFLAGS="$CFLAGS -Wnonnull"
15949
15950		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15951$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15952		cacheid=xorg_cv_cc_flag__Wnonnull
15953		if eval \${$cacheid+:} false; then :
15954  $as_echo_n "(cached) " >&6
15955else
15956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15957/* end confdefs.h.  */
15958int i;
15959int
15960main ()
15961{
15962
15963  ;
15964  return 0;
15965}
15966_ACEOF
15967if ac_fn_c_try_link "$LINENO"; then :
15968  eval $cacheid=yes
15969else
15970  eval $cacheid=no
15971fi
15972rm -f core conftest.err conftest.$ac_objext \
15973    conftest$ac_exeext conftest.$ac_ext
15974fi
15975
15976
15977		CFLAGS="$xorg_testset_save_CFLAGS"
15978
15979		eval supported=\$$cacheid
15980		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15981$as_echo "$supported" >&6; }
15982		if test "$supported" = "yes" ; then
15983			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15984			found="yes"
15985		fi
15986	fi
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002xorg_testset_save_CFLAGS="$CFLAGS"
16003
16004if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16005	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16006	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16007$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16008if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16009  $as_echo_n "(cached) " >&6
16010else
16011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012/* end confdefs.h.  */
16013int i;
16014_ACEOF
16015if ac_fn_c_try_compile "$LINENO"; then :
16016  xorg_cv_cc_flag_unknown_warning_option=yes
16017else
16018  xorg_cv_cc_flag_unknown_warning_option=no
16019fi
16020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16021fi
16022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16023$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16024	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16025	CFLAGS="$xorg_testset_save_CFLAGS"
16026fi
16027
16028if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16029	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16030		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16031	fi
16032	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16033	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16034$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16035if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16036  $as_echo_n "(cached) " >&6
16037else
16038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16039/* end confdefs.h.  */
16040int i;
16041_ACEOF
16042if ac_fn_c_try_compile "$LINENO"; then :
16043  xorg_cv_cc_flag_unused_command_line_argument=yes
16044else
16045  xorg_cv_cc_flag_unused_command_line_argument=no
16046fi
16047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16048fi
16049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16050$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16051	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16052	CFLAGS="$xorg_testset_save_CFLAGS"
16053fi
16054
16055found="no"
16056
16057	if test $found = "no" ; then
16058		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16059			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16060		fi
16061
16062		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16063			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16064		fi
16065
16066		CFLAGS="$CFLAGS -Winit-self"
16067
16068		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16069$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16070		cacheid=xorg_cv_cc_flag__Winit_self
16071		if eval \${$cacheid+:} false; then :
16072  $as_echo_n "(cached) " >&6
16073else
16074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16075/* end confdefs.h.  */
16076int i;
16077int
16078main ()
16079{
16080
16081  ;
16082  return 0;
16083}
16084_ACEOF
16085if ac_fn_c_try_link "$LINENO"; then :
16086  eval $cacheid=yes
16087else
16088  eval $cacheid=no
16089fi
16090rm -f core conftest.err conftest.$ac_objext \
16091    conftest$ac_exeext conftest.$ac_ext
16092fi
16093
16094
16095		CFLAGS="$xorg_testset_save_CFLAGS"
16096
16097		eval supported=\$$cacheid
16098		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16099$as_echo "$supported" >&6; }
16100		if test "$supported" = "yes" ; then
16101			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16102			found="yes"
16103		fi
16104	fi
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120xorg_testset_save_CFLAGS="$CFLAGS"
16121
16122if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16123	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16124	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16125$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16126if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16127  $as_echo_n "(cached) " >&6
16128else
16129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16130/* end confdefs.h.  */
16131int i;
16132_ACEOF
16133if ac_fn_c_try_compile "$LINENO"; then :
16134  xorg_cv_cc_flag_unknown_warning_option=yes
16135else
16136  xorg_cv_cc_flag_unknown_warning_option=no
16137fi
16138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16139fi
16140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16141$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16142	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16143	CFLAGS="$xorg_testset_save_CFLAGS"
16144fi
16145
16146if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16147	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16148		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16149	fi
16150	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16151	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16152$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16153if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16154  $as_echo_n "(cached) " >&6
16155else
16156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16157/* end confdefs.h.  */
16158int i;
16159_ACEOF
16160if ac_fn_c_try_compile "$LINENO"; then :
16161  xorg_cv_cc_flag_unused_command_line_argument=yes
16162else
16163  xorg_cv_cc_flag_unused_command_line_argument=no
16164fi
16165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16166fi
16167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16168$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16169	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16170	CFLAGS="$xorg_testset_save_CFLAGS"
16171fi
16172
16173found="no"
16174
16175	if test $found = "no" ; then
16176		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16177			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16178		fi
16179
16180		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16181			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16182		fi
16183
16184		CFLAGS="$CFLAGS -Wmain"
16185
16186		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16187$as_echo_n "checking if $CC supports -Wmain... " >&6; }
16188		cacheid=xorg_cv_cc_flag__Wmain
16189		if eval \${$cacheid+:} false; then :
16190  $as_echo_n "(cached) " >&6
16191else
16192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16193/* end confdefs.h.  */
16194int i;
16195int
16196main ()
16197{
16198
16199  ;
16200  return 0;
16201}
16202_ACEOF
16203if ac_fn_c_try_link "$LINENO"; then :
16204  eval $cacheid=yes
16205else
16206  eval $cacheid=no
16207fi
16208rm -f core conftest.err conftest.$ac_objext \
16209    conftest$ac_exeext conftest.$ac_ext
16210fi
16211
16212
16213		CFLAGS="$xorg_testset_save_CFLAGS"
16214
16215		eval supported=\$$cacheid
16216		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16217$as_echo "$supported" >&6; }
16218		if test "$supported" = "yes" ; then
16219			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16220			found="yes"
16221		fi
16222	fi
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238xorg_testset_save_CFLAGS="$CFLAGS"
16239
16240if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16241	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16242	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16243$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16244if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16245  $as_echo_n "(cached) " >&6
16246else
16247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16248/* end confdefs.h.  */
16249int i;
16250_ACEOF
16251if ac_fn_c_try_compile "$LINENO"; then :
16252  xorg_cv_cc_flag_unknown_warning_option=yes
16253else
16254  xorg_cv_cc_flag_unknown_warning_option=no
16255fi
16256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16257fi
16258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16259$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16260	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16261	CFLAGS="$xorg_testset_save_CFLAGS"
16262fi
16263
16264if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16265	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16266		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16267	fi
16268	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16269	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16270$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16271if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16272  $as_echo_n "(cached) " >&6
16273else
16274  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16275/* end confdefs.h.  */
16276int i;
16277_ACEOF
16278if ac_fn_c_try_compile "$LINENO"; then :
16279  xorg_cv_cc_flag_unused_command_line_argument=yes
16280else
16281  xorg_cv_cc_flag_unused_command_line_argument=no
16282fi
16283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16284fi
16285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16286$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16287	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16288	CFLAGS="$xorg_testset_save_CFLAGS"
16289fi
16290
16291found="no"
16292
16293	if test $found = "no" ; then
16294		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16295			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16296		fi
16297
16298		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16299			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16300		fi
16301
16302		CFLAGS="$CFLAGS -Wmissing-braces"
16303
16304		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16305$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16306		cacheid=xorg_cv_cc_flag__Wmissing_braces
16307		if eval \${$cacheid+:} false; then :
16308  $as_echo_n "(cached) " >&6
16309else
16310  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16311/* end confdefs.h.  */
16312int i;
16313int
16314main ()
16315{
16316
16317  ;
16318  return 0;
16319}
16320_ACEOF
16321if ac_fn_c_try_link "$LINENO"; then :
16322  eval $cacheid=yes
16323else
16324  eval $cacheid=no
16325fi
16326rm -f core conftest.err conftest.$ac_objext \
16327    conftest$ac_exeext conftest.$ac_ext
16328fi
16329
16330
16331		CFLAGS="$xorg_testset_save_CFLAGS"
16332
16333		eval supported=\$$cacheid
16334		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16335$as_echo "$supported" >&6; }
16336		if test "$supported" = "yes" ; then
16337			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16338			found="yes"
16339		fi
16340	fi
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356xorg_testset_save_CFLAGS="$CFLAGS"
16357
16358if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16359	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16360	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16361$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16362if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16363  $as_echo_n "(cached) " >&6
16364else
16365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16366/* end confdefs.h.  */
16367int i;
16368_ACEOF
16369if ac_fn_c_try_compile "$LINENO"; then :
16370  xorg_cv_cc_flag_unknown_warning_option=yes
16371else
16372  xorg_cv_cc_flag_unknown_warning_option=no
16373fi
16374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16375fi
16376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16377$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16378	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16379	CFLAGS="$xorg_testset_save_CFLAGS"
16380fi
16381
16382if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16383	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16384		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16385	fi
16386	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16387	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16388$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16389if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16390  $as_echo_n "(cached) " >&6
16391else
16392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16393/* end confdefs.h.  */
16394int i;
16395_ACEOF
16396if ac_fn_c_try_compile "$LINENO"; then :
16397  xorg_cv_cc_flag_unused_command_line_argument=yes
16398else
16399  xorg_cv_cc_flag_unused_command_line_argument=no
16400fi
16401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16402fi
16403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16404$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16405	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16406	CFLAGS="$xorg_testset_save_CFLAGS"
16407fi
16408
16409found="no"
16410
16411	if test $found = "no" ; then
16412		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16413			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16414		fi
16415
16416		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16417			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16418		fi
16419
16420		CFLAGS="$CFLAGS -Wsequence-point"
16421
16422		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16423$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16424		cacheid=xorg_cv_cc_flag__Wsequence_point
16425		if eval \${$cacheid+:} false; then :
16426  $as_echo_n "(cached) " >&6
16427else
16428  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16429/* end confdefs.h.  */
16430int i;
16431int
16432main ()
16433{
16434
16435  ;
16436  return 0;
16437}
16438_ACEOF
16439if ac_fn_c_try_link "$LINENO"; then :
16440  eval $cacheid=yes
16441else
16442  eval $cacheid=no
16443fi
16444rm -f core conftest.err conftest.$ac_objext \
16445    conftest$ac_exeext conftest.$ac_ext
16446fi
16447
16448
16449		CFLAGS="$xorg_testset_save_CFLAGS"
16450
16451		eval supported=\$$cacheid
16452		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16453$as_echo "$supported" >&6; }
16454		if test "$supported" = "yes" ; then
16455			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16456			found="yes"
16457		fi
16458	fi
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474xorg_testset_save_CFLAGS="$CFLAGS"
16475
16476if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16477	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16478	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16479$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16480if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16481  $as_echo_n "(cached) " >&6
16482else
16483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16484/* end confdefs.h.  */
16485int i;
16486_ACEOF
16487if ac_fn_c_try_compile "$LINENO"; then :
16488  xorg_cv_cc_flag_unknown_warning_option=yes
16489else
16490  xorg_cv_cc_flag_unknown_warning_option=no
16491fi
16492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16493fi
16494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16495$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16496	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16497	CFLAGS="$xorg_testset_save_CFLAGS"
16498fi
16499
16500if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16501	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16502		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16503	fi
16504	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16505	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16506$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16507if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16508  $as_echo_n "(cached) " >&6
16509else
16510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16511/* end confdefs.h.  */
16512int i;
16513_ACEOF
16514if ac_fn_c_try_compile "$LINENO"; then :
16515  xorg_cv_cc_flag_unused_command_line_argument=yes
16516else
16517  xorg_cv_cc_flag_unused_command_line_argument=no
16518fi
16519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16520fi
16521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16522$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16523	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16524	CFLAGS="$xorg_testset_save_CFLAGS"
16525fi
16526
16527found="no"
16528
16529	if test $found = "no" ; then
16530		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16531			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16532		fi
16533
16534		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16535			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16536		fi
16537
16538		CFLAGS="$CFLAGS -Wreturn-type"
16539
16540		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16541$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16542		cacheid=xorg_cv_cc_flag__Wreturn_type
16543		if eval \${$cacheid+:} false; then :
16544  $as_echo_n "(cached) " >&6
16545else
16546  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16547/* end confdefs.h.  */
16548int i;
16549int
16550main ()
16551{
16552
16553  ;
16554  return 0;
16555}
16556_ACEOF
16557if ac_fn_c_try_link "$LINENO"; then :
16558  eval $cacheid=yes
16559else
16560  eval $cacheid=no
16561fi
16562rm -f core conftest.err conftest.$ac_objext \
16563    conftest$ac_exeext conftest.$ac_ext
16564fi
16565
16566
16567		CFLAGS="$xorg_testset_save_CFLAGS"
16568
16569		eval supported=\$$cacheid
16570		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16571$as_echo "$supported" >&6; }
16572		if test "$supported" = "yes" ; then
16573			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16574			found="yes"
16575		fi
16576	fi
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592xorg_testset_save_CFLAGS="$CFLAGS"
16593
16594if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16595	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16596	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16597$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16598if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16599  $as_echo_n "(cached) " >&6
16600else
16601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16602/* end confdefs.h.  */
16603int i;
16604_ACEOF
16605if ac_fn_c_try_compile "$LINENO"; then :
16606  xorg_cv_cc_flag_unknown_warning_option=yes
16607else
16608  xorg_cv_cc_flag_unknown_warning_option=no
16609fi
16610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16611fi
16612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16613$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16614	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16615	CFLAGS="$xorg_testset_save_CFLAGS"
16616fi
16617
16618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16619	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16620		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16621	fi
16622	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16623	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16624$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16625if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16626  $as_echo_n "(cached) " >&6
16627else
16628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16629/* end confdefs.h.  */
16630int i;
16631_ACEOF
16632if ac_fn_c_try_compile "$LINENO"; then :
16633  xorg_cv_cc_flag_unused_command_line_argument=yes
16634else
16635  xorg_cv_cc_flag_unused_command_line_argument=no
16636fi
16637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16638fi
16639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16640$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16641	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16642	CFLAGS="$xorg_testset_save_CFLAGS"
16643fi
16644
16645found="no"
16646
16647	if test $found = "no" ; then
16648		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16649			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16650		fi
16651
16652		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16653			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16654		fi
16655
16656		CFLAGS="$CFLAGS -Wtrigraphs"
16657
16658		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16659$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16660		cacheid=xorg_cv_cc_flag__Wtrigraphs
16661		if eval \${$cacheid+:} false; then :
16662  $as_echo_n "(cached) " >&6
16663else
16664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16665/* end confdefs.h.  */
16666int i;
16667int
16668main ()
16669{
16670
16671  ;
16672  return 0;
16673}
16674_ACEOF
16675if ac_fn_c_try_link "$LINENO"; then :
16676  eval $cacheid=yes
16677else
16678  eval $cacheid=no
16679fi
16680rm -f core conftest.err conftest.$ac_objext \
16681    conftest$ac_exeext conftest.$ac_ext
16682fi
16683
16684
16685		CFLAGS="$xorg_testset_save_CFLAGS"
16686
16687		eval supported=\$$cacheid
16688		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16689$as_echo "$supported" >&6; }
16690		if test "$supported" = "yes" ; then
16691			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16692			found="yes"
16693		fi
16694	fi
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710xorg_testset_save_CFLAGS="$CFLAGS"
16711
16712if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16713	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16714	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16715$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16716if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16717  $as_echo_n "(cached) " >&6
16718else
16719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16720/* end confdefs.h.  */
16721int i;
16722_ACEOF
16723if ac_fn_c_try_compile "$LINENO"; then :
16724  xorg_cv_cc_flag_unknown_warning_option=yes
16725else
16726  xorg_cv_cc_flag_unknown_warning_option=no
16727fi
16728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16729fi
16730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16731$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16732	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16733	CFLAGS="$xorg_testset_save_CFLAGS"
16734fi
16735
16736if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16737	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16738		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16739	fi
16740	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16741	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16742$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16743if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16744  $as_echo_n "(cached) " >&6
16745else
16746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16747/* end confdefs.h.  */
16748int i;
16749_ACEOF
16750if ac_fn_c_try_compile "$LINENO"; then :
16751  xorg_cv_cc_flag_unused_command_line_argument=yes
16752else
16753  xorg_cv_cc_flag_unused_command_line_argument=no
16754fi
16755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16756fi
16757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16758$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16759	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16760	CFLAGS="$xorg_testset_save_CFLAGS"
16761fi
16762
16763found="no"
16764
16765	if test $found = "no" ; then
16766		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16767			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16768		fi
16769
16770		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16771			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16772		fi
16773
16774		CFLAGS="$CFLAGS -Warray-bounds"
16775
16776		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16777$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16778		cacheid=xorg_cv_cc_flag__Warray_bounds
16779		if eval \${$cacheid+:} false; then :
16780  $as_echo_n "(cached) " >&6
16781else
16782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16783/* end confdefs.h.  */
16784int i;
16785int
16786main ()
16787{
16788
16789  ;
16790  return 0;
16791}
16792_ACEOF
16793if ac_fn_c_try_link "$LINENO"; then :
16794  eval $cacheid=yes
16795else
16796  eval $cacheid=no
16797fi
16798rm -f core conftest.err conftest.$ac_objext \
16799    conftest$ac_exeext conftest.$ac_ext
16800fi
16801
16802
16803		CFLAGS="$xorg_testset_save_CFLAGS"
16804
16805		eval supported=\$$cacheid
16806		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16807$as_echo "$supported" >&6; }
16808		if test "$supported" = "yes" ; then
16809			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16810			found="yes"
16811		fi
16812	fi
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828xorg_testset_save_CFLAGS="$CFLAGS"
16829
16830if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16831	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16832	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16833$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16834if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16835  $as_echo_n "(cached) " >&6
16836else
16837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16838/* end confdefs.h.  */
16839int i;
16840_ACEOF
16841if ac_fn_c_try_compile "$LINENO"; then :
16842  xorg_cv_cc_flag_unknown_warning_option=yes
16843else
16844  xorg_cv_cc_flag_unknown_warning_option=no
16845fi
16846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16847fi
16848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16849$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16850	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16851	CFLAGS="$xorg_testset_save_CFLAGS"
16852fi
16853
16854if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16855	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16856		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16857	fi
16858	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16859	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16860$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16861if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16862  $as_echo_n "(cached) " >&6
16863else
16864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16865/* end confdefs.h.  */
16866int i;
16867_ACEOF
16868if ac_fn_c_try_compile "$LINENO"; then :
16869  xorg_cv_cc_flag_unused_command_line_argument=yes
16870else
16871  xorg_cv_cc_flag_unused_command_line_argument=no
16872fi
16873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874fi
16875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16876$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16877	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16878	CFLAGS="$xorg_testset_save_CFLAGS"
16879fi
16880
16881found="no"
16882
16883	if test $found = "no" ; then
16884		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16885			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16886		fi
16887
16888		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16889			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16890		fi
16891
16892		CFLAGS="$CFLAGS -Wwrite-strings"
16893
16894		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16895$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16896		cacheid=xorg_cv_cc_flag__Wwrite_strings
16897		if eval \${$cacheid+:} false; then :
16898  $as_echo_n "(cached) " >&6
16899else
16900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16901/* end confdefs.h.  */
16902int i;
16903int
16904main ()
16905{
16906
16907  ;
16908  return 0;
16909}
16910_ACEOF
16911if ac_fn_c_try_link "$LINENO"; then :
16912  eval $cacheid=yes
16913else
16914  eval $cacheid=no
16915fi
16916rm -f core conftest.err conftest.$ac_objext \
16917    conftest$ac_exeext conftest.$ac_ext
16918fi
16919
16920
16921		CFLAGS="$xorg_testset_save_CFLAGS"
16922
16923		eval supported=\$$cacheid
16924		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16925$as_echo "$supported" >&6; }
16926		if test "$supported" = "yes" ; then
16927			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16928			found="yes"
16929		fi
16930	fi
16931
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946xorg_testset_save_CFLAGS="$CFLAGS"
16947
16948if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16949	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16950	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16951$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16952if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16953  $as_echo_n "(cached) " >&6
16954else
16955  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16956/* end confdefs.h.  */
16957int i;
16958_ACEOF
16959if ac_fn_c_try_compile "$LINENO"; then :
16960  xorg_cv_cc_flag_unknown_warning_option=yes
16961else
16962  xorg_cv_cc_flag_unknown_warning_option=no
16963fi
16964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16965fi
16966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16967$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16968	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16969	CFLAGS="$xorg_testset_save_CFLAGS"
16970fi
16971
16972if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16973	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16974		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16975	fi
16976	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16977	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16978$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16979if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16980  $as_echo_n "(cached) " >&6
16981else
16982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16983/* end confdefs.h.  */
16984int i;
16985_ACEOF
16986if ac_fn_c_try_compile "$LINENO"; then :
16987  xorg_cv_cc_flag_unused_command_line_argument=yes
16988else
16989  xorg_cv_cc_flag_unused_command_line_argument=no
16990fi
16991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16992fi
16993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16994$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16995	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16996	CFLAGS="$xorg_testset_save_CFLAGS"
16997fi
16998
16999found="no"
17000
17001	if test $found = "no" ; then
17002		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17003			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17004		fi
17005
17006		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17007			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17008		fi
17009
17010		CFLAGS="$CFLAGS -Waddress"
17011
17012		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17013$as_echo_n "checking if $CC supports -Waddress... " >&6; }
17014		cacheid=xorg_cv_cc_flag__Waddress
17015		if eval \${$cacheid+:} false; then :
17016  $as_echo_n "(cached) " >&6
17017else
17018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17019/* end confdefs.h.  */
17020int i;
17021int
17022main ()
17023{
17024
17025  ;
17026  return 0;
17027}
17028_ACEOF
17029if ac_fn_c_try_link "$LINENO"; then :
17030  eval $cacheid=yes
17031else
17032  eval $cacheid=no
17033fi
17034rm -f core conftest.err conftest.$ac_objext \
17035    conftest$ac_exeext conftest.$ac_ext
17036fi
17037
17038
17039		CFLAGS="$xorg_testset_save_CFLAGS"
17040
17041		eval supported=\$$cacheid
17042		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17043$as_echo "$supported" >&6; }
17044		if test "$supported" = "yes" ; then
17045			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17046			found="yes"
17047		fi
17048	fi
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064xorg_testset_save_CFLAGS="$CFLAGS"
17065
17066if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17067	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17068	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17069$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17070if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17071  $as_echo_n "(cached) " >&6
17072else
17073  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17074/* end confdefs.h.  */
17075int i;
17076_ACEOF
17077if ac_fn_c_try_compile "$LINENO"; then :
17078  xorg_cv_cc_flag_unknown_warning_option=yes
17079else
17080  xorg_cv_cc_flag_unknown_warning_option=no
17081fi
17082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17083fi
17084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17085$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17086	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17087	CFLAGS="$xorg_testset_save_CFLAGS"
17088fi
17089
17090if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17091	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17092		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17093	fi
17094	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17095	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17096$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17097if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17098  $as_echo_n "(cached) " >&6
17099else
17100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101/* end confdefs.h.  */
17102int i;
17103_ACEOF
17104if ac_fn_c_try_compile "$LINENO"; then :
17105  xorg_cv_cc_flag_unused_command_line_argument=yes
17106else
17107  xorg_cv_cc_flag_unused_command_line_argument=no
17108fi
17109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17110fi
17111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17112$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17113	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17114	CFLAGS="$xorg_testset_save_CFLAGS"
17115fi
17116
17117found="no"
17118
17119	if test $found = "no" ; then
17120		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17121			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17122		fi
17123
17124		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17125			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17126		fi
17127
17128		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17129
17130		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17131$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17132		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17133		if eval \${$cacheid+:} false; then :
17134  $as_echo_n "(cached) " >&6
17135else
17136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17137/* end confdefs.h.  */
17138int i;
17139int
17140main ()
17141{
17142
17143  ;
17144  return 0;
17145}
17146_ACEOF
17147if ac_fn_c_try_link "$LINENO"; then :
17148  eval $cacheid=yes
17149else
17150  eval $cacheid=no
17151fi
17152rm -f core conftest.err conftest.$ac_objext \
17153    conftest$ac_exeext conftest.$ac_ext
17154fi
17155
17156
17157		CFLAGS="$xorg_testset_save_CFLAGS"
17158
17159		eval supported=\$$cacheid
17160		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17161$as_echo "$supported" >&6; }
17162		if test "$supported" = "yes" ; then
17163			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17164			found="yes"
17165		fi
17166	fi
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182xorg_testset_save_CFLAGS="$CFLAGS"
17183
17184if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17185	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17186	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17187$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17188if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17189  $as_echo_n "(cached) " >&6
17190else
17191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17192/* end confdefs.h.  */
17193int i;
17194_ACEOF
17195if ac_fn_c_try_compile "$LINENO"; then :
17196  xorg_cv_cc_flag_unknown_warning_option=yes
17197else
17198  xorg_cv_cc_flag_unknown_warning_option=no
17199fi
17200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17201fi
17202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17203$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17204	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17205	CFLAGS="$xorg_testset_save_CFLAGS"
17206fi
17207
17208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17209	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17210		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17211	fi
17212	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17213	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17214$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17215if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17216  $as_echo_n "(cached) " >&6
17217else
17218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17219/* end confdefs.h.  */
17220int i;
17221_ACEOF
17222if ac_fn_c_try_compile "$LINENO"; then :
17223  xorg_cv_cc_flag_unused_command_line_argument=yes
17224else
17225  xorg_cv_cc_flag_unused_command_line_argument=no
17226fi
17227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17228fi
17229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17230$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17231	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17232	CFLAGS="$xorg_testset_save_CFLAGS"
17233fi
17234
17235found="no"
17236
17237	if test $found = "no" ; then
17238		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17239			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17240		fi
17241
17242		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17243			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17244		fi
17245
17246		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17247
17248		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17249$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17250		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17251		if eval \${$cacheid+:} false; then :
17252  $as_echo_n "(cached) " >&6
17253else
17254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17255/* end confdefs.h.  */
17256int i;
17257int
17258main ()
17259{
17260
17261  ;
17262  return 0;
17263}
17264_ACEOF
17265if ac_fn_c_try_link "$LINENO"; then :
17266  eval $cacheid=yes
17267else
17268  eval $cacheid=no
17269fi
17270rm -f core conftest.err conftest.$ac_objext \
17271    conftest$ac_exeext conftest.$ac_ext
17272fi
17273
17274
17275		CFLAGS="$xorg_testset_save_CFLAGS"
17276
17277		eval supported=\$$cacheid
17278		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17279$as_echo "$supported" >&6; }
17280		if test "$supported" = "yes" ; then
17281			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17282			found="yes"
17283		fi
17284	fi
17285
17286
17287fi
17288
17289
17290
17291
17292
17293
17294
17295		CWARNFLAGS="$BASE_CFLAGS"
17296		if  test "x$GCC" = xyes ; then
17297		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17298		fi
17299
17300
17301
17302
17303
17304
17305
17306
17307# Check whether --enable-strict-compilation was given.
17308if test "${enable_strict_compilation+set}" = set; then :
17309  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17310else
17311  STRICT_COMPILE=no
17312fi
17313
17314
17315
17316
17317
17318
17319STRICT_CFLAGS=""
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333xorg_testset_save_CFLAGS="$CFLAGS"
17334
17335if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17336	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17337	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17338$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17339if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17340  $as_echo_n "(cached) " >&6
17341else
17342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17343/* end confdefs.h.  */
17344int i;
17345_ACEOF
17346if ac_fn_c_try_compile "$LINENO"; then :
17347  xorg_cv_cc_flag_unknown_warning_option=yes
17348else
17349  xorg_cv_cc_flag_unknown_warning_option=no
17350fi
17351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17352fi
17353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17354$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17355	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17356	CFLAGS="$xorg_testset_save_CFLAGS"
17357fi
17358
17359if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17360	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17361		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17362	fi
17363	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17364	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17365$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17366if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17367  $as_echo_n "(cached) " >&6
17368else
17369  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17370/* end confdefs.h.  */
17371int i;
17372_ACEOF
17373if ac_fn_c_try_compile "$LINENO"; then :
17374  xorg_cv_cc_flag_unused_command_line_argument=yes
17375else
17376  xorg_cv_cc_flag_unused_command_line_argument=no
17377fi
17378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17379fi
17380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17381$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17382	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17383	CFLAGS="$xorg_testset_save_CFLAGS"
17384fi
17385
17386found="no"
17387
17388	if test $found = "no" ; then
17389		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17390			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17391		fi
17392
17393		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17394			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17395		fi
17396
17397		CFLAGS="$CFLAGS -pedantic"
17398
17399		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17400$as_echo_n "checking if $CC supports -pedantic... " >&6; }
17401		cacheid=xorg_cv_cc_flag__pedantic
17402		if eval \${$cacheid+:} false; then :
17403  $as_echo_n "(cached) " >&6
17404else
17405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17406/* end confdefs.h.  */
17407int i;
17408int
17409main ()
17410{
17411
17412  ;
17413  return 0;
17414}
17415_ACEOF
17416if ac_fn_c_try_link "$LINENO"; then :
17417  eval $cacheid=yes
17418else
17419  eval $cacheid=no
17420fi
17421rm -f core conftest.err conftest.$ac_objext \
17422    conftest$ac_exeext conftest.$ac_ext
17423fi
17424
17425
17426		CFLAGS="$xorg_testset_save_CFLAGS"
17427
17428		eval supported=\$$cacheid
17429		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17430$as_echo "$supported" >&6; }
17431		if test "$supported" = "yes" ; then
17432			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17433			found="yes"
17434		fi
17435	fi
17436
17437
17438
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451xorg_testset_save_CFLAGS="$CFLAGS"
17452
17453if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17454	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17455	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17456$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17457if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17458  $as_echo_n "(cached) " >&6
17459else
17460  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17461/* end confdefs.h.  */
17462int i;
17463_ACEOF
17464if ac_fn_c_try_compile "$LINENO"; then :
17465  xorg_cv_cc_flag_unknown_warning_option=yes
17466else
17467  xorg_cv_cc_flag_unknown_warning_option=no
17468fi
17469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17470fi
17471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17472$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17473	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17474	CFLAGS="$xorg_testset_save_CFLAGS"
17475fi
17476
17477if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17478	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17479		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17480	fi
17481	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17482	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17483$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17484if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17485  $as_echo_n "(cached) " >&6
17486else
17487  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17488/* end confdefs.h.  */
17489int i;
17490_ACEOF
17491if ac_fn_c_try_compile "$LINENO"; then :
17492  xorg_cv_cc_flag_unused_command_line_argument=yes
17493else
17494  xorg_cv_cc_flag_unused_command_line_argument=no
17495fi
17496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17497fi
17498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17499$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17500	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17501	CFLAGS="$xorg_testset_save_CFLAGS"
17502fi
17503
17504found="no"
17505
17506	if test $found = "no" ; then
17507		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17508			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17509		fi
17510
17511		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17512			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17513		fi
17514
17515		CFLAGS="$CFLAGS -Werror"
17516
17517		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17518$as_echo_n "checking if $CC supports -Werror... " >&6; }
17519		cacheid=xorg_cv_cc_flag__Werror
17520		if eval \${$cacheid+:} false; then :
17521  $as_echo_n "(cached) " >&6
17522else
17523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17524/* end confdefs.h.  */
17525int i;
17526int
17527main ()
17528{
17529
17530  ;
17531  return 0;
17532}
17533_ACEOF
17534if ac_fn_c_try_link "$LINENO"; then :
17535  eval $cacheid=yes
17536else
17537  eval $cacheid=no
17538fi
17539rm -f core conftest.err conftest.$ac_objext \
17540    conftest$ac_exeext conftest.$ac_ext
17541fi
17542
17543
17544		CFLAGS="$xorg_testset_save_CFLAGS"
17545
17546		eval supported=\$$cacheid
17547		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17548$as_echo "$supported" >&6; }
17549		if test "$supported" = "yes" ; then
17550			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17551			found="yes"
17552		fi
17553	fi
17554
17555	if test $found = "no" ; then
17556		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17557			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17558		fi
17559
17560		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17561			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17562		fi
17563
17564		CFLAGS="$CFLAGS -errwarn"
17565
17566		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17567$as_echo_n "checking if $CC supports -errwarn... " >&6; }
17568		cacheid=xorg_cv_cc_flag__errwarn
17569		if eval \${$cacheid+:} false; then :
17570  $as_echo_n "(cached) " >&6
17571else
17572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17573/* end confdefs.h.  */
17574int i;
17575int
17576main ()
17577{
17578
17579  ;
17580  return 0;
17581}
17582_ACEOF
17583if ac_fn_c_try_link "$LINENO"; then :
17584  eval $cacheid=yes
17585else
17586  eval $cacheid=no
17587fi
17588rm -f core conftest.err conftest.$ac_objext \
17589    conftest$ac_exeext conftest.$ac_ext
17590fi
17591
17592
17593		CFLAGS="$xorg_testset_save_CFLAGS"
17594
17595		eval supported=\$$cacheid
17596		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17597$as_echo "$supported" >&6; }
17598		if test "$supported" = "yes" ; then
17599			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17600			found="yes"
17601		fi
17602	fi
17603
17604
17605
17606# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17607# activate it with -Werror, so we add it here explicitly.
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621xorg_testset_save_CFLAGS="$CFLAGS"
17622
17623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17624	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17625	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17626$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17627if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17628  $as_echo_n "(cached) " >&6
17629else
17630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17631/* end confdefs.h.  */
17632int i;
17633_ACEOF
17634if ac_fn_c_try_compile "$LINENO"; then :
17635  xorg_cv_cc_flag_unknown_warning_option=yes
17636else
17637  xorg_cv_cc_flag_unknown_warning_option=no
17638fi
17639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17640fi
17641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17642$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17643	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17644	CFLAGS="$xorg_testset_save_CFLAGS"
17645fi
17646
17647if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17648	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17649		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17650	fi
17651	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17652	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17653$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17654if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17655  $as_echo_n "(cached) " >&6
17656else
17657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17658/* end confdefs.h.  */
17659int i;
17660_ACEOF
17661if ac_fn_c_try_compile "$LINENO"; then :
17662  xorg_cv_cc_flag_unused_command_line_argument=yes
17663else
17664  xorg_cv_cc_flag_unused_command_line_argument=no
17665fi
17666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17667fi
17668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17669$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17670	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17671	CFLAGS="$xorg_testset_save_CFLAGS"
17672fi
17673
17674found="no"
17675
17676	if test $found = "no" ; then
17677		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17678			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17679		fi
17680
17681		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17682			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17683		fi
17684
17685		CFLAGS="$CFLAGS -Werror=attributes"
17686
17687		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17688$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17689		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
17690		if eval \${$cacheid+:} false; then :
17691  $as_echo_n "(cached) " >&6
17692else
17693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17694/* end confdefs.h.  */
17695int i;
17696int
17697main ()
17698{
17699
17700  ;
17701  return 0;
17702}
17703_ACEOF
17704if ac_fn_c_try_link "$LINENO"; then :
17705  eval $cacheid=yes
17706else
17707  eval $cacheid=no
17708fi
17709rm -f core conftest.err conftest.$ac_objext \
17710    conftest$ac_exeext conftest.$ac_ext
17711fi
17712
17713
17714		CFLAGS="$xorg_testset_save_CFLAGS"
17715
17716		eval supported=\$$cacheid
17717		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17718$as_echo "$supported" >&6; }
17719		if test "$supported" = "yes" ; then
17720			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17721			found="yes"
17722		fi
17723	fi
17724
17725
17726
17727if test "x$STRICT_COMPILE" = "xyes"; then
17728    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17729    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17730fi
17731
17732
17733
17734
17735
17736
17737cat >>confdefs.h <<_ACEOF
17738#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17739_ACEOF
17740
17741	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17742	if test "x$PVM" = "x"; then
17743		PVM="0"
17744	fi
17745
17746cat >>confdefs.h <<_ACEOF
17747#define PACKAGE_VERSION_MINOR $PVM
17748_ACEOF
17749
17750	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17751	if test "x$PVP" = "x"; then
17752		PVP="0"
17753	fi
17754
17755cat >>confdefs.h <<_ACEOF
17756#define PACKAGE_VERSION_PATCHLEVEL $PVP
17757_ACEOF
17758
17759
17760
17761CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17762mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17763|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17764echo 'git directory not found: installing possibly empty changelog.' >&2)"
17765
17766
17767
17768
17769macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17770INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17771mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17772|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17773echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17774
17775
17776
17777
17778
17779
17780if test x$APP_MAN_SUFFIX = x    ; then
17781    APP_MAN_SUFFIX=1
17782fi
17783if test x$APP_MAN_DIR = x    ; then
17784    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17785fi
17786
17787if test x$LIB_MAN_SUFFIX = x    ; then
17788    LIB_MAN_SUFFIX=3
17789fi
17790if test x$LIB_MAN_DIR = x    ; then
17791    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17792fi
17793
17794if test x$FILE_MAN_SUFFIX = x    ; then
17795    case $host_os in
17796	solaris*)	FILE_MAN_SUFFIX=4  ;;
17797	*)		FILE_MAN_SUFFIX=5  ;;
17798    esac
17799fi
17800if test x$FILE_MAN_DIR = x    ; then
17801    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17802fi
17803
17804if test x$MISC_MAN_SUFFIX = x    ; then
17805    case $host_os in
17806	solaris*)	MISC_MAN_SUFFIX=5  ;;
17807	*)		MISC_MAN_SUFFIX=7  ;;
17808    esac
17809fi
17810if test x$MISC_MAN_DIR = x    ; then
17811    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17812fi
17813
17814if test x$DRIVER_MAN_SUFFIX = x    ; then
17815    case $host_os in
17816	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
17817	*)		DRIVER_MAN_SUFFIX=4  ;;
17818    esac
17819fi
17820if test x$DRIVER_MAN_DIR = x    ; then
17821    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17822fi
17823
17824if test x$ADMIN_MAN_SUFFIX = x    ; then
17825    case $host_os in
17826	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
17827	*)		ADMIN_MAN_SUFFIX=8  ;;
17828    esac
17829fi
17830if test x$ADMIN_MAN_DIR = x    ; then
17831    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17832fi
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848XORG_MAN_PAGE="X Version 11"
17849
17850MAN_SUBSTS="\
17851	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17852	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17853	-e 's|__xservername__|Xorg|g' \
17854	-e 's|__xconfigfile__|xorg.conf|g' \
17855	-e 's|__projectroot__|\$(prefix)|g' \
17856	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
17857	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17858	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17859	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17860	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17861	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17862	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17863
17864
17865
17866# Check whether --enable-silent-rules was given.
17867if test "${enable_silent_rules+set}" = set; then :
17868  enableval=$enable_silent_rules;
17869fi
17870
17871case $enable_silent_rules in # (((
17872  yes) AM_DEFAULT_VERBOSITY=0;;
17873   no) AM_DEFAULT_VERBOSITY=1;;
17874    *) AM_DEFAULT_VERBOSITY=0;;
17875esac
17876am_make=${MAKE-make}
17877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17878$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17879if ${am_cv_make_support_nested_variables+:} false; then :
17880  $as_echo_n "(cached) " >&6
17881else
17882  if $as_echo 'TRUE=$(BAR$(V))
17883BAR0=false
17884BAR1=true
17885V=1
17886am__doit:
17887	@$(TRUE)
17888.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17889  am_cv_make_support_nested_variables=yes
17890else
17891  am_cv_make_support_nested_variables=no
17892fi
17893fi
17894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17895$as_echo "$am_cv_make_support_nested_variables" >&6; }
17896if test $am_cv_make_support_nested_variables = yes; then
17897    AM_V='$(V)'
17898  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17899else
17900  AM_V=$AM_DEFAULT_VERBOSITY
17901  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17902fi
17903AM_BACKSLASH='\'
17904
17905
17906
17907pciids_path=/usr/share/hwdata
17908
17909# Check whether --with-pciids-path was given.
17910if test "${with_pciids_path+set}" = set; then :
17911  withval=$with_pciids_path; pciids_path="$withval"
17912fi
17913
17914
17915  prefix_NONE=
17916  exec_prefix_NONE=
17917  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
17918  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
17919  eval ax_define_dir="\"$pciids_path\""
17920  eval ax_define_dir="\"$ax_define_dir\""
17921  PCIIDS_PATH="$ax_define_dir"
17922
17923
17924cat >>confdefs.h <<_ACEOF
17925#define PCIIDS_PATH "$ax_define_dir"
17926_ACEOF
17927
17928  test "$prefix_NONE" && prefix=NONE
17929  test "$exec_prefix_NONE" && exec_prefix=NONE
17930
17931
17932# Check whether --enable-linux-rom-fallback was given.
17933if test "${enable_linux_rom_fallback+set}" = set; then :
17934  enableval=$enable_linux_rom_fallback; LINUX_ROM=$enableval
17935else
17936  LINUX_ROM=no
17937fi
17938
17939
17940if test "x$LINUX_ROM" = xyes; then
17941
17942$as_echo "#define LINUX_ROM 1" >>confdefs.h
17943
17944fi
17945
17946use_zlib=no
17947
17948# Check whether --with-zlib was given.
17949if test "${with_zlib+set}" = set; then :
17950  withval=$with_zlib; use_zlib="$withval"
17951fi
17952
17953if test "x$use_zlib" = xyes; then
17954	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
17955$as_echo_n "checking for gzopen in -lz... " >&6; }
17956if ${ac_cv_lib_z_gzopen+:} false; then :
17957  $as_echo_n "(cached) " >&6
17958else
17959  ac_check_lib_save_LIBS=$LIBS
17960LIBS="-lz  $LIBS"
17961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17962/* end confdefs.h.  */
17963
17964/* Override any GCC internal prototype to avoid an error.
17965   Use char because int might match the return type of a GCC
17966   builtin and then its argument prototype would still apply.  */
17967#ifdef __cplusplus
17968extern "C"
17969#endif
17970char gzopen ();
17971int
17972main ()
17973{
17974return gzopen ();
17975  ;
17976  return 0;
17977}
17978_ACEOF
17979if ac_fn_c_try_link "$LINENO"; then :
17980  ac_cv_lib_z_gzopen=yes
17981else
17982  ac_cv_lib_z_gzopen=no
17983fi
17984rm -f core conftest.err conftest.$ac_objext \
17985    conftest$ac_exeext conftest.$ac_ext
17986LIBS=$ac_check_lib_save_LIBS
17987fi
17988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
17989$as_echo "$ac_cv_lib_z_gzopen" >&6; }
17990if test "x$ac_cv_lib_z_gzopen" = xyes; then :
17991  PCIACCESS_LIBS="$PCIACCESS_LIBS -lz"
17992else
17993  as_fn_error $? "Check for zlib library failed" "$LINENO" 5
17994fi
17995
17996	ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17997if test "x$ac_cv_header_zlib_h" = xyes; then :
17998
17999$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
18000
18001else
18002  as_fn_error $? "Check for zlib.h header file failed" "$LINENO" 5
18003fi
18004
18005
18006fi
18007
18008case $host_os in
18009	*freebsd* | *dragonfly*)
18010		freebsd=yes
18011		;;
18012	*linux*)
18013		linux=yes
18014		;;
18015	*netbsd*)
18016		case $host in
18017		*i386*)
18018			PCIACCESS_LIBS="-li386 -lpci"
18019			;;
18020		*x86_64*|*amd64*)
18021			PCIACCESS_LIBS="-lx86_64 -lpci"
18022			;;
18023		esac
18024		netbsd=yes
18025		;;
18026	*openbsd*)
18027		openbsd=yes
18028		;;
18029	*solaris*)
18030		solaris=yes
18031		PCIACCESS_LIBS="$PCIACCESS_LIBS -ldevinfo"
18032		;;
18033	gnu*)
18034		gnu=yes
18035		;;
18036esac
18037
18038 if test "x$linux" = xyes; then
18039  LINUX_TRUE=
18040  LINUX_FALSE='#'
18041else
18042  LINUX_TRUE='#'
18043  LINUX_FALSE=
18044fi
18045
18046 if test "x$freebsd" = xyes; then
18047  FREEBSD_TRUE=
18048  FREEBSD_FALSE='#'
18049else
18050  FREEBSD_TRUE='#'
18051  FREEBSD_FALSE=
18052fi
18053
18054 if test "x$netbsd" = xyes; then
18055  NETBSD_TRUE=
18056  NETBSD_FALSE='#'
18057else
18058  NETBSD_TRUE='#'
18059  NETBSD_FALSE=
18060fi
18061
18062 if test "x$openbsd" = xyes; then
18063  OPENBSD_TRUE=
18064  OPENBSD_FALSE='#'
18065else
18066  OPENBSD_TRUE='#'
18067  OPENBSD_FALSE=
18068fi
18069
18070 if test "x$solaris" = xyes; then
18071  SOLARIS_TRUE=
18072  SOLARIS_FALSE='#'
18073else
18074  SOLARIS_TRUE='#'
18075  SOLARIS_FALSE=
18076fi
18077
18078 if test "x$gnu" = xyes; then
18079  GNU_TRUE=
18080  GNU_FALSE='#'
18081else
18082  GNU_TRUE='#'
18083  GNU_FALSE=
18084fi
18085
18086
18087# Check whether --enable-largefile was given.
18088if test "${enable_largefile+set}" = set; then :
18089  enableval=$enable_largefile;
18090fi
18091
18092if test "$enable_largefile" != no; then
18093
18094  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
18095$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18096if ${ac_cv_sys_largefile_CC+:} false; then :
18097  $as_echo_n "(cached) " >&6
18098else
18099  ac_cv_sys_largefile_CC=no
18100     if test "$GCC" != yes; then
18101       ac_save_CC=$CC
18102       while :; do
18103	 # IRIX 6.2 and later do not support large files by default,
18104	 # so use the C compiler's -n32 option if that helps.
18105	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18106/* end confdefs.h.  */
18107#include <sys/types.h>
18108 /* Check that off_t can represent 2**63 - 1 correctly.
18109    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18110    since some C++ compilers masquerading as C compilers
18111    incorrectly reject 9223372036854775807.  */
18112#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18113  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18114		       && LARGE_OFF_T % 2147483647 == 1)
18115		      ? 1 : -1];
18116int
18117main ()
18118{
18119
18120  ;
18121  return 0;
18122}
18123_ACEOF
18124	 if ac_fn_c_try_compile "$LINENO"; then :
18125  break
18126fi
18127rm -f core conftest.err conftest.$ac_objext
18128	 CC="$CC -n32"
18129	 if ac_fn_c_try_compile "$LINENO"; then :
18130  ac_cv_sys_largefile_CC=' -n32'; break
18131fi
18132rm -f core conftest.err conftest.$ac_objext
18133	 break
18134       done
18135       CC=$ac_save_CC
18136       rm -f conftest.$ac_ext
18137    fi
18138fi
18139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
18140$as_echo "$ac_cv_sys_largefile_CC" >&6; }
18141  if test "$ac_cv_sys_largefile_CC" != no; then
18142    CC=$CC$ac_cv_sys_largefile_CC
18143  fi
18144
18145  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18146$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18147if ${ac_cv_sys_file_offset_bits+:} false; then :
18148  $as_echo_n "(cached) " >&6
18149else
18150  while :; do
18151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18152/* end confdefs.h.  */
18153#include <sys/types.h>
18154 /* Check that off_t can represent 2**63 - 1 correctly.
18155    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18156    since some C++ compilers masquerading as C compilers
18157    incorrectly reject 9223372036854775807.  */
18158#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18159  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18160		       && LARGE_OFF_T % 2147483647 == 1)
18161		      ? 1 : -1];
18162int
18163main ()
18164{
18165
18166  ;
18167  return 0;
18168}
18169_ACEOF
18170if ac_fn_c_try_compile "$LINENO"; then :
18171  ac_cv_sys_file_offset_bits=no; break
18172fi
18173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18175/* end confdefs.h.  */
18176#define _FILE_OFFSET_BITS 64
18177#include <sys/types.h>
18178 /* Check that off_t can represent 2**63 - 1 correctly.
18179    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18180    since some C++ compilers masquerading as C compilers
18181    incorrectly reject 9223372036854775807.  */
18182#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18183  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18184		       && LARGE_OFF_T % 2147483647 == 1)
18185		      ? 1 : -1];
18186int
18187main ()
18188{
18189
18190  ;
18191  return 0;
18192}
18193_ACEOF
18194if ac_fn_c_try_compile "$LINENO"; then :
18195  ac_cv_sys_file_offset_bits=64; break
18196fi
18197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18198  ac_cv_sys_file_offset_bits=unknown
18199  break
18200done
18201fi
18202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18203$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18204case $ac_cv_sys_file_offset_bits in #(
18205  no | unknown) ;;
18206  *)
18207cat >>confdefs.h <<_ACEOF
18208#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18209_ACEOF
18210;;
18211esac
18212rm -rf conftest*
18213  if test $ac_cv_sys_file_offset_bits = unknown; then
18214    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18215$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18216if ${ac_cv_sys_large_files+:} false; then :
18217  $as_echo_n "(cached) " >&6
18218else
18219  while :; do
18220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18221/* end confdefs.h.  */
18222#include <sys/types.h>
18223 /* Check that off_t can represent 2**63 - 1 correctly.
18224    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18225    since some C++ compilers masquerading as C compilers
18226    incorrectly reject 9223372036854775807.  */
18227#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18228  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18229		       && LARGE_OFF_T % 2147483647 == 1)
18230		      ? 1 : -1];
18231int
18232main ()
18233{
18234
18235  ;
18236  return 0;
18237}
18238_ACEOF
18239if ac_fn_c_try_compile "$LINENO"; then :
18240  ac_cv_sys_large_files=no; break
18241fi
18242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18244/* end confdefs.h.  */
18245#define _LARGE_FILES 1
18246#include <sys/types.h>
18247 /* Check that off_t can represent 2**63 - 1 correctly.
18248    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18249    since some C++ compilers masquerading as C compilers
18250    incorrectly reject 9223372036854775807.  */
18251#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18252  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18253		       && LARGE_OFF_T % 2147483647 == 1)
18254		      ? 1 : -1];
18255int
18256main ()
18257{
18258
18259  ;
18260  return 0;
18261}
18262_ACEOF
18263if ac_fn_c_try_compile "$LINENO"; then :
18264  ac_cv_sys_large_files=1; break
18265fi
18266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18267  ac_cv_sys_large_files=unknown
18268  break
18269done
18270fi
18271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18272$as_echo "$ac_cv_sys_large_files" >&6; }
18273case $ac_cv_sys_large_files in #(
18274  no | unknown) ;;
18275  *)
18276cat >>confdefs.h <<_ACEOF
18277#define _LARGE_FILES $ac_cv_sys_large_files
18278_ACEOF
18279;;
18280esac
18281rm -rf conftest*
18282  fi
18283fi
18284
18285
18286for ac_header in err.h
18287do :
18288  ac_fn_c_check_header_mongrel "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
18289if test "x$ac_cv_header_err_h" = xyes; then :
18290  cat >>confdefs.h <<_ACEOF
18291#define HAVE_ERR_H 1
18292_ACEOF
18293
18294fi
18295
18296done
18297
18298
18299if test "x$netbsd" = xyes; then
18300for ac_header in machine/sysarch.h
18301do :
18302  ac_fn_c_check_header_mongrel "$LINENO" "machine/sysarch.h" "ac_cv_header_machine_sysarch_h" "$ac_includes_default"
18303if test "x$ac_cv_header_machine_sysarch_h" = xyes; then :
18304  cat >>confdefs.h <<_ACEOF
18305#define HAVE_MACHINE_SYSARCH_H 1
18306_ACEOF
18307
18308fi
18309
18310done
18311
18312for ac_header in machine/mtrr.h
18313do :
18314  ac_fn_c_check_header_compile "$LINENO" "machine/mtrr.h" "ac_cv_header_machine_mtrr_h" "#ifdef HAVE_MACHINE_SYSARCH_H
18315#include <sys/types.h>
18316#include <machine/sysarch.h>
18317#endif
18318
18319"
18320if test "x$ac_cv_header_machine_mtrr_h" = xyes; then :
18321  cat >>confdefs.h <<_ACEOF
18322#define HAVE_MACHINE_MTRR_H 1
18323_ACEOF
18324 have_mtrr_h="yes"
18325else
18326  have_mtrr_h="no"
18327fi
18328
18329done
18330
18331else
18332ac_fn_c_check_header_mongrel "$LINENO" "asm/mtrr.h" "ac_cv_header_asm_mtrr_h" "$ac_includes_default"
18333if test "x$ac_cv_header_asm_mtrr_h" = xyes; then :
18334  have_mtrr_h="yes"
18335else
18336  have_mtrr_h="no"
18337fi
18338
18339
18340fi
18341
18342if test "x$have_mtrr_h" = xyes; then
18343
18344$as_echo "#define HAVE_MTRR 1" >>confdefs.h
18345
18346fi
18347
18348# check for the pci_io.pi_sel.pc_domain
18349ac_fn_c_check_member "$LINENO" "struct pci_io" "pi_sel.pc_domain" "ac_cv_member_struct_pci_io_pi_sel_pc_domain" " #include <sys/types.h>
18350                 #include <sys/pciio.h>
18351
18352"
18353if test "x$ac_cv_member_struct_pci_io_pi_sel_pc_domain" = xyes; then :
18354
18355$as_echo "#define HAVE_PCI_IO_PC_DOMAIN 1" >>confdefs.h
18356
18357fi
18358
18359
18360
18361
18362
18363ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile src/Makefile scanpci/Makefile pciaccess.pc"
18364
18365cat >confcache <<\_ACEOF
18366# This file is a shell script that caches the results of configure
18367# tests run on this system so they can be shared between configure
18368# scripts and configure runs, see configure's option --config-cache.
18369# It is not useful on other systems.  If it contains results you don't
18370# want to keep, you may remove or edit it.
18371#
18372# config.status only pays attention to the cache file if you give it
18373# the --recheck option to rerun configure.
18374#
18375# `ac_cv_env_foo' variables (set or unset) will be overridden when
18376# loading this file, other *unset* `ac_cv_foo' will be assigned the
18377# following values.
18378
18379_ACEOF
18380
18381# The following way of writing the cache mishandles newlines in values,
18382# but we know of no workaround that is simple, portable, and efficient.
18383# So, we kill variables containing newlines.
18384# Ultrix sh set writes to stderr and can't be redirected directly,
18385# and sets the high bit in the cache file unless we assign to the vars.
18386(
18387  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18388    eval ac_val=\$$ac_var
18389    case $ac_val in #(
18390    *${as_nl}*)
18391      case $ac_var in #(
18392      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18393$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18394      esac
18395      case $ac_var in #(
18396      _ | IFS | as_nl) ;; #(
18397      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18398      *) { eval $ac_var=; unset $ac_var;} ;;
18399      esac ;;
18400    esac
18401  done
18402
18403  (set) 2>&1 |
18404    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18405    *${as_nl}ac_space=\ *)
18406      # `set' does not quote correctly, so add quotes: double-quote
18407      # substitution turns \\\\ into \\, and sed turns \\ into \.
18408      sed -n \
18409	"s/'/'\\\\''/g;
18410	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18411      ;; #(
18412    *)
18413      # `set' quotes correctly as required by POSIX, so do not add quotes.
18414      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18415      ;;
18416    esac |
18417    sort
18418) |
18419  sed '
18420     /^ac_cv_env_/b end
18421     t clear
18422     :clear
18423     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18424     t end
18425     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18426     :end' >>confcache
18427if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18428  if test -w "$cache_file"; then
18429    if test "x$cache_file" != "x/dev/null"; then
18430      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18431$as_echo "$as_me: updating cache $cache_file" >&6;}
18432      if test ! -f "$cache_file" || test -h "$cache_file"; then
18433	cat confcache >"$cache_file"
18434      else
18435        case $cache_file in #(
18436        */* | ?:*)
18437	  mv -f confcache "$cache_file"$$ &&
18438	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18439        *)
18440	  mv -f confcache "$cache_file" ;;
18441	esac
18442      fi
18443    fi
18444  else
18445    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18446$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18447  fi
18448fi
18449rm -f confcache
18450
18451test "x$prefix" = xNONE && prefix=$ac_default_prefix
18452# Let make expand exec_prefix.
18453test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18454
18455DEFS=-DHAVE_CONFIG_H
18456
18457ac_libobjs=
18458ac_ltlibobjs=
18459U=
18460for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18461  # 1. Remove the extension, and $U if already installed.
18462  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18463  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18464  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18465  #    will be set to the directory where LIBOBJS objects are built.
18466  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18467  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18468done
18469LIBOBJS=$ac_libobjs
18470
18471LTLIBOBJS=$ac_ltlibobjs
18472
18473
18474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18475$as_echo_n "checking that generated files are newer than configure... " >&6; }
18476   if test -n "$am_sleep_pid"; then
18477     # Hide warnings about reused PIDs.
18478     wait $am_sleep_pid 2>/dev/null
18479   fi
18480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18481$as_echo "done" >&6; }
18482 if test -n "$EXEEXT"; then
18483  am__EXEEXT_TRUE=
18484  am__EXEEXT_FALSE='#'
18485else
18486  am__EXEEXT_TRUE='#'
18487  am__EXEEXT_FALSE=
18488fi
18489
18490if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18491  as_fn_error $? "conditional \"AMDEP\" was never defined.
18492Usually this means the macro was only invoked conditionally." "$LINENO" 5
18493fi
18494if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18495  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18496Usually this means the macro was only invoked conditionally." "$LINENO" 5
18497fi
18498if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
18499  as_fn_error $? "conditional \"LINUX\" was never defined.
18500Usually this means the macro was only invoked conditionally." "$LINENO" 5
18501fi
18502if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then
18503  as_fn_error $? "conditional \"FREEBSD\" was never defined.
18504Usually this means the macro was only invoked conditionally." "$LINENO" 5
18505fi
18506if test -z "${NETBSD_TRUE}" && test -z "${NETBSD_FALSE}"; then
18507  as_fn_error $? "conditional \"NETBSD\" was never defined.
18508Usually this means the macro was only invoked conditionally." "$LINENO" 5
18509fi
18510if test -z "${OPENBSD_TRUE}" && test -z "${OPENBSD_FALSE}"; then
18511  as_fn_error $? "conditional \"OPENBSD\" was never defined.
18512Usually this means the macro was only invoked conditionally." "$LINENO" 5
18513fi
18514if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
18515  as_fn_error $? "conditional \"SOLARIS\" was never defined.
18516Usually this means the macro was only invoked conditionally." "$LINENO" 5
18517fi
18518if test -z "${GNU_TRUE}" && test -z "${GNU_FALSE}"; then
18519  as_fn_error $? "conditional \"GNU\" was never defined.
18520Usually this means the macro was only invoked conditionally." "$LINENO" 5
18521fi
18522
18523: "${CONFIG_STATUS=./config.status}"
18524ac_write_fail=0
18525ac_clean_files_save=$ac_clean_files
18526ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18527{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18528$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18529as_write_fail=0
18530cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18531#! $SHELL
18532# Generated by $as_me.
18533# Run this file to recreate the current configuration.
18534# Compiler output produced by configure, useful for debugging
18535# configure, is in config.log if it exists.
18536
18537debug=false
18538ac_cs_recheck=false
18539ac_cs_silent=false
18540
18541SHELL=\${CONFIG_SHELL-$SHELL}
18542export SHELL
18543_ASEOF
18544cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18545## -------------------- ##
18546## M4sh Initialization. ##
18547## -------------------- ##
18548
18549# Be more Bourne compatible
18550DUALCASE=1; export DUALCASE # for MKS sh
18551if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18552  emulate sh
18553  NULLCMD=:
18554  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18555  # is contrary to our usage.  Disable this feature.
18556  alias -g '${1+"$@"}'='"$@"'
18557  setopt NO_GLOB_SUBST
18558else
18559  case `(set -o) 2>/dev/null` in #(
18560  *posix*) :
18561    set -o posix ;; #(
18562  *) :
18563     ;;
18564esac
18565fi
18566
18567
18568as_nl='
18569'
18570export as_nl
18571# Printing a long string crashes Solaris 7 /usr/bin/printf.
18572as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18573as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18574as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18575# Prefer a ksh shell builtin over an external printf program on Solaris,
18576# but without wasting forks for bash or zsh.
18577if test -z "$BASH_VERSION$ZSH_VERSION" \
18578    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18579  as_echo='print -r --'
18580  as_echo_n='print -rn --'
18581elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18582  as_echo='printf %s\n'
18583  as_echo_n='printf %s'
18584else
18585  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18586    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18587    as_echo_n='/usr/ucb/echo -n'
18588  else
18589    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18590    as_echo_n_body='eval
18591      arg=$1;
18592      case $arg in #(
18593      *"$as_nl"*)
18594	expr "X$arg" : "X\\(.*\\)$as_nl";
18595	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18596      esac;
18597      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18598    '
18599    export as_echo_n_body
18600    as_echo_n='sh -c $as_echo_n_body as_echo'
18601  fi
18602  export as_echo_body
18603  as_echo='sh -c $as_echo_body as_echo'
18604fi
18605
18606# The user is always right.
18607if test "${PATH_SEPARATOR+set}" != set; then
18608  PATH_SEPARATOR=:
18609  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18610    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18611      PATH_SEPARATOR=';'
18612  }
18613fi
18614
18615
18616# IFS
18617# We need space, tab and new line, in precisely that order.  Quoting is
18618# there to prevent editors from complaining about space-tab.
18619# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18620# splitting by setting IFS to empty value.)
18621IFS=" ""	$as_nl"
18622
18623# Find who we are.  Look in the path if we contain no directory separator.
18624as_myself=
18625case $0 in #((
18626  *[\\/]* ) as_myself=$0 ;;
18627  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18628for as_dir in $PATH
18629do
18630  IFS=$as_save_IFS
18631  test -z "$as_dir" && as_dir=.
18632    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18633  done
18634IFS=$as_save_IFS
18635
18636     ;;
18637esac
18638# We did not find ourselves, most probably we were run as `sh COMMAND'
18639# in which case we are not to be found in the path.
18640if test "x$as_myself" = x; then
18641  as_myself=$0
18642fi
18643if test ! -f "$as_myself"; then
18644  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18645  exit 1
18646fi
18647
18648# Unset variables that we do not need and which cause bugs (e.g. in
18649# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18650# suppresses any "Segmentation fault" message there.  '((' could
18651# trigger a bug in pdksh 5.2.14.
18652for as_var in BASH_ENV ENV MAIL MAILPATH
18653do eval test x\${$as_var+set} = xset \
18654  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18655done
18656PS1='$ '
18657PS2='> '
18658PS4='+ '
18659
18660# NLS nuisances.
18661LC_ALL=C
18662export LC_ALL
18663LANGUAGE=C
18664export LANGUAGE
18665
18666# CDPATH.
18667(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18668
18669
18670# as_fn_error STATUS ERROR [LINENO LOG_FD]
18671# ----------------------------------------
18672# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18673# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18674# script with STATUS, using 1 if that was 0.
18675as_fn_error ()
18676{
18677  as_status=$1; test $as_status -eq 0 && as_status=1
18678  if test "$4"; then
18679    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18680    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18681  fi
18682  $as_echo "$as_me: error: $2" >&2
18683  as_fn_exit $as_status
18684} # as_fn_error
18685
18686
18687# as_fn_set_status STATUS
18688# -----------------------
18689# Set $? to STATUS, without forking.
18690as_fn_set_status ()
18691{
18692  return $1
18693} # as_fn_set_status
18694
18695# as_fn_exit STATUS
18696# -----------------
18697# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18698as_fn_exit ()
18699{
18700  set +e
18701  as_fn_set_status $1
18702  exit $1
18703} # as_fn_exit
18704
18705# as_fn_unset VAR
18706# ---------------
18707# Portably unset VAR.
18708as_fn_unset ()
18709{
18710  { eval $1=; unset $1;}
18711}
18712as_unset=as_fn_unset
18713# as_fn_append VAR VALUE
18714# ----------------------
18715# Append the text in VALUE to the end of the definition contained in VAR. Take
18716# advantage of any shell optimizations that allow amortized linear growth over
18717# repeated appends, instead of the typical quadratic growth present in naive
18718# implementations.
18719if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18720  eval 'as_fn_append ()
18721  {
18722    eval $1+=\$2
18723  }'
18724else
18725  as_fn_append ()
18726  {
18727    eval $1=\$$1\$2
18728  }
18729fi # as_fn_append
18730
18731# as_fn_arith ARG...
18732# ------------------
18733# Perform arithmetic evaluation on the ARGs, and store the result in the
18734# global $as_val. Take advantage of shells that can avoid forks. The arguments
18735# must be portable across $(()) and expr.
18736if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18737  eval 'as_fn_arith ()
18738  {
18739    as_val=$(( $* ))
18740  }'
18741else
18742  as_fn_arith ()
18743  {
18744    as_val=`expr "$@" || test $? -eq 1`
18745  }
18746fi # as_fn_arith
18747
18748
18749if expr a : '\(a\)' >/dev/null 2>&1 &&
18750   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18751  as_expr=expr
18752else
18753  as_expr=false
18754fi
18755
18756if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18757  as_basename=basename
18758else
18759  as_basename=false
18760fi
18761
18762if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18763  as_dirname=dirname
18764else
18765  as_dirname=false
18766fi
18767
18768as_me=`$as_basename -- "$0" ||
18769$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18770	 X"$0" : 'X\(//\)$' \| \
18771	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18772$as_echo X/"$0" |
18773    sed '/^.*\/\([^/][^/]*\)\/*$/{
18774	    s//\1/
18775	    q
18776	  }
18777	  /^X\/\(\/\/\)$/{
18778	    s//\1/
18779	    q
18780	  }
18781	  /^X\/\(\/\).*/{
18782	    s//\1/
18783	    q
18784	  }
18785	  s/.*/./; q'`
18786
18787# Avoid depending upon Character Ranges.
18788as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18789as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18790as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18791as_cr_digits='0123456789'
18792as_cr_alnum=$as_cr_Letters$as_cr_digits
18793
18794ECHO_C= ECHO_N= ECHO_T=
18795case `echo -n x` in #(((((
18796-n*)
18797  case `echo 'xy\c'` in
18798  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18799  xy)  ECHO_C='\c';;
18800  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18801       ECHO_T='	';;
18802  esac;;
18803*)
18804  ECHO_N='-n';;
18805esac
18806
18807rm -f conf$$ conf$$.exe conf$$.file
18808if test -d conf$$.dir; then
18809  rm -f conf$$.dir/conf$$.file
18810else
18811  rm -f conf$$.dir
18812  mkdir conf$$.dir 2>/dev/null
18813fi
18814if (echo >conf$$.file) 2>/dev/null; then
18815  if ln -s conf$$.file conf$$ 2>/dev/null; then
18816    as_ln_s='ln -s'
18817    # ... but there are two gotchas:
18818    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18819    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18820    # In both cases, we have to default to `cp -p'.
18821    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18822      as_ln_s='cp -p'
18823  elif ln conf$$.file conf$$ 2>/dev/null; then
18824    as_ln_s=ln
18825  else
18826    as_ln_s='cp -p'
18827  fi
18828else
18829  as_ln_s='cp -p'
18830fi
18831rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18832rmdir conf$$.dir 2>/dev/null
18833
18834
18835# as_fn_mkdir_p
18836# -------------
18837# Create "$as_dir" as a directory, including parents if necessary.
18838as_fn_mkdir_p ()
18839{
18840
18841  case $as_dir in #(
18842  -*) as_dir=./$as_dir;;
18843  esac
18844  test -d "$as_dir" || eval $as_mkdir_p || {
18845    as_dirs=
18846    while :; do
18847      case $as_dir in #(
18848      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18849      *) as_qdir=$as_dir;;
18850      esac
18851      as_dirs="'$as_qdir' $as_dirs"
18852      as_dir=`$as_dirname -- "$as_dir" ||
18853$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18854	 X"$as_dir" : 'X\(//\)[^/]' \| \
18855	 X"$as_dir" : 'X\(//\)$' \| \
18856	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18857$as_echo X"$as_dir" |
18858    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18859	    s//\1/
18860	    q
18861	  }
18862	  /^X\(\/\/\)[^/].*/{
18863	    s//\1/
18864	    q
18865	  }
18866	  /^X\(\/\/\)$/{
18867	    s//\1/
18868	    q
18869	  }
18870	  /^X\(\/\).*/{
18871	    s//\1/
18872	    q
18873	  }
18874	  s/.*/./; q'`
18875      test -d "$as_dir" && break
18876    done
18877    test -z "$as_dirs" || eval "mkdir $as_dirs"
18878  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18879
18880
18881} # as_fn_mkdir_p
18882if mkdir -p . 2>/dev/null; then
18883  as_mkdir_p='mkdir -p "$as_dir"'
18884else
18885  test -d ./-p && rmdir ./-p
18886  as_mkdir_p=false
18887fi
18888
18889if test -x / >/dev/null 2>&1; then
18890  as_test_x='test -x'
18891else
18892  if ls -dL / >/dev/null 2>&1; then
18893    as_ls_L_option=L
18894  else
18895    as_ls_L_option=
18896  fi
18897  as_test_x='
18898    eval sh -c '\''
18899      if test -d "$1"; then
18900	test -d "$1/.";
18901      else
18902	case $1 in #(
18903	-*)set "./$1";;
18904	esac;
18905	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18906	???[sx]*):;;*)false;;esac;fi
18907    '\'' sh
18908  '
18909fi
18910as_executable_p=$as_test_x
18911
18912# Sed expression to map a string onto a valid CPP name.
18913as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18914
18915# Sed expression to map a string onto a valid variable name.
18916as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18917
18918
18919exec 6>&1
18920## ----------------------------------- ##
18921## Main body of $CONFIG_STATUS script. ##
18922## ----------------------------------- ##
18923_ASEOF
18924test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18925
18926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18927# Save the log message, to keep $0 and so on meaningful, and to
18928# report actual input values of CONFIG_FILES etc. instead of their
18929# values after options handling.
18930ac_log="
18931This file was extended by libpciaccess $as_me 0.13.2, which was
18932generated by GNU Autoconf 2.68.  Invocation command line was
18933
18934  CONFIG_FILES    = $CONFIG_FILES
18935  CONFIG_HEADERS  = $CONFIG_HEADERS
18936  CONFIG_LINKS    = $CONFIG_LINKS
18937  CONFIG_COMMANDS = $CONFIG_COMMANDS
18938  $ $0 $@
18939
18940on `(hostname || uname -n) 2>/dev/null | sed 1q`
18941"
18942
18943_ACEOF
18944
18945case $ac_config_files in *"
18946"*) set x $ac_config_files; shift; ac_config_files=$*;;
18947esac
18948
18949case $ac_config_headers in *"
18950"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18951esac
18952
18953
18954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18955# Files that config.status was made for.
18956config_files="$ac_config_files"
18957config_headers="$ac_config_headers"
18958config_commands="$ac_config_commands"
18959
18960_ACEOF
18961
18962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18963ac_cs_usage="\
18964\`$as_me' instantiates files and other configuration actions
18965from templates according to the current configuration.  Unless the files
18966and actions are specified as TAGs, all are instantiated by default.
18967
18968Usage: $0 [OPTION]... [TAG]...
18969
18970  -h, --help       print this help, then exit
18971  -V, --version    print version number and configuration settings, then exit
18972      --config     print configuration, then exit
18973  -q, --quiet, --silent
18974                   do not print progress messages
18975  -d, --debug      don't remove temporary files
18976      --recheck    update $as_me by reconfiguring in the same conditions
18977      --file=FILE[:TEMPLATE]
18978                   instantiate the configuration file FILE
18979      --header=FILE[:TEMPLATE]
18980                   instantiate the configuration header FILE
18981
18982Configuration files:
18983$config_files
18984
18985Configuration headers:
18986$config_headers
18987
18988Configuration commands:
18989$config_commands
18990
18991Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess>."
18992
18993_ACEOF
18994cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18995ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18996ac_cs_version="\\
18997libpciaccess config.status 0.13.2
18998configured by $0, generated by GNU Autoconf 2.68,
18999  with options \\"\$ac_cs_config\\"
19000
19001Copyright (C) 2010 Free Software Foundation, Inc.
19002This config.status script is free software; the Free Software Foundation
19003gives unlimited permission to copy, distribute and modify it."
19004
19005ac_pwd='$ac_pwd'
19006srcdir='$srcdir'
19007INSTALL='$INSTALL'
19008MKDIR_P='$MKDIR_P'
19009AWK='$AWK'
19010test -n "\$AWK" || AWK=awk
19011_ACEOF
19012
19013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19014# The default lists apply if the user does not specify any file.
19015ac_need_defaults=:
19016while test $# != 0
19017do
19018  case $1 in
19019  --*=?*)
19020    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19021    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19022    ac_shift=:
19023    ;;
19024  --*=)
19025    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19026    ac_optarg=
19027    ac_shift=:
19028    ;;
19029  *)
19030    ac_option=$1
19031    ac_optarg=$2
19032    ac_shift=shift
19033    ;;
19034  esac
19035
19036  case $ac_option in
19037  # Handling of the options.
19038  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19039    ac_cs_recheck=: ;;
19040  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19041    $as_echo "$ac_cs_version"; exit ;;
19042  --config | --confi | --conf | --con | --co | --c )
19043    $as_echo "$ac_cs_config"; exit ;;
19044  --debug | --debu | --deb | --de | --d | -d )
19045    debug=: ;;
19046  --file | --fil | --fi | --f )
19047    $ac_shift
19048    case $ac_optarg in
19049    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19050    '') as_fn_error $? "missing file argument" ;;
19051    esac
19052    as_fn_append CONFIG_FILES " '$ac_optarg'"
19053    ac_need_defaults=false;;
19054  --header | --heade | --head | --hea )
19055    $ac_shift
19056    case $ac_optarg in
19057    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19058    esac
19059    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19060    ac_need_defaults=false;;
19061  --he | --h)
19062    # Conflict between --help and --header
19063    as_fn_error $? "ambiguous option: \`$1'
19064Try \`$0 --help' for more information.";;
19065  --help | --hel | -h )
19066    $as_echo "$ac_cs_usage"; exit ;;
19067  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19068  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19069    ac_cs_silent=: ;;
19070
19071  # This is an error.
19072  -*) as_fn_error $? "unrecognized option: \`$1'
19073Try \`$0 --help' for more information." ;;
19074
19075  *) as_fn_append ac_config_targets " $1"
19076     ac_need_defaults=false ;;
19077
19078  esac
19079  shift
19080done
19081
19082ac_configure_extra_args=
19083
19084if $ac_cs_silent; then
19085  exec 6>/dev/null
19086  ac_configure_extra_args="$ac_configure_extra_args --silent"
19087fi
19088
19089_ACEOF
19090cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19091if \$ac_cs_recheck; then
19092  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19093  shift
19094  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19095  CONFIG_SHELL='$SHELL'
19096  export CONFIG_SHELL
19097  exec "\$@"
19098fi
19099
19100_ACEOF
19101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19102exec 5>>config.log
19103{
19104  echo
19105  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19106## Running $as_me. ##
19107_ASBOX
19108  $as_echo "$ac_log"
19109} >&5
19110
19111_ACEOF
19112cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19113#
19114# INIT-COMMANDS
19115#
19116AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19117
19118
19119# The HP-UX ksh and POSIX shell print the target directory to stdout
19120# if CDPATH is set.
19121(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19122
19123sed_quote_subst='$sed_quote_subst'
19124double_quote_subst='$double_quote_subst'
19125delay_variable_subst='$delay_variable_subst'
19126macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19127macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19128enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19129enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19130pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19131enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19132SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19133ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19134PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19135host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19136host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19137host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19138build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19139build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19140build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19141SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19142Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19143GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19144EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19145FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19146LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19147NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19148LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19149max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19150ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19151exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19152lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19153lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19154lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19155lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19156lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19157reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19158reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19159OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19160deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19161file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19162file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19163want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19164DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19165sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19166AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19167AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19168archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19169STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19170RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19171old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19172old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19173old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19174lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19175CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19176CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19177compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19178GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19179lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19180lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19181lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19182lt_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"`'
19183nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19184lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19185objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19186MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19187lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19188lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19189lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19190lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19191lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19192need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19193MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19194DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19195NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19196LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19197OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19198OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19199libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19200shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19201extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19202archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19203enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19204export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19205whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19206compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19207old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19208old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19209archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19210archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19211module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19212module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19213with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19214allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19215no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19216hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19217hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19218hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19219hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19220hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19221hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19222hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19223inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19224link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19225always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19226export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19227exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19228include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19229prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19230postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19231file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19232variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19233need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19234need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19235version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19236runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19237shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19238shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19239libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19240library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19241soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19242install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19243postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19244postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19245finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19246finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19247hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19248sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19249sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19250hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19251enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19252enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19253enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19254old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19255striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19256
19257LTCC='$LTCC'
19258LTCFLAGS='$LTCFLAGS'
19259compiler='$compiler_DEFAULT'
19260
19261# A function that is used when there is no print builtin or printf.
19262func_fallback_echo ()
19263{
19264  eval 'cat <<_LTECHO_EOF
19265\$1
19266_LTECHO_EOF'
19267}
19268
19269# Quote evaled strings.
19270for var in SHELL \
19271ECHO \
19272PATH_SEPARATOR \
19273SED \
19274GREP \
19275EGREP \
19276FGREP \
19277LD \
19278NM \
19279LN_S \
19280lt_SP2NL \
19281lt_NL2SP \
19282reload_flag \
19283OBJDUMP \
19284deplibs_check_method \
19285file_magic_cmd \
19286file_magic_glob \
19287want_nocaseglob \
19288DLLTOOL \
19289sharedlib_from_linklib_cmd \
19290AR \
19291AR_FLAGS \
19292archiver_list_spec \
19293STRIP \
19294RANLIB \
19295CC \
19296CFLAGS \
19297compiler \
19298lt_cv_sys_global_symbol_pipe \
19299lt_cv_sys_global_symbol_to_cdecl \
19300lt_cv_sys_global_symbol_to_c_name_address \
19301lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19302nm_file_list_spec \
19303lt_prog_compiler_no_builtin_flag \
19304lt_prog_compiler_pic \
19305lt_prog_compiler_wl \
19306lt_prog_compiler_static \
19307lt_cv_prog_compiler_c_o \
19308need_locks \
19309MANIFEST_TOOL \
19310DSYMUTIL \
19311NMEDIT \
19312LIPO \
19313OTOOL \
19314OTOOL64 \
19315shrext_cmds \
19316export_dynamic_flag_spec \
19317whole_archive_flag_spec \
19318compiler_needs_object \
19319with_gnu_ld \
19320allow_undefined_flag \
19321no_undefined_flag \
19322hardcode_libdir_flag_spec \
19323hardcode_libdir_separator \
19324exclude_expsyms \
19325include_expsyms \
19326file_list_spec \
19327variables_saved_for_relink \
19328libname_spec \
19329library_names_spec \
19330soname_spec \
19331install_override_mode \
19332finish_eval \
19333old_striplib \
19334striplib; do
19335    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19336    *[\\\\\\\`\\"\\\$]*)
19337      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19338      ;;
19339    *)
19340      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19341      ;;
19342    esac
19343done
19344
19345# Double-quote double-evaled strings.
19346for var in reload_cmds \
19347old_postinstall_cmds \
19348old_postuninstall_cmds \
19349old_archive_cmds \
19350extract_expsyms_cmds \
19351old_archive_from_new_cmds \
19352old_archive_from_expsyms_cmds \
19353archive_cmds \
19354archive_expsym_cmds \
19355module_cmds \
19356module_expsym_cmds \
19357export_symbols_cmds \
19358prelink_cmds \
19359postlink_cmds \
19360postinstall_cmds \
19361postuninstall_cmds \
19362finish_cmds \
19363sys_lib_search_path_spec \
19364sys_lib_dlsearch_path_spec; do
19365    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19366    *[\\\\\\\`\\"\\\$]*)
19367      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19368      ;;
19369    *)
19370      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19371      ;;
19372    esac
19373done
19374
19375ac_aux_dir='$ac_aux_dir'
19376xsi_shell='$xsi_shell'
19377lt_shell_append='$lt_shell_append'
19378
19379# See if we are running on zsh, and set the options which allow our
19380# commands through without removal of \ escapes INIT.
19381if test -n "\${ZSH_VERSION+set}" ; then
19382   setopt NO_GLOB_SUBST
19383fi
19384
19385
19386    PACKAGE='$PACKAGE'
19387    VERSION='$VERSION'
19388    TIMESTAMP='$TIMESTAMP'
19389    RM='$RM'
19390    ofile='$ofile'
19391
19392
19393
19394
19395_ACEOF
19396
19397cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19398
19399# Handling of arguments.
19400for ac_config_target in $ac_config_targets
19401do
19402  case $ac_config_target in
19403    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19404    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19405    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19406    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19407    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19408    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19409    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19410    "scanpci/Makefile") CONFIG_FILES="$CONFIG_FILES scanpci/Makefile" ;;
19411    "pciaccess.pc") CONFIG_FILES="$CONFIG_FILES pciaccess.pc" ;;
19412
19413  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19414  esac
19415done
19416
19417
19418# If the user did not use the arguments to specify the items to instantiate,
19419# then the envvar interface is used.  Set only those that are not.
19420# We use the long form for the default assignment because of an extremely
19421# bizarre bug on SunOS 4.1.3.
19422if $ac_need_defaults; then
19423  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19424  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19425  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19426fi
19427
19428# Have a temporary directory for convenience.  Make it in the build tree
19429# simply because there is no reason against having it here, and in addition,
19430# creating and moving files from /tmp can sometimes cause problems.
19431# Hook for its removal unless debugging.
19432# Note that there is a small window in which the directory will not be cleaned:
19433# after its creation but before its name has been assigned to `$tmp'.
19434$debug ||
19435{
19436  tmp= ac_tmp=
19437  trap 'exit_status=$?
19438  : "${ac_tmp:=$tmp}"
19439  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19440' 0
19441  trap 'as_fn_exit 1' 1 2 13 15
19442}
19443# Create a (secure) tmp directory for tmp files.
19444
19445{
19446  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19447  test -d "$tmp"
19448}  ||
19449{
19450  tmp=./conf$$-$RANDOM
19451  (umask 077 && mkdir "$tmp")
19452} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19453ac_tmp=$tmp
19454
19455# Set up the scripts for CONFIG_FILES section.
19456# No need to generate them if there are no CONFIG_FILES.
19457# This happens for instance with `./config.status config.h'.
19458if test -n "$CONFIG_FILES"; then
19459
19460
19461ac_cr=`echo X | tr X '\015'`
19462# On cygwin, bash can eat \r inside `` if the user requested igncr.
19463# But we know of no other shell where ac_cr would be empty at this
19464# point, so we can use a bashism as a fallback.
19465if test "x$ac_cr" = x; then
19466  eval ac_cr=\$\'\\r\'
19467fi
19468ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19469if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19470  ac_cs_awk_cr='\\r'
19471else
19472  ac_cs_awk_cr=$ac_cr
19473fi
19474
19475echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19476_ACEOF
19477
19478
19479{
19480  echo "cat >conf$$subs.awk <<_ACEOF" &&
19481  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19482  echo "_ACEOF"
19483} >conf$$subs.sh ||
19484  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19485ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19486ac_delim='%!_!# '
19487for ac_last_try in false false false false false :; do
19488  . ./conf$$subs.sh ||
19489    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19490
19491  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19492  if test $ac_delim_n = $ac_delim_num; then
19493    break
19494  elif $ac_last_try; then
19495    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19496  else
19497    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19498  fi
19499done
19500rm -f conf$$subs.sh
19501
19502cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19503cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19504_ACEOF
19505sed -n '
19506h
19507s/^/S["/; s/!.*/"]=/
19508p
19509g
19510s/^[^!]*!//
19511:repl
19512t repl
19513s/'"$ac_delim"'$//
19514t delim
19515:nl
19516h
19517s/\(.\{148\}\)..*/\1/
19518t more1
19519s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19520p
19521n
19522b repl
19523:more1
19524s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19525p
19526g
19527s/.\{148\}//
19528t nl
19529:delim
19530h
19531s/\(.\{148\}\)..*/\1/
19532t more2
19533s/["\\]/\\&/g; s/^/"/; s/$/"/
19534p
19535b
19536:more2
19537s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19538p
19539g
19540s/.\{148\}//
19541t delim
19542' <conf$$subs.awk | sed '
19543/^[^""]/{
19544  N
19545  s/\n//
19546}
19547' >>$CONFIG_STATUS || ac_write_fail=1
19548rm -f conf$$subs.awk
19549cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19550_ACAWK
19551cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19552  for (key in S) S_is_set[key] = 1
19553  FS = ""
19554
19555}
19556{
19557  line = $ 0
19558  nfields = split(line, field, "@")
19559  substed = 0
19560  len = length(field[1])
19561  for (i = 2; i < nfields; i++) {
19562    key = field[i]
19563    keylen = length(key)
19564    if (S_is_set[key]) {
19565      value = S[key]
19566      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19567      len += length(value) + length(field[++i])
19568      substed = 1
19569    } else
19570      len += 1 + keylen
19571  }
19572
19573  print line
19574}
19575
19576_ACAWK
19577_ACEOF
19578cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19579if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19580  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19581else
19582  cat
19583fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19584  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19585_ACEOF
19586
19587# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19588# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19589# trailing colons and then remove the whole line if VPATH becomes empty
19590# (actually we leave an empty line to preserve line numbers).
19591if test "x$srcdir" = x.; then
19592  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19593h
19594s///
19595s/^/:/
19596s/[	 ]*$/:/
19597s/:\$(srcdir):/:/g
19598s/:\${srcdir}:/:/g
19599s/:@srcdir@:/:/g
19600s/^:*//
19601s/:*$//
19602x
19603s/\(=[	 ]*\).*/\1/
19604G
19605s/\n//
19606s/^[^=]*=[	 ]*$//
19607}'
19608fi
19609
19610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19611fi # test -n "$CONFIG_FILES"
19612
19613# Set up the scripts for CONFIG_HEADERS section.
19614# No need to generate them if there are no CONFIG_HEADERS.
19615# This happens for instance with `./config.status Makefile'.
19616if test -n "$CONFIG_HEADERS"; then
19617cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19618BEGIN {
19619_ACEOF
19620
19621# Transform confdefs.h into an awk script `defines.awk', embedded as
19622# here-document in config.status, that substitutes the proper values into
19623# config.h.in to produce config.h.
19624
19625# Create a delimiter string that does not exist in confdefs.h, to ease
19626# handling of long lines.
19627ac_delim='%!_!# '
19628for ac_last_try in false false :; do
19629  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19630  if test -z "$ac_tt"; then
19631    break
19632  elif $ac_last_try; then
19633    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19634  else
19635    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19636  fi
19637done
19638
19639# For the awk script, D is an array of macro values keyed by name,
19640# likewise P contains macro parameters if any.  Preserve backslash
19641# newline sequences.
19642
19643ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19644sed -n '
19645s/.\{148\}/&'"$ac_delim"'/g
19646t rset
19647:rset
19648s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19649t def
19650d
19651:def
19652s/\\$//
19653t bsnl
19654s/["\\]/\\&/g
19655s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19656D["\1"]=" \3"/p
19657s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19658d
19659:bsnl
19660s/["\\]/\\&/g
19661s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19662D["\1"]=" \3\\\\\\n"\\/p
19663t cont
19664s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19665t cont
19666d
19667:cont
19668n
19669s/.\{148\}/&'"$ac_delim"'/g
19670t clear
19671:clear
19672s/\\$//
19673t bsnlc
19674s/["\\]/\\&/g; s/^/"/; s/$/"/p
19675d
19676:bsnlc
19677s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19678b cont
19679' <confdefs.h | sed '
19680s/'"$ac_delim"'/"\\\
19681"/g' >>$CONFIG_STATUS || ac_write_fail=1
19682
19683cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19684  for (key in D) D_is_set[key] = 1
19685  FS = ""
19686}
19687/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19688  line = \$ 0
19689  split(line, arg, " ")
19690  if (arg[1] == "#") {
19691    defundef = arg[2]
19692    mac1 = arg[3]
19693  } else {
19694    defundef = substr(arg[1], 2)
19695    mac1 = arg[2]
19696  }
19697  split(mac1, mac2, "(") #)
19698  macro = mac2[1]
19699  prefix = substr(line, 1, index(line, defundef) - 1)
19700  if (D_is_set[macro]) {
19701    # Preserve the white space surrounding the "#".
19702    print prefix "define", macro P[macro] D[macro]
19703    next
19704  } else {
19705    # Replace #undef with comments.  This is necessary, for example,
19706    # in the case of _POSIX_SOURCE, which is predefined and required
19707    # on some systems where configure will not decide to define it.
19708    if (defundef == "undef") {
19709      print "/*", prefix defundef, macro, "*/"
19710      next
19711    }
19712  }
19713}
19714{ print }
19715_ACAWK
19716_ACEOF
19717cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19718  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19719fi # test -n "$CONFIG_HEADERS"
19720
19721
19722eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19723shift
19724for ac_tag
19725do
19726  case $ac_tag in
19727  :[FHLC]) ac_mode=$ac_tag; continue;;
19728  esac
19729  case $ac_mode$ac_tag in
19730  :[FHL]*:*);;
19731  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19732  :[FH]-) ac_tag=-:-;;
19733  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19734  esac
19735  ac_save_IFS=$IFS
19736  IFS=:
19737  set x $ac_tag
19738  IFS=$ac_save_IFS
19739  shift
19740  ac_file=$1
19741  shift
19742
19743  case $ac_mode in
19744  :L) ac_source=$1;;
19745  :[FH])
19746    ac_file_inputs=
19747    for ac_f
19748    do
19749      case $ac_f in
19750      -) ac_f="$ac_tmp/stdin";;
19751      *) # Look for the file first in the build tree, then in the source tree
19752	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19753	 # because $ac_f cannot contain `:'.
19754	 test -f "$ac_f" ||
19755	   case $ac_f in
19756	   [\\/$]*) false;;
19757	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19758	   esac ||
19759	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19760      esac
19761      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19762      as_fn_append ac_file_inputs " '$ac_f'"
19763    done
19764
19765    # Let's still pretend it is `configure' which instantiates (i.e., don't
19766    # use $as_me), people would be surprised to read:
19767    #    /* config.h.  Generated by config.status.  */
19768    configure_input='Generated from '`
19769	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19770	`' by configure.'
19771    if test x"$ac_file" != x-; then
19772      configure_input="$ac_file.  $configure_input"
19773      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19774$as_echo "$as_me: creating $ac_file" >&6;}
19775    fi
19776    # Neutralize special characters interpreted by sed in replacement strings.
19777    case $configure_input in #(
19778    *\&* | *\|* | *\\* )
19779       ac_sed_conf_input=`$as_echo "$configure_input" |
19780       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19781    *) ac_sed_conf_input=$configure_input;;
19782    esac
19783
19784    case $ac_tag in
19785    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19786      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19787    esac
19788    ;;
19789  esac
19790
19791  ac_dir=`$as_dirname -- "$ac_file" ||
19792$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19793	 X"$ac_file" : 'X\(//\)[^/]' \| \
19794	 X"$ac_file" : 'X\(//\)$' \| \
19795	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19796$as_echo X"$ac_file" |
19797    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19798	    s//\1/
19799	    q
19800	  }
19801	  /^X\(\/\/\)[^/].*/{
19802	    s//\1/
19803	    q
19804	  }
19805	  /^X\(\/\/\)$/{
19806	    s//\1/
19807	    q
19808	  }
19809	  /^X\(\/\).*/{
19810	    s//\1/
19811	    q
19812	  }
19813	  s/.*/./; q'`
19814  as_dir="$ac_dir"; as_fn_mkdir_p
19815  ac_builddir=.
19816
19817case "$ac_dir" in
19818.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19819*)
19820  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19821  # A ".." for each directory in $ac_dir_suffix.
19822  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19823  case $ac_top_builddir_sub in
19824  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19825  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19826  esac ;;
19827esac
19828ac_abs_top_builddir=$ac_pwd
19829ac_abs_builddir=$ac_pwd$ac_dir_suffix
19830# for backward compatibility:
19831ac_top_builddir=$ac_top_build_prefix
19832
19833case $srcdir in
19834  .)  # We are building in place.
19835    ac_srcdir=.
19836    ac_top_srcdir=$ac_top_builddir_sub
19837    ac_abs_top_srcdir=$ac_pwd ;;
19838  [\\/]* | ?:[\\/]* )  # Absolute name.
19839    ac_srcdir=$srcdir$ac_dir_suffix;
19840    ac_top_srcdir=$srcdir
19841    ac_abs_top_srcdir=$srcdir ;;
19842  *) # Relative name.
19843    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19844    ac_top_srcdir=$ac_top_build_prefix$srcdir
19845    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19846esac
19847ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19848
19849
19850  case $ac_mode in
19851  :F)
19852  #
19853  # CONFIG_FILE
19854  #
19855
19856  case $INSTALL in
19857  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19858  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19859  esac
19860  ac_MKDIR_P=$MKDIR_P
19861  case $MKDIR_P in
19862  [\\/$]* | ?:[\\/]* ) ;;
19863  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19864  esac
19865_ACEOF
19866
19867cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19868# If the template does not know about datarootdir, expand it.
19869# FIXME: This hack should be removed a few years after 2.60.
19870ac_datarootdir_hack=; ac_datarootdir_seen=
19871ac_sed_dataroot='
19872/datarootdir/ {
19873  p
19874  q
19875}
19876/@datadir@/p
19877/@docdir@/p
19878/@infodir@/p
19879/@localedir@/p
19880/@mandir@/p'
19881case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19882*datarootdir*) ac_datarootdir_seen=yes;;
19883*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19884  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19885$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19886_ACEOF
19887cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19888  ac_datarootdir_hack='
19889  s&@datadir@&$datadir&g
19890  s&@docdir@&$docdir&g
19891  s&@infodir@&$infodir&g
19892  s&@localedir@&$localedir&g
19893  s&@mandir@&$mandir&g
19894  s&\\\${datarootdir}&$datarootdir&g' ;;
19895esac
19896_ACEOF
19897
19898# Neutralize VPATH when `$srcdir' = `.'.
19899# Shell code in configure.ac might set extrasub.
19900# FIXME: do we really want to maintain this feature?
19901cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19902ac_sed_extra="$ac_vpsub
19903$extrasub
19904_ACEOF
19905cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19906:t
19907/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19908s|@configure_input@|$ac_sed_conf_input|;t t
19909s&@top_builddir@&$ac_top_builddir_sub&;t t
19910s&@top_build_prefix@&$ac_top_build_prefix&;t t
19911s&@srcdir@&$ac_srcdir&;t t
19912s&@abs_srcdir@&$ac_abs_srcdir&;t t
19913s&@top_srcdir@&$ac_top_srcdir&;t t
19914s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19915s&@builddir@&$ac_builddir&;t t
19916s&@abs_builddir@&$ac_abs_builddir&;t t
19917s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19918s&@INSTALL@&$ac_INSTALL&;t t
19919s&@MKDIR_P@&$ac_MKDIR_P&;t t
19920$ac_datarootdir_hack
19921"
19922eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19923  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19924
19925test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19926  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19927  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19928      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19929  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19930which seems to be undefined.  Please make sure it is defined" >&5
19931$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19932which seems to be undefined.  Please make sure it is defined" >&2;}
19933
19934  rm -f "$ac_tmp/stdin"
19935  case $ac_file in
19936  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19937  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19938  esac \
19939  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19940 ;;
19941  :H)
19942  #
19943  # CONFIG_HEADER
19944  #
19945  if test x"$ac_file" != x-; then
19946    {
19947      $as_echo "/* $configure_input  */" \
19948      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19949    } >"$ac_tmp/config.h" \
19950      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19951    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19952      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19953$as_echo "$as_me: $ac_file is unchanged" >&6;}
19954    else
19955      rm -f "$ac_file"
19956      mv "$ac_tmp/config.h" "$ac_file" \
19957	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19958    fi
19959  else
19960    $as_echo "/* $configure_input  */" \
19961      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19962      || as_fn_error $? "could not create -" "$LINENO" 5
19963  fi
19964# Compute "$ac_file"'s index in $config_headers.
19965_am_arg="$ac_file"
19966_am_stamp_count=1
19967for _am_header in $config_headers :; do
19968  case $_am_header in
19969    $_am_arg | $_am_arg:* )
19970      break ;;
19971    * )
19972      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19973  esac
19974done
19975echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19976$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19977	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19978	 X"$_am_arg" : 'X\(//\)$' \| \
19979	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19980$as_echo X"$_am_arg" |
19981    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19982	    s//\1/
19983	    q
19984	  }
19985	  /^X\(\/\/\)[^/].*/{
19986	    s//\1/
19987	    q
19988	  }
19989	  /^X\(\/\/\)$/{
19990	    s//\1/
19991	    q
19992	  }
19993	  /^X\(\/\).*/{
19994	    s//\1/
19995	    q
19996	  }
19997	  s/.*/./; q'`/stamp-h$_am_stamp_count
19998 ;;
19999
20000  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20001$as_echo "$as_me: executing $ac_file commands" >&6;}
20002 ;;
20003  esac
20004
20005
20006  case $ac_file$ac_mode in
20007    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20008  # Older Autoconf quotes --file arguments for eval, but not when files
20009  # are listed without --file.  Let's play safe and only enable the eval
20010  # if we detect the quoting.
20011  case $CONFIG_FILES in
20012  *\'*) eval set x "$CONFIG_FILES" ;;
20013  *)   set x $CONFIG_FILES ;;
20014  esac
20015  shift
20016  for mf
20017  do
20018    # Strip MF so we end up with the name of the file.
20019    mf=`echo "$mf" | sed -e 's/:.*$//'`
20020    # Check whether this is an Automake generated Makefile or not.
20021    # We used to match only the files named 'Makefile.in', but
20022    # some people rename them; so instead we look at the file content.
20023    # Grep'ing the first line is not enough: some people post-process
20024    # each Makefile.in and add a new line on top of each file to say so.
20025    # Grep'ing the whole file is not good either: AIX grep has a line
20026    # limit of 2048, but all sed's we know have understand at least 4000.
20027    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20028      dirpart=`$as_dirname -- "$mf" ||
20029$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20030	 X"$mf" : 'X\(//\)[^/]' \| \
20031	 X"$mf" : 'X\(//\)$' \| \
20032	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20033$as_echo X"$mf" |
20034    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20035	    s//\1/
20036	    q
20037	  }
20038	  /^X\(\/\/\)[^/].*/{
20039	    s//\1/
20040	    q
20041	  }
20042	  /^X\(\/\/\)$/{
20043	    s//\1/
20044	    q
20045	  }
20046	  /^X\(\/\).*/{
20047	    s//\1/
20048	    q
20049	  }
20050	  s/.*/./; q'`
20051    else
20052      continue
20053    fi
20054    # Extract the definition of DEPDIR, am__include, and am__quote
20055    # from the Makefile without running 'make'.
20056    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20057    test -z "$DEPDIR" && continue
20058    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20059    test -z "$am__include" && continue
20060    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20061    # Find all dependency output files, they are included files with
20062    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20063    # simplest approach to changing $(DEPDIR) to its actual value in the
20064    # expansion.
20065    for file in `sed -n "
20066      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20067	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20068      # Make sure the directory exists.
20069      test -f "$dirpart/$file" && continue
20070      fdir=`$as_dirname -- "$file" ||
20071$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20072	 X"$file" : 'X\(//\)[^/]' \| \
20073	 X"$file" : 'X\(//\)$' \| \
20074	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20075$as_echo X"$file" |
20076    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20077	    s//\1/
20078	    q
20079	  }
20080	  /^X\(\/\/\)[^/].*/{
20081	    s//\1/
20082	    q
20083	  }
20084	  /^X\(\/\/\)$/{
20085	    s//\1/
20086	    q
20087	  }
20088	  /^X\(\/\).*/{
20089	    s//\1/
20090	    q
20091	  }
20092	  s/.*/./; q'`
20093      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20094      # echo "creating $dirpart/$file"
20095      echo '# dummy' > "$dirpart/$file"
20096    done
20097  done
20098}
20099 ;;
20100    "libtool":C)
20101
20102    # See if we are running on zsh, and set the options which allow our
20103    # commands through without removal of \ escapes.
20104    if test -n "${ZSH_VERSION+set}" ; then
20105      setopt NO_GLOB_SUBST
20106    fi
20107
20108    cfgfile="${ofile}T"
20109    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20110    $RM "$cfgfile"
20111
20112    cat <<_LT_EOF >> "$cfgfile"
20113#! $SHELL
20114
20115# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20116# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20117# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20118# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20119#
20120#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20121#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20122#                 Foundation, Inc.
20123#   Written by Gordon Matzigkeit, 1996
20124#
20125#   This file is part of GNU Libtool.
20126#
20127# GNU Libtool is free software; you can redistribute it and/or
20128# modify it under the terms of the GNU General Public License as
20129# published by the Free Software Foundation; either version 2 of
20130# the License, or (at your option) any later version.
20131#
20132# As a special exception to the GNU General Public License,
20133# if you distribute this file as part of a program or library that
20134# is built using GNU Libtool, you may include this file under the
20135# same distribution terms that you use for the rest of that program.
20136#
20137# GNU Libtool is distributed in the hope that it will be useful,
20138# but WITHOUT ANY WARRANTY; without even the implied warranty of
20139# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20140# GNU General Public License for more details.
20141#
20142# You should have received a copy of the GNU General Public License
20143# along with GNU Libtool; see the file COPYING.  If not, a copy
20144# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20145# obtained by writing to the Free Software Foundation, Inc.,
20146# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20147
20148
20149# The names of the tagged configurations supported by this script.
20150available_tags=""
20151
20152# ### BEGIN LIBTOOL CONFIG
20153
20154# Which release of libtool.m4 was used?
20155macro_version=$macro_version
20156macro_revision=$macro_revision
20157
20158# Whether or not to build shared libraries.
20159build_libtool_libs=$enable_shared
20160
20161# Whether or not to build static libraries.
20162build_old_libs=$enable_static
20163
20164# What type of objects to build.
20165pic_mode=$pic_mode
20166
20167# Whether or not to optimize for fast installation.
20168fast_install=$enable_fast_install
20169
20170# Shell to use when invoking shell scripts.
20171SHELL=$lt_SHELL
20172
20173# An echo program that protects backslashes.
20174ECHO=$lt_ECHO
20175
20176# The PATH separator for the build system.
20177PATH_SEPARATOR=$lt_PATH_SEPARATOR
20178
20179# The host system.
20180host_alias=$host_alias
20181host=$host
20182host_os=$host_os
20183
20184# The build system.
20185build_alias=$build_alias
20186build=$build
20187build_os=$build_os
20188
20189# A sed program that does not truncate output.
20190SED=$lt_SED
20191
20192# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20193Xsed="\$SED -e 1s/^X//"
20194
20195# A grep program that handles long lines.
20196GREP=$lt_GREP
20197
20198# An ERE matcher.
20199EGREP=$lt_EGREP
20200
20201# A literal string matcher.
20202FGREP=$lt_FGREP
20203
20204# A BSD- or MS-compatible name lister.
20205NM=$lt_NM
20206
20207# Whether we need soft or hard links.
20208LN_S=$lt_LN_S
20209
20210# What is the maximum length of a command?
20211max_cmd_len=$max_cmd_len
20212
20213# Object file suffix (normally "o").
20214objext=$ac_objext
20215
20216# Executable file suffix (normally "").
20217exeext=$exeext
20218
20219# whether the shell understands "unset".
20220lt_unset=$lt_unset
20221
20222# turn spaces into newlines.
20223SP2NL=$lt_lt_SP2NL
20224
20225# turn newlines into spaces.
20226NL2SP=$lt_lt_NL2SP
20227
20228# convert \$build file names to \$host format.
20229to_host_file_cmd=$lt_cv_to_host_file_cmd
20230
20231# convert \$build files to toolchain format.
20232to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20233
20234# An object symbol dumper.
20235OBJDUMP=$lt_OBJDUMP
20236
20237# Method to check whether dependent libraries are shared objects.
20238deplibs_check_method=$lt_deplibs_check_method
20239
20240# Command to use when deplibs_check_method = "file_magic".
20241file_magic_cmd=$lt_file_magic_cmd
20242
20243# How to find potential files when deplibs_check_method = "file_magic".
20244file_magic_glob=$lt_file_magic_glob
20245
20246# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20247want_nocaseglob=$lt_want_nocaseglob
20248
20249# DLL creation program.
20250DLLTOOL=$lt_DLLTOOL
20251
20252# Command to associate shared and link libraries.
20253sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20254
20255# The archiver.
20256AR=$lt_AR
20257
20258# Flags to create an archive.
20259AR_FLAGS=$lt_AR_FLAGS
20260
20261# How to feed a file listing to the archiver.
20262archiver_list_spec=$lt_archiver_list_spec
20263
20264# A symbol stripping program.
20265STRIP=$lt_STRIP
20266
20267# Commands used to install an old-style archive.
20268RANLIB=$lt_RANLIB
20269old_postinstall_cmds=$lt_old_postinstall_cmds
20270old_postuninstall_cmds=$lt_old_postuninstall_cmds
20271
20272# Whether to use a lock for old archive extraction.
20273lock_old_archive_extraction=$lock_old_archive_extraction
20274
20275# A C compiler.
20276LTCC=$lt_CC
20277
20278# LTCC compiler flags.
20279LTCFLAGS=$lt_CFLAGS
20280
20281# Take the output of nm and produce a listing of raw symbols and C names.
20282global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20283
20284# Transform the output of nm in a proper C declaration.
20285global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20286
20287# Transform the output of nm in a C name address pair.
20288global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20289
20290# Transform the output of nm in a C name address pair when lib prefix is needed.
20291global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20292
20293# Specify filename containing input files for \$NM.
20294nm_file_list_spec=$lt_nm_file_list_spec
20295
20296# The root where to search for dependent libraries,and in which our libraries should be installed.
20297lt_sysroot=$lt_sysroot
20298
20299# The name of the directory that contains temporary libtool files.
20300objdir=$objdir
20301
20302# Used to examine libraries when file_magic_cmd begins with "file".
20303MAGIC_CMD=$MAGIC_CMD
20304
20305# Must we lock files when doing compilation?
20306need_locks=$lt_need_locks
20307
20308# Manifest tool.
20309MANIFEST_TOOL=$lt_MANIFEST_TOOL
20310
20311# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20312DSYMUTIL=$lt_DSYMUTIL
20313
20314# Tool to change global to local symbols on Mac OS X.
20315NMEDIT=$lt_NMEDIT
20316
20317# Tool to manipulate fat objects and archives on Mac OS X.
20318LIPO=$lt_LIPO
20319
20320# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20321OTOOL=$lt_OTOOL
20322
20323# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20324OTOOL64=$lt_OTOOL64
20325
20326# Old archive suffix (normally "a").
20327libext=$libext
20328
20329# Shared library suffix (normally ".so").
20330shrext_cmds=$lt_shrext_cmds
20331
20332# The commands to extract the exported symbol list from a shared archive.
20333extract_expsyms_cmds=$lt_extract_expsyms_cmds
20334
20335# Variables whose values should be saved in libtool wrapper scripts and
20336# restored at link time.
20337variables_saved_for_relink=$lt_variables_saved_for_relink
20338
20339# Do we need the "lib" prefix for modules?
20340need_lib_prefix=$need_lib_prefix
20341
20342# Do we need a version for libraries?
20343need_version=$need_version
20344
20345# Library versioning type.
20346version_type=$version_type
20347
20348# Shared library runtime path variable.
20349runpath_var=$runpath_var
20350
20351# Shared library path variable.
20352shlibpath_var=$shlibpath_var
20353
20354# Is shlibpath searched before the hard-coded library search path?
20355shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20356
20357# Format of library name prefix.
20358libname_spec=$lt_libname_spec
20359
20360# List of archive names.  First name is the real one, the rest are links.
20361# The last name is the one that the linker finds with -lNAME
20362library_names_spec=$lt_library_names_spec
20363
20364# The coded name of the library, if different from the real name.
20365soname_spec=$lt_soname_spec
20366
20367# Permission mode override for installation of shared libraries.
20368install_override_mode=$lt_install_override_mode
20369
20370# Command to use after installation of a shared archive.
20371postinstall_cmds=$lt_postinstall_cmds
20372
20373# Command to use after uninstallation of a shared archive.
20374postuninstall_cmds=$lt_postuninstall_cmds
20375
20376# Commands used to finish a libtool library installation in a directory.
20377finish_cmds=$lt_finish_cmds
20378
20379# As "finish_cmds", except a single script fragment to be evaled but
20380# not shown.
20381finish_eval=$lt_finish_eval
20382
20383# Whether we should hardcode library paths into libraries.
20384hardcode_into_libs=$hardcode_into_libs
20385
20386# Compile-time system search path for libraries.
20387sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20388
20389# Run-time system search path for libraries.
20390sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20391
20392# Whether dlopen is supported.
20393dlopen_support=$enable_dlopen
20394
20395# Whether dlopen of programs is supported.
20396dlopen_self=$enable_dlopen_self
20397
20398# Whether dlopen of statically linked programs is supported.
20399dlopen_self_static=$enable_dlopen_self_static
20400
20401# Commands to strip libraries.
20402old_striplib=$lt_old_striplib
20403striplib=$lt_striplib
20404
20405
20406# The linker used to build libraries.
20407LD=$lt_LD
20408
20409# How to create reloadable object files.
20410reload_flag=$lt_reload_flag
20411reload_cmds=$lt_reload_cmds
20412
20413# Commands used to build an old-style archive.
20414old_archive_cmds=$lt_old_archive_cmds
20415
20416# A language specific compiler.
20417CC=$lt_compiler
20418
20419# Is the compiler the GNU compiler?
20420with_gcc=$GCC
20421
20422# Compiler flag to turn off builtin functions.
20423no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20424
20425# Additional compiler flags for building library objects.
20426pic_flag=$lt_lt_prog_compiler_pic
20427
20428# How to pass a linker flag through the compiler.
20429wl=$lt_lt_prog_compiler_wl
20430
20431# Compiler flag to prevent dynamic linking.
20432link_static_flag=$lt_lt_prog_compiler_static
20433
20434# Does compiler simultaneously support -c and -o options?
20435compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20436
20437# Whether or not to add -lc for building shared libraries.
20438build_libtool_need_lc=$archive_cmds_need_lc
20439
20440# Whether or not to disallow shared libs when runtime libs are static.
20441allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20442
20443# Compiler flag to allow reflexive dlopens.
20444export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20445
20446# Compiler flag to generate shared objects directly from archives.
20447whole_archive_flag_spec=$lt_whole_archive_flag_spec
20448
20449# Whether the compiler copes with passing no objects directly.
20450compiler_needs_object=$lt_compiler_needs_object
20451
20452# Create an old-style archive from a shared archive.
20453old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20454
20455# Create a temporary old-style archive to link instead of a shared archive.
20456old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20457
20458# Commands used to build a shared archive.
20459archive_cmds=$lt_archive_cmds
20460archive_expsym_cmds=$lt_archive_expsym_cmds
20461
20462# Commands used to build a loadable module if different from building
20463# a shared archive.
20464module_cmds=$lt_module_cmds
20465module_expsym_cmds=$lt_module_expsym_cmds
20466
20467# Whether we are building with GNU ld or not.
20468with_gnu_ld=$lt_with_gnu_ld
20469
20470# Flag that allows shared libraries with undefined symbols to be built.
20471allow_undefined_flag=$lt_allow_undefined_flag
20472
20473# Flag that enforces no undefined symbols.
20474no_undefined_flag=$lt_no_undefined_flag
20475
20476# Flag to hardcode \$libdir into a binary during linking.
20477# This must work even if \$libdir does not exist
20478hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20479
20480# Whether we need a single "-rpath" flag with a separated argument.
20481hardcode_libdir_separator=$lt_hardcode_libdir_separator
20482
20483# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20484# DIR into the resulting binary.
20485hardcode_direct=$hardcode_direct
20486
20487# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20488# DIR into the resulting binary and the resulting library dependency is
20489# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20490# library is relocated.
20491hardcode_direct_absolute=$hardcode_direct_absolute
20492
20493# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20494# into the resulting binary.
20495hardcode_minus_L=$hardcode_minus_L
20496
20497# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20498# into the resulting binary.
20499hardcode_shlibpath_var=$hardcode_shlibpath_var
20500
20501# Set to "yes" if building a shared library automatically hardcodes DIR
20502# into the library and all subsequent libraries and executables linked
20503# against it.
20504hardcode_automatic=$hardcode_automatic
20505
20506# Set to yes if linker adds runtime paths of dependent libraries
20507# to runtime path list.
20508inherit_rpath=$inherit_rpath
20509
20510# Whether libtool must link a program against all its dependency libraries.
20511link_all_deplibs=$link_all_deplibs
20512
20513# Set to "yes" if exported symbols are required.
20514always_export_symbols=$always_export_symbols
20515
20516# The commands to list exported symbols.
20517export_symbols_cmds=$lt_export_symbols_cmds
20518
20519# Symbols that should not be listed in the preloaded symbols.
20520exclude_expsyms=$lt_exclude_expsyms
20521
20522# Symbols that must always be exported.
20523include_expsyms=$lt_include_expsyms
20524
20525# Commands necessary for linking programs (against libraries) with templates.
20526prelink_cmds=$lt_prelink_cmds
20527
20528# Commands necessary for finishing linking programs.
20529postlink_cmds=$lt_postlink_cmds
20530
20531# Specify filename containing input files.
20532file_list_spec=$lt_file_list_spec
20533
20534# How to hardcode a shared library path into an executable.
20535hardcode_action=$hardcode_action
20536
20537# ### END LIBTOOL CONFIG
20538
20539_LT_EOF
20540
20541  case $host_os in
20542  aix3*)
20543    cat <<\_LT_EOF >> "$cfgfile"
20544# AIX sometimes has problems with the GCC collect2 program.  For some
20545# reason, if we set the COLLECT_NAMES environment variable, the problems
20546# vanish in a puff of smoke.
20547if test "X${COLLECT_NAMES+set}" != Xset; then
20548  COLLECT_NAMES=
20549  export COLLECT_NAMES
20550fi
20551_LT_EOF
20552    ;;
20553  esac
20554
20555
20556ltmain="$ac_aux_dir/ltmain.sh"
20557
20558
20559  # We use sed instead of cat because bash on DJGPP gets confused if
20560  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20561  # text mode, it properly converts lines to CR/LF.  This bash problem
20562  # is reportedly fixed, but why not run on old versions too?
20563  sed '$q' "$ltmain" >> "$cfgfile" \
20564     || (rm -f "$cfgfile"; exit 1)
20565
20566  if test x"$xsi_shell" = xyes; then
20567  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20568func_dirname ()\
20569{\
20570\    case ${1} in\
20571\      */*) func_dirname_result="${1%/*}${2}" ;;\
20572\      *  ) func_dirname_result="${3}" ;;\
20573\    esac\
20574} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20575  && mv -f "$cfgfile.tmp" "$cfgfile" \
20576    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20577test 0 -eq $? || _lt_function_replace_fail=:
20578
20579
20580  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20581func_basename ()\
20582{\
20583\    func_basename_result="${1##*/}"\
20584} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20585  && mv -f "$cfgfile.tmp" "$cfgfile" \
20586    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20587test 0 -eq $? || _lt_function_replace_fail=:
20588
20589
20590  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20591func_dirname_and_basename ()\
20592{\
20593\    case ${1} in\
20594\      */*) func_dirname_result="${1%/*}${2}" ;;\
20595\      *  ) func_dirname_result="${3}" ;;\
20596\    esac\
20597\    func_basename_result="${1##*/}"\
20598} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20599  && mv -f "$cfgfile.tmp" "$cfgfile" \
20600    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20601test 0 -eq $? || _lt_function_replace_fail=:
20602
20603
20604  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20605func_stripname ()\
20606{\
20607\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20608\    # positional parameters, so assign one to ordinary parameter first.\
20609\    func_stripname_result=${3}\
20610\    func_stripname_result=${func_stripname_result#"${1}"}\
20611\    func_stripname_result=${func_stripname_result%"${2}"}\
20612} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20613  && mv -f "$cfgfile.tmp" "$cfgfile" \
20614    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20615test 0 -eq $? || _lt_function_replace_fail=:
20616
20617
20618  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20619func_split_long_opt ()\
20620{\
20621\    func_split_long_opt_name=${1%%=*}\
20622\    func_split_long_opt_arg=${1#*=}\
20623} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20624  && mv -f "$cfgfile.tmp" "$cfgfile" \
20625    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20626test 0 -eq $? || _lt_function_replace_fail=:
20627
20628
20629  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20630func_split_short_opt ()\
20631{\
20632\    func_split_short_opt_arg=${1#??}\
20633\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20634} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20635  && mv -f "$cfgfile.tmp" "$cfgfile" \
20636    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20637test 0 -eq $? || _lt_function_replace_fail=:
20638
20639
20640  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20641func_lo2o ()\
20642{\
20643\    case ${1} in\
20644\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20645\      *)    func_lo2o_result=${1} ;;\
20646\    esac\
20647} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20648  && mv -f "$cfgfile.tmp" "$cfgfile" \
20649    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20650test 0 -eq $? || _lt_function_replace_fail=:
20651
20652
20653  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20654func_xform ()\
20655{\
20656    func_xform_result=${1%.*}.lo\
20657} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20658  && mv -f "$cfgfile.tmp" "$cfgfile" \
20659    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20660test 0 -eq $? || _lt_function_replace_fail=:
20661
20662
20663  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20664func_arith ()\
20665{\
20666    func_arith_result=$(( $* ))\
20667} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20668  && mv -f "$cfgfile.tmp" "$cfgfile" \
20669    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20670test 0 -eq $? || _lt_function_replace_fail=:
20671
20672
20673  sed -e '/^func_len ()$/,/^} # func_len /c\
20674func_len ()\
20675{\
20676    func_len_result=${#1}\
20677} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20678  && mv -f "$cfgfile.tmp" "$cfgfile" \
20679    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20680test 0 -eq $? || _lt_function_replace_fail=:
20681
20682fi
20683
20684if test x"$lt_shell_append" = xyes; then
20685  sed -e '/^func_append ()$/,/^} # func_append /c\
20686func_append ()\
20687{\
20688    eval "${1}+=\\${2}"\
20689} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20690  && mv -f "$cfgfile.tmp" "$cfgfile" \
20691    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20692test 0 -eq $? || _lt_function_replace_fail=:
20693
20694
20695  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20696func_append_quoted ()\
20697{\
20698\    func_quote_for_eval "${2}"\
20699\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20700} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20701  && mv -f "$cfgfile.tmp" "$cfgfile" \
20702    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20703test 0 -eq $? || _lt_function_replace_fail=:
20704
20705
20706  # Save a `func_append' function call where possible by direct use of '+='
20707  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20708    && mv -f "$cfgfile.tmp" "$cfgfile" \
20709      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20710  test 0 -eq $? || _lt_function_replace_fail=:
20711else
20712  # Save a `func_append' function call even when '+=' is not available
20713  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20714    && mv -f "$cfgfile.tmp" "$cfgfile" \
20715      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20716  test 0 -eq $? || _lt_function_replace_fail=:
20717fi
20718
20719if test x"$_lt_function_replace_fail" = x":"; then
20720  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20721$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20722fi
20723
20724
20725   mv -f "$cfgfile" "$ofile" ||
20726    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20727  chmod +x "$ofile"
20728
20729 ;;
20730
20731  esac
20732done # for ac_tag
20733
20734
20735as_fn_exit 0
20736_ACEOF
20737ac_clean_files=$ac_clean_files_save
20738
20739test $ac_write_fail = 0 ||
20740  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20741
20742
20743# configure is writing to config.log, and then calls config.status.
20744# config.status does its own redirection, appending to config.log.
20745# Unfortunately, on DOS this fails, as config.log is still kept open
20746# by configure, so config.status won't be able to write to it; its
20747# output is simply discarded.  So we exec the FD to /dev/null,
20748# effectively closing config.log, so it can be properly (re)opened and
20749# appended to by config.status.  When coming back to configure, we
20750# need to make the FD available again.
20751if test "$no_create" != yes; then
20752  ac_cs_success=:
20753  ac_config_status_args=
20754  test "$silent" = yes &&
20755    ac_config_status_args="$ac_config_status_args --quiet"
20756  exec 5>/dev/null
20757  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20758  exec 5>>config.log
20759  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20760  # would make configure fail if this is the last instruction.
20761  $ac_cs_success || as_fn_exit 1
20762fi
20763if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20764  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20765$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20766fi
20767
20768