configure revision cad31331
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for libpciaccess 0.13.1.
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.1'
575PACKAGE_STRING='libpciaccess 0.13.1'
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
635AM_BACKSLASH
636AM_DEFAULT_VERBOSITY
637AM_DEFAULT_V
638AM_V
639MAN_SUBSTS
640XORG_MAN_PAGE
641ADMIN_MAN_DIR
642DRIVER_MAN_DIR
643MISC_MAN_DIR
644FILE_MAN_DIR
645LIB_MAN_DIR
646APP_MAN_DIR
647ADMIN_MAN_SUFFIX
648DRIVER_MAN_SUFFIX
649MISC_MAN_SUFFIX
650FILE_MAN_SUFFIX
651LIB_MAN_SUFFIX
652APP_MAN_SUFFIX
653INSTALL_CMD
654PKG_CONFIG_LIBDIR
655PKG_CONFIG_PATH
656PKG_CONFIG
657CHANGELOG_CMD
658STRICT_CFLAGS
659CWARNFLAGS
660BASE_CFLAGS
661OTOOL64
662OTOOL
663LIPO
664NMEDIT
665DSYMUTIL
666MANIFEST_TOOL
667RANLIB
668ac_ct_AR
669AR
670DLLTOOL
671OBJDUMP
672LN_S
673NM
674ac_ct_DUMPBIN
675DUMPBIN
676LD
677FGREP
678SED
679host_os
680host_vendor
681host_cpu
682host
683build_os
684build_vendor
685build_cpu
686build
687LIBTOOL
688EGREP
689GREP
690CPP
691am__fastdepCC_FALSE
692am__fastdepCC_TRUE
693CCDEPMODE
694am__nodep
695AMDEPBACKSLASH
696AMDEP_FALSE
697AMDEP_TRUE
698am__quote
699am__include
700DEPDIR
701OBJEXT
702EXEEXT
703ac_ct_CC
704CPPFLAGS
705LDFLAGS
706CFLAGS
707CC
708MAINT
709MAINTAINER_MODE_FALSE
710MAINTAINER_MODE_TRUE
711am__untar
712am__tar
713AMTAR
714am__leading_dot
715SET_MAKE
716AWK
717mkdir_p
718MKDIR_P
719INSTALL_STRIP_PROGRAM
720STRIP
721install_sh
722MAKEINFO
723AUTOHEADER
724AUTOMAKE
725AUTOCONF
726ACLOCAL
727VERSION
728PACKAGE
729CYGPATH_W
730am__isrc
731INSTALL_DATA
732INSTALL_SCRIPT
733INSTALL_PROGRAM
734target_alias
735host_alias
736build_alias
737LIBS
738ECHO_T
739ECHO_N
740ECHO_C
741DEFS
742mandir
743localedir
744libdir
745psdir
746pdfdir
747dvidir
748htmldir
749infodir
750docdir
751oldincludedir
752includedir
753localstatedir
754sharedstatedir
755sysconfdir
756datadir
757datarootdir
758libexecdir
759sbindir
760bindir
761program_transform_name
762prefix
763exec_prefix
764PACKAGE_URL
765PACKAGE_BUGREPORT
766PACKAGE_STRING
767PACKAGE_VERSION
768PACKAGE_TARNAME
769PACKAGE_NAME
770PATH_SEPARATOR
771SHELL'
772ac_subst_files=''
773ac_user_opts='
774enable_option_checking
775enable_maintainer_mode
776enable_dependency_tracking
777enable_shared
778enable_static
779with_pic
780enable_fast_install
781with_gnu_ld
782with_sysroot
783enable_libtool_lock
784enable_selective_werror
785enable_strict_compilation
786enable_silent_rules
787with_pciids_path
788enable_linux_rom_fallback
789with_zlib
790enable_largefile
791'
792      ac_precious_vars='build_alias
793host_alias
794target_alias
795CC
796CFLAGS
797LDFLAGS
798LIBS
799CPPFLAGS
800CPP
801PKG_CONFIG
802PKG_CONFIG_PATH
803PKG_CONFIG_LIBDIR'
804
805
806# Initialize some variables set by options.
807ac_init_help=
808ac_init_version=false
809ac_unrecognized_opts=
810ac_unrecognized_sep=
811# The variables have the same names as the options, with
812# dashes changed to underlines.
813cache_file=/dev/null
814exec_prefix=NONE
815no_create=
816no_recursion=
817prefix=NONE
818program_prefix=NONE
819program_suffix=NONE
820program_transform_name=s,x,x,
821silent=
822site=
823srcdir=
824verbose=
825x_includes=NONE
826x_libraries=NONE
827
828# Installation directory options.
829# These are left unexpanded so users can "make install exec_prefix=/foo"
830# and all the variables that are supposed to be based on exec_prefix
831# by default will actually change.
832# Use braces instead of parens because sh, perl, etc. also accept them.
833# (The list follows the same order as the GNU Coding Standards.)
834bindir='${exec_prefix}/bin'
835sbindir='${exec_prefix}/sbin'
836libexecdir='${exec_prefix}/libexec'
837datarootdir='${prefix}/share'
838datadir='${datarootdir}'
839sysconfdir='${prefix}/etc'
840sharedstatedir='${prefix}/com'
841localstatedir='${prefix}/var'
842includedir='${prefix}/include'
843oldincludedir='/usr/include'
844docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845infodir='${datarootdir}/info'
846htmldir='${docdir}'
847dvidir='${docdir}'
848pdfdir='${docdir}'
849psdir='${docdir}'
850libdir='${exec_prefix}/lib'
851localedir='${datarootdir}/locale'
852mandir='${datarootdir}/man'
853
854ac_prev=
855ac_dashdash=
856for ac_option
857do
858  # If the previous option needs an argument, assign it.
859  if test -n "$ac_prev"; then
860    eval $ac_prev=\$ac_option
861    ac_prev=
862    continue
863  fi
864
865  case $ac_option in
866  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867  *=)   ac_optarg= ;;
868  *)    ac_optarg=yes ;;
869  esac
870
871  # Accept the important Cygnus configure options, so we can diagnose typos.
872
873  case $ac_dashdash$ac_option in
874  --)
875    ac_dashdash=yes ;;
876
877  -bindir | --bindir | --bindi | --bind | --bin | --bi)
878    ac_prev=bindir ;;
879  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880    bindir=$ac_optarg ;;
881
882  -build | --build | --buil | --bui | --bu)
883    ac_prev=build_alias ;;
884  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885    build_alias=$ac_optarg ;;
886
887  -cache-file | --cache-file | --cache-fil | --cache-fi \
888  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889    ac_prev=cache_file ;;
890  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892    cache_file=$ac_optarg ;;
893
894  --config-cache | -C)
895    cache_file=config.cache ;;
896
897  -datadir | --datadir | --datadi | --datad)
898    ac_prev=datadir ;;
899  -datadir=* | --datadir=* | --datadi=* | --datad=*)
900    datadir=$ac_optarg ;;
901
902  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903  | --dataroo | --dataro | --datar)
904    ac_prev=datarootdir ;;
905  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907    datarootdir=$ac_optarg ;;
908
909  -disable-* | --disable-*)
910    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911    # Reject names that are not valid shell variable names.
912    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913      as_fn_error $? "invalid feature name: $ac_useropt"
914    ac_useropt_orig=$ac_useropt
915    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916    case $ac_user_opts in
917      *"
918"enable_$ac_useropt"
919"*) ;;
920      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921	 ac_unrecognized_sep=', ';;
922    esac
923    eval enable_$ac_useropt=no ;;
924
925  -docdir | --docdir | --docdi | --doc | --do)
926    ac_prev=docdir ;;
927  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928    docdir=$ac_optarg ;;
929
930  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931    ac_prev=dvidir ;;
932  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933    dvidir=$ac_optarg ;;
934
935  -enable-* | --enable-*)
936    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937    # Reject names that are not valid shell variable names.
938    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939      as_fn_error $? "invalid feature name: $ac_useropt"
940    ac_useropt_orig=$ac_useropt
941    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942    case $ac_user_opts in
943      *"
944"enable_$ac_useropt"
945"*) ;;
946      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947	 ac_unrecognized_sep=', ';;
948    esac
949    eval enable_$ac_useropt=\$ac_optarg ;;
950
951  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953  | --exec | --exe | --ex)
954    ac_prev=exec_prefix ;;
955  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957  | --exec=* | --exe=* | --ex=*)
958    exec_prefix=$ac_optarg ;;
959
960  -gas | --gas | --ga | --g)
961    # Obsolete; use --with-gas.
962    with_gas=yes ;;
963
964  -help | --help | --hel | --he | -h)
965    ac_init_help=long ;;
966  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967    ac_init_help=recursive ;;
968  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969    ac_init_help=short ;;
970
971  -host | --host | --hos | --ho)
972    ac_prev=host_alias ;;
973  -host=* | --host=* | --hos=* | --ho=*)
974    host_alias=$ac_optarg ;;
975
976  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977    ac_prev=htmldir ;;
978  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979  | --ht=*)
980    htmldir=$ac_optarg ;;
981
982  -includedir | --includedir | --includedi | --included | --include \
983  | --includ | --inclu | --incl | --inc)
984    ac_prev=includedir ;;
985  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986  | --includ=* | --inclu=* | --incl=* | --inc=*)
987    includedir=$ac_optarg ;;
988
989  -infodir | --infodir | --infodi | --infod | --info | --inf)
990    ac_prev=infodir ;;
991  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992    infodir=$ac_optarg ;;
993
994  -libdir | --libdir | --libdi | --libd)
995    ac_prev=libdir ;;
996  -libdir=* | --libdir=* | --libdi=* | --libd=*)
997    libdir=$ac_optarg ;;
998
999  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000  | --libexe | --libex | --libe)
1001    ac_prev=libexecdir ;;
1002  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003  | --libexe=* | --libex=* | --libe=*)
1004    libexecdir=$ac_optarg ;;
1005
1006  -localedir | --localedir | --localedi | --localed | --locale)
1007    ac_prev=localedir ;;
1008  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009    localedir=$ac_optarg ;;
1010
1011  -localstatedir | --localstatedir | --localstatedi | --localstated \
1012  | --localstate | --localstat | --localsta | --localst | --locals)
1013    ac_prev=localstatedir ;;
1014  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016    localstatedir=$ac_optarg ;;
1017
1018  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019    ac_prev=mandir ;;
1020  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021    mandir=$ac_optarg ;;
1022
1023  -nfp | --nfp | --nf)
1024    # Obsolete; use --without-fp.
1025    with_fp=no ;;
1026
1027  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028  | --no-cr | --no-c | -n)
1029    no_create=yes ;;
1030
1031  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033    no_recursion=yes ;;
1034
1035  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037  | --oldin | --oldi | --old | --ol | --o)
1038    ac_prev=oldincludedir ;;
1039  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042    oldincludedir=$ac_optarg ;;
1043
1044  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045    ac_prev=prefix ;;
1046  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047    prefix=$ac_optarg ;;
1048
1049  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050  | --program-pre | --program-pr | --program-p)
1051    ac_prev=program_prefix ;;
1052  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054    program_prefix=$ac_optarg ;;
1055
1056  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057  | --program-suf | --program-su | --program-s)
1058    ac_prev=program_suffix ;;
1059  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061    program_suffix=$ac_optarg ;;
1062
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    ac_prev=program_transform_name ;;
1071  -program-transform-name=* | --program-transform-name=* \
1072  | --program-transform-nam=* | --program-transform-na=* \
1073  | --program-transform-n=* | --program-transform-=* \
1074  | --program-transform=* | --program-transfor=* \
1075  | --program-transfo=* | --program-transf=* \
1076  | --program-trans=* | --program-tran=* \
1077  | --progr-tra=* | --program-tr=* | --program-t=*)
1078    program_transform_name=$ac_optarg ;;
1079
1080  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081    ac_prev=pdfdir ;;
1082  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083    pdfdir=$ac_optarg ;;
1084
1085  -psdir | --psdir | --psdi | --psd | --ps)
1086    ac_prev=psdir ;;
1087  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088    psdir=$ac_optarg ;;
1089
1090  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091  | -silent | --silent | --silen | --sile | --sil)
1092    silent=yes ;;
1093
1094  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095    ac_prev=sbindir ;;
1096  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097  | --sbi=* | --sb=*)
1098    sbindir=$ac_optarg ;;
1099
1100  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102  | --sharedst | --shareds | --shared | --share | --shar \
1103  | --sha | --sh)
1104    ac_prev=sharedstatedir ;;
1105  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108  | --sha=* | --sh=*)
1109    sharedstatedir=$ac_optarg ;;
1110
1111  -site | --site | --sit)
1112    ac_prev=site ;;
1113  -site=* | --site=* | --sit=*)
1114    site=$ac_optarg ;;
1115
1116  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117    ac_prev=srcdir ;;
1118  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119    srcdir=$ac_optarg ;;
1120
1121  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122  | --syscon | --sysco | --sysc | --sys | --sy)
1123    ac_prev=sysconfdir ;;
1124  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126    sysconfdir=$ac_optarg ;;
1127
1128  -target | --target | --targe | --targ | --tar | --ta | --t)
1129    ac_prev=target_alias ;;
1130  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131    target_alias=$ac_optarg ;;
1132
1133  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134    verbose=yes ;;
1135
1136  -version | --version | --versio | --versi | --vers | -V)
1137    ac_init_version=: ;;
1138
1139  -with-* | --with-*)
1140    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141    # Reject names that are not valid shell variable names.
1142    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143      as_fn_error $? "invalid package name: $ac_useropt"
1144    ac_useropt_orig=$ac_useropt
1145    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146    case $ac_user_opts in
1147      *"
1148"with_$ac_useropt"
1149"*) ;;
1150      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151	 ac_unrecognized_sep=', ';;
1152    esac
1153    eval with_$ac_useropt=\$ac_optarg ;;
1154
1155  -without-* | --without-*)
1156    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157    # Reject names that are not valid shell variable names.
1158    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159      as_fn_error $? "invalid package name: $ac_useropt"
1160    ac_useropt_orig=$ac_useropt
1161    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162    case $ac_user_opts in
1163      *"
1164"with_$ac_useropt"
1165"*) ;;
1166      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167	 ac_unrecognized_sep=', ';;
1168    esac
1169    eval with_$ac_useropt=no ;;
1170
1171  --x)
1172    # Obsolete; use --with-x.
1173    with_x=yes ;;
1174
1175  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176  | --x-incl | --x-inc | --x-in | --x-i)
1177    ac_prev=x_includes ;;
1178  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180    x_includes=$ac_optarg ;;
1181
1182  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184    ac_prev=x_libraries ;;
1185  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187    x_libraries=$ac_optarg ;;
1188
1189  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1190Try \`$0 --help' for more information"
1191    ;;
1192
1193  *=*)
1194    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195    # Reject names that are not valid shell variable names.
1196    case $ac_envvar in #(
1197      '' | [0-9]* | *[!_$as_cr_alnum]* )
1198      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1199    esac
1200    eval $ac_envvar=\$ac_optarg
1201    export $ac_envvar ;;
1202
1203  *)
1204    # FIXME: should be removed in autoconf 3.0.
1205    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1209    ;;
1210
1211  esac
1212done
1213
1214if test -n "$ac_prev"; then
1215  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216  as_fn_error $? "missing argument to $ac_option"
1217fi
1218
1219if test -n "$ac_unrecognized_opts"; then
1220  case $enable_option_checking in
1221    no) ;;
1222    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1223    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1224  esac
1225fi
1226
1227# Check all directory arguments for consistency.
1228for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229		datadir sysconfdir sharedstatedir localstatedir includedir \
1230		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231		libdir localedir mandir
1232do
1233  eval ac_val=\$$ac_var
1234  # Remove trailing slashes.
1235  case $ac_val in
1236    */ )
1237      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238      eval $ac_var=\$ac_val;;
1239  esac
1240  # Be sure to have absolute directory names.
1241  case $ac_val in
1242    [\\/$]* | ?:[\\/]* )  continue;;
1243    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244  esac
1245  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1246done
1247
1248# There might be people who depend on the old broken behavior: `$host'
1249# used to hold the argument of --host etc.
1250# FIXME: To remove some day.
1251build=$build_alias
1252host=$host_alias
1253target=$target_alias
1254
1255# FIXME: To remove some day.
1256if test "x$host_alias" != x; then
1257  if test "x$build_alias" = x; then
1258    cross_compiling=maybe
1259    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1260    If a cross compiler is detected then cross compile mode will be used" >&2
1261  elif test "x$build_alias" != "x$host_alias"; then
1262    cross_compiling=yes
1263  fi
1264fi
1265
1266ac_tool_prefix=
1267test -n "$host_alias" && ac_tool_prefix=$host_alias-
1268
1269test "$silent" = yes && exec 6>/dev/null
1270
1271
1272ac_pwd=`pwd` && test -n "$ac_pwd" &&
1273ac_ls_di=`ls -di .` &&
1274ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1275  as_fn_error $? "working directory cannot be determined"
1276test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1277  as_fn_error $? "pwd does not report name of working directory"
1278
1279
1280# Find the source files, if location was not specified.
1281if test -z "$srcdir"; then
1282  ac_srcdir_defaulted=yes
1283  # Try the directory containing this script, then the parent directory.
1284  ac_confdir=`$as_dirname -- "$as_myself" ||
1285$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286	 X"$as_myself" : 'X\(//\)[^/]' \| \
1287	 X"$as_myself" : 'X\(//\)$' \| \
1288	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1289$as_echo X"$as_myself" |
1290    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291	    s//\1/
1292	    q
1293	  }
1294	  /^X\(\/\/\)[^/].*/{
1295	    s//\1/
1296	    q
1297	  }
1298	  /^X\(\/\/\)$/{
1299	    s//\1/
1300	    q
1301	  }
1302	  /^X\(\/\).*/{
1303	    s//\1/
1304	    q
1305	  }
1306	  s/.*/./; q'`
1307  srcdir=$ac_confdir
1308  if test ! -r "$srcdir/$ac_unique_file"; then
1309    srcdir=..
1310  fi
1311else
1312  ac_srcdir_defaulted=no
1313fi
1314if test ! -r "$srcdir/$ac_unique_file"; then
1315  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1316  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1317fi
1318ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1319ac_abs_confdir=`(
1320	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1321	pwd)`
1322# When building in place, set srcdir=.
1323if test "$ac_abs_confdir" = "$ac_pwd"; then
1324  srcdir=.
1325fi
1326# Remove unnecessary trailing slashes from srcdir.
1327# Double slashes in file names in object file debugging info
1328# mess up M-x gdb in Emacs.
1329case $srcdir in
1330*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1331esac
1332for ac_var in $ac_precious_vars; do
1333  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1334  eval ac_env_${ac_var}_value=\$${ac_var}
1335  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1336  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1337done
1338
1339#
1340# Report the --help message.
1341#
1342if test "$ac_init_help" = "long"; then
1343  # Omit some internal or obsolete options to make the list less imposing.
1344  # This message is too long to be a string in the A/UX 3.1 sh.
1345  cat <<_ACEOF
1346\`configure' configures libpciaccess 0.13.1 to adapt to many kinds of systems.
1347
1348Usage: $0 [OPTION]... [VAR=VALUE]...
1349
1350To assign environment variables (e.g., CC, CFLAGS...), specify them as
1351VAR=VALUE.  See below for descriptions of some of the useful variables.
1352
1353Defaults for the options are specified in brackets.
1354
1355Configuration:
1356  -h, --help              display this help and exit
1357      --help=short        display options specific to this package
1358      --help=recursive    display the short help of all the included packages
1359  -V, --version           display version information and exit
1360  -q, --quiet, --silent   do not print \`checking ...' messages
1361      --cache-file=FILE   cache test results in FILE [disabled]
1362  -C, --config-cache      alias for \`--cache-file=config.cache'
1363  -n, --no-create         do not create output files
1364      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1365
1366Installation directories:
1367  --prefix=PREFIX         install architecture-independent files in PREFIX
1368                          [$ac_default_prefix]
1369  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1370                          [PREFIX]
1371
1372By default, \`make install' will install all the files in
1373\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1374an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1375for instance \`--prefix=\$HOME'.
1376
1377For better control, use the options below.
1378
1379Fine tuning of the installation directories:
1380  --bindir=DIR            user executables [EPREFIX/bin]
1381  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1382  --libexecdir=DIR        program executables [EPREFIX/libexec]
1383  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1384  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1385  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1386  --libdir=DIR            object code libraries [EPREFIX/lib]
1387  --includedir=DIR        C header files [PREFIX/include]
1388  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1389  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1390  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1391  --infodir=DIR           info documentation [DATAROOTDIR/info]
1392  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1393  --mandir=DIR            man documentation [DATAROOTDIR/man]
1394  --docdir=DIR            documentation root [DATAROOTDIR/doc/libpciaccess]
1395  --htmldir=DIR           html documentation [DOCDIR]
1396  --dvidir=DIR            dvi documentation [DOCDIR]
1397  --pdfdir=DIR            pdf documentation [DOCDIR]
1398  --psdir=DIR             ps documentation [DOCDIR]
1399_ACEOF
1400
1401  cat <<\_ACEOF
1402
1403Program names:
1404  --program-prefix=PREFIX            prepend PREFIX to installed program names
1405  --program-suffix=SUFFIX            append SUFFIX to installed program names
1406  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1407
1408System types:
1409  --build=BUILD     configure for building on BUILD [guessed]
1410  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1411_ACEOF
1412fi
1413
1414if test -n "$ac_init_help"; then
1415  case $ac_init_help in
1416     short | recursive ) echo "Configuration of libpciaccess 0.13.1:";;
1417   esac
1418  cat <<\_ACEOF
1419
1420Optional Features:
1421  --disable-option-checking  ignore unrecognized --enable/--with options
1422  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1423  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1424  --enable-maintainer-mode  enable make rules and dependencies not useful
1425			  (and sometimes confusing) to the casual installer
1426  --disable-dependency-tracking  speeds up one-time build
1427  --enable-dependency-tracking   do not reject slow dependency extractors
1428  --enable-shared[=PKGS]  build shared libraries [default=yes]
1429  --enable-static[=PKGS]  build static libraries [default=yes]
1430  --enable-fast-install[=PKGS]
1431                          optimize for fast installation [default=yes]
1432  --disable-libtool-lock  avoid locking (might break parallel builds)
1433  --disable-selective-werror
1434                          Turn off selective compiler errors. (default:
1435                          enabled)
1436  --enable-strict-compilation
1437                          Enable all warnings from compiler and make them
1438                          errors (default: disabled)
1439  --enable-silent-rules          less verbose build output (undo: `make V=1')
1440  --disable-silent-rules         verbose build output (undo: `make V=0')
1441  --enable-linux-rom-fallback
1442                          Enable support for falling back to /dev/mem for roms
1443                          (default: disabled)
1444  --disable-largefile     omit support for large files
1445
1446Optional Packages:
1447  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1448  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1449  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1450                          both]
1451  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1452  --with-sysroot=DIR Search for dependent libraries within DIR
1453                        (or the compiler's sysroot if not specified).
1454  --with-pciids-path=PCIIDS_PATH
1455                          Path to pci.ids file
1456  --with-zlib             Enable zlib support to read gzip compressed pci.ids
1457
1458Some influential environment variables:
1459  CC          C compiler command
1460  CFLAGS      C compiler flags
1461  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1462              nonstandard directory <lib dir>
1463  LIBS        libraries to pass to the linker, e.g. -l<library>
1464  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1465              you have headers in a nonstandard directory <include dir>
1466  CPP         C preprocessor
1467  PKG_CONFIG  path to pkg-config utility
1468  PKG_CONFIG_PATH
1469              directories to add to pkg-config's search path
1470  PKG_CONFIG_LIBDIR
1471              path overriding pkg-config's built-in search path
1472
1473Use these variables to override the choices made by `configure' or to help
1474it to find libraries and programs with nonstandard names/locations.
1475
1476Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess>.
1477_ACEOF
1478ac_status=$?
1479fi
1480
1481if test "$ac_init_help" = "recursive"; then
1482  # If there are subdirs, report their specific --help.
1483  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1484    test -d "$ac_dir" ||
1485      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1486      continue
1487    ac_builddir=.
1488
1489case "$ac_dir" in
1490.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491*)
1492  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1493  # A ".." for each directory in $ac_dir_suffix.
1494  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1495  case $ac_top_builddir_sub in
1496  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1498  esac ;;
1499esac
1500ac_abs_top_builddir=$ac_pwd
1501ac_abs_builddir=$ac_pwd$ac_dir_suffix
1502# for backward compatibility:
1503ac_top_builddir=$ac_top_build_prefix
1504
1505case $srcdir in
1506  .)  # We are building in place.
1507    ac_srcdir=.
1508    ac_top_srcdir=$ac_top_builddir_sub
1509    ac_abs_top_srcdir=$ac_pwd ;;
1510  [\\/]* | ?:[\\/]* )  # Absolute name.
1511    ac_srcdir=$srcdir$ac_dir_suffix;
1512    ac_top_srcdir=$srcdir
1513    ac_abs_top_srcdir=$srcdir ;;
1514  *) # Relative name.
1515    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1516    ac_top_srcdir=$ac_top_build_prefix$srcdir
1517    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1518esac
1519ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1520
1521    cd "$ac_dir" || { ac_status=$?; continue; }
1522    # Check for guested configure.
1523    if test -f "$ac_srcdir/configure.gnu"; then
1524      echo &&
1525      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1526    elif test -f "$ac_srcdir/configure"; then
1527      echo &&
1528      $SHELL "$ac_srcdir/configure" --help=recursive
1529    else
1530      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1531    fi || ac_status=$?
1532    cd "$ac_pwd" || { ac_status=$?; break; }
1533  done
1534fi
1535
1536test -n "$ac_init_help" && exit $ac_status
1537if $ac_init_version; then
1538  cat <<\_ACEOF
1539libpciaccess configure 0.13.1
1540generated by GNU Autoconf 2.68
1541
1542Copyright (C) 2010 Free Software Foundation, Inc.
1543This configure script is free software; the Free Software Foundation
1544gives unlimited permission to copy, distribute and modify it.
1545_ACEOF
1546  exit
1547fi
1548
1549## ------------------------ ##
1550## Autoconf initialization. ##
1551## ------------------------ ##
1552
1553# ac_fn_c_try_compile LINENO
1554# --------------------------
1555# Try to compile conftest.$ac_ext, and return whether this succeeded.
1556ac_fn_c_try_compile ()
1557{
1558  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559  rm -f conftest.$ac_objext
1560  if { { ac_try="$ac_compile"
1561case "(($ac_try" in
1562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563  *) ac_try_echo=$ac_try;;
1564esac
1565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566$as_echo "$ac_try_echo"; } >&5
1567  (eval "$ac_compile") 2>conftest.err
1568  ac_status=$?
1569  if test -s conftest.err; then
1570    grep -v '^ *+' conftest.err >conftest.er1
1571    cat conftest.er1 >&5
1572    mv -f conftest.er1 conftest.err
1573  fi
1574  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575  test $ac_status = 0; } && {
1576	 test -z "$ac_c_werror_flag" ||
1577	 test ! -s conftest.err
1578       } && test -s conftest.$ac_objext; then :
1579  ac_retval=0
1580else
1581  $as_echo "$as_me: failed program was:" >&5
1582sed 's/^/| /' conftest.$ac_ext >&5
1583
1584	ac_retval=1
1585fi
1586  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587  as_fn_set_status $ac_retval
1588
1589} # ac_fn_c_try_compile
1590
1591# ac_fn_c_try_cpp LINENO
1592# ----------------------
1593# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1594ac_fn_c_try_cpp ()
1595{
1596  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597  if { { ac_try="$ac_cpp conftest.$ac_ext"
1598case "(($ac_try" in
1599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600  *) ac_try_echo=$ac_try;;
1601esac
1602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603$as_echo "$ac_try_echo"; } >&5
1604  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1605  ac_status=$?
1606  if test -s conftest.err; then
1607    grep -v '^ *+' conftest.err >conftest.er1
1608    cat conftest.er1 >&5
1609    mv -f conftest.er1 conftest.err
1610  fi
1611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612  test $ac_status = 0; } > conftest.i && {
1613	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1614	 test ! -s conftest.err
1615       }; then :
1616  ac_retval=0
1617else
1618  $as_echo "$as_me: failed program was:" >&5
1619sed 's/^/| /' conftest.$ac_ext >&5
1620
1621    ac_retval=1
1622fi
1623  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624  as_fn_set_status $ac_retval
1625
1626} # ac_fn_c_try_cpp
1627
1628# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1629# -------------------------------------------------------
1630# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1631# the include files in INCLUDES and setting the cache variable VAR
1632# accordingly.
1633ac_fn_c_check_header_mongrel ()
1634{
1635  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636  if eval \${$3+:} false; then :
1637  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638$as_echo_n "checking for $2... " >&6; }
1639if eval \${$3+:} false; then :
1640  $as_echo_n "(cached) " >&6
1641fi
1642eval ac_res=\$$3
1643	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644$as_echo "$ac_res" >&6; }
1645else
1646  # Is the header compilable?
1647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1648$as_echo_n "checking $2 usability... " >&6; }
1649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650/* end confdefs.h.  */
1651$4
1652#include <$2>
1653_ACEOF
1654if ac_fn_c_try_compile "$LINENO"; then :
1655  ac_header_compiler=yes
1656else
1657  ac_header_compiler=no
1658fi
1659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1661$as_echo "$ac_header_compiler" >&6; }
1662
1663# Is the header present?
1664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1665$as_echo_n "checking $2 presence... " >&6; }
1666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667/* end confdefs.h.  */
1668#include <$2>
1669_ACEOF
1670if ac_fn_c_try_cpp "$LINENO"; then :
1671  ac_header_preproc=yes
1672else
1673  ac_header_preproc=no
1674fi
1675rm -f conftest.err conftest.i conftest.$ac_ext
1676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1677$as_echo "$ac_header_preproc" >&6; }
1678
1679# So?  What about this header?
1680case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1681  yes:no: )
1682    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1683$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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    ;;
1687  no:yes:* )
1688    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1689$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1690    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1691$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1692    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1693$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1694    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1695$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1696    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1697$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1698( $as_echo "## --------------------------------------------------------------------------------------------- ##
1699## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess ##
1700## --------------------------------------------------------------------------------------------- ##"
1701     ) | sed "s/^/$as_me: WARNING:     /" >&2
1702    ;;
1703esac
1704  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705$as_echo_n "checking for $2... " >&6; }
1706if eval \${$3+:} false; then :
1707  $as_echo_n "(cached) " >&6
1708else
1709  eval "$3=\$ac_header_compiler"
1710fi
1711eval ac_res=\$$3
1712	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1713$as_echo "$ac_res" >&6; }
1714fi
1715  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716
1717} # ac_fn_c_check_header_mongrel
1718
1719# ac_fn_c_try_run LINENO
1720# ----------------------
1721# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1722# that executables *can* be run.
1723ac_fn_c_try_run ()
1724{
1725  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726  if { { ac_try="$ac_link"
1727case "(($ac_try" in
1728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729  *) ac_try_echo=$ac_try;;
1730esac
1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732$as_echo "$ac_try_echo"; } >&5
1733  (eval "$ac_link") 2>&5
1734  ac_status=$?
1735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1737  { { case "(($ac_try" in
1738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739  *) ac_try_echo=$ac_try;;
1740esac
1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742$as_echo "$ac_try_echo"; } >&5
1743  (eval "$ac_try") 2>&5
1744  ac_status=$?
1745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746  test $ac_status = 0; }; }; then :
1747  ac_retval=0
1748else
1749  $as_echo "$as_me: program exited with status $ac_status" >&5
1750       $as_echo "$as_me: failed program was:" >&5
1751sed 's/^/| /' conftest.$ac_ext >&5
1752
1753       ac_retval=$ac_status
1754fi
1755  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757  as_fn_set_status $ac_retval
1758
1759} # ac_fn_c_try_run
1760
1761# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1762# -------------------------------------------------------
1763# Tests whether HEADER exists and can be compiled using the include files in
1764# INCLUDES, setting the cache variable VAR accordingly.
1765ac_fn_c_check_header_compile ()
1766{
1767  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769$as_echo_n "checking for $2... " >&6; }
1770if eval \${$3+:} false; then :
1771  $as_echo_n "(cached) " >&6
1772else
1773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774/* end confdefs.h.  */
1775$4
1776#include <$2>
1777_ACEOF
1778if ac_fn_c_try_compile "$LINENO"; then :
1779  eval "$3=yes"
1780else
1781  eval "$3=no"
1782fi
1783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784fi
1785eval ac_res=\$$3
1786	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787$as_echo "$ac_res" >&6; }
1788  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790} # ac_fn_c_check_header_compile
1791
1792# ac_fn_c_try_link LINENO
1793# -----------------------
1794# Try to link conftest.$ac_ext, and return whether this succeeded.
1795ac_fn_c_try_link ()
1796{
1797  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798  rm -f conftest.$ac_objext conftest$ac_exeext
1799  if { { ac_try="$ac_link"
1800case "(($ac_try" in
1801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802  *) ac_try_echo=$ac_try;;
1803esac
1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805$as_echo "$ac_try_echo"; } >&5
1806  (eval "$ac_link") 2>conftest.err
1807  ac_status=$?
1808  if test -s conftest.err; then
1809    grep -v '^ *+' conftest.err >conftest.er1
1810    cat conftest.er1 >&5
1811    mv -f conftest.er1 conftest.err
1812  fi
1813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814  test $ac_status = 0; } && {
1815	 test -z "$ac_c_werror_flag" ||
1816	 test ! -s conftest.err
1817       } && test -s conftest$ac_exeext && {
1818	 test "$cross_compiling" = yes ||
1819	 $as_test_x conftest$ac_exeext
1820       }; then :
1821  ac_retval=0
1822else
1823  $as_echo "$as_me: failed program was:" >&5
1824sed 's/^/| /' conftest.$ac_ext >&5
1825
1826	ac_retval=1
1827fi
1828  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830  # interfere with the next link command; also delete a directory that is
1831  # left behind by Apple's compiler.  We do this before executing the actions.
1832  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834  as_fn_set_status $ac_retval
1835
1836} # ac_fn_c_try_link
1837
1838# ac_fn_c_check_func LINENO FUNC VAR
1839# ----------------------------------
1840# Tests whether FUNC exists, setting the cache variable VAR accordingly
1841ac_fn_c_check_func ()
1842{
1843  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845$as_echo_n "checking for $2... " >&6; }
1846if eval \${$3+:} false; then :
1847  $as_echo_n "(cached) " >&6
1848else
1849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850/* end confdefs.h.  */
1851/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1852   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1853#define $2 innocuous_$2
1854
1855/* System header to define __stub macros and hopefully few prototypes,
1856    which can conflict with char $2 (); below.
1857    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1858    <limits.h> exists even on freestanding compilers.  */
1859
1860#ifdef __STDC__
1861# include <limits.h>
1862#else
1863# include <assert.h>
1864#endif
1865
1866#undef $2
1867
1868/* Override any GCC internal prototype to avoid an error.
1869   Use char because int might match the return type of a GCC
1870   builtin and then its argument prototype would still apply.  */
1871#ifdef __cplusplus
1872extern "C"
1873#endif
1874char $2 ();
1875/* The GNU C library defines this for functions which it implements
1876    to always fail with ENOSYS.  Some functions are actually named
1877    something starting with __ and the normal name is an alias.  */
1878#if defined __stub_$2 || defined __stub___$2
1879choke me
1880#endif
1881
1882int
1883main ()
1884{
1885return $2 ();
1886  ;
1887  return 0;
1888}
1889_ACEOF
1890if ac_fn_c_try_link "$LINENO"; then :
1891  eval "$3=yes"
1892else
1893  eval "$3=no"
1894fi
1895rm -f core conftest.err conftest.$ac_objext \
1896    conftest$ac_exeext conftest.$ac_ext
1897fi
1898eval ac_res=\$$3
1899	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900$as_echo "$ac_res" >&6; }
1901  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902
1903} # ac_fn_c_check_func
1904
1905# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1906# ---------------------------------------------
1907# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1908# accordingly.
1909ac_fn_c_check_decl ()
1910{
1911  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912  as_decl_name=`echo $2|sed 's/ *(.*//'`
1913  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1914  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1915$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1916if eval \${$3+:} false; then :
1917  $as_echo_n "(cached) " >&6
1918else
1919  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920/* end confdefs.h.  */
1921$4
1922int
1923main ()
1924{
1925#ifndef $as_decl_name
1926#ifdef __cplusplus
1927  (void) $as_decl_use;
1928#else
1929  (void) $as_decl_name;
1930#endif
1931#endif
1932
1933  ;
1934  return 0;
1935}
1936_ACEOF
1937if ac_fn_c_try_compile "$LINENO"; then :
1938  eval "$3=yes"
1939else
1940  eval "$3=no"
1941fi
1942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943fi
1944eval ac_res=\$$3
1945	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946$as_echo "$ac_res" >&6; }
1947  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948
1949} # ac_fn_c_check_decl
1950
1951# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1952# ----------------------------------------------------
1953# Tries to find if the field MEMBER exists in type AGGR, after including
1954# INCLUDES, setting cache variable VAR accordingly.
1955ac_fn_c_check_member ()
1956{
1957  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1959$as_echo_n "checking for $2.$3... " >&6; }
1960if eval \${$4+:} false; then :
1961  $as_echo_n "(cached) " >&6
1962else
1963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964/* end confdefs.h.  */
1965$5
1966int
1967main ()
1968{
1969static $2 ac_aggr;
1970if (ac_aggr.$3)
1971return 0;
1972  ;
1973  return 0;
1974}
1975_ACEOF
1976if ac_fn_c_try_compile "$LINENO"; then :
1977  eval "$4=yes"
1978else
1979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980/* end confdefs.h.  */
1981$5
1982int
1983main ()
1984{
1985static $2 ac_aggr;
1986if (sizeof ac_aggr.$3)
1987return 0;
1988  ;
1989  return 0;
1990}
1991_ACEOF
1992if ac_fn_c_try_compile "$LINENO"; then :
1993  eval "$4=yes"
1994else
1995  eval "$4=no"
1996fi
1997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998fi
1999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000fi
2001eval ac_res=\$$4
2002	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003$as_echo "$ac_res" >&6; }
2004  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005
2006} # ac_fn_c_check_member
2007cat >config.log <<_ACEOF
2008This file contains any messages produced by compilers while
2009running configure, to aid debugging if configure makes a mistake.
2010
2011It was created by libpciaccess $as_me 0.13.1, which was
2012generated by GNU Autoconf 2.68.  Invocation command line was
2013
2014  $ $0 $@
2015
2016_ACEOF
2017exec 5>>config.log
2018{
2019cat <<_ASUNAME
2020## --------- ##
2021## Platform. ##
2022## --------- ##
2023
2024hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2025uname -m = `(uname -m) 2>/dev/null || echo unknown`
2026uname -r = `(uname -r) 2>/dev/null || echo unknown`
2027uname -s = `(uname -s) 2>/dev/null || echo unknown`
2028uname -v = `(uname -v) 2>/dev/null || echo unknown`
2029
2030/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2031/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2032
2033/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2034/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2035/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2036/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2037/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2038/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2039/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2040
2041_ASUNAME
2042
2043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044for as_dir in $PATH
2045do
2046  IFS=$as_save_IFS
2047  test -z "$as_dir" && as_dir=.
2048    $as_echo "PATH: $as_dir"
2049  done
2050IFS=$as_save_IFS
2051
2052} >&5
2053
2054cat >&5 <<_ACEOF
2055
2056
2057## ----------- ##
2058## Core tests. ##
2059## ----------- ##
2060
2061_ACEOF
2062
2063
2064# Keep a trace of the command line.
2065# Strip out --no-create and --no-recursion so they do not pile up.
2066# Strip out --silent because we don't want to record it for future runs.
2067# Also quote any args containing shell meta-characters.
2068# Make two passes to allow for proper duplicate-argument suppression.
2069ac_configure_args=
2070ac_configure_args0=
2071ac_configure_args1=
2072ac_must_keep_next=false
2073for ac_pass in 1 2
2074do
2075  for ac_arg
2076  do
2077    case $ac_arg in
2078    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2079    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2080    | -silent | --silent | --silen | --sile | --sil)
2081      continue ;;
2082    *\'*)
2083      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2084    esac
2085    case $ac_pass in
2086    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2087    2)
2088      as_fn_append ac_configure_args1 " '$ac_arg'"
2089      if test $ac_must_keep_next = true; then
2090	ac_must_keep_next=false # Got value, back to normal.
2091      else
2092	case $ac_arg in
2093	  *=* | --config-cache | -C | -disable-* | --disable-* \
2094	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2095	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2096	  | -with-* | --with-* | -without-* | --without-* | --x)
2097	    case "$ac_configure_args0 " in
2098	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2099	    esac
2100	    ;;
2101	  -* ) ac_must_keep_next=true ;;
2102	esac
2103      fi
2104      as_fn_append ac_configure_args " '$ac_arg'"
2105      ;;
2106    esac
2107  done
2108done
2109{ ac_configure_args0=; unset ac_configure_args0;}
2110{ ac_configure_args1=; unset ac_configure_args1;}
2111
2112# When interrupted or exit'd, cleanup temporary files, and complete
2113# config.log.  We remove comments because anyway the quotes in there
2114# would cause problems or look ugly.
2115# WARNING: Use '\'' to represent an apostrophe within the trap.
2116# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2117trap 'exit_status=$?
2118  # Save into config.log some information that might help in debugging.
2119  {
2120    echo
2121
2122    $as_echo "## ---------------- ##
2123## Cache variables. ##
2124## ---------------- ##"
2125    echo
2126    # The following way of writing the cache mishandles newlines in values,
2127(
2128  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2129    eval ac_val=\$$ac_var
2130    case $ac_val in #(
2131    *${as_nl}*)
2132      case $ac_var in #(
2133      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2134$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2135      esac
2136      case $ac_var in #(
2137      _ | IFS | as_nl) ;; #(
2138      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2139      *) { eval $ac_var=; unset $ac_var;} ;;
2140      esac ;;
2141    esac
2142  done
2143  (set) 2>&1 |
2144    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2145    *${as_nl}ac_space=\ *)
2146      sed -n \
2147	"s/'\''/'\''\\\\'\'''\''/g;
2148	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2149      ;; #(
2150    *)
2151      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2152      ;;
2153    esac |
2154    sort
2155)
2156    echo
2157
2158    $as_echo "## ----------------- ##
2159## Output variables. ##
2160## ----------------- ##"
2161    echo
2162    for ac_var in $ac_subst_vars
2163    do
2164      eval ac_val=\$$ac_var
2165      case $ac_val in
2166      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2167      esac
2168      $as_echo "$ac_var='\''$ac_val'\''"
2169    done | sort
2170    echo
2171
2172    if test -n "$ac_subst_files"; then
2173      $as_echo "## ------------------- ##
2174## File substitutions. ##
2175## ------------------- ##"
2176      echo
2177      for ac_var in $ac_subst_files
2178      do
2179	eval ac_val=\$$ac_var
2180	case $ac_val in
2181	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2182	esac
2183	$as_echo "$ac_var='\''$ac_val'\''"
2184      done | sort
2185      echo
2186    fi
2187
2188    if test -s confdefs.h; then
2189      $as_echo "## ----------- ##
2190## confdefs.h. ##
2191## ----------- ##"
2192      echo
2193      cat confdefs.h
2194      echo
2195    fi
2196    test "$ac_signal" != 0 &&
2197      $as_echo "$as_me: caught signal $ac_signal"
2198    $as_echo "$as_me: exit $exit_status"
2199  } >&5
2200  rm -f core *.core core.conftest.* &&
2201    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2202    exit $exit_status
2203' 0
2204for ac_signal in 1 2 13 15; do
2205  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2206done
2207ac_signal=0
2208
2209# confdefs.h avoids OS command line length limits that DEFS can exceed.
2210rm -f -r conftest* confdefs.h
2211
2212$as_echo "/* confdefs.h */" > confdefs.h
2213
2214# Predefined preprocessor variables.
2215
2216cat >>confdefs.h <<_ACEOF
2217#define PACKAGE_NAME "$PACKAGE_NAME"
2218_ACEOF
2219
2220cat >>confdefs.h <<_ACEOF
2221#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2222_ACEOF
2223
2224cat >>confdefs.h <<_ACEOF
2225#define PACKAGE_VERSION "$PACKAGE_VERSION"
2226_ACEOF
2227
2228cat >>confdefs.h <<_ACEOF
2229#define PACKAGE_STRING "$PACKAGE_STRING"
2230_ACEOF
2231
2232cat >>confdefs.h <<_ACEOF
2233#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2234_ACEOF
2235
2236cat >>confdefs.h <<_ACEOF
2237#define PACKAGE_URL "$PACKAGE_URL"
2238_ACEOF
2239
2240
2241# Let the site file select an alternate cache file if it wants to.
2242# Prefer an explicitly selected file to automatically selected ones.
2243ac_site_file1=NONE
2244ac_site_file2=NONE
2245if test -n "$CONFIG_SITE"; then
2246  # We do not want a PATH search for config.site.
2247  case $CONFIG_SITE in #((
2248    -*)  ac_site_file1=./$CONFIG_SITE;;
2249    */*) ac_site_file1=$CONFIG_SITE;;
2250    *)   ac_site_file1=./$CONFIG_SITE;;
2251  esac
2252elif test "x$prefix" != xNONE; then
2253  ac_site_file1=$prefix/share/config.site
2254  ac_site_file2=$prefix/etc/config.site
2255else
2256  ac_site_file1=$ac_default_prefix/share/config.site
2257  ac_site_file2=$ac_default_prefix/etc/config.site
2258fi
2259for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2260do
2261  test "x$ac_site_file" = xNONE && continue
2262  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2263    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2264$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2265    sed 's/^/| /' "$ac_site_file" >&5
2266    . "$ac_site_file" \
2267      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2269as_fn_error $? "failed to load site script $ac_site_file
2270See \`config.log' for more details" "$LINENO" 5; }
2271  fi
2272done
2273
2274if test -r "$cache_file"; then
2275  # Some versions of bash will fail to source /dev/null (special files
2276  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2277  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2278    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2279$as_echo "$as_me: loading cache $cache_file" >&6;}
2280    case $cache_file in
2281      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2282      *)                      . "./$cache_file";;
2283    esac
2284  fi
2285else
2286  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2287$as_echo "$as_me: creating cache $cache_file" >&6;}
2288  >$cache_file
2289fi
2290
2291# Check that the precious variables saved in the cache have kept the same
2292# value.
2293ac_cache_corrupted=false
2294for ac_var in $ac_precious_vars; do
2295  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2296  eval ac_new_set=\$ac_env_${ac_var}_set
2297  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2298  eval ac_new_val=\$ac_env_${ac_var}_value
2299  case $ac_old_set,$ac_new_set in
2300    set,)
2301      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2302$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2303      ac_cache_corrupted=: ;;
2304    ,set)
2305      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2306$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2307      ac_cache_corrupted=: ;;
2308    ,);;
2309    *)
2310      if test "x$ac_old_val" != "x$ac_new_val"; then
2311	# differences in whitespace do not lead to failure.
2312	ac_old_val_w=`echo x $ac_old_val`
2313	ac_new_val_w=`echo x $ac_new_val`
2314	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2315	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2316$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2317	  ac_cache_corrupted=:
2318	else
2319	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2320$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2321	  eval $ac_var=\$ac_old_val
2322	fi
2323	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2324$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2325	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2326$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2327      fi;;
2328  esac
2329  # Pass precious variables to config.status.
2330  if test "$ac_new_set" = set; then
2331    case $ac_new_val in
2332    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2333    *) ac_arg=$ac_var=$ac_new_val ;;
2334    esac
2335    case " $ac_configure_args " in
2336      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2337      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2338    esac
2339  fi
2340done
2341if $ac_cache_corrupted; then
2342  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2343$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2344  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2345$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2346  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2347fi
2348## -------------------- ##
2349## Main body of script. ##
2350## -------------------- ##
2351
2352ac_ext=c
2353ac_cpp='$CPP $CPPFLAGS'
2354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2356ac_compiler_gnu=$ac_cv_c_compiler_gnu
2357
2358
2359
2360ac_config_headers="$ac_config_headers config.h"
2361
2362
2363# Initialize Automake
2364am__api_version='1.11'
2365
2366ac_aux_dir=
2367for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2368  if test -f "$ac_dir/install-sh"; then
2369    ac_aux_dir=$ac_dir
2370    ac_install_sh="$ac_aux_dir/install-sh -c"
2371    break
2372  elif test -f "$ac_dir/install.sh"; then
2373    ac_aux_dir=$ac_dir
2374    ac_install_sh="$ac_aux_dir/install.sh -c"
2375    break
2376  elif test -f "$ac_dir/shtool"; then
2377    ac_aux_dir=$ac_dir
2378    ac_install_sh="$ac_aux_dir/shtool install -c"
2379    break
2380  fi
2381done
2382if test -z "$ac_aux_dir"; then
2383  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2384fi
2385
2386# These three variables are undocumented and unsupported,
2387# and are intended to be withdrawn in a future Autoconf release.
2388# They can cause serious problems if a builder's source tree is in a directory
2389# whose full name contains unusual characters.
2390ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2391ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2392ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2393
2394
2395# Find a good install program.  We prefer a C program (faster),
2396# so one script is as good as another.  But avoid the broken or
2397# incompatible versions:
2398# SysV /etc/install, /usr/sbin/install
2399# SunOS /usr/etc/install
2400# IRIX /sbin/install
2401# AIX /bin/install
2402# AmigaOS /C/install, which installs bootblocks on floppy discs
2403# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2404# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2405# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2406# OS/2's system install, which has a completely different semantic
2407# ./install, which can be erroneously created by make from ./install.sh.
2408# Reject install programs that cannot install multiple files.
2409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2410$as_echo_n "checking for a BSD-compatible install... " >&6; }
2411if test -z "$INSTALL"; then
2412if ${ac_cv_path_install+:} false; then :
2413  $as_echo_n "(cached) " >&6
2414else
2415  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416for as_dir in $PATH
2417do
2418  IFS=$as_save_IFS
2419  test -z "$as_dir" && as_dir=.
2420    # Account for people who put trailing slashes in PATH elements.
2421case $as_dir/ in #((
2422  ./ | .// | /[cC]/* | \
2423  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2424  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2425  /usr/ucb/* ) ;;
2426  *)
2427    # OSF1 and SCO ODT 3.0 have their own names for install.
2428    # Don't use installbsd from OSF since it installs stuff as root
2429    # by default.
2430    for ac_prog in ginstall scoinst install; do
2431      for ac_exec_ext in '' $ac_executable_extensions; do
2432	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2433	  if test $ac_prog = install &&
2434	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2435	    # AIX install.  It has an incompatible calling convention.
2436	    :
2437	  elif test $ac_prog = install &&
2438	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2439	    # program-specific install script used by HP pwplus--don't use.
2440	    :
2441	  else
2442	    rm -rf conftest.one conftest.two conftest.dir
2443	    echo one > conftest.one
2444	    echo two > conftest.two
2445	    mkdir conftest.dir
2446	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2447	      test -s conftest.one && test -s conftest.two &&
2448	      test -s conftest.dir/conftest.one &&
2449	      test -s conftest.dir/conftest.two
2450	    then
2451	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2452	      break 3
2453	    fi
2454	  fi
2455	fi
2456      done
2457    done
2458    ;;
2459esac
2460
2461  done
2462IFS=$as_save_IFS
2463
2464rm -rf conftest.one conftest.two conftest.dir
2465
2466fi
2467  if test "${ac_cv_path_install+set}" = set; then
2468    INSTALL=$ac_cv_path_install
2469  else
2470    # As a last resort, use the slow shell script.  Don't cache a
2471    # value for INSTALL within a source directory, because that will
2472    # break other packages using the cache if that directory is
2473    # removed, or if the value is a relative name.
2474    INSTALL=$ac_install_sh
2475  fi
2476fi
2477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2478$as_echo "$INSTALL" >&6; }
2479
2480# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2481# It thinks the first close brace ends the variable substitution.
2482test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2483
2484test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2485
2486test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2487
2488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2489$as_echo_n "checking whether build environment is sane... " >&6; }
2490# Just in case
2491sleep 1
2492echo timestamp > conftest.file
2493# Reject unsafe characters in $srcdir or the absolute working directory
2494# name.  Accept space and tab only in the latter.
2495am_lf='
2496'
2497case `pwd` in
2498  *[\\\"\#\$\&\'\`$am_lf]*)
2499    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2500esac
2501case $srcdir in
2502  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2503    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2504esac
2505
2506# Do `set' in a subshell so we don't clobber the current shell's
2507# arguments.  Must try -L first in case configure is actually a
2508# symlink; some systems play weird games with the mod time of symlinks
2509# (eg FreeBSD returns the mod time of the symlink's containing
2510# directory).
2511if (
2512   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2513   if test "$*" = "X"; then
2514      # -L didn't work.
2515      set X `ls -t "$srcdir/configure" conftest.file`
2516   fi
2517   rm -f conftest.file
2518   if test "$*" != "X $srcdir/configure conftest.file" \
2519      && test "$*" != "X conftest.file $srcdir/configure"; then
2520
2521      # If neither matched, then we have a broken ls.  This can happen
2522      # if, for instance, CONFIG_SHELL is bash and it inherits a
2523      # broken ls alias from the environment.  This has actually
2524      # happened.  Such a system could not be considered "sane".
2525      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2526alias in your environment" "$LINENO" 5
2527   fi
2528
2529   test "$2" = conftest.file
2530   )
2531then
2532   # Ok.
2533   :
2534else
2535   as_fn_error $? "newly created file is older than distributed files!
2536Check your system clock" "$LINENO" 5
2537fi
2538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2539$as_echo "yes" >&6; }
2540test "$program_prefix" != NONE &&
2541  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2542# Use a double $ so make ignores it.
2543test "$program_suffix" != NONE &&
2544  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2545# Double any \ or $.
2546# By default was `s,x,x', remove it if useless.
2547ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2548program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2549
2550# expand $ac_aux_dir to an absolute path
2551am_aux_dir=`cd $ac_aux_dir && pwd`
2552
2553if test x"${MISSING+set}" != xset; then
2554  case $am_aux_dir in
2555  *\ * | *\	*)
2556    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2557  *)
2558    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2559  esac
2560fi
2561# Use eval to expand $SHELL
2562if eval "$MISSING --run true"; then
2563  am_missing_run="$MISSING --run "
2564else
2565  am_missing_run=
2566  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2567$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2568fi
2569
2570if test x"${install_sh}" != xset; then
2571  case $am_aux_dir in
2572  *\ * | *\	*)
2573    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2574  *)
2575    install_sh="\${SHELL} $am_aux_dir/install-sh"
2576  esac
2577fi
2578
2579# Installed binaries are usually stripped using `strip' when the user
2580# run `make install-strip'.  However `strip' might not be the right
2581# tool to use in cross-compilation environments, therefore Automake
2582# will honor the `STRIP' environment variable to overrule this program.
2583if test "$cross_compiling" != no; then
2584  if test -n "$ac_tool_prefix"; then
2585  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2586set dummy ${ac_tool_prefix}strip; ac_word=$2
2587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2588$as_echo_n "checking for $ac_word... " >&6; }
2589if ${ac_cv_prog_STRIP+:} false; then :
2590  $as_echo_n "(cached) " >&6
2591else
2592  if test -n "$STRIP"; then
2593  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2594else
2595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596for as_dir in $PATH
2597do
2598  IFS=$as_save_IFS
2599  test -z "$as_dir" && as_dir=.
2600    for ac_exec_ext in '' $ac_executable_extensions; do
2601  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2602    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2603    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2604    break 2
2605  fi
2606done
2607  done
2608IFS=$as_save_IFS
2609
2610fi
2611fi
2612STRIP=$ac_cv_prog_STRIP
2613if test -n "$STRIP"; then
2614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2615$as_echo "$STRIP" >&6; }
2616else
2617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2618$as_echo "no" >&6; }
2619fi
2620
2621
2622fi
2623if test -z "$ac_cv_prog_STRIP"; then
2624  ac_ct_STRIP=$STRIP
2625  # Extract the first word of "strip", so it can be a program name with args.
2626set dummy strip; ac_word=$2
2627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2628$as_echo_n "checking for $ac_word... " >&6; }
2629if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2630  $as_echo_n "(cached) " >&6
2631else
2632  if test -n "$ac_ct_STRIP"; then
2633  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2634else
2635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636for as_dir in $PATH
2637do
2638  IFS=$as_save_IFS
2639  test -z "$as_dir" && as_dir=.
2640    for ac_exec_ext in '' $ac_executable_extensions; do
2641  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2642    ac_cv_prog_ac_ct_STRIP="strip"
2643    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644    break 2
2645  fi
2646done
2647  done
2648IFS=$as_save_IFS
2649
2650fi
2651fi
2652ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2653if test -n "$ac_ct_STRIP"; then
2654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2655$as_echo "$ac_ct_STRIP" >&6; }
2656else
2657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658$as_echo "no" >&6; }
2659fi
2660
2661  if test "x$ac_ct_STRIP" = x; then
2662    STRIP=":"
2663  else
2664    case $cross_compiling:$ac_tool_warned in
2665yes:)
2666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2668ac_tool_warned=yes ;;
2669esac
2670    STRIP=$ac_ct_STRIP
2671  fi
2672else
2673  STRIP="$ac_cv_prog_STRIP"
2674fi
2675
2676fi
2677INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2678
2679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2680$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2681if test -z "$MKDIR_P"; then
2682  if ${ac_cv_path_mkdir+:} false; then :
2683  $as_echo_n "(cached) " >&6
2684else
2685  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2687do
2688  IFS=$as_save_IFS
2689  test -z "$as_dir" && as_dir=.
2690    for ac_prog in mkdir gmkdir; do
2691	 for ac_exec_ext in '' $ac_executable_extensions; do
2692	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2693	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2694	     'mkdir (GNU coreutils) '* | \
2695	     'mkdir (coreutils) '* | \
2696	     'mkdir (fileutils) '4.1*)
2697	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2698	       break 3;;
2699	   esac
2700	 done
2701       done
2702  done
2703IFS=$as_save_IFS
2704
2705fi
2706
2707  test -d ./--version && rmdir ./--version
2708  if test "${ac_cv_path_mkdir+set}" = set; then
2709    MKDIR_P="$ac_cv_path_mkdir -p"
2710  else
2711    # As a last resort, use the slow shell script.  Don't cache a
2712    # value for MKDIR_P within a source directory, because that will
2713    # break other packages using the cache if that directory is
2714    # removed, or if the value is a relative name.
2715    MKDIR_P="$ac_install_sh -d"
2716  fi
2717fi
2718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2719$as_echo "$MKDIR_P" >&6; }
2720
2721mkdir_p="$MKDIR_P"
2722case $mkdir_p in
2723  [\\/$]* | ?:[\\/]*) ;;
2724  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2725esac
2726
2727for ac_prog in gawk mawk nawk awk
2728do
2729  # Extract the first word of "$ac_prog", so it can be a program name with args.
2730set dummy $ac_prog; ac_word=$2
2731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732$as_echo_n "checking for $ac_word... " >&6; }
2733if ${ac_cv_prog_AWK+:} false; then :
2734  $as_echo_n "(cached) " >&6
2735else
2736  if test -n "$AWK"; then
2737  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2738else
2739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740for as_dir in $PATH
2741do
2742  IFS=$as_save_IFS
2743  test -z "$as_dir" && as_dir=.
2744    for ac_exec_ext in '' $ac_executable_extensions; do
2745  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2746    ac_cv_prog_AWK="$ac_prog"
2747    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748    break 2
2749  fi
2750done
2751  done
2752IFS=$as_save_IFS
2753
2754fi
2755fi
2756AWK=$ac_cv_prog_AWK
2757if test -n "$AWK"; then
2758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2759$as_echo "$AWK" >&6; }
2760else
2761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2762$as_echo "no" >&6; }
2763fi
2764
2765
2766  test -n "$AWK" && break
2767done
2768
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2770$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2771set x ${MAKE-make}
2772ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2773if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2774  $as_echo_n "(cached) " >&6
2775else
2776  cat >conftest.make <<\_ACEOF
2777SHELL = /bin/sh
2778all:
2779	@echo '@@@%%%=$(MAKE)=@@@%%%'
2780_ACEOF
2781# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2782case `${MAKE-make} -f conftest.make 2>/dev/null` in
2783  *@@@%%%=?*=@@@%%%*)
2784    eval ac_cv_prog_make_${ac_make}_set=yes;;
2785  *)
2786    eval ac_cv_prog_make_${ac_make}_set=no;;
2787esac
2788rm -f conftest.make
2789fi
2790if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2792$as_echo "yes" >&6; }
2793  SET_MAKE=
2794else
2795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796$as_echo "no" >&6; }
2797  SET_MAKE="MAKE=${MAKE-make}"
2798fi
2799
2800rm -rf .tst 2>/dev/null
2801mkdir .tst 2>/dev/null
2802if test -d .tst; then
2803  am__leading_dot=.
2804else
2805  am__leading_dot=_
2806fi
2807rmdir .tst 2>/dev/null
2808
2809if test "`cd $srcdir && pwd`" != "`pwd`"; then
2810  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2811  # is not polluted with repeated "-I."
2812  am__isrc=' -I$(srcdir)'
2813  # test to see if srcdir already configured
2814  if test -f $srcdir/config.status; then
2815    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2816  fi
2817fi
2818
2819# test whether we have cygpath
2820if test -z "$CYGPATH_W"; then
2821  if (cygpath --version) >/dev/null 2>/dev/null; then
2822    CYGPATH_W='cygpath -w'
2823  else
2824    CYGPATH_W=echo
2825  fi
2826fi
2827
2828
2829# Define the identity of the package.
2830 PACKAGE='libpciaccess'
2831 VERSION='0.13.1'
2832
2833
2834cat >>confdefs.h <<_ACEOF
2835#define PACKAGE "$PACKAGE"
2836_ACEOF
2837
2838
2839cat >>confdefs.h <<_ACEOF
2840#define VERSION "$VERSION"
2841_ACEOF
2842
2843# Some tools Automake needs.
2844
2845ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2846
2847
2848AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2849
2850
2851AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2852
2853
2854AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2855
2856
2857MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2858
2859# We need awk for the "check" target.  The system "awk" is bad on
2860# some platforms.
2861# Always define AMTAR for backward compatibility.  Yes, it's still used
2862# in the wild :-(  We should find a proper way to deprecate it ...
2863AMTAR='$${TAR-tar}'
2864
2865am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2866
2867
2868
2869
2870
2871
2872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2873$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2874    # Check whether --enable-maintainer-mode was given.
2875if test "${enable_maintainer_mode+set}" = set; then :
2876  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2877else
2878  USE_MAINTAINER_MODE=no
2879fi
2880
2881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2882$as_echo "$USE_MAINTAINER_MODE" >&6; }
2883   if test $USE_MAINTAINER_MODE = yes; then
2884  MAINTAINER_MODE_TRUE=
2885  MAINTAINER_MODE_FALSE='#'
2886else
2887  MAINTAINER_MODE_TRUE='#'
2888  MAINTAINER_MODE_FALSE=
2889fi
2890
2891  MAINT=$MAINTAINER_MODE_TRUE
2892
2893
2894DEPDIR="${am__leading_dot}deps"
2895
2896ac_config_commands="$ac_config_commands depfiles"
2897
2898
2899am_make=${MAKE-make}
2900cat > confinc << 'END'
2901am__doit:
2902	@echo this is the am__doit target
2903.PHONY: am__doit
2904END
2905# If we don't find an include directive, just comment out the code.
2906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2907$as_echo_n "checking for style of include used by $am_make... " >&6; }
2908am__include="#"
2909am__quote=
2910_am_result=none
2911# First try GNU make style include.
2912echo "include confinc" > confmf
2913# Ignore all kinds of additional output from `make'.
2914case `$am_make -s -f confmf 2> /dev/null` in #(
2915*the\ am__doit\ target*)
2916  am__include=include
2917  am__quote=
2918  _am_result=GNU
2919  ;;
2920esac
2921# Now try BSD make style include.
2922if test "$am__include" = "#"; then
2923   echo '.include "confinc"' > confmf
2924   case `$am_make -s -f confmf 2> /dev/null` in #(
2925   *the\ am__doit\ target*)
2926     am__include=.include
2927     am__quote="\""
2928     _am_result=BSD
2929     ;;
2930   esac
2931fi
2932
2933
2934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2935$as_echo "$_am_result" >&6; }
2936rm -f confinc confmf
2937
2938# Check whether --enable-dependency-tracking was given.
2939if test "${enable_dependency_tracking+set}" = set; then :
2940  enableval=$enable_dependency_tracking;
2941fi
2942
2943if test "x$enable_dependency_tracking" != xno; then
2944  am_depcomp="$ac_aux_dir/depcomp"
2945  AMDEPBACKSLASH='\'
2946  am__nodep='_no'
2947fi
2948 if test "x$enable_dependency_tracking" != xno; then
2949  AMDEP_TRUE=
2950  AMDEP_FALSE='#'
2951else
2952  AMDEP_TRUE='#'
2953  AMDEP_FALSE=
2954fi
2955
2956
2957ac_ext=c
2958ac_cpp='$CPP $CPPFLAGS'
2959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961ac_compiler_gnu=$ac_cv_c_compiler_gnu
2962if test -n "$ac_tool_prefix"; then
2963  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2964set dummy ${ac_tool_prefix}gcc; ac_word=$2
2965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966$as_echo_n "checking for $ac_word... " >&6; }
2967if ${ac_cv_prog_CC+:} false; then :
2968  $as_echo_n "(cached) " >&6
2969else
2970  if test -n "$CC"; then
2971  ac_cv_prog_CC="$CC" # Let the user override the test.
2972else
2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974for as_dir in $PATH
2975do
2976  IFS=$as_save_IFS
2977  test -z "$as_dir" && as_dir=.
2978    for ac_exec_ext in '' $ac_executable_extensions; do
2979  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2980    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982    break 2
2983  fi
2984done
2985  done
2986IFS=$as_save_IFS
2987
2988fi
2989fi
2990CC=$ac_cv_prog_CC
2991if test -n "$CC"; then
2992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2993$as_echo "$CC" >&6; }
2994else
2995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996$as_echo "no" >&6; }
2997fi
2998
2999
3000fi
3001if test -z "$ac_cv_prog_CC"; then
3002  ac_ct_CC=$CC
3003  # Extract the first word of "gcc", so it can be a program name with args.
3004set dummy gcc; ac_word=$2
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006$as_echo_n "checking for $ac_word... " >&6; }
3007if ${ac_cv_prog_ac_ct_CC+:} false; then :
3008  $as_echo_n "(cached) " >&6
3009else
3010  if test -n "$ac_ct_CC"; then
3011  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3012else
3013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014for as_dir in $PATH
3015do
3016  IFS=$as_save_IFS
3017  test -z "$as_dir" && as_dir=.
3018    for ac_exec_ext in '' $ac_executable_extensions; do
3019  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020    ac_cv_prog_ac_ct_CC="gcc"
3021    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022    break 2
3023  fi
3024done
3025  done
3026IFS=$as_save_IFS
3027
3028fi
3029fi
3030ac_ct_CC=$ac_cv_prog_ac_ct_CC
3031if test -n "$ac_ct_CC"; then
3032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3033$as_echo "$ac_ct_CC" >&6; }
3034else
3035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036$as_echo "no" >&6; }
3037fi
3038
3039  if test "x$ac_ct_CC" = x; then
3040    CC=""
3041  else
3042    case $cross_compiling:$ac_tool_warned in
3043yes:)
3044{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3046ac_tool_warned=yes ;;
3047esac
3048    CC=$ac_ct_CC
3049  fi
3050else
3051  CC="$ac_cv_prog_CC"
3052fi
3053
3054if test -z "$CC"; then
3055          if test -n "$ac_tool_prefix"; then
3056    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3057set dummy ${ac_tool_prefix}cc; ac_word=$2
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059$as_echo_n "checking for $ac_word... " >&6; }
3060if ${ac_cv_prog_CC+:} false; then :
3061  $as_echo_n "(cached) " >&6
3062else
3063  if test -n "$CC"; then
3064  ac_cv_prog_CC="$CC" # Let the user override the test.
3065else
3066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067for as_dir in $PATH
3068do
3069  IFS=$as_save_IFS
3070  test -z "$as_dir" && as_dir=.
3071    for ac_exec_ext in '' $ac_executable_extensions; do
3072  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073    ac_cv_prog_CC="${ac_tool_prefix}cc"
3074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075    break 2
3076  fi
3077done
3078  done
3079IFS=$as_save_IFS
3080
3081fi
3082fi
3083CC=$ac_cv_prog_CC
3084if test -n "$CC"; then
3085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3086$as_echo "$CC" >&6; }
3087else
3088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089$as_echo "no" >&6; }
3090fi
3091
3092
3093  fi
3094fi
3095if test -z "$CC"; then
3096  # Extract the first word of "cc", so it can be a program name with args.
3097set dummy cc; ac_word=$2
3098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3099$as_echo_n "checking for $ac_word... " >&6; }
3100if ${ac_cv_prog_CC+:} false; then :
3101  $as_echo_n "(cached) " >&6
3102else
3103  if test -n "$CC"; then
3104  ac_cv_prog_CC="$CC" # Let the user override the test.
3105else
3106  ac_prog_rejected=no
3107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108for as_dir in $PATH
3109do
3110  IFS=$as_save_IFS
3111  test -z "$as_dir" && as_dir=.
3112    for ac_exec_ext in '' $ac_executable_extensions; do
3113  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3114    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3115       ac_prog_rejected=yes
3116       continue
3117     fi
3118    ac_cv_prog_CC="cc"
3119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120    break 2
3121  fi
3122done
3123  done
3124IFS=$as_save_IFS
3125
3126if test $ac_prog_rejected = yes; then
3127  # We found a bogon in the path, so make sure we never use it.
3128  set dummy $ac_cv_prog_CC
3129  shift
3130  if test $# != 0; then
3131    # We chose a different compiler from the bogus one.
3132    # However, it has the same basename, so the bogon will be chosen
3133    # first if we set CC to just the basename; use the full file name.
3134    shift
3135    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3136  fi
3137fi
3138fi
3139fi
3140CC=$ac_cv_prog_CC
3141if test -n "$CC"; then
3142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3143$as_echo "$CC" >&6; }
3144else
3145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146$as_echo "no" >&6; }
3147fi
3148
3149
3150fi
3151if test -z "$CC"; then
3152  if test -n "$ac_tool_prefix"; then
3153  for ac_prog in cl.exe
3154  do
3155    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3156set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3158$as_echo_n "checking for $ac_word... " >&6; }
3159if ${ac_cv_prog_CC+:} false; then :
3160  $as_echo_n "(cached) " >&6
3161else
3162  if test -n "$CC"; then
3163  ac_cv_prog_CC="$CC" # Let the user override the test.
3164else
3165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166for as_dir in $PATH
3167do
3168  IFS=$as_save_IFS
3169  test -z "$as_dir" && as_dir=.
3170    for ac_exec_ext in '' $ac_executable_extensions; do
3171  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3172    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3173    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3174    break 2
3175  fi
3176done
3177  done
3178IFS=$as_save_IFS
3179
3180fi
3181fi
3182CC=$ac_cv_prog_CC
3183if test -n "$CC"; then
3184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3185$as_echo "$CC" >&6; }
3186else
3187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3188$as_echo "no" >&6; }
3189fi
3190
3191
3192    test -n "$CC" && break
3193  done
3194fi
3195if test -z "$CC"; then
3196  ac_ct_CC=$CC
3197  for ac_prog in cl.exe
3198do
3199  # Extract the first word of "$ac_prog", so it can be a program name with args.
3200set dummy $ac_prog; ac_word=$2
3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202$as_echo_n "checking for $ac_word... " >&6; }
3203if ${ac_cv_prog_ac_ct_CC+:} false; then :
3204  $as_echo_n "(cached) " >&6
3205else
3206  if test -n "$ac_ct_CC"; then
3207  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3208else
3209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210for as_dir in $PATH
3211do
3212  IFS=$as_save_IFS
3213  test -z "$as_dir" && as_dir=.
3214    for ac_exec_ext in '' $ac_executable_extensions; do
3215  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3216    ac_cv_prog_ac_ct_CC="$ac_prog"
3217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218    break 2
3219  fi
3220done
3221  done
3222IFS=$as_save_IFS
3223
3224fi
3225fi
3226ac_ct_CC=$ac_cv_prog_ac_ct_CC
3227if test -n "$ac_ct_CC"; then
3228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3229$as_echo "$ac_ct_CC" >&6; }
3230else
3231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232$as_echo "no" >&6; }
3233fi
3234
3235
3236  test -n "$ac_ct_CC" && break
3237done
3238
3239  if test "x$ac_ct_CC" = x; then
3240    CC=""
3241  else
3242    case $cross_compiling:$ac_tool_warned in
3243yes:)
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3245$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3246ac_tool_warned=yes ;;
3247esac
3248    CC=$ac_ct_CC
3249  fi
3250fi
3251
3252fi
3253
3254
3255test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257as_fn_error $? "no acceptable C compiler found in \$PATH
3258See \`config.log' for more details" "$LINENO" 5; }
3259
3260# Provide some information about the compiler.
3261$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3262set X $ac_compile
3263ac_compiler=$2
3264for ac_option in --version -v -V -qversion; do
3265  { { ac_try="$ac_compiler $ac_option >&5"
3266case "(($ac_try" in
3267  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268  *) ac_try_echo=$ac_try;;
3269esac
3270eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271$as_echo "$ac_try_echo"; } >&5
3272  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3273  ac_status=$?
3274  if test -s conftest.err; then
3275    sed '10a\
3276... rest of stderr output deleted ...
3277         10q' conftest.err >conftest.er1
3278    cat conftest.er1 >&5
3279  fi
3280  rm -f conftest.er1 conftest.err
3281  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3282  test $ac_status = 0; }
3283done
3284
3285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286/* end confdefs.h.  */
3287
3288int
3289main ()
3290{
3291
3292  ;
3293  return 0;
3294}
3295_ACEOF
3296ac_clean_files_save=$ac_clean_files
3297ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3298# Try to create an executable without -o first, disregard a.out.
3299# It will help us diagnose broken compilers, and finding out an intuition
3300# of exeext.
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3302$as_echo_n "checking whether the C compiler works... " >&6; }
3303ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3304
3305# The possible output files:
3306ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3307
3308ac_rmfiles=
3309for ac_file in $ac_files
3310do
3311  case $ac_file in
3312    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3314  esac
3315done
3316rm -f $ac_rmfiles
3317
3318if { { ac_try="$ac_link_default"
3319case "(($ac_try" in
3320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321  *) ac_try_echo=$ac_try;;
3322esac
3323eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3324$as_echo "$ac_try_echo"; } >&5
3325  (eval "$ac_link_default") 2>&5
3326  ac_status=$?
3327  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328  test $ac_status = 0; }; then :
3329  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3330# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3331# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3332# so that the user can short-circuit this test for compilers unknown to
3333# Autoconf.
3334for ac_file in $ac_files ''
3335do
3336  test -f "$ac_file" || continue
3337  case $ac_file in
3338    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3339	;;
3340    [ab].out )
3341	# We found the default executable, but exeext='' is most
3342	# certainly right.
3343	break;;
3344    *.* )
3345	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3346	then :; else
3347	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348	fi
3349	# We set ac_cv_exeext here because the later test for it is not
3350	# safe: cross compilers may not add the suffix if given an `-o'
3351	# argument, so we may need to know it at that point already.
3352	# Even if this section looks crufty: it has the advantage of
3353	# actually working.
3354	break;;
3355    * )
3356	break;;
3357  esac
3358done
3359test "$ac_cv_exeext" = no && ac_cv_exeext=
3360
3361else
3362  ac_file=''
3363fi
3364if test -z "$ac_file"; then :
3365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366$as_echo "no" >&6; }
3367$as_echo "$as_me: failed program was:" >&5
3368sed 's/^/| /' conftest.$ac_ext >&5
3369
3370{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372as_fn_error 77 "C compiler cannot create executables
3373See \`config.log' for more details" "$LINENO" 5; }
3374else
3375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3376$as_echo "yes" >&6; }
3377fi
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3379$as_echo_n "checking for C compiler default output file name... " >&6; }
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3381$as_echo "$ac_file" >&6; }
3382ac_exeext=$ac_cv_exeext
3383
3384rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3385ac_clean_files=$ac_clean_files_save
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3387$as_echo_n "checking for suffix of executables... " >&6; }
3388if { { ac_try="$ac_link"
3389case "(($ac_try" in
3390  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391  *) ac_try_echo=$ac_try;;
3392esac
3393eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394$as_echo "$ac_try_echo"; } >&5
3395  (eval "$ac_link") 2>&5
3396  ac_status=$?
3397  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398  test $ac_status = 0; }; then :
3399  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3400# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3401# work properly (i.e., refer to `conftest.exe'), while it won't with
3402# `rm'.
3403for ac_file in conftest.exe conftest conftest.*; do
3404  test -f "$ac_file" || continue
3405  case $ac_file in
3406    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3407    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3408	  break;;
3409    * ) break;;
3410  esac
3411done
3412else
3413  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3415as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3416See \`config.log' for more details" "$LINENO" 5; }
3417fi
3418rm -f conftest conftest$ac_cv_exeext
3419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3420$as_echo "$ac_cv_exeext" >&6; }
3421
3422rm -f conftest.$ac_ext
3423EXEEXT=$ac_cv_exeext
3424ac_exeext=$EXEEXT
3425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426/* end confdefs.h.  */
3427#include <stdio.h>
3428int
3429main ()
3430{
3431FILE *f = fopen ("conftest.out", "w");
3432 return ferror (f) || fclose (f) != 0;
3433
3434  ;
3435  return 0;
3436}
3437_ACEOF
3438ac_clean_files="$ac_clean_files conftest.out"
3439# Check that the compiler produces executables we can run.  If not, either
3440# the compiler is broken, or we cross compile.
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3442$as_echo_n "checking whether we are cross compiling... " >&6; }
3443if test "$cross_compiling" != yes; then
3444  { { ac_try="$ac_link"
3445case "(($ac_try" in
3446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447  *) ac_try_echo=$ac_try;;
3448esac
3449eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450$as_echo "$ac_try_echo"; } >&5
3451  (eval "$ac_link") 2>&5
3452  ac_status=$?
3453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454  test $ac_status = 0; }
3455  if { ac_try='./conftest$ac_cv_exeext'
3456  { { case "(($ac_try" in
3457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458  *) ac_try_echo=$ac_try;;
3459esac
3460eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461$as_echo "$ac_try_echo"; } >&5
3462  (eval "$ac_try") 2>&5
3463  ac_status=$?
3464  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465  test $ac_status = 0; }; }; then
3466    cross_compiling=no
3467  else
3468    if test "$cross_compiling" = maybe; then
3469	cross_compiling=yes
3470    else
3471	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473as_fn_error $? "cannot run C compiled programs.
3474If you meant to cross compile, use \`--host'.
3475See \`config.log' for more details" "$LINENO" 5; }
3476    fi
3477  fi
3478fi
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3480$as_echo "$cross_compiling" >&6; }
3481
3482rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3483ac_clean_files=$ac_clean_files_save
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3485$as_echo_n "checking for suffix of object files... " >&6; }
3486if ${ac_cv_objext+:} false; then :
3487  $as_echo_n "(cached) " >&6
3488else
3489  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3490/* end confdefs.h.  */
3491
3492int
3493main ()
3494{
3495
3496  ;
3497  return 0;
3498}
3499_ACEOF
3500rm -f conftest.o conftest.obj
3501if { { ac_try="$ac_compile"
3502case "(($ac_try" in
3503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504  *) ac_try_echo=$ac_try;;
3505esac
3506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3507$as_echo "$ac_try_echo"; } >&5
3508  (eval "$ac_compile") 2>&5
3509  ac_status=$?
3510  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3511  test $ac_status = 0; }; then :
3512  for ac_file in conftest.o conftest.obj conftest.*; do
3513  test -f "$ac_file" || continue;
3514  case $ac_file in
3515    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3516    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3517       break;;
3518  esac
3519done
3520else
3521  $as_echo "$as_me: failed program was:" >&5
3522sed 's/^/| /' conftest.$ac_ext >&5
3523
3524{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3526as_fn_error $? "cannot compute suffix of object files: cannot compile
3527See \`config.log' for more details" "$LINENO" 5; }
3528fi
3529rm -f conftest.$ac_cv_objext conftest.$ac_ext
3530fi
3531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3532$as_echo "$ac_cv_objext" >&6; }
3533OBJEXT=$ac_cv_objext
3534ac_objext=$OBJEXT
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3536$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3537if ${ac_cv_c_compiler_gnu+:} false; then :
3538  $as_echo_n "(cached) " >&6
3539else
3540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541/* end confdefs.h.  */
3542
3543int
3544main ()
3545{
3546#ifndef __GNUC__
3547       choke me
3548#endif
3549
3550  ;
3551  return 0;
3552}
3553_ACEOF
3554if ac_fn_c_try_compile "$LINENO"; then :
3555  ac_compiler_gnu=yes
3556else
3557  ac_compiler_gnu=no
3558fi
3559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560ac_cv_c_compiler_gnu=$ac_compiler_gnu
3561
3562fi
3563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3564$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3565if test $ac_compiler_gnu = yes; then
3566  GCC=yes
3567else
3568  GCC=
3569fi
3570ac_test_CFLAGS=${CFLAGS+set}
3571ac_save_CFLAGS=$CFLAGS
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3573$as_echo_n "checking whether $CC accepts -g... " >&6; }
3574if ${ac_cv_prog_cc_g+:} false; then :
3575  $as_echo_n "(cached) " >&6
3576else
3577  ac_save_c_werror_flag=$ac_c_werror_flag
3578   ac_c_werror_flag=yes
3579   ac_cv_prog_cc_g=no
3580   CFLAGS="-g"
3581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582/* end confdefs.h.  */
3583
3584int
3585main ()
3586{
3587
3588  ;
3589  return 0;
3590}
3591_ACEOF
3592if ac_fn_c_try_compile "$LINENO"; then :
3593  ac_cv_prog_cc_g=yes
3594else
3595  CFLAGS=""
3596      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597/* end confdefs.h.  */
3598
3599int
3600main ()
3601{
3602
3603  ;
3604  return 0;
3605}
3606_ACEOF
3607if ac_fn_c_try_compile "$LINENO"; then :
3608
3609else
3610  ac_c_werror_flag=$ac_save_c_werror_flag
3611	 CFLAGS="-g"
3612	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613/* end confdefs.h.  */
3614
3615int
3616main ()
3617{
3618
3619  ;
3620  return 0;
3621}
3622_ACEOF
3623if ac_fn_c_try_compile "$LINENO"; then :
3624  ac_cv_prog_cc_g=yes
3625fi
3626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627fi
3628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3629fi
3630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631   ac_c_werror_flag=$ac_save_c_werror_flag
3632fi
3633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3634$as_echo "$ac_cv_prog_cc_g" >&6; }
3635if test "$ac_test_CFLAGS" = set; then
3636  CFLAGS=$ac_save_CFLAGS
3637elif test $ac_cv_prog_cc_g = yes; then
3638  if test "$GCC" = yes; then
3639    CFLAGS="-g -O2"
3640  else
3641    CFLAGS="-g"
3642  fi
3643else
3644  if test "$GCC" = yes; then
3645    CFLAGS="-O2"
3646  else
3647    CFLAGS=
3648  fi
3649fi
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3651$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3652if ${ac_cv_prog_cc_c89+:} false; then :
3653  $as_echo_n "(cached) " >&6
3654else
3655  ac_cv_prog_cc_c89=no
3656ac_save_CC=$CC
3657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658/* end confdefs.h.  */
3659#include <stdarg.h>
3660#include <stdio.h>
3661#include <sys/types.h>
3662#include <sys/stat.h>
3663/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3664struct buf { int x; };
3665FILE * (*rcsopen) (struct buf *, struct stat *, int);
3666static char *e (p, i)
3667     char **p;
3668     int i;
3669{
3670  return p[i];
3671}
3672static char *f (char * (*g) (char **, int), char **p, ...)
3673{
3674  char *s;
3675  va_list v;
3676  va_start (v,p);
3677  s = g (p, va_arg (v,int));
3678  va_end (v);
3679  return s;
3680}
3681
3682/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3683   function prototypes and stuff, but not '\xHH' hex character constants.
3684   These don't provoke an error unfortunately, instead are silently treated
3685   as 'x'.  The following induces an error, until -std is added to get
3686   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3687   array size at least.  It's necessary to write '\x00'==0 to get something
3688   that's true only with -std.  */
3689int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3690
3691/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3692   inside strings and character constants.  */
3693#define FOO(x) 'x'
3694int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3695
3696int test (int i, double x);
3697struct s1 {int (*f) (int a);};
3698struct s2 {int (*f) (double a);};
3699int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3700int argc;
3701char **argv;
3702int
3703main ()
3704{
3705return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3706  ;
3707  return 0;
3708}
3709_ACEOF
3710for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3711	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3712do
3713  CC="$ac_save_CC $ac_arg"
3714  if ac_fn_c_try_compile "$LINENO"; then :
3715  ac_cv_prog_cc_c89=$ac_arg
3716fi
3717rm -f core conftest.err conftest.$ac_objext
3718  test "x$ac_cv_prog_cc_c89" != "xno" && break
3719done
3720rm -f conftest.$ac_ext
3721CC=$ac_save_CC
3722
3723fi
3724# AC_CACHE_VAL
3725case "x$ac_cv_prog_cc_c89" in
3726  x)
3727    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3728$as_echo "none needed" >&6; } ;;
3729  xno)
3730    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3731$as_echo "unsupported" >&6; } ;;
3732  *)
3733    CC="$CC $ac_cv_prog_cc_c89"
3734    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3735$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3736esac
3737if test "x$ac_cv_prog_cc_c89" != xno; then :
3738
3739fi
3740
3741ac_ext=c
3742ac_cpp='$CPP $CPPFLAGS'
3743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746
3747depcc="$CC"   am_compiler_list=
3748
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3750$as_echo_n "checking dependency style of $depcc... " >&6; }
3751if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3752  $as_echo_n "(cached) " >&6
3753else
3754  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3755  # We make a subdir and do the tests there.  Otherwise we can end up
3756  # making bogus files that we don't know about and never remove.  For
3757  # instance it was reported that on HP-UX the gcc test will end up
3758  # making a dummy file named `D' -- because `-MD' means `put the output
3759  # in D'.
3760  rm -rf conftest.dir
3761  mkdir conftest.dir
3762  # Copy depcomp to subdir because otherwise we won't find it if we're
3763  # using a relative directory.
3764  cp "$am_depcomp" conftest.dir
3765  cd conftest.dir
3766  # We will build objects and dependencies in a subdirectory because
3767  # it helps to detect inapplicable dependency modes.  For instance
3768  # both Tru64's cc and ICC support -MD to output dependencies as a
3769  # side effect of compilation, but ICC will put the dependencies in
3770  # the current directory while Tru64 will put them in the object
3771  # directory.
3772  mkdir sub
3773
3774  am_cv_CC_dependencies_compiler_type=none
3775  if test "$am_compiler_list" = ""; then
3776     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3777  fi
3778  am__universal=false
3779  case " $depcc " in #(
3780     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3781     esac
3782
3783  for depmode in $am_compiler_list; do
3784    # Setup a source with many dependencies, because some compilers
3785    # like to wrap large dependency lists on column 80 (with \), and
3786    # we should not choose a depcomp mode which is confused by this.
3787    #
3788    # We need to recreate these files for each test, as the compiler may
3789    # overwrite some of them when testing with obscure command lines.
3790    # This happens at least with the AIX C compiler.
3791    : > sub/conftest.c
3792    for i in 1 2 3 4 5 6; do
3793      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3794      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3795      # Solaris 8's {/usr,}/bin/sh.
3796      touch sub/conftst$i.h
3797    done
3798    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3799
3800    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3801    # mode.  It turns out that the SunPro C++ compiler does not properly
3802    # handle `-M -o', and we need to detect this.  Also, some Intel
3803    # versions had trouble with output in subdirs
3804    am__obj=sub/conftest.${OBJEXT-o}
3805    am__minus_obj="-o $am__obj"
3806    case $depmode in
3807    gcc)
3808      # This depmode causes a compiler race in universal mode.
3809      test "$am__universal" = false || continue
3810      ;;
3811    nosideeffect)
3812      # after this tag, mechanisms are not by side-effect, so they'll
3813      # only be used when explicitly requested
3814      if test "x$enable_dependency_tracking" = xyes; then
3815	continue
3816      else
3817	break
3818      fi
3819      ;;
3820    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3821      # This compiler won't grok `-c -o', but also, the minuso test has
3822      # not run yet.  These depmodes are late enough in the game, and
3823      # so weak that their functioning should not be impacted.
3824      am__obj=conftest.${OBJEXT-o}
3825      am__minus_obj=
3826      ;;
3827    none) break ;;
3828    esac
3829    if depmode=$depmode \
3830       source=sub/conftest.c object=$am__obj \
3831       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3832       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3833         >/dev/null 2>conftest.err &&
3834       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3835       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3836       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3837       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3838      # icc doesn't choke on unknown options, it will just issue warnings
3839      # or remarks (even with -Werror).  So we grep stderr for any message
3840      # that says an option was ignored or not supported.
3841      # When given -MP, icc 7.0 and 7.1 complain thusly:
3842      #   icc: Command line warning: ignoring option '-M'; no argument required
3843      # The diagnosis changed in icc 8.0:
3844      #   icc: Command line remark: option '-MP' not supported
3845      if (grep 'ignoring option' conftest.err ||
3846          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3847        am_cv_CC_dependencies_compiler_type=$depmode
3848        break
3849      fi
3850    fi
3851  done
3852
3853  cd ..
3854  rm -rf conftest.dir
3855else
3856  am_cv_CC_dependencies_compiler_type=none
3857fi
3858
3859fi
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3861$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3862CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3863
3864 if
3865  test "x$enable_dependency_tracking" != xno \
3866  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3867  am__fastdepCC_TRUE=
3868  am__fastdepCC_FALSE='#'
3869else
3870  am__fastdepCC_TRUE='#'
3871  am__fastdepCC_FALSE=
3872fi
3873
3874
3875
3876ac_ext=c
3877ac_cpp='$CPP $CPPFLAGS'
3878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3882$as_echo_n "checking how to run the C preprocessor... " >&6; }
3883# On Suns, sometimes $CPP names a directory.
3884if test -n "$CPP" && test -d "$CPP"; then
3885  CPP=
3886fi
3887if test -z "$CPP"; then
3888  if ${ac_cv_prog_CPP+:} false; then :
3889  $as_echo_n "(cached) " >&6
3890else
3891      # Double quotes because CPP needs to be expanded
3892    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3893    do
3894      ac_preproc_ok=false
3895for ac_c_preproc_warn_flag in '' yes
3896do
3897  # Use a header file that comes with gcc, so configuring glibc
3898  # with a fresh cross-compiler works.
3899  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3900  # <limits.h> exists even on freestanding compilers.
3901  # On the NeXT, cc -E runs the code through the compiler's parser,
3902  # not just through cpp. "Syntax error" is here to catch this case.
3903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904/* end confdefs.h.  */
3905#ifdef __STDC__
3906# include <limits.h>
3907#else
3908# include <assert.h>
3909#endif
3910		     Syntax error
3911_ACEOF
3912if ac_fn_c_try_cpp "$LINENO"; then :
3913
3914else
3915  # Broken: fails on valid input.
3916continue
3917fi
3918rm -f conftest.err conftest.i conftest.$ac_ext
3919
3920  # OK, works on sane cases.  Now check whether nonexistent headers
3921  # can be detected and how.
3922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923/* end confdefs.h.  */
3924#include <ac_nonexistent.h>
3925_ACEOF
3926if ac_fn_c_try_cpp "$LINENO"; then :
3927  # Broken: success on invalid input.
3928continue
3929else
3930  # Passes both tests.
3931ac_preproc_ok=:
3932break
3933fi
3934rm -f conftest.err conftest.i conftest.$ac_ext
3935
3936done
3937# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3938rm -f conftest.i conftest.err conftest.$ac_ext
3939if $ac_preproc_ok; then :
3940  break
3941fi
3942
3943    done
3944    ac_cv_prog_CPP=$CPP
3945
3946fi
3947  CPP=$ac_cv_prog_CPP
3948else
3949  ac_cv_prog_CPP=$CPP
3950fi
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3952$as_echo "$CPP" >&6; }
3953ac_preproc_ok=false
3954for ac_c_preproc_warn_flag in '' yes
3955do
3956  # Use a header file that comes with gcc, so configuring glibc
3957  # with a fresh cross-compiler works.
3958  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3959  # <limits.h> exists even on freestanding compilers.
3960  # On the NeXT, cc -E runs the code through the compiler's parser,
3961  # not just through cpp. "Syntax error" is here to catch this case.
3962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963/* end confdefs.h.  */
3964#ifdef __STDC__
3965# include <limits.h>
3966#else
3967# include <assert.h>
3968#endif
3969		     Syntax error
3970_ACEOF
3971if ac_fn_c_try_cpp "$LINENO"; then :
3972
3973else
3974  # Broken: fails on valid input.
3975continue
3976fi
3977rm -f conftest.err conftest.i conftest.$ac_ext
3978
3979  # OK, works on sane cases.  Now check whether nonexistent headers
3980  # can be detected and how.
3981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982/* end confdefs.h.  */
3983#include <ac_nonexistent.h>
3984_ACEOF
3985if ac_fn_c_try_cpp "$LINENO"; then :
3986  # Broken: success on invalid input.
3987continue
3988else
3989  # Passes both tests.
3990ac_preproc_ok=:
3991break
3992fi
3993rm -f conftest.err conftest.i conftest.$ac_ext
3994
3995done
3996# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3997rm -f conftest.i conftest.err conftest.$ac_ext
3998if $ac_preproc_ok; then :
3999
4000else
4001  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4002$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4003as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4004See \`config.log' for more details" "$LINENO" 5; }
4005fi
4006
4007ac_ext=c
4008ac_cpp='$CPP $CPPFLAGS'
4009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012
4013
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4015$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4016if ${ac_cv_path_GREP+:} false; then :
4017  $as_echo_n "(cached) " >&6
4018else
4019  if test -z "$GREP"; then
4020  ac_path_GREP_found=false
4021  # Loop through the user's path and test for each of PROGNAME-LIST
4022  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4024do
4025  IFS=$as_save_IFS
4026  test -z "$as_dir" && as_dir=.
4027    for ac_prog in grep ggrep; do
4028    for ac_exec_ext in '' $ac_executable_extensions; do
4029      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4030      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4031# Check for GNU ac_path_GREP and select it if it is found.
4032  # Check for GNU $ac_path_GREP
4033case `"$ac_path_GREP" --version 2>&1` in
4034*GNU*)
4035  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4036*)
4037  ac_count=0
4038  $as_echo_n 0123456789 >"conftest.in"
4039  while :
4040  do
4041    cat "conftest.in" "conftest.in" >"conftest.tmp"
4042    mv "conftest.tmp" "conftest.in"
4043    cp "conftest.in" "conftest.nl"
4044    $as_echo 'GREP' >> "conftest.nl"
4045    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4046    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4047    as_fn_arith $ac_count + 1 && ac_count=$as_val
4048    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4049      # Best one so far, save it but keep looking for a better one
4050      ac_cv_path_GREP="$ac_path_GREP"
4051      ac_path_GREP_max=$ac_count
4052    fi
4053    # 10*(2^10) chars as input seems more than enough
4054    test $ac_count -gt 10 && break
4055  done
4056  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4057esac
4058
4059      $ac_path_GREP_found && break 3
4060    done
4061  done
4062  done
4063IFS=$as_save_IFS
4064  if test -z "$ac_cv_path_GREP"; then
4065    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4066  fi
4067else
4068  ac_cv_path_GREP=$GREP
4069fi
4070
4071fi
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4073$as_echo "$ac_cv_path_GREP" >&6; }
4074 GREP="$ac_cv_path_GREP"
4075
4076
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4078$as_echo_n "checking for egrep... " >&6; }
4079if ${ac_cv_path_EGREP+:} false; then :
4080  $as_echo_n "(cached) " >&6
4081else
4082  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4083   then ac_cv_path_EGREP="$GREP -E"
4084   else
4085     if test -z "$EGREP"; then
4086  ac_path_EGREP_found=false
4087  # Loop through the user's path and test for each of PROGNAME-LIST
4088  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4090do
4091  IFS=$as_save_IFS
4092  test -z "$as_dir" && as_dir=.
4093    for ac_prog in egrep; do
4094    for ac_exec_ext in '' $ac_executable_extensions; do
4095      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4096      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4097# Check for GNU ac_path_EGREP and select it if it is found.
4098  # Check for GNU $ac_path_EGREP
4099case `"$ac_path_EGREP" --version 2>&1` in
4100*GNU*)
4101  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4102*)
4103  ac_count=0
4104  $as_echo_n 0123456789 >"conftest.in"
4105  while :
4106  do
4107    cat "conftest.in" "conftest.in" >"conftest.tmp"
4108    mv "conftest.tmp" "conftest.in"
4109    cp "conftest.in" "conftest.nl"
4110    $as_echo 'EGREP' >> "conftest.nl"
4111    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4112    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4113    as_fn_arith $ac_count + 1 && ac_count=$as_val
4114    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4115      # Best one so far, save it but keep looking for a better one
4116      ac_cv_path_EGREP="$ac_path_EGREP"
4117      ac_path_EGREP_max=$ac_count
4118    fi
4119    # 10*(2^10) chars as input seems more than enough
4120    test $ac_count -gt 10 && break
4121  done
4122  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4123esac
4124
4125      $ac_path_EGREP_found && break 3
4126    done
4127  done
4128  done
4129IFS=$as_save_IFS
4130  if test -z "$ac_cv_path_EGREP"; then
4131    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4132  fi
4133else
4134  ac_cv_path_EGREP=$EGREP
4135fi
4136
4137   fi
4138fi
4139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4140$as_echo "$ac_cv_path_EGREP" >&6; }
4141 EGREP="$ac_cv_path_EGREP"
4142
4143
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4145$as_echo_n "checking for ANSI C header files... " >&6; }
4146if ${ac_cv_header_stdc+:} false; then :
4147  $as_echo_n "(cached) " >&6
4148else
4149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150/* end confdefs.h.  */
4151#include <stdlib.h>
4152#include <stdarg.h>
4153#include <string.h>
4154#include <float.h>
4155
4156int
4157main ()
4158{
4159
4160  ;
4161  return 0;
4162}
4163_ACEOF
4164if ac_fn_c_try_compile "$LINENO"; then :
4165  ac_cv_header_stdc=yes
4166else
4167  ac_cv_header_stdc=no
4168fi
4169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4170
4171if test $ac_cv_header_stdc = yes; then
4172  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174/* end confdefs.h.  */
4175#include <string.h>
4176
4177_ACEOF
4178if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4179  $EGREP "memchr" >/dev/null 2>&1; then :
4180
4181else
4182  ac_cv_header_stdc=no
4183fi
4184rm -f conftest*
4185
4186fi
4187
4188if test $ac_cv_header_stdc = yes; then
4189  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4190  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191/* end confdefs.h.  */
4192#include <stdlib.h>
4193
4194_ACEOF
4195if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4196  $EGREP "free" >/dev/null 2>&1; then :
4197
4198else
4199  ac_cv_header_stdc=no
4200fi
4201rm -f conftest*
4202
4203fi
4204
4205if test $ac_cv_header_stdc = yes; then
4206  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4207  if test "$cross_compiling" = yes; then :
4208  :
4209else
4210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211/* end confdefs.h.  */
4212#include <ctype.h>
4213#include <stdlib.h>
4214#if ((' ' & 0x0FF) == 0x020)
4215# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4216# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4217#else
4218# define ISLOWER(c) \
4219		   (('a' <= (c) && (c) <= 'i') \
4220		     || ('j' <= (c) && (c) <= 'r') \
4221		     || ('s' <= (c) && (c) <= 'z'))
4222# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4223#endif
4224
4225#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4226int
4227main ()
4228{
4229  int i;
4230  for (i = 0; i < 256; i++)
4231    if (XOR (islower (i), ISLOWER (i))
4232	|| toupper (i) != TOUPPER (i))
4233      return 2;
4234  return 0;
4235}
4236_ACEOF
4237if ac_fn_c_try_run "$LINENO"; then :
4238
4239else
4240  ac_cv_header_stdc=no
4241fi
4242rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4243  conftest.$ac_objext conftest.beam conftest.$ac_ext
4244fi
4245
4246fi
4247fi
4248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4249$as_echo "$ac_cv_header_stdc" >&6; }
4250if test $ac_cv_header_stdc = yes; then
4251
4252$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4253
4254fi
4255
4256# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4257for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4258		  inttypes.h stdint.h unistd.h
4259do :
4260  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4261ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4262"
4263if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4264  cat >>confdefs.h <<_ACEOF
4265#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4266_ACEOF
4267
4268fi
4269
4270done
4271
4272
4273
4274  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4275if test "x$ac_cv_header_minix_config_h" = xyes; then :
4276  MINIX=yes
4277else
4278  MINIX=
4279fi
4280
4281
4282  if test "$MINIX" = yes; then
4283
4284$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4285
4286
4287$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4288
4289
4290$as_echo "#define _MINIX 1" >>confdefs.h
4291
4292  fi
4293
4294
4295  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4296$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4297if ${ac_cv_safe_to_define___extensions__+:} false; then :
4298  $as_echo_n "(cached) " >&6
4299else
4300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301/* end confdefs.h.  */
4302
4303#	  define __EXTENSIONS__ 1
4304	  $ac_includes_default
4305int
4306main ()
4307{
4308
4309  ;
4310  return 0;
4311}
4312_ACEOF
4313if ac_fn_c_try_compile "$LINENO"; then :
4314  ac_cv_safe_to_define___extensions__=yes
4315else
4316  ac_cv_safe_to_define___extensions__=no
4317fi
4318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319fi
4320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4321$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4322  test $ac_cv_safe_to_define___extensions__ = yes &&
4323    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4324
4325  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4326
4327  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4328
4329  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4330
4331  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4332
4333
4334
4335# Initialize libtool
4336case `pwd` in
4337  *\ * | *\	*)
4338    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4339$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4340esac
4341
4342
4343
4344macro_version='2.4.2'
4345macro_revision='1.3337'
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359ltmain="$ac_aux_dir/ltmain.sh"
4360
4361# Make sure we can run config.sub.
4362$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4363  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4364
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4366$as_echo_n "checking build system type... " >&6; }
4367if ${ac_cv_build+:} false; then :
4368  $as_echo_n "(cached) " >&6
4369else
4370  ac_build_alias=$build_alias
4371test "x$ac_build_alias" = x &&
4372  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4373test "x$ac_build_alias" = x &&
4374  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4375ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4376  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4377
4378fi
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4380$as_echo "$ac_cv_build" >&6; }
4381case $ac_cv_build in
4382*-*-*) ;;
4383*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4384esac
4385build=$ac_cv_build
4386ac_save_IFS=$IFS; IFS='-'
4387set x $ac_cv_build
4388shift
4389build_cpu=$1
4390build_vendor=$2
4391shift; shift
4392# Remember, the first character of IFS is used to create $*,
4393# except with old shells:
4394build_os=$*
4395IFS=$ac_save_IFS
4396case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4397
4398
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4400$as_echo_n "checking host system type... " >&6; }
4401if ${ac_cv_host+:} false; then :
4402  $as_echo_n "(cached) " >&6
4403else
4404  if test "x$host_alias" = x; then
4405  ac_cv_host=$ac_cv_build
4406else
4407  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4408    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4409fi
4410
4411fi
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4413$as_echo "$ac_cv_host" >&6; }
4414case $ac_cv_host in
4415*-*-*) ;;
4416*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4417esac
4418host=$ac_cv_host
4419ac_save_IFS=$IFS; IFS='-'
4420set x $ac_cv_host
4421shift
4422host_cpu=$1
4423host_vendor=$2
4424shift; shift
4425# Remember, the first character of IFS is used to create $*,
4426# except with old shells:
4427host_os=$*
4428IFS=$ac_save_IFS
4429case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4430
4431
4432# Backslashify metacharacters that are still active within
4433# double-quoted strings.
4434sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4435
4436# Same as above, but do not quote variable references.
4437double_quote_subst='s/\(["`\\]\)/\\\1/g'
4438
4439# Sed substitution to delay expansion of an escaped shell variable in a
4440# double_quote_subst'ed string.
4441delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4442
4443# Sed substitution to delay expansion of an escaped single quote.
4444delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4445
4446# Sed substitution to avoid accidental globbing in evaled expressions
4447no_glob_subst='s/\*/\\\*/g'
4448
4449ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4450ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4451ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4452
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4454$as_echo_n "checking how to print strings... " >&6; }
4455# Test print first, because it will be a builtin if present.
4456if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4457   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4458  ECHO='print -r --'
4459elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4460  ECHO='printf %s\n'
4461else
4462  # Use this function as a fallback that always works.
4463  func_fallback_echo ()
4464  {
4465    eval 'cat <<_LTECHO_EOF
4466$1
4467_LTECHO_EOF'
4468  }
4469  ECHO='func_fallback_echo'
4470fi
4471
4472# func_echo_all arg...
4473# Invoke $ECHO with all args, space-separated.
4474func_echo_all ()
4475{
4476    $ECHO ""
4477}
4478
4479case "$ECHO" in
4480  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4481$as_echo "printf" >&6; } ;;
4482  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4483$as_echo "print -r" >&6; } ;;
4484  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4485$as_echo "cat" >&6; } ;;
4486esac
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4502$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4503if ${ac_cv_path_SED+:} false; then :
4504  $as_echo_n "(cached) " >&6
4505else
4506            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4507     for ac_i in 1 2 3 4 5 6 7; do
4508       ac_script="$ac_script$as_nl$ac_script"
4509     done
4510     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4511     { ac_script=; unset ac_script;}
4512     if test -z "$SED"; then
4513  ac_path_SED_found=false
4514  # Loop through the user's path and test for each of PROGNAME-LIST
4515  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516for as_dir in $PATH
4517do
4518  IFS=$as_save_IFS
4519  test -z "$as_dir" && as_dir=.
4520    for ac_prog in sed gsed; do
4521    for ac_exec_ext in '' $ac_executable_extensions; do
4522      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4523      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4524# Check for GNU ac_path_SED and select it if it is found.
4525  # Check for GNU $ac_path_SED
4526case `"$ac_path_SED" --version 2>&1` in
4527*GNU*)
4528  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4529*)
4530  ac_count=0
4531  $as_echo_n 0123456789 >"conftest.in"
4532  while :
4533  do
4534    cat "conftest.in" "conftest.in" >"conftest.tmp"
4535    mv "conftest.tmp" "conftest.in"
4536    cp "conftest.in" "conftest.nl"
4537    $as_echo '' >> "conftest.nl"
4538    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4539    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4540    as_fn_arith $ac_count + 1 && ac_count=$as_val
4541    if test $ac_count -gt ${ac_path_SED_max-0}; then
4542      # Best one so far, save it but keep looking for a better one
4543      ac_cv_path_SED="$ac_path_SED"
4544      ac_path_SED_max=$ac_count
4545    fi
4546    # 10*(2^10) chars as input seems more than enough
4547    test $ac_count -gt 10 && break
4548  done
4549  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4550esac
4551
4552      $ac_path_SED_found && break 3
4553    done
4554  done
4555  done
4556IFS=$as_save_IFS
4557  if test -z "$ac_cv_path_SED"; then
4558    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4559  fi
4560else
4561  ac_cv_path_SED=$SED
4562fi
4563
4564fi
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4566$as_echo "$ac_cv_path_SED" >&6; }
4567 SED="$ac_cv_path_SED"
4568  rm -f conftest.sed
4569
4570test -z "$SED" && SED=sed
4571Xsed="$SED -e 1s/^X//"
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4584$as_echo_n "checking for fgrep... " >&6; }
4585if ${ac_cv_path_FGREP+:} false; then :
4586  $as_echo_n "(cached) " >&6
4587else
4588  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4589   then ac_cv_path_FGREP="$GREP -F"
4590   else
4591     if test -z "$FGREP"; then
4592  ac_path_FGREP_found=false
4593  # Loop through the user's path and test for each of PROGNAME-LIST
4594  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4596do
4597  IFS=$as_save_IFS
4598  test -z "$as_dir" && as_dir=.
4599    for ac_prog in fgrep; do
4600    for ac_exec_ext in '' $ac_executable_extensions; do
4601      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4602      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4603# Check for GNU ac_path_FGREP and select it if it is found.
4604  # Check for GNU $ac_path_FGREP
4605case `"$ac_path_FGREP" --version 2>&1` in
4606*GNU*)
4607  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4608*)
4609  ac_count=0
4610  $as_echo_n 0123456789 >"conftest.in"
4611  while :
4612  do
4613    cat "conftest.in" "conftest.in" >"conftest.tmp"
4614    mv "conftest.tmp" "conftest.in"
4615    cp "conftest.in" "conftest.nl"
4616    $as_echo 'FGREP' >> "conftest.nl"
4617    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4618    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4619    as_fn_arith $ac_count + 1 && ac_count=$as_val
4620    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4621      # Best one so far, save it but keep looking for a better one
4622      ac_cv_path_FGREP="$ac_path_FGREP"
4623      ac_path_FGREP_max=$ac_count
4624    fi
4625    # 10*(2^10) chars as input seems more than enough
4626    test $ac_count -gt 10 && break
4627  done
4628  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4629esac
4630
4631      $ac_path_FGREP_found && break 3
4632    done
4633  done
4634  done
4635IFS=$as_save_IFS
4636  if test -z "$ac_cv_path_FGREP"; then
4637    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4638  fi
4639else
4640  ac_cv_path_FGREP=$FGREP
4641fi
4642
4643   fi
4644fi
4645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4646$as_echo "$ac_cv_path_FGREP" >&6; }
4647 FGREP="$ac_cv_path_FGREP"
4648
4649
4650test -z "$GREP" && GREP=grep
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670# Check whether --with-gnu-ld was given.
4671if test "${with_gnu_ld+set}" = set; then :
4672  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4673else
4674  with_gnu_ld=no
4675fi
4676
4677ac_prog=ld
4678if test "$GCC" = yes; then
4679  # Check if gcc -print-prog-name=ld gives a path.
4680  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4681$as_echo_n "checking for ld used by $CC... " >&6; }
4682  case $host in
4683  *-*-mingw*)
4684    # gcc leaves a trailing carriage return which upsets mingw
4685    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4686  *)
4687    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4688  esac
4689  case $ac_prog in
4690    # Accept absolute paths.
4691    [\\/]* | ?:[\\/]*)
4692      re_direlt='/[^/][^/]*/\.\./'
4693      # Canonicalize the pathname of ld
4694      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4695      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4696	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4697      done
4698      test -z "$LD" && LD="$ac_prog"
4699      ;;
4700  "")
4701    # If it fails, then pretend we aren't using GCC.
4702    ac_prog=ld
4703    ;;
4704  *)
4705    # If it is relative, then search for the first ld in PATH.
4706    with_gnu_ld=unknown
4707    ;;
4708  esac
4709elif test "$with_gnu_ld" = yes; then
4710  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4711$as_echo_n "checking for GNU ld... " >&6; }
4712else
4713  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4714$as_echo_n "checking for non-GNU ld... " >&6; }
4715fi
4716if ${lt_cv_path_LD+:} false; then :
4717  $as_echo_n "(cached) " >&6
4718else
4719  if test -z "$LD"; then
4720  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4721  for ac_dir in $PATH; do
4722    IFS="$lt_save_ifs"
4723    test -z "$ac_dir" && ac_dir=.
4724    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4725      lt_cv_path_LD="$ac_dir/$ac_prog"
4726      # Check to see if the program is GNU ld.  I'd rather use --version,
4727      # but apparently some variants of GNU ld only accept -v.
4728      # Break only if it was the GNU/non-GNU ld that we prefer.
4729      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4730      *GNU* | *'with BFD'*)
4731	test "$with_gnu_ld" != no && break
4732	;;
4733      *)
4734	test "$with_gnu_ld" != yes && break
4735	;;
4736      esac
4737    fi
4738  done
4739  IFS="$lt_save_ifs"
4740else
4741  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4742fi
4743fi
4744
4745LD="$lt_cv_path_LD"
4746if test -n "$LD"; then
4747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4748$as_echo "$LD" >&6; }
4749else
4750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4751$as_echo "no" >&6; }
4752fi
4753test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4755$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4756if ${lt_cv_prog_gnu_ld+:} false; then :
4757  $as_echo_n "(cached) " >&6
4758else
4759  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4760case `$LD -v 2>&1 </dev/null` in
4761*GNU* | *'with BFD'*)
4762  lt_cv_prog_gnu_ld=yes
4763  ;;
4764*)
4765  lt_cv_prog_gnu_ld=no
4766  ;;
4767esac
4768fi
4769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4770$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4771with_gnu_ld=$lt_cv_prog_gnu_ld
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4782$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4783if ${lt_cv_path_NM+:} false; then :
4784  $as_echo_n "(cached) " >&6
4785else
4786  if test -n "$NM"; then
4787  # Let the user override the test.
4788  lt_cv_path_NM="$NM"
4789else
4790  lt_nm_to_check="${ac_tool_prefix}nm"
4791  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4792    lt_nm_to_check="$lt_nm_to_check nm"
4793  fi
4794  for lt_tmp_nm in $lt_nm_to_check; do
4795    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4796    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4797      IFS="$lt_save_ifs"
4798      test -z "$ac_dir" && ac_dir=.
4799      tmp_nm="$ac_dir/$lt_tmp_nm"
4800      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4801	# Check to see if the nm accepts a BSD-compat flag.
4802	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4803	#   nm: unknown option "B" ignored
4804	# Tru64's nm complains that /dev/null is an invalid object file
4805	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4806	*/dev/null* | *'Invalid file or object type'*)
4807	  lt_cv_path_NM="$tmp_nm -B"
4808	  break
4809	  ;;
4810	*)
4811	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4812	  */dev/null*)
4813	    lt_cv_path_NM="$tmp_nm -p"
4814	    break
4815	    ;;
4816	  *)
4817	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4818	    continue # so that we can try to find one that supports BSD flags
4819	    ;;
4820	  esac
4821	  ;;
4822	esac
4823      fi
4824    done
4825    IFS="$lt_save_ifs"
4826  done
4827  : ${lt_cv_path_NM=no}
4828fi
4829fi
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4831$as_echo "$lt_cv_path_NM" >&6; }
4832if test "$lt_cv_path_NM" != "no"; then
4833  NM="$lt_cv_path_NM"
4834else
4835  # Didn't find any BSD compatible name lister, look for dumpbin.
4836  if test -n "$DUMPBIN"; then :
4837    # Let the user override the test.
4838  else
4839    if test -n "$ac_tool_prefix"; then
4840  for ac_prog in dumpbin "link -dump"
4841  do
4842    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4843set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845$as_echo_n "checking for $ac_word... " >&6; }
4846if ${ac_cv_prog_DUMPBIN+:} false; then :
4847  $as_echo_n "(cached) " >&6
4848else
4849  if test -n "$DUMPBIN"; then
4850  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4851else
4852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853for as_dir in $PATH
4854do
4855  IFS=$as_save_IFS
4856  test -z "$as_dir" && as_dir=.
4857    for ac_exec_ext in '' $ac_executable_extensions; do
4858  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4859    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4860    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861    break 2
4862  fi
4863done
4864  done
4865IFS=$as_save_IFS
4866
4867fi
4868fi
4869DUMPBIN=$ac_cv_prog_DUMPBIN
4870if test -n "$DUMPBIN"; then
4871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4872$as_echo "$DUMPBIN" >&6; }
4873else
4874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875$as_echo "no" >&6; }
4876fi
4877
4878
4879    test -n "$DUMPBIN" && break
4880  done
4881fi
4882if test -z "$DUMPBIN"; then
4883  ac_ct_DUMPBIN=$DUMPBIN
4884  for ac_prog in dumpbin "link -dump"
4885do
4886  # Extract the first word of "$ac_prog", so it can be a program name with args.
4887set dummy $ac_prog; ac_word=$2
4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4889$as_echo_n "checking for $ac_word... " >&6; }
4890if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4891  $as_echo_n "(cached) " >&6
4892else
4893  if test -n "$ac_ct_DUMPBIN"; then
4894  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4895else
4896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897for as_dir in $PATH
4898do
4899  IFS=$as_save_IFS
4900  test -z "$as_dir" && as_dir=.
4901    for ac_exec_ext in '' $ac_executable_extensions; do
4902  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4903    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4904    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4905    break 2
4906  fi
4907done
4908  done
4909IFS=$as_save_IFS
4910
4911fi
4912fi
4913ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4914if test -n "$ac_ct_DUMPBIN"; then
4915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4916$as_echo "$ac_ct_DUMPBIN" >&6; }
4917else
4918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4919$as_echo "no" >&6; }
4920fi
4921
4922
4923  test -n "$ac_ct_DUMPBIN" && break
4924done
4925
4926  if test "x$ac_ct_DUMPBIN" = x; then
4927    DUMPBIN=":"
4928  else
4929    case $cross_compiling:$ac_tool_warned in
4930yes:)
4931{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4932$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4933ac_tool_warned=yes ;;
4934esac
4935    DUMPBIN=$ac_ct_DUMPBIN
4936  fi
4937fi
4938
4939    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4940    *COFF*)
4941      DUMPBIN="$DUMPBIN -symbols"
4942      ;;
4943    *)
4944      DUMPBIN=:
4945      ;;
4946    esac
4947  fi
4948
4949  if test "$DUMPBIN" != ":"; then
4950    NM="$DUMPBIN"
4951  fi
4952fi
4953test -z "$NM" && NM=nm
4954
4955
4956
4957
4958
4959
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4961$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4962if ${lt_cv_nm_interface+:} false; then :
4963  $as_echo_n "(cached) " >&6
4964else
4965  lt_cv_nm_interface="BSD nm"
4966  echo "int some_variable = 0;" > conftest.$ac_ext
4967  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4968  (eval "$ac_compile" 2>conftest.err)
4969  cat conftest.err >&5
4970  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4971  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4972  cat conftest.err >&5
4973  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4974  cat conftest.out >&5
4975  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4976    lt_cv_nm_interface="MS dumpbin"
4977  fi
4978  rm -f conftest*
4979fi
4980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4981$as_echo "$lt_cv_nm_interface" >&6; }
4982
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4984$as_echo_n "checking whether ln -s works... " >&6; }
4985LN_S=$as_ln_s
4986if test "$LN_S" = "ln -s"; then
4987  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4988$as_echo "yes" >&6; }
4989else
4990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4991$as_echo "no, using $LN_S" >&6; }
4992fi
4993
4994# find the maximum length of command line arguments
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4996$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4997if ${lt_cv_sys_max_cmd_len+:} false; then :
4998  $as_echo_n "(cached) " >&6
4999else
5000    i=0
5001  teststring="ABCD"
5002
5003  case $build_os in
5004  msdosdjgpp*)
5005    # On DJGPP, this test can blow up pretty badly due to problems in libc
5006    # (any single argument exceeding 2000 bytes causes a buffer overrun
5007    # during glob expansion).  Even if it were fixed, the result of this
5008    # check would be larger than it should be.
5009    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5010    ;;
5011
5012  gnu*)
5013    # Under GNU Hurd, this test is not required because there is
5014    # no limit to the length of command line arguments.
5015    # Libtool will interpret -1 as no limit whatsoever
5016    lt_cv_sys_max_cmd_len=-1;
5017    ;;
5018
5019  cygwin* | mingw* | cegcc*)
5020    # On Win9x/ME, this test blows up -- it succeeds, but takes
5021    # about 5 minutes as the teststring grows exponentially.
5022    # Worse, since 9x/ME are not pre-emptively multitasking,
5023    # you end up with a "frozen" computer, even though with patience
5024    # the test eventually succeeds (with a max line length of 256k).
5025    # Instead, let's just punt: use the minimum linelength reported by
5026    # all of the supported platforms: 8192 (on NT/2K/XP).
5027    lt_cv_sys_max_cmd_len=8192;
5028    ;;
5029
5030  mint*)
5031    # On MiNT this can take a long time and run out of memory.
5032    lt_cv_sys_max_cmd_len=8192;
5033    ;;
5034
5035  amigaos*)
5036    # On AmigaOS with pdksh, this test takes hours, literally.
5037    # So we just punt and use a minimum line length of 8192.
5038    lt_cv_sys_max_cmd_len=8192;
5039    ;;
5040
5041  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5042    # This has been around since 386BSD, at least.  Likely further.
5043    if test -x /sbin/sysctl; then
5044      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5045    elif test -x /usr/sbin/sysctl; then
5046      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5047    else
5048      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5049    fi
5050    # And add a safety zone
5051    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5052    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5053    ;;
5054
5055  interix*)
5056    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5057    lt_cv_sys_max_cmd_len=196608
5058    ;;
5059
5060  os2*)
5061    # The test takes a long time on OS/2.
5062    lt_cv_sys_max_cmd_len=8192
5063    ;;
5064
5065  osf*)
5066    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5067    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5068    # nice to cause kernel panics so lets avoid the loop below.
5069    # First set a reasonable default.
5070    lt_cv_sys_max_cmd_len=16384
5071    #
5072    if test -x /sbin/sysconfig; then
5073      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5074        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5075      esac
5076    fi
5077    ;;
5078  sco3.2v5*)
5079    lt_cv_sys_max_cmd_len=102400
5080    ;;
5081  sysv5* | sco5v6* | sysv4.2uw2*)
5082    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5083    if test -n "$kargmax"; then
5084      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5085    else
5086      lt_cv_sys_max_cmd_len=32768
5087    fi
5088    ;;
5089  *)
5090    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5091    if test -n "$lt_cv_sys_max_cmd_len"; then
5092      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5093      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5094    else
5095      # Make teststring a little bigger before we do anything with it.
5096      # a 1K string should be a reasonable start.
5097      for i in 1 2 3 4 5 6 7 8 ; do
5098        teststring=$teststring$teststring
5099      done
5100      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5101      # If test is not a shell built-in, we'll probably end up computing a
5102      # maximum length that is only half of the actual maximum length, but
5103      # we can't tell.
5104      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5105	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5106	      test $i != 17 # 1/2 MB should be enough
5107      do
5108        i=`expr $i + 1`
5109        teststring=$teststring$teststring
5110      done
5111      # Only check the string length outside the loop.
5112      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5113      teststring=
5114      # Add a significant safety factor because C++ compilers can tack on
5115      # massive amounts of additional arguments before passing them to the
5116      # linker.  It appears as though 1/2 is a usable value.
5117      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5118    fi
5119    ;;
5120  esac
5121
5122fi
5123
5124if test -n $lt_cv_sys_max_cmd_len ; then
5125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5126$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5127else
5128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5129$as_echo "none" >&6; }
5130fi
5131max_cmd_len=$lt_cv_sys_max_cmd_len
5132
5133
5134
5135
5136
5137
5138: ${CP="cp -f"}
5139: ${MV="mv -f"}
5140: ${RM="rm -f"}
5141
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5143$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5144# Try some XSI features
5145xsi_shell=no
5146( _lt_dummy="a/b/c"
5147  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5148      = c,a/b,b/c, \
5149    && eval 'test $(( 1 + 1 )) -eq 2 \
5150    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5151  && xsi_shell=yes
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5153$as_echo "$xsi_shell" >&6; }
5154
5155
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5157$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5158lt_shell_append=no
5159( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5160    >/dev/null 2>&1 \
5161  && lt_shell_append=yes
5162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5163$as_echo "$lt_shell_append" >&6; }
5164
5165
5166if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5167  lt_unset=unset
5168else
5169  lt_unset=false
5170fi
5171
5172
5173
5174
5175
5176# test EBCDIC or ASCII
5177case `echo X|tr X '\101'` in
5178 A) # ASCII based system
5179    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5180  lt_SP2NL='tr \040 \012'
5181  lt_NL2SP='tr \015\012 \040\040'
5182  ;;
5183 *) # EBCDIC based system
5184  lt_SP2NL='tr \100 \n'
5185  lt_NL2SP='tr \r\n \100\100'
5186  ;;
5187esac
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5198$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5199if ${lt_cv_to_host_file_cmd+:} false; then :
5200  $as_echo_n "(cached) " >&6
5201else
5202  case $host in
5203  *-*-mingw* )
5204    case $build in
5205      *-*-mingw* ) # actually msys
5206        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5207        ;;
5208      *-*-cygwin* )
5209        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5210        ;;
5211      * ) # otherwise, assume *nix
5212        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5213        ;;
5214    esac
5215    ;;
5216  *-*-cygwin* )
5217    case $build in
5218      *-*-mingw* ) # actually msys
5219        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5220        ;;
5221      *-*-cygwin* )
5222        lt_cv_to_host_file_cmd=func_convert_file_noop
5223        ;;
5224      * ) # otherwise, assume *nix
5225        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5226        ;;
5227    esac
5228    ;;
5229  * ) # unhandled hosts (and "normal" native builds)
5230    lt_cv_to_host_file_cmd=func_convert_file_noop
5231    ;;
5232esac
5233
5234fi
5235
5236to_host_file_cmd=$lt_cv_to_host_file_cmd
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5238$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5239
5240
5241
5242
5243
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5245$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5246if ${lt_cv_to_tool_file_cmd+:} false; then :
5247  $as_echo_n "(cached) " >&6
5248else
5249  #assume ordinary cross tools, or native build.
5250lt_cv_to_tool_file_cmd=func_convert_file_noop
5251case $host in
5252  *-*-mingw* )
5253    case $build in
5254      *-*-mingw* ) # actually msys
5255        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5256        ;;
5257    esac
5258    ;;
5259esac
5260
5261fi
5262
5263to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5265$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5266
5267
5268
5269
5270
5271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5272$as_echo_n "checking for $LD option to reload object files... " >&6; }
5273if ${lt_cv_ld_reload_flag+:} false; then :
5274  $as_echo_n "(cached) " >&6
5275else
5276  lt_cv_ld_reload_flag='-r'
5277fi
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5279$as_echo "$lt_cv_ld_reload_flag" >&6; }
5280reload_flag=$lt_cv_ld_reload_flag
5281case $reload_flag in
5282"" | " "*) ;;
5283*) reload_flag=" $reload_flag" ;;
5284esac
5285reload_cmds='$LD$reload_flag -o $output$reload_objs'
5286case $host_os in
5287  cygwin* | mingw* | pw32* | cegcc*)
5288    if test "$GCC" != yes; then
5289      reload_cmds=false
5290    fi
5291    ;;
5292  darwin*)
5293    if test "$GCC" = yes; then
5294      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5295    else
5296      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5297    fi
5298    ;;
5299esac
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309if test -n "$ac_tool_prefix"; then
5310  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5311set dummy ${ac_tool_prefix}objdump; ac_word=$2
5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5313$as_echo_n "checking for $ac_word... " >&6; }
5314if ${ac_cv_prog_OBJDUMP+:} false; then :
5315  $as_echo_n "(cached) " >&6
5316else
5317  if test -n "$OBJDUMP"; then
5318  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5319else
5320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321for as_dir in $PATH
5322do
5323  IFS=$as_save_IFS
5324  test -z "$as_dir" && as_dir=.
5325    for ac_exec_ext in '' $ac_executable_extensions; do
5326  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5328    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5329    break 2
5330  fi
5331done
5332  done
5333IFS=$as_save_IFS
5334
5335fi
5336fi
5337OBJDUMP=$ac_cv_prog_OBJDUMP
5338if test -n "$OBJDUMP"; then
5339  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5340$as_echo "$OBJDUMP" >&6; }
5341else
5342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343$as_echo "no" >&6; }
5344fi
5345
5346
5347fi
5348if test -z "$ac_cv_prog_OBJDUMP"; then
5349  ac_ct_OBJDUMP=$OBJDUMP
5350  # Extract the first word of "objdump", so it can be a program name with args.
5351set dummy objdump; ac_word=$2
5352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5353$as_echo_n "checking for $ac_word... " >&6; }
5354if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5355  $as_echo_n "(cached) " >&6
5356else
5357  if test -n "$ac_ct_OBJDUMP"; then
5358  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5359else
5360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361for as_dir in $PATH
5362do
5363  IFS=$as_save_IFS
5364  test -z "$as_dir" && as_dir=.
5365    for ac_exec_ext in '' $ac_executable_extensions; do
5366  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5367    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5368    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5369    break 2
5370  fi
5371done
5372  done
5373IFS=$as_save_IFS
5374
5375fi
5376fi
5377ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5378if test -n "$ac_ct_OBJDUMP"; then
5379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5380$as_echo "$ac_ct_OBJDUMP" >&6; }
5381else
5382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383$as_echo "no" >&6; }
5384fi
5385
5386  if test "x$ac_ct_OBJDUMP" = x; then
5387    OBJDUMP="false"
5388  else
5389    case $cross_compiling:$ac_tool_warned in
5390yes:)
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5392$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5393ac_tool_warned=yes ;;
5394esac
5395    OBJDUMP=$ac_ct_OBJDUMP
5396  fi
5397else
5398  OBJDUMP="$ac_cv_prog_OBJDUMP"
5399fi
5400
5401test -z "$OBJDUMP" && OBJDUMP=objdump
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5412$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5413if ${lt_cv_deplibs_check_method+:} false; then :
5414  $as_echo_n "(cached) " >&6
5415else
5416  lt_cv_file_magic_cmd='$MAGIC_CMD'
5417lt_cv_file_magic_test_file=
5418lt_cv_deplibs_check_method='unknown'
5419# Need to set the preceding variable on all platforms that support
5420# interlibrary dependencies.
5421# 'none' -- dependencies not supported.
5422# `unknown' -- same as none, but documents that we really don't know.
5423# 'pass_all' -- all dependencies passed with no checks.
5424# 'test_compile' -- check by making test program.
5425# 'file_magic [[regex]]' -- check by looking for files in library path
5426# which responds to the $file_magic_cmd with a given extended regex.
5427# If you have `file' or equivalent on your system and you're not sure
5428# whether `pass_all' will *always* work, you probably want this one.
5429
5430case $host_os in
5431aix[4-9]*)
5432  lt_cv_deplibs_check_method=pass_all
5433  ;;
5434
5435beos*)
5436  lt_cv_deplibs_check_method=pass_all
5437  ;;
5438
5439bsdi[45]*)
5440  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5441  lt_cv_file_magic_cmd='/usr/bin/file -L'
5442  lt_cv_file_magic_test_file=/shlib/libc.so
5443  ;;
5444
5445cygwin*)
5446  # func_win32_libid is a shell function defined in ltmain.sh
5447  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5448  lt_cv_file_magic_cmd='func_win32_libid'
5449  ;;
5450
5451mingw* | pw32*)
5452  # Base MSYS/MinGW do not provide the 'file' command needed by
5453  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5454  # unless we find 'file', for example because we are cross-compiling.
5455  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5456  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5457    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5458    lt_cv_file_magic_cmd='func_win32_libid'
5459  else
5460    # Keep this pattern in sync with the one in func_win32_libid.
5461    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5462    lt_cv_file_magic_cmd='$OBJDUMP -f'
5463  fi
5464  ;;
5465
5466cegcc*)
5467  # use the weaker test based on 'objdump'. See mingw*.
5468  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5469  lt_cv_file_magic_cmd='$OBJDUMP -f'
5470  ;;
5471
5472darwin* | rhapsody*)
5473  lt_cv_deplibs_check_method=pass_all
5474  ;;
5475
5476freebsd* | dragonfly*)
5477  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5478    case $host_cpu in
5479    i*86 )
5480      # Not sure whether the presence of OpenBSD here was a mistake.
5481      # Let's accept both of them until this is cleared up.
5482      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5483      lt_cv_file_magic_cmd=/usr/bin/file
5484      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5485      ;;
5486    esac
5487  else
5488    lt_cv_deplibs_check_method=pass_all
5489  fi
5490  ;;
5491
5492gnu*)
5493  lt_cv_deplibs_check_method=pass_all
5494  ;;
5495
5496haiku*)
5497  lt_cv_deplibs_check_method=pass_all
5498  ;;
5499
5500hpux10.20* | hpux11*)
5501  lt_cv_file_magic_cmd=/usr/bin/file
5502  case $host_cpu in
5503  ia64*)
5504    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5505    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5506    ;;
5507  hppa*64*)
5508    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]'
5509    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5510    ;;
5511  *)
5512    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5513    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5514    ;;
5515  esac
5516  ;;
5517
5518interix[3-9]*)
5519  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5520  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5521  ;;
5522
5523irix5* | irix6* | nonstopux*)
5524  case $LD in
5525  *-32|*"-32 ") libmagic=32-bit;;
5526  *-n32|*"-n32 ") libmagic=N32;;
5527  *-64|*"-64 ") libmagic=64-bit;;
5528  *) libmagic=never-match;;
5529  esac
5530  lt_cv_deplibs_check_method=pass_all
5531  ;;
5532
5533# This must be glibc/ELF.
5534linux* | k*bsd*-gnu | kopensolaris*-gnu)
5535  lt_cv_deplibs_check_method=pass_all
5536  ;;
5537
5538netbsd* | netbsdelf*-gnu)
5539  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5540    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5541  else
5542    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5543  fi
5544  ;;
5545
5546newos6*)
5547  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5548  lt_cv_file_magic_cmd=/usr/bin/file
5549  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5550  ;;
5551
5552*nto* | *qnx*)
5553  lt_cv_deplibs_check_method=pass_all
5554  ;;
5555
5556openbsd*)
5557  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5558    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5559  else
5560    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5561  fi
5562  ;;
5563
5564osf3* | osf4* | osf5*)
5565  lt_cv_deplibs_check_method=pass_all
5566  ;;
5567
5568rdos*)
5569  lt_cv_deplibs_check_method=pass_all
5570  ;;
5571
5572solaris*)
5573  lt_cv_deplibs_check_method=pass_all
5574  ;;
5575
5576sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5577  lt_cv_deplibs_check_method=pass_all
5578  ;;
5579
5580sysv4 | sysv4.3*)
5581  case $host_vendor in
5582  motorola)
5583    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]'
5584    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5585    ;;
5586  ncr)
5587    lt_cv_deplibs_check_method=pass_all
5588    ;;
5589  sequent)
5590    lt_cv_file_magic_cmd='/bin/file'
5591    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5592    ;;
5593  sni)
5594    lt_cv_file_magic_cmd='/bin/file'
5595    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5596    lt_cv_file_magic_test_file=/lib/libc.so
5597    ;;
5598  siemens)
5599    lt_cv_deplibs_check_method=pass_all
5600    ;;
5601  pc)
5602    lt_cv_deplibs_check_method=pass_all
5603    ;;
5604  esac
5605  ;;
5606
5607tpf*)
5608  lt_cv_deplibs_check_method=pass_all
5609  ;;
5610esac
5611
5612fi
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5614$as_echo "$lt_cv_deplibs_check_method" >&6; }
5615
5616file_magic_glob=
5617want_nocaseglob=no
5618if test "$build" = "$host"; then
5619  case $host_os in
5620  mingw* | pw32*)
5621    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5622      want_nocaseglob=yes
5623    else
5624      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5625    fi
5626    ;;
5627  esac
5628fi
5629
5630file_magic_cmd=$lt_cv_file_magic_cmd
5631deplibs_check_method=$lt_cv_deplibs_check_method
5632test -z "$deplibs_check_method" && deplibs_check_method=unknown
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655if test -n "$ac_tool_prefix"; then
5656  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5657set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659$as_echo_n "checking for $ac_word... " >&6; }
5660if ${ac_cv_prog_DLLTOOL+:} false; then :
5661  $as_echo_n "(cached) " >&6
5662else
5663  if test -n "$DLLTOOL"; then
5664  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5665else
5666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5667for as_dir in $PATH
5668do
5669  IFS=$as_save_IFS
5670  test -z "$as_dir" && as_dir=.
5671    for ac_exec_ext in '' $ac_executable_extensions; do
5672  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5673    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5674    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5675    break 2
5676  fi
5677done
5678  done
5679IFS=$as_save_IFS
5680
5681fi
5682fi
5683DLLTOOL=$ac_cv_prog_DLLTOOL
5684if test -n "$DLLTOOL"; then
5685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5686$as_echo "$DLLTOOL" >&6; }
5687else
5688  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689$as_echo "no" >&6; }
5690fi
5691
5692
5693fi
5694if test -z "$ac_cv_prog_DLLTOOL"; then
5695  ac_ct_DLLTOOL=$DLLTOOL
5696  # Extract the first word of "dlltool", so it can be a program name with args.
5697set dummy dlltool; ac_word=$2
5698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699$as_echo_n "checking for $ac_word... " >&6; }
5700if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5701  $as_echo_n "(cached) " >&6
5702else
5703  if test -n "$ac_ct_DLLTOOL"; then
5704  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5705else
5706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707for as_dir in $PATH
5708do
5709  IFS=$as_save_IFS
5710  test -z "$as_dir" && as_dir=.
5711    for ac_exec_ext in '' $ac_executable_extensions; do
5712  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5713    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5714    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5715    break 2
5716  fi
5717done
5718  done
5719IFS=$as_save_IFS
5720
5721fi
5722fi
5723ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5724if test -n "$ac_ct_DLLTOOL"; then
5725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5726$as_echo "$ac_ct_DLLTOOL" >&6; }
5727else
5728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729$as_echo "no" >&6; }
5730fi
5731
5732  if test "x$ac_ct_DLLTOOL" = x; then
5733    DLLTOOL="false"
5734  else
5735    case $cross_compiling:$ac_tool_warned in
5736yes:)
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5739ac_tool_warned=yes ;;
5740esac
5741    DLLTOOL=$ac_ct_DLLTOOL
5742  fi
5743else
5744  DLLTOOL="$ac_cv_prog_DLLTOOL"
5745fi
5746
5747test -z "$DLLTOOL" && DLLTOOL=dlltool
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5759$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5760if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5761  $as_echo_n "(cached) " >&6
5762else
5763  lt_cv_sharedlib_from_linklib_cmd='unknown'
5764
5765case $host_os in
5766cygwin* | mingw* | pw32* | cegcc*)
5767  # two different shell functions defined in ltmain.sh
5768  # decide which to use based on capabilities of $DLLTOOL
5769  case `$DLLTOOL --help 2>&1` in
5770  *--identify-strict*)
5771    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5772    ;;
5773  *)
5774    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5775    ;;
5776  esac
5777  ;;
5778*)
5779  # fallback: assume linklib IS sharedlib
5780  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5781  ;;
5782esac
5783
5784fi
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5786$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5787sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5788test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5789
5790
5791
5792
5793
5794
5795
5796if test -n "$ac_tool_prefix"; then
5797  for ac_prog in ar
5798  do
5799    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5800set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802$as_echo_n "checking for $ac_word... " >&6; }
5803if ${ac_cv_prog_AR+:} false; then :
5804  $as_echo_n "(cached) " >&6
5805else
5806  if test -n "$AR"; then
5807  ac_cv_prog_AR="$AR" # Let the user override the test.
5808else
5809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810for as_dir in $PATH
5811do
5812  IFS=$as_save_IFS
5813  test -z "$as_dir" && as_dir=.
5814    for ac_exec_ext in '' $ac_executable_extensions; do
5815  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5816    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5817    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818    break 2
5819  fi
5820done
5821  done
5822IFS=$as_save_IFS
5823
5824fi
5825fi
5826AR=$ac_cv_prog_AR
5827if test -n "$AR"; then
5828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5829$as_echo "$AR" >&6; }
5830else
5831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832$as_echo "no" >&6; }
5833fi
5834
5835
5836    test -n "$AR" && break
5837  done
5838fi
5839if test -z "$AR"; then
5840  ac_ct_AR=$AR
5841  for ac_prog in ar
5842do
5843  # Extract the first word of "$ac_prog", so it can be a program name with args.
5844set dummy $ac_prog; ac_word=$2
5845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5846$as_echo_n "checking for $ac_word... " >&6; }
5847if ${ac_cv_prog_ac_ct_AR+:} false; then :
5848  $as_echo_n "(cached) " >&6
5849else
5850  if test -n "$ac_ct_AR"; then
5851  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5852else
5853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854for as_dir in $PATH
5855do
5856  IFS=$as_save_IFS
5857  test -z "$as_dir" && as_dir=.
5858    for ac_exec_ext in '' $ac_executable_extensions; do
5859  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5860    ac_cv_prog_ac_ct_AR="$ac_prog"
5861    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5862    break 2
5863  fi
5864done
5865  done
5866IFS=$as_save_IFS
5867
5868fi
5869fi
5870ac_ct_AR=$ac_cv_prog_ac_ct_AR
5871if test -n "$ac_ct_AR"; then
5872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5873$as_echo "$ac_ct_AR" >&6; }
5874else
5875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5876$as_echo "no" >&6; }
5877fi
5878
5879
5880  test -n "$ac_ct_AR" && break
5881done
5882
5883  if test "x$ac_ct_AR" = x; then
5884    AR="false"
5885  else
5886    case $cross_compiling:$ac_tool_warned in
5887yes:)
5888{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5889$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5890ac_tool_warned=yes ;;
5891esac
5892    AR=$ac_ct_AR
5893  fi
5894fi
5895
5896: ${AR=ar}
5897: ${AR_FLAGS=cru}
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5910$as_echo_n "checking for archiver @FILE support... " >&6; }
5911if ${lt_cv_ar_at_file+:} false; then :
5912  $as_echo_n "(cached) " >&6
5913else
5914  lt_cv_ar_at_file=no
5915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916/* end confdefs.h.  */
5917
5918int
5919main ()
5920{
5921
5922  ;
5923  return 0;
5924}
5925_ACEOF
5926if ac_fn_c_try_compile "$LINENO"; then :
5927  echo conftest.$ac_objext > conftest.lst
5928      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5929      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5930  (eval $lt_ar_try) 2>&5
5931  ac_status=$?
5932  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5933  test $ac_status = 0; }
5934      if test "$ac_status" -eq 0; then
5935	# Ensure the archiver fails upon bogus file names.
5936	rm -f conftest.$ac_objext libconftest.a
5937	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5938  (eval $lt_ar_try) 2>&5
5939  ac_status=$?
5940  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5941  test $ac_status = 0; }
5942	if test "$ac_status" -ne 0; then
5943          lt_cv_ar_at_file=@
5944        fi
5945      fi
5946      rm -f conftest.* libconftest.a
5947
5948fi
5949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950
5951fi
5952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5953$as_echo "$lt_cv_ar_at_file" >&6; }
5954
5955if test "x$lt_cv_ar_at_file" = xno; then
5956  archiver_list_spec=
5957else
5958  archiver_list_spec=$lt_cv_ar_at_file
5959fi
5960
5961
5962
5963
5964
5965
5966
5967if test -n "$ac_tool_prefix"; then
5968  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5969set dummy ${ac_tool_prefix}strip; ac_word=$2
5970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5971$as_echo_n "checking for $ac_word... " >&6; }
5972if ${ac_cv_prog_STRIP+:} false; then :
5973  $as_echo_n "(cached) " >&6
5974else
5975  if test -n "$STRIP"; then
5976  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5977else
5978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979for as_dir in $PATH
5980do
5981  IFS=$as_save_IFS
5982  test -z "$as_dir" && as_dir=.
5983    for ac_exec_ext in '' $ac_executable_extensions; do
5984  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5985    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5987    break 2
5988  fi
5989done
5990  done
5991IFS=$as_save_IFS
5992
5993fi
5994fi
5995STRIP=$ac_cv_prog_STRIP
5996if test -n "$STRIP"; then
5997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5998$as_echo "$STRIP" >&6; }
5999else
6000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001$as_echo "no" >&6; }
6002fi
6003
6004
6005fi
6006if test -z "$ac_cv_prog_STRIP"; then
6007  ac_ct_STRIP=$STRIP
6008  # Extract the first word of "strip", so it can be a program name with args.
6009set dummy strip; ac_word=$2
6010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6011$as_echo_n "checking for $ac_word... " >&6; }
6012if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6013  $as_echo_n "(cached) " >&6
6014else
6015  if test -n "$ac_ct_STRIP"; then
6016  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6017else
6018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019for as_dir in $PATH
6020do
6021  IFS=$as_save_IFS
6022  test -z "$as_dir" && as_dir=.
6023    for ac_exec_ext in '' $ac_executable_extensions; do
6024  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6025    ac_cv_prog_ac_ct_STRIP="strip"
6026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6027    break 2
6028  fi
6029done
6030  done
6031IFS=$as_save_IFS
6032
6033fi
6034fi
6035ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6036if test -n "$ac_ct_STRIP"; then
6037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6038$as_echo "$ac_ct_STRIP" >&6; }
6039else
6040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041$as_echo "no" >&6; }
6042fi
6043
6044  if test "x$ac_ct_STRIP" = x; then
6045    STRIP=":"
6046  else
6047    case $cross_compiling:$ac_tool_warned in
6048yes:)
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6051ac_tool_warned=yes ;;
6052esac
6053    STRIP=$ac_ct_STRIP
6054  fi
6055else
6056  STRIP="$ac_cv_prog_STRIP"
6057fi
6058
6059test -z "$STRIP" && STRIP=:
6060
6061
6062
6063
6064
6065
6066if test -n "$ac_tool_prefix"; then
6067  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6068set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070$as_echo_n "checking for $ac_word... " >&6; }
6071if ${ac_cv_prog_RANLIB+:} false; then :
6072  $as_echo_n "(cached) " >&6
6073else
6074  if test -n "$RANLIB"; then
6075  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6076else
6077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078for as_dir in $PATH
6079do
6080  IFS=$as_save_IFS
6081  test -z "$as_dir" && as_dir=.
6082    for ac_exec_ext in '' $ac_executable_extensions; do
6083  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6084    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6085    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6086    break 2
6087  fi
6088done
6089  done
6090IFS=$as_save_IFS
6091
6092fi
6093fi
6094RANLIB=$ac_cv_prog_RANLIB
6095if test -n "$RANLIB"; then
6096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6097$as_echo "$RANLIB" >&6; }
6098else
6099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100$as_echo "no" >&6; }
6101fi
6102
6103
6104fi
6105if test -z "$ac_cv_prog_RANLIB"; then
6106  ac_ct_RANLIB=$RANLIB
6107  # Extract the first word of "ranlib", so it can be a program name with args.
6108set dummy ranlib; ac_word=$2
6109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110$as_echo_n "checking for $ac_word... " >&6; }
6111if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6112  $as_echo_n "(cached) " >&6
6113else
6114  if test -n "$ac_ct_RANLIB"; then
6115  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6116else
6117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118for as_dir in $PATH
6119do
6120  IFS=$as_save_IFS
6121  test -z "$as_dir" && as_dir=.
6122    for ac_exec_ext in '' $ac_executable_extensions; do
6123  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6124    ac_cv_prog_ac_ct_RANLIB="ranlib"
6125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6126    break 2
6127  fi
6128done
6129  done
6130IFS=$as_save_IFS
6131
6132fi
6133fi
6134ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6135if test -n "$ac_ct_RANLIB"; then
6136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6137$as_echo "$ac_ct_RANLIB" >&6; }
6138else
6139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140$as_echo "no" >&6; }
6141fi
6142
6143  if test "x$ac_ct_RANLIB" = x; then
6144    RANLIB=":"
6145  else
6146    case $cross_compiling:$ac_tool_warned in
6147yes:)
6148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6150ac_tool_warned=yes ;;
6151esac
6152    RANLIB=$ac_ct_RANLIB
6153  fi
6154else
6155  RANLIB="$ac_cv_prog_RANLIB"
6156fi
6157
6158test -z "$RANLIB" && RANLIB=:
6159
6160
6161
6162
6163
6164
6165# Determine commands to create old-style static archives.
6166old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6167old_postinstall_cmds='chmod 644 $oldlib'
6168old_postuninstall_cmds=
6169
6170if test -n "$RANLIB"; then
6171  case $host_os in
6172  openbsd*)
6173    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6174    ;;
6175  *)
6176    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6177    ;;
6178  esac
6179  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6180fi
6181
6182case $host_os in
6183  darwin*)
6184    lock_old_archive_extraction=yes ;;
6185  *)
6186    lock_old_archive_extraction=no ;;
6187esac
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227# If no C compiler was specified, use CC.
6228LTCC=${LTCC-"$CC"}
6229
6230# If no C compiler flags were specified, use CFLAGS.
6231LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6232
6233# Allow CC to be a program name with arguments.
6234compiler=$CC
6235
6236
6237# Check for command to grab the raw symbol name followed by C symbol from nm.
6238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6239$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6240if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6241  $as_echo_n "(cached) " >&6
6242else
6243
6244# These are sane defaults that work on at least a few old systems.
6245# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6246
6247# Character class describing NM global symbol codes.
6248symcode='[BCDEGRST]'
6249
6250# Regexp to match symbols that can be accessed directly from C.
6251sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6252
6253# Define system-specific variables.
6254case $host_os in
6255aix*)
6256  symcode='[BCDT]'
6257  ;;
6258cygwin* | mingw* | pw32* | cegcc*)
6259  symcode='[ABCDGISTW]'
6260  ;;
6261hpux*)
6262  if test "$host_cpu" = ia64; then
6263    symcode='[ABCDEGRST]'
6264  fi
6265  ;;
6266irix* | nonstopux*)
6267  symcode='[BCDEGRST]'
6268  ;;
6269osf*)
6270  symcode='[BCDEGQRST]'
6271  ;;
6272solaris*)
6273  symcode='[BDRT]'
6274  ;;
6275sco3.2v5*)
6276  symcode='[DT]'
6277  ;;
6278sysv4.2uw2*)
6279  symcode='[DT]'
6280  ;;
6281sysv5* | sco5v6* | unixware* | OpenUNIX*)
6282  symcode='[ABDT]'
6283  ;;
6284sysv4)
6285  symcode='[DFNSTU]'
6286  ;;
6287esac
6288
6289# If we're using GNU nm, then use its standard symbol codes.
6290case `$NM -V 2>&1` in
6291*GNU* | *'with BFD'*)
6292  symcode='[ABCDGIRSTW]' ;;
6293esac
6294
6295# Transform an extracted symbol line into a proper C declaration.
6296# Some systems (esp. on ia64) link data and code symbols differently,
6297# so use this general approach.
6298lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6299
6300# Transform an extracted symbol line into symbol name and symbol address
6301lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6302lt_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'"
6303
6304# Handle CRLF in mingw tool chain
6305opt_cr=
6306case $build_os in
6307mingw*)
6308  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6309  ;;
6310esac
6311
6312# Try without a prefix underscore, then with it.
6313for ac_symprfx in "" "_"; do
6314
6315  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6316  symxfrm="\\1 $ac_symprfx\\2 \\2"
6317
6318  # Write the raw and C identifiers.
6319  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6320    # Fake it for dumpbin and say T for any non-static function
6321    # and D for any global variable.
6322    # Also find C++ and __fastcall symbols from MSVC++,
6323    # which start with @ or ?.
6324    lt_cv_sys_global_symbol_pipe="$AWK '"\
6325"     {last_section=section; section=\$ 3};"\
6326"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6327"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6328"     \$ 0!~/External *\|/{next};"\
6329"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6330"     {if(hide[section]) next};"\
6331"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6332"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6333"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6334"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6335"     ' prfx=^$ac_symprfx"
6336  else
6337    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6338  fi
6339  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6340
6341  # Check to see that the pipe works correctly.
6342  pipe_works=no
6343
6344  rm -f conftest*
6345  cat > conftest.$ac_ext <<_LT_EOF
6346#ifdef __cplusplus
6347extern "C" {
6348#endif
6349char nm_test_var;
6350void nm_test_func(void);
6351void nm_test_func(void){}
6352#ifdef __cplusplus
6353}
6354#endif
6355int main(){nm_test_var='a';nm_test_func();return(0);}
6356_LT_EOF
6357
6358  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6359  (eval $ac_compile) 2>&5
6360  ac_status=$?
6361  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6362  test $ac_status = 0; }; then
6363    # Now try to grab the symbols.
6364    nlist=conftest.nm
6365    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6366  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6367  ac_status=$?
6368  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6369  test $ac_status = 0; } && test -s "$nlist"; then
6370      # Try sorting and uniquifying the output.
6371      if sort "$nlist" | uniq > "$nlist"T; then
6372	mv -f "$nlist"T "$nlist"
6373      else
6374	rm -f "$nlist"T
6375      fi
6376
6377      # Make sure that we snagged all the symbols we need.
6378      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6379	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6380	  cat <<_LT_EOF > conftest.$ac_ext
6381/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6382#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6383/* DATA imports from DLLs on WIN32 con't be const, because runtime
6384   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6385# define LT_DLSYM_CONST
6386#elif defined(__osf__)
6387/* This system does not cope well with relocations in const data.  */
6388# define LT_DLSYM_CONST
6389#else
6390# define LT_DLSYM_CONST const
6391#endif
6392
6393#ifdef __cplusplus
6394extern "C" {
6395#endif
6396
6397_LT_EOF
6398	  # Now generate the symbol file.
6399	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6400
6401	  cat <<_LT_EOF >> conftest.$ac_ext
6402
6403/* The mapping between symbol names and symbols.  */
6404LT_DLSYM_CONST struct {
6405  const char *name;
6406  void       *address;
6407}
6408lt__PROGRAM__LTX_preloaded_symbols[] =
6409{
6410  { "@PROGRAM@", (void *) 0 },
6411_LT_EOF
6412	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6413	  cat <<\_LT_EOF >> conftest.$ac_ext
6414  {0, (void *) 0}
6415};
6416
6417/* This works around a problem in FreeBSD linker */
6418#ifdef FREEBSD_WORKAROUND
6419static const void *lt_preloaded_setup() {
6420  return lt__PROGRAM__LTX_preloaded_symbols;
6421}
6422#endif
6423
6424#ifdef __cplusplus
6425}
6426#endif
6427_LT_EOF
6428	  # Now try linking the two files.
6429	  mv conftest.$ac_objext conftstm.$ac_objext
6430	  lt_globsym_save_LIBS=$LIBS
6431	  lt_globsym_save_CFLAGS=$CFLAGS
6432	  LIBS="conftstm.$ac_objext"
6433	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6434	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6435  (eval $ac_link) 2>&5
6436  ac_status=$?
6437  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6438  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6439	    pipe_works=yes
6440	  fi
6441	  LIBS=$lt_globsym_save_LIBS
6442	  CFLAGS=$lt_globsym_save_CFLAGS
6443	else
6444	  echo "cannot find nm_test_func in $nlist" >&5
6445	fi
6446      else
6447	echo "cannot find nm_test_var in $nlist" >&5
6448      fi
6449    else
6450      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6451    fi
6452  else
6453    echo "$progname: failed program was:" >&5
6454    cat conftest.$ac_ext >&5
6455  fi
6456  rm -rf conftest* conftst*
6457
6458  # Do not use the global_symbol_pipe unless it works.
6459  if test "$pipe_works" = yes; then
6460    break
6461  else
6462    lt_cv_sys_global_symbol_pipe=
6463  fi
6464done
6465
6466fi
6467
6468if test -z "$lt_cv_sys_global_symbol_pipe"; then
6469  lt_cv_sys_global_symbol_to_cdecl=
6470fi
6471if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6473$as_echo "failed" >&6; }
6474else
6475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6476$as_echo "ok" >&6; }
6477fi
6478
6479# Response file support.
6480if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6481  nm_file_list_spec='@'
6482elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6483  nm_file_list_spec='@'
6484fi
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6513$as_echo_n "checking for sysroot... " >&6; }
6514
6515# Check whether --with-sysroot was given.
6516if test "${with_sysroot+set}" = set; then :
6517  withval=$with_sysroot;
6518else
6519  with_sysroot=no
6520fi
6521
6522
6523lt_sysroot=
6524case ${with_sysroot} in #(
6525 yes)
6526   if test "$GCC" = yes; then
6527     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6528   fi
6529   ;; #(
6530 /*)
6531   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6532   ;; #(
6533 no|'')
6534   ;; #(
6535 *)
6536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6537$as_echo "${with_sysroot}" >&6; }
6538   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6539   ;;
6540esac
6541
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6543$as_echo "${lt_sysroot:-no}" >&6; }
6544
6545
6546
6547
6548
6549# Check whether --enable-libtool-lock was given.
6550if test "${enable_libtool_lock+set}" = set; then :
6551  enableval=$enable_libtool_lock;
6552fi
6553
6554test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6555
6556# Some flags need to be propagated to the compiler or linker for good
6557# libtool support.
6558case $host in
6559ia64-*-hpux*)
6560  # Find out which ABI we are using.
6561  echo 'int i;' > conftest.$ac_ext
6562  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6563  (eval $ac_compile) 2>&5
6564  ac_status=$?
6565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6566  test $ac_status = 0; }; then
6567    case `/usr/bin/file conftest.$ac_objext` in
6568      *ELF-32*)
6569	HPUX_IA64_MODE="32"
6570	;;
6571      *ELF-64*)
6572	HPUX_IA64_MODE="64"
6573	;;
6574    esac
6575  fi
6576  rm -rf conftest*
6577  ;;
6578*-*-irix6*)
6579  # Find out which ABI we are using.
6580  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6581  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6582  (eval $ac_compile) 2>&5
6583  ac_status=$?
6584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6585  test $ac_status = 0; }; then
6586    if test "$lt_cv_prog_gnu_ld" = yes; then
6587      case `/usr/bin/file conftest.$ac_objext` in
6588	*32-bit*)
6589	  LD="${LD-ld} -melf32bsmip"
6590	  ;;
6591	*N32*)
6592	  LD="${LD-ld} -melf32bmipn32"
6593	  ;;
6594	*64-bit*)
6595	  LD="${LD-ld} -melf64bmip"
6596	;;
6597      esac
6598    else
6599      case `/usr/bin/file conftest.$ac_objext` in
6600	*32-bit*)
6601	  LD="${LD-ld} -32"
6602	  ;;
6603	*N32*)
6604	  LD="${LD-ld} -n32"
6605	  ;;
6606	*64-bit*)
6607	  LD="${LD-ld} -64"
6608	  ;;
6609      esac
6610    fi
6611  fi
6612  rm -rf conftest*
6613  ;;
6614
6615x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6616s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6617  # Find out which ABI we are using.
6618  echo 'int i;' > conftest.$ac_ext
6619  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6620  (eval $ac_compile) 2>&5
6621  ac_status=$?
6622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6623  test $ac_status = 0; }; then
6624    case `/usr/bin/file conftest.o` in
6625      *32-bit*)
6626	case $host in
6627	  x86_64-*kfreebsd*-gnu)
6628	    LD="${LD-ld} -m elf_i386_fbsd"
6629	    ;;
6630	  x86_64-*linux*)
6631	    LD="${LD-ld} -m elf_i386"
6632	    ;;
6633	  ppc64-*linux*|powerpc64-*linux*)
6634	    LD="${LD-ld} -m elf32ppclinux"
6635	    ;;
6636	  s390x-*linux*)
6637	    LD="${LD-ld} -m elf_s390"
6638	    ;;
6639	  sparc64-*linux*)
6640	    LD="${LD-ld} -m elf32_sparc"
6641	    ;;
6642	esac
6643	;;
6644      *64-bit*)
6645	case $host in
6646	  x86_64-*kfreebsd*-gnu)
6647	    LD="${LD-ld} -m elf_x86_64_fbsd"
6648	    ;;
6649	  x86_64-*linux*)
6650	    LD="${LD-ld} -m elf_x86_64"
6651	    ;;
6652	  ppc*-*linux*|powerpc*-*linux*)
6653	    LD="${LD-ld} -m elf64ppc"
6654	    ;;
6655	  s390*-*linux*|s390*-*tpf*)
6656	    LD="${LD-ld} -m elf64_s390"
6657	    ;;
6658	  sparc*-*linux*)
6659	    LD="${LD-ld} -m elf64_sparc"
6660	    ;;
6661	esac
6662	;;
6663    esac
6664  fi
6665  rm -rf conftest*
6666  ;;
6667
6668*-*-sco3.2v5*)
6669  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6670  SAVE_CFLAGS="$CFLAGS"
6671  CFLAGS="$CFLAGS -belf"
6672  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6673$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6674if ${lt_cv_cc_needs_belf+:} false; then :
6675  $as_echo_n "(cached) " >&6
6676else
6677  ac_ext=c
6678ac_cpp='$CPP $CPPFLAGS'
6679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6681ac_compiler_gnu=$ac_cv_c_compiler_gnu
6682
6683     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684/* end confdefs.h.  */
6685
6686int
6687main ()
6688{
6689
6690  ;
6691  return 0;
6692}
6693_ACEOF
6694if ac_fn_c_try_link "$LINENO"; then :
6695  lt_cv_cc_needs_belf=yes
6696else
6697  lt_cv_cc_needs_belf=no
6698fi
6699rm -f core conftest.err conftest.$ac_objext \
6700    conftest$ac_exeext conftest.$ac_ext
6701     ac_ext=c
6702ac_cpp='$CPP $CPPFLAGS'
6703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6705ac_compiler_gnu=$ac_cv_c_compiler_gnu
6706
6707fi
6708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6709$as_echo "$lt_cv_cc_needs_belf" >&6; }
6710  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6711    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6712    CFLAGS="$SAVE_CFLAGS"
6713  fi
6714  ;;
6715*-*solaris*)
6716  # Find out which ABI we are using.
6717  echo 'int i;' > conftest.$ac_ext
6718  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6719  (eval $ac_compile) 2>&5
6720  ac_status=$?
6721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6722  test $ac_status = 0; }; then
6723    case `/usr/bin/file conftest.o` in
6724    *64-bit*)
6725      case $lt_cv_prog_gnu_ld in
6726      yes*)
6727        case $host in
6728        i?86-*-solaris*)
6729          LD="${LD-ld} -m elf_x86_64"
6730          ;;
6731        sparc*-*-solaris*)
6732          LD="${LD-ld} -m elf64_sparc"
6733          ;;
6734        esac
6735        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6736        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6737          LD="${LD-ld}_sol2"
6738        fi
6739        ;;
6740      *)
6741	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6742	  LD="${LD-ld} -64"
6743	fi
6744	;;
6745      esac
6746      ;;
6747    esac
6748  fi
6749  rm -rf conftest*
6750  ;;
6751esac
6752
6753need_locks="$enable_libtool_lock"
6754
6755if test -n "$ac_tool_prefix"; then
6756  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6757set dummy ${ac_tool_prefix}mt; ac_word=$2
6758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759$as_echo_n "checking for $ac_word... " >&6; }
6760if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6761  $as_echo_n "(cached) " >&6
6762else
6763  if test -n "$MANIFEST_TOOL"; then
6764  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6765else
6766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767for as_dir in $PATH
6768do
6769  IFS=$as_save_IFS
6770  test -z "$as_dir" && as_dir=.
6771    for ac_exec_ext in '' $ac_executable_extensions; do
6772  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6773    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6775    break 2
6776  fi
6777done
6778  done
6779IFS=$as_save_IFS
6780
6781fi
6782fi
6783MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6784if test -n "$MANIFEST_TOOL"; then
6785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6786$as_echo "$MANIFEST_TOOL" >&6; }
6787else
6788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6789$as_echo "no" >&6; }
6790fi
6791
6792
6793fi
6794if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6795  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6796  # Extract the first word of "mt", so it can be a program name with args.
6797set dummy mt; ac_word=$2
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799$as_echo_n "checking for $ac_word... " >&6; }
6800if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6801  $as_echo_n "(cached) " >&6
6802else
6803  if test -n "$ac_ct_MANIFEST_TOOL"; then
6804  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6805else
6806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807for as_dir in $PATH
6808do
6809  IFS=$as_save_IFS
6810  test -z "$as_dir" && as_dir=.
6811    for ac_exec_ext in '' $ac_executable_extensions; do
6812  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6813    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815    break 2
6816  fi
6817done
6818  done
6819IFS=$as_save_IFS
6820
6821fi
6822fi
6823ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6824if test -n "$ac_ct_MANIFEST_TOOL"; then
6825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6826$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6827else
6828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829$as_echo "no" >&6; }
6830fi
6831
6832  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6833    MANIFEST_TOOL=":"
6834  else
6835    case $cross_compiling:$ac_tool_warned in
6836yes:)
6837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6839ac_tool_warned=yes ;;
6840esac
6841    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6842  fi
6843else
6844  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6845fi
6846
6847test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6849$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6850if ${lt_cv_path_mainfest_tool+:} false; then :
6851  $as_echo_n "(cached) " >&6
6852else
6853  lt_cv_path_mainfest_tool=no
6854  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6855  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6856  cat conftest.err >&5
6857  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6858    lt_cv_path_mainfest_tool=yes
6859  fi
6860  rm -f conftest*
6861fi
6862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6863$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6864if test "x$lt_cv_path_mainfest_tool" != xyes; then
6865  MANIFEST_TOOL=:
6866fi
6867
6868
6869
6870
6871
6872
6873  case $host_os in
6874    rhapsody* | darwin*)
6875    if test -n "$ac_tool_prefix"; then
6876  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6877set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6879$as_echo_n "checking for $ac_word... " >&6; }
6880if ${ac_cv_prog_DSYMUTIL+:} false; then :
6881  $as_echo_n "(cached) " >&6
6882else
6883  if test -n "$DSYMUTIL"; then
6884  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6885else
6886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6887for as_dir in $PATH
6888do
6889  IFS=$as_save_IFS
6890  test -z "$as_dir" && as_dir=.
6891    for ac_exec_ext in '' $ac_executable_extensions; do
6892  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6893    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6894    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6895    break 2
6896  fi
6897done
6898  done
6899IFS=$as_save_IFS
6900
6901fi
6902fi
6903DSYMUTIL=$ac_cv_prog_DSYMUTIL
6904if test -n "$DSYMUTIL"; then
6905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6906$as_echo "$DSYMUTIL" >&6; }
6907else
6908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6909$as_echo "no" >&6; }
6910fi
6911
6912
6913fi
6914if test -z "$ac_cv_prog_DSYMUTIL"; then
6915  ac_ct_DSYMUTIL=$DSYMUTIL
6916  # Extract the first word of "dsymutil", so it can be a program name with args.
6917set dummy dsymutil; ac_word=$2
6918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6919$as_echo_n "checking for $ac_word... " >&6; }
6920if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6921  $as_echo_n "(cached) " >&6
6922else
6923  if test -n "$ac_ct_DSYMUTIL"; then
6924  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6925else
6926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927for as_dir in $PATH
6928do
6929  IFS=$as_save_IFS
6930  test -z "$as_dir" && as_dir=.
6931    for ac_exec_ext in '' $ac_executable_extensions; do
6932  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6933    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6934    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6935    break 2
6936  fi
6937done
6938  done
6939IFS=$as_save_IFS
6940
6941fi
6942fi
6943ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6944if test -n "$ac_ct_DSYMUTIL"; then
6945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6946$as_echo "$ac_ct_DSYMUTIL" >&6; }
6947else
6948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6949$as_echo "no" >&6; }
6950fi
6951
6952  if test "x$ac_ct_DSYMUTIL" = x; then
6953    DSYMUTIL=":"
6954  else
6955    case $cross_compiling:$ac_tool_warned in
6956yes:)
6957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6959ac_tool_warned=yes ;;
6960esac
6961    DSYMUTIL=$ac_ct_DSYMUTIL
6962  fi
6963else
6964  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6965fi
6966
6967    if test -n "$ac_tool_prefix"; then
6968  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6969set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6971$as_echo_n "checking for $ac_word... " >&6; }
6972if ${ac_cv_prog_NMEDIT+:} false; then :
6973  $as_echo_n "(cached) " >&6
6974else
6975  if test -n "$NMEDIT"; then
6976  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6977else
6978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979for as_dir in $PATH
6980do
6981  IFS=$as_save_IFS
6982  test -z "$as_dir" && as_dir=.
6983    for ac_exec_ext in '' $ac_executable_extensions; do
6984  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6985    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6987    break 2
6988  fi
6989done
6990  done
6991IFS=$as_save_IFS
6992
6993fi
6994fi
6995NMEDIT=$ac_cv_prog_NMEDIT
6996if test -n "$NMEDIT"; then
6997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6998$as_echo "$NMEDIT" >&6; }
6999else
7000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001$as_echo "no" >&6; }
7002fi
7003
7004
7005fi
7006if test -z "$ac_cv_prog_NMEDIT"; then
7007  ac_ct_NMEDIT=$NMEDIT
7008  # Extract the first word of "nmedit", so it can be a program name with args.
7009set dummy nmedit; ac_word=$2
7010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7011$as_echo_n "checking for $ac_word... " >&6; }
7012if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7013  $as_echo_n "(cached) " >&6
7014else
7015  if test -n "$ac_ct_NMEDIT"; then
7016  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7017else
7018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019for as_dir in $PATH
7020do
7021  IFS=$as_save_IFS
7022  test -z "$as_dir" && as_dir=.
7023    for ac_exec_ext in '' $ac_executable_extensions; do
7024  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7025    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7026    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7027    break 2
7028  fi
7029done
7030  done
7031IFS=$as_save_IFS
7032
7033fi
7034fi
7035ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7036if test -n "$ac_ct_NMEDIT"; then
7037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7038$as_echo "$ac_ct_NMEDIT" >&6; }
7039else
7040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041$as_echo "no" >&6; }
7042fi
7043
7044  if test "x$ac_ct_NMEDIT" = x; then
7045    NMEDIT=":"
7046  else
7047    case $cross_compiling:$ac_tool_warned in
7048yes:)
7049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7051ac_tool_warned=yes ;;
7052esac
7053    NMEDIT=$ac_ct_NMEDIT
7054  fi
7055else
7056  NMEDIT="$ac_cv_prog_NMEDIT"
7057fi
7058
7059    if test -n "$ac_tool_prefix"; then
7060  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7061set dummy ${ac_tool_prefix}lipo; ac_word=$2
7062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7063$as_echo_n "checking for $ac_word... " >&6; }
7064if ${ac_cv_prog_LIPO+:} false; then :
7065  $as_echo_n "(cached) " >&6
7066else
7067  if test -n "$LIPO"; then
7068  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7069else
7070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071for as_dir in $PATH
7072do
7073  IFS=$as_save_IFS
7074  test -z "$as_dir" && as_dir=.
7075    for ac_exec_ext in '' $ac_executable_extensions; do
7076  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7077    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7079    break 2
7080  fi
7081done
7082  done
7083IFS=$as_save_IFS
7084
7085fi
7086fi
7087LIPO=$ac_cv_prog_LIPO
7088if test -n "$LIPO"; then
7089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7090$as_echo "$LIPO" >&6; }
7091else
7092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7093$as_echo "no" >&6; }
7094fi
7095
7096
7097fi
7098if test -z "$ac_cv_prog_LIPO"; then
7099  ac_ct_LIPO=$LIPO
7100  # Extract the first word of "lipo", so it can be a program name with args.
7101set dummy lipo; ac_word=$2
7102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7103$as_echo_n "checking for $ac_word... " >&6; }
7104if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7105  $as_echo_n "(cached) " >&6
7106else
7107  if test -n "$ac_ct_LIPO"; then
7108  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7109else
7110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111for as_dir in $PATH
7112do
7113  IFS=$as_save_IFS
7114  test -z "$as_dir" && as_dir=.
7115    for ac_exec_ext in '' $ac_executable_extensions; do
7116  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7117    ac_cv_prog_ac_ct_LIPO="lipo"
7118    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7119    break 2
7120  fi
7121done
7122  done
7123IFS=$as_save_IFS
7124
7125fi
7126fi
7127ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7128if test -n "$ac_ct_LIPO"; then
7129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7130$as_echo "$ac_ct_LIPO" >&6; }
7131else
7132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7133$as_echo "no" >&6; }
7134fi
7135
7136  if test "x$ac_ct_LIPO" = x; then
7137    LIPO=":"
7138  else
7139    case $cross_compiling:$ac_tool_warned in
7140yes:)
7141{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7143ac_tool_warned=yes ;;
7144esac
7145    LIPO=$ac_ct_LIPO
7146  fi
7147else
7148  LIPO="$ac_cv_prog_LIPO"
7149fi
7150
7151    if test -n "$ac_tool_prefix"; then
7152  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7153set dummy ${ac_tool_prefix}otool; ac_word=$2
7154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155$as_echo_n "checking for $ac_word... " >&6; }
7156if ${ac_cv_prog_OTOOL+:} false; then :
7157  $as_echo_n "(cached) " >&6
7158else
7159  if test -n "$OTOOL"; then
7160  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7161else
7162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163for as_dir in $PATH
7164do
7165  IFS=$as_save_IFS
7166  test -z "$as_dir" && as_dir=.
7167    for ac_exec_ext in '' $ac_executable_extensions; do
7168  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7169    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171    break 2
7172  fi
7173done
7174  done
7175IFS=$as_save_IFS
7176
7177fi
7178fi
7179OTOOL=$ac_cv_prog_OTOOL
7180if test -n "$OTOOL"; then
7181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7182$as_echo "$OTOOL" >&6; }
7183else
7184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185$as_echo "no" >&6; }
7186fi
7187
7188
7189fi
7190if test -z "$ac_cv_prog_OTOOL"; then
7191  ac_ct_OTOOL=$OTOOL
7192  # Extract the first word of "otool", so it can be a program name with args.
7193set dummy otool; ac_word=$2
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195$as_echo_n "checking for $ac_word... " >&6; }
7196if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7197  $as_echo_n "(cached) " >&6
7198else
7199  if test -n "$ac_ct_OTOOL"; then
7200  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7201else
7202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203for as_dir in $PATH
7204do
7205  IFS=$as_save_IFS
7206  test -z "$as_dir" && as_dir=.
7207    for ac_exec_ext in '' $ac_executable_extensions; do
7208  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7209    ac_cv_prog_ac_ct_OTOOL="otool"
7210    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211    break 2
7212  fi
7213done
7214  done
7215IFS=$as_save_IFS
7216
7217fi
7218fi
7219ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7220if test -n "$ac_ct_OTOOL"; then
7221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7222$as_echo "$ac_ct_OTOOL" >&6; }
7223else
7224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225$as_echo "no" >&6; }
7226fi
7227
7228  if test "x$ac_ct_OTOOL" = x; then
7229    OTOOL=":"
7230  else
7231    case $cross_compiling:$ac_tool_warned in
7232yes:)
7233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7235ac_tool_warned=yes ;;
7236esac
7237    OTOOL=$ac_ct_OTOOL
7238  fi
7239else
7240  OTOOL="$ac_cv_prog_OTOOL"
7241fi
7242
7243    if test -n "$ac_tool_prefix"; then
7244  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7245set dummy ${ac_tool_prefix}otool64; ac_word=$2
7246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7247$as_echo_n "checking for $ac_word... " >&6; }
7248if ${ac_cv_prog_OTOOL64+:} false; then :
7249  $as_echo_n "(cached) " >&6
7250else
7251  if test -n "$OTOOL64"; then
7252  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7253else
7254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255for as_dir in $PATH
7256do
7257  IFS=$as_save_IFS
7258  test -z "$as_dir" && as_dir=.
7259    for ac_exec_ext in '' $ac_executable_extensions; do
7260  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7261    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7263    break 2
7264  fi
7265done
7266  done
7267IFS=$as_save_IFS
7268
7269fi
7270fi
7271OTOOL64=$ac_cv_prog_OTOOL64
7272if test -n "$OTOOL64"; then
7273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7274$as_echo "$OTOOL64" >&6; }
7275else
7276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277$as_echo "no" >&6; }
7278fi
7279
7280
7281fi
7282if test -z "$ac_cv_prog_OTOOL64"; then
7283  ac_ct_OTOOL64=$OTOOL64
7284  # Extract the first word of "otool64", so it can be a program name with args.
7285set dummy otool64; ac_word=$2
7286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7287$as_echo_n "checking for $ac_word... " >&6; }
7288if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7289  $as_echo_n "(cached) " >&6
7290else
7291  if test -n "$ac_ct_OTOOL64"; then
7292  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7293else
7294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295for as_dir in $PATH
7296do
7297  IFS=$as_save_IFS
7298  test -z "$as_dir" && as_dir=.
7299    for ac_exec_ext in '' $ac_executable_extensions; do
7300  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7301    ac_cv_prog_ac_ct_OTOOL64="otool64"
7302    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7303    break 2
7304  fi
7305done
7306  done
7307IFS=$as_save_IFS
7308
7309fi
7310fi
7311ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7312if test -n "$ac_ct_OTOOL64"; then
7313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7314$as_echo "$ac_ct_OTOOL64" >&6; }
7315else
7316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7317$as_echo "no" >&6; }
7318fi
7319
7320  if test "x$ac_ct_OTOOL64" = x; then
7321    OTOOL64=":"
7322  else
7323    case $cross_compiling:$ac_tool_warned in
7324yes:)
7325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7327ac_tool_warned=yes ;;
7328esac
7329    OTOOL64=$ac_ct_OTOOL64
7330  fi
7331else
7332  OTOOL64="$ac_cv_prog_OTOOL64"
7333fi
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7362$as_echo_n "checking for -single_module linker flag... " >&6; }
7363if ${lt_cv_apple_cc_single_mod+:} false; then :
7364  $as_echo_n "(cached) " >&6
7365else
7366  lt_cv_apple_cc_single_mod=no
7367      if test -z "${LT_MULTI_MODULE}"; then
7368	# By default we will add the -single_module flag. You can override
7369	# by either setting the environment variable LT_MULTI_MODULE
7370	# non-empty at configure time, or by adding -multi_module to the
7371	# link flags.
7372	rm -rf libconftest.dylib*
7373	echo "int foo(void){return 1;}" > conftest.c
7374	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7375-dynamiclib -Wl,-single_module conftest.c" >&5
7376	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7377	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7378        _lt_result=$?
7379	# If there is a non-empty error log, and "single_module"
7380	# appears in it, assume the flag caused a linker warning
7381        if test -s conftest.err && $GREP single_module conftest.err; then
7382	  cat conftest.err >&5
7383	# Otherwise, if the output was created with a 0 exit code from
7384	# the compiler, it worked.
7385	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7386	  lt_cv_apple_cc_single_mod=yes
7387	else
7388	  cat conftest.err >&5
7389	fi
7390	rm -rf libconftest.dylib*
7391	rm -f conftest.*
7392      fi
7393fi
7394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7395$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7396
7397    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7398$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7399if ${lt_cv_ld_exported_symbols_list+:} false; then :
7400  $as_echo_n "(cached) " >&6
7401else
7402  lt_cv_ld_exported_symbols_list=no
7403      save_LDFLAGS=$LDFLAGS
7404      echo "_main" > conftest.sym
7405      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7406      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407/* end confdefs.h.  */
7408
7409int
7410main ()
7411{
7412
7413  ;
7414  return 0;
7415}
7416_ACEOF
7417if ac_fn_c_try_link "$LINENO"; then :
7418  lt_cv_ld_exported_symbols_list=yes
7419else
7420  lt_cv_ld_exported_symbols_list=no
7421fi
7422rm -f core conftest.err conftest.$ac_objext \
7423    conftest$ac_exeext conftest.$ac_ext
7424	LDFLAGS="$save_LDFLAGS"
7425
7426fi
7427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7428$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7429
7430    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7431$as_echo_n "checking for -force_load linker flag... " >&6; }
7432if ${lt_cv_ld_force_load+:} false; then :
7433  $as_echo_n "(cached) " >&6
7434else
7435  lt_cv_ld_force_load=no
7436      cat > conftest.c << _LT_EOF
7437int forced_loaded() { return 2;}
7438_LT_EOF
7439      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7440      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7441      echo "$AR cru libconftest.a conftest.o" >&5
7442      $AR cru libconftest.a conftest.o 2>&5
7443      echo "$RANLIB libconftest.a" >&5
7444      $RANLIB libconftest.a 2>&5
7445      cat > conftest.c << _LT_EOF
7446int main() { return 0;}
7447_LT_EOF
7448      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7449      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7450      _lt_result=$?
7451      if test -s conftest.err && $GREP force_load conftest.err; then
7452	cat conftest.err >&5
7453      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7454	lt_cv_ld_force_load=yes
7455      else
7456	cat conftest.err >&5
7457      fi
7458        rm -f conftest.err libconftest.a conftest conftest.c
7459        rm -rf conftest.dSYM
7460
7461fi
7462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7463$as_echo "$lt_cv_ld_force_load" >&6; }
7464    case $host_os in
7465    rhapsody* | darwin1.[012])
7466      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7467    darwin1.*)
7468      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7469    darwin*) # darwin 5.x on
7470      # if running on 10.5 or later, the deployment target defaults
7471      # to the OS version, if on x86, and 10.4, the deployment
7472      # target defaults to 10.4. Don't you love it?
7473      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7474	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7475	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7476	10.[012]*)
7477	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7478	10.*)
7479	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7480      esac
7481    ;;
7482  esac
7483    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7484      _lt_dar_single_mod='$single_module'
7485    fi
7486    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7487      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7488    else
7489      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7490    fi
7491    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7492      _lt_dsymutil='~$DSYMUTIL $lib || :'
7493    else
7494      _lt_dsymutil=
7495    fi
7496    ;;
7497  esac
7498
7499for ac_header in dlfcn.h
7500do :
7501  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7502"
7503if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7504  cat >>confdefs.h <<_ACEOF
7505#define HAVE_DLFCN_H 1
7506_ACEOF
7507
7508fi
7509
7510done
7511
7512
7513
7514
7515
7516# Set options
7517
7518
7519
7520        enable_dlopen=no
7521
7522
7523  enable_win32_dll=no
7524
7525
7526            # Check whether --enable-shared was given.
7527if test "${enable_shared+set}" = set; then :
7528  enableval=$enable_shared; p=${PACKAGE-default}
7529    case $enableval in
7530    yes) enable_shared=yes ;;
7531    no) enable_shared=no ;;
7532    *)
7533      enable_shared=no
7534      # Look at the argument we got.  We use all the common list separators.
7535      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7536      for pkg in $enableval; do
7537	IFS="$lt_save_ifs"
7538	if test "X$pkg" = "X$p"; then
7539	  enable_shared=yes
7540	fi
7541      done
7542      IFS="$lt_save_ifs"
7543      ;;
7544    esac
7545else
7546  enable_shared=yes
7547fi
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557  # Check whether --enable-static was given.
7558if test "${enable_static+set}" = set; then :
7559  enableval=$enable_static; p=${PACKAGE-default}
7560    case $enableval in
7561    yes) enable_static=yes ;;
7562    no) enable_static=no ;;
7563    *)
7564     enable_static=no
7565      # Look at the argument we got.  We use all the common list separators.
7566      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7567      for pkg in $enableval; do
7568	IFS="$lt_save_ifs"
7569	if test "X$pkg" = "X$p"; then
7570	  enable_static=yes
7571	fi
7572      done
7573      IFS="$lt_save_ifs"
7574      ;;
7575    esac
7576else
7577  enable_static=yes
7578fi
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589# Check whether --with-pic was given.
7590if test "${with_pic+set}" = set; then :
7591  withval=$with_pic; lt_p=${PACKAGE-default}
7592    case $withval in
7593    yes|no) pic_mode=$withval ;;
7594    *)
7595      pic_mode=default
7596      # Look at the argument we got.  We use all the common list separators.
7597      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7598      for lt_pkg in $withval; do
7599	IFS="$lt_save_ifs"
7600	if test "X$lt_pkg" = "X$lt_p"; then
7601	  pic_mode=yes
7602	fi
7603      done
7604      IFS="$lt_save_ifs"
7605      ;;
7606    esac
7607else
7608  pic_mode=default
7609fi
7610
7611
7612test -z "$pic_mode" && pic_mode=default
7613
7614
7615
7616
7617
7618
7619
7620  # Check whether --enable-fast-install was given.
7621if test "${enable_fast_install+set}" = set; then :
7622  enableval=$enable_fast_install; p=${PACKAGE-default}
7623    case $enableval in
7624    yes) enable_fast_install=yes ;;
7625    no) enable_fast_install=no ;;
7626    *)
7627      enable_fast_install=no
7628      # Look at the argument we got.  We use all the common list separators.
7629      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7630      for pkg in $enableval; do
7631	IFS="$lt_save_ifs"
7632	if test "X$pkg" = "X$p"; then
7633	  enable_fast_install=yes
7634	fi
7635      done
7636      IFS="$lt_save_ifs"
7637      ;;
7638    esac
7639else
7640  enable_fast_install=yes
7641fi
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653# This can be used to rebuild libtool when needed
7654LIBTOOL_DEPS="$ltmain"
7655
7656# Always use our own libtool.
7657LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688test -z "$LN_S" && LN_S="ln -s"
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703if test -n "${ZSH_VERSION+set}" ; then
7704   setopt NO_GLOB_SUBST
7705fi
7706
7707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7708$as_echo_n "checking for objdir... " >&6; }
7709if ${lt_cv_objdir+:} false; then :
7710  $as_echo_n "(cached) " >&6
7711else
7712  rm -f .libs 2>/dev/null
7713mkdir .libs 2>/dev/null
7714if test -d .libs; then
7715  lt_cv_objdir=.libs
7716else
7717  # MS-DOS does not allow filenames that begin with a dot.
7718  lt_cv_objdir=_libs
7719fi
7720rmdir .libs 2>/dev/null
7721fi
7722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7723$as_echo "$lt_cv_objdir" >&6; }
7724objdir=$lt_cv_objdir
7725
7726
7727
7728
7729
7730cat >>confdefs.h <<_ACEOF
7731#define LT_OBJDIR "$lt_cv_objdir/"
7732_ACEOF
7733
7734
7735
7736
7737case $host_os in
7738aix3*)
7739  # AIX sometimes has problems with the GCC collect2 program.  For some
7740  # reason, if we set the COLLECT_NAMES environment variable, the problems
7741  # vanish in a puff of smoke.
7742  if test "X${COLLECT_NAMES+set}" != Xset; then
7743    COLLECT_NAMES=
7744    export COLLECT_NAMES
7745  fi
7746  ;;
7747esac
7748
7749# Global variables:
7750ofile=libtool
7751can_build_shared=yes
7752
7753# All known linkers require a `.a' archive for static linking (except MSVC,
7754# which needs '.lib').
7755libext=a
7756
7757with_gnu_ld="$lt_cv_prog_gnu_ld"
7758
7759old_CC="$CC"
7760old_CFLAGS="$CFLAGS"
7761
7762# Set sane defaults for various variables
7763test -z "$CC" && CC=cc
7764test -z "$LTCC" && LTCC=$CC
7765test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7766test -z "$LD" && LD=ld
7767test -z "$ac_objext" && ac_objext=o
7768
7769for cc_temp in $compiler""; do
7770  case $cc_temp in
7771    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7772    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7773    \-*) ;;
7774    *) break;;
7775  esac
7776done
7777cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7778
7779
7780# Only perform the check for file, if the check method requires it
7781test -z "$MAGIC_CMD" && MAGIC_CMD=file
7782case $deplibs_check_method in
7783file_magic*)
7784  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7785    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7786$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7787if ${lt_cv_path_MAGIC_CMD+:} false; then :
7788  $as_echo_n "(cached) " >&6
7789else
7790  case $MAGIC_CMD in
7791[\\/*] |  ?:[\\/]*)
7792  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7793  ;;
7794*)
7795  lt_save_MAGIC_CMD="$MAGIC_CMD"
7796  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7797  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7798  for ac_dir in $ac_dummy; do
7799    IFS="$lt_save_ifs"
7800    test -z "$ac_dir" && ac_dir=.
7801    if test -f $ac_dir/${ac_tool_prefix}file; then
7802      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7803      if test -n "$file_magic_test_file"; then
7804	case $deplibs_check_method in
7805	"file_magic "*)
7806	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7807	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7808	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7809	    $EGREP "$file_magic_regex" > /dev/null; then
7810	    :
7811	  else
7812	    cat <<_LT_EOF 1>&2
7813
7814*** Warning: the command libtool uses to detect shared libraries,
7815*** $file_magic_cmd, produces output that libtool cannot recognize.
7816*** The result is that libtool may fail to recognize shared libraries
7817*** as such.  This will affect the creation of libtool libraries that
7818*** depend on shared libraries, but programs linked with such libtool
7819*** libraries will work regardless of this problem.  Nevertheless, you
7820*** may want to report the problem to your system manager and/or to
7821*** bug-libtool@gnu.org
7822
7823_LT_EOF
7824	  fi ;;
7825	esac
7826      fi
7827      break
7828    fi
7829  done
7830  IFS="$lt_save_ifs"
7831  MAGIC_CMD="$lt_save_MAGIC_CMD"
7832  ;;
7833esac
7834fi
7835
7836MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7837if test -n "$MAGIC_CMD"; then
7838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7839$as_echo "$MAGIC_CMD" >&6; }
7840else
7841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842$as_echo "no" >&6; }
7843fi
7844
7845
7846
7847
7848
7849if test -z "$lt_cv_path_MAGIC_CMD"; then
7850  if test -n "$ac_tool_prefix"; then
7851    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7852$as_echo_n "checking for file... " >&6; }
7853if ${lt_cv_path_MAGIC_CMD+:} false; then :
7854  $as_echo_n "(cached) " >&6
7855else
7856  case $MAGIC_CMD in
7857[\\/*] |  ?:[\\/]*)
7858  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7859  ;;
7860*)
7861  lt_save_MAGIC_CMD="$MAGIC_CMD"
7862  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7863  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7864  for ac_dir in $ac_dummy; do
7865    IFS="$lt_save_ifs"
7866    test -z "$ac_dir" && ac_dir=.
7867    if test -f $ac_dir/file; then
7868      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7869      if test -n "$file_magic_test_file"; then
7870	case $deplibs_check_method in
7871	"file_magic "*)
7872	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7873	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7874	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7875	    $EGREP "$file_magic_regex" > /dev/null; then
7876	    :
7877	  else
7878	    cat <<_LT_EOF 1>&2
7879
7880*** Warning: the command libtool uses to detect shared libraries,
7881*** $file_magic_cmd, produces output that libtool cannot recognize.
7882*** The result is that libtool may fail to recognize shared libraries
7883*** as such.  This will affect the creation of libtool libraries that
7884*** depend on shared libraries, but programs linked with such libtool
7885*** libraries will work regardless of this problem.  Nevertheless, you
7886*** may want to report the problem to your system manager and/or to
7887*** bug-libtool@gnu.org
7888
7889_LT_EOF
7890	  fi ;;
7891	esac
7892      fi
7893      break
7894    fi
7895  done
7896  IFS="$lt_save_ifs"
7897  MAGIC_CMD="$lt_save_MAGIC_CMD"
7898  ;;
7899esac
7900fi
7901
7902MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7903if test -n "$MAGIC_CMD"; then
7904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7905$as_echo "$MAGIC_CMD" >&6; }
7906else
7907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908$as_echo "no" >&6; }
7909fi
7910
7911
7912  else
7913    MAGIC_CMD=:
7914  fi
7915fi
7916
7917  fi
7918  ;;
7919esac
7920
7921# Use C for the default configuration in the libtool script
7922
7923lt_save_CC="$CC"
7924ac_ext=c
7925ac_cpp='$CPP $CPPFLAGS'
7926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7928ac_compiler_gnu=$ac_cv_c_compiler_gnu
7929
7930
7931# Source file extension for C test sources.
7932ac_ext=c
7933
7934# Object file extension for compiled C test sources.
7935objext=o
7936objext=$objext
7937
7938# Code to be used in simple compile tests
7939lt_simple_compile_test_code="int some_variable = 0;"
7940
7941# Code to be used in simple link tests
7942lt_simple_link_test_code='int main(){return(0);}'
7943
7944
7945
7946
7947
7948
7949
7950# If no C compiler was specified, use CC.
7951LTCC=${LTCC-"$CC"}
7952
7953# If no C compiler flags were specified, use CFLAGS.
7954LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7955
7956# Allow CC to be a program name with arguments.
7957compiler=$CC
7958
7959# Save the default compiler, since it gets overwritten when the other
7960# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7961compiler_DEFAULT=$CC
7962
7963# save warnings/boilerplate of simple test code
7964ac_outfile=conftest.$ac_objext
7965echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7966eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7967_lt_compiler_boilerplate=`cat conftest.err`
7968$RM conftest*
7969
7970ac_outfile=conftest.$ac_objext
7971echo "$lt_simple_link_test_code" >conftest.$ac_ext
7972eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7973_lt_linker_boilerplate=`cat conftest.err`
7974$RM -r conftest*
7975
7976
7977## CAVEAT EMPTOR:
7978## There is no encapsulation within the following macros, do not change
7979## the running order or otherwise move them around unless you know exactly
7980## what you are doing...
7981if test -n "$compiler"; then
7982
7983lt_prog_compiler_no_builtin_flag=
7984
7985if test "$GCC" = yes; then
7986  case $cc_basename in
7987  nvcc*)
7988    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7989  *)
7990    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7991  esac
7992
7993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7994$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7995if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7996  $as_echo_n "(cached) " >&6
7997else
7998  lt_cv_prog_compiler_rtti_exceptions=no
7999   ac_outfile=conftest.$ac_objext
8000   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8001   lt_compiler_flag="-fno-rtti -fno-exceptions"
8002   # Insert the option either (1) after the last *FLAGS variable, or
8003   # (2) before a word containing "conftest.", or (3) at the end.
8004   # Note that $ac_compile itself does not contain backslashes and begins
8005   # with a dollar sign (not a hyphen), so the echo should work correctly.
8006   # The option is referenced via a variable to avoid confusing sed.
8007   lt_compile=`echo "$ac_compile" | $SED \
8008   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8009   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8010   -e 's:$: $lt_compiler_flag:'`
8011   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8012   (eval "$lt_compile" 2>conftest.err)
8013   ac_status=$?
8014   cat conftest.err >&5
8015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016   if (exit $ac_status) && test -s "$ac_outfile"; then
8017     # The compiler can only warn and ignore the option if not recognized
8018     # So say no if there are warnings other than the usual output.
8019     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8020     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8021     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8022       lt_cv_prog_compiler_rtti_exceptions=yes
8023     fi
8024   fi
8025   $RM conftest*
8026
8027fi
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8029$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8030
8031if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8032    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8033else
8034    :
8035fi
8036
8037fi
8038
8039
8040
8041
8042
8043
8044  lt_prog_compiler_wl=
8045lt_prog_compiler_pic=
8046lt_prog_compiler_static=
8047
8048
8049  if test "$GCC" = yes; then
8050    lt_prog_compiler_wl='-Wl,'
8051    lt_prog_compiler_static='-static'
8052
8053    case $host_os in
8054      aix*)
8055      # All AIX code is PIC.
8056      if test "$host_cpu" = ia64; then
8057	# AIX 5 now supports IA64 processor
8058	lt_prog_compiler_static='-Bstatic'
8059      fi
8060      ;;
8061
8062    amigaos*)
8063      case $host_cpu in
8064      powerpc)
8065            # see comment about AmigaOS4 .so support
8066            lt_prog_compiler_pic='-fPIC'
8067        ;;
8068      m68k)
8069            # FIXME: we need at least 68020 code to build shared libraries, but
8070            # adding the `-m68020' flag to GCC prevents building anything better,
8071            # like `-m68040'.
8072            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8073        ;;
8074      esac
8075      ;;
8076
8077    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8078      # PIC is the default for these OSes.
8079      ;;
8080
8081    mingw* | cygwin* | pw32* | os2* | cegcc*)
8082      # This hack is so that the source file can tell whether it is being
8083      # built for inclusion in a dll (and should export symbols for example).
8084      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8085      # (--disable-auto-import) libraries
8086      lt_prog_compiler_pic='-DDLL_EXPORT'
8087      ;;
8088
8089    darwin* | rhapsody*)
8090      # PIC is the default on this platform
8091      # Common symbols not allowed in MH_DYLIB files
8092      lt_prog_compiler_pic='-fno-common'
8093      ;;
8094
8095    haiku*)
8096      # PIC is the default for Haiku.
8097      # The "-static" flag exists, but is broken.
8098      lt_prog_compiler_static=
8099      ;;
8100
8101    hpux*)
8102      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8103      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8104      # sets the default TLS model and affects inlining.
8105      case $host_cpu in
8106      hppa*64*)
8107	# +Z the default
8108	;;
8109      *)
8110	lt_prog_compiler_pic='-fPIC'
8111	;;
8112      esac
8113      ;;
8114
8115    interix[3-9]*)
8116      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8117      # Instead, we relocate shared libraries at runtime.
8118      ;;
8119
8120    msdosdjgpp*)
8121      # Just because we use GCC doesn't mean we suddenly get shared libraries
8122      # on systems that don't support them.
8123      lt_prog_compiler_can_build_shared=no
8124      enable_shared=no
8125      ;;
8126
8127    *nto* | *qnx*)
8128      # QNX uses GNU C++, but need to define -shared option too, otherwise
8129      # it will coredump.
8130      lt_prog_compiler_pic='-fPIC -shared'
8131      ;;
8132
8133    sysv4*MP*)
8134      if test -d /usr/nec; then
8135	lt_prog_compiler_pic=-Kconform_pic
8136      fi
8137      ;;
8138
8139    *)
8140      lt_prog_compiler_pic='-fPIC'
8141      ;;
8142    esac
8143
8144    case $cc_basename in
8145    nvcc*) # Cuda Compiler Driver 2.2
8146      lt_prog_compiler_wl='-Xlinker '
8147      if test -n "$lt_prog_compiler_pic"; then
8148        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8149      fi
8150      ;;
8151    esac
8152  else
8153    # PORTME Check for flag to pass linker flags through the system compiler.
8154    case $host_os in
8155    aix*)
8156      lt_prog_compiler_wl='-Wl,'
8157      if test "$host_cpu" = ia64; then
8158	# AIX 5 now supports IA64 processor
8159	lt_prog_compiler_static='-Bstatic'
8160      else
8161	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8162      fi
8163      ;;
8164
8165    mingw* | cygwin* | pw32* | os2* | cegcc*)
8166      # This hack is so that the source file can tell whether it is being
8167      # built for inclusion in a dll (and should export symbols for example).
8168      lt_prog_compiler_pic='-DDLL_EXPORT'
8169      ;;
8170
8171    hpux9* | hpux10* | hpux11*)
8172      lt_prog_compiler_wl='-Wl,'
8173      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8174      # not for PA HP-UX.
8175      case $host_cpu in
8176      hppa*64*|ia64*)
8177	# +Z the default
8178	;;
8179      *)
8180	lt_prog_compiler_pic='+Z'
8181	;;
8182      esac
8183      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8184      lt_prog_compiler_static='${wl}-a ${wl}archive'
8185      ;;
8186
8187    irix5* | irix6* | nonstopux*)
8188      lt_prog_compiler_wl='-Wl,'
8189      # PIC (with -KPIC) is the default.
8190      lt_prog_compiler_static='-non_shared'
8191      ;;
8192
8193    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8194      case $cc_basename in
8195      # old Intel for x86_64 which still supported -KPIC.
8196      ecc*)
8197	lt_prog_compiler_wl='-Wl,'
8198	lt_prog_compiler_pic='-KPIC'
8199	lt_prog_compiler_static='-static'
8200        ;;
8201      # icc used to be incompatible with GCC.
8202      # ICC 10 doesn't accept -KPIC any more.
8203      icc* | ifort*)
8204	lt_prog_compiler_wl='-Wl,'
8205	lt_prog_compiler_pic='-fPIC'
8206	lt_prog_compiler_static='-static'
8207        ;;
8208      # Lahey Fortran 8.1.
8209      lf95*)
8210	lt_prog_compiler_wl='-Wl,'
8211	lt_prog_compiler_pic='--shared'
8212	lt_prog_compiler_static='--static'
8213	;;
8214      nagfor*)
8215	# NAG Fortran compiler
8216	lt_prog_compiler_wl='-Wl,-Wl,,'
8217	lt_prog_compiler_pic='-PIC'
8218	lt_prog_compiler_static='-Bstatic'
8219	;;
8220      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8221        # Portland Group compilers (*not* the Pentium gcc compiler,
8222	# which looks to be a dead project)
8223	lt_prog_compiler_wl='-Wl,'
8224	lt_prog_compiler_pic='-fpic'
8225	lt_prog_compiler_static='-Bstatic'
8226        ;;
8227      ccc*)
8228        lt_prog_compiler_wl='-Wl,'
8229        # All Alpha code is PIC.
8230        lt_prog_compiler_static='-non_shared'
8231        ;;
8232      xl* | bgxl* | bgf* | mpixl*)
8233	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8234	lt_prog_compiler_wl='-Wl,'
8235	lt_prog_compiler_pic='-qpic'
8236	lt_prog_compiler_static='-qstaticlink'
8237	;;
8238      *)
8239	case `$CC -V 2>&1 | sed 5q` in
8240	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8241	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8242	  lt_prog_compiler_pic='-KPIC'
8243	  lt_prog_compiler_static='-Bstatic'
8244	  lt_prog_compiler_wl=''
8245	  ;;
8246	*Sun\ F* | *Sun*Fortran*)
8247	  lt_prog_compiler_pic='-KPIC'
8248	  lt_prog_compiler_static='-Bstatic'
8249	  lt_prog_compiler_wl='-Qoption ld '
8250	  ;;
8251	*Sun\ C*)
8252	  # Sun C 5.9
8253	  lt_prog_compiler_pic='-KPIC'
8254	  lt_prog_compiler_static='-Bstatic'
8255	  lt_prog_compiler_wl='-Wl,'
8256	  ;;
8257        *Intel*\ [CF]*Compiler*)
8258	  lt_prog_compiler_wl='-Wl,'
8259	  lt_prog_compiler_pic='-fPIC'
8260	  lt_prog_compiler_static='-static'
8261	  ;;
8262	*Portland\ Group*)
8263	  lt_prog_compiler_wl='-Wl,'
8264	  lt_prog_compiler_pic='-fpic'
8265	  lt_prog_compiler_static='-Bstatic'
8266	  ;;
8267	esac
8268	;;
8269      esac
8270      ;;
8271
8272    newsos6)
8273      lt_prog_compiler_pic='-KPIC'
8274      lt_prog_compiler_static='-Bstatic'
8275      ;;
8276
8277    *nto* | *qnx*)
8278      # QNX uses GNU C++, but need to define -shared option too, otherwise
8279      # it will coredump.
8280      lt_prog_compiler_pic='-fPIC -shared'
8281      ;;
8282
8283    osf3* | osf4* | osf5*)
8284      lt_prog_compiler_wl='-Wl,'
8285      # All OSF/1 code is PIC.
8286      lt_prog_compiler_static='-non_shared'
8287      ;;
8288
8289    rdos*)
8290      lt_prog_compiler_static='-non_shared'
8291      ;;
8292
8293    solaris*)
8294      lt_prog_compiler_pic='-KPIC'
8295      lt_prog_compiler_static='-Bstatic'
8296      case $cc_basename in
8297      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8298	lt_prog_compiler_wl='-Qoption ld ';;
8299      *)
8300	lt_prog_compiler_wl='-Wl,';;
8301      esac
8302      ;;
8303
8304    sunos4*)
8305      lt_prog_compiler_wl='-Qoption ld '
8306      lt_prog_compiler_pic='-PIC'
8307      lt_prog_compiler_static='-Bstatic'
8308      ;;
8309
8310    sysv4 | sysv4.2uw2* | sysv4.3*)
8311      lt_prog_compiler_wl='-Wl,'
8312      lt_prog_compiler_pic='-KPIC'
8313      lt_prog_compiler_static='-Bstatic'
8314      ;;
8315
8316    sysv4*MP*)
8317      if test -d /usr/nec ;then
8318	lt_prog_compiler_pic='-Kconform_pic'
8319	lt_prog_compiler_static='-Bstatic'
8320      fi
8321      ;;
8322
8323    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8324      lt_prog_compiler_wl='-Wl,'
8325      lt_prog_compiler_pic='-KPIC'
8326      lt_prog_compiler_static='-Bstatic'
8327      ;;
8328
8329    unicos*)
8330      lt_prog_compiler_wl='-Wl,'
8331      lt_prog_compiler_can_build_shared=no
8332      ;;
8333
8334    uts4*)
8335      lt_prog_compiler_pic='-pic'
8336      lt_prog_compiler_static='-Bstatic'
8337      ;;
8338
8339    *)
8340      lt_prog_compiler_can_build_shared=no
8341      ;;
8342    esac
8343  fi
8344
8345case $host_os in
8346  # For platforms which do not support PIC, -DPIC is meaningless:
8347  *djgpp*)
8348    lt_prog_compiler_pic=
8349    ;;
8350  *)
8351    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8352    ;;
8353esac
8354
8355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8356$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8357if ${lt_cv_prog_compiler_pic+:} false; then :
8358  $as_echo_n "(cached) " >&6
8359else
8360  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8361fi
8362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8363$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8364lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8365
8366#
8367# Check to make sure the PIC flag actually works.
8368#
8369if test -n "$lt_prog_compiler_pic"; then
8370  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8371$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8372if ${lt_cv_prog_compiler_pic_works+:} false; then :
8373  $as_echo_n "(cached) " >&6
8374else
8375  lt_cv_prog_compiler_pic_works=no
8376   ac_outfile=conftest.$ac_objext
8377   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8378   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8379   # Insert the option either (1) after the last *FLAGS variable, or
8380   # (2) before a word containing "conftest.", or (3) at the end.
8381   # Note that $ac_compile itself does not contain backslashes and begins
8382   # with a dollar sign (not a hyphen), so the echo should work correctly.
8383   # The option is referenced via a variable to avoid confusing sed.
8384   lt_compile=`echo "$ac_compile" | $SED \
8385   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8386   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8387   -e 's:$: $lt_compiler_flag:'`
8388   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8389   (eval "$lt_compile" 2>conftest.err)
8390   ac_status=$?
8391   cat conftest.err >&5
8392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393   if (exit $ac_status) && test -s "$ac_outfile"; then
8394     # The compiler can only warn and ignore the option if not recognized
8395     # So say no if there are warnings other than the usual output.
8396     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8397     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8398     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8399       lt_cv_prog_compiler_pic_works=yes
8400     fi
8401   fi
8402   $RM conftest*
8403
8404fi
8405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8406$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8407
8408if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8409    case $lt_prog_compiler_pic in
8410     "" | " "*) ;;
8411     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8412     esac
8413else
8414    lt_prog_compiler_pic=
8415     lt_prog_compiler_can_build_shared=no
8416fi
8417
8418fi
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430#
8431# Check to make sure the static flag actually works.
8432#
8433wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8435$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8436if ${lt_cv_prog_compiler_static_works+:} false; then :
8437  $as_echo_n "(cached) " >&6
8438else
8439  lt_cv_prog_compiler_static_works=no
8440   save_LDFLAGS="$LDFLAGS"
8441   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8442   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8443   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8444     # The linker can only warn and ignore the option if not recognized
8445     # So say no if there are warnings
8446     if test -s conftest.err; then
8447       # Append any errors to the config.log.
8448       cat conftest.err 1>&5
8449       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8450       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8451       if diff conftest.exp conftest.er2 >/dev/null; then
8452         lt_cv_prog_compiler_static_works=yes
8453       fi
8454     else
8455       lt_cv_prog_compiler_static_works=yes
8456     fi
8457   fi
8458   $RM -r conftest*
8459   LDFLAGS="$save_LDFLAGS"
8460
8461fi
8462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8463$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8464
8465if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8466    :
8467else
8468    lt_prog_compiler_static=
8469fi
8470
8471
8472
8473
8474
8475
8476
8477  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8478$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8479if ${lt_cv_prog_compiler_c_o+:} false; then :
8480  $as_echo_n "(cached) " >&6
8481else
8482  lt_cv_prog_compiler_c_o=no
8483   $RM -r conftest 2>/dev/null
8484   mkdir conftest
8485   cd conftest
8486   mkdir out
8487   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8488
8489   lt_compiler_flag="-o out/conftest2.$ac_objext"
8490   # Insert the option either (1) after the last *FLAGS variable, or
8491   # (2) before a word containing "conftest.", or (3) at the end.
8492   # Note that $ac_compile itself does not contain backslashes and begins
8493   # with a dollar sign (not a hyphen), so the echo should work correctly.
8494   lt_compile=`echo "$ac_compile" | $SED \
8495   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8496   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8497   -e 's:$: $lt_compiler_flag:'`
8498   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8499   (eval "$lt_compile" 2>out/conftest.err)
8500   ac_status=$?
8501   cat out/conftest.err >&5
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8504   then
8505     # The compiler can only warn and ignore the option if not recognized
8506     # So say no if there are warnings
8507     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8508     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8509     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8510       lt_cv_prog_compiler_c_o=yes
8511     fi
8512   fi
8513   chmod u+w . 2>&5
8514   $RM conftest*
8515   # SGI C++ compiler will create directory out/ii_files/ for
8516   # template instantiation
8517   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8518   $RM out/* && rmdir out
8519   cd ..
8520   $RM -r conftest
8521   $RM conftest*
8522
8523fi
8524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8525$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8526
8527
8528
8529
8530
8531
8532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8533$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8534if ${lt_cv_prog_compiler_c_o+:} false; then :
8535  $as_echo_n "(cached) " >&6
8536else
8537  lt_cv_prog_compiler_c_o=no
8538   $RM -r conftest 2>/dev/null
8539   mkdir conftest
8540   cd conftest
8541   mkdir out
8542   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8543
8544   lt_compiler_flag="-o out/conftest2.$ac_objext"
8545   # Insert the option either (1) after the last *FLAGS variable, or
8546   # (2) before a word containing "conftest.", or (3) at the end.
8547   # Note that $ac_compile itself does not contain backslashes and begins
8548   # with a dollar sign (not a hyphen), so the echo should work correctly.
8549   lt_compile=`echo "$ac_compile" | $SED \
8550   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8551   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8552   -e 's:$: $lt_compiler_flag:'`
8553   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8554   (eval "$lt_compile" 2>out/conftest.err)
8555   ac_status=$?
8556   cat out/conftest.err >&5
8557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8559   then
8560     # The compiler can only warn and ignore the option if not recognized
8561     # So say no if there are warnings
8562     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8563     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8564     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8565       lt_cv_prog_compiler_c_o=yes
8566     fi
8567   fi
8568   chmod u+w . 2>&5
8569   $RM conftest*
8570   # SGI C++ compiler will create directory out/ii_files/ for
8571   # template instantiation
8572   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8573   $RM out/* && rmdir out
8574   cd ..
8575   $RM -r conftest
8576   $RM conftest*
8577
8578fi
8579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8580$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8581
8582
8583
8584
8585hard_links="nottested"
8586if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8587  # do not overwrite the value of need_locks provided by the user
8588  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8589$as_echo_n "checking if we can lock with hard links... " >&6; }
8590  hard_links=yes
8591  $RM conftest*
8592  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8593  touch conftest.a
8594  ln conftest.a conftest.b 2>&5 || hard_links=no
8595  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8597$as_echo "$hard_links" >&6; }
8598  if test "$hard_links" = no; then
8599    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8600$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8601    need_locks=warn
8602  fi
8603else
8604  need_locks=no
8605fi
8606
8607
8608
8609
8610
8611
8612  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8613$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8614
8615  runpath_var=
8616  allow_undefined_flag=
8617  always_export_symbols=no
8618  archive_cmds=
8619  archive_expsym_cmds=
8620  compiler_needs_object=no
8621  enable_shared_with_static_runtimes=no
8622  export_dynamic_flag_spec=
8623  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8624  hardcode_automatic=no
8625  hardcode_direct=no
8626  hardcode_direct_absolute=no
8627  hardcode_libdir_flag_spec=
8628  hardcode_libdir_separator=
8629  hardcode_minus_L=no
8630  hardcode_shlibpath_var=unsupported
8631  inherit_rpath=no
8632  link_all_deplibs=unknown
8633  module_cmds=
8634  module_expsym_cmds=
8635  old_archive_from_new_cmds=
8636  old_archive_from_expsyms_cmds=
8637  thread_safe_flag_spec=
8638  whole_archive_flag_spec=
8639  # include_expsyms should be a list of space-separated symbols to be *always*
8640  # included in the symbol list
8641  include_expsyms=
8642  # exclude_expsyms can be an extended regexp of symbols to exclude
8643  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8644  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8645  # as well as any symbol that contains `d'.
8646  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8647  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8648  # platforms (ab)use it in PIC code, but their linkers get confused if
8649  # the symbol is explicitly referenced.  Since portable code cannot
8650  # rely on this symbol name, it's probably fine to never include it in
8651  # preloaded symbol tables.
8652  # Exclude shared library initialization/finalization symbols.
8653  extract_expsyms_cmds=
8654
8655  case $host_os in
8656  cygwin* | mingw* | pw32* | cegcc*)
8657    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8658    # When not using gcc, we currently assume that we are using
8659    # Microsoft Visual C++.
8660    if test "$GCC" != yes; then
8661      with_gnu_ld=no
8662    fi
8663    ;;
8664  interix*)
8665    # we just hope/assume this is gcc and not c89 (= MSVC++)
8666    with_gnu_ld=yes
8667    ;;
8668  openbsd*)
8669    with_gnu_ld=no
8670    ;;
8671  linux* | k*bsd*-gnu | gnu*)
8672    link_all_deplibs=no
8673    ;;
8674  esac
8675
8676  ld_shlibs=yes
8677
8678  # On some targets, GNU ld is compatible enough with the native linker
8679  # that we're better off using the native interface for both.
8680  lt_use_gnu_ld_interface=no
8681  if test "$with_gnu_ld" = yes; then
8682    case $host_os in
8683      aix*)
8684	# The AIX port of GNU ld has always aspired to compatibility
8685	# with the native linker.  However, as the warning in the GNU ld
8686	# block says, versions before 2.19.5* couldn't really create working
8687	# shared libraries, regardless of the interface used.
8688	case `$LD -v 2>&1` in
8689	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8690	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8691	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8692	  *)
8693	    lt_use_gnu_ld_interface=yes
8694	    ;;
8695	esac
8696	;;
8697      *)
8698	lt_use_gnu_ld_interface=yes
8699	;;
8700    esac
8701  fi
8702
8703  if test "$lt_use_gnu_ld_interface" = yes; then
8704    # If archive_cmds runs LD, not CC, wlarc should be empty
8705    wlarc='${wl}'
8706
8707    # Set some defaults for GNU ld with shared library support. These
8708    # are reset later if shared libraries are not supported. Putting them
8709    # here allows them to be overridden if necessary.
8710    runpath_var=LD_RUN_PATH
8711    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8712    export_dynamic_flag_spec='${wl}--export-dynamic'
8713    # ancient GNU ld didn't support --whole-archive et. al.
8714    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8715      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8716    else
8717      whole_archive_flag_spec=
8718    fi
8719    supports_anon_versioning=no
8720    case `$LD -v 2>&1` in
8721      *GNU\ gold*) supports_anon_versioning=yes ;;
8722      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8723      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8724      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8725      *\ 2.11.*) ;; # other 2.11 versions
8726      *) supports_anon_versioning=yes ;;
8727    esac
8728
8729    # See if GNU ld supports shared libraries.
8730    case $host_os in
8731    aix[3-9]*)
8732      # On AIX/PPC, the GNU linker is very broken
8733      if test "$host_cpu" != ia64; then
8734	ld_shlibs=no
8735	cat <<_LT_EOF 1>&2
8736
8737*** Warning: the GNU linker, at least up to release 2.19, is reported
8738*** to be unable to reliably create shared libraries on AIX.
8739*** Therefore, libtool is disabling shared libraries support.  If you
8740*** really care for shared libraries, you may want to install binutils
8741*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8742*** You will then need to restart the configuration process.
8743
8744_LT_EOF
8745      fi
8746      ;;
8747
8748    amigaos*)
8749      case $host_cpu in
8750      powerpc)
8751            # see comment about AmigaOS4 .so support
8752            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8753            archive_expsym_cmds=''
8754        ;;
8755      m68k)
8756            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)'
8757            hardcode_libdir_flag_spec='-L$libdir'
8758            hardcode_minus_L=yes
8759        ;;
8760      esac
8761      ;;
8762
8763    beos*)
8764      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8765	allow_undefined_flag=unsupported
8766	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8767	# support --undefined.  This deserves some investigation.  FIXME
8768	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8769      else
8770	ld_shlibs=no
8771      fi
8772      ;;
8773
8774    cygwin* | mingw* | pw32* | cegcc*)
8775      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8776      # as there is no search path for DLLs.
8777      hardcode_libdir_flag_spec='-L$libdir'
8778      export_dynamic_flag_spec='${wl}--export-all-symbols'
8779      allow_undefined_flag=unsupported
8780      always_export_symbols=no
8781      enable_shared_with_static_runtimes=yes
8782      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'
8783      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8784
8785      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8786        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8787	# If the export-symbols file already is a .def file (1st line
8788	# is EXPORTS), use it as is; otherwise, prepend...
8789	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8790	  cp $export_symbols $output_objdir/$soname.def;
8791	else
8792	  echo EXPORTS > $output_objdir/$soname.def;
8793	  cat $export_symbols >> $output_objdir/$soname.def;
8794	fi~
8795	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8796      else
8797	ld_shlibs=no
8798      fi
8799      ;;
8800
8801    haiku*)
8802      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8803      link_all_deplibs=yes
8804      ;;
8805
8806    interix[3-9]*)
8807      hardcode_direct=no
8808      hardcode_shlibpath_var=no
8809      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8810      export_dynamic_flag_spec='${wl}-E'
8811      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8812      # Instead, shared libraries are loaded at an image base (0x10000000 by
8813      # default) and relocated if they conflict, which is a slow very memory
8814      # consuming and fragmenting process.  To avoid this, we pick a random,
8815      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8816      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8817      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8818      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'
8819      ;;
8820
8821    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8822      tmp_diet=no
8823      if test "$host_os" = linux-dietlibc; then
8824	case $cc_basename in
8825	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8826	esac
8827      fi
8828      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8829	 && test "$tmp_diet" = no
8830      then
8831	tmp_addflag=' $pic_flag'
8832	tmp_sharedflag='-shared'
8833	case $cc_basename,$host_cpu in
8834        pgcc*)				# Portland Group C compiler
8835	  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'
8836	  tmp_addflag=' $pic_flag'
8837	  ;;
8838	pgf77* | pgf90* | pgf95* | pgfortran*)
8839					# Portland Group f77 and f90 compilers
8840	  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'
8841	  tmp_addflag=' $pic_flag -Mnomain' ;;
8842	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8843	  tmp_addflag=' -i_dynamic' ;;
8844	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8845	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8846	ifc* | ifort*)			# Intel Fortran compiler
8847	  tmp_addflag=' -nofor_main' ;;
8848	lf95*)				# Lahey Fortran 8.1
8849	  whole_archive_flag_spec=
8850	  tmp_sharedflag='--shared' ;;
8851	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8852	  tmp_sharedflag='-qmkshrobj'
8853	  tmp_addflag= ;;
8854	nvcc*)	# Cuda Compiler Driver 2.2
8855	  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'
8856	  compiler_needs_object=yes
8857	  ;;
8858	esac
8859	case `$CC -V 2>&1 | sed 5q` in
8860	*Sun\ C*)			# Sun C 5.9
8861	  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'
8862	  compiler_needs_object=yes
8863	  tmp_sharedflag='-G' ;;
8864	*Sun\ F*)			# Sun Fortran 8.3
8865	  tmp_sharedflag='-G' ;;
8866	esac
8867	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8868
8869        if test "x$supports_anon_versioning" = xyes; then
8870          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8871	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8872	    echo "local: *; };" >> $output_objdir/$libname.ver~
8873	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8874        fi
8875
8876	case $cc_basename in
8877	xlf* | bgf* | bgxlf* | mpixlf*)
8878	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8879	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8880	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8881	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8882	  if test "x$supports_anon_versioning" = xyes; then
8883	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8884	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8885	      echo "local: *; };" >> $output_objdir/$libname.ver~
8886	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8887	  fi
8888	  ;;
8889	esac
8890      else
8891        ld_shlibs=no
8892      fi
8893      ;;
8894
8895    netbsd* | netbsdelf*-gnu)
8896      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8897	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8898	wlarc=
8899      else
8900	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8901	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8902      fi
8903      ;;
8904
8905    solaris*)
8906      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8907	ld_shlibs=no
8908	cat <<_LT_EOF 1>&2
8909
8910*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8911*** create shared libraries on Solaris systems.  Therefore, libtool
8912*** is disabling shared libraries support.  We urge you to upgrade GNU
8913*** binutils to release 2.9.1 or newer.  Another option is to modify
8914*** your PATH or compiler configuration so that the native linker is
8915*** used, and then restart.
8916
8917_LT_EOF
8918      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8919	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8920	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8921      else
8922	ld_shlibs=no
8923      fi
8924      ;;
8925
8926    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8927      case `$LD -v 2>&1` in
8928        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8929	ld_shlibs=no
8930	cat <<_LT_EOF 1>&2
8931
8932*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8933*** reliably create shared libraries on SCO systems.  Therefore, libtool
8934*** is disabling shared libraries support.  We urge you to upgrade GNU
8935*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8936*** your PATH or compiler configuration so that the native linker is
8937*** used, and then restart.
8938
8939_LT_EOF
8940	;;
8941	*)
8942	  # For security reasons, it is highly recommended that you always
8943	  # use absolute paths for naming shared libraries, and exclude the
8944	  # DT_RUNPATH tag from executables and libraries.  But doing so
8945	  # requires that you compile everything twice, which is a pain.
8946	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8947	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8948	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8949	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8950	  else
8951	    ld_shlibs=no
8952	  fi
8953	;;
8954      esac
8955      ;;
8956
8957    sunos4*)
8958      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8959      wlarc=
8960      hardcode_direct=yes
8961      hardcode_shlibpath_var=no
8962      ;;
8963
8964    *)
8965      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8966	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8967	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8968      else
8969	ld_shlibs=no
8970      fi
8971      ;;
8972    esac
8973
8974    if test "$ld_shlibs" = no; then
8975      runpath_var=
8976      hardcode_libdir_flag_spec=
8977      export_dynamic_flag_spec=
8978      whole_archive_flag_spec=
8979    fi
8980  else
8981    # PORTME fill in a description of your system's linker (not GNU ld)
8982    case $host_os in
8983    aix3*)
8984      allow_undefined_flag=unsupported
8985      always_export_symbols=yes
8986      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'
8987      # Note: this linker hardcodes the directories in LIBPATH if there
8988      # are no directories specified by -L.
8989      hardcode_minus_L=yes
8990      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8991	# Neither direct hardcoding nor static linking is supported with a
8992	# broken collect2.
8993	hardcode_direct=unsupported
8994      fi
8995      ;;
8996
8997    aix[4-9]*)
8998      if test "$host_cpu" = ia64; then
8999	# On IA64, the linker does run time linking by default, so we don't
9000	# have to do anything special.
9001	aix_use_runtimelinking=no
9002	exp_sym_flag='-Bexport'
9003	no_entry_flag=""
9004      else
9005	# If we're using GNU nm, then we don't want the "-C" option.
9006	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9007	# Also, AIX nm treats weak defined symbols like other global
9008	# defined symbols, whereas GNU nm marks them as "W".
9009	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9010	  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'
9011	else
9012	  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'
9013	fi
9014	aix_use_runtimelinking=no
9015
9016	# Test if we are trying to use run time linking or normal
9017	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9018	# need to do runtime linking.
9019	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9020	  for ld_flag in $LDFLAGS; do
9021	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9022	    aix_use_runtimelinking=yes
9023	    break
9024	  fi
9025	  done
9026	  ;;
9027	esac
9028
9029	exp_sym_flag='-bexport'
9030	no_entry_flag='-bnoentry'
9031      fi
9032
9033      # When large executables or shared objects are built, AIX ld can
9034      # have problems creating the table of contents.  If linking a library
9035      # or program results in "error TOC overflow" add -mminimal-toc to
9036      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9037      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9038
9039      archive_cmds=''
9040      hardcode_direct=yes
9041      hardcode_direct_absolute=yes
9042      hardcode_libdir_separator=':'
9043      link_all_deplibs=yes
9044      file_list_spec='${wl}-f,'
9045
9046      if test "$GCC" = yes; then
9047	case $host_os in aix4.[012]|aix4.[012].*)
9048	# We only want to do this on AIX 4.2 and lower, the check
9049	# below for broken collect2 doesn't work under 4.3+
9050	  collect2name=`${CC} -print-prog-name=collect2`
9051	  if test -f "$collect2name" &&
9052	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9053	  then
9054	  # We have reworked collect2
9055	  :
9056	  else
9057	  # We have old collect2
9058	  hardcode_direct=unsupported
9059	  # It fails to find uninstalled libraries when the uninstalled
9060	  # path is not listed in the libpath.  Setting hardcode_minus_L
9061	  # to unsupported forces relinking
9062	  hardcode_minus_L=yes
9063	  hardcode_libdir_flag_spec='-L$libdir'
9064	  hardcode_libdir_separator=
9065	  fi
9066	  ;;
9067	esac
9068	shared_flag='-shared'
9069	if test "$aix_use_runtimelinking" = yes; then
9070	  shared_flag="$shared_flag "'${wl}-G'
9071	fi
9072	link_all_deplibs=no
9073      else
9074	# not using gcc
9075	if test "$host_cpu" = ia64; then
9076	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9077	# chokes on -Wl,-G. The following line is correct:
9078	  shared_flag='-G'
9079	else
9080	  if test "$aix_use_runtimelinking" = yes; then
9081	    shared_flag='${wl}-G'
9082	  else
9083	    shared_flag='${wl}-bM:SRE'
9084	  fi
9085	fi
9086      fi
9087
9088      export_dynamic_flag_spec='${wl}-bexpall'
9089      # It seems that -bexpall does not export symbols beginning with
9090      # underscore (_), so it is better to generate a list of symbols to export.
9091      always_export_symbols=yes
9092      if test "$aix_use_runtimelinking" = yes; then
9093	# Warning - without using the other runtime loading flags (-brtl),
9094	# -berok will link without error, but may produce a broken library.
9095	allow_undefined_flag='-berok'
9096        # Determine the default libpath from the value encoded in an
9097        # empty executable.
9098        if test "${lt_cv_aix_libpath+set}" = set; then
9099  aix_libpath=$lt_cv_aix_libpath
9100else
9101  if ${lt_cv_aix_libpath_+:} false; then :
9102  $as_echo_n "(cached) " >&6
9103else
9104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105/* end confdefs.h.  */
9106
9107int
9108main ()
9109{
9110
9111  ;
9112  return 0;
9113}
9114_ACEOF
9115if ac_fn_c_try_link "$LINENO"; then :
9116
9117  lt_aix_libpath_sed='
9118      /Import File Strings/,/^$/ {
9119	  /^0/ {
9120	      s/^0  *\([^ ]*\) *$/\1/
9121	      p
9122	  }
9123      }'
9124  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9125  # Check for a 64-bit object if we didn't find anything.
9126  if test -z "$lt_cv_aix_libpath_"; then
9127    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9128  fi
9129fi
9130rm -f core conftest.err conftest.$ac_objext \
9131    conftest$ac_exeext conftest.$ac_ext
9132  if test -z "$lt_cv_aix_libpath_"; then
9133    lt_cv_aix_libpath_="/usr/lib:/lib"
9134  fi
9135
9136fi
9137
9138  aix_libpath=$lt_cv_aix_libpath_
9139fi
9140
9141        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9142        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"
9143      else
9144	if test "$host_cpu" = ia64; then
9145	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9146	  allow_undefined_flag="-z nodefs"
9147	  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"
9148	else
9149	 # Determine the default libpath from the value encoded in an
9150	 # empty executable.
9151	 if test "${lt_cv_aix_libpath+set}" = set; then
9152  aix_libpath=$lt_cv_aix_libpath
9153else
9154  if ${lt_cv_aix_libpath_+:} false; then :
9155  $as_echo_n "(cached) " >&6
9156else
9157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9158/* end confdefs.h.  */
9159
9160int
9161main ()
9162{
9163
9164  ;
9165  return 0;
9166}
9167_ACEOF
9168if ac_fn_c_try_link "$LINENO"; then :
9169
9170  lt_aix_libpath_sed='
9171      /Import File Strings/,/^$/ {
9172	  /^0/ {
9173	      s/^0  *\([^ ]*\) *$/\1/
9174	      p
9175	  }
9176      }'
9177  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9178  # Check for a 64-bit object if we didn't find anything.
9179  if test -z "$lt_cv_aix_libpath_"; then
9180    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9181  fi
9182fi
9183rm -f core conftest.err conftest.$ac_objext \
9184    conftest$ac_exeext conftest.$ac_ext
9185  if test -z "$lt_cv_aix_libpath_"; then
9186    lt_cv_aix_libpath_="/usr/lib:/lib"
9187  fi
9188
9189fi
9190
9191  aix_libpath=$lt_cv_aix_libpath_
9192fi
9193
9194	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9195	  # Warning - without using the other run time loading flags,
9196	  # -berok will link without error, but may produce a broken library.
9197	  no_undefined_flag=' ${wl}-bernotok'
9198	  allow_undefined_flag=' ${wl}-berok'
9199	  if test "$with_gnu_ld" = yes; then
9200	    # We only use this code for GNU lds that support --whole-archive.
9201	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9202	  else
9203	    # Exported symbols can be pulled into shared objects from archives
9204	    whole_archive_flag_spec='$convenience'
9205	  fi
9206	  archive_cmds_need_lc=yes
9207	  # This is similar to how AIX traditionally builds its shared libraries.
9208	  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'
9209	fi
9210      fi
9211      ;;
9212
9213    amigaos*)
9214      case $host_cpu in
9215      powerpc)
9216            # see comment about AmigaOS4 .so support
9217            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9218            archive_expsym_cmds=''
9219        ;;
9220      m68k)
9221            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)'
9222            hardcode_libdir_flag_spec='-L$libdir'
9223            hardcode_minus_L=yes
9224        ;;
9225      esac
9226      ;;
9227
9228    bsdi[45]*)
9229      export_dynamic_flag_spec=-rdynamic
9230      ;;
9231
9232    cygwin* | mingw* | pw32* | cegcc*)
9233      # When not using gcc, we currently assume that we are using
9234      # Microsoft Visual C++.
9235      # hardcode_libdir_flag_spec is actually meaningless, as there is
9236      # no search path for DLLs.
9237      case $cc_basename in
9238      cl*)
9239	# Native MSVC
9240	hardcode_libdir_flag_spec=' '
9241	allow_undefined_flag=unsupported
9242	always_export_symbols=yes
9243	file_list_spec='@'
9244	# Tell ltmain to make .lib files, not .a files.
9245	libext=lib
9246	# Tell ltmain to make .dll files, not .so files.
9247	shrext_cmds=".dll"
9248	# FIXME: Setting linknames here is a bad hack.
9249	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9250	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9251	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9252	  else
9253	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9254	  fi~
9255	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9256	  linknames='
9257	# The linker will not automatically build a static lib if we build a DLL.
9258	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9259	enable_shared_with_static_runtimes=yes
9260	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9261	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9262	# Don't use ranlib
9263	old_postinstall_cmds='chmod 644 $oldlib'
9264	postlink_cmds='lt_outputfile="@OUTPUT@"~
9265	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9266	  case $lt_outputfile in
9267	    *.exe|*.EXE) ;;
9268	    *)
9269	      lt_outputfile="$lt_outputfile.exe"
9270	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9271	      ;;
9272	  esac~
9273	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9274	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9275	    $RM "$lt_outputfile.manifest";
9276	  fi'
9277	;;
9278      *)
9279	# Assume MSVC wrapper
9280	hardcode_libdir_flag_spec=' '
9281	allow_undefined_flag=unsupported
9282	# Tell ltmain to make .lib files, not .a files.
9283	libext=lib
9284	# Tell ltmain to make .dll files, not .so files.
9285	shrext_cmds=".dll"
9286	# FIXME: Setting linknames here is a bad hack.
9287	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9288	# The linker will automatically build a .lib file if we build a DLL.
9289	old_archive_from_new_cmds='true'
9290	# FIXME: Should let the user specify the lib program.
9291	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9292	enable_shared_with_static_runtimes=yes
9293	;;
9294      esac
9295      ;;
9296
9297    darwin* | rhapsody*)
9298
9299
9300  archive_cmds_need_lc=no
9301  hardcode_direct=no
9302  hardcode_automatic=yes
9303  hardcode_shlibpath_var=unsupported
9304  if test "$lt_cv_ld_force_load" = "yes"; then
9305    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\"`'
9306
9307  else
9308    whole_archive_flag_spec=''
9309  fi
9310  link_all_deplibs=yes
9311  allow_undefined_flag="$_lt_dar_allow_undefined"
9312  case $cc_basename in
9313     ifort*) _lt_dar_can_shared=yes ;;
9314     *) _lt_dar_can_shared=$GCC ;;
9315  esac
9316  if test "$_lt_dar_can_shared" = "yes"; then
9317    output_verbose_link_cmd=func_echo_all
9318    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9319    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9320    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}"
9321    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}"
9322
9323  else
9324  ld_shlibs=no
9325  fi
9326
9327      ;;
9328
9329    dgux*)
9330      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9331      hardcode_libdir_flag_spec='-L$libdir'
9332      hardcode_shlibpath_var=no
9333      ;;
9334
9335    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9336    # support.  Future versions do this automatically, but an explicit c++rt0.o
9337    # does not break anything, and helps significantly (at the cost of a little
9338    # extra space).
9339    freebsd2.2*)
9340      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9341      hardcode_libdir_flag_spec='-R$libdir'
9342      hardcode_direct=yes
9343      hardcode_shlibpath_var=no
9344      ;;
9345
9346    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9347    freebsd2.*)
9348      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9349      hardcode_direct=yes
9350      hardcode_minus_L=yes
9351      hardcode_shlibpath_var=no
9352      ;;
9353
9354    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9355    freebsd* | dragonfly*)
9356      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9357      hardcode_libdir_flag_spec='-R$libdir'
9358      hardcode_direct=yes
9359      hardcode_shlibpath_var=no
9360      ;;
9361
9362    hpux9*)
9363      if test "$GCC" = yes; then
9364	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'
9365      else
9366	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'
9367      fi
9368      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9369      hardcode_libdir_separator=:
9370      hardcode_direct=yes
9371
9372      # hardcode_minus_L: Not really in the search PATH,
9373      # but as the default location of the library.
9374      hardcode_minus_L=yes
9375      export_dynamic_flag_spec='${wl}-E'
9376      ;;
9377
9378    hpux10*)
9379      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9380	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9381      else
9382	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9383      fi
9384      if test "$with_gnu_ld" = no; then
9385	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9386	hardcode_libdir_separator=:
9387	hardcode_direct=yes
9388	hardcode_direct_absolute=yes
9389	export_dynamic_flag_spec='${wl}-E'
9390	# hardcode_minus_L: Not really in the search PATH,
9391	# but as the default location of the library.
9392	hardcode_minus_L=yes
9393      fi
9394      ;;
9395
9396    hpux11*)
9397      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9398	case $host_cpu in
9399	hppa*64*)
9400	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9401	  ;;
9402	ia64*)
9403	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9404	  ;;
9405	*)
9406	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9407	  ;;
9408	esac
9409      else
9410	case $host_cpu in
9411	hppa*64*)
9412	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9413	  ;;
9414	ia64*)
9415	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9416	  ;;
9417	*)
9418
9419	  # Older versions of the 11.00 compiler do not understand -b yet
9420	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9421	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9422$as_echo_n "checking if $CC understands -b... " >&6; }
9423if ${lt_cv_prog_compiler__b+:} false; then :
9424  $as_echo_n "(cached) " >&6
9425else
9426  lt_cv_prog_compiler__b=no
9427   save_LDFLAGS="$LDFLAGS"
9428   LDFLAGS="$LDFLAGS -b"
9429   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9430   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9431     # The linker can only warn and ignore the option if not recognized
9432     # So say no if there are warnings
9433     if test -s conftest.err; then
9434       # Append any errors to the config.log.
9435       cat conftest.err 1>&5
9436       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9437       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9438       if diff conftest.exp conftest.er2 >/dev/null; then
9439         lt_cv_prog_compiler__b=yes
9440       fi
9441     else
9442       lt_cv_prog_compiler__b=yes
9443     fi
9444   fi
9445   $RM -r conftest*
9446   LDFLAGS="$save_LDFLAGS"
9447
9448fi
9449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9450$as_echo "$lt_cv_prog_compiler__b" >&6; }
9451
9452if test x"$lt_cv_prog_compiler__b" = xyes; then
9453    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9454else
9455    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9456fi
9457
9458	  ;;
9459	esac
9460      fi
9461      if test "$with_gnu_ld" = no; then
9462	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9463	hardcode_libdir_separator=:
9464
9465	case $host_cpu in
9466	hppa*64*|ia64*)
9467	  hardcode_direct=no
9468	  hardcode_shlibpath_var=no
9469	  ;;
9470	*)
9471	  hardcode_direct=yes
9472	  hardcode_direct_absolute=yes
9473	  export_dynamic_flag_spec='${wl}-E'
9474
9475	  # hardcode_minus_L: Not really in the search PATH,
9476	  # but as the default location of the library.
9477	  hardcode_minus_L=yes
9478	  ;;
9479	esac
9480      fi
9481      ;;
9482
9483    irix5* | irix6* | nonstopux*)
9484      if test "$GCC" = yes; then
9485	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'
9486	# Try to use the -exported_symbol ld option, if it does not
9487	# work, assume that -exports_file does not work either and
9488	# implicitly export all symbols.
9489	# This should be the same for all languages, so no per-tag cache variable.
9490	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9491$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9492if ${lt_cv_irix_exported_symbol+:} false; then :
9493  $as_echo_n "(cached) " >&6
9494else
9495  save_LDFLAGS="$LDFLAGS"
9496	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9497	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498/* end confdefs.h.  */
9499int foo (void) { return 0; }
9500_ACEOF
9501if ac_fn_c_try_link "$LINENO"; then :
9502  lt_cv_irix_exported_symbol=yes
9503else
9504  lt_cv_irix_exported_symbol=no
9505fi
9506rm -f core conftest.err conftest.$ac_objext \
9507    conftest$ac_exeext conftest.$ac_ext
9508           LDFLAGS="$save_LDFLAGS"
9509fi
9510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9511$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9512	if test "$lt_cv_irix_exported_symbol" = yes; then
9513          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'
9514	fi
9515      else
9516	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'
9517	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'
9518      fi
9519      archive_cmds_need_lc='no'
9520      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9521      hardcode_libdir_separator=:
9522      inherit_rpath=yes
9523      link_all_deplibs=yes
9524      ;;
9525
9526    netbsd* | netbsdelf*-gnu)
9527      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9528	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9529      else
9530	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9531      fi
9532      hardcode_libdir_flag_spec='-R$libdir'
9533      hardcode_direct=yes
9534      hardcode_shlibpath_var=no
9535      ;;
9536
9537    newsos6)
9538      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9539      hardcode_direct=yes
9540      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9541      hardcode_libdir_separator=:
9542      hardcode_shlibpath_var=no
9543      ;;
9544
9545    *nto* | *qnx*)
9546      ;;
9547
9548    openbsd*)
9549      if test -f /usr/libexec/ld.so; then
9550	hardcode_direct=yes
9551	hardcode_shlibpath_var=no
9552	hardcode_direct_absolute=yes
9553	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9554	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9555	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9556	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9557	  export_dynamic_flag_spec='${wl}-E'
9558	else
9559	  case $host_os in
9560	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9561	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9562	     hardcode_libdir_flag_spec='-R$libdir'
9563	     ;;
9564	   *)
9565	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9566	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9567	     ;;
9568	  esac
9569	fi
9570      else
9571	ld_shlibs=no
9572      fi
9573      ;;
9574
9575    os2*)
9576      hardcode_libdir_flag_spec='-L$libdir'
9577      hardcode_minus_L=yes
9578      allow_undefined_flag=unsupported
9579      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'
9580      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9581      ;;
9582
9583    osf3*)
9584      if test "$GCC" = yes; then
9585	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9586	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'
9587      else
9588	allow_undefined_flag=' -expect_unresolved \*'
9589	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'
9590      fi
9591      archive_cmds_need_lc='no'
9592      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9593      hardcode_libdir_separator=:
9594      ;;
9595
9596    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9597      if test "$GCC" = yes; then
9598	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9599	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'
9600	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9601      else
9602	allow_undefined_flag=' -expect_unresolved \*'
9603	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'
9604	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~
9605	$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'
9606
9607	# Both c and cxx compiler support -rpath directly
9608	hardcode_libdir_flag_spec='-rpath $libdir'
9609      fi
9610      archive_cmds_need_lc='no'
9611      hardcode_libdir_separator=:
9612      ;;
9613
9614    solaris*)
9615      no_undefined_flag=' -z defs'
9616      if test "$GCC" = yes; then
9617	wlarc='${wl}'
9618	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9619	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9620	  $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'
9621      else
9622	case `$CC -V 2>&1` in
9623	*"Compilers 5.0"*)
9624	  wlarc=''
9625	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9626	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9627	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9628	  ;;
9629	*)
9630	  wlarc='${wl}'
9631	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9632	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9633	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9634	  ;;
9635	esac
9636      fi
9637      hardcode_libdir_flag_spec='-R$libdir'
9638      hardcode_shlibpath_var=no
9639      case $host_os in
9640      solaris2.[0-5] | solaris2.[0-5].*) ;;
9641      *)
9642	# The compiler driver will combine and reorder linker options,
9643	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9644	# but is careful enough not to reorder.
9645	# Supported since Solaris 2.6 (maybe 2.5.1?)
9646	if test "$GCC" = yes; then
9647	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9648	else
9649	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9650	fi
9651	;;
9652      esac
9653      link_all_deplibs=yes
9654      ;;
9655
9656    sunos4*)
9657      if test "x$host_vendor" = xsequent; then
9658	# Use $CC to link under sequent, because it throws in some extra .o
9659	# files that make .init and .fini sections work.
9660	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9661      else
9662	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9663      fi
9664      hardcode_libdir_flag_spec='-L$libdir'
9665      hardcode_direct=yes
9666      hardcode_minus_L=yes
9667      hardcode_shlibpath_var=no
9668      ;;
9669
9670    sysv4)
9671      case $host_vendor in
9672	sni)
9673	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9674	  hardcode_direct=yes # is this really true???
9675	;;
9676	siemens)
9677	  ## LD is ld it makes a PLAMLIB
9678	  ## CC just makes a GrossModule.
9679	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9680	  reload_cmds='$CC -r -o $output$reload_objs'
9681	  hardcode_direct=no
9682        ;;
9683	motorola)
9684	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9685	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9686	;;
9687      esac
9688      runpath_var='LD_RUN_PATH'
9689      hardcode_shlibpath_var=no
9690      ;;
9691
9692    sysv4.3*)
9693      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9694      hardcode_shlibpath_var=no
9695      export_dynamic_flag_spec='-Bexport'
9696      ;;
9697
9698    sysv4*MP*)
9699      if test -d /usr/nec; then
9700	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9701	hardcode_shlibpath_var=no
9702	runpath_var=LD_RUN_PATH
9703	hardcode_runpath_var=yes
9704	ld_shlibs=yes
9705      fi
9706      ;;
9707
9708    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9709      no_undefined_flag='${wl}-z,text'
9710      archive_cmds_need_lc=no
9711      hardcode_shlibpath_var=no
9712      runpath_var='LD_RUN_PATH'
9713
9714      if test "$GCC" = yes; then
9715	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9716	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9717      else
9718	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9719	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9720      fi
9721      ;;
9722
9723    sysv5* | sco3.2v5* | sco5v6*)
9724      # Note: We can NOT use -z defs as we might desire, because we do not
9725      # link with -lc, and that would cause any symbols used from libc to
9726      # always be unresolved, which means just about no library would
9727      # ever link correctly.  If we're not using GNU ld we use -z text
9728      # though, which does catch some bad symbols but isn't as heavy-handed
9729      # as -z defs.
9730      no_undefined_flag='${wl}-z,text'
9731      allow_undefined_flag='${wl}-z,nodefs'
9732      archive_cmds_need_lc=no
9733      hardcode_shlibpath_var=no
9734      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9735      hardcode_libdir_separator=':'
9736      link_all_deplibs=yes
9737      export_dynamic_flag_spec='${wl}-Bexport'
9738      runpath_var='LD_RUN_PATH'
9739
9740      if test "$GCC" = yes; then
9741	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9742	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9743      else
9744	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9745	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9746      fi
9747      ;;
9748
9749    uts4*)
9750      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9751      hardcode_libdir_flag_spec='-L$libdir'
9752      hardcode_shlibpath_var=no
9753      ;;
9754
9755    *)
9756      ld_shlibs=no
9757      ;;
9758    esac
9759
9760    if test x$host_vendor = xsni; then
9761      case $host in
9762      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9763	export_dynamic_flag_spec='${wl}-Blargedynsym'
9764	;;
9765      esac
9766    fi
9767  fi
9768
9769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9770$as_echo "$ld_shlibs" >&6; }
9771test "$ld_shlibs" = no && can_build_shared=no
9772
9773with_gnu_ld=$with_gnu_ld
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789#
9790# Do we need to explicitly link libc?
9791#
9792case "x$archive_cmds_need_lc" in
9793x|xyes)
9794  # Assume -lc should be added
9795  archive_cmds_need_lc=yes
9796
9797  if test "$enable_shared" = yes && test "$GCC" = yes; then
9798    case $archive_cmds in
9799    *'~'*)
9800      # FIXME: we may have to deal with multi-command sequences.
9801      ;;
9802    '$CC '*)
9803      # Test whether the compiler implicitly links with -lc since on some
9804      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9805      # to ld, don't add -lc before -lgcc.
9806      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9807$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9808if ${lt_cv_archive_cmds_need_lc+:} false; then :
9809  $as_echo_n "(cached) " >&6
9810else
9811  $RM conftest*
9812	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9813
9814	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9815  (eval $ac_compile) 2>&5
9816  ac_status=$?
9817  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9818  test $ac_status = 0; } 2>conftest.err; then
9819	  soname=conftest
9820	  lib=conftest
9821	  libobjs=conftest.$ac_objext
9822	  deplibs=
9823	  wl=$lt_prog_compiler_wl
9824	  pic_flag=$lt_prog_compiler_pic
9825	  compiler_flags=-v
9826	  linker_flags=-v
9827	  verstring=
9828	  output_objdir=.
9829	  libname=conftest
9830	  lt_save_allow_undefined_flag=$allow_undefined_flag
9831	  allow_undefined_flag=
9832	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9833  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9834  ac_status=$?
9835  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9836  test $ac_status = 0; }
9837	  then
9838	    lt_cv_archive_cmds_need_lc=no
9839	  else
9840	    lt_cv_archive_cmds_need_lc=yes
9841	  fi
9842	  allow_undefined_flag=$lt_save_allow_undefined_flag
9843	else
9844	  cat conftest.err 1>&5
9845	fi
9846	$RM conftest*
9847
9848fi
9849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9850$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9851      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9852      ;;
9853    esac
9854  fi
9855  ;;
9856esac
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10010$as_echo_n "checking dynamic linker characteristics... " >&6; }
10011
10012if test "$GCC" = yes; then
10013  case $host_os in
10014    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10015    *) lt_awk_arg="/^libraries:/" ;;
10016  esac
10017  case $host_os in
10018    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10019    *) lt_sed_strip_eq="s,=/,/,g" ;;
10020  esac
10021  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10022  case $lt_search_path_spec in
10023  *\;*)
10024    # if the path contains ";" then we assume it to be the separator
10025    # otherwise default to the standard path separator (i.e. ":") - it is
10026    # assumed that no part of a normal pathname contains ";" but that should
10027    # okay in the real world where ";" in dirpaths is itself problematic.
10028    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10029    ;;
10030  *)
10031    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10032    ;;
10033  esac
10034  # Ok, now we have the path, separated by spaces, we can step through it
10035  # and add multilib dir if necessary.
10036  lt_tmp_lt_search_path_spec=
10037  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10038  for lt_sys_path in $lt_search_path_spec; do
10039    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10040      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10041    else
10042      test -d "$lt_sys_path" && \
10043	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10044    fi
10045  done
10046  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10047BEGIN {RS=" "; FS="/|\n";} {
10048  lt_foo="";
10049  lt_count=0;
10050  for (lt_i = NF; lt_i > 0; lt_i--) {
10051    if ($lt_i != "" && $lt_i != ".") {
10052      if ($lt_i == "..") {
10053        lt_count++;
10054      } else {
10055        if (lt_count == 0) {
10056          lt_foo="/" $lt_i lt_foo;
10057        } else {
10058          lt_count--;
10059        }
10060      }
10061    }
10062  }
10063  if (lt_foo != "") { lt_freq[lt_foo]++; }
10064  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10065}'`
10066  # AWK program above erroneously prepends '/' to C:/dos/paths
10067  # for these hosts.
10068  case $host_os in
10069    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10070      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10071  esac
10072  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10073else
10074  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10075fi
10076library_names_spec=
10077libname_spec='lib$name'
10078soname_spec=
10079shrext_cmds=".so"
10080postinstall_cmds=
10081postuninstall_cmds=
10082finish_cmds=
10083finish_eval=
10084shlibpath_var=
10085shlibpath_overrides_runpath=unknown
10086version_type=none
10087dynamic_linker="$host_os ld.so"
10088sys_lib_dlsearch_path_spec="/lib /usr/lib"
10089need_lib_prefix=unknown
10090hardcode_into_libs=no
10091
10092# when you set need_version to no, make sure it does not cause -set_version
10093# flags to be left without arguments
10094need_version=unknown
10095
10096case $host_os in
10097aix3*)
10098  version_type=linux # correct to gnu/linux during the next big refactor
10099  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10100  shlibpath_var=LIBPATH
10101
10102  # AIX 3 has no versioning support, so we append a major version to the name.
10103  soname_spec='${libname}${release}${shared_ext}$major'
10104  ;;
10105
10106aix[4-9]*)
10107  version_type=linux # correct to gnu/linux during the next big refactor
10108  need_lib_prefix=no
10109  need_version=no
10110  hardcode_into_libs=yes
10111  if test "$host_cpu" = ia64; then
10112    # AIX 5 supports IA64
10113    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10114    shlibpath_var=LD_LIBRARY_PATH
10115  else
10116    # With GCC up to 2.95.x, collect2 would create an import file
10117    # for dependence libraries.  The import file would start with
10118    # the line `#! .'.  This would cause the generated library to
10119    # depend on `.', always an invalid library.  This was fixed in
10120    # development snapshots of GCC prior to 3.0.
10121    case $host_os in
10122      aix4 | aix4.[01] | aix4.[01].*)
10123      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10124	   echo ' yes '
10125	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10126	:
10127      else
10128	can_build_shared=no
10129      fi
10130      ;;
10131    esac
10132    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10133    # soname into executable. Probably we can add versioning support to
10134    # collect2, so additional links can be useful in future.
10135    if test "$aix_use_runtimelinking" = yes; then
10136      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10137      # instead of lib<name>.a to let people know that these are not
10138      # typical AIX shared libraries.
10139      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140    else
10141      # We preserve .a as extension for shared libraries through AIX4.2
10142      # and later when we are not doing run time linking.
10143      library_names_spec='${libname}${release}.a $libname.a'
10144      soname_spec='${libname}${release}${shared_ext}$major'
10145    fi
10146    shlibpath_var=LIBPATH
10147  fi
10148  ;;
10149
10150amigaos*)
10151  case $host_cpu in
10152  powerpc)
10153    # Since July 2007 AmigaOS4 officially supports .so libraries.
10154    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10155    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156    ;;
10157  m68k)
10158    library_names_spec='$libname.ixlibrary $libname.a'
10159    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10160    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'
10161    ;;
10162  esac
10163  ;;
10164
10165beos*)
10166  library_names_spec='${libname}${shared_ext}'
10167  dynamic_linker="$host_os ld.so"
10168  shlibpath_var=LIBRARY_PATH
10169  ;;
10170
10171bsdi[45]*)
10172  version_type=linux # correct to gnu/linux during the next big refactor
10173  need_version=no
10174  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10175  soname_spec='${libname}${release}${shared_ext}$major'
10176  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10177  shlibpath_var=LD_LIBRARY_PATH
10178  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10179  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10180  # the default ld.so.conf also contains /usr/contrib/lib and
10181  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10182  # libtool to hard-code these into programs
10183  ;;
10184
10185cygwin* | mingw* | pw32* | cegcc*)
10186  version_type=windows
10187  shrext_cmds=".dll"
10188  need_version=no
10189  need_lib_prefix=no
10190
10191  case $GCC,$cc_basename in
10192  yes,*)
10193    # gcc
10194    library_names_spec='$libname.dll.a'
10195    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10196    postinstall_cmds='base_file=`basename \${file}`~
10197      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10198      dldir=$destdir/`dirname \$dlpath`~
10199      test -d \$dldir || mkdir -p \$dldir~
10200      $install_prog $dir/$dlname \$dldir/$dlname~
10201      chmod a+x \$dldir/$dlname~
10202      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10203        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10204      fi'
10205    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10206      dlpath=$dir/\$dldll~
10207       $RM \$dlpath'
10208    shlibpath_overrides_runpath=yes
10209
10210    case $host_os in
10211    cygwin*)
10212      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10213      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10214
10215      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10216      ;;
10217    mingw* | cegcc*)
10218      # MinGW DLLs use traditional 'lib' prefix
10219      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10220      ;;
10221    pw32*)
10222      # pw32 DLLs use 'pw' prefix rather than 'lib'
10223      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10224      ;;
10225    esac
10226    dynamic_linker='Win32 ld.exe'
10227    ;;
10228
10229  *,cl*)
10230    # Native MSVC
10231    libname_spec='$name'
10232    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10233    library_names_spec='${libname}.dll.lib'
10234
10235    case $build_os in
10236    mingw*)
10237      sys_lib_search_path_spec=
10238      lt_save_ifs=$IFS
10239      IFS=';'
10240      for lt_path in $LIB
10241      do
10242        IFS=$lt_save_ifs
10243        # Let DOS variable expansion print the short 8.3 style file name.
10244        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10245        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10246      done
10247      IFS=$lt_save_ifs
10248      # Convert to MSYS style.
10249      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10250      ;;
10251    cygwin*)
10252      # Convert to unix form, then to dos form, then back to unix form
10253      # but this time dos style (no spaces!) so that the unix form looks
10254      # like /cygdrive/c/PROGRA~1:/cygdr...
10255      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10256      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10257      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10258      ;;
10259    *)
10260      sys_lib_search_path_spec="$LIB"
10261      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10262        # It is most probably a Windows format PATH.
10263        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10264      else
10265        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10266      fi
10267      # FIXME: find the short name or the path components, as spaces are
10268      # common. (e.g. "Program Files" -> "PROGRA~1")
10269      ;;
10270    esac
10271
10272    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10273    postinstall_cmds='base_file=`basename \${file}`~
10274      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10275      dldir=$destdir/`dirname \$dlpath`~
10276      test -d \$dldir || mkdir -p \$dldir~
10277      $install_prog $dir/$dlname \$dldir/$dlname'
10278    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10279      dlpath=$dir/\$dldll~
10280       $RM \$dlpath'
10281    shlibpath_overrides_runpath=yes
10282    dynamic_linker='Win32 link.exe'
10283    ;;
10284
10285  *)
10286    # Assume MSVC wrapper
10287    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10288    dynamic_linker='Win32 ld.exe'
10289    ;;
10290  esac
10291  # FIXME: first we should search . and the directory the executable is in
10292  shlibpath_var=PATH
10293  ;;
10294
10295darwin* | rhapsody*)
10296  dynamic_linker="$host_os dyld"
10297  version_type=darwin
10298  need_lib_prefix=no
10299  need_version=no
10300  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10301  soname_spec='${libname}${release}${major}$shared_ext'
10302  shlibpath_overrides_runpath=yes
10303  shlibpath_var=DYLD_LIBRARY_PATH
10304  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10305
10306  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10307  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10308  ;;
10309
10310dgux*)
10311  version_type=linux # correct to gnu/linux during the next big refactor
10312  need_lib_prefix=no
10313  need_version=no
10314  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10315  soname_spec='${libname}${release}${shared_ext}$major'
10316  shlibpath_var=LD_LIBRARY_PATH
10317  ;;
10318
10319freebsd* | dragonfly*)
10320  # DragonFly does not have aout.  When/if they implement a new
10321  # versioning mechanism, adjust this.
10322  if test -x /usr/bin/objformat; then
10323    objformat=`/usr/bin/objformat`
10324  else
10325    case $host_os in
10326    freebsd[23].*) objformat=aout ;;
10327    *) objformat=elf ;;
10328    esac
10329  fi
10330  version_type=freebsd-$objformat
10331  case $version_type in
10332    freebsd-elf*)
10333      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10334      need_version=no
10335      need_lib_prefix=no
10336      ;;
10337    freebsd-*)
10338      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10339      need_version=yes
10340      ;;
10341  esac
10342  shlibpath_var=LD_LIBRARY_PATH
10343  case $host_os in
10344  freebsd2.*)
10345    shlibpath_overrides_runpath=yes
10346    ;;
10347  freebsd3.[01]* | freebsdelf3.[01]*)
10348    shlibpath_overrides_runpath=yes
10349    hardcode_into_libs=yes
10350    ;;
10351  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10352  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10353    shlibpath_overrides_runpath=no
10354    hardcode_into_libs=yes
10355    ;;
10356  *) # from 4.6 on, and DragonFly
10357    shlibpath_overrides_runpath=yes
10358    hardcode_into_libs=yes
10359    ;;
10360  esac
10361  ;;
10362
10363gnu*)
10364  version_type=linux # correct to gnu/linux during the next big refactor
10365  need_lib_prefix=no
10366  need_version=no
10367  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10368  soname_spec='${libname}${release}${shared_ext}$major'
10369  shlibpath_var=LD_LIBRARY_PATH
10370  shlibpath_overrides_runpath=no
10371  hardcode_into_libs=yes
10372  ;;
10373
10374haiku*)
10375  version_type=linux # correct to gnu/linux during the next big refactor
10376  need_lib_prefix=no
10377  need_version=no
10378  dynamic_linker="$host_os runtime_loader"
10379  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10380  soname_spec='${libname}${release}${shared_ext}$major'
10381  shlibpath_var=LIBRARY_PATH
10382  shlibpath_overrides_runpath=yes
10383  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10384  hardcode_into_libs=yes
10385  ;;
10386
10387hpux9* | hpux10* | hpux11*)
10388  # Give a soname corresponding to the major version so that dld.sl refuses to
10389  # link against other versions.
10390  version_type=sunos
10391  need_lib_prefix=no
10392  need_version=no
10393  case $host_cpu in
10394  ia64*)
10395    shrext_cmds='.so'
10396    hardcode_into_libs=yes
10397    dynamic_linker="$host_os dld.so"
10398    shlibpath_var=LD_LIBRARY_PATH
10399    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10400    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10401    soname_spec='${libname}${release}${shared_ext}$major'
10402    if test "X$HPUX_IA64_MODE" = X32; then
10403      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10404    else
10405      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10406    fi
10407    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10408    ;;
10409  hppa*64*)
10410    shrext_cmds='.sl'
10411    hardcode_into_libs=yes
10412    dynamic_linker="$host_os dld.sl"
10413    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10414    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10415    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10416    soname_spec='${libname}${release}${shared_ext}$major'
10417    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10418    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10419    ;;
10420  *)
10421    shrext_cmds='.sl'
10422    dynamic_linker="$host_os dld.sl"
10423    shlibpath_var=SHLIB_PATH
10424    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10425    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10426    soname_spec='${libname}${release}${shared_ext}$major'
10427    ;;
10428  esac
10429  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10430  postinstall_cmds='chmod 555 $lib'
10431  # or fails outright, so override atomically:
10432  install_override_mode=555
10433  ;;
10434
10435interix[3-9]*)
10436  version_type=linux # correct to gnu/linux during the next big refactor
10437  need_lib_prefix=no
10438  need_version=no
10439  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10440  soname_spec='${libname}${release}${shared_ext}$major'
10441  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10442  shlibpath_var=LD_LIBRARY_PATH
10443  shlibpath_overrides_runpath=no
10444  hardcode_into_libs=yes
10445  ;;
10446
10447irix5* | irix6* | nonstopux*)
10448  case $host_os in
10449    nonstopux*) version_type=nonstopux ;;
10450    *)
10451	if test "$lt_cv_prog_gnu_ld" = yes; then
10452		version_type=linux # correct to gnu/linux during the next big refactor
10453	else
10454		version_type=irix
10455	fi ;;
10456  esac
10457  need_lib_prefix=no
10458  need_version=no
10459  soname_spec='${libname}${release}${shared_ext}$major'
10460  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10461  case $host_os in
10462  irix5* | nonstopux*)
10463    libsuff= shlibsuff=
10464    ;;
10465  *)
10466    case $LD in # libtool.m4 will add one of these switches to LD
10467    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10468      libsuff= shlibsuff= libmagic=32-bit;;
10469    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10470      libsuff=32 shlibsuff=N32 libmagic=N32;;
10471    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10472      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10473    *) libsuff= shlibsuff= libmagic=never-match;;
10474    esac
10475    ;;
10476  esac
10477  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10478  shlibpath_overrides_runpath=no
10479  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10480  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10481  hardcode_into_libs=yes
10482  ;;
10483
10484# No shared lib support for Linux oldld, aout, or coff.
10485linux*oldld* | linux*aout* | linux*coff*)
10486  dynamic_linker=no
10487  ;;
10488
10489# This must be glibc/ELF.
10490linux* | k*bsd*-gnu | kopensolaris*-gnu)
10491  version_type=linux # correct to gnu/linux during the next big refactor
10492  need_lib_prefix=no
10493  need_version=no
10494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10495  soname_spec='${libname}${release}${shared_ext}$major'
10496  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10497  shlibpath_var=LD_LIBRARY_PATH
10498  shlibpath_overrides_runpath=no
10499
10500  # Some binutils ld are patched to set DT_RUNPATH
10501  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10502  $as_echo_n "(cached) " >&6
10503else
10504  lt_cv_shlibpath_overrides_runpath=no
10505    save_LDFLAGS=$LDFLAGS
10506    save_libdir=$libdir
10507    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10508	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10509    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10510/* end confdefs.h.  */
10511
10512int
10513main ()
10514{
10515
10516  ;
10517  return 0;
10518}
10519_ACEOF
10520if ac_fn_c_try_link "$LINENO"; then :
10521  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10522  lt_cv_shlibpath_overrides_runpath=yes
10523fi
10524fi
10525rm -f core conftest.err conftest.$ac_objext \
10526    conftest$ac_exeext conftest.$ac_ext
10527    LDFLAGS=$save_LDFLAGS
10528    libdir=$save_libdir
10529
10530fi
10531
10532  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10533
10534  # This implies no fast_install, which is unacceptable.
10535  # Some rework will be needed to allow for fast_install
10536  # before this can be enabled.
10537  hardcode_into_libs=yes
10538
10539  # Append ld.so.conf contents to the search path
10540  if test -f /etc/ld.so.conf; then
10541    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' ' '`
10542    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10543  fi
10544
10545  # We used to test for /lib/ld.so.1 and disable shared libraries on
10546  # powerpc, because MkLinux only supported shared libraries with the
10547  # GNU dynamic linker.  Since this was broken with cross compilers,
10548  # most powerpc-linux boxes support dynamic linking these days and
10549  # people can always --disable-shared, the test was removed, and we
10550  # assume the GNU/Linux dynamic linker is in use.
10551  dynamic_linker='GNU/Linux ld.so'
10552  ;;
10553
10554netbsdelf*-gnu)
10555  version_type=linux
10556  need_lib_prefix=no
10557  need_version=no
10558  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10559  soname_spec='${libname}${release}${shared_ext}$major'
10560  shlibpath_var=LD_LIBRARY_PATH
10561  shlibpath_overrides_runpath=no
10562  hardcode_into_libs=yes
10563  dynamic_linker='NetBSD ld.elf_so'
10564  ;;
10565
10566netbsd*)
10567  version_type=sunos
10568  need_lib_prefix=no
10569  need_version=no
10570  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10571    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10572    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10573    dynamic_linker='NetBSD (a.out) ld.so'
10574  else
10575    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10576    soname_spec='${libname}${release}${shared_ext}$major'
10577    dynamic_linker='NetBSD ld.elf_so'
10578  fi
10579  shlibpath_var=LD_LIBRARY_PATH
10580  shlibpath_overrides_runpath=yes
10581  hardcode_into_libs=yes
10582  ;;
10583
10584newsos6)
10585  version_type=linux # correct to gnu/linux during the next big refactor
10586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10587  shlibpath_var=LD_LIBRARY_PATH
10588  shlibpath_overrides_runpath=yes
10589  ;;
10590
10591*nto* | *qnx*)
10592  version_type=qnx
10593  need_lib_prefix=no
10594  need_version=no
10595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10596  soname_spec='${libname}${release}${shared_ext}$major'
10597  shlibpath_var=LD_LIBRARY_PATH
10598  shlibpath_overrides_runpath=no
10599  hardcode_into_libs=yes
10600  dynamic_linker='ldqnx.so'
10601  ;;
10602
10603openbsd*)
10604  version_type=sunos
10605  sys_lib_dlsearch_path_spec="/usr/lib"
10606  need_lib_prefix=no
10607  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10608  case $host_os in
10609    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10610    *)				need_version=no  ;;
10611  esac
10612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10613  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10614  shlibpath_var=LD_LIBRARY_PATH
10615  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10616    case $host_os in
10617      openbsd2.[89] | openbsd2.[89].*)
10618	shlibpath_overrides_runpath=no
10619	;;
10620      *)
10621	shlibpath_overrides_runpath=yes
10622	;;
10623      esac
10624  else
10625    shlibpath_overrides_runpath=yes
10626  fi
10627  ;;
10628
10629os2*)
10630  libname_spec='$name'
10631  shrext_cmds=".dll"
10632  need_lib_prefix=no
10633  library_names_spec='$libname${shared_ext} $libname.a'
10634  dynamic_linker='OS/2 ld.exe'
10635  shlibpath_var=LIBPATH
10636  ;;
10637
10638osf3* | osf4* | osf5*)
10639  version_type=osf
10640  need_lib_prefix=no
10641  need_version=no
10642  soname_spec='${libname}${release}${shared_ext}$major'
10643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644  shlibpath_var=LD_LIBRARY_PATH
10645  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10646  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10647  ;;
10648
10649rdos*)
10650  dynamic_linker=no
10651  ;;
10652
10653solaris*)
10654  version_type=linux # correct to gnu/linux during the next big refactor
10655  need_lib_prefix=no
10656  need_version=no
10657  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10658  soname_spec='${libname}${release}${shared_ext}$major'
10659  shlibpath_var=LD_LIBRARY_PATH
10660  shlibpath_overrides_runpath=yes
10661  hardcode_into_libs=yes
10662  # ldd complains unless libraries are executable
10663  postinstall_cmds='chmod +x $lib'
10664  ;;
10665
10666sunos4*)
10667  version_type=sunos
10668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10669  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10670  shlibpath_var=LD_LIBRARY_PATH
10671  shlibpath_overrides_runpath=yes
10672  if test "$with_gnu_ld" = yes; then
10673    need_lib_prefix=no
10674  fi
10675  need_version=yes
10676  ;;
10677
10678sysv4 | sysv4.3*)
10679  version_type=linux # correct to gnu/linux during the next big refactor
10680  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10681  soname_spec='${libname}${release}${shared_ext}$major'
10682  shlibpath_var=LD_LIBRARY_PATH
10683  case $host_vendor in
10684    sni)
10685      shlibpath_overrides_runpath=no
10686      need_lib_prefix=no
10687      runpath_var=LD_RUN_PATH
10688      ;;
10689    siemens)
10690      need_lib_prefix=no
10691      ;;
10692    motorola)
10693      need_lib_prefix=no
10694      need_version=no
10695      shlibpath_overrides_runpath=no
10696      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10697      ;;
10698  esac
10699  ;;
10700
10701sysv4*MP*)
10702  if test -d /usr/nec ;then
10703    version_type=linux # correct to gnu/linux during the next big refactor
10704    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10705    soname_spec='$libname${shared_ext}.$major'
10706    shlibpath_var=LD_LIBRARY_PATH
10707  fi
10708  ;;
10709
10710sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10711  version_type=freebsd-elf
10712  need_lib_prefix=no
10713  need_version=no
10714  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10715  soname_spec='${libname}${release}${shared_ext}$major'
10716  shlibpath_var=LD_LIBRARY_PATH
10717  shlibpath_overrides_runpath=yes
10718  hardcode_into_libs=yes
10719  if test "$with_gnu_ld" = yes; then
10720    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10721  else
10722    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10723    case $host_os in
10724      sco3.2v5*)
10725        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10726	;;
10727    esac
10728  fi
10729  sys_lib_dlsearch_path_spec='/usr/lib'
10730  ;;
10731
10732tpf*)
10733  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10734  version_type=linux # correct to gnu/linux during the next big refactor
10735  need_lib_prefix=no
10736  need_version=no
10737  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10738  shlibpath_var=LD_LIBRARY_PATH
10739  shlibpath_overrides_runpath=no
10740  hardcode_into_libs=yes
10741  ;;
10742
10743uts4*)
10744  version_type=linux # correct to gnu/linux during the next big refactor
10745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10746  soname_spec='${libname}${release}${shared_ext}$major'
10747  shlibpath_var=LD_LIBRARY_PATH
10748  ;;
10749
10750*)
10751  dynamic_linker=no
10752  ;;
10753esac
10754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10755$as_echo "$dynamic_linker" >&6; }
10756test "$dynamic_linker" = no && can_build_shared=no
10757
10758variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10759if test "$GCC" = yes; then
10760  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10761fi
10762
10763if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10764  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10765fi
10766if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10767  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10768fi
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10862$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10863hardcode_action=
10864if test -n "$hardcode_libdir_flag_spec" ||
10865   test -n "$runpath_var" ||
10866   test "X$hardcode_automatic" = "Xyes" ; then
10867
10868  # We can hardcode non-existent directories.
10869  if test "$hardcode_direct" != no &&
10870     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10871     # have to relink, otherwise we might link with an installed library
10872     # when we should be linking with a yet-to-be-installed one
10873     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10874     test "$hardcode_minus_L" != no; then
10875    # Linking always hardcodes the temporary library directory.
10876    hardcode_action=relink
10877  else
10878    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10879    hardcode_action=immediate
10880  fi
10881else
10882  # We cannot hardcode anything, or else we can only hardcode existing
10883  # directories.
10884  hardcode_action=unsupported
10885fi
10886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10887$as_echo "$hardcode_action" >&6; }
10888
10889if test "$hardcode_action" = relink ||
10890   test "$inherit_rpath" = yes; then
10891  # Fast installation is not supported
10892  enable_fast_install=no
10893elif test "$shlibpath_overrides_runpath" = yes ||
10894     test "$enable_shared" = no; then
10895  # Fast installation is not necessary
10896  enable_fast_install=needless
10897fi
10898
10899
10900
10901
10902
10903
10904  if test "x$enable_dlopen" != xyes; then
10905  enable_dlopen=unknown
10906  enable_dlopen_self=unknown
10907  enable_dlopen_self_static=unknown
10908else
10909  lt_cv_dlopen=no
10910  lt_cv_dlopen_libs=
10911
10912  case $host_os in
10913  beos*)
10914    lt_cv_dlopen="load_add_on"
10915    lt_cv_dlopen_libs=
10916    lt_cv_dlopen_self=yes
10917    ;;
10918
10919  mingw* | pw32* | cegcc*)
10920    lt_cv_dlopen="LoadLibrary"
10921    lt_cv_dlopen_libs=
10922    ;;
10923
10924  cygwin*)
10925    lt_cv_dlopen="dlopen"
10926    lt_cv_dlopen_libs=
10927    ;;
10928
10929  darwin*)
10930  # if libdl is installed we need to link against it
10931    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10932$as_echo_n "checking for dlopen in -ldl... " >&6; }
10933if ${ac_cv_lib_dl_dlopen+:} false; then :
10934  $as_echo_n "(cached) " >&6
10935else
10936  ac_check_lib_save_LIBS=$LIBS
10937LIBS="-ldl  $LIBS"
10938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939/* end confdefs.h.  */
10940
10941/* Override any GCC internal prototype to avoid an error.
10942   Use char because int might match the return type of a GCC
10943   builtin and then its argument prototype would still apply.  */
10944#ifdef __cplusplus
10945extern "C"
10946#endif
10947char dlopen ();
10948int
10949main ()
10950{
10951return dlopen ();
10952  ;
10953  return 0;
10954}
10955_ACEOF
10956if ac_fn_c_try_link "$LINENO"; then :
10957  ac_cv_lib_dl_dlopen=yes
10958else
10959  ac_cv_lib_dl_dlopen=no
10960fi
10961rm -f core conftest.err conftest.$ac_objext \
10962    conftest$ac_exeext conftest.$ac_ext
10963LIBS=$ac_check_lib_save_LIBS
10964fi
10965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10966$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10967if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10968  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10969else
10970
10971    lt_cv_dlopen="dyld"
10972    lt_cv_dlopen_libs=
10973    lt_cv_dlopen_self=yes
10974
10975fi
10976
10977    ;;
10978
10979  *)
10980    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10981if test "x$ac_cv_func_shl_load" = xyes; then :
10982  lt_cv_dlopen="shl_load"
10983else
10984  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10985$as_echo_n "checking for shl_load in -ldld... " >&6; }
10986if ${ac_cv_lib_dld_shl_load+:} false; then :
10987  $as_echo_n "(cached) " >&6
10988else
10989  ac_check_lib_save_LIBS=$LIBS
10990LIBS="-ldld  $LIBS"
10991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10992/* end confdefs.h.  */
10993
10994/* Override any GCC internal prototype to avoid an error.
10995   Use char because int might match the return type of a GCC
10996   builtin and then its argument prototype would still apply.  */
10997#ifdef __cplusplus
10998extern "C"
10999#endif
11000char shl_load ();
11001int
11002main ()
11003{
11004return shl_load ();
11005  ;
11006  return 0;
11007}
11008_ACEOF
11009if ac_fn_c_try_link "$LINENO"; then :
11010  ac_cv_lib_dld_shl_load=yes
11011else
11012  ac_cv_lib_dld_shl_load=no
11013fi
11014rm -f core conftest.err conftest.$ac_objext \
11015    conftest$ac_exeext conftest.$ac_ext
11016LIBS=$ac_check_lib_save_LIBS
11017fi
11018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11019$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11020if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11021  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11022else
11023  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11024if test "x$ac_cv_func_dlopen" = xyes; then :
11025  lt_cv_dlopen="dlopen"
11026else
11027  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11028$as_echo_n "checking for dlopen in -ldl... " >&6; }
11029if ${ac_cv_lib_dl_dlopen+:} false; then :
11030  $as_echo_n "(cached) " >&6
11031else
11032  ac_check_lib_save_LIBS=$LIBS
11033LIBS="-ldl  $LIBS"
11034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11035/* end confdefs.h.  */
11036
11037/* Override any GCC internal prototype to avoid an error.
11038   Use char because int might match the return type of a GCC
11039   builtin and then its argument prototype would still apply.  */
11040#ifdef __cplusplus
11041extern "C"
11042#endif
11043char dlopen ();
11044int
11045main ()
11046{
11047return dlopen ();
11048  ;
11049  return 0;
11050}
11051_ACEOF
11052if ac_fn_c_try_link "$LINENO"; then :
11053  ac_cv_lib_dl_dlopen=yes
11054else
11055  ac_cv_lib_dl_dlopen=no
11056fi
11057rm -f core conftest.err conftest.$ac_objext \
11058    conftest$ac_exeext conftest.$ac_ext
11059LIBS=$ac_check_lib_save_LIBS
11060fi
11061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11062$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11063if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11064  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11065else
11066  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11067$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11068if ${ac_cv_lib_svld_dlopen+:} false; then :
11069  $as_echo_n "(cached) " >&6
11070else
11071  ac_check_lib_save_LIBS=$LIBS
11072LIBS="-lsvld  $LIBS"
11073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11074/* end confdefs.h.  */
11075
11076/* Override any GCC internal prototype to avoid an error.
11077   Use char because int might match the return type of a GCC
11078   builtin and then its argument prototype would still apply.  */
11079#ifdef __cplusplus
11080extern "C"
11081#endif
11082char dlopen ();
11083int
11084main ()
11085{
11086return dlopen ();
11087  ;
11088  return 0;
11089}
11090_ACEOF
11091if ac_fn_c_try_link "$LINENO"; then :
11092  ac_cv_lib_svld_dlopen=yes
11093else
11094  ac_cv_lib_svld_dlopen=no
11095fi
11096rm -f core conftest.err conftest.$ac_objext \
11097    conftest$ac_exeext conftest.$ac_ext
11098LIBS=$ac_check_lib_save_LIBS
11099fi
11100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11101$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11102if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11103  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11104else
11105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11106$as_echo_n "checking for dld_link in -ldld... " >&6; }
11107if ${ac_cv_lib_dld_dld_link+:} false; then :
11108  $as_echo_n "(cached) " >&6
11109else
11110  ac_check_lib_save_LIBS=$LIBS
11111LIBS="-ldld  $LIBS"
11112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11113/* end confdefs.h.  */
11114
11115/* Override any GCC internal prototype to avoid an error.
11116   Use char because int might match the return type of a GCC
11117   builtin and then its argument prototype would still apply.  */
11118#ifdef __cplusplus
11119extern "C"
11120#endif
11121char dld_link ();
11122int
11123main ()
11124{
11125return dld_link ();
11126  ;
11127  return 0;
11128}
11129_ACEOF
11130if ac_fn_c_try_link "$LINENO"; then :
11131  ac_cv_lib_dld_dld_link=yes
11132else
11133  ac_cv_lib_dld_dld_link=no
11134fi
11135rm -f core conftest.err conftest.$ac_objext \
11136    conftest$ac_exeext conftest.$ac_ext
11137LIBS=$ac_check_lib_save_LIBS
11138fi
11139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11140$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11141if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11142  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11143fi
11144
11145
11146fi
11147
11148
11149fi
11150
11151
11152fi
11153
11154
11155fi
11156
11157
11158fi
11159
11160    ;;
11161  esac
11162
11163  if test "x$lt_cv_dlopen" != xno; then
11164    enable_dlopen=yes
11165  else
11166    enable_dlopen=no
11167  fi
11168
11169  case $lt_cv_dlopen in
11170  dlopen)
11171    save_CPPFLAGS="$CPPFLAGS"
11172    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11173
11174    save_LDFLAGS="$LDFLAGS"
11175    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11176
11177    save_LIBS="$LIBS"
11178    LIBS="$lt_cv_dlopen_libs $LIBS"
11179
11180    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11181$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11182if ${lt_cv_dlopen_self+:} false; then :
11183  $as_echo_n "(cached) " >&6
11184else
11185  	  if test "$cross_compiling" = yes; then :
11186  lt_cv_dlopen_self=cross
11187else
11188  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11189  lt_status=$lt_dlunknown
11190  cat > conftest.$ac_ext <<_LT_EOF
11191#line $LINENO "configure"
11192#include "confdefs.h"
11193
11194#if HAVE_DLFCN_H
11195#include <dlfcn.h>
11196#endif
11197
11198#include <stdio.h>
11199
11200#ifdef RTLD_GLOBAL
11201#  define LT_DLGLOBAL		RTLD_GLOBAL
11202#else
11203#  ifdef DL_GLOBAL
11204#    define LT_DLGLOBAL		DL_GLOBAL
11205#  else
11206#    define LT_DLGLOBAL		0
11207#  endif
11208#endif
11209
11210/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11211   find out it does not work in some platform. */
11212#ifndef LT_DLLAZY_OR_NOW
11213#  ifdef RTLD_LAZY
11214#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11215#  else
11216#    ifdef DL_LAZY
11217#      define LT_DLLAZY_OR_NOW		DL_LAZY
11218#    else
11219#      ifdef RTLD_NOW
11220#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11221#      else
11222#        ifdef DL_NOW
11223#          define LT_DLLAZY_OR_NOW	DL_NOW
11224#        else
11225#          define LT_DLLAZY_OR_NOW	0
11226#        endif
11227#      endif
11228#    endif
11229#  endif
11230#endif
11231
11232/* When -fvisbility=hidden is used, assume the code has been annotated
11233   correspondingly for the symbols needed.  */
11234#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11235int fnord () __attribute__((visibility("default")));
11236#endif
11237
11238int fnord () { return 42; }
11239int main ()
11240{
11241  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11242  int status = $lt_dlunknown;
11243
11244  if (self)
11245    {
11246      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11247      else
11248        {
11249	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11250          else puts (dlerror ());
11251	}
11252      /* dlclose (self); */
11253    }
11254  else
11255    puts (dlerror ());
11256
11257  return status;
11258}
11259_LT_EOF
11260  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11261  (eval $ac_link) 2>&5
11262  ac_status=$?
11263  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11264  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11265    (./conftest; exit; ) >&5 2>/dev/null
11266    lt_status=$?
11267    case x$lt_status in
11268      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11269      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11270      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11271    esac
11272  else :
11273    # compilation failed
11274    lt_cv_dlopen_self=no
11275  fi
11276fi
11277rm -fr conftest*
11278
11279
11280fi
11281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11282$as_echo "$lt_cv_dlopen_self" >&6; }
11283
11284    if test "x$lt_cv_dlopen_self" = xyes; then
11285      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11286      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11287$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11288if ${lt_cv_dlopen_self_static+:} false; then :
11289  $as_echo_n "(cached) " >&6
11290else
11291  	  if test "$cross_compiling" = yes; then :
11292  lt_cv_dlopen_self_static=cross
11293else
11294  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11295  lt_status=$lt_dlunknown
11296  cat > conftest.$ac_ext <<_LT_EOF
11297#line $LINENO "configure"
11298#include "confdefs.h"
11299
11300#if HAVE_DLFCN_H
11301#include <dlfcn.h>
11302#endif
11303
11304#include <stdio.h>
11305
11306#ifdef RTLD_GLOBAL
11307#  define LT_DLGLOBAL		RTLD_GLOBAL
11308#else
11309#  ifdef DL_GLOBAL
11310#    define LT_DLGLOBAL		DL_GLOBAL
11311#  else
11312#    define LT_DLGLOBAL		0
11313#  endif
11314#endif
11315
11316/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11317   find out it does not work in some platform. */
11318#ifndef LT_DLLAZY_OR_NOW
11319#  ifdef RTLD_LAZY
11320#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11321#  else
11322#    ifdef DL_LAZY
11323#      define LT_DLLAZY_OR_NOW		DL_LAZY
11324#    else
11325#      ifdef RTLD_NOW
11326#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11327#      else
11328#        ifdef DL_NOW
11329#          define LT_DLLAZY_OR_NOW	DL_NOW
11330#        else
11331#          define LT_DLLAZY_OR_NOW	0
11332#        endif
11333#      endif
11334#    endif
11335#  endif
11336#endif
11337
11338/* When -fvisbility=hidden is used, assume the code has been annotated
11339   correspondingly for the symbols needed.  */
11340#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11341int fnord () __attribute__((visibility("default")));
11342#endif
11343
11344int fnord () { return 42; }
11345int main ()
11346{
11347  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11348  int status = $lt_dlunknown;
11349
11350  if (self)
11351    {
11352      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11353      else
11354        {
11355	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11356          else puts (dlerror ());
11357	}
11358      /* dlclose (self); */
11359    }
11360  else
11361    puts (dlerror ());
11362
11363  return status;
11364}
11365_LT_EOF
11366  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11367  (eval $ac_link) 2>&5
11368  ac_status=$?
11369  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11370  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11371    (./conftest; exit; ) >&5 2>/dev/null
11372    lt_status=$?
11373    case x$lt_status in
11374      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11375      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11376      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11377    esac
11378  else :
11379    # compilation failed
11380    lt_cv_dlopen_self_static=no
11381  fi
11382fi
11383rm -fr conftest*
11384
11385
11386fi
11387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11388$as_echo "$lt_cv_dlopen_self_static" >&6; }
11389    fi
11390
11391    CPPFLAGS="$save_CPPFLAGS"
11392    LDFLAGS="$save_LDFLAGS"
11393    LIBS="$save_LIBS"
11394    ;;
11395  esac
11396
11397  case $lt_cv_dlopen_self in
11398  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11399  *) enable_dlopen_self=unknown ;;
11400  esac
11401
11402  case $lt_cv_dlopen_self_static in
11403  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11404  *) enable_dlopen_self_static=unknown ;;
11405  esac
11406fi
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424striplib=
11425old_striplib=
11426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11427$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11428if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11429  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11430  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11431  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11432$as_echo "yes" >&6; }
11433else
11434# FIXME - insert some real tests, host_os isn't really good enough
11435  case $host_os in
11436  darwin*)
11437    if test -n "$STRIP" ; then
11438      striplib="$STRIP -x"
11439      old_striplib="$STRIP -S"
11440      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11441$as_echo "yes" >&6; }
11442    else
11443      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11444$as_echo "no" >&6; }
11445    fi
11446    ;;
11447  *)
11448    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11449$as_echo "no" >&6; }
11450    ;;
11451  esac
11452fi
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465  # Report which library types will actually be built
11466  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11467$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11469$as_echo "$can_build_shared" >&6; }
11470
11471  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11472$as_echo_n "checking whether to build shared libraries... " >&6; }
11473  test "$can_build_shared" = "no" && enable_shared=no
11474
11475  # On AIX, shared libraries and static libraries use the same namespace, and
11476  # are all built from PIC.
11477  case $host_os in
11478  aix3*)
11479    test "$enable_shared" = yes && enable_static=no
11480    if test -n "$RANLIB"; then
11481      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11482      postinstall_cmds='$RANLIB $lib'
11483    fi
11484    ;;
11485
11486  aix[4-9]*)
11487    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11488      test "$enable_shared" = yes && enable_static=no
11489    fi
11490    ;;
11491  esac
11492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11493$as_echo "$enable_shared" >&6; }
11494
11495  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11496$as_echo_n "checking whether to build static libraries... " >&6; }
11497  # Make sure either enable_shared or enable_static is yes.
11498  test "$enable_shared" = yes || enable_static=yes
11499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11500$as_echo "$enable_static" >&6; }
11501
11502
11503
11504
11505fi
11506ac_ext=c
11507ac_cpp='$CPP $CPPFLAGS'
11508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11510ac_compiler_gnu=$ac_cv_c_compiler_gnu
11511
11512CC="$lt_save_CC"
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528        ac_config_commands="$ac_config_commands libtool"
11529
11530
11531
11532
11533# Only expand once:
11534
11535
11536
11537# Require X.Org macros 1.8 or later
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11550$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11551if ${ac_cv_prog_cc_c99+:} false; then :
11552  $as_echo_n "(cached) " >&6
11553else
11554  ac_cv_prog_cc_c99=no
11555ac_save_CC=$CC
11556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11557/* end confdefs.h.  */
11558#include <stdarg.h>
11559#include <stdbool.h>
11560#include <stdlib.h>
11561#include <wchar.h>
11562#include <stdio.h>
11563
11564// Check varargs macros.  These examples are taken from C99 6.10.3.5.
11565#define debug(...) fprintf (stderr, __VA_ARGS__)
11566#define showlist(...) puts (#__VA_ARGS__)
11567#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11568static void
11569test_varargs_macros (void)
11570{
11571  int x = 1234;
11572  int y = 5678;
11573  debug ("Flag");
11574  debug ("X = %d\n", x);
11575  showlist (The first, second, and third items.);
11576  report (x>y, "x is %d but y is %d", x, y);
11577}
11578
11579// Check long long types.
11580#define BIG64 18446744073709551615ull
11581#define BIG32 4294967295ul
11582#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11583#if !BIG_OK
11584  your preprocessor is broken;
11585#endif
11586#if BIG_OK
11587#else
11588  your preprocessor is broken;
11589#endif
11590static long long int bignum = -9223372036854775807LL;
11591static unsigned long long int ubignum = BIG64;
11592
11593struct incomplete_array
11594{
11595  int datasize;
11596  double data[];
11597};
11598
11599struct named_init {
11600  int number;
11601  const wchar_t *name;
11602  double average;
11603};
11604
11605typedef const char *ccp;
11606
11607static inline int
11608test_restrict (ccp restrict text)
11609{
11610  // See if C++-style comments work.
11611  // Iterate through items via the restricted pointer.
11612  // Also check for declarations in for loops.
11613  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11614    continue;
11615  return 0;
11616}
11617
11618// Check varargs and va_copy.
11619static void
11620test_varargs (const char *format, ...)
11621{
11622  va_list args;
11623  va_start (args, format);
11624  va_list args_copy;
11625  va_copy (args_copy, args);
11626
11627  const char *str;
11628  int number;
11629  float fnumber;
11630
11631  while (*format)
11632    {
11633      switch (*format++)
11634	{
11635	case 's': // string
11636	  str = va_arg (args_copy, const char *);
11637	  break;
11638	case 'd': // int
11639	  number = va_arg (args_copy, int);
11640	  break;
11641	case 'f': // float
11642	  fnumber = va_arg (args_copy, double);
11643	  break;
11644	default:
11645	  break;
11646	}
11647    }
11648  va_end (args_copy);
11649  va_end (args);
11650}
11651
11652int
11653main ()
11654{
11655
11656  // Check bool.
11657  _Bool success = false;
11658
11659  // Check restrict.
11660  if (test_restrict ("String literal") == 0)
11661    success = true;
11662  char *restrict newvar = "Another string";
11663
11664  // Check varargs.
11665  test_varargs ("s, d' f .", "string", 65, 34.234);
11666  test_varargs_macros ();
11667
11668  // Check flexible array members.
11669  struct incomplete_array *ia =
11670    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11671  ia->datasize = 10;
11672  for (int i = 0; i < ia->datasize; ++i)
11673    ia->data[i] = i * 1.234;
11674
11675  // Check named initializers.
11676  struct named_init ni = {
11677    .number = 34,
11678    .name = L"Test wide string",
11679    .average = 543.34343,
11680  };
11681
11682  ni.number = 58;
11683
11684  int dynamic_array[ni.number];
11685  dynamic_array[ni.number - 1] = 543;
11686
11687  // work around unused variable warnings
11688  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11689	  || dynamic_array[ni.number - 1] != 543);
11690
11691  ;
11692  return 0;
11693}
11694_ACEOF
11695for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11696do
11697  CC="$ac_save_CC $ac_arg"
11698  if ac_fn_c_try_compile "$LINENO"; then :
11699  ac_cv_prog_cc_c99=$ac_arg
11700fi
11701rm -f core conftest.err conftest.$ac_objext
11702  test "x$ac_cv_prog_cc_c99" != "xno" && break
11703done
11704rm -f conftest.$ac_ext
11705CC=$ac_save_CC
11706
11707fi
11708# AC_CACHE_VAL
11709case "x$ac_cv_prog_cc_c99" in
11710  x)
11711    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11712$as_echo "none needed" >&6; } ;;
11713  xno)
11714    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11715$as_echo "unsupported" >&6; } ;;
11716  *)
11717    CC="$CC $ac_cv_prog_cc_c99"
11718    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11719$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11720esac
11721if test "x$ac_cv_prog_cc_c99" != xno; then :
11722
11723fi
11724
11725
11726
11727
11728
11729
11730ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11731if test "x$ac_cv_have_decl___clang__" = xyes; then :
11732  CLANGCC="yes"
11733else
11734  CLANGCC="no"
11735fi
11736
11737ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11738if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11739  INTELCC="yes"
11740else
11741  INTELCC="no"
11742fi
11743
11744ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11745if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11746  SUNCC="yes"
11747else
11748  SUNCC="no"
11749fi
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11760	if test -n "$ac_tool_prefix"; then
11761  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11762set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11764$as_echo_n "checking for $ac_word... " >&6; }
11765if ${ac_cv_path_PKG_CONFIG+:} false; then :
11766  $as_echo_n "(cached) " >&6
11767else
11768  case $PKG_CONFIG in
11769  [\\/]* | ?:[\\/]*)
11770  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11771  ;;
11772  *)
11773  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774for as_dir in $PATH
11775do
11776  IFS=$as_save_IFS
11777  test -z "$as_dir" && as_dir=.
11778    for ac_exec_ext in '' $ac_executable_extensions; do
11779  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11780    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11781    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11782    break 2
11783  fi
11784done
11785  done
11786IFS=$as_save_IFS
11787
11788  ;;
11789esac
11790fi
11791PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11792if test -n "$PKG_CONFIG"; then
11793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11794$as_echo "$PKG_CONFIG" >&6; }
11795else
11796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797$as_echo "no" >&6; }
11798fi
11799
11800
11801fi
11802if test -z "$ac_cv_path_PKG_CONFIG"; then
11803  ac_pt_PKG_CONFIG=$PKG_CONFIG
11804  # Extract the first word of "pkg-config", so it can be a program name with args.
11805set dummy pkg-config; ac_word=$2
11806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11807$as_echo_n "checking for $ac_word... " >&6; }
11808if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11809  $as_echo_n "(cached) " >&6
11810else
11811  case $ac_pt_PKG_CONFIG in
11812  [\\/]* | ?:[\\/]*)
11813  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11814  ;;
11815  *)
11816  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11817for as_dir in $PATH
11818do
11819  IFS=$as_save_IFS
11820  test -z "$as_dir" && as_dir=.
11821    for ac_exec_ext in '' $ac_executable_extensions; do
11822  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11823    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11825    break 2
11826  fi
11827done
11828  done
11829IFS=$as_save_IFS
11830
11831  ;;
11832esac
11833fi
11834ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11835if test -n "$ac_pt_PKG_CONFIG"; then
11836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11837$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11838else
11839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11840$as_echo "no" >&6; }
11841fi
11842
11843  if test "x$ac_pt_PKG_CONFIG" = x; then
11844    PKG_CONFIG=""
11845  else
11846    case $cross_compiling:$ac_tool_warned in
11847yes:)
11848{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11849$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11850ac_tool_warned=yes ;;
11851esac
11852    PKG_CONFIG=$ac_pt_PKG_CONFIG
11853  fi
11854else
11855  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11856fi
11857
11858fi
11859if test -n "$PKG_CONFIG"; then
11860	_pkg_min_version=0.9.0
11861	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11862$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11863	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11864		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11865$as_echo "yes" >&6; }
11866	else
11867		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11868$as_echo "no" >&6; }
11869		PKG_CONFIG=""
11870	fi
11871fi
11872
11873
11874
11875
11876
11877# Check whether --enable-selective-werror was given.
11878if test "${enable_selective_werror+set}" = set; then :
11879  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11880else
11881  SELECTIVE_WERROR=yes
11882fi
11883
11884
11885
11886
11887
11888# -v is too short to test reliably with XORG_TESTSET_CFLAG
11889if test "x$SUNCC" = "xyes"; then
11890    BASE_CFLAGS="-v"
11891else
11892    BASE_CFLAGS=""
11893fi
11894
11895# This chunk of warnings were those that existed in the legacy CWARNFLAGS
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909xorg_testset_save_CFLAGS="$CFLAGS"
11910
11911if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11912	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11913	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11914$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11915if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11916  $as_echo_n "(cached) " >&6
11917else
11918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11919/* end confdefs.h.  */
11920int i;
11921_ACEOF
11922if ac_fn_c_try_compile "$LINENO"; then :
11923  xorg_cv_cc_flag_unknown_warning_option=yes
11924else
11925  xorg_cv_cc_flag_unknown_warning_option=no
11926fi
11927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11928fi
11929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11930$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11931	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11932	CFLAGS="$xorg_testset_save_CFLAGS"
11933fi
11934
11935if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11936	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11937		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11938	fi
11939	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11940	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11941$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11942if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11943  $as_echo_n "(cached) " >&6
11944else
11945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946/* end confdefs.h.  */
11947int i;
11948_ACEOF
11949if ac_fn_c_try_compile "$LINENO"; then :
11950  xorg_cv_cc_flag_unused_command_line_argument=yes
11951else
11952  xorg_cv_cc_flag_unused_command_line_argument=no
11953fi
11954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11955fi
11956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11957$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11958	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11959	CFLAGS="$xorg_testset_save_CFLAGS"
11960fi
11961
11962found="no"
11963
11964	if test $found = "no" ; then
11965		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11966			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11967		fi
11968
11969		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11970			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11971		fi
11972
11973		CFLAGS="$CFLAGS -Wall"
11974
11975		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
11976$as_echo_n "checking if $CC supports-Wall... " >&6; }
11977		cacheid=xorg_cv_cc_flag__Wall
11978		if eval \${$cacheid+:} false; then :
11979  $as_echo_n "(cached) " >&6
11980else
11981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11982/* end confdefs.h.  */
11983int i;
11984int
11985main ()
11986{
11987
11988  ;
11989  return 0;
11990}
11991_ACEOF
11992if ac_fn_c_try_link "$LINENO"; then :
11993  eval $cacheid=yes
11994else
11995  eval $cacheid=no
11996fi
11997rm -f core conftest.err conftest.$ac_objext \
11998    conftest$ac_exeext conftest.$ac_ext
11999fi
12000
12001
12002		CFLAGS="$xorg_testset_save_CFLAGS"
12003
12004		eval supported=\$$cacheid
12005		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12006$as_echo "$supported" >&6; }
12007		if test "$supported" = "yes" ; then
12008			BASE_CFLAGS="$BASE_CFLAGS -Wall"
12009			found="yes"
12010		fi
12011	fi
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027xorg_testset_save_CFLAGS="$CFLAGS"
12028
12029if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12030	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12031	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12032$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12033if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12034  $as_echo_n "(cached) " >&6
12035else
12036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037/* end confdefs.h.  */
12038int i;
12039_ACEOF
12040if ac_fn_c_try_compile "$LINENO"; then :
12041  xorg_cv_cc_flag_unknown_warning_option=yes
12042else
12043  xorg_cv_cc_flag_unknown_warning_option=no
12044fi
12045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12046fi
12047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12048$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12049	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12050	CFLAGS="$xorg_testset_save_CFLAGS"
12051fi
12052
12053if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12054	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12055		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12056	fi
12057	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12058	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12059$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12060if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12061  $as_echo_n "(cached) " >&6
12062else
12063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12064/* end confdefs.h.  */
12065int i;
12066_ACEOF
12067if ac_fn_c_try_compile "$LINENO"; then :
12068  xorg_cv_cc_flag_unused_command_line_argument=yes
12069else
12070  xorg_cv_cc_flag_unused_command_line_argument=no
12071fi
12072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12073fi
12074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12075$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12076	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12077	CFLAGS="$xorg_testset_save_CFLAGS"
12078fi
12079
12080found="no"
12081
12082	if test $found = "no" ; then
12083		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12084			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12085		fi
12086
12087		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12088			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12089		fi
12090
12091		CFLAGS="$CFLAGS -Wpointer-arith"
12092
12093		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
12094$as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
12095		cacheid=xorg_cv_cc_flag__Wpointer_arith
12096		if eval \${$cacheid+:} false; then :
12097  $as_echo_n "(cached) " >&6
12098else
12099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12100/* end confdefs.h.  */
12101int i;
12102int
12103main ()
12104{
12105
12106  ;
12107  return 0;
12108}
12109_ACEOF
12110if ac_fn_c_try_link "$LINENO"; then :
12111  eval $cacheid=yes
12112else
12113  eval $cacheid=no
12114fi
12115rm -f core conftest.err conftest.$ac_objext \
12116    conftest$ac_exeext conftest.$ac_ext
12117fi
12118
12119
12120		CFLAGS="$xorg_testset_save_CFLAGS"
12121
12122		eval supported=\$$cacheid
12123		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12124$as_echo "$supported" >&6; }
12125		if test "$supported" = "yes" ; then
12126			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12127			found="yes"
12128		fi
12129	fi
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145xorg_testset_save_CFLAGS="$CFLAGS"
12146
12147if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12148	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12149	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12150$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12151if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12152  $as_echo_n "(cached) " >&6
12153else
12154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12155/* end confdefs.h.  */
12156int i;
12157_ACEOF
12158if ac_fn_c_try_compile "$LINENO"; then :
12159  xorg_cv_cc_flag_unknown_warning_option=yes
12160else
12161  xorg_cv_cc_flag_unknown_warning_option=no
12162fi
12163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12164fi
12165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12166$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12167	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12168	CFLAGS="$xorg_testset_save_CFLAGS"
12169fi
12170
12171if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12172	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12173		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12174	fi
12175	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12176	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12177$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12178if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12179  $as_echo_n "(cached) " >&6
12180else
12181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182/* end confdefs.h.  */
12183int i;
12184_ACEOF
12185if ac_fn_c_try_compile "$LINENO"; then :
12186  xorg_cv_cc_flag_unused_command_line_argument=yes
12187else
12188  xorg_cv_cc_flag_unused_command_line_argument=no
12189fi
12190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12191fi
12192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12193$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12194	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12195	CFLAGS="$xorg_testset_save_CFLAGS"
12196fi
12197
12198found="no"
12199
12200	if test $found = "no" ; then
12201		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12202			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12203		fi
12204
12205		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12206			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12207		fi
12208
12209		CFLAGS="$CFLAGS -Wmissing-declarations"
12210
12211		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
12212$as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
12213		cacheid=xorg_cv_cc_flag__Wmissing_declarations
12214		if eval \${$cacheid+:} false; then :
12215  $as_echo_n "(cached) " >&6
12216else
12217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12218/* end confdefs.h.  */
12219int i;
12220int
12221main ()
12222{
12223
12224  ;
12225  return 0;
12226}
12227_ACEOF
12228if ac_fn_c_try_link "$LINENO"; then :
12229  eval $cacheid=yes
12230else
12231  eval $cacheid=no
12232fi
12233rm -f core conftest.err conftest.$ac_objext \
12234    conftest$ac_exeext conftest.$ac_ext
12235fi
12236
12237
12238		CFLAGS="$xorg_testset_save_CFLAGS"
12239
12240		eval supported=\$$cacheid
12241		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12242$as_echo "$supported" >&6; }
12243		if test "$supported" = "yes" ; then
12244			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12245			found="yes"
12246		fi
12247	fi
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263xorg_testset_save_CFLAGS="$CFLAGS"
12264
12265if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12266	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12267	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12268$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12269if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12270  $as_echo_n "(cached) " >&6
12271else
12272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12273/* end confdefs.h.  */
12274int i;
12275_ACEOF
12276if ac_fn_c_try_compile "$LINENO"; then :
12277  xorg_cv_cc_flag_unknown_warning_option=yes
12278else
12279  xorg_cv_cc_flag_unknown_warning_option=no
12280fi
12281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12282fi
12283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12284$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12285	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12286	CFLAGS="$xorg_testset_save_CFLAGS"
12287fi
12288
12289if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12290	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12291		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12292	fi
12293	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12294	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12295$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12296if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12297  $as_echo_n "(cached) " >&6
12298else
12299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300/* end confdefs.h.  */
12301int i;
12302_ACEOF
12303if ac_fn_c_try_compile "$LINENO"; then :
12304  xorg_cv_cc_flag_unused_command_line_argument=yes
12305else
12306  xorg_cv_cc_flag_unused_command_line_argument=no
12307fi
12308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12309fi
12310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12311$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12312	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12313	CFLAGS="$xorg_testset_save_CFLAGS"
12314fi
12315
12316found="no"
12317
12318	if test $found = "no" ; then
12319		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12320			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12321		fi
12322
12323		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12324			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12325		fi
12326
12327		CFLAGS="$CFLAGS -Wformat=2"
12328
12329		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
12330$as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
12331		cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
12332		if eval \${$cacheid+:} false; then :
12333  $as_echo_n "(cached) " >&6
12334else
12335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336/* end confdefs.h.  */
12337int i;
12338int
12339main ()
12340{
12341
12342  ;
12343  return 0;
12344}
12345_ACEOF
12346if ac_fn_c_try_link "$LINENO"; then :
12347  eval $cacheid=yes
12348else
12349  eval $cacheid=no
12350fi
12351rm -f core conftest.err conftest.$ac_objext \
12352    conftest$ac_exeext conftest.$ac_ext
12353fi
12354
12355
12356		CFLAGS="$xorg_testset_save_CFLAGS"
12357
12358		eval supported=\$$cacheid
12359		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12360$as_echo "$supported" >&6; }
12361		if test "$supported" = "yes" ; then
12362			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12363			found="yes"
12364		fi
12365	fi
12366
12367	if test $found = "no" ; then
12368		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12369			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12370		fi
12371
12372		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12373			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12374		fi
12375
12376		CFLAGS="$CFLAGS -Wformat"
12377
12378		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
12379$as_echo_n "checking if $CC supports-Wformat... " >&6; }
12380		cacheid=xorg_cv_cc_flag__Wformat
12381		if eval \${$cacheid+:} false; then :
12382  $as_echo_n "(cached) " >&6
12383else
12384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385/* end confdefs.h.  */
12386int i;
12387int
12388main ()
12389{
12390
12391  ;
12392  return 0;
12393}
12394_ACEOF
12395if ac_fn_c_try_link "$LINENO"; then :
12396  eval $cacheid=yes
12397else
12398  eval $cacheid=no
12399fi
12400rm -f core conftest.err conftest.$ac_objext \
12401    conftest$ac_exeext conftest.$ac_ext
12402fi
12403
12404
12405		CFLAGS="$xorg_testset_save_CFLAGS"
12406
12407		eval supported=\$$cacheid
12408		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12409$as_echo "$supported" >&6; }
12410		if test "$supported" = "yes" ; then
12411			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12412			found="yes"
12413		fi
12414	fi
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432xorg_testset_save_CFLAGS="$CFLAGS"
12433
12434if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12435	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12436	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12437$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12438if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12439  $as_echo_n "(cached) " >&6
12440else
12441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12442/* end confdefs.h.  */
12443int i;
12444_ACEOF
12445if ac_fn_c_try_compile "$LINENO"; then :
12446  xorg_cv_cc_flag_unknown_warning_option=yes
12447else
12448  xorg_cv_cc_flag_unknown_warning_option=no
12449fi
12450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12451fi
12452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12453$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12454	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12455	CFLAGS="$xorg_testset_save_CFLAGS"
12456fi
12457
12458if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12459	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12460		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12461	fi
12462	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12463	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12464$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12465if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12466  $as_echo_n "(cached) " >&6
12467else
12468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12469/* end confdefs.h.  */
12470int i;
12471_ACEOF
12472if ac_fn_c_try_compile "$LINENO"; then :
12473  xorg_cv_cc_flag_unused_command_line_argument=yes
12474else
12475  xorg_cv_cc_flag_unused_command_line_argument=no
12476fi
12477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12478fi
12479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12480$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12481	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12482	CFLAGS="$xorg_testset_save_CFLAGS"
12483fi
12484
12485found="no"
12486
12487	if test $found = "no" ; then
12488		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12489			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12490		fi
12491
12492		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12493			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12494		fi
12495
12496		CFLAGS="$CFLAGS -Wstrict-prototypes"
12497
12498		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
12499$as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
12500		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12501		if eval \${$cacheid+:} false; then :
12502  $as_echo_n "(cached) " >&6
12503else
12504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12505/* end confdefs.h.  */
12506int i;
12507int
12508main ()
12509{
12510
12511  ;
12512  return 0;
12513}
12514_ACEOF
12515if ac_fn_c_try_link "$LINENO"; then :
12516  eval $cacheid=yes
12517else
12518  eval $cacheid=no
12519fi
12520rm -f core conftest.err conftest.$ac_objext \
12521    conftest$ac_exeext conftest.$ac_ext
12522fi
12523
12524
12525		CFLAGS="$xorg_testset_save_CFLAGS"
12526
12527		eval supported=\$$cacheid
12528		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12529$as_echo "$supported" >&6; }
12530		if test "$supported" = "yes" ; then
12531			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12532			found="yes"
12533		fi
12534	fi
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550xorg_testset_save_CFLAGS="$CFLAGS"
12551
12552if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12553	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12554	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12555$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12556if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12557  $as_echo_n "(cached) " >&6
12558else
12559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560/* end confdefs.h.  */
12561int i;
12562_ACEOF
12563if ac_fn_c_try_compile "$LINENO"; then :
12564  xorg_cv_cc_flag_unknown_warning_option=yes
12565else
12566  xorg_cv_cc_flag_unknown_warning_option=no
12567fi
12568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12569fi
12570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12571$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12572	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12573	CFLAGS="$xorg_testset_save_CFLAGS"
12574fi
12575
12576if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12577	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12578		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12579	fi
12580	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12581	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12582$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12583if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12584  $as_echo_n "(cached) " >&6
12585else
12586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12587/* end confdefs.h.  */
12588int i;
12589_ACEOF
12590if ac_fn_c_try_compile "$LINENO"; then :
12591  xorg_cv_cc_flag_unused_command_line_argument=yes
12592else
12593  xorg_cv_cc_flag_unused_command_line_argument=no
12594fi
12595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12596fi
12597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12598$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12599	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12600	CFLAGS="$xorg_testset_save_CFLAGS"
12601fi
12602
12603found="no"
12604
12605	if test $found = "no" ; then
12606		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12607			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12608		fi
12609
12610		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12611			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12612		fi
12613
12614		CFLAGS="$CFLAGS -Wmissing-prototypes"
12615
12616		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
12617$as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
12618		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12619		if eval \${$cacheid+:} false; then :
12620  $as_echo_n "(cached) " >&6
12621else
12622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12623/* end confdefs.h.  */
12624int i;
12625int
12626main ()
12627{
12628
12629  ;
12630  return 0;
12631}
12632_ACEOF
12633if ac_fn_c_try_link "$LINENO"; then :
12634  eval $cacheid=yes
12635else
12636  eval $cacheid=no
12637fi
12638rm -f core conftest.err conftest.$ac_objext \
12639    conftest$ac_exeext conftest.$ac_ext
12640fi
12641
12642
12643		CFLAGS="$xorg_testset_save_CFLAGS"
12644
12645		eval supported=\$$cacheid
12646		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12647$as_echo "$supported" >&6; }
12648		if test "$supported" = "yes" ; then
12649			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12650			found="yes"
12651		fi
12652	fi
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668xorg_testset_save_CFLAGS="$CFLAGS"
12669
12670if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12671	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12672	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12673$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12674if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12675  $as_echo_n "(cached) " >&6
12676else
12677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12678/* end confdefs.h.  */
12679int i;
12680_ACEOF
12681if ac_fn_c_try_compile "$LINENO"; then :
12682  xorg_cv_cc_flag_unknown_warning_option=yes
12683else
12684  xorg_cv_cc_flag_unknown_warning_option=no
12685fi
12686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12687fi
12688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12689$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12690	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12691	CFLAGS="$xorg_testset_save_CFLAGS"
12692fi
12693
12694if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12695	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12696		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12697	fi
12698	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12699	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12700$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12701if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12702  $as_echo_n "(cached) " >&6
12703else
12704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12705/* end confdefs.h.  */
12706int i;
12707_ACEOF
12708if ac_fn_c_try_compile "$LINENO"; then :
12709  xorg_cv_cc_flag_unused_command_line_argument=yes
12710else
12711  xorg_cv_cc_flag_unused_command_line_argument=no
12712fi
12713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12714fi
12715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12716$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12717	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12718	CFLAGS="$xorg_testset_save_CFLAGS"
12719fi
12720
12721found="no"
12722
12723	if test $found = "no" ; then
12724		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12725			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12726		fi
12727
12728		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12729			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12730		fi
12731
12732		CFLAGS="$CFLAGS -Wnested-externs"
12733
12734		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
12735$as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
12736		cacheid=xorg_cv_cc_flag__Wnested_externs
12737		if eval \${$cacheid+:} false; then :
12738  $as_echo_n "(cached) " >&6
12739else
12740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741/* end confdefs.h.  */
12742int i;
12743int
12744main ()
12745{
12746
12747  ;
12748  return 0;
12749}
12750_ACEOF
12751if ac_fn_c_try_link "$LINENO"; then :
12752  eval $cacheid=yes
12753else
12754  eval $cacheid=no
12755fi
12756rm -f core conftest.err conftest.$ac_objext \
12757    conftest$ac_exeext conftest.$ac_ext
12758fi
12759
12760
12761		CFLAGS="$xorg_testset_save_CFLAGS"
12762
12763		eval supported=\$$cacheid
12764		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12765$as_echo "$supported" >&6; }
12766		if test "$supported" = "yes" ; then
12767			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12768			found="yes"
12769		fi
12770	fi
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786xorg_testset_save_CFLAGS="$CFLAGS"
12787
12788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12789	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12790	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12791$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12792if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12793  $as_echo_n "(cached) " >&6
12794else
12795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12796/* end confdefs.h.  */
12797int i;
12798_ACEOF
12799if ac_fn_c_try_compile "$LINENO"; then :
12800  xorg_cv_cc_flag_unknown_warning_option=yes
12801else
12802  xorg_cv_cc_flag_unknown_warning_option=no
12803fi
12804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12805fi
12806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12807$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12808	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12809	CFLAGS="$xorg_testset_save_CFLAGS"
12810fi
12811
12812if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12813	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12814		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12815	fi
12816	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12817	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12818$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12819if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12820  $as_echo_n "(cached) " >&6
12821else
12822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823/* end confdefs.h.  */
12824int i;
12825_ACEOF
12826if ac_fn_c_try_compile "$LINENO"; then :
12827  xorg_cv_cc_flag_unused_command_line_argument=yes
12828else
12829  xorg_cv_cc_flag_unused_command_line_argument=no
12830fi
12831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12832fi
12833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12834$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12835	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12836	CFLAGS="$xorg_testset_save_CFLAGS"
12837fi
12838
12839found="no"
12840
12841	if test $found = "no" ; then
12842		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12843			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12844		fi
12845
12846		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12847			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12848		fi
12849
12850		CFLAGS="$CFLAGS -Wbad-function-cast"
12851
12852		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
12853$as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
12854		cacheid=xorg_cv_cc_flag__Wbad_function_cast
12855		if eval \${$cacheid+:} false; then :
12856  $as_echo_n "(cached) " >&6
12857else
12858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12859/* end confdefs.h.  */
12860int i;
12861int
12862main ()
12863{
12864
12865  ;
12866  return 0;
12867}
12868_ACEOF
12869if ac_fn_c_try_link "$LINENO"; then :
12870  eval $cacheid=yes
12871else
12872  eval $cacheid=no
12873fi
12874rm -f core conftest.err conftest.$ac_objext \
12875    conftest$ac_exeext conftest.$ac_ext
12876fi
12877
12878
12879		CFLAGS="$xorg_testset_save_CFLAGS"
12880
12881		eval supported=\$$cacheid
12882		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12883$as_echo "$supported" >&6; }
12884		if test "$supported" = "yes" ; then
12885			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12886			found="yes"
12887		fi
12888	fi
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904xorg_testset_save_CFLAGS="$CFLAGS"
12905
12906if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12907	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12908	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12909$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12910if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12911  $as_echo_n "(cached) " >&6
12912else
12913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914/* end confdefs.h.  */
12915int i;
12916_ACEOF
12917if ac_fn_c_try_compile "$LINENO"; then :
12918  xorg_cv_cc_flag_unknown_warning_option=yes
12919else
12920  xorg_cv_cc_flag_unknown_warning_option=no
12921fi
12922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12923fi
12924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12925$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12926	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12927	CFLAGS="$xorg_testset_save_CFLAGS"
12928fi
12929
12930if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12931	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12932		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12933	fi
12934	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12935	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12936$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12937if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12938  $as_echo_n "(cached) " >&6
12939else
12940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12941/* end confdefs.h.  */
12942int i;
12943_ACEOF
12944if ac_fn_c_try_compile "$LINENO"; then :
12945  xorg_cv_cc_flag_unused_command_line_argument=yes
12946else
12947  xorg_cv_cc_flag_unused_command_line_argument=no
12948fi
12949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12950fi
12951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12952$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12953	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12954	CFLAGS="$xorg_testset_save_CFLAGS"
12955fi
12956
12957found="no"
12958
12959	if test $found = "no" ; then
12960		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12961			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12962		fi
12963
12964		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12965			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12966		fi
12967
12968		CFLAGS="$CFLAGS -Wold-style-definition"
12969
12970		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
12971$as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
12972		cacheid=xorg_cv_cc_flag__Wold_style_definition
12973		if eval \${$cacheid+:} false; then :
12974  $as_echo_n "(cached) " >&6
12975else
12976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12977/* end confdefs.h.  */
12978int i;
12979int
12980main ()
12981{
12982
12983  ;
12984  return 0;
12985}
12986_ACEOF
12987if ac_fn_c_try_link "$LINENO"; then :
12988  eval $cacheid=yes
12989else
12990  eval $cacheid=no
12991fi
12992rm -f core conftest.err conftest.$ac_objext \
12993    conftest$ac_exeext conftest.$ac_ext
12994fi
12995
12996
12997		CFLAGS="$xorg_testset_save_CFLAGS"
12998
12999		eval supported=\$$cacheid
13000		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13001$as_echo "$supported" >&6; }
13002		if test "$supported" = "yes" ; then
13003			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13004			found="yes"
13005		fi
13006	fi
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022xorg_testset_save_CFLAGS="$CFLAGS"
13023
13024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13025	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13026	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13027$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13028if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13029  $as_echo_n "(cached) " >&6
13030else
13031  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032/* end confdefs.h.  */
13033int i;
13034_ACEOF
13035if ac_fn_c_try_compile "$LINENO"; then :
13036  xorg_cv_cc_flag_unknown_warning_option=yes
13037else
13038  xorg_cv_cc_flag_unknown_warning_option=no
13039fi
13040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13041fi
13042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13043$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13044	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13045	CFLAGS="$xorg_testset_save_CFLAGS"
13046fi
13047
13048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13049	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13050		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13051	fi
13052	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13053	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13054$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13055if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13056  $as_echo_n "(cached) " >&6
13057else
13058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059/* end confdefs.h.  */
13060int i;
13061_ACEOF
13062if ac_fn_c_try_compile "$LINENO"; then :
13063  xorg_cv_cc_flag_unused_command_line_argument=yes
13064else
13065  xorg_cv_cc_flag_unused_command_line_argument=no
13066fi
13067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13068fi
13069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13070$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13071	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13072	CFLAGS="$xorg_testset_save_CFLAGS"
13073fi
13074
13075found="no"
13076
13077	if test $found = "no" ; then
13078		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13079			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13080		fi
13081
13082		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13083			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13084		fi
13085
13086		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13087
13088		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
13089$as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
13090		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13091		if eval \${$cacheid+:} false; then :
13092  $as_echo_n "(cached) " >&6
13093else
13094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13095/* end confdefs.h.  */
13096int i;
13097int
13098main ()
13099{
13100
13101  ;
13102  return 0;
13103}
13104_ACEOF
13105if ac_fn_c_try_link "$LINENO"; then :
13106  eval $cacheid=yes
13107else
13108  eval $cacheid=no
13109fi
13110rm -f core conftest.err conftest.$ac_objext \
13111    conftest$ac_exeext conftest.$ac_ext
13112fi
13113
13114
13115		CFLAGS="$xorg_testset_save_CFLAGS"
13116
13117		eval supported=\$$cacheid
13118		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13119$as_echo "$supported" >&6; }
13120		if test "$supported" = "yes" ; then
13121			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13122			found="yes"
13123		fi
13124	fi
13125
13126
13127
13128
13129
13130# This chunk adds additional warnings that could catch undesired effects.
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144xorg_testset_save_CFLAGS="$CFLAGS"
13145
13146if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13147	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13148	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13149$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13150if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13151  $as_echo_n "(cached) " >&6
13152else
13153  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13154/* end confdefs.h.  */
13155int i;
13156_ACEOF
13157if ac_fn_c_try_compile "$LINENO"; then :
13158  xorg_cv_cc_flag_unknown_warning_option=yes
13159else
13160  xorg_cv_cc_flag_unknown_warning_option=no
13161fi
13162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13163fi
13164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13165$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13166	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13167	CFLAGS="$xorg_testset_save_CFLAGS"
13168fi
13169
13170if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13171	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13172		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13173	fi
13174	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13175	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13176$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13177if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13178  $as_echo_n "(cached) " >&6
13179else
13180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13181/* end confdefs.h.  */
13182int i;
13183_ACEOF
13184if ac_fn_c_try_compile "$LINENO"; then :
13185  xorg_cv_cc_flag_unused_command_line_argument=yes
13186else
13187  xorg_cv_cc_flag_unused_command_line_argument=no
13188fi
13189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13190fi
13191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13192$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13193	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13194	CFLAGS="$xorg_testset_save_CFLAGS"
13195fi
13196
13197found="no"
13198
13199	if test $found = "no" ; then
13200		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13201			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13202		fi
13203
13204		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13205			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13206		fi
13207
13208		CFLAGS="$CFLAGS -Wunused"
13209
13210		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
13211$as_echo_n "checking if $CC supports-Wunused... " >&6; }
13212		cacheid=xorg_cv_cc_flag__Wunused
13213		if eval \${$cacheid+:} false; then :
13214  $as_echo_n "(cached) " >&6
13215else
13216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13217/* end confdefs.h.  */
13218int i;
13219int
13220main ()
13221{
13222
13223  ;
13224  return 0;
13225}
13226_ACEOF
13227if ac_fn_c_try_link "$LINENO"; then :
13228  eval $cacheid=yes
13229else
13230  eval $cacheid=no
13231fi
13232rm -f core conftest.err conftest.$ac_objext \
13233    conftest$ac_exeext conftest.$ac_ext
13234fi
13235
13236
13237		CFLAGS="$xorg_testset_save_CFLAGS"
13238
13239		eval supported=\$$cacheid
13240		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13241$as_echo "$supported" >&6; }
13242		if test "$supported" = "yes" ; then
13243			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13244			found="yes"
13245		fi
13246	fi
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262xorg_testset_save_CFLAGS="$CFLAGS"
13263
13264if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13265	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13266	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13267$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13268if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13269  $as_echo_n "(cached) " >&6
13270else
13271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272/* end confdefs.h.  */
13273int i;
13274_ACEOF
13275if ac_fn_c_try_compile "$LINENO"; then :
13276  xorg_cv_cc_flag_unknown_warning_option=yes
13277else
13278  xorg_cv_cc_flag_unknown_warning_option=no
13279fi
13280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13281fi
13282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13283$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13284	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13285	CFLAGS="$xorg_testset_save_CFLAGS"
13286fi
13287
13288if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13289	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13290		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13291	fi
13292	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13293	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13294$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13295if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13296  $as_echo_n "(cached) " >&6
13297else
13298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299/* end confdefs.h.  */
13300int i;
13301_ACEOF
13302if ac_fn_c_try_compile "$LINENO"; then :
13303  xorg_cv_cc_flag_unused_command_line_argument=yes
13304else
13305  xorg_cv_cc_flag_unused_command_line_argument=no
13306fi
13307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13308fi
13309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13310$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13311	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13312	CFLAGS="$xorg_testset_save_CFLAGS"
13313fi
13314
13315found="no"
13316
13317	if test $found = "no" ; then
13318		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13319			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13320		fi
13321
13322		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13323			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13324		fi
13325
13326		CFLAGS="$CFLAGS -Wuninitialized"
13327
13328		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
13329$as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
13330		cacheid=xorg_cv_cc_flag__Wuninitialized
13331		if eval \${$cacheid+:} false; then :
13332  $as_echo_n "(cached) " >&6
13333else
13334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335/* end confdefs.h.  */
13336int i;
13337int
13338main ()
13339{
13340
13341  ;
13342  return 0;
13343}
13344_ACEOF
13345if ac_fn_c_try_link "$LINENO"; then :
13346  eval $cacheid=yes
13347else
13348  eval $cacheid=no
13349fi
13350rm -f core conftest.err conftest.$ac_objext \
13351    conftest$ac_exeext conftest.$ac_ext
13352fi
13353
13354
13355		CFLAGS="$xorg_testset_save_CFLAGS"
13356
13357		eval supported=\$$cacheid
13358		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13359$as_echo "$supported" >&6; }
13360		if test "$supported" = "yes" ; then
13361			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13362			found="yes"
13363		fi
13364	fi
13365
13366
13367
13368
13369
13370
13371
13372
13373
13374
13375
13376
13377
13378
13379
13380xorg_testset_save_CFLAGS="$CFLAGS"
13381
13382if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13383	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13384	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13385$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13386if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13387  $as_echo_n "(cached) " >&6
13388else
13389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13390/* end confdefs.h.  */
13391int i;
13392_ACEOF
13393if ac_fn_c_try_compile "$LINENO"; then :
13394  xorg_cv_cc_flag_unknown_warning_option=yes
13395else
13396  xorg_cv_cc_flag_unknown_warning_option=no
13397fi
13398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13399fi
13400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13401$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13402	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13403	CFLAGS="$xorg_testset_save_CFLAGS"
13404fi
13405
13406if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13407	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13408		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13409	fi
13410	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13411	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13412$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13413if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13414  $as_echo_n "(cached) " >&6
13415else
13416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417/* end confdefs.h.  */
13418int i;
13419_ACEOF
13420if ac_fn_c_try_compile "$LINENO"; then :
13421  xorg_cv_cc_flag_unused_command_line_argument=yes
13422else
13423  xorg_cv_cc_flag_unused_command_line_argument=no
13424fi
13425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13426fi
13427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13428$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13429	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13430	CFLAGS="$xorg_testset_save_CFLAGS"
13431fi
13432
13433found="no"
13434
13435	if test $found = "no" ; then
13436		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13437			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13438		fi
13439
13440		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13441			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13442		fi
13443
13444		CFLAGS="$CFLAGS -Wshadow"
13445
13446		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
13447$as_echo_n "checking if $CC supports-Wshadow... " >&6; }
13448		cacheid=xorg_cv_cc_flag__Wshadow
13449		if eval \${$cacheid+:} false; then :
13450  $as_echo_n "(cached) " >&6
13451else
13452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13453/* end confdefs.h.  */
13454int i;
13455int
13456main ()
13457{
13458
13459  ;
13460  return 0;
13461}
13462_ACEOF
13463if ac_fn_c_try_link "$LINENO"; then :
13464  eval $cacheid=yes
13465else
13466  eval $cacheid=no
13467fi
13468rm -f core conftest.err conftest.$ac_objext \
13469    conftest$ac_exeext conftest.$ac_ext
13470fi
13471
13472
13473		CFLAGS="$xorg_testset_save_CFLAGS"
13474
13475		eval supported=\$$cacheid
13476		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13477$as_echo "$supported" >&6; }
13478		if test "$supported" = "yes" ; then
13479			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13480			found="yes"
13481		fi
13482	fi
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498xorg_testset_save_CFLAGS="$CFLAGS"
13499
13500if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13501	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13502	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13503$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13504if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13505  $as_echo_n "(cached) " >&6
13506else
13507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13508/* end confdefs.h.  */
13509int i;
13510_ACEOF
13511if ac_fn_c_try_compile "$LINENO"; then :
13512  xorg_cv_cc_flag_unknown_warning_option=yes
13513else
13514  xorg_cv_cc_flag_unknown_warning_option=no
13515fi
13516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13517fi
13518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13519$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13520	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13521	CFLAGS="$xorg_testset_save_CFLAGS"
13522fi
13523
13524if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13525	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13526		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13527	fi
13528	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13529	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13530$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13531if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13532  $as_echo_n "(cached) " >&6
13533else
13534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13535/* end confdefs.h.  */
13536int i;
13537_ACEOF
13538if ac_fn_c_try_compile "$LINENO"; then :
13539  xorg_cv_cc_flag_unused_command_line_argument=yes
13540else
13541  xorg_cv_cc_flag_unused_command_line_argument=no
13542fi
13543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13544fi
13545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13546$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13547	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13548	CFLAGS="$xorg_testset_save_CFLAGS"
13549fi
13550
13551found="no"
13552
13553	if test $found = "no" ; then
13554		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13555			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13556		fi
13557
13558		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13559			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13560		fi
13561
13562		CFLAGS="$CFLAGS -Wcast-qual"
13563
13564		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
13565$as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
13566		cacheid=xorg_cv_cc_flag__Wcast_qual
13567		if eval \${$cacheid+:} false; then :
13568  $as_echo_n "(cached) " >&6
13569else
13570  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13571/* end confdefs.h.  */
13572int i;
13573int
13574main ()
13575{
13576
13577  ;
13578  return 0;
13579}
13580_ACEOF
13581if ac_fn_c_try_link "$LINENO"; then :
13582  eval $cacheid=yes
13583else
13584  eval $cacheid=no
13585fi
13586rm -f core conftest.err conftest.$ac_objext \
13587    conftest$ac_exeext conftest.$ac_ext
13588fi
13589
13590
13591		CFLAGS="$xorg_testset_save_CFLAGS"
13592
13593		eval supported=\$$cacheid
13594		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13595$as_echo "$supported" >&6; }
13596		if test "$supported" = "yes" ; then
13597			BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13598			found="yes"
13599		fi
13600	fi
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616xorg_testset_save_CFLAGS="$CFLAGS"
13617
13618if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13619	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13620	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13621$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13622if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13623  $as_echo_n "(cached) " >&6
13624else
13625  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626/* end confdefs.h.  */
13627int i;
13628_ACEOF
13629if ac_fn_c_try_compile "$LINENO"; then :
13630  xorg_cv_cc_flag_unknown_warning_option=yes
13631else
13632  xorg_cv_cc_flag_unknown_warning_option=no
13633fi
13634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13635fi
13636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13637$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13638	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13639	CFLAGS="$xorg_testset_save_CFLAGS"
13640fi
13641
13642if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13643	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13644		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13645	fi
13646	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13647	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13648$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13649if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13650  $as_echo_n "(cached) " >&6
13651else
13652  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13653/* end confdefs.h.  */
13654int i;
13655_ACEOF
13656if ac_fn_c_try_compile "$LINENO"; then :
13657  xorg_cv_cc_flag_unused_command_line_argument=yes
13658else
13659  xorg_cv_cc_flag_unused_command_line_argument=no
13660fi
13661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13662fi
13663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13664$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13665	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13666	CFLAGS="$xorg_testset_save_CFLAGS"
13667fi
13668
13669found="no"
13670
13671	if test $found = "no" ; then
13672		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13673			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13674		fi
13675
13676		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13677			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13678		fi
13679
13680		CFLAGS="$CFLAGS -Wmissing-noreturn"
13681
13682		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
13683$as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
13684		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13685		if eval \${$cacheid+:} false; then :
13686  $as_echo_n "(cached) " >&6
13687else
13688  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689/* end confdefs.h.  */
13690int i;
13691int
13692main ()
13693{
13694
13695  ;
13696  return 0;
13697}
13698_ACEOF
13699if ac_fn_c_try_link "$LINENO"; then :
13700  eval $cacheid=yes
13701else
13702  eval $cacheid=no
13703fi
13704rm -f core conftest.err conftest.$ac_objext \
13705    conftest$ac_exeext conftest.$ac_ext
13706fi
13707
13708
13709		CFLAGS="$xorg_testset_save_CFLAGS"
13710
13711		eval supported=\$$cacheid
13712		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13713$as_echo "$supported" >&6; }
13714		if test "$supported" = "yes" ; then
13715			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13716			found="yes"
13717		fi
13718	fi
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734xorg_testset_save_CFLAGS="$CFLAGS"
13735
13736if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13737	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13738	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13739$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13740if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13741  $as_echo_n "(cached) " >&6
13742else
13743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744/* end confdefs.h.  */
13745int i;
13746_ACEOF
13747if ac_fn_c_try_compile "$LINENO"; then :
13748  xorg_cv_cc_flag_unknown_warning_option=yes
13749else
13750  xorg_cv_cc_flag_unknown_warning_option=no
13751fi
13752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13753fi
13754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13755$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13756	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13757	CFLAGS="$xorg_testset_save_CFLAGS"
13758fi
13759
13760if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13761	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13762		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13763	fi
13764	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13765	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13766$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13767if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13768  $as_echo_n "(cached) " >&6
13769else
13770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13771/* end confdefs.h.  */
13772int i;
13773_ACEOF
13774if ac_fn_c_try_compile "$LINENO"; then :
13775  xorg_cv_cc_flag_unused_command_line_argument=yes
13776else
13777  xorg_cv_cc_flag_unused_command_line_argument=no
13778fi
13779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780fi
13781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13782$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13783	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13784	CFLAGS="$xorg_testset_save_CFLAGS"
13785fi
13786
13787found="no"
13788
13789	if test $found = "no" ; then
13790		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13791			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13792		fi
13793
13794		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13795			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13796		fi
13797
13798		CFLAGS="$CFLAGS -Wmissing-format-attribute"
13799
13800		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
13801$as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
13802		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13803		if eval \${$cacheid+:} false; then :
13804  $as_echo_n "(cached) " >&6
13805else
13806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807/* end confdefs.h.  */
13808int i;
13809int
13810main ()
13811{
13812
13813  ;
13814  return 0;
13815}
13816_ACEOF
13817if ac_fn_c_try_link "$LINENO"; then :
13818  eval $cacheid=yes
13819else
13820  eval $cacheid=no
13821fi
13822rm -f core conftest.err conftest.$ac_objext \
13823    conftest$ac_exeext conftest.$ac_ext
13824fi
13825
13826
13827		CFLAGS="$xorg_testset_save_CFLAGS"
13828
13829		eval supported=\$$cacheid
13830		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13831$as_echo "$supported" >&6; }
13832		if test "$supported" = "yes" ; then
13833			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13834			found="yes"
13835		fi
13836	fi
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852xorg_testset_save_CFLAGS="$CFLAGS"
13853
13854if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13855	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13856	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13857$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13858if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13859  $as_echo_n "(cached) " >&6
13860else
13861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862/* end confdefs.h.  */
13863int i;
13864_ACEOF
13865if ac_fn_c_try_compile "$LINENO"; then :
13866  xorg_cv_cc_flag_unknown_warning_option=yes
13867else
13868  xorg_cv_cc_flag_unknown_warning_option=no
13869fi
13870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13871fi
13872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13873$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13874	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13875	CFLAGS="$xorg_testset_save_CFLAGS"
13876fi
13877
13878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13879	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13880		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13881	fi
13882	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13883	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13884$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13885if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13886  $as_echo_n "(cached) " >&6
13887else
13888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13889/* end confdefs.h.  */
13890int i;
13891_ACEOF
13892if ac_fn_c_try_compile "$LINENO"; then :
13893  xorg_cv_cc_flag_unused_command_line_argument=yes
13894else
13895  xorg_cv_cc_flag_unused_command_line_argument=no
13896fi
13897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13898fi
13899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13900$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13901	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13902	CFLAGS="$xorg_testset_save_CFLAGS"
13903fi
13904
13905found="no"
13906
13907	if test $found = "no" ; then
13908		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13909			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13910		fi
13911
13912		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13913			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13914		fi
13915
13916		CFLAGS="$CFLAGS -Wredundant-decls"
13917
13918		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
13919$as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
13920		cacheid=xorg_cv_cc_flag__Wredundant_decls
13921		if eval \${$cacheid+:} false; then :
13922  $as_echo_n "(cached) " >&6
13923else
13924  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13925/* end confdefs.h.  */
13926int i;
13927int
13928main ()
13929{
13930
13931  ;
13932  return 0;
13933}
13934_ACEOF
13935if ac_fn_c_try_link "$LINENO"; then :
13936  eval $cacheid=yes
13937else
13938  eval $cacheid=no
13939fi
13940rm -f core conftest.err conftest.$ac_objext \
13941    conftest$ac_exeext conftest.$ac_ext
13942fi
13943
13944
13945		CFLAGS="$xorg_testset_save_CFLAGS"
13946
13947		eval supported=\$$cacheid
13948		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13949$as_echo "$supported" >&6; }
13950		if test "$supported" = "yes" ; then
13951			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13952			found="yes"
13953		fi
13954	fi
13955
13956
13957
13958# These are currently disabled because they are noisy.  They will be enabled
13959# in the future once the codebase is sufficiently modernized to silence
13960# them.  For now, I don't want them to drown out the other warnings.
13961# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13962# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13963# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13964
13965# Turn some warnings into errors, so we don't accidently get successful builds
13966# when there are problems that should be fixed.
13967
13968if test "x$SELECTIVE_WERROR" = "xyes" ; then
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982xorg_testset_save_CFLAGS="$CFLAGS"
13983
13984if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13985	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13986	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13987$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13988if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13989  $as_echo_n "(cached) " >&6
13990else
13991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992/* end confdefs.h.  */
13993int i;
13994_ACEOF
13995if ac_fn_c_try_compile "$LINENO"; then :
13996  xorg_cv_cc_flag_unknown_warning_option=yes
13997else
13998  xorg_cv_cc_flag_unknown_warning_option=no
13999fi
14000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14001fi
14002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14003$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14004	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14005	CFLAGS="$xorg_testset_save_CFLAGS"
14006fi
14007
14008if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14009	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14010		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14011	fi
14012	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14013	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14014$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14015if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14016  $as_echo_n "(cached) " >&6
14017else
14018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14019/* end confdefs.h.  */
14020int i;
14021_ACEOF
14022if ac_fn_c_try_compile "$LINENO"; then :
14023  xorg_cv_cc_flag_unused_command_line_argument=yes
14024else
14025  xorg_cv_cc_flag_unused_command_line_argument=no
14026fi
14027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14028fi
14029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14030$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14031	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14032	CFLAGS="$xorg_testset_save_CFLAGS"
14033fi
14034
14035found="no"
14036
14037	if test $found = "no" ; then
14038		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14039			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14040		fi
14041
14042		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14043			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14044		fi
14045
14046		CFLAGS="$CFLAGS -Werror=implicit"
14047
14048		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
14049$as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
14050		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
14051		if eval \${$cacheid+:} false; then :
14052  $as_echo_n "(cached) " >&6
14053else
14054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14055/* end confdefs.h.  */
14056int i;
14057int
14058main ()
14059{
14060
14061  ;
14062  return 0;
14063}
14064_ACEOF
14065if ac_fn_c_try_link "$LINENO"; then :
14066  eval $cacheid=yes
14067else
14068  eval $cacheid=no
14069fi
14070rm -f core conftest.err conftest.$ac_objext \
14071    conftest$ac_exeext conftest.$ac_ext
14072fi
14073
14074
14075		CFLAGS="$xorg_testset_save_CFLAGS"
14076
14077		eval supported=\$$cacheid
14078		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14079$as_echo "$supported" >&6; }
14080		if test "$supported" = "yes" ; then
14081			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14082			found="yes"
14083		fi
14084	fi
14085
14086	if test $found = "no" ; then
14087		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14088			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14089		fi
14090
14091		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14092			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14093		fi
14094
14095		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14096
14097		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14098$as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14099		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
14100		if eval \${$cacheid+:} false; then :
14101  $as_echo_n "(cached) " >&6
14102else
14103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14104/* end confdefs.h.  */
14105int i;
14106int
14107main ()
14108{
14109
14110  ;
14111  return 0;
14112}
14113_ACEOF
14114if ac_fn_c_try_link "$LINENO"; then :
14115  eval $cacheid=yes
14116else
14117  eval $cacheid=no
14118fi
14119rm -f core conftest.err conftest.$ac_objext \
14120    conftest$ac_exeext conftest.$ac_ext
14121fi
14122
14123
14124		CFLAGS="$xorg_testset_save_CFLAGS"
14125
14126		eval supported=\$$cacheid
14127		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14128$as_echo "$supported" >&6; }
14129		if test "$supported" = "yes" ; then
14130			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14131			found="yes"
14132		fi
14133	fi
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149xorg_testset_save_CFLAGS="$CFLAGS"
14150
14151if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14152	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14153	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14154$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14155if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14156  $as_echo_n "(cached) " >&6
14157else
14158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14159/* end confdefs.h.  */
14160int i;
14161_ACEOF
14162if ac_fn_c_try_compile "$LINENO"; then :
14163  xorg_cv_cc_flag_unknown_warning_option=yes
14164else
14165  xorg_cv_cc_flag_unknown_warning_option=no
14166fi
14167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14168fi
14169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14170$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14171	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14172	CFLAGS="$xorg_testset_save_CFLAGS"
14173fi
14174
14175if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14176	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14177		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14178	fi
14179	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14180	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14181$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14182if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14183  $as_echo_n "(cached) " >&6
14184else
14185  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14186/* end confdefs.h.  */
14187int i;
14188_ACEOF
14189if ac_fn_c_try_compile "$LINENO"; then :
14190  xorg_cv_cc_flag_unused_command_line_argument=yes
14191else
14192  xorg_cv_cc_flag_unused_command_line_argument=no
14193fi
14194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14195fi
14196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14197$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14198	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14199	CFLAGS="$xorg_testset_save_CFLAGS"
14200fi
14201
14202found="no"
14203
14204	if test $found = "no" ; then
14205		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14206			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14207		fi
14208
14209		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14210			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14211		fi
14212
14213		CFLAGS="$CFLAGS -Werror=nonnull"
14214
14215		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
14216$as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
14217		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
14218		if eval \${$cacheid+:} false; then :
14219  $as_echo_n "(cached) " >&6
14220else
14221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14222/* end confdefs.h.  */
14223int i;
14224int
14225main ()
14226{
14227
14228  ;
14229  return 0;
14230}
14231_ACEOF
14232if ac_fn_c_try_link "$LINENO"; then :
14233  eval $cacheid=yes
14234else
14235  eval $cacheid=no
14236fi
14237rm -f core conftest.err conftest.$ac_objext \
14238    conftest$ac_exeext conftest.$ac_ext
14239fi
14240
14241
14242		CFLAGS="$xorg_testset_save_CFLAGS"
14243
14244		eval supported=\$$cacheid
14245		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14246$as_echo "$supported" >&6; }
14247		if test "$supported" = "yes" ; then
14248			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14249			found="yes"
14250		fi
14251	fi
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267xorg_testset_save_CFLAGS="$CFLAGS"
14268
14269if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14270	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14271	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14272$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14273if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14274  $as_echo_n "(cached) " >&6
14275else
14276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14277/* end confdefs.h.  */
14278int i;
14279_ACEOF
14280if ac_fn_c_try_compile "$LINENO"; then :
14281  xorg_cv_cc_flag_unknown_warning_option=yes
14282else
14283  xorg_cv_cc_flag_unknown_warning_option=no
14284fi
14285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14286fi
14287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14288$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14289	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14290	CFLAGS="$xorg_testset_save_CFLAGS"
14291fi
14292
14293if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14294	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14295		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14296	fi
14297	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14298	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14299$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14300if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14301  $as_echo_n "(cached) " >&6
14302else
14303  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14304/* end confdefs.h.  */
14305int i;
14306_ACEOF
14307if ac_fn_c_try_compile "$LINENO"; then :
14308  xorg_cv_cc_flag_unused_command_line_argument=yes
14309else
14310  xorg_cv_cc_flag_unused_command_line_argument=no
14311fi
14312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14313fi
14314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14315$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14316	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14317	CFLAGS="$xorg_testset_save_CFLAGS"
14318fi
14319
14320found="no"
14321
14322	if test $found = "no" ; then
14323		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14324			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14325		fi
14326
14327		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14328			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14329		fi
14330
14331		CFLAGS="$CFLAGS -Werror=init-self"
14332
14333		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
14334$as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
14335		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
14336		if eval \${$cacheid+:} false; then :
14337  $as_echo_n "(cached) " >&6
14338else
14339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14340/* end confdefs.h.  */
14341int i;
14342int
14343main ()
14344{
14345
14346  ;
14347  return 0;
14348}
14349_ACEOF
14350if ac_fn_c_try_link "$LINENO"; then :
14351  eval $cacheid=yes
14352else
14353  eval $cacheid=no
14354fi
14355rm -f core conftest.err conftest.$ac_objext \
14356    conftest$ac_exeext conftest.$ac_ext
14357fi
14358
14359
14360		CFLAGS="$xorg_testset_save_CFLAGS"
14361
14362		eval supported=\$$cacheid
14363		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14364$as_echo "$supported" >&6; }
14365		if test "$supported" = "yes" ; then
14366			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14367			found="yes"
14368		fi
14369	fi
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385xorg_testset_save_CFLAGS="$CFLAGS"
14386
14387if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14388	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14389	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14390$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14391if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14392  $as_echo_n "(cached) " >&6
14393else
14394  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14395/* end confdefs.h.  */
14396int i;
14397_ACEOF
14398if ac_fn_c_try_compile "$LINENO"; then :
14399  xorg_cv_cc_flag_unknown_warning_option=yes
14400else
14401  xorg_cv_cc_flag_unknown_warning_option=no
14402fi
14403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14404fi
14405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14406$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14407	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14408	CFLAGS="$xorg_testset_save_CFLAGS"
14409fi
14410
14411if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14412	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14413		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14414	fi
14415	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14416	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14417$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14418if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14419  $as_echo_n "(cached) " >&6
14420else
14421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14422/* end confdefs.h.  */
14423int i;
14424_ACEOF
14425if ac_fn_c_try_compile "$LINENO"; then :
14426  xorg_cv_cc_flag_unused_command_line_argument=yes
14427else
14428  xorg_cv_cc_flag_unused_command_line_argument=no
14429fi
14430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14431fi
14432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14433$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14434	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14435	CFLAGS="$xorg_testset_save_CFLAGS"
14436fi
14437
14438found="no"
14439
14440	if test $found = "no" ; then
14441		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14442			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14443		fi
14444
14445		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14446			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14447		fi
14448
14449		CFLAGS="$CFLAGS -Werror=main"
14450
14451		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
14452$as_echo_n "checking if $CC supports-Werror=main... " >&6; }
14453		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
14454		if eval \${$cacheid+:} false; then :
14455  $as_echo_n "(cached) " >&6
14456else
14457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14458/* end confdefs.h.  */
14459int i;
14460int
14461main ()
14462{
14463
14464  ;
14465  return 0;
14466}
14467_ACEOF
14468if ac_fn_c_try_link "$LINENO"; then :
14469  eval $cacheid=yes
14470else
14471  eval $cacheid=no
14472fi
14473rm -f core conftest.err conftest.$ac_objext \
14474    conftest$ac_exeext conftest.$ac_ext
14475fi
14476
14477
14478		CFLAGS="$xorg_testset_save_CFLAGS"
14479
14480		eval supported=\$$cacheid
14481		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14482$as_echo "$supported" >&6; }
14483		if test "$supported" = "yes" ; then
14484			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14485			found="yes"
14486		fi
14487	fi
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503xorg_testset_save_CFLAGS="$CFLAGS"
14504
14505if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14506	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14507	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14508$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14509if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14510  $as_echo_n "(cached) " >&6
14511else
14512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14513/* end confdefs.h.  */
14514int i;
14515_ACEOF
14516if ac_fn_c_try_compile "$LINENO"; then :
14517  xorg_cv_cc_flag_unknown_warning_option=yes
14518else
14519  xorg_cv_cc_flag_unknown_warning_option=no
14520fi
14521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14522fi
14523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14524$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14525	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14526	CFLAGS="$xorg_testset_save_CFLAGS"
14527fi
14528
14529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14530	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14531		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14532	fi
14533	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14534	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14535$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14536if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14537  $as_echo_n "(cached) " >&6
14538else
14539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14540/* end confdefs.h.  */
14541int i;
14542_ACEOF
14543if ac_fn_c_try_compile "$LINENO"; then :
14544  xorg_cv_cc_flag_unused_command_line_argument=yes
14545else
14546  xorg_cv_cc_flag_unused_command_line_argument=no
14547fi
14548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14549fi
14550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14551$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14552	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14553	CFLAGS="$xorg_testset_save_CFLAGS"
14554fi
14555
14556found="no"
14557
14558	if test $found = "no" ; then
14559		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14560			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14561		fi
14562
14563		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14564			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14565		fi
14566
14567		CFLAGS="$CFLAGS -Werror=missing-braces"
14568
14569		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
14570$as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
14571		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
14572		if eval \${$cacheid+:} false; then :
14573  $as_echo_n "(cached) " >&6
14574else
14575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14576/* end confdefs.h.  */
14577int i;
14578int
14579main ()
14580{
14581
14582  ;
14583  return 0;
14584}
14585_ACEOF
14586if ac_fn_c_try_link "$LINENO"; then :
14587  eval $cacheid=yes
14588else
14589  eval $cacheid=no
14590fi
14591rm -f core conftest.err conftest.$ac_objext \
14592    conftest$ac_exeext conftest.$ac_ext
14593fi
14594
14595
14596		CFLAGS="$xorg_testset_save_CFLAGS"
14597
14598		eval supported=\$$cacheid
14599		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14600$as_echo "$supported" >&6; }
14601		if test "$supported" = "yes" ; then
14602			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14603			found="yes"
14604		fi
14605	fi
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621xorg_testset_save_CFLAGS="$CFLAGS"
14622
14623if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14624	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14625	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14626$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14627if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14628  $as_echo_n "(cached) " >&6
14629else
14630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14631/* end confdefs.h.  */
14632int i;
14633_ACEOF
14634if ac_fn_c_try_compile "$LINENO"; then :
14635  xorg_cv_cc_flag_unknown_warning_option=yes
14636else
14637  xorg_cv_cc_flag_unknown_warning_option=no
14638fi
14639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14640fi
14641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14642$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14643	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14644	CFLAGS="$xorg_testset_save_CFLAGS"
14645fi
14646
14647if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14648	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14649		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14650	fi
14651	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14652	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14653$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14654if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14655  $as_echo_n "(cached) " >&6
14656else
14657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14658/* end confdefs.h.  */
14659int i;
14660_ACEOF
14661if ac_fn_c_try_compile "$LINENO"; then :
14662  xorg_cv_cc_flag_unused_command_line_argument=yes
14663else
14664  xorg_cv_cc_flag_unused_command_line_argument=no
14665fi
14666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14667fi
14668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14669$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14670	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14671	CFLAGS="$xorg_testset_save_CFLAGS"
14672fi
14673
14674found="no"
14675
14676	if test $found = "no" ; then
14677		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14678			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14679		fi
14680
14681		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14682			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14683		fi
14684
14685		CFLAGS="$CFLAGS -Werror=sequence-point"
14686
14687		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
14688$as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
14689		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
14690		if eval \${$cacheid+:} false; then :
14691  $as_echo_n "(cached) " >&6
14692else
14693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14694/* end confdefs.h.  */
14695int i;
14696int
14697main ()
14698{
14699
14700  ;
14701  return 0;
14702}
14703_ACEOF
14704if ac_fn_c_try_link "$LINENO"; then :
14705  eval $cacheid=yes
14706else
14707  eval $cacheid=no
14708fi
14709rm -f core conftest.err conftest.$ac_objext \
14710    conftest$ac_exeext conftest.$ac_ext
14711fi
14712
14713
14714		CFLAGS="$xorg_testset_save_CFLAGS"
14715
14716		eval supported=\$$cacheid
14717		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14718$as_echo "$supported" >&6; }
14719		if test "$supported" = "yes" ; then
14720			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14721			found="yes"
14722		fi
14723	fi
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739xorg_testset_save_CFLAGS="$CFLAGS"
14740
14741if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14742	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14743	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14744$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14745if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14746  $as_echo_n "(cached) " >&6
14747else
14748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14749/* end confdefs.h.  */
14750int i;
14751_ACEOF
14752if ac_fn_c_try_compile "$LINENO"; then :
14753  xorg_cv_cc_flag_unknown_warning_option=yes
14754else
14755  xorg_cv_cc_flag_unknown_warning_option=no
14756fi
14757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14758fi
14759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14760$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14761	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14762	CFLAGS="$xorg_testset_save_CFLAGS"
14763fi
14764
14765if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14766	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14767		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14768	fi
14769	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14770	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14771$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14772if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14773  $as_echo_n "(cached) " >&6
14774else
14775  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14776/* end confdefs.h.  */
14777int i;
14778_ACEOF
14779if ac_fn_c_try_compile "$LINENO"; then :
14780  xorg_cv_cc_flag_unused_command_line_argument=yes
14781else
14782  xorg_cv_cc_flag_unused_command_line_argument=no
14783fi
14784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14785fi
14786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14787$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14788	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14789	CFLAGS="$xorg_testset_save_CFLAGS"
14790fi
14791
14792found="no"
14793
14794	if test $found = "no" ; then
14795		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14796			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14797		fi
14798
14799		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14800			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14801		fi
14802
14803		CFLAGS="$CFLAGS -Werror=return-type"
14804
14805		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
14806$as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
14807		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
14808		if eval \${$cacheid+:} false; then :
14809  $as_echo_n "(cached) " >&6
14810else
14811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14812/* end confdefs.h.  */
14813int i;
14814int
14815main ()
14816{
14817
14818  ;
14819  return 0;
14820}
14821_ACEOF
14822if ac_fn_c_try_link "$LINENO"; then :
14823  eval $cacheid=yes
14824else
14825  eval $cacheid=no
14826fi
14827rm -f core conftest.err conftest.$ac_objext \
14828    conftest$ac_exeext conftest.$ac_ext
14829fi
14830
14831
14832		CFLAGS="$xorg_testset_save_CFLAGS"
14833
14834		eval supported=\$$cacheid
14835		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14836$as_echo "$supported" >&6; }
14837		if test "$supported" = "yes" ; then
14838			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14839			found="yes"
14840		fi
14841	fi
14842
14843	if test $found = "no" ; then
14844		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14845			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14846		fi
14847
14848		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14849			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14850		fi
14851
14852		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14853
14854		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14855$as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14856		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
14857		if eval \${$cacheid+:} false; then :
14858  $as_echo_n "(cached) " >&6
14859else
14860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14861/* end confdefs.h.  */
14862int i;
14863int
14864main ()
14865{
14866
14867  ;
14868  return 0;
14869}
14870_ACEOF
14871if ac_fn_c_try_link "$LINENO"; then :
14872  eval $cacheid=yes
14873else
14874  eval $cacheid=no
14875fi
14876rm -f core conftest.err conftest.$ac_objext \
14877    conftest$ac_exeext conftest.$ac_ext
14878fi
14879
14880
14881		CFLAGS="$xorg_testset_save_CFLAGS"
14882
14883		eval supported=\$$cacheid
14884		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14885$as_echo "$supported" >&6; }
14886		if test "$supported" = "yes" ; then
14887			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14888			found="yes"
14889		fi
14890	fi
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906xorg_testset_save_CFLAGS="$CFLAGS"
14907
14908if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14909	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14910	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14911$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14912if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14913  $as_echo_n "(cached) " >&6
14914else
14915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14916/* end confdefs.h.  */
14917int i;
14918_ACEOF
14919if ac_fn_c_try_compile "$LINENO"; then :
14920  xorg_cv_cc_flag_unknown_warning_option=yes
14921else
14922  xorg_cv_cc_flag_unknown_warning_option=no
14923fi
14924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14925fi
14926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14927$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14928	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14929	CFLAGS="$xorg_testset_save_CFLAGS"
14930fi
14931
14932if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14933	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14934		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14935	fi
14936	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14937	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14938$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14939if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14940  $as_echo_n "(cached) " >&6
14941else
14942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14943/* end confdefs.h.  */
14944int i;
14945_ACEOF
14946if ac_fn_c_try_compile "$LINENO"; then :
14947  xorg_cv_cc_flag_unused_command_line_argument=yes
14948else
14949  xorg_cv_cc_flag_unused_command_line_argument=no
14950fi
14951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14952fi
14953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14954$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14955	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14956	CFLAGS="$xorg_testset_save_CFLAGS"
14957fi
14958
14959found="no"
14960
14961	if test $found = "no" ; then
14962		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14963			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14964		fi
14965
14966		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14967			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14968		fi
14969
14970		CFLAGS="$CFLAGS -Werror=trigraphs"
14971
14972		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
14973$as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
14974		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
14975		if eval \${$cacheid+:} false; then :
14976  $as_echo_n "(cached) " >&6
14977else
14978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14979/* end confdefs.h.  */
14980int i;
14981int
14982main ()
14983{
14984
14985  ;
14986  return 0;
14987}
14988_ACEOF
14989if ac_fn_c_try_link "$LINENO"; then :
14990  eval $cacheid=yes
14991else
14992  eval $cacheid=no
14993fi
14994rm -f core conftest.err conftest.$ac_objext \
14995    conftest$ac_exeext conftest.$ac_ext
14996fi
14997
14998
14999		CFLAGS="$xorg_testset_save_CFLAGS"
15000
15001		eval supported=\$$cacheid
15002		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15003$as_echo "$supported" >&6; }
15004		if test "$supported" = "yes" ; then
15005			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15006			found="yes"
15007		fi
15008	fi
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018
15019
15020
15021
15022
15023
15024xorg_testset_save_CFLAGS="$CFLAGS"
15025
15026if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15027	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15028	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15029$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15030if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15031  $as_echo_n "(cached) " >&6
15032else
15033  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15034/* end confdefs.h.  */
15035int i;
15036_ACEOF
15037if ac_fn_c_try_compile "$LINENO"; then :
15038  xorg_cv_cc_flag_unknown_warning_option=yes
15039else
15040  xorg_cv_cc_flag_unknown_warning_option=no
15041fi
15042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15043fi
15044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15045$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15046	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15047	CFLAGS="$xorg_testset_save_CFLAGS"
15048fi
15049
15050if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15051	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15052		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15053	fi
15054	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15055	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15056$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15057if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15058  $as_echo_n "(cached) " >&6
15059else
15060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15061/* end confdefs.h.  */
15062int i;
15063_ACEOF
15064if ac_fn_c_try_compile "$LINENO"; then :
15065  xorg_cv_cc_flag_unused_command_line_argument=yes
15066else
15067  xorg_cv_cc_flag_unused_command_line_argument=no
15068fi
15069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15070fi
15071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15072$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15073	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15074	CFLAGS="$xorg_testset_save_CFLAGS"
15075fi
15076
15077found="no"
15078
15079	if test $found = "no" ; then
15080		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15081			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15082		fi
15083
15084		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15085			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15086		fi
15087
15088		CFLAGS="$CFLAGS -Werror=array-bounds"
15089
15090		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
15091$as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
15092		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
15093		if eval \${$cacheid+:} false; then :
15094  $as_echo_n "(cached) " >&6
15095else
15096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15097/* end confdefs.h.  */
15098int i;
15099int
15100main ()
15101{
15102
15103  ;
15104  return 0;
15105}
15106_ACEOF
15107if ac_fn_c_try_link "$LINENO"; then :
15108  eval $cacheid=yes
15109else
15110  eval $cacheid=no
15111fi
15112rm -f core conftest.err conftest.$ac_objext \
15113    conftest$ac_exeext conftest.$ac_ext
15114fi
15115
15116
15117		CFLAGS="$xorg_testset_save_CFLAGS"
15118
15119		eval supported=\$$cacheid
15120		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15121$as_echo "$supported" >&6; }
15122		if test "$supported" = "yes" ; then
15123			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15124			found="yes"
15125		fi
15126	fi
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142xorg_testset_save_CFLAGS="$CFLAGS"
15143
15144if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15145	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15146	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15147$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15148if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15149  $as_echo_n "(cached) " >&6
15150else
15151  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15152/* end confdefs.h.  */
15153int i;
15154_ACEOF
15155if ac_fn_c_try_compile "$LINENO"; then :
15156  xorg_cv_cc_flag_unknown_warning_option=yes
15157else
15158  xorg_cv_cc_flag_unknown_warning_option=no
15159fi
15160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15161fi
15162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15163$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15164	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15165	CFLAGS="$xorg_testset_save_CFLAGS"
15166fi
15167
15168if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15169	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15170		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15171	fi
15172	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15173	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15174$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15175if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15176  $as_echo_n "(cached) " >&6
15177else
15178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15179/* end confdefs.h.  */
15180int i;
15181_ACEOF
15182if ac_fn_c_try_compile "$LINENO"; then :
15183  xorg_cv_cc_flag_unused_command_line_argument=yes
15184else
15185  xorg_cv_cc_flag_unused_command_line_argument=no
15186fi
15187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15188fi
15189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15190$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15191	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15192	CFLAGS="$xorg_testset_save_CFLAGS"
15193fi
15194
15195found="no"
15196
15197	if test $found = "no" ; then
15198		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15199			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15200		fi
15201
15202		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15203			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15204		fi
15205
15206		CFLAGS="$CFLAGS -Werror=write-strings"
15207
15208		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
15209$as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
15210		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
15211		if eval \${$cacheid+:} false; then :
15212  $as_echo_n "(cached) " >&6
15213else
15214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15215/* end confdefs.h.  */
15216int i;
15217int
15218main ()
15219{
15220
15221  ;
15222  return 0;
15223}
15224_ACEOF
15225if ac_fn_c_try_link "$LINENO"; then :
15226  eval $cacheid=yes
15227else
15228  eval $cacheid=no
15229fi
15230rm -f core conftest.err conftest.$ac_objext \
15231    conftest$ac_exeext conftest.$ac_ext
15232fi
15233
15234
15235		CFLAGS="$xorg_testset_save_CFLAGS"
15236
15237		eval supported=\$$cacheid
15238		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15239$as_echo "$supported" >&6; }
15240		if test "$supported" = "yes" ; then
15241			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15242			found="yes"
15243		fi
15244	fi
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260xorg_testset_save_CFLAGS="$CFLAGS"
15261
15262if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15263	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15264	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15265$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15266if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15267  $as_echo_n "(cached) " >&6
15268else
15269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15270/* end confdefs.h.  */
15271int i;
15272_ACEOF
15273if ac_fn_c_try_compile "$LINENO"; then :
15274  xorg_cv_cc_flag_unknown_warning_option=yes
15275else
15276  xorg_cv_cc_flag_unknown_warning_option=no
15277fi
15278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15279fi
15280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15281$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15282	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15283	CFLAGS="$xorg_testset_save_CFLAGS"
15284fi
15285
15286if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15287	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15288		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15289	fi
15290	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15291	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15292$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15293if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15294  $as_echo_n "(cached) " >&6
15295else
15296  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15297/* end confdefs.h.  */
15298int i;
15299_ACEOF
15300if ac_fn_c_try_compile "$LINENO"; then :
15301  xorg_cv_cc_flag_unused_command_line_argument=yes
15302else
15303  xorg_cv_cc_flag_unused_command_line_argument=no
15304fi
15305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15306fi
15307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15308$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15309	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15310	CFLAGS="$xorg_testset_save_CFLAGS"
15311fi
15312
15313found="no"
15314
15315	if test $found = "no" ; then
15316		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15317			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15318		fi
15319
15320		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15321			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15322		fi
15323
15324		CFLAGS="$CFLAGS -Werror=address"
15325
15326		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
15327$as_echo_n "checking if $CC supports-Werror=address... " >&6; }
15328		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
15329		if eval \${$cacheid+:} false; then :
15330  $as_echo_n "(cached) " >&6
15331else
15332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333/* end confdefs.h.  */
15334int i;
15335int
15336main ()
15337{
15338
15339  ;
15340  return 0;
15341}
15342_ACEOF
15343if ac_fn_c_try_link "$LINENO"; then :
15344  eval $cacheid=yes
15345else
15346  eval $cacheid=no
15347fi
15348rm -f core conftest.err conftest.$ac_objext \
15349    conftest$ac_exeext conftest.$ac_ext
15350fi
15351
15352
15353		CFLAGS="$xorg_testset_save_CFLAGS"
15354
15355		eval supported=\$$cacheid
15356		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15357$as_echo "$supported" >&6; }
15358		if test "$supported" = "yes" ; then
15359			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15360			found="yes"
15361		fi
15362	fi
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378xorg_testset_save_CFLAGS="$CFLAGS"
15379
15380if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15381	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15382	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15383$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15384if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15385  $as_echo_n "(cached) " >&6
15386else
15387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15388/* end confdefs.h.  */
15389int i;
15390_ACEOF
15391if ac_fn_c_try_compile "$LINENO"; then :
15392  xorg_cv_cc_flag_unknown_warning_option=yes
15393else
15394  xorg_cv_cc_flag_unknown_warning_option=no
15395fi
15396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15397fi
15398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15399$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15400	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15401	CFLAGS="$xorg_testset_save_CFLAGS"
15402fi
15403
15404if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15405	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15406		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15407	fi
15408	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15409	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15410$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15411if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15412  $as_echo_n "(cached) " >&6
15413else
15414  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15415/* end confdefs.h.  */
15416int i;
15417_ACEOF
15418if ac_fn_c_try_compile "$LINENO"; then :
15419  xorg_cv_cc_flag_unused_command_line_argument=yes
15420else
15421  xorg_cv_cc_flag_unused_command_line_argument=no
15422fi
15423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15424fi
15425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15426$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15427	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15428	CFLAGS="$xorg_testset_save_CFLAGS"
15429fi
15430
15431found="no"
15432
15433	if test $found = "no" ; then
15434		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15435			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15436		fi
15437
15438		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15439			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15440		fi
15441
15442		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15443
15444		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
15445$as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
15446		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
15447		if eval \${$cacheid+:} false; then :
15448  $as_echo_n "(cached) " >&6
15449else
15450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15451/* end confdefs.h.  */
15452int i;
15453int
15454main ()
15455{
15456
15457  ;
15458  return 0;
15459}
15460_ACEOF
15461if ac_fn_c_try_link "$LINENO"; then :
15462  eval $cacheid=yes
15463else
15464  eval $cacheid=no
15465fi
15466rm -f core conftest.err conftest.$ac_objext \
15467    conftest$ac_exeext conftest.$ac_ext
15468fi
15469
15470
15471		CFLAGS="$xorg_testset_save_CFLAGS"
15472
15473		eval supported=\$$cacheid
15474		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15475$as_echo "$supported" >&6; }
15476		if test "$supported" = "yes" ; then
15477			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15478			found="yes"
15479		fi
15480	fi
15481
15482	if test $found = "no" ; then
15483		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15484			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15485		fi
15486
15487		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15488			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15489		fi
15490
15491		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15492
15493		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15494$as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15495		cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
15496		if eval \${$cacheid+:} false; then :
15497  $as_echo_n "(cached) " >&6
15498else
15499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15500/* end confdefs.h.  */
15501int i;
15502int
15503main ()
15504{
15505
15506  ;
15507  return 0;
15508}
15509_ACEOF
15510if ac_fn_c_try_link "$LINENO"; then :
15511  eval $cacheid=yes
15512else
15513  eval $cacheid=no
15514fi
15515rm -f core conftest.err conftest.$ac_objext \
15516    conftest$ac_exeext conftest.$ac_ext
15517fi
15518
15519
15520		CFLAGS="$xorg_testset_save_CFLAGS"
15521
15522		eval supported=\$$cacheid
15523		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15524$as_echo "$supported" >&6; }
15525		if test "$supported" = "yes" ; then
15526			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15527			found="yes"
15528		fi
15529	fi
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545xorg_testset_save_CFLAGS="$CFLAGS"
15546
15547if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15548	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15549	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15550$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15551if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15552  $as_echo_n "(cached) " >&6
15553else
15554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15555/* end confdefs.h.  */
15556int i;
15557_ACEOF
15558if ac_fn_c_try_compile "$LINENO"; then :
15559  xorg_cv_cc_flag_unknown_warning_option=yes
15560else
15561  xorg_cv_cc_flag_unknown_warning_option=no
15562fi
15563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15564fi
15565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15566$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15567	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15568	CFLAGS="$xorg_testset_save_CFLAGS"
15569fi
15570
15571if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15572	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15573		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15574	fi
15575	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15576	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15577$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15578if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15579  $as_echo_n "(cached) " >&6
15580else
15581  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15582/* end confdefs.h.  */
15583int i;
15584_ACEOF
15585if ac_fn_c_try_compile "$LINENO"; then :
15586  xorg_cv_cc_flag_unused_command_line_argument=yes
15587else
15588  xorg_cv_cc_flag_unused_command_line_argument=no
15589fi
15590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15591fi
15592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15593$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15594	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15595	CFLAGS="$xorg_testset_save_CFLAGS"
15596fi
15597
15598found="no"
15599
15600	if test $found = "no" ; then
15601		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15602			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15603		fi
15604
15605		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15606			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15607		fi
15608
15609		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15610
15611		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
15612$as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
15613		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
15614		if eval \${$cacheid+:} false; then :
15615  $as_echo_n "(cached) " >&6
15616else
15617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15618/* end confdefs.h.  */
15619int i;
15620int
15621main ()
15622{
15623
15624  ;
15625  return 0;
15626}
15627_ACEOF
15628if ac_fn_c_try_link "$LINENO"; then :
15629  eval $cacheid=yes
15630else
15631  eval $cacheid=no
15632fi
15633rm -f core conftest.err conftest.$ac_objext \
15634    conftest$ac_exeext conftest.$ac_ext
15635fi
15636
15637
15638		CFLAGS="$xorg_testset_save_CFLAGS"
15639
15640		eval supported=\$$cacheid
15641		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15642$as_echo "$supported" >&6; }
15643		if test "$supported" = "yes" ; then
15644			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15645			found="yes"
15646		fi
15647	fi
15648
15649 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15650else
15651{ $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
15652$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;}
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666xorg_testset_save_CFLAGS="$CFLAGS"
15667
15668if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15669	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15670	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15671$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15672if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15673  $as_echo_n "(cached) " >&6
15674else
15675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15676/* end confdefs.h.  */
15677int i;
15678_ACEOF
15679if ac_fn_c_try_compile "$LINENO"; then :
15680  xorg_cv_cc_flag_unknown_warning_option=yes
15681else
15682  xorg_cv_cc_flag_unknown_warning_option=no
15683fi
15684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15685fi
15686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15687$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15688	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15689	CFLAGS="$xorg_testset_save_CFLAGS"
15690fi
15691
15692if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15693	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15694		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15695	fi
15696	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15697	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15698$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15699if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15700  $as_echo_n "(cached) " >&6
15701else
15702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15703/* end confdefs.h.  */
15704int i;
15705_ACEOF
15706if ac_fn_c_try_compile "$LINENO"; then :
15707  xorg_cv_cc_flag_unused_command_line_argument=yes
15708else
15709  xorg_cv_cc_flag_unused_command_line_argument=no
15710fi
15711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15712fi
15713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15714$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15715	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15716	CFLAGS="$xorg_testset_save_CFLAGS"
15717fi
15718
15719found="no"
15720
15721	if test $found = "no" ; then
15722		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15723			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15724		fi
15725
15726		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15727			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15728		fi
15729
15730		CFLAGS="$CFLAGS -Wimplicit"
15731
15732		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
15733$as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
15734		cacheid=xorg_cv_cc_flag__Wimplicit
15735		if eval \${$cacheid+:} false; then :
15736  $as_echo_n "(cached) " >&6
15737else
15738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15739/* end confdefs.h.  */
15740int i;
15741int
15742main ()
15743{
15744
15745  ;
15746  return 0;
15747}
15748_ACEOF
15749if ac_fn_c_try_link "$LINENO"; then :
15750  eval $cacheid=yes
15751else
15752  eval $cacheid=no
15753fi
15754rm -f core conftest.err conftest.$ac_objext \
15755    conftest$ac_exeext conftest.$ac_ext
15756fi
15757
15758
15759		CFLAGS="$xorg_testset_save_CFLAGS"
15760
15761		eval supported=\$$cacheid
15762		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15763$as_echo "$supported" >&6; }
15764		if test "$supported" = "yes" ; then
15765			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15766			found="yes"
15767		fi
15768	fi
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784xorg_testset_save_CFLAGS="$CFLAGS"
15785
15786if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15787	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15788	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15789$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15790if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15791  $as_echo_n "(cached) " >&6
15792else
15793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15794/* end confdefs.h.  */
15795int i;
15796_ACEOF
15797if ac_fn_c_try_compile "$LINENO"; then :
15798  xorg_cv_cc_flag_unknown_warning_option=yes
15799else
15800  xorg_cv_cc_flag_unknown_warning_option=no
15801fi
15802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15803fi
15804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15805$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15806	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15807	CFLAGS="$xorg_testset_save_CFLAGS"
15808fi
15809
15810if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15811	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15812		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15813	fi
15814	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15815	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15816$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15817if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15818  $as_echo_n "(cached) " >&6
15819else
15820  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15821/* end confdefs.h.  */
15822int i;
15823_ACEOF
15824if ac_fn_c_try_compile "$LINENO"; then :
15825  xorg_cv_cc_flag_unused_command_line_argument=yes
15826else
15827  xorg_cv_cc_flag_unused_command_line_argument=no
15828fi
15829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15830fi
15831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15832$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15833	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15834	CFLAGS="$xorg_testset_save_CFLAGS"
15835fi
15836
15837found="no"
15838
15839	if test $found = "no" ; then
15840		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15841			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15842		fi
15843
15844		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15845			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15846		fi
15847
15848		CFLAGS="$CFLAGS -Wnonnull"
15849
15850		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
15851$as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
15852		cacheid=xorg_cv_cc_flag__Wnonnull
15853		if eval \${$cacheid+:} false; then :
15854  $as_echo_n "(cached) " >&6
15855else
15856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15857/* end confdefs.h.  */
15858int i;
15859int
15860main ()
15861{
15862
15863  ;
15864  return 0;
15865}
15866_ACEOF
15867if ac_fn_c_try_link "$LINENO"; then :
15868  eval $cacheid=yes
15869else
15870  eval $cacheid=no
15871fi
15872rm -f core conftest.err conftest.$ac_objext \
15873    conftest$ac_exeext conftest.$ac_ext
15874fi
15875
15876
15877		CFLAGS="$xorg_testset_save_CFLAGS"
15878
15879		eval supported=\$$cacheid
15880		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15881$as_echo "$supported" >&6; }
15882		if test "$supported" = "yes" ; then
15883			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15884			found="yes"
15885		fi
15886	fi
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902xorg_testset_save_CFLAGS="$CFLAGS"
15903
15904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15905	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15906	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15907$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15908if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15909  $as_echo_n "(cached) " >&6
15910else
15911  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15912/* end confdefs.h.  */
15913int i;
15914_ACEOF
15915if ac_fn_c_try_compile "$LINENO"; then :
15916  xorg_cv_cc_flag_unknown_warning_option=yes
15917else
15918  xorg_cv_cc_flag_unknown_warning_option=no
15919fi
15920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15921fi
15922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15923$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15924	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15925	CFLAGS="$xorg_testset_save_CFLAGS"
15926fi
15927
15928if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15929	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15930		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15931	fi
15932	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15933	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15934$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15935if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15936  $as_echo_n "(cached) " >&6
15937else
15938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15939/* end confdefs.h.  */
15940int i;
15941_ACEOF
15942if ac_fn_c_try_compile "$LINENO"; then :
15943  xorg_cv_cc_flag_unused_command_line_argument=yes
15944else
15945  xorg_cv_cc_flag_unused_command_line_argument=no
15946fi
15947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15948fi
15949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15950$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15951	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15952	CFLAGS="$xorg_testset_save_CFLAGS"
15953fi
15954
15955found="no"
15956
15957	if test $found = "no" ; then
15958		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15959			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15960		fi
15961
15962		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15963			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15964		fi
15965
15966		CFLAGS="$CFLAGS -Winit-self"
15967
15968		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
15969$as_echo_n "checking if $CC supports-Winit-self... " >&6; }
15970		cacheid=xorg_cv_cc_flag__Winit_self
15971		if eval \${$cacheid+:} false; then :
15972  $as_echo_n "(cached) " >&6
15973else
15974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975/* end confdefs.h.  */
15976int i;
15977int
15978main ()
15979{
15980
15981  ;
15982  return 0;
15983}
15984_ACEOF
15985if ac_fn_c_try_link "$LINENO"; then :
15986  eval $cacheid=yes
15987else
15988  eval $cacheid=no
15989fi
15990rm -f core conftest.err conftest.$ac_objext \
15991    conftest$ac_exeext conftest.$ac_ext
15992fi
15993
15994
15995		CFLAGS="$xorg_testset_save_CFLAGS"
15996
15997		eval supported=\$$cacheid
15998		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15999$as_echo "$supported" >&6; }
16000		if test "$supported" = "yes" ; then
16001			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16002			found="yes"
16003		fi
16004	fi
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020xorg_testset_save_CFLAGS="$CFLAGS"
16021
16022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16023	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16024	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16025$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16026if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16027  $as_echo_n "(cached) " >&6
16028else
16029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16030/* end confdefs.h.  */
16031int i;
16032_ACEOF
16033if ac_fn_c_try_compile "$LINENO"; then :
16034  xorg_cv_cc_flag_unknown_warning_option=yes
16035else
16036  xorg_cv_cc_flag_unknown_warning_option=no
16037fi
16038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16039fi
16040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16041$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16042	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16043	CFLAGS="$xorg_testset_save_CFLAGS"
16044fi
16045
16046if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16047	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16048		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16049	fi
16050	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16051	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16052$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16053if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16054  $as_echo_n "(cached) " >&6
16055else
16056  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16057/* end confdefs.h.  */
16058int i;
16059_ACEOF
16060if ac_fn_c_try_compile "$LINENO"; then :
16061  xorg_cv_cc_flag_unused_command_line_argument=yes
16062else
16063  xorg_cv_cc_flag_unused_command_line_argument=no
16064fi
16065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16066fi
16067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16068$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16069	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16070	CFLAGS="$xorg_testset_save_CFLAGS"
16071fi
16072
16073found="no"
16074
16075	if test $found = "no" ; then
16076		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16077			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16078		fi
16079
16080		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16081			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16082		fi
16083
16084		CFLAGS="$CFLAGS -Wmain"
16085
16086		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
16087$as_echo_n "checking if $CC supports-Wmain... " >&6; }
16088		cacheid=xorg_cv_cc_flag__Wmain
16089		if eval \${$cacheid+:} false; then :
16090  $as_echo_n "(cached) " >&6
16091else
16092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093/* end confdefs.h.  */
16094int i;
16095int
16096main ()
16097{
16098
16099  ;
16100  return 0;
16101}
16102_ACEOF
16103if ac_fn_c_try_link "$LINENO"; then :
16104  eval $cacheid=yes
16105else
16106  eval $cacheid=no
16107fi
16108rm -f core conftest.err conftest.$ac_objext \
16109    conftest$ac_exeext conftest.$ac_ext
16110fi
16111
16112
16113		CFLAGS="$xorg_testset_save_CFLAGS"
16114
16115		eval supported=\$$cacheid
16116		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16117$as_echo "$supported" >&6; }
16118		if test "$supported" = "yes" ; then
16119			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16120			found="yes"
16121		fi
16122	fi
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133
16134
16135
16136
16137
16138xorg_testset_save_CFLAGS="$CFLAGS"
16139
16140if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16141	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16142	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16143$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16144if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16145  $as_echo_n "(cached) " >&6
16146else
16147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16148/* end confdefs.h.  */
16149int i;
16150_ACEOF
16151if ac_fn_c_try_compile "$LINENO"; then :
16152  xorg_cv_cc_flag_unknown_warning_option=yes
16153else
16154  xorg_cv_cc_flag_unknown_warning_option=no
16155fi
16156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16157fi
16158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16159$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16160	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16161	CFLAGS="$xorg_testset_save_CFLAGS"
16162fi
16163
16164if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16165	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16166		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16167	fi
16168	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16169	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16170$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16171if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16172  $as_echo_n "(cached) " >&6
16173else
16174  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16175/* end confdefs.h.  */
16176int i;
16177_ACEOF
16178if ac_fn_c_try_compile "$LINENO"; then :
16179  xorg_cv_cc_flag_unused_command_line_argument=yes
16180else
16181  xorg_cv_cc_flag_unused_command_line_argument=no
16182fi
16183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16184fi
16185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16186$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16187	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16188	CFLAGS="$xorg_testset_save_CFLAGS"
16189fi
16190
16191found="no"
16192
16193	if test $found = "no" ; then
16194		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16195			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16196		fi
16197
16198		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16199			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16200		fi
16201
16202		CFLAGS="$CFLAGS -Wmissing-braces"
16203
16204		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
16205$as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
16206		cacheid=xorg_cv_cc_flag__Wmissing_braces
16207		if eval \${$cacheid+:} false; then :
16208  $as_echo_n "(cached) " >&6
16209else
16210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16211/* end confdefs.h.  */
16212int i;
16213int
16214main ()
16215{
16216
16217  ;
16218  return 0;
16219}
16220_ACEOF
16221if ac_fn_c_try_link "$LINENO"; then :
16222  eval $cacheid=yes
16223else
16224  eval $cacheid=no
16225fi
16226rm -f core conftest.err conftest.$ac_objext \
16227    conftest$ac_exeext conftest.$ac_ext
16228fi
16229
16230
16231		CFLAGS="$xorg_testset_save_CFLAGS"
16232
16233		eval supported=\$$cacheid
16234		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16235$as_echo "$supported" >&6; }
16236		if test "$supported" = "yes" ; then
16237			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16238			found="yes"
16239		fi
16240	fi
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256xorg_testset_save_CFLAGS="$CFLAGS"
16257
16258if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16259	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16260	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16261$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16262if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16263  $as_echo_n "(cached) " >&6
16264else
16265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16266/* end confdefs.h.  */
16267int i;
16268_ACEOF
16269if ac_fn_c_try_compile "$LINENO"; then :
16270  xorg_cv_cc_flag_unknown_warning_option=yes
16271else
16272  xorg_cv_cc_flag_unknown_warning_option=no
16273fi
16274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16275fi
16276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16277$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16278	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16279	CFLAGS="$xorg_testset_save_CFLAGS"
16280fi
16281
16282if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16283	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16284		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16285	fi
16286	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16287	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16288$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16289if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16290  $as_echo_n "(cached) " >&6
16291else
16292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16293/* end confdefs.h.  */
16294int i;
16295_ACEOF
16296if ac_fn_c_try_compile "$LINENO"; then :
16297  xorg_cv_cc_flag_unused_command_line_argument=yes
16298else
16299  xorg_cv_cc_flag_unused_command_line_argument=no
16300fi
16301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16302fi
16303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16304$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16305	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16306	CFLAGS="$xorg_testset_save_CFLAGS"
16307fi
16308
16309found="no"
16310
16311	if test $found = "no" ; then
16312		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16313			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16314		fi
16315
16316		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16317			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16318		fi
16319
16320		CFLAGS="$CFLAGS -Wsequence-point"
16321
16322		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
16323$as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
16324		cacheid=xorg_cv_cc_flag__Wsequence_point
16325		if eval \${$cacheid+:} false; then :
16326  $as_echo_n "(cached) " >&6
16327else
16328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16329/* end confdefs.h.  */
16330int i;
16331int
16332main ()
16333{
16334
16335  ;
16336  return 0;
16337}
16338_ACEOF
16339if ac_fn_c_try_link "$LINENO"; then :
16340  eval $cacheid=yes
16341else
16342  eval $cacheid=no
16343fi
16344rm -f core conftest.err conftest.$ac_objext \
16345    conftest$ac_exeext conftest.$ac_ext
16346fi
16347
16348
16349		CFLAGS="$xorg_testset_save_CFLAGS"
16350
16351		eval supported=\$$cacheid
16352		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16353$as_echo "$supported" >&6; }
16354		if test "$supported" = "yes" ; then
16355			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16356			found="yes"
16357		fi
16358	fi
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374xorg_testset_save_CFLAGS="$CFLAGS"
16375
16376if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16377	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16378	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16379$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16380if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16381  $as_echo_n "(cached) " >&6
16382else
16383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16384/* end confdefs.h.  */
16385int i;
16386_ACEOF
16387if ac_fn_c_try_compile "$LINENO"; then :
16388  xorg_cv_cc_flag_unknown_warning_option=yes
16389else
16390  xorg_cv_cc_flag_unknown_warning_option=no
16391fi
16392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16393fi
16394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16395$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16396	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16397	CFLAGS="$xorg_testset_save_CFLAGS"
16398fi
16399
16400if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16401	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16402		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16403	fi
16404	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16405	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16406$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16407if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16408  $as_echo_n "(cached) " >&6
16409else
16410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16411/* end confdefs.h.  */
16412int i;
16413_ACEOF
16414if ac_fn_c_try_compile "$LINENO"; then :
16415  xorg_cv_cc_flag_unused_command_line_argument=yes
16416else
16417  xorg_cv_cc_flag_unused_command_line_argument=no
16418fi
16419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16420fi
16421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16422$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16423	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16424	CFLAGS="$xorg_testset_save_CFLAGS"
16425fi
16426
16427found="no"
16428
16429	if test $found = "no" ; then
16430		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16431			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16432		fi
16433
16434		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16435			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16436		fi
16437
16438		CFLAGS="$CFLAGS -Wreturn-type"
16439
16440		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
16441$as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
16442		cacheid=xorg_cv_cc_flag__Wreturn_type
16443		if eval \${$cacheid+:} false; then :
16444  $as_echo_n "(cached) " >&6
16445else
16446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16447/* end confdefs.h.  */
16448int i;
16449int
16450main ()
16451{
16452
16453  ;
16454  return 0;
16455}
16456_ACEOF
16457if ac_fn_c_try_link "$LINENO"; then :
16458  eval $cacheid=yes
16459else
16460  eval $cacheid=no
16461fi
16462rm -f core conftest.err conftest.$ac_objext \
16463    conftest$ac_exeext conftest.$ac_ext
16464fi
16465
16466
16467		CFLAGS="$xorg_testset_save_CFLAGS"
16468
16469		eval supported=\$$cacheid
16470		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16471$as_echo "$supported" >&6; }
16472		if test "$supported" = "yes" ; then
16473			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16474			found="yes"
16475		fi
16476	fi
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492xorg_testset_save_CFLAGS="$CFLAGS"
16493
16494if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16495	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16496	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16497$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16498if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16499  $as_echo_n "(cached) " >&6
16500else
16501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16502/* end confdefs.h.  */
16503int i;
16504_ACEOF
16505if ac_fn_c_try_compile "$LINENO"; then :
16506  xorg_cv_cc_flag_unknown_warning_option=yes
16507else
16508  xorg_cv_cc_flag_unknown_warning_option=no
16509fi
16510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16511fi
16512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16513$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16514	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16515	CFLAGS="$xorg_testset_save_CFLAGS"
16516fi
16517
16518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16519	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16520		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16521	fi
16522	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16523	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16524$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16525if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16526  $as_echo_n "(cached) " >&6
16527else
16528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16529/* end confdefs.h.  */
16530int i;
16531_ACEOF
16532if ac_fn_c_try_compile "$LINENO"; then :
16533  xorg_cv_cc_flag_unused_command_line_argument=yes
16534else
16535  xorg_cv_cc_flag_unused_command_line_argument=no
16536fi
16537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16538fi
16539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16540$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16541	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16542	CFLAGS="$xorg_testset_save_CFLAGS"
16543fi
16544
16545found="no"
16546
16547	if test $found = "no" ; then
16548		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16549			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16550		fi
16551
16552		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16553			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16554		fi
16555
16556		CFLAGS="$CFLAGS -Wtrigraphs"
16557
16558		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
16559$as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
16560		cacheid=xorg_cv_cc_flag__Wtrigraphs
16561		if eval \${$cacheid+:} false; then :
16562  $as_echo_n "(cached) " >&6
16563else
16564  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16565/* end confdefs.h.  */
16566int i;
16567int
16568main ()
16569{
16570
16571  ;
16572  return 0;
16573}
16574_ACEOF
16575if ac_fn_c_try_link "$LINENO"; then :
16576  eval $cacheid=yes
16577else
16578  eval $cacheid=no
16579fi
16580rm -f core conftest.err conftest.$ac_objext \
16581    conftest$ac_exeext conftest.$ac_ext
16582fi
16583
16584
16585		CFLAGS="$xorg_testset_save_CFLAGS"
16586
16587		eval supported=\$$cacheid
16588		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16589$as_echo "$supported" >&6; }
16590		if test "$supported" = "yes" ; then
16591			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16592			found="yes"
16593		fi
16594	fi
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610xorg_testset_save_CFLAGS="$CFLAGS"
16611
16612if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16613	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16614	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16615$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16616if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16617  $as_echo_n "(cached) " >&6
16618else
16619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16620/* end confdefs.h.  */
16621int i;
16622_ACEOF
16623if ac_fn_c_try_compile "$LINENO"; then :
16624  xorg_cv_cc_flag_unknown_warning_option=yes
16625else
16626  xorg_cv_cc_flag_unknown_warning_option=no
16627fi
16628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16629fi
16630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16631$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16632	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16633	CFLAGS="$xorg_testset_save_CFLAGS"
16634fi
16635
16636if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16637	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16638		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16639	fi
16640	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16641	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16642$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16643if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16644  $as_echo_n "(cached) " >&6
16645else
16646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16647/* end confdefs.h.  */
16648int i;
16649_ACEOF
16650if ac_fn_c_try_compile "$LINENO"; then :
16651  xorg_cv_cc_flag_unused_command_line_argument=yes
16652else
16653  xorg_cv_cc_flag_unused_command_line_argument=no
16654fi
16655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16656fi
16657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16658$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16659	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16660	CFLAGS="$xorg_testset_save_CFLAGS"
16661fi
16662
16663found="no"
16664
16665	if test $found = "no" ; then
16666		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16667			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16668		fi
16669
16670		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16671			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16672		fi
16673
16674		CFLAGS="$CFLAGS -Warray-bounds"
16675
16676		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
16677$as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
16678		cacheid=xorg_cv_cc_flag__Warray_bounds
16679		if eval \${$cacheid+:} false; then :
16680  $as_echo_n "(cached) " >&6
16681else
16682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16683/* end confdefs.h.  */
16684int i;
16685int
16686main ()
16687{
16688
16689  ;
16690  return 0;
16691}
16692_ACEOF
16693if ac_fn_c_try_link "$LINENO"; then :
16694  eval $cacheid=yes
16695else
16696  eval $cacheid=no
16697fi
16698rm -f core conftest.err conftest.$ac_objext \
16699    conftest$ac_exeext conftest.$ac_ext
16700fi
16701
16702
16703		CFLAGS="$xorg_testset_save_CFLAGS"
16704
16705		eval supported=\$$cacheid
16706		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16707$as_echo "$supported" >&6; }
16708		if test "$supported" = "yes" ; then
16709			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16710			found="yes"
16711		fi
16712	fi
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728xorg_testset_save_CFLAGS="$CFLAGS"
16729
16730if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16731	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16732	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16733$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16734if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16735  $as_echo_n "(cached) " >&6
16736else
16737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16738/* end confdefs.h.  */
16739int i;
16740_ACEOF
16741if ac_fn_c_try_compile "$LINENO"; then :
16742  xorg_cv_cc_flag_unknown_warning_option=yes
16743else
16744  xorg_cv_cc_flag_unknown_warning_option=no
16745fi
16746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16747fi
16748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16749$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16750	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16751	CFLAGS="$xorg_testset_save_CFLAGS"
16752fi
16753
16754if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16755	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16756		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16757	fi
16758	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16759	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16760$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16761if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16762  $as_echo_n "(cached) " >&6
16763else
16764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16765/* end confdefs.h.  */
16766int i;
16767_ACEOF
16768if ac_fn_c_try_compile "$LINENO"; then :
16769  xorg_cv_cc_flag_unused_command_line_argument=yes
16770else
16771  xorg_cv_cc_flag_unused_command_line_argument=no
16772fi
16773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16774fi
16775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16776$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16777	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16778	CFLAGS="$xorg_testset_save_CFLAGS"
16779fi
16780
16781found="no"
16782
16783	if test $found = "no" ; then
16784		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16785			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16786		fi
16787
16788		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16789			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16790		fi
16791
16792		CFLAGS="$CFLAGS -Wwrite-strings"
16793
16794		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
16795$as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
16796		cacheid=xorg_cv_cc_flag__Wwrite_strings
16797		if eval \${$cacheid+:} false; then :
16798  $as_echo_n "(cached) " >&6
16799else
16800  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801/* end confdefs.h.  */
16802int i;
16803int
16804main ()
16805{
16806
16807  ;
16808  return 0;
16809}
16810_ACEOF
16811if ac_fn_c_try_link "$LINENO"; then :
16812  eval $cacheid=yes
16813else
16814  eval $cacheid=no
16815fi
16816rm -f core conftest.err conftest.$ac_objext \
16817    conftest$ac_exeext conftest.$ac_ext
16818fi
16819
16820
16821		CFLAGS="$xorg_testset_save_CFLAGS"
16822
16823		eval supported=\$$cacheid
16824		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16825$as_echo "$supported" >&6; }
16826		if test "$supported" = "yes" ; then
16827			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16828			found="yes"
16829		fi
16830	fi
16831
16832
16833
16834
16835
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846xorg_testset_save_CFLAGS="$CFLAGS"
16847
16848if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16849	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16850	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16851$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16852if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16853  $as_echo_n "(cached) " >&6
16854else
16855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856/* end confdefs.h.  */
16857int i;
16858_ACEOF
16859if ac_fn_c_try_compile "$LINENO"; then :
16860  xorg_cv_cc_flag_unknown_warning_option=yes
16861else
16862  xorg_cv_cc_flag_unknown_warning_option=no
16863fi
16864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16865fi
16866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16867$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16868	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16869	CFLAGS="$xorg_testset_save_CFLAGS"
16870fi
16871
16872if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16873	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16874		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16875	fi
16876	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16877	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16878$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16879if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16880  $as_echo_n "(cached) " >&6
16881else
16882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16883/* end confdefs.h.  */
16884int i;
16885_ACEOF
16886if ac_fn_c_try_compile "$LINENO"; then :
16887  xorg_cv_cc_flag_unused_command_line_argument=yes
16888else
16889  xorg_cv_cc_flag_unused_command_line_argument=no
16890fi
16891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16892fi
16893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16894$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16895	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16896	CFLAGS="$xorg_testset_save_CFLAGS"
16897fi
16898
16899found="no"
16900
16901	if test $found = "no" ; then
16902		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16903			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16904		fi
16905
16906		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16907			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16908		fi
16909
16910		CFLAGS="$CFLAGS -Waddress"
16911
16912		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
16913$as_echo_n "checking if $CC supports-Waddress... " >&6; }
16914		cacheid=xorg_cv_cc_flag__Waddress
16915		if eval \${$cacheid+:} false; then :
16916  $as_echo_n "(cached) " >&6
16917else
16918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16919/* end confdefs.h.  */
16920int i;
16921int
16922main ()
16923{
16924
16925  ;
16926  return 0;
16927}
16928_ACEOF
16929if ac_fn_c_try_link "$LINENO"; then :
16930  eval $cacheid=yes
16931else
16932  eval $cacheid=no
16933fi
16934rm -f core conftest.err conftest.$ac_objext \
16935    conftest$ac_exeext conftest.$ac_ext
16936fi
16937
16938
16939		CFLAGS="$xorg_testset_save_CFLAGS"
16940
16941		eval supported=\$$cacheid
16942		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16943$as_echo "$supported" >&6; }
16944		if test "$supported" = "yes" ; then
16945			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16946			found="yes"
16947		fi
16948	fi
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
16962
16963
16964xorg_testset_save_CFLAGS="$CFLAGS"
16965
16966if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16967	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16968	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16969$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16970if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16971  $as_echo_n "(cached) " >&6
16972else
16973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974/* end confdefs.h.  */
16975int i;
16976_ACEOF
16977if ac_fn_c_try_compile "$LINENO"; then :
16978  xorg_cv_cc_flag_unknown_warning_option=yes
16979else
16980  xorg_cv_cc_flag_unknown_warning_option=no
16981fi
16982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16983fi
16984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16985$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16986	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16987	CFLAGS="$xorg_testset_save_CFLAGS"
16988fi
16989
16990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16991	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16992		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16993	fi
16994	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16995	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16996$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16997if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16998  $as_echo_n "(cached) " >&6
16999else
17000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17001/* end confdefs.h.  */
17002int i;
17003_ACEOF
17004if ac_fn_c_try_compile "$LINENO"; then :
17005  xorg_cv_cc_flag_unused_command_line_argument=yes
17006else
17007  xorg_cv_cc_flag_unused_command_line_argument=no
17008fi
17009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17010fi
17011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17012$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17013	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17014	CFLAGS="$xorg_testset_save_CFLAGS"
17015fi
17016
17017found="no"
17018
17019	if test $found = "no" ; then
17020		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17021			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17022		fi
17023
17024		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17025			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17026		fi
17027
17028		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17029
17030		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
17031$as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
17032		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17033		if eval \${$cacheid+:} false; then :
17034  $as_echo_n "(cached) " >&6
17035else
17036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17037/* end confdefs.h.  */
17038int i;
17039int
17040main ()
17041{
17042
17043  ;
17044  return 0;
17045}
17046_ACEOF
17047if ac_fn_c_try_link "$LINENO"; then :
17048  eval $cacheid=yes
17049else
17050  eval $cacheid=no
17051fi
17052rm -f core conftest.err conftest.$ac_objext \
17053    conftest$ac_exeext conftest.$ac_ext
17054fi
17055
17056
17057		CFLAGS="$xorg_testset_save_CFLAGS"
17058
17059		eval supported=\$$cacheid
17060		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17061$as_echo "$supported" >&6; }
17062		if test "$supported" = "yes" ; then
17063			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17064			found="yes"
17065		fi
17066	fi
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082xorg_testset_save_CFLAGS="$CFLAGS"
17083
17084if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17085	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17086	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17087$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17088if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17089  $as_echo_n "(cached) " >&6
17090else
17091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17092/* end confdefs.h.  */
17093int i;
17094_ACEOF
17095if ac_fn_c_try_compile "$LINENO"; then :
17096  xorg_cv_cc_flag_unknown_warning_option=yes
17097else
17098  xorg_cv_cc_flag_unknown_warning_option=no
17099fi
17100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17101fi
17102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17103$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17104	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17105	CFLAGS="$xorg_testset_save_CFLAGS"
17106fi
17107
17108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17109	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17110		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17111	fi
17112	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17113	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17114$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17115if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17116  $as_echo_n "(cached) " >&6
17117else
17118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17119/* end confdefs.h.  */
17120int i;
17121_ACEOF
17122if ac_fn_c_try_compile "$LINENO"; then :
17123  xorg_cv_cc_flag_unused_command_line_argument=yes
17124else
17125  xorg_cv_cc_flag_unused_command_line_argument=no
17126fi
17127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17128fi
17129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17130$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17131	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17132	CFLAGS="$xorg_testset_save_CFLAGS"
17133fi
17134
17135found="no"
17136
17137	if test $found = "no" ; then
17138		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17139			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17140		fi
17141
17142		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17143			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17144		fi
17145
17146		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17147
17148		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
17149$as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
17150		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17151		if eval \${$cacheid+:} false; then :
17152  $as_echo_n "(cached) " >&6
17153else
17154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17155/* end confdefs.h.  */
17156int i;
17157int
17158main ()
17159{
17160
17161  ;
17162  return 0;
17163}
17164_ACEOF
17165if ac_fn_c_try_link "$LINENO"; then :
17166  eval $cacheid=yes
17167else
17168  eval $cacheid=no
17169fi
17170rm -f core conftest.err conftest.$ac_objext \
17171    conftest$ac_exeext conftest.$ac_ext
17172fi
17173
17174
17175		CFLAGS="$xorg_testset_save_CFLAGS"
17176
17177		eval supported=\$$cacheid
17178		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17179$as_echo "$supported" >&6; }
17180		if test "$supported" = "yes" ; then
17181			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17182			found="yes"
17183		fi
17184	fi
17185
17186
17187fi
17188
17189
17190
17191
17192
17193
17194
17195		CWARNFLAGS="$BASE_CFLAGS"
17196		if  test "x$GCC" = xyes ; then
17197		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17198		fi
17199
17200
17201
17202
17203
17204
17205
17206
17207# Check whether --enable-strict-compilation was given.
17208if test "${enable_strict_compilation+set}" = set; then :
17209  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17210else
17211  STRICT_COMPILE=no
17212fi
17213
17214
17215
17216
17217
17218
17219STRICT_CFLAGS=""
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233xorg_testset_save_CFLAGS="$CFLAGS"
17234
17235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17236	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17237	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17238$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17239if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17240  $as_echo_n "(cached) " >&6
17241else
17242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17243/* end confdefs.h.  */
17244int i;
17245_ACEOF
17246if ac_fn_c_try_compile "$LINENO"; then :
17247  xorg_cv_cc_flag_unknown_warning_option=yes
17248else
17249  xorg_cv_cc_flag_unknown_warning_option=no
17250fi
17251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17252fi
17253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17254$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17255	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17256	CFLAGS="$xorg_testset_save_CFLAGS"
17257fi
17258
17259if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17260	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17261		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17262	fi
17263	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17264	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17265$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17266if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17267  $as_echo_n "(cached) " >&6
17268else
17269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17270/* end confdefs.h.  */
17271int i;
17272_ACEOF
17273if ac_fn_c_try_compile "$LINENO"; then :
17274  xorg_cv_cc_flag_unused_command_line_argument=yes
17275else
17276  xorg_cv_cc_flag_unused_command_line_argument=no
17277fi
17278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17279fi
17280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17281$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17282	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17283	CFLAGS="$xorg_testset_save_CFLAGS"
17284fi
17285
17286found="no"
17287
17288	if test $found = "no" ; then
17289		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17290			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17291		fi
17292
17293		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17294			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17295		fi
17296
17297		CFLAGS="$CFLAGS -pedantic"
17298
17299		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
17300$as_echo_n "checking if $CC supports-pedantic... " >&6; }
17301		cacheid=xorg_cv_cc_flag__pedantic
17302		if eval \${$cacheid+:} false; then :
17303  $as_echo_n "(cached) " >&6
17304else
17305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17306/* end confdefs.h.  */
17307int i;
17308int
17309main ()
17310{
17311
17312  ;
17313  return 0;
17314}
17315_ACEOF
17316if ac_fn_c_try_link "$LINENO"; then :
17317  eval $cacheid=yes
17318else
17319  eval $cacheid=no
17320fi
17321rm -f core conftest.err conftest.$ac_objext \
17322    conftest$ac_exeext conftest.$ac_ext
17323fi
17324
17325
17326		CFLAGS="$xorg_testset_save_CFLAGS"
17327
17328		eval supported=\$$cacheid
17329		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17330$as_echo "$supported" >&6; }
17331		if test "$supported" = "yes" ; then
17332			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17333			found="yes"
17334		fi
17335	fi
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351xorg_testset_save_CFLAGS="$CFLAGS"
17352
17353if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17354	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17355	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17356$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17357if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17358  $as_echo_n "(cached) " >&6
17359else
17360  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17361/* end confdefs.h.  */
17362int i;
17363_ACEOF
17364if ac_fn_c_try_compile "$LINENO"; then :
17365  xorg_cv_cc_flag_unknown_warning_option=yes
17366else
17367  xorg_cv_cc_flag_unknown_warning_option=no
17368fi
17369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17370fi
17371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17372$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17373	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17374	CFLAGS="$xorg_testset_save_CFLAGS"
17375fi
17376
17377if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17378	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17379		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17380	fi
17381	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17382	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17383$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17384if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17385  $as_echo_n "(cached) " >&6
17386else
17387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17388/* end confdefs.h.  */
17389int i;
17390_ACEOF
17391if ac_fn_c_try_compile "$LINENO"; then :
17392  xorg_cv_cc_flag_unused_command_line_argument=yes
17393else
17394  xorg_cv_cc_flag_unused_command_line_argument=no
17395fi
17396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17397fi
17398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17399$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17400	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17401	CFLAGS="$xorg_testset_save_CFLAGS"
17402fi
17403
17404found="no"
17405
17406	if test $found = "no" ; then
17407		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17408			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17409		fi
17410
17411		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17412			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17413		fi
17414
17415		CFLAGS="$CFLAGS -Werror"
17416
17417		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
17418$as_echo_n "checking if $CC supports-Werror... " >&6; }
17419		cacheid=xorg_cv_cc_flag__Werror
17420		if eval \${$cacheid+:} false; then :
17421  $as_echo_n "(cached) " >&6
17422else
17423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17424/* end confdefs.h.  */
17425int i;
17426int
17427main ()
17428{
17429
17430  ;
17431  return 0;
17432}
17433_ACEOF
17434if ac_fn_c_try_link "$LINENO"; then :
17435  eval $cacheid=yes
17436else
17437  eval $cacheid=no
17438fi
17439rm -f core conftest.err conftest.$ac_objext \
17440    conftest$ac_exeext conftest.$ac_ext
17441fi
17442
17443
17444		CFLAGS="$xorg_testset_save_CFLAGS"
17445
17446		eval supported=\$$cacheid
17447		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17448$as_echo "$supported" >&6; }
17449		if test "$supported" = "yes" ; then
17450			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17451			found="yes"
17452		fi
17453	fi
17454
17455	if test $found = "no" ; then
17456		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17457			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17458		fi
17459
17460		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17461			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17462		fi
17463
17464		CFLAGS="$CFLAGS -errwarn"
17465
17466		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
17467$as_echo_n "checking if $CC supports-errwarn... " >&6; }
17468		cacheid=xorg_cv_cc_flag__errwarn
17469		if eval \${$cacheid+:} false; then :
17470  $as_echo_n "(cached) " >&6
17471else
17472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17473/* end confdefs.h.  */
17474int i;
17475int
17476main ()
17477{
17478
17479  ;
17480  return 0;
17481}
17482_ACEOF
17483if ac_fn_c_try_link "$LINENO"; then :
17484  eval $cacheid=yes
17485else
17486  eval $cacheid=no
17487fi
17488rm -f core conftest.err conftest.$ac_objext \
17489    conftest$ac_exeext conftest.$ac_ext
17490fi
17491
17492
17493		CFLAGS="$xorg_testset_save_CFLAGS"
17494
17495		eval supported=\$$cacheid
17496		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17497$as_echo "$supported" >&6; }
17498		if test "$supported" = "yes" ; then
17499			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17500			found="yes"
17501		fi
17502	fi
17503
17504
17505
17506# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17507# activate it with -Werror, so we add it here explicitly.
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521xorg_testset_save_CFLAGS="$CFLAGS"
17522
17523if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17524	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17525	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17526$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17527if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17528  $as_echo_n "(cached) " >&6
17529else
17530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17531/* end confdefs.h.  */
17532int i;
17533_ACEOF
17534if ac_fn_c_try_compile "$LINENO"; then :
17535  xorg_cv_cc_flag_unknown_warning_option=yes
17536else
17537  xorg_cv_cc_flag_unknown_warning_option=no
17538fi
17539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17540fi
17541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17542$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17543	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17544	CFLAGS="$xorg_testset_save_CFLAGS"
17545fi
17546
17547if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17548	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17549		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17550	fi
17551	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17552	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17553$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17554if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17555  $as_echo_n "(cached) " >&6
17556else
17557  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17558/* end confdefs.h.  */
17559int i;
17560_ACEOF
17561if ac_fn_c_try_compile "$LINENO"; then :
17562  xorg_cv_cc_flag_unused_command_line_argument=yes
17563else
17564  xorg_cv_cc_flag_unused_command_line_argument=no
17565fi
17566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17567fi
17568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17569$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17570	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17571	CFLAGS="$xorg_testset_save_CFLAGS"
17572fi
17573
17574found="no"
17575
17576	if test $found = "no" ; then
17577		if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17578			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17579		fi
17580
17581		if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17582			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17583		fi
17584
17585		CFLAGS="$CFLAGS -Werror=attributes"
17586
17587		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
17588$as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
17589		cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
17590		if eval \${$cacheid+:} false; then :
17591  $as_echo_n "(cached) " >&6
17592else
17593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17594/* end confdefs.h.  */
17595int i;
17596int
17597main ()
17598{
17599
17600  ;
17601  return 0;
17602}
17603_ACEOF
17604if ac_fn_c_try_link "$LINENO"; then :
17605  eval $cacheid=yes
17606else
17607  eval $cacheid=no
17608fi
17609rm -f core conftest.err conftest.$ac_objext \
17610    conftest$ac_exeext conftest.$ac_ext
17611fi
17612
17613
17614		CFLAGS="$xorg_testset_save_CFLAGS"
17615
17616		eval supported=\$$cacheid
17617		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17618$as_echo "$supported" >&6; }
17619		if test "$supported" = "yes" ; then
17620			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17621			found="yes"
17622		fi
17623	fi
17624
17625
17626
17627if test "x$STRICT_COMPILE" = "xyes"; then
17628    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17629    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17630fi
17631
17632
17633
17634
17635
17636
17637cat >>confdefs.h <<_ACEOF
17638#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17639_ACEOF
17640
17641	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17642	if test "x$PVM" = "x"; then
17643		PVM="0"
17644	fi
17645
17646cat >>confdefs.h <<_ACEOF
17647#define PACKAGE_VERSION_MINOR $PVM
17648_ACEOF
17649
17650	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17651	if test "x$PVP" = "x"; then
17652		PVP="0"
17653	fi
17654
17655cat >>confdefs.h <<_ACEOF
17656#define PACKAGE_VERSION_PATCHLEVEL $PVP
17657_ACEOF
17658
17659
17660
17661CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17662mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17663|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17664echo 'git directory not found: installing possibly empty changelog.' >&2)"
17665
17666
17667
17668
17669macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17670INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17671mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17672|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17673echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17674
17675
17676
17677
17678
17679
17680if test x$APP_MAN_SUFFIX = x    ; then
17681    APP_MAN_SUFFIX=1
17682fi
17683if test x$APP_MAN_DIR = x    ; then
17684    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17685fi
17686
17687if test x$LIB_MAN_SUFFIX = x    ; then
17688    LIB_MAN_SUFFIX=3
17689fi
17690if test x$LIB_MAN_DIR = x    ; then
17691    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17692fi
17693
17694if test x$FILE_MAN_SUFFIX = x    ; then
17695    case $host_os in
17696	solaris*)	FILE_MAN_SUFFIX=4  ;;
17697	*)		FILE_MAN_SUFFIX=5  ;;
17698    esac
17699fi
17700if test x$FILE_MAN_DIR = x    ; then
17701    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17702fi
17703
17704if test x$MISC_MAN_SUFFIX = x    ; then
17705    case $host_os in
17706	solaris*)	MISC_MAN_SUFFIX=5  ;;
17707	*)		MISC_MAN_SUFFIX=7  ;;
17708    esac
17709fi
17710if test x$MISC_MAN_DIR = x    ; then
17711    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17712fi
17713
17714if test x$DRIVER_MAN_SUFFIX = x    ; then
17715    case $host_os in
17716	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
17717	*)		DRIVER_MAN_SUFFIX=4  ;;
17718    esac
17719fi
17720if test x$DRIVER_MAN_DIR = x    ; then
17721    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17722fi
17723
17724if test x$ADMIN_MAN_SUFFIX = x    ; then
17725    case $host_os in
17726	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
17727	*)		ADMIN_MAN_SUFFIX=8  ;;
17728    esac
17729fi
17730if test x$ADMIN_MAN_DIR = x    ; then
17731    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17732fi
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748XORG_MAN_PAGE="X Version 11"
17749
17750MAN_SUBSTS="\
17751	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17752	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17753	-e 's|__xservername__|Xorg|g' \
17754	-e 's|__xconfigfile__|xorg.conf|g' \
17755	-e 's|__projectroot__|\$(prefix)|g' \
17756	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
17757	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17758	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17759	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17760	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17761	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17762	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17763
17764
17765
17766# Check whether --enable-silent-rules was given.
17767if test "${enable_silent_rules+set}" = set; then :
17768  enableval=$enable_silent_rules;
17769fi
17770
17771case $enable_silent_rules in
17772yes) AM_DEFAULT_VERBOSITY=0;;
17773no)  AM_DEFAULT_VERBOSITY=1;;
17774*)   AM_DEFAULT_VERBOSITY=0;;
17775esac
17776am_make=${MAKE-make}
17777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
17778$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
17779if ${am_cv_make_support_nested_variables+:} false; then :
17780  $as_echo_n "(cached) " >&6
17781else
17782  if $as_echo 'TRUE=$(BAR$(V))
17783BAR0=false
17784BAR1=true
17785V=1
17786am__doit:
17787	@$(TRUE)
17788.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
17789  am_cv_make_support_nested_variables=yes
17790else
17791  am_cv_make_support_nested_variables=no
17792fi
17793fi
17794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
17795$as_echo "$am_cv_make_support_nested_variables" >&6; }
17796if test $am_cv_make_support_nested_variables = yes; then
17797    AM_V='$(V)'
17798  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
17799else
17800  AM_V=$AM_DEFAULT_VERBOSITY
17801  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
17802fi
17803AM_BACKSLASH='\'
17804
17805
17806
17807pciids_path=/usr/share/hwdata
17808
17809# Check whether --with-pciids-path was given.
17810if test "${with_pciids_path+set}" = set; then :
17811  withval=$with_pciids_path; pciids_path="$withval"
17812fi
17813
17814
17815  prefix_NONE=
17816  exec_prefix_NONE=
17817  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
17818  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
17819  eval ax_define_dir="\"$pciids_path\""
17820  eval ax_define_dir="\"$ax_define_dir\""
17821  PCIIDS_PATH="$ax_define_dir"
17822
17823
17824cat >>confdefs.h <<_ACEOF
17825#define PCIIDS_PATH "$ax_define_dir"
17826_ACEOF
17827
17828  test "$prefix_NONE" && prefix=NONE
17829  test "$exec_prefix_NONE" && exec_prefix=NONE
17830
17831
17832# Check whether --enable-linux-rom-fallback was given.
17833if test "${enable_linux_rom_fallback+set}" = set; then :
17834  enableval=$enable_linux_rom_fallback; LINUX_ROM=$enableval
17835else
17836  LINUX_ROM=no
17837fi
17838
17839
17840if test "x$LINUX_ROM" = xyes; then
17841
17842$as_echo "#define LINUX_ROM 1" >>confdefs.h
17843
17844fi
17845
17846use_zlib=no
17847
17848# Check whether --with-zlib was given.
17849if test "${with_zlib+set}" = set; then :
17850  withval=$with_zlib; use_zlib="$withval"
17851fi
17852
17853if test "x$use_zlib" = xyes; then
17854	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
17855$as_echo_n "checking for gzopen in -lz... " >&6; }
17856if ${ac_cv_lib_z_gzopen+:} false; then :
17857  $as_echo_n "(cached) " >&6
17858else
17859  ac_check_lib_save_LIBS=$LIBS
17860LIBS="-lz  $LIBS"
17861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17862/* end confdefs.h.  */
17863
17864/* Override any GCC internal prototype to avoid an error.
17865   Use char because int might match the return type of a GCC
17866   builtin and then its argument prototype would still apply.  */
17867#ifdef __cplusplus
17868extern "C"
17869#endif
17870char gzopen ();
17871int
17872main ()
17873{
17874return gzopen ();
17875  ;
17876  return 0;
17877}
17878_ACEOF
17879if ac_fn_c_try_link "$LINENO"; then :
17880  ac_cv_lib_z_gzopen=yes
17881else
17882  ac_cv_lib_z_gzopen=no
17883fi
17884rm -f core conftest.err conftest.$ac_objext \
17885    conftest$ac_exeext conftest.$ac_ext
17886LIBS=$ac_check_lib_save_LIBS
17887fi
17888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
17889$as_echo "$ac_cv_lib_z_gzopen" >&6; }
17890if test "x$ac_cv_lib_z_gzopen" = xyes; then :
17891  PCIACCESS_LIBS="$PCIACCESS_LIBS -lz"
17892else
17893  as_fn_error $? "Check for zlib library failed" "$LINENO" 5
17894fi
17895
17896	ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17897if test "x$ac_cv_header_zlib_h" = xyes; then :
17898
17899$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
17900
17901else
17902  as_fn_error $? "Check for zlib.h header file failed" "$LINENO" 5
17903fi
17904
17905
17906fi
17907
17908case $host_os in
17909	*freebsd* | *dragonfly*)
17910		freebsd=yes
17911		;;
17912	*linux*)
17913		linux=yes
17914		;;
17915	*netbsd*)
17916		case $host in
17917		*i386*)
17918			PCIACCESS_LIBS="-li386"
17919			;;
17920		*x86_64*|*amd64*)
17921			PCIACCESS_LIBS="-lx86_64"
17922			;;
17923		esac
17924		netbsd=yes
17925		;;
17926	*openbsd*)
17927		openbsd=yes
17928		;;
17929	*solaris*)
17930		solaris=yes
17931		PCIACCESS_LIBS="$PCIACCESS_LIBS -ldevinfo"
17932		;;
17933	gnu*)
17934		gnu=yes
17935		;;
17936esac
17937
17938 if test "x$linux" = xyes; then
17939  LINUX_TRUE=
17940  LINUX_FALSE='#'
17941else
17942  LINUX_TRUE='#'
17943  LINUX_FALSE=
17944fi
17945
17946 if test "x$freebsd" = xyes; then
17947  FREEBSD_TRUE=
17948  FREEBSD_FALSE='#'
17949else
17950  FREEBSD_TRUE='#'
17951  FREEBSD_FALSE=
17952fi
17953
17954 if test "x$netbsd" = xyes; then
17955  NETBSD_TRUE=
17956  NETBSD_FALSE='#'
17957else
17958  NETBSD_TRUE='#'
17959  NETBSD_FALSE=
17960fi
17961
17962 if test "x$openbsd" = xyes; then
17963  OPENBSD_TRUE=
17964  OPENBSD_FALSE='#'
17965else
17966  OPENBSD_TRUE='#'
17967  OPENBSD_FALSE=
17968fi
17969
17970 if test "x$solaris" = xyes; then
17971  SOLARIS_TRUE=
17972  SOLARIS_FALSE='#'
17973else
17974  SOLARIS_TRUE='#'
17975  SOLARIS_FALSE=
17976fi
17977
17978 if test "x$gnu" = xyes; then
17979  GNU_TRUE=
17980  GNU_FALSE='#'
17981else
17982  GNU_TRUE='#'
17983  GNU_FALSE=
17984fi
17985
17986
17987# Check whether --enable-largefile was given.
17988if test "${enable_largefile+set}" = set; then :
17989  enableval=$enable_largefile;
17990fi
17991
17992if test "$enable_largefile" != no; then
17993
17994  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17995$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17996if ${ac_cv_sys_largefile_CC+:} false; then :
17997  $as_echo_n "(cached) " >&6
17998else
17999  ac_cv_sys_largefile_CC=no
18000     if test "$GCC" != yes; then
18001       ac_save_CC=$CC
18002       while :; do
18003	 # IRIX 6.2 and later do not support large files by default,
18004	 # so use the C compiler's -n32 option if that helps.
18005	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18006/* end confdefs.h.  */
18007#include <sys/types.h>
18008 /* Check that off_t can represent 2**63 - 1 correctly.
18009    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18010    since some C++ compilers masquerading as C compilers
18011    incorrectly reject 9223372036854775807.  */
18012#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18013  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18014		       && LARGE_OFF_T % 2147483647 == 1)
18015		      ? 1 : -1];
18016int
18017main ()
18018{
18019
18020  ;
18021  return 0;
18022}
18023_ACEOF
18024	 if ac_fn_c_try_compile "$LINENO"; then :
18025  break
18026fi
18027rm -f core conftest.err conftest.$ac_objext
18028	 CC="$CC -n32"
18029	 if ac_fn_c_try_compile "$LINENO"; then :
18030  ac_cv_sys_largefile_CC=' -n32'; break
18031fi
18032rm -f core conftest.err conftest.$ac_objext
18033	 break
18034       done
18035       CC=$ac_save_CC
18036       rm -f conftest.$ac_ext
18037    fi
18038fi
18039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
18040$as_echo "$ac_cv_sys_largefile_CC" >&6; }
18041  if test "$ac_cv_sys_largefile_CC" != no; then
18042    CC=$CC$ac_cv_sys_largefile_CC
18043  fi
18044
18045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18046$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
18047if ${ac_cv_sys_file_offset_bits+:} false; then :
18048  $as_echo_n "(cached) " >&6
18049else
18050  while :; do
18051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18052/* end confdefs.h.  */
18053#include <sys/types.h>
18054 /* Check that off_t can represent 2**63 - 1 correctly.
18055    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18056    since some C++ compilers masquerading as C compilers
18057    incorrectly reject 9223372036854775807.  */
18058#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18059  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18060		       && LARGE_OFF_T % 2147483647 == 1)
18061		      ? 1 : -1];
18062int
18063main ()
18064{
18065
18066  ;
18067  return 0;
18068}
18069_ACEOF
18070if ac_fn_c_try_compile "$LINENO"; then :
18071  ac_cv_sys_file_offset_bits=no; break
18072fi
18073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18075/* end confdefs.h.  */
18076#define _FILE_OFFSET_BITS 64
18077#include <sys/types.h>
18078 /* Check that off_t can represent 2**63 - 1 correctly.
18079    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18080    since some C++ compilers masquerading as C compilers
18081    incorrectly reject 9223372036854775807.  */
18082#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18083  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18084		       && LARGE_OFF_T % 2147483647 == 1)
18085		      ? 1 : -1];
18086int
18087main ()
18088{
18089
18090  ;
18091  return 0;
18092}
18093_ACEOF
18094if ac_fn_c_try_compile "$LINENO"; then :
18095  ac_cv_sys_file_offset_bits=64; break
18096fi
18097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18098  ac_cv_sys_file_offset_bits=unknown
18099  break
18100done
18101fi
18102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
18103$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
18104case $ac_cv_sys_file_offset_bits in #(
18105  no | unknown) ;;
18106  *)
18107cat >>confdefs.h <<_ACEOF
18108#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18109_ACEOF
18110;;
18111esac
18112rm -rf conftest*
18113  if test $ac_cv_sys_file_offset_bits = unknown; then
18114    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
18115$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
18116if ${ac_cv_sys_large_files+:} false; then :
18117  $as_echo_n "(cached) " >&6
18118else
18119  while :; do
18120  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18121/* end confdefs.h.  */
18122#include <sys/types.h>
18123 /* Check that off_t can represent 2**63 - 1 correctly.
18124    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18125    since some C++ compilers masquerading as C compilers
18126    incorrectly reject 9223372036854775807.  */
18127#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18128  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18129		       && LARGE_OFF_T % 2147483647 == 1)
18130		      ? 1 : -1];
18131int
18132main ()
18133{
18134
18135  ;
18136  return 0;
18137}
18138_ACEOF
18139if ac_fn_c_try_compile "$LINENO"; then :
18140  ac_cv_sys_large_files=no; break
18141fi
18142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18144/* end confdefs.h.  */
18145#define _LARGE_FILES 1
18146#include <sys/types.h>
18147 /* Check that off_t can represent 2**63 - 1 correctly.
18148    We can't simply define LARGE_OFF_T to be 9223372036854775807,
18149    since some C++ compilers masquerading as C compilers
18150    incorrectly reject 9223372036854775807.  */
18151#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18152  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18153		       && LARGE_OFF_T % 2147483647 == 1)
18154		      ? 1 : -1];
18155int
18156main ()
18157{
18158
18159  ;
18160  return 0;
18161}
18162_ACEOF
18163if ac_fn_c_try_compile "$LINENO"; then :
18164  ac_cv_sys_large_files=1; break
18165fi
18166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18167  ac_cv_sys_large_files=unknown
18168  break
18169done
18170fi
18171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
18172$as_echo "$ac_cv_sys_large_files" >&6; }
18173case $ac_cv_sys_large_files in #(
18174  no | unknown) ;;
18175  *)
18176cat >>confdefs.h <<_ACEOF
18177#define _LARGE_FILES $ac_cv_sys_large_files
18178_ACEOF
18179;;
18180esac
18181rm -rf conftest*
18182  fi
18183fi
18184
18185
18186for ac_header in err.h
18187do :
18188  ac_fn_c_check_header_mongrel "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
18189if test "x$ac_cv_header_err_h" = xyes; then :
18190  cat >>confdefs.h <<_ACEOF
18191#define HAVE_ERR_H 1
18192_ACEOF
18193
18194fi
18195
18196done
18197
18198
18199ac_fn_c_check_header_mongrel "$LINENO" "asm/mtrr.h" "ac_cv_header_asm_mtrr_h" "$ac_includes_default"
18200if test "x$ac_cv_header_asm_mtrr_h" = xyes; then :
18201  have_mtrr_h="yes"
18202else
18203  have_mtrr_h="no"
18204fi
18205
18206
18207
18208if test "x$have_mtrr_h" = xyes; then
18209
18210$as_echo "#define HAVE_MTRR 1" >>confdefs.h
18211
18212fi
18213
18214# check for the pci_io.pi_sel.pc_domain
18215ac_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>
18216                 #include <sys/pciio.h>
18217
18218"
18219if test "x$ac_cv_member_struct_pci_io_pi_sel_pc_domain" = xyes; then :
18220
18221$as_echo "#define HAVE_PCI_IO_PC_DOMAIN 1" >>confdefs.h
18222
18223fi
18224
18225
18226
18227
18228
18229ac_config_files="$ac_config_files Makefile include/Makefile man/Makefile src/Makefile scanpci/Makefile pciaccess.pc"
18230
18231cat >confcache <<\_ACEOF
18232# This file is a shell script that caches the results of configure
18233# tests run on this system so they can be shared between configure
18234# scripts and configure runs, see configure's option --config-cache.
18235# It is not useful on other systems.  If it contains results you don't
18236# want to keep, you may remove or edit it.
18237#
18238# config.status only pays attention to the cache file if you give it
18239# the --recheck option to rerun configure.
18240#
18241# `ac_cv_env_foo' variables (set or unset) will be overridden when
18242# loading this file, other *unset* `ac_cv_foo' will be assigned the
18243# following values.
18244
18245_ACEOF
18246
18247# The following way of writing the cache mishandles newlines in values,
18248# but we know of no workaround that is simple, portable, and efficient.
18249# So, we kill variables containing newlines.
18250# Ultrix sh set writes to stderr and can't be redirected directly,
18251# and sets the high bit in the cache file unless we assign to the vars.
18252(
18253  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18254    eval ac_val=\$$ac_var
18255    case $ac_val in #(
18256    *${as_nl}*)
18257      case $ac_var in #(
18258      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18259$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18260      esac
18261      case $ac_var in #(
18262      _ | IFS | as_nl) ;; #(
18263      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18264      *) { eval $ac_var=; unset $ac_var;} ;;
18265      esac ;;
18266    esac
18267  done
18268
18269  (set) 2>&1 |
18270    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18271    *${as_nl}ac_space=\ *)
18272      # `set' does not quote correctly, so add quotes: double-quote
18273      # substitution turns \\\\ into \\, and sed turns \\ into \.
18274      sed -n \
18275	"s/'/'\\\\''/g;
18276	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18277      ;; #(
18278    *)
18279      # `set' quotes correctly as required by POSIX, so do not add quotes.
18280      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18281      ;;
18282    esac |
18283    sort
18284) |
18285  sed '
18286     /^ac_cv_env_/b end
18287     t clear
18288     :clear
18289     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18290     t end
18291     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18292     :end' >>confcache
18293if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18294  if test -w "$cache_file"; then
18295    if test "x$cache_file" != "x/dev/null"; then
18296      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18297$as_echo "$as_me: updating cache $cache_file" >&6;}
18298      if test ! -f "$cache_file" || test -h "$cache_file"; then
18299	cat confcache >"$cache_file"
18300      else
18301        case $cache_file in #(
18302        */* | ?:*)
18303	  mv -f confcache "$cache_file"$$ &&
18304	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18305        *)
18306	  mv -f confcache "$cache_file" ;;
18307	esac
18308      fi
18309    fi
18310  else
18311    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18312$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18313  fi
18314fi
18315rm -f confcache
18316
18317test "x$prefix" = xNONE && prefix=$ac_default_prefix
18318# Let make expand exec_prefix.
18319test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18320
18321DEFS=-DHAVE_CONFIG_H
18322
18323ac_libobjs=
18324ac_ltlibobjs=
18325U=
18326for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18327  # 1. Remove the extension, and $U if already installed.
18328  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18329  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18330  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18331  #    will be set to the directory where LIBOBJS objects are built.
18332  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18333  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18334done
18335LIBOBJS=$ac_libobjs
18336
18337LTLIBOBJS=$ac_ltlibobjs
18338
18339
18340 if test -n "$EXEEXT"; then
18341  am__EXEEXT_TRUE=
18342  am__EXEEXT_FALSE='#'
18343else
18344  am__EXEEXT_TRUE='#'
18345  am__EXEEXT_FALSE=
18346fi
18347
18348if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18349  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18350Usually this means the macro was only invoked conditionally." "$LINENO" 5
18351fi
18352if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18353  as_fn_error $? "conditional \"AMDEP\" was never defined.
18354Usually this means the macro was only invoked conditionally." "$LINENO" 5
18355fi
18356if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18357  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18358Usually this means the macro was only invoked conditionally." "$LINENO" 5
18359fi
18360if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
18361  as_fn_error $? "conditional \"LINUX\" was never defined.
18362Usually this means the macro was only invoked conditionally." "$LINENO" 5
18363fi
18364if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then
18365  as_fn_error $? "conditional \"FREEBSD\" was never defined.
18366Usually this means the macro was only invoked conditionally." "$LINENO" 5
18367fi
18368if test -z "${NETBSD_TRUE}" && test -z "${NETBSD_FALSE}"; then
18369  as_fn_error $? "conditional \"NETBSD\" was never defined.
18370Usually this means the macro was only invoked conditionally." "$LINENO" 5
18371fi
18372if test -z "${OPENBSD_TRUE}" && test -z "${OPENBSD_FALSE}"; then
18373  as_fn_error $? "conditional \"OPENBSD\" was never defined.
18374Usually this means the macro was only invoked conditionally." "$LINENO" 5
18375fi
18376if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
18377  as_fn_error $? "conditional \"SOLARIS\" was never defined.
18378Usually this means the macro was only invoked conditionally." "$LINENO" 5
18379fi
18380if test -z "${GNU_TRUE}" && test -z "${GNU_FALSE}"; then
18381  as_fn_error $? "conditional \"GNU\" was never defined.
18382Usually this means the macro was only invoked conditionally." "$LINENO" 5
18383fi
18384
18385: "${CONFIG_STATUS=./config.status}"
18386ac_write_fail=0
18387ac_clean_files_save=$ac_clean_files
18388ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18389{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18390$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18391as_write_fail=0
18392cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18393#! $SHELL
18394# Generated by $as_me.
18395# Run this file to recreate the current configuration.
18396# Compiler output produced by configure, useful for debugging
18397# configure, is in config.log if it exists.
18398
18399debug=false
18400ac_cs_recheck=false
18401ac_cs_silent=false
18402
18403SHELL=\${CONFIG_SHELL-$SHELL}
18404export SHELL
18405_ASEOF
18406cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18407## -------------------- ##
18408## M4sh Initialization. ##
18409## -------------------- ##
18410
18411# Be more Bourne compatible
18412DUALCASE=1; export DUALCASE # for MKS sh
18413if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18414  emulate sh
18415  NULLCMD=:
18416  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18417  # is contrary to our usage.  Disable this feature.
18418  alias -g '${1+"$@"}'='"$@"'
18419  setopt NO_GLOB_SUBST
18420else
18421  case `(set -o) 2>/dev/null` in #(
18422  *posix*) :
18423    set -o posix ;; #(
18424  *) :
18425     ;;
18426esac
18427fi
18428
18429
18430as_nl='
18431'
18432export as_nl
18433# Printing a long string crashes Solaris 7 /usr/bin/printf.
18434as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18435as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18436as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18437# Prefer a ksh shell builtin over an external printf program on Solaris,
18438# but without wasting forks for bash or zsh.
18439if test -z "$BASH_VERSION$ZSH_VERSION" \
18440    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18441  as_echo='print -r --'
18442  as_echo_n='print -rn --'
18443elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18444  as_echo='printf %s\n'
18445  as_echo_n='printf %s'
18446else
18447  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18448    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18449    as_echo_n='/usr/ucb/echo -n'
18450  else
18451    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18452    as_echo_n_body='eval
18453      arg=$1;
18454      case $arg in #(
18455      *"$as_nl"*)
18456	expr "X$arg" : "X\\(.*\\)$as_nl";
18457	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18458      esac;
18459      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18460    '
18461    export as_echo_n_body
18462    as_echo_n='sh -c $as_echo_n_body as_echo'
18463  fi
18464  export as_echo_body
18465  as_echo='sh -c $as_echo_body as_echo'
18466fi
18467
18468# The user is always right.
18469if test "${PATH_SEPARATOR+set}" != set; then
18470  PATH_SEPARATOR=:
18471  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18472    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18473      PATH_SEPARATOR=';'
18474  }
18475fi
18476
18477
18478# IFS
18479# We need space, tab and new line, in precisely that order.  Quoting is
18480# there to prevent editors from complaining about space-tab.
18481# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18482# splitting by setting IFS to empty value.)
18483IFS=" ""	$as_nl"
18484
18485# Find who we are.  Look in the path if we contain no directory separator.
18486as_myself=
18487case $0 in #((
18488  *[\\/]* ) as_myself=$0 ;;
18489  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18490for as_dir in $PATH
18491do
18492  IFS=$as_save_IFS
18493  test -z "$as_dir" && as_dir=.
18494    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18495  done
18496IFS=$as_save_IFS
18497
18498     ;;
18499esac
18500# We did not find ourselves, most probably we were run as `sh COMMAND'
18501# in which case we are not to be found in the path.
18502if test "x$as_myself" = x; then
18503  as_myself=$0
18504fi
18505if test ! -f "$as_myself"; then
18506  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18507  exit 1
18508fi
18509
18510# Unset variables that we do not need and which cause bugs (e.g. in
18511# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18512# suppresses any "Segmentation fault" message there.  '((' could
18513# trigger a bug in pdksh 5.2.14.
18514for as_var in BASH_ENV ENV MAIL MAILPATH
18515do eval test x\${$as_var+set} = xset \
18516  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18517done
18518PS1='$ '
18519PS2='> '
18520PS4='+ '
18521
18522# NLS nuisances.
18523LC_ALL=C
18524export LC_ALL
18525LANGUAGE=C
18526export LANGUAGE
18527
18528# CDPATH.
18529(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18530
18531
18532# as_fn_error STATUS ERROR [LINENO LOG_FD]
18533# ----------------------------------------
18534# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18535# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18536# script with STATUS, using 1 if that was 0.
18537as_fn_error ()
18538{
18539  as_status=$1; test $as_status -eq 0 && as_status=1
18540  if test "$4"; then
18541    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18542    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18543  fi
18544  $as_echo "$as_me: error: $2" >&2
18545  as_fn_exit $as_status
18546} # as_fn_error
18547
18548
18549# as_fn_set_status STATUS
18550# -----------------------
18551# Set $? to STATUS, without forking.
18552as_fn_set_status ()
18553{
18554  return $1
18555} # as_fn_set_status
18556
18557# as_fn_exit STATUS
18558# -----------------
18559# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18560as_fn_exit ()
18561{
18562  set +e
18563  as_fn_set_status $1
18564  exit $1
18565} # as_fn_exit
18566
18567# as_fn_unset VAR
18568# ---------------
18569# Portably unset VAR.
18570as_fn_unset ()
18571{
18572  { eval $1=; unset $1;}
18573}
18574as_unset=as_fn_unset
18575# as_fn_append VAR VALUE
18576# ----------------------
18577# Append the text in VALUE to the end of the definition contained in VAR. Take
18578# advantage of any shell optimizations that allow amortized linear growth over
18579# repeated appends, instead of the typical quadratic growth present in naive
18580# implementations.
18581if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18582  eval 'as_fn_append ()
18583  {
18584    eval $1+=\$2
18585  }'
18586else
18587  as_fn_append ()
18588  {
18589    eval $1=\$$1\$2
18590  }
18591fi # as_fn_append
18592
18593# as_fn_arith ARG...
18594# ------------------
18595# Perform arithmetic evaluation on the ARGs, and store the result in the
18596# global $as_val. Take advantage of shells that can avoid forks. The arguments
18597# must be portable across $(()) and expr.
18598if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18599  eval 'as_fn_arith ()
18600  {
18601    as_val=$(( $* ))
18602  }'
18603else
18604  as_fn_arith ()
18605  {
18606    as_val=`expr "$@" || test $? -eq 1`
18607  }
18608fi # as_fn_arith
18609
18610
18611if expr a : '\(a\)' >/dev/null 2>&1 &&
18612   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18613  as_expr=expr
18614else
18615  as_expr=false
18616fi
18617
18618if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18619  as_basename=basename
18620else
18621  as_basename=false
18622fi
18623
18624if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18625  as_dirname=dirname
18626else
18627  as_dirname=false
18628fi
18629
18630as_me=`$as_basename -- "$0" ||
18631$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18632	 X"$0" : 'X\(//\)$' \| \
18633	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18634$as_echo X/"$0" |
18635    sed '/^.*\/\([^/][^/]*\)\/*$/{
18636	    s//\1/
18637	    q
18638	  }
18639	  /^X\/\(\/\/\)$/{
18640	    s//\1/
18641	    q
18642	  }
18643	  /^X\/\(\/\).*/{
18644	    s//\1/
18645	    q
18646	  }
18647	  s/.*/./; q'`
18648
18649# Avoid depending upon Character Ranges.
18650as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18651as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18652as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18653as_cr_digits='0123456789'
18654as_cr_alnum=$as_cr_Letters$as_cr_digits
18655
18656ECHO_C= ECHO_N= ECHO_T=
18657case `echo -n x` in #(((((
18658-n*)
18659  case `echo 'xy\c'` in
18660  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18661  xy)  ECHO_C='\c';;
18662  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18663       ECHO_T='	';;
18664  esac;;
18665*)
18666  ECHO_N='-n';;
18667esac
18668
18669rm -f conf$$ conf$$.exe conf$$.file
18670if test -d conf$$.dir; then
18671  rm -f conf$$.dir/conf$$.file
18672else
18673  rm -f conf$$.dir
18674  mkdir conf$$.dir 2>/dev/null
18675fi
18676if (echo >conf$$.file) 2>/dev/null; then
18677  if ln -s conf$$.file conf$$ 2>/dev/null; then
18678    as_ln_s='ln -s'
18679    # ... but there are two gotchas:
18680    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18681    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18682    # In both cases, we have to default to `cp -p'.
18683    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18684      as_ln_s='cp -p'
18685  elif ln conf$$.file conf$$ 2>/dev/null; then
18686    as_ln_s=ln
18687  else
18688    as_ln_s='cp -p'
18689  fi
18690else
18691  as_ln_s='cp -p'
18692fi
18693rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18694rmdir conf$$.dir 2>/dev/null
18695
18696
18697# as_fn_mkdir_p
18698# -------------
18699# Create "$as_dir" as a directory, including parents if necessary.
18700as_fn_mkdir_p ()
18701{
18702
18703  case $as_dir in #(
18704  -*) as_dir=./$as_dir;;
18705  esac
18706  test -d "$as_dir" || eval $as_mkdir_p || {
18707    as_dirs=
18708    while :; do
18709      case $as_dir in #(
18710      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18711      *) as_qdir=$as_dir;;
18712      esac
18713      as_dirs="'$as_qdir' $as_dirs"
18714      as_dir=`$as_dirname -- "$as_dir" ||
18715$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18716	 X"$as_dir" : 'X\(//\)[^/]' \| \
18717	 X"$as_dir" : 'X\(//\)$' \| \
18718	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18719$as_echo X"$as_dir" |
18720    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18721	    s//\1/
18722	    q
18723	  }
18724	  /^X\(\/\/\)[^/].*/{
18725	    s//\1/
18726	    q
18727	  }
18728	  /^X\(\/\/\)$/{
18729	    s//\1/
18730	    q
18731	  }
18732	  /^X\(\/\).*/{
18733	    s//\1/
18734	    q
18735	  }
18736	  s/.*/./; q'`
18737      test -d "$as_dir" && break
18738    done
18739    test -z "$as_dirs" || eval "mkdir $as_dirs"
18740  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18741
18742
18743} # as_fn_mkdir_p
18744if mkdir -p . 2>/dev/null; then
18745  as_mkdir_p='mkdir -p "$as_dir"'
18746else
18747  test -d ./-p && rmdir ./-p
18748  as_mkdir_p=false
18749fi
18750
18751if test -x / >/dev/null 2>&1; then
18752  as_test_x='test -x'
18753else
18754  if ls -dL / >/dev/null 2>&1; then
18755    as_ls_L_option=L
18756  else
18757    as_ls_L_option=
18758  fi
18759  as_test_x='
18760    eval sh -c '\''
18761      if test -d "$1"; then
18762	test -d "$1/.";
18763      else
18764	case $1 in #(
18765	-*)set "./$1";;
18766	esac;
18767	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18768	???[sx]*):;;*)false;;esac;fi
18769    '\'' sh
18770  '
18771fi
18772as_executable_p=$as_test_x
18773
18774# Sed expression to map a string onto a valid CPP name.
18775as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18776
18777# Sed expression to map a string onto a valid variable name.
18778as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18779
18780
18781exec 6>&1
18782## ----------------------------------- ##
18783## Main body of $CONFIG_STATUS script. ##
18784## ----------------------------------- ##
18785_ASEOF
18786test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18787
18788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18789# Save the log message, to keep $0 and so on meaningful, and to
18790# report actual input values of CONFIG_FILES etc. instead of their
18791# values after options handling.
18792ac_log="
18793This file was extended by libpciaccess $as_me 0.13.1, which was
18794generated by GNU Autoconf 2.68.  Invocation command line was
18795
18796  CONFIG_FILES    = $CONFIG_FILES
18797  CONFIG_HEADERS  = $CONFIG_HEADERS
18798  CONFIG_LINKS    = $CONFIG_LINKS
18799  CONFIG_COMMANDS = $CONFIG_COMMANDS
18800  $ $0 $@
18801
18802on `(hostname || uname -n) 2>/dev/null | sed 1q`
18803"
18804
18805_ACEOF
18806
18807case $ac_config_files in *"
18808"*) set x $ac_config_files; shift; ac_config_files=$*;;
18809esac
18810
18811case $ac_config_headers in *"
18812"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18813esac
18814
18815
18816cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18817# Files that config.status was made for.
18818config_files="$ac_config_files"
18819config_headers="$ac_config_headers"
18820config_commands="$ac_config_commands"
18821
18822_ACEOF
18823
18824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18825ac_cs_usage="\
18826\`$as_me' instantiates files and other configuration actions
18827from templates according to the current configuration.  Unless the files
18828and actions are specified as TAGs, all are instantiated by default.
18829
18830Usage: $0 [OPTION]... [TAG]...
18831
18832  -h, --help       print this help, then exit
18833  -V, --version    print version number and configuration settings, then exit
18834      --config     print configuration, then exit
18835  -q, --quiet, --silent
18836                   do not print progress messages
18837  -d, --debug      don't remove temporary files
18838      --recheck    update $as_me by reconfiguring in the same conditions
18839      --file=FILE[:TEMPLATE]
18840                   instantiate the configuration file FILE
18841      --header=FILE[:TEMPLATE]
18842                   instantiate the configuration header FILE
18843
18844Configuration files:
18845$config_files
18846
18847Configuration headers:
18848$config_headers
18849
18850Configuration commands:
18851$config_commands
18852
18853Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=libpciaccess>."
18854
18855_ACEOF
18856cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18857ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18858ac_cs_version="\\
18859libpciaccess config.status 0.13.1
18860configured by $0, generated by GNU Autoconf 2.68,
18861  with options \\"\$ac_cs_config\\"
18862
18863Copyright (C) 2010 Free Software Foundation, Inc.
18864This config.status script is free software; the Free Software Foundation
18865gives unlimited permission to copy, distribute and modify it."
18866
18867ac_pwd='$ac_pwd'
18868srcdir='$srcdir'
18869INSTALL='$INSTALL'
18870MKDIR_P='$MKDIR_P'
18871AWK='$AWK'
18872test -n "\$AWK" || AWK=awk
18873_ACEOF
18874
18875cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18876# The default lists apply if the user does not specify any file.
18877ac_need_defaults=:
18878while test $# != 0
18879do
18880  case $1 in
18881  --*=?*)
18882    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18883    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18884    ac_shift=:
18885    ;;
18886  --*=)
18887    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18888    ac_optarg=
18889    ac_shift=:
18890    ;;
18891  *)
18892    ac_option=$1
18893    ac_optarg=$2
18894    ac_shift=shift
18895    ;;
18896  esac
18897
18898  case $ac_option in
18899  # Handling of the options.
18900  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18901    ac_cs_recheck=: ;;
18902  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18903    $as_echo "$ac_cs_version"; exit ;;
18904  --config | --confi | --conf | --con | --co | --c )
18905    $as_echo "$ac_cs_config"; exit ;;
18906  --debug | --debu | --deb | --de | --d | -d )
18907    debug=: ;;
18908  --file | --fil | --fi | --f )
18909    $ac_shift
18910    case $ac_optarg in
18911    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18912    '') as_fn_error $? "missing file argument" ;;
18913    esac
18914    as_fn_append CONFIG_FILES " '$ac_optarg'"
18915    ac_need_defaults=false;;
18916  --header | --heade | --head | --hea )
18917    $ac_shift
18918    case $ac_optarg in
18919    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18920    esac
18921    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18922    ac_need_defaults=false;;
18923  --he | --h)
18924    # Conflict between --help and --header
18925    as_fn_error $? "ambiguous option: \`$1'
18926Try \`$0 --help' for more information.";;
18927  --help | --hel | -h )
18928    $as_echo "$ac_cs_usage"; exit ;;
18929  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18930  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18931    ac_cs_silent=: ;;
18932
18933  # This is an error.
18934  -*) as_fn_error $? "unrecognized option: \`$1'
18935Try \`$0 --help' for more information." ;;
18936
18937  *) as_fn_append ac_config_targets " $1"
18938     ac_need_defaults=false ;;
18939
18940  esac
18941  shift
18942done
18943
18944ac_configure_extra_args=
18945
18946if $ac_cs_silent; then
18947  exec 6>/dev/null
18948  ac_configure_extra_args="$ac_configure_extra_args --silent"
18949fi
18950
18951_ACEOF
18952cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18953if \$ac_cs_recheck; then
18954  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18955  shift
18956  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18957  CONFIG_SHELL='$SHELL'
18958  export CONFIG_SHELL
18959  exec "\$@"
18960fi
18961
18962_ACEOF
18963cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18964exec 5>>config.log
18965{
18966  echo
18967  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18968## Running $as_me. ##
18969_ASBOX
18970  $as_echo "$ac_log"
18971} >&5
18972
18973_ACEOF
18974cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18975#
18976# INIT-COMMANDS
18977#
18978AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18979
18980
18981# The HP-UX ksh and POSIX shell print the target directory to stdout
18982# if CDPATH is set.
18983(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18984
18985sed_quote_subst='$sed_quote_subst'
18986double_quote_subst='$double_quote_subst'
18987delay_variable_subst='$delay_variable_subst'
18988macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18989macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18990enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18991enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18992pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18993enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18994SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18995ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18996PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18997host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18998host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18999host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19000build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19001build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19002build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19003SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19004Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19005GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19006EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19007FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19008LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19009NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19010LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19011max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19012ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19013exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19014lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19015lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19016lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19017lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19018lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19019reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19020reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19021OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19022deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19023file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19024file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19025want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19026DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19027sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19028AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19029AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19030archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19031STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19032RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19033old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19034old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19035old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19036lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19037CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19038CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19039compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19040GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19041lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19042lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19043lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19044lt_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"`'
19045nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19046lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19047objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19048MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19049lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19050lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19051lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19052lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19053lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19054need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19055MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19056DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19057NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19058LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19059OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19060OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19061libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19062shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19063extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19064archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19065enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19066export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19067whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19068compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19069old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19070old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19071archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19072archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19073module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19074module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19075with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19076allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19077no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19078hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19079hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19080hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19081hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19082hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19083hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19084hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19085inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19086link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19087always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19088export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19089exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19090include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19091prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19092postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19093file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19094variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19095need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19096need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19097version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19098runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19099shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19100shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19101libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19102library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19103soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19104install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19105postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19106postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19107finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19108finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19109hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19110sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19111sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19112hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19113enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19114enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19115enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19116old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19117striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19118
19119LTCC='$LTCC'
19120LTCFLAGS='$LTCFLAGS'
19121compiler='$compiler_DEFAULT'
19122
19123# A function that is used when there is no print builtin or printf.
19124func_fallback_echo ()
19125{
19126  eval 'cat <<_LTECHO_EOF
19127\$1
19128_LTECHO_EOF'
19129}
19130
19131# Quote evaled strings.
19132for var in SHELL \
19133ECHO \
19134PATH_SEPARATOR \
19135SED \
19136GREP \
19137EGREP \
19138FGREP \
19139LD \
19140NM \
19141LN_S \
19142lt_SP2NL \
19143lt_NL2SP \
19144reload_flag \
19145OBJDUMP \
19146deplibs_check_method \
19147file_magic_cmd \
19148file_magic_glob \
19149want_nocaseglob \
19150DLLTOOL \
19151sharedlib_from_linklib_cmd \
19152AR \
19153AR_FLAGS \
19154archiver_list_spec \
19155STRIP \
19156RANLIB \
19157CC \
19158CFLAGS \
19159compiler \
19160lt_cv_sys_global_symbol_pipe \
19161lt_cv_sys_global_symbol_to_cdecl \
19162lt_cv_sys_global_symbol_to_c_name_address \
19163lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19164nm_file_list_spec \
19165lt_prog_compiler_no_builtin_flag \
19166lt_prog_compiler_pic \
19167lt_prog_compiler_wl \
19168lt_prog_compiler_static \
19169lt_cv_prog_compiler_c_o \
19170need_locks \
19171MANIFEST_TOOL \
19172DSYMUTIL \
19173NMEDIT \
19174LIPO \
19175OTOOL \
19176OTOOL64 \
19177shrext_cmds \
19178export_dynamic_flag_spec \
19179whole_archive_flag_spec \
19180compiler_needs_object \
19181with_gnu_ld \
19182allow_undefined_flag \
19183no_undefined_flag \
19184hardcode_libdir_flag_spec \
19185hardcode_libdir_separator \
19186exclude_expsyms \
19187include_expsyms \
19188file_list_spec \
19189variables_saved_for_relink \
19190libname_spec \
19191library_names_spec \
19192soname_spec \
19193install_override_mode \
19194finish_eval \
19195old_striplib \
19196striplib; do
19197    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19198    *[\\\\\\\`\\"\\\$]*)
19199      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19200      ;;
19201    *)
19202      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19203      ;;
19204    esac
19205done
19206
19207# Double-quote double-evaled strings.
19208for var in reload_cmds \
19209old_postinstall_cmds \
19210old_postuninstall_cmds \
19211old_archive_cmds \
19212extract_expsyms_cmds \
19213old_archive_from_new_cmds \
19214old_archive_from_expsyms_cmds \
19215archive_cmds \
19216archive_expsym_cmds \
19217module_cmds \
19218module_expsym_cmds \
19219export_symbols_cmds \
19220prelink_cmds \
19221postlink_cmds \
19222postinstall_cmds \
19223postuninstall_cmds \
19224finish_cmds \
19225sys_lib_search_path_spec \
19226sys_lib_dlsearch_path_spec; do
19227    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19228    *[\\\\\\\`\\"\\\$]*)
19229      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19230      ;;
19231    *)
19232      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19233      ;;
19234    esac
19235done
19236
19237ac_aux_dir='$ac_aux_dir'
19238xsi_shell='$xsi_shell'
19239lt_shell_append='$lt_shell_append'
19240
19241# See if we are running on zsh, and set the options which allow our
19242# commands through without removal of \ escapes INIT.
19243if test -n "\${ZSH_VERSION+set}" ; then
19244   setopt NO_GLOB_SUBST
19245fi
19246
19247
19248    PACKAGE='$PACKAGE'
19249    VERSION='$VERSION'
19250    TIMESTAMP='$TIMESTAMP'
19251    RM='$RM'
19252    ofile='$ofile'
19253
19254
19255
19256
19257_ACEOF
19258
19259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19260
19261# Handling of arguments.
19262for ac_config_target in $ac_config_targets
19263do
19264  case $ac_config_target in
19265    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19266    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19267    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19268    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19269    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19270    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19271    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19272    "scanpci/Makefile") CONFIG_FILES="$CONFIG_FILES scanpci/Makefile" ;;
19273    "pciaccess.pc") CONFIG_FILES="$CONFIG_FILES pciaccess.pc" ;;
19274
19275  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19276  esac
19277done
19278
19279
19280# If the user did not use the arguments to specify the items to instantiate,
19281# then the envvar interface is used.  Set only those that are not.
19282# We use the long form for the default assignment because of an extremely
19283# bizarre bug on SunOS 4.1.3.
19284if $ac_need_defaults; then
19285  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19286  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19287  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19288fi
19289
19290# Have a temporary directory for convenience.  Make it in the build tree
19291# simply because there is no reason against having it here, and in addition,
19292# creating and moving files from /tmp can sometimes cause problems.
19293# Hook for its removal unless debugging.
19294# Note that there is a small window in which the directory will not be cleaned:
19295# after its creation but before its name has been assigned to `$tmp'.
19296$debug ||
19297{
19298  tmp= ac_tmp=
19299  trap 'exit_status=$?
19300  : "${ac_tmp:=$tmp}"
19301  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19302' 0
19303  trap 'as_fn_exit 1' 1 2 13 15
19304}
19305# Create a (secure) tmp directory for tmp files.
19306
19307{
19308  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19309  test -d "$tmp"
19310}  ||
19311{
19312  tmp=./conf$$-$RANDOM
19313  (umask 077 && mkdir "$tmp")
19314} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19315ac_tmp=$tmp
19316
19317# Set up the scripts for CONFIG_FILES section.
19318# No need to generate them if there are no CONFIG_FILES.
19319# This happens for instance with `./config.status config.h'.
19320if test -n "$CONFIG_FILES"; then
19321
19322
19323ac_cr=`echo X | tr X '\015'`
19324# On cygwin, bash can eat \r inside `` if the user requested igncr.
19325# But we know of no other shell where ac_cr would be empty at this
19326# point, so we can use a bashism as a fallback.
19327if test "x$ac_cr" = x; then
19328  eval ac_cr=\$\'\\r\'
19329fi
19330ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19331if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19332  ac_cs_awk_cr='\\r'
19333else
19334  ac_cs_awk_cr=$ac_cr
19335fi
19336
19337echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19338_ACEOF
19339
19340
19341{
19342  echo "cat >conf$$subs.awk <<_ACEOF" &&
19343  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19344  echo "_ACEOF"
19345} >conf$$subs.sh ||
19346  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19347ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19348ac_delim='%!_!# '
19349for ac_last_try in false false false false false :; do
19350  . ./conf$$subs.sh ||
19351    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19352
19353  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19354  if test $ac_delim_n = $ac_delim_num; then
19355    break
19356  elif $ac_last_try; then
19357    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19358  else
19359    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19360  fi
19361done
19362rm -f conf$$subs.sh
19363
19364cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19365cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19366_ACEOF
19367sed -n '
19368h
19369s/^/S["/; s/!.*/"]=/
19370p
19371g
19372s/^[^!]*!//
19373:repl
19374t repl
19375s/'"$ac_delim"'$//
19376t delim
19377:nl
19378h
19379s/\(.\{148\}\)..*/\1/
19380t more1
19381s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19382p
19383n
19384b repl
19385:more1
19386s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19387p
19388g
19389s/.\{148\}//
19390t nl
19391:delim
19392h
19393s/\(.\{148\}\)..*/\1/
19394t more2
19395s/["\\]/\\&/g; s/^/"/; s/$/"/
19396p
19397b
19398:more2
19399s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19400p
19401g
19402s/.\{148\}//
19403t delim
19404' <conf$$subs.awk | sed '
19405/^[^""]/{
19406  N
19407  s/\n//
19408}
19409' >>$CONFIG_STATUS || ac_write_fail=1
19410rm -f conf$$subs.awk
19411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19412_ACAWK
19413cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19414  for (key in S) S_is_set[key] = 1
19415  FS = ""
19416
19417}
19418{
19419  line = $ 0
19420  nfields = split(line, field, "@")
19421  substed = 0
19422  len = length(field[1])
19423  for (i = 2; i < nfields; i++) {
19424    key = field[i]
19425    keylen = length(key)
19426    if (S_is_set[key]) {
19427      value = S[key]
19428      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19429      len += length(value) + length(field[++i])
19430      substed = 1
19431    } else
19432      len += 1 + keylen
19433  }
19434
19435  print line
19436}
19437
19438_ACAWK
19439_ACEOF
19440cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19441if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19442  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19443else
19444  cat
19445fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19446  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19447_ACEOF
19448
19449# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19450# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19451# trailing colons and then remove the whole line if VPATH becomes empty
19452# (actually we leave an empty line to preserve line numbers).
19453if test "x$srcdir" = x.; then
19454  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19455h
19456s///
19457s/^/:/
19458s/[	 ]*$/:/
19459s/:\$(srcdir):/:/g
19460s/:\${srcdir}:/:/g
19461s/:@srcdir@:/:/g
19462s/^:*//
19463s/:*$//
19464x
19465s/\(=[	 ]*\).*/\1/
19466G
19467s/\n//
19468s/^[^=]*=[	 ]*$//
19469}'
19470fi
19471
19472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19473fi # test -n "$CONFIG_FILES"
19474
19475# Set up the scripts for CONFIG_HEADERS section.
19476# No need to generate them if there are no CONFIG_HEADERS.
19477# This happens for instance with `./config.status Makefile'.
19478if test -n "$CONFIG_HEADERS"; then
19479cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19480BEGIN {
19481_ACEOF
19482
19483# Transform confdefs.h into an awk script `defines.awk', embedded as
19484# here-document in config.status, that substitutes the proper values into
19485# config.h.in to produce config.h.
19486
19487# Create a delimiter string that does not exist in confdefs.h, to ease
19488# handling of long lines.
19489ac_delim='%!_!# '
19490for ac_last_try in false false :; do
19491  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19492  if test -z "$ac_tt"; then
19493    break
19494  elif $ac_last_try; then
19495    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19496  else
19497    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19498  fi
19499done
19500
19501# For the awk script, D is an array of macro values keyed by name,
19502# likewise P contains macro parameters if any.  Preserve backslash
19503# newline sequences.
19504
19505ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19506sed -n '
19507s/.\{148\}/&'"$ac_delim"'/g
19508t rset
19509:rset
19510s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19511t def
19512d
19513:def
19514s/\\$//
19515t bsnl
19516s/["\\]/\\&/g
19517s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19518D["\1"]=" \3"/p
19519s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19520d
19521:bsnl
19522s/["\\]/\\&/g
19523s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19524D["\1"]=" \3\\\\\\n"\\/p
19525t cont
19526s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19527t cont
19528d
19529:cont
19530n
19531s/.\{148\}/&'"$ac_delim"'/g
19532t clear
19533:clear
19534s/\\$//
19535t bsnlc
19536s/["\\]/\\&/g; s/^/"/; s/$/"/p
19537d
19538:bsnlc
19539s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19540b cont
19541' <confdefs.h | sed '
19542s/'"$ac_delim"'/"\\\
19543"/g' >>$CONFIG_STATUS || ac_write_fail=1
19544
19545cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19546  for (key in D) D_is_set[key] = 1
19547  FS = ""
19548}
19549/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19550  line = \$ 0
19551  split(line, arg, " ")
19552  if (arg[1] == "#") {
19553    defundef = arg[2]
19554    mac1 = arg[3]
19555  } else {
19556    defundef = substr(arg[1], 2)
19557    mac1 = arg[2]
19558  }
19559  split(mac1, mac2, "(") #)
19560  macro = mac2[1]
19561  prefix = substr(line, 1, index(line, defundef) - 1)
19562  if (D_is_set[macro]) {
19563    # Preserve the white space surrounding the "#".
19564    print prefix "define", macro P[macro] D[macro]
19565    next
19566  } else {
19567    # Replace #undef with comments.  This is necessary, for example,
19568    # in the case of _POSIX_SOURCE, which is predefined and required
19569    # on some systems where configure will not decide to define it.
19570    if (defundef == "undef") {
19571      print "/*", prefix defundef, macro, "*/"
19572      next
19573    }
19574  }
19575}
19576{ print }
19577_ACAWK
19578_ACEOF
19579cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19580  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19581fi # test -n "$CONFIG_HEADERS"
19582
19583
19584eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19585shift
19586for ac_tag
19587do
19588  case $ac_tag in
19589  :[FHLC]) ac_mode=$ac_tag; continue;;
19590  esac
19591  case $ac_mode$ac_tag in
19592  :[FHL]*:*);;
19593  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19594  :[FH]-) ac_tag=-:-;;
19595  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19596  esac
19597  ac_save_IFS=$IFS
19598  IFS=:
19599  set x $ac_tag
19600  IFS=$ac_save_IFS
19601  shift
19602  ac_file=$1
19603  shift
19604
19605  case $ac_mode in
19606  :L) ac_source=$1;;
19607  :[FH])
19608    ac_file_inputs=
19609    for ac_f
19610    do
19611      case $ac_f in
19612      -) ac_f="$ac_tmp/stdin";;
19613      *) # Look for the file first in the build tree, then in the source tree
19614	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19615	 # because $ac_f cannot contain `:'.
19616	 test -f "$ac_f" ||
19617	   case $ac_f in
19618	   [\\/$]*) false;;
19619	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19620	   esac ||
19621	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19622      esac
19623      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19624      as_fn_append ac_file_inputs " '$ac_f'"
19625    done
19626
19627    # Let's still pretend it is `configure' which instantiates (i.e., don't
19628    # use $as_me), people would be surprised to read:
19629    #    /* config.h.  Generated by config.status.  */
19630    configure_input='Generated from '`
19631	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19632	`' by configure.'
19633    if test x"$ac_file" != x-; then
19634      configure_input="$ac_file.  $configure_input"
19635      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19636$as_echo "$as_me: creating $ac_file" >&6;}
19637    fi
19638    # Neutralize special characters interpreted by sed in replacement strings.
19639    case $configure_input in #(
19640    *\&* | *\|* | *\\* )
19641       ac_sed_conf_input=`$as_echo "$configure_input" |
19642       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19643    *) ac_sed_conf_input=$configure_input;;
19644    esac
19645
19646    case $ac_tag in
19647    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19648      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19649    esac
19650    ;;
19651  esac
19652
19653  ac_dir=`$as_dirname -- "$ac_file" ||
19654$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19655	 X"$ac_file" : 'X\(//\)[^/]' \| \
19656	 X"$ac_file" : 'X\(//\)$' \| \
19657	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19658$as_echo X"$ac_file" |
19659    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19660	    s//\1/
19661	    q
19662	  }
19663	  /^X\(\/\/\)[^/].*/{
19664	    s//\1/
19665	    q
19666	  }
19667	  /^X\(\/\/\)$/{
19668	    s//\1/
19669	    q
19670	  }
19671	  /^X\(\/\).*/{
19672	    s//\1/
19673	    q
19674	  }
19675	  s/.*/./; q'`
19676  as_dir="$ac_dir"; as_fn_mkdir_p
19677  ac_builddir=.
19678
19679case "$ac_dir" in
19680.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19681*)
19682  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19683  # A ".." for each directory in $ac_dir_suffix.
19684  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19685  case $ac_top_builddir_sub in
19686  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19687  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19688  esac ;;
19689esac
19690ac_abs_top_builddir=$ac_pwd
19691ac_abs_builddir=$ac_pwd$ac_dir_suffix
19692# for backward compatibility:
19693ac_top_builddir=$ac_top_build_prefix
19694
19695case $srcdir in
19696  .)  # We are building in place.
19697    ac_srcdir=.
19698    ac_top_srcdir=$ac_top_builddir_sub
19699    ac_abs_top_srcdir=$ac_pwd ;;
19700  [\\/]* | ?:[\\/]* )  # Absolute name.
19701    ac_srcdir=$srcdir$ac_dir_suffix;
19702    ac_top_srcdir=$srcdir
19703    ac_abs_top_srcdir=$srcdir ;;
19704  *) # Relative name.
19705    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19706    ac_top_srcdir=$ac_top_build_prefix$srcdir
19707    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19708esac
19709ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19710
19711
19712  case $ac_mode in
19713  :F)
19714  #
19715  # CONFIG_FILE
19716  #
19717
19718  case $INSTALL in
19719  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19720  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19721  esac
19722  ac_MKDIR_P=$MKDIR_P
19723  case $MKDIR_P in
19724  [\\/$]* | ?:[\\/]* ) ;;
19725  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19726  esac
19727_ACEOF
19728
19729cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19730# If the template does not know about datarootdir, expand it.
19731# FIXME: This hack should be removed a few years after 2.60.
19732ac_datarootdir_hack=; ac_datarootdir_seen=
19733ac_sed_dataroot='
19734/datarootdir/ {
19735  p
19736  q
19737}
19738/@datadir@/p
19739/@docdir@/p
19740/@infodir@/p
19741/@localedir@/p
19742/@mandir@/p'
19743case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19744*datarootdir*) ac_datarootdir_seen=yes;;
19745*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19746  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19747$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19748_ACEOF
19749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19750  ac_datarootdir_hack='
19751  s&@datadir@&$datadir&g
19752  s&@docdir@&$docdir&g
19753  s&@infodir@&$infodir&g
19754  s&@localedir@&$localedir&g
19755  s&@mandir@&$mandir&g
19756  s&\\\${datarootdir}&$datarootdir&g' ;;
19757esac
19758_ACEOF
19759
19760# Neutralize VPATH when `$srcdir' = `.'.
19761# Shell code in configure.ac might set extrasub.
19762# FIXME: do we really want to maintain this feature?
19763cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19764ac_sed_extra="$ac_vpsub
19765$extrasub
19766_ACEOF
19767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19768:t
19769/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19770s|@configure_input@|$ac_sed_conf_input|;t t
19771s&@top_builddir@&$ac_top_builddir_sub&;t t
19772s&@top_build_prefix@&$ac_top_build_prefix&;t t
19773s&@srcdir@&$ac_srcdir&;t t
19774s&@abs_srcdir@&$ac_abs_srcdir&;t t
19775s&@top_srcdir@&$ac_top_srcdir&;t t
19776s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19777s&@builddir@&$ac_builddir&;t t
19778s&@abs_builddir@&$ac_abs_builddir&;t t
19779s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19780s&@INSTALL@&$ac_INSTALL&;t t
19781s&@MKDIR_P@&$ac_MKDIR_P&;t t
19782$ac_datarootdir_hack
19783"
19784eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19785  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19786
19787test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19788  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19789  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19790      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19791  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19792which seems to be undefined.  Please make sure it is defined" >&5
19793$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19794which seems to be undefined.  Please make sure it is defined" >&2;}
19795
19796  rm -f "$ac_tmp/stdin"
19797  case $ac_file in
19798  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19799  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19800  esac \
19801  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19802 ;;
19803  :H)
19804  #
19805  # CONFIG_HEADER
19806  #
19807  if test x"$ac_file" != x-; then
19808    {
19809      $as_echo "/* $configure_input  */" \
19810      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19811    } >"$ac_tmp/config.h" \
19812      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19813    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19814      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19815$as_echo "$as_me: $ac_file is unchanged" >&6;}
19816    else
19817      rm -f "$ac_file"
19818      mv "$ac_tmp/config.h" "$ac_file" \
19819	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19820    fi
19821  else
19822    $as_echo "/* $configure_input  */" \
19823      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19824      || as_fn_error $? "could not create -" "$LINENO" 5
19825  fi
19826# Compute "$ac_file"'s index in $config_headers.
19827_am_arg="$ac_file"
19828_am_stamp_count=1
19829for _am_header in $config_headers :; do
19830  case $_am_header in
19831    $_am_arg | $_am_arg:* )
19832      break ;;
19833    * )
19834      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19835  esac
19836done
19837echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19838$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19839	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19840	 X"$_am_arg" : 'X\(//\)$' \| \
19841	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19842$as_echo X"$_am_arg" |
19843    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19844	    s//\1/
19845	    q
19846	  }
19847	  /^X\(\/\/\)[^/].*/{
19848	    s//\1/
19849	    q
19850	  }
19851	  /^X\(\/\/\)$/{
19852	    s//\1/
19853	    q
19854	  }
19855	  /^X\(\/\).*/{
19856	    s//\1/
19857	    q
19858	  }
19859	  s/.*/./; q'`/stamp-h$_am_stamp_count
19860 ;;
19861
19862  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19863$as_echo "$as_me: executing $ac_file commands" >&6;}
19864 ;;
19865  esac
19866
19867
19868  case $ac_file$ac_mode in
19869    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19870  # Autoconf 2.62 quotes --file arguments for eval, but not when files
19871  # are listed without --file.  Let's play safe and only enable the eval
19872  # if we detect the quoting.
19873  case $CONFIG_FILES in
19874  *\'*) eval set x "$CONFIG_FILES" ;;
19875  *)   set x $CONFIG_FILES ;;
19876  esac
19877  shift
19878  for mf
19879  do
19880    # Strip MF so we end up with the name of the file.
19881    mf=`echo "$mf" | sed -e 's/:.*$//'`
19882    # Check whether this is an Automake generated Makefile or not.
19883    # We used to match only the files named `Makefile.in', but
19884    # some people rename them; so instead we look at the file content.
19885    # Grep'ing the first line is not enough: some people post-process
19886    # each Makefile.in and add a new line on top of each file to say so.
19887    # Grep'ing the whole file is not good either: AIX grep has a line
19888    # limit of 2048, but all sed's we know have understand at least 4000.
19889    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19890      dirpart=`$as_dirname -- "$mf" ||
19891$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19892	 X"$mf" : 'X\(//\)[^/]' \| \
19893	 X"$mf" : 'X\(//\)$' \| \
19894	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19895$as_echo X"$mf" |
19896    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19897	    s//\1/
19898	    q
19899	  }
19900	  /^X\(\/\/\)[^/].*/{
19901	    s//\1/
19902	    q
19903	  }
19904	  /^X\(\/\/\)$/{
19905	    s//\1/
19906	    q
19907	  }
19908	  /^X\(\/\).*/{
19909	    s//\1/
19910	    q
19911	  }
19912	  s/.*/./; q'`
19913    else
19914      continue
19915    fi
19916    # Extract the definition of DEPDIR, am__include, and am__quote
19917    # from the Makefile without running `make'.
19918    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19919    test -z "$DEPDIR" && continue
19920    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19921    test -z "am__include" && continue
19922    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19923    # When using ansi2knr, U may be empty or an underscore; expand it
19924    U=`sed -n 's/^U = //p' < "$mf"`
19925    # Find all dependency output files, they are included files with
19926    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19927    # simplest approach to changing $(DEPDIR) to its actual value in the
19928    # expansion.
19929    for file in `sed -n "
19930      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19931	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19932      # Make sure the directory exists.
19933      test -f "$dirpart/$file" && continue
19934      fdir=`$as_dirname -- "$file" ||
19935$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19936	 X"$file" : 'X\(//\)[^/]' \| \
19937	 X"$file" : 'X\(//\)$' \| \
19938	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19939$as_echo X"$file" |
19940    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19941	    s//\1/
19942	    q
19943	  }
19944	  /^X\(\/\/\)[^/].*/{
19945	    s//\1/
19946	    q
19947	  }
19948	  /^X\(\/\/\)$/{
19949	    s//\1/
19950	    q
19951	  }
19952	  /^X\(\/\).*/{
19953	    s//\1/
19954	    q
19955	  }
19956	  s/.*/./; q'`
19957      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19958      # echo "creating $dirpart/$file"
19959      echo '# dummy' > "$dirpart/$file"
19960    done
19961  done
19962}
19963 ;;
19964    "libtool":C)
19965
19966    # See if we are running on zsh, and set the options which allow our
19967    # commands through without removal of \ escapes.
19968    if test -n "${ZSH_VERSION+set}" ; then
19969      setopt NO_GLOB_SUBST
19970    fi
19971
19972    cfgfile="${ofile}T"
19973    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19974    $RM "$cfgfile"
19975
19976    cat <<_LT_EOF >> "$cfgfile"
19977#! $SHELL
19978
19979# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19980# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19981# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19982# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19983#
19984#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19985#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19986#                 Foundation, Inc.
19987#   Written by Gordon Matzigkeit, 1996
19988#
19989#   This file is part of GNU Libtool.
19990#
19991# GNU Libtool is free software; you can redistribute it and/or
19992# modify it under the terms of the GNU General Public License as
19993# published by the Free Software Foundation; either version 2 of
19994# the License, or (at your option) any later version.
19995#
19996# As a special exception to the GNU General Public License,
19997# if you distribute this file as part of a program or library that
19998# is built using GNU Libtool, you may include this file under the
19999# same distribution terms that you use for the rest of that program.
20000#
20001# GNU Libtool is distributed in the hope that it will be useful,
20002# but WITHOUT ANY WARRANTY; without even the implied warranty of
20003# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20004# GNU General Public License for more details.
20005#
20006# You should have received a copy of the GNU General Public License
20007# along with GNU Libtool; see the file COPYING.  If not, a copy
20008# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20009# obtained by writing to the Free Software Foundation, Inc.,
20010# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20011
20012
20013# The names of the tagged configurations supported by this script.
20014available_tags=""
20015
20016# ### BEGIN LIBTOOL CONFIG
20017
20018# Which release of libtool.m4 was used?
20019macro_version=$macro_version
20020macro_revision=$macro_revision
20021
20022# Whether or not to build shared libraries.
20023build_libtool_libs=$enable_shared
20024
20025# Whether or not to build static libraries.
20026build_old_libs=$enable_static
20027
20028# What type of objects to build.
20029pic_mode=$pic_mode
20030
20031# Whether or not to optimize for fast installation.
20032fast_install=$enable_fast_install
20033
20034# Shell to use when invoking shell scripts.
20035SHELL=$lt_SHELL
20036
20037# An echo program that protects backslashes.
20038ECHO=$lt_ECHO
20039
20040# The PATH separator for the build system.
20041PATH_SEPARATOR=$lt_PATH_SEPARATOR
20042
20043# The host system.
20044host_alias=$host_alias
20045host=$host
20046host_os=$host_os
20047
20048# The build system.
20049build_alias=$build_alias
20050build=$build
20051build_os=$build_os
20052
20053# A sed program that does not truncate output.
20054SED=$lt_SED
20055
20056# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20057Xsed="\$SED -e 1s/^X//"
20058
20059# A grep program that handles long lines.
20060GREP=$lt_GREP
20061
20062# An ERE matcher.
20063EGREP=$lt_EGREP
20064
20065# A literal string matcher.
20066FGREP=$lt_FGREP
20067
20068# A BSD- or MS-compatible name lister.
20069NM=$lt_NM
20070
20071# Whether we need soft or hard links.
20072LN_S=$lt_LN_S
20073
20074# What is the maximum length of a command?
20075max_cmd_len=$max_cmd_len
20076
20077# Object file suffix (normally "o").
20078objext=$ac_objext
20079
20080# Executable file suffix (normally "").
20081exeext=$exeext
20082
20083# whether the shell understands "unset".
20084lt_unset=$lt_unset
20085
20086# turn spaces into newlines.
20087SP2NL=$lt_lt_SP2NL
20088
20089# turn newlines into spaces.
20090NL2SP=$lt_lt_NL2SP
20091
20092# convert \$build file names to \$host format.
20093to_host_file_cmd=$lt_cv_to_host_file_cmd
20094
20095# convert \$build files to toolchain format.
20096to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20097
20098# An object symbol dumper.
20099OBJDUMP=$lt_OBJDUMP
20100
20101# Method to check whether dependent libraries are shared objects.
20102deplibs_check_method=$lt_deplibs_check_method
20103
20104# Command to use when deplibs_check_method = "file_magic".
20105file_magic_cmd=$lt_file_magic_cmd
20106
20107# How to find potential files when deplibs_check_method = "file_magic".
20108file_magic_glob=$lt_file_magic_glob
20109
20110# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20111want_nocaseglob=$lt_want_nocaseglob
20112
20113# DLL creation program.
20114DLLTOOL=$lt_DLLTOOL
20115
20116# Command to associate shared and link libraries.
20117sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20118
20119# The archiver.
20120AR=$lt_AR
20121
20122# Flags to create an archive.
20123AR_FLAGS=$lt_AR_FLAGS
20124
20125# How to feed a file listing to the archiver.
20126archiver_list_spec=$lt_archiver_list_spec
20127
20128# A symbol stripping program.
20129STRIP=$lt_STRIP
20130
20131# Commands used to install an old-style archive.
20132RANLIB=$lt_RANLIB
20133old_postinstall_cmds=$lt_old_postinstall_cmds
20134old_postuninstall_cmds=$lt_old_postuninstall_cmds
20135
20136# Whether to use a lock for old archive extraction.
20137lock_old_archive_extraction=$lock_old_archive_extraction
20138
20139# A C compiler.
20140LTCC=$lt_CC
20141
20142# LTCC compiler flags.
20143LTCFLAGS=$lt_CFLAGS
20144
20145# Take the output of nm and produce a listing of raw symbols and C names.
20146global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20147
20148# Transform the output of nm in a proper C declaration.
20149global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20150
20151# Transform the output of nm in a C name address pair.
20152global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20153
20154# Transform the output of nm in a C name address pair when lib prefix is needed.
20155global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20156
20157# Specify filename containing input files for \$NM.
20158nm_file_list_spec=$lt_nm_file_list_spec
20159
20160# The root where to search for dependent libraries,and in which our libraries should be installed.
20161lt_sysroot=$lt_sysroot
20162
20163# The name of the directory that contains temporary libtool files.
20164objdir=$objdir
20165
20166# Used to examine libraries when file_magic_cmd begins with "file".
20167MAGIC_CMD=$MAGIC_CMD
20168
20169# Must we lock files when doing compilation?
20170need_locks=$lt_need_locks
20171
20172# Manifest tool.
20173MANIFEST_TOOL=$lt_MANIFEST_TOOL
20174
20175# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20176DSYMUTIL=$lt_DSYMUTIL
20177
20178# Tool to change global to local symbols on Mac OS X.
20179NMEDIT=$lt_NMEDIT
20180
20181# Tool to manipulate fat objects and archives on Mac OS X.
20182LIPO=$lt_LIPO
20183
20184# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20185OTOOL=$lt_OTOOL
20186
20187# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20188OTOOL64=$lt_OTOOL64
20189
20190# Old archive suffix (normally "a").
20191libext=$libext
20192
20193# Shared library suffix (normally ".so").
20194shrext_cmds=$lt_shrext_cmds
20195
20196# The commands to extract the exported symbol list from a shared archive.
20197extract_expsyms_cmds=$lt_extract_expsyms_cmds
20198
20199# Variables whose values should be saved in libtool wrapper scripts and
20200# restored at link time.
20201variables_saved_for_relink=$lt_variables_saved_for_relink
20202
20203# Do we need the "lib" prefix for modules?
20204need_lib_prefix=$need_lib_prefix
20205
20206# Do we need a version for libraries?
20207need_version=$need_version
20208
20209# Library versioning type.
20210version_type=$version_type
20211
20212# Shared library runtime path variable.
20213runpath_var=$runpath_var
20214
20215# Shared library path variable.
20216shlibpath_var=$shlibpath_var
20217
20218# Is shlibpath searched before the hard-coded library search path?
20219shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20220
20221# Format of library name prefix.
20222libname_spec=$lt_libname_spec
20223
20224# List of archive names.  First name is the real one, the rest are links.
20225# The last name is the one that the linker finds with -lNAME
20226library_names_spec=$lt_library_names_spec
20227
20228# The coded name of the library, if different from the real name.
20229soname_spec=$lt_soname_spec
20230
20231# Permission mode override for installation of shared libraries.
20232install_override_mode=$lt_install_override_mode
20233
20234# Command to use after installation of a shared archive.
20235postinstall_cmds=$lt_postinstall_cmds
20236
20237# Command to use after uninstallation of a shared archive.
20238postuninstall_cmds=$lt_postuninstall_cmds
20239
20240# Commands used to finish a libtool library installation in a directory.
20241finish_cmds=$lt_finish_cmds
20242
20243# As "finish_cmds", except a single script fragment to be evaled but
20244# not shown.
20245finish_eval=$lt_finish_eval
20246
20247# Whether we should hardcode library paths into libraries.
20248hardcode_into_libs=$hardcode_into_libs
20249
20250# Compile-time system search path for libraries.
20251sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20252
20253# Run-time system search path for libraries.
20254sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20255
20256# Whether dlopen is supported.
20257dlopen_support=$enable_dlopen
20258
20259# Whether dlopen of programs is supported.
20260dlopen_self=$enable_dlopen_self
20261
20262# Whether dlopen of statically linked programs is supported.
20263dlopen_self_static=$enable_dlopen_self_static
20264
20265# Commands to strip libraries.
20266old_striplib=$lt_old_striplib
20267striplib=$lt_striplib
20268
20269
20270# The linker used to build libraries.
20271LD=$lt_LD
20272
20273# How to create reloadable object files.
20274reload_flag=$lt_reload_flag
20275reload_cmds=$lt_reload_cmds
20276
20277# Commands used to build an old-style archive.
20278old_archive_cmds=$lt_old_archive_cmds
20279
20280# A language specific compiler.
20281CC=$lt_compiler
20282
20283# Is the compiler the GNU compiler?
20284with_gcc=$GCC
20285
20286# Compiler flag to turn off builtin functions.
20287no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20288
20289# Additional compiler flags for building library objects.
20290pic_flag=$lt_lt_prog_compiler_pic
20291
20292# How to pass a linker flag through the compiler.
20293wl=$lt_lt_prog_compiler_wl
20294
20295# Compiler flag to prevent dynamic linking.
20296link_static_flag=$lt_lt_prog_compiler_static
20297
20298# Does compiler simultaneously support -c and -o options?
20299compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20300
20301# Whether or not to add -lc for building shared libraries.
20302build_libtool_need_lc=$archive_cmds_need_lc
20303
20304# Whether or not to disallow shared libs when runtime libs are static.
20305allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20306
20307# Compiler flag to allow reflexive dlopens.
20308export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20309
20310# Compiler flag to generate shared objects directly from archives.
20311whole_archive_flag_spec=$lt_whole_archive_flag_spec
20312
20313# Whether the compiler copes with passing no objects directly.
20314compiler_needs_object=$lt_compiler_needs_object
20315
20316# Create an old-style archive from a shared archive.
20317old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20318
20319# Create a temporary old-style archive to link instead of a shared archive.
20320old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20321
20322# Commands used to build a shared archive.
20323archive_cmds=$lt_archive_cmds
20324archive_expsym_cmds=$lt_archive_expsym_cmds
20325
20326# Commands used to build a loadable module if different from building
20327# a shared archive.
20328module_cmds=$lt_module_cmds
20329module_expsym_cmds=$lt_module_expsym_cmds
20330
20331# Whether we are building with GNU ld or not.
20332with_gnu_ld=$lt_with_gnu_ld
20333
20334# Flag that allows shared libraries with undefined symbols to be built.
20335allow_undefined_flag=$lt_allow_undefined_flag
20336
20337# Flag that enforces no undefined symbols.
20338no_undefined_flag=$lt_no_undefined_flag
20339
20340# Flag to hardcode \$libdir into a binary during linking.
20341# This must work even if \$libdir does not exist
20342hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20343
20344# Whether we need a single "-rpath" flag with a separated argument.
20345hardcode_libdir_separator=$lt_hardcode_libdir_separator
20346
20347# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20348# DIR into the resulting binary.
20349hardcode_direct=$hardcode_direct
20350
20351# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20352# DIR into the resulting binary and the resulting library dependency is
20353# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20354# library is relocated.
20355hardcode_direct_absolute=$hardcode_direct_absolute
20356
20357# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20358# into the resulting binary.
20359hardcode_minus_L=$hardcode_minus_L
20360
20361# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20362# into the resulting binary.
20363hardcode_shlibpath_var=$hardcode_shlibpath_var
20364
20365# Set to "yes" if building a shared library automatically hardcodes DIR
20366# into the library and all subsequent libraries and executables linked
20367# against it.
20368hardcode_automatic=$hardcode_automatic
20369
20370# Set to yes if linker adds runtime paths of dependent libraries
20371# to runtime path list.
20372inherit_rpath=$inherit_rpath
20373
20374# Whether libtool must link a program against all its dependency libraries.
20375link_all_deplibs=$link_all_deplibs
20376
20377# Set to "yes" if exported symbols are required.
20378always_export_symbols=$always_export_symbols
20379
20380# The commands to list exported symbols.
20381export_symbols_cmds=$lt_export_symbols_cmds
20382
20383# Symbols that should not be listed in the preloaded symbols.
20384exclude_expsyms=$lt_exclude_expsyms
20385
20386# Symbols that must always be exported.
20387include_expsyms=$lt_include_expsyms
20388
20389# Commands necessary for linking programs (against libraries) with templates.
20390prelink_cmds=$lt_prelink_cmds
20391
20392# Commands necessary for finishing linking programs.
20393postlink_cmds=$lt_postlink_cmds
20394
20395# Specify filename containing input files.
20396file_list_spec=$lt_file_list_spec
20397
20398# How to hardcode a shared library path into an executable.
20399hardcode_action=$hardcode_action
20400
20401# ### END LIBTOOL CONFIG
20402
20403_LT_EOF
20404
20405  case $host_os in
20406  aix3*)
20407    cat <<\_LT_EOF >> "$cfgfile"
20408# AIX sometimes has problems with the GCC collect2 program.  For some
20409# reason, if we set the COLLECT_NAMES environment variable, the problems
20410# vanish in a puff of smoke.
20411if test "X${COLLECT_NAMES+set}" != Xset; then
20412  COLLECT_NAMES=
20413  export COLLECT_NAMES
20414fi
20415_LT_EOF
20416    ;;
20417  esac
20418
20419
20420ltmain="$ac_aux_dir/ltmain.sh"
20421
20422
20423  # We use sed instead of cat because bash on DJGPP gets confused if
20424  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20425  # text mode, it properly converts lines to CR/LF.  This bash problem
20426  # is reportedly fixed, but why not run on old versions too?
20427  sed '$q' "$ltmain" >> "$cfgfile" \
20428     || (rm -f "$cfgfile"; exit 1)
20429
20430  if test x"$xsi_shell" = xyes; then
20431  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20432func_dirname ()\
20433{\
20434\    case ${1} in\
20435\      */*) func_dirname_result="${1%/*}${2}" ;;\
20436\      *  ) func_dirname_result="${3}" ;;\
20437\    esac\
20438} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20439  && mv -f "$cfgfile.tmp" "$cfgfile" \
20440    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20441test 0 -eq $? || _lt_function_replace_fail=:
20442
20443
20444  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20445func_basename ()\
20446{\
20447\    func_basename_result="${1##*/}"\
20448} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20449  && mv -f "$cfgfile.tmp" "$cfgfile" \
20450    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20451test 0 -eq $? || _lt_function_replace_fail=:
20452
20453
20454  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20455func_dirname_and_basename ()\
20456{\
20457\    case ${1} in\
20458\      */*) func_dirname_result="${1%/*}${2}" ;;\
20459\      *  ) func_dirname_result="${3}" ;;\
20460\    esac\
20461\    func_basename_result="${1##*/}"\
20462} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20463  && mv -f "$cfgfile.tmp" "$cfgfile" \
20464    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20465test 0 -eq $? || _lt_function_replace_fail=:
20466
20467
20468  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20469func_stripname ()\
20470{\
20471\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20472\    # positional parameters, so assign one to ordinary parameter first.\
20473\    func_stripname_result=${3}\
20474\    func_stripname_result=${func_stripname_result#"${1}"}\
20475\    func_stripname_result=${func_stripname_result%"${2}"}\
20476} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20477  && mv -f "$cfgfile.tmp" "$cfgfile" \
20478    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20479test 0 -eq $? || _lt_function_replace_fail=:
20480
20481
20482  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20483func_split_long_opt ()\
20484{\
20485\    func_split_long_opt_name=${1%%=*}\
20486\    func_split_long_opt_arg=${1#*=}\
20487} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20488  && mv -f "$cfgfile.tmp" "$cfgfile" \
20489    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20490test 0 -eq $? || _lt_function_replace_fail=:
20491
20492
20493  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20494func_split_short_opt ()\
20495{\
20496\    func_split_short_opt_arg=${1#??}\
20497\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20498} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20499  && mv -f "$cfgfile.tmp" "$cfgfile" \
20500    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20501test 0 -eq $? || _lt_function_replace_fail=:
20502
20503
20504  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20505func_lo2o ()\
20506{\
20507\    case ${1} in\
20508\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20509\      *)    func_lo2o_result=${1} ;;\
20510\    esac\
20511} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20512  && mv -f "$cfgfile.tmp" "$cfgfile" \
20513    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20514test 0 -eq $? || _lt_function_replace_fail=:
20515
20516
20517  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20518func_xform ()\
20519{\
20520    func_xform_result=${1%.*}.lo\
20521} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20522  && mv -f "$cfgfile.tmp" "$cfgfile" \
20523    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20524test 0 -eq $? || _lt_function_replace_fail=:
20525
20526
20527  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20528func_arith ()\
20529{\
20530    func_arith_result=$(( $* ))\
20531} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20532  && mv -f "$cfgfile.tmp" "$cfgfile" \
20533    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20534test 0 -eq $? || _lt_function_replace_fail=:
20535
20536
20537  sed -e '/^func_len ()$/,/^} # func_len /c\
20538func_len ()\
20539{\
20540    func_len_result=${#1}\
20541} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20542  && mv -f "$cfgfile.tmp" "$cfgfile" \
20543    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20544test 0 -eq $? || _lt_function_replace_fail=:
20545
20546fi
20547
20548if test x"$lt_shell_append" = xyes; then
20549  sed -e '/^func_append ()$/,/^} # func_append /c\
20550func_append ()\
20551{\
20552    eval "${1}+=\\${2}"\
20553} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20554  && mv -f "$cfgfile.tmp" "$cfgfile" \
20555    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20556test 0 -eq $? || _lt_function_replace_fail=:
20557
20558
20559  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20560func_append_quoted ()\
20561{\
20562\    func_quote_for_eval "${2}"\
20563\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20564} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20565  && mv -f "$cfgfile.tmp" "$cfgfile" \
20566    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20567test 0 -eq $? || _lt_function_replace_fail=:
20568
20569
20570  # Save a `func_append' function call where possible by direct use of '+='
20571  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20572    && mv -f "$cfgfile.tmp" "$cfgfile" \
20573      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20574  test 0 -eq $? || _lt_function_replace_fail=:
20575else
20576  # Save a `func_append' function call even when '+=' is not available
20577  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20578    && mv -f "$cfgfile.tmp" "$cfgfile" \
20579      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20580  test 0 -eq $? || _lt_function_replace_fail=:
20581fi
20582
20583if test x"$_lt_function_replace_fail" = x":"; then
20584  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20585$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20586fi
20587
20588
20589   mv -f "$cfgfile" "$ofile" ||
20590    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20591  chmod +x "$ofile"
20592
20593 ;;
20594
20595  esac
20596done # for ac_tag
20597
20598
20599as_fn_exit 0
20600_ACEOF
20601ac_clean_files=$ac_clean_files_save
20602
20603test $ac_write_fail = 0 ||
20604  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20605
20606
20607# configure is writing to config.log, and then calls config.status.
20608# config.status does its own redirection, appending to config.log.
20609# Unfortunately, on DOS this fails, as config.log is still kept open
20610# by configure, so config.status won't be able to write to it; its
20611# output is simply discarded.  So we exec the FD to /dev/null,
20612# effectively closing config.log, so it can be properly (re)opened and
20613# appended to by config.status.  When coming back to configure, we
20614# need to make the FD available again.
20615if test "$no_create" != yes; then
20616  ac_cs_success=:
20617  ac_config_status_args=
20618  test "$silent" = yes &&
20619    ac_config_status_args="$ac_config_status_args --quiet"
20620  exec 5>/dev/null
20621  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20622  exec 5>>config.log
20623  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20624  # would make configure fail if this is the last instruction.
20625  $ac_cs_success || as_fn_exit 1
20626fi
20627if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20628  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20629$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20630fi
20631
20632