1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for xf86-video-chips 1.5.0.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-chips/-/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21then :
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 case e in #(
29  e) case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as 'sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed 'exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144then :
145  emulate sh
146  NULLCMD=:
147  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148  # is contrary to our usage.  Disable this feature.
149  alias -g '\${1+\"\$@\"}'='\"\$@\"'
150  setopt NO_GLOB_SUBST
151else case e in #(
152  e) case \`(set -o) 2>/dev/null\` in #(
153  *posix*) :
154    set -o posix ;; #(
155  *) :
156     ;;
157esac ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else case e in #(
176  e) exitcode=1; echo positional parameters were not saved. ;;
177esac
178fi
179test x\$exitcode = x0 || exit 1
180blah=\$(echo \$(echo blah))
181test x\"\$blah\" = xblah || exit 1
182test -x / || exit 1"
183  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187test \$(( 1 + 1 )) = 2 || exit 1
188
189  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
190    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
191    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
193    PATH=/empty FPATH=/empty; export PATH FPATH
194    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
195      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
196  if (eval "$as_required") 2>/dev/null
197then :
198  as_have_required=yes
199else case e in #(
200  e) as_have_required=no ;;
201esac
202fi
203  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204then :
205
206else case e in #(
207  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208as_found=false
209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210do
211  IFS=$as_save_IFS
212  case $as_dir in #(((
213    '') as_dir=./ ;;
214    */) ;;
215    *) as_dir=$as_dir/ ;;
216  esac
217  as_found=:
218  case $as_dir in #(
219	 /*)
220	   for as_base in sh bash ksh sh5; do
221	     # Try only shells that exist, to save several forks.
222	     as_shell=$as_dir$as_base
223	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225then :
226  CONFIG_SHELL=$as_shell as_have_required=yes
227		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228then :
229  break 2
230fi
231fi
232	   done;;
233       esac
234  as_found=false
235done
236IFS=$as_save_IFS
237if $as_found
238then :
239
240else case e in #(
241  e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243then :
244  CONFIG_SHELL=$SHELL as_have_required=yes
245fi ;;
246esac
247fi
248
249
250      if test "x$CONFIG_SHELL" != x
251then :
252  export CONFIG_SHELL
253             # We cannot yet assume a decent shell, so we have to provide a
254# neutralization value for shells without unset; and this also
255# works around shells that cannot unset nonexistent variables.
256# Preserve -v and -x to the replacement shell.
257BASH_ENV=/dev/null
258ENV=/dev/null
259(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260case $- in # ((((
261  *v*x* | *x*v* ) as_opts=-vx ;;
262  *v* ) as_opts=-v ;;
263  *x* ) as_opts=-x ;;
264  * ) as_opts= ;;
265esac
266exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267# Admittedly, this is quite paranoid, since all the known shells bail
268# out after a failed 'exec'.
269printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270exit 255
271fi
272
273    if test x$as_have_required = xno
274then :
275  printf "%s\n" "$0: This script requires a shell more modern than all"
276  printf "%s\n" "$0: the shells that I found on your system."
277  if test ${ZSH_VERSION+y} ; then
278    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280  else
281    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
282$0: https://gitlab.freedesktop.org/xorg/driver/xf86-video-chips/-/issues
283$0: about your system, including any error possibly output
284$0: before this message. Then install a modern shell, or
285$0: manually run the script under such a shell if you do
286$0: have one."
287  fi
288  exit 1
289fi ;;
290esac
291fi
292fi
293SHELL=${CONFIG_SHELL-/bin/sh}
294export SHELL
295# Unset more variables known to interfere with behavior of common tools.
296CLICOLOR_FORCE= GREP_OPTIONS=
297unset CLICOLOR_FORCE GREP_OPTIONS
298
299## --------------------- ##
300## M4sh Shell Functions. ##
301## --------------------- ##
302# as_fn_unset VAR
303# ---------------
304# Portably unset VAR.
305as_fn_unset ()
306{
307  { eval $1=; unset $1;}
308}
309as_unset=as_fn_unset
310
311
312# as_fn_set_status STATUS
313# -----------------------
314# Set $? to STATUS, without forking.
315as_fn_set_status ()
316{
317  return $1
318} # as_fn_set_status
319
320# as_fn_exit STATUS
321# -----------------
322# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
323as_fn_exit ()
324{
325  set +e
326  as_fn_set_status $1
327  exit $1
328} # as_fn_exit
329
330# as_fn_mkdir_p
331# -------------
332# Create "$as_dir" as a directory, including parents if necessary.
333as_fn_mkdir_p ()
334{
335
336  case $as_dir in #(
337  -*) as_dir=./$as_dir;;
338  esac
339  test -d "$as_dir" || eval $as_mkdir_p || {
340    as_dirs=
341    while :; do
342      case $as_dir in #(
343      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
344      *) as_qdir=$as_dir;;
345      esac
346      as_dirs="'$as_qdir' $as_dirs"
347      as_dir=`$as_dirname -- "$as_dir" ||
348$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
349	 X"$as_dir" : 'X\(//\)[^/]' \| \
350	 X"$as_dir" : 'X\(//\)$' \| \
351	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
352printf "%s\n" X"$as_dir" |
353    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354	    s//\1/
355	    q
356	  }
357	  /^X\(\/\/\)[^/].*/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)$/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\).*/{
366	    s//\1/
367	    q
368	  }
369	  s/.*/./; q'`
370      test -d "$as_dir" && break
371    done
372    test -z "$as_dirs" || eval "mkdir $as_dirs"
373  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
374
375
376} # as_fn_mkdir_p
377
378# as_fn_executable_p FILE
379# -----------------------
380# Test if FILE is an executable regular file.
381as_fn_executable_p ()
382{
383  test -f "$1" && test -x "$1"
384} # as_fn_executable_p
385# as_fn_append VAR VALUE
386# ----------------------
387# Append the text in VALUE to the end of the definition contained in VAR. Take
388# advantage of any shell optimizations that allow amortized linear growth over
389# repeated appends, instead of the typical quadratic growth present in naive
390# implementations.
391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
392then :
393  eval 'as_fn_append ()
394  {
395    eval $1+=\$2
396  }'
397else case e in #(
398  e) as_fn_append ()
399  {
400    eval $1=\$$1\$2
401  } ;;
402esac
403fi # as_fn_append
404
405# as_fn_arith ARG...
406# ------------------
407# Perform arithmetic evaluation on the ARGs, and store the result in the
408# global $as_val. Take advantage of shells that can avoid forks. The arguments
409# must be portable across $(()) and expr.
410if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
411then :
412  eval 'as_fn_arith ()
413  {
414    as_val=$(( $* ))
415  }'
416else case e in #(
417  e) as_fn_arith ()
418  {
419    as_val=`expr "$@" || test $? -eq 1`
420  } ;;
421esac
422fi # as_fn_arith
423
424
425# as_fn_error STATUS ERROR [LINENO LOG_FD]
426# ----------------------------------------
427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429# script with STATUS, using 1 if that was 0.
430as_fn_error ()
431{
432  as_status=$1; test $as_status -eq 0 && as_status=1
433  if test "$4"; then
434    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436  fi
437  printf "%s\n" "$as_me: error: $2" >&2
438  as_fn_exit $as_status
439} # as_fn_error
440
441if expr a : '\(a\)' >/dev/null 2>&1 &&
442   test "X`expr 00001 : '.*\(...\)'`" = X001; then
443  as_expr=expr
444else
445  as_expr=false
446fi
447
448if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449  as_basename=basename
450else
451  as_basename=false
452fi
453
454if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455  as_dirname=dirname
456else
457  as_dirname=false
458fi
459
460as_me=`$as_basename -- "$0" ||
461$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462	 X"$0" : 'X\(//\)$' \| \
463	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464printf "%s\n" X/"$0" |
465    sed '/^.*\/\([^/][^/]*\)\/*$/{
466	    s//\1/
467	    q
468	  }
469	  /^X\/\(\/\/\)$/{
470	    s//\1/
471	    q
472	  }
473	  /^X\/\(\/\).*/{
474	    s//\1/
475	    q
476	  }
477	  s/.*/./; q'`
478
479# Avoid depending upon Character Ranges.
480as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483as_cr_digits='0123456789'
484as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487  as_lineno_1=$LINENO as_lineno_1a=$LINENO
488  as_lineno_2=$LINENO as_lineno_2a=$LINENO
489  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
492  sed -n '
493    p
494    /[$]LINENO/=
495  ' <$as_myself |
496    sed '
497      t clear
498      :clear
499      s/[$]LINENO.*/&-/
500      t lineno
501      b
502      :lineno
503      N
504      :loop
505      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506      t loop
507      s/-\n.*//
508    ' >$as_me.lineno &&
509  chmod +x "$as_me.lineno" ||
510    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513  # already done that, so ensure we don't try to do so again and fall
514  # in an infinite loop.  This has already happened in practice.
515  _as_can_reexec=no; export _as_can_reexec
516  # Don't try to exec as it changes $[0], causing all sort of problems
517  # (the dirname of $[0] is not the place where we might find the
518  # original and so on.  Autoconf is especially sensitive to this).
519  . "./$as_me.lineno"
520  # Exit status is that of the last command.
521  exit
522}
523
524
525# Determine whether it's possible to make 'echo' print without a newline.
526# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527# for compatibility with existing Makefiles.
528ECHO_C= ECHO_N= ECHO_T=
529case `echo -n x` in #(((((
530-n*)
531  case `echo 'xy\c'` in
532  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
533  xy)  ECHO_C='\c';;
534  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
535       ECHO_T='	';;
536  esac;;
537*)
538  ECHO_N='-n';;
539esac
540
541# For backward compatibility with old third-party macros, we provide
542# the shell variables $as_echo and $as_echo_n.  New code should use
543# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544as_echo='printf %s\n'
545as_echo_n='printf %s'
546
547rm -f conf$$ conf$$.exe conf$$.file
548if test -d conf$$.dir; then
549  rm -f conf$$.dir/conf$$.file
550else
551  rm -f conf$$.dir
552  mkdir conf$$.dir 2>/dev/null
553fi
554if (echo >conf$$.file) 2>/dev/null; then
555  if ln -s conf$$.file conf$$ 2>/dev/null; then
556    as_ln_s='ln -s'
557    # ... but there are two gotchas:
558    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
559    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
560    # In both cases, we have to default to 'cp -pR'.
561    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562      as_ln_s='cp -pR'
563  elif ln conf$$.file conf$$ 2>/dev/null; then
564    as_ln_s=ln
565  else
566    as_ln_s='cp -pR'
567  fi
568else
569  as_ln_s='cp -pR'
570fi
571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572rmdir conf$$.dir 2>/dev/null
573
574if mkdir -p . 2>/dev/null; then
575  as_mkdir_p='mkdir -p "$as_dir"'
576else
577  test -d ./-p && rmdir ./-p
578  as_mkdir_p=false
579fi
580
581as_test_x='test -x'
582as_executable_p=as_fn_executable_p
583
584# Sed expression to map a string onto a valid CPP name.
585as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
586as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
587
588# Sed expression to map a string onto a valid variable name.
589as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
590as_tr_sh="eval sed '$as_sed_sh'" # deprecated
591
592SHELL=${CONFIG_SHELL-/bin/sh}
593
594
595test -n "$DJDIR" || exec 7<&0 </dev/null
596exec 6>&1
597
598# Name of the host.
599# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
600# so uname gets run too.
601ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
602
603#
604# Initializations.
605#
606ac_default_prefix=/usr/local
607ac_clean_files=
608ac_config_libobj_dir=.
609LIBOBJS=
610cross_compiling=no
611subdirs=
612MFLAGS=
613MAKEFLAGS=
614
615# Identity of this package.
616PACKAGE_NAME='xf86-video-chips'
617PACKAGE_TARNAME='xf86-video-chips'
618PACKAGE_VERSION='1.5.0'
619PACKAGE_STRING='xf86-video-chips 1.5.0'
620PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-chips/-/issues'
621PACKAGE_URL=''
622
623ac_unique_file="Makefile.am"
624# Factoring default headers for most tests.
625ac_includes_default="\
626#include <stddef.h>
627#ifdef HAVE_STDIO_H
628# include <stdio.h>
629#endif
630#ifdef HAVE_STDLIB_H
631# include <stdlib.h>
632#endif
633#ifdef HAVE_STRING_H
634# include <string.h>
635#endif
636#ifdef HAVE_INTTYPES_H
637# include <inttypes.h>
638#endif
639#ifdef HAVE_STDINT_H
640# include <stdint.h>
641#endif
642#ifdef HAVE_STRINGS_H
643# include <strings.h>
644#endif
645#ifdef HAVE_SYS_TYPES_H
646# include <sys/types.h>
647#endif
648#ifdef HAVE_SYS_STAT_H
649# include <sys/stat.h>
650#endif
651#ifdef HAVE_UNISTD_H
652# include <unistd.h>
653#endif"
654
655ac_header_c_list=
656ac_subst_vars='am__EXEEXT_FALSE
657am__EXEEXT_TRUE
658LTLIBOBJS
659LIBOBJS
660DRIVER_NAME
661moduledir
662BUILD_UTILS_FALSE
663BUILD_UTILS_TRUE
664XAA_FALSE
665XAA_TRUE
666XSERVER_LIBPCIACCESS_FALSE
667XSERVER_LIBPCIACCESS_TRUE
668PCIACCESS_LIBS
669PCIACCESS_CFLAGS
670XORG_LIBS
671XORG_CFLAGS
672LT_SYS_LIBRARY_PATH
673OTOOL64
674OTOOL
675LIPO
676NMEDIT
677DSYMUTIL
678MANIFEST_TOOL
679RANLIB
680ac_ct_AR
681AR
682DLLTOOL
683OBJDUMP
684FILECMD
685LN_S
686NM
687ac_ct_DUMPBIN
688DUMPBIN
689LD
690FGREP
691EGREP
692GREP
693LIBTOOL
694MAN_SUBSTS
695XORG_MAN_PAGE
696ADMIN_MAN_DIR
697DRIVER_MAN_DIR
698MISC_MAN_DIR
699FILE_MAN_DIR
700LIB_MAN_DIR
701APP_MAN_DIR
702ADMIN_MAN_SUFFIX
703DRIVER_MAN_SUFFIX
704MISC_MAN_SUFFIX
705FILE_MAN_SUFFIX
706LIB_MAN_SUFFIX
707APP_MAN_SUFFIX
708SED
709host_os
710host_vendor
711host_cpu
712host
713build_os
714build_vendor
715build_cpu
716build
717INSTALL_CMD
718PKG_CONFIG_LIBDIR
719PKG_CONFIG_PATH
720PKG_CONFIG
721CHANGELOG_CMD
722STRICT_CFLAGS
723CWARNFLAGS
724BASE_CFLAGS
725am__fastdepCC_FALSE
726am__fastdepCC_TRUE
727CCDEPMODE
728am__nodep
729AMDEPBACKSLASH
730AMDEP_FALSE
731AMDEP_TRUE
732am__include
733DEPDIR
734OBJEXT
735EXEEXT
736ac_ct_CC
737CPPFLAGS
738LDFLAGS
739CFLAGS
740CC
741AM_BACKSLASH
742AM_DEFAULT_VERBOSITY
743AM_DEFAULT_V
744AM_V
745CSCOPE
746ETAGS
747CTAGS
748am__untar
749am__tar
750AMTAR
751am__leading_dot
752SET_MAKE
753AWK
754mkdir_p
755MKDIR_P
756INSTALL_STRIP_PROGRAM
757STRIP
758install_sh
759MAKEINFO
760AUTOHEADER
761AUTOMAKE
762AUTOCONF
763ACLOCAL
764VERSION
765PACKAGE
766CYGPATH_W
767am__isrc
768INSTALL_DATA
769INSTALL_SCRIPT
770INSTALL_PROGRAM
771target_alias
772host_alias
773build_alias
774LIBS
775ECHO_T
776ECHO_N
777ECHO_C
778DEFS
779mandir
780localedir
781libdir
782psdir
783pdfdir
784dvidir
785htmldir
786infodir
787docdir
788oldincludedir
789includedir
790runstatedir
791localstatedir
792sharedstatedir
793sysconfdir
794datadir
795datarootdir
796libexecdir
797sbindir
798bindir
799program_transform_name
800prefix
801exec_prefix
802PACKAGE_URL
803PACKAGE_BUGREPORT
804PACKAGE_STRING
805PACKAGE_VERSION
806PACKAGE_TARNAME
807PACKAGE_NAME
808PATH_SEPARATOR
809SHELL
810am__quote'
811ac_subst_files=''
812ac_user_opts='
813enable_option_checking
814enable_silent_rules
815enable_dependency_tracking
816enable_selective_werror
817enable_strict_compilation
818enable_static
819enable_shared
820with_pic
821enable_fast_install
822with_aix_soname
823with_gnu_ld
824with_sysroot
825enable_libtool_lock
826with_xorg_module_dir
827enable_xaa
828'
829      ac_precious_vars='build_alias
830host_alias
831target_alias
832CC
833CFLAGS
834LDFLAGS
835LIBS
836CPPFLAGS
837PKG_CONFIG
838PKG_CONFIG_PATH
839PKG_CONFIG_LIBDIR
840LT_SYS_LIBRARY_PATH
841XORG_CFLAGS
842XORG_LIBS
843PCIACCESS_CFLAGS
844PCIACCESS_LIBS'
845
846
847# Initialize some variables set by options.
848ac_init_help=
849ac_init_version=false
850ac_unrecognized_opts=
851ac_unrecognized_sep=
852# The variables have the same names as the options, with
853# dashes changed to underlines.
854cache_file=/dev/null
855exec_prefix=NONE
856no_create=
857no_recursion=
858prefix=NONE
859program_prefix=NONE
860program_suffix=NONE
861program_transform_name=s,x,x,
862silent=
863site=
864srcdir=
865verbose=
866x_includes=NONE
867x_libraries=NONE
868
869# Installation directory options.
870# These are left unexpanded so users can "make install exec_prefix=/foo"
871# and all the variables that are supposed to be based on exec_prefix
872# by default will actually change.
873# Use braces instead of parens because sh, perl, etc. also accept them.
874# (The list follows the same order as the GNU Coding Standards.)
875bindir='${exec_prefix}/bin'
876sbindir='${exec_prefix}/sbin'
877libexecdir='${exec_prefix}/libexec'
878datarootdir='${prefix}/share'
879datadir='${datarootdir}'
880sysconfdir='${prefix}/etc'
881sharedstatedir='${prefix}/com'
882localstatedir='${prefix}/var'
883runstatedir='${localstatedir}/run'
884includedir='${prefix}/include'
885oldincludedir='/usr/include'
886docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
887infodir='${datarootdir}/info'
888htmldir='${docdir}'
889dvidir='${docdir}'
890pdfdir='${docdir}'
891psdir='${docdir}'
892libdir='${exec_prefix}/lib'
893localedir='${datarootdir}/locale'
894mandir='${datarootdir}/man'
895
896ac_prev=
897ac_dashdash=
898for ac_option
899do
900  # If the previous option needs an argument, assign it.
901  if test -n "$ac_prev"; then
902    eval $ac_prev=\$ac_option
903    ac_prev=
904    continue
905  fi
906
907  case $ac_option in
908  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
909  *=)   ac_optarg= ;;
910  *)    ac_optarg=yes ;;
911  esac
912
913  case $ac_dashdash$ac_option in
914  --)
915    ac_dashdash=yes ;;
916
917  -bindir | --bindir | --bindi | --bind | --bin | --bi)
918    ac_prev=bindir ;;
919  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920    bindir=$ac_optarg ;;
921
922  -build | --build | --buil | --bui | --bu)
923    ac_prev=build_alias ;;
924  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925    build_alias=$ac_optarg ;;
926
927  -cache-file | --cache-file | --cache-fil | --cache-fi \
928  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929    ac_prev=cache_file ;;
930  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932    cache_file=$ac_optarg ;;
933
934  --config-cache | -C)
935    cache_file=config.cache ;;
936
937  -datadir | --datadir | --datadi | --datad)
938    ac_prev=datadir ;;
939  -datadir=* | --datadir=* | --datadi=* | --datad=*)
940    datadir=$ac_optarg ;;
941
942  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943  | --dataroo | --dataro | --datar)
944    ac_prev=datarootdir ;;
945  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947    datarootdir=$ac_optarg ;;
948
949  -disable-* | --disable-*)
950    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951    # Reject names that are not valid shell variable names.
952    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953      as_fn_error $? "invalid feature name: '$ac_useropt'"
954    ac_useropt_orig=$ac_useropt
955    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
956    case $ac_user_opts in
957      *"
958"enable_$ac_useropt"
959"*) ;;
960      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961	 ac_unrecognized_sep=', ';;
962    esac
963    eval enable_$ac_useropt=no ;;
964
965  -docdir | --docdir | --docdi | --doc | --do)
966    ac_prev=docdir ;;
967  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968    docdir=$ac_optarg ;;
969
970  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971    ac_prev=dvidir ;;
972  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973    dvidir=$ac_optarg ;;
974
975  -enable-* | --enable-*)
976    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
977    # Reject names that are not valid shell variable names.
978    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979      as_fn_error $? "invalid feature name: '$ac_useropt'"
980    ac_useropt_orig=$ac_useropt
981    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
982    case $ac_user_opts in
983      *"
984"enable_$ac_useropt"
985"*) ;;
986      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987	 ac_unrecognized_sep=', ';;
988    esac
989    eval enable_$ac_useropt=\$ac_optarg ;;
990
991  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993  | --exec | --exe | --ex)
994    ac_prev=exec_prefix ;;
995  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997  | --exec=* | --exe=* | --ex=*)
998    exec_prefix=$ac_optarg ;;
999
1000  -gas | --gas | --ga | --g)
1001    # Obsolete; use --with-gas.
1002    with_gas=yes ;;
1003
1004  -help | --help | --hel | --he | -h)
1005    ac_init_help=long ;;
1006  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007    ac_init_help=recursive ;;
1008  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009    ac_init_help=short ;;
1010
1011  -host | --host | --hos | --ho)
1012    ac_prev=host_alias ;;
1013  -host=* | --host=* | --hos=* | --ho=*)
1014    host_alias=$ac_optarg ;;
1015
1016  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017    ac_prev=htmldir ;;
1018  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019  | --ht=*)
1020    htmldir=$ac_optarg ;;
1021
1022  -includedir | --includedir | --includedi | --included | --include \
1023  | --includ | --inclu | --incl | --inc)
1024    ac_prev=includedir ;;
1025  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026  | --includ=* | --inclu=* | --incl=* | --inc=*)
1027    includedir=$ac_optarg ;;
1028
1029  -infodir | --infodir | --infodi | --infod | --info | --inf)
1030    ac_prev=infodir ;;
1031  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032    infodir=$ac_optarg ;;
1033
1034  -libdir | --libdir | --libdi | --libd)
1035    ac_prev=libdir ;;
1036  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037    libdir=$ac_optarg ;;
1038
1039  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040  | --libexe | --libex | --libe)
1041    ac_prev=libexecdir ;;
1042  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043  | --libexe=* | --libex=* | --libe=*)
1044    libexecdir=$ac_optarg ;;
1045
1046  -localedir | --localedir | --localedi | --localed | --locale)
1047    ac_prev=localedir ;;
1048  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049    localedir=$ac_optarg ;;
1050
1051  -localstatedir | --localstatedir | --localstatedi | --localstated \
1052  | --localstate | --localstat | --localsta | --localst | --locals)
1053    ac_prev=localstatedir ;;
1054  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056    localstatedir=$ac_optarg ;;
1057
1058  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059    ac_prev=mandir ;;
1060  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061    mandir=$ac_optarg ;;
1062
1063  -nfp | --nfp | --nf)
1064    # Obsolete; use --without-fp.
1065    with_fp=no ;;
1066
1067  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068  | --no-cr | --no-c | -n)
1069    no_create=yes ;;
1070
1071  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073    no_recursion=yes ;;
1074
1075  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077  | --oldin | --oldi | --old | --ol | --o)
1078    ac_prev=oldincludedir ;;
1079  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082    oldincludedir=$ac_optarg ;;
1083
1084  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085    ac_prev=prefix ;;
1086  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087    prefix=$ac_optarg ;;
1088
1089  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090  | --program-pre | --program-pr | --program-p)
1091    ac_prev=program_prefix ;;
1092  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094    program_prefix=$ac_optarg ;;
1095
1096  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097  | --program-suf | --program-su | --program-s)
1098    ac_prev=program_suffix ;;
1099  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101    program_suffix=$ac_optarg ;;
1102
1103  -program-transform-name | --program-transform-name \
1104  | --program-transform-nam | --program-transform-na \
1105  | --program-transform-n | --program-transform- \
1106  | --program-transform | --program-transfor \
1107  | --program-transfo | --program-transf \
1108  | --program-trans | --program-tran \
1109  | --progr-tra | --program-tr | --program-t)
1110    ac_prev=program_transform_name ;;
1111  -program-transform-name=* | --program-transform-name=* \
1112  | --program-transform-nam=* | --program-transform-na=* \
1113  | --program-transform-n=* | --program-transform-=* \
1114  | --program-transform=* | --program-transfor=* \
1115  | --program-transfo=* | --program-transf=* \
1116  | --program-trans=* | --program-tran=* \
1117  | --progr-tra=* | --program-tr=* | --program-t=*)
1118    program_transform_name=$ac_optarg ;;
1119
1120  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121    ac_prev=pdfdir ;;
1122  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123    pdfdir=$ac_optarg ;;
1124
1125  -psdir | --psdir | --psdi | --psd | --ps)
1126    ac_prev=psdir ;;
1127  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128    psdir=$ac_optarg ;;
1129
1130  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131  | -silent | --silent | --silen | --sile | --sil)
1132    silent=yes ;;
1133
1134  -runstatedir | --runstatedir | --runstatedi | --runstated \
1135  | --runstate | --runstat | --runsta | --runst | --runs \
1136  | --run | --ru | --r)
1137    ac_prev=runstatedir ;;
1138  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1139  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1140  | --run=* | --ru=* | --r=*)
1141    runstatedir=$ac_optarg ;;
1142
1143  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144    ac_prev=sbindir ;;
1145  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146  | --sbi=* | --sb=*)
1147    sbindir=$ac_optarg ;;
1148
1149  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151  | --sharedst | --shareds | --shared | --share | --shar \
1152  | --sha | --sh)
1153    ac_prev=sharedstatedir ;;
1154  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157  | --sha=* | --sh=*)
1158    sharedstatedir=$ac_optarg ;;
1159
1160  -site | --site | --sit)
1161    ac_prev=site ;;
1162  -site=* | --site=* | --sit=*)
1163    site=$ac_optarg ;;
1164
1165  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166    ac_prev=srcdir ;;
1167  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168    srcdir=$ac_optarg ;;
1169
1170  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171  | --syscon | --sysco | --sysc | --sys | --sy)
1172    ac_prev=sysconfdir ;;
1173  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175    sysconfdir=$ac_optarg ;;
1176
1177  -target | --target | --targe | --targ | --tar | --ta | --t)
1178    ac_prev=target_alias ;;
1179  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180    target_alias=$ac_optarg ;;
1181
1182  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183    verbose=yes ;;
1184
1185  -version | --version | --versio | --versi | --vers | -V)
1186    ac_init_version=: ;;
1187
1188  -with-* | --with-*)
1189    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190    # Reject names that are not valid shell variable names.
1191    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192      as_fn_error $? "invalid package name: '$ac_useropt'"
1193    ac_useropt_orig=$ac_useropt
1194    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1195    case $ac_user_opts in
1196      *"
1197"with_$ac_useropt"
1198"*) ;;
1199      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1200	 ac_unrecognized_sep=', ';;
1201    esac
1202    eval with_$ac_useropt=\$ac_optarg ;;
1203
1204  -without-* | --without-*)
1205    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206    # Reject names that are not valid shell variable names.
1207    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208      as_fn_error $? "invalid package name: '$ac_useropt'"
1209    ac_useropt_orig=$ac_useropt
1210    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1211    case $ac_user_opts in
1212      *"
1213"with_$ac_useropt"
1214"*) ;;
1215      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216	 ac_unrecognized_sep=', ';;
1217    esac
1218    eval with_$ac_useropt=no ;;
1219
1220  --x)
1221    # Obsolete; use --with-x.
1222    with_x=yes ;;
1223
1224  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225  | --x-incl | --x-inc | --x-in | --x-i)
1226    ac_prev=x_includes ;;
1227  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229    x_includes=$ac_optarg ;;
1230
1231  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233    ac_prev=x_libraries ;;
1234  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236    x_libraries=$ac_optarg ;;
1237
1238  -*) as_fn_error $? "unrecognized option: '$ac_option'
1239Try '$0 --help' for more information"
1240    ;;
1241
1242  *=*)
1243    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1244    # Reject names that are not valid shell variable names.
1245    case $ac_envvar in #(
1246      '' | [0-9]* | *[!_$as_cr_alnum]* )
1247      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1248    esac
1249    eval $ac_envvar=\$ac_optarg
1250    export $ac_envvar ;;
1251
1252  *)
1253    # FIXME: should be removed in autoconf 3.0.
1254    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1255    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1257    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1258    ;;
1259
1260  esac
1261done
1262
1263if test -n "$ac_prev"; then
1264  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1265  as_fn_error $? "missing argument to $ac_option"
1266fi
1267
1268if test -n "$ac_unrecognized_opts"; then
1269  case $enable_option_checking in
1270    no) ;;
1271    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1272    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273  esac
1274fi
1275
1276# Check all directory arguments for consistency.
1277for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278		datadir sysconfdir sharedstatedir localstatedir includedir \
1279		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280		libdir localedir mandir runstatedir
1281do
1282  eval ac_val=\$$ac_var
1283  # Remove trailing slashes.
1284  case $ac_val in
1285    */ )
1286      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287      eval $ac_var=\$ac_val;;
1288  esac
1289  # Be sure to have absolute directory names.
1290  case $ac_val in
1291    [\\/$]* | ?:[\\/]* )  continue;;
1292    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293  esac
1294  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1295done
1296
1297# There might be people who depend on the old broken behavior: '$host'
1298# used to hold the argument of --host etc.
1299# FIXME: To remove some day.
1300build=$build_alias
1301host=$host_alias
1302target=$target_alias
1303
1304# FIXME: To remove some day.
1305if test "x$host_alias" != x; then
1306  if test "x$build_alias" = x; then
1307    cross_compiling=maybe
1308  elif test "x$build_alias" != "x$host_alias"; then
1309    cross_compiling=yes
1310  fi
1311fi
1312
1313ac_tool_prefix=
1314test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316test "$silent" = yes && exec 6>/dev/null
1317
1318
1319ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320ac_ls_di=`ls -di .` &&
1321ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322  as_fn_error $? "working directory cannot be determined"
1323test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1324  as_fn_error $? "pwd does not report name of working directory"
1325
1326
1327# Find the source files, if location was not specified.
1328if test -z "$srcdir"; then
1329  ac_srcdir_defaulted=yes
1330  # Try the directory containing this script, then the parent directory.
1331  ac_confdir=`$as_dirname -- "$as_myself" ||
1332$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333	 X"$as_myself" : 'X\(//\)[^/]' \| \
1334	 X"$as_myself" : 'X\(//\)$' \| \
1335	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1336printf "%s\n" X"$as_myself" |
1337    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338	    s//\1/
1339	    q
1340	  }
1341	  /^X\(\/\/\)[^/].*/{
1342	    s//\1/
1343	    q
1344	  }
1345	  /^X\(\/\/\)$/{
1346	    s//\1/
1347	    q
1348	  }
1349	  /^X\(\/\).*/{
1350	    s//\1/
1351	    q
1352	  }
1353	  s/.*/./; q'`
1354  srcdir=$ac_confdir
1355  if test ! -r "$srcdir/$ac_unique_file"; then
1356    srcdir=..
1357  fi
1358else
1359  ac_srcdir_defaulted=no
1360fi
1361if test ! -r "$srcdir/$ac_unique_file"; then
1362  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1364fi
1365ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1366ac_abs_confdir=`(
1367	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1368	pwd)`
1369# When building in place, set srcdir=.
1370if test "$ac_abs_confdir" = "$ac_pwd"; then
1371  srcdir=.
1372fi
1373# Remove unnecessary trailing slashes from srcdir.
1374# Double slashes in file names in object file debugging info
1375# mess up M-x gdb in Emacs.
1376case $srcdir in
1377*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1378esac
1379for ac_var in $ac_precious_vars; do
1380  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381  eval ac_env_${ac_var}_value=\$${ac_var}
1382  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384done
1385
1386#
1387# Report the --help message.
1388#
1389if test "$ac_init_help" = "long"; then
1390  # Omit some internal or obsolete options to make the list less imposing.
1391  # This message is too long to be a string in the A/UX 3.1 sh.
1392  cat <<_ACEOF
1393'configure' configures xf86-video-chips 1.5.0 to adapt to many kinds of systems.
1394
1395Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398VAR=VALUE.  See below for descriptions of some of the useful variables.
1399
1400Defaults for the options are specified in brackets.
1401
1402Configuration:
1403  -h, --help              display this help and exit
1404      --help=short        display options specific to this package
1405      --help=recursive    display the short help of all the included packages
1406  -V, --version           display version information and exit
1407  -q, --quiet, --silent   do not print 'checking ...' messages
1408      --cache-file=FILE   cache test results in FILE [disabled]
1409  -C, --config-cache      alias for '--cache-file=config.cache'
1410  -n, --no-create         do not create output files
1411      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1412
1413Installation directories:
1414  --prefix=PREFIX         install architecture-independent files in PREFIX
1415                          [$ac_default_prefix]
1416  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1417                          [PREFIX]
1418
1419By default, 'make install' will install all the files in
1420'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1421an installation prefix other than '$ac_default_prefix' using '--prefix',
1422for instance '--prefix=\$HOME'.
1423
1424For better control, use the options below.
1425
1426Fine tuning of the installation directories:
1427  --bindir=DIR            user executables [EPREFIX/bin]
1428  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1429  --libexecdir=DIR        program executables [EPREFIX/libexec]
1430  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1431  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1432  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1433  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1434  --libdir=DIR            object code libraries [EPREFIX/lib]
1435  --includedir=DIR        C header files [PREFIX/include]
1436  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1437  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1438  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1439  --infodir=DIR           info documentation [DATAROOTDIR/info]
1440  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1441  --mandir=DIR            man documentation [DATAROOTDIR/man]
1442  --docdir=DIR            documentation root
1443                          [DATAROOTDIR/doc/xf86-video-chips]
1444  --htmldir=DIR           html documentation [DOCDIR]
1445  --dvidir=DIR            dvi documentation [DOCDIR]
1446  --pdfdir=DIR            pdf documentation [DOCDIR]
1447  --psdir=DIR             ps documentation [DOCDIR]
1448_ACEOF
1449
1450  cat <<\_ACEOF
1451
1452Program names:
1453  --program-prefix=PREFIX            prepend PREFIX to installed program names
1454  --program-suffix=SUFFIX            append SUFFIX to installed program names
1455  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1456
1457System types:
1458  --build=BUILD     configure for building on BUILD [guessed]
1459  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1460_ACEOF
1461fi
1462
1463if test -n "$ac_init_help"; then
1464  case $ac_init_help in
1465     short | recursive ) echo "Configuration of xf86-video-chips 1.5.0:";;
1466   esac
1467  cat <<\_ACEOF
1468
1469Optional Features:
1470  --disable-option-checking  ignore unrecognized --enable/--with options
1471  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1472  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1473  --enable-silent-rules   less verbose build output (undo: "make V=1")
1474  --disable-silent-rules  verbose build output (undo: "make V=0")
1475  --enable-dependency-tracking
1476                          do not reject slow dependency extractors
1477  --disable-dependency-tracking
1478                          speeds up one-time build
1479  --disable-selective-werror
1480                          Turn off selective compiler errors. (default:
1481                          enabled)
1482  --enable-strict-compilation
1483                          Enable all warnings from compiler and make them
1484                          errors (default: disabled)
1485  --enable-static[=PKGS]  build static libraries [default=no]
1486  --enable-shared[=PKGS]  build shared libraries [default=yes]
1487  --enable-fast-install[=PKGS]
1488                          optimize for fast installation [default=yes]
1489  --disable-libtool-lock  avoid locking (might break parallel builds)
1490  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1491                          [default=auto]
1492
1493Optional Packages:
1494  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1495  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1496  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1497                          both]
1498  --with-aix-soname=aix|svr4|both
1499                          shared library versioning (aka "SONAME") variant to
1500                          provide on AIX, [default=aix].
1501  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1502  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1503                          compiler's sysroot if not specified).
1504  --with-xorg-module-dir=DIR
1505                          Default xorg module directory
1506                          [[default=$libdir/xorg/modules]]
1507
1508Some influential environment variables:
1509  CC          C compiler command
1510  CFLAGS      C compiler flags
1511  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1512              nonstandard directory <lib dir>
1513  LIBS        libraries to pass to the linker, e.g. -l<library>
1514  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1515              you have headers in a nonstandard directory <include dir>
1516  PKG_CONFIG  path to pkg-config utility
1517  PKG_CONFIG_PATH
1518              directories to add to pkg-config's search path
1519  PKG_CONFIG_LIBDIR
1520              path overriding pkg-config's built-in search path
1521  LT_SYS_LIBRARY_PATH
1522              User-defined run-time library search path.
1523  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1524  XORG_LIBS   linker flags for XORG, overriding pkg-config
1525  PCIACCESS_CFLAGS
1526              C compiler flags for PCIACCESS, overriding pkg-config
1527  PCIACCESS_LIBS
1528              linker flags for PCIACCESS, overriding pkg-config
1529
1530Use these variables to override the choices made by 'configure' or to help
1531it to find libraries and programs with nonstandard names/locations.
1532
1533Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-chips/-/issues>.
1534_ACEOF
1535ac_status=$?
1536fi
1537
1538if test "$ac_init_help" = "recursive"; then
1539  # If there are subdirs, report their specific --help.
1540  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541    test -d "$ac_dir" ||
1542      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1543      continue
1544    ac_builddir=.
1545
1546case "$ac_dir" in
1547.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548*)
1549  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1550  # A ".." for each directory in $ac_dir_suffix.
1551  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1552  case $ac_top_builddir_sub in
1553  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1555  esac ;;
1556esac
1557ac_abs_top_builddir=$ac_pwd
1558ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559# for backward compatibility:
1560ac_top_builddir=$ac_top_build_prefix
1561
1562case $srcdir in
1563  .)  # We are building in place.
1564    ac_srcdir=.
1565    ac_top_srcdir=$ac_top_builddir_sub
1566    ac_abs_top_srcdir=$ac_pwd ;;
1567  [\\/]* | ?:[\\/]* )  # Absolute name.
1568    ac_srcdir=$srcdir$ac_dir_suffix;
1569    ac_top_srcdir=$srcdir
1570    ac_abs_top_srcdir=$srcdir ;;
1571  *) # Relative name.
1572    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573    ac_top_srcdir=$ac_top_build_prefix$srcdir
1574    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1575esac
1576ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1577
1578    cd "$ac_dir" || { ac_status=$?; continue; }
1579    # Check for configure.gnu first; this name is used for a wrapper for
1580    # Metaconfig's "Configure" on case-insensitive file systems.
1581    if test -f "$ac_srcdir/configure.gnu"; then
1582      echo &&
1583      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584    elif test -f "$ac_srcdir/configure"; then
1585      echo &&
1586      $SHELL "$ac_srcdir/configure" --help=recursive
1587    else
1588      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589    fi || ac_status=$?
1590    cd "$ac_pwd" || { ac_status=$?; break; }
1591  done
1592fi
1593
1594test -n "$ac_init_help" && exit $ac_status
1595if $ac_init_version; then
1596  cat <<\_ACEOF
1597xf86-video-chips configure 1.5.0
1598generated by GNU Autoconf 2.72
1599
1600Copyright (C) 2023 Free Software Foundation, Inc.
1601This configure script is free software; the Free Software Foundation
1602gives unlimited permission to copy, distribute and modify it.
1603_ACEOF
1604  exit
1605fi
1606
1607## ------------------------ ##
1608## Autoconf initialization. ##
1609## ------------------------ ##
1610
1611# ac_fn_c_try_compile LINENO
1612# --------------------------
1613# Try to compile conftest.$ac_ext, and return whether this succeeded.
1614ac_fn_c_try_compile ()
1615{
1616  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617  rm -f conftest.$ac_objext conftest.beam
1618  if { { ac_try="$ac_compile"
1619case "(($ac_try" in
1620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621  *) ac_try_echo=$ac_try;;
1622esac
1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624printf "%s\n" "$ac_try_echo"; } >&5
1625  (eval "$ac_compile") 2>conftest.err
1626  ac_status=$?
1627  if test -s conftest.err; then
1628    grep -v '^ *+' conftest.err >conftest.er1
1629    cat conftest.er1 >&5
1630    mv -f conftest.er1 conftest.err
1631  fi
1632  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633  test $ac_status = 0; } && {
1634	 test -z "$ac_c_werror_flag" ||
1635	 test ! -s conftest.err
1636       } && test -s conftest.$ac_objext
1637then :
1638  ac_retval=0
1639else case e in #(
1640  e) printf "%s\n" "$as_me: failed program was:" >&5
1641sed 's/^/| /' conftest.$ac_ext >&5
1642
1643	ac_retval=1 ;;
1644esac
1645fi
1646  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647  as_fn_set_status $ac_retval
1648
1649} # ac_fn_c_try_compile
1650
1651# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1652# ------------------------------------------------------------------
1653# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1654# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1655ac_fn_check_decl ()
1656{
1657  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658  as_decl_name=`echo $2|sed 's/ *(.*//'`
1659  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1660printf %s "checking whether $as_decl_name is declared... " >&6; }
1661if eval test \${$3+y}
1662then :
1663  printf %s "(cached) " >&6
1664else case e in #(
1665  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1666  eval ac_save_FLAGS=\$$6
1667  as_fn_append $6 " $5"
1668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669/* end confdefs.h.  */
1670$4
1671int
1672main (void)
1673{
1674#ifndef $as_decl_name
1675#ifdef __cplusplus
1676  (void) $as_decl_use;
1677#else
1678  (void) $as_decl_name;
1679#endif
1680#endif
1681
1682  ;
1683  return 0;
1684}
1685_ACEOF
1686if ac_fn_c_try_compile "$LINENO"
1687then :
1688  eval "$3=yes"
1689else case e in #(
1690  e) eval "$3=no" ;;
1691esac
1692fi
1693rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1694  eval $6=\$ac_save_FLAGS
1695 ;;
1696esac
1697fi
1698eval ac_res=\$$3
1699	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700printf "%s\n" "$ac_res" >&6; }
1701  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702
1703} # ac_fn_check_decl
1704
1705# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1706# -------------------------------------------------------
1707# Tests whether HEADER exists and can be compiled using the include files in
1708# INCLUDES, setting the cache variable VAR accordingly.
1709ac_fn_c_check_header_compile ()
1710{
1711  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713printf %s "checking for $2... " >&6; }
1714if eval test \${$3+y}
1715then :
1716  printf %s "(cached) " >&6
1717else case e in #(
1718  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1719/* end confdefs.h.  */
1720$4
1721#include <$2>
1722_ACEOF
1723if ac_fn_c_try_compile "$LINENO"
1724then :
1725  eval "$3=yes"
1726else case e in #(
1727  e) eval "$3=no" ;;
1728esac
1729fi
1730rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1731esac
1732fi
1733eval ac_res=\$$3
1734	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735printf "%s\n" "$ac_res" >&6; }
1736  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737
1738} # ac_fn_c_check_header_compile
1739
1740# ac_fn_c_try_link LINENO
1741# -----------------------
1742# Try to link conftest.$ac_ext, and return whether this succeeded.
1743ac_fn_c_try_link ()
1744{
1745  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1747  if { { ac_try="$ac_link"
1748case "(($ac_try" in
1749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750  *) ac_try_echo=$ac_try;;
1751esac
1752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753printf "%s\n" "$ac_try_echo"; } >&5
1754  (eval "$ac_link") 2>conftest.err
1755  ac_status=$?
1756  if test -s conftest.err; then
1757    grep -v '^ *+' conftest.err >conftest.er1
1758    cat conftest.er1 >&5
1759    mv -f conftest.er1 conftest.err
1760  fi
1761  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762  test $ac_status = 0; } && {
1763	 test -z "$ac_c_werror_flag" ||
1764	 test ! -s conftest.err
1765       } && test -s conftest$ac_exeext && {
1766	 test "$cross_compiling" = yes ||
1767	 test -x conftest$ac_exeext
1768       }
1769then :
1770  ac_retval=0
1771else case e in #(
1772  e) printf "%s\n" "$as_me: failed program was:" >&5
1773sed 's/^/| /' conftest.$ac_ext >&5
1774
1775	ac_retval=1 ;;
1776esac
1777fi
1778  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1779  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1780  # interfere with the next link command; also delete a directory that is
1781  # left behind by Apple's compiler.  We do this before executing the actions.
1782  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1783  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784  as_fn_set_status $ac_retval
1785
1786} # ac_fn_c_try_link
1787
1788# ac_fn_c_check_func LINENO FUNC VAR
1789# ----------------------------------
1790# Tests whether FUNC exists, setting the cache variable VAR accordingly
1791ac_fn_c_check_func ()
1792{
1793  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795printf %s "checking for $2... " >&6; }
1796if eval test \${$3+y}
1797then :
1798  printf %s "(cached) " >&6
1799else case e in #(
1800  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801/* end confdefs.h.  */
1802/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1803   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1804#define $2 innocuous_$2
1805
1806/* System header to define __stub macros and hopefully few prototypes,
1807   which can conflict with char $2 (void); below.  */
1808
1809#include <limits.h>
1810#undef $2
1811
1812/* Override any GCC internal prototype to avoid an error.
1813   Use char because int might match the return type of a GCC
1814   builtin and then its argument prototype would still apply.  */
1815#ifdef __cplusplus
1816extern "C"
1817#endif
1818char $2 (void);
1819/* The GNU C library defines this for functions which it implements
1820    to always fail with ENOSYS.  Some functions are actually named
1821    something starting with __ and the normal name is an alias.  */
1822#if defined __stub_$2 || defined __stub___$2
1823choke me
1824#endif
1825
1826int
1827main (void)
1828{
1829return $2 ();
1830  ;
1831  return 0;
1832}
1833_ACEOF
1834if ac_fn_c_try_link "$LINENO"
1835then :
1836  eval "$3=yes"
1837else case e in #(
1838  e) eval "$3=no" ;;
1839esac
1840fi
1841rm -f core conftest.err conftest.$ac_objext conftest.beam \
1842    conftest$ac_exeext conftest.$ac_ext ;;
1843esac
1844fi
1845eval ac_res=\$$3
1846	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847printf "%s\n" "$ac_res" >&6; }
1848  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849
1850} # ac_fn_c_check_func
1851ac_configure_args_raw=
1852for ac_arg
1853do
1854  case $ac_arg in
1855  *\'*)
1856    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1857  esac
1858  as_fn_append ac_configure_args_raw " '$ac_arg'"
1859done
1860
1861case $ac_configure_args_raw in
1862  *$as_nl*)
1863    ac_safe_unquote= ;;
1864  *)
1865    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1866    ac_unsafe_a="$ac_unsafe_z#~"
1867    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1868    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1869esac
1870
1871cat >config.log <<_ACEOF
1872This file contains any messages produced by compilers while
1873running configure, to aid debugging if configure makes a mistake.
1874
1875It was created by xf86-video-chips $as_me 1.5.0, which was
1876generated by GNU Autoconf 2.72.  Invocation command line was
1877
1878  $ $0$ac_configure_args_raw
1879
1880_ACEOF
1881exec 5>>config.log
1882{
1883cat <<_ASUNAME
1884## --------- ##
1885## Platform. ##
1886## --------- ##
1887
1888hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1889uname -m = `(uname -m) 2>/dev/null || echo unknown`
1890uname -r = `(uname -r) 2>/dev/null || echo unknown`
1891uname -s = `(uname -s) 2>/dev/null || echo unknown`
1892uname -v = `(uname -v) 2>/dev/null || echo unknown`
1893
1894/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1895/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1896
1897/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1898/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1899/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1900/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1901/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1902/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1903/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1904
1905_ASUNAME
1906
1907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908for as_dir in $PATH
1909do
1910  IFS=$as_save_IFS
1911  case $as_dir in #(((
1912    '') as_dir=./ ;;
1913    */) ;;
1914    *) as_dir=$as_dir/ ;;
1915  esac
1916    printf "%s\n" "PATH: $as_dir"
1917  done
1918IFS=$as_save_IFS
1919
1920} >&5
1921
1922cat >&5 <<_ACEOF
1923
1924
1925## ----------- ##
1926## Core tests. ##
1927## ----------- ##
1928
1929_ACEOF
1930
1931
1932# Keep a trace of the command line.
1933# Strip out --no-create and --no-recursion so they do not pile up.
1934# Strip out --silent because we don't want to record it for future runs.
1935# Also quote any args containing shell meta-characters.
1936# Make two passes to allow for proper duplicate-argument suppression.
1937ac_configure_args=
1938ac_configure_args0=
1939ac_configure_args1=
1940ac_must_keep_next=false
1941for ac_pass in 1 2
1942do
1943  for ac_arg
1944  do
1945    case $ac_arg in
1946    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1947    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1948    | -silent | --silent | --silen | --sile | --sil)
1949      continue ;;
1950    *\'*)
1951      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1952    esac
1953    case $ac_pass in
1954    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1955    2)
1956      as_fn_append ac_configure_args1 " '$ac_arg'"
1957      if test $ac_must_keep_next = true; then
1958	ac_must_keep_next=false # Got value, back to normal.
1959      else
1960	case $ac_arg in
1961	  *=* | --config-cache | -C | -disable-* | --disable-* \
1962	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1963	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1964	  | -with-* | --with-* | -without-* | --without-* | --x)
1965	    case "$ac_configure_args0 " in
1966	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1967	    esac
1968	    ;;
1969	  -* ) ac_must_keep_next=true ;;
1970	esac
1971      fi
1972      as_fn_append ac_configure_args " '$ac_arg'"
1973      ;;
1974    esac
1975  done
1976done
1977{ ac_configure_args0=; unset ac_configure_args0;}
1978{ ac_configure_args1=; unset ac_configure_args1;}
1979
1980# When interrupted or exit'd, cleanup temporary files, and complete
1981# config.log.  We remove comments because anyway the quotes in there
1982# would cause problems or look ugly.
1983# WARNING: Use '\'' to represent an apostrophe within the trap.
1984# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1985trap 'exit_status=$?
1986  # Sanitize IFS.
1987  IFS=" ""	$as_nl"
1988  # Save into config.log some information that might help in debugging.
1989  {
1990    echo
1991
1992    printf "%s\n" "## ---------------- ##
1993## Cache variables. ##
1994## ---------------- ##"
1995    echo
1996    # The following way of writing the cache mishandles newlines in values,
1997(
1998  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1999    eval ac_val=\$$ac_var
2000    case $ac_val in #(
2001    *${as_nl}*)
2002      case $ac_var in #(
2003      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2004printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2005      esac
2006      case $ac_var in #(
2007      _ | IFS | as_nl) ;; #(
2008      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2009      *) { eval $ac_var=; unset $ac_var;} ;;
2010      esac ;;
2011    esac
2012  done
2013  (set) 2>&1 |
2014    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2015    *${as_nl}ac_space=\ *)
2016      sed -n \
2017	"s/'\''/'\''\\\\'\'''\''/g;
2018	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2019      ;; #(
2020    *)
2021      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2022      ;;
2023    esac |
2024    sort
2025)
2026    echo
2027
2028    printf "%s\n" "## ----------------- ##
2029## Output variables. ##
2030## ----------------- ##"
2031    echo
2032    for ac_var in $ac_subst_vars
2033    do
2034      eval ac_val=\$$ac_var
2035      case $ac_val in
2036      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2037      esac
2038      printf "%s\n" "$ac_var='\''$ac_val'\''"
2039    done | sort
2040    echo
2041
2042    if test -n "$ac_subst_files"; then
2043      printf "%s\n" "## ------------------- ##
2044## File substitutions. ##
2045## ------------------- ##"
2046      echo
2047      for ac_var in $ac_subst_files
2048      do
2049	eval ac_val=\$$ac_var
2050	case $ac_val in
2051	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052	esac
2053	printf "%s\n" "$ac_var='\''$ac_val'\''"
2054      done | sort
2055      echo
2056    fi
2057
2058    if test -s confdefs.h; then
2059      printf "%s\n" "## ----------- ##
2060## confdefs.h. ##
2061## ----------- ##"
2062      echo
2063      cat confdefs.h
2064      echo
2065    fi
2066    test "$ac_signal" != 0 &&
2067      printf "%s\n" "$as_me: caught signal $ac_signal"
2068    printf "%s\n" "$as_me: exit $exit_status"
2069  } >&5
2070  rm -f core *.core core.conftest.* &&
2071    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2072    exit $exit_status
2073' 0
2074for ac_signal in 1 2 13 15; do
2075  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2076done
2077ac_signal=0
2078
2079# confdefs.h avoids OS command line length limits that DEFS can exceed.
2080rm -f -r conftest* confdefs.h
2081
2082printf "%s\n" "/* confdefs.h */" > confdefs.h
2083
2084# Predefined preprocessor variables.
2085
2086printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2087
2088printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2089
2090printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2091
2092printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2093
2094printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2095
2096printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2097
2098
2099# Let the site file select an alternate cache file if it wants to.
2100# Prefer an explicitly selected file to automatically selected ones.
2101if test -n "$CONFIG_SITE"; then
2102  ac_site_files="$CONFIG_SITE"
2103elif test "x$prefix" != xNONE; then
2104  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2105else
2106  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2107fi
2108
2109for ac_site_file in $ac_site_files
2110do
2111  case $ac_site_file in #(
2112  */*) :
2113     ;; #(
2114  *) :
2115    ac_site_file=./$ac_site_file ;;
2116esac
2117  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2118    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2119printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2120    sed 's/^/| /' "$ac_site_file" >&5
2121    . "$ac_site_file" \
2122      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2123printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2124as_fn_error $? "failed to load site script $ac_site_file
2125See 'config.log' for more details" "$LINENO" 5; }
2126  fi
2127done
2128
2129if test -r "$cache_file"; then
2130  # Some versions of bash will fail to source /dev/null (special files
2131  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2132  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2133    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2134printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2135    case $cache_file in
2136      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2137      *)                      . "./$cache_file";;
2138    esac
2139  fi
2140else
2141  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2142printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2143  >$cache_file
2144fi
2145
2146# Test code for whether the C compiler supports C89 (global declarations)
2147ac_c_conftest_c89_globals='
2148/* Does the compiler advertise C89 conformance?
2149   Do not test the value of __STDC__, because some compilers set it to 0
2150   while being otherwise adequately conformant. */
2151#if !defined __STDC__
2152# error "Compiler does not advertise C89 conformance"
2153#endif
2154
2155#include <stddef.h>
2156#include <stdarg.h>
2157struct stat;
2158/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2159struct buf { int x; };
2160struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2161static char *e (char **p, int i)
2162{
2163  return p[i];
2164}
2165static char *f (char * (*g) (char **, int), char **p, ...)
2166{
2167  char *s;
2168  va_list v;
2169  va_start (v,p);
2170  s = g (p, va_arg (v,int));
2171  va_end (v);
2172  return s;
2173}
2174
2175/* C89 style stringification. */
2176#define noexpand_stringify(a) #a
2177const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2178
2179/* C89 style token pasting.  Exercises some of the corner cases that
2180   e.g. old MSVC gets wrong, but not very hard. */
2181#define noexpand_concat(a,b) a##b
2182#define expand_concat(a,b) noexpand_concat(a,b)
2183extern int vA;
2184extern int vbee;
2185#define aye A
2186#define bee B
2187int *pvA = &expand_concat(v,aye);
2188int *pvbee = &noexpand_concat(v,bee);
2189
2190/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2191   function prototypes and stuff, but not \xHH hex character constants.
2192   These do not provoke an error unfortunately, instead are silently treated
2193   as an "x".  The following induces an error, until -std is added to get
2194   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2195   array size at least.  It is necessary to write \x00 == 0 to get something
2196   that is true only with -std.  */
2197int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2198
2199/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2200   inside strings and character constants.  */
2201#define FOO(x) '\''x'\''
2202int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2203
2204int test (int i, double x);
2205struct s1 {int (*f) (int a);};
2206struct s2 {int (*f) (double a);};
2207int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2208               int, int);'
2209
2210# Test code for whether the C compiler supports C89 (body of main).
2211ac_c_conftest_c89_main='
2212ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2213'
2214
2215# Test code for whether the C compiler supports C99 (global declarations)
2216ac_c_conftest_c99_globals='
2217/* Does the compiler advertise C99 conformance? */
2218#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2219# error "Compiler does not advertise C99 conformance"
2220#endif
2221
2222// See if C++-style comments work.
2223
2224#include <stdbool.h>
2225extern int puts (const char *);
2226extern int printf (const char *, ...);
2227extern int dprintf (int, const char *, ...);
2228extern void *malloc (size_t);
2229extern void free (void *);
2230
2231// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2232// dprintf is used instead of fprintf to avoid needing to declare
2233// FILE and stderr.
2234#define debug(...) dprintf (2, __VA_ARGS__)
2235#define showlist(...) puts (#__VA_ARGS__)
2236#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2237static void
2238test_varargs_macros (void)
2239{
2240  int x = 1234;
2241  int y = 5678;
2242  debug ("Flag");
2243  debug ("X = %d\n", x);
2244  showlist (The first, second, and third items.);
2245  report (x>y, "x is %d but y is %d", x, y);
2246}
2247
2248// Check long long types.
2249#define BIG64 18446744073709551615ull
2250#define BIG32 4294967295ul
2251#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2252#if !BIG_OK
2253  #error "your preprocessor is broken"
2254#endif
2255#if BIG_OK
2256#else
2257  #error "your preprocessor is broken"
2258#endif
2259static long long int bignum = -9223372036854775807LL;
2260static unsigned long long int ubignum = BIG64;
2261
2262struct incomplete_array
2263{
2264  int datasize;
2265  double data[];
2266};
2267
2268struct named_init {
2269  int number;
2270  const wchar_t *name;
2271  double average;
2272};
2273
2274typedef const char *ccp;
2275
2276static inline int
2277test_restrict (ccp restrict text)
2278{
2279  // Iterate through items via the restricted pointer.
2280  // Also check for declarations in for loops.
2281  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2282    continue;
2283  return 0;
2284}
2285
2286// Check varargs and va_copy.
2287static bool
2288test_varargs (const char *format, ...)
2289{
2290  va_list args;
2291  va_start (args, format);
2292  va_list args_copy;
2293  va_copy (args_copy, args);
2294
2295  const char *str = "";
2296  int number = 0;
2297  float fnumber = 0;
2298
2299  while (*format)
2300    {
2301      switch (*format++)
2302	{
2303	case '\''s'\'': // string
2304	  str = va_arg (args_copy, const char *);
2305	  break;
2306	case '\''d'\'': // int
2307	  number = va_arg (args_copy, int);
2308	  break;
2309	case '\''f'\'': // float
2310	  fnumber = va_arg (args_copy, double);
2311	  break;
2312	default:
2313	  break;
2314	}
2315    }
2316  va_end (args_copy);
2317  va_end (args);
2318
2319  return *str && number && fnumber;
2320}
2321'
2322
2323# Test code for whether the C compiler supports C99 (body of main).
2324ac_c_conftest_c99_main='
2325  // Check bool.
2326  _Bool success = false;
2327  success |= (argc != 0);
2328
2329  // Check restrict.
2330  if (test_restrict ("String literal") == 0)
2331    success = true;
2332  char *restrict newvar = "Another string";
2333
2334  // Check varargs.
2335  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2336  test_varargs_macros ();
2337
2338  // Check flexible array members.
2339  struct incomplete_array *ia =
2340    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2341  ia->datasize = 10;
2342  for (int i = 0; i < ia->datasize; ++i)
2343    ia->data[i] = i * 1.234;
2344  // Work around memory leak warnings.
2345  free (ia);
2346
2347  // Check named initializers.
2348  struct named_init ni = {
2349    .number = 34,
2350    .name = L"Test wide string",
2351    .average = 543.34343,
2352  };
2353
2354  ni.number = 58;
2355
2356  int dynamic_array[ni.number];
2357  dynamic_array[0] = argv[0][0];
2358  dynamic_array[ni.number - 1] = 543;
2359
2360  // work around unused variable warnings
2361  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2362	 || dynamic_array[ni.number - 1] != 543);
2363'
2364
2365# Test code for whether the C compiler supports C11 (global declarations)
2366ac_c_conftest_c11_globals='
2367/* Does the compiler advertise C11 conformance? */
2368#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2369# error "Compiler does not advertise C11 conformance"
2370#endif
2371
2372// Check _Alignas.
2373char _Alignas (double) aligned_as_double;
2374char _Alignas (0) no_special_alignment;
2375extern char aligned_as_int;
2376char _Alignas (0) _Alignas (int) aligned_as_int;
2377
2378// Check _Alignof.
2379enum
2380{
2381  int_alignment = _Alignof (int),
2382  int_array_alignment = _Alignof (int[100]),
2383  char_alignment = _Alignof (char)
2384};
2385_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2386
2387// Check _Noreturn.
2388int _Noreturn does_not_return (void) { for (;;) continue; }
2389
2390// Check _Static_assert.
2391struct test_static_assert
2392{
2393  int x;
2394  _Static_assert (sizeof (int) <= sizeof (long int),
2395                  "_Static_assert does not work in struct");
2396  long int y;
2397};
2398
2399// Check UTF-8 literals.
2400#define u8 syntax error!
2401char const utf8_literal[] = u8"happens to be ASCII" "another string";
2402
2403// Check duplicate typedefs.
2404typedef long *long_ptr;
2405typedef long int *long_ptr;
2406typedef long_ptr long_ptr;
2407
2408// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2409struct anonymous
2410{
2411  union {
2412    struct { int i; int j; };
2413    struct { int k; long int l; } w;
2414  };
2415  int m;
2416} v1;
2417'
2418
2419# Test code for whether the C compiler supports C11 (body of main).
2420ac_c_conftest_c11_main='
2421  _Static_assert ((offsetof (struct anonymous, i)
2422		   == offsetof (struct anonymous, w.k)),
2423		  "Anonymous union alignment botch");
2424  v1.i = 2;
2425  v1.w.k = 5;
2426  ok |= v1.i != 5;
2427'
2428
2429# Test code for whether the C compiler supports C11 (complete).
2430ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2431${ac_c_conftest_c99_globals}
2432${ac_c_conftest_c11_globals}
2433
2434int
2435main (int argc, char **argv)
2436{
2437  int ok = 0;
2438  ${ac_c_conftest_c89_main}
2439  ${ac_c_conftest_c99_main}
2440  ${ac_c_conftest_c11_main}
2441  return ok;
2442}
2443"
2444
2445# Test code for whether the C compiler supports C99 (complete).
2446ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2447${ac_c_conftest_c99_globals}
2448
2449int
2450main (int argc, char **argv)
2451{
2452  int ok = 0;
2453  ${ac_c_conftest_c89_main}
2454  ${ac_c_conftest_c99_main}
2455  return ok;
2456}
2457"
2458
2459# Test code for whether the C compiler supports C89 (complete).
2460ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2461
2462int
2463main (int argc, char **argv)
2464{
2465  int ok = 0;
2466  ${ac_c_conftest_c89_main}
2467  return ok;
2468}
2469"
2470
2471as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2472as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2473as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2474as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2475as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2476as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2477as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2478as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2479as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2480
2481# Auxiliary files required by this configure script.
2482ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2483
2484# Locations in which to look for auxiliary files.
2485ac_aux_dir_candidates="${srcdir}/."
2486
2487# Search for a directory containing all of the required auxiliary files,
2488# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2489# If we don't find one directory that contains all the files we need,
2490# we report the set of missing files from the *first* directory in
2491# $ac_aux_dir_candidates and give up.
2492ac_missing_aux_files=""
2493ac_first_candidate=:
2494printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496as_found=false
2497for as_dir in $ac_aux_dir_candidates
2498do
2499  IFS=$as_save_IFS
2500  case $as_dir in #(((
2501    '') as_dir=./ ;;
2502    */) ;;
2503    *) as_dir=$as_dir/ ;;
2504  esac
2505  as_found=:
2506
2507  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2508  ac_aux_dir_found=yes
2509  ac_install_sh=
2510  for ac_aux in $ac_aux_files
2511  do
2512    # As a special case, if "install-sh" is required, that requirement
2513    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2514    # and $ac_install_sh is set appropriately for whichever one is found.
2515    if test x"$ac_aux" = x"install-sh"
2516    then
2517      if test -f "${as_dir}install-sh"; then
2518        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2519        ac_install_sh="${as_dir}install-sh -c"
2520      elif test -f "${as_dir}install.sh"; then
2521        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2522        ac_install_sh="${as_dir}install.sh -c"
2523      elif test -f "${as_dir}shtool"; then
2524        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2525        ac_install_sh="${as_dir}shtool install -c"
2526      else
2527        ac_aux_dir_found=no
2528        if $ac_first_candidate; then
2529          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2530        else
2531          break
2532        fi
2533      fi
2534    else
2535      if test -f "${as_dir}${ac_aux}"; then
2536        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2537      else
2538        ac_aux_dir_found=no
2539        if $ac_first_candidate; then
2540          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2541        else
2542          break
2543        fi
2544      fi
2545    fi
2546  done
2547  if test "$ac_aux_dir_found" = yes; then
2548    ac_aux_dir="$as_dir"
2549    break
2550  fi
2551  ac_first_candidate=false
2552
2553  as_found=false
2554done
2555IFS=$as_save_IFS
2556if $as_found
2557then :
2558
2559else case e in #(
2560  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2561esac
2562fi
2563
2564
2565# These three variables are undocumented and unsupported,
2566# and are intended to be withdrawn in a future Autoconf release.
2567# They can cause serious problems if a builder's source tree is in a directory
2568# whose full name contains unusual characters.
2569if test -f "${ac_aux_dir}config.guess"; then
2570  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2571fi
2572if test -f "${ac_aux_dir}config.sub"; then
2573  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2574fi
2575if test -f "$ac_aux_dir/configure"; then
2576  ac_configure="$SHELL ${ac_aux_dir}configure"
2577fi
2578
2579# Check that the precious variables saved in the cache have kept the same
2580# value.
2581ac_cache_corrupted=false
2582for ac_var in $ac_precious_vars; do
2583  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2584  eval ac_new_set=\$ac_env_${ac_var}_set
2585  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2586  eval ac_new_val=\$ac_env_${ac_var}_value
2587  case $ac_old_set,$ac_new_set in
2588    set,)
2589      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2590printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2591      ac_cache_corrupted=: ;;
2592    ,set)
2593      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2594printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2595      ac_cache_corrupted=: ;;
2596    ,);;
2597    *)
2598      if test "x$ac_old_val" != "x$ac_new_val"; then
2599	# differences in whitespace do not lead to failure.
2600	ac_old_val_w=`echo x $ac_old_val`
2601	ac_new_val_w=`echo x $ac_new_val`
2602	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2603	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2604printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2605	  ac_cache_corrupted=:
2606	else
2607	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2608printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2609	  eval $ac_var=\$ac_old_val
2610	fi
2611	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2612printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2613	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2614printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2615      fi;;
2616  esac
2617  # Pass precious variables to config.status.
2618  if test "$ac_new_set" = set; then
2619    case $ac_new_val in
2620    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2621    *) ac_arg=$ac_var=$ac_new_val ;;
2622    esac
2623    case " $ac_configure_args " in
2624      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2625      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2626    esac
2627  fi
2628done
2629if $ac_cache_corrupted; then
2630  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2631printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2633printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2634  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2635	    and start over" "$LINENO" 5
2636fi
2637## -------------------- ##
2638## Main body of script. ##
2639## -------------------- ##
2640
2641ac_ext=c
2642ac_cpp='$CPP $CPPFLAGS'
2643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2645ac_compiler_gnu=$ac_cv_c_compiler_gnu
2646
2647
2648
2649ac_config_headers="$ac_config_headers config.h"
2650
2651
2652
2653# Initialize Automake
2654am__api_version='1.16'
2655
2656
2657
2658  # Find a good install program.  We prefer a C program (faster),
2659# so one script is as good as another.  But avoid the broken or
2660# incompatible versions:
2661# SysV /etc/install, /usr/sbin/install
2662# SunOS /usr/etc/install
2663# IRIX /sbin/install
2664# AIX /bin/install
2665# AmigaOS /C/install, which installs bootblocks on floppy discs
2666# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2667# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2668# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2669# OS/2's system install, which has a completely different semantic
2670# ./install, which can be erroneously created by make from ./install.sh.
2671# Reject install programs that cannot install multiple files.
2672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2673printf %s "checking for a BSD-compatible install... " >&6; }
2674if test -z "$INSTALL"; then
2675if test ${ac_cv_path_install+y}
2676then :
2677  printf %s "(cached) " >&6
2678else case e in #(
2679  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680for as_dir in $PATH
2681do
2682  IFS=$as_save_IFS
2683  case $as_dir in #(((
2684    '') as_dir=./ ;;
2685    */) ;;
2686    *) as_dir=$as_dir/ ;;
2687  esac
2688    # Account for fact that we put trailing slashes in our PATH walk.
2689case $as_dir in #((
2690  ./ | /[cC]/* | \
2691  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2692  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2693  /usr/ucb/* ) ;;
2694  *)
2695    # OSF1 and SCO ODT 3.0 have their own names for install.
2696    # Don't use installbsd from OSF since it installs stuff as root
2697    # by default.
2698    for ac_prog in ginstall scoinst install; do
2699      for ac_exec_ext in '' $ac_executable_extensions; do
2700	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2701	  if test $ac_prog = install &&
2702	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2703	    # AIX install.  It has an incompatible calling convention.
2704	    :
2705	  elif test $ac_prog = install &&
2706	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2707	    # program-specific install script used by HP pwplus--don't use.
2708	    :
2709	  else
2710	    rm -rf conftest.one conftest.two conftest.dir
2711	    echo one > conftest.one
2712	    echo two > conftest.two
2713	    mkdir conftest.dir
2714	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2715	      test -s conftest.one && test -s conftest.two &&
2716	      test -s conftest.dir/conftest.one &&
2717	      test -s conftest.dir/conftest.two
2718	    then
2719	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2720	      break 3
2721	    fi
2722	  fi
2723	fi
2724      done
2725    done
2726    ;;
2727esac
2728
2729  done
2730IFS=$as_save_IFS
2731
2732rm -rf conftest.one conftest.two conftest.dir
2733 ;;
2734esac
2735fi
2736  if test ${ac_cv_path_install+y}; then
2737    INSTALL=$ac_cv_path_install
2738  else
2739    # As a last resort, use the slow shell script.  Don't cache a
2740    # value for INSTALL within a source directory, because that will
2741    # break other packages using the cache if that directory is
2742    # removed, or if the value is a relative name.
2743    INSTALL=$ac_install_sh
2744  fi
2745fi
2746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2747printf "%s\n" "$INSTALL" >&6; }
2748
2749# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2750# It thinks the first close brace ends the variable substitution.
2751test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2752
2753test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2754
2755test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2756
2757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2758printf %s "checking whether build environment is sane... " >&6; }
2759# Reject unsafe characters in $srcdir or the absolute working directory
2760# name.  Accept space and tab only in the latter.
2761am_lf='
2762'
2763case `pwd` in
2764  *[\\\"\#\$\&\'\`$am_lf]*)
2765    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2766esac
2767case $srcdir in
2768  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2769    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2770esac
2771
2772# Do 'set' in a subshell so we don't clobber the current shell's
2773# arguments.  Must try -L first in case configure is actually a
2774# symlink; some systems play weird games with the mod time of symlinks
2775# (eg FreeBSD returns the mod time of the symlink's containing
2776# directory).
2777if (
2778   am_has_slept=no
2779   for am_try in 1 2; do
2780     echo "timestamp, slept: $am_has_slept" > conftest.file
2781     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2782     if test "$*" = "X"; then
2783	# -L didn't work.
2784	set X `ls -t "$srcdir/configure" conftest.file`
2785     fi
2786     if test "$*" != "X $srcdir/configure conftest.file" \
2787	&& test "$*" != "X conftest.file $srcdir/configure"; then
2788
2789	# If neither matched, then we have a broken ls.  This can happen
2790	# if, for instance, CONFIG_SHELL is bash and it inherits a
2791	# broken ls alias from the environment.  This has actually
2792	# happened.  Such a system could not be considered "sane".
2793	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2794  alias in your environment" "$LINENO" 5
2795     fi
2796     if test "$2" = conftest.file || test $am_try -eq 2; then
2797       break
2798     fi
2799     # Just in case.
2800     sleep 1
2801     am_has_slept=yes
2802   done
2803   test "$2" = conftest.file
2804   )
2805then
2806   # Ok.
2807   :
2808else
2809   as_fn_error $? "newly created file is older than distributed files!
2810Check your system clock" "$LINENO" 5
2811fi
2812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2813printf "%s\n" "yes" >&6; }
2814# If we didn't sleep, we still need to ensure time stamps of config.status and
2815# generated files are strictly newer.
2816am_sleep_pid=
2817if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2818  ( sleep 1 ) &
2819  am_sleep_pid=$!
2820fi
2821
2822rm -f conftest.file
2823
2824test "$program_prefix" != NONE &&
2825  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2826# Use a double $ so make ignores it.
2827test "$program_suffix" != NONE &&
2828  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2829# Double any \ or $.
2830# By default was 's,x,x', remove it if useless.
2831ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2832program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2833
2834
2835# Expand $ac_aux_dir to an absolute path.
2836am_aux_dir=`cd "$ac_aux_dir" && pwd`
2837
2838
2839  if test x"${MISSING+set}" != xset; then
2840  MISSING="\${SHELL} '$am_aux_dir/missing'"
2841fi
2842# Use eval to expand $SHELL
2843if eval "$MISSING --is-lightweight"; then
2844  am_missing_run="$MISSING "
2845else
2846  am_missing_run=
2847  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2848printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2849fi
2850
2851if test x"${install_sh+set}" != xset; then
2852  case $am_aux_dir in
2853  *\ * | *\	*)
2854    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2855  *)
2856    install_sh="\${SHELL} $am_aux_dir/install-sh"
2857  esac
2858fi
2859
2860# Installed binaries are usually stripped using 'strip' when the user
2861# run "make install-strip".  However 'strip' might not be the right
2862# tool to use in cross-compilation environments, therefore Automake
2863# will honor the 'STRIP' environment variable to overrule this program.
2864if test "$cross_compiling" != no; then
2865  if test -n "$ac_tool_prefix"; then
2866  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2867set dummy ${ac_tool_prefix}strip; ac_word=$2
2868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2869printf %s "checking for $ac_word... " >&6; }
2870if test ${ac_cv_prog_STRIP+y}
2871then :
2872  printf %s "(cached) " >&6
2873else case e in #(
2874  e) if test -n "$STRIP"; then
2875  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2876else
2877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878for as_dir in $PATH
2879do
2880  IFS=$as_save_IFS
2881  case $as_dir in #(((
2882    '') as_dir=./ ;;
2883    */) ;;
2884    *) as_dir=$as_dir/ ;;
2885  esac
2886    for ac_exec_ext in '' $ac_executable_extensions; do
2887  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2888    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2889    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2890    break 2
2891  fi
2892done
2893  done
2894IFS=$as_save_IFS
2895
2896fi ;;
2897esac
2898fi
2899STRIP=$ac_cv_prog_STRIP
2900if test -n "$STRIP"; then
2901  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2902printf "%s\n" "$STRIP" >&6; }
2903else
2904  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905printf "%s\n" "no" >&6; }
2906fi
2907
2908
2909fi
2910if test -z "$ac_cv_prog_STRIP"; then
2911  ac_ct_STRIP=$STRIP
2912  # Extract the first word of "strip", so it can be a program name with args.
2913set dummy strip; ac_word=$2
2914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915printf %s "checking for $ac_word... " >&6; }
2916if test ${ac_cv_prog_ac_ct_STRIP+y}
2917then :
2918  printf %s "(cached) " >&6
2919else case e in #(
2920  e) if test -n "$ac_ct_STRIP"; then
2921  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2922else
2923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924for as_dir in $PATH
2925do
2926  IFS=$as_save_IFS
2927  case $as_dir in #(((
2928    '') as_dir=./ ;;
2929    */) ;;
2930    *) as_dir=$as_dir/ ;;
2931  esac
2932    for ac_exec_ext in '' $ac_executable_extensions; do
2933  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2934    ac_cv_prog_ac_ct_STRIP="strip"
2935    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2936    break 2
2937  fi
2938done
2939  done
2940IFS=$as_save_IFS
2941
2942fi ;;
2943esac
2944fi
2945ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2946if test -n "$ac_ct_STRIP"; then
2947  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2948printf "%s\n" "$ac_ct_STRIP" >&6; }
2949else
2950  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951printf "%s\n" "no" >&6; }
2952fi
2953
2954  if test "x$ac_ct_STRIP" = x; then
2955    STRIP=":"
2956  else
2957    case $cross_compiling:$ac_tool_warned in
2958yes:)
2959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2960printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2961ac_tool_warned=yes ;;
2962esac
2963    STRIP=$ac_ct_STRIP
2964  fi
2965else
2966  STRIP="$ac_cv_prog_STRIP"
2967fi
2968
2969fi
2970INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2971
2972
2973  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2974printf %s "checking for a race-free mkdir -p... " >&6; }
2975if test -z "$MKDIR_P"; then
2976  if test ${ac_cv_path_mkdir+y}
2977then :
2978  printf %s "(cached) " >&6
2979else case e in #(
2980  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2982do
2983  IFS=$as_save_IFS
2984  case $as_dir in #(((
2985    '') as_dir=./ ;;
2986    */) ;;
2987    *) as_dir=$as_dir/ ;;
2988  esac
2989    for ac_prog in mkdir gmkdir; do
2990	 for ac_exec_ext in '' $ac_executable_extensions; do
2991	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2992	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2993	     'mkdir ('*'coreutils) '* | \
2994	     *'BusyBox '* | \
2995	     'mkdir (fileutils) '4.1*)
2996	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2997	       break 3;;
2998	   esac
2999	 done
3000       done
3001  done
3002IFS=$as_save_IFS
3003 ;;
3004esac
3005fi
3006
3007  test -d ./--version && rmdir ./--version
3008  if test ${ac_cv_path_mkdir+y}; then
3009    MKDIR_P="$ac_cv_path_mkdir -p"
3010  else
3011    # As a last resort, use plain mkdir -p,
3012    # in the hope it doesn't have the bugs of ancient mkdir.
3013    MKDIR_P='mkdir -p'
3014  fi
3015fi
3016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3017printf "%s\n" "$MKDIR_P" >&6; }
3018
3019for ac_prog in gawk mawk nawk awk
3020do
3021  # Extract the first word of "$ac_prog", so it can be a program name with args.
3022set dummy $ac_prog; ac_word=$2
3023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024printf %s "checking for $ac_word... " >&6; }
3025if test ${ac_cv_prog_AWK+y}
3026then :
3027  printf %s "(cached) " >&6
3028else case e in #(
3029  e) if test -n "$AWK"; then
3030  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3031else
3032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033for as_dir in $PATH
3034do
3035  IFS=$as_save_IFS
3036  case $as_dir in #(((
3037    '') as_dir=./ ;;
3038    */) ;;
3039    *) as_dir=$as_dir/ ;;
3040  esac
3041    for ac_exec_ext in '' $ac_executable_extensions; do
3042  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3043    ac_cv_prog_AWK="$ac_prog"
3044    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3045    break 2
3046  fi
3047done
3048  done
3049IFS=$as_save_IFS
3050
3051fi ;;
3052esac
3053fi
3054AWK=$ac_cv_prog_AWK
3055if test -n "$AWK"; then
3056  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3057printf "%s\n" "$AWK" >&6; }
3058else
3059  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060printf "%s\n" "no" >&6; }
3061fi
3062
3063
3064  test -n "$AWK" && break
3065done
3066
3067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3068printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3069set x ${MAKE-make}
3070ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3071if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3072then :
3073  printf %s "(cached) " >&6
3074else case e in #(
3075  e) cat >conftest.make <<\_ACEOF
3076SHELL = /bin/sh
3077all:
3078	@echo '@@@%%%=$(MAKE)=@@@%%%'
3079_ACEOF
3080# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3081case `${MAKE-make} -f conftest.make 2>/dev/null` in
3082  *@@@%%%=?*=@@@%%%*)
3083    eval ac_cv_prog_make_${ac_make}_set=yes;;
3084  *)
3085    eval ac_cv_prog_make_${ac_make}_set=no;;
3086esac
3087rm -f conftest.make ;;
3088esac
3089fi
3090if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3091  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3092printf "%s\n" "yes" >&6; }
3093  SET_MAKE=
3094else
3095  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096printf "%s\n" "no" >&6; }
3097  SET_MAKE="MAKE=${MAKE-make}"
3098fi
3099
3100rm -rf .tst 2>/dev/null
3101mkdir .tst 2>/dev/null
3102if test -d .tst; then
3103  am__leading_dot=.
3104else
3105  am__leading_dot=_
3106fi
3107rmdir .tst 2>/dev/null
3108
3109# Check whether --enable-silent-rules was given.
3110if test ${enable_silent_rules+y}
3111then :
3112  enableval=$enable_silent_rules;
3113fi
3114
3115case $enable_silent_rules in # (((
3116  yes) AM_DEFAULT_VERBOSITY=0;;
3117   no) AM_DEFAULT_VERBOSITY=1;;
3118    *) AM_DEFAULT_VERBOSITY=1;;
3119esac
3120am_make=${MAKE-make}
3121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3122printf %s "checking whether $am_make supports nested variables... " >&6; }
3123if test ${am_cv_make_support_nested_variables+y}
3124then :
3125  printf %s "(cached) " >&6
3126else case e in #(
3127  e) if printf "%s\n" 'TRUE=$(BAR$(V))
3128BAR0=false
3129BAR1=true
3130V=1
3131am__doit:
3132	@$(TRUE)
3133.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3134  am_cv_make_support_nested_variables=yes
3135else
3136  am_cv_make_support_nested_variables=no
3137fi ;;
3138esac
3139fi
3140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3141printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3142if test $am_cv_make_support_nested_variables = yes; then
3143    AM_V='$(V)'
3144  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3145else
3146  AM_V=$AM_DEFAULT_VERBOSITY
3147  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3148fi
3149AM_BACKSLASH='\'
3150
3151if test "`cd $srcdir && pwd`" != "`pwd`"; then
3152  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3153  # is not polluted with repeated "-I."
3154  am__isrc=' -I$(srcdir)'
3155  # test to see if srcdir already configured
3156  if test -f $srcdir/config.status; then
3157    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3158  fi
3159fi
3160
3161# test whether we have cygpath
3162if test -z "$CYGPATH_W"; then
3163  if (cygpath --version) >/dev/null 2>/dev/null; then
3164    CYGPATH_W='cygpath -w'
3165  else
3166    CYGPATH_W=echo
3167  fi
3168fi
3169
3170
3171# Define the identity of the package.
3172 PACKAGE='xf86-video-chips'
3173 VERSION='1.5.0'
3174
3175
3176printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3177
3178
3179printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3180
3181# Some tools Automake needs.
3182
3183ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3184
3185
3186AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3187
3188
3189AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3190
3191
3192AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3193
3194
3195MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3196
3197# For better backward compatibility.  To be removed once Automake 1.9.x
3198# dies out for good.  For more background, see:
3199# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3200# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3201mkdir_p='$(MKDIR_P)'
3202
3203# We need awk for the "check" target (and possibly the TAP driver).  The
3204# system "awk" is bad on some platforms.
3205# Always define AMTAR for backward compatibility.  Yes, it's still used
3206# in the wild :-(  We should find a proper way to deprecate it ...
3207AMTAR='$${TAR-tar}'
3208
3209
3210# We'll loop over all known methods to create a tar archive until one works.
3211_am_tools='gnutar  pax cpio none'
3212
3213am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3214
3215
3216
3217
3218
3219# Variables for tags utilities; see am/tags.am
3220if test -z "$CTAGS"; then
3221  CTAGS=ctags
3222fi
3223
3224if test -z "$ETAGS"; then
3225  ETAGS=etags
3226fi
3227
3228if test -z "$CSCOPE"; then
3229  CSCOPE=cscope
3230fi
3231
3232
3233
3234# POSIX will say in a future version that running "rm -f" with no argument
3235# is OK; and we want to be able to make that assumption in our Makefile
3236# recipes.  So use an aggressive probe to check that the usage we want is
3237# actually supported "in the wild" to an acceptable degree.
3238# See automake bug#10828.
3239# To make any issue more visible, cause the running configure to be aborted
3240# by default if the 'rm' program in use doesn't match our expectations; the
3241# user can still override this though.
3242if rm -f && rm -fr && rm -rf; then : OK; else
3243  cat >&2 <<'END'
3244Oops!
3245
3246Your 'rm' program seems unable to run without file operands specified
3247on the command line, even when the '-f' option is present.  This is contrary
3248to the behaviour of most rm programs out there, and not conforming with
3249the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3250
3251Please tell bug-automake@gnu.org about your system, including the value
3252of your $PATH and any error possibly output before this message.  This
3253can help us improve future automake versions.
3254
3255END
3256  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3257    echo 'Configuration will proceed anyway, since you have set the' >&2
3258    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3259    echo >&2
3260  else
3261    cat >&2 <<'END'
3262Aborting the configuration process, to ensure you take notice of the issue.
3263
3264You can download and install GNU coreutils to get an 'rm' implementation
3265that behaves properly: <https://www.gnu.org/software/coreutils/>.
3266
3267If you want to complete the configuration process using your problematic
3268'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3269to "yes", and re-run configure.
3270
3271END
3272    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3273  fi
3274fi
3275
3276
3277# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298DEPDIR="${am__leading_dot}deps"
3299
3300ac_config_commands="$ac_config_commands depfiles"
3301
3302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3303printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3304cat > confinc.mk << 'END'
3305am__doit:
3306	@echo this is the am__doit target >confinc.out
3307.PHONY: am__doit
3308END
3309am__include="#"
3310am__quote=
3311# BSD make does it like this.
3312echo '.include "confinc.mk" # ignored' > confmf.BSD
3313# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3314echo 'include confinc.mk # ignored' > confmf.GNU
3315_am_result=no
3316for s in GNU BSD; do
3317  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3318   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3319   ac_status=$?
3320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321   (exit $ac_status); }
3322  case $?:`cat confinc.out 2>/dev/null` in #(
3323  '0:this is the am__doit target') :
3324    case $s in #(
3325  BSD) :
3326    am__include='.include' am__quote='"' ;; #(
3327  *) :
3328    am__include='include' am__quote='' ;;
3329esac ;; #(
3330  *) :
3331     ;;
3332esac
3333  if test "$am__include" != "#"; then
3334    _am_result="yes ($s style)"
3335    break
3336  fi
3337done
3338rm -f confinc.* confmf.*
3339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3340printf "%s\n" "${_am_result}" >&6; }
3341
3342# Check whether --enable-dependency-tracking was given.
3343if test ${enable_dependency_tracking+y}
3344then :
3345  enableval=$enable_dependency_tracking;
3346fi
3347
3348if test "x$enable_dependency_tracking" != xno; then
3349  am_depcomp="$ac_aux_dir/depcomp"
3350  AMDEPBACKSLASH='\'
3351  am__nodep='_no'
3352fi
3353 if test "x$enable_dependency_tracking" != xno; then
3354  AMDEP_TRUE=
3355  AMDEP_FALSE='#'
3356else
3357  AMDEP_TRUE='#'
3358  AMDEP_FALSE=
3359fi
3360
3361
3362ac_ext=c
3363ac_cpp='$CPP $CPPFLAGS'
3364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3366ac_compiler_gnu=$ac_cv_c_compiler_gnu
3367if test -n "$ac_tool_prefix"; then
3368  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3369set dummy ${ac_tool_prefix}gcc; ac_word=$2
3370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371printf %s "checking for $ac_word... " >&6; }
3372if test ${ac_cv_prog_CC+y}
3373then :
3374  printf %s "(cached) " >&6
3375else case e in #(
3376  e) if test -n "$CC"; then
3377  ac_cv_prog_CC="$CC" # Let the user override the test.
3378else
3379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380for as_dir in $PATH
3381do
3382  IFS=$as_save_IFS
3383  case $as_dir in #(((
3384    '') as_dir=./ ;;
3385    */) ;;
3386    *) as_dir=$as_dir/ ;;
3387  esac
3388    for ac_exec_ext in '' $ac_executable_extensions; do
3389  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3390    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3391    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3392    break 2
3393  fi
3394done
3395  done
3396IFS=$as_save_IFS
3397
3398fi ;;
3399esac
3400fi
3401CC=$ac_cv_prog_CC
3402if test -n "$CC"; then
3403  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3404printf "%s\n" "$CC" >&6; }
3405else
3406  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407printf "%s\n" "no" >&6; }
3408fi
3409
3410
3411fi
3412if test -z "$ac_cv_prog_CC"; then
3413  ac_ct_CC=$CC
3414  # Extract the first word of "gcc", so it can be a program name with args.
3415set dummy gcc; ac_word=$2
3416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417printf %s "checking for $ac_word... " >&6; }
3418if test ${ac_cv_prog_ac_ct_CC+y}
3419then :
3420  printf %s "(cached) " >&6
3421else case e in #(
3422  e) if test -n "$ac_ct_CC"; then
3423  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3424else
3425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426for as_dir in $PATH
3427do
3428  IFS=$as_save_IFS
3429  case $as_dir in #(((
3430    '') as_dir=./ ;;
3431    */) ;;
3432    *) as_dir=$as_dir/ ;;
3433  esac
3434    for ac_exec_ext in '' $ac_executable_extensions; do
3435  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3436    ac_cv_prog_ac_ct_CC="gcc"
3437    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3438    break 2
3439  fi
3440done
3441  done
3442IFS=$as_save_IFS
3443
3444fi ;;
3445esac
3446fi
3447ac_ct_CC=$ac_cv_prog_ac_ct_CC
3448if test -n "$ac_ct_CC"; then
3449  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3450printf "%s\n" "$ac_ct_CC" >&6; }
3451else
3452  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453printf "%s\n" "no" >&6; }
3454fi
3455
3456  if test "x$ac_ct_CC" = x; then
3457    CC=""
3458  else
3459    case $cross_compiling:$ac_tool_warned in
3460yes:)
3461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3462printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3463ac_tool_warned=yes ;;
3464esac
3465    CC=$ac_ct_CC
3466  fi
3467else
3468  CC="$ac_cv_prog_CC"
3469fi
3470
3471if test -z "$CC"; then
3472          if test -n "$ac_tool_prefix"; then
3473    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3474set dummy ${ac_tool_prefix}cc; ac_word=$2
3475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476printf %s "checking for $ac_word... " >&6; }
3477if test ${ac_cv_prog_CC+y}
3478then :
3479  printf %s "(cached) " >&6
3480else case e in #(
3481  e) if test -n "$CC"; then
3482  ac_cv_prog_CC="$CC" # Let the user override the test.
3483else
3484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485for as_dir in $PATH
3486do
3487  IFS=$as_save_IFS
3488  case $as_dir in #(((
3489    '') as_dir=./ ;;
3490    */) ;;
3491    *) as_dir=$as_dir/ ;;
3492  esac
3493    for ac_exec_ext in '' $ac_executable_extensions; do
3494  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3495    ac_cv_prog_CC="${ac_tool_prefix}cc"
3496    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3497    break 2
3498  fi
3499done
3500  done
3501IFS=$as_save_IFS
3502
3503fi ;;
3504esac
3505fi
3506CC=$ac_cv_prog_CC
3507if test -n "$CC"; then
3508  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3509printf "%s\n" "$CC" >&6; }
3510else
3511  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512printf "%s\n" "no" >&6; }
3513fi
3514
3515
3516  fi
3517fi
3518if test -z "$CC"; then
3519  # Extract the first word of "cc", so it can be a program name with args.
3520set dummy cc; ac_word=$2
3521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522printf %s "checking for $ac_word... " >&6; }
3523if test ${ac_cv_prog_CC+y}
3524then :
3525  printf %s "(cached) " >&6
3526else case e in #(
3527  e) if test -n "$CC"; then
3528  ac_cv_prog_CC="$CC" # Let the user override the test.
3529else
3530  ac_prog_rejected=no
3531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532for as_dir in $PATH
3533do
3534  IFS=$as_save_IFS
3535  case $as_dir in #(((
3536    '') as_dir=./ ;;
3537    */) ;;
3538    *) as_dir=$as_dir/ ;;
3539  esac
3540    for ac_exec_ext in '' $ac_executable_extensions; do
3541  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3542    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3543       ac_prog_rejected=yes
3544       continue
3545     fi
3546    ac_cv_prog_CC="cc"
3547    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3548    break 2
3549  fi
3550done
3551  done
3552IFS=$as_save_IFS
3553
3554if test $ac_prog_rejected = yes; then
3555  # We found a bogon in the path, so make sure we never use it.
3556  set dummy $ac_cv_prog_CC
3557  shift
3558  if test $# != 0; then
3559    # We chose a different compiler from the bogus one.
3560    # However, it has the same basename, so the bogon will be chosen
3561    # first if we set CC to just the basename; use the full file name.
3562    shift
3563    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3564  fi
3565fi
3566fi ;;
3567esac
3568fi
3569CC=$ac_cv_prog_CC
3570if test -n "$CC"; then
3571  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3572printf "%s\n" "$CC" >&6; }
3573else
3574  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575printf "%s\n" "no" >&6; }
3576fi
3577
3578
3579fi
3580if test -z "$CC"; then
3581  if test -n "$ac_tool_prefix"; then
3582  for ac_prog in cl.exe
3583  do
3584    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3585set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587printf %s "checking for $ac_word... " >&6; }
3588if test ${ac_cv_prog_CC+y}
3589then :
3590  printf %s "(cached) " >&6
3591else case e in #(
3592  e) if test -n "$CC"; then
3593  ac_cv_prog_CC="$CC" # Let the user override the test.
3594else
3595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596for as_dir in $PATH
3597do
3598  IFS=$as_save_IFS
3599  case $as_dir in #(((
3600    '') as_dir=./ ;;
3601    */) ;;
3602    *) as_dir=$as_dir/ ;;
3603  esac
3604    for ac_exec_ext in '' $ac_executable_extensions; do
3605  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3606    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3607    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3608    break 2
3609  fi
3610done
3611  done
3612IFS=$as_save_IFS
3613
3614fi ;;
3615esac
3616fi
3617CC=$ac_cv_prog_CC
3618if test -n "$CC"; then
3619  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3620printf "%s\n" "$CC" >&6; }
3621else
3622  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623printf "%s\n" "no" >&6; }
3624fi
3625
3626
3627    test -n "$CC" && break
3628  done
3629fi
3630if test -z "$CC"; then
3631  ac_ct_CC=$CC
3632  for ac_prog in cl.exe
3633do
3634  # Extract the first word of "$ac_prog", so it can be a program name with args.
3635set dummy $ac_prog; ac_word=$2
3636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3637printf %s "checking for $ac_word... " >&6; }
3638if test ${ac_cv_prog_ac_ct_CC+y}
3639then :
3640  printf %s "(cached) " >&6
3641else case e in #(
3642  e) if test -n "$ac_ct_CC"; then
3643  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3644else
3645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646for as_dir in $PATH
3647do
3648  IFS=$as_save_IFS
3649  case $as_dir in #(((
3650    '') as_dir=./ ;;
3651    */) ;;
3652    *) as_dir=$as_dir/ ;;
3653  esac
3654    for ac_exec_ext in '' $ac_executable_extensions; do
3655  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3656    ac_cv_prog_ac_ct_CC="$ac_prog"
3657    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3658    break 2
3659  fi
3660done
3661  done
3662IFS=$as_save_IFS
3663
3664fi ;;
3665esac
3666fi
3667ac_ct_CC=$ac_cv_prog_ac_ct_CC
3668if test -n "$ac_ct_CC"; then
3669  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3670printf "%s\n" "$ac_ct_CC" >&6; }
3671else
3672  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673printf "%s\n" "no" >&6; }
3674fi
3675
3676
3677  test -n "$ac_ct_CC" && break
3678done
3679
3680  if test "x$ac_ct_CC" = x; then
3681    CC=""
3682  else
3683    case $cross_compiling:$ac_tool_warned in
3684yes:)
3685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3686printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3687ac_tool_warned=yes ;;
3688esac
3689    CC=$ac_ct_CC
3690  fi
3691fi
3692
3693fi
3694if test -z "$CC"; then
3695  if test -n "$ac_tool_prefix"; then
3696  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3697set dummy ${ac_tool_prefix}clang; ac_word=$2
3698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3699printf %s "checking for $ac_word... " >&6; }
3700if test ${ac_cv_prog_CC+y}
3701then :
3702  printf %s "(cached) " >&6
3703else case e in #(
3704  e) if test -n "$CC"; then
3705  ac_cv_prog_CC="$CC" # Let the user override the test.
3706else
3707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708for as_dir in $PATH
3709do
3710  IFS=$as_save_IFS
3711  case $as_dir in #(((
3712    '') as_dir=./ ;;
3713    */) ;;
3714    *) as_dir=$as_dir/ ;;
3715  esac
3716    for ac_exec_ext in '' $ac_executable_extensions; do
3717  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3718    ac_cv_prog_CC="${ac_tool_prefix}clang"
3719    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3720    break 2
3721  fi
3722done
3723  done
3724IFS=$as_save_IFS
3725
3726fi ;;
3727esac
3728fi
3729CC=$ac_cv_prog_CC
3730if test -n "$CC"; then
3731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3732printf "%s\n" "$CC" >&6; }
3733else
3734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3735printf "%s\n" "no" >&6; }
3736fi
3737
3738
3739fi
3740if test -z "$ac_cv_prog_CC"; then
3741  ac_ct_CC=$CC
3742  # Extract the first word of "clang", so it can be a program name with args.
3743set dummy clang; ac_word=$2
3744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745printf %s "checking for $ac_word... " >&6; }
3746if test ${ac_cv_prog_ac_ct_CC+y}
3747then :
3748  printf %s "(cached) " >&6
3749else case e in #(
3750  e) if test -n "$ac_ct_CC"; then
3751  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3752else
3753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754for as_dir in $PATH
3755do
3756  IFS=$as_save_IFS
3757  case $as_dir in #(((
3758    '') as_dir=./ ;;
3759    */) ;;
3760    *) as_dir=$as_dir/ ;;
3761  esac
3762    for ac_exec_ext in '' $ac_executable_extensions; do
3763  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3764    ac_cv_prog_ac_ct_CC="clang"
3765    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3766    break 2
3767  fi
3768done
3769  done
3770IFS=$as_save_IFS
3771
3772fi ;;
3773esac
3774fi
3775ac_ct_CC=$ac_cv_prog_ac_ct_CC
3776if test -n "$ac_ct_CC"; then
3777  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3778printf "%s\n" "$ac_ct_CC" >&6; }
3779else
3780  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3781printf "%s\n" "no" >&6; }
3782fi
3783
3784  if test "x$ac_ct_CC" = x; then
3785    CC=""
3786  else
3787    case $cross_compiling:$ac_tool_warned in
3788yes:)
3789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3790printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3791ac_tool_warned=yes ;;
3792esac
3793    CC=$ac_ct_CC
3794  fi
3795else
3796  CC="$ac_cv_prog_CC"
3797fi
3798
3799fi
3800
3801
3802test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3803printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3804as_fn_error $? "no acceptable C compiler found in \$PATH
3805See 'config.log' for more details" "$LINENO" 5; }
3806
3807# Provide some information about the compiler.
3808printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3809set X $ac_compile
3810ac_compiler=$2
3811for ac_option in --version -v -V -qversion -version; do
3812  { { ac_try="$ac_compiler $ac_option >&5"
3813case "(($ac_try" in
3814  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815  *) ac_try_echo=$ac_try;;
3816esac
3817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3818printf "%s\n" "$ac_try_echo"; } >&5
3819  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3820  ac_status=$?
3821  if test -s conftest.err; then
3822    sed '10a\
3823... rest of stderr output deleted ...
3824         10q' conftest.err >conftest.er1
3825    cat conftest.er1 >&5
3826  fi
3827  rm -f conftest.er1 conftest.err
3828  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3829  test $ac_status = 0; }
3830done
3831
3832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833/* end confdefs.h.  */
3834
3835int
3836main (void)
3837{
3838
3839  ;
3840  return 0;
3841}
3842_ACEOF
3843ac_clean_files_save=$ac_clean_files
3844ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3845# Try to create an executable without -o first, disregard a.out.
3846# It will help us diagnose broken compilers, and finding out an intuition
3847# of exeext.
3848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3849printf %s "checking whether the C compiler works... " >&6; }
3850ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3851
3852# The possible output files:
3853ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3854
3855ac_rmfiles=
3856for ac_file in $ac_files
3857do
3858  case $ac_file in
3859    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3860    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3861  esac
3862done
3863rm -f $ac_rmfiles
3864
3865if { { ac_try="$ac_link_default"
3866case "(($ac_try" in
3867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868  *) ac_try_echo=$ac_try;;
3869esac
3870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3871printf "%s\n" "$ac_try_echo"; } >&5
3872  (eval "$ac_link_default") 2>&5
3873  ac_status=$?
3874  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3875  test $ac_status = 0; }
3876then :
3877  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3878# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3879# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3880# so that the user can short-circuit this test for compilers unknown to
3881# Autoconf.
3882for ac_file in $ac_files ''
3883do
3884  test -f "$ac_file" || continue
3885  case $ac_file in
3886    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3887	;;
3888    [ab].out )
3889	# We found the default executable, but exeext='' is most
3890	# certainly right.
3891	break;;
3892    *.* )
3893	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3894	then :; else
3895	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3896	fi
3897	# We set ac_cv_exeext here because the later test for it is not
3898	# safe: cross compilers may not add the suffix if given an '-o'
3899	# argument, so we may need to know it at that point already.
3900	# Even if this section looks crufty: it has the advantage of
3901	# actually working.
3902	break;;
3903    * )
3904	break;;
3905  esac
3906done
3907test "$ac_cv_exeext" = no && ac_cv_exeext=
3908
3909else case e in #(
3910  e) ac_file='' ;;
3911esac
3912fi
3913if test -z "$ac_file"
3914then :
3915  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916printf "%s\n" "no" >&6; }
3917printf "%s\n" "$as_me: failed program was:" >&5
3918sed 's/^/| /' conftest.$ac_ext >&5
3919
3920{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3921printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3922as_fn_error 77 "C compiler cannot create executables
3923See 'config.log' for more details" "$LINENO" 5; }
3924else case e in #(
3925  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3926printf "%s\n" "yes" >&6; } ;;
3927esac
3928fi
3929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3930printf %s "checking for C compiler default output file name... " >&6; }
3931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3932printf "%s\n" "$ac_file" >&6; }
3933ac_exeext=$ac_cv_exeext
3934
3935rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3936ac_clean_files=$ac_clean_files_save
3937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3938printf %s "checking for suffix of executables... " >&6; }
3939if { { ac_try="$ac_link"
3940case "(($ac_try" in
3941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942  *) ac_try_echo=$ac_try;;
3943esac
3944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3945printf "%s\n" "$ac_try_echo"; } >&5
3946  (eval "$ac_link") 2>&5
3947  ac_status=$?
3948  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3949  test $ac_status = 0; }
3950then :
3951  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3952# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3953# work properly (i.e., refer to 'conftest.exe'), while it won't with
3954# 'rm'.
3955for ac_file in conftest.exe conftest conftest.*; do
3956  test -f "$ac_file" || continue
3957  case $ac_file in
3958    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3959    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3960	  break;;
3961    * ) break;;
3962  esac
3963done
3964else case e in #(
3965  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3966printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3967as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3968See 'config.log' for more details" "$LINENO" 5; } ;;
3969esac
3970fi
3971rm -f conftest conftest$ac_cv_exeext
3972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3973printf "%s\n" "$ac_cv_exeext" >&6; }
3974
3975rm -f conftest.$ac_ext
3976EXEEXT=$ac_cv_exeext
3977ac_exeext=$EXEEXT
3978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3979/* end confdefs.h.  */
3980#include <stdio.h>
3981int
3982main (void)
3983{
3984FILE *f = fopen ("conftest.out", "w");
3985 if (!f)
3986  return 1;
3987 return ferror (f) || fclose (f) != 0;
3988
3989  ;
3990  return 0;
3991}
3992_ACEOF
3993ac_clean_files="$ac_clean_files conftest.out"
3994# Check that the compiler produces executables we can run.  If not, either
3995# the compiler is broken, or we cross compile.
3996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3997printf %s "checking whether we are cross compiling... " >&6; }
3998if test "$cross_compiling" != yes; then
3999  { { ac_try="$ac_link"
4000case "(($ac_try" in
4001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002  *) ac_try_echo=$ac_try;;
4003esac
4004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005printf "%s\n" "$ac_try_echo"; } >&5
4006  (eval "$ac_link") 2>&5
4007  ac_status=$?
4008  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009  test $ac_status = 0; }
4010  if { ac_try='./conftest$ac_cv_exeext'
4011  { { case "(($ac_try" in
4012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013  *) ac_try_echo=$ac_try;;
4014esac
4015eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4016printf "%s\n" "$ac_try_echo"; } >&5
4017  (eval "$ac_try") 2>&5
4018  ac_status=$?
4019  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020  test $ac_status = 0; }; }; then
4021    cross_compiling=no
4022  else
4023    if test "$cross_compiling" = maybe; then
4024	cross_compiling=yes
4025    else
4026	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4027printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4028as_fn_error 77 "cannot run C compiled programs.
4029If you meant to cross compile, use '--host'.
4030See 'config.log' for more details" "$LINENO" 5; }
4031    fi
4032  fi
4033fi
4034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4035printf "%s\n" "$cross_compiling" >&6; }
4036
4037rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4038  conftest.o conftest.obj conftest.out
4039ac_clean_files=$ac_clean_files_save
4040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4041printf %s "checking for suffix of object files... " >&6; }
4042if test ${ac_cv_objext+y}
4043then :
4044  printf %s "(cached) " >&6
4045else case e in #(
4046  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047/* end confdefs.h.  */
4048
4049int
4050main (void)
4051{
4052
4053  ;
4054  return 0;
4055}
4056_ACEOF
4057rm -f conftest.o conftest.obj
4058if { { ac_try="$ac_compile"
4059case "(($ac_try" in
4060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061  *) ac_try_echo=$ac_try;;
4062esac
4063eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4064printf "%s\n" "$ac_try_echo"; } >&5
4065  (eval "$ac_compile") 2>&5
4066  ac_status=$?
4067  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4068  test $ac_status = 0; }
4069then :
4070  for ac_file in conftest.o conftest.obj conftest.*; do
4071  test -f "$ac_file" || continue;
4072  case $ac_file in
4073    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4074    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4075       break;;
4076  esac
4077done
4078else case e in #(
4079  e) printf "%s\n" "$as_me: failed program was:" >&5
4080sed 's/^/| /' conftest.$ac_ext >&5
4081
4082{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4083printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4084as_fn_error $? "cannot compute suffix of object files: cannot compile
4085See 'config.log' for more details" "$LINENO" 5; } ;;
4086esac
4087fi
4088rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4089esac
4090fi
4091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4092printf "%s\n" "$ac_cv_objext" >&6; }
4093OBJEXT=$ac_cv_objext
4094ac_objext=$OBJEXT
4095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4096printf %s "checking whether the compiler supports GNU C... " >&6; }
4097if test ${ac_cv_c_compiler_gnu+y}
4098then :
4099  printf %s "(cached) " >&6
4100else case e in #(
4101  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102/* end confdefs.h.  */
4103
4104int
4105main (void)
4106{
4107#ifndef __GNUC__
4108       choke me
4109#endif
4110
4111  ;
4112  return 0;
4113}
4114_ACEOF
4115if ac_fn_c_try_compile "$LINENO"
4116then :
4117  ac_compiler_gnu=yes
4118else case e in #(
4119  e) ac_compiler_gnu=no ;;
4120esac
4121fi
4122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4123ac_cv_c_compiler_gnu=$ac_compiler_gnu
4124 ;;
4125esac
4126fi
4127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4128printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4129ac_compiler_gnu=$ac_cv_c_compiler_gnu
4130
4131if test $ac_compiler_gnu = yes; then
4132  GCC=yes
4133else
4134  GCC=
4135fi
4136ac_test_CFLAGS=${CFLAGS+y}
4137ac_save_CFLAGS=$CFLAGS
4138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4139printf %s "checking whether $CC accepts -g... " >&6; }
4140if test ${ac_cv_prog_cc_g+y}
4141then :
4142  printf %s "(cached) " >&6
4143else case e in #(
4144  e) ac_save_c_werror_flag=$ac_c_werror_flag
4145   ac_c_werror_flag=yes
4146   ac_cv_prog_cc_g=no
4147   CFLAGS="-g"
4148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4149/* end confdefs.h.  */
4150
4151int
4152main (void)
4153{
4154
4155  ;
4156  return 0;
4157}
4158_ACEOF
4159if ac_fn_c_try_compile "$LINENO"
4160then :
4161  ac_cv_prog_cc_g=yes
4162else case e in #(
4163  e) CFLAGS=""
4164      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165/* end confdefs.h.  */
4166
4167int
4168main (void)
4169{
4170
4171  ;
4172  return 0;
4173}
4174_ACEOF
4175if ac_fn_c_try_compile "$LINENO"
4176then :
4177
4178else case e in #(
4179  e) ac_c_werror_flag=$ac_save_c_werror_flag
4180	 CFLAGS="-g"
4181	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182/* end confdefs.h.  */
4183
4184int
4185main (void)
4186{
4187
4188  ;
4189  return 0;
4190}
4191_ACEOF
4192if ac_fn_c_try_compile "$LINENO"
4193then :
4194  ac_cv_prog_cc_g=yes
4195fi
4196rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4197esac
4198fi
4199rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4200esac
4201fi
4202rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4203   ac_c_werror_flag=$ac_save_c_werror_flag ;;
4204esac
4205fi
4206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4207printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4208if test $ac_test_CFLAGS; then
4209  CFLAGS=$ac_save_CFLAGS
4210elif test $ac_cv_prog_cc_g = yes; then
4211  if test "$GCC" = yes; then
4212    CFLAGS="-g -O2"
4213  else
4214    CFLAGS="-g"
4215  fi
4216else
4217  if test "$GCC" = yes; then
4218    CFLAGS="-O2"
4219  else
4220    CFLAGS=
4221  fi
4222fi
4223ac_prog_cc_stdc=no
4224if test x$ac_prog_cc_stdc = xno
4225then :
4226  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4227printf %s "checking for $CC option to enable C11 features... " >&6; }
4228if test ${ac_cv_prog_cc_c11+y}
4229then :
4230  printf %s "(cached) " >&6
4231else case e in #(
4232  e) ac_cv_prog_cc_c11=no
4233ac_save_CC=$CC
4234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235/* end confdefs.h.  */
4236$ac_c_conftest_c11_program
4237_ACEOF
4238for ac_arg in '' -std=gnu11
4239do
4240  CC="$ac_save_CC $ac_arg"
4241  if ac_fn_c_try_compile "$LINENO"
4242then :
4243  ac_cv_prog_cc_c11=$ac_arg
4244fi
4245rm -f core conftest.err conftest.$ac_objext conftest.beam
4246  test "x$ac_cv_prog_cc_c11" != "xno" && break
4247done
4248rm -f conftest.$ac_ext
4249CC=$ac_save_CC ;;
4250esac
4251fi
4252
4253if test "x$ac_cv_prog_cc_c11" = xno
4254then :
4255  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4256printf "%s\n" "unsupported" >&6; }
4257else case e in #(
4258  e) if test "x$ac_cv_prog_cc_c11" = x
4259then :
4260  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4261printf "%s\n" "none needed" >&6; }
4262else case e in #(
4263  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4264printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4265     CC="$CC $ac_cv_prog_cc_c11" ;;
4266esac
4267fi
4268  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4269  ac_prog_cc_stdc=c11 ;;
4270esac
4271fi
4272fi
4273if test x$ac_prog_cc_stdc = xno
4274then :
4275  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4276printf %s "checking for $CC option to enable C99 features... " >&6; }
4277if test ${ac_cv_prog_cc_c99+y}
4278then :
4279  printf %s "(cached) " >&6
4280else case e in #(
4281  e) ac_cv_prog_cc_c99=no
4282ac_save_CC=$CC
4283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284/* end confdefs.h.  */
4285$ac_c_conftest_c99_program
4286_ACEOF
4287for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4288do
4289  CC="$ac_save_CC $ac_arg"
4290  if ac_fn_c_try_compile "$LINENO"
4291then :
4292  ac_cv_prog_cc_c99=$ac_arg
4293fi
4294rm -f core conftest.err conftest.$ac_objext conftest.beam
4295  test "x$ac_cv_prog_cc_c99" != "xno" && break
4296done
4297rm -f conftest.$ac_ext
4298CC=$ac_save_CC ;;
4299esac
4300fi
4301
4302if test "x$ac_cv_prog_cc_c99" = xno
4303then :
4304  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4305printf "%s\n" "unsupported" >&6; }
4306else case e in #(
4307  e) if test "x$ac_cv_prog_cc_c99" = x
4308then :
4309  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4310printf "%s\n" "none needed" >&6; }
4311else case e in #(
4312  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4313printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4314     CC="$CC $ac_cv_prog_cc_c99" ;;
4315esac
4316fi
4317  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4318  ac_prog_cc_stdc=c99 ;;
4319esac
4320fi
4321fi
4322if test x$ac_prog_cc_stdc = xno
4323then :
4324  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4325printf %s "checking for $CC option to enable C89 features... " >&6; }
4326if test ${ac_cv_prog_cc_c89+y}
4327then :
4328  printf %s "(cached) " >&6
4329else case e in #(
4330  e) ac_cv_prog_cc_c89=no
4331ac_save_CC=$CC
4332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333/* end confdefs.h.  */
4334$ac_c_conftest_c89_program
4335_ACEOF
4336for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4337do
4338  CC="$ac_save_CC $ac_arg"
4339  if ac_fn_c_try_compile "$LINENO"
4340then :
4341  ac_cv_prog_cc_c89=$ac_arg
4342fi
4343rm -f core conftest.err conftest.$ac_objext conftest.beam
4344  test "x$ac_cv_prog_cc_c89" != "xno" && break
4345done
4346rm -f conftest.$ac_ext
4347CC=$ac_save_CC ;;
4348esac
4349fi
4350
4351if test "x$ac_cv_prog_cc_c89" = xno
4352then :
4353  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4354printf "%s\n" "unsupported" >&6; }
4355else case e in #(
4356  e) if test "x$ac_cv_prog_cc_c89" = x
4357then :
4358  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4359printf "%s\n" "none needed" >&6; }
4360else case e in #(
4361  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4362printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4363     CC="$CC $ac_cv_prog_cc_c89" ;;
4364esac
4365fi
4366  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4367  ac_prog_cc_stdc=c89 ;;
4368esac
4369fi
4370fi
4371
4372ac_ext=c
4373ac_cpp='$CPP $CPPFLAGS'
4374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4376ac_compiler_gnu=$ac_cv_c_compiler_gnu
4377
4378
4379  ac_ext=c
4380ac_cpp='$CPP $CPPFLAGS'
4381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4383ac_compiler_gnu=$ac_cv_c_compiler_gnu
4384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4385printf %s "checking whether $CC understands -c and -o together... " >&6; }
4386if test ${am_cv_prog_cc_c_o+y}
4387then :
4388  printf %s "(cached) " >&6
4389else case e in #(
4390  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391/* end confdefs.h.  */
4392
4393int
4394main (void)
4395{
4396
4397  ;
4398  return 0;
4399}
4400_ACEOF
4401  # Make sure it works both with $CC and with simple cc.
4402  # Following AC_PROG_CC_C_O, we do the test twice because some
4403  # compilers refuse to overwrite an existing .o file with -o,
4404  # though they will create one.
4405  am_cv_prog_cc_c_o=yes
4406  for am_i in 1 2; do
4407    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4408   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4409   ac_status=$?
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); } \
4412         && test -f conftest2.$ac_objext; then
4413      : OK
4414    else
4415      am_cv_prog_cc_c_o=no
4416      break
4417    fi
4418  done
4419  rm -f core conftest*
4420  unset am_i ;;
4421esac
4422fi
4423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4424printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4425if test "$am_cv_prog_cc_c_o" != yes; then
4426   # Losing compiler, so override with the script.
4427   # FIXME: It is wrong to rewrite CC.
4428   # But if we don't then we get into trouble of one sort or another.
4429   # A longer-term fix would be to have automake use am__CC in this case,
4430   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4431   CC="$am_aux_dir/compile $CC"
4432fi
4433ac_ext=c
4434ac_cpp='$CPP $CPPFLAGS'
4435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4437ac_compiler_gnu=$ac_cv_c_compiler_gnu
4438
4439
4440depcc="$CC"   am_compiler_list=
4441
4442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4443printf %s "checking dependency style of $depcc... " >&6; }
4444if test ${am_cv_CC_dependencies_compiler_type+y}
4445then :
4446  printf %s "(cached) " >&6
4447else case e in #(
4448  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4449  # We make a subdir and do the tests there.  Otherwise we can end up
4450  # making bogus files that we don't know about and never remove.  For
4451  # instance it was reported that on HP-UX the gcc test will end up
4452  # making a dummy file named 'D' -- because '-MD' means "put the output
4453  # in D".
4454  rm -rf conftest.dir
4455  mkdir conftest.dir
4456  # Copy depcomp to subdir because otherwise we won't find it if we're
4457  # using a relative directory.
4458  cp "$am_depcomp" conftest.dir
4459  cd conftest.dir
4460  # We will build objects and dependencies in a subdirectory because
4461  # it helps to detect inapplicable dependency modes.  For instance
4462  # both Tru64's cc and ICC support -MD to output dependencies as a
4463  # side effect of compilation, but ICC will put the dependencies in
4464  # the current directory while Tru64 will put them in the object
4465  # directory.
4466  mkdir sub
4467
4468  am_cv_CC_dependencies_compiler_type=none
4469  if test "$am_compiler_list" = ""; then
4470     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4471  fi
4472  am__universal=false
4473  case " $depcc " in #(
4474     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4475     esac
4476
4477  for depmode in $am_compiler_list; do
4478    # Setup a source with many dependencies, because some compilers
4479    # like to wrap large dependency lists on column 80 (with \), and
4480    # we should not choose a depcomp mode which is confused by this.
4481    #
4482    # We need to recreate these files for each test, as the compiler may
4483    # overwrite some of them when testing with obscure command lines.
4484    # This happens at least with the AIX C compiler.
4485    : > sub/conftest.c
4486    for i in 1 2 3 4 5 6; do
4487      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4488      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4489      # Solaris 10 /bin/sh.
4490      echo '/* dummy */' > sub/conftst$i.h
4491    done
4492    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4493
4494    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4495    # mode.  It turns out that the SunPro C++ compiler does not properly
4496    # handle '-M -o', and we need to detect this.  Also, some Intel
4497    # versions had trouble with output in subdirs.
4498    am__obj=sub/conftest.${OBJEXT-o}
4499    am__minus_obj="-o $am__obj"
4500    case $depmode in
4501    gcc)
4502      # This depmode causes a compiler race in universal mode.
4503      test "$am__universal" = false || continue
4504      ;;
4505    nosideeffect)
4506      # After this tag, mechanisms are not by side-effect, so they'll
4507      # only be used when explicitly requested.
4508      if test "x$enable_dependency_tracking" = xyes; then
4509	continue
4510      else
4511	break
4512      fi
4513      ;;
4514    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4515      # This compiler won't grok '-c -o', but also, the minuso test has
4516      # not run yet.  These depmodes are late enough in the game, and
4517      # so weak that their functioning should not be impacted.
4518      am__obj=conftest.${OBJEXT-o}
4519      am__minus_obj=
4520      ;;
4521    none) break ;;
4522    esac
4523    if depmode=$depmode \
4524       source=sub/conftest.c object=$am__obj \
4525       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4526       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4527         >/dev/null 2>conftest.err &&
4528       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4529       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4530       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4531       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4532      # icc doesn't choke on unknown options, it will just issue warnings
4533      # or remarks (even with -Werror).  So we grep stderr for any message
4534      # that says an option was ignored or not supported.
4535      # When given -MP, icc 7.0 and 7.1 complain thusly:
4536      #   icc: Command line warning: ignoring option '-M'; no argument required
4537      # The diagnosis changed in icc 8.0:
4538      #   icc: Command line remark: option '-MP' not supported
4539      if (grep 'ignoring option' conftest.err ||
4540          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4541        am_cv_CC_dependencies_compiler_type=$depmode
4542        break
4543      fi
4544    fi
4545  done
4546
4547  cd ..
4548  rm -rf conftest.dir
4549else
4550  am_cv_CC_dependencies_compiler_type=none
4551fi
4552 ;;
4553esac
4554fi
4555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4556printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4557CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4558
4559 if
4560  test "x$enable_dependency_tracking" != xno \
4561  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4562  am__fastdepCC_TRUE=
4563  am__fastdepCC_FALSE='#'
4564else
4565  am__fastdepCC_TRUE='#'
4566  am__fastdepCC_FALSE=
4567fi
4568
4569
4570
4571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4572printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4573if test ${ac_cv_c_undeclared_builtin_options+y}
4574then :
4575  printf %s "(cached) " >&6
4576else case e in #(
4577  e) ac_save_CFLAGS=$CFLAGS
4578   ac_cv_c_undeclared_builtin_options='cannot detect'
4579   for ac_arg in '' -fno-builtin; do
4580     CFLAGS="$ac_save_CFLAGS $ac_arg"
4581     # This test program should *not* compile successfully.
4582     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583/* end confdefs.h.  */
4584
4585int
4586main (void)
4587{
4588(void) strchr;
4589  ;
4590  return 0;
4591}
4592_ACEOF
4593if ac_fn_c_try_compile "$LINENO"
4594then :
4595
4596else case e in #(
4597  e) # This test program should compile successfully.
4598        # No library function is consistently available on
4599        # freestanding implementations, so test against a dummy
4600        # declaration.  Include always-available headers on the
4601        # off chance that they somehow elicit warnings.
4602        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603/* end confdefs.h.  */
4604#include <float.h>
4605#include <limits.h>
4606#include <stdarg.h>
4607#include <stddef.h>
4608extern void ac_decl (int, char *);
4609
4610int
4611main (void)
4612{
4613(void) ac_decl (0, (char *) 0);
4614  (void) ac_decl;
4615
4616  ;
4617  return 0;
4618}
4619_ACEOF
4620if ac_fn_c_try_compile "$LINENO"
4621then :
4622  if test x"$ac_arg" = x
4623then :
4624  ac_cv_c_undeclared_builtin_options='none needed'
4625else case e in #(
4626  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4627esac
4628fi
4629          break
4630fi
4631rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4632esac
4633fi
4634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4635    done
4636    CFLAGS=$ac_save_CFLAGS
4637   ;;
4638esac
4639fi
4640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4641printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4642  case $ac_cv_c_undeclared_builtin_options in #(
4643  'cannot detect') :
4644    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4645printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4646as_fn_error $? "cannot make $CC report undeclared builtins
4647See 'config.log' for more details" "$LINENO" 5; } ;; #(
4648  'none needed') :
4649    ac_c_undeclared_builtin_options='' ;; #(
4650  *) :
4651    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4652esac
4653
4654ac_header= ac_cache=
4655for ac_item in $ac_header_c_list
4656do
4657  if test $ac_cache; then
4658    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4659    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4660      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4661    fi
4662    ac_header= ac_cache=
4663  elif test $ac_header; then
4664    ac_cache=$ac_item
4665  else
4666    ac_header=$ac_item
4667  fi
4668done
4669
4670
4671
4672
4673
4674
4675
4676
4677if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4678then :
4679
4680printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4681
4682fi
4683
4684
4685
4686
4687ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4688if test "x$ac_cv_have_decl___clang__" = xyes
4689then :
4690  CLANGCC="yes"
4691else case e in #(
4692  e) CLANGCC="no" ;;
4693esac
4694fi
4695ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4696if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4697then :
4698  INTELCC="yes"
4699else case e in #(
4700  e) INTELCC="no" ;;
4701esac
4702fi
4703ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4704if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4705then :
4706  SUNCC="yes"
4707else case e in #(
4708  e) SUNCC="no" ;;
4709esac
4710fi
4711
4712
4713
4714
4715
4716
4717
4718
4719if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4720	if test -n "$ac_tool_prefix"; then
4721  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4722set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724printf %s "checking for $ac_word... " >&6; }
4725if test ${ac_cv_path_PKG_CONFIG+y}
4726then :
4727  printf %s "(cached) " >&6
4728else case e in #(
4729  e) case $PKG_CONFIG in
4730  [\\/]* | ?:[\\/]*)
4731  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4732  ;;
4733  *)
4734  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735for as_dir in $PATH
4736do
4737  IFS=$as_save_IFS
4738  case $as_dir in #(((
4739    '') as_dir=./ ;;
4740    */) ;;
4741    *) as_dir=$as_dir/ ;;
4742  esac
4743    for ac_exec_ext in '' $ac_executable_extensions; do
4744  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4745    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4746    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4747    break 2
4748  fi
4749done
4750  done
4751IFS=$as_save_IFS
4752
4753  ;;
4754esac ;;
4755esac
4756fi
4757PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4758if test -n "$PKG_CONFIG"; then
4759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4760printf "%s\n" "$PKG_CONFIG" >&6; }
4761else
4762  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763printf "%s\n" "no" >&6; }
4764fi
4765
4766
4767fi
4768if test -z "$ac_cv_path_PKG_CONFIG"; then
4769  ac_pt_PKG_CONFIG=$PKG_CONFIG
4770  # Extract the first word of "pkg-config", so it can be a program name with args.
4771set dummy pkg-config; ac_word=$2
4772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773printf %s "checking for $ac_word... " >&6; }
4774if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4775then :
4776  printf %s "(cached) " >&6
4777else case e in #(
4778  e) case $ac_pt_PKG_CONFIG in
4779  [\\/]* | ?:[\\/]*)
4780  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4781  ;;
4782  *)
4783  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784for as_dir in $PATH
4785do
4786  IFS=$as_save_IFS
4787  case $as_dir in #(((
4788    '') as_dir=./ ;;
4789    */) ;;
4790    *) as_dir=$as_dir/ ;;
4791  esac
4792    for ac_exec_ext in '' $ac_executable_extensions; do
4793  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4794    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4795    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4796    break 2
4797  fi
4798done
4799  done
4800IFS=$as_save_IFS
4801
4802  ;;
4803esac ;;
4804esac
4805fi
4806ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4807if test -n "$ac_pt_PKG_CONFIG"; then
4808  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4809printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4810else
4811  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812printf "%s\n" "no" >&6; }
4813fi
4814
4815  if test "x$ac_pt_PKG_CONFIG" = x; then
4816    PKG_CONFIG=""
4817  else
4818    case $cross_compiling:$ac_tool_warned in
4819yes:)
4820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4821printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4822ac_tool_warned=yes ;;
4823esac
4824    PKG_CONFIG=$ac_pt_PKG_CONFIG
4825  fi
4826else
4827  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4828fi
4829
4830fi
4831if test -n "$PKG_CONFIG"; then
4832	_pkg_min_version=0.9.0
4833	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4834printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4835	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4836		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4837printf "%s\n" "yes" >&6; }
4838	else
4839		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840printf "%s\n" "no" >&6; }
4841		PKG_CONFIG=""
4842	fi
4843fi
4844
4845
4846  # Make sure we can run config.sub.
4847$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4848  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4849
4850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4851printf %s "checking build system type... " >&6; }
4852if test ${ac_cv_build+y}
4853then :
4854  printf %s "(cached) " >&6
4855else case e in #(
4856  e) ac_build_alias=$build_alias
4857test "x$ac_build_alias" = x &&
4858  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4859test "x$ac_build_alias" = x &&
4860  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4861ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4862  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4863 ;;
4864esac
4865fi
4866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4867printf "%s\n" "$ac_cv_build" >&6; }
4868case $ac_cv_build in
4869*-*-*) ;;
4870*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4871esac
4872build=$ac_cv_build
4873ac_save_IFS=$IFS; IFS='-'
4874set x $ac_cv_build
4875shift
4876build_cpu=$1
4877build_vendor=$2
4878shift; shift
4879# Remember, the first character of IFS is used to create $*,
4880# except with old shells:
4881build_os=$*
4882IFS=$ac_save_IFS
4883case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4884
4885
4886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4887printf %s "checking host system type... " >&6; }
4888if test ${ac_cv_host+y}
4889then :
4890  printf %s "(cached) " >&6
4891else case e in #(
4892  e) if test "x$host_alias" = x; then
4893  ac_cv_host=$ac_cv_build
4894else
4895  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4896    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4897fi
4898 ;;
4899esac
4900fi
4901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4902printf "%s\n" "$ac_cv_host" >&6; }
4903case $ac_cv_host in
4904*-*-*) ;;
4905*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4906esac
4907host=$ac_cv_host
4908ac_save_IFS=$IFS; IFS='-'
4909set x $ac_cv_host
4910shift
4911host_cpu=$1
4912host_vendor=$2
4913shift; shift
4914# Remember, the first character of IFS is used to create $*,
4915# except with old shells:
4916host_os=$*
4917IFS=$ac_save_IFS
4918case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4919
4920
4921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4922printf %s "checking for a sed that does not truncate output... " >&6; }
4923if test ${ac_cv_path_SED+y}
4924then :
4925  printf %s "(cached) " >&6
4926else case e in #(
4927  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4928     for ac_i in 1 2 3 4 5 6 7; do
4929       ac_script="$ac_script$as_nl$ac_script"
4930     done
4931     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4932     { ac_script=; unset ac_script;}
4933     if test -z "$SED"; then
4934  ac_path_SED_found=false
4935  # Loop through the user's path and test for each of PROGNAME-LIST
4936  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937for as_dir in $PATH
4938do
4939  IFS=$as_save_IFS
4940  case $as_dir in #(((
4941    '') as_dir=./ ;;
4942    */) ;;
4943    *) as_dir=$as_dir/ ;;
4944  esac
4945    for ac_prog in sed gsed
4946   do
4947    for ac_exec_ext in '' $ac_executable_extensions; do
4948      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4949      as_fn_executable_p "$ac_path_SED" || continue
4950# Check for GNU ac_path_SED and select it if it is found.
4951  # Check for GNU $ac_path_SED
4952case `"$ac_path_SED" --version 2>&1` in #(
4953*GNU*)
4954  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4955#(
4956*)
4957  ac_count=0
4958  printf %s 0123456789 >"conftest.in"
4959  while :
4960  do
4961    cat "conftest.in" "conftest.in" >"conftest.tmp"
4962    mv "conftest.tmp" "conftest.in"
4963    cp "conftest.in" "conftest.nl"
4964    printf "%s\n" '' >> "conftest.nl"
4965    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4966    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4967    as_fn_arith $ac_count + 1 && ac_count=$as_val
4968    if test $ac_count -gt ${ac_path_SED_max-0}; then
4969      # Best one so far, save it but keep looking for a better one
4970      ac_cv_path_SED="$ac_path_SED"
4971      ac_path_SED_max=$ac_count
4972    fi
4973    # 10*(2^10) chars as input seems more than enough
4974    test $ac_count -gt 10 && break
4975  done
4976  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4977esac
4978
4979      $ac_path_SED_found && break 3
4980    done
4981  done
4982  done
4983IFS=$as_save_IFS
4984  if test -z "$ac_cv_path_SED"; then
4985    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4986  fi
4987else
4988  ac_cv_path_SED=$SED
4989fi
4990 ;;
4991esac
4992fi
4993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4994printf "%s\n" "$ac_cv_path_SED" >&6; }
4995 SED="$ac_cv_path_SED"
4996  rm -f conftest.sed
4997
4998
4999
5000
5001
5002
5003# Check whether --enable-selective-werror was given.
5004if test ${enable_selective_werror+y}
5005then :
5006  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5007else case e in #(
5008  e) SELECTIVE_WERROR=yes ;;
5009esac
5010fi
5011
5012
5013
5014
5015
5016# -v is too short to test reliably with XORG_TESTSET_CFLAG
5017if test "x$SUNCC" = "xyes"; then
5018    BASE_CFLAGS="-v"
5019else
5020    BASE_CFLAGS=""
5021fi
5022
5023# This chunk of warnings were those that existed in the legacy CWARNFLAGS
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037xorg_testset_save_CFLAGS="$CFLAGS"
5038
5039if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5040	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5041	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5042printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5043if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5044then :
5045  printf %s "(cached) " >&6
5046else case e in #(
5047  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048/* end confdefs.h.  */
5049int i;
5050_ACEOF
5051if ac_fn_c_try_compile "$LINENO"
5052then :
5053  xorg_cv_cc_flag_unknown_warning_option=yes
5054else case e in #(
5055  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5056esac
5057fi
5058rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5059esac
5060fi
5061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5062printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5063	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5064	CFLAGS="$xorg_testset_save_CFLAGS"
5065fi
5066
5067if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5068	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5069		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5070	fi
5071	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5072	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5073printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5074if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5075then :
5076  printf %s "(cached) " >&6
5077else case e in #(
5078  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5079/* end confdefs.h.  */
5080int i;
5081_ACEOF
5082if ac_fn_c_try_compile "$LINENO"
5083then :
5084  xorg_cv_cc_flag_unused_command_line_argument=yes
5085else case e in #(
5086  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5087esac
5088fi
5089rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5090esac
5091fi
5092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5093printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5094	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5095	CFLAGS="$xorg_testset_save_CFLAGS"
5096fi
5097
5098found="no"
5099
5100	if test $found = "no" ; then
5101		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5102			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5103		fi
5104
5105		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5106			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5107		fi
5108
5109		CFLAGS="$CFLAGS -Wall"
5110
5111		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5112printf %s "checking if $CC supports -Wall... " >&6; }
5113		cacheid=xorg_cv_cc_flag__Wall
5114		if eval test \${$cacheid+y}
5115then :
5116  printf %s "(cached) " >&6
5117else case e in #(
5118  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119/* end confdefs.h.  */
5120int i;
5121int
5122main (void)
5123{
5124
5125  ;
5126  return 0;
5127}
5128_ACEOF
5129if ac_fn_c_try_link "$LINENO"
5130then :
5131  eval $cacheid=yes
5132else case e in #(
5133  e) eval $cacheid=no ;;
5134esac
5135fi
5136rm -f core conftest.err conftest.$ac_objext conftest.beam \
5137    conftest$ac_exeext conftest.$ac_ext ;;
5138esac
5139fi
5140
5141
5142		CFLAGS="$xorg_testset_save_CFLAGS"
5143
5144		eval supported=\$$cacheid
5145		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5146printf "%s\n" "$supported" >&6; }
5147		if test "$supported" = "yes" ; then
5148			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5149			found="yes"
5150		fi
5151	fi
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167xorg_testset_save_CFLAGS="$CFLAGS"
5168
5169if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5170	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5171	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5172printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5173if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5174then :
5175  printf %s "(cached) " >&6
5176else case e in #(
5177  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178/* end confdefs.h.  */
5179int i;
5180_ACEOF
5181if ac_fn_c_try_compile "$LINENO"
5182then :
5183  xorg_cv_cc_flag_unknown_warning_option=yes
5184else case e in #(
5185  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5186esac
5187fi
5188rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5189esac
5190fi
5191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5192printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5193	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5194	CFLAGS="$xorg_testset_save_CFLAGS"
5195fi
5196
5197if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5198	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5199		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5200	fi
5201	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5202	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5203printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5204if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5205then :
5206  printf %s "(cached) " >&6
5207else case e in #(
5208  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5209/* end confdefs.h.  */
5210int i;
5211_ACEOF
5212if ac_fn_c_try_compile "$LINENO"
5213then :
5214  xorg_cv_cc_flag_unused_command_line_argument=yes
5215else case e in #(
5216  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5217esac
5218fi
5219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5220esac
5221fi
5222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5223printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5224	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5225	CFLAGS="$xorg_testset_save_CFLAGS"
5226fi
5227
5228found="no"
5229
5230	if test $found = "no" ; then
5231		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5232			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5233		fi
5234
5235		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5236			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5237		fi
5238
5239		CFLAGS="$CFLAGS -Wpointer-arith"
5240
5241		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5242printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5243		cacheid=xorg_cv_cc_flag__Wpointer_arith
5244		if eval test \${$cacheid+y}
5245then :
5246  printf %s "(cached) " >&6
5247else case e in #(
5248  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249/* end confdefs.h.  */
5250int i;
5251int
5252main (void)
5253{
5254
5255  ;
5256  return 0;
5257}
5258_ACEOF
5259if ac_fn_c_try_link "$LINENO"
5260then :
5261  eval $cacheid=yes
5262else case e in #(
5263  e) eval $cacheid=no ;;
5264esac
5265fi
5266rm -f core conftest.err conftest.$ac_objext conftest.beam \
5267    conftest$ac_exeext conftest.$ac_ext ;;
5268esac
5269fi
5270
5271
5272		CFLAGS="$xorg_testset_save_CFLAGS"
5273
5274		eval supported=\$$cacheid
5275		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5276printf "%s\n" "$supported" >&6; }
5277		if test "$supported" = "yes" ; then
5278			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5279			found="yes"
5280		fi
5281	fi
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297xorg_testset_save_CFLAGS="$CFLAGS"
5298
5299if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5300	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5301	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5302printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5303if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5304then :
5305  printf %s "(cached) " >&6
5306else case e in #(
5307  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308/* end confdefs.h.  */
5309int i;
5310_ACEOF
5311if ac_fn_c_try_compile "$LINENO"
5312then :
5313  xorg_cv_cc_flag_unknown_warning_option=yes
5314else case e in #(
5315  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5316esac
5317fi
5318rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5319esac
5320fi
5321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5322printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5323	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5324	CFLAGS="$xorg_testset_save_CFLAGS"
5325fi
5326
5327if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5328	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5329		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5330	fi
5331	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5332	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5333printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5334if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5335then :
5336  printf %s "(cached) " >&6
5337else case e in #(
5338  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339/* end confdefs.h.  */
5340int i;
5341_ACEOF
5342if ac_fn_c_try_compile "$LINENO"
5343then :
5344  xorg_cv_cc_flag_unused_command_line_argument=yes
5345else case e in #(
5346  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5347esac
5348fi
5349rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5350esac
5351fi
5352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5353printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5354	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5355	CFLAGS="$xorg_testset_save_CFLAGS"
5356fi
5357
5358found="no"
5359
5360	if test $found = "no" ; then
5361		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5362			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5363		fi
5364
5365		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5366			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5367		fi
5368
5369		CFLAGS="$CFLAGS -Wmissing-declarations"
5370
5371		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5372printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5373		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5374		if eval test \${$cacheid+y}
5375then :
5376  printf %s "(cached) " >&6
5377else case e in #(
5378  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379/* end confdefs.h.  */
5380int i;
5381int
5382main (void)
5383{
5384
5385  ;
5386  return 0;
5387}
5388_ACEOF
5389if ac_fn_c_try_link "$LINENO"
5390then :
5391  eval $cacheid=yes
5392else case e in #(
5393  e) eval $cacheid=no ;;
5394esac
5395fi
5396rm -f core conftest.err conftest.$ac_objext conftest.beam \
5397    conftest$ac_exeext conftest.$ac_ext ;;
5398esac
5399fi
5400
5401
5402		CFLAGS="$xorg_testset_save_CFLAGS"
5403
5404		eval supported=\$$cacheid
5405		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5406printf "%s\n" "$supported" >&6; }
5407		if test "$supported" = "yes" ; then
5408			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5409			found="yes"
5410		fi
5411	fi
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427xorg_testset_save_CFLAGS="$CFLAGS"
5428
5429if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5430	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5431	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5432printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5433if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5434then :
5435  printf %s "(cached) " >&6
5436else case e in #(
5437  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438/* end confdefs.h.  */
5439int i;
5440_ACEOF
5441if ac_fn_c_try_compile "$LINENO"
5442then :
5443  xorg_cv_cc_flag_unknown_warning_option=yes
5444else case e in #(
5445  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5446esac
5447fi
5448rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5449esac
5450fi
5451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5452printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5453	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5454	CFLAGS="$xorg_testset_save_CFLAGS"
5455fi
5456
5457if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5458	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5459		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5460	fi
5461	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5462	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5463printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5464if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5465then :
5466  printf %s "(cached) " >&6
5467else case e in #(
5468  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469/* end confdefs.h.  */
5470int i;
5471_ACEOF
5472if ac_fn_c_try_compile "$LINENO"
5473then :
5474  xorg_cv_cc_flag_unused_command_line_argument=yes
5475else case e in #(
5476  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5477esac
5478fi
5479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5480esac
5481fi
5482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5483printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5484	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5485	CFLAGS="$xorg_testset_save_CFLAGS"
5486fi
5487
5488found="no"
5489
5490	if test $found = "no" ; then
5491		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5492			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5493		fi
5494
5495		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5496			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5497		fi
5498
5499		CFLAGS="$CFLAGS -Wformat=2"
5500
5501		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5502printf %s "checking if $CC supports -Wformat=2... " >&6; }
5503		cacheid=xorg_cv_cc_flag__Wformat_2
5504		if eval test \${$cacheid+y}
5505then :
5506  printf %s "(cached) " >&6
5507else case e in #(
5508  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509/* end confdefs.h.  */
5510int i;
5511int
5512main (void)
5513{
5514
5515  ;
5516  return 0;
5517}
5518_ACEOF
5519if ac_fn_c_try_link "$LINENO"
5520then :
5521  eval $cacheid=yes
5522else case e in #(
5523  e) eval $cacheid=no ;;
5524esac
5525fi
5526rm -f core conftest.err conftest.$ac_objext conftest.beam \
5527    conftest$ac_exeext conftest.$ac_ext ;;
5528esac
5529fi
5530
5531
5532		CFLAGS="$xorg_testset_save_CFLAGS"
5533
5534		eval supported=\$$cacheid
5535		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5536printf "%s\n" "$supported" >&6; }
5537		if test "$supported" = "yes" ; then
5538			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5539			found="yes"
5540		fi
5541	fi
5542
5543	if test $found = "no" ; then
5544		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5545			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5546		fi
5547
5548		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5549			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5550		fi
5551
5552		CFLAGS="$CFLAGS -Wformat"
5553
5554		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5555printf %s "checking if $CC supports -Wformat... " >&6; }
5556		cacheid=xorg_cv_cc_flag__Wformat
5557		if eval test \${$cacheid+y}
5558then :
5559  printf %s "(cached) " >&6
5560else case e in #(
5561  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562/* end confdefs.h.  */
5563int i;
5564int
5565main (void)
5566{
5567
5568  ;
5569  return 0;
5570}
5571_ACEOF
5572if ac_fn_c_try_link "$LINENO"
5573then :
5574  eval $cacheid=yes
5575else case e in #(
5576  e) eval $cacheid=no ;;
5577esac
5578fi
5579rm -f core conftest.err conftest.$ac_objext conftest.beam \
5580    conftest$ac_exeext conftest.$ac_ext ;;
5581esac
5582fi
5583
5584
5585		CFLAGS="$xorg_testset_save_CFLAGS"
5586
5587		eval supported=\$$cacheid
5588		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5589printf "%s\n" "$supported" >&6; }
5590		if test "$supported" = "yes" ; then
5591			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5592			found="yes"
5593		fi
5594	fi
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612xorg_testset_save_CFLAGS="$CFLAGS"
5613
5614if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5615	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5616	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5617printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5618if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5619then :
5620  printf %s "(cached) " >&6
5621else case e in #(
5622  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623/* end confdefs.h.  */
5624int i;
5625_ACEOF
5626if ac_fn_c_try_compile "$LINENO"
5627then :
5628  xorg_cv_cc_flag_unknown_warning_option=yes
5629else case e in #(
5630  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5631esac
5632fi
5633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5634esac
5635fi
5636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5637printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5638	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5639	CFLAGS="$xorg_testset_save_CFLAGS"
5640fi
5641
5642if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5643	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5644		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5645	fi
5646	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5647	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5648printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5649if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5650then :
5651  printf %s "(cached) " >&6
5652else case e in #(
5653  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5654/* end confdefs.h.  */
5655int i;
5656_ACEOF
5657if ac_fn_c_try_compile "$LINENO"
5658then :
5659  xorg_cv_cc_flag_unused_command_line_argument=yes
5660else case e in #(
5661  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5662esac
5663fi
5664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5665esac
5666fi
5667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5668printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5669	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5670	CFLAGS="$xorg_testset_save_CFLAGS"
5671fi
5672
5673found="no"
5674
5675	if test $found = "no" ; then
5676		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5677			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5678		fi
5679
5680		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5681			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5682		fi
5683
5684		CFLAGS="$CFLAGS -Wstrict-prototypes"
5685
5686		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5687printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5688		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5689		if eval test \${$cacheid+y}
5690then :
5691  printf %s "(cached) " >&6
5692else case e in #(
5693  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694/* end confdefs.h.  */
5695int i;
5696int
5697main (void)
5698{
5699
5700  ;
5701  return 0;
5702}
5703_ACEOF
5704if ac_fn_c_try_link "$LINENO"
5705then :
5706  eval $cacheid=yes
5707else case e in #(
5708  e) eval $cacheid=no ;;
5709esac
5710fi
5711rm -f core conftest.err conftest.$ac_objext conftest.beam \
5712    conftest$ac_exeext conftest.$ac_ext ;;
5713esac
5714fi
5715
5716
5717		CFLAGS="$xorg_testset_save_CFLAGS"
5718
5719		eval supported=\$$cacheid
5720		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5721printf "%s\n" "$supported" >&6; }
5722		if test "$supported" = "yes" ; then
5723			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5724			found="yes"
5725		fi
5726	fi
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742xorg_testset_save_CFLAGS="$CFLAGS"
5743
5744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5745	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5746	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5747printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5748if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5749then :
5750  printf %s "(cached) " >&6
5751else case e in #(
5752  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5753/* end confdefs.h.  */
5754int i;
5755_ACEOF
5756if ac_fn_c_try_compile "$LINENO"
5757then :
5758  xorg_cv_cc_flag_unknown_warning_option=yes
5759else case e in #(
5760  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5761esac
5762fi
5763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5764esac
5765fi
5766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5767printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5768	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5769	CFLAGS="$xorg_testset_save_CFLAGS"
5770fi
5771
5772if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5773	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5774		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5775	fi
5776	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5777	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5778printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5779if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5780then :
5781  printf %s "(cached) " >&6
5782else case e in #(
5783  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5784/* end confdefs.h.  */
5785int i;
5786_ACEOF
5787if ac_fn_c_try_compile "$LINENO"
5788then :
5789  xorg_cv_cc_flag_unused_command_line_argument=yes
5790else case e in #(
5791  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5792esac
5793fi
5794rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5795esac
5796fi
5797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5798printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5799	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5800	CFLAGS="$xorg_testset_save_CFLAGS"
5801fi
5802
5803found="no"
5804
5805	if test $found = "no" ; then
5806		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5807			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5808		fi
5809
5810		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5811			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5812		fi
5813
5814		CFLAGS="$CFLAGS -Wmissing-prototypes"
5815
5816		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5817printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5818		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5819		if eval test \${$cacheid+y}
5820then :
5821  printf %s "(cached) " >&6
5822else case e in #(
5823  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824/* end confdefs.h.  */
5825int i;
5826int
5827main (void)
5828{
5829
5830  ;
5831  return 0;
5832}
5833_ACEOF
5834if ac_fn_c_try_link "$LINENO"
5835then :
5836  eval $cacheid=yes
5837else case e in #(
5838  e) eval $cacheid=no ;;
5839esac
5840fi
5841rm -f core conftest.err conftest.$ac_objext conftest.beam \
5842    conftest$ac_exeext conftest.$ac_ext ;;
5843esac
5844fi
5845
5846
5847		CFLAGS="$xorg_testset_save_CFLAGS"
5848
5849		eval supported=\$$cacheid
5850		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5851printf "%s\n" "$supported" >&6; }
5852		if test "$supported" = "yes" ; then
5853			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5854			found="yes"
5855		fi
5856	fi
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872xorg_testset_save_CFLAGS="$CFLAGS"
5873
5874if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5875	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5876	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5877printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5878if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5879then :
5880  printf %s "(cached) " >&6
5881else case e in #(
5882  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883/* end confdefs.h.  */
5884int i;
5885_ACEOF
5886if ac_fn_c_try_compile "$LINENO"
5887then :
5888  xorg_cv_cc_flag_unknown_warning_option=yes
5889else case e in #(
5890  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5891esac
5892fi
5893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5894esac
5895fi
5896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5897printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5898	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5899	CFLAGS="$xorg_testset_save_CFLAGS"
5900fi
5901
5902if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5903	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5904		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5905	fi
5906	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5907	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5908printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5909if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5910then :
5911  printf %s "(cached) " >&6
5912else case e in #(
5913  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914/* end confdefs.h.  */
5915int i;
5916_ACEOF
5917if ac_fn_c_try_compile "$LINENO"
5918then :
5919  xorg_cv_cc_flag_unused_command_line_argument=yes
5920else case e in #(
5921  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5922esac
5923fi
5924rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5925esac
5926fi
5927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5928printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5929	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5930	CFLAGS="$xorg_testset_save_CFLAGS"
5931fi
5932
5933found="no"
5934
5935	if test $found = "no" ; then
5936		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5937			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5938		fi
5939
5940		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5941			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5942		fi
5943
5944		CFLAGS="$CFLAGS -Wnested-externs"
5945
5946		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5947printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5948		cacheid=xorg_cv_cc_flag__Wnested_externs
5949		if eval test \${$cacheid+y}
5950then :
5951  printf %s "(cached) " >&6
5952else case e in #(
5953  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954/* end confdefs.h.  */
5955int i;
5956int
5957main (void)
5958{
5959
5960  ;
5961  return 0;
5962}
5963_ACEOF
5964if ac_fn_c_try_link "$LINENO"
5965then :
5966  eval $cacheid=yes
5967else case e in #(
5968  e) eval $cacheid=no ;;
5969esac
5970fi
5971rm -f core conftest.err conftest.$ac_objext conftest.beam \
5972    conftest$ac_exeext conftest.$ac_ext ;;
5973esac
5974fi
5975
5976
5977		CFLAGS="$xorg_testset_save_CFLAGS"
5978
5979		eval supported=\$$cacheid
5980		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5981printf "%s\n" "$supported" >&6; }
5982		if test "$supported" = "yes" ; then
5983			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5984			found="yes"
5985		fi
5986	fi
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002xorg_testset_save_CFLAGS="$CFLAGS"
6003
6004if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6005	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6006	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6007printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6008if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6009then :
6010  printf %s "(cached) " >&6
6011else case e in #(
6012  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6013/* end confdefs.h.  */
6014int i;
6015_ACEOF
6016if ac_fn_c_try_compile "$LINENO"
6017then :
6018  xorg_cv_cc_flag_unknown_warning_option=yes
6019else case e in #(
6020  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6021esac
6022fi
6023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6024esac
6025fi
6026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6027printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6028	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6029	CFLAGS="$xorg_testset_save_CFLAGS"
6030fi
6031
6032if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6033	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6034		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6035	fi
6036	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6037	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6038printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6039if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6040then :
6041  printf %s "(cached) " >&6
6042else case e in #(
6043  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044/* end confdefs.h.  */
6045int i;
6046_ACEOF
6047if ac_fn_c_try_compile "$LINENO"
6048then :
6049  xorg_cv_cc_flag_unused_command_line_argument=yes
6050else case e in #(
6051  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6052esac
6053fi
6054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6055esac
6056fi
6057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6058printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6059	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6060	CFLAGS="$xorg_testset_save_CFLAGS"
6061fi
6062
6063found="no"
6064
6065	if test $found = "no" ; then
6066		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6067			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6068		fi
6069
6070		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6071			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6072		fi
6073
6074		CFLAGS="$CFLAGS -Wbad-function-cast"
6075
6076		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6077printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6078		cacheid=xorg_cv_cc_flag__Wbad_function_cast
6079		if eval test \${$cacheid+y}
6080then :
6081  printf %s "(cached) " >&6
6082else case e in #(
6083  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084/* end confdefs.h.  */
6085int i;
6086int
6087main (void)
6088{
6089
6090  ;
6091  return 0;
6092}
6093_ACEOF
6094if ac_fn_c_try_link "$LINENO"
6095then :
6096  eval $cacheid=yes
6097else case e in #(
6098  e) eval $cacheid=no ;;
6099esac
6100fi
6101rm -f core conftest.err conftest.$ac_objext conftest.beam \
6102    conftest$ac_exeext conftest.$ac_ext ;;
6103esac
6104fi
6105
6106
6107		CFLAGS="$xorg_testset_save_CFLAGS"
6108
6109		eval supported=\$$cacheid
6110		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6111printf "%s\n" "$supported" >&6; }
6112		if test "$supported" = "yes" ; then
6113			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6114			found="yes"
6115		fi
6116	fi
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132xorg_testset_save_CFLAGS="$CFLAGS"
6133
6134if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6135	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6136	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6137printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6138if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6139then :
6140  printf %s "(cached) " >&6
6141else case e in #(
6142  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143/* end confdefs.h.  */
6144int i;
6145_ACEOF
6146if ac_fn_c_try_compile "$LINENO"
6147then :
6148  xorg_cv_cc_flag_unknown_warning_option=yes
6149else case e in #(
6150  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6151esac
6152fi
6153rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6154esac
6155fi
6156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6157printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6158	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6159	CFLAGS="$xorg_testset_save_CFLAGS"
6160fi
6161
6162if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6163	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6164		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6165	fi
6166	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6167	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6168printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6169if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6170then :
6171  printf %s "(cached) " >&6
6172else case e in #(
6173  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174/* end confdefs.h.  */
6175int i;
6176_ACEOF
6177if ac_fn_c_try_compile "$LINENO"
6178then :
6179  xorg_cv_cc_flag_unused_command_line_argument=yes
6180else case e in #(
6181  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6182esac
6183fi
6184rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6185esac
6186fi
6187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6188printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6189	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6190	CFLAGS="$xorg_testset_save_CFLAGS"
6191fi
6192
6193found="no"
6194
6195	if test $found = "no" ; then
6196		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6197			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6198		fi
6199
6200		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6201			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6202		fi
6203
6204		CFLAGS="$CFLAGS -Wold-style-definition"
6205
6206		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6207printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6208		cacheid=xorg_cv_cc_flag__Wold_style_definition
6209		if eval test \${$cacheid+y}
6210then :
6211  printf %s "(cached) " >&6
6212else case e in #(
6213  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214/* end confdefs.h.  */
6215int i;
6216int
6217main (void)
6218{
6219
6220  ;
6221  return 0;
6222}
6223_ACEOF
6224if ac_fn_c_try_link "$LINENO"
6225then :
6226  eval $cacheid=yes
6227else case e in #(
6228  e) eval $cacheid=no ;;
6229esac
6230fi
6231rm -f core conftest.err conftest.$ac_objext conftest.beam \
6232    conftest$ac_exeext conftest.$ac_ext ;;
6233esac
6234fi
6235
6236
6237		CFLAGS="$xorg_testset_save_CFLAGS"
6238
6239		eval supported=\$$cacheid
6240		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6241printf "%s\n" "$supported" >&6; }
6242		if test "$supported" = "yes" ; then
6243			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6244			found="yes"
6245		fi
6246	fi
6247
6248	if test $found = "no" ; then
6249		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6250			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6251		fi
6252
6253		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6254			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6255		fi
6256
6257		CFLAGS="$CFLAGS -fd"
6258
6259		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6260printf %s "checking if $CC supports -fd... " >&6; }
6261		cacheid=xorg_cv_cc_flag__fd
6262		if eval test \${$cacheid+y}
6263then :
6264  printf %s "(cached) " >&6
6265else case e in #(
6266  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267/* end confdefs.h.  */
6268int i;
6269int
6270main (void)
6271{
6272
6273  ;
6274  return 0;
6275}
6276_ACEOF
6277if ac_fn_c_try_link "$LINENO"
6278then :
6279  eval $cacheid=yes
6280else case e in #(
6281  e) eval $cacheid=no ;;
6282esac
6283fi
6284rm -f core conftest.err conftest.$ac_objext conftest.beam \
6285    conftest$ac_exeext conftest.$ac_ext ;;
6286esac
6287fi
6288
6289
6290		CFLAGS="$xorg_testset_save_CFLAGS"
6291
6292		eval supported=\$$cacheid
6293		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6294printf "%s\n" "$supported" >&6; }
6295		if test "$supported" = "yes" ; then
6296			BASE_CFLAGS="$BASE_CFLAGS -fd"
6297			found="yes"
6298		fi
6299	fi
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315xorg_testset_save_CFLAGS="$CFLAGS"
6316
6317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6318	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6319	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6320printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6321if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6322then :
6323  printf %s "(cached) " >&6
6324else case e in #(
6325  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326/* end confdefs.h.  */
6327int i;
6328_ACEOF
6329if ac_fn_c_try_compile "$LINENO"
6330then :
6331  xorg_cv_cc_flag_unknown_warning_option=yes
6332else case e in #(
6333  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6334esac
6335fi
6336rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6337esac
6338fi
6339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6340printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6341	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6342	CFLAGS="$xorg_testset_save_CFLAGS"
6343fi
6344
6345if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6346	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6347		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6348	fi
6349	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6350	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6351printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6352if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6353then :
6354  printf %s "(cached) " >&6
6355else case e in #(
6356  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357/* end confdefs.h.  */
6358int i;
6359_ACEOF
6360if ac_fn_c_try_compile "$LINENO"
6361then :
6362  xorg_cv_cc_flag_unused_command_line_argument=yes
6363else case e in #(
6364  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6365esac
6366fi
6367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6368esac
6369fi
6370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6371printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6372	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6373	CFLAGS="$xorg_testset_save_CFLAGS"
6374fi
6375
6376found="no"
6377
6378	if test $found = "no" ; then
6379		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6380			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6381		fi
6382
6383		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6384			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6385		fi
6386
6387		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6388
6389		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6390printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6391		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6392		if eval test \${$cacheid+y}
6393then :
6394  printf %s "(cached) " >&6
6395else case e in #(
6396  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6397/* end confdefs.h.  */
6398int i;
6399int
6400main (void)
6401{
6402
6403  ;
6404  return 0;
6405}
6406_ACEOF
6407if ac_fn_c_try_link "$LINENO"
6408then :
6409  eval $cacheid=yes
6410else case e in #(
6411  e) eval $cacheid=no ;;
6412esac
6413fi
6414rm -f core conftest.err conftest.$ac_objext conftest.beam \
6415    conftest$ac_exeext conftest.$ac_ext ;;
6416esac
6417fi
6418
6419
6420		CFLAGS="$xorg_testset_save_CFLAGS"
6421
6422		eval supported=\$$cacheid
6423		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6424printf "%s\n" "$supported" >&6; }
6425		if test "$supported" = "yes" ; then
6426			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6427			found="yes"
6428		fi
6429	fi
6430
6431
6432
6433
6434
6435# This chunk adds additional warnings that could catch undesired effects.
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449xorg_testset_save_CFLAGS="$CFLAGS"
6450
6451if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6452	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6453	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6454printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6455if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6456then :
6457  printf %s "(cached) " >&6
6458else case e in #(
6459  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460/* end confdefs.h.  */
6461int i;
6462_ACEOF
6463if ac_fn_c_try_compile "$LINENO"
6464then :
6465  xorg_cv_cc_flag_unknown_warning_option=yes
6466else case e in #(
6467  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6468esac
6469fi
6470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6471esac
6472fi
6473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6474printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6475	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6476	CFLAGS="$xorg_testset_save_CFLAGS"
6477fi
6478
6479if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6480	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6481		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6482	fi
6483	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6484	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6485printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6486if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6487then :
6488  printf %s "(cached) " >&6
6489else case e in #(
6490  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491/* end confdefs.h.  */
6492int i;
6493_ACEOF
6494if ac_fn_c_try_compile "$LINENO"
6495then :
6496  xorg_cv_cc_flag_unused_command_line_argument=yes
6497else case e in #(
6498  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6499esac
6500fi
6501rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6502esac
6503fi
6504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6505printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6506	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6507	CFLAGS="$xorg_testset_save_CFLAGS"
6508fi
6509
6510found="no"
6511
6512	if test $found = "no" ; then
6513		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6514			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6515		fi
6516
6517		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6518			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6519		fi
6520
6521		CFLAGS="$CFLAGS -Wunused"
6522
6523		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6524printf %s "checking if $CC supports -Wunused... " >&6; }
6525		cacheid=xorg_cv_cc_flag__Wunused
6526		if eval test \${$cacheid+y}
6527then :
6528  printf %s "(cached) " >&6
6529else case e in #(
6530  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531/* end confdefs.h.  */
6532int i;
6533int
6534main (void)
6535{
6536
6537  ;
6538  return 0;
6539}
6540_ACEOF
6541if ac_fn_c_try_link "$LINENO"
6542then :
6543  eval $cacheid=yes
6544else case e in #(
6545  e) eval $cacheid=no ;;
6546esac
6547fi
6548rm -f core conftest.err conftest.$ac_objext conftest.beam \
6549    conftest$ac_exeext conftest.$ac_ext ;;
6550esac
6551fi
6552
6553
6554		CFLAGS="$xorg_testset_save_CFLAGS"
6555
6556		eval supported=\$$cacheid
6557		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6558printf "%s\n" "$supported" >&6; }
6559		if test "$supported" = "yes" ; then
6560			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6561			found="yes"
6562		fi
6563	fi
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579xorg_testset_save_CFLAGS="$CFLAGS"
6580
6581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6582	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6583	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6584printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6585if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6586then :
6587  printf %s "(cached) " >&6
6588else case e in #(
6589  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590/* end confdefs.h.  */
6591int i;
6592_ACEOF
6593if ac_fn_c_try_compile "$LINENO"
6594then :
6595  xorg_cv_cc_flag_unknown_warning_option=yes
6596else case e in #(
6597  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6598esac
6599fi
6600rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6601esac
6602fi
6603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6604printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6605	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6606	CFLAGS="$xorg_testset_save_CFLAGS"
6607fi
6608
6609if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6610	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6611		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6612	fi
6613	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6614	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6615printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6616if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6617then :
6618  printf %s "(cached) " >&6
6619else case e in #(
6620  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621/* end confdefs.h.  */
6622int i;
6623_ACEOF
6624if ac_fn_c_try_compile "$LINENO"
6625then :
6626  xorg_cv_cc_flag_unused_command_line_argument=yes
6627else case e in #(
6628  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6629esac
6630fi
6631rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6632esac
6633fi
6634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6635printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6636	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6637	CFLAGS="$xorg_testset_save_CFLAGS"
6638fi
6639
6640found="no"
6641
6642	if test $found = "no" ; then
6643		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6644			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6645		fi
6646
6647		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6648			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6649		fi
6650
6651		CFLAGS="$CFLAGS -Wuninitialized"
6652
6653		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6654printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6655		cacheid=xorg_cv_cc_flag__Wuninitialized
6656		if eval test \${$cacheid+y}
6657then :
6658  printf %s "(cached) " >&6
6659else case e in #(
6660  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6661/* end confdefs.h.  */
6662int i;
6663int
6664main (void)
6665{
6666
6667  ;
6668  return 0;
6669}
6670_ACEOF
6671if ac_fn_c_try_link "$LINENO"
6672then :
6673  eval $cacheid=yes
6674else case e in #(
6675  e) eval $cacheid=no ;;
6676esac
6677fi
6678rm -f core conftest.err conftest.$ac_objext conftest.beam \
6679    conftest$ac_exeext conftest.$ac_ext ;;
6680esac
6681fi
6682
6683
6684		CFLAGS="$xorg_testset_save_CFLAGS"
6685
6686		eval supported=\$$cacheid
6687		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6688printf "%s\n" "$supported" >&6; }
6689		if test "$supported" = "yes" ; then
6690			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6691			found="yes"
6692		fi
6693	fi
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709xorg_testset_save_CFLAGS="$CFLAGS"
6710
6711if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6712	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6713	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6714printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6715if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6716then :
6717  printf %s "(cached) " >&6
6718else case e in #(
6719  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720/* end confdefs.h.  */
6721int i;
6722_ACEOF
6723if ac_fn_c_try_compile "$LINENO"
6724then :
6725  xorg_cv_cc_flag_unknown_warning_option=yes
6726else case e in #(
6727  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6728esac
6729fi
6730rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6731esac
6732fi
6733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6734printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6735	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6736	CFLAGS="$xorg_testset_save_CFLAGS"
6737fi
6738
6739if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6740	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6741		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6742	fi
6743	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6744	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6745printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6746if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6747then :
6748  printf %s "(cached) " >&6
6749else case e in #(
6750  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6751/* end confdefs.h.  */
6752int i;
6753_ACEOF
6754if ac_fn_c_try_compile "$LINENO"
6755then :
6756  xorg_cv_cc_flag_unused_command_line_argument=yes
6757else case e in #(
6758  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6759esac
6760fi
6761rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6762esac
6763fi
6764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6765printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6766	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6767	CFLAGS="$xorg_testset_save_CFLAGS"
6768fi
6769
6770found="no"
6771
6772	if test $found = "no" ; then
6773		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6774			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6775		fi
6776
6777		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6778			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6779		fi
6780
6781		CFLAGS="$CFLAGS -Wshadow"
6782
6783		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6784printf %s "checking if $CC supports -Wshadow... " >&6; }
6785		cacheid=xorg_cv_cc_flag__Wshadow
6786		if eval test \${$cacheid+y}
6787then :
6788  printf %s "(cached) " >&6
6789else case e in #(
6790  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6791/* end confdefs.h.  */
6792int i;
6793int
6794main (void)
6795{
6796
6797  ;
6798  return 0;
6799}
6800_ACEOF
6801if ac_fn_c_try_link "$LINENO"
6802then :
6803  eval $cacheid=yes
6804else case e in #(
6805  e) eval $cacheid=no ;;
6806esac
6807fi
6808rm -f core conftest.err conftest.$ac_objext conftest.beam \
6809    conftest$ac_exeext conftest.$ac_ext ;;
6810esac
6811fi
6812
6813
6814		CFLAGS="$xorg_testset_save_CFLAGS"
6815
6816		eval supported=\$$cacheid
6817		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6818printf "%s\n" "$supported" >&6; }
6819		if test "$supported" = "yes" ; then
6820			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6821			found="yes"
6822		fi
6823	fi
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839xorg_testset_save_CFLAGS="$CFLAGS"
6840
6841if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6842	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6843	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6844printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6845if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6846then :
6847  printf %s "(cached) " >&6
6848else case e in #(
6849  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850/* end confdefs.h.  */
6851int i;
6852_ACEOF
6853if ac_fn_c_try_compile "$LINENO"
6854then :
6855  xorg_cv_cc_flag_unknown_warning_option=yes
6856else case e in #(
6857  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6858esac
6859fi
6860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6861esac
6862fi
6863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6864printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6865	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6866	CFLAGS="$xorg_testset_save_CFLAGS"
6867fi
6868
6869if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6870	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6871		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6872	fi
6873	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6874	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6875printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6876if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6877then :
6878  printf %s "(cached) " >&6
6879else case e in #(
6880  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881/* end confdefs.h.  */
6882int i;
6883_ACEOF
6884if ac_fn_c_try_compile "$LINENO"
6885then :
6886  xorg_cv_cc_flag_unused_command_line_argument=yes
6887else case e in #(
6888  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6889esac
6890fi
6891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6892esac
6893fi
6894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6895printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6896	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6897	CFLAGS="$xorg_testset_save_CFLAGS"
6898fi
6899
6900found="no"
6901
6902	if test $found = "no" ; then
6903		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6904			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6905		fi
6906
6907		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6908			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6909		fi
6910
6911		CFLAGS="$CFLAGS -Wmissing-noreturn"
6912
6913		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6914printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6915		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6916		if eval test \${$cacheid+y}
6917then :
6918  printf %s "(cached) " >&6
6919else case e in #(
6920  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921/* end confdefs.h.  */
6922int i;
6923int
6924main (void)
6925{
6926
6927  ;
6928  return 0;
6929}
6930_ACEOF
6931if ac_fn_c_try_link "$LINENO"
6932then :
6933  eval $cacheid=yes
6934else case e in #(
6935  e) eval $cacheid=no ;;
6936esac
6937fi
6938rm -f core conftest.err conftest.$ac_objext conftest.beam \
6939    conftest$ac_exeext conftest.$ac_ext ;;
6940esac
6941fi
6942
6943
6944		CFLAGS="$xorg_testset_save_CFLAGS"
6945
6946		eval supported=\$$cacheid
6947		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6948printf "%s\n" "$supported" >&6; }
6949		if test "$supported" = "yes" ; then
6950			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6951			found="yes"
6952		fi
6953	fi
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969xorg_testset_save_CFLAGS="$CFLAGS"
6970
6971if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6972	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6973	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6974printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6975if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6976then :
6977  printf %s "(cached) " >&6
6978else case e in #(
6979  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980/* end confdefs.h.  */
6981int i;
6982_ACEOF
6983if ac_fn_c_try_compile "$LINENO"
6984then :
6985  xorg_cv_cc_flag_unknown_warning_option=yes
6986else case e in #(
6987  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6988esac
6989fi
6990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6991esac
6992fi
6993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6994printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6995	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6996	CFLAGS="$xorg_testset_save_CFLAGS"
6997fi
6998
6999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7000	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7001		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7002	fi
7003	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7004	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7005printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7006if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7007then :
7008  printf %s "(cached) " >&6
7009else case e in #(
7010  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011/* end confdefs.h.  */
7012int i;
7013_ACEOF
7014if ac_fn_c_try_compile "$LINENO"
7015then :
7016  xorg_cv_cc_flag_unused_command_line_argument=yes
7017else case e in #(
7018  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7019esac
7020fi
7021rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7022esac
7023fi
7024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7025printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7026	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7027	CFLAGS="$xorg_testset_save_CFLAGS"
7028fi
7029
7030found="no"
7031
7032	if test $found = "no" ; then
7033		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7034			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7035		fi
7036
7037		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7038			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7039		fi
7040
7041		CFLAGS="$CFLAGS -Wmissing-format-attribute"
7042
7043		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7044printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7045		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7046		if eval test \${$cacheid+y}
7047then :
7048  printf %s "(cached) " >&6
7049else case e in #(
7050  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051/* end confdefs.h.  */
7052int i;
7053int
7054main (void)
7055{
7056
7057  ;
7058  return 0;
7059}
7060_ACEOF
7061if ac_fn_c_try_link "$LINENO"
7062then :
7063  eval $cacheid=yes
7064else case e in #(
7065  e) eval $cacheid=no ;;
7066esac
7067fi
7068rm -f core conftest.err conftest.$ac_objext conftest.beam \
7069    conftest$ac_exeext conftest.$ac_ext ;;
7070esac
7071fi
7072
7073
7074		CFLAGS="$xorg_testset_save_CFLAGS"
7075
7076		eval supported=\$$cacheid
7077		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7078printf "%s\n" "$supported" >&6; }
7079		if test "$supported" = "yes" ; then
7080			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7081			found="yes"
7082		fi
7083	fi
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099xorg_testset_save_CFLAGS="$CFLAGS"
7100
7101if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7102	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7103	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7104printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7105if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7106then :
7107  printf %s "(cached) " >&6
7108else case e in #(
7109  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110/* end confdefs.h.  */
7111int i;
7112_ACEOF
7113if ac_fn_c_try_compile "$LINENO"
7114then :
7115  xorg_cv_cc_flag_unknown_warning_option=yes
7116else case e in #(
7117  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7118esac
7119fi
7120rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7121esac
7122fi
7123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7124printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7125	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7126	CFLAGS="$xorg_testset_save_CFLAGS"
7127fi
7128
7129if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7130	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7131		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7132	fi
7133	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7134	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7135printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7136if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7137then :
7138  printf %s "(cached) " >&6
7139else case e in #(
7140  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141/* end confdefs.h.  */
7142int i;
7143_ACEOF
7144if ac_fn_c_try_compile "$LINENO"
7145then :
7146  xorg_cv_cc_flag_unused_command_line_argument=yes
7147else case e in #(
7148  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7149esac
7150fi
7151rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7152esac
7153fi
7154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7155printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7156	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7157	CFLAGS="$xorg_testset_save_CFLAGS"
7158fi
7159
7160found="no"
7161
7162	if test $found = "no" ; then
7163		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7164			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7165		fi
7166
7167		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7168			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7169		fi
7170
7171		CFLAGS="$CFLAGS -Wredundant-decls"
7172
7173		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7174printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7175		cacheid=xorg_cv_cc_flag__Wredundant_decls
7176		if eval test \${$cacheid+y}
7177then :
7178  printf %s "(cached) " >&6
7179else case e in #(
7180  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181/* end confdefs.h.  */
7182int i;
7183int
7184main (void)
7185{
7186
7187  ;
7188  return 0;
7189}
7190_ACEOF
7191if ac_fn_c_try_link "$LINENO"
7192then :
7193  eval $cacheid=yes
7194else case e in #(
7195  e) eval $cacheid=no ;;
7196esac
7197fi
7198rm -f core conftest.err conftest.$ac_objext conftest.beam \
7199    conftest$ac_exeext conftest.$ac_ext ;;
7200esac
7201fi
7202
7203
7204		CFLAGS="$xorg_testset_save_CFLAGS"
7205
7206		eval supported=\$$cacheid
7207		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7208printf "%s\n" "$supported" >&6; }
7209		if test "$supported" = "yes" ; then
7210			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7211			found="yes"
7212		fi
7213	fi
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229xorg_testset_save_CFLAGS="$CFLAGS"
7230
7231if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7232	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7233	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7234printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7235if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7236then :
7237  printf %s "(cached) " >&6
7238else case e in #(
7239  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240/* end confdefs.h.  */
7241int i;
7242_ACEOF
7243if ac_fn_c_try_compile "$LINENO"
7244then :
7245  xorg_cv_cc_flag_unknown_warning_option=yes
7246else case e in #(
7247  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7248esac
7249fi
7250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7251esac
7252fi
7253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7254printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7255	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7256	CFLAGS="$xorg_testset_save_CFLAGS"
7257fi
7258
7259if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7260	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7261		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7262	fi
7263	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7264	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7265printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7266if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7267then :
7268  printf %s "(cached) " >&6
7269else case e in #(
7270  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271/* end confdefs.h.  */
7272int i;
7273_ACEOF
7274if ac_fn_c_try_compile "$LINENO"
7275then :
7276  xorg_cv_cc_flag_unused_command_line_argument=yes
7277else case e in #(
7278  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7279esac
7280fi
7281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7282esac
7283fi
7284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7285printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7286	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7287	CFLAGS="$xorg_testset_save_CFLAGS"
7288fi
7289
7290found="no"
7291
7292	if test $found = "no" ; then
7293		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7294			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7295		fi
7296
7297		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7298			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7299		fi
7300
7301		CFLAGS="$CFLAGS -Wlogical-op"
7302
7303		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7304printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7305		cacheid=xorg_cv_cc_flag__Wlogical_op
7306		if eval test \${$cacheid+y}
7307then :
7308  printf %s "(cached) " >&6
7309else case e in #(
7310  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311/* end confdefs.h.  */
7312int i;
7313int
7314main (void)
7315{
7316
7317  ;
7318  return 0;
7319}
7320_ACEOF
7321if ac_fn_c_try_link "$LINENO"
7322then :
7323  eval $cacheid=yes
7324else case e in #(
7325  e) eval $cacheid=no ;;
7326esac
7327fi
7328rm -f core conftest.err conftest.$ac_objext conftest.beam \
7329    conftest$ac_exeext conftest.$ac_ext ;;
7330esac
7331fi
7332
7333
7334		CFLAGS="$xorg_testset_save_CFLAGS"
7335
7336		eval supported=\$$cacheid
7337		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7338printf "%s\n" "$supported" >&6; }
7339		if test "$supported" = "yes" ; then
7340			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7341			found="yes"
7342		fi
7343	fi
7344
7345
7346
7347# These are currently disabled because they are noisy.  They will be enabled
7348# in the future once the codebase is sufficiently modernized to silence
7349# them.  For now, I don't want them to drown out the other warnings.
7350# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7351# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7352# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7353
7354# Turn some warnings into errors, so we don't accidentally get successful builds
7355# when there are problems that should be fixed.
7356
7357if test "x$SELECTIVE_WERROR" = "xyes" ; then
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371xorg_testset_save_CFLAGS="$CFLAGS"
7372
7373if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7374	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7375	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7376printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7377if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7378then :
7379  printf %s "(cached) " >&6
7380else case e in #(
7381  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382/* end confdefs.h.  */
7383int i;
7384_ACEOF
7385if ac_fn_c_try_compile "$LINENO"
7386then :
7387  xorg_cv_cc_flag_unknown_warning_option=yes
7388else case e in #(
7389  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7390esac
7391fi
7392rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7393esac
7394fi
7395{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7396printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7397	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7398	CFLAGS="$xorg_testset_save_CFLAGS"
7399fi
7400
7401if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7402	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7403		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7404	fi
7405	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7406	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7407printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7408if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7409then :
7410  printf %s "(cached) " >&6
7411else case e in #(
7412  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413/* end confdefs.h.  */
7414int i;
7415_ACEOF
7416if ac_fn_c_try_compile "$LINENO"
7417then :
7418  xorg_cv_cc_flag_unused_command_line_argument=yes
7419else case e in #(
7420  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7421esac
7422fi
7423rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7424esac
7425fi
7426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7427printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7428	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7429	CFLAGS="$xorg_testset_save_CFLAGS"
7430fi
7431
7432found="no"
7433
7434	if test $found = "no" ; then
7435		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7436			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7437		fi
7438
7439		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7440			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7441		fi
7442
7443		CFLAGS="$CFLAGS -Werror=implicit"
7444
7445		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7446printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7447		cacheid=xorg_cv_cc_flag__Werror_implicit
7448		if eval test \${$cacheid+y}
7449then :
7450  printf %s "(cached) " >&6
7451else case e in #(
7452  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453/* end confdefs.h.  */
7454int i;
7455int
7456main (void)
7457{
7458
7459  ;
7460  return 0;
7461}
7462_ACEOF
7463if ac_fn_c_try_link "$LINENO"
7464then :
7465  eval $cacheid=yes
7466else case e in #(
7467  e) eval $cacheid=no ;;
7468esac
7469fi
7470rm -f core conftest.err conftest.$ac_objext conftest.beam \
7471    conftest$ac_exeext conftest.$ac_ext ;;
7472esac
7473fi
7474
7475
7476		CFLAGS="$xorg_testset_save_CFLAGS"
7477
7478		eval supported=\$$cacheid
7479		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7480printf "%s\n" "$supported" >&6; }
7481		if test "$supported" = "yes" ; then
7482			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7483			found="yes"
7484		fi
7485	fi
7486
7487	if test $found = "no" ; then
7488		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7489			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7490		fi
7491
7492		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7493			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7494		fi
7495
7496		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7497
7498		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7499printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7500		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7501		if eval test \${$cacheid+y}
7502then :
7503  printf %s "(cached) " >&6
7504else case e in #(
7505  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506/* end confdefs.h.  */
7507int i;
7508int
7509main (void)
7510{
7511
7512  ;
7513  return 0;
7514}
7515_ACEOF
7516if ac_fn_c_try_link "$LINENO"
7517then :
7518  eval $cacheid=yes
7519else case e in #(
7520  e) eval $cacheid=no ;;
7521esac
7522fi
7523rm -f core conftest.err conftest.$ac_objext conftest.beam \
7524    conftest$ac_exeext conftest.$ac_ext ;;
7525esac
7526fi
7527
7528
7529		CFLAGS="$xorg_testset_save_CFLAGS"
7530
7531		eval supported=\$$cacheid
7532		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7533printf "%s\n" "$supported" >&6; }
7534		if test "$supported" = "yes" ; then
7535			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7536			found="yes"
7537		fi
7538	fi
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554xorg_testset_save_CFLAGS="$CFLAGS"
7555
7556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7557	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7558	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7559printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7560if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7561then :
7562  printf %s "(cached) " >&6
7563else case e in #(
7564  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565/* end confdefs.h.  */
7566int i;
7567_ACEOF
7568if ac_fn_c_try_compile "$LINENO"
7569then :
7570  xorg_cv_cc_flag_unknown_warning_option=yes
7571else case e in #(
7572  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7573esac
7574fi
7575rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7576esac
7577fi
7578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7579printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7580	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7581	CFLAGS="$xorg_testset_save_CFLAGS"
7582fi
7583
7584if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7585	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7586		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7587	fi
7588	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7589	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7590printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7591if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7592then :
7593  printf %s "(cached) " >&6
7594else case e in #(
7595  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596/* end confdefs.h.  */
7597int i;
7598_ACEOF
7599if ac_fn_c_try_compile "$LINENO"
7600then :
7601  xorg_cv_cc_flag_unused_command_line_argument=yes
7602else case e in #(
7603  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7604esac
7605fi
7606rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7607esac
7608fi
7609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7610printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7611	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7612	CFLAGS="$xorg_testset_save_CFLAGS"
7613fi
7614
7615found="no"
7616
7617	if test $found = "no" ; then
7618		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7619			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7620		fi
7621
7622		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7623			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7624		fi
7625
7626		CFLAGS="$CFLAGS -Werror=nonnull"
7627
7628		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7629printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7630		cacheid=xorg_cv_cc_flag__Werror_nonnull
7631		if eval test \${$cacheid+y}
7632then :
7633  printf %s "(cached) " >&6
7634else case e in #(
7635  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636/* end confdefs.h.  */
7637int i;
7638int
7639main (void)
7640{
7641
7642  ;
7643  return 0;
7644}
7645_ACEOF
7646if ac_fn_c_try_link "$LINENO"
7647then :
7648  eval $cacheid=yes
7649else case e in #(
7650  e) eval $cacheid=no ;;
7651esac
7652fi
7653rm -f core conftest.err conftest.$ac_objext conftest.beam \
7654    conftest$ac_exeext conftest.$ac_ext ;;
7655esac
7656fi
7657
7658
7659		CFLAGS="$xorg_testset_save_CFLAGS"
7660
7661		eval supported=\$$cacheid
7662		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7663printf "%s\n" "$supported" >&6; }
7664		if test "$supported" = "yes" ; then
7665			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7666			found="yes"
7667		fi
7668	fi
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684xorg_testset_save_CFLAGS="$CFLAGS"
7685
7686if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7687	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7688	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7689printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7690if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7691then :
7692  printf %s "(cached) " >&6
7693else case e in #(
7694  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7695/* end confdefs.h.  */
7696int i;
7697_ACEOF
7698if ac_fn_c_try_compile "$LINENO"
7699then :
7700  xorg_cv_cc_flag_unknown_warning_option=yes
7701else case e in #(
7702  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7703esac
7704fi
7705rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7706esac
7707fi
7708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7709printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7710	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7711	CFLAGS="$xorg_testset_save_CFLAGS"
7712fi
7713
7714if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7715	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7716		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7717	fi
7718	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7719	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7720printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7721if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7722then :
7723  printf %s "(cached) " >&6
7724else case e in #(
7725  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726/* end confdefs.h.  */
7727int i;
7728_ACEOF
7729if ac_fn_c_try_compile "$LINENO"
7730then :
7731  xorg_cv_cc_flag_unused_command_line_argument=yes
7732else case e in #(
7733  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7734esac
7735fi
7736rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7737esac
7738fi
7739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7740printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7741	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7742	CFLAGS="$xorg_testset_save_CFLAGS"
7743fi
7744
7745found="no"
7746
7747	if test $found = "no" ; then
7748		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7749			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7750		fi
7751
7752		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7753			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7754		fi
7755
7756		CFLAGS="$CFLAGS -Werror=init-self"
7757
7758		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7759printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7760		cacheid=xorg_cv_cc_flag__Werror_init_self
7761		if eval test \${$cacheid+y}
7762then :
7763  printf %s "(cached) " >&6
7764else case e in #(
7765  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766/* end confdefs.h.  */
7767int i;
7768int
7769main (void)
7770{
7771
7772  ;
7773  return 0;
7774}
7775_ACEOF
7776if ac_fn_c_try_link "$LINENO"
7777then :
7778  eval $cacheid=yes
7779else case e in #(
7780  e) eval $cacheid=no ;;
7781esac
7782fi
7783rm -f core conftest.err conftest.$ac_objext conftest.beam \
7784    conftest$ac_exeext conftest.$ac_ext ;;
7785esac
7786fi
7787
7788
7789		CFLAGS="$xorg_testset_save_CFLAGS"
7790
7791		eval supported=\$$cacheid
7792		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7793printf "%s\n" "$supported" >&6; }
7794		if test "$supported" = "yes" ; then
7795			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7796			found="yes"
7797		fi
7798	fi
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814xorg_testset_save_CFLAGS="$CFLAGS"
7815
7816if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7817	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7818	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7819printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7820if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7821then :
7822  printf %s "(cached) " >&6
7823else case e in #(
7824  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825/* end confdefs.h.  */
7826int i;
7827_ACEOF
7828if ac_fn_c_try_compile "$LINENO"
7829then :
7830  xorg_cv_cc_flag_unknown_warning_option=yes
7831else case e in #(
7832  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7833esac
7834fi
7835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7836esac
7837fi
7838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7839printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7840	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7841	CFLAGS="$xorg_testset_save_CFLAGS"
7842fi
7843
7844if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7845	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7846		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7847	fi
7848	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7849	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7850printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7851if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7852then :
7853  printf %s "(cached) " >&6
7854else case e in #(
7855  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856/* end confdefs.h.  */
7857int i;
7858_ACEOF
7859if ac_fn_c_try_compile "$LINENO"
7860then :
7861  xorg_cv_cc_flag_unused_command_line_argument=yes
7862else case e in #(
7863  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7864esac
7865fi
7866rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7867esac
7868fi
7869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7870printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7871	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7872	CFLAGS="$xorg_testset_save_CFLAGS"
7873fi
7874
7875found="no"
7876
7877	if test $found = "no" ; then
7878		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7879			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7880		fi
7881
7882		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7883			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7884		fi
7885
7886		CFLAGS="$CFLAGS -Werror=main"
7887
7888		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7889printf %s "checking if $CC supports -Werror=main... " >&6; }
7890		cacheid=xorg_cv_cc_flag__Werror_main
7891		if eval test \${$cacheid+y}
7892then :
7893  printf %s "(cached) " >&6
7894else case e in #(
7895  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7896/* end confdefs.h.  */
7897int i;
7898int
7899main (void)
7900{
7901
7902  ;
7903  return 0;
7904}
7905_ACEOF
7906if ac_fn_c_try_link "$LINENO"
7907then :
7908  eval $cacheid=yes
7909else case e in #(
7910  e) eval $cacheid=no ;;
7911esac
7912fi
7913rm -f core conftest.err conftest.$ac_objext conftest.beam \
7914    conftest$ac_exeext conftest.$ac_ext ;;
7915esac
7916fi
7917
7918
7919		CFLAGS="$xorg_testset_save_CFLAGS"
7920
7921		eval supported=\$$cacheid
7922		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7923printf "%s\n" "$supported" >&6; }
7924		if test "$supported" = "yes" ; then
7925			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7926			found="yes"
7927		fi
7928	fi
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944xorg_testset_save_CFLAGS="$CFLAGS"
7945
7946if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7947	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7948	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7949printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7950if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7951then :
7952  printf %s "(cached) " >&6
7953else case e in #(
7954  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7955/* end confdefs.h.  */
7956int i;
7957_ACEOF
7958if ac_fn_c_try_compile "$LINENO"
7959then :
7960  xorg_cv_cc_flag_unknown_warning_option=yes
7961else case e in #(
7962  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7963esac
7964fi
7965rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7966esac
7967fi
7968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7969printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7970	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7971	CFLAGS="$xorg_testset_save_CFLAGS"
7972fi
7973
7974if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7975	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7976		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7977	fi
7978	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7979	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7980printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7981if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7982then :
7983  printf %s "(cached) " >&6
7984else case e in #(
7985  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986/* end confdefs.h.  */
7987int i;
7988_ACEOF
7989if ac_fn_c_try_compile "$LINENO"
7990then :
7991  xorg_cv_cc_flag_unused_command_line_argument=yes
7992else case e in #(
7993  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7994esac
7995fi
7996rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7997esac
7998fi
7999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8000printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8001	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8002	CFLAGS="$xorg_testset_save_CFLAGS"
8003fi
8004
8005found="no"
8006
8007	if test $found = "no" ; then
8008		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8009			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8010		fi
8011
8012		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8013			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8014		fi
8015
8016		CFLAGS="$CFLAGS -Werror=missing-braces"
8017
8018		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8019printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8020		cacheid=xorg_cv_cc_flag__Werror_missing_braces
8021		if eval test \${$cacheid+y}
8022then :
8023  printf %s "(cached) " >&6
8024else case e in #(
8025  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026/* end confdefs.h.  */
8027int i;
8028int
8029main (void)
8030{
8031
8032  ;
8033  return 0;
8034}
8035_ACEOF
8036if ac_fn_c_try_link "$LINENO"
8037then :
8038  eval $cacheid=yes
8039else case e in #(
8040  e) eval $cacheid=no ;;
8041esac
8042fi
8043rm -f core conftest.err conftest.$ac_objext conftest.beam \
8044    conftest$ac_exeext conftest.$ac_ext ;;
8045esac
8046fi
8047
8048
8049		CFLAGS="$xorg_testset_save_CFLAGS"
8050
8051		eval supported=\$$cacheid
8052		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8053printf "%s\n" "$supported" >&6; }
8054		if test "$supported" = "yes" ; then
8055			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8056			found="yes"
8057		fi
8058	fi
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074xorg_testset_save_CFLAGS="$CFLAGS"
8075
8076if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8077	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8078	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8079printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8080if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8081then :
8082  printf %s "(cached) " >&6
8083else case e in #(
8084  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8085/* end confdefs.h.  */
8086int i;
8087_ACEOF
8088if ac_fn_c_try_compile "$LINENO"
8089then :
8090  xorg_cv_cc_flag_unknown_warning_option=yes
8091else case e in #(
8092  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8093esac
8094fi
8095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8096esac
8097fi
8098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8099printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8100	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8101	CFLAGS="$xorg_testset_save_CFLAGS"
8102fi
8103
8104if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8105	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8106		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8107	fi
8108	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8109	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8110printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8111if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8112then :
8113  printf %s "(cached) " >&6
8114else case e in #(
8115  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8116/* end confdefs.h.  */
8117int i;
8118_ACEOF
8119if ac_fn_c_try_compile "$LINENO"
8120then :
8121  xorg_cv_cc_flag_unused_command_line_argument=yes
8122else case e in #(
8123  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8124esac
8125fi
8126rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8127esac
8128fi
8129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8130printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8131	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8132	CFLAGS="$xorg_testset_save_CFLAGS"
8133fi
8134
8135found="no"
8136
8137	if test $found = "no" ; then
8138		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8139			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8140		fi
8141
8142		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8143			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8144		fi
8145
8146		CFLAGS="$CFLAGS -Werror=sequence-point"
8147
8148		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8149printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8150		cacheid=xorg_cv_cc_flag__Werror_sequence_point
8151		if eval test \${$cacheid+y}
8152then :
8153  printf %s "(cached) " >&6
8154else case e in #(
8155  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156/* end confdefs.h.  */
8157int i;
8158int
8159main (void)
8160{
8161
8162  ;
8163  return 0;
8164}
8165_ACEOF
8166if ac_fn_c_try_link "$LINENO"
8167then :
8168  eval $cacheid=yes
8169else case e in #(
8170  e) eval $cacheid=no ;;
8171esac
8172fi
8173rm -f core conftest.err conftest.$ac_objext conftest.beam \
8174    conftest$ac_exeext conftest.$ac_ext ;;
8175esac
8176fi
8177
8178
8179		CFLAGS="$xorg_testset_save_CFLAGS"
8180
8181		eval supported=\$$cacheid
8182		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8183printf "%s\n" "$supported" >&6; }
8184		if test "$supported" = "yes" ; then
8185			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8186			found="yes"
8187		fi
8188	fi
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204xorg_testset_save_CFLAGS="$CFLAGS"
8205
8206if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8207	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8208	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8209printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8210if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8211then :
8212  printf %s "(cached) " >&6
8213else case e in #(
8214  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215/* end confdefs.h.  */
8216int i;
8217_ACEOF
8218if ac_fn_c_try_compile "$LINENO"
8219then :
8220  xorg_cv_cc_flag_unknown_warning_option=yes
8221else case e in #(
8222  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8223esac
8224fi
8225rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8226esac
8227fi
8228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8229printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8230	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8231	CFLAGS="$xorg_testset_save_CFLAGS"
8232fi
8233
8234if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8235	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8236		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8237	fi
8238	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8239	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8240printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8241if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8242then :
8243  printf %s "(cached) " >&6
8244else case e in #(
8245  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246/* end confdefs.h.  */
8247int i;
8248_ACEOF
8249if ac_fn_c_try_compile "$LINENO"
8250then :
8251  xorg_cv_cc_flag_unused_command_line_argument=yes
8252else case e in #(
8253  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8254esac
8255fi
8256rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8257esac
8258fi
8259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8260printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8261	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8262	CFLAGS="$xorg_testset_save_CFLAGS"
8263fi
8264
8265found="no"
8266
8267	if test $found = "no" ; then
8268		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8269			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8270		fi
8271
8272		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8273			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8274		fi
8275
8276		CFLAGS="$CFLAGS -Werror=return-type"
8277
8278		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8279printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8280		cacheid=xorg_cv_cc_flag__Werror_return_type
8281		if eval test \${$cacheid+y}
8282then :
8283  printf %s "(cached) " >&6
8284else case e in #(
8285  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286/* end confdefs.h.  */
8287int i;
8288int
8289main (void)
8290{
8291
8292  ;
8293  return 0;
8294}
8295_ACEOF
8296if ac_fn_c_try_link "$LINENO"
8297then :
8298  eval $cacheid=yes
8299else case e in #(
8300  e) eval $cacheid=no ;;
8301esac
8302fi
8303rm -f core conftest.err conftest.$ac_objext conftest.beam \
8304    conftest$ac_exeext conftest.$ac_ext ;;
8305esac
8306fi
8307
8308
8309		CFLAGS="$xorg_testset_save_CFLAGS"
8310
8311		eval supported=\$$cacheid
8312		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8313printf "%s\n" "$supported" >&6; }
8314		if test "$supported" = "yes" ; then
8315			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8316			found="yes"
8317		fi
8318	fi
8319
8320	if test $found = "no" ; then
8321		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8322			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8323		fi
8324
8325		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8326			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8327		fi
8328
8329		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8330
8331		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8332printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8333		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8334		if eval test \${$cacheid+y}
8335then :
8336  printf %s "(cached) " >&6
8337else case e in #(
8338  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339/* end confdefs.h.  */
8340int i;
8341int
8342main (void)
8343{
8344
8345  ;
8346  return 0;
8347}
8348_ACEOF
8349if ac_fn_c_try_link "$LINENO"
8350then :
8351  eval $cacheid=yes
8352else case e in #(
8353  e) eval $cacheid=no ;;
8354esac
8355fi
8356rm -f core conftest.err conftest.$ac_objext conftest.beam \
8357    conftest$ac_exeext conftest.$ac_ext ;;
8358esac
8359fi
8360
8361
8362		CFLAGS="$xorg_testset_save_CFLAGS"
8363
8364		eval supported=\$$cacheid
8365		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8366printf "%s\n" "$supported" >&6; }
8367		if test "$supported" = "yes" ; then
8368			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8369			found="yes"
8370		fi
8371	fi
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387xorg_testset_save_CFLAGS="$CFLAGS"
8388
8389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8390	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8391	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8392printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8393if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8394then :
8395  printf %s "(cached) " >&6
8396else case e in #(
8397  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398/* end confdefs.h.  */
8399int i;
8400_ACEOF
8401if ac_fn_c_try_compile "$LINENO"
8402then :
8403  xorg_cv_cc_flag_unknown_warning_option=yes
8404else case e in #(
8405  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8406esac
8407fi
8408rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8409esac
8410fi
8411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8412printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8413	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8414	CFLAGS="$xorg_testset_save_CFLAGS"
8415fi
8416
8417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8418	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8419		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8420	fi
8421	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8422	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8423printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8424if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8425then :
8426  printf %s "(cached) " >&6
8427else case e in #(
8428  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8429/* end confdefs.h.  */
8430int i;
8431_ACEOF
8432if ac_fn_c_try_compile "$LINENO"
8433then :
8434  xorg_cv_cc_flag_unused_command_line_argument=yes
8435else case e in #(
8436  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8437esac
8438fi
8439rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8440esac
8441fi
8442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8443printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8444	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8445	CFLAGS="$xorg_testset_save_CFLAGS"
8446fi
8447
8448found="no"
8449
8450	if test $found = "no" ; then
8451		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8452			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8453		fi
8454
8455		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8456			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8457		fi
8458
8459		CFLAGS="$CFLAGS -Werror=trigraphs"
8460
8461		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8462printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8463		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8464		if eval test \${$cacheid+y}
8465then :
8466  printf %s "(cached) " >&6
8467else case e in #(
8468  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8469/* end confdefs.h.  */
8470int i;
8471int
8472main (void)
8473{
8474
8475  ;
8476  return 0;
8477}
8478_ACEOF
8479if ac_fn_c_try_link "$LINENO"
8480then :
8481  eval $cacheid=yes
8482else case e in #(
8483  e) eval $cacheid=no ;;
8484esac
8485fi
8486rm -f core conftest.err conftest.$ac_objext conftest.beam \
8487    conftest$ac_exeext conftest.$ac_ext ;;
8488esac
8489fi
8490
8491
8492		CFLAGS="$xorg_testset_save_CFLAGS"
8493
8494		eval supported=\$$cacheid
8495		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8496printf "%s\n" "$supported" >&6; }
8497		if test "$supported" = "yes" ; then
8498			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8499			found="yes"
8500		fi
8501	fi
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517xorg_testset_save_CFLAGS="$CFLAGS"
8518
8519if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8520	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8521	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8522printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8523if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8524then :
8525  printf %s "(cached) " >&6
8526else case e in #(
8527  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8528/* end confdefs.h.  */
8529int i;
8530_ACEOF
8531if ac_fn_c_try_compile "$LINENO"
8532then :
8533  xorg_cv_cc_flag_unknown_warning_option=yes
8534else case e in #(
8535  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8536esac
8537fi
8538rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8539esac
8540fi
8541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8542printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8543	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8544	CFLAGS="$xorg_testset_save_CFLAGS"
8545fi
8546
8547if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8548	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8549		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8550	fi
8551	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8552	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8553printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8554if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8555then :
8556  printf %s "(cached) " >&6
8557else case e in #(
8558  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8559/* end confdefs.h.  */
8560int i;
8561_ACEOF
8562if ac_fn_c_try_compile "$LINENO"
8563then :
8564  xorg_cv_cc_flag_unused_command_line_argument=yes
8565else case e in #(
8566  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8567esac
8568fi
8569rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8570esac
8571fi
8572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8573printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8574	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8575	CFLAGS="$xorg_testset_save_CFLAGS"
8576fi
8577
8578found="no"
8579
8580	if test $found = "no" ; then
8581		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8582			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8583		fi
8584
8585		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8586			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8587		fi
8588
8589		CFLAGS="$CFLAGS -Werror=array-bounds"
8590
8591		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8592printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8593		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8594		if eval test \${$cacheid+y}
8595then :
8596  printf %s "(cached) " >&6
8597else case e in #(
8598  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8599/* end confdefs.h.  */
8600int i;
8601int
8602main (void)
8603{
8604
8605  ;
8606  return 0;
8607}
8608_ACEOF
8609if ac_fn_c_try_link "$LINENO"
8610then :
8611  eval $cacheid=yes
8612else case e in #(
8613  e) eval $cacheid=no ;;
8614esac
8615fi
8616rm -f core conftest.err conftest.$ac_objext conftest.beam \
8617    conftest$ac_exeext conftest.$ac_ext ;;
8618esac
8619fi
8620
8621
8622		CFLAGS="$xorg_testset_save_CFLAGS"
8623
8624		eval supported=\$$cacheid
8625		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8626printf "%s\n" "$supported" >&6; }
8627		if test "$supported" = "yes" ; then
8628			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8629			found="yes"
8630		fi
8631	fi
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647xorg_testset_save_CFLAGS="$CFLAGS"
8648
8649if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8650	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8651	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8652printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8653if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8654then :
8655  printf %s "(cached) " >&6
8656else case e in #(
8657  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658/* end confdefs.h.  */
8659int i;
8660_ACEOF
8661if ac_fn_c_try_compile "$LINENO"
8662then :
8663  xorg_cv_cc_flag_unknown_warning_option=yes
8664else case e in #(
8665  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8666esac
8667fi
8668rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8669esac
8670fi
8671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8672printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8673	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8674	CFLAGS="$xorg_testset_save_CFLAGS"
8675fi
8676
8677if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8678	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8679		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8680	fi
8681	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8682	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8683printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8684if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8685then :
8686  printf %s "(cached) " >&6
8687else case e in #(
8688  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689/* end confdefs.h.  */
8690int i;
8691_ACEOF
8692if ac_fn_c_try_compile "$LINENO"
8693then :
8694  xorg_cv_cc_flag_unused_command_line_argument=yes
8695else case e in #(
8696  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8697esac
8698fi
8699rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8700esac
8701fi
8702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8703printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8704	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8705	CFLAGS="$xorg_testset_save_CFLAGS"
8706fi
8707
8708found="no"
8709
8710	if test $found = "no" ; then
8711		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8712			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8713		fi
8714
8715		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8716			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8717		fi
8718
8719		CFLAGS="$CFLAGS -Werror=write-strings"
8720
8721		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8722printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8723		cacheid=xorg_cv_cc_flag__Werror_write_strings
8724		if eval test \${$cacheid+y}
8725then :
8726  printf %s "(cached) " >&6
8727else case e in #(
8728  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729/* end confdefs.h.  */
8730int i;
8731int
8732main (void)
8733{
8734
8735  ;
8736  return 0;
8737}
8738_ACEOF
8739if ac_fn_c_try_link "$LINENO"
8740then :
8741  eval $cacheid=yes
8742else case e in #(
8743  e) eval $cacheid=no ;;
8744esac
8745fi
8746rm -f core conftest.err conftest.$ac_objext conftest.beam \
8747    conftest$ac_exeext conftest.$ac_ext ;;
8748esac
8749fi
8750
8751
8752		CFLAGS="$xorg_testset_save_CFLAGS"
8753
8754		eval supported=\$$cacheid
8755		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8756printf "%s\n" "$supported" >&6; }
8757		if test "$supported" = "yes" ; then
8758			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8759			found="yes"
8760		fi
8761	fi
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777xorg_testset_save_CFLAGS="$CFLAGS"
8778
8779if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8780	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8781	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8782printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8783if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8784then :
8785  printf %s "(cached) " >&6
8786else case e in #(
8787  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788/* end confdefs.h.  */
8789int i;
8790_ACEOF
8791if ac_fn_c_try_compile "$LINENO"
8792then :
8793  xorg_cv_cc_flag_unknown_warning_option=yes
8794else case e in #(
8795  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8796esac
8797fi
8798rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8799esac
8800fi
8801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8802printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8803	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8804	CFLAGS="$xorg_testset_save_CFLAGS"
8805fi
8806
8807if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8808	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8809		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8810	fi
8811	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8812	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8813printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8814if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8815then :
8816  printf %s "(cached) " >&6
8817else case e in #(
8818  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819/* end confdefs.h.  */
8820int i;
8821_ACEOF
8822if ac_fn_c_try_compile "$LINENO"
8823then :
8824  xorg_cv_cc_flag_unused_command_line_argument=yes
8825else case e in #(
8826  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8827esac
8828fi
8829rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8830esac
8831fi
8832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8833printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8834	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8835	CFLAGS="$xorg_testset_save_CFLAGS"
8836fi
8837
8838found="no"
8839
8840	if test $found = "no" ; then
8841		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8842			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8843		fi
8844
8845		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8846			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8847		fi
8848
8849		CFLAGS="$CFLAGS -Werror=address"
8850
8851		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8852printf %s "checking if $CC supports -Werror=address... " >&6; }
8853		cacheid=xorg_cv_cc_flag__Werror_address
8854		if eval test \${$cacheid+y}
8855then :
8856  printf %s "(cached) " >&6
8857else case e in #(
8858  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859/* end confdefs.h.  */
8860int i;
8861int
8862main (void)
8863{
8864
8865  ;
8866  return 0;
8867}
8868_ACEOF
8869if ac_fn_c_try_link "$LINENO"
8870then :
8871  eval $cacheid=yes
8872else case e in #(
8873  e) eval $cacheid=no ;;
8874esac
8875fi
8876rm -f core conftest.err conftest.$ac_objext conftest.beam \
8877    conftest$ac_exeext conftest.$ac_ext ;;
8878esac
8879fi
8880
8881
8882		CFLAGS="$xorg_testset_save_CFLAGS"
8883
8884		eval supported=\$$cacheid
8885		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8886printf "%s\n" "$supported" >&6; }
8887		if test "$supported" = "yes" ; then
8888			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8889			found="yes"
8890		fi
8891	fi
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907xorg_testset_save_CFLAGS="$CFLAGS"
8908
8909if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8910	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8911	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8912printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8913if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8914then :
8915  printf %s "(cached) " >&6
8916else case e in #(
8917  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8918/* end confdefs.h.  */
8919int i;
8920_ACEOF
8921if ac_fn_c_try_compile "$LINENO"
8922then :
8923  xorg_cv_cc_flag_unknown_warning_option=yes
8924else case e in #(
8925  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8926esac
8927fi
8928rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8929esac
8930fi
8931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8932printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8933	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8934	CFLAGS="$xorg_testset_save_CFLAGS"
8935fi
8936
8937if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8938	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8939		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8940	fi
8941	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8942	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8943printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8944if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8945then :
8946  printf %s "(cached) " >&6
8947else case e in #(
8948  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949/* end confdefs.h.  */
8950int i;
8951_ACEOF
8952if ac_fn_c_try_compile "$LINENO"
8953then :
8954  xorg_cv_cc_flag_unused_command_line_argument=yes
8955else case e in #(
8956  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8957esac
8958fi
8959rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8960esac
8961fi
8962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8963printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8964	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8965	CFLAGS="$xorg_testset_save_CFLAGS"
8966fi
8967
8968found="no"
8969
8970	if test $found = "no" ; then
8971		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8972			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8973		fi
8974
8975		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8976			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8977		fi
8978
8979		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8980
8981		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8982printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8983		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8984		if eval test \${$cacheid+y}
8985then :
8986  printf %s "(cached) " >&6
8987else case e in #(
8988  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8989/* end confdefs.h.  */
8990int i;
8991int
8992main (void)
8993{
8994
8995  ;
8996  return 0;
8997}
8998_ACEOF
8999if ac_fn_c_try_link "$LINENO"
9000then :
9001  eval $cacheid=yes
9002else case e in #(
9003  e) eval $cacheid=no ;;
9004esac
9005fi
9006rm -f core conftest.err conftest.$ac_objext conftest.beam \
9007    conftest$ac_exeext conftest.$ac_ext ;;
9008esac
9009fi
9010
9011
9012		CFLAGS="$xorg_testset_save_CFLAGS"
9013
9014		eval supported=\$$cacheid
9015		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9016printf "%s\n" "$supported" >&6; }
9017		if test "$supported" = "yes" ; then
9018			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9019			found="yes"
9020		fi
9021	fi
9022
9023	if test $found = "no" ; then
9024		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9025			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9026		fi
9027
9028		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9029			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9030		fi
9031
9032		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9033
9034		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9035printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9036		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9037		if eval test \${$cacheid+y}
9038then :
9039  printf %s "(cached) " >&6
9040else case e in #(
9041  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042/* end confdefs.h.  */
9043int i;
9044int
9045main (void)
9046{
9047
9048  ;
9049  return 0;
9050}
9051_ACEOF
9052if ac_fn_c_try_link "$LINENO"
9053then :
9054  eval $cacheid=yes
9055else case e in #(
9056  e) eval $cacheid=no ;;
9057esac
9058fi
9059rm -f core conftest.err conftest.$ac_objext conftest.beam \
9060    conftest$ac_exeext conftest.$ac_ext ;;
9061esac
9062fi
9063
9064
9065		CFLAGS="$xorg_testset_save_CFLAGS"
9066
9067		eval supported=\$$cacheid
9068		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9069printf "%s\n" "$supported" >&6; }
9070		if test "$supported" = "yes" ; then
9071			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9072			found="yes"
9073		fi
9074	fi
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090xorg_testset_save_CFLAGS="$CFLAGS"
9091
9092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9093	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9094	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9095printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9096if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9097then :
9098  printf %s "(cached) " >&6
9099else case e in #(
9100  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101/* end confdefs.h.  */
9102int i;
9103_ACEOF
9104if ac_fn_c_try_compile "$LINENO"
9105then :
9106  xorg_cv_cc_flag_unknown_warning_option=yes
9107else case e in #(
9108  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9109esac
9110fi
9111rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9112esac
9113fi
9114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9115printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9116	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9117	CFLAGS="$xorg_testset_save_CFLAGS"
9118fi
9119
9120if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9121	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9122		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9123	fi
9124	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9125	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9126printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9127if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9128then :
9129  printf %s "(cached) " >&6
9130else case e in #(
9131  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9132/* end confdefs.h.  */
9133int i;
9134_ACEOF
9135if ac_fn_c_try_compile "$LINENO"
9136then :
9137  xorg_cv_cc_flag_unused_command_line_argument=yes
9138else case e in #(
9139  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9140esac
9141fi
9142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9143esac
9144fi
9145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9146printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9147	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9148	CFLAGS="$xorg_testset_save_CFLAGS"
9149fi
9150
9151found="no"
9152
9153	if test $found = "no" ; then
9154		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9155			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9156		fi
9157
9158		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9159			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9160		fi
9161
9162		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9163
9164		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9165printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9166		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9167		if eval test \${$cacheid+y}
9168then :
9169  printf %s "(cached) " >&6
9170else case e in #(
9171  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9172/* end confdefs.h.  */
9173int i;
9174int
9175main (void)
9176{
9177
9178  ;
9179  return 0;
9180}
9181_ACEOF
9182if ac_fn_c_try_link "$LINENO"
9183then :
9184  eval $cacheid=yes
9185else case e in #(
9186  e) eval $cacheid=no ;;
9187esac
9188fi
9189rm -f core conftest.err conftest.$ac_objext conftest.beam \
9190    conftest$ac_exeext conftest.$ac_ext ;;
9191esac
9192fi
9193
9194
9195		CFLAGS="$xorg_testset_save_CFLAGS"
9196
9197		eval supported=\$$cacheid
9198		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9199printf "%s\n" "$supported" >&6; }
9200		if test "$supported" = "yes" ; then
9201			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9202			found="yes"
9203		fi
9204	fi
9205
9206 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9207else
9208{ printf "%s\n" "$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
9209printf "%s\n" "$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;}
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223xorg_testset_save_CFLAGS="$CFLAGS"
9224
9225if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9226	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9227	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9228printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9229if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9230then :
9231  printf %s "(cached) " >&6
9232else case e in #(
9233  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234/* end confdefs.h.  */
9235int i;
9236_ACEOF
9237if ac_fn_c_try_compile "$LINENO"
9238then :
9239  xorg_cv_cc_flag_unknown_warning_option=yes
9240else case e in #(
9241  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9242esac
9243fi
9244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9245esac
9246fi
9247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9248printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9249	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9250	CFLAGS="$xorg_testset_save_CFLAGS"
9251fi
9252
9253if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9254	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9255		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9256	fi
9257	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9258	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9259printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9260if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9261then :
9262  printf %s "(cached) " >&6
9263else case e in #(
9264  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9265/* end confdefs.h.  */
9266int i;
9267_ACEOF
9268if ac_fn_c_try_compile "$LINENO"
9269then :
9270  xorg_cv_cc_flag_unused_command_line_argument=yes
9271else case e in #(
9272  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9273esac
9274fi
9275rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9276esac
9277fi
9278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9279printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9280	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9281	CFLAGS="$xorg_testset_save_CFLAGS"
9282fi
9283
9284found="no"
9285
9286	if test $found = "no" ; then
9287		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9288			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9289		fi
9290
9291		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9292			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9293		fi
9294
9295		CFLAGS="$CFLAGS -Wimplicit"
9296
9297		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9298printf %s "checking if $CC supports -Wimplicit... " >&6; }
9299		cacheid=xorg_cv_cc_flag__Wimplicit
9300		if eval test \${$cacheid+y}
9301then :
9302  printf %s "(cached) " >&6
9303else case e in #(
9304  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9305/* end confdefs.h.  */
9306int i;
9307int
9308main (void)
9309{
9310
9311  ;
9312  return 0;
9313}
9314_ACEOF
9315if ac_fn_c_try_link "$LINENO"
9316then :
9317  eval $cacheid=yes
9318else case e in #(
9319  e) eval $cacheid=no ;;
9320esac
9321fi
9322rm -f core conftest.err conftest.$ac_objext conftest.beam \
9323    conftest$ac_exeext conftest.$ac_ext ;;
9324esac
9325fi
9326
9327
9328		CFLAGS="$xorg_testset_save_CFLAGS"
9329
9330		eval supported=\$$cacheid
9331		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9332printf "%s\n" "$supported" >&6; }
9333		if test "$supported" = "yes" ; then
9334			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9335			found="yes"
9336		fi
9337	fi
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353xorg_testset_save_CFLAGS="$CFLAGS"
9354
9355if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9356	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9357	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9358printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9359if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9360then :
9361  printf %s "(cached) " >&6
9362else case e in #(
9363  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364/* end confdefs.h.  */
9365int i;
9366_ACEOF
9367if ac_fn_c_try_compile "$LINENO"
9368then :
9369  xorg_cv_cc_flag_unknown_warning_option=yes
9370else case e in #(
9371  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9372esac
9373fi
9374rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9375esac
9376fi
9377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9378printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9379	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9380	CFLAGS="$xorg_testset_save_CFLAGS"
9381fi
9382
9383if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9384	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9385		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9386	fi
9387	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9388	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9389printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9390if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9391then :
9392  printf %s "(cached) " >&6
9393else case e in #(
9394  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9395/* end confdefs.h.  */
9396int i;
9397_ACEOF
9398if ac_fn_c_try_compile "$LINENO"
9399then :
9400  xorg_cv_cc_flag_unused_command_line_argument=yes
9401else case e in #(
9402  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9403esac
9404fi
9405rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9406esac
9407fi
9408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9409printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9410	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9411	CFLAGS="$xorg_testset_save_CFLAGS"
9412fi
9413
9414found="no"
9415
9416	if test $found = "no" ; then
9417		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9418			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9419		fi
9420
9421		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9422			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9423		fi
9424
9425		CFLAGS="$CFLAGS -Wnonnull"
9426
9427		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9428printf %s "checking if $CC supports -Wnonnull... " >&6; }
9429		cacheid=xorg_cv_cc_flag__Wnonnull
9430		if eval test \${$cacheid+y}
9431then :
9432  printf %s "(cached) " >&6
9433else case e in #(
9434  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9435/* end confdefs.h.  */
9436int i;
9437int
9438main (void)
9439{
9440
9441  ;
9442  return 0;
9443}
9444_ACEOF
9445if ac_fn_c_try_link "$LINENO"
9446then :
9447  eval $cacheid=yes
9448else case e in #(
9449  e) eval $cacheid=no ;;
9450esac
9451fi
9452rm -f core conftest.err conftest.$ac_objext conftest.beam \
9453    conftest$ac_exeext conftest.$ac_ext ;;
9454esac
9455fi
9456
9457
9458		CFLAGS="$xorg_testset_save_CFLAGS"
9459
9460		eval supported=\$$cacheid
9461		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9462printf "%s\n" "$supported" >&6; }
9463		if test "$supported" = "yes" ; then
9464			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9465			found="yes"
9466		fi
9467	fi
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483xorg_testset_save_CFLAGS="$CFLAGS"
9484
9485if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9486	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9487	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9488printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9489if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9490then :
9491  printf %s "(cached) " >&6
9492else case e in #(
9493  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9494/* end confdefs.h.  */
9495int i;
9496_ACEOF
9497if ac_fn_c_try_compile "$LINENO"
9498then :
9499  xorg_cv_cc_flag_unknown_warning_option=yes
9500else case e in #(
9501  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9502esac
9503fi
9504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9505esac
9506fi
9507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9508printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9509	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9510	CFLAGS="$xorg_testset_save_CFLAGS"
9511fi
9512
9513if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9514	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9515		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9516	fi
9517	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9518	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9519printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9520if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9521then :
9522  printf %s "(cached) " >&6
9523else case e in #(
9524  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9525/* end confdefs.h.  */
9526int i;
9527_ACEOF
9528if ac_fn_c_try_compile "$LINENO"
9529then :
9530  xorg_cv_cc_flag_unused_command_line_argument=yes
9531else case e in #(
9532  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9533esac
9534fi
9535rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9536esac
9537fi
9538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9539printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9540	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9541	CFLAGS="$xorg_testset_save_CFLAGS"
9542fi
9543
9544found="no"
9545
9546	if test $found = "no" ; then
9547		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9548			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9549		fi
9550
9551		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9552			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9553		fi
9554
9555		CFLAGS="$CFLAGS -Winit-self"
9556
9557		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9558printf %s "checking if $CC supports -Winit-self... " >&6; }
9559		cacheid=xorg_cv_cc_flag__Winit_self
9560		if eval test \${$cacheid+y}
9561then :
9562  printf %s "(cached) " >&6
9563else case e in #(
9564  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9565/* end confdefs.h.  */
9566int i;
9567int
9568main (void)
9569{
9570
9571  ;
9572  return 0;
9573}
9574_ACEOF
9575if ac_fn_c_try_link "$LINENO"
9576then :
9577  eval $cacheid=yes
9578else case e in #(
9579  e) eval $cacheid=no ;;
9580esac
9581fi
9582rm -f core conftest.err conftest.$ac_objext conftest.beam \
9583    conftest$ac_exeext conftest.$ac_ext ;;
9584esac
9585fi
9586
9587
9588		CFLAGS="$xorg_testset_save_CFLAGS"
9589
9590		eval supported=\$$cacheid
9591		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9592printf "%s\n" "$supported" >&6; }
9593		if test "$supported" = "yes" ; then
9594			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9595			found="yes"
9596		fi
9597	fi
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613xorg_testset_save_CFLAGS="$CFLAGS"
9614
9615if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9616	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9617	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9618printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9619if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9620then :
9621  printf %s "(cached) " >&6
9622else case e in #(
9623  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9624/* end confdefs.h.  */
9625int i;
9626_ACEOF
9627if ac_fn_c_try_compile "$LINENO"
9628then :
9629  xorg_cv_cc_flag_unknown_warning_option=yes
9630else case e in #(
9631  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9632esac
9633fi
9634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9635esac
9636fi
9637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9638printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9639	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9640	CFLAGS="$xorg_testset_save_CFLAGS"
9641fi
9642
9643if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9644	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9645		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9646	fi
9647	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9648	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9649printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9650if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9651then :
9652  printf %s "(cached) " >&6
9653else case e in #(
9654  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655/* end confdefs.h.  */
9656int i;
9657_ACEOF
9658if ac_fn_c_try_compile "$LINENO"
9659then :
9660  xorg_cv_cc_flag_unused_command_line_argument=yes
9661else case e in #(
9662  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9663esac
9664fi
9665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9666esac
9667fi
9668{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9669printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9670	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9671	CFLAGS="$xorg_testset_save_CFLAGS"
9672fi
9673
9674found="no"
9675
9676	if test $found = "no" ; then
9677		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9678			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9679		fi
9680
9681		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9682			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9683		fi
9684
9685		CFLAGS="$CFLAGS -Wmain"
9686
9687		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9688printf %s "checking if $CC supports -Wmain... " >&6; }
9689		cacheid=xorg_cv_cc_flag__Wmain
9690		if eval test \${$cacheid+y}
9691then :
9692  printf %s "(cached) " >&6
9693else case e in #(
9694  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9695/* end confdefs.h.  */
9696int i;
9697int
9698main (void)
9699{
9700
9701  ;
9702  return 0;
9703}
9704_ACEOF
9705if ac_fn_c_try_link "$LINENO"
9706then :
9707  eval $cacheid=yes
9708else case e in #(
9709  e) eval $cacheid=no ;;
9710esac
9711fi
9712rm -f core conftest.err conftest.$ac_objext conftest.beam \
9713    conftest$ac_exeext conftest.$ac_ext ;;
9714esac
9715fi
9716
9717
9718		CFLAGS="$xorg_testset_save_CFLAGS"
9719
9720		eval supported=\$$cacheid
9721		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9722printf "%s\n" "$supported" >&6; }
9723		if test "$supported" = "yes" ; then
9724			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9725			found="yes"
9726		fi
9727	fi
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743xorg_testset_save_CFLAGS="$CFLAGS"
9744
9745if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9746	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9747	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9748printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9749if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9750then :
9751  printf %s "(cached) " >&6
9752else case e in #(
9753  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754/* end confdefs.h.  */
9755int i;
9756_ACEOF
9757if ac_fn_c_try_compile "$LINENO"
9758then :
9759  xorg_cv_cc_flag_unknown_warning_option=yes
9760else case e in #(
9761  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9762esac
9763fi
9764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9765esac
9766fi
9767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9768printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9769	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9770	CFLAGS="$xorg_testset_save_CFLAGS"
9771fi
9772
9773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9774	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9775		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9776	fi
9777	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9778	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9779printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9780if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9781then :
9782  printf %s "(cached) " >&6
9783else case e in #(
9784  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785/* end confdefs.h.  */
9786int i;
9787_ACEOF
9788if ac_fn_c_try_compile "$LINENO"
9789then :
9790  xorg_cv_cc_flag_unused_command_line_argument=yes
9791else case e in #(
9792  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9793esac
9794fi
9795rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9796esac
9797fi
9798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9799printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9800	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9801	CFLAGS="$xorg_testset_save_CFLAGS"
9802fi
9803
9804found="no"
9805
9806	if test $found = "no" ; then
9807		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9808			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9809		fi
9810
9811		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9812			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9813		fi
9814
9815		CFLAGS="$CFLAGS -Wmissing-braces"
9816
9817		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9818printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9819		cacheid=xorg_cv_cc_flag__Wmissing_braces
9820		if eval test \${$cacheid+y}
9821then :
9822  printf %s "(cached) " >&6
9823else case e in #(
9824  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9825/* end confdefs.h.  */
9826int i;
9827int
9828main (void)
9829{
9830
9831  ;
9832  return 0;
9833}
9834_ACEOF
9835if ac_fn_c_try_link "$LINENO"
9836then :
9837  eval $cacheid=yes
9838else case e in #(
9839  e) eval $cacheid=no ;;
9840esac
9841fi
9842rm -f core conftest.err conftest.$ac_objext conftest.beam \
9843    conftest$ac_exeext conftest.$ac_ext ;;
9844esac
9845fi
9846
9847
9848		CFLAGS="$xorg_testset_save_CFLAGS"
9849
9850		eval supported=\$$cacheid
9851		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9852printf "%s\n" "$supported" >&6; }
9853		if test "$supported" = "yes" ; then
9854			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9855			found="yes"
9856		fi
9857	fi
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873xorg_testset_save_CFLAGS="$CFLAGS"
9874
9875if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9876	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9877	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9878printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9879if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9880then :
9881  printf %s "(cached) " >&6
9882else case e in #(
9883  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9884/* end confdefs.h.  */
9885int i;
9886_ACEOF
9887if ac_fn_c_try_compile "$LINENO"
9888then :
9889  xorg_cv_cc_flag_unknown_warning_option=yes
9890else case e in #(
9891  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9892esac
9893fi
9894rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9895esac
9896fi
9897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9898printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9899	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9900	CFLAGS="$xorg_testset_save_CFLAGS"
9901fi
9902
9903if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9904	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9905		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9906	fi
9907	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9908	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9909printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9910if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9911then :
9912  printf %s "(cached) " >&6
9913else case e in #(
9914  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915/* end confdefs.h.  */
9916int i;
9917_ACEOF
9918if ac_fn_c_try_compile "$LINENO"
9919then :
9920  xorg_cv_cc_flag_unused_command_line_argument=yes
9921else case e in #(
9922  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9923esac
9924fi
9925rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9926esac
9927fi
9928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9929printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9930	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9931	CFLAGS="$xorg_testset_save_CFLAGS"
9932fi
9933
9934found="no"
9935
9936	if test $found = "no" ; then
9937		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9938			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9939		fi
9940
9941		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9942			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9943		fi
9944
9945		CFLAGS="$CFLAGS -Wsequence-point"
9946
9947		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9948printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9949		cacheid=xorg_cv_cc_flag__Wsequence_point
9950		if eval test \${$cacheid+y}
9951then :
9952  printf %s "(cached) " >&6
9953else case e in #(
9954  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9955/* end confdefs.h.  */
9956int i;
9957int
9958main (void)
9959{
9960
9961  ;
9962  return 0;
9963}
9964_ACEOF
9965if ac_fn_c_try_link "$LINENO"
9966then :
9967  eval $cacheid=yes
9968else case e in #(
9969  e) eval $cacheid=no ;;
9970esac
9971fi
9972rm -f core conftest.err conftest.$ac_objext conftest.beam \
9973    conftest$ac_exeext conftest.$ac_ext ;;
9974esac
9975fi
9976
9977
9978		CFLAGS="$xorg_testset_save_CFLAGS"
9979
9980		eval supported=\$$cacheid
9981		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9982printf "%s\n" "$supported" >&6; }
9983		if test "$supported" = "yes" ; then
9984			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9985			found="yes"
9986		fi
9987	fi
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003xorg_testset_save_CFLAGS="$CFLAGS"
10004
10005if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10006	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10007	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10008printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10009if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10010then :
10011  printf %s "(cached) " >&6
10012else case e in #(
10013  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014/* end confdefs.h.  */
10015int i;
10016_ACEOF
10017if ac_fn_c_try_compile "$LINENO"
10018then :
10019  xorg_cv_cc_flag_unknown_warning_option=yes
10020else case e in #(
10021  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10022esac
10023fi
10024rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10025esac
10026fi
10027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10028printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10029	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10030	CFLAGS="$xorg_testset_save_CFLAGS"
10031fi
10032
10033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10034	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10035		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10036	fi
10037	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10038	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10039printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10040if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10041then :
10042  printf %s "(cached) " >&6
10043else case e in #(
10044  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045/* end confdefs.h.  */
10046int i;
10047_ACEOF
10048if ac_fn_c_try_compile "$LINENO"
10049then :
10050  xorg_cv_cc_flag_unused_command_line_argument=yes
10051else case e in #(
10052  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10053esac
10054fi
10055rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10056esac
10057fi
10058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10059printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10060	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10061	CFLAGS="$xorg_testset_save_CFLAGS"
10062fi
10063
10064found="no"
10065
10066	if test $found = "no" ; then
10067		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10068			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10069		fi
10070
10071		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10072			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10073		fi
10074
10075		CFLAGS="$CFLAGS -Wreturn-type"
10076
10077		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10078printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10079		cacheid=xorg_cv_cc_flag__Wreturn_type
10080		if eval test \${$cacheid+y}
10081then :
10082  printf %s "(cached) " >&6
10083else case e in #(
10084  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085/* end confdefs.h.  */
10086int i;
10087int
10088main (void)
10089{
10090
10091  ;
10092  return 0;
10093}
10094_ACEOF
10095if ac_fn_c_try_link "$LINENO"
10096then :
10097  eval $cacheid=yes
10098else case e in #(
10099  e) eval $cacheid=no ;;
10100esac
10101fi
10102rm -f core conftest.err conftest.$ac_objext conftest.beam \
10103    conftest$ac_exeext conftest.$ac_ext ;;
10104esac
10105fi
10106
10107
10108		CFLAGS="$xorg_testset_save_CFLAGS"
10109
10110		eval supported=\$$cacheid
10111		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10112printf "%s\n" "$supported" >&6; }
10113		if test "$supported" = "yes" ; then
10114			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10115			found="yes"
10116		fi
10117	fi
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133xorg_testset_save_CFLAGS="$CFLAGS"
10134
10135if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10136	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10137	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10138printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10139if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10140then :
10141  printf %s "(cached) " >&6
10142else case e in #(
10143  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144/* end confdefs.h.  */
10145int i;
10146_ACEOF
10147if ac_fn_c_try_compile "$LINENO"
10148then :
10149  xorg_cv_cc_flag_unknown_warning_option=yes
10150else case e in #(
10151  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10152esac
10153fi
10154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10155esac
10156fi
10157{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10158printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10159	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10160	CFLAGS="$xorg_testset_save_CFLAGS"
10161fi
10162
10163if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10164	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10165		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10166	fi
10167	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10168	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10169printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10170if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10171then :
10172  printf %s "(cached) " >&6
10173else case e in #(
10174  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175/* end confdefs.h.  */
10176int i;
10177_ACEOF
10178if ac_fn_c_try_compile "$LINENO"
10179then :
10180  xorg_cv_cc_flag_unused_command_line_argument=yes
10181else case e in #(
10182  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10183esac
10184fi
10185rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10186esac
10187fi
10188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10189printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10190	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10191	CFLAGS="$xorg_testset_save_CFLAGS"
10192fi
10193
10194found="no"
10195
10196	if test $found = "no" ; then
10197		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10198			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10199		fi
10200
10201		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10202			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10203		fi
10204
10205		CFLAGS="$CFLAGS -Wtrigraphs"
10206
10207		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10208printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10209		cacheid=xorg_cv_cc_flag__Wtrigraphs
10210		if eval test \${$cacheid+y}
10211then :
10212  printf %s "(cached) " >&6
10213else case e in #(
10214  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10215/* end confdefs.h.  */
10216int i;
10217int
10218main (void)
10219{
10220
10221  ;
10222  return 0;
10223}
10224_ACEOF
10225if ac_fn_c_try_link "$LINENO"
10226then :
10227  eval $cacheid=yes
10228else case e in #(
10229  e) eval $cacheid=no ;;
10230esac
10231fi
10232rm -f core conftest.err conftest.$ac_objext conftest.beam \
10233    conftest$ac_exeext conftest.$ac_ext ;;
10234esac
10235fi
10236
10237
10238		CFLAGS="$xorg_testset_save_CFLAGS"
10239
10240		eval supported=\$$cacheid
10241		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10242printf "%s\n" "$supported" >&6; }
10243		if test "$supported" = "yes" ; then
10244			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10245			found="yes"
10246		fi
10247	fi
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263xorg_testset_save_CFLAGS="$CFLAGS"
10264
10265if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10266	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10267	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10268printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10269if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10270then :
10271  printf %s "(cached) " >&6
10272else case e in #(
10273  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274/* end confdefs.h.  */
10275int i;
10276_ACEOF
10277if ac_fn_c_try_compile "$LINENO"
10278then :
10279  xorg_cv_cc_flag_unknown_warning_option=yes
10280else case e in #(
10281  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10282esac
10283fi
10284rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10285esac
10286fi
10287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10288printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10289	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10290	CFLAGS="$xorg_testset_save_CFLAGS"
10291fi
10292
10293if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10294	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10295		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10296	fi
10297	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10298	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10299printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10300if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10301then :
10302  printf %s "(cached) " >&6
10303else case e in #(
10304  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10305/* end confdefs.h.  */
10306int i;
10307_ACEOF
10308if ac_fn_c_try_compile "$LINENO"
10309then :
10310  xorg_cv_cc_flag_unused_command_line_argument=yes
10311else case e in #(
10312  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10313esac
10314fi
10315rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10316esac
10317fi
10318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10319printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10320	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10321	CFLAGS="$xorg_testset_save_CFLAGS"
10322fi
10323
10324found="no"
10325
10326	if test $found = "no" ; then
10327		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10328			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10329		fi
10330
10331		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10332			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10333		fi
10334
10335		CFLAGS="$CFLAGS -Warray-bounds"
10336
10337		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10338printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10339		cacheid=xorg_cv_cc_flag__Warray_bounds
10340		if eval test \${$cacheid+y}
10341then :
10342  printf %s "(cached) " >&6
10343else case e in #(
10344  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10345/* end confdefs.h.  */
10346int i;
10347int
10348main (void)
10349{
10350
10351  ;
10352  return 0;
10353}
10354_ACEOF
10355if ac_fn_c_try_link "$LINENO"
10356then :
10357  eval $cacheid=yes
10358else case e in #(
10359  e) eval $cacheid=no ;;
10360esac
10361fi
10362rm -f core conftest.err conftest.$ac_objext conftest.beam \
10363    conftest$ac_exeext conftest.$ac_ext ;;
10364esac
10365fi
10366
10367
10368		CFLAGS="$xorg_testset_save_CFLAGS"
10369
10370		eval supported=\$$cacheid
10371		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10372printf "%s\n" "$supported" >&6; }
10373		if test "$supported" = "yes" ; then
10374			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10375			found="yes"
10376		fi
10377	fi
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393xorg_testset_save_CFLAGS="$CFLAGS"
10394
10395if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10396	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10397	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10398printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10399if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10400then :
10401  printf %s "(cached) " >&6
10402else case e in #(
10403  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404/* end confdefs.h.  */
10405int i;
10406_ACEOF
10407if ac_fn_c_try_compile "$LINENO"
10408then :
10409  xorg_cv_cc_flag_unknown_warning_option=yes
10410else case e in #(
10411  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10412esac
10413fi
10414rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10415esac
10416fi
10417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10418printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10419	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10420	CFLAGS="$xorg_testset_save_CFLAGS"
10421fi
10422
10423if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10424	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10425		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10426	fi
10427	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10428	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10429printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10430if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10431then :
10432  printf %s "(cached) " >&6
10433else case e in #(
10434  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435/* end confdefs.h.  */
10436int i;
10437_ACEOF
10438if ac_fn_c_try_compile "$LINENO"
10439then :
10440  xorg_cv_cc_flag_unused_command_line_argument=yes
10441else case e in #(
10442  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10443esac
10444fi
10445rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10446esac
10447fi
10448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10449printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10450	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10451	CFLAGS="$xorg_testset_save_CFLAGS"
10452fi
10453
10454found="no"
10455
10456	if test $found = "no" ; then
10457		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10458			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10459		fi
10460
10461		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10462			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10463		fi
10464
10465		CFLAGS="$CFLAGS -Wwrite-strings"
10466
10467		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10468printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10469		cacheid=xorg_cv_cc_flag__Wwrite_strings
10470		if eval test \${$cacheid+y}
10471then :
10472  printf %s "(cached) " >&6
10473else case e in #(
10474  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475/* end confdefs.h.  */
10476int i;
10477int
10478main (void)
10479{
10480
10481  ;
10482  return 0;
10483}
10484_ACEOF
10485if ac_fn_c_try_link "$LINENO"
10486then :
10487  eval $cacheid=yes
10488else case e in #(
10489  e) eval $cacheid=no ;;
10490esac
10491fi
10492rm -f core conftest.err conftest.$ac_objext conftest.beam \
10493    conftest$ac_exeext conftest.$ac_ext ;;
10494esac
10495fi
10496
10497
10498		CFLAGS="$xorg_testset_save_CFLAGS"
10499
10500		eval supported=\$$cacheid
10501		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10502printf "%s\n" "$supported" >&6; }
10503		if test "$supported" = "yes" ; then
10504			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10505			found="yes"
10506		fi
10507	fi
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523xorg_testset_save_CFLAGS="$CFLAGS"
10524
10525if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10526	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10527	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10528printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10529if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10530then :
10531  printf %s "(cached) " >&6
10532else case e in #(
10533  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10534/* end confdefs.h.  */
10535int i;
10536_ACEOF
10537if ac_fn_c_try_compile "$LINENO"
10538then :
10539  xorg_cv_cc_flag_unknown_warning_option=yes
10540else case e in #(
10541  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10542esac
10543fi
10544rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10545esac
10546fi
10547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10548printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10549	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10550	CFLAGS="$xorg_testset_save_CFLAGS"
10551fi
10552
10553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10554	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10555		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10556	fi
10557	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10558	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10559printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10560if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10561then :
10562  printf %s "(cached) " >&6
10563else case e in #(
10564  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10565/* end confdefs.h.  */
10566int i;
10567_ACEOF
10568if ac_fn_c_try_compile "$LINENO"
10569then :
10570  xorg_cv_cc_flag_unused_command_line_argument=yes
10571else case e in #(
10572  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10573esac
10574fi
10575rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10576esac
10577fi
10578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10579printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10580	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10581	CFLAGS="$xorg_testset_save_CFLAGS"
10582fi
10583
10584found="no"
10585
10586	if test $found = "no" ; then
10587		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10588			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10589		fi
10590
10591		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10592			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10593		fi
10594
10595		CFLAGS="$CFLAGS -Waddress"
10596
10597		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10598printf %s "checking if $CC supports -Waddress... " >&6; }
10599		cacheid=xorg_cv_cc_flag__Waddress
10600		if eval test \${$cacheid+y}
10601then :
10602  printf %s "(cached) " >&6
10603else case e in #(
10604  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605/* end confdefs.h.  */
10606int i;
10607int
10608main (void)
10609{
10610
10611  ;
10612  return 0;
10613}
10614_ACEOF
10615if ac_fn_c_try_link "$LINENO"
10616then :
10617  eval $cacheid=yes
10618else case e in #(
10619  e) eval $cacheid=no ;;
10620esac
10621fi
10622rm -f core conftest.err conftest.$ac_objext conftest.beam \
10623    conftest$ac_exeext conftest.$ac_ext ;;
10624esac
10625fi
10626
10627
10628		CFLAGS="$xorg_testset_save_CFLAGS"
10629
10630		eval supported=\$$cacheid
10631		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10632printf "%s\n" "$supported" >&6; }
10633		if test "$supported" = "yes" ; then
10634			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10635			found="yes"
10636		fi
10637	fi
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653xorg_testset_save_CFLAGS="$CFLAGS"
10654
10655if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10656	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10657	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10658printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10659if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10660then :
10661  printf %s "(cached) " >&6
10662else case e in #(
10663  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10664/* end confdefs.h.  */
10665int i;
10666_ACEOF
10667if ac_fn_c_try_compile "$LINENO"
10668then :
10669  xorg_cv_cc_flag_unknown_warning_option=yes
10670else case e in #(
10671  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10672esac
10673fi
10674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10675esac
10676fi
10677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10678printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10679	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10680	CFLAGS="$xorg_testset_save_CFLAGS"
10681fi
10682
10683if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10684	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10685		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10686	fi
10687	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10688	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10689printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10690if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10691then :
10692  printf %s "(cached) " >&6
10693else case e in #(
10694  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695/* end confdefs.h.  */
10696int i;
10697_ACEOF
10698if ac_fn_c_try_compile "$LINENO"
10699then :
10700  xorg_cv_cc_flag_unused_command_line_argument=yes
10701else case e in #(
10702  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10703esac
10704fi
10705rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10706esac
10707fi
10708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10709printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10710	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10711	CFLAGS="$xorg_testset_save_CFLAGS"
10712fi
10713
10714found="no"
10715
10716	if test $found = "no" ; then
10717		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10718			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10719		fi
10720
10721		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10722			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10723		fi
10724
10725		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10726
10727		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10728printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10729		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10730		if eval test \${$cacheid+y}
10731then :
10732  printf %s "(cached) " >&6
10733else case e in #(
10734  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10735/* end confdefs.h.  */
10736int i;
10737int
10738main (void)
10739{
10740
10741  ;
10742  return 0;
10743}
10744_ACEOF
10745if ac_fn_c_try_link "$LINENO"
10746then :
10747  eval $cacheid=yes
10748else case e in #(
10749  e) eval $cacheid=no ;;
10750esac
10751fi
10752rm -f core conftest.err conftest.$ac_objext conftest.beam \
10753    conftest$ac_exeext conftest.$ac_ext ;;
10754esac
10755fi
10756
10757
10758		CFLAGS="$xorg_testset_save_CFLAGS"
10759
10760		eval supported=\$$cacheid
10761		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10762printf "%s\n" "$supported" >&6; }
10763		if test "$supported" = "yes" ; then
10764			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10765			found="yes"
10766		fi
10767	fi
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783xorg_testset_save_CFLAGS="$CFLAGS"
10784
10785if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10786	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10787	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10788printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10789if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10790then :
10791  printf %s "(cached) " >&6
10792else case e in #(
10793  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794/* end confdefs.h.  */
10795int i;
10796_ACEOF
10797if ac_fn_c_try_compile "$LINENO"
10798then :
10799  xorg_cv_cc_flag_unknown_warning_option=yes
10800else case e in #(
10801  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10802esac
10803fi
10804rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10805esac
10806fi
10807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10808printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10809	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10810	CFLAGS="$xorg_testset_save_CFLAGS"
10811fi
10812
10813if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10814	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10815		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10816	fi
10817	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10818	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10819printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10820if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10821then :
10822  printf %s "(cached) " >&6
10823else case e in #(
10824  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825/* end confdefs.h.  */
10826int i;
10827_ACEOF
10828if ac_fn_c_try_compile "$LINENO"
10829then :
10830  xorg_cv_cc_flag_unused_command_line_argument=yes
10831else case e in #(
10832  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10833esac
10834fi
10835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10836esac
10837fi
10838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10839printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10840	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10841	CFLAGS="$xorg_testset_save_CFLAGS"
10842fi
10843
10844found="no"
10845
10846	if test $found = "no" ; then
10847		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10848			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10849		fi
10850
10851		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10852			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10853		fi
10854
10855		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10856
10857		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10858printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10859		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10860		if eval test \${$cacheid+y}
10861then :
10862  printf %s "(cached) " >&6
10863else case e in #(
10864  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865/* end confdefs.h.  */
10866int i;
10867int
10868main (void)
10869{
10870
10871  ;
10872  return 0;
10873}
10874_ACEOF
10875if ac_fn_c_try_link "$LINENO"
10876then :
10877  eval $cacheid=yes
10878else case e in #(
10879  e) eval $cacheid=no ;;
10880esac
10881fi
10882rm -f core conftest.err conftest.$ac_objext conftest.beam \
10883    conftest$ac_exeext conftest.$ac_ext ;;
10884esac
10885fi
10886
10887
10888		CFLAGS="$xorg_testset_save_CFLAGS"
10889
10890		eval supported=\$$cacheid
10891		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10892printf "%s\n" "$supported" >&6; }
10893		if test "$supported" = "yes" ; then
10894			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10895			found="yes"
10896		fi
10897	fi
10898
10899
10900fi
10901
10902
10903
10904
10905
10906
10907
10908		CWARNFLAGS="$BASE_CFLAGS"
10909		if  test "x$GCC" = xyes ; then
10910		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10911		fi
10912
10913
10914
10915
10916
10917
10918
10919
10920# Check whether --enable-strict-compilation was given.
10921if test ${enable_strict_compilation+y}
10922then :
10923  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10924else case e in #(
10925  e) STRICT_COMPILE=no ;;
10926esac
10927fi
10928
10929
10930
10931
10932
10933
10934STRICT_CFLAGS=""
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948xorg_testset_save_CFLAGS="$CFLAGS"
10949
10950if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10951	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10952	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10953printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10954if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10955then :
10956  printf %s "(cached) " >&6
10957else case e in #(
10958  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10959/* end confdefs.h.  */
10960int i;
10961_ACEOF
10962if ac_fn_c_try_compile "$LINENO"
10963then :
10964  xorg_cv_cc_flag_unknown_warning_option=yes
10965else case e in #(
10966  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10967esac
10968fi
10969rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10970esac
10971fi
10972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10973printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10974	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10975	CFLAGS="$xorg_testset_save_CFLAGS"
10976fi
10977
10978if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10979	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10980		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10981	fi
10982	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10983	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10984printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10985if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10986then :
10987  printf %s "(cached) " >&6
10988else case e in #(
10989  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10990/* end confdefs.h.  */
10991int i;
10992_ACEOF
10993if ac_fn_c_try_compile "$LINENO"
10994then :
10995  xorg_cv_cc_flag_unused_command_line_argument=yes
10996else case e in #(
10997  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10998esac
10999fi
11000rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11001esac
11002fi
11003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11004printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11005	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11006	CFLAGS="$xorg_testset_save_CFLAGS"
11007fi
11008
11009found="no"
11010
11011	if test $found = "no" ; then
11012		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11013			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11014		fi
11015
11016		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11017			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11018		fi
11019
11020		CFLAGS="$CFLAGS -pedantic"
11021
11022		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11023printf %s "checking if $CC supports -pedantic... " >&6; }
11024		cacheid=xorg_cv_cc_flag__pedantic
11025		if eval test \${$cacheid+y}
11026then :
11027  printf %s "(cached) " >&6
11028else case e in #(
11029  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11030/* end confdefs.h.  */
11031int i;
11032int
11033main (void)
11034{
11035
11036  ;
11037  return 0;
11038}
11039_ACEOF
11040if ac_fn_c_try_link "$LINENO"
11041then :
11042  eval $cacheid=yes
11043else case e in #(
11044  e) eval $cacheid=no ;;
11045esac
11046fi
11047rm -f core conftest.err conftest.$ac_objext conftest.beam \
11048    conftest$ac_exeext conftest.$ac_ext ;;
11049esac
11050fi
11051
11052
11053		CFLAGS="$xorg_testset_save_CFLAGS"
11054
11055		eval supported=\$$cacheid
11056		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11057printf "%s\n" "$supported" >&6; }
11058		if test "$supported" = "yes" ; then
11059			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11060			found="yes"
11061		fi
11062	fi
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078xorg_testset_save_CFLAGS="$CFLAGS"
11079
11080if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11081	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11082	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11083printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11084if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11085then :
11086  printf %s "(cached) " >&6
11087else case e in #(
11088  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11089/* end confdefs.h.  */
11090int i;
11091_ACEOF
11092if ac_fn_c_try_compile "$LINENO"
11093then :
11094  xorg_cv_cc_flag_unknown_warning_option=yes
11095else case e in #(
11096  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11097esac
11098fi
11099rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11100esac
11101fi
11102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11103printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11104	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11105	CFLAGS="$xorg_testset_save_CFLAGS"
11106fi
11107
11108if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11109	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11110		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11111	fi
11112	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11113	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11114printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11115if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11116then :
11117  printf %s "(cached) " >&6
11118else case e in #(
11119  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11120/* end confdefs.h.  */
11121int i;
11122_ACEOF
11123if ac_fn_c_try_compile "$LINENO"
11124then :
11125  xorg_cv_cc_flag_unused_command_line_argument=yes
11126else case e in #(
11127  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11128esac
11129fi
11130rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11131esac
11132fi
11133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11134printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11135	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11136	CFLAGS="$xorg_testset_save_CFLAGS"
11137fi
11138
11139found="no"
11140
11141	if test $found = "no" ; then
11142		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11143			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11144		fi
11145
11146		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11147			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11148		fi
11149
11150		CFLAGS="$CFLAGS -Werror"
11151
11152		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11153printf %s "checking if $CC supports -Werror... " >&6; }
11154		cacheid=xorg_cv_cc_flag__Werror
11155		if eval test \${$cacheid+y}
11156then :
11157  printf %s "(cached) " >&6
11158else case e in #(
11159  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11160/* end confdefs.h.  */
11161int i;
11162int
11163main (void)
11164{
11165
11166  ;
11167  return 0;
11168}
11169_ACEOF
11170if ac_fn_c_try_link "$LINENO"
11171then :
11172  eval $cacheid=yes
11173else case e in #(
11174  e) eval $cacheid=no ;;
11175esac
11176fi
11177rm -f core conftest.err conftest.$ac_objext conftest.beam \
11178    conftest$ac_exeext conftest.$ac_ext ;;
11179esac
11180fi
11181
11182
11183		CFLAGS="$xorg_testset_save_CFLAGS"
11184
11185		eval supported=\$$cacheid
11186		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11187printf "%s\n" "$supported" >&6; }
11188		if test "$supported" = "yes" ; then
11189			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11190			found="yes"
11191		fi
11192	fi
11193
11194	if test $found = "no" ; then
11195		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11196			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11197		fi
11198
11199		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11200			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11201		fi
11202
11203		CFLAGS="$CFLAGS -errwarn"
11204
11205		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11206printf %s "checking if $CC supports -errwarn... " >&6; }
11207		cacheid=xorg_cv_cc_flag__errwarn
11208		if eval test \${$cacheid+y}
11209then :
11210  printf %s "(cached) " >&6
11211else case e in #(
11212  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11213/* end confdefs.h.  */
11214int i;
11215int
11216main (void)
11217{
11218
11219  ;
11220  return 0;
11221}
11222_ACEOF
11223if ac_fn_c_try_link "$LINENO"
11224then :
11225  eval $cacheid=yes
11226else case e in #(
11227  e) eval $cacheid=no ;;
11228esac
11229fi
11230rm -f core conftest.err conftest.$ac_objext conftest.beam \
11231    conftest$ac_exeext conftest.$ac_ext ;;
11232esac
11233fi
11234
11235
11236		CFLAGS="$xorg_testset_save_CFLAGS"
11237
11238		eval supported=\$$cacheid
11239		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11240printf "%s\n" "$supported" >&6; }
11241		if test "$supported" = "yes" ; then
11242			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11243			found="yes"
11244		fi
11245	fi
11246
11247
11248
11249# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11250# activate it with -Werror, so we add it here explicitly.
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264xorg_testset_save_CFLAGS="$CFLAGS"
11265
11266if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11267	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11268	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11269printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11270if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11271then :
11272  printf %s "(cached) " >&6
11273else case e in #(
11274  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11275/* end confdefs.h.  */
11276int i;
11277_ACEOF
11278if ac_fn_c_try_compile "$LINENO"
11279then :
11280  xorg_cv_cc_flag_unknown_warning_option=yes
11281else case e in #(
11282  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11283esac
11284fi
11285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11286esac
11287fi
11288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11289printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11290	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11291	CFLAGS="$xorg_testset_save_CFLAGS"
11292fi
11293
11294if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11295	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11296		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11297	fi
11298	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11299	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11300printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11301if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11302then :
11303  printf %s "(cached) " >&6
11304else case e in #(
11305  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306/* end confdefs.h.  */
11307int i;
11308_ACEOF
11309if ac_fn_c_try_compile "$LINENO"
11310then :
11311  xorg_cv_cc_flag_unused_command_line_argument=yes
11312else case e in #(
11313  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11314esac
11315fi
11316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11317esac
11318fi
11319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11320printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11321	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11322	CFLAGS="$xorg_testset_save_CFLAGS"
11323fi
11324
11325found="no"
11326
11327	if test $found = "no" ; then
11328		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11329			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11330		fi
11331
11332		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11333			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11334		fi
11335
11336		CFLAGS="$CFLAGS -Werror=attributes"
11337
11338		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11339printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11340		cacheid=xorg_cv_cc_flag__Werror_attributes
11341		if eval test \${$cacheid+y}
11342then :
11343  printf %s "(cached) " >&6
11344else case e in #(
11345  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11346/* end confdefs.h.  */
11347int i;
11348int
11349main (void)
11350{
11351
11352  ;
11353  return 0;
11354}
11355_ACEOF
11356if ac_fn_c_try_link "$LINENO"
11357then :
11358  eval $cacheid=yes
11359else case e in #(
11360  e) eval $cacheid=no ;;
11361esac
11362fi
11363rm -f core conftest.err conftest.$ac_objext conftest.beam \
11364    conftest$ac_exeext conftest.$ac_ext ;;
11365esac
11366fi
11367
11368
11369		CFLAGS="$xorg_testset_save_CFLAGS"
11370
11371		eval supported=\$$cacheid
11372		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11373printf "%s\n" "$supported" >&6; }
11374		if test "$supported" = "yes" ; then
11375			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11376			found="yes"
11377		fi
11378	fi
11379
11380
11381
11382if test "x$STRICT_COMPILE" = "xyes"; then
11383    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11384    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11385fi
11386
11387
11388
11389
11390
11391
11392
11393
11394cat >>confdefs.h <<_ACEOF
11395#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11396_ACEOF
11397
11398	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11399	if test "x$PVM" = "x"; then
11400		PVM="0"
11401	fi
11402
11403printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11404
11405	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11406	if test "x$PVP" = "x"; then
11407		PVP="0"
11408	fi
11409
11410printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11411
11412
11413
11414CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11415mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11416|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11417touch \$(top_srcdir)/ChangeLog; \
11418echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11419
11420
11421
11422
11423macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11424INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11425mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11426|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11427touch \$(top_srcdir)/INSTALL; \
11428echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11429
11430
11431
11432
11433
11434
11435case $host_os in
11436    solaris*)
11437        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11438        # check for a man page file found in later versions that use
11439        # traditional section numbers instead
11440        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11441printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11442if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11443then :
11444  printf %s "(cached) " >&6
11445else case e in #(
11446  e) test "$cross_compiling" = yes &&
11447  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11448if test -r "/usr/share/man/man7/attributes.7"; then
11449  ac_cv_file__usr_share_man_man7_attributes_7=yes
11450else
11451  ac_cv_file__usr_share_man_man7_attributes_7=no
11452fi ;;
11453esac
11454fi
11455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11456printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11457if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11458then :
11459  SYSV_MAN_SECTIONS=false
11460else case e in #(
11461  e) SYSV_MAN_SECTIONS=true ;;
11462esac
11463fi
11464
11465        ;;
11466    *) SYSV_MAN_SECTIONS=false ;;
11467esac
11468
11469if test x$APP_MAN_SUFFIX = x    ; then
11470    APP_MAN_SUFFIX=1
11471fi
11472if test x$APP_MAN_DIR = x    ; then
11473    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11474fi
11475
11476if test x$LIB_MAN_SUFFIX = x    ; then
11477    LIB_MAN_SUFFIX=3
11478fi
11479if test x$LIB_MAN_DIR = x    ; then
11480    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11481fi
11482
11483if test x$FILE_MAN_SUFFIX = x    ; then
11484    case $SYSV_MAN_SECTIONS in
11485	true)				FILE_MAN_SUFFIX=4  ;;
11486	*)				FILE_MAN_SUFFIX=5  ;;
11487    esac
11488fi
11489if test x$FILE_MAN_DIR = x    ; then
11490    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11491fi
11492
11493if test x$MISC_MAN_SUFFIX = x    ; then
11494    case $SYSV_MAN_SECTIONS in
11495	true)				MISC_MAN_SUFFIX=5  ;;
11496	*)				MISC_MAN_SUFFIX=7  ;;
11497    esac
11498fi
11499if test x$MISC_MAN_DIR = x    ; then
11500    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11501fi
11502
11503if test x$DRIVER_MAN_SUFFIX = x    ; then
11504    case $SYSV_MAN_SECTIONS in
11505	true)				DRIVER_MAN_SUFFIX=7  ;;
11506	*)				DRIVER_MAN_SUFFIX=4  ;;
11507    esac
11508fi
11509if test x$DRIVER_MAN_DIR = x    ; then
11510    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11511fi
11512
11513if test x$ADMIN_MAN_SUFFIX = x    ; then
11514    case $SYSV_MAN_SECTIONS in
11515	true)				ADMIN_MAN_SUFFIX=1m ;;
11516	*)				ADMIN_MAN_SUFFIX=8  ;;
11517    esac
11518fi
11519if test x$ADMIN_MAN_DIR = x    ; then
11520    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11521fi
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537XORG_MAN_PAGE="X Version 11"
11538
11539MAN_SUBSTS="\
11540	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11541	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11542	-e 's|__xservername__|Xorg|g' \
11543	-e 's|__xconfigfile__|xorg.conf|g' \
11544	-e 's|__projectroot__|\$(prefix)|g' \
11545	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11546	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11547	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11548	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11549	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11550	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11551	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11552
11553
11554
11555# Check whether --enable-silent-rules was given.
11556if test ${enable_silent_rules+y}
11557then :
11558  enableval=$enable_silent_rules;
11559fi
11560
11561case $enable_silent_rules in # (((
11562  yes) AM_DEFAULT_VERBOSITY=0;;
11563   no) AM_DEFAULT_VERBOSITY=1;;
11564    *) AM_DEFAULT_VERBOSITY=0;;
11565esac
11566am_make=${MAKE-make}
11567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11568printf %s "checking whether $am_make supports nested variables... " >&6; }
11569if test ${am_cv_make_support_nested_variables+y}
11570then :
11571  printf %s "(cached) " >&6
11572else case e in #(
11573  e) if printf "%s\n" 'TRUE=$(BAR$(V))
11574BAR0=false
11575BAR1=true
11576V=1
11577am__doit:
11578	@$(TRUE)
11579.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11580  am_cv_make_support_nested_variables=yes
11581else
11582  am_cv_make_support_nested_variables=no
11583fi ;;
11584esac
11585fi
11586{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11587printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11588if test $am_cv_make_support_nested_variables = yes; then
11589    AM_V='$(V)'
11590  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11591else
11592  AM_V=$AM_DEFAULT_VERBOSITY
11593  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11594fi
11595AM_BACKSLASH='\'
11596
11597
11598
11599
11600# Initialize libtool
11601case `pwd` in
11602  *\ * | *\	*)
11603    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11604printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11605esac
11606
11607
11608
11609macro_version='2.4.7'
11610macro_revision='2.4.7'
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625ltmain=$ac_aux_dir/ltmain.sh
11626
11627# Backslashify metacharacters that are still active within
11628# double-quoted strings.
11629sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11630
11631# Same as above, but do not quote variable references.
11632double_quote_subst='s/\(["`\\]\)/\\\1/g'
11633
11634# Sed substitution to delay expansion of an escaped shell variable in a
11635# double_quote_subst'ed string.
11636delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11637
11638# Sed substitution to delay expansion of an escaped single quote.
11639delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11640
11641# Sed substitution to avoid accidental globbing in evaled expressions
11642no_glob_subst='s/\*/\\\*/g'
11643
11644ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11645ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11646ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11647
11648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11649printf %s "checking how to print strings... " >&6; }
11650# Test print first, because it will be a builtin if present.
11651if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11652   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11653  ECHO='print -r --'
11654elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11655  ECHO='printf %s\n'
11656else
11657  # Use this function as a fallback that always works.
11658  func_fallback_echo ()
11659  {
11660    eval 'cat <<_LTECHO_EOF
11661$1
11662_LTECHO_EOF'
11663  }
11664  ECHO='func_fallback_echo'
11665fi
11666
11667# func_echo_all arg...
11668# Invoke $ECHO with all args, space-separated.
11669func_echo_all ()
11670{
11671    $ECHO ""
11672}
11673
11674case $ECHO in
11675  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11676printf "%s\n" "printf" >&6; } ;;
11677  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11678printf "%s\n" "print -r" >&6; } ;;
11679  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11680printf "%s\n" "cat" >&6; } ;;
11681esac
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11697printf %s "checking for a sed that does not truncate output... " >&6; }
11698if test ${ac_cv_path_SED+y}
11699then :
11700  printf %s "(cached) " >&6
11701else case e in #(
11702  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11703     for ac_i in 1 2 3 4 5 6 7; do
11704       ac_script="$ac_script$as_nl$ac_script"
11705     done
11706     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11707     { ac_script=; unset ac_script;}
11708     if test -z "$SED"; then
11709  ac_path_SED_found=false
11710  # Loop through the user's path and test for each of PROGNAME-LIST
11711  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11712for as_dir in $PATH
11713do
11714  IFS=$as_save_IFS
11715  case $as_dir in #(((
11716    '') as_dir=./ ;;
11717    */) ;;
11718    *) as_dir=$as_dir/ ;;
11719  esac
11720    for ac_prog in sed gsed
11721   do
11722    for ac_exec_ext in '' $ac_executable_extensions; do
11723      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
11724      as_fn_executable_p "$ac_path_SED" || continue
11725# Check for GNU ac_path_SED and select it if it is found.
11726  # Check for GNU $ac_path_SED
11727case `"$ac_path_SED" --version 2>&1` in #(
11728*GNU*)
11729  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11730#(
11731*)
11732  ac_count=0
11733  printf %s 0123456789 >"conftest.in"
11734  while :
11735  do
11736    cat "conftest.in" "conftest.in" >"conftest.tmp"
11737    mv "conftest.tmp" "conftest.in"
11738    cp "conftest.in" "conftest.nl"
11739    printf "%s\n" '' >> "conftest.nl"
11740    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11741    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11742    as_fn_arith $ac_count + 1 && ac_count=$as_val
11743    if test $ac_count -gt ${ac_path_SED_max-0}; then
11744      # Best one so far, save it but keep looking for a better one
11745      ac_cv_path_SED="$ac_path_SED"
11746      ac_path_SED_max=$ac_count
11747    fi
11748    # 10*(2^10) chars as input seems more than enough
11749    test $ac_count -gt 10 && break
11750  done
11751  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11752esac
11753
11754      $ac_path_SED_found && break 3
11755    done
11756  done
11757  done
11758IFS=$as_save_IFS
11759  if test -z "$ac_cv_path_SED"; then
11760    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11761  fi
11762else
11763  ac_cv_path_SED=$SED
11764fi
11765 ;;
11766esac
11767fi
11768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11769printf "%s\n" "$ac_cv_path_SED" >&6; }
11770 SED="$ac_cv_path_SED"
11771  rm -f conftest.sed
11772
11773test -z "$SED" && SED=sed
11774Xsed="$SED -e 1s/^X//"
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11787printf %s "checking for grep that handles long lines and -e... " >&6; }
11788if test ${ac_cv_path_GREP+y}
11789then :
11790  printf %s "(cached) " >&6
11791else case e in #(
11792  e) if test -z "$GREP"; then
11793  ac_path_GREP_found=false
11794  # Loop through the user's path and test for each of PROGNAME-LIST
11795  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11796for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11797do
11798  IFS=$as_save_IFS
11799  case $as_dir in #(((
11800    '') as_dir=./ ;;
11801    */) ;;
11802    *) as_dir=$as_dir/ ;;
11803  esac
11804    for ac_prog in grep ggrep
11805   do
11806    for ac_exec_ext in '' $ac_executable_extensions; do
11807      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11808      as_fn_executable_p "$ac_path_GREP" || continue
11809# Check for GNU ac_path_GREP and select it if it is found.
11810  # Check for GNU $ac_path_GREP
11811case `"$ac_path_GREP" --version 2>&1` in #(
11812*GNU*)
11813  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11814#(
11815*)
11816  ac_count=0
11817  printf %s 0123456789 >"conftest.in"
11818  while :
11819  do
11820    cat "conftest.in" "conftest.in" >"conftest.tmp"
11821    mv "conftest.tmp" "conftest.in"
11822    cp "conftest.in" "conftest.nl"
11823    printf "%s\n" 'GREP' >> "conftest.nl"
11824    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11825    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11826    as_fn_arith $ac_count + 1 && ac_count=$as_val
11827    if test $ac_count -gt ${ac_path_GREP_max-0}; then
11828      # Best one so far, save it but keep looking for a better one
11829      ac_cv_path_GREP="$ac_path_GREP"
11830      ac_path_GREP_max=$ac_count
11831    fi
11832    # 10*(2^10) chars as input seems more than enough
11833    test $ac_count -gt 10 && break
11834  done
11835  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11836esac
11837
11838      $ac_path_GREP_found && break 3
11839    done
11840  done
11841  done
11842IFS=$as_save_IFS
11843  if test -z "$ac_cv_path_GREP"; then
11844    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11845  fi
11846else
11847  ac_cv_path_GREP=$GREP
11848fi
11849 ;;
11850esac
11851fi
11852{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11853printf "%s\n" "$ac_cv_path_GREP" >&6; }
11854 GREP="$ac_cv_path_GREP"
11855
11856
11857{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11858printf %s "checking for egrep... " >&6; }
11859if test ${ac_cv_path_EGREP+y}
11860then :
11861  printf %s "(cached) " >&6
11862else case e in #(
11863  e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11864   then ac_cv_path_EGREP="$GREP -E"
11865   else
11866     if test -z "$EGREP"; then
11867  ac_path_EGREP_found=false
11868  # Loop through the user's path and test for each of PROGNAME-LIST
11869  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11870for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11871do
11872  IFS=$as_save_IFS
11873  case $as_dir in #(((
11874    '') as_dir=./ ;;
11875    */) ;;
11876    *) as_dir=$as_dir/ ;;
11877  esac
11878    for ac_prog in egrep
11879   do
11880    for ac_exec_ext in '' $ac_executable_extensions; do
11881      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11882      as_fn_executable_p "$ac_path_EGREP" || continue
11883# Check for GNU ac_path_EGREP and select it if it is found.
11884  # Check for GNU $ac_path_EGREP
11885case `"$ac_path_EGREP" --version 2>&1` in #(
11886*GNU*)
11887  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11888#(
11889*)
11890  ac_count=0
11891  printf %s 0123456789 >"conftest.in"
11892  while :
11893  do
11894    cat "conftest.in" "conftest.in" >"conftest.tmp"
11895    mv "conftest.tmp" "conftest.in"
11896    cp "conftest.in" "conftest.nl"
11897    printf "%s\n" 'EGREP' >> "conftest.nl"
11898    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11899    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11900    as_fn_arith $ac_count + 1 && ac_count=$as_val
11901    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11902      # Best one so far, save it but keep looking for a better one
11903      ac_cv_path_EGREP="$ac_path_EGREP"
11904      ac_path_EGREP_max=$ac_count
11905    fi
11906    # 10*(2^10) chars as input seems more than enough
11907    test $ac_count -gt 10 && break
11908  done
11909  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11910esac
11911
11912      $ac_path_EGREP_found && break 3
11913    done
11914  done
11915  done
11916IFS=$as_save_IFS
11917  if test -z "$ac_cv_path_EGREP"; then
11918    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11919  fi
11920else
11921  ac_cv_path_EGREP=$EGREP
11922fi
11923
11924   fi ;;
11925esac
11926fi
11927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11928printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11929 EGREP="$ac_cv_path_EGREP"
11930
11931         EGREP_TRADITIONAL=$EGREP
11932 ac_cv_path_EGREP_TRADITIONAL=$EGREP
11933
11934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11935printf %s "checking for fgrep... " >&6; }
11936if test ${ac_cv_path_FGREP+y}
11937then :
11938  printf %s "(cached) " >&6
11939else case e in #(
11940  e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11941   then ac_cv_path_FGREP="$GREP -F"
11942   else
11943     if test -z "$FGREP"; then
11944  ac_path_FGREP_found=false
11945  # Loop through the user's path and test for each of PROGNAME-LIST
11946  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11947for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11948do
11949  IFS=$as_save_IFS
11950  case $as_dir in #(((
11951    '') as_dir=./ ;;
11952    */) ;;
11953    *) as_dir=$as_dir/ ;;
11954  esac
11955    for ac_prog in fgrep
11956   do
11957    for ac_exec_ext in '' $ac_executable_extensions; do
11958      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
11959      as_fn_executable_p "$ac_path_FGREP" || continue
11960# Check for GNU ac_path_FGREP and select it if it is found.
11961  # Check for GNU $ac_path_FGREP
11962case `"$ac_path_FGREP" --version 2>&1` in #(
11963*GNU*)
11964  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11965#(
11966*)
11967  ac_count=0
11968  printf %s 0123456789 >"conftest.in"
11969  while :
11970  do
11971    cat "conftest.in" "conftest.in" >"conftest.tmp"
11972    mv "conftest.tmp" "conftest.in"
11973    cp "conftest.in" "conftest.nl"
11974    printf "%s\n" 'FGREP' >> "conftest.nl"
11975    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11976    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11977    as_fn_arith $ac_count + 1 && ac_count=$as_val
11978    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11979      # Best one so far, save it but keep looking for a better one
11980      ac_cv_path_FGREP="$ac_path_FGREP"
11981      ac_path_FGREP_max=$ac_count
11982    fi
11983    # 10*(2^10) chars as input seems more than enough
11984    test $ac_count -gt 10 && break
11985  done
11986  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11987esac
11988
11989      $ac_path_FGREP_found && break 3
11990    done
11991  done
11992  done
11993IFS=$as_save_IFS
11994  if test -z "$ac_cv_path_FGREP"; then
11995    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11996  fi
11997else
11998  ac_cv_path_FGREP=$FGREP
11999fi
12000
12001   fi ;;
12002esac
12003fi
12004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12005printf "%s\n" "$ac_cv_path_FGREP" >&6; }
12006 FGREP="$ac_cv_path_FGREP"
12007
12008
12009test -z "$GREP" && GREP=grep
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029# Check whether --with-gnu-ld was given.
12030if test ${with_gnu_ld+y}
12031then :
12032  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12033else case e in #(
12034  e) with_gnu_ld=no ;;
12035esac
12036fi
12037
12038ac_prog=ld
12039if test yes = "$GCC"; then
12040  # Check if gcc -print-prog-name=ld gives a path.
12041  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12042printf %s "checking for ld used by $CC... " >&6; }
12043  case $host in
12044  *-*-mingw*)
12045    # gcc leaves a trailing carriage return, which upsets mingw
12046    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12047  *)
12048    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12049  esac
12050  case $ac_prog in
12051    # Accept absolute paths.
12052    [\\/]* | ?:[\\/]*)
12053      re_direlt='/[^/][^/]*/\.\./'
12054      # Canonicalize the pathname of ld
12055      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12056      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12057	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12058      done
12059      test -z "$LD" && LD=$ac_prog
12060      ;;
12061  "")
12062    # If it fails, then pretend we aren't using GCC.
12063    ac_prog=ld
12064    ;;
12065  *)
12066    # If it is relative, then search for the first ld in PATH.
12067    with_gnu_ld=unknown
12068    ;;
12069  esac
12070elif test yes = "$with_gnu_ld"; then
12071  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12072printf %s "checking for GNU ld... " >&6; }
12073else
12074  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12075printf %s "checking for non-GNU ld... " >&6; }
12076fi
12077if test ${lt_cv_path_LD+y}
12078then :
12079  printf %s "(cached) " >&6
12080else case e in #(
12081  e) if test -z "$LD"; then
12082  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12083  for ac_dir in $PATH; do
12084    IFS=$lt_save_ifs
12085    test -z "$ac_dir" && ac_dir=.
12086    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12087      lt_cv_path_LD=$ac_dir/$ac_prog
12088      # Check to see if the program is GNU ld.  I'd rather use --version,
12089      # but apparently some variants of GNU ld only accept -v.
12090      # Break only if it was the GNU/non-GNU ld that we prefer.
12091      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12092      *GNU* | *'with BFD'*)
12093	test no != "$with_gnu_ld" && break
12094	;;
12095      *)
12096	test yes != "$with_gnu_ld" && break
12097	;;
12098      esac
12099    fi
12100  done
12101  IFS=$lt_save_ifs
12102else
12103  lt_cv_path_LD=$LD # Let the user override the test with a path.
12104fi ;;
12105esac
12106fi
12107
12108LD=$lt_cv_path_LD
12109if test -n "$LD"; then
12110  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12111printf "%s\n" "$LD" >&6; }
12112else
12113  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12114printf "%s\n" "no" >&6; }
12115fi
12116test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12118printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
12119if test ${lt_cv_prog_gnu_ld+y}
12120then :
12121  printf %s "(cached) " >&6
12122else case e in #(
12123  e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
12124case `$LD -v 2>&1 </dev/null` in
12125*GNU* | *'with BFD'*)
12126  lt_cv_prog_gnu_ld=yes
12127  ;;
12128*)
12129  lt_cv_prog_gnu_ld=no
12130  ;;
12131esac ;;
12132esac
12133fi
12134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12135printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
12136with_gnu_ld=$lt_cv_prog_gnu_ld
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12147printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12148if test ${lt_cv_path_NM+y}
12149then :
12150  printf %s "(cached) " >&6
12151else case e in #(
12152  e) if test -n "$NM"; then
12153  # Let the user override the test.
12154  lt_cv_path_NM=$NM
12155else
12156  lt_nm_to_check=${ac_tool_prefix}nm
12157  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12158    lt_nm_to_check="$lt_nm_to_check nm"
12159  fi
12160  for lt_tmp_nm in $lt_nm_to_check; do
12161    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12162    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12163      IFS=$lt_save_ifs
12164      test -z "$ac_dir" && ac_dir=.
12165      tmp_nm=$ac_dir/$lt_tmp_nm
12166      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
12167	# Check to see if the nm accepts a BSD-compat flag.
12168	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
12169	#   nm: unknown option "B" ignored
12170	# Tru64's nm complains that /dev/null is an invalid object file
12171	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
12172	case $build_os in
12173	mingw*) lt_bad_file=conftest.nm/nofile ;;
12174	*) lt_bad_file=/dev/null ;;
12175	esac
12176	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
12177	*$lt_bad_file* | *'Invalid file or object type'*)
12178	  lt_cv_path_NM="$tmp_nm -B"
12179	  break 2
12180	  ;;
12181	*)
12182	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
12183	  */dev/null*)
12184	    lt_cv_path_NM="$tmp_nm -p"
12185	    break 2
12186	    ;;
12187	  *)
12188	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12189	    continue # so that we can try to find one that supports BSD flags
12190	    ;;
12191	  esac
12192	  ;;
12193	esac
12194      fi
12195    done
12196    IFS=$lt_save_ifs
12197  done
12198  : ${lt_cv_path_NM=no}
12199fi ;;
12200esac
12201fi
12202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12203printf "%s\n" "$lt_cv_path_NM" >&6; }
12204if test no != "$lt_cv_path_NM"; then
12205  NM=$lt_cv_path_NM
12206else
12207  # Didn't find any BSD compatible name lister, look for dumpbin.
12208  if test -n "$DUMPBIN"; then :
12209    # Let the user override the test.
12210  else
12211    if test -n "$ac_tool_prefix"; then
12212  for ac_prog in dumpbin "link -dump"
12213  do
12214    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12215set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12217printf %s "checking for $ac_word... " >&6; }
12218if test ${ac_cv_prog_DUMPBIN+y}
12219then :
12220  printf %s "(cached) " >&6
12221else case e in #(
12222  e) if test -n "$DUMPBIN"; then
12223  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12224else
12225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12226for as_dir in $PATH
12227do
12228  IFS=$as_save_IFS
12229  case $as_dir in #(((
12230    '') as_dir=./ ;;
12231    */) ;;
12232    *) as_dir=$as_dir/ ;;
12233  esac
12234    for ac_exec_ext in '' $ac_executable_extensions; do
12235  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12236    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12237    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12238    break 2
12239  fi
12240done
12241  done
12242IFS=$as_save_IFS
12243
12244fi ;;
12245esac
12246fi
12247DUMPBIN=$ac_cv_prog_DUMPBIN
12248if test -n "$DUMPBIN"; then
12249  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12250printf "%s\n" "$DUMPBIN" >&6; }
12251else
12252  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12253printf "%s\n" "no" >&6; }
12254fi
12255
12256
12257    test -n "$DUMPBIN" && break
12258  done
12259fi
12260if test -z "$DUMPBIN"; then
12261  ac_ct_DUMPBIN=$DUMPBIN
12262  for ac_prog in dumpbin "link -dump"
12263do
12264  # Extract the first word of "$ac_prog", so it can be a program name with args.
12265set dummy $ac_prog; ac_word=$2
12266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12267printf %s "checking for $ac_word... " >&6; }
12268if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
12269then :
12270  printf %s "(cached) " >&6
12271else case e in #(
12272  e) if test -n "$ac_ct_DUMPBIN"; then
12273  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12274else
12275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12276for as_dir in $PATH
12277do
12278  IFS=$as_save_IFS
12279  case $as_dir in #(((
12280    '') as_dir=./ ;;
12281    */) ;;
12282    *) as_dir=$as_dir/ ;;
12283  esac
12284    for ac_exec_ext in '' $ac_executable_extensions; do
12285  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12286    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12287    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12288    break 2
12289  fi
12290done
12291  done
12292IFS=$as_save_IFS
12293
12294fi ;;
12295esac
12296fi
12297ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12298if test -n "$ac_ct_DUMPBIN"; then
12299  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12300printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
12301else
12302  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303printf "%s\n" "no" >&6; }
12304fi
12305
12306
12307  test -n "$ac_ct_DUMPBIN" && break
12308done
12309
12310  if test "x$ac_ct_DUMPBIN" = x; then
12311    DUMPBIN=":"
12312  else
12313    case $cross_compiling:$ac_tool_warned in
12314yes:)
12315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12316printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12317ac_tool_warned=yes ;;
12318esac
12319    DUMPBIN=$ac_ct_DUMPBIN
12320  fi
12321fi
12322
12323    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
12324    *COFF*)
12325      DUMPBIN="$DUMPBIN -symbols -headers"
12326      ;;
12327    *)
12328      DUMPBIN=:
12329      ;;
12330    esac
12331  fi
12332
12333  if test : != "$DUMPBIN"; then
12334    NM=$DUMPBIN
12335  fi
12336fi
12337test -z "$NM" && NM=nm
12338
12339
12340
12341
12342
12343
12344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12345printf %s "checking the name lister ($NM) interface... " >&6; }
12346if test ${lt_cv_nm_interface+y}
12347then :
12348  printf %s "(cached) " >&6
12349else case e in #(
12350  e) lt_cv_nm_interface="BSD nm"
12351  echo "int some_variable = 0;" > conftest.$ac_ext
12352  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12353  (eval "$ac_compile" 2>conftest.err)
12354  cat conftest.err >&5
12355  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12356  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12357  cat conftest.err >&5
12358  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12359  cat conftest.out >&5
12360  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12361    lt_cv_nm_interface="MS dumpbin"
12362  fi
12363  rm -f conftest* ;;
12364esac
12365fi
12366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12367printf "%s\n" "$lt_cv_nm_interface" >&6; }
12368
12369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12370printf %s "checking whether ln -s works... " >&6; }
12371LN_S=$as_ln_s
12372if test "$LN_S" = "ln -s"; then
12373  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12374printf "%s\n" "yes" >&6; }
12375else
12376  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12377printf "%s\n" "no, using $LN_S" >&6; }
12378fi
12379
12380# find the maximum length of command line arguments
12381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12382printf %s "checking the maximum length of command line arguments... " >&6; }
12383if test ${lt_cv_sys_max_cmd_len+y}
12384then :
12385  printf %s "(cached) " >&6
12386else case e in #(
12387  e)   i=0
12388  teststring=ABCD
12389
12390  case $build_os in
12391  msdosdjgpp*)
12392    # On DJGPP, this test can blow up pretty badly due to problems in libc
12393    # (any single argument exceeding 2000 bytes causes a buffer overrun
12394    # during glob expansion).  Even if it were fixed, the result of this
12395    # check would be larger than it should be.
12396    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12397    ;;
12398
12399  gnu*)
12400    # Under GNU Hurd, this test is not required because there is
12401    # no limit to the length of command line arguments.
12402    # Libtool will interpret -1 as no limit whatsoever
12403    lt_cv_sys_max_cmd_len=-1;
12404    ;;
12405
12406  cygwin* | mingw* | cegcc*)
12407    # On Win9x/ME, this test blows up -- it succeeds, but takes
12408    # about 5 minutes as the teststring grows exponentially.
12409    # Worse, since 9x/ME are not pre-emptively multitasking,
12410    # you end up with a "frozen" computer, even though with patience
12411    # the test eventually succeeds (with a max line length of 256k).
12412    # Instead, let's just punt: use the minimum linelength reported by
12413    # all of the supported platforms: 8192 (on NT/2K/XP).
12414    lt_cv_sys_max_cmd_len=8192;
12415    ;;
12416
12417  mint*)
12418    # On MiNT this can take a long time and run out of memory.
12419    lt_cv_sys_max_cmd_len=8192;
12420    ;;
12421
12422  amigaos*)
12423    # On AmigaOS with pdksh, this test takes hours, literally.
12424    # So we just punt and use a minimum line length of 8192.
12425    lt_cv_sys_max_cmd_len=8192;
12426    ;;
12427
12428  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12429    # This has been around since 386BSD, at least.  Likely further.
12430    if test -x /sbin/sysctl; then
12431      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12432    elif test -x /usr/sbin/sysctl; then
12433      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12434    else
12435      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
12436    fi
12437    # And add a safety zone
12438    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12439    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12440    ;;
12441
12442  interix*)
12443    # We know the value 262144 and hardcode it with a safety zone (like BSD)
12444    lt_cv_sys_max_cmd_len=196608
12445    ;;
12446
12447  os2*)
12448    # The test takes a long time on OS/2.
12449    lt_cv_sys_max_cmd_len=8192
12450    ;;
12451
12452  osf*)
12453    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12454    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12455    # nice to cause kernel panics so lets avoid the loop below.
12456    # First set a reasonable default.
12457    lt_cv_sys_max_cmd_len=16384
12458    #
12459    if test -x /sbin/sysconfig; then
12460      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12461        *1*) lt_cv_sys_max_cmd_len=-1 ;;
12462      esac
12463    fi
12464    ;;
12465  sco3.2v5*)
12466    lt_cv_sys_max_cmd_len=102400
12467    ;;
12468  sysv5* | sco5v6* | sysv4.2uw2*)
12469    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12470    if test -n "$kargmax"; then
12471      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
12472    else
12473      lt_cv_sys_max_cmd_len=32768
12474    fi
12475    ;;
12476  *)
12477    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12478    if test -n "$lt_cv_sys_max_cmd_len" && \
12479       test undefined != "$lt_cv_sys_max_cmd_len"; then
12480      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12481      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12482    else
12483      # Make teststring a little bigger before we do anything with it.
12484      # a 1K string should be a reasonable start.
12485      for i in 1 2 3 4 5 6 7 8; do
12486        teststring=$teststring$teststring
12487      done
12488      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12489      # If test is not a shell built-in, we'll probably end up computing a
12490      # maximum length that is only half of the actual maximum length, but
12491      # we can't tell.
12492      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12493	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12494	      test 17 != "$i" # 1/2 MB should be enough
12495      do
12496        i=`expr $i + 1`
12497        teststring=$teststring$teststring
12498      done
12499      # Only check the string length outside the loop.
12500      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12501      teststring=
12502      # Add a significant safety factor because C++ compilers can tack on
12503      # massive amounts of additional arguments before passing them to the
12504      # linker.  It appears as though 1/2 is a usable value.
12505      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12506    fi
12507    ;;
12508  esac
12509 ;;
12510esac
12511fi
12512
12513if test -n "$lt_cv_sys_max_cmd_len"; then
12514  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12515printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12516else
12517  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12518printf "%s\n" "none" >&6; }
12519fi
12520max_cmd_len=$lt_cv_sys_max_cmd_len
12521
12522
12523
12524
12525
12526
12527: ${CP="cp -f"}
12528: ${MV="mv -f"}
12529: ${RM="rm -f"}
12530
12531if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12532  lt_unset=unset
12533else
12534  lt_unset=false
12535fi
12536
12537
12538
12539
12540
12541# test EBCDIC or ASCII
12542case `echo X|tr X '\101'` in
12543 A) # ASCII based system
12544    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12545  lt_SP2NL='tr \040 \012'
12546  lt_NL2SP='tr \015\012 \040\040'
12547  ;;
12548 *) # EBCDIC based system
12549  lt_SP2NL='tr \100 \n'
12550  lt_NL2SP='tr \r\n \100\100'
12551  ;;
12552esac
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12563printf %s "checking how to convert $build file names to $host format... " >&6; }
12564if test ${lt_cv_to_host_file_cmd+y}
12565then :
12566  printf %s "(cached) " >&6
12567else case e in #(
12568  e) case $host in
12569  *-*-mingw* )
12570    case $build in
12571      *-*-mingw* ) # actually msys
12572        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12573        ;;
12574      *-*-cygwin* )
12575        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12576        ;;
12577      * ) # otherwise, assume *nix
12578        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12579        ;;
12580    esac
12581    ;;
12582  *-*-cygwin* )
12583    case $build in
12584      *-*-mingw* ) # actually msys
12585        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12586        ;;
12587      *-*-cygwin* )
12588        lt_cv_to_host_file_cmd=func_convert_file_noop
12589        ;;
12590      * ) # otherwise, assume *nix
12591        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12592        ;;
12593    esac
12594    ;;
12595  * ) # unhandled hosts (and "normal" native builds)
12596    lt_cv_to_host_file_cmd=func_convert_file_noop
12597    ;;
12598esac
12599 ;;
12600esac
12601fi
12602
12603to_host_file_cmd=$lt_cv_to_host_file_cmd
12604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12605printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12606
12607
12608
12609
12610
12611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12612printf %s "checking how to convert $build file names to toolchain format... " >&6; }
12613if test ${lt_cv_to_tool_file_cmd+y}
12614then :
12615  printf %s "(cached) " >&6
12616else case e in #(
12617  e) #assume ordinary cross tools, or native build.
12618lt_cv_to_tool_file_cmd=func_convert_file_noop
12619case $host in
12620  *-*-mingw* )
12621    case $build in
12622      *-*-mingw* ) # actually msys
12623        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12624        ;;
12625    esac
12626    ;;
12627esac
12628 ;;
12629esac
12630fi
12631
12632to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12634printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
12635
12636
12637
12638
12639
12640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12641printf %s "checking for $LD option to reload object files... " >&6; }
12642if test ${lt_cv_ld_reload_flag+y}
12643then :
12644  printf %s "(cached) " >&6
12645else case e in #(
12646  e) lt_cv_ld_reload_flag='-r' ;;
12647esac
12648fi
12649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12650printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
12651reload_flag=$lt_cv_ld_reload_flag
12652case $reload_flag in
12653"" | " "*) ;;
12654*) reload_flag=" $reload_flag" ;;
12655esac
12656reload_cmds='$LD$reload_flag -o $output$reload_objs'
12657case $host_os in
12658  cygwin* | mingw* | pw32* | cegcc*)
12659    if test yes != "$GCC"; then
12660      reload_cmds=false
12661    fi
12662    ;;
12663  darwin*)
12664    if test yes = "$GCC"; then
12665      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12666    else
12667      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12668    fi
12669    ;;
12670esac
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680if test -n "$ac_tool_prefix"; then
12681  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
12682set dummy ${ac_tool_prefix}file; ac_word=$2
12683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12684printf %s "checking for $ac_word... " >&6; }
12685if test ${ac_cv_prog_FILECMD+y}
12686then :
12687  printf %s "(cached) " >&6
12688else case e in #(
12689  e) if test -n "$FILECMD"; then
12690  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
12691else
12692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12693for as_dir in $PATH
12694do
12695  IFS=$as_save_IFS
12696  case $as_dir in #(((
12697    '') as_dir=./ ;;
12698    */) ;;
12699    *) as_dir=$as_dir/ ;;
12700  esac
12701    for ac_exec_ext in '' $ac_executable_extensions; do
12702  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12703    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
12704    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12705    break 2
12706  fi
12707done
12708  done
12709IFS=$as_save_IFS
12710
12711fi ;;
12712esac
12713fi
12714FILECMD=$ac_cv_prog_FILECMD
12715if test -n "$FILECMD"; then
12716  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
12717printf "%s\n" "$FILECMD" >&6; }
12718else
12719  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12720printf "%s\n" "no" >&6; }
12721fi
12722
12723
12724fi
12725if test -z "$ac_cv_prog_FILECMD"; then
12726  ac_ct_FILECMD=$FILECMD
12727  # Extract the first word of "file", so it can be a program name with args.
12728set dummy file; ac_word=$2
12729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12730printf %s "checking for $ac_word... " >&6; }
12731if test ${ac_cv_prog_ac_ct_FILECMD+y}
12732then :
12733  printf %s "(cached) " >&6
12734else case e in #(
12735  e) if test -n "$ac_ct_FILECMD"; then
12736  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
12737else
12738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12739for as_dir in $PATH
12740do
12741  IFS=$as_save_IFS
12742  case $as_dir in #(((
12743    '') as_dir=./ ;;
12744    */) ;;
12745    *) as_dir=$as_dir/ ;;
12746  esac
12747    for ac_exec_ext in '' $ac_executable_extensions; do
12748  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12749    ac_cv_prog_ac_ct_FILECMD="file"
12750    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12751    break 2
12752  fi
12753done
12754  done
12755IFS=$as_save_IFS
12756
12757fi ;;
12758esac
12759fi
12760ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
12761if test -n "$ac_ct_FILECMD"; then
12762  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
12763printf "%s\n" "$ac_ct_FILECMD" >&6; }
12764else
12765  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766printf "%s\n" "no" >&6; }
12767fi
12768
12769  if test "x$ac_ct_FILECMD" = x; then
12770    FILECMD=":"
12771  else
12772    case $cross_compiling:$ac_tool_warned in
12773yes:)
12774{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12775printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12776ac_tool_warned=yes ;;
12777esac
12778    FILECMD=$ac_ct_FILECMD
12779  fi
12780else
12781  FILECMD="$ac_cv_prog_FILECMD"
12782fi
12783
12784
12785
12786
12787
12788
12789
12790if test -n "$ac_tool_prefix"; then
12791  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12792set dummy ${ac_tool_prefix}objdump; ac_word=$2
12793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12794printf %s "checking for $ac_word... " >&6; }
12795if test ${ac_cv_prog_OBJDUMP+y}
12796then :
12797  printf %s "(cached) " >&6
12798else case e in #(
12799  e) if test -n "$OBJDUMP"; then
12800  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12801else
12802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12803for as_dir in $PATH
12804do
12805  IFS=$as_save_IFS
12806  case $as_dir in #(((
12807    '') as_dir=./ ;;
12808    */) ;;
12809    *) as_dir=$as_dir/ ;;
12810  esac
12811    for ac_exec_ext in '' $ac_executable_extensions; do
12812  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12813    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12814    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12815    break 2
12816  fi
12817done
12818  done
12819IFS=$as_save_IFS
12820
12821fi ;;
12822esac
12823fi
12824OBJDUMP=$ac_cv_prog_OBJDUMP
12825if test -n "$OBJDUMP"; then
12826  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12827printf "%s\n" "$OBJDUMP" >&6; }
12828else
12829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12830printf "%s\n" "no" >&6; }
12831fi
12832
12833
12834fi
12835if test -z "$ac_cv_prog_OBJDUMP"; then
12836  ac_ct_OBJDUMP=$OBJDUMP
12837  # Extract the first word of "objdump", so it can be a program name with args.
12838set dummy objdump; ac_word=$2
12839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12840printf %s "checking for $ac_word... " >&6; }
12841if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12842then :
12843  printf %s "(cached) " >&6
12844else case e in #(
12845  e) if test -n "$ac_ct_OBJDUMP"; then
12846  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12847else
12848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12849for as_dir in $PATH
12850do
12851  IFS=$as_save_IFS
12852  case $as_dir in #(((
12853    '') as_dir=./ ;;
12854    */) ;;
12855    *) as_dir=$as_dir/ ;;
12856  esac
12857    for ac_exec_ext in '' $ac_executable_extensions; do
12858  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12859    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12860    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12861    break 2
12862  fi
12863done
12864  done
12865IFS=$as_save_IFS
12866
12867fi ;;
12868esac
12869fi
12870ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12871if test -n "$ac_ct_OBJDUMP"; then
12872  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12873printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12874else
12875  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12876printf "%s\n" "no" >&6; }
12877fi
12878
12879  if test "x$ac_ct_OBJDUMP" = x; then
12880    OBJDUMP="false"
12881  else
12882    case $cross_compiling:$ac_tool_warned in
12883yes:)
12884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12885printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12886ac_tool_warned=yes ;;
12887esac
12888    OBJDUMP=$ac_ct_OBJDUMP
12889  fi
12890else
12891  OBJDUMP="$ac_cv_prog_OBJDUMP"
12892fi
12893
12894test -z "$OBJDUMP" && OBJDUMP=objdump
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12905printf %s "checking how to recognize dependent libraries... " >&6; }
12906if test ${lt_cv_deplibs_check_method+y}
12907then :
12908  printf %s "(cached) " >&6
12909else case e in #(
12910  e) lt_cv_file_magic_cmd='$MAGIC_CMD'
12911lt_cv_file_magic_test_file=
12912lt_cv_deplibs_check_method='unknown'
12913# Need to set the preceding variable on all platforms that support
12914# interlibrary dependencies.
12915# 'none' -- dependencies not supported.
12916# 'unknown' -- same as none, but documents that we really don't know.
12917# 'pass_all' -- all dependencies passed with no checks.
12918# 'test_compile' -- check by making test program.
12919# 'file_magic [[regex]]' -- check by looking for files in library path
12920# that responds to the $file_magic_cmd with a given extended regex.
12921# If you have 'file' or equivalent on your system and you're not sure
12922# whether 'pass_all' will *always* work, you probably want this one.
12923
12924case $host_os in
12925aix[4-9]*)
12926  lt_cv_deplibs_check_method=pass_all
12927  ;;
12928
12929beos*)
12930  lt_cv_deplibs_check_method=pass_all
12931  ;;
12932
12933bsdi[45]*)
12934  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12935  lt_cv_file_magic_cmd='$FILECMD -L'
12936  lt_cv_file_magic_test_file=/shlib/libc.so
12937  ;;
12938
12939cygwin*)
12940  # func_win32_libid is a shell function defined in ltmain.sh
12941  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12942  lt_cv_file_magic_cmd='func_win32_libid'
12943  ;;
12944
12945mingw* | pw32*)
12946  # Base MSYS/MinGW do not provide the 'file' command needed by
12947  # func_win32_libid shell function, so use a weaker test based on 'objdump',
12948  # unless we find 'file', for example because we are cross-compiling.
12949  if ( file / ) >/dev/null 2>&1; then
12950    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12951    lt_cv_file_magic_cmd='func_win32_libid'
12952  else
12953    # Keep this pattern in sync with the one in func_win32_libid.
12954    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12955    lt_cv_file_magic_cmd='$OBJDUMP -f'
12956  fi
12957  ;;
12958
12959cegcc*)
12960  # use the weaker test based on 'objdump'. See mingw*.
12961  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12962  lt_cv_file_magic_cmd='$OBJDUMP -f'
12963  ;;
12964
12965darwin* | rhapsody*)
12966  lt_cv_deplibs_check_method=pass_all
12967  ;;
12968
12969freebsd* | dragonfly* | midnightbsd*)
12970  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12971    case $host_cpu in
12972    i*86 )
12973      # Not sure whether the presence of OpenBSD here was a mistake.
12974      # Let's accept both of them until this is cleared up.
12975      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12976      lt_cv_file_magic_cmd=$FILECMD
12977      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12978      ;;
12979    esac
12980  else
12981    lt_cv_deplibs_check_method=pass_all
12982  fi
12983  ;;
12984
12985haiku*)
12986  lt_cv_deplibs_check_method=pass_all
12987  ;;
12988
12989hpux10.20* | hpux11*)
12990  lt_cv_file_magic_cmd=$FILECMD
12991  case $host_cpu in
12992  ia64*)
12993    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12994    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12995    ;;
12996  hppa*64*)
12997    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]'
12998    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12999    ;;
13000  *)
13001    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13002    lt_cv_file_magic_test_file=/usr/lib/libc.sl
13003    ;;
13004  esac
13005  ;;
13006
13007interix[3-9]*)
13008  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13009  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13010  ;;
13011
13012irix5* | irix6* | nonstopux*)
13013  case $LD in
13014  *-32|*"-32 ") libmagic=32-bit;;
13015  *-n32|*"-n32 ") libmagic=N32;;
13016  *-64|*"-64 ") libmagic=64-bit;;
13017  *) libmagic=never-match;;
13018  esac
13019  lt_cv_deplibs_check_method=pass_all
13020  ;;
13021
13022# This must be glibc/ELF.
13023linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13024  lt_cv_deplibs_check_method=pass_all
13025  ;;
13026
13027netbsd*)
13028  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13029    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13030  else
13031    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13032  fi
13033  ;;
13034
13035newos6*)
13036  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13037  lt_cv_file_magic_cmd=$FILECMD
13038  lt_cv_file_magic_test_file=/usr/lib/libnls.so
13039  ;;
13040
13041*nto* | *qnx*)
13042  lt_cv_deplibs_check_method=pass_all
13043  ;;
13044
13045openbsd* | bitrig*)
13046  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13047    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13048  else
13049    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13050  fi
13051  ;;
13052
13053osf3* | osf4* | osf5*)
13054  lt_cv_deplibs_check_method=pass_all
13055  ;;
13056
13057rdos*)
13058  lt_cv_deplibs_check_method=pass_all
13059  ;;
13060
13061solaris*)
13062  lt_cv_deplibs_check_method=pass_all
13063  ;;
13064
13065sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13066  lt_cv_deplibs_check_method=pass_all
13067  ;;
13068
13069sysv4 | sysv4.3*)
13070  case $host_vendor in
13071  motorola)
13072    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]'
13073    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13074    ;;
13075  ncr)
13076    lt_cv_deplibs_check_method=pass_all
13077    ;;
13078  sequent)
13079    lt_cv_file_magic_cmd='/bin/file'
13080    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13081    ;;
13082  sni)
13083    lt_cv_file_magic_cmd='/bin/file'
13084    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13085    lt_cv_file_magic_test_file=/lib/libc.so
13086    ;;
13087  siemens)
13088    lt_cv_deplibs_check_method=pass_all
13089    ;;
13090  pc)
13091    lt_cv_deplibs_check_method=pass_all
13092    ;;
13093  esac
13094  ;;
13095
13096tpf*)
13097  lt_cv_deplibs_check_method=pass_all
13098  ;;
13099os2*)
13100  lt_cv_deplibs_check_method=pass_all
13101  ;;
13102esac
13103 ;;
13104esac
13105fi
13106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13107printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
13108
13109file_magic_glob=
13110want_nocaseglob=no
13111if test "$build" = "$host"; then
13112  case $host_os in
13113  mingw* | pw32*)
13114    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
13115      want_nocaseglob=yes
13116    else
13117      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
13118    fi
13119    ;;
13120  esac
13121fi
13122
13123file_magic_cmd=$lt_cv_file_magic_cmd
13124deplibs_check_method=$lt_cv_deplibs_check_method
13125test -z "$deplibs_check_method" && deplibs_check_method=unknown
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148if test -n "$ac_tool_prefix"; then
13149  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13150set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13152printf %s "checking for $ac_word... " >&6; }
13153if test ${ac_cv_prog_DLLTOOL+y}
13154then :
13155  printf %s "(cached) " >&6
13156else case e in #(
13157  e) if test -n "$DLLTOOL"; then
13158  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13159else
13160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13161for as_dir in $PATH
13162do
13163  IFS=$as_save_IFS
13164  case $as_dir in #(((
13165    '') as_dir=./ ;;
13166    */) ;;
13167    *) as_dir=$as_dir/ ;;
13168  esac
13169    for ac_exec_ext in '' $ac_executable_extensions; do
13170  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13171    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13172    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13173    break 2
13174  fi
13175done
13176  done
13177IFS=$as_save_IFS
13178
13179fi ;;
13180esac
13181fi
13182DLLTOOL=$ac_cv_prog_DLLTOOL
13183if test -n "$DLLTOOL"; then
13184  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13185printf "%s\n" "$DLLTOOL" >&6; }
13186else
13187  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188printf "%s\n" "no" >&6; }
13189fi
13190
13191
13192fi
13193if test -z "$ac_cv_prog_DLLTOOL"; then
13194  ac_ct_DLLTOOL=$DLLTOOL
13195  # Extract the first word of "dlltool", so it can be a program name with args.
13196set dummy dlltool; ac_word=$2
13197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13198printf %s "checking for $ac_word... " >&6; }
13199if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
13200then :
13201  printf %s "(cached) " >&6
13202else case e in #(
13203  e) if test -n "$ac_ct_DLLTOOL"; then
13204  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13205else
13206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13207for as_dir in $PATH
13208do
13209  IFS=$as_save_IFS
13210  case $as_dir in #(((
13211    '') as_dir=./ ;;
13212    */) ;;
13213    *) as_dir=$as_dir/ ;;
13214  esac
13215    for ac_exec_ext in '' $ac_executable_extensions; do
13216  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13217    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13218    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13219    break 2
13220  fi
13221done
13222  done
13223IFS=$as_save_IFS
13224
13225fi ;;
13226esac
13227fi
13228ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13229if test -n "$ac_ct_DLLTOOL"; then
13230  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13231printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
13232else
13233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13234printf "%s\n" "no" >&6; }
13235fi
13236
13237  if test "x$ac_ct_DLLTOOL" = x; then
13238    DLLTOOL="false"
13239  else
13240    case $cross_compiling:$ac_tool_warned in
13241yes:)
13242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13243printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13244ac_tool_warned=yes ;;
13245esac
13246    DLLTOOL=$ac_ct_DLLTOOL
13247  fi
13248else
13249  DLLTOOL="$ac_cv_prog_DLLTOOL"
13250fi
13251
13252test -z "$DLLTOOL" && DLLTOOL=dlltool
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
13264printf %s "checking how to associate runtime and link libraries... " >&6; }
13265if test ${lt_cv_sharedlib_from_linklib_cmd+y}
13266then :
13267  printf %s "(cached) " >&6
13268else case e in #(
13269  e) lt_cv_sharedlib_from_linklib_cmd='unknown'
13270
13271case $host_os in
13272cygwin* | mingw* | pw32* | cegcc*)
13273  # two different shell functions defined in ltmain.sh;
13274  # decide which one to use based on capabilities of $DLLTOOL
13275  case `$DLLTOOL --help 2>&1` in
13276  *--identify-strict*)
13277    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
13278    ;;
13279  *)
13280    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
13281    ;;
13282  esac
13283  ;;
13284*)
13285  # fallback: assume linklib IS sharedlib
13286  lt_cv_sharedlib_from_linklib_cmd=$ECHO
13287  ;;
13288esac
13289 ;;
13290esac
13291fi
13292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
13293printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
13294sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
13295test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
13296
13297
13298
13299
13300
13301
13302
13303if test -n "$ac_tool_prefix"; then
13304  for ac_prog in ar
13305  do
13306    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13307set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13309printf %s "checking for $ac_word... " >&6; }
13310if test ${ac_cv_prog_AR+y}
13311then :
13312  printf %s "(cached) " >&6
13313else case e in #(
13314  e) if test -n "$AR"; then
13315  ac_cv_prog_AR="$AR" # Let the user override the test.
13316else
13317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13318for as_dir in $PATH
13319do
13320  IFS=$as_save_IFS
13321  case $as_dir in #(((
13322    '') as_dir=./ ;;
13323    */) ;;
13324    *) as_dir=$as_dir/ ;;
13325  esac
13326    for ac_exec_ext in '' $ac_executable_extensions; do
13327  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13328    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
13329    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13330    break 2
13331  fi
13332done
13333  done
13334IFS=$as_save_IFS
13335
13336fi ;;
13337esac
13338fi
13339AR=$ac_cv_prog_AR
13340if test -n "$AR"; then
13341  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13342printf "%s\n" "$AR" >&6; }
13343else
13344  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13345printf "%s\n" "no" >&6; }
13346fi
13347
13348
13349    test -n "$AR" && break
13350  done
13351fi
13352if test -z "$AR"; then
13353  ac_ct_AR=$AR
13354  for ac_prog in ar
13355do
13356  # Extract the first word of "$ac_prog", so it can be a program name with args.
13357set dummy $ac_prog; ac_word=$2
13358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13359printf %s "checking for $ac_word... " >&6; }
13360if test ${ac_cv_prog_ac_ct_AR+y}
13361then :
13362  printf %s "(cached) " >&6
13363else case e in #(
13364  e) if test -n "$ac_ct_AR"; then
13365  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13366else
13367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13368for as_dir in $PATH
13369do
13370  IFS=$as_save_IFS
13371  case $as_dir in #(((
13372    '') as_dir=./ ;;
13373    */) ;;
13374    *) as_dir=$as_dir/ ;;
13375  esac
13376    for ac_exec_ext in '' $ac_executable_extensions; do
13377  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13378    ac_cv_prog_ac_ct_AR="$ac_prog"
13379    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13380    break 2
13381  fi
13382done
13383  done
13384IFS=$as_save_IFS
13385
13386fi ;;
13387esac
13388fi
13389ac_ct_AR=$ac_cv_prog_ac_ct_AR
13390if test -n "$ac_ct_AR"; then
13391  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13392printf "%s\n" "$ac_ct_AR" >&6; }
13393else
13394  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13395printf "%s\n" "no" >&6; }
13396fi
13397
13398
13399  test -n "$ac_ct_AR" && break
13400done
13401
13402  if test "x$ac_ct_AR" = x; then
13403    AR="false"
13404  else
13405    case $cross_compiling:$ac_tool_warned in
13406yes:)
13407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13408printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13409ac_tool_warned=yes ;;
13410esac
13411    AR=$ac_ct_AR
13412  fi
13413fi
13414
13415: ${AR=ar}
13416
13417
13418
13419
13420
13421
13422# Use ARFLAGS variable as AR's operation code to sync the variable naming with
13423# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13424# higher priority because thats what people were doing historically (setting
13425# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
13426# variable obsoleted/removed.
13427
13428test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13429lt_ar_flags=$AR_FLAGS
13430
13431
13432
13433
13434
13435
13436# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
13437# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13438
13439
13440
13441
13442
13443
13444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13445printf %s "checking for archiver @FILE support... " >&6; }
13446if test ${lt_cv_ar_at_file+y}
13447then :
13448  printf %s "(cached) " >&6
13449else case e in #(
13450  e) lt_cv_ar_at_file=no
13451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13452/* end confdefs.h.  */
13453
13454int
13455main (void)
13456{
13457
13458  ;
13459  return 0;
13460}
13461_ACEOF
13462if ac_fn_c_try_compile "$LINENO"
13463then :
13464  echo conftest.$ac_objext > conftest.lst
13465      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13466      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13467  (eval $lt_ar_try) 2>&5
13468  ac_status=$?
13469  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13470  test $ac_status = 0; }
13471      if test 0 -eq "$ac_status"; then
13472	# Ensure the archiver fails upon bogus file names.
13473	rm -f conftest.$ac_objext libconftest.a
13474	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13475  (eval $lt_ar_try) 2>&5
13476  ac_status=$?
13477  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13478  test $ac_status = 0; }
13479	if test 0 -ne "$ac_status"; then
13480          lt_cv_ar_at_file=@
13481        fi
13482      fi
13483      rm -f conftest.* libconftest.a
13484
13485fi
13486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13487   ;;
13488esac
13489fi
13490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13491printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13492
13493if test no = "$lt_cv_ar_at_file"; then
13494  archiver_list_spec=
13495else
13496  archiver_list_spec=$lt_cv_ar_at_file
13497fi
13498
13499
13500
13501
13502
13503
13504
13505if test -n "$ac_tool_prefix"; then
13506  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13507set dummy ${ac_tool_prefix}strip; ac_word=$2
13508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13509printf %s "checking for $ac_word... " >&6; }
13510if test ${ac_cv_prog_STRIP+y}
13511then :
13512  printf %s "(cached) " >&6
13513else case e in #(
13514  e) if test -n "$STRIP"; then
13515  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13516else
13517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13518for as_dir in $PATH
13519do
13520  IFS=$as_save_IFS
13521  case $as_dir in #(((
13522    '') as_dir=./ ;;
13523    */) ;;
13524    *) as_dir=$as_dir/ ;;
13525  esac
13526    for ac_exec_ext in '' $ac_executable_extensions; do
13527  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13528    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13529    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13530    break 2
13531  fi
13532done
13533  done
13534IFS=$as_save_IFS
13535
13536fi ;;
13537esac
13538fi
13539STRIP=$ac_cv_prog_STRIP
13540if test -n "$STRIP"; then
13541  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13542printf "%s\n" "$STRIP" >&6; }
13543else
13544  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13545printf "%s\n" "no" >&6; }
13546fi
13547
13548
13549fi
13550if test -z "$ac_cv_prog_STRIP"; then
13551  ac_ct_STRIP=$STRIP
13552  # Extract the first word of "strip", so it can be a program name with args.
13553set dummy strip; ac_word=$2
13554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13555printf %s "checking for $ac_word... " >&6; }
13556if test ${ac_cv_prog_ac_ct_STRIP+y}
13557then :
13558  printf %s "(cached) " >&6
13559else case e in #(
13560  e) if test -n "$ac_ct_STRIP"; then
13561  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13562else
13563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13564for as_dir in $PATH
13565do
13566  IFS=$as_save_IFS
13567  case $as_dir in #(((
13568    '') as_dir=./ ;;
13569    */) ;;
13570    *) as_dir=$as_dir/ ;;
13571  esac
13572    for ac_exec_ext in '' $ac_executable_extensions; do
13573  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13574    ac_cv_prog_ac_ct_STRIP="strip"
13575    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13576    break 2
13577  fi
13578done
13579  done
13580IFS=$as_save_IFS
13581
13582fi ;;
13583esac
13584fi
13585ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13586if test -n "$ac_ct_STRIP"; then
13587  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13588printf "%s\n" "$ac_ct_STRIP" >&6; }
13589else
13590  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13591printf "%s\n" "no" >&6; }
13592fi
13593
13594  if test "x$ac_ct_STRIP" = x; then
13595    STRIP=":"
13596  else
13597    case $cross_compiling:$ac_tool_warned in
13598yes:)
13599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13600printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13601ac_tool_warned=yes ;;
13602esac
13603    STRIP=$ac_ct_STRIP
13604  fi
13605else
13606  STRIP="$ac_cv_prog_STRIP"
13607fi
13608
13609test -z "$STRIP" && STRIP=:
13610
13611
13612
13613
13614
13615
13616if test -n "$ac_tool_prefix"; then
13617  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13618set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13620printf %s "checking for $ac_word... " >&6; }
13621if test ${ac_cv_prog_RANLIB+y}
13622then :
13623  printf %s "(cached) " >&6
13624else case e in #(
13625  e) if test -n "$RANLIB"; then
13626  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13627else
13628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13629for as_dir in $PATH
13630do
13631  IFS=$as_save_IFS
13632  case $as_dir in #(((
13633    '') as_dir=./ ;;
13634    */) ;;
13635    *) as_dir=$as_dir/ ;;
13636  esac
13637    for ac_exec_ext in '' $ac_executable_extensions; do
13638  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13639    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13640    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13641    break 2
13642  fi
13643done
13644  done
13645IFS=$as_save_IFS
13646
13647fi ;;
13648esac
13649fi
13650RANLIB=$ac_cv_prog_RANLIB
13651if test -n "$RANLIB"; then
13652  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13653printf "%s\n" "$RANLIB" >&6; }
13654else
13655  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13656printf "%s\n" "no" >&6; }
13657fi
13658
13659
13660fi
13661if test -z "$ac_cv_prog_RANLIB"; then
13662  ac_ct_RANLIB=$RANLIB
13663  # Extract the first word of "ranlib", so it can be a program name with args.
13664set dummy ranlib; ac_word=$2
13665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13666printf %s "checking for $ac_word... " >&6; }
13667if test ${ac_cv_prog_ac_ct_RANLIB+y}
13668then :
13669  printf %s "(cached) " >&6
13670else case e in #(
13671  e) if test -n "$ac_ct_RANLIB"; then
13672  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13673else
13674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13675for as_dir in $PATH
13676do
13677  IFS=$as_save_IFS
13678  case $as_dir in #(((
13679    '') as_dir=./ ;;
13680    */) ;;
13681    *) as_dir=$as_dir/ ;;
13682  esac
13683    for ac_exec_ext in '' $ac_executable_extensions; do
13684  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13685    ac_cv_prog_ac_ct_RANLIB="ranlib"
13686    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13687    break 2
13688  fi
13689done
13690  done
13691IFS=$as_save_IFS
13692
13693fi ;;
13694esac
13695fi
13696ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13697if test -n "$ac_ct_RANLIB"; then
13698  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13699printf "%s\n" "$ac_ct_RANLIB" >&6; }
13700else
13701  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13702printf "%s\n" "no" >&6; }
13703fi
13704
13705  if test "x$ac_ct_RANLIB" = x; then
13706    RANLIB=":"
13707  else
13708    case $cross_compiling:$ac_tool_warned in
13709yes:)
13710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13711printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13712ac_tool_warned=yes ;;
13713esac
13714    RANLIB=$ac_ct_RANLIB
13715  fi
13716else
13717  RANLIB="$ac_cv_prog_RANLIB"
13718fi
13719
13720test -z "$RANLIB" && RANLIB=:
13721
13722
13723
13724
13725
13726
13727# Determine commands to create old-style static archives.
13728old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13729old_postinstall_cmds='chmod 644 $oldlib'
13730old_postuninstall_cmds=
13731
13732if test -n "$RANLIB"; then
13733  case $host_os in
13734  bitrig* | openbsd*)
13735    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13736    ;;
13737  *)
13738    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13739    ;;
13740  esac
13741  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13742fi
13743
13744case $host_os in
13745  darwin*)
13746    lock_old_archive_extraction=yes ;;
13747  *)
13748    lock_old_archive_extraction=no ;;
13749esac
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789# If no C compiler was specified, use CC.
13790LTCC=${LTCC-"$CC"}
13791
13792# If no C compiler flags were specified, use CFLAGS.
13793LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13794
13795# Allow CC to be a program name with arguments.
13796compiler=$CC
13797
13798
13799# Check for command to grab the raw symbol name followed by C symbol from nm.
13800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13801printf %s "checking command to parse $NM output from $compiler object... " >&6; }
13802if test ${lt_cv_sys_global_symbol_pipe+y}
13803then :
13804  printf %s "(cached) " >&6
13805else case e in #(
13806  e)
13807# These are sane defaults that work on at least a few old systems.
13808# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13809
13810# Character class describing NM global symbol codes.
13811symcode='[BCDEGRST]'
13812
13813# Regexp to match symbols that can be accessed directly from C.
13814sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13815
13816# Define system-specific variables.
13817case $host_os in
13818aix*)
13819  symcode='[BCDT]'
13820  ;;
13821cygwin* | mingw* | pw32* | cegcc*)
13822  symcode='[ABCDGISTW]'
13823  ;;
13824hpux*)
13825  if test ia64 = "$host_cpu"; then
13826    symcode='[ABCDEGRST]'
13827  fi
13828  ;;
13829irix* | nonstopux*)
13830  symcode='[BCDEGRST]'
13831  ;;
13832osf*)
13833  symcode='[BCDEGQRST]'
13834  ;;
13835solaris*)
13836  symcode='[BDRT]'
13837  ;;
13838sco3.2v5*)
13839  symcode='[DT]'
13840  ;;
13841sysv4.2uw2*)
13842  symcode='[DT]'
13843  ;;
13844sysv5* | sco5v6* | unixware* | OpenUNIX*)
13845  symcode='[ABDT]'
13846  ;;
13847sysv4)
13848  symcode='[DFNSTU]'
13849  ;;
13850esac
13851
13852# If we're using GNU nm, then use its standard symbol codes.
13853case `$NM -V 2>&1` in
13854*GNU* | *'with BFD'*)
13855  symcode='[ABCDGIRSTW]' ;;
13856esac
13857
13858if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13859  # Gets list of data symbols to import.
13860  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
13861  # Adjust the below global symbol transforms to fixup imported variables.
13862  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13863  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
13864  lt_c_name_lib_hook="\
13865  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
13866  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
13867else
13868  # Disable hooks by default.
13869  lt_cv_sys_global_symbol_to_import=
13870  lt_cdecl_hook=
13871  lt_c_name_hook=
13872  lt_c_name_lib_hook=
13873fi
13874
13875# Transform an extracted symbol line into a proper C declaration.
13876# Some systems (esp. on ia64) link data and code symbols differently,
13877# so use this general approach.
13878lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
13879$lt_cdecl_hook\
13880" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13881" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13882
13883# Transform an extracted symbol line into symbol name and symbol address
13884lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
13885$lt_c_name_hook\
13886" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13887" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
13888
13889# Transform an extracted symbol line into symbol name with lib prefix and
13890# symbol address.
13891lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
13892$lt_c_name_lib_hook\
13893" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13894" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
13895" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
13896
13897# Handle CRLF in mingw tool chain
13898opt_cr=
13899case $build_os in
13900mingw*)
13901  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13902  ;;
13903esac
13904
13905# Try without a prefix underscore, then with it.
13906for ac_symprfx in "" "_"; do
13907
13908  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13909  symxfrm="\\1 $ac_symprfx\\2 \\2"
13910
13911  # Write the raw and C identifiers.
13912  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13913    # Fake it for dumpbin and say T for any non-static function,
13914    # D for any global variable and I for any imported variable.
13915    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
13916    # which start with @ or ?.
13917    lt_cv_sys_global_symbol_pipe="$AWK '"\
13918"     {last_section=section; section=\$ 3};"\
13919"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13920"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13921"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13922"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13923"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13924"     \$ 0!~/External *\|/{next};"\
13925"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13926"     {if(hide[section]) next};"\
13927"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13928"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13929"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13930"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13931"     ' prfx=^$ac_symprfx"
13932  else
13933    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13934  fi
13935  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
13936
13937  # Check to see that the pipe works correctly.
13938  pipe_works=no
13939
13940  rm -f conftest*
13941  cat > conftest.$ac_ext <<_LT_EOF
13942#ifdef __cplusplus
13943extern "C" {
13944#endif
13945char nm_test_var;
13946void nm_test_func(void);
13947void nm_test_func(void){}
13948#ifdef __cplusplus
13949}
13950#endif
13951int main(){nm_test_var='a';nm_test_func();return(0);}
13952_LT_EOF
13953
13954  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13955  (eval $ac_compile) 2>&5
13956  ac_status=$?
13957  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13958  test $ac_status = 0; }; then
13959    # Now try to grab the symbols.
13960    nlist=conftest.nm
13961    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13962  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13963  ac_status=$?
13964  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13965  test $ac_status = 0; } && test -s "$nlist"; then
13966      # Try sorting and uniquifying the output.
13967      if sort "$nlist" | uniq > "$nlist"T; then
13968	mv -f "$nlist"T "$nlist"
13969      else
13970	rm -f "$nlist"T
13971      fi
13972
13973      # Make sure that we snagged all the symbols we need.
13974      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13975	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13976	  cat <<_LT_EOF > conftest.$ac_ext
13977/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
13978#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13979/* DATA imports from DLLs on WIN32 can't be const, because runtime
13980   relocations are performed -- see ld's documentation on pseudo-relocs.  */
13981# define LT_DLSYM_CONST
13982#elif defined __osf__
13983/* This system does not cope well with relocations in const data.  */
13984# define LT_DLSYM_CONST
13985#else
13986# define LT_DLSYM_CONST const
13987#endif
13988
13989#ifdef __cplusplus
13990extern "C" {
13991#endif
13992
13993_LT_EOF
13994	  # Now generate the symbol file.
13995	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13996
13997	  cat <<_LT_EOF >> conftest.$ac_ext
13998
13999/* The mapping between symbol names and symbols.  */
14000LT_DLSYM_CONST struct {
14001  const char *name;
14002  void       *address;
14003}
14004lt__PROGRAM__LTX_preloaded_symbols[] =
14005{
14006  { "@PROGRAM@", (void *) 0 },
14007_LT_EOF
14008	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14009	  cat <<\_LT_EOF >> conftest.$ac_ext
14010  {0, (void *) 0}
14011};
14012
14013/* This works around a problem in FreeBSD linker */
14014#ifdef FREEBSD_WORKAROUND
14015static const void *lt_preloaded_setup() {
14016  return lt__PROGRAM__LTX_preloaded_symbols;
14017}
14018#endif
14019
14020#ifdef __cplusplus
14021}
14022#endif
14023_LT_EOF
14024	  # Now try linking the two files.
14025	  mv conftest.$ac_objext conftstm.$ac_objext
14026	  lt_globsym_save_LIBS=$LIBS
14027	  lt_globsym_save_CFLAGS=$CFLAGS
14028	  LIBS=conftstm.$ac_objext
14029	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14030	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14031  (eval $ac_link) 2>&5
14032  ac_status=$?
14033  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14034  test $ac_status = 0; } && test -s conftest$ac_exeext; then
14035	    pipe_works=yes
14036	  fi
14037	  LIBS=$lt_globsym_save_LIBS
14038	  CFLAGS=$lt_globsym_save_CFLAGS
14039	else
14040	  echo "cannot find nm_test_func in $nlist" >&5
14041	fi
14042      else
14043	echo "cannot find nm_test_var in $nlist" >&5
14044      fi
14045    else
14046      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14047    fi
14048  else
14049    echo "$progname: failed program was:" >&5
14050    cat conftest.$ac_ext >&5
14051  fi
14052  rm -rf conftest* conftst*
14053
14054  # Do not use the global_symbol_pipe unless it works.
14055  if test yes = "$pipe_works"; then
14056    break
14057  else
14058    lt_cv_sys_global_symbol_pipe=
14059  fi
14060done
14061 ;;
14062esac
14063fi
14064
14065if test -z "$lt_cv_sys_global_symbol_pipe"; then
14066  lt_cv_sys_global_symbol_to_cdecl=
14067fi
14068if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14069  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14070printf "%s\n" "failed" >&6; }
14071else
14072  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14073printf "%s\n" "ok" >&6; }
14074fi
14075
14076# Response file support.
14077if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14078  nm_file_list_spec='@'
14079elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
14080  nm_file_list_spec='@'
14081fi
14082
14083
14084
14085
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
14120printf %s "checking for sysroot... " >&6; }
14121
14122# Check whether --with-sysroot was given.
14123if test ${with_sysroot+y}
14124then :
14125  withval=$with_sysroot;
14126else case e in #(
14127  e) with_sysroot=no ;;
14128esac
14129fi
14130
14131
14132lt_sysroot=
14133case $with_sysroot in #(
14134 yes)
14135   if test yes = "$GCC"; then
14136     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
14137   fi
14138   ;; #(
14139 /*)
14140   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
14141   ;; #(
14142 no|'')
14143   ;; #(
14144 *)
14145   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
14146printf "%s\n" "$with_sysroot" >&6; }
14147   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
14148   ;;
14149esac
14150
14151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
14152printf "%s\n" "${lt_sysroot:-no}" >&6; }
14153
14154
14155
14156
14157
14158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
14159printf %s "checking for a working dd... " >&6; }
14160if test ${ac_cv_path_lt_DD+y}
14161then :
14162  printf %s "(cached) " >&6
14163else case e in #(
14164  e) printf 0123456789abcdef0123456789abcdef >conftest.i
14165cat conftest.i conftest.i >conftest2.i
14166: ${lt_DD:=$DD}
14167if test -z "$lt_DD"; then
14168  ac_path_lt_DD_found=false
14169  # Loop through the user's path and test for each of PROGNAME-LIST
14170  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14171for as_dir in $PATH
14172do
14173  IFS=$as_save_IFS
14174  case $as_dir in #(((
14175    '') as_dir=./ ;;
14176    */) ;;
14177    *) as_dir=$as_dir/ ;;
14178  esac
14179    for ac_prog in dd
14180   do
14181    for ac_exec_ext in '' $ac_executable_extensions; do
14182      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
14183      as_fn_executable_p "$ac_path_lt_DD" || continue
14184if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14185  cmp -s conftest.i conftest.out \
14186  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
14187fi
14188      $ac_path_lt_DD_found && break 3
14189    done
14190  done
14191  done
14192IFS=$as_save_IFS
14193  if test -z "$ac_cv_path_lt_DD"; then
14194    :
14195  fi
14196else
14197  ac_cv_path_lt_DD=$lt_DD
14198fi
14199
14200rm -f conftest.i conftest2.i conftest.out ;;
14201esac
14202fi
14203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
14204printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
14205
14206
14207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
14208printf %s "checking how to truncate binary pipes... " >&6; }
14209if test ${lt_cv_truncate_bin+y}
14210then :
14211  printf %s "(cached) " >&6
14212else case e in #(
14213  e) printf 0123456789abcdef0123456789abcdef >conftest.i
14214cat conftest.i conftest.i >conftest2.i
14215lt_cv_truncate_bin=
14216if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14217  cmp -s conftest.i conftest.out \
14218  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
14219fi
14220rm -f conftest.i conftest2.i conftest.out
14221test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
14222esac
14223fi
14224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
14225printf "%s\n" "$lt_cv_truncate_bin" >&6; }
14226
14227
14228
14229
14230
14231
14232
14233# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
14234func_cc_basename ()
14235{
14236    for cc_temp in $*""; do
14237      case $cc_temp in
14238        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14239        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14240        \-*) ;;
14241        *) break;;
14242      esac
14243    done
14244    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14245}
14246
14247# Check whether --enable-libtool-lock was given.
14248if test ${enable_libtool_lock+y}
14249then :
14250  enableval=$enable_libtool_lock;
14251fi
14252
14253test no = "$enable_libtool_lock" || enable_libtool_lock=yes
14254
14255# Some flags need to be propagated to the compiler or linker for good
14256# libtool support.
14257case $host in
14258ia64-*-hpux*)
14259  # Find out what ABI is being produced by ac_compile, and set mode
14260  # options accordingly.
14261  echo 'int i;' > conftest.$ac_ext
14262  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14263  (eval $ac_compile) 2>&5
14264  ac_status=$?
14265  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14266  test $ac_status = 0; }; then
14267    case `$FILECMD conftest.$ac_objext` in
14268      *ELF-32*)
14269	HPUX_IA64_MODE=32
14270	;;
14271      *ELF-64*)
14272	HPUX_IA64_MODE=64
14273	;;
14274    esac
14275  fi
14276  rm -rf conftest*
14277  ;;
14278*-*-irix6*)
14279  # Find out what ABI is being produced by ac_compile, and set linker
14280  # options accordingly.
14281  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14282  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14283  (eval $ac_compile) 2>&5
14284  ac_status=$?
14285  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14286  test $ac_status = 0; }; then
14287    if test yes = "$lt_cv_prog_gnu_ld"; then
14288      case `$FILECMD conftest.$ac_objext` in
14289	*32-bit*)
14290	  LD="${LD-ld} -melf32bsmip"
14291	  ;;
14292	*N32*)
14293	  LD="${LD-ld} -melf32bmipn32"
14294	  ;;
14295	*64-bit*)
14296	  LD="${LD-ld} -melf64bmip"
14297	;;
14298      esac
14299    else
14300      case `$FILECMD conftest.$ac_objext` in
14301	*32-bit*)
14302	  LD="${LD-ld} -32"
14303	  ;;
14304	*N32*)
14305	  LD="${LD-ld} -n32"
14306	  ;;
14307	*64-bit*)
14308	  LD="${LD-ld} -64"
14309	  ;;
14310      esac
14311    fi
14312  fi
14313  rm -rf conftest*
14314  ;;
14315
14316mips64*-*linux*)
14317  # Find out what ABI is being produced by ac_compile, and set linker
14318  # options accordingly.
14319  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14320  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14321  (eval $ac_compile) 2>&5
14322  ac_status=$?
14323  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14324  test $ac_status = 0; }; then
14325    emul=elf
14326    case `$FILECMD conftest.$ac_objext` in
14327      *32-bit*)
14328	emul="${emul}32"
14329	;;
14330      *64-bit*)
14331	emul="${emul}64"
14332	;;
14333    esac
14334    case `$FILECMD conftest.$ac_objext` in
14335      *MSB*)
14336	emul="${emul}btsmip"
14337	;;
14338      *LSB*)
14339	emul="${emul}ltsmip"
14340	;;
14341    esac
14342    case `$FILECMD conftest.$ac_objext` in
14343      *N32*)
14344	emul="${emul}n32"
14345	;;
14346    esac
14347    LD="${LD-ld} -m $emul"
14348  fi
14349  rm -rf conftest*
14350  ;;
14351
14352x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14353s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14354  # Find out what ABI is being produced by ac_compile, and set linker
14355  # options accordingly.  Note that the listed cases only cover the
14356  # situations where additional linker options are needed (such as when
14357  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
14358  # vice versa); the common cases where no linker options are needed do
14359  # not appear in the list.
14360  echo 'int i;' > conftest.$ac_ext
14361  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14362  (eval $ac_compile) 2>&5
14363  ac_status=$?
14364  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14365  test $ac_status = 0; }; then
14366    case `$FILECMD conftest.o` in
14367      *32-bit*)
14368	case $host in
14369	  x86_64-*kfreebsd*-gnu)
14370	    LD="${LD-ld} -m elf_i386_fbsd"
14371	    ;;
14372	  x86_64-*linux*)
14373	    case `$FILECMD conftest.o` in
14374	      *x86-64*)
14375		LD="${LD-ld} -m elf32_x86_64"
14376		;;
14377	      *)
14378		LD="${LD-ld} -m elf_i386"
14379		;;
14380	    esac
14381	    ;;
14382	  powerpc64le-*linux*)
14383	    LD="${LD-ld} -m elf32lppclinux"
14384	    ;;
14385	  powerpc64-*linux*)
14386	    LD="${LD-ld} -m elf32ppclinux"
14387	    ;;
14388	  s390x-*linux*)
14389	    LD="${LD-ld} -m elf_s390"
14390	    ;;
14391	  sparc64-*linux*)
14392	    LD="${LD-ld} -m elf32_sparc"
14393	    ;;
14394	esac
14395	;;
14396      *64-bit*)
14397	case $host in
14398	  x86_64-*kfreebsd*-gnu)
14399	    LD="${LD-ld} -m elf_x86_64_fbsd"
14400	    ;;
14401	  x86_64-*linux*)
14402	    LD="${LD-ld} -m elf_x86_64"
14403	    ;;
14404	  powerpcle-*linux*)
14405	    LD="${LD-ld} -m elf64lppc"
14406	    ;;
14407	  powerpc-*linux*)
14408	    LD="${LD-ld} -m elf64ppc"
14409	    ;;
14410	  s390*-*linux*|s390*-*tpf*)
14411	    LD="${LD-ld} -m elf64_s390"
14412	    ;;
14413	  sparc*-*linux*)
14414	    LD="${LD-ld} -m elf64_sparc"
14415	    ;;
14416	esac
14417	;;
14418    esac
14419  fi
14420  rm -rf conftest*
14421  ;;
14422
14423*-*-sco3.2v5*)
14424  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14425  SAVE_CFLAGS=$CFLAGS
14426  CFLAGS="$CFLAGS -belf"
14427  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14428printf %s "checking whether the C compiler needs -belf... " >&6; }
14429if test ${lt_cv_cc_needs_belf+y}
14430then :
14431  printf %s "(cached) " >&6
14432else case e in #(
14433  e) ac_ext=c
14434ac_cpp='$CPP $CPPFLAGS'
14435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14437ac_compiler_gnu=$ac_cv_c_compiler_gnu
14438
14439     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14440/* end confdefs.h.  */
14441
14442int
14443main (void)
14444{
14445
14446  ;
14447  return 0;
14448}
14449_ACEOF
14450if ac_fn_c_try_link "$LINENO"
14451then :
14452  lt_cv_cc_needs_belf=yes
14453else case e in #(
14454  e) lt_cv_cc_needs_belf=no ;;
14455esac
14456fi
14457rm -f core conftest.err conftest.$ac_objext conftest.beam \
14458    conftest$ac_exeext conftest.$ac_ext
14459     ac_ext=c
14460ac_cpp='$CPP $CPPFLAGS'
14461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14463ac_compiler_gnu=$ac_cv_c_compiler_gnu
14464 ;;
14465esac
14466fi
14467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14468printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14469  if test yes != "$lt_cv_cc_needs_belf"; then
14470    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14471    CFLAGS=$SAVE_CFLAGS
14472  fi
14473  ;;
14474*-*solaris*)
14475  # Find out what ABI is being produced by ac_compile, and set linker
14476  # options accordingly.
14477  echo 'int i;' > conftest.$ac_ext
14478  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14479  (eval $ac_compile) 2>&5
14480  ac_status=$?
14481  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14482  test $ac_status = 0; }; then
14483    case `$FILECMD conftest.o` in
14484    *64-bit*)
14485      case $lt_cv_prog_gnu_ld in
14486      yes*)
14487        case $host in
14488        i?86-*-solaris*|x86_64-*-solaris*)
14489          LD="${LD-ld} -m elf_x86_64"
14490          ;;
14491        sparc*-*-solaris*)
14492          LD="${LD-ld} -m elf64_sparc"
14493          ;;
14494        esac
14495        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
14496        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14497          LD=${LD-ld}_sol2
14498        fi
14499        ;;
14500      *)
14501	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14502	  LD="${LD-ld} -64"
14503	fi
14504	;;
14505      esac
14506      ;;
14507    esac
14508  fi
14509  rm -rf conftest*
14510  ;;
14511esac
14512
14513need_locks=$enable_libtool_lock
14514
14515if test -n "$ac_tool_prefix"; then
14516  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14517set dummy ${ac_tool_prefix}mt; ac_word=$2
14518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14519printf %s "checking for $ac_word... " >&6; }
14520if test ${ac_cv_prog_MANIFEST_TOOL+y}
14521then :
14522  printf %s "(cached) " >&6
14523else case e in #(
14524  e) if test -n "$MANIFEST_TOOL"; then
14525  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14526else
14527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14528for as_dir in $PATH
14529do
14530  IFS=$as_save_IFS
14531  case $as_dir in #(((
14532    '') as_dir=./ ;;
14533    */) ;;
14534    *) as_dir=$as_dir/ ;;
14535  esac
14536    for ac_exec_ext in '' $ac_executable_extensions; do
14537  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14538    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14539    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14540    break 2
14541  fi
14542done
14543  done
14544IFS=$as_save_IFS
14545
14546fi ;;
14547esac
14548fi
14549MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14550if test -n "$MANIFEST_TOOL"; then
14551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14552printf "%s\n" "$MANIFEST_TOOL" >&6; }
14553else
14554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14555printf "%s\n" "no" >&6; }
14556fi
14557
14558
14559fi
14560if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14561  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14562  # Extract the first word of "mt", so it can be a program name with args.
14563set dummy mt; ac_word=$2
14564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14565printf %s "checking for $ac_word... " >&6; }
14566if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14567then :
14568  printf %s "(cached) " >&6
14569else case e in #(
14570  e) if test -n "$ac_ct_MANIFEST_TOOL"; then
14571  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14572else
14573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14574for as_dir in $PATH
14575do
14576  IFS=$as_save_IFS
14577  case $as_dir in #(((
14578    '') as_dir=./ ;;
14579    */) ;;
14580    *) as_dir=$as_dir/ ;;
14581  esac
14582    for ac_exec_ext in '' $ac_executable_extensions; do
14583  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14584    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14585    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14586    break 2
14587  fi
14588done
14589  done
14590IFS=$as_save_IFS
14591
14592fi ;;
14593esac
14594fi
14595ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14596if test -n "$ac_ct_MANIFEST_TOOL"; then
14597  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14598printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14599else
14600  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14601printf "%s\n" "no" >&6; }
14602fi
14603
14604  if test "x$ac_ct_MANIFEST_TOOL" = x; then
14605    MANIFEST_TOOL=":"
14606  else
14607    case $cross_compiling:$ac_tool_warned in
14608yes:)
14609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14610printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14611ac_tool_warned=yes ;;
14612esac
14613    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14614  fi
14615else
14616  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14617fi
14618
14619test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14621printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14622if test ${lt_cv_path_mainfest_tool+y}
14623then :
14624  printf %s "(cached) " >&6
14625else case e in #(
14626  e) lt_cv_path_mainfest_tool=no
14627  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14628  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14629  cat conftest.err >&5
14630  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14631    lt_cv_path_mainfest_tool=yes
14632  fi
14633  rm -f conftest* ;;
14634esac
14635fi
14636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14637printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
14638if test yes != "$lt_cv_path_mainfest_tool"; then
14639  MANIFEST_TOOL=:
14640fi
14641
14642
14643
14644
14645
14646
14647  case $host_os in
14648    rhapsody* | darwin*)
14649    if test -n "$ac_tool_prefix"; then
14650  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14651set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14653printf %s "checking for $ac_word... " >&6; }
14654if test ${ac_cv_prog_DSYMUTIL+y}
14655then :
14656  printf %s "(cached) " >&6
14657else case e in #(
14658  e) if test -n "$DSYMUTIL"; then
14659  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14660else
14661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14662for as_dir in $PATH
14663do
14664  IFS=$as_save_IFS
14665  case $as_dir in #(((
14666    '') as_dir=./ ;;
14667    */) ;;
14668    *) as_dir=$as_dir/ ;;
14669  esac
14670    for ac_exec_ext in '' $ac_executable_extensions; do
14671  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14672    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14673    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14674    break 2
14675  fi
14676done
14677  done
14678IFS=$as_save_IFS
14679
14680fi ;;
14681esac
14682fi
14683DSYMUTIL=$ac_cv_prog_DSYMUTIL
14684if test -n "$DSYMUTIL"; then
14685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14686printf "%s\n" "$DSYMUTIL" >&6; }
14687else
14688  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14689printf "%s\n" "no" >&6; }
14690fi
14691
14692
14693fi
14694if test -z "$ac_cv_prog_DSYMUTIL"; then
14695  ac_ct_DSYMUTIL=$DSYMUTIL
14696  # Extract the first word of "dsymutil", so it can be a program name with args.
14697set dummy dsymutil; ac_word=$2
14698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14699printf %s "checking for $ac_word... " >&6; }
14700if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
14701then :
14702  printf %s "(cached) " >&6
14703else case e in #(
14704  e) if test -n "$ac_ct_DSYMUTIL"; then
14705  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14706else
14707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14708for as_dir in $PATH
14709do
14710  IFS=$as_save_IFS
14711  case $as_dir in #(((
14712    '') as_dir=./ ;;
14713    */) ;;
14714    *) as_dir=$as_dir/ ;;
14715  esac
14716    for ac_exec_ext in '' $ac_executable_extensions; do
14717  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14718    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14719    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14720    break 2
14721  fi
14722done
14723  done
14724IFS=$as_save_IFS
14725
14726fi ;;
14727esac
14728fi
14729ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14730if test -n "$ac_ct_DSYMUTIL"; then
14731  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14732printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14733else
14734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14735printf "%s\n" "no" >&6; }
14736fi
14737
14738  if test "x$ac_ct_DSYMUTIL" = x; then
14739    DSYMUTIL=":"
14740  else
14741    case $cross_compiling:$ac_tool_warned in
14742yes:)
14743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14744printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14745ac_tool_warned=yes ;;
14746esac
14747    DSYMUTIL=$ac_ct_DSYMUTIL
14748  fi
14749else
14750  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14751fi
14752
14753    if test -n "$ac_tool_prefix"; then
14754  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14755set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14757printf %s "checking for $ac_word... " >&6; }
14758if test ${ac_cv_prog_NMEDIT+y}
14759then :
14760  printf %s "(cached) " >&6
14761else case e in #(
14762  e) if test -n "$NMEDIT"; then
14763  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14764else
14765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14766for as_dir in $PATH
14767do
14768  IFS=$as_save_IFS
14769  case $as_dir in #(((
14770    '') as_dir=./ ;;
14771    */) ;;
14772    *) as_dir=$as_dir/ ;;
14773  esac
14774    for ac_exec_ext in '' $ac_executable_extensions; do
14775  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14776    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14777    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14778    break 2
14779  fi
14780done
14781  done
14782IFS=$as_save_IFS
14783
14784fi ;;
14785esac
14786fi
14787NMEDIT=$ac_cv_prog_NMEDIT
14788if test -n "$NMEDIT"; then
14789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14790printf "%s\n" "$NMEDIT" >&6; }
14791else
14792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14793printf "%s\n" "no" >&6; }
14794fi
14795
14796
14797fi
14798if test -z "$ac_cv_prog_NMEDIT"; then
14799  ac_ct_NMEDIT=$NMEDIT
14800  # Extract the first word of "nmedit", so it can be a program name with args.
14801set dummy nmedit; ac_word=$2
14802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14803printf %s "checking for $ac_word... " >&6; }
14804if test ${ac_cv_prog_ac_ct_NMEDIT+y}
14805then :
14806  printf %s "(cached) " >&6
14807else case e in #(
14808  e) if test -n "$ac_ct_NMEDIT"; then
14809  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14810else
14811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14812for as_dir in $PATH
14813do
14814  IFS=$as_save_IFS
14815  case $as_dir in #(((
14816    '') as_dir=./ ;;
14817    */) ;;
14818    *) as_dir=$as_dir/ ;;
14819  esac
14820    for ac_exec_ext in '' $ac_executable_extensions; do
14821  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14822    ac_cv_prog_ac_ct_NMEDIT="nmedit"
14823    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14824    break 2
14825  fi
14826done
14827  done
14828IFS=$as_save_IFS
14829
14830fi ;;
14831esac
14832fi
14833ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14834if test -n "$ac_ct_NMEDIT"; then
14835  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14836printf "%s\n" "$ac_ct_NMEDIT" >&6; }
14837else
14838  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14839printf "%s\n" "no" >&6; }
14840fi
14841
14842  if test "x$ac_ct_NMEDIT" = x; then
14843    NMEDIT=":"
14844  else
14845    case $cross_compiling:$ac_tool_warned in
14846yes:)
14847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14848printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14849ac_tool_warned=yes ;;
14850esac
14851    NMEDIT=$ac_ct_NMEDIT
14852  fi
14853else
14854  NMEDIT="$ac_cv_prog_NMEDIT"
14855fi
14856
14857    if test -n "$ac_tool_prefix"; then
14858  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14859set dummy ${ac_tool_prefix}lipo; ac_word=$2
14860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14861printf %s "checking for $ac_word... " >&6; }
14862if test ${ac_cv_prog_LIPO+y}
14863then :
14864  printf %s "(cached) " >&6
14865else case e in #(
14866  e) if test -n "$LIPO"; then
14867  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14868else
14869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14870for as_dir in $PATH
14871do
14872  IFS=$as_save_IFS
14873  case $as_dir in #(((
14874    '') as_dir=./ ;;
14875    */) ;;
14876    *) as_dir=$as_dir/ ;;
14877  esac
14878    for ac_exec_ext in '' $ac_executable_extensions; do
14879  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14880    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14881    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14882    break 2
14883  fi
14884done
14885  done
14886IFS=$as_save_IFS
14887
14888fi ;;
14889esac
14890fi
14891LIPO=$ac_cv_prog_LIPO
14892if test -n "$LIPO"; then
14893  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14894printf "%s\n" "$LIPO" >&6; }
14895else
14896  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14897printf "%s\n" "no" >&6; }
14898fi
14899
14900
14901fi
14902if test -z "$ac_cv_prog_LIPO"; then
14903  ac_ct_LIPO=$LIPO
14904  # Extract the first word of "lipo", so it can be a program name with args.
14905set dummy lipo; ac_word=$2
14906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14907printf %s "checking for $ac_word... " >&6; }
14908if test ${ac_cv_prog_ac_ct_LIPO+y}
14909then :
14910  printf %s "(cached) " >&6
14911else case e in #(
14912  e) if test -n "$ac_ct_LIPO"; then
14913  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14914else
14915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14916for as_dir in $PATH
14917do
14918  IFS=$as_save_IFS
14919  case $as_dir in #(((
14920    '') as_dir=./ ;;
14921    */) ;;
14922    *) as_dir=$as_dir/ ;;
14923  esac
14924    for ac_exec_ext in '' $ac_executable_extensions; do
14925  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14926    ac_cv_prog_ac_ct_LIPO="lipo"
14927    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14928    break 2
14929  fi
14930done
14931  done
14932IFS=$as_save_IFS
14933
14934fi ;;
14935esac
14936fi
14937ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14938if test -n "$ac_ct_LIPO"; then
14939  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14940printf "%s\n" "$ac_ct_LIPO" >&6; }
14941else
14942  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14943printf "%s\n" "no" >&6; }
14944fi
14945
14946  if test "x$ac_ct_LIPO" = x; then
14947    LIPO=":"
14948  else
14949    case $cross_compiling:$ac_tool_warned in
14950yes:)
14951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14952printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14953ac_tool_warned=yes ;;
14954esac
14955    LIPO=$ac_ct_LIPO
14956  fi
14957else
14958  LIPO="$ac_cv_prog_LIPO"
14959fi
14960
14961    if test -n "$ac_tool_prefix"; then
14962  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14963set dummy ${ac_tool_prefix}otool; ac_word=$2
14964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14965printf %s "checking for $ac_word... " >&6; }
14966if test ${ac_cv_prog_OTOOL+y}
14967then :
14968  printf %s "(cached) " >&6
14969else case e in #(
14970  e) if test -n "$OTOOL"; then
14971  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14972else
14973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14974for as_dir in $PATH
14975do
14976  IFS=$as_save_IFS
14977  case $as_dir in #(((
14978    '') as_dir=./ ;;
14979    */) ;;
14980    *) as_dir=$as_dir/ ;;
14981  esac
14982    for ac_exec_ext in '' $ac_executable_extensions; do
14983  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14984    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14985    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14986    break 2
14987  fi
14988done
14989  done
14990IFS=$as_save_IFS
14991
14992fi ;;
14993esac
14994fi
14995OTOOL=$ac_cv_prog_OTOOL
14996if test -n "$OTOOL"; then
14997  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14998printf "%s\n" "$OTOOL" >&6; }
14999else
15000  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15001printf "%s\n" "no" >&6; }
15002fi
15003
15004
15005fi
15006if test -z "$ac_cv_prog_OTOOL"; then
15007  ac_ct_OTOOL=$OTOOL
15008  # Extract the first word of "otool", so it can be a program name with args.
15009set dummy otool; ac_word=$2
15010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15011printf %s "checking for $ac_word... " >&6; }
15012if test ${ac_cv_prog_ac_ct_OTOOL+y}
15013then :
15014  printf %s "(cached) " >&6
15015else case e in #(
15016  e) if test -n "$ac_ct_OTOOL"; then
15017  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15018else
15019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15020for as_dir in $PATH
15021do
15022  IFS=$as_save_IFS
15023  case $as_dir in #(((
15024    '') as_dir=./ ;;
15025    */) ;;
15026    *) as_dir=$as_dir/ ;;
15027  esac
15028    for ac_exec_ext in '' $ac_executable_extensions; do
15029  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15030    ac_cv_prog_ac_ct_OTOOL="otool"
15031    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15032    break 2
15033  fi
15034done
15035  done
15036IFS=$as_save_IFS
15037
15038fi ;;
15039esac
15040fi
15041ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15042if test -n "$ac_ct_OTOOL"; then
15043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15044printf "%s\n" "$ac_ct_OTOOL" >&6; }
15045else
15046  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15047printf "%s\n" "no" >&6; }
15048fi
15049
15050  if test "x$ac_ct_OTOOL" = x; then
15051    OTOOL=":"
15052  else
15053    case $cross_compiling:$ac_tool_warned in
15054yes:)
15055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15056printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15057ac_tool_warned=yes ;;
15058esac
15059    OTOOL=$ac_ct_OTOOL
15060  fi
15061else
15062  OTOOL="$ac_cv_prog_OTOOL"
15063fi
15064
15065    if test -n "$ac_tool_prefix"; then
15066  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15067set dummy ${ac_tool_prefix}otool64; ac_word=$2
15068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15069printf %s "checking for $ac_word... " >&6; }
15070if test ${ac_cv_prog_OTOOL64+y}
15071then :
15072  printf %s "(cached) " >&6
15073else case e in #(
15074  e) if test -n "$OTOOL64"; then
15075  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15076else
15077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15078for as_dir in $PATH
15079do
15080  IFS=$as_save_IFS
15081  case $as_dir in #(((
15082    '') as_dir=./ ;;
15083    */) ;;
15084    *) as_dir=$as_dir/ ;;
15085  esac
15086    for ac_exec_ext in '' $ac_executable_extensions; do
15087  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15088    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15089    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15090    break 2
15091  fi
15092done
15093  done
15094IFS=$as_save_IFS
15095
15096fi ;;
15097esac
15098fi
15099OTOOL64=$ac_cv_prog_OTOOL64
15100if test -n "$OTOOL64"; then
15101  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15102printf "%s\n" "$OTOOL64" >&6; }
15103else
15104  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15105printf "%s\n" "no" >&6; }
15106fi
15107
15108
15109fi
15110if test -z "$ac_cv_prog_OTOOL64"; then
15111  ac_ct_OTOOL64=$OTOOL64
15112  # Extract the first word of "otool64", so it can be a program name with args.
15113set dummy otool64; ac_word=$2
15114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15115printf %s "checking for $ac_word... " >&6; }
15116if test ${ac_cv_prog_ac_ct_OTOOL64+y}
15117then :
15118  printf %s "(cached) " >&6
15119else case e in #(
15120  e) if test -n "$ac_ct_OTOOL64"; then
15121  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15122else
15123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15124for as_dir in $PATH
15125do
15126  IFS=$as_save_IFS
15127  case $as_dir in #(((
15128    '') as_dir=./ ;;
15129    */) ;;
15130    *) as_dir=$as_dir/ ;;
15131  esac
15132    for ac_exec_ext in '' $ac_executable_extensions; do
15133  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15134    ac_cv_prog_ac_ct_OTOOL64="otool64"
15135    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15136    break 2
15137  fi
15138done
15139  done
15140IFS=$as_save_IFS
15141
15142fi ;;
15143esac
15144fi
15145ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15146if test -n "$ac_ct_OTOOL64"; then
15147  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15148printf "%s\n" "$ac_ct_OTOOL64" >&6; }
15149else
15150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15151printf "%s\n" "no" >&6; }
15152fi
15153
15154  if test "x$ac_ct_OTOOL64" = x; then
15155    OTOOL64=":"
15156  else
15157    case $cross_compiling:$ac_tool_warned in
15158yes:)
15159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15160printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15161ac_tool_warned=yes ;;
15162esac
15163    OTOOL64=$ac_ct_OTOOL64
15164  fi
15165else
15166  OTOOL64="$ac_cv_prog_OTOOL64"
15167fi
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15196printf %s "checking for -single_module linker flag... " >&6; }
15197if test ${lt_cv_apple_cc_single_mod+y}
15198then :
15199  printf %s "(cached) " >&6
15200else case e in #(
15201  e) lt_cv_apple_cc_single_mod=no
15202      if test -z "$LT_MULTI_MODULE"; then
15203	# By default we will add the -single_module flag. You can override
15204	# by either setting the environment variable LT_MULTI_MODULE
15205	# non-empty at configure time, or by adding -multi_module to the
15206	# link flags.
15207	rm -rf libconftest.dylib*
15208	echo "int foo(void){return 1;}" > conftest.c
15209	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15210-dynamiclib -Wl,-single_module conftest.c" >&5
15211	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15212	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15213        _lt_result=$?
15214	# If there is a non-empty error log, and "single_module"
15215	# appears in it, assume the flag caused a linker warning
15216        if test -s conftest.err && $GREP single_module conftest.err; then
15217	  cat conftest.err >&5
15218	# Otherwise, if the output was created with a 0 exit code from
15219	# the compiler, it worked.
15220	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
15221	  lt_cv_apple_cc_single_mod=yes
15222	else
15223	  cat conftest.err >&5
15224	fi
15225	rm -rf libconftest.dylib*
15226	rm -f conftest.*
15227      fi ;;
15228esac
15229fi
15230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15231printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
15232
15233    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15234printf %s "checking for -exported_symbols_list linker flag... " >&6; }
15235if test ${lt_cv_ld_exported_symbols_list+y}
15236then :
15237  printf %s "(cached) " >&6
15238else case e in #(
15239  e) lt_cv_ld_exported_symbols_list=no
15240      save_LDFLAGS=$LDFLAGS
15241      echo "_main" > conftest.sym
15242      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15243      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15244/* end confdefs.h.  */
15245
15246int
15247main (void)
15248{
15249
15250  ;
15251  return 0;
15252}
15253_ACEOF
15254if ac_fn_c_try_link "$LINENO"
15255then :
15256  lt_cv_ld_exported_symbols_list=yes
15257else case e in #(
15258  e) lt_cv_ld_exported_symbols_list=no ;;
15259esac
15260fi
15261rm -f core conftest.err conftest.$ac_objext conftest.beam \
15262    conftest$ac_exeext conftest.$ac_ext
15263	LDFLAGS=$save_LDFLAGS
15264     ;;
15265esac
15266fi
15267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15268printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
15269
15270    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15271printf %s "checking for -force_load linker flag... " >&6; }
15272if test ${lt_cv_ld_force_load+y}
15273then :
15274  printf %s "(cached) " >&6
15275else case e in #(
15276  e) lt_cv_ld_force_load=no
15277      cat > conftest.c << _LT_EOF
15278int forced_loaded() { return 2;}
15279_LT_EOF
15280      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15281      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15282      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
15283      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
15284      echo "$RANLIB libconftest.a" >&5
15285      $RANLIB libconftest.a 2>&5
15286      cat > conftest.c << _LT_EOF
15287int main() { return 0;}
15288_LT_EOF
15289      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15290      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15291      _lt_result=$?
15292      if test -s conftest.err && $GREP force_load conftest.err; then
15293	cat conftest.err >&5
15294      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
15295	lt_cv_ld_force_load=yes
15296      else
15297	cat conftest.err >&5
15298      fi
15299        rm -f conftest.err libconftest.a conftest conftest.c
15300        rm -rf conftest.dSYM
15301     ;;
15302esac
15303fi
15304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15305printf "%s\n" "$lt_cv_ld_force_load" >&6; }
15306    case $host_os in
15307    rhapsody* | darwin1.[012])
15308      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
15309    darwin1.*)
15310      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15311    darwin*)
15312      case $MACOSX_DEPLOYMENT_TARGET,$host in
15313        10.[012],*|,*powerpc*-darwin[5-8]*)
15314          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15315        *)
15316          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
15317      esac
15318    ;;
15319  esac
15320    if test yes = "$lt_cv_apple_cc_single_mod"; then
15321      _lt_dar_single_mod='$single_module'
15322    fi
15323    if test yes = "$lt_cv_ld_exported_symbols_list"; then
15324      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
15325    else
15326      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
15327    fi
15328    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
15329      _lt_dsymutil='~$DSYMUTIL $lib || :'
15330    else
15331      _lt_dsymutil=
15332    fi
15333    ;;
15334  esac
15335
15336# func_munge_path_list VARIABLE PATH
15337# -----------------------------------
15338# VARIABLE is name of variable containing _space_ separated list of
15339# directories to be munged by the contents of PATH, which is string
15340# having a format:
15341# "DIR[:DIR]:"
15342#       string "DIR[ DIR]" will be prepended to VARIABLE
15343# ":DIR[:DIR]"
15344#       string "DIR[ DIR]" will be appended to VARIABLE
15345# "DIRP[:DIRP]::[DIRA:]DIRA"
15346#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15347#       "DIRA[ DIRA]" will be appended to VARIABLE
15348# "DIR[:DIR]"
15349#       VARIABLE will be replaced by "DIR[ DIR]"
15350func_munge_path_list ()
15351{
15352    case x$2 in
15353    x)
15354        ;;
15355    *:)
15356        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15357        ;;
15358    x:*)
15359        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15360        ;;
15361    *::*)
15362        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15363        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15364        ;;
15365    *)
15366        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15367        ;;
15368    esac
15369}
15370
15371ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15372"
15373if test "x$ac_cv_header_dlfcn_h" = xyes
15374then :
15375  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
15376
15377fi
15378
15379
15380
15381
15382
15383# Set options
15384# Check whether --enable-static was given.
15385if test ${enable_static+y}
15386then :
15387  enableval=$enable_static; p=${PACKAGE-default}
15388    case $enableval in
15389    yes) enable_static=yes ;;
15390    no) enable_static=no ;;
15391    *)
15392     enable_static=no
15393      # Look at the argument we got.  We use all the common list separators.
15394      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15395      for pkg in $enableval; do
15396	IFS=$lt_save_ifs
15397	if test "X$pkg" = "X$p"; then
15398	  enable_static=yes
15399	fi
15400      done
15401      IFS=$lt_save_ifs
15402      ;;
15403    esac
15404else case e in #(
15405  e) enable_static=no ;;
15406esac
15407fi
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418        enable_dlopen=no
15419
15420
15421  enable_win32_dll=no
15422
15423
15424            # Check whether --enable-shared was given.
15425if test ${enable_shared+y}
15426then :
15427  enableval=$enable_shared; p=${PACKAGE-default}
15428    case $enableval in
15429    yes) enable_shared=yes ;;
15430    no) enable_shared=no ;;
15431    *)
15432      enable_shared=no
15433      # Look at the argument we got.  We use all the common list separators.
15434      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15435      for pkg in $enableval; do
15436	IFS=$lt_save_ifs
15437	if test "X$pkg" = "X$p"; then
15438	  enable_shared=yes
15439	fi
15440      done
15441      IFS=$lt_save_ifs
15442      ;;
15443    esac
15444else case e in #(
15445  e) enable_shared=yes ;;
15446esac
15447fi
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459# Check whether --with-pic was given.
15460if test ${with_pic+y}
15461then :
15462  withval=$with_pic; lt_p=${PACKAGE-default}
15463    case $withval in
15464    yes|no) pic_mode=$withval ;;
15465    *)
15466      pic_mode=default
15467      # Look at the argument we got.  We use all the common list separators.
15468      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15469      for lt_pkg in $withval; do
15470	IFS=$lt_save_ifs
15471	if test "X$lt_pkg" = "X$lt_p"; then
15472	  pic_mode=yes
15473	fi
15474      done
15475      IFS=$lt_save_ifs
15476      ;;
15477    esac
15478else case e in #(
15479  e) pic_mode=default ;;
15480esac
15481fi
15482
15483
15484
15485
15486
15487
15488
15489
15490  # Check whether --enable-fast-install was given.
15491if test ${enable_fast_install+y}
15492then :
15493  enableval=$enable_fast_install; p=${PACKAGE-default}
15494    case $enableval in
15495    yes) enable_fast_install=yes ;;
15496    no) enable_fast_install=no ;;
15497    *)
15498      enable_fast_install=no
15499      # Look at the argument we got.  We use all the common list separators.
15500      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15501      for pkg in $enableval; do
15502	IFS=$lt_save_ifs
15503	if test "X$pkg" = "X$p"; then
15504	  enable_fast_install=yes
15505	fi
15506      done
15507      IFS=$lt_save_ifs
15508      ;;
15509    esac
15510else case e in #(
15511  e) enable_fast_install=yes ;;
15512esac
15513fi
15514
15515
15516
15517
15518
15519
15520
15521
15522  shared_archive_member_spec=
15523case $host,$enable_shared in
15524power*-*-aix[5-9]*,yes)
15525  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15526printf %s "checking which variant of shared library versioning to provide... " >&6; }
15527
15528# Check whether --with-aix-soname was given.
15529if test ${with_aix_soname+y}
15530then :
15531  withval=$with_aix_soname; case $withval in
15532    aix|svr4|both)
15533      ;;
15534    *)
15535      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15536      ;;
15537    esac
15538    lt_cv_with_aix_soname=$with_aix_soname
15539else case e in #(
15540  e) if test ${lt_cv_with_aix_soname+y}
15541then :
15542  printf %s "(cached) " >&6
15543else case e in #(
15544  e) lt_cv_with_aix_soname=aix ;;
15545esac
15546fi
15547
15548    with_aix_soname=$lt_cv_with_aix_soname ;;
15549esac
15550fi
15551
15552  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15553printf "%s\n" "$with_aix_soname" >&6; }
15554  if test aix != "$with_aix_soname"; then
15555    # For the AIX way of multilib, we name the shared archive member
15556    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15557    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15558    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15559    # the AIX toolchain works better with OBJECT_MODE set (default 32).
15560    if test 64 = "${OBJECT_MODE-32}"; then
15561      shared_archive_member_spec=shr_64
15562    else
15563      shared_archive_member_spec=shr
15564    fi
15565  fi
15566  ;;
15567*)
15568  with_aix_soname=aix
15569  ;;
15570esac
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581# This can be used to rebuild libtool when needed
15582LIBTOOL_DEPS=$ltmain
15583
15584# Always use our own libtool.
15585LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609
15610
15611
15612
15613
15614
15615
15616test -z "$LN_S" && LN_S="ln -s"
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631if test -n "${ZSH_VERSION+set}"; then
15632   setopt NO_GLOB_SUBST
15633fi
15634
15635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15636printf %s "checking for objdir... " >&6; }
15637if test ${lt_cv_objdir+y}
15638then :
15639  printf %s "(cached) " >&6
15640else case e in #(
15641  e) rm -f .libs 2>/dev/null
15642mkdir .libs 2>/dev/null
15643if test -d .libs; then
15644  lt_cv_objdir=.libs
15645else
15646  # MS-DOS does not allow filenames that begin with a dot.
15647  lt_cv_objdir=_libs
15648fi
15649rmdir .libs 2>/dev/null ;;
15650esac
15651fi
15652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15653printf "%s\n" "$lt_cv_objdir" >&6; }
15654objdir=$lt_cv_objdir
15655
15656
15657
15658
15659
15660printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
15661
15662
15663
15664
15665case $host_os in
15666aix3*)
15667  # AIX sometimes has problems with the GCC collect2 program.  For some
15668  # reason, if we set the COLLECT_NAMES environment variable, the problems
15669  # vanish in a puff of smoke.
15670  if test set != "${COLLECT_NAMES+set}"; then
15671    COLLECT_NAMES=
15672    export COLLECT_NAMES
15673  fi
15674  ;;
15675esac
15676
15677# Global variables:
15678ofile=libtool
15679can_build_shared=yes
15680
15681# All known linkers require a '.a' archive for static linking (except MSVC and
15682# ICC, which need '.lib').
15683libext=a
15684
15685with_gnu_ld=$lt_cv_prog_gnu_ld
15686
15687old_CC=$CC
15688old_CFLAGS=$CFLAGS
15689
15690# Set sane defaults for various variables
15691test -z "$CC" && CC=cc
15692test -z "$LTCC" && LTCC=$CC
15693test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15694test -z "$LD" && LD=ld
15695test -z "$ac_objext" && ac_objext=o
15696
15697func_cc_basename $compiler
15698cc_basename=$func_cc_basename_result
15699
15700
15701# Only perform the check for file, if the check method requires it
15702test -z "$MAGIC_CMD" && MAGIC_CMD=file
15703case $deplibs_check_method in
15704file_magic*)
15705  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15706    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15707printf %s "checking for ${ac_tool_prefix}file... " >&6; }
15708if test ${lt_cv_path_MAGIC_CMD+y}
15709then :
15710  printf %s "(cached) " >&6
15711else case e in #(
15712  e) case $MAGIC_CMD in
15713[\\/*] |  ?:[\\/]*)
15714  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15715  ;;
15716*)
15717  lt_save_MAGIC_CMD=$MAGIC_CMD
15718  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15719  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15720  for ac_dir in $ac_dummy; do
15721    IFS=$lt_save_ifs
15722    test -z "$ac_dir" && ac_dir=.
15723    if test -f "$ac_dir/${ac_tool_prefix}file"; then
15724      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15725      if test -n "$file_magic_test_file"; then
15726	case $deplibs_check_method in
15727	"file_magic "*)
15728	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15729	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15730	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15731	    $EGREP "$file_magic_regex" > /dev/null; then
15732	    :
15733	  else
15734	    cat <<_LT_EOF 1>&2
15735
15736*** Warning: the command libtool uses to detect shared libraries,
15737*** $file_magic_cmd, produces output that libtool cannot recognize.
15738*** The result is that libtool may fail to recognize shared libraries
15739*** as such.  This will affect the creation of libtool libraries that
15740*** depend on shared libraries, but programs linked with such libtool
15741*** libraries will work regardless of this problem.  Nevertheless, you
15742*** may want to report the problem to your system manager and/or to
15743*** bug-libtool@gnu.org
15744
15745_LT_EOF
15746	  fi ;;
15747	esac
15748      fi
15749      break
15750    fi
15751  done
15752  IFS=$lt_save_ifs
15753  MAGIC_CMD=$lt_save_MAGIC_CMD
15754  ;;
15755esac ;;
15756esac
15757fi
15758
15759MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15760if test -n "$MAGIC_CMD"; then
15761  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15762printf "%s\n" "$MAGIC_CMD" >&6; }
15763else
15764  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15765printf "%s\n" "no" >&6; }
15766fi
15767
15768
15769
15770
15771
15772if test -z "$lt_cv_path_MAGIC_CMD"; then
15773  if test -n "$ac_tool_prefix"; then
15774    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15775printf %s "checking for file... " >&6; }
15776if test ${lt_cv_path_MAGIC_CMD+y}
15777then :
15778  printf %s "(cached) " >&6
15779else case e in #(
15780  e) case $MAGIC_CMD in
15781[\\/*] |  ?:[\\/]*)
15782  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15783  ;;
15784*)
15785  lt_save_MAGIC_CMD=$MAGIC_CMD
15786  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15787  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15788  for ac_dir in $ac_dummy; do
15789    IFS=$lt_save_ifs
15790    test -z "$ac_dir" && ac_dir=.
15791    if test -f "$ac_dir/file"; then
15792      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15793      if test -n "$file_magic_test_file"; then
15794	case $deplibs_check_method in
15795	"file_magic "*)
15796	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15797	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15798	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15799	    $EGREP "$file_magic_regex" > /dev/null; then
15800	    :
15801	  else
15802	    cat <<_LT_EOF 1>&2
15803
15804*** Warning: the command libtool uses to detect shared libraries,
15805*** $file_magic_cmd, produces output that libtool cannot recognize.
15806*** The result is that libtool may fail to recognize shared libraries
15807*** as such.  This will affect the creation of libtool libraries that
15808*** depend on shared libraries, but programs linked with such libtool
15809*** libraries will work regardless of this problem.  Nevertheless, you
15810*** may want to report the problem to your system manager and/or to
15811*** bug-libtool@gnu.org
15812
15813_LT_EOF
15814	  fi ;;
15815	esac
15816      fi
15817      break
15818    fi
15819  done
15820  IFS=$lt_save_ifs
15821  MAGIC_CMD=$lt_save_MAGIC_CMD
15822  ;;
15823esac ;;
15824esac
15825fi
15826
15827MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15828if test -n "$MAGIC_CMD"; then
15829  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15830printf "%s\n" "$MAGIC_CMD" >&6; }
15831else
15832  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15833printf "%s\n" "no" >&6; }
15834fi
15835
15836
15837  else
15838    MAGIC_CMD=:
15839  fi
15840fi
15841
15842  fi
15843  ;;
15844esac
15845
15846# Use C for the default configuration in the libtool script
15847
15848lt_save_CC=$CC
15849ac_ext=c
15850ac_cpp='$CPP $CPPFLAGS'
15851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15853ac_compiler_gnu=$ac_cv_c_compiler_gnu
15854
15855
15856# Source file extension for C test sources.
15857ac_ext=c
15858
15859# Object file extension for compiled C test sources.
15860objext=o
15861objext=$objext
15862
15863# Code to be used in simple compile tests
15864lt_simple_compile_test_code="int some_variable = 0;"
15865
15866# Code to be used in simple link tests
15867lt_simple_link_test_code='int main(){return(0);}'
15868
15869
15870
15871
15872
15873
15874
15875# If no C compiler was specified, use CC.
15876LTCC=${LTCC-"$CC"}
15877
15878# If no C compiler flags were specified, use CFLAGS.
15879LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15880
15881# Allow CC to be a program name with arguments.
15882compiler=$CC
15883
15884# Save the default compiler, since it gets overwritten when the other
15885# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15886compiler_DEFAULT=$CC
15887
15888# save warnings/boilerplate of simple test code
15889ac_outfile=conftest.$ac_objext
15890echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15891eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15892_lt_compiler_boilerplate=`cat conftest.err`
15893$RM conftest*
15894
15895ac_outfile=conftest.$ac_objext
15896echo "$lt_simple_link_test_code" >conftest.$ac_ext
15897eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15898_lt_linker_boilerplate=`cat conftest.err`
15899$RM -r conftest*
15900
15901
15902if test -n "$compiler"; then
15903
15904lt_prog_compiler_no_builtin_flag=
15905
15906if test yes = "$GCC"; then
15907  case $cc_basename in
15908  nvcc*)
15909    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15910  *)
15911    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15912  esac
15913
15914  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15915printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15916if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15917then :
15918  printf %s "(cached) " >&6
15919else case e in #(
15920  e) lt_cv_prog_compiler_rtti_exceptions=no
15921   ac_outfile=conftest.$ac_objext
15922   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15923   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
15924   # Insert the option either (1) after the last *FLAGS variable, or
15925   # (2) before a word containing "conftest.", or (3) at the end.
15926   # Note that $ac_compile itself does not contain backslashes and begins
15927   # with a dollar sign (not a hyphen), so the echo should work correctly.
15928   # The option is referenced via a variable to avoid confusing sed.
15929   lt_compile=`echo "$ac_compile" | $SED \
15930   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15931   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15932   -e 's:$: $lt_compiler_flag:'`
15933   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15934   (eval "$lt_compile" 2>conftest.err)
15935   ac_status=$?
15936   cat conftest.err >&5
15937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938   if (exit $ac_status) && test -s "$ac_outfile"; then
15939     # The compiler can only warn and ignore the option if not recognized
15940     # So say no if there are warnings other than the usual output.
15941     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15942     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15943     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15944       lt_cv_prog_compiler_rtti_exceptions=yes
15945     fi
15946   fi
15947   $RM conftest*
15948 ;;
15949esac
15950fi
15951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15952printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15953
15954if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15955    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15956else
15957    :
15958fi
15959
15960fi
15961
15962
15963
15964
15965
15966
15967  lt_prog_compiler_wl=
15968lt_prog_compiler_pic=
15969lt_prog_compiler_static=
15970
15971
15972  if test yes = "$GCC"; then
15973    lt_prog_compiler_wl='-Wl,'
15974    lt_prog_compiler_static='-static'
15975
15976    case $host_os in
15977      aix*)
15978      # All AIX code is PIC.
15979      if test ia64 = "$host_cpu"; then
15980	# AIX 5 now supports IA64 processor
15981	lt_prog_compiler_static='-Bstatic'
15982      fi
15983      lt_prog_compiler_pic='-fPIC'
15984      ;;
15985
15986    amigaos*)
15987      case $host_cpu in
15988      powerpc)
15989            # see comment about AmigaOS4 .so support
15990            lt_prog_compiler_pic='-fPIC'
15991        ;;
15992      m68k)
15993            # FIXME: we need at least 68020 code to build shared libraries, but
15994            # adding the '-m68020' flag to GCC prevents building anything better,
15995            # like '-m68040'.
15996            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15997        ;;
15998      esac
15999      ;;
16000
16001    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16002      # PIC is the default for these OSes.
16003      ;;
16004
16005    mingw* | cygwin* | pw32* | os2* | cegcc*)
16006      # This hack is so that the source file can tell whether it is being
16007      # built for inclusion in a dll (and should export symbols for example).
16008      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16009      # (--disable-auto-import) libraries
16010      lt_prog_compiler_pic='-DDLL_EXPORT'
16011      case $host_os in
16012      os2*)
16013	lt_prog_compiler_static='$wl-static'
16014	;;
16015      esac
16016      ;;
16017
16018    darwin* | rhapsody*)
16019      # PIC is the default on this platform
16020      # Common symbols not allowed in MH_DYLIB files
16021      lt_prog_compiler_pic='-fno-common'
16022      ;;
16023
16024    haiku*)
16025      # PIC is the default for Haiku.
16026      # The "-static" flag exists, but is broken.
16027      lt_prog_compiler_static=
16028      ;;
16029
16030    hpux*)
16031      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16032      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16033      # sets the default TLS model and affects inlining.
16034      case $host_cpu in
16035      hppa*64*)
16036	# +Z the default
16037	;;
16038      *)
16039	lt_prog_compiler_pic='-fPIC'
16040	;;
16041      esac
16042      ;;
16043
16044    interix[3-9]*)
16045      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16046      # Instead, we relocate shared libraries at runtime.
16047      ;;
16048
16049    msdosdjgpp*)
16050      # Just because we use GCC doesn't mean we suddenly get shared libraries
16051      # on systems that don't support them.
16052      lt_prog_compiler_can_build_shared=no
16053      enable_shared=no
16054      ;;
16055
16056    *nto* | *qnx*)
16057      # QNX uses GNU C++, but need to define -shared option too, otherwise
16058      # it will coredump.
16059      lt_prog_compiler_pic='-fPIC -shared'
16060      ;;
16061
16062    sysv4*MP*)
16063      if test -d /usr/nec; then
16064	lt_prog_compiler_pic=-Kconform_pic
16065      fi
16066      ;;
16067
16068    *)
16069      lt_prog_compiler_pic='-fPIC'
16070      ;;
16071    esac
16072
16073    case $cc_basename in
16074    nvcc*) # Cuda Compiler Driver 2.2
16075      lt_prog_compiler_wl='-Xlinker '
16076      if test -n "$lt_prog_compiler_pic"; then
16077        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
16078      fi
16079      ;;
16080    esac
16081  else
16082    # PORTME Check for flag to pass linker flags through the system compiler.
16083    case $host_os in
16084    aix*)
16085      lt_prog_compiler_wl='-Wl,'
16086      if test ia64 = "$host_cpu"; then
16087	# AIX 5 now supports IA64 processor
16088	lt_prog_compiler_static='-Bstatic'
16089      else
16090	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16091      fi
16092      ;;
16093
16094    darwin* | rhapsody*)
16095      # PIC is the default on this platform
16096      # Common symbols not allowed in MH_DYLIB files
16097      lt_prog_compiler_pic='-fno-common'
16098      case $cc_basename in
16099      nagfor*)
16100        # NAG Fortran compiler
16101        lt_prog_compiler_wl='-Wl,-Wl,,'
16102        lt_prog_compiler_pic='-PIC'
16103        lt_prog_compiler_static='-Bstatic'
16104        ;;
16105      esac
16106      ;;
16107
16108    mingw* | cygwin* | pw32* | os2* | cegcc*)
16109      # This hack is so that the source file can tell whether it is being
16110      # built for inclusion in a dll (and should export symbols for example).
16111      lt_prog_compiler_pic='-DDLL_EXPORT'
16112      case $host_os in
16113      os2*)
16114	lt_prog_compiler_static='$wl-static'
16115	;;
16116      esac
16117      ;;
16118
16119    hpux9* | hpux10* | hpux11*)
16120      lt_prog_compiler_wl='-Wl,'
16121      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16122      # not for PA HP-UX.
16123      case $host_cpu in
16124      hppa*64*|ia64*)
16125	# +Z the default
16126	;;
16127      *)
16128	lt_prog_compiler_pic='+Z'
16129	;;
16130      esac
16131      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16132      lt_prog_compiler_static='$wl-a ${wl}archive'
16133      ;;
16134
16135    irix5* | irix6* | nonstopux*)
16136      lt_prog_compiler_wl='-Wl,'
16137      # PIC (with -KPIC) is the default.
16138      lt_prog_compiler_static='-non_shared'
16139      ;;
16140
16141    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16142      case $cc_basename in
16143      # old Intel for x86_64, which still supported -KPIC.
16144      ecc*)
16145	lt_prog_compiler_wl='-Wl,'
16146	lt_prog_compiler_pic='-KPIC'
16147	lt_prog_compiler_static='-static'
16148        ;;
16149      # icc used to be incompatible with GCC.
16150      # ICC 10 doesn't accept -KPIC any more.
16151      icc* | ifort*)
16152	lt_prog_compiler_wl='-Wl,'
16153	lt_prog_compiler_pic='-fPIC'
16154	lt_prog_compiler_static='-static'
16155        ;;
16156      # Lahey Fortran 8.1.
16157      lf95*)
16158	lt_prog_compiler_wl='-Wl,'
16159	lt_prog_compiler_pic='--shared'
16160	lt_prog_compiler_static='--static'
16161	;;
16162      nagfor*)
16163	# NAG Fortran compiler
16164	lt_prog_compiler_wl='-Wl,-Wl,,'
16165	lt_prog_compiler_pic='-PIC'
16166	lt_prog_compiler_static='-Bstatic'
16167	;;
16168      tcc*)
16169	# Fabrice Bellard et al's Tiny C Compiler
16170	lt_prog_compiler_wl='-Wl,'
16171	lt_prog_compiler_pic='-fPIC'
16172	lt_prog_compiler_static='-static'
16173	;;
16174      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16175        # Portland Group compilers (*not* the Pentium gcc compiler,
16176	# which looks to be a dead project)
16177	lt_prog_compiler_wl='-Wl,'
16178	lt_prog_compiler_pic='-fpic'
16179	lt_prog_compiler_static='-Bstatic'
16180        ;;
16181      ccc*)
16182        lt_prog_compiler_wl='-Wl,'
16183        # All Alpha code is PIC.
16184        lt_prog_compiler_static='-non_shared'
16185        ;;
16186      xl* | bgxl* | bgf* | mpixl*)
16187	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16188	lt_prog_compiler_wl='-Wl,'
16189	lt_prog_compiler_pic='-qpic'
16190	lt_prog_compiler_static='-qstaticlink'
16191	;;
16192      *)
16193	case `$CC -V 2>&1 | $SED 5q` in
16194	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
16195	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16196	  lt_prog_compiler_pic='-KPIC'
16197	  lt_prog_compiler_static='-Bstatic'
16198	  lt_prog_compiler_wl=''
16199	  ;;
16200	*Sun\ F* | *Sun*Fortran*)
16201	  lt_prog_compiler_pic='-KPIC'
16202	  lt_prog_compiler_static='-Bstatic'
16203	  lt_prog_compiler_wl='-Qoption ld '
16204	  ;;
16205	*Sun\ C*)
16206	  # Sun C 5.9
16207	  lt_prog_compiler_pic='-KPIC'
16208	  lt_prog_compiler_static='-Bstatic'
16209	  lt_prog_compiler_wl='-Wl,'
16210	  ;;
16211        *Intel*\ [CF]*Compiler*)
16212	  lt_prog_compiler_wl='-Wl,'
16213	  lt_prog_compiler_pic='-fPIC'
16214	  lt_prog_compiler_static='-static'
16215	  ;;
16216	*Portland\ Group*)
16217	  lt_prog_compiler_wl='-Wl,'
16218	  lt_prog_compiler_pic='-fpic'
16219	  lt_prog_compiler_static='-Bstatic'
16220	  ;;
16221	esac
16222	;;
16223      esac
16224      ;;
16225
16226    newsos6)
16227      lt_prog_compiler_pic='-KPIC'
16228      lt_prog_compiler_static='-Bstatic'
16229      ;;
16230
16231    *nto* | *qnx*)
16232      # QNX uses GNU C++, but need to define -shared option too, otherwise
16233      # it will coredump.
16234      lt_prog_compiler_pic='-fPIC -shared'
16235      ;;
16236
16237    osf3* | osf4* | osf5*)
16238      lt_prog_compiler_wl='-Wl,'
16239      # All OSF/1 code is PIC.
16240      lt_prog_compiler_static='-non_shared'
16241      ;;
16242
16243    rdos*)
16244      lt_prog_compiler_static='-non_shared'
16245      ;;
16246
16247    solaris*)
16248      lt_prog_compiler_pic='-KPIC'
16249      lt_prog_compiler_static='-Bstatic'
16250      case $cc_basename in
16251      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
16252	lt_prog_compiler_wl='-Qoption ld ';;
16253      *)
16254	lt_prog_compiler_wl='-Wl,';;
16255      esac
16256      ;;
16257
16258    sunos4*)
16259      lt_prog_compiler_wl='-Qoption ld '
16260      lt_prog_compiler_pic='-PIC'
16261      lt_prog_compiler_static='-Bstatic'
16262      ;;
16263
16264    sysv4 | sysv4.2uw2* | sysv4.3*)
16265      lt_prog_compiler_wl='-Wl,'
16266      lt_prog_compiler_pic='-KPIC'
16267      lt_prog_compiler_static='-Bstatic'
16268      ;;
16269
16270    sysv4*MP*)
16271      if test -d /usr/nec; then
16272	lt_prog_compiler_pic='-Kconform_pic'
16273	lt_prog_compiler_static='-Bstatic'
16274      fi
16275      ;;
16276
16277    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16278      lt_prog_compiler_wl='-Wl,'
16279      lt_prog_compiler_pic='-KPIC'
16280      lt_prog_compiler_static='-Bstatic'
16281      ;;
16282
16283    unicos*)
16284      lt_prog_compiler_wl='-Wl,'
16285      lt_prog_compiler_can_build_shared=no
16286      ;;
16287
16288    uts4*)
16289      lt_prog_compiler_pic='-pic'
16290      lt_prog_compiler_static='-Bstatic'
16291      ;;
16292
16293    *)
16294      lt_prog_compiler_can_build_shared=no
16295      ;;
16296    esac
16297  fi
16298
16299case $host_os in
16300  # For platforms that do not support PIC, -DPIC is meaningless:
16301  *djgpp*)
16302    lt_prog_compiler_pic=
16303    ;;
16304  *)
16305    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16306    ;;
16307esac
16308
16309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16310printf %s "checking for $compiler option to produce PIC... " >&6; }
16311if test ${lt_cv_prog_compiler_pic+y}
16312then :
16313  printf %s "(cached) " >&6
16314else case e in #(
16315  e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
16316esac
16317fi
16318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
16319printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
16320lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
16321
16322#
16323# Check to make sure the PIC flag actually works.
16324#
16325if test -n "$lt_prog_compiler_pic"; then
16326  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16327printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16328if test ${lt_cv_prog_compiler_pic_works+y}
16329then :
16330  printf %s "(cached) " >&6
16331else case e in #(
16332  e) lt_cv_prog_compiler_pic_works=no
16333   ac_outfile=conftest.$ac_objext
16334   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16335   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16336   # Insert the option either (1) after the last *FLAGS variable, or
16337   # (2) before a word containing "conftest.", or (3) at the end.
16338   # Note that $ac_compile itself does not contain backslashes and begins
16339   # with a dollar sign (not a hyphen), so the echo should work correctly.
16340   # The option is referenced via a variable to avoid confusing sed.
16341   lt_compile=`echo "$ac_compile" | $SED \
16342   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16343   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16344   -e 's:$: $lt_compiler_flag:'`
16345   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16346   (eval "$lt_compile" 2>conftest.err)
16347   ac_status=$?
16348   cat conftest.err >&5
16349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350   if (exit $ac_status) && test -s "$ac_outfile"; then
16351     # The compiler can only warn and ignore the option if not recognized
16352     # So say no if there are warnings other than the usual output.
16353     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16354     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16355     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16356       lt_cv_prog_compiler_pic_works=yes
16357     fi
16358   fi
16359   $RM conftest*
16360 ;;
16361esac
16362fi
16363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16364printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
16365
16366if test yes = "$lt_cv_prog_compiler_pic_works"; then
16367    case $lt_prog_compiler_pic in
16368     "" | " "*) ;;
16369     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16370     esac
16371else
16372    lt_prog_compiler_pic=
16373     lt_prog_compiler_can_build_shared=no
16374fi
16375
16376fi
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388#
16389# Check to make sure the static flag actually works.
16390#
16391wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16393printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16394if test ${lt_cv_prog_compiler_static_works+y}
16395then :
16396  printf %s "(cached) " >&6
16397else case e in #(
16398  e) lt_cv_prog_compiler_static_works=no
16399   save_LDFLAGS=$LDFLAGS
16400   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16401   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16402   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16403     # The linker can only warn and ignore the option if not recognized
16404     # So say no if there are warnings
16405     if test -s conftest.err; then
16406       # Append any errors to the config.log.
16407       cat conftest.err 1>&5
16408       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16409       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16410       if diff conftest.exp conftest.er2 >/dev/null; then
16411         lt_cv_prog_compiler_static_works=yes
16412       fi
16413     else
16414       lt_cv_prog_compiler_static_works=yes
16415     fi
16416   fi
16417   $RM -r conftest*
16418   LDFLAGS=$save_LDFLAGS
16419 ;;
16420esac
16421fi
16422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16423printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
16424
16425if test yes = "$lt_cv_prog_compiler_static_works"; then
16426    :
16427else
16428    lt_prog_compiler_static=
16429fi
16430
16431
16432
16433
16434
16435
16436
16437  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16438printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16439if test ${lt_cv_prog_compiler_c_o+y}
16440then :
16441  printf %s "(cached) " >&6
16442else case e in #(
16443  e) lt_cv_prog_compiler_c_o=no
16444   $RM -r conftest 2>/dev/null
16445   mkdir conftest
16446   cd conftest
16447   mkdir out
16448   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16449
16450   lt_compiler_flag="-o out/conftest2.$ac_objext"
16451   # Insert the option either (1) after the last *FLAGS variable, or
16452   # (2) before a word containing "conftest.", or (3) at the end.
16453   # Note that $ac_compile itself does not contain backslashes and begins
16454   # with a dollar sign (not a hyphen), so the echo should work correctly.
16455   lt_compile=`echo "$ac_compile" | $SED \
16456   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16457   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16458   -e 's:$: $lt_compiler_flag:'`
16459   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16460   (eval "$lt_compile" 2>out/conftest.err)
16461   ac_status=$?
16462   cat out/conftest.err >&5
16463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16465   then
16466     # The compiler can only warn and ignore the option if not recognized
16467     # So say no if there are warnings
16468     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16469     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16470     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16471       lt_cv_prog_compiler_c_o=yes
16472     fi
16473   fi
16474   chmod u+w . 2>&5
16475   $RM conftest*
16476   # SGI C++ compiler will create directory out/ii_files/ for
16477   # template instantiation
16478   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16479   $RM out/* && rmdir out
16480   cd ..
16481   $RM -r conftest
16482   $RM conftest*
16483 ;;
16484esac
16485fi
16486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16487printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16488
16489
16490
16491
16492
16493
16494  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16495printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16496if test ${lt_cv_prog_compiler_c_o+y}
16497then :
16498  printf %s "(cached) " >&6
16499else case e in #(
16500  e) lt_cv_prog_compiler_c_o=no
16501   $RM -r conftest 2>/dev/null
16502   mkdir conftest
16503   cd conftest
16504   mkdir out
16505   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16506
16507   lt_compiler_flag="-o out/conftest2.$ac_objext"
16508   # Insert the option either (1) after the last *FLAGS variable, or
16509   # (2) before a word containing "conftest.", or (3) at the end.
16510   # Note that $ac_compile itself does not contain backslashes and begins
16511   # with a dollar sign (not a hyphen), so the echo should work correctly.
16512   lt_compile=`echo "$ac_compile" | $SED \
16513   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16514   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16515   -e 's:$: $lt_compiler_flag:'`
16516   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16517   (eval "$lt_compile" 2>out/conftest.err)
16518   ac_status=$?
16519   cat out/conftest.err >&5
16520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16522   then
16523     # The compiler can only warn and ignore the option if not recognized
16524     # So say no if there are warnings
16525     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16526     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16527     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16528       lt_cv_prog_compiler_c_o=yes
16529     fi
16530   fi
16531   chmod u+w . 2>&5
16532   $RM conftest*
16533   # SGI C++ compiler will create directory out/ii_files/ for
16534   # template instantiation
16535   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16536   $RM out/* && rmdir out
16537   cd ..
16538   $RM -r conftest
16539   $RM conftest*
16540 ;;
16541esac
16542fi
16543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16544printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16545
16546
16547
16548
16549hard_links=nottested
16550if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16551  # do not overwrite the value of need_locks provided by the user
16552  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16553printf %s "checking if we can lock with hard links... " >&6; }
16554  hard_links=yes
16555  $RM conftest*
16556  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16557  touch conftest.a
16558  ln conftest.a conftest.b 2>&5 || hard_links=no
16559  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16561printf "%s\n" "$hard_links" >&6; }
16562  if test no = "$hard_links"; then
16563    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16564printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16565    need_locks=warn
16566  fi
16567else
16568  need_locks=no
16569fi
16570
16571
16572
16573
16574
16575
16576  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16577printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16578
16579  runpath_var=
16580  allow_undefined_flag=
16581  always_export_symbols=no
16582  archive_cmds=
16583  archive_expsym_cmds=
16584  compiler_needs_object=no
16585  enable_shared_with_static_runtimes=no
16586  export_dynamic_flag_spec=
16587  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16588  hardcode_automatic=no
16589  hardcode_direct=no
16590  hardcode_direct_absolute=no
16591  hardcode_libdir_flag_spec=
16592  hardcode_libdir_separator=
16593  hardcode_minus_L=no
16594  hardcode_shlibpath_var=unsupported
16595  inherit_rpath=no
16596  link_all_deplibs=unknown
16597  module_cmds=
16598  module_expsym_cmds=
16599  old_archive_from_new_cmds=
16600  old_archive_from_expsyms_cmds=
16601  thread_safe_flag_spec=
16602  whole_archive_flag_spec=
16603  # include_expsyms should be a list of space-separated symbols to be *always*
16604  # included in the symbol list
16605  include_expsyms=
16606  # exclude_expsyms can be an extended regexp of symbols to exclude
16607  # it will be wrapped by ' (' and ')$', so one must not match beginning or
16608  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16609  # as well as any symbol that contains 'd'.
16610  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16611  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16612  # platforms (ab)use it in PIC code, but their linkers get confused if
16613  # the symbol is explicitly referenced.  Since portable code cannot
16614  # rely on this symbol name, it's probably fine to never include it in
16615  # preloaded symbol tables.
16616  # Exclude shared library initialization/finalization symbols.
16617  extract_expsyms_cmds=
16618
16619  case $host_os in
16620  cygwin* | mingw* | pw32* | cegcc*)
16621    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16622    # When not using gcc, we currently assume that we are using
16623    # Microsoft Visual C++ or Intel C++ Compiler.
16624    if test yes != "$GCC"; then
16625      with_gnu_ld=no
16626    fi
16627    ;;
16628  interix*)
16629    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16630    with_gnu_ld=yes
16631    ;;
16632  openbsd* | bitrig*)
16633    with_gnu_ld=no
16634    ;;
16635  esac
16636
16637  ld_shlibs=yes
16638
16639  # On some targets, GNU ld is compatible enough with the native linker
16640  # that we're better off using the native interface for both.
16641  lt_use_gnu_ld_interface=no
16642  if test yes = "$with_gnu_ld"; then
16643    case $host_os in
16644      aix*)
16645	# The AIX port of GNU ld has always aspired to compatibility
16646	# with the native linker.  However, as the warning in the GNU ld
16647	# block says, versions before 2.19.5* couldn't really create working
16648	# shared libraries, regardless of the interface used.
16649	case `$LD -v 2>&1` in
16650	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16651	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16652	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16653	  *)
16654	    lt_use_gnu_ld_interface=yes
16655	    ;;
16656	esac
16657	;;
16658      *)
16659	lt_use_gnu_ld_interface=yes
16660	;;
16661    esac
16662  fi
16663
16664  if test yes = "$lt_use_gnu_ld_interface"; then
16665    # If archive_cmds runs LD, not CC, wlarc should be empty
16666    wlarc='$wl'
16667
16668    # Set some defaults for GNU ld with shared library support. These
16669    # are reset later if shared libraries are not supported. Putting them
16670    # here allows them to be overridden if necessary.
16671    runpath_var=LD_RUN_PATH
16672    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16673    export_dynamic_flag_spec='$wl--export-dynamic'
16674    # ancient GNU ld didn't support --whole-archive et. al.
16675    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16676      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16677    else
16678      whole_archive_flag_spec=
16679    fi
16680    supports_anon_versioning=no
16681    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16682      *GNU\ gold*) supports_anon_versioning=yes ;;
16683      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16684      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16685      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16686      *\ 2.11.*) ;; # other 2.11 versions
16687      *) supports_anon_versioning=yes ;;
16688    esac
16689
16690    # See if GNU ld supports shared libraries.
16691    case $host_os in
16692    aix[3-9]*)
16693      # On AIX/PPC, the GNU linker is very broken
16694      if test ia64 != "$host_cpu"; then
16695	ld_shlibs=no
16696	cat <<_LT_EOF 1>&2
16697
16698*** Warning: the GNU linker, at least up to release 2.19, is reported
16699*** to be unable to reliably create shared libraries on AIX.
16700*** Therefore, libtool is disabling shared libraries support.  If you
16701*** really care for shared libraries, you may want to install binutils
16702*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16703*** You will then need to restart the configuration process.
16704
16705_LT_EOF
16706      fi
16707      ;;
16708
16709    amigaos*)
16710      case $host_cpu in
16711      powerpc)
16712            # see comment about AmigaOS4 .so support
16713            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16714            archive_expsym_cmds=''
16715        ;;
16716      m68k)
16717            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)'
16718            hardcode_libdir_flag_spec='-L$libdir'
16719            hardcode_minus_L=yes
16720        ;;
16721      esac
16722      ;;
16723
16724    beos*)
16725      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16726	allow_undefined_flag=unsupported
16727	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16728	# support --undefined.  This deserves some investigation.  FIXME
16729	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16730      else
16731	ld_shlibs=no
16732      fi
16733      ;;
16734
16735    cygwin* | mingw* | pw32* | cegcc*)
16736      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16737      # as there is no search path for DLLs.
16738      hardcode_libdir_flag_spec='-L$libdir'
16739      export_dynamic_flag_spec='$wl--export-all-symbols'
16740      allow_undefined_flag=unsupported
16741      always_export_symbols=no
16742      enable_shared_with_static_runtimes=yes
16743      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'
16744      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16745
16746      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16747        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16748	# If the export-symbols file already is a .def file, use it as
16749	# is; otherwise, prepend EXPORTS...
16750	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16751          cp $export_symbols $output_objdir/$soname.def;
16752        else
16753          echo EXPORTS > $output_objdir/$soname.def;
16754          cat $export_symbols >> $output_objdir/$soname.def;
16755        fi~
16756        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16757      else
16758	ld_shlibs=no
16759      fi
16760      ;;
16761
16762    haiku*)
16763      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16764      link_all_deplibs=yes
16765      ;;
16766
16767    os2*)
16768      hardcode_libdir_flag_spec='-L$libdir'
16769      hardcode_minus_L=yes
16770      allow_undefined_flag=unsupported
16771      shrext_cmds=.dll
16772      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16773	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16774	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16775	$ECHO EXPORTS >> $output_objdir/$libname.def~
16776	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16777	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16778	emximp -o $lib $output_objdir/$libname.def'
16779      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16780	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16781	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16782	$ECHO EXPORTS >> $output_objdir/$libname.def~
16783	prefix_cmds="$SED"~
16784	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16785	  prefix_cmds="$prefix_cmds -e 1d";
16786	fi~
16787	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16788	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16789	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16790	emximp -o $lib $output_objdir/$libname.def'
16791      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16792      enable_shared_with_static_runtimes=yes
16793      file_list_spec='@'
16794      ;;
16795
16796    interix[3-9]*)
16797      hardcode_direct=no
16798      hardcode_shlibpath_var=no
16799      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16800      export_dynamic_flag_spec='$wl-E'
16801      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16802      # Instead, shared libraries are loaded at an image base (0x10000000 by
16803      # default) and relocated if they conflict, which is a slow very memory
16804      # consuming and fragmenting process.  To avoid this, we pick a random,
16805      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16806      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16807      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16808      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'
16809      ;;
16810
16811    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16812      tmp_diet=no
16813      if test linux-dietlibc = "$host_os"; then
16814	case $cc_basename in
16815	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
16816	esac
16817      fi
16818      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16819	 && test no = "$tmp_diet"
16820      then
16821	tmp_addflag=' $pic_flag'
16822	tmp_sharedflag='-shared'
16823	case $cc_basename,$host_cpu in
16824        pgcc*)				# Portland Group C compiler
16825	  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'
16826	  tmp_addflag=' $pic_flag'
16827	  ;;
16828	pgf77* | pgf90* | pgf95* | pgfortran*)
16829					# Portland Group f77 and f90 compilers
16830	  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'
16831	  tmp_addflag=' $pic_flag -Mnomain' ;;
16832	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
16833	  tmp_addflag=' -i_dynamic' ;;
16834	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16835	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16836	ifc* | ifort*)			# Intel Fortran compiler
16837	  tmp_addflag=' -nofor_main' ;;
16838	lf95*)				# Lahey Fortran 8.1
16839	  whole_archive_flag_spec=
16840	  tmp_sharedflag='--shared' ;;
16841        nagfor*)                        # NAGFOR 5.3
16842          tmp_sharedflag='-Wl,-shared' ;;
16843	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16844	  tmp_sharedflag='-qmkshrobj'
16845	  tmp_addflag= ;;
16846	nvcc*)	# Cuda Compiler Driver 2.2
16847	  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'
16848	  compiler_needs_object=yes
16849	  ;;
16850	esac
16851	case `$CC -V 2>&1 | $SED 5q` in
16852	*Sun\ C*)			# Sun C 5.9
16853	  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'
16854	  compiler_needs_object=yes
16855	  tmp_sharedflag='-G' ;;
16856	*Sun\ F*)			# Sun Fortran 8.3
16857	  tmp_sharedflag='-G' ;;
16858	esac
16859	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16860
16861        if test yes = "$supports_anon_versioning"; then
16862          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16863            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16864            echo "local: *; };" >> $output_objdir/$libname.ver~
16865            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16866        fi
16867
16868	case $cc_basename in
16869	tcc*)
16870	  export_dynamic_flag_spec='-rdynamic'
16871	  ;;
16872	xlf* | bgf* | bgxlf* | mpixlf*)
16873	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16874	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16875	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16876	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16877	  if test yes = "$supports_anon_versioning"; then
16878	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16879              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16880              echo "local: *; };" >> $output_objdir/$libname.ver~
16881              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16882	  fi
16883	  ;;
16884	esac
16885      else
16886        ld_shlibs=no
16887      fi
16888      ;;
16889
16890    netbsd*)
16891      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16892	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16893	wlarc=
16894      else
16895	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16896	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16897      fi
16898      ;;
16899
16900    solaris*)
16901      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16902	ld_shlibs=no
16903	cat <<_LT_EOF 1>&2
16904
16905*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16906*** create shared libraries on Solaris systems.  Therefore, libtool
16907*** is disabling shared libraries support.  We urge you to upgrade GNU
16908*** binutils to release 2.9.1 or newer.  Another option is to modify
16909*** your PATH or compiler configuration so that the native linker is
16910*** used, and then restart.
16911
16912_LT_EOF
16913      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16914	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16915	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16916      else
16917	ld_shlibs=no
16918      fi
16919      ;;
16920
16921    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16922      case `$LD -v 2>&1` in
16923        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16924	ld_shlibs=no
16925	cat <<_LT_EOF 1>&2
16926
16927*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16928*** reliably create shared libraries on SCO systems.  Therefore, libtool
16929*** is disabling shared libraries support.  We urge you to upgrade GNU
16930*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16931*** your PATH or compiler configuration so that the native linker is
16932*** used, and then restart.
16933
16934_LT_EOF
16935	;;
16936	*)
16937	  # For security reasons, it is highly recommended that you always
16938	  # use absolute paths for naming shared libraries, and exclude the
16939	  # DT_RUNPATH tag from executables and libraries.  But doing so
16940	  # requires that you compile everything twice, which is a pain.
16941	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16942	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16943	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16944	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16945	  else
16946	    ld_shlibs=no
16947	  fi
16948	;;
16949      esac
16950      ;;
16951
16952    sunos4*)
16953      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16954      wlarc=
16955      hardcode_direct=yes
16956      hardcode_shlibpath_var=no
16957      ;;
16958
16959    *)
16960      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16961	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16962	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16963      else
16964	ld_shlibs=no
16965      fi
16966      ;;
16967    esac
16968
16969    if test no = "$ld_shlibs"; then
16970      runpath_var=
16971      hardcode_libdir_flag_spec=
16972      export_dynamic_flag_spec=
16973      whole_archive_flag_spec=
16974    fi
16975  else
16976    # PORTME fill in a description of your system's linker (not GNU ld)
16977    case $host_os in
16978    aix3*)
16979      allow_undefined_flag=unsupported
16980      always_export_symbols=yes
16981      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'
16982      # Note: this linker hardcodes the directories in LIBPATH if there
16983      # are no directories specified by -L.
16984      hardcode_minus_L=yes
16985      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16986	# Neither direct hardcoding nor static linking is supported with a
16987	# broken collect2.
16988	hardcode_direct=unsupported
16989      fi
16990      ;;
16991
16992    aix[4-9]*)
16993      if test ia64 = "$host_cpu"; then
16994	# On IA64, the linker does run time linking by default, so we don't
16995	# have to do anything special.
16996	aix_use_runtimelinking=no
16997	exp_sym_flag='-Bexport'
16998	no_entry_flag=
16999      else
17000	# If we're using GNU nm, then we don't want the "-C" option.
17001	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
17002	# Without the "-l" option, or with the "-B" option, AIX nm treats
17003	# weak defined symbols like other global defined symbols, whereas
17004	# GNU nm marks them as "W".
17005	# While the 'weak' keyword is ignored in the Export File, we need
17006	# it in the Import File for the 'aix-soname' feature, so we have
17007	# to replace the "-B" option with "-P" for AIX nm.
17008	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17009	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
17010	else
17011	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
17012	fi
17013	aix_use_runtimelinking=no
17014
17015	# Test if we are trying to use run time linking or normal
17016	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17017	# have runtime linking enabled, and use it for executables.
17018	# For shared libraries, we enable/disable runtime linking
17019	# depending on the kind of the shared library created -
17020	# when "with_aix_soname,aix_use_runtimelinking" is:
17021	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
17022	# "aix,yes"  lib.so          shared, rtl:yes, for executables
17023	#            lib.a           static archive
17024	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
17025	#            lib.a(lib.so.V) shared, rtl:no,  for executables
17026	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
17027	#            lib.a(lib.so.V) shared, rtl:no
17028	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
17029	#            lib.a           static archive
17030	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17031	  for ld_flag in $LDFLAGS; do
17032	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
17033	    aix_use_runtimelinking=yes
17034	    break
17035	  fi
17036	  done
17037	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
17038	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
17039	    # so we don't have lib.a shared libs to link our executables.
17040	    # We have to force runtime linking in this case.
17041	    aix_use_runtimelinking=yes
17042	    LDFLAGS="$LDFLAGS -Wl,-brtl"
17043	  fi
17044	  ;;
17045	esac
17046
17047	exp_sym_flag='-bexport'
17048	no_entry_flag='-bnoentry'
17049      fi
17050
17051      # When large executables or shared objects are built, AIX ld can
17052      # have problems creating the table of contents.  If linking a library
17053      # or program results in "error TOC overflow" add -mminimal-toc to
17054      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17055      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17056
17057      archive_cmds=''
17058      hardcode_direct=yes
17059      hardcode_direct_absolute=yes
17060      hardcode_libdir_separator=':'
17061      link_all_deplibs=yes
17062      file_list_spec='$wl-f,'
17063      case $with_aix_soname,$aix_use_runtimelinking in
17064      aix,*) ;; # traditional, no import file
17065      svr4,* | *,yes) # use import file
17066	# The Import File defines what to hardcode.
17067	hardcode_direct=no
17068	hardcode_direct_absolute=no
17069	;;
17070      esac
17071
17072      if test yes = "$GCC"; then
17073	case $host_os in aix4.[012]|aix4.[012].*)
17074	# We only want to do this on AIX 4.2 and lower, the check
17075	# below for broken collect2 doesn't work under 4.3+
17076	  collect2name=`$CC -print-prog-name=collect2`
17077	  if test -f "$collect2name" &&
17078	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17079	  then
17080	  # We have reworked collect2
17081	  :
17082	  else
17083	  # We have old collect2
17084	  hardcode_direct=unsupported
17085	  # It fails to find uninstalled libraries when the uninstalled
17086	  # path is not listed in the libpath.  Setting hardcode_minus_L
17087	  # to unsupported forces relinking
17088	  hardcode_minus_L=yes
17089	  hardcode_libdir_flag_spec='-L$libdir'
17090	  hardcode_libdir_separator=
17091	  fi
17092	  ;;
17093	esac
17094	shared_flag='-shared'
17095	if test yes = "$aix_use_runtimelinking"; then
17096	  shared_flag="$shared_flag "'$wl-G'
17097	fi
17098	# Need to ensure runtime linking is disabled for the traditional
17099	# shared library, or the linker may eventually find shared libraries
17100	# /with/ Import File - we do not want to mix them.
17101	shared_flag_aix='-shared'
17102	shared_flag_svr4='-shared $wl-G'
17103      else
17104	# not using gcc
17105	if test ia64 = "$host_cpu"; then
17106	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17107	# chokes on -Wl,-G. The following line is correct:
17108	  shared_flag='-G'
17109	else
17110	  if test yes = "$aix_use_runtimelinking"; then
17111	    shared_flag='$wl-G'
17112	  else
17113	    shared_flag='$wl-bM:SRE'
17114	  fi
17115	  shared_flag_aix='$wl-bM:SRE'
17116	  shared_flag_svr4='$wl-G'
17117	fi
17118      fi
17119
17120      export_dynamic_flag_spec='$wl-bexpall'
17121      # It seems that -bexpall does not export symbols beginning with
17122      # underscore (_), so it is better to generate a list of symbols to export.
17123      always_export_symbols=yes
17124      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
17125	# Warning - without using the other runtime loading flags (-brtl),
17126	# -berok will link without error, but may produce a broken library.
17127	allow_undefined_flag='-berok'
17128        # Determine the default libpath from the value encoded in an
17129        # empty executable.
17130        if test set = "${lt_cv_aix_libpath+set}"; then
17131  aix_libpath=$lt_cv_aix_libpath
17132else
17133  if test ${lt_cv_aix_libpath_+y}
17134then :
17135  printf %s "(cached) " >&6
17136else case e in #(
17137  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17138/* end confdefs.h.  */
17139
17140int
17141main (void)
17142{
17143
17144  ;
17145  return 0;
17146}
17147_ACEOF
17148if ac_fn_c_try_link "$LINENO"
17149then :
17150
17151  lt_aix_libpath_sed='
17152      /Import File Strings/,/^$/ {
17153	  /^0/ {
17154	      s/^0  *\([^ ]*\) *$/\1/
17155	      p
17156	  }
17157      }'
17158  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17159  # Check for a 64-bit object if we didn't find anything.
17160  if test -z "$lt_cv_aix_libpath_"; then
17161    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17162  fi
17163fi
17164rm -f core conftest.err conftest.$ac_objext conftest.beam \
17165    conftest$ac_exeext conftest.$ac_ext
17166  if test -z "$lt_cv_aix_libpath_"; then
17167    lt_cv_aix_libpath_=/usr/lib:/lib
17168  fi
17169   ;;
17170esac
17171fi
17172
17173  aix_libpath=$lt_cv_aix_libpath_
17174fi
17175
17176        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
17177        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
17178      else
17179	if test ia64 = "$host_cpu"; then
17180	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
17181	  allow_undefined_flag="-z nodefs"
17182	  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"
17183	else
17184	 # Determine the default libpath from the value encoded in an
17185	 # empty executable.
17186	 if test set = "${lt_cv_aix_libpath+set}"; then
17187  aix_libpath=$lt_cv_aix_libpath
17188else
17189  if test ${lt_cv_aix_libpath_+y}
17190then :
17191  printf %s "(cached) " >&6
17192else case e in #(
17193  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17194/* end confdefs.h.  */
17195
17196int
17197main (void)
17198{
17199
17200  ;
17201  return 0;
17202}
17203_ACEOF
17204if ac_fn_c_try_link "$LINENO"
17205then :
17206
17207  lt_aix_libpath_sed='
17208      /Import File Strings/,/^$/ {
17209	  /^0/ {
17210	      s/^0  *\([^ ]*\) *$/\1/
17211	      p
17212	  }
17213      }'
17214  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17215  # Check for a 64-bit object if we didn't find anything.
17216  if test -z "$lt_cv_aix_libpath_"; then
17217    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17218  fi
17219fi
17220rm -f core conftest.err conftest.$ac_objext conftest.beam \
17221    conftest$ac_exeext conftest.$ac_ext
17222  if test -z "$lt_cv_aix_libpath_"; then
17223    lt_cv_aix_libpath_=/usr/lib:/lib
17224  fi
17225   ;;
17226esac
17227fi
17228
17229  aix_libpath=$lt_cv_aix_libpath_
17230fi
17231
17232	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
17233	  # Warning - without using the other run time loading flags,
17234	  # -berok will link without error, but may produce a broken library.
17235	  no_undefined_flag=' $wl-bernotok'
17236	  allow_undefined_flag=' $wl-berok'
17237	  if test yes = "$with_gnu_ld"; then
17238	    # We only use this code for GNU lds that support --whole-archive.
17239	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
17240	  else
17241	    # Exported symbols can be pulled into shared objects from archives
17242	    whole_archive_flag_spec='$convenience'
17243	  fi
17244	  archive_cmds_need_lc=yes
17245	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
17246	  # -brtl affects multiple linker settings, -berok does not and is overridden later
17247	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
17248	  if test svr4 != "$with_aix_soname"; then
17249	    # This is similar to how AIX traditionally builds its shared libraries.
17250	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
17251	  fi
17252	  if test aix != "$with_aix_soname"; then
17253	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
17254	  else
17255	    # used by -dlpreopen to get the symbols
17256	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
17257	  fi
17258	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
17259	fi
17260      fi
17261      ;;
17262
17263    amigaos*)
17264      case $host_cpu in
17265      powerpc)
17266            # see comment about AmigaOS4 .so support
17267            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17268            archive_expsym_cmds=''
17269        ;;
17270      m68k)
17271            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)'
17272            hardcode_libdir_flag_spec='-L$libdir'
17273            hardcode_minus_L=yes
17274        ;;
17275      esac
17276      ;;
17277
17278    bsdi[45]*)
17279      export_dynamic_flag_spec=-rdynamic
17280      ;;
17281
17282    cygwin* | mingw* | pw32* | cegcc*)
17283      # When not using gcc, we currently assume that we are using
17284      # Microsoft Visual C++ or Intel C++ Compiler.
17285      # hardcode_libdir_flag_spec is actually meaningless, as there is
17286      # no search path for DLLs.
17287      case $cc_basename in
17288      cl* | icl*)
17289	# Native MSVC or ICC
17290	hardcode_libdir_flag_spec=' '
17291	allow_undefined_flag=unsupported
17292	always_export_symbols=yes
17293	file_list_spec='@'
17294	# Tell ltmain to make .lib files, not .a files.
17295	libext=lib
17296	# Tell ltmain to make .dll files, not .so files.
17297	shrext_cmds=.dll
17298	# FIXME: Setting linknames here is a bad hack.
17299	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17300	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
17301            cp "$export_symbols" "$output_objdir/$soname.def";
17302            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17303          else
17304            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17305          fi~
17306          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17307          linknames='
17308	# The linker will not automatically build a static lib if we build a DLL.
17309	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
17310	enable_shared_with_static_runtimes=yes
17311	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17312	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17313	# Don't use ranlib
17314	old_postinstall_cmds='chmod 644 $oldlib'
17315	postlink_cmds='lt_outputfile="@OUTPUT@"~
17316          lt_tool_outputfile="@TOOL_OUTPUT@"~
17317          case $lt_outputfile in
17318            *.exe|*.EXE) ;;
17319            *)
17320              lt_outputfile=$lt_outputfile.exe
17321              lt_tool_outputfile=$lt_tool_outputfile.exe
17322              ;;
17323          esac~
17324          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17325            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17326            $RM "$lt_outputfile.manifest";
17327          fi'
17328	;;
17329      *)
17330	# Assume MSVC and ICC wrapper
17331	hardcode_libdir_flag_spec=' '
17332	allow_undefined_flag=unsupported
17333	# Tell ltmain to make .lib files, not .a files.
17334	libext=lib
17335	# Tell ltmain to make .dll files, not .so files.
17336	shrext_cmds=.dll
17337	# FIXME: Setting linknames here is a bad hack.
17338	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17339	# The linker will automatically build a .lib file if we build a DLL.
17340	old_archive_from_new_cmds='true'
17341	# FIXME: Should let the user specify the lib program.
17342	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17343	enable_shared_with_static_runtimes=yes
17344	;;
17345      esac
17346      ;;
17347
17348    darwin* | rhapsody*)
17349
17350
17351  archive_cmds_need_lc=no
17352  hardcode_direct=no
17353  hardcode_automatic=yes
17354  hardcode_shlibpath_var=unsupported
17355  if test yes = "$lt_cv_ld_force_load"; then
17356    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\"`'
17357
17358  else
17359    whole_archive_flag_spec=''
17360  fi
17361  link_all_deplibs=yes
17362  allow_undefined_flag=$_lt_dar_allow_undefined
17363  case $cc_basename in
17364     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
17365     *) _lt_dar_can_shared=$GCC ;;
17366  esac
17367  if test yes = "$_lt_dar_can_shared"; then
17368    output_verbose_link_cmd=func_echo_all
17369    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
17370    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17371    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"
17372    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"
17373
17374  else
17375  ld_shlibs=no
17376  fi
17377
17378      ;;
17379
17380    dgux*)
17381      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17382      hardcode_libdir_flag_spec='-L$libdir'
17383      hardcode_shlibpath_var=no
17384      ;;
17385
17386    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17387    # support.  Future versions do this automatically, but an explicit c++rt0.o
17388    # does not break anything, and helps significantly (at the cost of a little
17389    # extra space).
17390    freebsd2.2*)
17391      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17392      hardcode_libdir_flag_spec='-R$libdir'
17393      hardcode_direct=yes
17394      hardcode_shlibpath_var=no
17395      ;;
17396
17397    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17398    freebsd2.*)
17399      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17400      hardcode_direct=yes
17401      hardcode_minus_L=yes
17402      hardcode_shlibpath_var=no
17403      ;;
17404
17405    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17406    freebsd* | dragonfly* | midnightbsd*)
17407      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17408      hardcode_libdir_flag_spec='-R$libdir'
17409      hardcode_direct=yes
17410      hardcode_shlibpath_var=no
17411      ;;
17412
17413    hpux9*)
17414      if test yes = "$GCC"; then
17415	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17416      else
17417	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
17418      fi
17419      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17420      hardcode_libdir_separator=:
17421      hardcode_direct=yes
17422
17423      # hardcode_minus_L: Not really in the search PATH,
17424      # but as the default location of the library.
17425      hardcode_minus_L=yes
17426      export_dynamic_flag_spec='$wl-E'
17427      ;;
17428
17429    hpux10*)
17430      if test yes,no = "$GCC,$with_gnu_ld"; then
17431	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17432      else
17433	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17434      fi
17435      if test no = "$with_gnu_ld"; then
17436	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17437	hardcode_libdir_separator=:
17438	hardcode_direct=yes
17439	hardcode_direct_absolute=yes
17440	export_dynamic_flag_spec='$wl-E'
17441	# hardcode_minus_L: Not really in the search PATH,
17442	# but as the default location of the library.
17443	hardcode_minus_L=yes
17444      fi
17445      ;;
17446
17447    hpux11*)
17448      if test yes,no = "$GCC,$with_gnu_ld"; then
17449	case $host_cpu in
17450	hppa*64*)
17451	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17452	  ;;
17453	ia64*)
17454	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17455	  ;;
17456	*)
17457	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17458	  ;;
17459	esac
17460      else
17461	case $host_cpu in
17462	hppa*64*)
17463	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17464	  ;;
17465	ia64*)
17466	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17467	  ;;
17468	*)
17469
17470	  # Older versions of the 11.00 compiler do not understand -b yet
17471	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17472	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17473printf %s "checking if $CC understands -b... " >&6; }
17474if test ${lt_cv_prog_compiler__b+y}
17475then :
17476  printf %s "(cached) " >&6
17477else case e in #(
17478  e) lt_cv_prog_compiler__b=no
17479   save_LDFLAGS=$LDFLAGS
17480   LDFLAGS="$LDFLAGS -b"
17481   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17482   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17483     # The linker can only warn and ignore the option if not recognized
17484     # So say no if there are warnings
17485     if test -s conftest.err; then
17486       # Append any errors to the config.log.
17487       cat conftest.err 1>&5
17488       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17489       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17490       if diff conftest.exp conftest.er2 >/dev/null; then
17491         lt_cv_prog_compiler__b=yes
17492       fi
17493     else
17494       lt_cv_prog_compiler__b=yes
17495     fi
17496   fi
17497   $RM -r conftest*
17498   LDFLAGS=$save_LDFLAGS
17499 ;;
17500esac
17501fi
17502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17503printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17504
17505if test yes = "$lt_cv_prog_compiler__b"; then
17506    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17507else
17508    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17509fi
17510
17511	  ;;
17512	esac
17513      fi
17514      if test no = "$with_gnu_ld"; then
17515	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17516	hardcode_libdir_separator=:
17517
17518	case $host_cpu in
17519	hppa*64*|ia64*)
17520	  hardcode_direct=no
17521	  hardcode_shlibpath_var=no
17522	  ;;
17523	*)
17524	  hardcode_direct=yes
17525	  hardcode_direct_absolute=yes
17526	  export_dynamic_flag_spec='$wl-E'
17527
17528	  # hardcode_minus_L: Not really in the search PATH,
17529	  # but as the default location of the library.
17530	  hardcode_minus_L=yes
17531	  ;;
17532	esac
17533      fi
17534      ;;
17535
17536    irix5* | irix6* | nonstopux*)
17537      if test yes = "$GCC"; then
17538	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'
17539	# Try to use the -exported_symbol ld option, if it does not
17540	# work, assume that -exports_file does not work either and
17541	# implicitly export all symbols.
17542	# This should be the same for all languages, so no per-tag cache variable.
17543	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17544printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17545if test ${lt_cv_irix_exported_symbol+y}
17546then :
17547  printf %s "(cached) " >&6
17548else case e in #(
17549  e) save_LDFLAGS=$LDFLAGS
17550	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17551	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17552/* end confdefs.h.  */
17553int foo (void) { return 0; }
17554_ACEOF
17555if ac_fn_c_try_link "$LINENO"
17556then :
17557  lt_cv_irix_exported_symbol=yes
17558else case e in #(
17559  e) lt_cv_irix_exported_symbol=no ;;
17560esac
17561fi
17562rm -f core conftest.err conftest.$ac_objext conftest.beam \
17563    conftest$ac_exeext conftest.$ac_ext
17564           LDFLAGS=$save_LDFLAGS ;;
17565esac
17566fi
17567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17568printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17569	if test yes = "$lt_cv_irix_exported_symbol"; then
17570          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'
17571	fi
17572      else
17573	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'
17574	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'
17575      fi
17576      archive_cmds_need_lc='no'
17577      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17578      hardcode_libdir_separator=:
17579      inherit_rpath=yes
17580      link_all_deplibs=yes
17581      ;;
17582
17583    linux*)
17584      case $cc_basename in
17585      tcc*)
17586	# Fabrice Bellard et al's Tiny C Compiler
17587	ld_shlibs=yes
17588	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17589	;;
17590      esac
17591      ;;
17592
17593    netbsd*)
17594      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17595	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17596      else
17597	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17598      fi
17599      hardcode_libdir_flag_spec='-R$libdir'
17600      hardcode_direct=yes
17601      hardcode_shlibpath_var=no
17602      ;;
17603
17604    newsos6)
17605      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17606      hardcode_direct=yes
17607      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17608      hardcode_libdir_separator=:
17609      hardcode_shlibpath_var=no
17610      ;;
17611
17612    *nto* | *qnx*)
17613      ;;
17614
17615    openbsd* | bitrig*)
17616      if test -f /usr/libexec/ld.so; then
17617	hardcode_direct=yes
17618	hardcode_shlibpath_var=no
17619	hardcode_direct_absolute=yes
17620	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17621	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17622	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17623	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17624	  export_dynamic_flag_spec='$wl-E'
17625	else
17626	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17627	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17628	fi
17629      else
17630	ld_shlibs=no
17631      fi
17632      ;;
17633
17634    os2*)
17635      hardcode_libdir_flag_spec='-L$libdir'
17636      hardcode_minus_L=yes
17637      allow_undefined_flag=unsupported
17638      shrext_cmds=.dll
17639      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17640	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17641	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17642	$ECHO EXPORTS >> $output_objdir/$libname.def~
17643	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17644	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17645	emximp -o $lib $output_objdir/$libname.def'
17646      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17647	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17648	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17649	$ECHO EXPORTS >> $output_objdir/$libname.def~
17650	prefix_cmds="$SED"~
17651	if test EXPORTS = "`$SED 1q $export_symbols`"; then
17652	  prefix_cmds="$prefix_cmds -e 1d";
17653	fi~
17654	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17655	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17656	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17657	emximp -o $lib $output_objdir/$libname.def'
17658      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17659      enable_shared_with_static_runtimes=yes
17660      file_list_spec='@'
17661      ;;
17662
17663    osf3*)
17664      if test yes = "$GCC"; then
17665	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17666	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'
17667      else
17668	allow_undefined_flag=' -expect_unresolved \*'
17669	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'
17670      fi
17671      archive_cmds_need_lc='no'
17672      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17673      hardcode_libdir_separator=:
17674      ;;
17675
17676    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17677      if test yes = "$GCC"; then
17678	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17679	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'
17680	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17681      else
17682	allow_undefined_flag=' -expect_unresolved \*'
17683	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'
17684	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~
17685          $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'
17686
17687	# Both c and cxx compiler support -rpath directly
17688	hardcode_libdir_flag_spec='-rpath $libdir'
17689      fi
17690      archive_cmds_need_lc='no'
17691      hardcode_libdir_separator=:
17692      ;;
17693
17694    solaris*)
17695      no_undefined_flag=' -z defs'
17696      if test yes = "$GCC"; then
17697	wlarc='$wl'
17698	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17699	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17700          $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'
17701      else
17702	case `$CC -V 2>&1` in
17703	*"Compilers 5.0"*)
17704	  wlarc=''
17705	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17706	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17707            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17708	  ;;
17709	*)
17710	  wlarc='$wl'
17711	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17712	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17713            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17714	  ;;
17715	esac
17716      fi
17717      hardcode_libdir_flag_spec='-R$libdir'
17718      hardcode_shlibpath_var=no
17719      case $host_os in
17720      solaris2.[0-5] | solaris2.[0-5].*) ;;
17721      *)
17722	# The compiler driver will combine and reorder linker options,
17723	# but understands '-z linker_flag'.  GCC discards it without '$wl',
17724	# but is careful enough not to reorder.
17725	# Supported since Solaris 2.6 (maybe 2.5.1?)
17726	if test yes = "$GCC"; then
17727	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17728	else
17729	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17730	fi
17731	;;
17732      esac
17733      link_all_deplibs=yes
17734      ;;
17735
17736    sunos4*)
17737      if test sequent = "$host_vendor"; then
17738	# Use $CC to link under sequent, because it throws in some extra .o
17739	# files that make .init and .fini sections work.
17740	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17741      else
17742	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17743      fi
17744      hardcode_libdir_flag_spec='-L$libdir'
17745      hardcode_direct=yes
17746      hardcode_minus_L=yes
17747      hardcode_shlibpath_var=no
17748      ;;
17749
17750    sysv4)
17751      case $host_vendor in
17752	sni)
17753	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17754	  hardcode_direct=yes # is this really true???
17755	;;
17756	siemens)
17757	  ## LD is ld it makes a PLAMLIB
17758	  ## CC just makes a GrossModule.
17759	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17760	  reload_cmds='$CC -r -o $output$reload_objs'
17761	  hardcode_direct=no
17762        ;;
17763	motorola)
17764	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17765	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17766	;;
17767      esac
17768      runpath_var='LD_RUN_PATH'
17769      hardcode_shlibpath_var=no
17770      ;;
17771
17772    sysv4.3*)
17773      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17774      hardcode_shlibpath_var=no
17775      export_dynamic_flag_spec='-Bexport'
17776      ;;
17777
17778    sysv4*MP*)
17779      if test -d /usr/nec; then
17780	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17781	hardcode_shlibpath_var=no
17782	runpath_var=LD_RUN_PATH
17783	hardcode_runpath_var=yes
17784	ld_shlibs=yes
17785      fi
17786      ;;
17787
17788    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17789      no_undefined_flag='$wl-z,text'
17790      archive_cmds_need_lc=no
17791      hardcode_shlibpath_var=no
17792      runpath_var='LD_RUN_PATH'
17793
17794      if test yes = "$GCC"; then
17795	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17796	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17797      else
17798	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17799	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17800      fi
17801      ;;
17802
17803    sysv5* | sco3.2v5* | sco5v6*)
17804      # Note: We CANNOT use -z defs as we might desire, because we do not
17805      # link with -lc, and that would cause any symbols used from libc to
17806      # always be unresolved, which means just about no library would
17807      # ever link correctly.  If we're not using GNU ld we use -z text
17808      # though, which does catch some bad symbols but isn't as heavy-handed
17809      # as -z defs.
17810      no_undefined_flag='$wl-z,text'
17811      allow_undefined_flag='$wl-z,nodefs'
17812      archive_cmds_need_lc=no
17813      hardcode_shlibpath_var=no
17814      hardcode_libdir_flag_spec='$wl-R,$libdir'
17815      hardcode_libdir_separator=':'
17816      link_all_deplibs=yes
17817      export_dynamic_flag_spec='$wl-Bexport'
17818      runpath_var='LD_RUN_PATH'
17819
17820      if test yes = "$GCC"; then
17821	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17822	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17823      else
17824	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17825	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17826      fi
17827      ;;
17828
17829    uts4*)
17830      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17831      hardcode_libdir_flag_spec='-L$libdir'
17832      hardcode_shlibpath_var=no
17833      ;;
17834
17835    *)
17836      ld_shlibs=no
17837      ;;
17838    esac
17839
17840    if test sni = "$host_vendor"; then
17841      case $host in
17842      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17843	export_dynamic_flag_spec='$wl-Blargedynsym'
17844	;;
17845      esac
17846    fi
17847  fi
17848
17849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17850printf "%s\n" "$ld_shlibs" >&6; }
17851test no = "$ld_shlibs" && can_build_shared=no
17852
17853with_gnu_ld=$with_gnu_ld
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869#
17870# Do we need to explicitly link libc?
17871#
17872case "x$archive_cmds_need_lc" in
17873x|xyes)
17874  # Assume -lc should be added
17875  archive_cmds_need_lc=yes
17876
17877  if test yes,yes = "$GCC,$enable_shared"; then
17878    case $archive_cmds in
17879    *'~'*)
17880      # FIXME: we may have to deal with multi-command sequences.
17881      ;;
17882    '$CC '*)
17883      # Test whether the compiler implicitly links with -lc since on some
17884      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17885      # to ld, don't add -lc before -lgcc.
17886      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17887printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17888if test ${lt_cv_archive_cmds_need_lc+y}
17889then :
17890  printf %s "(cached) " >&6
17891else case e in #(
17892  e) $RM conftest*
17893	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17894
17895	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17896  (eval $ac_compile) 2>&5
17897  ac_status=$?
17898  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17899  test $ac_status = 0; } 2>conftest.err; then
17900	  soname=conftest
17901	  lib=conftest
17902	  libobjs=conftest.$ac_objext
17903	  deplibs=
17904	  wl=$lt_prog_compiler_wl
17905	  pic_flag=$lt_prog_compiler_pic
17906	  compiler_flags=-v
17907	  linker_flags=-v
17908	  verstring=
17909	  output_objdir=.
17910	  libname=conftest
17911	  lt_save_allow_undefined_flag=$allow_undefined_flag
17912	  allow_undefined_flag=
17913	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17914  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17915  ac_status=$?
17916  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17917  test $ac_status = 0; }
17918	  then
17919	    lt_cv_archive_cmds_need_lc=no
17920	  else
17921	    lt_cv_archive_cmds_need_lc=yes
17922	  fi
17923	  allow_undefined_flag=$lt_save_allow_undefined_flag
17924	else
17925	  cat conftest.err 1>&5
17926	fi
17927	$RM conftest*
17928	 ;;
17929esac
17930fi
17931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17932printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17933      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17934      ;;
17935    esac
17936  fi
17937  ;;
17938esac
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18092printf %s "checking dynamic linker characteristics... " >&6; }
18093
18094if test yes = "$GCC"; then
18095  case $host_os in
18096    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
18097    *) lt_awk_arg='/^libraries:/' ;;
18098  esac
18099  case $host_os in
18100    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
18101    *) lt_sed_strip_eq='s|=/|/|g' ;;
18102  esac
18103  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18104  case $lt_search_path_spec in
18105  *\;*)
18106    # if the path contains ";" then we assume it to be the separator
18107    # otherwise default to the standard path separator (i.e. ":") - it is
18108    # assumed that no part of a normal pathname contains ";" but that should
18109    # okay in the real world where ";" in dirpaths is itself problematic.
18110    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18111    ;;
18112  *)
18113    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18114    ;;
18115  esac
18116  # Ok, now we have the path, separated by spaces, we can step through it
18117  # and add multilib dir if necessary...
18118  lt_tmp_lt_search_path_spec=
18119  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18120  # ...but if some path component already ends with the multilib dir we assume
18121  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
18122  case "$lt_multi_os_dir; $lt_search_path_spec " in
18123  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
18124    lt_multi_os_dir=
18125    ;;
18126  esac
18127  for lt_sys_path in $lt_search_path_spec; do
18128    if test -d "$lt_sys_path$lt_multi_os_dir"; then
18129      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
18130    elif test -n "$lt_multi_os_dir"; then
18131      test -d "$lt_sys_path" && \
18132	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18133    fi
18134  done
18135  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18136BEGIN {RS = " "; FS = "/|\n";} {
18137  lt_foo = "";
18138  lt_count = 0;
18139  for (lt_i = NF; lt_i > 0; lt_i--) {
18140    if ($lt_i != "" && $lt_i != ".") {
18141      if ($lt_i == "..") {
18142        lt_count++;
18143      } else {
18144        if (lt_count == 0) {
18145          lt_foo = "/" $lt_i lt_foo;
18146        } else {
18147          lt_count--;
18148        }
18149      }
18150    }
18151  }
18152  if (lt_foo != "") { lt_freq[lt_foo]++; }
18153  if (lt_freq[lt_foo] == 1) { print lt_foo; }
18154}'`
18155  # AWK program above erroneously prepends '/' to C:/dos/paths
18156  # for these hosts.
18157  case $host_os in
18158    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18159      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
18160  esac
18161  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18162else
18163  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18164fi
18165library_names_spec=
18166libname_spec='lib$name'
18167soname_spec=
18168shrext_cmds=.so
18169postinstall_cmds=
18170postuninstall_cmds=
18171finish_cmds=
18172finish_eval=
18173shlibpath_var=
18174shlibpath_overrides_runpath=unknown
18175version_type=none
18176dynamic_linker="$host_os ld.so"
18177sys_lib_dlsearch_path_spec="/lib /usr/lib"
18178need_lib_prefix=unknown
18179hardcode_into_libs=no
18180
18181# when you set need_version to no, make sure it does not cause -set_version
18182# flags to be left without arguments
18183need_version=unknown
18184
18185
18186
18187case $host_os in
18188aix3*)
18189  version_type=linux # correct to gnu/linux during the next big refactor
18190  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18191  shlibpath_var=LIBPATH
18192
18193  # AIX 3 has no versioning support, so we append a major version to the name.
18194  soname_spec='$libname$release$shared_ext$major'
18195  ;;
18196
18197aix[4-9]*)
18198  version_type=linux # correct to gnu/linux during the next big refactor
18199  need_lib_prefix=no
18200  need_version=no
18201  hardcode_into_libs=yes
18202  if test ia64 = "$host_cpu"; then
18203    # AIX 5 supports IA64
18204    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18205    shlibpath_var=LD_LIBRARY_PATH
18206  else
18207    # With GCC up to 2.95.x, collect2 would create an import file
18208    # for dependence libraries.  The import file would start with
18209    # the line '#! .'.  This would cause the generated library to
18210    # depend on '.', always an invalid library.  This was fixed in
18211    # development snapshots of GCC prior to 3.0.
18212    case $host_os in
18213      aix4 | aix4.[01] | aix4.[01].*)
18214      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18215	   echo ' yes '
18216	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18217	:
18218      else
18219	can_build_shared=no
18220      fi
18221      ;;
18222    esac
18223    # Using Import Files as archive members, it is possible to support
18224    # filename-based versioning of shared library archives on AIX. While
18225    # this would work for both with and without runtime linking, it will
18226    # prevent static linking of such archives. So we do filename-based
18227    # shared library versioning with .so extension only, which is used
18228    # when both runtime linking and shared linking is enabled.
18229    # Unfortunately, runtime linking may impact performance, so we do
18230    # not want this to be the default eventually. Also, we use the
18231    # versioned .so libs for executables only if there is the -brtl
18232    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
18233    # To allow for filename-based versioning support, we need to create
18234    # libNAME.so.V as an archive file, containing:
18235    # *) an Import File, referring to the versioned filename of the
18236    #    archive as well as the shared archive member, telling the
18237    #    bitwidth (32 or 64) of that shared object, and providing the
18238    #    list of exported symbols of that shared object, eventually
18239    #    decorated with the 'weak' keyword
18240    # *) the shared object with the F_LOADONLY flag set, to really avoid
18241    #    it being seen by the linker.
18242    # At run time we better use the real file rather than another symlink,
18243    # but for link time we create the symlink libNAME.so -> libNAME.so.V
18244
18245    case $with_aix_soname,$aix_use_runtimelinking in
18246    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18247    # soname into executable. Probably we can add versioning support to
18248    # collect2, so additional links can be useful in future.
18249    aix,yes) # traditional libtool
18250      dynamic_linker='AIX unversionable lib.so'
18251      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18252      # instead of lib<name>.a to let people know that these are not
18253      # typical AIX shared libraries.
18254      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18255      ;;
18256    aix,no) # traditional AIX only
18257      dynamic_linker='AIX lib.a(lib.so.V)'
18258      # We preserve .a as extension for shared libraries through AIX4.2
18259      # and later when we are not doing run time linking.
18260      library_names_spec='$libname$release.a $libname.a'
18261      soname_spec='$libname$release$shared_ext$major'
18262      ;;
18263    svr4,*) # full svr4 only
18264      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18265      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18266      # We do not specify a path in Import Files, so LIBPATH fires.
18267      shlibpath_overrides_runpath=yes
18268      ;;
18269    *,yes) # both, prefer svr4
18270      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18271      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18272      # unpreferred sharedlib libNAME.a needs extra handling
18273      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
18274      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
18275      # We do not specify a path in Import Files, so LIBPATH fires.
18276      shlibpath_overrides_runpath=yes
18277      ;;
18278    *,no) # both, prefer aix
18279      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18280      library_names_spec='$libname$release.a $libname.a'
18281      soname_spec='$libname$release$shared_ext$major'
18282      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18283      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
18284      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
18285      ;;
18286    esac
18287    shlibpath_var=LIBPATH
18288  fi
18289  ;;
18290
18291amigaos*)
18292  case $host_cpu in
18293  powerpc)
18294    # Since July 2007 AmigaOS4 officially supports .so libraries.
18295    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18296    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18297    ;;
18298  m68k)
18299    library_names_spec='$libname.ixlibrary $libname.a'
18300    # Create ${libname}_ixlibrary.a entries in /sys/libs.
18301    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
18302    ;;
18303  esac
18304  ;;
18305
18306beos*)
18307  library_names_spec='$libname$shared_ext'
18308  dynamic_linker="$host_os ld.so"
18309  shlibpath_var=LIBRARY_PATH
18310  ;;
18311
18312bsdi[45]*)
18313  version_type=linux # correct to gnu/linux during the next big refactor
18314  need_version=no
18315  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18316  soname_spec='$libname$release$shared_ext$major'
18317  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18318  shlibpath_var=LD_LIBRARY_PATH
18319  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18320  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18321  # the default ld.so.conf also contains /usr/contrib/lib and
18322  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18323  # libtool to hard-code these into programs
18324  ;;
18325
18326cygwin* | mingw* | pw32* | cegcc*)
18327  version_type=windows
18328  shrext_cmds=.dll
18329  need_version=no
18330  need_lib_prefix=no
18331
18332  case $GCC,$cc_basename in
18333  yes,*)
18334    # gcc
18335    library_names_spec='$libname.dll.a'
18336    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18337    postinstall_cmds='base_file=`basename \$file`~
18338      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18339      dldir=$destdir/`dirname \$dlpath`~
18340      test -d \$dldir || mkdir -p \$dldir~
18341      $install_prog $dir/$dlname \$dldir/$dlname~
18342      chmod a+x \$dldir/$dlname~
18343      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18344        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18345      fi'
18346    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18347      dlpath=$dir/\$dldll~
18348       $RM \$dlpath'
18349    shlibpath_overrides_runpath=yes
18350
18351    case $host_os in
18352    cygwin*)
18353      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18354      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18355
18356      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18357      ;;
18358    mingw* | cegcc*)
18359      # MinGW DLLs use traditional 'lib' prefix
18360      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18361      ;;
18362    pw32*)
18363      # pw32 DLLs use 'pw' prefix rather than 'lib'
18364      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18365      ;;
18366    esac
18367    dynamic_linker='Win32 ld.exe'
18368    ;;
18369
18370  *,cl* | *,icl*)
18371    # Native MSVC or ICC
18372    libname_spec='$name'
18373    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18374    library_names_spec='$libname.dll.lib'
18375
18376    case $build_os in
18377    mingw*)
18378      sys_lib_search_path_spec=
18379      lt_save_ifs=$IFS
18380      IFS=';'
18381      for lt_path in $LIB
18382      do
18383        IFS=$lt_save_ifs
18384        # Let DOS variable expansion print the short 8.3 style file name.
18385        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18386        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18387      done
18388      IFS=$lt_save_ifs
18389      # Convert to MSYS style.
18390      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18391      ;;
18392    cygwin*)
18393      # Convert to unix form, then to dos form, then back to unix form
18394      # but this time dos style (no spaces!) so that the unix form looks
18395      # like /cygdrive/c/PROGRA~1:/cygdr...
18396      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18397      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18398      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18399      ;;
18400    *)
18401      sys_lib_search_path_spec=$LIB
18402      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18403        # It is most probably a Windows format PATH.
18404        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18405      else
18406        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18407      fi
18408      # FIXME: find the short name or the path components, as spaces are
18409      # common. (e.g. "Program Files" -> "PROGRA~1")
18410      ;;
18411    esac
18412
18413    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18414    postinstall_cmds='base_file=`basename \$file`~
18415      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18416      dldir=$destdir/`dirname \$dlpath`~
18417      test -d \$dldir || mkdir -p \$dldir~
18418      $install_prog $dir/$dlname \$dldir/$dlname'
18419    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18420      dlpath=$dir/\$dldll~
18421       $RM \$dlpath'
18422    shlibpath_overrides_runpath=yes
18423    dynamic_linker='Win32 link.exe'
18424    ;;
18425
18426  *)
18427    # Assume MSVC and ICC wrapper
18428    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18429    dynamic_linker='Win32 ld.exe'
18430    ;;
18431  esac
18432  # FIXME: first we should search . and the directory the executable is in
18433  shlibpath_var=PATH
18434  ;;
18435
18436darwin* | rhapsody*)
18437  dynamic_linker="$host_os dyld"
18438  version_type=darwin
18439  need_lib_prefix=no
18440  need_version=no
18441  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18442  soname_spec='$libname$release$major$shared_ext'
18443  shlibpath_overrides_runpath=yes
18444  shlibpath_var=DYLD_LIBRARY_PATH
18445  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18446
18447  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18448  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18449  ;;
18450
18451dgux*)
18452  version_type=linux # correct to gnu/linux during the next big refactor
18453  need_lib_prefix=no
18454  need_version=no
18455  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18456  soname_spec='$libname$release$shared_ext$major'
18457  shlibpath_var=LD_LIBRARY_PATH
18458  ;;
18459
18460freebsd* | dragonfly* | midnightbsd*)
18461  # DragonFly does not have aout.  When/if they implement a new
18462  # versioning mechanism, adjust this.
18463  if test -x /usr/bin/objformat; then
18464    objformat=`/usr/bin/objformat`
18465  else
18466    case $host_os in
18467    freebsd[23].*) objformat=aout ;;
18468    *) objformat=elf ;;
18469    esac
18470  fi
18471  version_type=freebsd-$objformat
18472  case $version_type in
18473    freebsd-elf*)
18474      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18475      soname_spec='$libname$release$shared_ext$major'
18476      need_version=no
18477      need_lib_prefix=no
18478      ;;
18479    freebsd-*)
18480      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18481      need_version=yes
18482      ;;
18483  esac
18484  shlibpath_var=LD_LIBRARY_PATH
18485  case $host_os in
18486  freebsd2.*)
18487    shlibpath_overrides_runpath=yes
18488    ;;
18489  freebsd3.[01]* | freebsdelf3.[01]*)
18490    shlibpath_overrides_runpath=yes
18491    hardcode_into_libs=yes
18492    ;;
18493  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18494  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18495    shlibpath_overrides_runpath=no
18496    hardcode_into_libs=yes
18497    ;;
18498  *) # from 4.6 on, and DragonFly
18499    shlibpath_overrides_runpath=yes
18500    hardcode_into_libs=yes
18501    ;;
18502  esac
18503  ;;
18504
18505haiku*)
18506  version_type=linux # correct to gnu/linux during the next big refactor
18507  need_lib_prefix=no
18508  need_version=no
18509  dynamic_linker="$host_os runtime_loader"
18510  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18511  soname_spec='$libname$release$shared_ext$major'
18512  shlibpath_var=LIBRARY_PATH
18513  shlibpath_overrides_runpath=no
18514  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18515  hardcode_into_libs=yes
18516  ;;
18517
18518hpux9* | hpux10* | hpux11*)
18519  # Give a soname corresponding to the major version so that dld.sl refuses to
18520  # link against other versions.
18521  version_type=sunos
18522  need_lib_prefix=no
18523  need_version=no
18524  case $host_cpu in
18525  ia64*)
18526    shrext_cmds='.so'
18527    hardcode_into_libs=yes
18528    dynamic_linker="$host_os dld.so"
18529    shlibpath_var=LD_LIBRARY_PATH
18530    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18531    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18532    soname_spec='$libname$release$shared_ext$major'
18533    if test 32 = "$HPUX_IA64_MODE"; then
18534      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18535      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18536    else
18537      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18538      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18539    fi
18540    ;;
18541  hppa*64*)
18542    shrext_cmds='.sl'
18543    hardcode_into_libs=yes
18544    dynamic_linker="$host_os dld.sl"
18545    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18546    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18547    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18548    soname_spec='$libname$release$shared_ext$major'
18549    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18550    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18551    ;;
18552  *)
18553    shrext_cmds='.sl'
18554    dynamic_linker="$host_os dld.sl"
18555    shlibpath_var=SHLIB_PATH
18556    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18557    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18558    soname_spec='$libname$release$shared_ext$major'
18559    ;;
18560  esac
18561  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18562  postinstall_cmds='chmod 555 $lib'
18563  # or fails outright, so override atomically:
18564  install_override_mode=555
18565  ;;
18566
18567interix[3-9]*)
18568  version_type=linux # correct to gnu/linux during the next big refactor
18569  need_lib_prefix=no
18570  need_version=no
18571  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18572  soname_spec='$libname$release$shared_ext$major'
18573  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18574  shlibpath_var=LD_LIBRARY_PATH
18575  shlibpath_overrides_runpath=no
18576  hardcode_into_libs=yes
18577  ;;
18578
18579irix5* | irix6* | nonstopux*)
18580  case $host_os in
18581    nonstopux*) version_type=nonstopux ;;
18582    *)
18583	if test yes = "$lt_cv_prog_gnu_ld"; then
18584		version_type=linux # correct to gnu/linux during the next big refactor
18585	else
18586		version_type=irix
18587	fi ;;
18588  esac
18589  need_lib_prefix=no
18590  need_version=no
18591  soname_spec='$libname$release$shared_ext$major'
18592  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18593  case $host_os in
18594  irix5* | nonstopux*)
18595    libsuff= shlibsuff=
18596    ;;
18597  *)
18598    case $LD in # libtool.m4 will add one of these switches to LD
18599    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18600      libsuff= shlibsuff= libmagic=32-bit;;
18601    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18602      libsuff=32 shlibsuff=N32 libmagic=N32;;
18603    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18604      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18605    *) libsuff= shlibsuff= libmagic=never-match;;
18606    esac
18607    ;;
18608  esac
18609  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18610  shlibpath_overrides_runpath=no
18611  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18612  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18613  hardcode_into_libs=yes
18614  ;;
18615
18616# No shared lib support for Linux oldld, aout, or coff.
18617linux*oldld* | linux*aout* | linux*coff*)
18618  dynamic_linker=no
18619  ;;
18620
18621linux*android*)
18622  version_type=none # Android doesn't support versioned libraries.
18623  need_lib_prefix=no
18624  need_version=no
18625  library_names_spec='$libname$release$shared_ext'
18626  soname_spec='$libname$release$shared_ext'
18627  finish_cmds=
18628  shlibpath_var=LD_LIBRARY_PATH
18629  shlibpath_overrides_runpath=yes
18630
18631  # This implies no fast_install, which is unacceptable.
18632  # Some rework will be needed to allow for fast_install
18633  # before this can be enabled.
18634  hardcode_into_libs=yes
18635
18636  dynamic_linker='Android linker'
18637  # Don't embed -rpath directories since the linker doesn't support them.
18638  hardcode_libdir_flag_spec='-L$libdir'
18639  ;;
18640
18641# This must be glibc/ELF.
18642linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18643  version_type=linux # correct to gnu/linux during the next big refactor
18644  need_lib_prefix=no
18645  need_version=no
18646  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18647  soname_spec='$libname$release$shared_ext$major'
18648  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18649  shlibpath_var=LD_LIBRARY_PATH
18650  shlibpath_overrides_runpath=no
18651
18652  # Some binutils ld are patched to set DT_RUNPATH
18653  if test ${lt_cv_shlibpath_overrides_runpath+y}
18654then :
18655  printf %s "(cached) " >&6
18656else case e in #(
18657  e) lt_cv_shlibpath_overrides_runpath=no
18658    save_LDFLAGS=$LDFLAGS
18659    save_libdir=$libdir
18660    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18661	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18662    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18663/* end confdefs.h.  */
18664
18665int
18666main (void)
18667{
18668
18669  ;
18670  return 0;
18671}
18672_ACEOF
18673if ac_fn_c_try_link "$LINENO"
18674then :
18675  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18676then :
18677  lt_cv_shlibpath_overrides_runpath=yes
18678fi
18679fi
18680rm -f core conftest.err conftest.$ac_objext conftest.beam \
18681    conftest$ac_exeext conftest.$ac_ext
18682    LDFLAGS=$save_LDFLAGS
18683    libdir=$save_libdir
18684     ;;
18685esac
18686fi
18687
18688  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18689
18690  # This implies no fast_install, which is unacceptable.
18691  # Some rework will be needed to allow for fast_install
18692  # before this can be enabled.
18693  hardcode_into_libs=yes
18694
18695  # Ideally, we could use ldconfig to report *all* directores which are
18696  # searched for libraries, however this is still not possible.  Aside from not
18697  # being certain /sbin/ldconfig is available, command
18698  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18699  # even though it is searched at run-time.  Try to do the best guess by
18700  # appending ld.so.conf contents (and includes) to the search path.
18701  if test -f /etc/ld.so.conf; then
18702    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' ' '`
18703    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18704  fi
18705
18706  # We used to test for /lib/ld.so.1 and disable shared libraries on
18707  # powerpc, because MkLinux only supported shared libraries with the
18708  # GNU dynamic linker.  Since this was broken with cross compilers,
18709  # most powerpc-linux boxes support dynamic linking these days and
18710  # people can always --disable-shared, the test was removed, and we
18711  # assume the GNU/Linux dynamic linker is in use.
18712  dynamic_linker='GNU/Linux ld.so'
18713  ;;
18714
18715netbsd*)
18716  version_type=sunos
18717  need_lib_prefix=no
18718  need_version=no
18719  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18720    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18721    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18722    dynamic_linker='NetBSD (a.out) ld.so'
18723  else
18724    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18725    soname_spec='$libname$release$shared_ext$major'
18726    dynamic_linker='NetBSD ld.elf_so'
18727  fi
18728  shlibpath_var=LD_LIBRARY_PATH
18729  shlibpath_overrides_runpath=yes
18730  hardcode_into_libs=yes
18731  ;;
18732
18733newsos6)
18734  version_type=linux # correct to gnu/linux during the next big refactor
18735  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18736  shlibpath_var=LD_LIBRARY_PATH
18737  shlibpath_overrides_runpath=yes
18738  ;;
18739
18740*nto* | *qnx*)
18741  version_type=qnx
18742  need_lib_prefix=no
18743  need_version=no
18744  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18745  soname_spec='$libname$release$shared_ext$major'
18746  shlibpath_var=LD_LIBRARY_PATH
18747  shlibpath_overrides_runpath=no
18748  hardcode_into_libs=yes
18749  dynamic_linker='ldqnx.so'
18750  ;;
18751
18752openbsd* | bitrig*)
18753  version_type=sunos
18754  sys_lib_dlsearch_path_spec=/usr/lib
18755  need_lib_prefix=no
18756  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18757    need_version=no
18758  else
18759    need_version=yes
18760  fi
18761  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18762  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18763  shlibpath_var=LD_LIBRARY_PATH
18764  shlibpath_overrides_runpath=yes
18765  ;;
18766
18767os2*)
18768  libname_spec='$name'
18769  version_type=windows
18770  shrext_cmds=.dll
18771  need_version=no
18772  need_lib_prefix=no
18773  # OS/2 can only load a DLL with a base name of 8 characters or less.
18774  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18775    v=$($ECHO $release$versuffix | tr -d .-);
18776    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18777    $ECHO $n$v`$shared_ext'
18778  library_names_spec='${libname}_dll.$libext'
18779  dynamic_linker='OS/2 ld.exe'
18780  shlibpath_var=BEGINLIBPATH
18781  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18782  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18783  postinstall_cmds='base_file=`basename \$file`~
18784    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18785    dldir=$destdir/`dirname \$dlpath`~
18786    test -d \$dldir || mkdir -p \$dldir~
18787    $install_prog $dir/$dlname \$dldir/$dlname~
18788    chmod a+x \$dldir/$dlname~
18789    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18790      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18791    fi'
18792  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18793    dlpath=$dir/\$dldll~
18794    $RM \$dlpath'
18795  ;;
18796
18797osf3* | osf4* | osf5*)
18798  version_type=osf
18799  need_lib_prefix=no
18800  need_version=no
18801  soname_spec='$libname$release$shared_ext$major'
18802  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18803  shlibpath_var=LD_LIBRARY_PATH
18804  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18805  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18806  ;;
18807
18808rdos*)
18809  dynamic_linker=no
18810  ;;
18811
18812solaris*)
18813  version_type=linux # correct to gnu/linux during the next big refactor
18814  need_lib_prefix=no
18815  need_version=no
18816  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18817  soname_spec='$libname$release$shared_ext$major'
18818  shlibpath_var=LD_LIBRARY_PATH
18819  shlibpath_overrides_runpath=yes
18820  hardcode_into_libs=yes
18821  # ldd complains unless libraries are executable
18822  postinstall_cmds='chmod +x $lib'
18823  ;;
18824
18825sunos4*)
18826  version_type=sunos
18827  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18828  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18829  shlibpath_var=LD_LIBRARY_PATH
18830  shlibpath_overrides_runpath=yes
18831  if test yes = "$with_gnu_ld"; then
18832    need_lib_prefix=no
18833  fi
18834  need_version=yes
18835  ;;
18836
18837sysv4 | sysv4.3*)
18838  version_type=linux # correct to gnu/linux during the next big refactor
18839  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18840  soname_spec='$libname$release$shared_ext$major'
18841  shlibpath_var=LD_LIBRARY_PATH
18842  case $host_vendor in
18843    sni)
18844      shlibpath_overrides_runpath=no
18845      need_lib_prefix=no
18846      runpath_var=LD_RUN_PATH
18847      ;;
18848    siemens)
18849      need_lib_prefix=no
18850      ;;
18851    motorola)
18852      need_lib_prefix=no
18853      need_version=no
18854      shlibpath_overrides_runpath=no
18855      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18856      ;;
18857  esac
18858  ;;
18859
18860sysv4*MP*)
18861  if test -d /usr/nec; then
18862    version_type=linux # correct to gnu/linux during the next big refactor
18863    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18864    soname_spec='$libname$shared_ext.$major'
18865    shlibpath_var=LD_LIBRARY_PATH
18866  fi
18867  ;;
18868
18869sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18870  version_type=sco
18871  need_lib_prefix=no
18872  need_version=no
18873  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18874  soname_spec='$libname$release$shared_ext$major'
18875  shlibpath_var=LD_LIBRARY_PATH
18876  shlibpath_overrides_runpath=yes
18877  hardcode_into_libs=yes
18878  if test yes = "$with_gnu_ld"; then
18879    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18880  else
18881    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18882    case $host_os in
18883      sco3.2v5*)
18884        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18885	;;
18886    esac
18887  fi
18888  sys_lib_dlsearch_path_spec='/usr/lib'
18889  ;;
18890
18891tpf*)
18892  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18893  version_type=linux # correct to gnu/linux during the next big refactor
18894  need_lib_prefix=no
18895  need_version=no
18896  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18897  shlibpath_var=LD_LIBRARY_PATH
18898  shlibpath_overrides_runpath=no
18899  hardcode_into_libs=yes
18900  ;;
18901
18902uts4*)
18903  version_type=linux # correct to gnu/linux during the next big refactor
18904  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18905  soname_spec='$libname$release$shared_ext$major'
18906  shlibpath_var=LD_LIBRARY_PATH
18907  ;;
18908
18909*)
18910  dynamic_linker=no
18911  ;;
18912esac
18913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18914printf "%s\n" "$dynamic_linker" >&6; }
18915test no = "$dynamic_linker" && can_build_shared=no
18916
18917variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18918if test yes = "$GCC"; then
18919  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18920fi
18921
18922if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18923  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18924fi
18925
18926if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18927  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18928fi
18929
18930# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18931configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18932
18933# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18934func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18935
18936# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18937configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19036printf %s "checking how to hardcode library paths into programs... " >&6; }
19037hardcode_action=
19038if test -n "$hardcode_libdir_flag_spec" ||
19039   test -n "$runpath_var" ||
19040   test yes = "$hardcode_automatic"; then
19041
19042  # We can hardcode non-existent directories.
19043  if test no != "$hardcode_direct" &&
19044     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19045     # have to relink, otherwise we might link with an installed library
19046     # when we should be linking with a yet-to-be-installed one
19047     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
19048     test no != "$hardcode_minus_L"; then
19049    # Linking always hardcodes the temporary library directory.
19050    hardcode_action=relink
19051  else
19052    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19053    hardcode_action=immediate
19054  fi
19055else
19056  # We cannot hardcode anything, or else we can only hardcode existing
19057  # directories.
19058  hardcode_action=unsupported
19059fi
19060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19061printf "%s\n" "$hardcode_action" >&6; }
19062
19063if test relink = "$hardcode_action" ||
19064   test yes = "$inherit_rpath"; then
19065  # Fast installation is not supported
19066  enable_fast_install=no
19067elif test yes = "$shlibpath_overrides_runpath" ||
19068     test no = "$enable_shared"; then
19069  # Fast installation is not necessary
19070  enable_fast_install=needless
19071fi
19072
19073
19074
19075
19076
19077
19078  if test yes != "$enable_dlopen"; then
19079  enable_dlopen=unknown
19080  enable_dlopen_self=unknown
19081  enable_dlopen_self_static=unknown
19082else
19083  lt_cv_dlopen=no
19084  lt_cv_dlopen_libs=
19085
19086  case $host_os in
19087  beos*)
19088    lt_cv_dlopen=load_add_on
19089    lt_cv_dlopen_libs=
19090    lt_cv_dlopen_self=yes
19091    ;;
19092
19093  mingw* | pw32* | cegcc*)
19094    lt_cv_dlopen=LoadLibrary
19095    lt_cv_dlopen_libs=
19096    ;;
19097
19098  cygwin*)
19099    lt_cv_dlopen=dlopen
19100    lt_cv_dlopen_libs=
19101    ;;
19102
19103  darwin*)
19104    # if libdl is installed we need to link against it
19105    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19106printf %s "checking for dlopen in -ldl... " >&6; }
19107if test ${ac_cv_lib_dl_dlopen+y}
19108then :
19109  printf %s "(cached) " >&6
19110else case e in #(
19111  e) ac_check_lib_save_LIBS=$LIBS
19112LIBS="-ldl  $LIBS"
19113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19114/* end confdefs.h.  */
19115
19116/* Override any GCC internal prototype to avoid an error.
19117   Use char because int might match the return type of a GCC
19118   builtin and then its argument prototype would still apply.
19119   The 'extern "C"' is for builds by C++ compilers;
19120   although this is not generally supported in C code supporting it here
19121   has little cost and some practical benefit (sr 110532).  */
19122#ifdef __cplusplus
19123extern "C"
19124#endif
19125char dlopen (void);
19126int
19127main (void)
19128{
19129return dlopen ();
19130  ;
19131  return 0;
19132}
19133_ACEOF
19134if ac_fn_c_try_link "$LINENO"
19135then :
19136  ac_cv_lib_dl_dlopen=yes
19137else case e in #(
19138  e) ac_cv_lib_dl_dlopen=no ;;
19139esac
19140fi
19141rm -f core conftest.err conftest.$ac_objext conftest.beam \
19142    conftest$ac_exeext conftest.$ac_ext
19143LIBS=$ac_check_lib_save_LIBS ;;
19144esac
19145fi
19146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19147printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
19148if test "x$ac_cv_lib_dl_dlopen" = xyes
19149then :
19150  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
19151else case e in #(
19152  e)
19153    lt_cv_dlopen=dyld
19154    lt_cv_dlopen_libs=
19155    lt_cv_dlopen_self=yes
19156     ;;
19157esac
19158fi
19159
19160    ;;
19161
19162  tpf*)
19163    # Don't try to run any link tests for TPF.  We know it's impossible
19164    # because TPF is a cross-compiler, and we know how we open DSOs.
19165    lt_cv_dlopen=dlopen
19166    lt_cv_dlopen_libs=
19167    lt_cv_dlopen_self=no
19168    ;;
19169
19170  *)
19171    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19172if test "x$ac_cv_func_shl_load" = xyes
19173then :
19174  lt_cv_dlopen=shl_load
19175else case e in #(
19176  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19177printf %s "checking for shl_load in -ldld... " >&6; }
19178if test ${ac_cv_lib_dld_shl_load+y}
19179then :
19180  printf %s "(cached) " >&6
19181else case e in #(
19182  e) ac_check_lib_save_LIBS=$LIBS
19183LIBS="-ldld  $LIBS"
19184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19185/* end confdefs.h.  */
19186
19187/* Override any GCC internal prototype to avoid an error.
19188   Use char because int might match the return type of a GCC
19189   builtin and then its argument prototype would still apply.
19190   The 'extern "C"' is for builds by C++ compilers;
19191   although this is not generally supported in C code supporting it here
19192   has little cost and some practical benefit (sr 110532).  */
19193#ifdef __cplusplus
19194extern "C"
19195#endif
19196char shl_load (void);
19197int
19198main (void)
19199{
19200return shl_load ();
19201  ;
19202  return 0;
19203}
19204_ACEOF
19205if ac_fn_c_try_link "$LINENO"
19206then :
19207  ac_cv_lib_dld_shl_load=yes
19208else case e in #(
19209  e) ac_cv_lib_dld_shl_load=no ;;
19210esac
19211fi
19212rm -f core conftest.err conftest.$ac_objext conftest.beam \
19213    conftest$ac_exeext conftest.$ac_ext
19214LIBS=$ac_check_lib_save_LIBS ;;
19215esac
19216fi
19217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19218printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
19219if test "x$ac_cv_lib_dld_shl_load" = xyes
19220then :
19221  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
19222else case e in #(
19223  e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19224if test "x$ac_cv_func_dlopen" = xyes
19225then :
19226  lt_cv_dlopen=dlopen
19227else case e in #(
19228  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19229printf %s "checking for dlopen in -ldl... " >&6; }
19230if test ${ac_cv_lib_dl_dlopen+y}
19231then :
19232  printf %s "(cached) " >&6
19233else case e in #(
19234  e) ac_check_lib_save_LIBS=$LIBS
19235LIBS="-ldl  $LIBS"
19236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19237/* end confdefs.h.  */
19238
19239/* Override any GCC internal prototype to avoid an error.
19240   Use char because int might match the return type of a GCC
19241   builtin and then its argument prototype would still apply.
19242   The 'extern "C"' is for builds by C++ compilers;
19243   although this is not generally supported in C code supporting it here
19244   has little cost and some practical benefit (sr 110532).  */
19245#ifdef __cplusplus
19246extern "C"
19247#endif
19248char dlopen (void);
19249int
19250main (void)
19251{
19252return dlopen ();
19253  ;
19254  return 0;
19255}
19256_ACEOF
19257if ac_fn_c_try_link "$LINENO"
19258then :
19259  ac_cv_lib_dl_dlopen=yes
19260else case e in #(
19261  e) ac_cv_lib_dl_dlopen=no ;;
19262esac
19263fi
19264rm -f core conftest.err conftest.$ac_objext conftest.beam \
19265    conftest$ac_exeext conftest.$ac_ext
19266LIBS=$ac_check_lib_save_LIBS ;;
19267esac
19268fi
19269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19270printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
19271if test "x$ac_cv_lib_dl_dlopen" = xyes
19272then :
19273  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
19274else case e in #(
19275  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19276printf %s "checking for dlopen in -lsvld... " >&6; }
19277if test ${ac_cv_lib_svld_dlopen+y}
19278then :
19279  printf %s "(cached) " >&6
19280else case e in #(
19281  e) ac_check_lib_save_LIBS=$LIBS
19282LIBS="-lsvld  $LIBS"
19283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19284/* end confdefs.h.  */
19285
19286/* Override any GCC internal prototype to avoid an error.
19287   Use char because int might match the return type of a GCC
19288   builtin and then its argument prototype would still apply.
19289   The 'extern "C"' is for builds by C++ compilers;
19290   although this is not generally supported in C code supporting it here
19291   has little cost and some practical benefit (sr 110532).  */
19292#ifdef __cplusplus
19293extern "C"
19294#endif
19295char dlopen (void);
19296int
19297main (void)
19298{
19299return dlopen ();
19300  ;
19301  return 0;
19302}
19303_ACEOF
19304if ac_fn_c_try_link "$LINENO"
19305then :
19306  ac_cv_lib_svld_dlopen=yes
19307else case e in #(
19308  e) ac_cv_lib_svld_dlopen=no ;;
19309esac
19310fi
19311rm -f core conftest.err conftest.$ac_objext conftest.beam \
19312    conftest$ac_exeext conftest.$ac_ext
19313LIBS=$ac_check_lib_save_LIBS ;;
19314esac
19315fi
19316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19317printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
19318if test "x$ac_cv_lib_svld_dlopen" = xyes
19319then :
19320  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
19321else case e in #(
19322  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19323printf %s "checking for dld_link in -ldld... " >&6; }
19324if test ${ac_cv_lib_dld_dld_link+y}
19325then :
19326  printf %s "(cached) " >&6
19327else case e in #(
19328  e) ac_check_lib_save_LIBS=$LIBS
19329LIBS="-ldld  $LIBS"
19330cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19331/* end confdefs.h.  */
19332
19333/* Override any GCC internal prototype to avoid an error.
19334   Use char because int might match the return type of a GCC
19335   builtin and then its argument prototype would still apply.
19336   The 'extern "C"' is for builds by C++ compilers;
19337   although this is not generally supported in C code supporting it here
19338   has little cost and some practical benefit (sr 110532).  */
19339#ifdef __cplusplus
19340extern "C"
19341#endif
19342char dld_link (void);
19343int
19344main (void)
19345{
19346return dld_link ();
19347  ;
19348  return 0;
19349}
19350_ACEOF
19351if ac_fn_c_try_link "$LINENO"
19352then :
19353  ac_cv_lib_dld_dld_link=yes
19354else case e in #(
19355  e) ac_cv_lib_dld_dld_link=no ;;
19356esac
19357fi
19358rm -f core conftest.err conftest.$ac_objext conftest.beam \
19359    conftest$ac_exeext conftest.$ac_ext
19360LIBS=$ac_check_lib_save_LIBS ;;
19361esac
19362fi
19363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19364printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
19365if test "x$ac_cv_lib_dld_dld_link" = xyes
19366then :
19367  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
19368fi
19369
19370	       ;;
19371esac
19372fi
19373
19374	     ;;
19375esac
19376fi
19377
19378	   ;;
19379esac
19380fi
19381
19382	 ;;
19383esac
19384fi
19385
19386       ;;
19387esac
19388fi
19389
19390    ;;
19391  esac
19392
19393  if test no = "$lt_cv_dlopen"; then
19394    enable_dlopen=no
19395  else
19396    enable_dlopen=yes
19397  fi
19398
19399  case $lt_cv_dlopen in
19400  dlopen)
19401    save_CPPFLAGS=$CPPFLAGS
19402    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19403
19404    save_LDFLAGS=$LDFLAGS
19405    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19406
19407    save_LIBS=$LIBS
19408    LIBS="$lt_cv_dlopen_libs $LIBS"
19409
19410    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19411printf %s "checking whether a program can dlopen itself... " >&6; }
19412if test ${lt_cv_dlopen_self+y}
19413then :
19414  printf %s "(cached) " >&6
19415else case e in #(
19416  e) 	  if test yes = "$cross_compiling"; then :
19417  lt_cv_dlopen_self=cross
19418else
19419  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19420  lt_status=$lt_dlunknown
19421  cat > conftest.$ac_ext <<_LT_EOF
19422#line $LINENO "configure"
19423#include "confdefs.h"
19424
19425#if HAVE_DLFCN_H
19426#include <dlfcn.h>
19427#endif
19428
19429#include <stdio.h>
19430
19431#ifdef RTLD_GLOBAL
19432#  define LT_DLGLOBAL		RTLD_GLOBAL
19433#else
19434#  ifdef DL_GLOBAL
19435#    define LT_DLGLOBAL		DL_GLOBAL
19436#  else
19437#    define LT_DLGLOBAL		0
19438#  endif
19439#endif
19440
19441/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19442   find out it does not work in some platform. */
19443#ifndef LT_DLLAZY_OR_NOW
19444#  ifdef RTLD_LAZY
19445#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19446#  else
19447#    ifdef DL_LAZY
19448#      define LT_DLLAZY_OR_NOW		DL_LAZY
19449#    else
19450#      ifdef RTLD_NOW
19451#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19452#      else
19453#        ifdef DL_NOW
19454#          define LT_DLLAZY_OR_NOW	DL_NOW
19455#        else
19456#          define LT_DLLAZY_OR_NOW	0
19457#        endif
19458#      endif
19459#    endif
19460#  endif
19461#endif
19462
19463/* When -fvisibility=hidden is used, assume the code has been annotated
19464   correspondingly for the symbols needed.  */
19465#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19466int fnord () __attribute__((visibility("default")));
19467#endif
19468
19469int fnord () { return 42; }
19470int main ()
19471{
19472  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19473  int status = $lt_dlunknown;
19474
19475  if (self)
19476    {
19477      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19478      else
19479        {
19480	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19481          else puts (dlerror ());
19482	}
19483      /* dlclose (self); */
19484    }
19485  else
19486    puts (dlerror ());
19487
19488  return status;
19489}
19490_LT_EOF
19491  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19492  (eval $ac_link) 2>&5
19493  ac_status=$?
19494  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19495  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19496    (./conftest; exit; ) >&5 2>/dev/null
19497    lt_status=$?
19498    case x$lt_status in
19499      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19500      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19501      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19502    esac
19503  else :
19504    # compilation failed
19505    lt_cv_dlopen_self=no
19506  fi
19507fi
19508rm -fr conftest*
19509
19510     ;;
19511esac
19512fi
19513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19514printf "%s\n" "$lt_cv_dlopen_self" >&6; }
19515
19516    if test yes = "$lt_cv_dlopen_self"; then
19517      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19518      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19519printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19520if test ${lt_cv_dlopen_self_static+y}
19521then :
19522  printf %s "(cached) " >&6
19523else case e in #(
19524  e) 	  if test yes = "$cross_compiling"; then :
19525  lt_cv_dlopen_self_static=cross
19526else
19527  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19528  lt_status=$lt_dlunknown
19529  cat > conftest.$ac_ext <<_LT_EOF
19530#line $LINENO "configure"
19531#include "confdefs.h"
19532
19533#if HAVE_DLFCN_H
19534#include <dlfcn.h>
19535#endif
19536
19537#include <stdio.h>
19538
19539#ifdef RTLD_GLOBAL
19540#  define LT_DLGLOBAL		RTLD_GLOBAL
19541#else
19542#  ifdef DL_GLOBAL
19543#    define LT_DLGLOBAL		DL_GLOBAL
19544#  else
19545#    define LT_DLGLOBAL		0
19546#  endif
19547#endif
19548
19549/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19550   find out it does not work in some platform. */
19551#ifndef LT_DLLAZY_OR_NOW
19552#  ifdef RTLD_LAZY
19553#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19554#  else
19555#    ifdef DL_LAZY
19556#      define LT_DLLAZY_OR_NOW		DL_LAZY
19557#    else
19558#      ifdef RTLD_NOW
19559#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19560#      else
19561#        ifdef DL_NOW
19562#          define LT_DLLAZY_OR_NOW	DL_NOW
19563#        else
19564#          define LT_DLLAZY_OR_NOW	0
19565#        endif
19566#      endif
19567#    endif
19568#  endif
19569#endif
19570
19571/* When -fvisibility=hidden is used, assume the code has been annotated
19572   correspondingly for the symbols needed.  */
19573#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19574int fnord () __attribute__((visibility("default")));
19575#endif
19576
19577int fnord () { return 42; }
19578int main ()
19579{
19580  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19581  int status = $lt_dlunknown;
19582
19583  if (self)
19584    {
19585      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19586      else
19587        {
19588	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19589          else puts (dlerror ());
19590	}
19591      /* dlclose (self); */
19592    }
19593  else
19594    puts (dlerror ());
19595
19596  return status;
19597}
19598_LT_EOF
19599  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19600  (eval $ac_link) 2>&5
19601  ac_status=$?
19602  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19603  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19604    (./conftest; exit; ) >&5 2>/dev/null
19605    lt_status=$?
19606    case x$lt_status in
19607      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19608      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19609      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19610    esac
19611  else :
19612    # compilation failed
19613    lt_cv_dlopen_self_static=no
19614  fi
19615fi
19616rm -fr conftest*
19617
19618       ;;
19619esac
19620fi
19621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19622printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19623    fi
19624
19625    CPPFLAGS=$save_CPPFLAGS
19626    LDFLAGS=$save_LDFLAGS
19627    LIBS=$save_LIBS
19628    ;;
19629  esac
19630
19631  case $lt_cv_dlopen_self in
19632  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19633  *) enable_dlopen_self=unknown ;;
19634  esac
19635
19636  case $lt_cv_dlopen_self_static in
19637  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19638  *) enable_dlopen_self_static=unknown ;;
19639  esac
19640fi
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658striplib=
19659old_striplib=
19660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19661printf %s "checking whether stripping libraries is possible... " >&6; }
19662if test -z "$STRIP"; then
19663  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19664printf "%s\n" "no" >&6; }
19665else
19666  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19667    old_striplib="$STRIP --strip-debug"
19668    striplib="$STRIP --strip-unneeded"
19669    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19670printf "%s\n" "yes" >&6; }
19671  else
19672    case $host_os in
19673    darwin*)
19674      # FIXME - insert some real tests, host_os isn't really good enough
19675      striplib="$STRIP -x"
19676      old_striplib="$STRIP -S"
19677      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19678printf "%s\n" "yes" >&6; }
19679      ;;
19680    freebsd*)
19681      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
19682        old_striplib="$STRIP --strip-debug"
19683        striplib="$STRIP --strip-unneeded"
19684        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19685printf "%s\n" "yes" >&6; }
19686      else
19687        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19688printf "%s\n" "no" >&6; }
19689      fi
19690      ;;
19691    *)
19692      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19693printf "%s\n" "no" >&6; }
19694      ;;
19695    esac
19696  fi
19697fi
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710  # Report what library types will actually be built
19711  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19712printf %s "checking if libtool supports shared libraries... " >&6; }
19713  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19714printf "%s\n" "$can_build_shared" >&6; }
19715
19716  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19717printf %s "checking whether to build shared libraries... " >&6; }
19718  test no = "$can_build_shared" && enable_shared=no
19719
19720  # On AIX, shared libraries and static libraries use the same namespace, and
19721  # are all built from PIC.
19722  case $host_os in
19723  aix3*)
19724    test yes = "$enable_shared" && enable_static=no
19725    if test -n "$RANLIB"; then
19726      archive_cmds="$archive_cmds~\$RANLIB \$lib"
19727      postinstall_cmds='$RANLIB $lib'
19728    fi
19729    ;;
19730
19731  aix[4-9]*)
19732    if test ia64 != "$host_cpu"; then
19733      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19734      yes,aix,yes) ;;			# shared object as lib.so file only
19735      yes,svr4,*) ;;			# shared object as lib.so archive member only
19736      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
19737      esac
19738    fi
19739    ;;
19740  esac
19741  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19742printf "%s\n" "$enable_shared" >&6; }
19743
19744  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19745printf %s "checking whether to build static libraries... " >&6; }
19746  # Make sure either enable_shared or enable_static is yes.
19747  test yes = "$enable_shared" || enable_static=yes
19748  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19749printf "%s\n" "$enable_static" >&6; }
19750
19751
19752
19753
19754fi
19755ac_ext=c
19756ac_cpp='$CPP $CPPFLAGS'
19757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19759ac_compiler_gnu=$ac_cv_c_compiler_gnu
19760
19761CC=$lt_save_CC
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777        ac_config_commands="$ac_config_commands libtool"
19778
19779
19780
19781
19782# Only expand once:
19783
19784
19785
19786
19787
19788# Define a configure option for an alternate module directory
19789
19790# Check whether --with-xorg-module-dir was given.
19791if test ${with_xorg_module_dir+y}
19792then :
19793  withval=$with_xorg_module_dir; moduledir="$withval"
19794else case e in #(
19795  e) moduledir="$libdir/xorg/modules" ;;
19796esac
19797fi
19798
19799
19800# Store the list of server defined optional extensions in REQUIRED_MODULES
19801
19802
19803	SAVE_CFLAGS="$CFLAGS"
19804	CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19805	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19806/* end confdefs.h.  */
19807
19808#include "xorg-server.h"
19809#if !defined RANDR
19810#error RANDR not defined
19811#endif
19812
19813int
19814main (void)
19815{
19816
19817  ;
19818  return 0;
19819}
19820_ACEOF
19821if ac_fn_c_try_compile "$LINENO"
19822then :
19823  _EXT_CHECK=yes
19824else case e in #(
19825  e) _EXT_CHECK=no ;;
19826esac
19827fi
19828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19829	CFLAGS="$SAVE_CFLAGS"
19830	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19831printf %s "checking if RANDR is defined... " >&6; }
19832	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19833printf "%s\n" "$_EXT_CHECK" >&6; }
19834	if test "$_EXT_CHECK" != no; then
19835		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19836	fi
19837
19838
19839
19840	SAVE_CFLAGS="$CFLAGS"
19841	CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19842	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19843/* end confdefs.h.  */
19844
19845#include "xorg-server.h"
19846#if !defined RENDER
19847#error RENDER not defined
19848#endif
19849
19850int
19851main (void)
19852{
19853
19854  ;
19855  return 0;
19856}
19857_ACEOF
19858if ac_fn_c_try_compile "$LINENO"
19859then :
19860  _EXT_CHECK=yes
19861else case e in #(
19862  e) _EXT_CHECK=no ;;
19863esac
19864fi
19865rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19866	CFLAGS="$SAVE_CFLAGS"
19867	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
19868printf %s "checking if RENDER is defined... " >&6; }
19869	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19870printf "%s\n" "$_EXT_CHECK" >&6; }
19871	if test "$_EXT_CHECK" != no; then
19872		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19873	fi
19874
19875
19876
19877	SAVE_CFLAGS="$CFLAGS"
19878	CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19879	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19880/* end confdefs.h.  */
19881
19882#include "xorg-server.h"
19883#if !defined XV
19884#error XV not defined
19885#endif
19886
19887int
19888main (void)
19889{
19890
19891  ;
19892  return 0;
19893}
19894_ACEOF
19895if ac_fn_c_try_compile "$LINENO"
19896then :
19897  _EXT_CHECK=yes
19898else case e in #(
19899  e) _EXT_CHECK=no ;;
19900esac
19901fi
19902rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19903	CFLAGS="$SAVE_CFLAGS"
19904	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
19905printf %s "checking if XV is defined... " >&6; }
19906	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19907printf "%s\n" "$_EXT_CHECK" >&6; }
19908	if test "$_EXT_CHECK" != no; then
19909		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
19910	fi
19911
19912
19913
19914	SAVE_CFLAGS="$CFLAGS"
19915	CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19916	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19917/* end confdefs.h.  */
19918
19919#include "xorg-server.h"
19920#if !defined DPMSExtension
19921#error DPMSExtension not defined
19922#endif
19923
19924int
19925main (void)
19926{
19927
19928  ;
19929  return 0;
19930}
19931_ACEOF
19932if ac_fn_c_try_compile "$LINENO"
19933then :
19934  _EXT_CHECK=yes
19935else case e in #(
19936  e) _EXT_CHECK=no ;;
19937esac
19938fi
19939rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19940	CFLAGS="$SAVE_CFLAGS"
19941	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
19942printf %s "checking if DPMSExtension is defined... " >&6; }
19943	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19944printf "%s\n" "$_EXT_CHECK" >&6; }
19945	if test "$_EXT_CHECK" != no; then
19946		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19947	fi
19948
19949
19950# Obtain compiler/linker options for the driver dependencies
19951
19952pkg_failed=no
19953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19954printf %s "checking for XORG... " >&6; }
19955
19956if test -n "$XORG_CFLAGS"; then
19957    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19958 elif test -n "$PKG_CONFIG"; then
19959    if test -n "$PKG_CONFIG" && \
19960    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19961  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
19962  ac_status=$?
19963  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19964  test $ac_status = 0; }; then
19965  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19966		      test "x$?" != "x0" && pkg_failed=yes
19967else
19968  pkg_failed=yes
19969fi
19970 else
19971    pkg_failed=untried
19972fi
19973if test -n "$XORG_LIBS"; then
19974    pkg_cv_XORG_LIBS="$XORG_LIBS"
19975 elif test -n "$PKG_CONFIG"; then
19976    if test -n "$PKG_CONFIG" && \
19977    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19978  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
19979  ac_status=$?
19980  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19981  test $ac_status = 0; }; then
19982  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19983		      test "x$?" != "x0" && pkg_failed=yes
19984else
19985  pkg_failed=yes
19986fi
19987 else
19988    pkg_failed=untried
19989fi
19990
19991
19992
19993if test $pkg_failed = yes; then
19994   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19995printf "%s\n" "no" >&6; }
19996
19997if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19998        _pkg_short_errors_supported=yes
19999else
20000        _pkg_short_errors_supported=no
20001fi
20002        if test $_pkg_short_errors_supported = yes; then
20003	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
20004        else
20005	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
20006        fi
20007	# Put the nasty error message in config.log where it belongs
20008	echo "$XORG_PKG_ERRORS" >&5
20009
20010	as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
20011
20012$XORG_PKG_ERRORS
20013
20014Consider adjusting the PKG_CONFIG_PATH environment variable if you
20015installed software in a non-standard prefix.
20016
20017Alternatively, you may set the environment variables XORG_CFLAGS
20018and XORG_LIBS to avoid the need to call pkg-config.
20019See the pkg-config man page for more details." "$LINENO" 5
20020elif test $pkg_failed = untried; then
20021     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20022printf "%s\n" "no" >&6; }
20023	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20024printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20025as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20026is in your PATH or set the PKG_CONFIG environment variable to the full
20027path to pkg-config.
20028
20029Alternatively, you may set the environment variables XORG_CFLAGS
20030and XORG_LIBS to avoid the need to call pkg-config.
20031See the pkg-config man page for more details.
20032
20033To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20034See 'config.log' for more details" "$LINENO" 5; }
20035else
20036	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
20037	XORG_LIBS=$pkg_cv_XORG_LIBS
20038        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20039printf "%s\n" "yes" >&6; }
20040
20041fi
20042
20043# Checks for libraries.
20044SAVE_CPPFLAGS="$CPPFLAGS"
20045CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
20046ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
20047" "$ac_c_undeclared_builtin_options" "CFLAGS"
20048if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes
20049then :
20050  XSERVER_LIBPCIACCESS=yes
20051else case e in #(
20052  e) XSERVER_LIBPCIACCESS=no ;;
20053esac
20054fi
20055ac_fn_c_check_header_compile "$LINENO" "xf1bpp.h" "ac_cv_header_xf1bpp_h" "$ac_includes_default"
20056if test "x$ac_cv_header_xf1bpp_h" = xyes
20057then :
20058
20059printf "%s\n" "#define HAVE_XF1BPP 1" >>confdefs.h
20060
20061fi
20062
20063ac_fn_c_check_header_compile "$LINENO" "xf4bpp.h" "ac_cv_header_xf4bpp_h" "$ac_includes_default"
20064if test "x$ac_cv_header_xf4bpp_h" = xyes
20065then :
20066
20067printf "%s\n" "#define HAVE_XF4BPP 1" >>confdefs.h
20068
20069fi
20070
20071CPPFLAGS="$SAVE_CPPFLAGS"
20072
20073if test "x$XSERVER_LIBPCIACCESS" = xyes; then
20074
20075pkg_failed=no
20076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
20077printf %s "checking for PCIACCESS... " >&6; }
20078
20079if test -n "$PCIACCESS_CFLAGS"; then
20080    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
20081 elif test -n "$PKG_CONFIG"; then
20082    if test -n "$PKG_CONFIG" && \
20083    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
20084  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
20085  ac_status=$?
20086  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20087  test $ac_status = 0; }; then
20088  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
20089		      test "x$?" != "x0" && pkg_failed=yes
20090else
20091  pkg_failed=yes
20092fi
20093 else
20094    pkg_failed=untried
20095fi
20096if test -n "$PCIACCESS_LIBS"; then
20097    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
20098 elif test -n "$PKG_CONFIG"; then
20099    if test -n "$PKG_CONFIG" && \
20100    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
20101  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
20102  ac_status=$?
20103  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20104  test $ac_status = 0; }; then
20105  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
20106		      test "x$?" != "x0" && pkg_failed=yes
20107else
20108  pkg_failed=yes
20109fi
20110 else
20111    pkg_failed=untried
20112fi
20113
20114
20115
20116if test $pkg_failed = yes; then
20117   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20118printf "%s\n" "no" >&6; }
20119
20120if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20121        _pkg_short_errors_supported=yes
20122else
20123        _pkg_short_errors_supported=no
20124fi
20125        if test $_pkg_short_errors_supported = yes; then
20126	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
20127        else
20128	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
20129        fi
20130	# Put the nasty error message in config.log where it belongs
20131	echo "$PCIACCESS_PKG_ERRORS" >&5
20132
20133	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
20134
20135$PCIACCESS_PKG_ERRORS
20136
20137Consider adjusting the PKG_CONFIG_PATH environment variable if you
20138installed software in a non-standard prefix.
20139
20140Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20141and PCIACCESS_LIBS to avoid the need to call pkg-config.
20142See the pkg-config man page for more details." "$LINENO" 5
20143elif test $pkg_failed = untried; then
20144     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20145printf "%s\n" "no" >&6; }
20146	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20147printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20148as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20149is in your PATH or set the PKG_CONFIG environment variable to the full
20150path to pkg-config.
20151
20152Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20153and PCIACCESS_LIBS to avoid the need to call pkg-config.
20154See the pkg-config man page for more details.
20155
20156To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20157See 'config.log' for more details" "$LINENO" 5; }
20158else
20159	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
20160	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
20161        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20162printf "%s\n" "yes" >&6; }
20163
20164fi
20165    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
20166fi
20167 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
20168  XSERVER_LIBPCIACCESS_TRUE=
20169  XSERVER_LIBPCIACCESS_FALSE='#'
20170else
20171  XSERVER_LIBPCIACCESS_TRUE='#'
20172  XSERVER_LIBPCIACCESS_FALSE=
20173fi
20174
20175# Check whether --enable-xaa was given.
20176if test ${enable_xaa+y}
20177then :
20178  enableval=$enable_xaa; XAA="$enableval"
20179else case e in #(
20180  e) XAA=auto ;;
20181esac
20182fi
20183
20184if test "x$XAA" != xno; then
20185        save_CFLAGS=$CFLAGS
20186        save_CPPFLAGS=$CPPFLAGS
20187        CFLAGS=$XORG_CFLAGS
20188        CPPFLAGS="$XORG_CFLAGS"
20189               for ac_header in xaa.h
20190do :
20191  ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
20192if test "x$ac_cv_header_xaa_h" = xyes
20193then :
20194  printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h
20195 XAA=yes
20196else case e in #(
20197  e) XAA=no ;;
20198esac
20199fi
20200
20201done
20202        CFLAGS=$save_CFLAGS
20203        CPPFLAGS=$save_CPPFLAGS
20204fi
20205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
20206printf %s "checking whether to include XAA support... " >&6; }
20207 if test "x$XAA" = xyes; then
20208  XAA_TRUE=
20209  XAA_FALSE='#'
20210else
20211  XAA_TRUE='#'
20212  XAA_FALSE=
20213fi
20214
20215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
20216printf "%s\n" "$XAA" >&6; }
20217
20218save_CFLAGS="$CFLAGS"
20219CFLAGS="$XORG_CFLAGS"
20220ac_fn_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\"
20221" "$ac_c_undeclared_builtin_options" "CFLAGS"
20222if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes
20223then :
20224
20225printf "%s\n" "#define HAVE_ISA 1" >>confdefs.h
20226
20227fi
20228CFLAGS="$save_CFLAGS"
20229
20230
20231# Checks for functions (often defined as inlines in compiler.h)
20232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inb" >&5
20233printf %s "checking for inb... " >&6; }
20234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20235/* end confdefs.h.  */
20236
20237#include "util/AsmMacros.h"
20238
20239int main() {
20240	int x = inb(0);
20241	return x;
20242}
20243
20244_ACEOF
20245if ac_fn_c_try_link "$LINENO"
20246then :
20247  HAVE_INB=yes
20248else case e in #(
20249  e) HAVE_INB=no ;;
20250esac
20251fi
20252rm -f core conftest.err conftest.$ac_objext conftest.beam \
20253    conftest$ac_exeext conftest.$ac_ext
20254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_INB" >&5
20255printf "%s\n" "$HAVE_INB" >&6; }
20256 if test x$HAVE_INB = xyes; then
20257  BUILD_UTILS_TRUE=
20258  BUILD_UTILS_FALSE='#'
20259else
20260  BUILD_UTILS_TRUE='#'
20261  BUILD_UTILS_FALSE=
20262fi
20263
20264
20265# We don't use strlcat, strlcpy, or timingsafe_memcmp, but check to quiet
20266# -Wredundant-decls warning from xorg/os.h which will otherwise redefine them.
20267ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
20268if test "x$ac_cv_func_strlcat" = xyes
20269then :
20270  printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
20271
20272fi
20273ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20274if test "x$ac_cv_func_strlcpy" = xyes
20275then :
20276  printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
20277
20278fi
20279ac_fn_c_check_func "$LINENO" "timingsafe_memcmp" "ac_cv_func_timingsafe_memcmp"
20280if test "x$ac_cv_func_timingsafe_memcmp" = xyes
20281then :
20282  printf "%s\n" "#define HAVE_TIMINGSAFE_MEMCMP 1" >>confdefs.h
20283
20284fi
20285
20286
20287
20288
20289DRIVER_NAME=chips
20290
20291
20292ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile util/Makefile"
20293
20294cat >confcache <<\_ACEOF
20295# This file is a shell script that caches the results of configure
20296# tests run on this system so they can be shared between configure
20297# scripts and configure runs, see configure's option --config-cache.
20298# It is not useful on other systems.  If it contains results you don't
20299# want to keep, you may remove or edit it.
20300#
20301# config.status only pays attention to the cache file if you give it
20302# the --recheck option to rerun configure.
20303#
20304# 'ac_cv_env_foo' variables (set or unset) will be overridden when
20305# loading this file, other *unset* 'ac_cv_foo' will be assigned the
20306# following values.
20307
20308_ACEOF
20309
20310# The following way of writing the cache mishandles newlines in values,
20311# but we know of no workaround that is simple, portable, and efficient.
20312# So, we kill variables containing newlines.
20313# Ultrix sh set writes to stderr and can't be redirected directly,
20314# and sets the high bit in the cache file unless we assign to the vars.
20315(
20316  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20317    eval ac_val=\$$ac_var
20318    case $ac_val in #(
20319    *${as_nl}*)
20320      case $ac_var in #(
20321      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20322printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20323      esac
20324      case $ac_var in #(
20325      _ | IFS | as_nl) ;; #(
20326      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20327      *) { eval $ac_var=; unset $ac_var;} ;;
20328      esac ;;
20329    esac
20330  done
20331
20332  (set) 2>&1 |
20333    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20334    *${as_nl}ac_space=\ *)
20335      # 'set' does not quote correctly, so add quotes: double-quote
20336      # substitution turns \\\\ into \\, and sed turns \\ into \.
20337      sed -n \
20338	"s/'/'\\\\''/g;
20339	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20340      ;; #(
20341    *)
20342      # 'set' quotes correctly as required by POSIX, so do not add quotes.
20343      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20344      ;;
20345    esac |
20346    sort
20347) |
20348  sed '
20349     /^ac_cv_env_/b end
20350     t clear
20351     :clear
20352     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20353     t end
20354     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20355     :end' >>confcache
20356if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20357  if test -w "$cache_file"; then
20358    if test "x$cache_file" != "x/dev/null"; then
20359      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20360printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20361      if test ! -f "$cache_file" || test -h "$cache_file"; then
20362	cat confcache >"$cache_file"
20363      else
20364        case $cache_file in #(
20365        */* | ?:*)
20366	  mv -f confcache "$cache_file"$$ &&
20367	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20368        *)
20369	  mv -f confcache "$cache_file" ;;
20370	esac
20371      fi
20372    fi
20373  else
20374    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20375printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20376  fi
20377fi
20378rm -f confcache
20379
20380test "x$prefix" = xNONE && prefix=$ac_default_prefix
20381# Let make expand exec_prefix.
20382test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20383
20384DEFS=-DHAVE_CONFIG_H
20385
20386ac_libobjs=
20387ac_ltlibobjs=
20388U=
20389for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20390  # 1. Remove the extension, and $U if already installed.
20391  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20392  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20393  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20394  #    will be set to the directory where LIBOBJS objects are built.
20395  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20396  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20397done
20398LIBOBJS=$ac_libobjs
20399
20400LTLIBOBJS=$ac_ltlibobjs
20401
20402
20403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20404printf %s "checking that generated files are newer than configure... " >&6; }
20405   if test -n "$am_sleep_pid"; then
20406     # Hide warnings about reused PIDs.
20407     wait $am_sleep_pid 2>/dev/null
20408   fi
20409   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20410printf "%s\n" "done" >&6; }
20411 if test -n "$EXEEXT"; then
20412  am__EXEEXT_TRUE=
20413  am__EXEEXT_FALSE='#'
20414else
20415  am__EXEEXT_TRUE='#'
20416  am__EXEEXT_FALSE=
20417fi
20418
20419if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20420  as_fn_error $? "conditional \"AMDEP\" was never defined.
20421Usually this means the macro was only invoked conditionally." "$LINENO" 5
20422fi
20423if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20424  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20425Usually this means the macro was only invoked conditionally." "$LINENO" 5
20426fi
20427if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
20428  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
20429Usually this means the macro was only invoked conditionally." "$LINENO" 5
20430fi
20431if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
20432  as_fn_error $? "conditional \"XAA\" was never defined.
20433Usually this means the macro was only invoked conditionally." "$LINENO" 5
20434fi
20435if test -z "${BUILD_UTILS_TRUE}" && test -z "${BUILD_UTILS_FALSE}"; then
20436  as_fn_error $? "conditional \"BUILD_UTILS\" was never defined.
20437Usually this means the macro was only invoked conditionally." "$LINENO" 5
20438fi
20439
20440: "${CONFIG_STATUS=./config.status}"
20441ac_write_fail=0
20442ac_clean_files_save=$ac_clean_files
20443ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20444{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20445printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20446as_write_fail=0
20447cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20448#! $SHELL
20449# Generated by $as_me.
20450# Run this file to recreate the current configuration.
20451# Compiler output produced by configure, useful for debugging
20452# configure, is in config.log if it exists.
20453
20454debug=false
20455ac_cs_recheck=false
20456ac_cs_silent=false
20457
20458SHELL=\${CONFIG_SHELL-$SHELL}
20459export SHELL
20460_ASEOF
20461cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20462## -------------------- ##
20463## M4sh Initialization. ##
20464## -------------------- ##
20465
20466# Be more Bourne compatible
20467DUALCASE=1; export DUALCASE # for MKS sh
20468if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20469then :
20470  emulate sh
20471  NULLCMD=:
20472  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20473  # is contrary to our usage.  Disable this feature.
20474  alias -g '${1+"$@"}'='"$@"'
20475  setopt NO_GLOB_SUBST
20476else case e in #(
20477  e) case `(set -o) 2>/dev/null` in #(
20478  *posix*) :
20479    set -o posix ;; #(
20480  *) :
20481     ;;
20482esac ;;
20483esac
20484fi
20485
20486
20487
20488# Reset variables that may have inherited troublesome values from
20489# the environment.
20490
20491# IFS needs to be set, to space, tab, and newline, in precisely that order.
20492# (If _AS_PATH_WALK were called with IFS unset, it would have the
20493# side effect of setting IFS to empty, thus disabling word splitting.)
20494# Quoting is to prevent editors from complaining about space-tab.
20495as_nl='
20496'
20497export as_nl
20498IFS=" ""	$as_nl"
20499
20500PS1='$ '
20501PS2='> '
20502PS4='+ '
20503
20504# Ensure predictable behavior from utilities with locale-dependent output.
20505LC_ALL=C
20506export LC_ALL
20507LANGUAGE=C
20508export LANGUAGE
20509
20510# We cannot yet rely on "unset" to work, but we need these variables
20511# to be unset--not just set to an empty or harmless value--now, to
20512# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20513# also avoids known problems related to "unset" and subshell syntax
20514# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20515for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20516do eval test \${$as_var+y} \
20517  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20518done
20519
20520# Ensure that fds 0, 1, and 2 are open.
20521if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20522if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20523if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20524
20525# The user is always right.
20526if ${PATH_SEPARATOR+false} :; then
20527  PATH_SEPARATOR=:
20528  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20529    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20530      PATH_SEPARATOR=';'
20531  }
20532fi
20533
20534
20535# Find who we are.  Look in the path if we contain no directory separator.
20536as_myself=
20537case $0 in #((
20538  *[\\/]* ) as_myself=$0 ;;
20539  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20540for as_dir in $PATH
20541do
20542  IFS=$as_save_IFS
20543  case $as_dir in #(((
20544    '') as_dir=./ ;;
20545    */) ;;
20546    *) as_dir=$as_dir/ ;;
20547  esac
20548    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20549  done
20550IFS=$as_save_IFS
20551
20552     ;;
20553esac
20554# We did not find ourselves, most probably we were run as 'sh COMMAND'
20555# in which case we are not to be found in the path.
20556if test "x$as_myself" = x; then
20557  as_myself=$0
20558fi
20559if test ! -f "$as_myself"; then
20560  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20561  exit 1
20562fi
20563
20564
20565
20566# as_fn_error STATUS ERROR [LINENO LOG_FD]
20567# ----------------------------------------
20568# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20569# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20570# script with STATUS, using 1 if that was 0.
20571as_fn_error ()
20572{
20573  as_status=$1; test $as_status -eq 0 && as_status=1
20574  if test "$4"; then
20575    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20576    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20577  fi
20578  printf "%s\n" "$as_me: error: $2" >&2
20579  as_fn_exit $as_status
20580} # as_fn_error
20581
20582
20583# as_fn_set_status STATUS
20584# -----------------------
20585# Set $? to STATUS, without forking.
20586as_fn_set_status ()
20587{
20588  return $1
20589} # as_fn_set_status
20590
20591# as_fn_exit STATUS
20592# -----------------
20593# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20594as_fn_exit ()
20595{
20596  set +e
20597  as_fn_set_status $1
20598  exit $1
20599} # as_fn_exit
20600
20601# as_fn_unset VAR
20602# ---------------
20603# Portably unset VAR.
20604as_fn_unset ()
20605{
20606  { eval $1=; unset $1;}
20607}
20608as_unset=as_fn_unset
20609
20610# as_fn_append VAR VALUE
20611# ----------------------
20612# Append the text in VALUE to the end of the definition contained in VAR. Take
20613# advantage of any shell optimizations that allow amortized linear growth over
20614# repeated appends, instead of the typical quadratic growth present in naive
20615# implementations.
20616if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20617then :
20618  eval 'as_fn_append ()
20619  {
20620    eval $1+=\$2
20621  }'
20622else case e in #(
20623  e) as_fn_append ()
20624  {
20625    eval $1=\$$1\$2
20626  } ;;
20627esac
20628fi # as_fn_append
20629
20630# as_fn_arith ARG...
20631# ------------------
20632# Perform arithmetic evaluation on the ARGs, and store the result in the
20633# global $as_val. Take advantage of shells that can avoid forks. The arguments
20634# must be portable across $(()) and expr.
20635if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20636then :
20637  eval 'as_fn_arith ()
20638  {
20639    as_val=$(( $* ))
20640  }'
20641else case e in #(
20642  e) as_fn_arith ()
20643  {
20644    as_val=`expr "$@" || test $? -eq 1`
20645  } ;;
20646esac
20647fi # as_fn_arith
20648
20649
20650if expr a : '\(a\)' >/dev/null 2>&1 &&
20651   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20652  as_expr=expr
20653else
20654  as_expr=false
20655fi
20656
20657if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20658  as_basename=basename
20659else
20660  as_basename=false
20661fi
20662
20663if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20664  as_dirname=dirname
20665else
20666  as_dirname=false
20667fi
20668
20669as_me=`$as_basename -- "$0" ||
20670$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20671	 X"$0" : 'X\(//\)$' \| \
20672	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20673printf "%s\n" X/"$0" |
20674    sed '/^.*\/\([^/][^/]*\)\/*$/{
20675	    s//\1/
20676	    q
20677	  }
20678	  /^X\/\(\/\/\)$/{
20679	    s//\1/
20680	    q
20681	  }
20682	  /^X\/\(\/\).*/{
20683	    s//\1/
20684	    q
20685	  }
20686	  s/.*/./; q'`
20687
20688# Avoid depending upon Character Ranges.
20689as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20690as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20691as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20692as_cr_digits='0123456789'
20693as_cr_alnum=$as_cr_Letters$as_cr_digits
20694
20695
20696# Determine whether it's possible to make 'echo' print without a newline.
20697# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20698# for compatibility with existing Makefiles.
20699ECHO_C= ECHO_N= ECHO_T=
20700case `echo -n x` in #(((((
20701-n*)
20702  case `echo 'xy\c'` in
20703  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20704  xy)  ECHO_C='\c';;
20705  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20706       ECHO_T='	';;
20707  esac;;
20708*)
20709  ECHO_N='-n';;
20710esac
20711
20712# For backward compatibility with old third-party macros, we provide
20713# the shell variables $as_echo and $as_echo_n.  New code should use
20714# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20715as_echo='printf %s\n'
20716as_echo_n='printf %s'
20717
20718rm -f conf$$ conf$$.exe conf$$.file
20719if test -d conf$$.dir; then
20720  rm -f conf$$.dir/conf$$.file
20721else
20722  rm -f conf$$.dir
20723  mkdir conf$$.dir 2>/dev/null
20724fi
20725if (echo >conf$$.file) 2>/dev/null; then
20726  if ln -s conf$$.file conf$$ 2>/dev/null; then
20727    as_ln_s='ln -s'
20728    # ... but there are two gotchas:
20729    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
20730    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
20731    # In both cases, we have to default to 'cp -pR'.
20732    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20733      as_ln_s='cp -pR'
20734  elif ln conf$$.file conf$$ 2>/dev/null; then
20735    as_ln_s=ln
20736  else
20737    as_ln_s='cp -pR'
20738  fi
20739else
20740  as_ln_s='cp -pR'
20741fi
20742rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20743rmdir conf$$.dir 2>/dev/null
20744
20745
20746# as_fn_mkdir_p
20747# -------------
20748# Create "$as_dir" as a directory, including parents if necessary.
20749as_fn_mkdir_p ()
20750{
20751
20752  case $as_dir in #(
20753  -*) as_dir=./$as_dir;;
20754  esac
20755  test -d "$as_dir" || eval $as_mkdir_p || {
20756    as_dirs=
20757    while :; do
20758      case $as_dir in #(
20759      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20760      *) as_qdir=$as_dir;;
20761      esac
20762      as_dirs="'$as_qdir' $as_dirs"
20763      as_dir=`$as_dirname -- "$as_dir" ||
20764$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20765	 X"$as_dir" : 'X\(//\)[^/]' \| \
20766	 X"$as_dir" : 'X\(//\)$' \| \
20767	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20768printf "%s\n" X"$as_dir" |
20769    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20770	    s//\1/
20771	    q
20772	  }
20773	  /^X\(\/\/\)[^/].*/{
20774	    s//\1/
20775	    q
20776	  }
20777	  /^X\(\/\/\)$/{
20778	    s//\1/
20779	    q
20780	  }
20781	  /^X\(\/\).*/{
20782	    s//\1/
20783	    q
20784	  }
20785	  s/.*/./; q'`
20786      test -d "$as_dir" && break
20787    done
20788    test -z "$as_dirs" || eval "mkdir $as_dirs"
20789  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20790
20791
20792} # as_fn_mkdir_p
20793if mkdir -p . 2>/dev/null; then
20794  as_mkdir_p='mkdir -p "$as_dir"'
20795else
20796  test -d ./-p && rmdir ./-p
20797  as_mkdir_p=false
20798fi
20799
20800
20801# as_fn_executable_p FILE
20802# -----------------------
20803# Test if FILE is an executable regular file.
20804as_fn_executable_p ()
20805{
20806  test -f "$1" && test -x "$1"
20807} # as_fn_executable_p
20808as_test_x='test -x'
20809as_executable_p=as_fn_executable_p
20810
20811# Sed expression to map a string onto a valid CPP name.
20812as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
20813as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
20814
20815# Sed expression to map a string onto a valid variable name.
20816as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20817as_tr_sh="eval sed '$as_sed_sh'" # deprecated
20818
20819
20820exec 6>&1
20821## ----------------------------------- ##
20822## Main body of $CONFIG_STATUS script. ##
20823## ----------------------------------- ##
20824_ASEOF
20825test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20826
20827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20828# Save the log message, to keep $0 and so on meaningful, and to
20829# report actual input values of CONFIG_FILES etc. instead of their
20830# values after options handling.
20831ac_log="
20832This file was extended by xf86-video-chips $as_me 1.5.0, which was
20833generated by GNU Autoconf 2.72.  Invocation command line was
20834
20835  CONFIG_FILES    = $CONFIG_FILES
20836  CONFIG_HEADERS  = $CONFIG_HEADERS
20837  CONFIG_LINKS    = $CONFIG_LINKS
20838  CONFIG_COMMANDS = $CONFIG_COMMANDS
20839  $ $0 $@
20840
20841on `(hostname || uname -n) 2>/dev/null | sed 1q`
20842"
20843
20844_ACEOF
20845
20846case $ac_config_files in *"
20847"*) set x $ac_config_files; shift; ac_config_files=$*;;
20848esac
20849
20850case $ac_config_headers in *"
20851"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20852esac
20853
20854
20855cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20856# Files that config.status was made for.
20857config_files="$ac_config_files"
20858config_headers="$ac_config_headers"
20859config_commands="$ac_config_commands"
20860
20861_ACEOF
20862
20863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20864ac_cs_usage="\
20865'$as_me' instantiates files and other configuration actions
20866from templates according to the current configuration.  Unless the files
20867and actions are specified as TAGs, all are instantiated by default.
20868
20869Usage: $0 [OPTION]... [TAG]...
20870
20871  -h, --help       print this help, then exit
20872  -V, --version    print version number and configuration settings, then exit
20873      --config     print configuration, then exit
20874  -q, --quiet, --silent
20875                   do not print progress messages
20876  -d, --debug      don't remove temporary files
20877      --recheck    update $as_me by reconfiguring in the same conditions
20878      --file=FILE[:TEMPLATE]
20879                   instantiate the configuration file FILE
20880      --header=FILE[:TEMPLATE]
20881                   instantiate the configuration header FILE
20882
20883Configuration files:
20884$config_files
20885
20886Configuration headers:
20887$config_headers
20888
20889Configuration commands:
20890$config_commands
20891
20892Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-chips/-/issues>."
20893
20894_ACEOF
20895ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20896ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20897cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20898ac_cs_config='$ac_cs_config_escaped'
20899ac_cs_version="\\
20900xf86-video-chips config.status 1.5.0
20901configured by $0, generated by GNU Autoconf 2.72,
20902  with options \\"\$ac_cs_config\\"
20903
20904Copyright (C) 2023 Free Software Foundation, Inc.
20905This config.status script is free software; the Free Software Foundation
20906gives unlimited permission to copy, distribute and modify it."
20907
20908ac_pwd='$ac_pwd'
20909srcdir='$srcdir'
20910INSTALL='$INSTALL'
20911MKDIR_P='$MKDIR_P'
20912AWK='$AWK'
20913test -n "\$AWK" || AWK=awk
20914_ACEOF
20915
20916cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20917# The default lists apply if the user does not specify any file.
20918ac_need_defaults=:
20919while test $# != 0
20920do
20921  case $1 in
20922  --*=?*)
20923    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20924    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20925    ac_shift=:
20926    ;;
20927  --*=)
20928    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20929    ac_optarg=
20930    ac_shift=:
20931    ;;
20932  *)
20933    ac_option=$1
20934    ac_optarg=$2
20935    ac_shift=shift
20936    ;;
20937  esac
20938
20939  case $ac_option in
20940  # Handling of the options.
20941  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20942    ac_cs_recheck=: ;;
20943  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20944    printf "%s\n" "$ac_cs_version"; exit ;;
20945  --config | --confi | --conf | --con | --co | --c )
20946    printf "%s\n" "$ac_cs_config"; exit ;;
20947  --debug | --debu | --deb | --de | --d | -d )
20948    debug=: ;;
20949  --file | --fil | --fi | --f )
20950    $ac_shift
20951    case $ac_optarg in
20952    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20953    '') as_fn_error $? "missing file argument" ;;
20954    esac
20955    as_fn_append CONFIG_FILES " '$ac_optarg'"
20956    ac_need_defaults=false;;
20957  --header | --heade | --head | --hea )
20958    $ac_shift
20959    case $ac_optarg in
20960    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20961    esac
20962    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20963    ac_need_defaults=false;;
20964  --he | --h)
20965    # Conflict between --help and --header
20966    as_fn_error $? "ambiguous option: '$1'
20967Try '$0 --help' for more information.";;
20968  --help | --hel | -h )
20969    printf "%s\n" "$ac_cs_usage"; exit ;;
20970  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20971  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20972    ac_cs_silent=: ;;
20973
20974  # This is an error.
20975  -*) as_fn_error $? "unrecognized option: '$1'
20976Try '$0 --help' for more information." ;;
20977
20978  *) as_fn_append ac_config_targets " $1"
20979     ac_need_defaults=false ;;
20980
20981  esac
20982  shift
20983done
20984
20985ac_configure_extra_args=
20986
20987if $ac_cs_silent; then
20988  exec 6>/dev/null
20989  ac_configure_extra_args="$ac_configure_extra_args --silent"
20990fi
20991
20992_ACEOF
20993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20994if \$ac_cs_recheck; then
20995  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20996  shift
20997  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20998  CONFIG_SHELL='$SHELL'
20999  export CONFIG_SHELL
21000  exec "\$@"
21001fi
21002
21003_ACEOF
21004cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21005exec 5>>config.log
21006{
21007  echo
21008  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21009## Running $as_me. ##
21010_ASBOX
21011  printf "%s\n" "$ac_log"
21012} >&5
21013
21014_ACEOF
21015cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21016#
21017# INIT-COMMANDS
21018#
21019AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21020
21021
21022# The HP-UX ksh and POSIX shell print the target directory to stdout
21023# if CDPATH is set.
21024(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21025
21026sed_quote_subst='$sed_quote_subst'
21027double_quote_subst='$double_quote_subst'
21028delay_variable_subst='$delay_variable_subst'
21029macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21030macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21031enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21032enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21033pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21034enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21035shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21036SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21037ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21038PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21039host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21040host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21041host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21042build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21043build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21044build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21045SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21046Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21047GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21048EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21049FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21050LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21051NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21052LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21053max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21054ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21055exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21056lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21057lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21058lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21059lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21060lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21061reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21062reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21063FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21064OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21065deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21066file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21067file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21068want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21069DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21070sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21071AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21072lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21073AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21074archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21075STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21076RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21077old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21078old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21079old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21080lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21081CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21082CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21083compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21084GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21085lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21086lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21087lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21088lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21089lt_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"`'
21090lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21091nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21092lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21093lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21094objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21095MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21096lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21097lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21098lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21099lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21100lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21101need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21102MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21103DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21104NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21105LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21106OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21107OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21108libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21109shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21110extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21111archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21112enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21113export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21114whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21115compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21116old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21117old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21118archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21119archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21120module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21121module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21122with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21123allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21124no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21125hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21126hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21127hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21128hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21129hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21130hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21131hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21132inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21133link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21134always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21135export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21136exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21137include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21138prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21139postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21140file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21141variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21142need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21143need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21144version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21145runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21146shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21147shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21148libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21149library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21150soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21151install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21152postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21153postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21154finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21155finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21156hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21157sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21158configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21159configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21160hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21161enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21162enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21163enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21164old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21165striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21166
21167LTCC='$LTCC'
21168LTCFLAGS='$LTCFLAGS'
21169compiler='$compiler_DEFAULT'
21170
21171# A function that is used when there is no print builtin or printf.
21172func_fallback_echo ()
21173{
21174  eval 'cat <<_LTECHO_EOF
21175\$1
21176_LTECHO_EOF'
21177}
21178
21179# Quote evaled strings.
21180for var in SHELL \
21181ECHO \
21182PATH_SEPARATOR \
21183SED \
21184GREP \
21185EGREP \
21186FGREP \
21187LD \
21188NM \
21189LN_S \
21190lt_SP2NL \
21191lt_NL2SP \
21192reload_flag \
21193FILECMD \
21194OBJDUMP \
21195deplibs_check_method \
21196file_magic_cmd \
21197file_magic_glob \
21198want_nocaseglob \
21199DLLTOOL \
21200sharedlib_from_linklib_cmd \
21201AR \
21202archiver_list_spec \
21203STRIP \
21204RANLIB \
21205CC \
21206CFLAGS \
21207compiler \
21208lt_cv_sys_global_symbol_pipe \
21209lt_cv_sys_global_symbol_to_cdecl \
21210lt_cv_sys_global_symbol_to_import \
21211lt_cv_sys_global_symbol_to_c_name_address \
21212lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21213lt_cv_nm_interface \
21214nm_file_list_spec \
21215lt_cv_truncate_bin \
21216lt_prog_compiler_no_builtin_flag \
21217lt_prog_compiler_pic \
21218lt_prog_compiler_wl \
21219lt_prog_compiler_static \
21220lt_cv_prog_compiler_c_o \
21221need_locks \
21222MANIFEST_TOOL \
21223DSYMUTIL \
21224NMEDIT \
21225LIPO \
21226OTOOL \
21227OTOOL64 \
21228shrext_cmds \
21229export_dynamic_flag_spec \
21230whole_archive_flag_spec \
21231compiler_needs_object \
21232with_gnu_ld \
21233allow_undefined_flag \
21234no_undefined_flag \
21235hardcode_libdir_flag_spec \
21236hardcode_libdir_separator \
21237exclude_expsyms \
21238include_expsyms \
21239file_list_spec \
21240variables_saved_for_relink \
21241libname_spec \
21242library_names_spec \
21243soname_spec \
21244install_override_mode \
21245finish_eval \
21246old_striplib \
21247striplib; do
21248    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21249    *[\\\\\\\`\\"\\\$]*)
21250      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21251      ;;
21252    *)
21253      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21254      ;;
21255    esac
21256done
21257
21258# Double-quote double-evaled strings.
21259for var in reload_cmds \
21260old_postinstall_cmds \
21261old_postuninstall_cmds \
21262old_archive_cmds \
21263extract_expsyms_cmds \
21264old_archive_from_new_cmds \
21265old_archive_from_expsyms_cmds \
21266archive_cmds \
21267archive_expsym_cmds \
21268module_cmds \
21269module_expsym_cmds \
21270export_symbols_cmds \
21271prelink_cmds \
21272postlink_cmds \
21273postinstall_cmds \
21274postuninstall_cmds \
21275finish_cmds \
21276sys_lib_search_path_spec \
21277configure_time_dlsearch_path \
21278configure_time_lt_sys_library_path; do
21279    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21280    *[\\\\\\\`\\"\\\$]*)
21281      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21282      ;;
21283    *)
21284      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21285      ;;
21286    esac
21287done
21288
21289ac_aux_dir='$ac_aux_dir'
21290
21291# See if we are running on zsh, and set the options that allow our
21292# commands through without removal of \ escapes INIT.
21293if test -n "\${ZSH_VERSION+set}"; then
21294   setopt NO_GLOB_SUBST
21295fi
21296
21297
21298    PACKAGE='$PACKAGE'
21299    VERSION='$VERSION'
21300    RM='$RM'
21301    ofile='$ofile'
21302
21303
21304
21305
21306_ACEOF
21307
21308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21309
21310# Handling of arguments.
21311for ac_config_target in $ac_config_targets
21312do
21313  case $ac_config_target in
21314    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21315    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21316    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21317    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21318    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21319    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21320    "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
21321
21322  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21323  esac
21324done
21325
21326
21327# If the user did not use the arguments to specify the items to instantiate,
21328# then the envvar interface is used.  Set only those that are not.
21329# We use the long form for the default assignment because of an extremely
21330# bizarre bug on SunOS 4.1.3.
21331if $ac_need_defaults; then
21332  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21333  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21334  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21335fi
21336
21337# Have a temporary directory for convenience.  Make it in the build tree
21338# simply because there is no reason against having it here, and in addition,
21339# creating and moving files from /tmp can sometimes cause problems.
21340# Hook for its removal unless debugging.
21341# Note that there is a small window in which the directory will not be cleaned:
21342# after its creation but before its name has been assigned to '$tmp'.
21343$debug ||
21344{
21345  tmp= ac_tmp=
21346  trap 'exit_status=$?
21347  : "${ac_tmp:=$tmp}"
21348  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21349' 0
21350  trap 'as_fn_exit 1' 1 2 13 15
21351}
21352# Create a (secure) tmp directory for tmp files.
21353
21354{
21355  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21356  test -d "$tmp"
21357}  ||
21358{
21359  tmp=./conf$$-$RANDOM
21360  (umask 077 && mkdir "$tmp")
21361} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21362ac_tmp=$tmp
21363
21364# Set up the scripts for CONFIG_FILES section.
21365# No need to generate them if there are no CONFIG_FILES.
21366# This happens for instance with './config.status config.h'.
21367if test -n "$CONFIG_FILES"; then
21368
21369
21370ac_cr=`echo X | tr X '\015'`
21371# On cygwin, bash can eat \r inside `` if the user requested igncr.
21372# But we know of no other shell where ac_cr would be empty at this
21373# point, so we can use a bashism as a fallback.
21374if test "x$ac_cr" = x; then
21375  eval ac_cr=\$\'\\r\'
21376fi
21377ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21378if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21379  ac_cs_awk_cr='\\r'
21380else
21381  ac_cs_awk_cr=$ac_cr
21382fi
21383
21384echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21385_ACEOF
21386
21387
21388{
21389  echo "cat >conf$$subs.awk <<_ACEOF" &&
21390  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21391  echo "_ACEOF"
21392} >conf$$subs.sh ||
21393  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21394ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21395ac_delim='%!_!# '
21396for ac_last_try in false false false false false :; do
21397  . ./conf$$subs.sh ||
21398    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21399
21400  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21401  if test $ac_delim_n = $ac_delim_num; then
21402    break
21403  elif $ac_last_try; then
21404    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21405  else
21406    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21407  fi
21408done
21409rm -f conf$$subs.sh
21410
21411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21412cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21413_ACEOF
21414sed -n '
21415h
21416s/^/S["/; s/!.*/"]=/
21417p
21418g
21419s/^[^!]*!//
21420:repl
21421t repl
21422s/'"$ac_delim"'$//
21423t delim
21424:nl
21425h
21426s/\(.\{148\}\)..*/\1/
21427t more1
21428s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21429p
21430n
21431b repl
21432:more1
21433s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21434p
21435g
21436s/.\{148\}//
21437t nl
21438:delim
21439h
21440s/\(.\{148\}\)..*/\1/
21441t more2
21442s/["\\]/\\&/g; s/^/"/; s/$/"/
21443p
21444b
21445:more2
21446s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21447p
21448g
21449s/.\{148\}//
21450t delim
21451' <conf$$subs.awk | sed '
21452/^[^""]/{
21453  N
21454  s/\n//
21455}
21456' >>$CONFIG_STATUS || ac_write_fail=1
21457rm -f conf$$subs.awk
21458cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21459_ACAWK
21460cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21461  for (key in S) S_is_set[key] = 1
21462  FS = ""
21463
21464}
21465{
21466  line = $ 0
21467  nfields = split(line, field, "@")
21468  substed = 0
21469  len = length(field[1])
21470  for (i = 2; i < nfields; i++) {
21471    key = field[i]
21472    keylen = length(key)
21473    if (S_is_set[key]) {
21474      value = S[key]
21475      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21476      len += length(value) + length(field[++i])
21477      substed = 1
21478    } else
21479      len += 1 + keylen
21480  }
21481
21482  print line
21483}
21484
21485_ACAWK
21486_ACEOF
21487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21488if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21489  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21490else
21491  cat
21492fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21493  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21494_ACEOF
21495
21496# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21497# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21498# trailing colons and then remove the whole line if VPATH becomes empty
21499# (actually we leave an empty line to preserve line numbers).
21500if test "x$srcdir" = x.; then
21501  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21502h
21503s///
21504s/^/:/
21505s/[	 ]*$/:/
21506s/:\$(srcdir):/:/g
21507s/:\${srcdir}:/:/g
21508s/:@srcdir@:/:/g
21509s/^:*//
21510s/:*$//
21511x
21512s/\(=[	 ]*\).*/\1/
21513G
21514s/\n//
21515s/^[^=]*=[	 ]*$//
21516}'
21517fi
21518
21519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21520fi # test -n "$CONFIG_FILES"
21521
21522# Set up the scripts for CONFIG_HEADERS section.
21523# No need to generate them if there are no CONFIG_HEADERS.
21524# This happens for instance with './config.status Makefile'.
21525if test -n "$CONFIG_HEADERS"; then
21526cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21527BEGIN {
21528_ACEOF
21529
21530# Transform confdefs.h into an awk script 'defines.awk', embedded as
21531# here-document in config.status, that substitutes the proper values into
21532# config.h.in to produce config.h.
21533
21534# Create a delimiter string that does not exist in confdefs.h, to ease
21535# handling of long lines.
21536ac_delim='%!_!# '
21537for ac_last_try in false false :; do
21538  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21539  if test -z "$ac_tt"; then
21540    break
21541  elif $ac_last_try; then
21542    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21543  else
21544    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21545  fi
21546done
21547
21548# For the awk script, D is an array of macro values keyed by name,
21549# likewise P contains macro parameters if any.  Preserve backslash
21550# newline sequences.
21551
21552ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21553sed -n '
21554s/.\{148\}/&'"$ac_delim"'/g
21555t rset
21556:rset
21557s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21558t def
21559d
21560:def
21561s/\\$//
21562t bsnl
21563s/["\\]/\\&/g
21564s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21565D["\1"]=" \3"/p
21566s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21567d
21568:bsnl
21569s/["\\]/\\&/g
21570s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21571D["\1"]=" \3\\\\\\n"\\/p
21572t cont
21573s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21574t cont
21575d
21576:cont
21577n
21578s/.\{148\}/&'"$ac_delim"'/g
21579t clear
21580:clear
21581s/\\$//
21582t bsnlc
21583s/["\\]/\\&/g; s/^/"/; s/$/"/p
21584d
21585:bsnlc
21586s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21587b cont
21588' <confdefs.h | sed '
21589s/'"$ac_delim"'/"\\\
21590"/g' >>$CONFIG_STATUS || ac_write_fail=1
21591
21592cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21593  for (key in D) D_is_set[key] = 1
21594  FS = ""
21595}
21596/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21597  line = \$ 0
21598  split(line, arg, " ")
21599  if (arg[1] == "#") {
21600    defundef = arg[2]
21601    mac1 = arg[3]
21602  } else {
21603    defundef = substr(arg[1], 2)
21604    mac1 = arg[2]
21605  }
21606  split(mac1, mac2, "(") #)
21607  macro = mac2[1]
21608  prefix = substr(line, 1, index(line, defundef) - 1)
21609  if (D_is_set[macro]) {
21610    # Preserve the white space surrounding the "#".
21611    print prefix "define", macro P[macro] D[macro]
21612    next
21613  } else {
21614    # Replace #undef with comments.  This is necessary, for example,
21615    # in the case of _POSIX_SOURCE, which is predefined and required
21616    # on some systems where configure will not decide to define it.
21617    if (defundef == "undef") {
21618      print "/*", prefix defundef, macro, "*/"
21619      next
21620    }
21621  }
21622}
21623{ print }
21624_ACAWK
21625_ACEOF
21626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21627  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21628fi # test -n "$CONFIG_HEADERS"
21629
21630
21631eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21632shift
21633for ac_tag
21634do
21635  case $ac_tag in
21636  :[FHLC]) ac_mode=$ac_tag; continue;;
21637  esac
21638  case $ac_mode$ac_tag in
21639  :[FHL]*:*);;
21640  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
21641  :[FH]-) ac_tag=-:-;;
21642  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21643  esac
21644  ac_save_IFS=$IFS
21645  IFS=:
21646  set x $ac_tag
21647  IFS=$ac_save_IFS
21648  shift
21649  ac_file=$1
21650  shift
21651
21652  case $ac_mode in
21653  :L) ac_source=$1;;
21654  :[FH])
21655    ac_file_inputs=
21656    for ac_f
21657    do
21658      case $ac_f in
21659      -) ac_f="$ac_tmp/stdin";;
21660      *) # Look for the file first in the build tree, then in the source tree
21661	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21662	 # because $ac_f cannot contain ':'.
21663	 test -f "$ac_f" ||
21664	   case $ac_f in
21665	   [\\/$]*) false;;
21666	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21667	   esac ||
21668	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
21669      esac
21670      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21671      as_fn_append ac_file_inputs " '$ac_f'"
21672    done
21673
21674    # Let's still pretend it is 'configure' which instantiates (i.e., don't
21675    # use $as_me), people would be surprised to read:
21676    #    /* config.h.  Generated by config.status.  */
21677    configure_input='Generated from '`
21678	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21679	`' by configure.'
21680    if test x"$ac_file" != x-; then
21681      configure_input="$ac_file.  $configure_input"
21682      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21683printf "%s\n" "$as_me: creating $ac_file" >&6;}
21684    fi
21685    # Neutralize special characters interpreted by sed in replacement strings.
21686    case $configure_input in #(
21687    *\&* | *\|* | *\\* )
21688       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21689       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21690    *) ac_sed_conf_input=$configure_input;;
21691    esac
21692
21693    case $ac_tag in
21694    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21695      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21696    esac
21697    ;;
21698  esac
21699
21700  ac_dir=`$as_dirname -- "$ac_file" ||
21701$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21702	 X"$ac_file" : 'X\(//\)[^/]' \| \
21703	 X"$ac_file" : 'X\(//\)$' \| \
21704	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21705printf "%s\n" X"$ac_file" |
21706    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21707	    s//\1/
21708	    q
21709	  }
21710	  /^X\(\/\/\)[^/].*/{
21711	    s//\1/
21712	    q
21713	  }
21714	  /^X\(\/\/\)$/{
21715	    s//\1/
21716	    q
21717	  }
21718	  /^X\(\/\).*/{
21719	    s//\1/
21720	    q
21721	  }
21722	  s/.*/./; q'`
21723  as_dir="$ac_dir"; as_fn_mkdir_p
21724  ac_builddir=.
21725
21726case "$ac_dir" in
21727.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21728*)
21729  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21730  # A ".." for each directory in $ac_dir_suffix.
21731  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21732  case $ac_top_builddir_sub in
21733  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21734  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21735  esac ;;
21736esac
21737ac_abs_top_builddir=$ac_pwd
21738ac_abs_builddir=$ac_pwd$ac_dir_suffix
21739# for backward compatibility:
21740ac_top_builddir=$ac_top_build_prefix
21741
21742case $srcdir in
21743  .)  # We are building in place.
21744    ac_srcdir=.
21745    ac_top_srcdir=$ac_top_builddir_sub
21746    ac_abs_top_srcdir=$ac_pwd ;;
21747  [\\/]* | ?:[\\/]* )  # Absolute name.
21748    ac_srcdir=$srcdir$ac_dir_suffix;
21749    ac_top_srcdir=$srcdir
21750    ac_abs_top_srcdir=$srcdir ;;
21751  *) # Relative name.
21752    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21753    ac_top_srcdir=$ac_top_build_prefix$srcdir
21754    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21755esac
21756ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21757
21758
21759  case $ac_mode in
21760  :F)
21761  #
21762  # CONFIG_FILE
21763  #
21764
21765  case $INSTALL in
21766  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21767  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21768  esac
21769  ac_MKDIR_P=$MKDIR_P
21770  case $MKDIR_P in
21771  [\\/$]* | ?:[\\/]* ) ;;
21772  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21773  esac
21774_ACEOF
21775
21776cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21777# If the template does not know about datarootdir, expand it.
21778# FIXME: This hack should be removed a few years after 2.60.
21779ac_datarootdir_hack=; ac_datarootdir_seen=
21780ac_sed_dataroot='
21781/datarootdir/ {
21782  p
21783  q
21784}
21785/@datadir@/p
21786/@docdir@/p
21787/@infodir@/p
21788/@localedir@/p
21789/@mandir@/p'
21790case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21791*datarootdir*) ac_datarootdir_seen=yes;;
21792*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21793  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21794printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21795_ACEOF
21796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21797  ac_datarootdir_hack='
21798  s&@datadir@&$datadir&g
21799  s&@docdir@&$docdir&g
21800  s&@infodir@&$infodir&g
21801  s&@localedir@&$localedir&g
21802  s&@mandir@&$mandir&g
21803  s&\\\${datarootdir}&$datarootdir&g' ;;
21804esac
21805_ACEOF
21806
21807# Neutralize VPATH when '$srcdir' = '.'.
21808# Shell code in configure.ac might set extrasub.
21809# FIXME: do we really want to maintain this feature?
21810cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21811ac_sed_extra="$ac_vpsub
21812$extrasub
21813_ACEOF
21814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21815:t
21816/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21817s|@configure_input@|$ac_sed_conf_input|;t t
21818s&@top_builddir@&$ac_top_builddir_sub&;t t
21819s&@top_build_prefix@&$ac_top_build_prefix&;t t
21820s&@srcdir@&$ac_srcdir&;t t
21821s&@abs_srcdir@&$ac_abs_srcdir&;t t
21822s&@top_srcdir@&$ac_top_srcdir&;t t
21823s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21824s&@builddir@&$ac_builddir&;t t
21825s&@abs_builddir@&$ac_abs_builddir&;t t
21826s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21827s&@INSTALL@&$ac_INSTALL&;t t
21828s&@MKDIR_P@&$ac_MKDIR_P&;t t
21829$ac_datarootdir_hack
21830"
21831eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21832  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21833
21834test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21835  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21836  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21837      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21838  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21839which seems to be undefined.  Please make sure it is defined" >&5
21840printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21841which seems to be undefined.  Please make sure it is defined" >&2;}
21842
21843  rm -f "$ac_tmp/stdin"
21844  case $ac_file in
21845  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21846  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21847  esac \
21848  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21849 ;;
21850  :H)
21851  #
21852  # CONFIG_HEADER
21853  #
21854  if test x"$ac_file" != x-; then
21855    {
21856      printf "%s\n" "/* $configure_input  */" >&1 \
21857      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21858    } >"$ac_tmp/config.h" \
21859      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21860    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21861      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21862printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21863    else
21864      rm -f "$ac_file"
21865      mv "$ac_tmp/config.h" "$ac_file" \
21866	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21867    fi
21868  else
21869    printf "%s\n" "/* $configure_input  */" >&1 \
21870      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21871      || as_fn_error $? "could not create -" "$LINENO" 5
21872  fi
21873# Compute "$ac_file"'s index in $config_headers.
21874_am_arg="$ac_file"
21875_am_stamp_count=1
21876for _am_header in $config_headers :; do
21877  case $_am_header in
21878    $_am_arg | $_am_arg:* )
21879      break ;;
21880    * )
21881      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21882  esac
21883done
21884echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21885$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21886	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21887	 X"$_am_arg" : 'X\(//\)$' \| \
21888	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21889printf "%s\n" X"$_am_arg" |
21890    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21891	    s//\1/
21892	    q
21893	  }
21894	  /^X\(\/\/\)[^/].*/{
21895	    s//\1/
21896	    q
21897	  }
21898	  /^X\(\/\/\)$/{
21899	    s//\1/
21900	    q
21901	  }
21902	  /^X\(\/\).*/{
21903	    s//\1/
21904	    q
21905	  }
21906	  s/.*/./; q'`/stamp-h$_am_stamp_count
21907 ;;
21908
21909  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21910printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21911 ;;
21912  esac
21913
21914
21915  case $ac_file$ac_mode in
21916    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21917  # Older Autoconf quotes --file arguments for eval, but not when files
21918  # are listed without --file.  Let's play safe and only enable the eval
21919  # if we detect the quoting.
21920  # TODO: see whether this extra hack can be removed once we start
21921  # requiring Autoconf 2.70 or later.
21922  case $CONFIG_FILES in #(
21923  *\'*) :
21924    eval set x "$CONFIG_FILES" ;; #(
21925  *) :
21926    set x $CONFIG_FILES ;; #(
21927  *) :
21928     ;;
21929esac
21930  shift
21931  # Used to flag and report bootstrapping failures.
21932  am_rc=0
21933  for am_mf
21934  do
21935    # Strip MF so we end up with the name of the file.
21936    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21937    # Check whether this is an Automake generated Makefile which includes
21938    # dependency-tracking related rules and includes.
21939    # Grep'ing the whole file directly is not great: AIX grep has a line
21940    # limit of 2048, but all sed's we know have understand at least 4000.
21941    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21942      || continue
21943    am_dirpart=`$as_dirname -- "$am_mf" ||
21944$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21945	 X"$am_mf" : 'X\(//\)[^/]' \| \
21946	 X"$am_mf" : 'X\(//\)$' \| \
21947	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21948printf "%s\n" X"$am_mf" |
21949    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21950	    s//\1/
21951	    q
21952	  }
21953	  /^X\(\/\/\)[^/].*/{
21954	    s//\1/
21955	    q
21956	  }
21957	  /^X\(\/\/\)$/{
21958	    s//\1/
21959	    q
21960	  }
21961	  /^X\(\/\).*/{
21962	    s//\1/
21963	    q
21964	  }
21965	  s/.*/./; q'`
21966    am_filepart=`$as_basename -- "$am_mf" ||
21967$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21968	 X"$am_mf" : 'X\(//\)$' \| \
21969	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21970printf "%s\n" X/"$am_mf" |
21971    sed '/^.*\/\([^/][^/]*\)\/*$/{
21972	    s//\1/
21973	    q
21974	  }
21975	  /^X\/\(\/\/\)$/{
21976	    s//\1/
21977	    q
21978	  }
21979	  /^X\/\(\/\).*/{
21980	    s//\1/
21981	    q
21982	  }
21983	  s/.*/./; q'`
21984    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21985      && sed -e '/# am--include-marker/d' "$am_filepart" \
21986        | $MAKE -f - am--depfiles" >&5
21987   (cd "$am_dirpart" \
21988      && sed -e '/# am--include-marker/d' "$am_filepart" \
21989        | $MAKE -f - am--depfiles) >&5 2>&5
21990   ac_status=$?
21991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992   (exit $ac_status); } || am_rc=$?
21993  done
21994  if test $am_rc -ne 0; then
21995    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21996printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21997as_fn_error $? "Something went wrong bootstrapping makefile fragments
21998    for automatic dependency tracking.  If GNU make was not used, consider
21999    re-running the configure script with MAKE=\"gmake\" (or whatever is
22000    necessary).  You can also try re-running configure with the
22001    '--disable-dependency-tracking' option to at least be able to build
22002    the package (albeit without support for automatic dependency tracking).
22003See 'config.log' for more details" "$LINENO" 5; }
22004  fi
22005  { am_dirpart=; unset am_dirpart;}
22006  { am_filepart=; unset am_filepart;}
22007  { am_mf=; unset am_mf;}
22008  { am_rc=; unset am_rc;}
22009  rm -f conftest-deps.mk
22010}
22011 ;;
22012    "libtool":C)
22013
22014    # See if we are running on zsh, and set the options that allow our
22015    # commands through without removal of \ escapes.
22016    if test -n "${ZSH_VERSION+set}"; then
22017      setopt NO_GLOB_SUBST
22018    fi
22019
22020    cfgfile=${ofile}T
22021    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22022    $RM "$cfgfile"
22023
22024    cat <<_LT_EOF >> "$cfgfile"
22025#! $SHELL
22026# Generated automatically by $as_me ($PACKAGE) $VERSION
22027# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22028# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22029
22030# Provide generalized library-building support services.
22031# Written by Gordon Matzigkeit, 1996
22032
22033# Copyright (C) 2014 Free Software Foundation, Inc.
22034# This is free software; see the source for copying conditions.  There is NO
22035# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22036
22037# GNU Libtool is free software; you can redistribute it and/or modify
22038# it under the terms of the GNU General Public License as published by
22039# the Free Software Foundation; either version 2 of of the License, or
22040# (at your option) any later version.
22041#
22042# As a special exception to the GNU General Public License, if you
22043# distribute this file as part of a program or library that is built
22044# using GNU Libtool, you may include this file under the  same
22045# distribution terms that you use for the rest of that program.
22046#
22047# GNU Libtool is distributed in the hope that it will be useful, but
22048# WITHOUT ANY WARRANTY; without even the implied warranty of
22049# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22050# GNU General Public License for more details.
22051#
22052# You should have received a copy of the GNU General Public License
22053# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22054
22055
22056# The names of the tagged configurations supported by this script.
22057available_tags=''
22058
22059# Configured defaults for sys_lib_dlsearch_path munging.
22060: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22061
22062# ### BEGIN LIBTOOL CONFIG
22063
22064# Which release of libtool.m4 was used?
22065macro_version=$macro_version
22066macro_revision=$macro_revision
22067
22068# Whether or not to build static libraries.
22069build_old_libs=$enable_static
22070
22071# Whether or not to build shared libraries.
22072build_libtool_libs=$enable_shared
22073
22074# What type of objects to build.
22075pic_mode=$pic_mode
22076
22077# Whether or not to optimize for fast installation.
22078fast_install=$enable_fast_install
22079
22080# Shared archive member basename,for filename based shared library versioning on AIX.
22081shared_archive_member_spec=$shared_archive_member_spec
22082
22083# Shell to use when invoking shell scripts.
22084SHELL=$lt_SHELL
22085
22086# An echo program that protects backslashes.
22087ECHO=$lt_ECHO
22088
22089# The PATH separator for the build system.
22090PATH_SEPARATOR=$lt_PATH_SEPARATOR
22091
22092# The host system.
22093host_alias=$host_alias
22094host=$host
22095host_os=$host_os
22096
22097# The build system.
22098build_alias=$build_alias
22099build=$build
22100build_os=$build_os
22101
22102# A sed program that does not truncate output.
22103SED=$lt_SED
22104
22105# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22106Xsed="\$SED -e 1s/^X//"
22107
22108# A grep program that handles long lines.
22109GREP=$lt_GREP
22110
22111# An ERE matcher.
22112EGREP=$lt_EGREP
22113
22114# A literal string matcher.
22115FGREP=$lt_FGREP
22116
22117# A BSD- or MS-compatible name lister.
22118NM=$lt_NM
22119
22120# Whether we need soft or hard links.
22121LN_S=$lt_LN_S
22122
22123# What is the maximum length of a command?
22124max_cmd_len=$max_cmd_len
22125
22126# Object file suffix (normally "o").
22127objext=$ac_objext
22128
22129# Executable file suffix (normally "").
22130exeext=$exeext
22131
22132# whether the shell understands "unset".
22133lt_unset=$lt_unset
22134
22135# turn spaces into newlines.
22136SP2NL=$lt_lt_SP2NL
22137
22138# turn newlines into spaces.
22139NL2SP=$lt_lt_NL2SP
22140
22141# convert \$build file names to \$host format.
22142to_host_file_cmd=$lt_cv_to_host_file_cmd
22143
22144# convert \$build files to toolchain format.
22145to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22146
22147# A file(cmd) program that detects file types.
22148FILECMD=$lt_FILECMD
22149
22150# An object symbol dumper.
22151OBJDUMP=$lt_OBJDUMP
22152
22153# Method to check whether dependent libraries are shared objects.
22154deplibs_check_method=$lt_deplibs_check_method
22155
22156# Command to use when deplibs_check_method = "file_magic".
22157file_magic_cmd=$lt_file_magic_cmd
22158
22159# How to find potential files when deplibs_check_method = "file_magic".
22160file_magic_glob=$lt_file_magic_glob
22161
22162# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22163want_nocaseglob=$lt_want_nocaseglob
22164
22165# DLL creation program.
22166DLLTOOL=$lt_DLLTOOL
22167
22168# Command to associate shared and link libraries.
22169sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22170
22171# The archiver.
22172AR=$lt_AR
22173
22174# Flags to create an archive (by configure).
22175lt_ar_flags=$lt_ar_flags
22176
22177# Flags to create an archive.
22178AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22179
22180# How to feed a file listing to the archiver.
22181archiver_list_spec=$lt_archiver_list_spec
22182
22183# A symbol stripping program.
22184STRIP=$lt_STRIP
22185
22186# Commands used to install an old-style archive.
22187RANLIB=$lt_RANLIB
22188old_postinstall_cmds=$lt_old_postinstall_cmds
22189old_postuninstall_cmds=$lt_old_postuninstall_cmds
22190
22191# Whether to use a lock for old archive extraction.
22192lock_old_archive_extraction=$lock_old_archive_extraction
22193
22194# A C compiler.
22195LTCC=$lt_CC
22196
22197# LTCC compiler flags.
22198LTCFLAGS=$lt_CFLAGS
22199
22200# Take the output of nm and produce a listing of raw symbols and C names.
22201global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22202
22203# Transform the output of nm in a proper C declaration.
22204global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22205
22206# Transform the output of nm into a list of symbols to manually relocate.
22207global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22208
22209# Transform the output of nm in a C name address pair.
22210global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22211
22212# Transform the output of nm in a C name address pair when lib prefix is needed.
22213global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22214
22215# The name lister interface.
22216nm_interface=$lt_lt_cv_nm_interface
22217
22218# Specify filename containing input files for \$NM.
22219nm_file_list_spec=$lt_nm_file_list_spec
22220
22221# The root where to search for dependent libraries,and where our libraries should be installed.
22222lt_sysroot=$lt_sysroot
22223
22224# Command to truncate a binary pipe.
22225lt_truncate_bin=$lt_lt_cv_truncate_bin
22226
22227# The name of the directory that contains temporary libtool files.
22228objdir=$objdir
22229
22230# Used to examine libraries when file_magic_cmd begins with "file".
22231MAGIC_CMD=$MAGIC_CMD
22232
22233# Must we lock files when doing compilation?
22234need_locks=$lt_need_locks
22235
22236# Manifest tool.
22237MANIFEST_TOOL=$lt_MANIFEST_TOOL
22238
22239# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22240DSYMUTIL=$lt_DSYMUTIL
22241
22242# Tool to change global to local symbols on Mac OS X.
22243NMEDIT=$lt_NMEDIT
22244
22245# Tool to manipulate fat objects and archives on Mac OS X.
22246LIPO=$lt_LIPO
22247
22248# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22249OTOOL=$lt_OTOOL
22250
22251# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22252OTOOL64=$lt_OTOOL64
22253
22254# Old archive suffix (normally "a").
22255libext=$libext
22256
22257# Shared library suffix (normally ".so").
22258shrext_cmds=$lt_shrext_cmds
22259
22260# The commands to extract the exported symbol list from a shared archive.
22261extract_expsyms_cmds=$lt_extract_expsyms_cmds
22262
22263# Variables whose values should be saved in libtool wrapper scripts and
22264# restored at link time.
22265variables_saved_for_relink=$lt_variables_saved_for_relink
22266
22267# Do we need the "lib" prefix for modules?
22268need_lib_prefix=$need_lib_prefix
22269
22270# Do we need a version for libraries?
22271need_version=$need_version
22272
22273# Library versioning type.
22274version_type=$version_type
22275
22276# Shared library runtime path variable.
22277runpath_var=$runpath_var
22278
22279# Shared library path variable.
22280shlibpath_var=$shlibpath_var
22281
22282# Is shlibpath searched before the hard-coded library search path?
22283shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22284
22285# Format of library name prefix.
22286libname_spec=$lt_libname_spec
22287
22288# List of archive names.  First name is the real one, the rest are links.
22289# The last name is the one that the linker finds with -lNAME
22290library_names_spec=$lt_library_names_spec
22291
22292# The coded name of the library, if different from the real name.
22293soname_spec=$lt_soname_spec
22294
22295# Permission mode override for installation of shared libraries.
22296install_override_mode=$lt_install_override_mode
22297
22298# Command to use after installation of a shared archive.
22299postinstall_cmds=$lt_postinstall_cmds
22300
22301# Command to use after uninstallation of a shared archive.
22302postuninstall_cmds=$lt_postuninstall_cmds
22303
22304# Commands used to finish a libtool library installation in a directory.
22305finish_cmds=$lt_finish_cmds
22306
22307# As "finish_cmds", except a single script fragment to be evaled but
22308# not shown.
22309finish_eval=$lt_finish_eval
22310
22311# Whether we should hardcode library paths into libraries.
22312hardcode_into_libs=$hardcode_into_libs
22313
22314# Compile-time system search path for libraries.
22315sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22316
22317# Detected run-time system search path for libraries.
22318sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22319
22320# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22321configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22322
22323# Whether dlopen is supported.
22324dlopen_support=$enable_dlopen
22325
22326# Whether dlopen of programs is supported.
22327dlopen_self=$enable_dlopen_self
22328
22329# Whether dlopen of statically linked programs is supported.
22330dlopen_self_static=$enable_dlopen_self_static
22331
22332# Commands to strip libraries.
22333old_striplib=$lt_old_striplib
22334striplib=$lt_striplib
22335
22336
22337# The linker used to build libraries.
22338LD=$lt_LD
22339
22340# How to create reloadable object files.
22341reload_flag=$lt_reload_flag
22342reload_cmds=$lt_reload_cmds
22343
22344# Commands used to build an old-style archive.
22345old_archive_cmds=$lt_old_archive_cmds
22346
22347# A language specific compiler.
22348CC=$lt_compiler
22349
22350# Is the compiler the GNU compiler?
22351with_gcc=$GCC
22352
22353# Compiler flag to turn off builtin functions.
22354no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22355
22356# Additional compiler flags for building library objects.
22357pic_flag=$lt_lt_prog_compiler_pic
22358
22359# How to pass a linker flag through the compiler.
22360wl=$lt_lt_prog_compiler_wl
22361
22362# Compiler flag to prevent dynamic linking.
22363link_static_flag=$lt_lt_prog_compiler_static
22364
22365# Does compiler simultaneously support -c and -o options?
22366compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22367
22368# Whether or not to add -lc for building shared libraries.
22369build_libtool_need_lc=$archive_cmds_need_lc
22370
22371# Whether or not to disallow shared libs when runtime libs are static.
22372allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22373
22374# Compiler flag to allow reflexive dlopens.
22375export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22376
22377# Compiler flag to generate shared objects directly from archives.
22378whole_archive_flag_spec=$lt_whole_archive_flag_spec
22379
22380# Whether the compiler copes with passing no objects directly.
22381compiler_needs_object=$lt_compiler_needs_object
22382
22383# Create an old-style archive from a shared archive.
22384old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22385
22386# Create a temporary old-style archive to link instead of a shared archive.
22387old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22388
22389# Commands used to build a shared archive.
22390archive_cmds=$lt_archive_cmds
22391archive_expsym_cmds=$lt_archive_expsym_cmds
22392
22393# Commands used to build a loadable module if different from building
22394# a shared archive.
22395module_cmds=$lt_module_cmds
22396module_expsym_cmds=$lt_module_expsym_cmds
22397
22398# Whether we are building with GNU ld or not.
22399with_gnu_ld=$lt_with_gnu_ld
22400
22401# Flag that allows shared libraries with undefined symbols to be built.
22402allow_undefined_flag=$lt_allow_undefined_flag
22403
22404# Flag that enforces no undefined symbols.
22405no_undefined_flag=$lt_no_undefined_flag
22406
22407# Flag to hardcode \$libdir into a binary during linking.
22408# This must work even if \$libdir does not exist
22409hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22410
22411# Whether we need a single "-rpath" flag with a separated argument.
22412hardcode_libdir_separator=$lt_hardcode_libdir_separator
22413
22414# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22415# DIR into the resulting binary.
22416hardcode_direct=$hardcode_direct
22417
22418# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22419# DIR into the resulting binary and the resulting library dependency is
22420# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22421# library is relocated.
22422hardcode_direct_absolute=$hardcode_direct_absolute
22423
22424# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22425# into the resulting binary.
22426hardcode_minus_L=$hardcode_minus_L
22427
22428# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22429# into the resulting binary.
22430hardcode_shlibpath_var=$hardcode_shlibpath_var
22431
22432# Set to "yes" if building a shared library automatically hardcodes DIR
22433# into the library and all subsequent libraries and executables linked
22434# against it.
22435hardcode_automatic=$hardcode_automatic
22436
22437# Set to yes if linker adds runtime paths of dependent libraries
22438# to runtime path list.
22439inherit_rpath=$inherit_rpath
22440
22441# Whether libtool must link a program against all its dependency libraries.
22442link_all_deplibs=$link_all_deplibs
22443
22444# Set to "yes" if exported symbols are required.
22445always_export_symbols=$always_export_symbols
22446
22447# The commands to list exported symbols.
22448export_symbols_cmds=$lt_export_symbols_cmds
22449
22450# Symbols that should not be listed in the preloaded symbols.
22451exclude_expsyms=$lt_exclude_expsyms
22452
22453# Symbols that must always be exported.
22454include_expsyms=$lt_include_expsyms
22455
22456# Commands necessary for linking programs (against libraries) with templates.
22457prelink_cmds=$lt_prelink_cmds
22458
22459# Commands necessary for finishing linking programs.
22460postlink_cmds=$lt_postlink_cmds
22461
22462# Specify filename containing input files.
22463file_list_spec=$lt_file_list_spec
22464
22465# How to hardcode a shared library path into an executable.
22466hardcode_action=$hardcode_action
22467
22468# ### END LIBTOOL CONFIG
22469
22470_LT_EOF
22471
22472    cat <<'_LT_EOF' >> "$cfgfile"
22473
22474# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22475
22476# func_munge_path_list VARIABLE PATH
22477# -----------------------------------
22478# VARIABLE is name of variable containing _space_ separated list of
22479# directories to be munged by the contents of PATH, which is string
22480# having a format:
22481# "DIR[:DIR]:"
22482#       string "DIR[ DIR]" will be prepended to VARIABLE
22483# ":DIR[:DIR]"
22484#       string "DIR[ DIR]" will be appended to VARIABLE
22485# "DIRP[:DIRP]::[DIRA:]DIRA"
22486#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22487#       "DIRA[ DIRA]" will be appended to VARIABLE
22488# "DIR[:DIR]"
22489#       VARIABLE will be replaced by "DIR[ DIR]"
22490func_munge_path_list ()
22491{
22492    case x$2 in
22493    x)
22494        ;;
22495    *:)
22496        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22497        ;;
22498    x:*)
22499        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22500        ;;
22501    *::*)
22502        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22503        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22504        ;;
22505    *)
22506        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22507        ;;
22508    esac
22509}
22510
22511
22512# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22513func_cc_basename ()
22514{
22515    for cc_temp in $*""; do
22516      case $cc_temp in
22517        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22518        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22519        \-*) ;;
22520        *) break;;
22521      esac
22522    done
22523    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22524}
22525
22526
22527# ### END FUNCTIONS SHARED WITH CONFIGURE
22528
22529_LT_EOF
22530
22531  case $host_os in
22532  aix3*)
22533    cat <<\_LT_EOF >> "$cfgfile"
22534# AIX sometimes has problems with the GCC collect2 program.  For some
22535# reason, if we set the COLLECT_NAMES environment variable, the problems
22536# vanish in a puff of smoke.
22537if test set != "${COLLECT_NAMES+set}"; then
22538  COLLECT_NAMES=
22539  export COLLECT_NAMES
22540fi
22541_LT_EOF
22542    ;;
22543  esac
22544
22545
22546
22547ltmain=$ac_aux_dir/ltmain.sh
22548
22549
22550  # We use sed instead of cat because bash on DJGPP gets confused if
22551  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22552  # text mode, it properly converts lines to CR/LF.  This bash problem
22553  # is reportedly fixed, but why not run on old versions too?
22554  $SED '$q' "$ltmain" >> "$cfgfile" \
22555     || (rm -f "$cfgfile"; exit 1)
22556
22557   mv -f "$cfgfile" "$ofile" ||
22558    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22559  chmod +x "$ofile"
22560
22561 ;;
22562
22563  esac
22564done # for ac_tag
22565
22566
22567as_fn_exit 0
22568_ACEOF
22569ac_clean_files=$ac_clean_files_save
22570
22571test $ac_write_fail = 0 ||
22572  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22573
22574
22575# configure is writing to config.log, and then calls config.status.
22576# config.status does its own redirection, appending to config.log.
22577# Unfortunately, on DOS this fails, as config.log is still kept open
22578# by configure, so config.status won't be able to write to it; its
22579# output is simply discarded.  So we exec the FD to /dev/null,
22580# effectively closing config.log, so it can be properly (re)opened and
22581# appended to by config.status.  When coming back to configure, we
22582# need to make the FD available again.
22583if test "$no_create" != yes; then
22584  ac_cs_success=:
22585  ac_config_status_args=
22586  test "$silent" = yes &&
22587    ac_config_status_args="$ac_config_status_args --quiet"
22588  exec 5>/dev/null
22589  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22590  exec 5>>config.log
22591  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22592  # would make configure fail if this is the last instruction.
22593  $ac_cs_success || as_fn_exit 1
22594fi
22595if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22596  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22597printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22598fi
22599
22600
22601