configure revision dbcfc9ff
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for xf86-video-nv 2.1.23.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/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-nv/-/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-nv'
617PACKAGE_TARNAME='xf86-video-nv'
618PACKAGE_VERSION='2.1.23'
619PACKAGE_STRING='xf86-video-nv 2.1.23'
620PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/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
662XAA_FALSE
663XAA_TRUE
664PCIACCESS_LIBS
665PCIACCESS_CFLAGS
666HAVE_XEXTPROTO_71_FALSE
667HAVE_XEXTPROTO_71_TRUE
668XEXT_LIBS
669XEXT_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
694CSCOPE
695ETAGS
696CTAGS
697am__fastdepCC_FALSE
698am__fastdepCC_TRUE
699CCDEPMODE
700am__nodep
701AMDEPBACKSLASH
702AMDEP_FALSE
703AMDEP_TRUE
704am__include
705DEPDIR
706am__untar
707am__tar
708AMTAR
709am__leading_dot
710SET_MAKE
711AWK
712mkdir_p
713MKDIR_P
714INSTALL_STRIP_PROGRAM
715STRIP
716install_sh
717MAKEINFO
718AUTOHEADER
719AUTOMAKE
720AUTOCONF
721ACLOCAL
722VERSION
723PACKAGE
724CYGPATH_W
725am__isrc
726AM_BACKSLASH
727AM_DEFAULT_VERBOSITY
728AM_DEFAULT_V
729AM_V
730MAN_SUBSTS
731XORG_MAN_PAGE
732ADMIN_MAN_DIR
733DRIVER_MAN_DIR
734MISC_MAN_DIR
735FILE_MAN_DIR
736LIB_MAN_DIR
737APP_MAN_DIR
738ADMIN_MAN_SUFFIX
739DRIVER_MAN_SUFFIX
740MISC_MAN_SUFFIX
741FILE_MAN_SUFFIX
742LIB_MAN_SUFFIX
743APP_MAN_SUFFIX
744SED
745host_os
746host_vendor
747host_cpu
748host
749build_os
750build_vendor
751build_cpu
752build
753INSTALL_CMD
754PKG_CONFIG_LIBDIR
755PKG_CONFIG_PATH
756PKG_CONFIG
757CHANGELOG_CMD
758STRICT_CFLAGS
759CWARNFLAGS
760BASE_CFLAGS
761OBJEXT
762EXEEXT
763ac_ct_CC
764CPPFLAGS
765LDFLAGS
766CFLAGS
767CC
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_selective_werror
815enable_strict_compilation
816enable_silent_rules
817enable_dependency_tracking
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
843XEXT_CFLAGS
844XEXT_LIBS
845PCIACCESS_CFLAGS
846PCIACCESS_LIBS'
847
848
849# Initialize some variables set by options.
850ac_init_help=
851ac_init_version=false
852ac_unrecognized_opts=
853ac_unrecognized_sep=
854# The variables have the same names as the options, with
855# dashes changed to underlines.
856cache_file=/dev/null
857exec_prefix=NONE
858no_create=
859no_recursion=
860prefix=NONE
861program_prefix=NONE
862program_suffix=NONE
863program_transform_name=s,x,x,
864silent=
865site=
866srcdir=
867verbose=
868x_includes=NONE
869x_libraries=NONE
870
871# Installation directory options.
872# These are left unexpanded so users can "make install exec_prefix=/foo"
873# and all the variables that are supposed to be based on exec_prefix
874# by default will actually change.
875# Use braces instead of parens because sh, perl, etc. also accept them.
876# (The list follows the same order as the GNU Coding Standards.)
877bindir='${exec_prefix}/bin'
878sbindir='${exec_prefix}/sbin'
879libexecdir='${exec_prefix}/libexec'
880datarootdir='${prefix}/share'
881datadir='${datarootdir}'
882sysconfdir='${prefix}/etc'
883sharedstatedir='${prefix}/com'
884localstatedir='${prefix}/var'
885runstatedir='${localstatedir}/run'
886includedir='${prefix}/include'
887oldincludedir='/usr/include'
888docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
889infodir='${datarootdir}/info'
890htmldir='${docdir}'
891dvidir='${docdir}'
892pdfdir='${docdir}'
893psdir='${docdir}'
894libdir='${exec_prefix}/lib'
895localedir='${datarootdir}/locale'
896mandir='${datarootdir}/man'
897
898ac_prev=
899ac_dashdash=
900for ac_option
901do
902  # If the previous option needs an argument, assign it.
903  if test -n "$ac_prev"; then
904    eval $ac_prev=\$ac_option
905    ac_prev=
906    continue
907  fi
908
909  case $ac_option in
910  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
911  *=)   ac_optarg= ;;
912  *)    ac_optarg=yes ;;
913  esac
914
915  case $ac_dashdash$ac_option in
916  --)
917    ac_dashdash=yes ;;
918
919  -bindir | --bindir | --bindi | --bind | --bin | --bi)
920    ac_prev=bindir ;;
921  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
922    bindir=$ac_optarg ;;
923
924  -build | --build | --buil | --bui | --bu)
925    ac_prev=build_alias ;;
926  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
927    build_alias=$ac_optarg ;;
928
929  -cache-file | --cache-file | --cache-fil | --cache-fi \
930  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
931    ac_prev=cache_file ;;
932  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
933  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
934    cache_file=$ac_optarg ;;
935
936  --config-cache | -C)
937    cache_file=config.cache ;;
938
939  -datadir | --datadir | --datadi | --datad)
940    ac_prev=datadir ;;
941  -datadir=* | --datadir=* | --datadi=* | --datad=*)
942    datadir=$ac_optarg ;;
943
944  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
945  | --dataroo | --dataro | --datar)
946    ac_prev=datarootdir ;;
947  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
948  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
949    datarootdir=$ac_optarg ;;
950
951  -disable-* | --disable-*)
952    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
953    # Reject names that are not valid shell variable names.
954    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955      as_fn_error $? "invalid feature name: '$ac_useropt'"
956    ac_useropt_orig=$ac_useropt
957    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
958    case $ac_user_opts in
959      *"
960"enable_$ac_useropt"
961"*) ;;
962      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
963	 ac_unrecognized_sep=', ';;
964    esac
965    eval enable_$ac_useropt=no ;;
966
967  -docdir | --docdir | --docdi | --doc | --do)
968    ac_prev=docdir ;;
969  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
970    docdir=$ac_optarg ;;
971
972  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973    ac_prev=dvidir ;;
974  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
975    dvidir=$ac_optarg ;;
976
977  -enable-* | --enable-*)
978    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
979    # Reject names that are not valid shell variable names.
980    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981      as_fn_error $? "invalid feature name: '$ac_useropt'"
982    ac_useropt_orig=$ac_useropt
983    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
984    case $ac_user_opts in
985      *"
986"enable_$ac_useropt"
987"*) ;;
988      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
989	 ac_unrecognized_sep=', ';;
990    esac
991    eval enable_$ac_useropt=\$ac_optarg ;;
992
993  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
994  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
995  | --exec | --exe | --ex)
996    ac_prev=exec_prefix ;;
997  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
998  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
999  | --exec=* | --exe=* | --ex=*)
1000    exec_prefix=$ac_optarg ;;
1001
1002  -gas | --gas | --ga | --g)
1003    # Obsolete; use --with-gas.
1004    with_gas=yes ;;
1005
1006  -help | --help | --hel | --he | -h)
1007    ac_init_help=long ;;
1008  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1009    ac_init_help=recursive ;;
1010  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1011    ac_init_help=short ;;
1012
1013  -host | --host | --hos | --ho)
1014    ac_prev=host_alias ;;
1015  -host=* | --host=* | --hos=* | --ho=*)
1016    host_alias=$ac_optarg ;;
1017
1018  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1019    ac_prev=htmldir ;;
1020  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1021  | --ht=*)
1022    htmldir=$ac_optarg ;;
1023
1024  -includedir | --includedir | --includedi | --included | --include \
1025  | --includ | --inclu | --incl | --inc)
1026    ac_prev=includedir ;;
1027  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1028  | --includ=* | --inclu=* | --incl=* | --inc=*)
1029    includedir=$ac_optarg ;;
1030
1031  -infodir | --infodir | --infodi | --infod | --info | --inf)
1032    ac_prev=infodir ;;
1033  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1034    infodir=$ac_optarg ;;
1035
1036  -libdir | --libdir | --libdi | --libd)
1037    ac_prev=libdir ;;
1038  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1039    libdir=$ac_optarg ;;
1040
1041  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1042  | --libexe | --libex | --libe)
1043    ac_prev=libexecdir ;;
1044  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1045  | --libexe=* | --libex=* | --libe=*)
1046    libexecdir=$ac_optarg ;;
1047
1048  -localedir | --localedir | --localedi | --localed | --locale)
1049    ac_prev=localedir ;;
1050  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1051    localedir=$ac_optarg ;;
1052
1053  -localstatedir | --localstatedir | --localstatedi | --localstated \
1054  | --localstate | --localstat | --localsta | --localst | --locals)
1055    ac_prev=localstatedir ;;
1056  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1057  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1058    localstatedir=$ac_optarg ;;
1059
1060  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1061    ac_prev=mandir ;;
1062  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1063    mandir=$ac_optarg ;;
1064
1065  -nfp | --nfp | --nf)
1066    # Obsolete; use --without-fp.
1067    with_fp=no ;;
1068
1069  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1070  | --no-cr | --no-c | -n)
1071    no_create=yes ;;
1072
1073  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1074  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075    no_recursion=yes ;;
1076
1077  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1078  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1079  | --oldin | --oldi | --old | --ol | --o)
1080    ac_prev=oldincludedir ;;
1081  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1082  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1083  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1084    oldincludedir=$ac_optarg ;;
1085
1086  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1087    ac_prev=prefix ;;
1088  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1089    prefix=$ac_optarg ;;
1090
1091  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1092  | --program-pre | --program-pr | --program-p)
1093    ac_prev=program_prefix ;;
1094  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1095  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1096    program_prefix=$ac_optarg ;;
1097
1098  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1099  | --program-suf | --program-su | --program-s)
1100    ac_prev=program_suffix ;;
1101  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1102  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1103    program_suffix=$ac_optarg ;;
1104
1105  -program-transform-name | --program-transform-name \
1106  | --program-transform-nam | --program-transform-na \
1107  | --program-transform-n | --program-transform- \
1108  | --program-transform | --program-transfor \
1109  | --program-transfo | --program-transf \
1110  | --program-trans | --program-tran \
1111  | --progr-tra | --program-tr | --program-t)
1112    ac_prev=program_transform_name ;;
1113  -program-transform-name=* | --program-transform-name=* \
1114  | --program-transform-nam=* | --program-transform-na=* \
1115  | --program-transform-n=* | --program-transform-=* \
1116  | --program-transform=* | --program-transfor=* \
1117  | --program-transfo=* | --program-transf=* \
1118  | --program-trans=* | --program-tran=* \
1119  | --progr-tra=* | --program-tr=* | --program-t=*)
1120    program_transform_name=$ac_optarg ;;
1121
1122  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1123    ac_prev=pdfdir ;;
1124  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1125    pdfdir=$ac_optarg ;;
1126
1127  -psdir | --psdir | --psdi | --psd | --ps)
1128    ac_prev=psdir ;;
1129  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130    psdir=$ac_optarg ;;
1131
1132  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133  | -silent | --silent | --silen | --sile | --sil)
1134    silent=yes ;;
1135
1136  -runstatedir | --runstatedir | --runstatedi | --runstated \
1137  | --runstate | --runstat | --runsta | --runst | --runs \
1138  | --run | --ru | --r)
1139    ac_prev=runstatedir ;;
1140  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1141  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1142  | --run=* | --ru=* | --r=*)
1143    runstatedir=$ac_optarg ;;
1144
1145  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1146    ac_prev=sbindir ;;
1147  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1148  | --sbi=* | --sb=*)
1149    sbindir=$ac_optarg ;;
1150
1151  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1152  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1153  | --sharedst | --shareds | --shared | --share | --shar \
1154  | --sha | --sh)
1155    ac_prev=sharedstatedir ;;
1156  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1157  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1158  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1159  | --sha=* | --sh=*)
1160    sharedstatedir=$ac_optarg ;;
1161
1162  -site | --site | --sit)
1163    ac_prev=site ;;
1164  -site=* | --site=* | --sit=*)
1165    site=$ac_optarg ;;
1166
1167  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1168    ac_prev=srcdir ;;
1169  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1170    srcdir=$ac_optarg ;;
1171
1172  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1173  | --syscon | --sysco | --sysc | --sys | --sy)
1174    ac_prev=sysconfdir ;;
1175  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1176  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1177    sysconfdir=$ac_optarg ;;
1178
1179  -target | --target | --targe | --targ | --tar | --ta | --t)
1180    ac_prev=target_alias ;;
1181  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1182    target_alias=$ac_optarg ;;
1183
1184  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1185    verbose=yes ;;
1186
1187  -version | --version | --versio | --versi | --vers | -V)
1188    ac_init_version=: ;;
1189
1190  -with-* | --with-*)
1191    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1192    # Reject names that are not valid shell variable names.
1193    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1194      as_fn_error $? "invalid package name: '$ac_useropt'"
1195    ac_useropt_orig=$ac_useropt
1196    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1197    case $ac_user_opts in
1198      *"
1199"with_$ac_useropt"
1200"*) ;;
1201      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1202	 ac_unrecognized_sep=', ';;
1203    esac
1204    eval with_$ac_useropt=\$ac_optarg ;;
1205
1206  -without-* | --without-*)
1207    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1208    # Reject names that are not valid shell variable names.
1209    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210      as_fn_error $? "invalid package name: '$ac_useropt'"
1211    ac_useropt_orig=$ac_useropt
1212    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1213    case $ac_user_opts in
1214      *"
1215"with_$ac_useropt"
1216"*) ;;
1217      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1218	 ac_unrecognized_sep=', ';;
1219    esac
1220    eval with_$ac_useropt=no ;;
1221
1222  --x)
1223    # Obsolete; use --with-x.
1224    with_x=yes ;;
1225
1226  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1227  | --x-incl | --x-inc | --x-in | --x-i)
1228    ac_prev=x_includes ;;
1229  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1230  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1231    x_includes=$ac_optarg ;;
1232
1233  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1234  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1235    ac_prev=x_libraries ;;
1236  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1237  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1238    x_libraries=$ac_optarg ;;
1239
1240  -*) as_fn_error $? "unrecognized option: '$ac_option'
1241Try '$0 --help' for more information"
1242    ;;
1243
1244  *=*)
1245    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1246    # Reject names that are not valid shell variable names.
1247    case $ac_envvar in #(
1248      '' | [0-9]* | *[!_$as_cr_alnum]* )
1249      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1250    esac
1251    eval $ac_envvar=\$ac_optarg
1252    export $ac_envvar ;;
1253
1254  *)
1255    # FIXME: should be removed in autoconf 3.0.
1256    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1257    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1258      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1259    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1260    ;;
1261
1262  esac
1263done
1264
1265if test -n "$ac_prev"; then
1266  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1267  as_fn_error $? "missing argument to $ac_option"
1268fi
1269
1270if test -n "$ac_unrecognized_opts"; then
1271  case $enable_option_checking in
1272    no) ;;
1273    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1274    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1275  esac
1276fi
1277
1278# Check all directory arguments for consistency.
1279for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280		datadir sysconfdir sharedstatedir localstatedir includedir \
1281		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282		libdir localedir mandir runstatedir
1283do
1284  eval ac_val=\$$ac_var
1285  # Remove trailing slashes.
1286  case $ac_val in
1287    */ )
1288      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1289      eval $ac_var=\$ac_val;;
1290  esac
1291  # Be sure to have absolute directory names.
1292  case $ac_val in
1293    [\\/$]* | ?:[\\/]* )  continue;;
1294    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295  esac
1296  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1297done
1298
1299# There might be people who depend on the old broken behavior: '$host'
1300# used to hold the argument of --host etc.
1301# FIXME: To remove some day.
1302build=$build_alias
1303host=$host_alias
1304target=$target_alias
1305
1306# FIXME: To remove some day.
1307if test "x$host_alias" != x; then
1308  if test "x$build_alias" = x; then
1309    cross_compiling=maybe
1310  elif test "x$build_alias" != "x$host_alias"; then
1311    cross_compiling=yes
1312  fi
1313fi
1314
1315ac_tool_prefix=
1316test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317
1318test "$silent" = yes && exec 6>/dev/null
1319
1320
1321ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322ac_ls_di=`ls -di .` &&
1323ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324  as_fn_error $? "working directory cannot be determined"
1325test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326  as_fn_error $? "pwd does not report name of working directory"
1327
1328
1329# Find the source files, if location was not specified.
1330if test -z "$srcdir"; then
1331  ac_srcdir_defaulted=yes
1332  # Try the directory containing this script, then the parent directory.
1333  ac_confdir=`$as_dirname -- "$as_myself" ||
1334$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335	 X"$as_myself" : 'X\(//\)[^/]' \| \
1336	 X"$as_myself" : 'X\(//\)$' \| \
1337	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338printf "%s\n" X"$as_myself" |
1339    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340	    s//\1/
1341	    q
1342	  }
1343	  /^X\(\/\/\)[^/].*/{
1344	    s//\1/
1345	    q
1346	  }
1347	  /^X\(\/\/\)$/{
1348	    s//\1/
1349	    q
1350	  }
1351	  /^X\(\/\).*/{
1352	    s//\1/
1353	    q
1354	  }
1355	  s/.*/./; q'`
1356  srcdir=$ac_confdir
1357  if test ! -r "$srcdir/$ac_unique_file"; then
1358    srcdir=..
1359  fi
1360else
1361  ac_srcdir_defaulted=no
1362fi
1363if test ! -r "$srcdir/$ac_unique_file"; then
1364  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1366fi
1367ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1368ac_abs_confdir=`(
1369	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1370	pwd)`
1371# When building in place, set srcdir=.
1372if test "$ac_abs_confdir" = "$ac_pwd"; then
1373  srcdir=.
1374fi
1375# Remove unnecessary trailing slashes from srcdir.
1376# Double slashes in file names in object file debugging info
1377# mess up M-x gdb in Emacs.
1378case $srcdir in
1379*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380esac
1381for ac_var in $ac_precious_vars; do
1382  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383  eval ac_env_${ac_var}_value=\$${ac_var}
1384  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386done
1387
1388#
1389# Report the --help message.
1390#
1391if test "$ac_init_help" = "long"; then
1392  # Omit some internal or obsolete options to make the list less imposing.
1393  # This message is too long to be a string in the A/UX 3.1 sh.
1394  cat <<_ACEOF
1395'configure' configures xf86-video-nv 2.1.23 to adapt to many kinds of systems.
1396
1397Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400VAR=VALUE.  See below for descriptions of some of the useful variables.
1401
1402Defaults for the options are specified in brackets.
1403
1404Configuration:
1405  -h, --help              display this help and exit
1406      --help=short        display options specific to this package
1407      --help=recursive    display the short help of all the included packages
1408  -V, --version           display version information and exit
1409  -q, --quiet, --silent   do not print 'checking ...' messages
1410      --cache-file=FILE   cache test results in FILE [disabled]
1411  -C, --config-cache      alias for '--cache-file=config.cache'
1412  -n, --no-create         do not create output files
1413      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1414
1415Installation directories:
1416  --prefix=PREFIX         install architecture-independent files in PREFIX
1417                          [$ac_default_prefix]
1418  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1419                          [PREFIX]
1420
1421By default, 'make install' will install all the files in
1422'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1423an installation prefix other than '$ac_default_prefix' using '--prefix',
1424for instance '--prefix=\$HOME'.
1425
1426For better control, use the options below.
1427
1428Fine tuning of the installation directories:
1429  --bindir=DIR            user executables [EPREFIX/bin]
1430  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1431  --libexecdir=DIR        program executables [EPREFIX/libexec]
1432  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1433  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1434  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1435  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1436  --libdir=DIR            object code libraries [EPREFIX/lib]
1437  --includedir=DIR        C header files [PREFIX/include]
1438  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1439  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1440  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1441  --infodir=DIR           info documentation [DATAROOTDIR/info]
1442  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1443  --mandir=DIR            man documentation [DATAROOTDIR/man]
1444  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-nv]
1445  --htmldir=DIR           html documentation [DOCDIR]
1446  --dvidir=DIR            dvi documentation [DOCDIR]
1447  --pdfdir=DIR            pdf documentation [DOCDIR]
1448  --psdir=DIR             ps documentation [DOCDIR]
1449_ACEOF
1450
1451  cat <<\_ACEOF
1452
1453Program names:
1454  --program-prefix=C            prepend C to installed program names
1455  --program-suffix=SUFFIX            append SUFFIX to installed program names
1456  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1457
1458System types:
1459  --build=BUILD     configure for building on BUILD [guessed]
1460  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1461_ACEOF
1462fi
1463
1464if test -n "$ac_init_help"; then
1465  case $ac_init_help in
1466     short | recursive ) echo "Configuration of xf86-video-nv 2.1.23:";;
1467   esac
1468  cat <<\_ACEOF
1469
1470Optional Features:
1471  --disable-option-checking  ignore unrecognized --enable/--with options
1472  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1473  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1474  --disable-selective-werror
1475                          Turn off selective compiler errors. (default:
1476                          enabled)
1477  --enable-strict-compilation
1478                          Enable all warnings from compiler and make them
1479                          errors (default: disabled)
1480  --enable-silent-rules   less verbose build output (undo: "make V=1")
1481  --disable-silent-rules  verbose build output (undo: "make V=0")
1482  --enable-dependency-tracking
1483                          do not reject slow dependency extractors
1484  --disable-dependency-tracking
1485                          speeds up one-time build
1486  --enable-static[=PKGS]  build static libraries [default=no]
1487  --enable-shared[=PKGS]  build shared libraries [default=yes]
1488  --enable-fast-install[=PKGS]
1489                          optimize for fast installation [default=yes]
1490  --disable-libtool-lock  avoid locking (might break parallel builds)
1491  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1492                          [default=auto]
1493
1494Optional Packages:
1495  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1496  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1497  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1498                          both]
1499  --with-aix-soname=aix|svr4|both
1500                          shared library versioning (aka "SONAME") variant to
1501                          provide on AIX, [default=aix].
1502  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1503  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1504                          compiler's sysroot if not specified).
1505  --with-xorg-module-dir=DIR
1506                          Default xorg module directory
1507                          [[default=$libdir/xorg/modules]]
1508
1509Some influential environment variables:
1510  CC          C compiler command
1511  CFLAGS      C compiler flags
1512  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1513              nonstandard directory <lib dir>
1514  LIBS        libraries to pass to the linker, e.g. -l<library>
1515  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1516              you have headers in a nonstandard directory <include dir>
1517  PKG_CONFIG  path to pkg-config utility
1518  PKG_CONFIG_PATH
1519              directories to add to pkg-config's search path
1520  PKG_CONFIG_LIBDIR
1521              path overriding pkg-config's built-in search path
1522  LT_SYS_LIBRARY_PATH
1523              User-defined run-time library search path.
1524  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1525  XORG_LIBS   linker flags for XORG, overriding pkg-config
1526  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1527  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1528  PCIACCESS_CFLAGS
1529              C compiler flags for PCIACCESS, overriding pkg-config
1530  PCIACCESS_LIBS
1531              linker flags for PCIACCESS, overriding pkg-config
1532
1533Use these variables to override the choices made by 'configure' or to help
1534it to find libraries and programs with nonstandard names/locations.
1535
1536Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/issues>.
1537_ACEOF
1538ac_status=$?
1539fi
1540
1541if test "$ac_init_help" = "recursive"; then
1542  # If there are subdirs, report their specific --help.
1543  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544    test -d "$ac_dir" ||
1545      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546      continue
1547    ac_builddir=.
1548
1549case "$ac_dir" in
1550.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551*)
1552  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1553  # A ".." for each directory in $ac_dir_suffix.
1554  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555  case $ac_top_builddir_sub in
1556  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558  esac ;;
1559esac
1560ac_abs_top_builddir=$ac_pwd
1561ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562# for backward compatibility:
1563ac_top_builddir=$ac_top_build_prefix
1564
1565case $srcdir in
1566  .)  # We are building in place.
1567    ac_srcdir=.
1568    ac_top_srcdir=$ac_top_builddir_sub
1569    ac_abs_top_srcdir=$ac_pwd ;;
1570  [\\/]* | ?:[\\/]* )  # Absolute name.
1571    ac_srcdir=$srcdir$ac_dir_suffix;
1572    ac_top_srcdir=$srcdir
1573    ac_abs_top_srcdir=$srcdir ;;
1574  *) # Relative name.
1575    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576    ac_top_srcdir=$ac_top_build_prefix$srcdir
1577    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578esac
1579ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
1581    cd "$ac_dir" || { ac_status=$?; continue; }
1582    # Check for configure.gnu first; this name is used for a wrapper for
1583    # Metaconfig's "Configure" on case-insensitive file systems.
1584    if test -f "$ac_srcdir/configure.gnu"; then
1585      echo &&
1586      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587    elif test -f "$ac_srcdir/configure"; then
1588      echo &&
1589      $SHELL "$ac_srcdir/configure" --help=recursive
1590    else
1591      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592    fi || ac_status=$?
1593    cd "$ac_pwd" || { ac_status=$?; break; }
1594  done
1595fi
1596
1597test -n "$ac_init_help" && exit $ac_status
1598if $ac_init_version; then
1599  cat <<\_ACEOF
1600xf86-video-nv configure 2.1.23
1601generated by GNU Autoconf 2.72
1602
1603Copyright (C) 2023 Free Software Foundation, Inc.
1604This configure script is free software; the Free Software Foundation
1605gives unlimited permission to copy, distribute and modify it.
1606_ACEOF
1607  exit
1608fi
1609
1610## ------------------------ ##
1611## Autoconf initialization. ##
1612## ------------------------ ##
1613
1614# ac_fn_c_try_compile LINENO
1615# --------------------------
1616# Try to compile conftest.$ac_ext, and return whether this succeeded.
1617ac_fn_c_try_compile ()
1618{
1619  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620  rm -f conftest.$ac_objext conftest.beam
1621  if { { ac_try="$ac_compile"
1622case "(($ac_try" in
1623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624  *) ac_try_echo=$ac_try;;
1625esac
1626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627printf "%s\n" "$ac_try_echo"; } >&5
1628  (eval "$ac_compile") 2>conftest.err
1629  ac_status=$?
1630  if test -s conftest.err; then
1631    grep -v '^ *+' conftest.err >conftest.er1
1632    cat conftest.er1 >&5
1633    mv -f conftest.er1 conftest.err
1634  fi
1635  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636  test $ac_status = 0; } && {
1637	 test -z "$ac_c_werror_flag" ||
1638	 test ! -s conftest.err
1639       } && test -s conftest.$ac_objext
1640then :
1641  ac_retval=0
1642else case e in #(
1643  e) printf "%s\n" "$as_me: failed program was:" >&5
1644sed 's/^/| /' conftest.$ac_ext >&5
1645
1646	ac_retval=1 ;;
1647esac
1648fi
1649  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650  as_fn_set_status $ac_retval
1651
1652} # ac_fn_c_try_compile
1653
1654# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1655# ------------------------------------------------------------------
1656# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1657# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1658ac_fn_check_decl ()
1659{
1660  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661  as_decl_name=`echo $2|sed 's/ *(.*//'`
1662  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1663printf %s "checking whether $as_decl_name is declared... " >&6; }
1664if eval test \${$3+y}
1665then :
1666  printf %s "(cached) " >&6
1667else case e in #(
1668  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1669  eval ac_save_FLAGS=\$$6
1670  as_fn_append $6 " $5"
1671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672/* end confdefs.h.  */
1673$4
1674int
1675main (void)
1676{
1677#ifndef $as_decl_name
1678#ifdef __cplusplus
1679  (void) $as_decl_use;
1680#else
1681  (void) $as_decl_name;
1682#endif
1683#endif
1684
1685  ;
1686  return 0;
1687}
1688_ACEOF
1689if ac_fn_c_try_compile "$LINENO"
1690then :
1691  eval "$3=yes"
1692else case e in #(
1693  e) eval "$3=no" ;;
1694esac
1695fi
1696rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1697  eval $6=\$ac_save_FLAGS
1698 ;;
1699esac
1700fi
1701eval ac_res=\$$3
1702	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1703printf "%s\n" "$ac_res" >&6; }
1704  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705
1706} # ac_fn_check_decl
1707
1708# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1709# -------------------------------------------------------
1710# Tests whether HEADER exists and can be compiled using the include files in
1711# INCLUDES, setting the cache variable VAR accordingly.
1712ac_fn_c_check_header_compile ()
1713{
1714  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716printf %s "checking for $2... " >&6; }
1717if eval test \${$3+y}
1718then :
1719  printf %s "(cached) " >&6
1720else case e in #(
1721  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722/* end confdefs.h.  */
1723$4
1724#include <$2>
1725_ACEOF
1726if ac_fn_c_try_compile "$LINENO"
1727then :
1728  eval "$3=yes"
1729else case e in #(
1730  e) eval "$3=no" ;;
1731esac
1732fi
1733rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1734esac
1735fi
1736eval ac_res=\$$3
1737	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738printf "%s\n" "$ac_res" >&6; }
1739  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740
1741} # ac_fn_c_check_header_compile
1742
1743# ac_fn_c_try_link LINENO
1744# -----------------------
1745# Try to link conftest.$ac_ext, and return whether this succeeded.
1746ac_fn_c_try_link ()
1747{
1748  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1750  if { { ac_try="$ac_link"
1751case "(($ac_try" in
1752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753  *) ac_try_echo=$ac_try;;
1754esac
1755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756printf "%s\n" "$ac_try_echo"; } >&5
1757  (eval "$ac_link") 2>conftest.err
1758  ac_status=$?
1759  if test -s conftest.err; then
1760    grep -v '^ *+' conftest.err >conftest.er1
1761    cat conftest.er1 >&5
1762    mv -f conftest.er1 conftest.err
1763  fi
1764  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765  test $ac_status = 0; } && {
1766	 test -z "$ac_c_werror_flag" ||
1767	 test ! -s conftest.err
1768       } && test -s conftest$ac_exeext && {
1769	 test "$cross_compiling" = yes ||
1770	 test -x conftest$ac_exeext
1771       }
1772then :
1773  ac_retval=0
1774else case e in #(
1775  e) printf "%s\n" "$as_me: failed program was:" >&5
1776sed 's/^/| /' conftest.$ac_ext >&5
1777
1778	ac_retval=1 ;;
1779esac
1780fi
1781  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1782  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1783  # interfere with the next link command; also delete a directory that is
1784  # left behind by Apple's compiler.  We do this before executing the actions.
1785  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1786  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787  as_fn_set_status $ac_retval
1788
1789} # ac_fn_c_try_link
1790
1791# ac_fn_c_check_func LINENO FUNC VAR
1792# ----------------------------------
1793# Tests whether FUNC exists, setting the cache variable VAR accordingly
1794ac_fn_c_check_func ()
1795{
1796  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798printf %s "checking for $2... " >&6; }
1799if eval test \${$3+y}
1800then :
1801  printf %s "(cached) " >&6
1802else case e in #(
1803  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804/* end confdefs.h.  */
1805/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1806   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1807#define $2 innocuous_$2
1808
1809/* System header to define __stub macros and hopefully few prototypes,
1810   which can conflict with char $2 (void); below.  */
1811
1812#include <limits.h>
1813#undef $2
1814
1815/* Override any GCC internal prototype to avoid an error.
1816   Use char because int might match the return type of a GCC
1817   builtin and then its argument prototype would still apply.  */
1818#ifdef __cplusplus
1819extern "C"
1820#endif
1821char $2 (void);
1822/* The GNU C library defines this for functions which it implements
1823    to always fail with ENOSYS.  Some functions are actually named
1824    something starting with __ and the normal name is an alias.  */
1825#if defined __stub_$2 || defined __stub___$2
1826choke me
1827#endif
1828
1829int
1830main (void)
1831{
1832return $2 ();
1833  ;
1834  return 0;
1835}
1836_ACEOF
1837if ac_fn_c_try_link "$LINENO"
1838then :
1839  eval "$3=yes"
1840else case e in #(
1841  e) eval "$3=no" ;;
1842esac
1843fi
1844rm -f core conftest.err conftest.$ac_objext conftest.beam \
1845    conftest$ac_exeext conftest.$ac_ext ;;
1846esac
1847fi
1848eval ac_res=\$$3
1849	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850printf "%s\n" "$ac_res" >&6; }
1851  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852
1853} # ac_fn_c_check_func
1854ac_configure_args_raw=
1855for ac_arg
1856do
1857  case $ac_arg in
1858  *\'*)
1859    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1860  esac
1861  as_fn_append ac_configure_args_raw " '$ac_arg'"
1862done
1863
1864case $ac_configure_args_raw in
1865  *$as_nl*)
1866    ac_safe_unquote= ;;
1867  *)
1868    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1869    ac_unsafe_a="$ac_unsafe_z#~"
1870    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1871    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1872esac
1873
1874cat >config.log <<_ACEOF
1875This file contains any messages produced by compilers while
1876running configure, to aid debugging if configure makes a mistake.
1877
1878It was created by xf86-video-nv $as_me 2.1.23, which was
1879generated by GNU Autoconf 2.72.  Invocation command line was
1880
1881  $ $0$ac_configure_args_raw
1882
1883_ACEOF
1884exec 5>>config.log
1885{
1886cat <<_ASUNAME
1887## --------- ##
1888## Platform. ##
1889## --------- ##
1890
1891hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1892uname -m = `(uname -m) 2>/dev/null || echo unknown`
1893uname -r = `(uname -r) 2>/dev/null || echo unknown`
1894uname -s = `(uname -s) 2>/dev/null || echo unknown`
1895uname -v = `(uname -v) 2>/dev/null || echo unknown`
1896
1897/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1898/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1899
1900/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1901/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1902/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1903/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1904/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1905/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1906/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1907
1908_ASUNAME
1909
1910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911for as_dir in $PATH
1912do
1913  IFS=$as_save_IFS
1914  case $as_dir in #(((
1915    '') as_dir=./ ;;
1916    */) ;;
1917    *) as_dir=$as_dir/ ;;
1918  esac
1919    printf "%s\n" "PATH: $as_dir"
1920  done
1921IFS=$as_save_IFS
1922
1923} >&5
1924
1925cat >&5 <<_ACEOF
1926
1927
1928## ----------- ##
1929## Core tests. ##
1930## ----------- ##
1931
1932_ACEOF
1933
1934
1935# Keep a trace of the command line.
1936# Strip out --no-create and --no-recursion so they do not pile up.
1937# Strip out --silent because we don't want to record it for future runs.
1938# Also quote any args containing shell meta-characters.
1939# Make two passes to allow for proper duplicate-argument suppression.
1940ac_configure_args=
1941ac_configure_args0=
1942ac_configure_args1=
1943ac_must_keep_next=false
1944for ac_pass in 1 2
1945do
1946  for ac_arg
1947  do
1948    case $ac_arg in
1949    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1950    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1951    | -silent | --silent | --silen | --sile | --sil)
1952      continue ;;
1953    *\'*)
1954      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1955    esac
1956    case $ac_pass in
1957    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1958    2)
1959      as_fn_append ac_configure_args1 " '$ac_arg'"
1960      if test $ac_must_keep_next = true; then
1961	ac_must_keep_next=false # Got value, back to normal.
1962      else
1963	case $ac_arg in
1964	  *=* | --config-cache | -C | -disable-* | --disable-* \
1965	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1966	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1967	  | -with-* | --with-* | -without-* | --without-* | --x)
1968	    case "$ac_configure_args0 " in
1969	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1970	    esac
1971	    ;;
1972	  -* ) ac_must_keep_next=true ;;
1973	esac
1974      fi
1975      as_fn_append ac_configure_args " '$ac_arg'"
1976      ;;
1977    esac
1978  done
1979done
1980{ ac_configure_args0=; unset ac_configure_args0;}
1981{ ac_configure_args1=; unset ac_configure_args1;}
1982
1983# When interrupted or exit'd, cleanup temporary files, and complete
1984# config.log.  We remove comments because anyway the quotes in there
1985# would cause problems or look ugly.
1986# WARNING: Use '\'' to represent an apostrophe within the trap.
1987# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1988trap 'exit_status=$?
1989  # Sanitize IFS.
1990  IFS=" ""	$as_nl"
1991  # Save into config.log some information that might help in debugging.
1992  {
1993    echo
1994
1995    printf "%s\n" "## ---------------- ##
1996## Cache variables. ##
1997## ---------------- ##"
1998    echo
1999    # The following way of writing the cache mishandles newlines in values,
2000(
2001  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2002    eval ac_val=\$$ac_var
2003    case $ac_val in #(
2004    *${as_nl}*)
2005      case $ac_var in #(
2006      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2007printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2008      esac
2009      case $ac_var in #(
2010      _ | IFS | as_nl) ;; #(
2011      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2012      *) { eval $ac_var=; unset $ac_var;} ;;
2013      esac ;;
2014    esac
2015  done
2016  (set) 2>&1 |
2017    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2018    *${as_nl}ac_space=\ *)
2019      sed -n \
2020	"s/'\''/'\''\\\\'\'''\''/g;
2021	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2022      ;; #(
2023    *)
2024      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2025      ;;
2026    esac |
2027    sort
2028)
2029    echo
2030
2031    printf "%s\n" "## ----------------- ##
2032## Output variables. ##
2033## ----------------- ##"
2034    echo
2035    for ac_var in $ac_subst_vars
2036    do
2037      eval ac_val=\$$ac_var
2038      case $ac_val in
2039      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2040      esac
2041      printf "%s\n" "$ac_var='\''$ac_val'\''"
2042    done | sort
2043    echo
2044
2045    if test -n "$ac_subst_files"; then
2046      printf "%s\n" "## ------------------- ##
2047## File substitutions. ##
2048## ------------------- ##"
2049      echo
2050      for ac_var in $ac_subst_files
2051      do
2052	eval ac_val=\$$ac_var
2053	case $ac_val in
2054	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055	esac
2056	printf "%s\n" "$ac_var='\''$ac_val'\''"
2057      done | sort
2058      echo
2059    fi
2060
2061    if test -s confdefs.h; then
2062      printf "%s\n" "## ----------- ##
2063## confdefs.h. ##
2064## ----------- ##"
2065      echo
2066      cat confdefs.h
2067      echo
2068    fi
2069    test "$ac_signal" != 0 &&
2070      printf "%s\n" "$as_me: caught signal $ac_signal"
2071    printf "%s\n" "$as_me: exit $exit_status"
2072  } >&5
2073  rm -f core *.core core.conftest.* &&
2074    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2075    exit $exit_status
2076' 0
2077for ac_signal in 1 2 13 15; do
2078  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2079done
2080ac_signal=0
2081
2082# confdefs.h avoids OS command line length limits that DEFS can exceed.
2083rm -f -r conftest* confdefs.h
2084
2085printf "%s\n" "/* confdefs.h */" > confdefs.h
2086
2087# Predefined preprocessor variables.
2088
2089printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2090
2091printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2092
2093printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2094
2095printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2096
2097printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2098
2099printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2100
2101
2102# Let the site file select an alternate cache file if it wants to.
2103# Prefer an explicitly selected file to automatically selected ones.
2104if test -n "$CONFIG_SITE"; then
2105  ac_site_files="$CONFIG_SITE"
2106elif test "x$prefix" != xNONE; then
2107  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2108else
2109  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2110fi
2111
2112for ac_site_file in $ac_site_files
2113do
2114  case $ac_site_file in #(
2115  */*) :
2116     ;; #(
2117  *) :
2118    ac_site_file=./$ac_site_file ;;
2119esac
2120  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2121    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2122printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2123    sed 's/^/| /' "$ac_site_file" >&5
2124    . "$ac_site_file" \
2125      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2126printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2127as_fn_error $? "failed to load site script $ac_site_file
2128See 'config.log' for more details" "$LINENO" 5; }
2129  fi
2130done
2131
2132if test -r "$cache_file"; then
2133  # Some versions of bash will fail to source /dev/null (special files
2134  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2135  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2136    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2137printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2138    case $cache_file in
2139      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2140      *)                      . "./$cache_file";;
2141    esac
2142  fi
2143else
2144  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2145printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2146  >$cache_file
2147fi
2148
2149# Test code for whether the C compiler supports C89 (global declarations)
2150ac_c_conftest_c89_globals='
2151/* Does the compiler advertise C89 conformance?
2152   Do not test the value of __STDC__, because some compilers set it to 0
2153   while being otherwise adequately conformant. */
2154#if !defined __STDC__
2155# error "Compiler does not advertise C89 conformance"
2156#endif
2157
2158#include <stddef.h>
2159#include <stdarg.h>
2160struct stat;
2161/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2162struct buf { int x; };
2163struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2164static char *e (char **p, int i)
2165{
2166  return p[i];
2167}
2168static char *f (char * (*g) (char **, int), char **p, ...)
2169{
2170  char *s;
2171  va_list v;
2172  va_start (v,p);
2173  s = g (p, va_arg (v,int));
2174  va_end (v);
2175  return s;
2176}
2177
2178/* C89 style stringification. */
2179#define noexpand_stringify(a) #a
2180const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2181
2182/* C89 style token pasting.  Exercises some of the corner cases that
2183   e.g. old MSVC gets wrong, but not very hard. */
2184#define noexpand_concat(a,b) a##b
2185#define expand_concat(a,b) noexpand_concat(a,b)
2186extern int vA;
2187extern int vbee;
2188#define aye A
2189#define bee B
2190int *pvA = &expand_concat(v,aye);
2191int *pvbee = &noexpand_concat(v,bee);
2192
2193/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2194   function prototypes and stuff, but not \xHH hex character constants.
2195   These do not provoke an error unfortunately, instead are silently treated
2196   as an "x".  The following induces an error, until -std is added to get
2197   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2198   array size at least.  It is necessary to write \x00 == 0 to get something
2199   that is true only with -std.  */
2200int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2201
2202/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2203   inside strings and character constants.  */
2204#define FOO(x) '\''x'\''
2205int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2206
2207int test (int i, double x);
2208struct s1 {int (*f) (int a);};
2209struct s2 {int (*f) (double a);};
2210int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2211               int, int);'
2212
2213# Test code for whether the C compiler supports C89 (body of main).
2214ac_c_conftest_c89_main='
2215ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2216'
2217
2218# Test code for whether the C compiler supports C99 (global declarations)
2219ac_c_conftest_c99_globals='
2220/* Does the compiler advertise C99 conformance? */
2221#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2222# error "Compiler does not advertise C99 conformance"
2223#endif
2224
2225// See if C++-style comments work.
2226
2227#include <stdbool.h>
2228extern int puts (const char *);
2229extern int printf (const char *, ...);
2230extern int dprintf (int, const char *, ...);
2231extern void *malloc (size_t);
2232extern void free (void *);
2233
2234// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2235// dprintf is used instead of fprintf to avoid needing to declare
2236// FILE and stderr.
2237#define debug(...) dprintf (2, __VA_ARGS__)
2238#define showlist(...) puts (#__VA_ARGS__)
2239#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2240static void
2241test_varargs_macros (void)
2242{
2243  int x = 1234;
2244  int y = 5678;
2245  debug ("Flag");
2246  debug ("X = %d\n", x);
2247  showlist (The first, second, and third items.);
2248  report (x>y, "x is %d but y is %d", x, y);
2249}
2250
2251// Check long long types.
2252#define BIG64 18446744073709551615ull
2253#define BIG32 4294967295ul
2254#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2255#if !BIG_OK
2256  #error "your preprocessor is broken"
2257#endif
2258#if BIG_OK
2259#else
2260  #error "your preprocessor is broken"
2261#endif
2262static long long int bignum = -9223372036854775807LL;
2263static unsigned long long int ubignum = BIG64;
2264
2265struct incomplete_array
2266{
2267  int datasize;
2268  double data[];
2269};
2270
2271struct named_init {
2272  int number;
2273  const wchar_t *name;
2274  double average;
2275};
2276
2277typedef const char *ccp;
2278
2279static inline int
2280test_restrict (ccp restrict text)
2281{
2282  // Iterate through items via the restricted pointer.
2283  // Also check for declarations in for loops.
2284  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2285    continue;
2286  return 0;
2287}
2288
2289// Check varargs and va_copy.
2290static bool
2291test_varargs (const char *format, ...)
2292{
2293  va_list args;
2294  va_start (args, format);
2295  va_list args_copy;
2296  va_copy (args_copy, args);
2297
2298  const char *str = "";
2299  int number = 0;
2300  float fnumber = 0;
2301
2302  while (*format)
2303    {
2304      switch (*format++)
2305	{
2306	case '\''s'\'': // string
2307	  str = va_arg (args_copy, const char *);
2308	  break;
2309	case '\''d'\'': // int
2310	  number = va_arg (args_copy, int);
2311	  break;
2312	case '\''f'\'': // float
2313	  fnumber = va_arg (args_copy, double);
2314	  break;
2315	default:
2316	  break;
2317	}
2318    }
2319  va_end (args_copy);
2320  va_end (args);
2321
2322  return *str && number && fnumber;
2323}
2324'
2325
2326# Test code for whether the C compiler supports C99 (body of main).
2327ac_c_conftest_c99_main='
2328  // Check bool.
2329  _Bool success = false;
2330  success |= (argc != 0);
2331
2332  // Check restrict.
2333  if (test_restrict ("String literal") == 0)
2334    success = true;
2335  char *restrict newvar = "Another string";
2336
2337  // Check varargs.
2338  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2339  test_varargs_macros ();
2340
2341  // Check flexible array members.
2342  struct incomplete_array *ia =
2343    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2344  ia->datasize = 10;
2345  for (int i = 0; i < ia->datasize; ++i)
2346    ia->data[i] = i * 1.234;
2347  // Work around memory leak warnings.
2348  free (ia);
2349
2350  // Check named initializers.
2351  struct named_init ni = {
2352    .number = 34,
2353    .name = L"Test wide string",
2354    .average = 543.34343,
2355  };
2356
2357  ni.number = 58;
2358
2359  int dynamic_array[ni.number];
2360  dynamic_array[0] = argv[0][0];
2361  dynamic_array[ni.number - 1] = 543;
2362
2363  // work around unused variable warnings
2364  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2365	 || dynamic_array[ni.number - 1] != 543);
2366'
2367
2368# Test code for whether the C compiler supports C11 (global declarations)
2369ac_c_conftest_c11_globals='
2370/* Does the compiler advertise C11 conformance? */
2371#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2372# error "Compiler does not advertise C11 conformance"
2373#endif
2374
2375// Check _Alignas.
2376char _Alignas (double) aligned_as_double;
2377char _Alignas (0) no_special_alignment;
2378extern char aligned_as_int;
2379char _Alignas (0) _Alignas (int) aligned_as_int;
2380
2381// Check _Alignof.
2382enum
2383{
2384  int_alignment = _Alignof (int),
2385  int_array_alignment = _Alignof (int[100]),
2386  char_alignment = _Alignof (char)
2387};
2388_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2389
2390// Check _Noreturn.
2391int _Noreturn does_not_return (void) { for (;;) continue; }
2392
2393// Check _Static_assert.
2394struct test_static_assert
2395{
2396  int x;
2397  _Static_assert (sizeof (int) <= sizeof (long int),
2398                  "_Static_assert does not work in struct");
2399  long int y;
2400};
2401
2402// Check UTF-8 literals.
2403#define u8 syntax error!
2404char const utf8_literal[] = u8"happens to be ASCII" "another string";
2405
2406// Check duplicate typedefs.
2407typedef long *long_ptr;
2408typedef long int *long_ptr;
2409typedef long_ptr long_ptr;
2410
2411// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2412struct anonymous
2413{
2414  union {
2415    struct { int i; int j; };
2416    struct { int k; long int l; } w;
2417  };
2418  int m;
2419} v1;
2420'
2421
2422# Test code for whether the C compiler supports C11 (body of main).
2423ac_c_conftest_c11_main='
2424  _Static_assert ((offsetof (struct anonymous, i)
2425		   == offsetof (struct anonymous, w.k)),
2426		  "Anonymous union alignment botch");
2427  v1.i = 2;
2428  v1.w.k = 5;
2429  ok |= v1.i != 5;
2430'
2431
2432# Test code for whether the C compiler supports C11 (complete).
2433ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2434${ac_c_conftest_c99_globals}
2435${ac_c_conftest_c11_globals}
2436
2437int
2438main (int argc, char **argv)
2439{
2440  int ok = 0;
2441  ${ac_c_conftest_c89_main}
2442  ${ac_c_conftest_c99_main}
2443  ${ac_c_conftest_c11_main}
2444  return ok;
2445}
2446"
2447
2448# Test code for whether the C compiler supports C99 (complete).
2449ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2450${ac_c_conftest_c99_globals}
2451
2452int
2453main (int argc, char **argv)
2454{
2455  int ok = 0;
2456  ${ac_c_conftest_c89_main}
2457  ${ac_c_conftest_c99_main}
2458  return ok;
2459}
2460"
2461
2462# Test code for whether the C compiler supports C89 (complete).
2463ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2464
2465int
2466main (int argc, char **argv)
2467{
2468  int ok = 0;
2469  ${ac_c_conftest_c89_main}
2470  return ok;
2471}
2472"
2473
2474as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2475as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2476as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2477as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2478as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2479as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2480as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2481as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2482as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2483
2484# Auxiliary files required by this configure script.
2485ac_aux_files="ltmain.sh missing config.guess config.sub compile install-sh"
2486
2487# Locations in which to look for auxiliary files.
2488ac_aux_dir_candidates="${srcdir}/."
2489
2490# Search for a directory containing all of the required auxiliary files,
2491# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2492# If we don't find one directory that contains all the files we need,
2493# we report the set of missing files from the *first* directory in
2494# $ac_aux_dir_candidates and give up.
2495ac_missing_aux_files=""
2496ac_first_candidate=:
2497printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499as_found=false
2500for as_dir in $ac_aux_dir_candidates
2501do
2502  IFS=$as_save_IFS
2503  case $as_dir in #(((
2504    '') as_dir=./ ;;
2505    */) ;;
2506    *) as_dir=$as_dir/ ;;
2507  esac
2508  as_found=:
2509
2510  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2511  ac_aux_dir_found=yes
2512  ac_install_sh=
2513  for ac_aux in $ac_aux_files
2514  do
2515    # As a special case, if "install-sh" is required, that requirement
2516    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2517    # and $ac_install_sh is set appropriately for whichever one is found.
2518    if test x"$ac_aux" = x"install-sh"
2519    then
2520      if 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}install.sh"; then
2524        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2525        ac_install_sh="${as_dir}install.sh -c"
2526      elif test -f "${as_dir}shtool"; then
2527        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2528        ac_install_sh="${as_dir}shtool install -c"
2529      else
2530        ac_aux_dir_found=no
2531        if $ac_first_candidate; then
2532          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2533        else
2534          break
2535        fi
2536      fi
2537    else
2538      if test -f "${as_dir}${ac_aux}"; then
2539        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2540      else
2541        ac_aux_dir_found=no
2542        if $ac_first_candidate; then
2543          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2544        else
2545          break
2546        fi
2547      fi
2548    fi
2549  done
2550  if test "$ac_aux_dir_found" = yes; then
2551    ac_aux_dir="$as_dir"
2552    break
2553  fi
2554  ac_first_candidate=false
2555
2556  as_found=false
2557done
2558IFS=$as_save_IFS
2559if $as_found
2560then :
2561
2562else case e in #(
2563  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2564esac
2565fi
2566
2567
2568# These three variables are undocumented and unsupported,
2569# and are intended to be withdrawn in a future Autoconf release.
2570# They can cause serious problems if a builder's source tree is in a directory
2571# whose full name contains unusual characters.
2572if test -f "${ac_aux_dir}config.guess"; then
2573  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2574fi
2575if test -f "${ac_aux_dir}config.sub"; then
2576  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2577fi
2578if test -f "$ac_aux_dir/configure"; then
2579  ac_configure="$SHELL ${ac_aux_dir}configure"
2580fi
2581
2582# Check that the precious variables saved in the cache have kept the same
2583# value.
2584ac_cache_corrupted=false
2585for ac_var in $ac_precious_vars; do
2586  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2587  eval ac_new_set=\$ac_env_${ac_var}_set
2588  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2589  eval ac_new_val=\$ac_env_${ac_var}_value
2590  case $ac_old_set,$ac_new_set in
2591    set,)
2592      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2593printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2594      ac_cache_corrupted=: ;;
2595    ,set)
2596      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2597printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2598      ac_cache_corrupted=: ;;
2599    ,);;
2600    *)
2601      if test "x$ac_old_val" != "x$ac_new_val"; then
2602	# differences in whitespace do not lead to failure.
2603	ac_old_val_w=`echo x $ac_old_val`
2604	ac_new_val_w=`echo x $ac_new_val`
2605	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2606	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2607printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2608	  ac_cache_corrupted=:
2609	else
2610	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2611printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2612	  eval $ac_var=\$ac_old_val
2613	fi
2614	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2615printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2616	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2617printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2618      fi;;
2619  esac
2620  # Pass precious variables to config.status.
2621  if test "$ac_new_set" = set; then
2622    case $ac_new_val in
2623    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2624    *) ac_arg=$ac_var=$ac_new_val ;;
2625    esac
2626    case " $ac_configure_args " in
2627      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2628      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2629    esac
2630  fi
2631done
2632if $ac_cache_corrupted; then
2633  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2634printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2635  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2636printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2637  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2638	    and start over" "$LINENO" 5
2639fi
2640## -------------------- ##
2641## Main body of script. ##
2642## -------------------- ##
2643
2644ac_ext=c
2645ac_cpp='$CPP $CPPFLAGS'
2646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2648ac_compiler_gnu=$ac_cv_c_compiler_gnu
2649
2650
2651
2652ac_config_headers="$ac_config_headers config.h"
2653
2654
2655# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669  # Find a good install program.  We prefer a C program (faster),
2670# so one script is as good as another.  But avoid the broken or
2671# incompatible versions:
2672# SysV /etc/install, /usr/sbin/install
2673# SunOS /usr/etc/install
2674# IRIX /sbin/install
2675# AIX /bin/install
2676# AmigaOS /C/install, which installs bootblocks on floppy discs
2677# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2678# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2679# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2680# OS/2's system install, which has a completely different semantic
2681# ./install, which can be erroneously created by make from ./install.sh.
2682# Reject install programs that cannot install multiple files.
2683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2684printf %s "checking for a BSD-compatible install... " >&6; }
2685if test -z "$INSTALL"; then
2686if test ${ac_cv_path_install+y}
2687then :
2688  printf %s "(cached) " >&6
2689else case e in #(
2690  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693  IFS=$as_save_IFS
2694  case $as_dir in #(((
2695    '') as_dir=./ ;;
2696    */) ;;
2697    *) as_dir=$as_dir/ ;;
2698  esac
2699    # Account for fact that we put trailing slashes in our PATH walk.
2700case $as_dir in #((
2701  ./ | /[cC]/* | \
2702  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2703  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2704  /usr/ucb/* ) ;;
2705  *)
2706    # OSF1 and SCO ODT 3.0 have their own names for install.
2707    # Don't use installbsd from OSF since it installs stuff as root
2708    # by default.
2709    for ac_prog in ginstall scoinst install; do
2710      for ac_exec_ext in '' $ac_executable_extensions; do
2711	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2712	  if test $ac_prog = install &&
2713	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2714	    # AIX install.  It has an incompatible calling convention.
2715	    :
2716	  elif test $ac_prog = install &&
2717	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2718	    # program-specific install script used by HP pwplus--don't use.
2719	    :
2720	  else
2721	    rm -rf conftest.one conftest.two conftest.dir
2722	    echo one > conftest.one
2723	    echo two > conftest.two
2724	    mkdir conftest.dir
2725	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2726	      test -s conftest.one && test -s conftest.two &&
2727	      test -s conftest.dir/conftest.one &&
2728	      test -s conftest.dir/conftest.two
2729	    then
2730	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2731	      break 3
2732	    fi
2733	  fi
2734	fi
2735      done
2736    done
2737    ;;
2738esac
2739
2740  done
2741IFS=$as_save_IFS
2742
2743rm -rf conftest.one conftest.two conftest.dir
2744 ;;
2745esac
2746fi
2747  if test ${ac_cv_path_install+y}; then
2748    INSTALL=$ac_cv_path_install
2749  else
2750    # As a last resort, use the slow shell script.  Don't cache a
2751    # value for INSTALL within a source directory, because that will
2752    # break other packages using the cache if that directory is
2753    # removed, or if the value is a relative name.
2754    INSTALL=$ac_install_sh
2755  fi
2756fi
2757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2758printf "%s\n" "$INSTALL" >&6; }
2759
2760# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2761# It thinks the first close brace ends the variable substitution.
2762test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2763
2764test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2765
2766test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778# Expand $ac_aux_dir to an absolute path.
2779am_aux_dir=`cd "$ac_aux_dir" && pwd`
2780
2781ac_ext=c
2782ac_cpp='$CPP $CPPFLAGS'
2783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786if test -n "$ac_tool_prefix"; then
2787  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2788set dummy ${ac_tool_prefix}gcc; ac_word=$2
2789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790printf %s "checking for $ac_word... " >&6; }
2791if test ${ac_cv_prog_CC+y}
2792then :
2793  printf %s "(cached) " >&6
2794else case e in #(
2795  e) if test -n "$CC"; then
2796  ac_cv_prog_CC="$CC" # Let the user override the test.
2797else
2798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799for as_dir in $PATH
2800do
2801  IFS=$as_save_IFS
2802  case $as_dir in #(((
2803    '') as_dir=./ ;;
2804    */) ;;
2805    *) as_dir=$as_dir/ ;;
2806  esac
2807    for ac_exec_ext in '' $ac_executable_extensions; do
2808  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2809    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2810    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2811    break 2
2812  fi
2813done
2814  done
2815IFS=$as_save_IFS
2816
2817fi ;;
2818esac
2819fi
2820CC=$ac_cv_prog_CC
2821if test -n "$CC"; then
2822  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2823printf "%s\n" "$CC" >&6; }
2824else
2825  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826printf "%s\n" "no" >&6; }
2827fi
2828
2829
2830fi
2831if test -z "$ac_cv_prog_CC"; then
2832  ac_ct_CC=$CC
2833  # Extract the first word of "gcc", so it can be a program name with args.
2834set dummy gcc; ac_word=$2
2835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2836printf %s "checking for $ac_word... " >&6; }
2837if test ${ac_cv_prog_ac_ct_CC+y}
2838then :
2839  printf %s "(cached) " >&6
2840else case e in #(
2841  e) if test -n "$ac_ct_CC"; then
2842  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2843else
2844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845for as_dir in $PATH
2846do
2847  IFS=$as_save_IFS
2848  case $as_dir in #(((
2849    '') as_dir=./ ;;
2850    */) ;;
2851    *) as_dir=$as_dir/ ;;
2852  esac
2853    for ac_exec_ext in '' $ac_executable_extensions; do
2854  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2855    ac_cv_prog_ac_ct_CC="gcc"
2856    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2857    break 2
2858  fi
2859done
2860  done
2861IFS=$as_save_IFS
2862
2863fi ;;
2864esac
2865fi
2866ac_ct_CC=$ac_cv_prog_ac_ct_CC
2867if test -n "$ac_ct_CC"; then
2868  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2869printf "%s\n" "$ac_ct_CC" >&6; }
2870else
2871  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872printf "%s\n" "no" >&6; }
2873fi
2874
2875  if test "x$ac_ct_CC" = x; then
2876    CC=""
2877  else
2878    case $cross_compiling:$ac_tool_warned in
2879yes:)
2880{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2881printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2882ac_tool_warned=yes ;;
2883esac
2884    CC=$ac_ct_CC
2885  fi
2886else
2887  CC="$ac_cv_prog_CC"
2888fi
2889
2890if test -z "$CC"; then
2891          if test -n "$ac_tool_prefix"; then
2892    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2893set dummy ${ac_tool_prefix}cc; ac_word=$2
2894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895printf %s "checking for $ac_word... " >&6; }
2896if test ${ac_cv_prog_CC+y}
2897then :
2898  printf %s "(cached) " >&6
2899else case e in #(
2900  e) if test -n "$CC"; then
2901  ac_cv_prog_CC="$CC" # Let the user override the test.
2902else
2903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904for as_dir in $PATH
2905do
2906  IFS=$as_save_IFS
2907  case $as_dir in #(((
2908    '') as_dir=./ ;;
2909    */) ;;
2910    *) as_dir=$as_dir/ ;;
2911  esac
2912    for ac_exec_ext in '' $ac_executable_extensions; do
2913  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2914    ac_cv_prog_CC="${ac_tool_prefix}cc"
2915    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2916    break 2
2917  fi
2918done
2919  done
2920IFS=$as_save_IFS
2921
2922fi ;;
2923esac
2924fi
2925CC=$ac_cv_prog_CC
2926if test -n "$CC"; then
2927  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2928printf "%s\n" "$CC" >&6; }
2929else
2930  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2931printf "%s\n" "no" >&6; }
2932fi
2933
2934
2935  fi
2936fi
2937if test -z "$CC"; then
2938  # Extract the first word of "cc", so it can be a program name with args.
2939set dummy cc; ac_word=$2
2940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941printf %s "checking for $ac_word... " >&6; }
2942if test ${ac_cv_prog_CC+y}
2943then :
2944  printf %s "(cached) " >&6
2945else case e in #(
2946  e) if test -n "$CC"; then
2947  ac_cv_prog_CC="$CC" # Let the user override the test.
2948else
2949  ac_prog_rejected=no
2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951for as_dir in $PATH
2952do
2953  IFS=$as_save_IFS
2954  case $as_dir in #(((
2955    '') as_dir=./ ;;
2956    */) ;;
2957    *) as_dir=$as_dir/ ;;
2958  esac
2959    for ac_exec_ext in '' $ac_executable_extensions; do
2960  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2961    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2962       ac_prog_rejected=yes
2963       continue
2964     fi
2965    ac_cv_prog_CC="cc"
2966    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2967    break 2
2968  fi
2969done
2970  done
2971IFS=$as_save_IFS
2972
2973if test $ac_prog_rejected = yes; then
2974  # We found a bogon in the path, so make sure we never use it.
2975  set dummy $ac_cv_prog_CC
2976  shift
2977  if test $# != 0; then
2978    # We chose a different compiler from the bogus one.
2979    # However, it has the same basename, so the bogon will be chosen
2980    # first if we set CC to just the basename; use the full file name.
2981    shift
2982    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2983  fi
2984fi
2985fi ;;
2986esac
2987fi
2988CC=$ac_cv_prog_CC
2989if test -n "$CC"; then
2990  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2991printf "%s\n" "$CC" >&6; }
2992else
2993  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994printf "%s\n" "no" >&6; }
2995fi
2996
2997
2998fi
2999if test -z "$CC"; then
3000  if test -n "$ac_tool_prefix"; then
3001  for ac_prog in cl.exe
3002  do
3003    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3004set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006printf %s "checking for $ac_word... " >&6; }
3007if test ${ac_cv_prog_CC+y}
3008then :
3009  printf %s "(cached) " >&6
3010else case e in #(
3011  e) if test -n "$CC"; then
3012  ac_cv_prog_CC="$CC" # Let the user override the test.
3013else
3014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015for as_dir in $PATH
3016do
3017  IFS=$as_save_IFS
3018  case $as_dir in #(((
3019    '') as_dir=./ ;;
3020    */) ;;
3021    *) as_dir=$as_dir/ ;;
3022  esac
3023    for ac_exec_ext in '' $ac_executable_extensions; do
3024  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3025    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3026    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3027    break 2
3028  fi
3029done
3030  done
3031IFS=$as_save_IFS
3032
3033fi ;;
3034esac
3035fi
3036CC=$ac_cv_prog_CC
3037if test -n "$CC"; then
3038  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3039printf "%s\n" "$CC" >&6; }
3040else
3041  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042printf "%s\n" "no" >&6; }
3043fi
3044
3045
3046    test -n "$CC" && break
3047  done
3048fi
3049if test -z "$CC"; then
3050  ac_ct_CC=$CC
3051  for ac_prog in cl.exe
3052do
3053  # Extract the first word of "$ac_prog", so it can be a program name with args.
3054set dummy $ac_prog; ac_word=$2
3055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056printf %s "checking for $ac_word... " >&6; }
3057if test ${ac_cv_prog_ac_ct_CC+y}
3058then :
3059  printf %s "(cached) " >&6
3060else case e in #(
3061  e) if test -n "$ac_ct_CC"; then
3062  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3063else
3064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065for as_dir in $PATH
3066do
3067  IFS=$as_save_IFS
3068  case $as_dir in #(((
3069    '') as_dir=./ ;;
3070    */) ;;
3071    *) as_dir=$as_dir/ ;;
3072  esac
3073    for ac_exec_ext in '' $ac_executable_extensions; do
3074  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3075    ac_cv_prog_ac_ct_CC="$ac_prog"
3076    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3077    break 2
3078  fi
3079done
3080  done
3081IFS=$as_save_IFS
3082
3083fi ;;
3084esac
3085fi
3086ac_ct_CC=$ac_cv_prog_ac_ct_CC
3087if test -n "$ac_ct_CC"; then
3088  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3089printf "%s\n" "$ac_ct_CC" >&6; }
3090else
3091  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092printf "%s\n" "no" >&6; }
3093fi
3094
3095
3096  test -n "$ac_ct_CC" && break
3097done
3098
3099  if test "x$ac_ct_CC" = x; then
3100    CC=""
3101  else
3102    case $cross_compiling:$ac_tool_warned in
3103yes:)
3104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3105printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3106ac_tool_warned=yes ;;
3107esac
3108    CC=$ac_ct_CC
3109  fi
3110fi
3111
3112fi
3113if test -z "$CC"; then
3114  if test -n "$ac_tool_prefix"; then
3115  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3116set dummy ${ac_tool_prefix}clang; ac_word=$2
3117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118printf %s "checking for $ac_word... " >&6; }
3119if test ${ac_cv_prog_CC+y}
3120then :
3121  printf %s "(cached) " >&6
3122else case e in #(
3123  e) if test -n "$CC"; then
3124  ac_cv_prog_CC="$CC" # Let the user override the test.
3125else
3126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127for as_dir in $PATH
3128do
3129  IFS=$as_save_IFS
3130  case $as_dir in #(((
3131    '') as_dir=./ ;;
3132    */) ;;
3133    *) as_dir=$as_dir/ ;;
3134  esac
3135    for ac_exec_ext in '' $ac_executable_extensions; do
3136  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3137    ac_cv_prog_CC="${ac_tool_prefix}clang"
3138    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3139    break 2
3140  fi
3141done
3142  done
3143IFS=$as_save_IFS
3144
3145fi ;;
3146esac
3147fi
3148CC=$ac_cv_prog_CC
3149if test -n "$CC"; then
3150  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3151printf "%s\n" "$CC" >&6; }
3152else
3153  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154printf "%s\n" "no" >&6; }
3155fi
3156
3157
3158fi
3159if test -z "$ac_cv_prog_CC"; then
3160  ac_ct_CC=$CC
3161  # Extract the first word of "clang", so it can be a program name with args.
3162set dummy clang; ac_word=$2
3163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164printf %s "checking for $ac_word... " >&6; }
3165if test ${ac_cv_prog_ac_ct_CC+y}
3166then :
3167  printf %s "(cached) " >&6
3168else case e in #(
3169  e) if test -n "$ac_ct_CC"; then
3170  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3171else
3172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173for as_dir in $PATH
3174do
3175  IFS=$as_save_IFS
3176  case $as_dir in #(((
3177    '') as_dir=./ ;;
3178    */) ;;
3179    *) as_dir=$as_dir/ ;;
3180  esac
3181    for ac_exec_ext in '' $ac_executable_extensions; do
3182  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3183    ac_cv_prog_ac_ct_CC="clang"
3184    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3185    break 2
3186  fi
3187done
3188  done
3189IFS=$as_save_IFS
3190
3191fi ;;
3192esac
3193fi
3194ac_ct_CC=$ac_cv_prog_ac_ct_CC
3195if test -n "$ac_ct_CC"; then
3196  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3197printf "%s\n" "$ac_ct_CC" >&6; }
3198else
3199  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200printf "%s\n" "no" >&6; }
3201fi
3202
3203  if test "x$ac_ct_CC" = x; then
3204    CC=""
3205  else
3206    case $cross_compiling:$ac_tool_warned in
3207yes:)
3208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3209printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3210ac_tool_warned=yes ;;
3211esac
3212    CC=$ac_ct_CC
3213  fi
3214else
3215  CC="$ac_cv_prog_CC"
3216fi
3217
3218fi
3219
3220
3221test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3222printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3223as_fn_error $? "no acceptable C compiler found in \$PATH
3224See 'config.log' for more details" "$LINENO" 5; }
3225
3226# Provide some information about the compiler.
3227printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3228set X $ac_compile
3229ac_compiler=$2
3230for ac_option in --version -v -V -qversion -version; do
3231  { { ac_try="$ac_compiler $ac_option >&5"
3232case "(($ac_try" in
3233  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234  *) ac_try_echo=$ac_try;;
3235esac
3236eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237printf "%s\n" "$ac_try_echo"; } >&5
3238  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3239  ac_status=$?
3240  if test -s conftest.err; then
3241    sed '10a\
3242... rest of stderr output deleted ...
3243         10q' conftest.err >conftest.er1
3244    cat conftest.er1 >&5
3245  fi
3246  rm -f conftest.er1 conftest.err
3247  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248  test $ac_status = 0; }
3249done
3250
3251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3252/* end confdefs.h.  */
3253
3254int
3255main (void)
3256{
3257
3258  ;
3259  return 0;
3260}
3261_ACEOF
3262ac_clean_files_save=$ac_clean_files
3263ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3264# Try to create an executable without -o first, disregard a.out.
3265# It will help us diagnose broken compilers, and finding out an intuition
3266# of exeext.
3267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3268printf %s "checking whether the C compiler works... " >&6; }
3269ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3270
3271# The possible output files:
3272ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3273
3274ac_rmfiles=
3275for ac_file in $ac_files
3276do
3277  case $ac_file in
3278    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3279    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3280  esac
3281done
3282rm -f $ac_rmfiles
3283
3284if { { ac_try="$ac_link_default"
3285case "(($ac_try" in
3286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287  *) ac_try_echo=$ac_try;;
3288esac
3289eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290printf "%s\n" "$ac_try_echo"; } >&5
3291  (eval "$ac_link_default") 2>&5
3292  ac_status=$?
3293  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3294  test $ac_status = 0; }
3295then :
3296  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3297# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3298# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3299# so that the user can short-circuit this test for compilers unknown to
3300# Autoconf.
3301for ac_file in $ac_files ''
3302do
3303  test -f "$ac_file" || continue
3304  case $ac_file in
3305    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3306	;;
3307    [ab].out )
3308	# We found the default executable, but exeext='' is most
3309	# certainly right.
3310	break;;
3311    *.* )
3312	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3313	then :; else
3314	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3315	fi
3316	# We set ac_cv_exeext here because the later test for it is not
3317	# safe: cross compilers may not add the suffix if given an '-o'
3318	# argument, so we may need to know it at that point already.
3319	# Even if this section looks crufty: it has the advantage of
3320	# actually working.
3321	break;;
3322    * )
3323	break;;
3324  esac
3325done
3326test "$ac_cv_exeext" = no && ac_cv_exeext=
3327
3328else case e in #(
3329  e) ac_file='' ;;
3330esac
3331fi
3332if test -z "$ac_file"
3333then :
3334  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335printf "%s\n" "no" >&6; }
3336printf "%s\n" "$as_me: failed program was:" >&5
3337sed 's/^/| /' conftest.$ac_ext >&5
3338
3339{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3340printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3341as_fn_error 77 "C compiler cannot create executables
3342See 'config.log' for more details" "$LINENO" 5; }
3343else case e in #(
3344  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3345printf "%s\n" "yes" >&6; } ;;
3346esac
3347fi
3348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3349printf %s "checking for C compiler default output file name... " >&6; }
3350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3351printf "%s\n" "$ac_file" >&6; }
3352ac_exeext=$ac_cv_exeext
3353
3354rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3355ac_clean_files=$ac_clean_files_save
3356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3357printf %s "checking for suffix of executables... " >&6; }
3358if { { ac_try="$ac_link"
3359case "(($ac_try" in
3360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361  *) ac_try_echo=$ac_try;;
3362esac
3363eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3364printf "%s\n" "$ac_try_echo"; } >&5
3365  (eval "$ac_link") 2>&5
3366  ac_status=$?
3367  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368  test $ac_status = 0; }
3369then :
3370  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3371# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
3372# work properly (i.e., refer to 'conftest.exe'), while it won't with
3373# 'rm'.
3374for ac_file in conftest.exe conftest conftest.*; do
3375  test -f "$ac_file" || continue
3376  case $ac_file in
3377    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3378    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3379	  break;;
3380    * ) break;;
3381  esac
3382done
3383else case e in #(
3384  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3385printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3386as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3387See 'config.log' for more details" "$LINENO" 5; } ;;
3388esac
3389fi
3390rm -f conftest conftest$ac_cv_exeext
3391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3392printf "%s\n" "$ac_cv_exeext" >&6; }
3393
3394rm -f conftest.$ac_ext
3395EXEEXT=$ac_cv_exeext
3396ac_exeext=$EXEEXT
3397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398/* end confdefs.h.  */
3399#include <stdio.h>
3400int
3401main (void)
3402{
3403FILE *f = fopen ("conftest.out", "w");
3404 if (!f)
3405  return 1;
3406 return ferror (f) || fclose (f) != 0;
3407
3408  ;
3409  return 0;
3410}
3411_ACEOF
3412ac_clean_files="$ac_clean_files conftest.out"
3413# Check that the compiler produces executables we can run.  If not, either
3414# the compiler is broken, or we cross compile.
3415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3416printf %s "checking whether we are cross compiling... " >&6; }
3417if test "$cross_compiling" != yes; then
3418  { { ac_try="$ac_link"
3419case "(($ac_try" in
3420  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421  *) ac_try_echo=$ac_try;;
3422esac
3423eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424printf "%s\n" "$ac_try_echo"; } >&5
3425  (eval "$ac_link") 2>&5
3426  ac_status=$?
3427  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428  test $ac_status = 0; }
3429  if { ac_try='./conftest$ac_cv_exeext'
3430  { { case "(($ac_try" in
3431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432  *) ac_try_echo=$ac_try;;
3433esac
3434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435printf "%s\n" "$ac_try_echo"; } >&5
3436  (eval "$ac_try") 2>&5
3437  ac_status=$?
3438  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439  test $ac_status = 0; }; }; then
3440    cross_compiling=no
3441  else
3442    if test "$cross_compiling" = maybe; then
3443	cross_compiling=yes
3444    else
3445	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3446printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3447as_fn_error 77 "cannot run C compiled programs.
3448If you meant to cross compile, use '--host'.
3449See 'config.log' for more details" "$LINENO" 5; }
3450    fi
3451  fi
3452fi
3453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3454printf "%s\n" "$cross_compiling" >&6; }
3455
3456rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3457  conftest.o conftest.obj conftest.out
3458ac_clean_files=$ac_clean_files_save
3459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3460printf %s "checking for suffix of object files... " >&6; }
3461if test ${ac_cv_objext+y}
3462then :
3463  printf %s "(cached) " >&6
3464else case e in #(
3465  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466/* end confdefs.h.  */
3467
3468int
3469main (void)
3470{
3471
3472  ;
3473  return 0;
3474}
3475_ACEOF
3476rm -f conftest.o conftest.obj
3477if { { ac_try="$ac_compile"
3478case "(($ac_try" in
3479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480  *) ac_try_echo=$ac_try;;
3481esac
3482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3483printf "%s\n" "$ac_try_echo"; } >&5
3484  (eval "$ac_compile") 2>&5
3485  ac_status=$?
3486  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3487  test $ac_status = 0; }
3488then :
3489  for ac_file in conftest.o conftest.obj conftest.*; do
3490  test -f "$ac_file" || continue;
3491  case $ac_file in
3492    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3493    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3494       break;;
3495  esac
3496done
3497else case e in #(
3498  e) printf "%s\n" "$as_me: failed program was:" >&5
3499sed 's/^/| /' conftest.$ac_ext >&5
3500
3501{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3502printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3503as_fn_error $? "cannot compute suffix of object files: cannot compile
3504See 'config.log' for more details" "$LINENO" 5; } ;;
3505esac
3506fi
3507rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3508esac
3509fi
3510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3511printf "%s\n" "$ac_cv_objext" >&6; }
3512OBJEXT=$ac_cv_objext
3513ac_objext=$OBJEXT
3514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3515printf %s "checking whether the compiler supports GNU C... " >&6; }
3516if test ${ac_cv_c_compiler_gnu+y}
3517then :
3518  printf %s "(cached) " >&6
3519else case e in #(
3520  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521/* end confdefs.h.  */
3522
3523int
3524main (void)
3525{
3526#ifndef __GNUC__
3527       choke me
3528#endif
3529
3530  ;
3531  return 0;
3532}
3533_ACEOF
3534if ac_fn_c_try_compile "$LINENO"
3535then :
3536  ac_compiler_gnu=yes
3537else case e in #(
3538  e) ac_compiler_gnu=no ;;
3539esac
3540fi
3541rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3542ac_cv_c_compiler_gnu=$ac_compiler_gnu
3543 ;;
3544esac
3545fi
3546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3547printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3548ac_compiler_gnu=$ac_cv_c_compiler_gnu
3549
3550if test $ac_compiler_gnu = yes; then
3551  GCC=yes
3552else
3553  GCC=
3554fi
3555ac_test_CFLAGS=${CFLAGS+y}
3556ac_save_CFLAGS=$CFLAGS
3557{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3558printf %s "checking whether $CC accepts -g... " >&6; }
3559if test ${ac_cv_prog_cc_g+y}
3560then :
3561  printf %s "(cached) " >&6
3562else case e in #(
3563  e) ac_save_c_werror_flag=$ac_c_werror_flag
3564   ac_c_werror_flag=yes
3565   ac_cv_prog_cc_g=no
3566   CFLAGS="-g"
3567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568/* end confdefs.h.  */
3569
3570int
3571main (void)
3572{
3573
3574  ;
3575  return 0;
3576}
3577_ACEOF
3578if ac_fn_c_try_compile "$LINENO"
3579then :
3580  ac_cv_prog_cc_g=yes
3581else case e in #(
3582  e) CFLAGS=""
3583      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584/* end confdefs.h.  */
3585
3586int
3587main (void)
3588{
3589
3590  ;
3591  return 0;
3592}
3593_ACEOF
3594if ac_fn_c_try_compile "$LINENO"
3595then :
3596
3597else case e in #(
3598  e) ac_c_werror_flag=$ac_save_c_werror_flag
3599	 CFLAGS="-g"
3600	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601/* end confdefs.h.  */
3602
3603int
3604main (void)
3605{
3606
3607  ;
3608  return 0;
3609}
3610_ACEOF
3611if ac_fn_c_try_compile "$LINENO"
3612then :
3613  ac_cv_prog_cc_g=yes
3614fi
3615rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3616esac
3617fi
3618rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3619esac
3620fi
3621rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3622   ac_c_werror_flag=$ac_save_c_werror_flag ;;
3623esac
3624fi
3625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3626printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3627if test $ac_test_CFLAGS; then
3628  CFLAGS=$ac_save_CFLAGS
3629elif test $ac_cv_prog_cc_g = yes; then
3630  if test "$GCC" = yes; then
3631    CFLAGS="-g -O2"
3632  else
3633    CFLAGS="-g"
3634  fi
3635else
3636  if test "$GCC" = yes; then
3637    CFLAGS="-O2"
3638  else
3639    CFLAGS=
3640  fi
3641fi
3642ac_prog_cc_stdc=no
3643if test x$ac_prog_cc_stdc = xno
3644then :
3645  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3646printf %s "checking for $CC option to enable C11 features... " >&6; }
3647if test ${ac_cv_prog_cc_c11+y}
3648then :
3649  printf %s "(cached) " >&6
3650else case e in #(
3651  e) ac_cv_prog_cc_c11=no
3652ac_save_CC=$CC
3653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654/* end confdefs.h.  */
3655$ac_c_conftest_c11_program
3656_ACEOF
3657for ac_arg in '' -std=gnu11
3658do
3659  CC="$ac_save_CC $ac_arg"
3660  if ac_fn_c_try_compile "$LINENO"
3661then :
3662  ac_cv_prog_cc_c11=$ac_arg
3663fi
3664rm -f core conftest.err conftest.$ac_objext conftest.beam
3665  test "x$ac_cv_prog_cc_c11" != "xno" && break
3666done
3667rm -f conftest.$ac_ext
3668CC=$ac_save_CC ;;
3669esac
3670fi
3671
3672if test "x$ac_cv_prog_cc_c11" = xno
3673then :
3674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3675printf "%s\n" "unsupported" >&6; }
3676else case e in #(
3677  e) if test "x$ac_cv_prog_cc_c11" = x
3678then :
3679  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3680printf "%s\n" "none needed" >&6; }
3681else case e in #(
3682  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3683printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3684     CC="$CC $ac_cv_prog_cc_c11" ;;
3685esac
3686fi
3687  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3688  ac_prog_cc_stdc=c11 ;;
3689esac
3690fi
3691fi
3692if test x$ac_prog_cc_stdc = xno
3693then :
3694  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3695printf %s "checking for $CC option to enable C99 features... " >&6; }
3696if test ${ac_cv_prog_cc_c99+y}
3697then :
3698  printf %s "(cached) " >&6
3699else case e in #(
3700  e) ac_cv_prog_cc_c99=no
3701ac_save_CC=$CC
3702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703/* end confdefs.h.  */
3704$ac_c_conftest_c99_program
3705_ACEOF
3706for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3707do
3708  CC="$ac_save_CC $ac_arg"
3709  if ac_fn_c_try_compile "$LINENO"
3710then :
3711  ac_cv_prog_cc_c99=$ac_arg
3712fi
3713rm -f core conftest.err conftest.$ac_objext conftest.beam
3714  test "x$ac_cv_prog_cc_c99" != "xno" && break
3715done
3716rm -f conftest.$ac_ext
3717CC=$ac_save_CC ;;
3718esac
3719fi
3720
3721if test "x$ac_cv_prog_cc_c99" = xno
3722then :
3723  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3724printf "%s\n" "unsupported" >&6; }
3725else case e in #(
3726  e) if test "x$ac_cv_prog_cc_c99" = x
3727then :
3728  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3729printf "%s\n" "none needed" >&6; }
3730else case e in #(
3731  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3732printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3733     CC="$CC $ac_cv_prog_cc_c99" ;;
3734esac
3735fi
3736  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3737  ac_prog_cc_stdc=c99 ;;
3738esac
3739fi
3740fi
3741if test x$ac_prog_cc_stdc = xno
3742then :
3743  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3744printf %s "checking for $CC option to enable C89 features... " >&6; }
3745if test ${ac_cv_prog_cc_c89+y}
3746then :
3747  printf %s "(cached) " >&6
3748else case e in #(
3749  e) ac_cv_prog_cc_c89=no
3750ac_save_CC=$CC
3751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752/* end confdefs.h.  */
3753$ac_c_conftest_c89_program
3754_ACEOF
3755for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3756do
3757  CC="$ac_save_CC $ac_arg"
3758  if ac_fn_c_try_compile "$LINENO"
3759then :
3760  ac_cv_prog_cc_c89=$ac_arg
3761fi
3762rm -f core conftest.err conftest.$ac_objext conftest.beam
3763  test "x$ac_cv_prog_cc_c89" != "xno" && break
3764done
3765rm -f conftest.$ac_ext
3766CC=$ac_save_CC ;;
3767esac
3768fi
3769
3770if test "x$ac_cv_prog_cc_c89" = xno
3771then :
3772  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3773printf "%s\n" "unsupported" >&6; }
3774else case e in #(
3775  e) if test "x$ac_cv_prog_cc_c89" = x
3776then :
3777  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3778printf "%s\n" "none needed" >&6; }
3779else case e in #(
3780  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3781printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3782     CC="$CC $ac_cv_prog_cc_c89" ;;
3783esac
3784fi
3785  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3786  ac_prog_cc_stdc=c89 ;;
3787esac
3788fi
3789fi
3790
3791ac_ext=c
3792ac_cpp='$CPP $CPPFLAGS'
3793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795ac_compiler_gnu=$ac_cv_c_compiler_gnu
3796
3797
3798  ac_ext=c
3799ac_cpp='$CPP $CPPFLAGS'
3800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802ac_compiler_gnu=$ac_cv_c_compiler_gnu
3803{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3804printf %s "checking whether $CC understands -c and -o together... " >&6; }
3805if test ${am_cv_prog_cc_c_o+y}
3806then :
3807  printf %s "(cached) " >&6
3808else case e in #(
3809  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810/* end confdefs.h.  */
3811
3812int
3813main (void)
3814{
3815
3816  ;
3817  return 0;
3818}
3819_ACEOF
3820  # Make sure it works both with $CC and with simple cc.
3821  # Following AC_PROG_CC_C_O, we do the test twice because some
3822  # compilers refuse to overwrite an existing .o file with -o,
3823  # though they will create one.
3824  am_cv_prog_cc_c_o=yes
3825  for am_i in 1 2; do
3826    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3827   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3828   ac_status=$?
3829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830   (exit $ac_status); } \
3831         && test -f conftest2.$ac_objext; then
3832      : OK
3833    else
3834      am_cv_prog_cc_c_o=no
3835      break
3836    fi
3837  done
3838  rm -f core conftest*
3839  unset am_i ;;
3840esac
3841fi
3842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3843printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3844if test "$am_cv_prog_cc_c_o" != yes; then
3845   # Losing compiler, so override with the script.
3846   # FIXME: It is wrong to rewrite CC.
3847   # But if we don't then we get into trouble of one sort or another.
3848   # A longer-term fix would be to have automake use am__CC in this case,
3849   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3850   CC="$am_aux_dir/compile $CC"
3851fi
3852ac_ext=c
3853ac_cpp='$CPP $CPPFLAGS'
3854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856ac_compiler_gnu=$ac_cv_c_compiler_gnu
3857
3858
3859
3860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
3861printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
3862if test ${ac_cv_c_undeclared_builtin_options+y}
3863then :
3864  printf %s "(cached) " >&6
3865else case e in #(
3866  e) ac_save_CFLAGS=$CFLAGS
3867   ac_cv_c_undeclared_builtin_options='cannot detect'
3868   for ac_arg in '' -fno-builtin; do
3869     CFLAGS="$ac_save_CFLAGS $ac_arg"
3870     # This test program should *not* compile successfully.
3871     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3872/* end confdefs.h.  */
3873
3874int
3875main (void)
3876{
3877(void) strchr;
3878  ;
3879  return 0;
3880}
3881_ACEOF
3882if ac_fn_c_try_compile "$LINENO"
3883then :
3884
3885else case e in #(
3886  e) # This test program should compile successfully.
3887        # No library function is consistently available on
3888        # freestanding implementations, so test against a dummy
3889        # declaration.  Include always-available headers on the
3890        # off chance that they somehow elicit warnings.
3891        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892/* end confdefs.h.  */
3893#include <float.h>
3894#include <limits.h>
3895#include <stdarg.h>
3896#include <stddef.h>
3897extern void ac_decl (int, char *);
3898
3899int
3900main (void)
3901{
3902(void) ac_decl (0, (char *) 0);
3903  (void) ac_decl;
3904
3905  ;
3906  return 0;
3907}
3908_ACEOF
3909if ac_fn_c_try_compile "$LINENO"
3910then :
3911  if test x"$ac_arg" = x
3912then :
3913  ac_cv_c_undeclared_builtin_options='none needed'
3914else case e in #(
3915  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
3916esac
3917fi
3918          break
3919fi
3920rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3921esac
3922fi
3923rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3924    done
3925    CFLAGS=$ac_save_CFLAGS
3926   ;;
3927esac
3928fi
3929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
3930printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
3931  case $ac_cv_c_undeclared_builtin_options in #(
3932  'cannot detect') :
3933    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3934printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3935as_fn_error $? "cannot make $CC report undeclared builtins
3936See 'config.log' for more details" "$LINENO" 5; } ;; #(
3937  'none needed') :
3938    ac_c_undeclared_builtin_options='' ;; #(
3939  *) :
3940    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
3941esac
3942
3943ac_header= ac_cache=
3944for ac_item in $ac_header_c_list
3945do
3946  if test $ac_cache; then
3947    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3948    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3949      printf "%s\n" "#define $ac_item 1" >> confdefs.h
3950    fi
3951    ac_header= ac_cache=
3952  elif test $ac_header; then
3953    ac_cache=$ac_item
3954  else
3955    ac_header=$ac_item
3956  fi
3957done
3958
3959
3960
3961
3962
3963
3964
3965
3966if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3967then :
3968
3969printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3970
3971fi
3972
3973
3974
3975
3976ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
3977if test "x$ac_cv_have_decl___clang__" = xyes
3978then :
3979  CLANGCC="yes"
3980else case e in #(
3981  e) CLANGCC="no" ;;
3982esac
3983fi
3984ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
3985if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
3986then :
3987  INTELCC="yes"
3988else case e in #(
3989  e) INTELCC="no" ;;
3990esac
3991fi
3992ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
3993if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
3994then :
3995  SUNCC="yes"
3996else case e in #(
3997  e) SUNCC="no" ;;
3998esac
3999fi
4000
4001
4002
4003
4004
4005
4006
4007
4008if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4009	if test -n "$ac_tool_prefix"; then
4010  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4011set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4013printf %s "checking for $ac_word... " >&6; }
4014if test ${ac_cv_path_PKG_CONFIG+y}
4015then :
4016  printf %s "(cached) " >&6
4017else case e in #(
4018  e) case $PKG_CONFIG in
4019  [\\/]* | ?:[\\/]*)
4020  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4021  ;;
4022  *)
4023  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024for as_dir in $PATH
4025do
4026  IFS=$as_save_IFS
4027  case $as_dir in #(((
4028    '') as_dir=./ ;;
4029    */) ;;
4030    *) as_dir=$as_dir/ ;;
4031  esac
4032    for ac_exec_ext in '' $ac_executable_extensions; do
4033  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4034    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4035    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4036    break 2
4037  fi
4038done
4039  done
4040IFS=$as_save_IFS
4041
4042  ;;
4043esac ;;
4044esac
4045fi
4046PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4047if test -n "$PKG_CONFIG"; then
4048  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4049printf "%s\n" "$PKG_CONFIG" >&6; }
4050else
4051  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4052printf "%s\n" "no" >&6; }
4053fi
4054
4055
4056fi
4057if test -z "$ac_cv_path_PKG_CONFIG"; then
4058  ac_pt_PKG_CONFIG=$PKG_CONFIG
4059  # Extract the first word of "pkg-config", so it can be a program name with args.
4060set dummy pkg-config; ac_word=$2
4061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4062printf %s "checking for $ac_word... " >&6; }
4063if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4064then :
4065  printf %s "(cached) " >&6
4066else case e in #(
4067  e) case $ac_pt_PKG_CONFIG in
4068  [\\/]* | ?:[\\/]*)
4069  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4070  ;;
4071  *)
4072  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073for as_dir in $PATH
4074do
4075  IFS=$as_save_IFS
4076  case $as_dir in #(((
4077    '') as_dir=./ ;;
4078    */) ;;
4079    *) as_dir=$as_dir/ ;;
4080  esac
4081    for ac_exec_ext in '' $ac_executable_extensions; do
4082  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4083    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4084    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4085    break 2
4086  fi
4087done
4088  done
4089IFS=$as_save_IFS
4090
4091  ;;
4092esac ;;
4093esac
4094fi
4095ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4096if test -n "$ac_pt_PKG_CONFIG"; then
4097  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4098printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4099else
4100  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101printf "%s\n" "no" >&6; }
4102fi
4103
4104  if test "x$ac_pt_PKG_CONFIG" = x; then
4105    PKG_CONFIG=""
4106  else
4107    case $cross_compiling:$ac_tool_warned in
4108yes:)
4109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4110printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4111ac_tool_warned=yes ;;
4112esac
4113    PKG_CONFIG=$ac_pt_PKG_CONFIG
4114  fi
4115else
4116  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4117fi
4118
4119fi
4120if test -n "$PKG_CONFIG"; then
4121	_pkg_min_version=0.9.0
4122	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4123printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4124	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4125		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4126printf "%s\n" "yes" >&6; }
4127	else
4128		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129printf "%s\n" "no" >&6; }
4130		PKG_CONFIG=""
4131	fi
4132fi
4133
4134
4135  # Make sure we can run config.sub.
4136$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4137  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4138
4139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4140printf %s "checking build system type... " >&6; }
4141if test ${ac_cv_build+y}
4142then :
4143  printf %s "(cached) " >&6
4144else case e in #(
4145  e) ac_build_alias=$build_alias
4146test "x$ac_build_alias" = x &&
4147  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4148test "x$ac_build_alias" = x &&
4149  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4150ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4151  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4152 ;;
4153esac
4154fi
4155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4156printf "%s\n" "$ac_cv_build" >&6; }
4157case $ac_cv_build in
4158*-*-*) ;;
4159*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4160esac
4161build=$ac_cv_build
4162ac_save_IFS=$IFS; IFS='-'
4163set x $ac_cv_build
4164shift
4165build_cpu=$1
4166build_vendor=$2
4167shift; shift
4168# Remember, the first character of IFS is used to create $*,
4169# except with old shells:
4170build_os=$*
4171IFS=$ac_save_IFS
4172case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4173
4174
4175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4176printf %s "checking host system type... " >&6; }
4177if test ${ac_cv_host+y}
4178then :
4179  printf %s "(cached) " >&6
4180else case e in #(
4181  e) if test "x$host_alias" = x; then
4182  ac_cv_host=$ac_cv_build
4183else
4184  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4185    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4186fi
4187 ;;
4188esac
4189fi
4190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4191printf "%s\n" "$ac_cv_host" >&6; }
4192case $ac_cv_host in
4193*-*-*) ;;
4194*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4195esac
4196host=$ac_cv_host
4197ac_save_IFS=$IFS; IFS='-'
4198set x $ac_cv_host
4199shift
4200host_cpu=$1
4201host_vendor=$2
4202shift; shift
4203# Remember, the first character of IFS is used to create $*,
4204# except with old shells:
4205host_os=$*
4206IFS=$ac_save_IFS
4207case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4208
4209
4210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4211printf %s "checking for a sed that does not truncate output... " >&6; }
4212if test ${ac_cv_path_SED+y}
4213then :
4214  printf %s "(cached) " >&6
4215else case e in #(
4216  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4217     for ac_i in 1 2 3 4 5 6 7; do
4218       ac_script="$ac_script$as_nl$ac_script"
4219     done
4220     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4221     { ac_script=; unset ac_script;}
4222     if test -z "$SED"; then
4223  ac_path_SED_found=false
4224  # Loop through the user's path and test for each of PROGNAME-LIST
4225  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226for as_dir in $PATH
4227do
4228  IFS=$as_save_IFS
4229  case $as_dir in #(((
4230    '') as_dir=./ ;;
4231    */) ;;
4232    *) as_dir=$as_dir/ ;;
4233  esac
4234    for ac_prog in sed gsed
4235   do
4236    for ac_exec_ext in '' $ac_executable_extensions; do
4237      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4238      as_fn_executable_p "$ac_path_SED" || continue
4239# Check for GNU ac_path_SED and select it if it is found.
4240  # Check for GNU $ac_path_SED
4241case `"$ac_path_SED" --version 2>&1` in #(
4242*GNU*)
4243  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4244#(
4245*)
4246  ac_count=0
4247  printf %s 0123456789 >"conftest.in"
4248  while :
4249  do
4250    cat "conftest.in" "conftest.in" >"conftest.tmp"
4251    mv "conftest.tmp" "conftest.in"
4252    cp "conftest.in" "conftest.nl"
4253    printf "%s\n" '' >> "conftest.nl"
4254    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4255    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4256    as_fn_arith $ac_count + 1 && ac_count=$as_val
4257    if test $ac_count -gt ${ac_path_SED_max-0}; then
4258      # Best one so far, save it but keep looking for a better one
4259      ac_cv_path_SED="$ac_path_SED"
4260      ac_path_SED_max=$ac_count
4261    fi
4262    # 10*(2^10) chars as input seems more than enough
4263    test $ac_count -gt 10 && break
4264  done
4265  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4266esac
4267
4268      $ac_path_SED_found && break 3
4269    done
4270  done
4271  done
4272IFS=$as_save_IFS
4273  if test -z "$ac_cv_path_SED"; then
4274    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4275  fi
4276else
4277  ac_cv_path_SED=$SED
4278fi
4279 ;;
4280esac
4281fi
4282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4283printf "%s\n" "$ac_cv_path_SED" >&6; }
4284 SED="$ac_cv_path_SED"
4285  rm -f conftest.sed
4286
4287
4288
4289
4290
4291
4292# Check whether --enable-selective-werror was given.
4293if test ${enable_selective_werror+y}
4294then :
4295  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4296else case e in #(
4297  e) SELECTIVE_WERROR=yes ;;
4298esac
4299fi
4300
4301
4302
4303
4304
4305# -v is too short to test reliably with XORG_TESTSET_CFLAG
4306if test "x$SUNCC" = "xyes"; then
4307    BASE_CFLAGS="-v"
4308else
4309    BASE_CFLAGS=""
4310fi
4311
4312# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326xorg_testset_save_CFLAGS="$CFLAGS"
4327
4328if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4329	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4330	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4331printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4332if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4333then :
4334  printf %s "(cached) " >&6
4335else case e in #(
4336  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337/* end confdefs.h.  */
4338int i;
4339_ACEOF
4340if ac_fn_c_try_compile "$LINENO"
4341then :
4342  xorg_cv_cc_flag_unknown_warning_option=yes
4343else case e in #(
4344  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
4345esac
4346fi
4347rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4348esac
4349fi
4350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4351printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4352	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4353	CFLAGS="$xorg_testset_save_CFLAGS"
4354fi
4355
4356if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4357	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4358		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4359	fi
4360	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4361	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4362printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4363if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4364then :
4365  printf %s "(cached) " >&6
4366else case e in #(
4367  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368/* end confdefs.h.  */
4369int i;
4370_ACEOF
4371if ac_fn_c_try_compile "$LINENO"
4372then :
4373  xorg_cv_cc_flag_unused_command_line_argument=yes
4374else case e in #(
4375  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
4376esac
4377fi
4378rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4379esac
4380fi
4381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4382printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4383	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4384	CFLAGS="$xorg_testset_save_CFLAGS"
4385fi
4386
4387found="no"
4388
4389	if test $found = "no" ; then
4390		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4391			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4392		fi
4393
4394		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4395			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4396		fi
4397
4398		CFLAGS="$CFLAGS -Wall"
4399
4400		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4401printf %s "checking if $CC supports -Wall... " >&6; }
4402		cacheid=xorg_cv_cc_flag__Wall
4403		if eval test \${$cacheid+y}
4404then :
4405  printf %s "(cached) " >&6
4406else case e in #(
4407  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408/* end confdefs.h.  */
4409int i;
4410int
4411main (void)
4412{
4413
4414  ;
4415  return 0;
4416}
4417_ACEOF
4418if ac_fn_c_try_link "$LINENO"
4419then :
4420  eval $cacheid=yes
4421else case e in #(
4422  e) eval $cacheid=no ;;
4423esac
4424fi
4425rm -f core conftest.err conftest.$ac_objext conftest.beam \
4426    conftest$ac_exeext conftest.$ac_ext ;;
4427esac
4428fi
4429
4430
4431		CFLAGS="$xorg_testset_save_CFLAGS"
4432
4433		eval supported=\$$cacheid
4434		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4435printf "%s\n" "$supported" >&6; }
4436		if test "$supported" = "yes" ; then
4437			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4438			found="yes"
4439		fi
4440	fi
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456xorg_testset_save_CFLAGS="$CFLAGS"
4457
4458if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4459	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4460	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4461printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4462if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4463then :
4464  printf %s "(cached) " >&6
4465else case e in #(
4466  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467/* end confdefs.h.  */
4468int i;
4469_ACEOF
4470if ac_fn_c_try_compile "$LINENO"
4471then :
4472  xorg_cv_cc_flag_unknown_warning_option=yes
4473else case e in #(
4474  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
4475esac
4476fi
4477rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4478esac
4479fi
4480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4481printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4482	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4483	CFLAGS="$xorg_testset_save_CFLAGS"
4484fi
4485
4486if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4487	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4488		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4489	fi
4490	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4491	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4492printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4493if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4494then :
4495  printf %s "(cached) " >&6
4496else case e in #(
4497  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498/* end confdefs.h.  */
4499int i;
4500_ACEOF
4501if ac_fn_c_try_compile "$LINENO"
4502then :
4503  xorg_cv_cc_flag_unused_command_line_argument=yes
4504else case e in #(
4505  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
4506esac
4507fi
4508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4509esac
4510fi
4511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4512printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4513	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4514	CFLAGS="$xorg_testset_save_CFLAGS"
4515fi
4516
4517found="no"
4518
4519	if test $found = "no" ; then
4520		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4521			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4522		fi
4523
4524		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4525			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4526		fi
4527
4528		CFLAGS="$CFLAGS -Wpointer-arith"
4529
4530		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4531printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
4532		cacheid=xorg_cv_cc_flag__Wpointer_arith
4533		if eval test \${$cacheid+y}
4534then :
4535  printf %s "(cached) " >&6
4536else case e in #(
4537  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538/* end confdefs.h.  */
4539int i;
4540int
4541main (void)
4542{
4543
4544  ;
4545  return 0;
4546}
4547_ACEOF
4548if ac_fn_c_try_link "$LINENO"
4549then :
4550  eval $cacheid=yes
4551else case e in #(
4552  e) eval $cacheid=no ;;
4553esac
4554fi
4555rm -f core conftest.err conftest.$ac_objext conftest.beam \
4556    conftest$ac_exeext conftest.$ac_ext ;;
4557esac
4558fi
4559
4560
4561		CFLAGS="$xorg_testset_save_CFLAGS"
4562
4563		eval supported=\$$cacheid
4564		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4565printf "%s\n" "$supported" >&6; }
4566		if test "$supported" = "yes" ; then
4567			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4568			found="yes"
4569		fi
4570	fi
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586xorg_testset_save_CFLAGS="$CFLAGS"
4587
4588if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4589	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4590	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4591printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4592if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4593then :
4594  printf %s "(cached) " >&6
4595else case e in #(
4596  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597/* end confdefs.h.  */
4598int i;
4599_ACEOF
4600if ac_fn_c_try_compile "$LINENO"
4601then :
4602  xorg_cv_cc_flag_unknown_warning_option=yes
4603else case e in #(
4604  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
4605esac
4606fi
4607rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4608esac
4609fi
4610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4611printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4612	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4613	CFLAGS="$xorg_testset_save_CFLAGS"
4614fi
4615
4616if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4617	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4618		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4619	fi
4620	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4621	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4622printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4623if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4624then :
4625  printf %s "(cached) " >&6
4626else case e in #(
4627  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628/* end confdefs.h.  */
4629int i;
4630_ACEOF
4631if ac_fn_c_try_compile "$LINENO"
4632then :
4633  xorg_cv_cc_flag_unused_command_line_argument=yes
4634else case e in #(
4635  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
4636esac
4637fi
4638rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4639esac
4640fi
4641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4642printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4643	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4644	CFLAGS="$xorg_testset_save_CFLAGS"
4645fi
4646
4647found="no"
4648
4649	if test $found = "no" ; then
4650		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4651			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4652		fi
4653
4654		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4655			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4656		fi
4657
4658		CFLAGS="$CFLAGS -Wmissing-declarations"
4659
4660		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4661printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
4662		cacheid=xorg_cv_cc_flag__Wmissing_declarations
4663		if eval test \${$cacheid+y}
4664then :
4665  printf %s "(cached) " >&6
4666else case e in #(
4667  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668/* end confdefs.h.  */
4669int i;
4670int
4671main (void)
4672{
4673
4674  ;
4675  return 0;
4676}
4677_ACEOF
4678if ac_fn_c_try_link "$LINENO"
4679then :
4680  eval $cacheid=yes
4681else case e in #(
4682  e) eval $cacheid=no ;;
4683esac
4684fi
4685rm -f core conftest.err conftest.$ac_objext conftest.beam \
4686    conftest$ac_exeext conftest.$ac_ext ;;
4687esac
4688fi
4689
4690
4691		CFLAGS="$xorg_testset_save_CFLAGS"
4692
4693		eval supported=\$$cacheid
4694		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4695printf "%s\n" "$supported" >&6; }
4696		if test "$supported" = "yes" ; then
4697			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4698			found="yes"
4699		fi
4700	fi
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716xorg_testset_save_CFLAGS="$CFLAGS"
4717
4718if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4719	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4720	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4721printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4722if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4723then :
4724  printf %s "(cached) " >&6
4725else case e in #(
4726  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727/* end confdefs.h.  */
4728int i;
4729_ACEOF
4730if ac_fn_c_try_compile "$LINENO"
4731then :
4732  xorg_cv_cc_flag_unknown_warning_option=yes
4733else case e in #(
4734  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
4735esac
4736fi
4737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4738esac
4739fi
4740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4741printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4742	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4743	CFLAGS="$xorg_testset_save_CFLAGS"
4744fi
4745
4746if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4747	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4748		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4749	fi
4750	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4751	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4752printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4753if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4754then :
4755  printf %s "(cached) " >&6
4756else case e in #(
4757  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4758/* end confdefs.h.  */
4759int i;
4760_ACEOF
4761if ac_fn_c_try_compile "$LINENO"
4762then :
4763  xorg_cv_cc_flag_unused_command_line_argument=yes
4764else case e in #(
4765  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
4766esac
4767fi
4768rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4769esac
4770fi
4771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4772printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4773	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4774	CFLAGS="$xorg_testset_save_CFLAGS"
4775fi
4776
4777found="no"
4778
4779	if test $found = "no" ; then
4780		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4781			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4782		fi
4783
4784		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4785			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4786		fi
4787
4788		CFLAGS="$CFLAGS -Wformat=2"
4789
4790		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
4791printf %s "checking if $CC supports -Wformat=2... " >&6; }
4792		cacheid=xorg_cv_cc_flag__Wformat_2
4793		if eval test \${$cacheid+y}
4794then :
4795  printf %s "(cached) " >&6
4796else case e in #(
4797  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798/* end confdefs.h.  */
4799int i;
4800int
4801main (void)
4802{
4803
4804  ;
4805  return 0;
4806}
4807_ACEOF
4808if ac_fn_c_try_link "$LINENO"
4809then :
4810  eval $cacheid=yes
4811else case e in #(
4812  e) eval $cacheid=no ;;
4813esac
4814fi
4815rm -f core conftest.err conftest.$ac_objext conftest.beam \
4816    conftest$ac_exeext conftest.$ac_ext ;;
4817esac
4818fi
4819
4820
4821		CFLAGS="$xorg_testset_save_CFLAGS"
4822
4823		eval supported=\$$cacheid
4824		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4825printf "%s\n" "$supported" >&6; }
4826		if test "$supported" = "yes" ; then
4827			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4828			found="yes"
4829		fi
4830	fi
4831
4832	if test $found = "no" ; then
4833		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4834			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4835		fi
4836
4837		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4838			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4839		fi
4840
4841		CFLAGS="$CFLAGS -Wformat"
4842
4843		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
4844printf %s "checking if $CC supports -Wformat... " >&6; }
4845		cacheid=xorg_cv_cc_flag__Wformat
4846		if eval test \${$cacheid+y}
4847then :
4848  printf %s "(cached) " >&6
4849else case e in #(
4850  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851/* end confdefs.h.  */
4852int i;
4853int
4854main (void)
4855{
4856
4857  ;
4858  return 0;
4859}
4860_ACEOF
4861if ac_fn_c_try_link "$LINENO"
4862then :
4863  eval $cacheid=yes
4864else case e in #(
4865  e) eval $cacheid=no ;;
4866esac
4867fi
4868rm -f core conftest.err conftest.$ac_objext conftest.beam \
4869    conftest$ac_exeext conftest.$ac_ext ;;
4870esac
4871fi
4872
4873
4874		CFLAGS="$xorg_testset_save_CFLAGS"
4875
4876		eval supported=\$$cacheid
4877		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4878printf "%s\n" "$supported" >&6; }
4879		if test "$supported" = "yes" ; then
4880			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
4881			found="yes"
4882		fi
4883	fi
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901xorg_testset_save_CFLAGS="$CFLAGS"
4902
4903if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4904	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4905	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4906printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4907if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4908then :
4909  printf %s "(cached) " >&6
4910else case e in #(
4911  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912/* end confdefs.h.  */
4913int i;
4914_ACEOF
4915if ac_fn_c_try_compile "$LINENO"
4916then :
4917  xorg_cv_cc_flag_unknown_warning_option=yes
4918else case e in #(
4919  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
4920esac
4921fi
4922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4923esac
4924fi
4925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4926printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4927	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4928	CFLAGS="$xorg_testset_save_CFLAGS"
4929fi
4930
4931if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4932	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4933		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4934	fi
4935	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4936	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4937printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4938if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4939then :
4940  printf %s "(cached) " >&6
4941else case e in #(
4942  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943/* end confdefs.h.  */
4944int i;
4945_ACEOF
4946if ac_fn_c_try_compile "$LINENO"
4947then :
4948  xorg_cv_cc_flag_unused_command_line_argument=yes
4949else case e in #(
4950  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
4951esac
4952fi
4953rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4954esac
4955fi
4956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4957printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4958	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4959	CFLAGS="$xorg_testset_save_CFLAGS"
4960fi
4961
4962found="no"
4963
4964	if test $found = "no" ; then
4965		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4966			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4967		fi
4968
4969		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4970			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4971		fi
4972
4973		CFLAGS="$CFLAGS -Wstrict-prototypes"
4974
4975		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4976printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
4977		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
4978		if eval test \${$cacheid+y}
4979then :
4980  printf %s "(cached) " >&6
4981else case e in #(
4982  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983/* end confdefs.h.  */
4984int i;
4985int
4986main (void)
4987{
4988
4989  ;
4990  return 0;
4991}
4992_ACEOF
4993if ac_fn_c_try_link "$LINENO"
4994then :
4995  eval $cacheid=yes
4996else case e in #(
4997  e) eval $cacheid=no ;;
4998esac
4999fi
5000rm -f core conftest.err conftest.$ac_objext conftest.beam \
5001    conftest$ac_exeext conftest.$ac_ext ;;
5002esac
5003fi
5004
5005
5006		CFLAGS="$xorg_testset_save_CFLAGS"
5007
5008		eval supported=\$$cacheid
5009		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5010printf "%s\n" "$supported" >&6; }
5011		if test "$supported" = "yes" ; then
5012			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5013			found="yes"
5014		fi
5015	fi
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031xorg_testset_save_CFLAGS="$CFLAGS"
5032
5033if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5034	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5035	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5036printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5037if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5038then :
5039  printf %s "(cached) " >&6
5040else case e in #(
5041  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042/* end confdefs.h.  */
5043int i;
5044_ACEOF
5045if ac_fn_c_try_compile "$LINENO"
5046then :
5047  xorg_cv_cc_flag_unknown_warning_option=yes
5048else case e in #(
5049  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5050esac
5051fi
5052rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5053esac
5054fi
5055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5056printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5057	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5058	CFLAGS="$xorg_testset_save_CFLAGS"
5059fi
5060
5061if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5062	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5063		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5064	fi
5065	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5066	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5067printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5068if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5069then :
5070  printf %s "(cached) " >&6
5071else case e in #(
5072  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5073/* end confdefs.h.  */
5074int i;
5075_ACEOF
5076if ac_fn_c_try_compile "$LINENO"
5077then :
5078  xorg_cv_cc_flag_unused_command_line_argument=yes
5079else case e in #(
5080  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5081esac
5082fi
5083rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5084esac
5085fi
5086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5087printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5088	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5089	CFLAGS="$xorg_testset_save_CFLAGS"
5090fi
5091
5092found="no"
5093
5094	if test $found = "no" ; then
5095		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5096			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5097		fi
5098
5099		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5100			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5101		fi
5102
5103		CFLAGS="$CFLAGS -Wmissing-prototypes"
5104
5105		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5106printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5107		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5108		if eval test \${$cacheid+y}
5109then :
5110  printf %s "(cached) " >&6
5111else case e in #(
5112  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113/* end confdefs.h.  */
5114int i;
5115int
5116main (void)
5117{
5118
5119  ;
5120  return 0;
5121}
5122_ACEOF
5123if ac_fn_c_try_link "$LINENO"
5124then :
5125  eval $cacheid=yes
5126else case e in #(
5127  e) eval $cacheid=no ;;
5128esac
5129fi
5130rm -f core conftest.err conftest.$ac_objext conftest.beam \
5131    conftest$ac_exeext conftest.$ac_ext ;;
5132esac
5133fi
5134
5135
5136		CFLAGS="$xorg_testset_save_CFLAGS"
5137
5138		eval supported=\$$cacheid
5139		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5140printf "%s\n" "$supported" >&6; }
5141		if test "$supported" = "yes" ; then
5142			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5143			found="yes"
5144		fi
5145	fi
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161xorg_testset_save_CFLAGS="$CFLAGS"
5162
5163if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5164	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5165	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5166printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5167if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5168then :
5169  printf %s "(cached) " >&6
5170else case e in #(
5171  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172/* end confdefs.h.  */
5173int i;
5174_ACEOF
5175if ac_fn_c_try_compile "$LINENO"
5176then :
5177  xorg_cv_cc_flag_unknown_warning_option=yes
5178else case e in #(
5179  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5180esac
5181fi
5182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5183esac
5184fi
5185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5186printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5187	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5188	CFLAGS="$xorg_testset_save_CFLAGS"
5189fi
5190
5191if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5192	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5193		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5194	fi
5195	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5196	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5197printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5198if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5199then :
5200  printf %s "(cached) " >&6
5201else case e in #(
5202  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203/* end confdefs.h.  */
5204int i;
5205_ACEOF
5206if ac_fn_c_try_compile "$LINENO"
5207then :
5208  xorg_cv_cc_flag_unused_command_line_argument=yes
5209else case e in #(
5210  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5211esac
5212fi
5213rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5214esac
5215fi
5216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5217printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5218	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5219	CFLAGS="$xorg_testset_save_CFLAGS"
5220fi
5221
5222found="no"
5223
5224	if test $found = "no" ; then
5225		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5226			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5227		fi
5228
5229		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5230			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5231		fi
5232
5233		CFLAGS="$CFLAGS -Wnested-externs"
5234
5235		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5236printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5237		cacheid=xorg_cv_cc_flag__Wnested_externs
5238		if eval test \${$cacheid+y}
5239then :
5240  printf %s "(cached) " >&6
5241else case e in #(
5242  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243/* end confdefs.h.  */
5244int i;
5245int
5246main (void)
5247{
5248
5249  ;
5250  return 0;
5251}
5252_ACEOF
5253if ac_fn_c_try_link "$LINENO"
5254then :
5255  eval $cacheid=yes
5256else case e in #(
5257  e) eval $cacheid=no ;;
5258esac
5259fi
5260rm -f core conftest.err conftest.$ac_objext conftest.beam \
5261    conftest$ac_exeext conftest.$ac_ext ;;
5262esac
5263fi
5264
5265
5266		CFLAGS="$xorg_testset_save_CFLAGS"
5267
5268		eval supported=\$$cacheid
5269		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5270printf "%s\n" "$supported" >&6; }
5271		if test "$supported" = "yes" ; then
5272			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5273			found="yes"
5274		fi
5275	fi
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291xorg_testset_save_CFLAGS="$CFLAGS"
5292
5293if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5294	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5295	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5296printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5297if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5298then :
5299  printf %s "(cached) " >&6
5300else case e in #(
5301  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5302/* end confdefs.h.  */
5303int i;
5304_ACEOF
5305if ac_fn_c_try_compile "$LINENO"
5306then :
5307  xorg_cv_cc_flag_unknown_warning_option=yes
5308else case e in #(
5309  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5310esac
5311fi
5312rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5313esac
5314fi
5315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5316printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5317	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5318	CFLAGS="$xorg_testset_save_CFLAGS"
5319fi
5320
5321if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5322	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5323		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5324	fi
5325	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5326	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5327printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5328if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5329then :
5330  printf %s "(cached) " >&6
5331else case e in #(
5332  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333/* end confdefs.h.  */
5334int i;
5335_ACEOF
5336if ac_fn_c_try_compile "$LINENO"
5337then :
5338  xorg_cv_cc_flag_unused_command_line_argument=yes
5339else case e in #(
5340  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5341esac
5342fi
5343rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5344esac
5345fi
5346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5347printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5348	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5349	CFLAGS="$xorg_testset_save_CFLAGS"
5350fi
5351
5352found="no"
5353
5354	if test $found = "no" ; then
5355		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5356			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5357		fi
5358
5359		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5360			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5361		fi
5362
5363		CFLAGS="$CFLAGS -Wbad-function-cast"
5364
5365		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5366printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5367		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5368		if eval test \${$cacheid+y}
5369then :
5370  printf %s "(cached) " >&6
5371else case e in #(
5372  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373/* end confdefs.h.  */
5374int i;
5375int
5376main (void)
5377{
5378
5379  ;
5380  return 0;
5381}
5382_ACEOF
5383if ac_fn_c_try_link "$LINENO"
5384then :
5385  eval $cacheid=yes
5386else case e in #(
5387  e) eval $cacheid=no ;;
5388esac
5389fi
5390rm -f core conftest.err conftest.$ac_objext conftest.beam \
5391    conftest$ac_exeext conftest.$ac_ext ;;
5392esac
5393fi
5394
5395
5396		CFLAGS="$xorg_testset_save_CFLAGS"
5397
5398		eval supported=\$$cacheid
5399		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5400printf "%s\n" "$supported" >&6; }
5401		if test "$supported" = "yes" ; then
5402			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5403			found="yes"
5404		fi
5405	fi
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421xorg_testset_save_CFLAGS="$CFLAGS"
5422
5423if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5424	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5425	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5426printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5427if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5428then :
5429  printf %s "(cached) " >&6
5430else case e in #(
5431  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432/* end confdefs.h.  */
5433int i;
5434_ACEOF
5435if ac_fn_c_try_compile "$LINENO"
5436then :
5437  xorg_cv_cc_flag_unknown_warning_option=yes
5438else case e in #(
5439  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5440esac
5441fi
5442rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5443esac
5444fi
5445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5446printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5447	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5448	CFLAGS="$xorg_testset_save_CFLAGS"
5449fi
5450
5451if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5452	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5453		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5454	fi
5455	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5456	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5457printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5458if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5459then :
5460  printf %s "(cached) " >&6
5461else case e in #(
5462  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5463/* end confdefs.h.  */
5464int i;
5465_ACEOF
5466if ac_fn_c_try_compile "$LINENO"
5467then :
5468  xorg_cv_cc_flag_unused_command_line_argument=yes
5469else case e in #(
5470  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5471esac
5472fi
5473rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5474esac
5475fi
5476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5477printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5478	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5479	CFLAGS="$xorg_testset_save_CFLAGS"
5480fi
5481
5482found="no"
5483
5484	if test $found = "no" ; then
5485		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5486			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5487		fi
5488
5489		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5490			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5491		fi
5492
5493		CFLAGS="$CFLAGS -Wold-style-definition"
5494
5495		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5496printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
5497		cacheid=xorg_cv_cc_flag__Wold_style_definition
5498		if eval test \${$cacheid+y}
5499then :
5500  printf %s "(cached) " >&6
5501else case e in #(
5502  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5503/* end confdefs.h.  */
5504int i;
5505int
5506main (void)
5507{
5508
5509  ;
5510  return 0;
5511}
5512_ACEOF
5513if ac_fn_c_try_link "$LINENO"
5514then :
5515  eval $cacheid=yes
5516else case e in #(
5517  e) eval $cacheid=no ;;
5518esac
5519fi
5520rm -f core conftest.err conftest.$ac_objext conftest.beam \
5521    conftest$ac_exeext conftest.$ac_ext ;;
5522esac
5523fi
5524
5525
5526		CFLAGS="$xorg_testset_save_CFLAGS"
5527
5528		eval supported=\$$cacheid
5529		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5530printf "%s\n" "$supported" >&6; }
5531		if test "$supported" = "yes" ; then
5532			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5533			found="yes"
5534		fi
5535	fi
5536
5537	if test $found = "no" ; then
5538		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5539			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5540		fi
5541
5542		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5543			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5544		fi
5545
5546		CFLAGS="$CFLAGS -fd"
5547
5548		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5549printf %s "checking if $CC supports -fd... " >&6; }
5550		cacheid=xorg_cv_cc_flag__fd
5551		if eval test \${$cacheid+y}
5552then :
5553  printf %s "(cached) " >&6
5554else case e in #(
5555  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556/* end confdefs.h.  */
5557int i;
5558int
5559main (void)
5560{
5561
5562  ;
5563  return 0;
5564}
5565_ACEOF
5566if ac_fn_c_try_link "$LINENO"
5567then :
5568  eval $cacheid=yes
5569else case e in #(
5570  e) eval $cacheid=no ;;
5571esac
5572fi
5573rm -f core conftest.err conftest.$ac_objext conftest.beam \
5574    conftest$ac_exeext conftest.$ac_ext ;;
5575esac
5576fi
5577
5578
5579		CFLAGS="$xorg_testset_save_CFLAGS"
5580
5581		eval supported=\$$cacheid
5582		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5583printf "%s\n" "$supported" >&6; }
5584		if test "$supported" = "yes" ; then
5585			BASE_CFLAGS="$BASE_CFLAGS -fd"
5586			found="yes"
5587		fi
5588	fi
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604xorg_testset_save_CFLAGS="$CFLAGS"
5605
5606if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5607	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5608	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5609printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5610if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5611then :
5612  printf %s "(cached) " >&6
5613else case e in #(
5614  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615/* end confdefs.h.  */
5616int i;
5617_ACEOF
5618if ac_fn_c_try_compile "$LINENO"
5619then :
5620  xorg_cv_cc_flag_unknown_warning_option=yes
5621else case e in #(
5622  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5623esac
5624fi
5625rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5626esac
5627fi
5628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5629printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5630	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5631	CFLAGS="$xorg_testset_save_CFLAGS"
5632fi
5633
5634if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5635	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5636		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5637	fi
5638	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5639	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5640printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5641if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5642then :
5643  printf %s "(cached) " >&6
5644else case e in #(
5645  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646/* end confdefs.h.  */
5647int i;
5648_ACEOF
5649if ac_fn_c_try_compile "$LINENO"
5650then :
5651  xorg_cv_cc_flag_unused_command_line_argument=yes
5652else case e in #(
5653  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5654esac
5655fi
5656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5657esac
5658fi
5659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5660printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5661	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5662	CFLAGS="$xorg_testset_save_CFLAGS"
5663fi
5664
5665found="no"
5666
5667	if test $found = "no" ; then
5668		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5669			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5670		fi
5671
5672		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5673			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5674		fi
5675
5676		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5677
5678		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5679printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5680		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5681		if eval test \${$cacheid+y}
5682then :
5683  printf %s "(cached) " >&6
5684else case e in #(
5685  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686/* end confdefs.h.  */
5687int i;
5688int
5689main (void)
5690{
5691
5692  ;
5693  return 0;
5694}
5695_ACEOF
5696if ac_fn_c_try_link "$LINENO"
5697then :
5698  eval $cacheid=yes
5699else case e in #(
5700  e) eval $cacheid=no ;;
5701esac
5702fi
5703rm -f core conftest.err conftest.$ac_objext conftest.beam \
5704    conftest$ac_exeext conftest.$ac_ext ;;
5705esac
5706fi
5707
5708
5709		CFLAGS="$xorg_testset_save_CFLAGS"
5710
5711		eval supported=\$$cacheid
5712		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5713printf "%s\n" "$supported" >&6; }
5714		if test "$supported" = "yes" ; then
5715			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5716			found="yes"
5717		fi
5718	fi
5719
5720
5721
5722
5723
5724# This chunk adds additional warnings that could catch undesired effects.
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738xorg_testset_save_CFLAGS="$CFLAGS"
5739
5740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5741	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5742	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5743printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5744if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5745then :
5746  printf %s "(cached) " >&6
5747else case e in #(
5748  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749/* end confdefs.h.  */
5750int i;
5751_ACEOF
5752if ac_fn_c_try_compile "$LINENO"
5753then :
5754  xorg_cv_cc_flag_unknown_warning_option=yes
5755else case e in #(
5756  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5757esac
5758fi
5759rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5760esac
5761fi
5762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5763printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5764	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5765	CFLAGS="$xorg_testset_save_CFLAGS"
5766fi
5767
5768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5769	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5770		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5771	fi
5772	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5773	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5774printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5775if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5776then :
5777  printf %s "(cached) " >&6
5778else case e in #(
5779  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780/* end confdefs.h.  */
5781int i;
5782_ACEOF
5783if ac_fn_c_try_compile "$LINENO"
5784then :
5785  xorg_cv_cc_flag_unused_command_line_argument=yes
5786else case e in #(
5787  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5788esac
5789fi
5790rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5791esac
5792fi
5793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5794printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5795	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5796	CFLAGS="$xorg_testset_save_CFLAGS"
5797fi
5798
5799found="no"
5800
5801	if test $found = "no" ; then
5802		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5803			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5804		fi
5805
5806		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5807			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5808		fi
5809
5810		CFLAGS="$CFLAGS -Wunused"
5811
5812		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5813printf %s "checking if $CC supports -Wunused... " >&6; }
5814		cacheid=xorg_cv_cc_flag__Wunused
5815		if eval test \${$cacheid+y}
5816then :
5817  printf %s "(cached) " >&6
5818else case e in #(
5819  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820/* end confdefs.h.  */
5821int i;
5822int
5823main (void)
5824{
5825
5826  ;
5827  return 0;
5828}
5829_ACEOF
5830if ac_fn_c_try_link "$LINENO"
5831then :
5832  eval $cacheid=yes
5833else case e in #(
5834  e) eval $cacheid=no ;;
5835esac
5836fi
5837rm -f core conftest.err conftest.$ac_objext conftest.beam \
5838    conftest$ac_exeext conftest.$ac_ext ;;
5839esac
5840fi
5841
5842
5843		CFLAGS="$xorg_testset_save_CFLAGS"
5844
5845		eval supported=\$$cacheid
5846		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5847printf "%s\n" "$supported" >&6; }
5848		if test "$supported" = "yes" ; then
5849			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5850			found="yes"
5851		fi
5852	fi
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868xorg_testset_save_CFLAGS="$CFLAGS"
5869
5870if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5871	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5872	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5873printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5874if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5875then :
5876  printf %s "(cached) " >&6
5877else case e in #(
5878  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879/* end confdefs.h.  */
5880int i;
5881_ACEOF
5882if ac_fn_c_try_compile "$LINENO"
5883then :
5884  xorg_cv_cc_flag_unknown_warning_option=yes
5885else case e in #(
5886  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5887esac
5888fi
5889rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5890esac
5891fi
5892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5893printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5894	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5895	CFLAGS="$xorg_testset_save_CFLAGS"
5896fi
5897
5898if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5899	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5900		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5901	fi
5902	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5903	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5904printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5905if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5906then :
5907  printf %s "(cached) " >&6
5908else case e in #(
5909  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910/* end confdefs.h.  */
5911int i;
5912_ACEOF
5913if ac_fn_c_try_compile "$LINENO"
5914then :
5915  xorg_cv_cc_flag_unused_command_line_argument=yes
5916else case e in #(
5917  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5918esac
5919fi
5920rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5921esac
5922fi
5923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5924printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5925	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5926	CFLAGS="$xorg_testset_save_CFLAGS"
5927fi
5928
5929found="no"
5930
5931	if test $found = "no" ; then
5932		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5933			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5934		fi
5935
5936		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5937			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5938		fi
5939
5940		CFLAGS="$CFLAGS -Wuninitialized"
5941
5942		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5943printf %s "checking if $CC supports -Wuninitialized... " >&6; }
5944		cacheid=xorg_cv_cc_flag__Wuninitialized
5945		if eval test \${$cacheid+y}
5946then :
5947  printf %s "(cached) " >&6
5948else case e in #(
5949  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950/* end confdefs.h.  */
5951int i;
5952int
5953main (void)
5954{
5955
5956  ;
5957  return 0;
5958}
5959_ACEOF
5960if ac_fn_c_try_link "$LINENO"
5961then :
5962  eval $cacheid=yes
5963else case e in #(
5964  e) eval $cacheid=no ;;
5965esac
5966fi
5967rm -f core conftest.err conftest.$ac_objext conftest.beam \
5968    conftest$ac_exeext conftest.$ac_ext ;;
5969esac
5970fi
5971
5972
5973		CFLAGS="$xorg_testset_save_CFLAGS"
5974
5975		eval supported=\$$cacheid
5976		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5977printf "%s\n" "$supported" >&6; }
5978		if test "$supported" = "yes" ; then
5979			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5980			found="yes"
5981		fi
5982	fi
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998xorg_testset_save_CFLAGS="$CFLAGS"
5999
6000if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6001	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6002	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6003printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6004if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6005then :
6006  printf %s "(cached) " >&6
6007else case e in #(
6008  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009/* end confdefs.h.  */
6010int i;
6011_ACEOF
6012if ac_fn_c_try_compile "$LINENO"
6013then :
6014  xorg_cv_cc_flag_unknown_warning_option=yes
6015else case e in #(
6016  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6017esac
6018fi
6019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6020esac
6021fi
6022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6023printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6024	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6025	CFLAGS="$xorg_testset_save_CFLAGS"
6026fi
6027
6028if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6029	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6030		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6031	fi
6032	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6033	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6034printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6035if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6036then :
6037  printf %s "(cached) " >&6
6038else case e in #(
6039  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040/* end confdefs.h.  */
6041int i;
6042_ACEOF
6043if ac_fn_c_try_compile "$LINENO"
6044then :
6045  xorg_cv_cc_flag_unused_command_line_argument=yes
6046else case e in #(
6047  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6048esac
6049fi
6050rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6051esac
6052fi
6053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6054printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6055	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6056	CFLAGS="$xorg_testset_save_CFLAGS"
6057fi
6058
6059found="no"
6060
6061	if test $found = "no" ; then
6062		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6063			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6064		fi
6065
6066		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6067			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6068		fi
6069
6070		CFLAGS="$CFLAGS -Wshadow"
6071
6072		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6073printf %s "checking if $CC supports -Wshadow... " >&6; }
6074		cacheid=xorg_cv_cc_flag__Wshadow
6075		if eval test \${$cacheid+y}
6076then :
6077  printf %s "(cached) " >&6
6078else case e in #(
6079  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080/* end confdefs.h.  */
6081int i;
6082int
6083main (void)
6084{
6085
6086  ;
6087  return 0;
6088}
6089_ACEOF
6090if ac_fn_c_try_link "$LINENO"
6091then :
6092  eval $cacheid=yes
6093else case e in #(
6094  e) eval $cacheid=no ;;
6095esac
6096fi
6097rm -f core conftest.err conftest.$ac_objext conftest.beam \
6098    conftest$ac_exeext conftest.$ac_ext ;;
6099esac
6100fi
6101
6102
6103		CFLAGS="$xorg_testset_save_CFLAGS"
6104
6105		eval supported=\$$cacheid
6106		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6107printf "%s\n" "$supported" >&6; }
6108		if test "$supported" = "yes" ; then
6109			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6110			found="yes"
6111		fi
6112	fi
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128xorg_testset_save_CFLAGS="$CFLAGS"
6129
6130if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6131	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6132	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6133printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6134if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6135then :
6136  printf %s "(cached) " >&6
6137else case e in #(
6138  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6139/* end confdefs.h.  */
6140int i;
6141_ACEOF
6142if ac_fn_c_try_compile "$LINENO"
6143then :
6144  xorg_cv_cc_flag_unknown_warning_option=yes
6145else case e in #(
6146  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6147esac
6148fi
6149rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6150esac
6151fi
6152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6153printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6154	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6155	CFLAGS="$xorg_testset_save_CFLAGS"
6156fi
6157
6158if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6159	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6160		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6161	fi
6162	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6163	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6164printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6165if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6166then :
6167  printf %s "(cached) " >&6
6168else case e in #(
6169  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170/* end confdefs.h.  */
6171int i;
6172_ACEOF
6173if ac_fn_c_try_compile "$LINENO"
6174then :
6175  xorg_cv_cc_flag_unused_command_line_argument=yes
6176else case e in #(
6177  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6178esac
6179fi
6180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6181esac
6182fi
6183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6184printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6185	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6186	CFLAGS="$xorg_testset_save_CFLAGS"
6187fi
6188
6189found="no"
6190
6191	if test $found = "no" ; then
6192		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6193			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6194		fi
6195
6196		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6197			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6198		fi
6199
6200		CFLAGS="$CFLAGS -Wmissing-noreturn"
6201
6202		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6203printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6204		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6205		if eval test \${$cacheid+y}
6206then :
6207  printf %s "(cached) " >&6
6208else case e in #(
6209  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210/* end confdefs.h.  */
6211int i;
6212int
6213main (void)
6214{
6215
6216  ;
6217  return 0;
6218}
6219_ACEOF
6220if ac_fn_c_try_link "$LINENO"
6221then :
6222  eval $cacheid=yes
6223else case e in #(
6224  e) eval $cacheid=no ;;
6225esac
6226fi
6227rm -f core conftest.err conftest.$ac_objext conftest.beam \
6228    conftest$ac_exeext conftest.$ac_ext ;;
6229esac
6230fi
6231
6232
6233		CFLAGS="$xorg_testset_save_CFLAGS"
6234
6235		eval supported=\$$cacheid
6236		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6237printf "%s\n" "$supported" >&6; }
6238		if test "$supported" = "yes" ; then
6239			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6240			found="yes"
6241		fi
6242	fi
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258xorg_testset_save_CFLAGS="$CFLAGS"
6259
6260if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6261	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6262	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6263printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6264if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6265then :
6266  printf %s "(cached) " >&6
6267else case e in #(
6268  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269/* end confdefs.h.  */
6270int i;
6271_ACEOF
6272if ac_fn_c_try_compile "$LINENO"
6273then :
6274  xorg_cv_cc_flag_unknown_warning_option=yes
6275else case e in #(
6276  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6277esac
6278fi
6279rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6280esac
6281fi
6282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6283printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6284	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6285	CFLAGS="$xorg_testset_save_CFLAGS"
6286fi
6287
6288if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6289	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6290		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6291	fi
6292	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6293	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6294printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6295if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6296then :
6297  printf %s "(cached) " >&6
6298else case e in #(
6299  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300/* end confdefs.h.  */
6301int i;
6302_ACEOF
6303if ac_fn_c_try_compile "$LINENO"
6304then :
6305  xorg_cv_cc_flag_unused_command_line_argument=yes
6306else case e in #(
6307  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6308esac
6309fi
6310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6311esac
6312fi
6313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6314printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6315	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6316	CFLAGS="$xorg_testset_save_CFLAGS"
6317fi
6318
6319found="no"
6320
6321	if test $found = "no" ; then
6322		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6323			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6324		fi
6325
6326		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6327			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6328		fi
6329
6330		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6331
6332		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6333printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6334		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6335		if eval test \${$cacheid+y}
6336then :
6337  printf %s "(cached) " >&6
6338else case e in #(
6339  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6340/* end confdefs.h.  */
6341int i;
6342int
6343main (void)
6344{
6345
6346  ;
6347  return 0;
6348}
6349_ACEOF
6350if ac_fn_c_try_link "$LINENO"
6351then :
6352  eval $cacheid=yes
6353else case e in #(
6354  e) eval $cacheid=no ;;
6355esac
6356fi
6357rm -f core conftest.err conftest.$ac_objext conftest.beam \
6358    conftest$ac_exeext conftest.$ac_ext ;;
6359esac
6360fi
6361
6362
6363		CFLAGS="$xorg_testset_save_CFLAGS"
6364
6365		eval supported=\$$cacheid
6366		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6367printf "%s\n" "$supported" >&6; }
6368		if test "$supported" = "yes" ; then
6369			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6370			found="yes"
6371		fi
6372	fi
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388xorg_testset_save_CFLAGS="$CFLAGS"
6389
6390if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6391	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6392	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6393printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6394if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6395then :
6396  printf %s "(cached) " >&6
6397else case e in #(
6398  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399/* end confdefs.h.  */
6400int i;
6401_ACEOF
6402if ac_fn_c_try_compile "$LINENO"
6403then :
6404  xorg_cv_cc_flag_unknown_warning_option=yes
6405else case e in #(
6406  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6407esac
6408fi
6409rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6410esac
6411fi
6412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6413printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6414	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6415	CFLAGS="$xorg_testset_save_CFLAGS"
6416fi
6417
6418if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6419	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6420		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6421	fi
6422	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6423	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6424printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6425if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6426then :
6427  printf %s "(cached) " >&6
6428else case e in #(
6429  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6430/* end confdefs.h.  */
6431int i;
6432_ACEOF
6433if ac_fn_c_try_compile "$LINENO"
6434then :
6435  xorg_cv_cc_flag_unused_command_line_argument=yes
6436else case e in #(
6437  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6438esac
6439fi
6440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6441esac
6442fi
6443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6444printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6445	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6446	CFLAGS="$xorg_testset_save_CFLAGS"
6447fi
6448
6449found="no"
6450
6451	if test $found = "no" ; then
6452		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6453			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6454		fi
6455
6456		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6457			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6458		fi
6459
6460		CFLAGS="$CFLAGS -Wredundant-decls"
6461
6462		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6463printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6464		cacheid=xorg_cv_cc_flag__Wredundant_decls
6465		if eval test \${$cacheid+y}
6466then :
6467  printf %s "(cached) " >&6
6468else case e in #(
6469  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470/* end confdefs.h.  */
6471int i;
6472int
6473main (void)
6474{
6475
6476  ;
6477  return 0;
6478}
6479_ACEOF
6480if ac_fn_c_try_link "$LINENO"
6481then :
6482  eval $cacheid=yes
6483else case e in #(
6484  e) eval $cacheid=no ;;
6485esac
6486fi
6487rm -f core conftest.err conftest.$ac_objext conftest.beam \
6488    conftest$ac_exeext conftest.$ac_ext ;;
6489esac
6490fi
6491
6492
6493		CFLAGS="$xorg_testset_save_CFLAGS"
6494
6495		eval supported=\$$cacheid
6496		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6497printf "%s\n" "$supported" >&6; }
6498		if test "$supported" = "yes" ; then
6499			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6500			found="yes"
6501		fi
6502	fi
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518xorg_testset_save_CFLAGS="$CFLAGS"
6519
6520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6521	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6522	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6523printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6524if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6525then :
6526  printf %s "(cached) " >&6
6527else case e in #(
6528  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529/* end confdefs.h.  */
6530int i;
6531_ACEOF
6532if ac_fn_c_try_compile "$LINENO"
6533then :
6534  xorg_cv_cc_flag_unknown_warning_option=yes
6535else case e in #(
6536  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6537esac
6538fi
6539rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6540esac
6541fi
6542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6543printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6544	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6545	CFLAGS="$xorg_testset_save_CFLAGS"
6546fi
6547
6548if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6549	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6550		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6551	fi
6552	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6553	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6554printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6555if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6556then :
6557  printf %s "(cached) " >&6
6558else case e in #(
6559  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560/* end confdefs.h.  */
6561int i;
6562_ACEOF
6563if ac_fn_c_try_compile "$LINENO"
6564then :
6565  xorg_cv_cc_flag_unused_command_line_argument=yes
6566else case e in #(
6567  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6568esac
6569fi
6570rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6571esac
6572fi
6573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6574printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6575	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6576	CFLAGS="$xorg_testset_save_CFLAGS"
6577fi
6578
6579found="no"
6580
6581	if test $found = "no" ; then
6582		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6583			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6584		fi
6585
6586		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6587			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6588		fi
6589
6590		CFLAGS="$CFLAGS -Wlogical-op"
6591
6592		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6593printf %s "checking if $CC supports -Wlogical-op... " >&6; }
6594		cacheid=xorg_cv_cc_flag__Wlogical_op
6595		if eval test \${$cacheid+y}
6596then :
6597  printf %s "(cached) " >&6
6598else case e in #(
6599  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600/* end confdefs.h.  */
6601int i;
6602int
6603main (void)
6604{
6605
6606  ;
6607  return 0;
6608}
6609_ACEOF
6610if ac_fn_c_try_link "$LINENO"
6611then :
6612  eval $cacheid=yes
6613else case e in #(
6614  e) eval $cacheid=no ;;
6615esac
6616fi
6617rm -f core conftest.err conftest.$ac_objext conftest.beam \
6618    conftest$ac_exeext conftest.$ac_ext ;;
6619esac
6620fi
6621
6622
6623		CFLAGS="$xorg_testset_save_CFLAGS"
6624
6625		eval supported=\$$cacheid
6626		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6627printf "%s\n" "$supported" >&6; }
6628		if test "$supported" = "yes" ; then
6629			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6630			found="yes"
6631		fi
6632	fi
6633
6634
6635
6636# These are currently disabled because they are noisy.  They will be enabled
6637# in the future once the codebase is sufficiently modernized to silence
6638# them.  For now, I don't want them to drown out the other warnings.
6639# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6640# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6641# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6642
6643# Turn some warnings into errors, so we don't accidentally get successful builds
6644# when there are problems that should be fixed.
6645
6646if test "x$SELECTIVE_WERROR" = "xyes" ; then
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660xorg_testset_save_CFLAGS="$CFLAGS"
6661
6662if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6663	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6664	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6665printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6666if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6667then :
6668  printf %s "(cached) " >&6
6669else case e in #(
6670  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671/* end confdefs.h.  */
6672int i;
6673_ACEOF
6674if ac_fn_c_try_compile "$LINENO"
6675then :
6676  xorg_cv_cc_flag_unknown_warning_option=yes
6677else case e in #(
6678  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6679esac
6680fi
6681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6682esac
6683fi
6684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6685printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6686	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6687	CFLAGS="$xorg_testset_save_CFLAGS"
6688fi
6689
6690if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6691	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6692		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6693	fi
6694	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6695	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6696printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6697if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6698then :
6699  printf %s "(cached) " >&6
6700else case e in #(
6701  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702/* end confdefs.h.  */
6703int i;
6704_ACEOF
6705if ac_fn_c_try_compile "$LINENO"
6706then :
6707  xorg_cv_cc_flag_unused_command_line_argument=yes
6708else case e in #(
6709  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6710esac
6711fi
6712rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6713esac
6714fi
6715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6716printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6717	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6718	CFLAGS="$xorg_testset_save_CFLAGS"
6719fi
6720
6721found="no"
6722
6723	if test $found = "no" ; then
6724		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6725			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6726		fi
6727
6728		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6729			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6730		fi
6731
6732		CFLAGS="$CFLAGS -Werror=implicit"
6733
6734		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6735printf %s "checking if $CC supports -Werror=implicit... " >&6; }
6736		cacheid=xorg_cv_cc_flag__Werror_implicit
6737		if eval test \${$cacheid+y}
6738then :
6739  printf %s "(cached) " >&6
6740else case e in #(
6741  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6742/* end confdefs.h.  */
6743int i;
6744int
6745main (void)
6746{
6747
6748  ;
6749  return 0;
6750}
6751_ACEOF
6752if ac_fn_c_try_link "$LINENO"
6753then :
6754  eval $cacheid=yes
6755else case e in #(
6756  e) eval $cacheid=no ;;
6757esac
6758fi
6759rm -f core conftest.err conftest.$ac_objext conftest.beam \
6760    conftest$ac_exeext conftest.$ac_ext ;;
6761esac
6762fi
6763
6764
6765		CFLAGS="$xorg_testset_save_CFLAGS"
6766
6767		eval supported=\$$cacheid
6768		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6769printf "%s\n" "$supported" >&6; }
6770		if test "$supported" = "yes" ; then
6771			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6772			found="yes"
6773		fi
6774	fi
6775
6776	if test $found = "no" ; then
6777		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6778			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6779		fi
6780
6781		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6782			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6783		fi
6784
6785		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6786
6787		{ 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
6788printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6789		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6790		if eval test \${$cacheid+y}
6791then :
6792  printf %s "(cached) " >&6
6793else case e in #(
6794  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6795/* end confdefs.h.  */
6796int i;
6797int
6798main (void)
6799{
6800
6801  ;
6802  return 0;
6803}
6804_ACEOF
6805if ac_fn_c_try_link "$LINENO"
6806then :
6807  eval $cacheid=yes
6808else case e in #(
6809  e) eval $cacheid=no ;;
6810esac
6811fi
6812rm -f core conftest.err conftest.$ac_objext conftest.beam \
6813    conftest$ac_exeext conftest.$ac_ext ;;
6814esac
6815fi
6816
6817
6818		CFLAGS="$xorg_testset_save_CFLAGS"
6819
6820		eval supported=\$$cacheid
6821		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6822printf "%s\n" "$supported" >&6; }
6823		if test "$supported" = "yes" ; then
6824			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6825			found="yes"
6826		fi
6827	fi
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843xorg_testset_save_CFLAGS="$CFLAGS"
6844
6845if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6846	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6847	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6848printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6849if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6850then :
6851  printf %s "(cached) " >&6
6852else case e in #(
6853  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854/* end confdefs.h.  */
6855int i;
6856_ACEOF
6857if ac_fn_c_try_compile "$LINENO"
6858then :
6859  xorg_cv_cc_flag_unknown_warning_option=yes
6860else case e in #(
6861  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6862esac
6863fi
6864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6865esac
6866fi
6867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6868printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6869	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6870	CFLAGS="$xorg_testset_save_CFLAGS"
6871fi
6872
6873if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6874	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6875		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6876	fi
6877	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6878	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6879printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6880if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6881then :
6882  printf %s "(cached) " >&6
6883else case e in #(
6884  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6885/* end confdefs.h.  */
6886int i;
6887_ACEOF
6888if ac_fn_c_try_compile "$LINENO"
6889then :
6890  xorg_cv_cc_flag_unused_command_line_argument=yes
6891else case e in #(
6892  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6893esac
6894fi
6895rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6896esac
6897fi
6898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6899printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6900	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6901	CFLAGS="$xorg_testset_save_CFLAGS"
6902fi
6903
6904found="no"
6905
6906	if test $found = "no" ; then
6907		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6908			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6909		fi
6910
6911		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6912			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6913		fi
6914
6915		CFLAGS="$CFLAGS -Werror=nonnull"
6916
6917		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6918printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
6919		cacheid=xorg_cv_cc_flag__Werror_nonnull
6920		if eval test \${$cacheid+y}
6921then :
6922  printf %s "(cached) " >&6
6923else case e in #(
6924  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925/* end confdefs.h.  */
6926int i;
6927int
6928main (void)
6929{
6930
6931  ;
6932  return 0;
6933}
6934_ACEOF
6935if ac_fn_c_try_link "$LINENO"
6936then :
6937  eval $cacheid=yes
6938else case e in #(
6939  e) eval $cacheid=no ;;
6940esac
6941fi
6942rm -f core conftest.err conftest.$ac_objext conftest.beam \
6943    conftest$ac_exeext conftest.$ac_ext ;;
6944esac
6945fi
6946
6947
6948		CFLAGS="$xorg_testset_save_CFLAGS"
6949
6950		eval supported=\$$cacheid
6951		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6952printf "%s\n" "$supported" >&6; }
6953		if test "$supported" = "yes" ; then
6954			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6955			found="yes"
6956		fi
6957	fi
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973xorg_testset_save_CFLAGS="$CFLAGS"
6974
6975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6976	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6977	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6978printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6979if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6980then :
6981  printf %s "(cached) " >&6
6982else case e in #(
6983  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984/* end confdefs.h.  */
6985int i;
6986_ACEOF
6987if ac_fn_c_try_compile "$LINENO"
6988then :
6989  xorg_cv_cc_flag_unknown_warning_option=yes
6990else case e in #(
6991  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6992esac
6993fi
6994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6995esac
6996fi
6997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6998printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6999	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7000	CFLAGS="$xorg_testset_save_CFLAGS"
7001fi
7002
7003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7004	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7005		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7006	fi
7007	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7008	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7009printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7010if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7011then :
7012  printf %s "(cached) " >&6
7013else case e in #(
7014  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7015/* end confdefs.h.  */
7016int i;
7017_ACEOF
7018if ac_fn_c_try_compile "$LINENO"
7019then :
7020  xorg_cv_cc_flag_unused_command_line_argument=yes
7021else case e in #(
7022  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7023esac
7024fi
7025rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7026esac
7027fi
7028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7029printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7030	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7031	CFLAGS="$xorg_testset_save_CFLAGS"
7032fi
7033
7034found="no"
7035
7036	if test $found = "no" ; then
7037		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7038			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7039		fi
7040
7041		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7042			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7043		fi
7044
7045		CFLAGS="$CFLAGS -Werror=init-self"
7046
7047		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7048printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7049		cacheid=xorg_cv_cc_flag__Werror_init_self
7050		if eval test \${$cacheid+y}
7051then :
7052  printf %s "(cached) " >&6
7053else case e in #(
7054  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055/* end confdefs.h.  */
7056int i;
7057int
7058main (void)
7059{
7060
7061  ;
7062  return 0;
7063}
7064_ACEOF
7065if ac_fn_c_try_link "$LINENO"
7066then :
7067  eval $cacheid=yes
7068else case e in #(
7069  e) eval $cacheid=no ;;
7070esac
7071fi
7072rm -f core conftest.err conftest.$ac_objext conftest.beam \
7073    conftest$ac_exeext conftest.$ac_ext ;;
7074esac
7075fi
7076
7077
7078		CFLAGS="$xorg_testset_save_CFLAGS"
7079
7080		eval supported=\$$cacheid
7081		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7082printf "%s\n" "$supported" >&6; }
7083		if test "$supported" = "yes" ; then
7084			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7085			found="yes"
7086		fi
7087	fi
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103xorg_testset_save_CFLAGS="$CFLAGS"
7104
7105if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7106	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7107	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7108printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7109if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7110then :
7111  printf %s "(cached) " >&6
7112else case e in #(
7113  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114/* end confdefs.h.  */
7115int i;
7116_ACEOF
7117if ac_fn_c_try_compile "$LINENO"
7118then :
7119  xorg_cv_cc_flag_unknown_warning_option=yes
7120else case e in #(
7121  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7122esac
7123fi
7124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7125esac
7126fi
7127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7128printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7129	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7130	CFLAGS="$xorg_testset_save_CFLAGS"
7131fi
7132
7133if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7134	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7135		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7136	fi
7137	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7138	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7139printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7140if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7141then :
7142  printf %s "(cached) " >&6
7143else case e in #(
7144  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145/* end confdefs.h.  */
7146int i;
7147_ACEOF
7148if ac_fn_c_try_compile "$LINENO"
7149then :
7150  xorg_cv_cc_flag_unused_command_line_argument=yes
7151else case e in #(
7152  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7153esac
7154fi
7155rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7156esac
7157fi
7158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7159printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7160	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7161	CFLAGS="$xorg_testset_save_CFLAGS"
7162fi
7163
7164found="no"
7165
7166	if test $found = "no" ; then
7167		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7168			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7169		fi
7170
7171		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7172			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7173		fi
7174
7175		CFLAGS="$CFLAGS -Werror=main"
7176
7177		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7178printf %s "checking if $CC supports -Werror=main... " >&6; }
7179		cacheid=xorg_cv_cc_flag__Werror_main
7180		if eval test \${$cacheid+y}
7181then :
7182  printf %s "(cached) " >&6
7183else case e in #(
7184  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185/* end confdefs.h.  */
7186int i;
7187int
7188main (void)
7189{
7190
7191  ;
7192  return 0;
7193}
7194_ACEOF
7195if ac_fn_c_try_link "$LINENO"
7196then :
7197  eval $cacheid=yes
7198else case e in #(
7199  e) eval $cacheid=no ;;
7200esac
7201fi
7202rm -f core conftest.err conftest.$ac_objext conftest.beam \
7203    conftest$ac_exeext conftest.$ac_ext ;;
7204esac
7205fi
7206
7207
7208		CFLAGS="$xorg_testset_save_CFLAGS"
7209
7210		eval supported=\$$cacheid
7211		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7212printf "%s\n" "$supported" >&6; }
7213		if test "$supported" = "yes" ; then
7214			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7215			found="yes"
7216		fi
7217	fi
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233xorg_testset_save_CFLAGS="$CFLAGS"
7234
7235if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7236	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7237	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7238printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7239if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7240then :
7241  printf %s "(cached) " >&6
7242else case e in #(
7243  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244/* end confdefs.h.  */
7245int i;
7246_ACEOF
7247if ac_fn_c_try_compile "$LINENO"
7248then :
7249  xorg_cv_cc_flag_unknown_warning_option=yes
7250else case e in #(
7251  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7252esac
7253fi
7254rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7255esac
7256fi
7257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7258printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7259	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7260	CFLAGS="$xorg_testset_save_CFLAGS"
7261fi
7262
7263if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7264	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7265		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7266	fi
7267	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7268	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7269printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7270if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7271then :
7272  printf %s "(cached) " >&6
7273else case e in #(
7274  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275/* end confdefs.h.  */
7276int i;
7277_ACEOF
7278if ac_fn_c_try_compile "$LINENO"
7279then :
7280  xorg_cv_cc_flag_unused_command_line_argument=yes
7281else case e in #(
7282  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7283esac
7284fi
7285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7286esac
7287fi
7288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7289printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7290	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7291	CFLAGS="$xorg_testset_save_CFLAGS"
7292fi
7293
7294found="no"
7295
7296	if test $found = "no" ; then
7297		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7298			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7299		fi
7300
7301		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7302			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7303		fi
7304
7305		CFLAGS="$CFLAGS -Werror=missing-braces"
7306
7307		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7308printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7309		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7310		if eval test \${$cacheid+y}
7311then :
7312  printf %s "(cached) " >&6
7313else case e in #(
7314  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315/* end confdefs.h.  */
7316int i;
7317int
7318main (void)
7319{
7320
7321  ;
7322  return 0;
7323}
7324_ACEOF
7325if ac_fn_c_try_link "$LINENO"
7326then :
7327  eval $cacheid=yes
7328else case e in #(
7329  e) eval $cacheid=no ;;
7330esac
7331fi
7332rm -f core conftest.err conftest.$ac_objext conftest.beam \
7333    conftest$ac_exeext conftest.$ac_ext ;;
7334esac
7335fi
7336
7337
7338		CFLAGS="$xorg_testset_save_CFLAGS"
7339
7340		eval supported=\$$cacheid
7341		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7342printf "%s\n" "$supported" >&6; }
7343		if test "$supported" = "yes" ; then
7344			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7345			found="yes"
7346		fi
7347	fi
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363xorg_testset_save_CFLAGS="$CFLAGS"
7364
7365if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7366	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7367	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7368printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7369if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7370then :
7371  printf %s "(cached) " >&6
7372else case e in #(
7373  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374/* end confdefs.h.  */
7375int i;
7376_ACEOF
7377if ac_fn_c_try_compile "$LINENO"
7378then :
7379  xorg_cv_cc_flag_unknown_warning_option=yes
7380else case e in #(
7381  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7382esac
7383fi
7384rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7385esac
7386fi
7387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7388printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7389	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7390	CFLAGS="$xorg_testset_save_CFLAGS"
7391fi
7392
7393if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7394	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7395		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7396	fi
7397	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7398	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7399printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7400if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7401then :
7402  printf %s "(cached) " >&6
7403else case e in #(
7404  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405/* end confdefs.h.  */
7406int i;
7407_ACEOF
7408if ac_fn_c_try_compile "$LINENO"
7409then :
7410  xorg_cv_cc_flag_unused_command_line_argument=yes
7411else case e in #(
7412  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7413esac
7414fi
7415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7416esac
7417fi
7418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7419printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7420	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7421	CFLAGS="$xorg_testset_save_CFLAGS"
7422fi
7423
7424found="no"
7425
7426	if test $found = "no" ; then
7427		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7428			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7429		fi
7430
7431		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7432			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7433		fi
7434
7435		CFLAGS="$CFLAGS -Werror=sequence-point"
7436
7437		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7438printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7439		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7440		if eval test \${$cacheid+y}
7441then :
7442  printf %s "(cached) " >&6
7443else case e in #(
7444  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445/* end confdefs.h.  */
7446int i;
7447int
7448main (void)
7449{
7450
7451  ;
7452  return 0;
7453}
7454_ACEOF
7455if ac_fn_c_try_link "$LINENO"
7456then :
7457  eval $cacheid=yes
7458else case e in #(
7459  e) eval $cacheid=no ;;
7460esac
7461fi
7462rm -f core conftest.err conftest.$ac_objext conftest.beam \
7463    conftest$ac_exeext conftest.$ac_ext ;;
7464esac
7465fi
7466
7467
7468		CFLAGS="$xorg_testset_save_CFLAGS"
7469
7470		eval supported=\$$cacheid
7471		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7472printf "%s\n" "$supported" >&6; }
7473		if test "$supported" = "yes" ; then
7474			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7475			found="yes"
7476		fi
7477	fi
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493xorg_testset_save_CFLAGS="$CFLAGS"
7494
7495if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7496	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7497	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7498printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7499if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7500then :
7501  printf %s "(cached) " >&6
7502else case e in #(
7503  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504/* end confdefs.h.  */
7505int i;
7506_ACEOF
7507if ac_fn_c_try_compile "$LINENO"
7508then :
7509  xorg_cv_cc_flag_unknown_warning_option=yes
7510else case e in #(
7511  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7512esac
7513fi
7514rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7515esac
7516fi
7517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7518printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7519	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7520	CFLAGS="$xorg_testset_save_CFLAGS"
7521fi
7522
7523if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7524	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7525		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7526	fi
7527	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7528	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7529printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7530if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7531then :
7532  printf %s "(cached) " >&6
7533else case e in #(
7534  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535/* end confdefs.h.  */
7536int i;
7537_ACEOF
7538if ac_fn_c_try_compile "$LINENO"
7539then :
7540  xorg_cv_cc_flag_unused_command_line_argument=yes
7541else case e in #(
7542  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7543esac
7544fi
7545rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7546esac
7547fi
7548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7549printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7550	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7551	CFLAGS="$xorg_testset_save_CFLAGS"
7552fi
7553
7554found="no"
7555
7556	if test $found = "no" ; then
7557		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7558			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7559		fi
7560
7561		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7562			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7563		fi
7564
7565		CFLAGS="$CFLAGS -Werror=return-type"
7566
7567		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7568printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7569		cacheid=xorg_cv_cc_flag__Werror_return_type
7570		if eval test \${$cacheid+y}
7571then :
7572  printf %s "(cached) " >&6
7573else case e in #(
7574  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575/* end confdefs.h.  */
7576int i;
7577int
7578main (void)
7579{
7580
7581  ;
7582  return 0;
7583}
7584_ACEOF
7585if ac_fn_c_try_link "$LINENO"
7586then :
7587  eval $cacheid=yes
7588else case e in #(
7589  e) eval $cacheid=no ;;
7590esac
7591fi
7592rm -f core conftest.err conftest.$ac_objext conftest.beam \
7593    conftest$ac_exeext conftest.$ac_ext ;;
7594esac
7595fi
7596
7597
7598		CFLAGS="$xorg_testset_save_CFLAGS"
7599
7600		eval supported=\$$cacheid
7601		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7602printf "%s\n" "$supported" >&6; }
7603		if test "$supported" = "yes" ; then
7604			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7605			found="yes"
7606		fi
7607	fi
7608
7609	if test $found = "no" ; then
7610		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7611			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7612		fi
7613
7614		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7615			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7616		fi
7617
7618		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7619
7620		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7621printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7622		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7623		if eval test \${$cacheid+y}
7624then :
7625  printf %s "(cached) " >&6
7626else case e in #(
7627  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628/* end confdefs.h.  */
7629int i;
7630int
7631main (void)
7632{
7633
7634  ;
7635  return 0;
7636}
7637_ACEOF
7638if ac_fn_c_try_link "$LINENO"
7639then :
7640  eval $cacheid=yes
7641else case e in #(
7642  e) eval $cacheid=no ;;
7643esac
7644fi
7645rm -f core conftest.err conftest.$ac_objext conftest.beam \
7646    conftest$ac_exeext conftest.$ac_ext ;;
7647esac
7648fi
7649
7650
7651		CFLAGS="$xorg_testset_save_CFLAGS"
7652
7653		eval supported=\$$cacheid
7654		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7655printf "%s\n" "$supported" >&6; }
7656		if test "$supported" = "yes" ; then
7657			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7658			found="yes"
7659		fi
7660	fi
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676xorg_testset_save_CFLAGS="$CFLAGS"
7677
7678if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7679	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7680	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7681printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7682if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7683then :
7684  printf %s "(cached) " >&6
7685else case e in #(
7686  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687/* end confdefs.h.  */
7688int i;
7689_ACEOF
7690if ac_fn_c_try_compile "$LINENO"
7691then :
7692  xorg_cv_cc_flag_unknown_warning_option=yes
7693else case e in #(
7694  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7695esac
7696fi
7697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7698esac
7699fi
7700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7701printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7702	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7703	CFLAGS="$xorg_testset_save_CFLAGS"
7704fi
7705
7706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7707	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7708		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7709	fi
7710	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7711	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7712printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7713if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7714then :
7715  printf %s "(cached) " >&6
7716else case e in #(
7717  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718/* end confdefs.h.  */
7719int i;
7720_ACEOF
7721if ac_fn_c_try_compile "$LINENO"
7722then :
7723  xorg_cv_cc_flag_unused_command_line_argument=yes
7724else case e in #(
7725  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7726esac
7727fi
7728rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7729esac
7730fi
7731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7732printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7733	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7734	CFLAGS="$xorg_testset_save_CFLAGS"
7735fi
7736
7737found="no"
7738
7739	if test $found = "no" ; then
7740		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7741			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7742		fi
7743
7744		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7745			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7746		fi
7747
7748		CFLAGS="$CFLAGS -Werror=trigraphs"
7749
7750		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7751printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
7752		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7753		if eval test \${$cacheid+y}
7754then :
7755  printf %s "(cached) " >&6
7756else case e in #(
7757  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758/* end confdefs.h.  */
7759int i;
7760int
7761main (void)
7762{
7763
7764  ;
7765  return 0;
7766}
7767_ACEOF
7768if ac_fn_c_try_link "$LINENO"
7769then :
7770  eval $cacheid=yes
7771else case e in #(
7772  e) eval $cacheid=no ;;
7773esac
7774fi
7775rm -f core conftest.err conftest.$ac_objext conftest.beam \
7776    conftest$ac_exeext conftest.$ac_ext ;;
7777esac
7778fi
7779
7780
7781		CFLAGS="$xorg_testset_save_CFLAGS"
7782
7783		eval supported=\$$cacheid
7784		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7785printf "%s\n" "$supported" >&6; }
7786		if test "$supported" = "yes" ; then
7787			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7788			found="yes"
7789		fi
7790	fi
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806xorg_testset_save_CFLAGS="$CFLAGS"
7807
7808if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7809	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7810	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7811printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7812if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7813then :
7814  printf %s "(cached) " >&6
7815else case e in #(
7816  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817/* end confdefs.h.  */
7818int i;
7819_ACEOF
7820if ac_fn_c_try_compile "$LINENO"
7821then :
7822  xorg_cv_cc_flag_unknown_warning_option=yes
7823else case e in #(
7824  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7825esac
7826fi
7827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7828esac
7829fi
7830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7831printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7832	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7833	CFLAGS="$xorg_testset_save_CFLAGS"
7834fi
7835
7836if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7837	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7838		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7839	fi
7840	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7841	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7842printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7843if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7844then :
7845  printf %s "(cached) " >&6
7846else case e in #(
7847  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848/* end confdefs.h.  */
7849int i;
7850_ACEOF
7851if ac_fn_c_try_compile "$LINENO"
7852then :
7853  xorg_cv_cc_flag_unused_command_line_argument=yes
7854else case e in #(
7855  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7856esac
7857fi
7858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7859esac
7860fi
7861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7862printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7863	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7864	CFLAGS="$xorg_testset_save_CFLAGS"
7865fi
7866
7867found="no"
7868
7869	if test $found = "no" ; then
7870		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7871			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7872		fi
7873
7874		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7875			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7876		fi
7877
7878		CFLAGS="$CFLAGS -Werror=array-bounds"
7879
7880		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7881printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
7882		cacheid=xorg_cv_cc_flag__Werror_array_bounds
7883		if eval test \${$cacheid+y}
7884then :
7885  printf %s "(cached) " >&6
7886else case e in #(
7887  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888/* end confdefs.h.  */
7889int i;
7890int
7891main (void)
7892{
7893
7894  ;
7895  return 0;
7896}
7897_ACEOF
7898if ac_fn_c_try_link "$LINENO"
7899then :
7900  eval $cacheid=yes
7901else case e in #(
7902  e) eval $cacheid=no ;;
7903esac
7904fi
7905rm -f core conftest.err conftest.$ac_objext conftest.beam \
7906    conftest$ac_exeext conftest.$ac_ext ;;
7907esac
7908fi
7909
7910
7911		CFLAGS="$xorg_testset_save_CFLAGS"
7912
7913		eval supported=\$$cacheid
7914		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7915printf "%s\n" "$supported" >&6; }
7916		if test "$supported" = "yes" ; then
7917			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7918			found="yes"
7919		fi
7920	fi
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936xorg_testset_save_CFLAGS="$CFLAGS"
7937
7938if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7939	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7940	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7941printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7942if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7943then :
7944  printf %s "(cached) " >&6
7945else case e in #(
7946  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947/* end confdefs.h.  */
7948int i;
7949_ACEOF
7950if ac_fn_c_try_compile "$LINENO"
7951then :
7952  xorg_cv_cc_flag_unknown_warning_option=yes
7953else case e in #(
7954  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7955esac
7956fi
7957rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7958esac
7959fi
7960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7961printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7962	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7963	CFLAGS="$xorg_testset_save_CFLAGS"
7964fi
7965
7966if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7967	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7968		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7969	fi
7970	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7971	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7972printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7973if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7974then :
7975  printf %s "(cached) " >&6
7976else case e in #(
7977  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978/* end confdefs.h.  */
7979int i;
7980_ACEOF
7981if ac_fn_c_try_compile "$LINENO"
7982then :
7983  xorg_cv_cc_flag_unused_command_line_argument=yes
7984else case e in #(
7985  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7986esac
7987fi
7988rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7989esac
7990fi
7991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7992printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7993	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7994	CFLAGS="$xorg_testset_save_CFLAGS"
7995fi
7996
7997found="no"
7998
7999	if test $found = "no" ; then
8000		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8001			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8002		fi
8003
8004		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8005			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8006		fi
8007
8008		CFLAGS="$CFLAGS -Werror=write-strings"
8009
8010		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8011printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8012		cacheid=xorg_cv_cc_flag__Werror_write_strings
8013		if eval test \${$cacheid+y}
8014then :
8015  printf %s "(cached) " >&6
8016else case e in #(
8017  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018/* end confdefs.h.  */
8019int i;
8020int
8021main (void)
8022{
8023
8024  ;
8025  return 0;
8026}
8027_ACEOF
8028if ac_fn_c_try_link "$LINENO"
8029then :
8030  eval $cacheid=yes
8031else case e in #(
8032  e) eval $cacheid=no ;;
8033esac
8034fi
8035rm -f core conftest.err conftest.$ac_objext conftest.beam \
8036    conftest$ac_exeext conftest.$ac_ext ;;
8037esac
8038fi
8039
8040
8041		CFLAGS="$xorg_testset_save_CFLAGS"
8042
8043		eval supported=\$$cacheid
8044		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8045printf "%s\n" "$supported" >&6; }
8046		if test "$supported" = "yes" ; then
8047			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8048			found="yes"
8049		fi
8050	fi
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066xorg_testset_save_CFLAGS="$CFLAGS"
8067
8068if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8069	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8070	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8071printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8072if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8073then :
8074  printf %s "(cached) " >&6
8075else case e in #(
8076  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077/* end confdefs.h.  */
8078int i;
8079_ACEOF
8080if ac_fn_c_try_compile "$LINENO"
8081then :
8082  xorg_cv_cc_flag_unknown_warning_option=yes
8083else case e in #(
8084  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8085esac
8086fi
8087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8088esac
8089fi
8090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8091printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8092	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8093	CFLAGS="$xorg_testset_save_CFLAGS"
8094fi
8095
8096if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8097	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8098		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8099	fi
8100	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8101	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8102printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8103if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8104then :
8105  printf %s "(cached) " >&6
8106else case e in #(
8107  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108/* end confdefs.h.  */
8109int i;
8110_ACEOF
8111if ac_fn_c_try_compile "$LINENO"
8112then :
8113  xorg_cv_cc_flag_unused_command_line_argument=yes
8114else case e in #(
8115  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8116esac
8117fi
8118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8119esac
8120fi
8121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8122printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8123	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8124	CFLAGS="$xorg_testset_save_CFLAGS"
8125fi
8126
8127found="no"
8128
8129	if test $found = "no" ; then
8130		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8131			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8132		fi
8133
8134		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8135			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8136		fi
8137
8138		CFLAGS="$CFLAGS -Werror=address"
8139
8140		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8141printf %s "checking if $CC supports -Werror=address... " >&6; }
8142		cacheid=xorg_cv_cc_flag__Werror_address
8143		if eval test \${$cacheid+y}
8144then :
8145  printf %s "(cached) " >&6
8146else case e in #(
8147  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8148/* end confdefs.h.  */
8149int i;
8150int
8151main (void)
8152{
8153
8154  ;
8155  return 0;
8156}
8157_ACEOF
8158if ac_fn_c_try_link "$LINENO"
8159then :
8160  eval $cacheid=yes
8161else case e in #(
8162  e) eval $cacheid=no ;;
8163esac
8164fi
8165rm -f core conftest.err conftest.$ac_objext conftest.beam \
8166    conftest$ac_exeext conftest.$ac_ext ;;
8167esac
8168fi
8169
8170
8171		CFLAGS="$xorg_testset_save_CFLAGS"
8172
8173		eval supported=\$$cacheid
8174		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8175printf "%s\n" "$supported" >&6; }
8176		if test "$supported" = "yes" ; then
8177			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8178			found="yes"
8179		fi
8180	fi
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196xorg_testset_save_CFLAGS="$CFLAGS"
8197
8198if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8199	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8200	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8201printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8202if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8203then :
8204  printf %s "(cached) " >&6
8205else case e in #(
8206  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207/* end confdefs.h.  */
8208int i;
8209_ACEOF
8210if ac_fn_c_try_compile "$LINENO"
8211then :
8212  xorg_cv_cc_flag_unknown_warning_option=yes
8213else case e in #(
8214  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8215esac
8216fi
8217rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8218esac
8219fi
8220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8221printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8222	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8223	CFLAGS="$xorg_testset_save_CFLAGS"
8224fi
8225
8226if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8227	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8228		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8229	fi
8230	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8231	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8232printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8233if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8234then :
8235  printf %s "(cached) " >&6
8236else case e in #(
8237  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238/* end confdefs.h.  */
8239int i;
8240_ACEOF
8241if ac_fn_c_try_compile "$LINENO"
8242then :
8243  xorg_cv_cc_flag_unused_command_line_argument=yes
8244else case e in #(
8245  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8246esac
8247fi
8248rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8249esac
8250fi
8251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8252printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8253	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8254	CFLAGS="$xorg_testset_save_CFLAGS"
8255fi
8256
8257found="no"
8258
8259	if test $found = "no" ; then
8260		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8261			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8262		fi
8263
8264		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8265			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8266		fi
8267
8268		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8269
8270		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8271printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8272		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8273		if eval test \${$cacheid+y}
8274then :
8275  printf %s "(cached) " >&6
8276else case e in #(
8277  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8278/* end confdefs.h.  */
8279int i;
8280int
8281main (void)
8282{
8283
8284  ;
8285  return 0;
8286}
8287_ACEOF
8288if ac_fn_c_try_link "$LINENO"
8289then :
8290  eval $cacheid=yes
8291else case e in #(
8292  e) eval $cacheid=no ;;
8293esac
8294fi
8295rm -f core conftest.err conftest.$ac_objext conftest.beam \
8296    conftest$ac_exeext conftest.$ac_ext ;;
8297esac
8298fi
8299
8300
8301		CFLAGS="$xorg_testset_save_CFLAGS"
8302
8303		eval supported=\$$cacheid
8304		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8305printf "%s\n" "$supported" >&6; }
8306		if test "$supported" = "yes" ; then
8307			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8308			found="yes"
8309		fi
8310	fi
8311
8312	if test $found = "no" ; then
8313		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8314			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8315		fi
8316
8317		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8318			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8319		fi
8320
8321		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8322
8323		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8324printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8325		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8326		if eval test \${$cacheid+y}
8327then :
8328  printf %s "(cached) " >&6
8329else case e in #(
8330  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331/* end confdefs.h.  */
8332int i;
8333int
8334main (void)
8335{
8336
8337  ;
8338  return 0;
8339}
8340_ACEOF
8341if ac_fn_c_try_link "$LINENO"
8342then :
8343  eval $cacheid=yes
8344else case e in #(
8345  e) eval $cacheid=no ;;
8346esac
8347fi
8348rm -f core conftest.err conftest.$ac_objext conftest.beam \
8349    conftest$ac_exeext conftest.$ac_ext ;;
8350esac
8351fi
8352
8353
8354		CFLAGS="$xorg_testset_save_CFLAGS"
8355
8356		eval supported=\$$cacheid
8357		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8358printf "%s\n" "$supported" >&6; }
8359		if test "$supported" = "yes" ; then
8360			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8361			found="yes"
8362		fi
8363	fi
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379xorg_testset_save_CFLAGS="$CFLAGS"
8380
8381if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8382	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8383	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8384printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8385if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8386then :
8387  printf %s "(cached) " >&6
8388else case e in #(
8389  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390/* end confdefs.h.  */
8391int i;
8392_ACEOF
8393if ac_fn_c_try_compile "$LINENO"
8394then :
8395  xorg_cv_cc_flag_unknown_warning_option=yes
8396else case e in #(
8397  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8398esac
8399fi
8400rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8401esac
8402fi
8403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8404printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8405	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8406	CFLAGS="$xorg_testset_save_CFLAGS"
8407fi
8408
8409if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8410	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8411		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8412	fi
8413	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8414	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8415printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8416if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8417then :
8418  printf %s "(cached) " >&6
8419else case e in #(
8420  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421/* end confdefs.h.  */
8422int i;
8423_ACEOF
8424if ac_fn_c_try_compile "$LINENO"
8425then :
8426  xorg_cv_cc_flag_unused_command_line_argument=yes
8427else case e in #(
8428  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8429esac
8430fi
8431rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8432esac
8433fi
8434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8435printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8436	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8437	CFLAGS="$xorg_testset_save_CFLAGS"
8438fi
8439
8440found="no"
8441
8442	if test $found = "no" ; then
8443		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8444			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8445		fi
8446
8447		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8448			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8449		fi
8450
8451		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8452
8453		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8454printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8455		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8456		if eval test \${$cacheid+y}
8457then :
8458  printf %s "(cached) " >&6
8459else case e in #(
8460  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461/* end confdefs.h.  */
8462int i;
8463int
8464main (void)
8465{
8466
8467  ;
8468  return 0;
8469}
8470_ACEOF
8471if ac_fn_c_try_link "$LINENO"
8472then :
8473  eval $cacheid=yes
8474else case e in #(
8475  e) eval $cacheid=no ;;
8476esac
8477fi
8478rm -f core conftest.err conftest.$ac_objext conftest.beam \
8479    conftest$ac_exeext conftest.$ac_ext ;;
8480esac
8481fi
8482
8483
8484		CFLAGS="$xorg_testset_save_CFLAGS"
8485
8486		eval supported=\$$cacheid
8487		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8488printf "%s\n" "$supported" >&6; }
8489		if test "$supported" = "yes" ; then
8490			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8491			found="yes"
8492		fi
8493	fi
8494
8495 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8496else
8497{ 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
8498printf "%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;}
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512xorg_testset_save_CFLAGS="$CFLAGS"
8513
8514if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8515	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8516	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8517printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8518if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8519then :
8520  printf %s "(cached) " >&6
8521else case e in #(
8522  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523/* end confdefs.h.  */
8524int i;
8525_ACEOF
8526if ac_fn_c_try_compile "$LINENO"
8527then :
8528  xorg_cv_cc_flag_unknown_warning_option=yes
8529else case e in #(
8530  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8531esac
8532fi
8533rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8534esac
8535fi
8536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8537printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8538	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8539	CFLAGS="$xorg_testset_save_CFLAGS"
8540fi
8541
8542if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8543	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8544		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8545	fi
8546	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8547	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8548printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8549if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8550then :
8551  printf %s "(cached) " >&6
8552else case e in #(
8553  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554/* end confdefs.h.  */
8555int i;
8556_ACEOF
8557if ac_fn_c_try_compile "$LINENO"
8558then :
8559  xorg_cv_cc_flag_unused_command_line_argument=yes
8560else case e in #(
8561  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8562esac
8563fi
8564rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8565esac
8566fi
8567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8568printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8569	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8570	CFLAGS="$xorg_testset_save_CFLAGS"
8571fi
8572
8573found="no"
8574
8575	if test $found = "no" ; then
8576		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8577			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8578		fi
8579
8580		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8581			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8582		fi
8583
8584		CFLAGS="$CFLAGS -Wimplicit"
8585
8586		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8587printf %s "checking if $CC supports -Wimplicit... " >&6; }
8588		cacheid=xorg_cv_cc_flag__Wimplicit
8589		if eval test \${$cacheid+y}
8590then :
8591  printf %s "(cached) " >&6
8592else case e in #(
8593  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594/* end confdefs.h.  */
8595int i;
8596int
8597main (void)
8598{
8599
8600  ;
8601  return 0;
8602}
8603_ACEOF
8604if ac_fn_c_try_link "$LINENO"
8605then :
8606  eval $cacheid=yes
8607else case e in #(
8608  e) eval $cacheid=no ;;
8609esac
8610fi
8611rm -f core conftest.err conftest.$ac_objext conftest.beam \
8612    conftest$ac_exeext conftest.$ac_ext ;;
8613esac
8614fi
8615
8616
8617		CFLAGS="$xorg_testset_save_CFLAGS"
8618
8619		eval supported=\$$cacheid
8620		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8621printf "%s\n" "$supported" >&6; }
8622		if test "$supported" = "yes" ; then
8623			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8624			found="yes"
8625		fi
8626	fi
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642xorg_testset_save_CFLAGS="$CFLAGS"
8643
8644if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8645	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8646	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8647printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8648if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8649then :
8650  printf %s "(cached) " >&6
8651else case e in #(
8652  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653/* end confdefs.h.  */
8654int i;
8655_ACEOF
8656if ac_fn_c_try_compile "$LINENO"
8657then :
8658  xorg_cv_cc_flag_unknown_warning_option=yes
8659else case e in #(
8660  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8661esac
8662fi
8663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8664esac
8665fi
8666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8667printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8668	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8669	CFLAGS="$xorg_testset_save_CFLAGS"
8670fi
8671
8672if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8673	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8674		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8675	fi
8676	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8677	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8678printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8679if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8680then :
8681  printf %s "(cached) " >&6
8682else case e in #(
8683  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684/* end confdefs.h.  */
8685int i;
8686_ACEOF
8687if ac_fn_c_try_compile "$LINENO"
8688then :
8689  xorg_cv_cc_flag_unused_command_line_argument=yes
8690else case e in #(
8691  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8692esac
8693fi
8694rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8695esac
8696fi
8697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8698printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8699	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8700	CFLAGS="$xorg_testset_save_CFLAGS"
8701fi
8702
8703found="no"
8704
8705	if test $found = "no" ; then
8706		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8707			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8708		fi
8709
8710		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8711			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8712		fi
8713
8714		CFLAGS="$CFLAGS -Wnonnull"
8715
8716		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8717printf %s "checking if $CC supports -Wnonnull... " >&6; }
8718		cacheid=xorg_cv_cc_flag__Wnonnull
8719		if eval test \${$cacheid+y}
8720then :
8721  printf %s "(cached) " >&6
8722else case e in #(
8723  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724/* end confdefs.h.  */
8725int i;
8726int
8727main (void)
8728{
8729
8730  ;
8731  return 0;
8732}
8733_ACEOF
8734if ac_fn_c_try_link "$LINENO"
8735then :
8736  eval $cacheid=yes
8737else case e in #(
8738  e) eval $cacheid=no ;;
8739esac
8740fi
8741rm -f core conftest.err conftest.$ac_objext conftest.beam \
8742    conftest$ac_exeext conftest.$ac_ext ;;
8743esac
8744fi
8745
8746
8747		CFLAGS="$xorg_testset_save_CFLAGS"
8748
8749		eval supported=\$$cacheid
8750		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8751printf "%s\n" "$supported" >&6; }
8752		if test "$supported" = "yes" ; then
8753			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8754			found="yes"
8755		fi
8756	fi
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772xorg_testset_save_CFLAGS="$CFLAGS"
8773
8774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8775	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8776	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8777printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8778if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8779then :
8780  printf %s "(cached) " >&6
8781else case e in #(
8782  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783/* end confdefs.h.  */
8784int i;
8785_ACEOF
8786if ac_fn_c_try_compile "$LINENO"
8787then :
8788  xorg_cv_cc_flag_unknown_warning_option=yes
8789else case e in #(
8790  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8791esac
8792fi
8793rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8794esac
8795fi
8796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8797printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8798	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8799	CFLAGS="$xorg_testset_save_CFLAGS"
8800fi
8801
8802if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8803	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8804		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8805	fi
8806	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8807	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8808printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8809if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8810then :
8811  printf %s "(cached) " >&6
8812else case e in #(
8813  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814/* end confdefs.h.  */
8815int i;
8816_ACEOF
8817if ac_fn_c_try_compile "$LINENO"
8818then :
8819  xorg_cv_cc_flag_unused_command_line_argument=yes
8820else case e in #(
8821  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8822esac
8823fi
8824rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8825esac
8826fi
8827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8828printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8829	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8830	CFLAGS="$xorg_testset_save_CFLAGS"
8831fi
8832
8833found="no"
8834
8835	if test $found = "no" ; then
8836		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8837			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8838		fi
8839
8840		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8841			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8842		fi
8843
8844		CFLAGS="$CFLAGS -Winit-self"
8845
8846		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8847printf %s "checking if $CC supports -Winit-self... " >&6; }
8848		cacheid=xorg_cv_cc_flag__Winit_self
8849		if eval test \${$cacheid+y}
8850then :
8851  printf %s "(cached) " >&6
8852else case e in #(
8853  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8854/* end confdefs.h.  */
8855int i;
8856int
8857main (void)
8858{
8859
8860  ;
8861  return 0;
8862}
8863_ACEOF
8864if ac_fn_c_try_link "$LINENO"
8865then :
8866  eval $cacheid=yes
8867else case e in #(
8868  e) eval $cacheid=no ;;
8869esac
8870fi
8871rm -f core conftest.err conftest.$ac_objext conftest.beam \
8872    conftest$ac_exeext conftest.$ac_ext ;;
8873esac
8874fi
8875
8876
8877		CFLAGS="$xorg_testset_save_CFLAGS"
8878
8879		eval supported=\$$cacheid
8880		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8881printf "%s\n" "$supported" >&6; }
8882		if test "$supported" = "yes" ; then
8883			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8884			found="yes"
8885		fi
8886	fi
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902xorg_testset_save_CFLAGS="$CFLAGS"
8903
8904if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8905	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8906	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8907printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8908if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8909then :
8910  printf %s "(cached) " >&6
8911else case e in #(
8912  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913/* end confdefs.h.  */
8914int i;
8915_ACEOF
8916if ac_fn_c_try_compile "$LINENO"
8917then :
8918  xorg_cv_cc_flag_unknown_warning_option=yes
8919else case e in #(
8920  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8921esac
8922fi
8923rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8924esac
8925fi
8926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8927printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8928	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8929	CFLAGS="$xorg_testset_save_CFLAGS"
8930fi
8931
8932if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8933	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8934		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8935	fi
8936	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8937	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8938printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8939if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8940then :
8941  printf %s "(cached) " >&6
8942else case e in #(
8943  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944/* end confdefs.h.  */
8945int i;
8946_ACEOF
8947if ac_fn_c_try_compile "$LINENO"
8948then :
8949  xorg_cv_cc_flag_unused_command_line_argument=yes
8950else case e in #(
8951  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8952esac
8953fi
8954rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8955esac
8956fi
8957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8958printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8959	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8960	CFLAGS="$xorg_testset_save_CFLAGS"
8961fi
8962
8963found="no"
8964
8965	if test $found = "no" ; then
8966		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8967			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8968		fi
8969
8970		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8971			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8972		fi
8973
8974		CFLAGS="$CFLAGS -Wmain"
8975
8976		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8977printf %s "checking if $CC supports -Wmain... " >&6; }
8978		cacheid=xorg_cv_cc_flag__Wmain
8979		if eval test \${$cacheid+y}
8980then :
8981  printf %s "(cached) " >&6
8982else case e in #(
8983  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984/* end confdefs.h.  */
8985int i;
8986int
8987main (void)
8988{
8989
8990  ;
8991  return 0;
8992}
8993_ACEOF
8994if ac_fn_c_try_link "$LINENO"
8995then :
8996  eval $cacheid=yes
8997else case e in #(
8998  e) eval $cacheid=no ;;
8999esac
9000fi
9001rm -f core conftest.err conftest.$ac_objext conftest.beam \
9002    conftest$ac_exeext conftest.$ac_ext ;;
9003esac
9004fi
9005
9006
9007		CFLAGS="$xorg_testset_save_CFLAGS"
9008
9009		eval supported=\$$cacheid
9010		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9011printf "%s\n" "$supported" >&6; }
9012		if test "$supported" = "yes" ; then
9013			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9014			found="yes"
9015		fi
9016	fi
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032xorg_testset_save_CFLAGS="$CFLAGS"
9033
9034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9035	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9036	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9037printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9038if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9039then :
9040  printf %s "(cached) " >&6
9041else case e in #(
9042  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043/* end confdefs.h.  */
9044int i;
9045_ACEOF
9046if ac_fn_c_try_compile "$LINENO"
9047then :
9048  xorg_cv_cc_flag_unknown_warning_option=yes
9049else case e in #(
9050  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9051esac
9052fi
9053rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9054esac
9055fi
9056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9057printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9058	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9059	CFLAGS="$xorg_testset_save_CFLAGS"
9060fi
9061
9062if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9063	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9064		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9065	fi
9066	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9067	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9068printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9069if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9070then :
9071  printf %s "(cached) " >&6
9072else case e in #(
9073  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074/* end confdefs.h.  */
9075int i;
9076_ACEOF
9077if ac_fn_c_try_compile "$LINENO"
9078then :
9079  xorg_cv_cc_flag_unused_command_line_argument=yes
9080else case e in #(
9081  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9082esac
9083fi
9084rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9085esac
9086fi
9087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9088printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9089	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9090	CFLAGS="$xorg_testset_save_CFLAGS"
9091fi
9092
9093found="no"
9094
9095	if test $found = "no" ; then
9096		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9097			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9098		fi
9099
9100		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9101			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9102		fi
9103
9104		CFLAGS="$CFLAGS -Wmissing-braces"
9105
9106		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9107printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9108		cacheid=xorg_cv_cc_flag__Wmissing_braces
9109		if eval test \${$cacheid+y}
9110then :
9111  printf %s "(cached) " >&6
9112else case e in #(
9113  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114/* end confdefs.h.  */
9115int i;
9116int
9117main (void)
9118{
9119
9120  ;
9121  return 0;
9122}
9123_ACEOF
9124if ac_fn_c_try_link "$LINENO"
9125then :
9126  eval $cacheid=yes
9127else case e in #(
9128  e) eval $cacheid=no ;;
9129esac
9130fi
9131rm -f core conftest.err conftest.$ac_objext conftest.beam \
9132    conftest$ac_exeext conftest.$ac_ext ;;
9133esac
9134fi
9135
9136
9137		CFLAGS="$xorg_testset_save_CFLAGS"
9138
9139		eval supported=\$$cacheid
9140		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9141printf "%s\n" "$supported" >&6; }
9142		if test "$supported" = "yes" ; then
9143			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9144			found="yes"
9145		fi
9146	fi
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162xorg_testset_save_CFLAGS="$CFLAGS"
9163
9164if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9165	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9166	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9167printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9168if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9169then :
9170  printf %s "(cached) " >&6
9171else case e in #(
9172  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9173/* end confdefs.h.  */
9174int i;
9175_ACEOF
9176if ac_fn_c_try_compile "$LINENO"
9177then :
9178  xorg_cv_cc_flag_unknown_warning_option=yes
9179else case e in #(
9180  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9181esac
9182fi
9183rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9184esac
9185fi
9186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9187printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9188	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9189	CFLAGS="$xorg_testset_save_CFLAGS"
9190fi
9191
9192if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9193	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9194		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9195	fi
9196	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9197	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9198printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9199if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9200then :
9201  printf %s "(cached) " >&6
9202else case e in #(
9203  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9204/* end confdefs.h.  */
9205int i;
9206_ACEOF
9207if ac_fn_c_try_compile "$LINENO"
9208then :
9209  xorg_cv_cc_flag_unused_command_line_argument=yes
9210else case e in #(
9211  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9212esac
9213fi
9214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9215esac
9216fi
9217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9218printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9219	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9220	CFLAGS="$xorg_testset_save_CFLAGS"
9221fi
9222
9223found="no"
9224
9225	if test $found = "no" ; then
9226		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9227			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9228		fi
9229
9230		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9231			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9232		fi
9233
9234		CFLAGS="$CFLAGS -Wsequence-point"
9235
9236		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9237printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9238		cacheid=xorg_cv_cc_flag__Wsequence_point
9239		if eval test \${$cacheid+y}
9240then :
9241  printf %s "(cached) " >&6
9242else case e in #(
9243  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9244/* end confdefs.h.  */
9245int i;
9246int
9247main (void)
9248{
9249
9250  ;
9251  return 0;
9252}
9253_ACEOF
9254if ac_fn_c_try_link "$LINENO"
9255then :
9256  eval $cacheid=yes
9257else case e in #(
9258  e) eval $cacheid=no ;;
9259esac
9260fi
9261rm -f core conftest.err conftest.$ac_objext conftest.beam \
9262    conftest$ac_exeext conftest.$ac_ext ;;
9263esac
9264fi
9265
9266
9267		CFLAGS="$xorg_testset_save_CFLAGS"
9268
9269		eval supported=\$$cacheid
9270		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9271printf "%s\n" "$supported" >&6; }
9272		if test "$supported" = "yes" ; then
9273			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9274			found="yes"
9275		fi
9276	fi
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292xorg_testset_save_CFLAGS="$CFLAGS"
9293
9294if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9295	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9296	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9297printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9298if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9299then :
9300  printf %s "(cached) " >&6
9301else case e in #(
9302  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303/* end confdefs.h.  */
9304int i;
9305_ACEOF
9306if ac_fn_c_try_compile "$LINENO"
9307then :
9308  xorg_cv_cc_flag_unknown_warning_option=yes
9309else case e in #(
9310  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9311esac
9312fi
9313rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9314esac
9315fi
9316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9317printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9318	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9319	CFLAGS="$xorg_testset_save_CFLAGS"
9320fi
9321
9322if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9323	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9324		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9325	fi
9326	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9327	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9328printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9329if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9330then :
9331  printf %s "(cached) " >&6
9332else case e in #(
9333  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334/* end confdefs.h.  */
9335int i;
9336_ACEOF
9337if ac_fn_c_try_compile "$LINENO"
9338then :
9339  xorg_cv_cc_flag_unused_command_line_argument=yes
9340else case e in #(
9341  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9342esac
9343fi
9344rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9345esac
9346fi
9347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9348printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9349	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9350	CFLAGS="$xorg_testset_save_CFLAGS"
9351fi
9352
9353found="no"
9354
9355	if test $found = "no" ; then
9356		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9357			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9358		fi
9359
9360		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9361			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9362		fi
9363
9364		CFLAGS="$CFLAGS -Wreturn-type"
9365
9366		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9367printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9368		cacheid=xorg_cv_cc_flag__Wreturn_type
9369		if eval test \${$cacheid+y}
9370then :
9371  printf %s "(cached) " >&6
9372else case e in #(
9373  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9374/* end confdefs.h.  */
9375int i;
9376int
9377main (void)
9378{
9379
9380  ;
9381  return 0;
9382}
9383_ACEOF
9384if ac_fn_c_try_link "$LINENO"
9385then :
9386  eval $cacheid=yes
9387else case e in #(
9388  e) eval $cacheid=no ;;
9389esac
9390fi
9391rm -f core conftest.err conftest.$ac_objext conftest.beam \
9392    conftest$ac_exeext conftest.$ac_ext ;;
9393esac
9394fi
9395
9396
9397		CFLAGS="$xorg_testset_save_CFLAGS"
9398
9399		eval supported=\$$cacheid
9400		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9401printf "%s\n" "$supported" >&6; }
9402		if test "$supported" = "yes" ; then
9403			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9404			found="yes"
9405		fi
9406	fi
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422xorg_testset_save_CFLAGS="$CFLAGS"
9423
9424if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9425	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9426	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9427printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9428if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9429then :
9430  printf %s "(cached) " >&6
9431else case e in #(
9432  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9433/* end confdefs.h.  */
9434int i;
9435_ACEOF
9436if ac_fn_c_try_compile "$LINENO"
9437then :
9438  xorg_cv_cc_flag_unknown_warning_option=yes
9439else case e in #(
9440  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9441esac
9442fi
9443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9444esac
9445fi
9446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9447printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9448	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9449	CFLAGS="$xorg_testset_save_CFLAGS"
9450fi
9451
9452if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9453	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9454		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9455	fi
9456	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9457	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9458printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9459if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9460then :
9461  printf %s "(cached) " >&6
9462else case e in #(
9463  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9464/* end confdefs.h.  */
9465int i;
9466_ACEOF
9467if ac_fn_c_try_compile "$LINENO"
9468then :
9469  xorg_cv_cc_flag_unused_command_line_argument=yes
9470else case e in #(
9471  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9472esac
9473fi
9474rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9475esac
9476fi
9477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9478printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9479	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9480	CFLAGS="$xorg_testset_save_CFLAGS"
9481fi
9482
9483found="no"
9484
9485	if test $found = "no" ; then
9486		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9487			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9488		fi
9489
9490		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9491			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9492		fi
9493
9494		CFLAGS="$CFLAGS -Wtrigraphs"
9495
9496		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9497printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9498		cacheid=xorg_cv_cc_flag__Wtrigraphs
9499		if eval test \${$cacheid+y}
9500then :
9501  printf %s "(cached) " >&6
9502else case e in #(
9503  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9504/* end confdefs.h.  */
9505int i;
9506int
9507main (void)
9508{
9509
9510  ;
9511  return 0;
9512}
9513_ACEOF
9514if ac_fn_c_try_link "$LINENO"
9515then :
9516  eval $cacheid=yes
9517else case e in #(
9518  e) eval $cacheid=no ;;
9519esac
9520fi
9521rm -f core conftest.err conftest.$ac_objext conftest.beam \
9522    conftest$ac_exeext conftest.$ac_ext ;;
9523esac
9524fi
9525
9526
9527		CFLAGS="$xorg_testset_save_CFLAGS"
9528
9529		eval supported=\$$cacheid
9530		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9531printf "%s\n" "$supported" >&6; }
9532		if test "$supported" = "yes" ; then
9533			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9534			found="yes"
9535		fi
9536	fi
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552xorg_testset_save_CFLAGS="$CFLAGS"
9553
9554if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9555	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9556	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9557printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9558if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9559then :
9560  printf %s "(cached) " >&6
9561else case e in #(
9562  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9563/* end confdefs.h.  */
9564int i;
9565_ACEOF
9566if ac_fn_c_try_compile "$LINENO"
9567then :
9568  xorg_cv_cc_flag_unknown_warning_option=yes
9569else case e in #(
9570  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9571esac
9572fi
9573rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9574esac
9575fi
9576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9577printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9578	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9579	CFLAGS="$xorg_testset_save_CFLAGS"
9580fi
9581
9582if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9583	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9584		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9585	fi
9586	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9587	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9588printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9589if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9590then :
9591  printf %s "(cached) " >&6
9592else case e in #(
9593  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594/* end confdefs.h.  */
9595int i;
9596_ACEOF
9597if ac_fn_c_try_compile "$LINENO"
9598then :
9599  xorg_cv_cc_flag_unused_command_line_argument=yes
9600else case e in #(
9601  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9602esac
9603fi
9604rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9605esac
9606fi
9607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9608printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9609	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9610	CFLAGS="$xorg_testset_save_CFLAGS"
9611fi
9612
9613found="no"
9614
9615	if test $found = "no" ; then
9616		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9617			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9618		fi
9619
9620		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9621			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9622		fi
9623
9624		CFLAGS="$CFLAGS -Warray-bounds"
9625
9626		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9627printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9628		cacheid=xorg_cv_cc_flag__Warray_bounds
9629		if eval test \${$cacheid+y}
9630then :
9631  printf %s "(cached) " >&6
9632else case e in #(
9633  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634/* end confdefs.h.  */
9635int i;
9636int
9637main (void)
9638{
9639
9640  ;
9641  return 0;
9642}
9643_ACEOF
9644if ac_fn_c_try_link "$LINENO"
9645then :
9646  eval $cacheid=yes
9647else case e in #(
9648  e) eval $cacheid=no ;;
9649esac
9650fi
9651rm -f core conftest.err conftest.$ac_objext conftest.beam \
9652    conftest$ac_exeext conftest.$ac_ext ;;
9653esac
9654fi
9655
9656
9657		CFLAGS="$xorg_testset_save_CFLAGS"
9658
9659		eval supported=\$$cacheid
9660		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9661printf "%s\n" "$supported" >&6; }
9662		if test "$supported" = "yes" ; then
9663			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9664			found="yes"
9665		fi
9666	fi
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682xorg_testset_save_CFLAGS="$CFLAGS"
9683
9684if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9685	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9686	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9687printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9688if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9689then :
9690  printf %s "(cached) " >&6
9691else case e in #(
9692  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693/* end confdefs.h.  */
9694int i;
9695_ACEOF
9696if ac_fn_c_try_compile "$LINENO"
9697then :
9698  xorg_cv_cc_flag_unknown_warning_option=yes
9699else case e in #(
9700  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9701esac
9702fi
9703rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9704esac
9705fi
9706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9707printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9708	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9709	CFLAGS="$xorg_testset_save_CFLAGS"
9710fi
9711
9712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9713	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9714		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9715	fi
9716	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9717	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9718printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9719if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9720then :
9721  printf %s "(cached) " >&6
9722else case e in #(
9723  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9724/* end confdefs.h.  */
9725int i;
9726_ACEOF
9727if ac_fn_c_try_compile "$LINENO"
9728then :
9729  xorg_cv_cc_flag_unused_command_line_argument=yes
9730else case e in #(
9731  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9732esac
9733fi
9734rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9735esac
9736fi
9737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9738printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9739	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9740	CFLAGS="$xorg_testset_save_CFLAGS"
9741fi
9742
9743found="no"
9744
9745	if test $found = "no" ; then
9746		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9747			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9748		fi
9749
9750		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9751			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9752		fi
9753
9754		CFLAGS="$CFLAGS -Wwrite-strings"
9755
9756		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9757printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
9758		cacheid=xorg_cv_cc_flag__Wwrite_strings
9759		if eval test \${$cacheid+y}
9760then :
9761  printf %s "(cached) " >&6
9762else case e in #(
9763  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764/* end confdefs.h.  */
9765int i;
9766int
9767main (void)
9768{
9769
9770  ;
9771  return 0;
9772}
9773_ACEOF
9774if ac_fn_c_try_link "$LINENO"
9775then :
9776  eval $cacheid=yes
9777else case e in #(
9778  e) eval $cacheid=no ;;
9779esac
9780fi
9781rm -f core conftest.err conftest.$ac_objext conftest.beam \
9782    conftest$ac_exeext conftest.$ac_ext ;;
9783esac
9784fi
9785
9786
9787		CFLAGS="$xorg_testset_save_CFLAGS"
9788
9789		eval supported=\$$cacheid
9790		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9791printf "%s\n" "$supported" >&6; }
9792		if test "$supported" = "yes" ; then
9793			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9794			found="yes"
9795		fi
9796	fi
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812xorg_testset_save_CFLAGS="$CFLAGS"
9813
9814if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9815	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9816	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9817printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9818if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9819then :
9820  printf %s "(cached) " >&6
9821else case e in #(
9822  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823/* end confdefs.h.  */
9824int i;
9825_ACEOF
9826if ac_fn_c_try_compile "$LINENO"
9827then :
9828  xorg_cv_cc_flag_unknown_warning_option=yes
9829else case e in #(
9830  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9831esac
9832fi
9833rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9834esac
9835fi
9836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9837printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9838	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9839	CFLAGS="$xorg_testset_save_CFLAGS"
9840fi
9841
9842if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9843	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9844		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9845	fi
9846	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9847	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9848printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9849if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9850then :
9851  printf %s "(cached) " >&6
9852else case e in #(
9853  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854/* end confdefs.h.  */
9855int i;
9856_ACEOF
9857if ac_fn_c_try_compile "$LINENO"
9858then :
9859  xorg_cv_cc_flag_unused_command_line_argument=yes
9860else case e in #(
9861  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9862esac
9863fi
9864rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9865esac
9866fi
9867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9868printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9869	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9870	CFLAGS="$xorg_testset_save_CFLAGS"
9871fi
9872
9873found="no"
9874
9875	if test $found = "no" ; then
9876		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9877			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9878		fi
9879
9880		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9881			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9882		fi
9883
9884		CFLAGS="$CFLAGS -Waddress"
9885
9886		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9887printf %s "checking if $CC supports -Waddress... " >&6; }
9888		cacheid=xorg_cv_cc_flag__Waddress
9889		if eval test \${$cacheid+y}
9890then :
9891  printf %s "(cached) " >&6
9892else case e in #(
9893  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894/* end confdefs.h.  */
9895int i;
9896int
9897main (void)
9898{
9899
9900  ;
9901  return 0;
9902}
9903_ACEOF
9904if ac_fn_c_try_link "$LINENO"
9905then :
9906  eval $cacheid=yes
9907else case e in #(
9908  e) eval $cacheid=no ;;
9909esac
9910fi
9911rm -f core conftest.err conftest.$ac_objext conftest.beam \
9912    conftest$ac_exeext conftest.$ac_ext ;;
9913esac
9914fi
9915
9916
9917		CFLAGS="$xorg_testset_save_CFLAGS"
9918
9919		eval supported=\$$cacheid
9920		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9921printf "%s\n" "$supported" >&6; }
9922		if test "$supported" = "yes" ; then
9923			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9924			found="yes"
9925		fi
9926	fi
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942xorg_testset_save_CFLAGS="$CFLAGS"
9943
9944if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9945	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9946	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9947printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9948if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9949then :
9950  printf %s "(cached) " >&6
9951else case e in #(
9952  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953/* end confdefs.h.  */
9954int i;
9955_ACEOF
9956if ac_fn_c_try_compile "$LINENO"
9957then :
9958  xorg_cv_cc_flag_unknown_warning_option=yes
9959else case e in #(
9960  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9961esac
9962fi
9963rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9964esac
9965fi
9966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9967printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9968	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9969	CFLAGS="$xorg_testset_save_CFLAGS"
9970fi
9971
9972if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9973	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9974		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9975	fi
9976	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9977	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9978printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9979if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9980then :
9981  printf %s "(cached) " >&6
9982else case e in #(
9983  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9984/* end confdefs.h.  */
9985int i;
9986_ACEOF
9987if ac_fn_c_try_compile "$LINENO"
9988then :
9989  xorg_cv_cc_flag_unused_command_line_argument=yes
9990else case e in #(
9991  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9992esac
9993fi
9994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9995esac
9996fi
9997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9998printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9999	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10000	CFLAGS="$xorg_testset_save_CFLAGS"
10001fi
10002
10003found="no"
10004
10005	if test $found = "no" ; then
10006		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10007			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10008		fi
10009
10010		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10011			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10012		fi
10013
10014		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10015
10016		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10017printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10018		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10019		if eval test \${$cacheid+y}
10020then :
10021  printf %s "(cached) " >&6
10022else case e in #(
10023  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024/* end confdefs.h.  */
10025int i;
10026int
10027main (void)
10028{
10029
10030  ;
10031  return 0;
10032}
10033_ACEOF
10034if ac_fn_c_try_link "$LINENO"
10035then :
10036  eval $cacheid=yes
10037else case e in #(
10038  e) eval $cacheid=no ;;
10039esac
10040fi
10041rm -f core conftest.err conftest.$ac_objext conftest.beam \
10042    conftest$ac_exeext conftest.$ac_ext ;;
10043esac
10044fi
10045
10046
10047		CFLAGS="$xorg_testset_save_CFLAGS"
10048
10049		eval supported=\$$cacheid
10050		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10051printf "%s\n" "$supported" >&6; }
10052		if test "$supported" = "yes" ; then
10053			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10054			found="yes"
10055		fi
10056	fi
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072xorg_testset_save_CFLAGS="$CFLAGS"
10073
10074if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10075	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10076	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10077printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10078if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10079then :
10080  printf %s "(cached) " >&6
10081else case e in #(
10082  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10083/* end confdefs.h.  */
10084int i;
10085_ACEOF
10086if ac_fn_c_try_compile "$LINENO"
10087then :
10088  xorg_cv_cc_flag_unknown_warning_option=yes
10089else case e in #(
10090  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10091esac
10092fi
10093rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10094esac
10095fi
10096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10097printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10098	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10099	CFLAGS="$xorg_testset_save_CFLAGS"
10100fi
10101
10102if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10103	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10104		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10105	fi
10106	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10107	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10108printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10109if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10110then :
10111  printf %s "(cached) " >&6
10112else case e in #(
10113  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10114/* end confdefs.h.  */
10115int i;
10116_ACEOF
10117if ac_fn_c_try_compile "$LINENO"
10118then :
10119  xorg_cv_cc_flag_unused_command_line_argument=yes
10120else case e in #(
10121  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10122esac
10123fi
10124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10125esac
10126fi
10127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10128printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10129	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10130	CFLAGS="$xorg_testset_save_CFLAGS"
10131fi
10132
10133found="no"
10134
10135	if test $found = "no" ; then
10136		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10137			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10138		fi
10139
10140		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10141			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10142		fi
10143
10144		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10145
10146		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10147printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10148		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10149		if eval test \${$cacheid+y}
10150then :
10151  printf %s "(cached) " >&6
10152else case e in #(
10153  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10154/* end confdefs.h.  */
10155int i;
10156int
10157main (void)
10158{
10159
10160  ;
10161  return 0;
10162}
10163_ACEOF
10164if ac_fn_c_try_link "$LINENO"
10165then :
10166  eval $cacheid=yes
10167else case e in #(
10168  e) eval $cacheid=no ;;
10169esac
10170fi
10171rm -f core conftest.err conftest.$ac_objext conftest.beam \
10172    conftest$ac_exeext conftest.$ac_ext ;;
10173esac
10174fi
10175
10176
10177		CFLAGS="$xorg_testset_save_CFLAGS"
10178
10179		eval supported=\$$cacheid
10180		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10181printf "%s\n" "$supported" >&6; }
10182		if test "$supported" = "yes" ; then
10183			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10184			found="yes"
10185		fi
10186	fi
10187
10188
10189fi
10190
10191
10192
10193
10194
10195
10196
10197		CWARNFLAGS="$BASE_CFLAGS"
10198		if  test "x$GCC" = xyes ; then
10199		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10200		fi
10201
10202
10203
10204
10205
10206
10207
10208
10209# Check whether --enable-strict-compilation was given.
10210if test ${enable_strict_compilation+y}
10211then :
10212  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10213else case e in #(
10214  e) STRICT_COMPILE=no ;;
10215esac
10216fi
10217
10218
10219
10220
10221
10222
10223STRICT_CFLAGS=""
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237xorg_testset_save_CFLAGS="$CFLAGS"
10238
10239if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10240	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10241	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10242printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10243if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10244then :
10245  printf %s "(cached) " >&6
10246else case e in #(
10247  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10248/* end confdefs.h.  */
10249int i;
10250_ACEOF
10251if ac_fn_c_try_compile "$LINENO"
10252then :
10253  xorg_cv_cc_flag_unknown_warning_option=yes
10254else case e in #(
10255  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10256esac
10257fi
10258rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10259esac
10260fi
10261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10262printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10263	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10264	CFLAGS="$xorg_testset_save_CFLAGS"
10265fi
10266
10267if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10268	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10269		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10270	fi
10271	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10272	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10273printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10274if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10275then :
10276  printf %s "(cached) " >&6
10277else case e in #(
10278  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279/* end confdefs.h.  */
10280int i;
10281_ACEOF
10282if ac_fn_c_try_compile "$LINENO"
10283then :
10284  xorg_cv_cc_flag_unused_command_line_argument=yes
10285else case e in #(
10286  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10287esac
10288fi
10289rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10290esac
10291fi
10292{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10293printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10294	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10295	CFLAGS="$xorg_testset_save_CFLAGS"
10296fi
10297
10298found="no"
10299
10300	if test $found = "no" ; then
10301		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10302			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10303		fi
10304
10305		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10306			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10307		fi
10308
10309		CFLAGS="$CFLAGS -pedantic"
10310
10311		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10312printf %s "checking if $CC supports -pedantic... " >&6; }
10313		cacheid=xorg_cv_cc_flag__pedantic
10314		if eval test \${$cacheid+y}
10315then :
10316  printf %s "(cached) " >&6
10317else case e in #(
10318  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10319/* end confdefs.h.  */
10320int i;
10321int
10322main (void)
10323{
10324
10325  ;
10326  return 0;
10327}
10328_ACEOF
10329if ac_fn_c_try_link "$LINENO"
10330then :
10331  eval $cacheid=yes
10332else case e in #(
10333  e) eval $cacheid=no ;;
10334esac
10335fi
10336rm -f core conftest.err conftest.$ac_objext conftest.beam \
10337    conftest$ac_exeext conftest.$ac_ext ;;
10338esac
10339fi
10340
10341
10342		CFLAGS="$xorg_testset_save_CFLAGS"
10343
10344		eval supported=\$$cacheid
10345		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10346printf "%s\n" "$supported" >&6; }
10347		if test "$supported" = "yes" ; then
10348			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10349			found="yes"
10350		fi
10351	fi
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367xorg_testset_save_CFLAGS="$CFLAGS"
10368
10369if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10370	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10371	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10372printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10373if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10374then :
10375  printf %s "(cached) " >&6
10376else case e in #(
10377  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378/* end confdefs.h.  */
10379int i;
10380_ACEOF
10381if ac_fn_c_try_compile "$LINENO"
10382then :
10383  xorg_cv_cc_flag_unknown_warning_option=yes
10384else case e in #(
10385  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10386esac
10387fi
10388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10389esac
10390fi
10391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10392printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10393	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10394	CFLAGS="$xorg_testset_save_CFLAGS"
10395fi
10396
10397if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10398	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10399		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10400	fi
10401	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10402	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10403printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10404if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10405then :
10406  printf %s "(cached) " >&6
10407else case e in #(
10408  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409/* end confdefs.h.  */
10410int i;
10411_ACEOF
10412if ac_fn_c_try_compile "$LINENO"
10413then :
10414  xorg_cv_cc_flag_unused_command_line_argument=yes
10415else case e in #(
10416  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10417esac
10418fi
10419rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10420esac
10421fi
10422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10423printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10424	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10425	CFLAGS="$xorg_testset_save_CFLAGS"
10426fi
10427
10428found="no"
10429
10430	if test $found = "no" ; then
10431		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10432			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10433		fi
10434
10435		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10436			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10437		fi
10438
10439		CFLAGS="$CFLAGS -Werror"
10440
10441		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10442printf %s "checking if $CC supports -Werror... " >&6; }
10443		cacheid=xorg_cv_cc_flag__Werror
10444		if eval test \${$cacheid+y}
10445then :
10446  printf %s "(cached) " >&6
10447else case e in #(
10448  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449/* end confdefs.h.  */
10450int i;
10451int
10452main (void)
10453{
10454
10455  ;
10456  return 0;
10457}
10458_ACEOF
10459if ac_fn_c_try_link "$LINENO"
10460then :
10461  eval $cacheid=yes
10462else case e in #(
10463  e) eval $cacheid=no ;;
10464esac
10465fi
10466rm -f core conftest.err conftest.$ac_objext conftest.beam \
10467    conftest$ac_exeext conftest.$ac_ext ;;
10468esac
10469fi
10470
10471
10472		CFLAGS="$xorg_testset_save_CFLAGS"
10473
10474		eval supported=\$$cacheid
10475		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10476printf "%s\n" "$supported" >&6; }
10477		if test "$supported" = "yes" ; then
10478			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10479			found="yes"
10480		fi
10481	fi
10482
10483	if test $found = "no" ; then
10484		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10485			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10486		fi
10487
10488		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10489			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10490		fi
10491
10492		CFLAGS="$CFLAGS -errwarn"
10493
10494		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10495printf %s "checking if $CC supports -errwarn... " >&6; }
10496		cacheid=xorg_cv_cc_flag__errwarn
10497		if eval test \${$cacheid+y}
10498then :
10499  printf %s "(cached) " >&6
10500else case e in #(
10501  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10502/* end confdefs.h.  */
10503int i;
10504int
10505main (void)
10506{
10507
10508  ;
10509  return 0;
10510}
10511_ACEOF
10512if ac_fn_c_try_link "$LINENO"
10513then :
10514  eval $cacheid=yes
10515else case e in #(
10516  e) eval $cacheid=no ;;
10517esac
10518fi
10519rm -f core conftest.err conftest.$ac_objext conftest.beam \
10520    conftest$ac_exeext conftest.$ac_ext ;;
10521esac
10522fi
10523
10524
10525		CFLAGS="$xorg_testset_save_CFLAGS"
10526
10527		eval supported=\$$cacheid
10528		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10529printf "%s\n" "$supported" >&6; }
10530		if test "$supported" = "yes" ; then
10531			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10532			found="yes"
10533		fi
10534	fi
10535
10536
10537
10538# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10539# activate it with -Werror, so we add it here explicitly.
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553xorg_testset_save_CFLAGS="$CFLAGS"
10554
10555if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10556	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10557	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10558printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10559if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10560then :
10561  printf %s "(cached) " >&6
10562else case e in #(
10563  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564/* end confdefs.h.  */
10565int i;
10566_ACEOF
10567if ac_fn_c_try_compile "$LINENO"
10568then :
10569  xorg_cv_cc_flag_unknown_warning_option=yes
10570else case e in #(
10571  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10572esac
10573fi
10574rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10575esac
10576fi
10577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10578printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10579	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10580	CFLAGS="$xorg_testset_save_CFLAGS"
10581fi
10582
10583if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10584	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10585		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10586	fi
10587	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10588	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10589printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10590if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10591then :
10592  printf %s "(cached) " >&6
10593else case e in #(
10594  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10595/* end confdefs.h.  */
10596int i;
10597_ACEOF
10598if ac_fn_c_try_compile "$LINENO"
10599then :
10600  xorg_cv_cc_flag_unused_command_line_argument=yes
10601else case e in #(
10602  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10603esac
10604fi
10605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10606esac
10607fi
10608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10609printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10610	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10611	CFLAGS="$xorg_testset_save_CFLAGS"
10612fi
10613
10614found="no"
10615
10616	if test $found = "no" ; then
10617		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10618			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10619		fi
10620
10621		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10622			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10623		fi
10624
10625		CFLAGS="$CFLAGS -Werror=attributes"
10626
10627		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10628printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10629		cacheid=xorg_cv_cc_flag__Werror_attributes
10630		if eval test \${$cacheid+y}
10631then :
10632  printf %s "(cached) " >&6
10633else case e in #(
10634  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10635/* end confdefs.h.  */
10636int i;
10637int
10638main (void)
10639{
10640
10641  ;
10642  return 0;
10643}
10644_ACEOF
10645if ac_fn_c_try_link "$LINENO"
10646then :
10647  eval $cacheid=yes
10648else case e in #(
10649  e) eval $cacheid=no ;;
10650esac
10651fi
10652rm -f core conftest.err conftest.$ac_objext conftest.beam \
10653    conftest$ac_exeext conftest.$ac_ext ;;
10654esac
10655fi
10656
10657
10658		CFLAGS="$xorg_testset_save_CFLAGS"
10659
10660		eval supported=\$$cacheid
10661		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10662printf "%s\n" "$supported" >&6; }
10663		if test "$supported" = "yes" ; then
10664			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10665			found="yes"
10666		fi
10667	fi
10668
10669
10670
10671if test "x$STRICT_COMPILE" = "xyes"; then
10672    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10673    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10674fi
10675
10676
10677
10678
10679
10680
10681
10682
10683cat >>confdefs.h <<_ACEOF
10684#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10685_ACEOF
10686
10687	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10688	if test "x$PVM" = "x"; then
10689		PVM="0"
10690	fi
10691
10692printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10693
10694	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10695	if test "x$PVP" = "x"; then
10696		PVP="0"
10697	fi
10698
10699printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10700
10701
10702
10703CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10704mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10705|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10706touch \$(top_srcdir)/ChangeLog; \
10707echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10708
10709
10710
10711
10712macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10713INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10714mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10715|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10716touch \$(top_srcdir)/INSTALL; \
10717echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10718
10719
10720
10721
10722
10723
10724case $host_os in
10725    solaris*)
10726        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10727        # check for a man page file found in later versions that use
10728        # traditional section numbers instead
10729        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10730printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10731if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
10732then :
10733  printf %s "(cached) " >&6
10734else case e in #(
10735  e) test "$cross_compiling" = yes &&
10736  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10737if test -r "/usr/share/man/man7/attributes.7"; then
10738  ac_cv_file__usr_share_man_man7_attributes_7=yes
10739else
10740  ac_cv_file__usr_share_man_man7_attributes_7=no
10741fi ;;
10742esac
10743fi
10744{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10745printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10746if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
10747then :
10748  SYSV_MAN_SECTIONS=false
10749else case e in #(
10750  e) SYSV_MAN_SECTIONS=true ;;
10751esac
10752fi
10753
10754        ;;
10755    *) SYSV_MAN_SECTIONS=false ;;
10756esac
10757
10758if test x$APP_MAN_SUFFIX = x    ; then
10759    APP_MAN_SUFFIX=1
10760fi
10761if test x$APP_MAN_DIR = x    ; then
10762    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10763fi
10764
10765if test x$LIB_MAN_SUFFIX = x    ; then
10766    LIB_MAN_SUFFIX=3
10767fi
10768if test x$LIB_MAN_DIR = x    ; then
10769    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10770fi
10771
10772if test x$FILE_MAN_SUFFIX = x    ; then
10773    case $SYSV_MAN_SECTIONS in
10774	true)				FILE_MAN_SUFFIX=4  ;;
10775	*)				FILE_MAN_SUFFIX=5  ;;
10776    esac
10777fi
10778if test x$FILE_MAN_DIR = x    ; then
10779    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10780fi
10781
10782if test x$MISC_MAN_SUFFIX = x    ; then
10783    case $SYSV_MAN_SECTIONS in
10784	true)				MISC_MAN_SUFFIX=5  ;;
10785	*)				MISC_MAN_SUFFIX=7  ;;
10786    esac
10787fi
10788if test x$MISC_MAN_DIR = x    ; then
10789    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10790fi
10791
10792if test x$DRIVER_MAN_SUFFIX = x    ; then
10793    case $SYSV_MAN_SECTIONS in
10794	true)				DRIVER_MAN_SUFFIX=7  ;;
10795	*)				DRIVER_MAN_SUFFIX=4  ;;
10796    esac
10797fi
10798if test x$DRIVER_MAN_DIR = x    ; then
10799    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10800fi
10801
10802if test x$ADMIN_MAN_SUFFIX = x    ; then
10803    case $SYSV_MAN_SECTIONS in
10804	true)				ADMIN_MAN_SUFFIX=1m ;;
10805	*)				ADMIN_MAN_SUFFIX=8  ;;
10806    esac
10807fi
10808if test x$ADMIN_MAN_DIR = x    ; then
10809    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10810fi
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826XORG_MAN_PAGE="X Version 11"
10827
10828MAN_SUBSTS="\
10829	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10830	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10831	-e 's|__xservername__|Xorg|g' \
10832	-e 's|__xconfigfile__|xorg.conf|g' \
10833	-e 's|__projectroot__|\$(prefix)|g' \
10834	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10835	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10836	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10837	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10838	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10839	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10840	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10841
10842
10843
10844# Check whether --enable-silent-rules was given.
10845if test ${enable_silent_rules+y}
10846then :
10847  enableval=$enable_silent_rules;
10848fi
10849
10850case $enable_silent_rules in # (((
10851  yes) AM_DEFAULT_VERBOSITY=0;;
10852   no) AM_DEFAULT_VERBOSITY=1;;
10853    *) AM_DEFAULT_VERBOSITY=0;;
10854esac
10855am_make=${MAKE-make}
10856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10857printf %s "checking whether $am_make supports nested variables... " >&6; }
10858if test ${am_cv_make_support_nested_variables+y}
10859then :
10860  printf %s "(cached) " >&6
10861else case e in #(
10862  e) if printf "%s\n" 'TRUE=$(BAR$(V))
10863BAR0=false
10864BAR1=true
10865V=1
10866am__doit:
10867	@$(TRUE)
10868.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10869  am_cv_make_support_nested_variables=yes
10870else
10871  am_cv_make_support_nested_variables=no
10872fi ;;
10873esac
10874fi
10875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10876printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
10877if test $am_cv_make_support_nested_variables = yes; then
10878    AM_V='$(V)'
10879  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10880else
10881  AM_V=$AM_DEFAULT_VERBOSITY
10882  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10883fi
10884AM_BACKSLASH='\'
10885
10886
10887
10888
10889
10890
10891# Initialize Automake
10892am__api_version='1.16'
10893
10894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
10895printf %s "checking whether build environment is sane... " >&6; }
10896# Reject unsafe characters in $srcdir or the absolute working directory
10897# name.  Accept space and tab only in the latter.
10898am_lf='
10899'
10900case `pwd` in
10901  *[\\\"\#\$\&\'\`$am_lf]*)
10902    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
10903esac
10904case $srcdir in
10905  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
10906    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
10907esac
10908
10909# Do 'set' in a subshell so we don't clobber the current shell's
10910# arguments.  Must try -L first in case configure is actually a
10911# symlink; some systems play weird games with the mod time of symlinks
10912# (eg FreeBSD returns the mod time of the symlink's containing
10913# directory).
10914if (
10915   am_has_slept=no
10916   for am_try in 1 2; do
10917     echo "timestamp, slept: $am_has_slept" > conftest.file
10918     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
10919     if test "$*" = "X"; then
10920	# -L didn't work.
10921	set X `ls -t "$srcdir/configure" conftest.file`
10922     fi
10923     if test "$*" != "X $srcdir/configure conftest.file" \
10924	&& test "$*" != "X conftest.file $srcdir/configure"; then
10925
10926	# If neither matched, then we have a broken ls.  This can happen
10927	# if, for instance, CONFIG_SHELL is bash and it inherits a
10928	# broken ls alias from the environment.  This has actually
10929	# happened.  Such a system could not be considered "sane".
10930	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
10931  alias in your environment" "$LINENO" 5
10932     fi
10933     if test "$2" = conftest.file || test $am_try -eq 2; then
10934       break
10935     fi
10936     # Just in case.
10937     sleep 1
10938     am_has_slept=yes
10939   done
10940   test "$2" = conftest.file
10941   )
10942then
10943   # Ok.
10944   :
10945else
10946   as_fn_error $? "newly created file is older than distributed files!
10947Check your system clock" "$LINENO" 5
10948fi
10949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10950printf "%s\n" "yes" >&6; }
10951# If we didn't sleep, we still need to ensure time stamps of config.status and
10952# generated files are strictly newer.
10953am_sleep_pid=
10954if grep 'slept: no' conftest.file >/dev/null 2>&1; then
10955  ( sleep 1 ) &
10956  am_sleep_pid=$!
10957fi
10958
10959rm -f conftest.file
10960
10961test "$program_prefix" != NONE &&
10962  program_transform_name="s&^&$program_prefix&;$program_transform_name"
10963# Use a double $ so make ignores it.
10964test "$program_suffix" != NONE &&
10965  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
10966# Double any \ or $.
10967# By default was 's,x,x', remove it if useless.
10968ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
10969program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
10970
10971
10972  if test x"${MISSING+set}" != xset; then
10973  MISSING="\${SHELL} '$am_aux_dir/missing'"
10974fi
10975# Use eval to expand $SHELL
10976if eval "$MISSING --is-lightweight"; then
10977  am_missing_run="$MISSING "
10978else
10979  am_missing_run=
10980  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
10981printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
10982fi
10983
10984if test x"${install_sh+set}" != xset; then
10985  case $am_aux_dir in
10986  *\ * | *\	*)
10987    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
10988  *)
10989    install_sh="\${SHELL} $am_aux_dir/install-sh"
10990  esac
10991fi
10992
10993# Installed binaries are usually stripped using 'strip' when the user
10994# run "make install-strip".  However 'strip' might not be the right
10995# tool to use in cross-compilation environments, therefore Automake
10996# will honor the 'STRIP' environment variable to overrule this program.
10997if test "$cross_compiling" != no; then
10998  if test -n "$ac_tool_prefix"; then
10999  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11000set dummy ${ac_tool_prefix}strip; ac_word=$2
11001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11002printf %s "checking for $ac_word... " >&6; }
11003if test ${ac_cv_prog_STRIP+y}
11004then :
11005  printf %s "(cached) " >&6
11006else case e in #(
11007  e) if test -n "$STRIP"; then
11008  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11009else
11010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11011for as_dir in $PATH
11012do
11013  IFS=$as_save_IFS
11014  case $as_dir in #(((
11015    '') as_dir=./ ;;
11016    */) ;;
11017    *) as_dir=$as_dir/ ;;
11018  esac
11019    for ac_exec_ext in '' $ac_executable_extensions; do
11020  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11021    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11022    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11023    break 2
11024  fi
11025done
11026  done
11027IFS=$as_save_IFS
11028
11029fi ;;
11030esac
11031fi
11032STRIP=$ac_cv_prog_STRIP
11033if test -n "$STRIP"; then
11034  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11035printf "%s\n" "$STRIP" >&6; }
11036else
11037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038printf "%s\n" "no" >&6; }
11039fi
11040
11041
11042fi
11043if test -z "$ac_cv_prog_STRIP"; then
11044  ac_ct_STRIP=$STRIP
11045  # Extract the first word of "strip", so it can be a program name with args.
11046set dummy strip; ac_word=$2
11047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11048printf %s "checking for $ac_word... " >&6; }
11049if test ${ac_cv_prog_ac_ct_STRIP+y}
11050then :
11051  printf %s "(cached) " >&6
11052else case e in #(
11053  e) if test -n "$ac_ct_STRIP"; then
11054  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11055else
11056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057for as_dir in $PATH
11058do
11059  IFS=$as_save_IFS
11060  case $as_dir in #(((
11061    '') as_dir=./ ;;
11062    */) ;;
11063    *) as_dir=$as_dir/ ;;
11064  esac
11065    for ac_exec_ext in '' $ac_executable_extensions; do
11066  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11067    ac_cv_prog_ac_ct_STRIP="strip"
11068    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11069    break 2
11070  fi
11071done
11072  done
11073IFS=$as_save_IFS
11074
11075fi ;;
11076esac
11077fi
11078ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11079if test -n "$ac_ct_STRIP"; then
11080  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11081printf "%s\n" "$ac_ct_STRIP" >&6; }
11082else
11083  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11084printf "%s\n" "no" >&6; }
11085fi
11086
11087  if test "x$ac_ct_STRIP" = x; then
11088    STRIP=":"
11089  else
11090    case $cross_compiling:$ac_tool_warned in
11091yes:)
11092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11093printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11094ac_tool_warned=yes ;;
11095esac
11096    STRIP=$ac_ct_STRIP
11097  fi
11098else
11099  STRIP="$ac_cv_prog_STRIP"
11100fi
11101
11102fi
11103INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11104
11105
11106  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
11107printf %s "checking for a race-free mkdir -p... " >&6; }
11108if test -z "$MKDIR_P"; then
11109  if test ${ac_cv_path_mkdir+y}
11110then :
11111  printf %s "(cached) " >&6
11112else case e in #(
11113  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11114for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11115do
11116  IFS=$as_save_IFS
11117  case $as_dir in #(((
11118    '') as_dir=./ ;;
11119    */) ;;
11120    *) as_dir=$as_dir/ ;;
11121  esac
11122    for ac_prog in mkdir gmkdir; do
11123	 for ac_exec_ext in '' $ac_executable_extensions; do
11124	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
11125	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
11126	     'mkdir ('*'coreutils) '* | \
11127	     *'BusyBox '* | \
11128	     'mkdir (fileutils) '4.1*)
11129	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
11130	       break 3;;
11131	   esac
11132	 done
11133       done
11134  done
11135IFS=$as_save_IFS
11136 ;;
11137esac
11138fi
11139
11140  test -d ./--version && rmdir ./--version
11141  if test ${ac_cv_path_mkdir+y}; then
11142    MKDIR_P="$ac_cv_path_mkdir -p"
11143  else
11144    # As a last resort, use plain mkdir -p,
11145    # in the hope it doesn't have the bugs of ancient mkdir.
11146    MKDIR_P='mkdir -p'
11147  fi
11148fi
11149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11150printf "%s\n" "$MKDIR_P" >&6; }
11151
11152for ac_prog in gawk mawk nawk awk
11153do
11154  # Extract the first word of "$ac_prog", so it can be a program name with args.
11155set dummy $ac_prog; ac_word=$2
11156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11157printf %s "checking for $ac_word... " >&6; }
11158if test ${ac_cv_prog_AWK+y}
11159then :
11160  printf %s "(cached) " >&6
11161else case e in #(
11162  e) if test -n "$AWK"; then
11163  ac_cv_prog_AWK="$AWK" # Let the user override the test.
11164else
11165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11166for as_dir in $PATH
11167do
11168  IFS=$as_save_IFS
11169  case $as_dir in #(((
11170    '') as_dir=./ ;;
11171    */) ;;
11172    *) as_dir=$as_dir/ ;;
11173  esac
11174    for ac_exec_ext in '' $ac_executable_extensions; do
11175  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11176    ac_cv_prog_AWK="$ac_prog"
11177    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11178    break 2
11179  fi
11180done
11181  done
11182IFS=$as_save_IFS
11183
11184fi ;;
11185esac
11186fi
11187AWK=$ac_cv_prog_AWK
11188if test -n "$AWK"; then
11189  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11190printf "%s\n" "$AWK" >&6; }
11191else
11192  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11193printf "%s\n" "no" >&6; }
11194fi
11195
11196
11197  test -n "$AWK" && break
11198done
11199
11200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11201printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11202set x ${MAKE-make}
11203ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11204if eval test \${ac_cv_prog_make_${ac_make}_set+y}
11205then :
11206  printf %s "(cached) " >&6
11207else case e in #(
11208  e) cat >conftest.make <<\_ACEOF
11209SHELL = /bin/sh
11210all:
11211	@echo '@@@%%%=$(MAKE)=@@@%%%'
11212_ACEOF
11213# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11214case `${MAKE-make} -f conftest.make 2>/dev/null` in
11215  *@@@%%%=?*=@@@%%%*)
11216    eval ac_cv_prog_make_${ac_make}_set=yes;;
11217  *)
11218    eval ac_cv_prog_make_${ac_make}_set=no;;
11219esac
11220rm -f conftest.make ;;
11221esac
11222fi
11223if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11224  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11225printf "%s\n" "yes" >&6; }
11226  SET_MAKE=
11227else
11228  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229printf "%s\n" "no" >&6; }
11230  SET_MAKE="MAKE=${MAKE-make}"
11231fi
11232
11233rm -rf .tst 2>/dev/null
11234mkdir .tst 2>/dev/null
11235if test -d .tst; then
11236  am__leading_dot=.
11237else
11238  am__leading_dot=_
11239fi
11240rmdir .tst 2>/dev/null
11241
11242DEPDIR="${am__leading_dot}deps"
11243
11244ac_config_commands="$ac_config_commands depfiles"
11245
11246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
11247printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
11248cat > confinc.mk << 'END'
11249am__doit:
11250	@echo this is the am__doit target >confinc.out
11251.PHONY: am__doit
11252END
11253am__include="#"
11254am__quote=
11255# BSD make does it like this.
11256echo '.include "confinc.mk" # ignored' > confmf.BSD
11257# Other make implementations (GNU, Solaris 10, AIX) do it like this.
11258echo 'include confinc.mk # ignored' > confmf.GNU
11259_am_result=no
11260for s in GNU BSD; do
11261  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
11262   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
11263   ac_status=$?
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); }
11266  case $?:`cat confinc.out 2>/dev/null` in #(
11267  '0:this is the am__doit target') :
11268    case $s in #(
11269  BSD) :
11270    am__include='.include' am__quote='"' ;; #(
11271  *) :
11272    am__include='include' am__quote='' ;;
11273esac ;; #(
11274  *) :
11275     ;;
11276esac
11277  if test "$am__include" != "#"; then
11278    _am_result="yes ($s style)"
11279    break
11280  fi
11281done
11282rm -f confinc.* confmf.*
11283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
11284printf "%s\n" "${_am_result}" >&6; }
11285
11286# Check whether --enable-dependency-tracking was given.
11287if test ${enable_dependency_tracking+y}
11288then :
11289  enableval=$enable_dependency_tracking;
11290fi
11291
11292if test "x$enable_dependency_tracking" != xno; then
11293  am_depcomp="$ac_aux_dir/depcomp"
11294  AMDEPBACKSLASH='\'
11295  am__nodep='_no'
11296fi
11297 if test "x$enable_dependency_tracking" != xno; then
11298  AMDEP_TRUE=
11299  AMDEP_FALSE='#'
11300else
11301  AMDEP_TRUE='#'
11302  AMDEP_FALSE=
11303fi
11304
11305
11306if test "`cd $srcdir && pwd`" != "`pwd`"; then
11307  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11308  # is not polluted with repeated "-I."
11309  am__isrc=' -I$(srcdir)'
11310  # test to see if srcdir already configured
11311  if test -f $srcdir/config.status; then
11312    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
11313  fi
11314fi
11315
11316# test whether we have cygpath
11317if test -z "$CYGPATH_W"; then
11318  if (cygpath --version) >/dev/null 2>/dev/null; then
11319    CYGPATH_W='cygpath -w'
11320  else
11321    CYGPATH_W=echo
11322  fi
11323fi
11324
11325
11326# Define the identity of the package.
11327 PACKAGE='xf86-video-nv'
11328 VERSION='2.1.23'
11329
11330
11331printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
11332
11333
11334printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
11335
11336# Some tools Automake needs.
11337
11338ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11339
11340
11341AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11342
11343
11344AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11345
11346
11347AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11348
11349
11350MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11351
11352# For better backward compatibility.  To be removed once Automake 1.9.x
11353# dies out for good.  For more background, see:
11354# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
11355# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
11356mkdir_p='$(MKDIR_P)'
11357
11358# We need awk for the "check" target (and possibly the TAP driver).  The
11359# system "awk" is bad on some platforms.
11360# Always define AMTAR for backward compatibility.  Yes, it's still used
11361# in the wild :-(  We should find a proper way to deprecate it ...
11362AMTAR='$${TAR-tar}'
11363
11364
11365# We'll loop over all known methods to create a tar archive until one works.
11366_am_tools='gnutar  pax cpio none'
11367
11368am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
11369
11370
11371
11372
11373
11374depcc="$CC"   am_compiler_list=
11375
11376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11377printf %s "checking dependency style of $depcc... " >&6; }
11378if test ${am_cv_CC_dependencies_compiler_type+y}
11379then :
11380  printf %s "(cached) " >&6
11381else case e in #(
11382  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11383  # We make a subdir and do the tests there.  Otherwise we can end up
11384  # making bogus files that we don't know about and never remove.  For
11385  # instance it was reported that on HP-UX the gcc test will end up
11386  # making a dummy file named 'D' -- because '-MD' means "put the output
11387  # in D".
11388  rm -rf conftest.dir
11389  mkdir conftest.dir
11390  # Copy depcomp to subdir because otherwise we won't find it if we're
11391  # using a relative directory.
11392  cp "$am_depcomp" conftest.dir
11393  cd conftest.dir
11394  # We will build objects and dependencies in a subdirectory because
11395  # it helps to detect inapplicable dependency modes.  For instance
11396  # both Tru64's cc and ICC support -MD to output dependencies as a
11397  # side effect of compilation, but ICC will put the dependencies in
11398  # the current directory while Tru64 will put them in the object
11399  # directory.
11400  mkdir sub
11401
11402  am_cv_CC_dependencies_compiler_type=none
11403  if test "$am_compiler_list" = ""; then
11404     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11405  fi
11406  am__universal=false
11407  case " $depcc " in #(
11408     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11409     esac
11410
11411  for depmode in $am_compiler_list; do
11412    # Setup a source with many dependencies, because some compilers
11413    # like to wrap large dependency lists on column 80 (with \), and
11414    # we should not choose a depcomp mode which is confused by this.
11415    #
11416    # We need to recreate these files for each test, as the compiler may
11417    # overwrite some of them when testing with obscure command lines.
11418    # This happens at least with the AIX C compiler.
11419    : > sub/conftest.c
11420    for i in 1 2 3 4 5 6; do
11421      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11422      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11423      # Solaris 10 /bin/sh.
11424      echo '/* dummy */' > sub/conftst$i.h
11425    done
11426    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11427
11428    # We check with '-c' and '-o' for the sake of the "dashmstdout"
11429    # mode.  It turns out that the SunPro C++ compiler does not properly
11430    # handle '-M -o', and we need to detect this.  Also, some Intel
11431    # versions had trouble with output in subdirs.
11432    am__obj=sub/conftest.${OBJEXT-o}
11433    am__minus_obj="-o $am__obj"
11434    case $depmode in
11435    gcc)
11436      # This depmode causes a compiler race in universal mode.
11437      test "$am__universal" = false || continue
11438      ;;
11439    nosideeffect)
11440      # After this tag, mechanisms are not by side-effect, so they'll
11441      # only be used when explicitly requested.
11442      if test "x$enable_dependency_tracking" = xyes; then
11443	continue
11444      else
11445	break
11446      fi
11447      ;;
11448    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11449      # This compiler won't grok '-c -o', but also, the minuso test has
11450      # not run yet.  These depmodes are late enough in the game, and
11451      # so weak that their functioning should not be impacted.
11452      am__obj=conftest.${OBJEXT-o}
11453      am__minus_obj=
11454      ;;
11455    none) break ;;
11456    esac
11457    if depmode=$depmode \
11458       source=sub/conftest.c object=$am__obj \
11459       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11460       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11461         >/dev/null 2>conftest.err &&
11462       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11463       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11464       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11465       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11466      # icc doesn't choke on unknown options, it will just issue warnings
11467      # or remarks (even with -Werror).  So we grep stderr for any message
11468      # that says an option was ignored or not supported.
11469      # When given -MP, icc 7.0 and 7.1 complain thusly:
11470      #   icc: Command line warning: ignoring option '-M'; no argument required
11471      # The diagnosis changed in icc 8.0:
11472      #   icc: Command line remark: option '-MP' not supported
11473      if (grep 'ignoring option' conftest.err ||
11474          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11475        am_cv_CC_dependencies_compiler_type=$depmode
11476        break
11477      fi
11478    fi
11479  done
11480
11481  cd ..
11482  rm -rf conftest.dir
11483else
11484  am_cv_CC_dependencies_compiler_type=none
11485fi
11486 ;;
11487esac
11488fi
11489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11490printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
11491CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11492
11493 if
11494  test "x$enable_dependency_tracking" != xno \
11495  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11496  am__fastdepCC_TRUE=
11497  am__fastdepCC_FALSE='#'
11498else
11499  am__fastdepCC_TRUE='#'
11500  am__fastdepCC_FALSE=
11501fi
11502
11503
11504# Variables for tags utilities; see am/tags.am
11505if test -z "$CTAGS"; then
11506  CTAGS=ctags
11507fi
11508
11509if test -z "$ETAGS"; then
11510  ETAGS=etags
11511fi
11512
11513if test -z "$CSCOPE"; then
11514  CSCOPE=cscope
11515fi
11516
11517
11518
11519# POSIX will say in a future version that running "rm -f" with no argument
11520# is OK; and we want to be able to make that assumption in our Makefile
11521# recipes.  So use an aggressive probe to check that the usage we want is
11522# actually supported "in the wild" to an acceptable degree.
11523# See automake bug#10828.
11524# To make any issue more visible, cause the running configure to be aborted
11525# by default if the 'rm' program in use doesn't match our expectations; the
11526# user can still override this though.
11527if rm -f && rm -fr && rm -rf; then : OK; else
11528  cat >&2 <<'END'
11529Oops!
11530
11531Your 'rm' program seems unable to run without file operands specified
11532on the command line, even when the '-f' option is present.  This is contrary
11533to the behaviour of most rm programs out there, and not conforming with
11534the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
11535
11536Please tell bug-automake@gnu.org about your system, including the value
11537of your $PATH and any error possibly output before this message.  This
11538can help us improve future automake versions.
11539
11540END
11541  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
11542    echo 'Configuration will proceed anyway, since you have set the' >&2
11543    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
11544    echo >&2
11545  else
11546    cat >&2 <<'END'
11547Aborting the configuration process, to ensure you take notice of the issue.
11548
11549You can download and install GNU coreutils to get an 'rm' implementation
11550that behaves properly: <https://www.gnu.org/software/coreutils/>.
11551
11552If you want to complete the configuration process using your problematic
11553'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
11554to "yes", and re-run configure.
11555
11556END
11557    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
11558  fi
11559fi
11560
11561
11562# Initialize libtool
11563case `pwd` in
11564  *\ * | *\	*)
11565    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11566printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11567esac
11568
11569
11570
11571macro_version='2.4.7'
11572macro_revision='2.4.7'
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587ltmain=$ac_aux_dir/ltmain.sh
11588
11589# Backslashify metacharacters that are still active within
11590# double-quoted strings.
11591sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11592
11593# Same as above, but do not quote variable references.
11594double_quote_subst='s/\(["`\\]\)/\\\1/g'
11595
11596# Sed substitution to delay expansion of an escaped shell variable in a
11597# double_quote_subst'ed string.
11598delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11599
11600# Sed substitution to delay expansion of an escaped single quote.
11601delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11602
11603# Sed substitution to avoid accidental globbing in evaled expressions
11604no_glob_subst='s/\*/\\\*/g'
11605
11606ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11607ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11608ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11609
11610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11611printf %s "checking how to print strings... " >&6; }
11612# Test print first, because it will be a builtin if present.
11613if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11614   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11615  ECHO='print -r --'
11616elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11617  ECHO='printf %s\n'
11618else
11619  # Use this function as a fallback that always works.
11620  func_fallback_echo ()
11621  {
11622    eval 'cat <<_LTECHO_EOF
11623$1
11624_LTECHO_EOF'
11625  }
11626  ECHO='func_fallback_echo'
11627fi
11628
11629# func_echo_all arg...
11630# Invoke $ECHO with all args, space-separated.
11631func_echo_all ()
11632{
11633    $ECHO ""
11634}
11635
11636case $ECHO in
11637  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11638printf "%s\n" "printf" >&6; } ;;
11639  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11640printf "%s\n" "print -r" >&6; } ;;
11641  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11642printf "%s\n" "cat" >&6; } ;;
11643esac
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11659printf %s "checking for a sed that does not truncate output... " >&6; }
11660if test ${ac_cv_path_SED+y}
11661then :
11662  printf %s "(cached) " >&6
11663else case e in #(
11664  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11665     for ac_i in 1 2 3 4 5 6 7; do
11666       ac_script="$ac_script$as_nl$ac_script"
11667     done
11668     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11669     { ac_script=; unset ac_script;}
11670     if test -z "$SED"; then
11671  ac_path_SED_found=false
11672  # Loop through the user's path and test for each of PROGNAME-LIST
11673  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11674for as_dir in $PATH
11675do
11676  IFS=$as_save_IFS
11677  case $as_dir in #(((
11678    '') as_dir=./ ;;
11679    */) ;;
11680    *) as_dir=$as_dir/ ;;
11681  esac
11682    for ac_prog in sed gsed
11683   do
11684    for ac_exec_ext in '' $ac_executable_extensions; do
11685      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
11686      as_fn_executable_p "$ac_path_SED" || continue
11687# Check for GNU ac_path_SED and select it if it is found.
11688  # Check for GNU $ac_path_SED
11689case `"$ac_path_SED" --version 2>&1` in #(
11690*GNU*)
11691  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11692#(
11693*)
11694  ac_count=0
11695  printf %s 0123456789 >"conftest.in"
11696  while :
11697  do
11698    cat "conftest.in" "conftest.in" >"conftest.tmp"
11699    mv "conftest.tmp" "conftest.in"
11700    cp "conftest.in" "conftest.nl"
11701    printf "%s\n" '' >> "conftest.nl"
11702    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11703    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11704    as_fn_arith $ac_count + 1 && ac_count=$as_val
11705    if test $ac_count -gt ${ac_path_SED_max-0}; then
11706      # Best one so far, save it but keep looking for a better one
11707      ac_cv_path_SED="$ac_path_SED"
11708      ac_path_SED_max=$ac_count
11709    fi
11710    # 10*(2^10) chars as input seems more than enough
11711    test $ac_count -gt 10 && break
11712  done
11713  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11714esac
11715
11716      $ac_path_SED_found && break 3
11717    done
11718  done
11719  done
11720IFS=$as_save_IFS
11721  if test -z "$ac_cv_path_SED"; then
11722    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11723  fi
11724else
11725  ac_cv_path_SED=$SED
11726fi
11727 ;;
11728esac
11729fi
11730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11731printf "%s\n" "$ac_cv_path_SED" >&6; }
11732 SED="$ac_cv_path_SED"
11733  rm -f conftest.sed
11734
11735test -z "$SED" && SED=sed
11736Xsed="$SED -e 1s/^X//"
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11749printf %s "checking for grep that handles long lines and -e... " >&6; }
11750if test ${ac_cv_path_GREP+y}
11751then :
11752  printf %s "(cached) " >&6
11753else case e in #(
11754  e) if test -z "$GREP"; then
11755  ac_path_GREP_found=false
11756  # Loop through the user's path and test for each of PROGNAME-LIST
11757  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11758for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11759do
11760  IFS=$as_save_IFS
11761  case $as_dir in #(((
11762    '') as_dir=./ ;;
11763    */) ;;
11764    *) as_dir=$as_dir/ ;;
11765  esac
11766    for ac_prog in grep ggrep
11767   do
11768    for ac_exec_ext in '' $ac_executable_extensions; do
11769      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11770      as_fn_executable_p "$ac_path_GREP" || continue
11771# Check for GNU ac_path_GREP and select it if it is found.
11772  # Check for GNU $ac_path_GREP
11773case `"$ac_path_GREP" --version 2>&1` in #(
11774*GNU*)
11775  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11776#(
11777*)
11778  ac_count=0
11779  printf %s 0123456789 >"conftest.in"
11780  while :
11781  do
11782    cat "conftest.in" "conftest.in" >"conftest.tmp"
11783    mv "conftest.tmp" "conftest.in"
11784    cp "conftest.in" "conftest.nl"
11785    printf "%s\n" 'GREP' >> "conftest.nl"
11786    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11787    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11788    as_fn_arith $ac_count + 1 && ac_count=$as_val
11789    if test $ac_count -gt ${ac_path_GREP_max-0}; then
11790      # Best one so far, save it but keep looking for a better one
11791      ac_cv_path_GREP="$ac_path_GREP"
11792      ac_path_GREP_max=$ac_count
11793    fi
11794    # 10*(2^10) chars as input seems more than enough
11795    test $ac_count -gt 10 && break
11796  done
11797  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11798esac
11799
11800      $ac_path_GREP_found && break 3
11801    done
11802  done
11803  done
11804IFS=$as_save_IFS
11805  if test -z "$ac_cv_path_GREP"; then
11806    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11807  fi
11808else
11809  ac_cv_path_GREP=$GREP
11810fi
11811 ;;
11812esac
11813fi
11814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11815printf "%s\n" "$ac_cv_path_GREP" >&6; }
11816 GREP="$ac_cv_path_GREP"
11817
11818
11819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11820printf %s "checking for egrep... " >&6; }
11821if test ${ac_cv_path_EGREP+y}
11822then :
11823  printf %s "(cached) " >&6
11824else case e in #(
11825  e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11826   then ac_cv_path_EGREP="$GREP -E"
11827   else
11828     if test -z "$EGREP"; then
11829  ac_path_EGREP_found=false
11830  # Loop through the user's path and test for each of PROGNAME-LIST
11831  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11832for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11833do
11834  IFS=$as_save_IFS
11835  case $as_dir in #(((
11836    '') as_dir=./ ;;
11837    */) ;;
11838    *) as_dir=$as_dir/ ;;
11839  esac
11840    for ac_prog in egrep
11841   do
11842    for ac_exec_ext in '' $ac_executable_extensions; do
11843      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11844      as_fn_executable_p "$ac_path_EGREP" || continue
11845# Check for GNU ac_path_EGREP and select it if it is found.
11846  # Check for GNU $ac_path_EGREP
11847case `"$ac_path_EGREP" --version 2>&1` in #(
11848*GNU*)
11849  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11850#(
11851*)
11852  ac_count=0
11853  printf %s 0123456789 >"conftest.in"
11854  while :
11855  do
11856    cat "conftest.in" "conftest.in" >"conftest.tmp"
11857    mv "conftest.tmp" "conftest.in"
11858    cp "conftest.in" "conftest.nl"
11859    printf "%s\n" 'EGREP' >> "conftest.nl"
11860    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11861    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11862    as_fn_arith $ac_count + 1 && ac_count=$as_val
11863    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11864      # Best one so far, save it but keep looking for a better one
11865      ac_cv_path_EGREP="$ac_path_EGREP"
11866      ac_path_EGREP_max=$ac_count
11867    fi
11868    # 10*(2^10) chars as input seems more than enough
11869    test $ac_count -gt 10 && break
11870  done
11871  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11872esac
11873
11874      $ac_path_EGREP_found && break 3
11875    done
11876  done
11877  done
11878IFS=$as_save_IFS
11879  if test -z "$ac_cv_path_EGREP"; then
11880    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11881  fi
11882else
11883  ac_cv_path_EGREP=$EGREP
11884fi
11885
11886   fi ;;
11887esac
11888fi
11889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11890printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11891 EGREP="$ac_cv_path_EGREP"
11892
11893         EGREP_TRADITIONAL=$EGREP
11894 ac_cv_path_EGREP_TRADITIONAL=$EGREP
11895
11896{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11897printf %s "checking for fgrep... " >&6; }
11898if test ${ac_cv_path_FGREP+y}
11899then :
11900  printf %s "(cached) " >&6
11901else case e in #(
11902  e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11903   then ac_cv_path_FGREP="$GREP -F"
11904   else
11905     if test -z "$FGREP"; then
11906  ac_path_FGREP_found=false
11907  # Loop through the user's path and test for each of PROGNAME-LIST
11908  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11909for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11910do
11911  IFS=$as_save_IFS
11912  case $as_dir in #(((
11913    '') as_dir=./ ;;
11914    */) ;;
11915    *) as_dir=$as_dir/ ;;
11916  esac
11917    for ac_prog in fgrep
11918   do
11919    for ac_exec_ext in '' $ac_executable_extensions; do
11920      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
11921      as_fn_executable_p "$ac_path_FGREP" || continue
11922# Check for GNU ac_path_FGREP and select it if it is found.
11923  # Check for GNU $ac_path_FGREP
11924case `"$ac_path_FGREP" --version 2>&1` in #(
11925*GNU*)
11926  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11927#(
11928*)
11929  ac_count=0
11930  printf %s 0123456789 >"conftest.in"
11931  while :
11932  do
11933    cat "conftest.in" "conftest.in" >"conftest.tmp"
11934    mv "conftest.tmp" "conftest.in"
11935    cp "conftest.in" "conftest.nl"
11936    printf "%s\n" 'FGREP' >> "conftest.nl"
11937    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11938    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11939    as_fn_arith $ac_count + 1 && ac_count=$as_val
11940    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11941      # Best one so far, save it but keep looking for a better one
11942      ac_cv_path_FGREP="$ac_path_FGREP"
11943      ac_path_FGREP_max=$ac_count
11944    fi
11945    # 10*(2^10) chars as input seems more than enough
11946    test $ac_count -gt 10 && break
11947  done
11948  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11949esac
11950
11951      $ac_path_FGREP_found && break 3
11952    done
11953  done
11954  done
11955IFS=$as_save_IFS
11956  if test -z "$ac_cv_path_FGREP"; then
11957    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11958  fi
11959else
11960  ac_cv_path_FGREP=$FGREP
11961fi
11962
11963   fi ;;
11964esac
11965fi
11966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11967printf "%s\n" "$ac_cv_path_FGREP" >&6; }
11968 FGREP="$ac_cv_path_FGREP"
11969
11970
11971test -z "$GREP" && GREP=grep
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991# Check whether --with-gnu-ld was given.
11992if test ${with_gnu_ld+y}
11993then :
11994  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11995else case e in #(
11996  e) with_gnu_ld=no ;;
11997esac
11998fi
11999
12000ac_prog=ld
12001if test yes = "$GCC"; then
12002  # Check if gcc -print-prog-name=ld gives a path.
12003  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12004printf %s "checking for ld used by $CC... " >&6; }
12005  case $host in
12006  *-*-mingw*)
12007    # gcc leaves a trailing carriage return, which upsets mingw
12008    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12009  *)
12010    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12011  esac
12012  case $ac_prog in
12013    # Accept absolute paths.
12014    [\\/]* | ?:[\\/]*)
12015      re_direlt='/[^/][^/]*/\.\./'
12016      # Canonicalize the pathname of ld
12017      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12018      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12019	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12020      done
12021      test -z "$LD" && LD=$ac_prog
12022      ;;
12023  "")
12024    # If it fails, then pretend we aren't using GCC.
12025    ac_prog=ld
12026    ;;
12027  *)
12028    # If it is relative, then search for the first ld in PATH.
12029    with_gnu_ld=unknown
12030    ;;
12031  esac
12032elif test yes = "$with_gnu_ld"; then
12033  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12034printf %s "checking for GNU ld... " >&6; }
12035else
12036  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12037printf %s "checking for non-GNU ld... " >&6; }
12038fi
12039if test ${lt_cv_path_LD+y}
12040then :
12041  printf %s "(cached) " >&6
12042else case e in #(
12043  e) if test -z "$LD"; then
12044  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12045  for ac_dir in $PATH; do
12046    IFS=$lt_save_ifs
12047    test -z "$ac_dir" && ac_dir=.
12048    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12049      lt_cv_path_LD=$ac_dir/$ac_prog
12050      # Check to see if the program is GNU ld.  I'd rather use --version,
12051      # but apparently some variants of GNU ld only accept -v.
12052      # Break only if it was the GNU/non-GNU ld that we prefer.
12053      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12054      *GNU* | *'with BFD'*)
12055	test no != "$with_gnu_ld" && break
12056	;;
12057      *)
12058	test yes != "$with_gnu_ld" && break
12059	;;
12060      esac
12061    fi
12062  done
12063  IFS=$lt_save_ifs
12064else
12065  lt_cv_path_LD=$LD # Let the user override the test with a path.
12066fi ;;
12067esac
12068fi
12069
12070LD=$lt_cv_path_LD
12071if test -n "$LD"; then
12072  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12073printf "%s\n" "$LD" >&6; }
12074else
12075  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076printf "%s\n" "no" >&6; }
12077fi
12078test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12080printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
12081if test ${lt_cv_prog_gnu_ld+y}
12082then :
12083  printf %s "(cached) " >&6
12084else case e in #(
12085  e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
12086case `$LD -v 2>&1 </dev/null` in
12087*GNU* | *'with BFD'*)
12088  lt_cv_prog_gnu_ld=yes
12089  ;;
12090*)
12091  lt_cv_prog_gnu_ld=no
12092  ;;
12093esac ;;
12094esac
12095fi
12096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12097printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
12098with_gnu_ld=$lt_cv_prog_gnu_ld
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12109printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12110if test ${lt_cv_path_NM+y}
12111then :
12112  printf %s "(cached) " >&6
12113else case e in #(
12114  e) if test -n "$NM"; then
12115  # Let the user override the test.
12116  lt_cv_path_NM=$NM
12117else
12118  lt_nm_to_check=${ac_tool_prefix}nm
12119  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12120    lt_nm_to_check="$lt_nm_to_check nm"
12121  fi
12122  for lt_tmp_nm in $lt_nm_to_check; do
12123    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12124    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12125      IFS=$lt_save_ifs
12126      test -z "$ac_dir" && ac_dir=.
12127      tmp_nm=$ac_dir/$lt_tmp_nm
12128      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
12129	# Check to see if the nm accepts a BSD-compat flag.
12130	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
12131	#   nm: unknown option "B" ignored
12132	# Tru64's nm complains that /dev/null is an invalid object file
12133	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
12134	case $build_os in
12135	mingw*) lt_bad_file=conftest.nm/nofile ;;
12136	*) lt_bad_file=/dev/null ;;
12137	esac
12138	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
12139	*$lt_bad_file* | *'Invalid file or object type'*)
12140	  lt_cv_path_NM="$tmp_nm -B"
12141	  break 2
12142	  ;;
12143	*)
12144	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
12145	  */dev/null*)
12146	    lt_cv_path_NM="$tmp_nm -p"
12147	    break 2
12148	    ;;
12149	  *)
12150	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12151	    continue # so that we can try to find one that supports BSD flags
12152	    ;;
12153	  esac
12154	  ;;
12155	esac
12156      fi
12157    done
12158    IFS=$lt_save_ifs
12159  done
12160  : ${lt_cv_path_NM=no}
12161fi ;;
12162esac
12163fi
12164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12165printf "%s\n" "$lt_cv_path_NM" >&6; }
12166if test no != "$lt_cv_path_NM"; then
12167  NM=$lt_cv_path_NM
12168else
12169  # Didn't find any BSD compatible name lister, look for dumpbin.
12170  if test -n "$DUMPBIN"; then :
12171    # Let the user override the test.
12172  else
12173    if test -n "$ac_tool_prefix"; then
12174  for ac_prog in dumpbin "link -dump"
12175  do
12176    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12177set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12179printf %s "checking for $ac_word... " >&6; }
12180if test ${ac_cv_prog_DUMPBIN+y}
12181then :
12182  printf %s "(cached) " >&6
12183else case e in #(
12184  e) if test -n "$DUMPBIN"; then
12185  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12186else
12187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12188for as_dir in $PATH
12189do
12190  IFS=$as_save_IFS
12191  case $as_dir in #(((
12192    '') as_dir=./ ;;
12193    */) ;;
12194    *) as_dir=$as_dir/ ;;
12195  esac
12196    for ac_exec_ext in '' $ac_executable_extensions; do
12197  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12198    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12199    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12200    break 2
12201  fi
12202done
12203  done
12204IFS=$as_save_IFS
12205
12206fi ;;
12207esac
12208fi
12209DUMPBIN=$ac_cv_prog_DUMPBIN
12210if test -n "$DUMPBIN"; then
12211  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12212printf "%s\n" "$DUMPBIN" >&6; }
12213else
12214  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215printf "%s\n" "no" >&6; }
12216fi
12217
12218
12219    test -n "$DUMPBIN" && break
12220  done
12221fi
12222if test -z "$DUMPBIN"; then
12223  ac_ct_DUMPBIN=$DUMPBIN
12224  for ac_prog in dumpbin "link -dump"
12225do
12226  # Extract the first word of "$ac_prog", so it can be a program name with args.
12227set dummy $ac_prog; ac_word=$2
12228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12229printf %s "checking for $ac_word... " >&6; }
12230if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
12231then :
12232  printf %s "(cached) " >&6
12233else case e in #(
12234  e) if test -n "$ac_ct_DUMPBIN"; then
12235  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12236else
12237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12238for as_dir in $PATH
12239do
12240  IFS=$as_save_IFS
12241  case $as_dir in #(((
12242    '') as_dir=./ ;;
12243    */) ;;
12244    *) as_dir=$as_dir/ ;;
12245  esac
12246    for ac_exec_ext in '' $ac_executable_extensions; do
12247  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12248    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12249    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12250    break 2
12251  fi
12252done
12253  done
12254IFS=$as_save_IFS
12255
12256fi ;;
12257esac
12258fi
12259ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12260if test -n "$ac_ct_DUMPBIN"; then
12261  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12262printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
12263else
12264  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265printf "%s\n" "no" >&6; }
12266fi
12267
12268
12269  test -n "$ac_ct_DUMPBIN" && break
12270done
12271
12272  if test "x$ac_ct_DUMPBIN" = x; then
12273    DUMPBIN=":"
12274  else
12275    case $cross_compiling:$ac_tool_warned in
12276yes:)
12277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12278printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12279ac_tool_warned=yes ;;
12280esac
12281    DUMPBIN=$ac_ct_DUMPBIN
12282  fi
12283fi
12284
12285    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
12286    *COFF*)
12287      DUMPBIN="$DUMPBIN -symbols -headers"
12288      ;;
12289    *)
12290      DUMPBIN=:
12291      ;;
12292    esac
12293  fi
12294
12295  if test : != "$DUMPBIN"; then
12296    NM=$DUMPBIN
12297  fi
12298fi
12299test -z "$NM" && NM=nm
12300
12301
12302
12303
12304
12305
12306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12307printf %s "checking the name lister ($NM) interface... " >&6; }
12308if test ${lt_cv_nm_interface+y}
12309then :
12310  printf %s "(cached) " >&6
12311else case e in #(
12312  e) lt_cv_nm_interface="BSD nm"
12313  echo "int some_variable = 0;" > conftest.$ac_ext
12314  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12315  (eval "$ac_compile" 2>conftest.err)
12316  cat conftest.err >&5
12317  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12318  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12319  cat conftest.err >&5
12320  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12321  cat conftest.out >&5
12322  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12323    lt_cv_nm_interface="MS dumpbin"
12324  fi
12325  rm -f conftest* ;;
12326esac
12327fi
12328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12329printf "%s\n" "$lt_cv_nm_interface" >&6; }
12330
12331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12332printf %s "checking whether ln -s works... " >&6; }
12333LN_S=$as_ln_s
12334if test "$LN_S" = "ln -s"; then
12335  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12336printf "%s\n" "yes" >&6; }
12337else
12338  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12339printf "%s\n" "no, using $LN_S" >&6; }
12340fi
12341
12342# find the maximum length of command line arguments
12343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12344printf %s "checking the maximum length of command line arguments... " >&6; }
12345if test ${lt_cv_sys_max_cmd_len+y}
12346then :
12347  printf %s "(cached) " >&6
12348else case e in #(
12349  e)   i=0
12350  teststring=ABCD
12351
12352  case $build_os in
12353  msdosdjgpp*)
12354    # On DJGPP, this test can blow up pretty badly due to problems in libc
12355    # (any single argument exceeding 2000 bytes causes a buffer overrun
12356    # during glob expansion).  Even if it were fixed, the result of this
12357    # check would be larger than it should be.
12358    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12359    ;;
12360
12361  gnu*)
12362    # Under GNU Hurd, this test is not required because there is
12363    # no limit to the length of command line arguments.
12364    # Libtool will interpret -1 as no limit whatsoever
12365    lt_cv_sys_max_cmd_len=-1;
12366    ;;
12367
12368  cygwin* | mingw* | cegcc*)
12369    # On Win9x/ME, this test blows up -- it succeeds, but takes
12370    # about 5 minutes as the teststring grows exponentially.
12371    # Worse, since 9x/ME are not pre-emptively multitasking,
12372    # you end up with a "frozen" computer, even though with patience
12373    # the test eventually succeeds (with a max line length of 256k).
12374    # Instead, let's just punt: use the minimum linelength reported by
12375    # all of the supported platforms: 8192 (on NT/2K/XP).
12376    lt_cv_sys_max_cmd_len=8192;
12377    ;;
12378
12379  mint*)
12380    # On MiNT this can take a long time and run out of memory.
12381    lt_cv_sys_max_cmd_len=8192;
12382    ;;
12383
12384  amigaos*)
12385    # On AmigaOS with pdksh, this test takes hours, literally.
12386    # So we just punt and use a minimum line length of 8192.
12387    lt_cv_sys_max_cmd_len=8192;
12388    ;;
12389
12390  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12391    # This has been around since 386BSD, at least.  Likely further.
12392    if test -x /sbin/sysctl; then
12393      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12394    elif test -x /usr/sbin/sysctl; then
12395      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12396    else
12397      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
12398    fi
12399    # And add a safety zone
12400    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12401    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12402    ;;
12403
12404  interix*)
12405    # We know the value 262144 and hardcode it with a safety zone (like BSD)
12406    lt_cv_sys_max_cmd_len=196608
12407    ;;
12408
12409  os2*)
12410    # The test takes a long time on OS/2.
12411    lt_cv_sys_max_cmd_len=8192
12412    ;;
12413
12414  osf*)
12415    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12416    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12417    # nice to cause kernel panics so lets avoid the loop below.
12418    # First set a reasonable default.
12419    lt_cv_sys_max_cmd_len=16384
12420    #
12421    if test -x /sbin/sysconfig; then
12422      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12423        *1*) lt_cv_sys_max_cmd_len=-1 ;;
12424      esac
12425    fi
12426    ;;
12427  sco3.2v5*)
12428    lt_cv_sys_max_cmd_len=102400
12429    ;;
12430  sysv5* | sco5v6* | sysv4.2uw2*)
12431    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12432    if test -n "$kargmax"; then
12433      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
12434    else
12435      lt_cv_sys_max_cmd_len=32768
12436    fi
12437    ;;
12438  *)
12439    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12440    if test -n "$lt_cv_sys_max_cmd_len" && \
12441       test undefined != "$lt_cv_sys_max_cmd_len"; then
12442      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12443      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12444    else
12445      # Make teststring a little bigger before we do anything with it.
12446      # a 1K string should be a reasonable start.
12447      for i in 1 2 3 4 5 6 7 8; do
12448        teststring=$teststring$teststring
12449      done
12450      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12451      # If test is not a shell built-in, we'll probably end up computing a
12452      # maximum length that is only half of the actual maximum length, but
12453      # we can't tell.
12454      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12455	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12456	      test 17 != "$i" # 1/2 MB should be enough
12457      do
12458        i=`expr $i + 1`
12459        teststring=$teststring$teststring
12460      done
12461      # Only check the string length outside the loop.
12462      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12463      teststring=
12464      # Add a significant safety factor because C++ compilers can tack on
12465      # massive amounts of additional arguments before passing them to the
12466      # linker.  It appears as though 1/2 is a usable value.
12467      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12468    fi
12469    ;;
12470  esac
12471 ;;
12472esac
12473fi
12474
12475if test -n "$lt_cv_sys_max_cmd_len"; then
12476  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12477printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12478else
12479  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12480printf "%s\n" "none" >&6; }
12481fi
12482max_cmd_len=$lt_cv_sys_max_cmd_len
12483
12484
12485
12486
12487
12488
12489: ${CP="cp -f"}
12490: ${MV="mv -f"}
12491: ${RM="rm -f"}
12492
12493if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12494  lt_unset=unset
12495else
12496  lt_unset=false
12497fi
12498
12499
12500
12501
12502
12503# test EBCDIC or ASCII
12504case `echo X|tr X '\101'` in
12505 A) # ASCII based system
12506    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12507  lt_SP2NL='tr \040 \012'
12508  lt_NL2SP='tr \015\012 \040\040'
12509  ;;
12510 *) # EBCDIC based system
12511  lt_SP2NL='tr \100 \n'
12512  lt_NL2SP='tr \r\n \100\100'
12513  ;;
12514esac
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12525printf %s "checking how to convert $build file names to $host format... " >&6; }
12526if test ${lt_cv_to_host_file_cmd+y}
12527then :
12528  printf %s "(cached) " >&6
12529else case e in #(
12530  e) case $host in
12531  *-*-mingw* )
12532    case $build in
12533      *-*-mingw* ) # actually msys
12534        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12535        ;;
12536      *-*-cygwin* )
12537        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12538        ;;
12539      * ) # otherwise, assume *nix
12540        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12541        ;;
12542    esac
12543    ;;
12544  *-*-cygwin* )
12545    case $build in
12546      *-*-mingw* ) # actually msys
12547        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12548        ;;
12549      *-*-cygwin* )
12550        lt_cv_to_host_file_cmd=func_convert_file_noop
12551        ;;
12552      * ) # otherwise, assume *nix
12553        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12554        ;;
12555    esac
12556    ;;
12557  * ) # unhandled hosts (and "normal" native builds)
12558    lt_cv_to_host_file_cmd=func_convert_file_noop
12559    ;;
12560esac
12561 ;;
12562esac
12563fi
12564
12565to_host_file_cmd=$lt_cv_to_host_file_cmd
12566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12567printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12568
12569
12570
12571
12572
12573{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12574printf %s "checking how to convert $build file names to toolchain format... " >&6; }
12575if test ${lt_cv_to_tool_file_cmd+y}
12576then :
12577  printf %s "(cached) " >&6
12578else case e in #(
12579  e) #assume ordinary cross tools, or native build.
12580lt_cv_to_tool_file_cmd=func_convert_file_noop
12581case $host in
12582  *-*-mingw* )
12583    case $build in
12584      *-*-mingw* ) # actually msys
12585        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12586        ;;
12587    esac
12588    ;;
12589esac
12590 ;;
12591esac
12592fi
12593
12594to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12596printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
12597
12598
12599
12600
12601
12602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12603printf %s "checking for $LD option to reload object files... " >&6; }
12604if test ${lt_cv_ld_reload_flag+y}
12605then :
12606  printf %s "(cached) " >&6
12607else case e in #(
12608  e) lt_cv_ld_reload_flag='-r' ;;
12609esac
12610fi
12611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12612printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
12613reload_flag=$lt_cv_ld_reload_flag
12614case $reload_flag in
12615"" | " "*) ;;
12616*) reload_flag=" $reload_flag" ;;
12617esac
12618reload_cmds='$LD$reload_flag -o $output$reload_objs'
12619case $host_os in
12620  cygwin* | mingw* | pw32* | cegcc*)
12621    if test yes != "$GCC"; then
12622      reload_cmds=false
12623    fi
12624    ;;
12625  darwin*)
12626    if test yes = "$GCC"; then
12627      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12628    else
12629      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12630    fi
12631    ;;
12632esac
12633
12634
12635
12636
12637
12638
12639
12640
12641
12642if test -n "$ac_tool_prefix"; then
12643  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
12644set dummy ${ac_tool_prefix}file; ac_word=$2
12645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646printf %s "checking for $ac_word... " >&6; }
12647if test ${ac_cv_prog_FILECMD+y}
12648then :
12649  printf %s "(cached) " >&6
12650else case e in #(
12651  e) if test -n "$FILECMD"; then
12652  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
12653else
12654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12655for as_dir in $PATH
12656do
12657  IFS=$as_save_IFS
12658  case $as_dir in #(((
12659    '') as_dir=./ ;;
12660    */) ;;
12661    *) as_dir=$as_dir/ ;;
12662  esac
12663    for ac_exec_ext in '' $ac_executable_extensions; do
12664  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12665    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
12666    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12667    break 2
12668  fi
12669done
12670  done
12671IFS=$as_save_IFS
12672
12673fi ;;
12674esac
12675fi
12676FILECMD=$ac_cv_prog_FILECMD
12677if test -n "$FILECMD"; then
12678  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
12679printf "%s\n" "$FILECMD" >&6; }
12680else
12681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12682printf "%s\n" "no" >&6; }
12683fi
12684
12685
12686fi
12687if test -z "$ac_cv_prog_FILECMD"; then
12688  ac_ct_FILECMD=$FILECMD
12689  # Extract the first word of "file", so it can be a program name with args.
12690set dummy file; ac_word=$2
12691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12692printf %s "checking for $ac_word... " >&6; }
12693if test ${ac_cv_prog_ac_ct_FILECMD+y}
12694then :
12695  printf %s "(cached) " >&6
12696else case e in #(
12697  e) if test -n "$ac_ct_FILECMD"; then
12698  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
12699else
12700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12701for as_dir in $PATH
12702do
12703  IFS=$as_save_IFS
12704  case $as_dir in #(((
12705    '') as_dir=./ ;;
12706    */) ;;
12707    *) as_dir=$as_dir/ ;;
12708  esac
12709    for ac_exec_ext in '' $ac_executable_extensions; do
12710  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12711    ac_cv_prog_ac_ct_FILECMD="file"
12712    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12713    break 2
12714  fi
12715done
12716  done
12717IFS=$as_save_IFS
12718
12719fi ;;
12720esac
12721fi
12722ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
12723if test -n "$ac_ct_FILECMD"; then
12724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
12725printf "%s\n" "$ac_ct_FILECMD" >&6; }
12726else
12727  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728printf "%s\n" "no" >&6; }
12729fi
12730
12731  if test "x$ac_ct_FILECMD" = x; then
12732    FILECMD=":"
12733  else
12734    case $cross_compiling:$ac_tool_warned in
12735yes:)
12736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12737printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12738ac_tool_warned=yes ;;
12739esac
12740    FILECMD=$ac_ct_FILECMD
12741  fi
12742else
12743  FILECMD="$ac_cv_prog_FILECMD"
12744fi
12745
12746
12747
12748
12749
12750
12751
12752if test -n "$ac_tool_prefix"; then
12753  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12754set dummy ${ac_tool_prefix}objdump; ac_word=$2
12755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12756printf %s "checking for $ac_word... " >&6; }
12757if test ${ac_cv_prog_OBJDUMP+y}
12758then :
12759  printf %s "(cached) " >&6
12760else case e in #(
12761  e) if test -n "$OBJDUMP"; then
12762  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12763else
12764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12765for as_dir in $PATH
12766do
12767  IFS=$as_save_IFS
12768  case $as_dir in #(((
12769    '') as_dir=./ ;;
12770    */) ;;
12771    *) as_dir=$as_dir/ ;;
12772  esac
12773    for ac_exec_ext in '' $ac_executable_extensions; do
12774  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12775    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12776    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12777    break 2
12778  fi
12779done
12780  done
12781IFS=$as_save_IFS
12782
12783fi ;;
12784esac
12785fi
12786OBJDUMP=$ac_cv_prog_OBJDUMP
12787if test -n "$OBJDUMP"; then
12788  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12789printf "%s\n" "$OBJDUMP" >&6; }
12790else
12791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12792printf "%s\n" "no" >&6; }
12793fi
12794
12795
12796fi
12797if test -z "$ac_cv_prog_OBJDUMP"; then
12798  ac_ct_OBJDUMP=$OBJDUMP
12799  # Extract the first word of "objdump", so it can be a program name with args.
12800set dummy objdump; ac_word=$2
12801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12802printf %s "checking for $ac_word... " >&6; }
12803if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12804then :
12805  printf %s "(cached) " >&6
12806else case e in #(
12807  e) if test -n "$ac_ct_OBJDUMP"; then
12808  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12809else
12810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12811for as_dir in $PATH
12812do
12813  IFS=$as_save_IFS
12814  case $as_dir in #(((
12815    '') as_dir=./ ;;
12816    */) ;;
12817    *) as_dir=$as_dir/ ;;
12818  esac
12819    for ac_exec_ext in '' $ac_executable_extensions; do
12820  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12821    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12822    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12823    break 2
12824  fi
12825done
12826  done
12827IFS=$as_save_IFS
12828
12829fi ;;
12830esac
12831fi
12832ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12833if test -n "$ac_ct_OBJDUMP"; then
12834  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12835printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12836else
12837  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838printf "%s\n" "no" >&6; }
12839fi
12840
12841  if test "x$ac_ct_OBJDUMP" = x; then
12842    OBJDUMP="false"
12843  else
12844    case $cross_compiling:$ac_tool_warned in
12845yes:)
12846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12847printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12848ac_tool_warned=yes ;;
12849esac
12850    OBJDUMP=$ac_ct_OBJDUMP
12851  fi
12852else
12853  OBJDUMP="$ac_cv_prog_OBJDUMP"
12854fi
12855
12856test -z "$OBJDUMP" && OBJDUMP=objdump
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12867printf %s "checking how to recognize dependent libraries... " >&6; }
12868if test ${lt_cv_deplibs_check_method+y}
12869then :
12870  printf %s "(cached) " >&6
12871else case e in #(
12872  e) lt_cv_file_magic_cmd='$MAGIC_CMD'
12873lt_cv_file_magic_test_file=
12874lt_cv_deplibs_check_method='unknown'
12875# Need to set the preceding variable on all platforms that support
12876# interlibrary dependencies.
12877# 'none' -- dependencies not supported.
12878# 'unknown' -- same as none, but documents that we really don't know.
12879# 'pass_all' -- all dependencies passed with no checks.
12880# 'test_compile' -- check by making test program.
12881# 'file_magic [[regex]]' -- check by looking for files in library path
12882# that responds to the $file_magic_cmd with a given extended regex.
12883# If you have 'file' or equivalent on your system and you're not sure
12884# whether 'pass_all' will *always* work, you probably want this one.
12885
12886case $host_os in
12887aix[4-9]*)
12888  lt_cv_deplibs_check_method=pass_all
12889  ;;
12890
12891beos*)
12892  lt_cv_deplibs_check_method=pass_all
12893  ;;
12894
12895bsdi[45]*)
12896  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12897  lt_cv_file_magic_cmd='$FILECMD -L'
12898  lt_cv_file_magic_test_file=/shlib/libc.so
12899  ;;
12900
12901cygwin*)
12902  # func_win32_libid is a shell function defined in ltmain.sh
12903  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12904  lt_cv_file_magic_cmd='func_win32_libid'
12905  ;;
12906
12907mingw* | pw32*)
12908  # Base MSYS/MinGW do not provide the 'file' command needed by
12909  # func_win32_libid shell function, so use a weaker test based on 'objdump',
12910  # unless we find 'file', for example because we are cross-compiling.
12911  if ( file / ) >/dev/null 2>&1; then
12912    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12913    lt_cv_file_magic_cmd='func_win32_libid'
12914  else
12915    # Keep this pattern in sync with the one in func_win32_libid.
12916    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12917    lt_cv_file_magic_cmd='$OBJDUMP -f'
12918  fi
12919  ;;
12920
12921cegcc*)
12922  # use the weaker test based on 'objdump'. See mingw*.
12923  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12924  lt_cv_file_magic_cmd='$OBJDUMP -f'
12925  ;;
12926
12927darwin* | rhapsody*)
12928  lt_cv_deplibs_check_method=pass_all
12929  ;;
12930
12931freebsd* | dragonfly* | midnightbsd*)
12932  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12933    case $host_cpu in
12934    i*86 )
12935      # Not sure whether the presence of OpenBSD here was a mistake.
12936      # Let's accept both of them until this is cleared up.
12937      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12938      lt_cv_file_magic_cmd=$FILECMD
12939      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12940      ;;
12941    esac
12942  else
12943    lt_cv_deplibs_check_method=pass_all
12944  fi
12945  ;;
12946
12947haiku*)
12948  lt_cv_deplibs_check_method=pass_all
12949  ;;
12950
12951hpux10.20* | hpux11*)
12952  lt_cv_file_magic_cmd=$FILECMD
12953  case $host_cpu in
12954  ia64*)
12955    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12956    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12957    ;;
12958  hppa*64*)
12959    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]'
12960    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12961    ;;
12962  *)
12963    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12964    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12965    ;;
12966  esac
12967  ;;
12968
12969interix[3-9]*)
12970  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12971  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12972  ;;
12973
12974irix5* | irix6* | nonstopux*)
12975  case $LD in
12976  *-32|*"-32 ") libmagic=32-bit;;
12977  *-n32|*"-n32 ") libmagic=N32;;
12978  *-64|*"-64 ") libmagic=64-bit;;
12979  *) libmagic=never-match;;
12980  esac
12981  lt_cv_deplibs_check_method=pass_all
12982  ;;
12983
12984# This must be glibc/ELF.
12985linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12986  lt_cv_deplibs_check_method=pass_all
12987  ;;
12988
12989netbsd*)
12990  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12991    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12992  else
12993    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12994  fi
12995  ;;
12996
12997newos6*)
12998  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12999  lt_cv_file_magic_cmd=$FILECMD
13000  lt_cv_file_magic_test_file=/usr/lib/libnls.so
13001  ;;
13002
13003*nto* | *qnx*)
13004  lt_cv_deplibs_check_method=pass_all
13005  ;;
13006
13007openbsd* | bitrig*)
13008  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13009    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13010  else
13011    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13012  fi
13013  ;;
13014
13015osf3* | osf4* | osf5*)
13016  lt_cv_deplibs_check_method=pass_all
13017  ;;
13018
13019rdos*)
13020  lt_cv_deplibs_check_method=pass_all
13021  ;;
13022
13023solaris*)
13024  lt_cv_deplibs_check_method=pass_all
13025  ;;
13026
13027sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13028  lt_cv_deplibs_check_method=pass_all
13029  ;;
13030
13031sysv4 | sysv4.3*)
13032  case $host_vendor in
13033  motorola)
13034    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]'
13035    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13036    ;;
13037  ncr)
13038    lt_cv_deplibs_check_method=pass_all
13039    ;;
13040  sequent)
13041    lt_cv_file_magic_cmd='/bin/file'
13042    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13043    ;;
13044  sni)
13045    lt_cv_file_magic_cmd='/bin/file'
13046    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13047    lt_cv_file_magic_test_file=/lib/libc.so
13048    ;;
13049  siemens)
13050    lt_cv_deplibs_check_method=pass_all
13051    ;;
13052  pc)
13053    lt_cv_deplibs_check_method=pass_all
13054    ;;
13055  esac
13056  ;;
13057
13058tpf*)
13059  lt_cv_deplibs_check_method=pass_all
13060  ;;
13061os2*)
13062  lt_cv_deplibs_check_method=pass_all
13063  ;;
13064esac
13065 ;;
13066esac
13067fi
13068{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13069printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
13070
13071file_magic_glob=
13072want_nocaseglob=no
13073if test "$build" = "$host"; then
13074  case $host_os in
13075  mingw* | pw32*)
13076    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
13077      want_nocaseglob=yes
13078    else
13079      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
13080    fi
13081    ;;
13082  esac
13083fi
13084
13085file_magic_cmd=$lt_cv_file_magic_cmd
13086deplibs_check_method=$lt_cv_deplibs_check_method
13087test -z "$deplibs_check_method" && deplibs_check_method=unknown
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110if test -n "$ac_tool_prefix"; then
13111  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13112set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13114printf %s "checking for $ac_word... " >&6; }
13115if test ${ac_cv_prog_DLLTOOL+y}
13116then :
13117  printf %s "(cached) " >&6
13118else case e in #(
13119  e) if test -n "$DLLTOOL"; then
13120  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13121else
13122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13123for as_dir in $PATH
13124do
13125  IFS=$as_save_IFS
13126  case $as_dir in #(((
13127    '') as_dir=./ ;;
13128    */) ;;
13129    *) as_dir=$as_dir/ ;;
13130  esac
13131    for ac_exec_ext in '' $ac_executable_extensions; do
13132  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13133    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13134    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13135    break 2
13136  fi
13137done
13138  done
13139IFS=$as_save_IFS
13140
13141fi ;;
13142esac
13143fi
13144DLLTOOL=$ac_cv_prog_DLLTOOL
13145if test -n "$DLLTOOL"; then
13146  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13147printf "%s\n" "$DLLTOOL" >&6; }
13148else
13149  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13150printf "%s\n" "no" >&6; }
13151fi
13152
13153
13154fi
13155if test -z "$ac_cv_prog_DLLTOOL"; then
13156  ac_ct_DLLTOOL=$DLLTOOL
13157  # Extract the first word of "dlltool", so it can be a program name with args.
13158set dummy dlltool; ac_word=$2
13159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13160printf %s "checking for $ac_word... " >&6; }
13161if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
13162then :
13163  printf %s "(cached) " >&6
13164else case e in #(
13165  e) if test -n "$ac_ct_DLLTOOL"; then
13166  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13167else
13168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13169for as_dir in $PATH
13170do
13171  IFS=$as_save_IFS
13172  case $as_dir in #(((
13173    '') as_dir=./ ;;
13174    */) ;;
13175    *) as_dir=$as_dir/ ;;
13176  esac
13177    for ac_exec_ext in '' $ac_executable_extensions; do
13178  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13179    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13180    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13181    break 2
13182  fi
13183done
13184  done
13185IFS=$as_save_IFS
13186
13187fi ;;
13188esac
13189fi
13190ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13191if test -n "$ac_ct_DLLTOOL"; then
13192  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13193printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
13194else
13195  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13196printf "%s\n" "no" >&6; }
13197fi
13198
13199  if test "x$ac_ct_DLLTOOL" = x; then
13200    DLLTOOL="false"
13201  else
13202    case $cross_compiling:$ac_tool_warned in
13203yes:)
13204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13205printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13206ac_tool_warned=yes ;;
13207esac
13208    DLLTOOL=$ac_ct_DLLTOOL
13209  fi
13210else
13211  DLLTOOL="$ac_cv_prog_DLLTOOL"
13212fi
13213
13214test -z "$DLLTOOL" && DLLTOOL=dlltool
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
13226printf %s "checking how to associate runtime and link libraries... " >&6; }
13227if test ${lt_cv_sharedlib_from_linklib_cmd+y}
13228then :
13229  printf %s "(cached) " >&6
13230else case e in #(
13231  e) lt_cv_sharedlib_from_linklib_cmd='unknown'
13232
13233case $host_os in
13234cygwin* | mingw* | pw32* | cegcc*)
13235  # two different shell functions defined in ltmain.sh;
13236  # decide which one to use based on capabilities of $DLLTOOL
13237  case `$DLLTOOL --help 2>&1` in
13238  *--identify-strict*)
13239    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
13240    ;;
13241  *)
13242    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
13243    ;;
13244  esac
13245  ;;
13246*)
13247  # fallback: assume linklib IS sharedlib
13248  lt_cv_sharedlib_from_linklib_cmd=$ECHO
13249  ;;
13250esac
13251 ;;
13252esac
13253fi
13254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
13255printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
13256sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
13257test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
13258
13259
13260
13261
13262
13263
13264
13265if test -n "$ac_tool_prefix"; then
13266  for ac_prog in ar
13267  do
13268    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13269set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13271printf %s "checking for $ac_word... " >&6; }
13272if test ${ac_cv_prog_AR+y}
13273then :
13274  printf %s "(cached) " >&6
13275else case e in #(
13276  e) if test -n "$AR"; then
13277  ac_cv_prog_AR="$AR" # Let the user override the test.
13278else
13279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13280for as_dir in $PATH
13281do
13282  IFS=$as_save_IFS
13283  case $as_dir in #(((
13284    '') as_dir=./ ;;
13285    */) ;;
13286    *) as_dir=$as_dir/ ;;
13287  esac
13288    for ac_exec_ext in '' $ac_executable_extensions; do
13289  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13290    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
13291    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13292    break 2
13293  fi
13294done
13295  done
13296IFS=$as_save_IFS
13297
13298fi ;;
13299esac
13300fi
13301AR=$ac_cv_prog_AR
13302if test -n "$AR"; then
13303  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13304printf "%s\n" "$AR" >&6; }
13305else
13306  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13307printf "%s\n" "no" >&6; }
13308fi
13309
13310
13311    test -n "$AR" && break
13312  done
13313fi
13314if test -z "$AR"; then
13315  ac_ct_AR=$AR
13316  for ac_prog in ar
13317do
13318  # Extract the first word of "$ac_prog", so it can be a program name with args.
13319set dummy $ac_prog; ac_word=$2
13320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13321printf %s "checking for $ac_word... " >&6; }
13322if test ${ac_cv_prog_ac_ct_AR+y}
13323then :
13324  printf %s "(cached) " >&6
13325else case e in #(
13326  e) if test -n "$ac_ct_AR"; then
13327  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13328else
13329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13330for as_dir in $PATH
13331do
13332  IFS=$as_save_IFS
13333  case $as_dir in #(((
13334    '') as_dir=./ ;;
13335    */) ;;
13336    *) as_dir=$as_dir/ ;;
13337  esac
13338    for ac_exec_ext in '' $ac_executable_extensions; do
13339  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13340    ac_cv_prog_ac_ct_AR="$ac_prog"
13341    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13342    break 2
13343  fi
13344done
13345  done
13346IFS=$as_save_IFS
13347
13348fi ;;
13349esac
13350fi
13351ac_ct_AR=$ac_cv_prog_ac_ct_AR
13352if test -n "$ac_ct_AR"; then
13353  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13354printf "%s\n" "$ac_ct_AR" >&6; }
13355else
13356  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13357printf "%s\n" "no" >&6; }
13358fi
13359
13360
13361  test -n "$ac_ct_AR" && break
13362done
13363
13364  if test "x$ac_ct_AR" = x; then
13365    AR="false"
13366  else
13367    case $cross_compiling:$ac_tool_warned in
13368yes:)
13369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13370printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13371ac_tool_warned=yes ;;
13372esac
13373    AR=$ac_ct_AR
13374  fi
13375fi
13376
13377: ${AR=ar}
13378
13379
13380
13381
13382
13383
13384# Use ARFLAGS variable as AR's operation code to sync the variable naming with
13385# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13386# higher priority because thats what people were doing historically (setting
13387# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
13388# variable obsoleted/removed.
13389
13390test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13391lt_ar_flags=$AR_FLAGS
13392
13393
13394
13395
13396
13397
13398# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
13399# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13400
13401
13402
13403
13404
13405
13406{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13407printf %s "checking for archiver @FILE support... " >&6; }
13408if test ${lt_cv_ar_at_file+y}
13409then :
13410  printf %s "(cached) " >&6
13411else case e in #(
13412  e) lt_cv_ar_at_file=no
13413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13414/* end confdefs.h.  */
13415
13416int
13417main (void)
13418{
13419
13420  ;
13421  return 0;
13422}
13423_ACEOF
13424if ac_fn_c_try_compile "$LINENO"
13425then :
13426  echo conftest.$ac_objext > conftest.lst
13427      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13428      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13429  (eval $lt_ar_try) 2>&5
13430  ac_status=$?
13431  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13432  test $ac_status = 0; }
13433      if test 0 -eq "$ac_status"; then
13434	# Ensure the archiver fails upon bogus file names.
13435	rm -f conftest.$ac_objext libconftest.a
13436	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13437  (eval $lt_ar_try) 2>&5
13438  ac_status=$?
13439  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13440  test $ac_status = 0; }
13441	if test 0 -ne "$ac_status"; then
13442          lt_cv_ar_at_file=@
13443        fi
13444      fi
13445      rm -f conftest.* libconftest.a
13446
13447fi
13448rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13449   ;;
13450esac
13451fi
13452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13453printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13454
13455if test no = "$lt_cv_ar_at_file"; then
13456  archiver_list_spec=
13457else
13458  archiver_list_spec=$lt_cv_ar_at_file
13459fi
13460
13461
13462
13463
13464
13465
13466
13467if test -n "$ac_tool_prefix"; then
13468  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13469set dummy ${ac_tool_prefix}strip; ac_word=$2
13470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13471printf %s "checking for $ac_word... " >&6; }
13472if test ${ac_cv_prog_STRIP+y}
13473then :
13474  printf %s "(cached) " >&6
13475else case e in #(
13476  e) if test -n "$STRIP"; then
13477  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13478else
13479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13480for as_dir in $PATH
13481do
13482  IFS=$as_save_IFS
13483  case $as_dir in #(((
13484    '') as_dir=./ ;;
13485    */) ;;
13486    *) as_dir=$as_dir/ ;;
13487  esac
13488    for ac_exec_ext in '' $ac_executable_extensions; do
13489  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13490    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13491    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13492    break 2
13493  fi
13494done
13495  done
13496IFS=$as_save_IFS
13497
13498fi ;;
13499esac
13500fi
13501STRIP=$ac_cv_prog_STRIP
13502if test -n "$STRIP"; then
13503  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13504printf "%s\n" "$STRIP" >&6; }
13505else
13506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13507printf "%s\n" "no" >&6; }
13508fi
13509
13510
13511fi
13512if test -z "$ac_cv_prog_STRIP"; then
13513  ac_ct_STRIP=$STRIP
13514  # Extract the first word of "strip", so it can be a program name with args.
13515set dummy strip; ac_word=$2
13516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13517printf %s "checking for $ac_word... " >&6; }
13518if test ${ac_cv_prog_ac_ct_STRIP+y}
13519then :
13520  printf %s "(cached) " >&6
13521else case e in #(
13522  e) if test -n "$ac_ct_STRIP"; then
13523  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13524else
13525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526for as_dir in $PATH
13527do
13528  IFS=$as_save_IFS
13529  case $as_dir in #(((
13530    '') as_dir=./ ;;
13531    */) ;;
13532    *) as_dir=$as_dir/ ;;
13533  esac
13534    for ac_exec_ext in '' $ac_executable_extensions; do
13535  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13536    ac_cv_prog_ac_ct_STRIP="strip"
13537    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13538    break 2
13539  fi
13540done
13541  done
13542IFS=$as_save_IFS
13543
13544fi ;;
13545esac
13546fi
13547ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13548if test -n "$ac_ct_STRIP"; then
13549  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13550printf "%s\n" "$ac_ct_STRIP" >&6; }
13551else
13552  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13553printf "%s\n" "no" >&6; }
13554fi
13555
13556  if test "x$ac_ct_STRIP" = x; then
13557    STRIP=":"
13558  else
13559    case $cross_compiling:$ac_tool_warned in
13560yes:)
13561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13562printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13563ac_tool_warned=yes ;;
13564esac
13565    STRIP=$ac_ct_STRIP
13566  fi
13567else
13568  STRIP="$ac_cv_prog_STRIP"
13569fi
13570
13571test -z "$STRIP" && STRIP=:
13572
13573
13574
13575
13576
13577
13578if test -n "$ac_tool_prefix"; then
13579  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13580set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13582printf %s "checking for $ac_word... " >&6; }
13583if test ${ac_cv_prog_RANLIB+y}
13584then :
13585  printf %s "(cached) " >&6
13586else case e in #(
13587  e) if test -n "$RANLIB"; then
13588  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13589else
13590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13591for as_dir in $PATH
13592do
13593  IFS=$as_save_IFS
13594  case $as_dir in #(((
13595    '') as_dir=./ ;;
13596    */) ;;
13597    *) as_dir=$as_dir/ ;;
13598  esac
13599    for ac_exec_ext in '' $ac_executable_extensions; do
13600  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13601    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13602    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13603    break 2
13604  fi
13605done
13606  done
13607IFS=$as_save_IFS
13608
13609fi ;;
13610esac
13611fi
13612RANLIB=$ac_cv_prog_RANLIB
13613if test -n "$RANLIB"; then
13614  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13615printf "%s\n" "$RANLIB" >&6; }
13616else
13617  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13618printf "%s\n" "no" >&6; }
13619fi
13620
13621
13622fi
13623if test -z "$ac_cv_prog_RANLIB"; then
13624  ac_ct_RANLIB=$RANLIB
13625  # Extract the first word of "ranlib", so it can be a program name with args.
13626set dummy ranlib; ac_word=$2
13627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13628printf %s "checking for $ac_word... " >&6; }
13629if test ${ac_cv_prog_ac_ct_RANLIB+y}
13630then :
13631  printf %s "(cached) " >&6
13632else case e in #(
13633  e) if test -n "$ac_ct_RANLIB"; then
13634  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13635else
13636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13637for as_dir in $PATH
13638do
13639  IFS=$as_save_IFS
13640  case $as_dir in #(((
13641    '') as_dir=./ ;;
13642    */) ;;
13643    *) as_dir=$as_dir/ ;;
13644  esac
13645    for ac_exec_ext in '' $ac_executable_extensions; do
13646  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13647    ac_cv_prog_ac_ct_RANLIB="ranlib"
13648    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13649    break 2
13650  fi
13651done
13652  done
13653IFS=$as_save_IFS
13654
13655fi ;;
13656esac
13657fi
13658ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13659if test -n "$ac_ct_RANLIB"; then
13660  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13661printf "%s\n" "$ac_ct_RANLIB" >&6; }
13662else
13663  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13664printf "%s\n" "no" >&6; }
13665fi
13666
13667  if test "x$ac_ct_RANLIB" = x; then
13668    RANLIB=":"
13669  else
13670    case $cross_compiling:$ac_tool_warned in
13671yes:)
13672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13673printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13674ac_tool_warned=yes ;;
13675esac
13676    RANLIB=$ac_ct_RANLIB
13677  fi
13678else
13679  RANLIB="$ac_cv_prog_RANLIB"
13680fi
13681
13682test -z "$RANLIB" && RANLIB=:
13683
13684
13685
13686
13687
13688
13689# Determine commands to create old-style static archives.
13690old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13691old_postinstall_cmds='chmod 644 $oldlib'
13692old_postuninstall_cmds=
13693
13694if test -n "$RANLIB"; then
13695  case $host_os in
13696  bitrig* | openbsd*)
13697    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13698    ;;
13699  *)
13700    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13701    ;;
13702  esac
13703  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13704fi
13705
13706case $host_os in
13707  darwin*)
13708    lock_old_archive_extraction=yes ;;
13709  *)
13710    lock_old_archive_extraction=no ;;
13711esac
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751# If no C compiler was specified, use CC.
13752LTCC=${LTCC-"$CC"}
13753
13754# If no C compiler flags were specified, use CFLAGS.
13755LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13756
13757# Allow CC to be a program name with arguments.
13758compiler=$CC
13759
13760
13761# Check for command to grab the raw symbol name followed by C symbol from nm.
13762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13763printf %s "checking command to parse $NM output from $compiler object... " >&6; }
13764if test ${lt_cv_sys_global_symbol_pipe+y}
13765then :
13766  printf %s "(cached) " >&6
13767else case e in #(
13768  e)
13769# These are sane defaults that work on at least a few old systems.
13770# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13771
13772# Character class describing NM global symbol codes.
13773symcode='[BCDEGRST]'
13774
13775# Regexp to match symbols that can be accessed directly from C.
13776sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13777
13778# Define system-specific variables.
13779case $host_os in
13780aix*)
13781  symcode='[BCDT]'
13782  ;;
13783cygwin* | mingw* | pw32* | cegcc*)
13784  symcode='[ABCDGISTW]'
13785  ;;
13786hpux*)
13787  if test ia64 = "$host_cpu"; then
13788    symcode='[ABCDEGRST]'
13789  fi
13790  ;;
13791irix* | nonstopux*)
13792  symcode='[BCDEGRST]'
13793  ;;
13794osf*)
13795  symcode='[BCDEGQRST]'
13796  ;;
13797solaris*)
13798  symcode='[BDRT]'
13799  ;;
13800sco3.2v5*)
13801  symcode='[DT]'
13802  ;;
13803sysv4.2uw2*)
13804  symcode='[DT]'
13805  ;;
13806sysv5* | sco5v6* | unixware* | OpenUNIX*)
13807  symcode='[ABDT]'
13808  ;;
13809sysv4)
13810  symcode='[DFNSTU]'
13811  ;;
13812esac
13813
13814# If we're using GNU nm, then use its standard symbol codes.
13815case `$NM -V 2>&1` in
13816*GNU* | *'with BFD'*)
13817  symcode='[ABCDGIRSTW]' ;;
13818esac
13819
13820if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13821  # Gets list of data symbols to import.
13822  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
13823  # Adjust the below global symbol transforms to fixup imported variables.
13824  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13825  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
13826  lt_c_name_lib_hook="\
13827  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
13828  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
13829else
13830  # Disable hooks by default.
13831  lt_cv_sys_global_symbol_to_import=
13832  lt_cdecl_hook=
13833  lt_c_name_hook=
13834  lt_c_name_lib_hook=
13835fi
13836
13837# Transform an extracted symbol line into a proper C declaration.
13838# Some systems (esp. on ia64) link data and code symbols differently,
13839# so use this general approach.
13840lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
13841$lt_cdecl_hook\
13842" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13843" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13844
13845# Transform an extracted symbol line into symbol name and symbol address
13846lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
13847$lt_c_name_hook\
13848" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13849" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
13850
13851# Transform an extracted symbol line into symbol name with lib prefix and
13852# symbol address.
13853lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
13854$lt_c_name_lib_hook\
13855" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13856" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
13857" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
13858
13859# Handle CRLF in mingw tool chain
13860opt_cr=
13861case $build_os in
13862mingw*)
13863  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13864  ;;
13865esac
13866
13867# Try without a prefix underscore, then with it.
13868for ac_symprfx in "" "_"; do
13869
13870  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13871  symxfrm="\\1 $ac_symprfx\\2 \\2"
13872
13873  # Write the raw and C identifiers.
13874  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13875    # Fake it for dumpbin and say T for any non-static function,
13876    # D for any global variable and I for any imported variable.
13877    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
13878    # which start with @ or ?.
13879    lt_cv_sys_global_symbol_pipe="$AWK '"\
13880"     {last_section=section; section=\$ 3};"\
13881"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13882"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13883"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13884"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13885"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13886"     \$ 0!~/External *\|/{next};"\
13887"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13888"     {if(hide[section]) next};"\
13889"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13890"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13891"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13892"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13893"     ' prfx=^$ac_symprfx"
13894  else
13895    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13896  fi
13897  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
13898
13899  # Check to see that the pipe works correctly.
13900  pipe_works=no
13901
13902  rm -f conftest*
13903  cat > conftest.$ac_ext <<_LT_EOF
13904#ifdef __cplusplus
13905extern "C" {
13906#endif
13907char nm_test_var;
13908void nm_test_func(void);
13909void nm_test_func(void){}
13910#ifdef __cplusplus
13911}
13912#endif
13913int main(){nm_test_var='a';nm_test_func();return(0);}
13914_LT_EOF
13915
13916  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13917  (eval $ac_compile) 2>&5
13918  ac_status=$?
13919  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13920  test $ac_status = 0; }; then
13921    # Now try to grab the symbols.
13922    nlist=conftest.nm
13923    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13924  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13925  ac_status=$?
13926  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13927  test $ac_status = 0; } && test -s "$nlist"; then
13928      # Try sorting and uniquifying the output.
13929      if sort "$nlist" | uniq > "$nlist"T; then
13930	mv -f "$nlist"T "$nlist"
13931      else
13932	rm -f "$nlist"T
13933      fi
13934
13935      # Make sure that we snagged all the symbols we need.
13936      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13937	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13938	  cat <<_LT_EOF > conftest.$ac_ext
13939/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
13940#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13941/* DATA imports from DLLs on WIN32 can't be const, because runtime
13942   relocations are performed -- see ld's documentation on pseudo-relocs.  */
13943# define LT_DLSYM_CONST
13944#elif defined __osf__
13945/* This system does not cope well with relocations in const data.  */
13946# define LT_DLSYM_CONST
13947#else
13948# define LT_DLSYM_CONST const
13949#endif
13950
13951#ifdef __cplusplus
13952extern "C" {
13953#endif
13954
13955_LT_EOF
13956	  # Now generate the symbol file.
13957	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13958
13959	  cat <<_LT_EOF >> conftest.$ac_ext
13960
13961/* The mapping between symbol names and symbols.  */
13962LT_DLSYM_CONST struct {
13963  const char *name;
13964  void       *address;
13965}
13966lt__PROGRAM__LTX_preloaded_symbols[] =
13967{
13968  { "@PROGRAM@", (void *) 0 },
13969_LT_EOF
13970	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13971	  cat <<\_LT_EOF >> conftest.$ac_ext
13972  {0, (void *) 0}
13973};
13974
13975/* This works around a problem in FreeBSD linker */
13976#ifdef FREEBSD_WORKAROUND
13977static const void *lt_preloaded_setup() {
13978  return lt__PROGRAM__LTX_preloaded_symbols;
13979}
13980#endif
13981
13982#ifdef __cplusplus
13983}
13984#endif
13985_LT_EOF
13986	  # Now try linking the two files.
13987	  mv conftest.$ac_objext conftstm.$ac_objext
13988	  lt_globsym_save_LIBS=$LIBS
13989	  lt_globsym_save_CFLAGS=$CFLAGS
13990	  LIBS=conftstm.$ac_objext
13991	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13992	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13993  (eval $ac_link) 2>&5
13994  ac_status=$?
13995  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13996  test $ac_status = 0; } && test -s conftest$ac_exeext; then
13997	    pipe_works=yes
13998	  fi
13999	  LIBS=$lt_globsym_save_LIBS
14000	  CFLAGS=$lt_globsym_save_CFLAGS
14001	else
14002	  echo "cannot find nm_test_func in $nlist" >&5
14003	fi
14004      else
14005	echo "cannot find nm_test_var in $nlist" >&5
14006      fi
14007    else
14008      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14009    fi
14010  else
14011    echo "$progname: failed program was:" >&5
14012    cat conftest.$ac_ext >&5
14013  fi
14014  rm -rf conftest* conftst*
14015
14016  # Do not use the global_symbol_pipe unless it works.
14017  if test yes = "$pipe_works"; then
14018    break
14019  else
14020    lt_cv_sys_global_symbol_pipe=
14021  fi
14022done
14023 ;;
14024esac
14025fi
14026
14027if test -z "$lt_cv_sys_global_symbol_pipe"; then
14028  lt_cv_sys_global_symbol_to_cdecl=
14029fi
14030if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14031  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14032printf "%s\n" "failed" >&6; }
14033else
14034  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14035printf "%s\n" "ok" >&6; }
14036fi
14037
14038# Response file support.
14039if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14040  nm_file_list_spec='@'
14041elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
14042  nm_file_list_spec='@'
14043fi
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
14082printf %s "checking for sysroot... " >&6; }
14083
14084# Check whether --with-sysroot was given.
14085if test ${with_sysroot+y}
14086then :
14087  withval=$with_sysroot;
14088else case e in #(
14089  e) with_sysroot=no ;;
14090esac
14091fi
14092
14093
14094lt_sysroot=
14095case $with_sysroot in #(
14096 yes)
14097   if test yes = "$GCC"; then
14098     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
14099   fi
14100   ;; #(
14101 /*)
14102   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
14103   ;; #(
14104 no|'')
14105   ;; #(
14106 *)
14107   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
14108printf "%s\n" "$with_sysroot" >&6; }
14109   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
14110   ;;
14111esac
14112
14113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
14114printf "%s\n" "${lt_sysroot:-no}" >&6; }
14115
14116
14117
14118
14119
14120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
14121printf %s "checking for a working dd... " >&6; }
14122if test ${ac_cv_path_lt_DD+y}
14123then :
14124  printf %s "(cached) " >&6
14125else case e in #(
14126  e) printf 0123456789abcdef0123456789abcdef >conftest.i
14127cat conftest.i conftest.i >conftest2.i
14128: ${lt_DD:=$DD}
14129if test -z "$lt_DD"; then
14130  ac_path_lt_DD_found=false
14131  # Loop through the user's path and test for each of PROGNAME-LIST
14132  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14133for as_dir in $PATH
14134do
14135  IFS=$as_save_IFS
14136  case $as_dir in #(((
14137    '') as_dir=./ ;;
14138    */) ;;
14139    *) as_dir=$as_dir/ ;;
14140  esac
14141    for ac_prog in dd
14142   do
14143    for ac_exec_ext in '' $ac_executable_extensions; do
14144      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
14145      as_fn_executable_p "$ac_path_lt_DD" || continue
14146if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14147  cmp -s conftest.i conftest.out \
14148  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
14149fi
14150      $ac_path_lt_DD_found && break 3
14151    done
14152  done
14153  done
14154IFS=$as_save_IFS
14155  if test -z "$ac_cv_path_lt_DD"; then
14156    :
14157  fi
14158else
14159  ac_cv_path_lt_DD=$lt_DD
14160fi
14161
14162rm -f conftest.i conftest2.i conftest.out ;;
14163esac
14164fi
14165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
14166printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
14167
14168
14169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
14170printf %s "checking how to truncate binary pipes... " >&6; }
14171if test ${lt_cv_truncate_bin+y}
14172then :
14173  printf %s "(cached) " >&6
14174else case e in #(
14175  e) printf 0123456789abcdef0123456789abcdef >conftest.i
14176cat conftest.i conftest.i >conftest2.i
14177lt_cv_truncate_bin=
14178if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14179  cmp -s conftest.i conftest.out \
14180  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
14181fi
14182rm -f conftest.i conftest2.i conftest.out
14183test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
14184esac
14185fi
14186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
14187printf "%s\n" "$lt_cv_truncate_bin" >&6; }
14188
14189
14190
14191
14192
14193
14194
14195# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
14196func_cc_basename ()
14197{
14198    for cc_temp in $*""; do
14199      case $cc_temp in
14200        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14201        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14202        \-*) ;;
14203        *) break;;
14204      esac
14205    done
14206    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14207}
14208
14209# Check whether --enable-libtool-lock was given.
14210if test ${enable_libtool_lock+y}
14211then :
14212  enableval=$enable_libtool_lock;
14213fi
14214
14215test no = "$enable_libtool_lock" || enable_libtool_lock=yes
14216
14217# Some flags need to be propagated to the compiler or linker for good
14218# libtool support.
14219case $host in
14220ia64-*-hpux*)
14221  # Find out what ABI is being produced by ac_compile, and set mode
14222  # options accordingly.
14223  echo 'int i;' > conftest.$ac_ext
14224  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14225  (eval $ac_compile) 2>&5
14226  ac_status=$?
14227  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14228  test $ac_status = 0; }; then
14229    case `$FILECMD conftest.$ac_objext` in
14230      *ELF-32*)
14231	HPUX_IA64_MODE=32
14232	;;
14233      *ELF-64*)
14234	HPUX_IA64_MODE=64
14235	;;
14236    esac
14237  fi
14238  rm -rf conftest*
14239  ;;
14240*-*-irix6*)
14241  # Find out what ABI is being produced by ac_compile, and set linker
14242  # options accordingly.
14243  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14244  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14245  (eval $ac_compile) 2>&5
14246  ac_status=$?
14247  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14248  test $ac_status = 0; }; then
14249    if test yes = "$lt_cv_prog_gnu_ld"; then
14250      case `$FILECMD conftest.$ac_objext` in
14251	*32-bit*)
14252	  LD="${LD-ld} -melf32bsmip"
14253	  ;;
14254	*N32*)
14255	  LD="${LD-ld} -melf32bmipn32"
14256	  ;;
14257	*64-bit*)
14258	  LD="${LD-ld} -melf64bmip"
14259	;;
14260      esac
14261    else
14262      case `$FILECMD conftest.$ac_objext` in
14263	*32-bit*)
14264	  LD="${LD-ld} -32"
14265	  ;;
14266	*N32*)
14267	  LD="${LD-ld} -n32"
14268	  ;;
14269	*64-bit*)
14270	  LD="${LD-ld} -64"
14271	  ;;
14272      esac
14273    fi
14274  fi
14275  rm -rf conftest*
14276  ;;
14277
14278mips64*-*linux*)
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    emul=elf
14288    case `$FILECMD conftest.$ac_objext` in
14289      *32-bit*)
14290	emul="${emul}32"
14291	;;
14292      *64-bit*)
14293	emul="${emul}64"
14294	;;
14295    esac
14296    case `$FILECMD conftest.$ac_objext` in
14297      *MSB*)
14298	emul="${emul}btsmip"
14299	;;
14300      *LSB*)
14301	emul="${emul}ltsmip"
14302	;;
14303    esac
14304    case `$FILECMD conftest.$ac_objext` in
14305      *N32*)
14306	emul="${emul}n32"
14307	;;
14308    esac
14309    LD="${LD-ld} -m $emul"
14310  fi
14311  rm -rf conftest*
14312  ;;
14313
14314x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14315s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14316  # Find out what ABI is being produced by ac_compile, and set linker
14317  # options accordingly.  Note that the listed cases only cover the
14318  # situations where additional linker options are needed (such as when
14319  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
14320  # vice versa); the common cases where no linker options are needed do
14321  # not appear in the list.
14322  echo 'int i;' > conftest.$ac_ext
14323  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14324  (eval $ac_compile) 2>&5
14325  ac_status=$?
14326  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14327  test $ac_status = 0; }; then
14328    case `$FILECMD conftest.o` in
14329      *32-bit*)
14330	case $host in
14331	  x86_64-*kfreebsd*-gnu)
14332	    LD="${LD-ld} -m elf_i386_fbsd"
14333	    ;;
14334	  x86_64-*linux*)
14335	    case `$FILECMD conftest.o` in
14336	      *x86-64*)
14337		LD="${LD-ld} -m elf32_x86_64"
14338		;;
14339	      *)
14340		LD="${LD-ld} -m elf_i386"
14341		;;
14342	    esac
14343	    ;;
14344	  powerpc64le-*linux*)
14345	    LD="${LD-ld} -m elf32lppclinux"
14346	    ;;
14347	  powerpc64-*linux*)
14348	    LD="${LD-ld} -m elf32ppclinux"
14349	    ;;
14350	  s390x-*linux*)
14351	    LD="${LD-ld} -m elf_s390"
14352	    ;;
14353	  sparc64-*linux*)
14354	    LD="${LD-ld} -m elf32_sparc"
14355	    ;;
14356	esac
14357	;;
14358      *64-bit*)
14359	case $host in
14360	  x86_64-*kfreebsd*-gnu)
14361	    LD="${LD-ld} -m elf_x86_64_fbsd"
14362	    ;;
14363	  x86_64-*linux*)
14364	    LD="${LD-ld} -m elf_x86_64"
14365	    ;;
14366	  powerpcle-*linux*)
14367	    LD="${LD-ld} -m elf64lppc"
14368	    ;;
14369	  powerpc-*linux*)
14370	    LD="${LD-ld} -m elf64ppc"
14371	    ;;
14372	  s390*-*linux*|s390*-*tpf*)
14373	    LD="${LD-ld} -m elf64_s390"
14374	    ;;
14375	  sparc*-*linux*)
14376	    LD="${LD-ld} -m elf64_sparc"
14377	    ;;
14378	esac
14379	;;
14380    esac
14381  fi
14382  rm -rf conftest*
14383  ;;
14384
14385*-*-sco3.2v5*)
14386  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14387  SAVE_CFLAGS=$CFLAGS
14388  CFLAGS="$CFLAGS -belf"
14389  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14390printf %s "checking whether the C compiler needs -belf... " >&6; }
14391if test ${lt_cv_cc_needs_belf+y}
14392then :
14393  printf %s "(cached) " >&6
14394else case e in #(
14395  e) ac_ext=c
14396ac_cpp='$CPP $CPPFLAGS'
14397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14399ac_compiler_gnu=$ac_cv_c_compiler_gnu
14400
14401     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14402/* end confdefs.h.  */
14403
14404int
14405main (void)
14406{
14407
14408  ;
14409  return 0;
14410}
14411_ACEOF
14412if ac_fn_c_try_link "$LINENO"
14413then :
14414  lt_cv_cc_needs_belf=yes
14415else case e in #(
14416  e) lt_cv_cc_needs_belf=no ;;
14417esac
14418fi
14419rm -f core conftest.err conftest.$ac_objext conftest.beam \
14420    conftest$ac_exeext conftest.$ac_ext
14421     ac_ext=c
14422ac_cpp='$CPP $CPPFLAGS'
14423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14425ac_compiler_gnu=$ac_cv_c_compiler_gnu
14426 ;;
14427esac
14428fi
14429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14430printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14431  if test yes != "$lt_cv_cc_needs_belf"; then
14432    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14433    CFLAGS=$SAVE_CFLAGS
14434  fi
14435  ;;
14436*-*solaris*)
14437  # Find out what ABI is being produced by ac_compile, and set linker
14438  # options accordingly.
14439  echo 'int i;' > conftest.$ac_ext
14440  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14441  (eval $ac_compile) 2>&5
14442  ac_status=$?
14443  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14444  test $ac_status = 0; }; then
14445    case `$FILECMD conftest.o` in
14446    *64-bit*)
14447      case $lt_cv_prog_gnu_ld in
14448      yes*)
14449        case $host in
14450        i?86-*-solaris*|x86_64-*-solaris*)
14451          LD="${LD-ld} -m elf_x86_64"
14452          ;;
14453        sparc*-*-solaris*)
14454          LD="${LD-ld} -m elf64_sparc"
14455          ;;
14456        esac
14457        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
14458        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14459          LD=${LD-ld}_sol2
14460        fi
14461        ;;
14462      *)
14463	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14464	  LD="${LD-ld} -64"
14465	fi
14466	;;
14467      esac
14468      ;;
14469    esac
14470  fi
14471  rm -rf conftest*
14472  ;;
14473esac
14474
14475need_locks=$enable_libtool_lock
14476
14477if test -n "$ac_tool_prefix"; then
14478  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14479set dummy ${ac_tool_prefix}mt; ac_word=$2
14480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14481printf %s "checking for $ac_word... " >&6; }
14482if test ${ac_cv_prog_MANIFEST_TOOL+y}
14483then :
14484  printf %s "(cached) " >&6
14485else case e in #(
14486  e) if test -n "$MANIFEST_TOOL"; then
14487  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14488else
14489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14490for as_dir in $PATH
14491do
14492  IFS=$as_save_IFS
14493  case $as_dir in #(((
14494    '') as_dir=./ ;;
14495    */) ;;
14496    *) as_dir=$as_dir/ ;;
14497  esac
14498    for ac_exec_ext in '' $ac_executable_extensions; do
14499  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14500    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14501    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14502    break 2
14503  fi
14504done
14505  done
14506IFS=$as_save_IFS
14507
14508fi ;;
14509esac
14510fi
14511MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14512if test -n "$MANIFEST_TOOL"; then
14513  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14514printf "%s\n" "$MANIFEST_TOOL" >&6; }
14515else
14516  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14517printf "%s\n" "no" >&6; }
14518fi
14519
14520
14521fi
14522if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14523  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14524  # Extract the first word of "mt", so it can be a program name with args.
14525set dummy mt; ac_word=$2
14526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14527printf %s "checking for $ac_word... " >&6; }
14528if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14529then :
14530  printf %s "(cached) " >&6
14531else case e in #(
14532  e) if test -n "$ac_ct_MANIFEST_TOOL"; then
14533  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14534else
14535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14536for as_dir in $PATH
14537do
14538  IFS=$as_save_IFS
14539  case $as_dir in #(((
14540    '') as_dir=./ ;;
14541    */) ;;
14542    *) as_dir=$as_dir/ ;;
14543  esac
14544    for ac_exec_ext in '' $ac_executable_extensions; do
14545  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14546    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14547    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14548    break 2
14549  fi
14550done
14551  done
14552IFS=$as_save_IFS
14553
14554fi ;;
14555esac
14556fi
14557ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14558if test -n "$ac_ct_MANIFEST_TOOL"; then
14559  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14560printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14561else
14562  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14563printf "%s\n" "no" >&6; }
14564fi
14565
14566  if test "x$ac_ct_MANIFEST_TOOL" = x; then
14567    MANIFEST_TOOL=":"
14568  else
14569    case $cross_compiling:$ac_tool_warned in
14570yes:)
14571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14572printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14573ac_tool_warned=yes ;;
14574esac
14575    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14576  fi
14577else
14578  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14579fi
14580
14581test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14583printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14584if test ${lt_cv_path_mainfest_tool+y}
14585then :
14586  printf %s "(cached) " >&6
14587else case e in #(
14588  e) lt_cv_path_mainfest_tool=no
14589  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14590  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14591  cat conftest.err >&5
14592  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14593    lt_cv_path_mainfest_tool=yes
14594  fi
14595  rm -f conftest* ;;
14596esac
14597fi
14598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14599printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
14600if test yes != "$lt_cv_path_mainfest_tool"; then
14601  MANIFEST_TOOL=:
14602fi
14603
14604
14605
14606
14607
14608
14609  case $host_os in
14610    rhapsody* | darwin*)
14611    if test -n "$ac_tool_prefix"; then
14612  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14613set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14615printf %s "checking for $ac_word... " >&6; }
14616if test ${ac_cv_prog_DSYMUTIL+y}
14617then :
14618  printf %s "(cached) " >&6
14619else case e in #(
14620  e) if test -n "$DSYMUTIL"; then
14621  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14622else
14623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14624for as_dir in $PATH
14625do
14626  IFS=$as_save_IFS
14627  case $as_dir in #(((
14628    '') as_dir=./ ;;
14629    */) ;;
14630    *) as_dir=$as_dir/ ;;
14631  esac
14632    for ac_exec_ext in '' $ac_executable_extensions; do
14633  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14634    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14635    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14636    break 2
14637  fi
14638done
14639  done
14640IFS=$as_save_IFS
14641
14642fi ;;
14643esac
14644fi
14645DSYMUTIL=$ac_cv_prog_DSYMUTIL
14646if test -n "$DSYMUTIL"; then
14647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14648printf "%s\n" "$DSYMUTIL" >&6; }
14649else
14650  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14651printf "%s\n" "no" >&6; }
14652fi
14653
14654
14655fi
14656if test -z "$ac_cv_prog_DSYMUTIL"; then
14657  ac_ct_DSYMUTIL=$DSYMUTIL
14658  # Extract the first word of "dsymutil", so it can be a program name with args.
14659set dummy dsymutil; ac_word=$2
14660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14661printf %s "checking for $ac_word... " >&6; }
14662if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
14663then :
14664  printf %s "(cached) " >&6
14665else case e in #(
14666  e) if test -n "$ac_ct_DSYMUTIL"; then
14667  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14668else
14669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14670for as_dir in $PATH
14671do
14672  IFS=$as_save_IFS
14673  case $as_dir in #(((
14674    '') as_dir=./ ;;
14675    */) ;;
14676    *) as_dir=$as_dir/ ;;
14677  esac
14678    for ac_exec_ext in '' $ac_executable_extensions; do
14679  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14680    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14681    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14682    break 2
14683  fi
14684done
14685  done
14686IFS=$as_save_IFS
14687
14688fi ;;
14689esac
14690fi
14691ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14692if test -n "$ac_ct_DSYMUTIL"; then
14693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14694printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14695else
14696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14697printf "%s\n" "no" >&6; }
14698fi
14699
14700  if test "x$ac_ct_DSYMUTIL" = x; then
14701    DSYMUTIL=":"
14702  else
14703    case $cross_compiling:$ac_tool_warned in
14704yes:)
14705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14706printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14707ac_tool_warned=yes ;;
14708esac
14709    DSYMUTIL=$ac_ct_DSYMUTIL
14710  fi
14711else
14712  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14713fi
14714
14715    if test -n "$ac_tool_prefix"; then
14716  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14717set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14719printf %s "checking for $ac_word... " >&6; }
14720if test ${ac_cv_prog_NMEDIT+y}
14721then :
14722  printf %s "(cached) " >&6
14723else case e in #(
14724  e) if test -n "$NMEDIT"; then
14725  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14726else
14727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14728for as_dir in $PATH
14729do
14730  IFS=$as_save_IFS
14731  case $as_dir in #(((
14732    '') as_dir=./ ;;
14733    */) ;;
14734    *) as_dir=$as_dir/ ;;
14735  esac
14736    for ac_exec_ext in '' $ac_executable_extensions; do
14737  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14738    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14739    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14740    break 2
14741  fi
14742done
14743  done
14744IFS=$as_save_IFS
14745
14746fi ;;
14747esac
14748fi
14749NMEDIT=$ac_cv_prog_NMEDIT
14750if test -n "$NMEDIT"; then
14751  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14752printf "%s\n" "$NMEDIT" >&6; }
14753else
14754  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14755printf "%s\n" "no" >&6; }
14756fi
14757
14758
14759fi
14760if test -z "$ac_cv_prog_NMEDIT"; then
14761  ac_ct_NMEDIT=$NMEDIT
14762  # Extract the first word of "nmedit", so it can be a program name with args.
14763set dummy nmedit; ac_word=$2
14764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14765printf %s "checking for $ac_word... " >&6; }
14766if test ${ac_cv_prog_ac_ct_NMEDIT+y}
14767then :
14768  printf %s "(cached) " >&6
14769else case e in #(
14770  e) if test -n "$ac_ct_NMEDIT"; then
14771  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14772else
14773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14774for as_dir in $PATH
14775do
14776  IFS=$as_save_IFS
14777  case $as_dir in #(((
14778    '') as_dir=./ ;;
14779    */) ;;
14780    *) as_dir=$as_dir/ ;;
14781  esac
14782    for ac_exec_ext in '' $ac_executable_extensions; do
14783  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14784    ac_cv_prog_ac_ct_NMEDIT="nmedit"
14785    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14786    break 2
14787  fi
14788done
14789  done
14790IFS=$as_save_IFS
14791
14792fi ;;
14793esac
14794fi
14795ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14796if test -n "$ac_ct_NMEDIT"; then
14797  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14798printf "%s\n" "$ac_ct_NMEDIT" >&6; }
14799else
14800  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14801printf "%s\n" "no" >&6; }
14802fi
14803
14804  if test "x$ac_ct_NMEDIT" = x; then
14805    NMEDIT=":"
14806  else
14807    case $cross_compiling:$ac_tool_warned in
14808yes:)
14809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14810printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14811ac_tool_warned=yes ;;
14812esac
14813    NMEDIT=$ac_ct_NMEDIT
14814  fi
14815else
14816  NMEDIT="$ac_cv_prog_NMEDIT"
14817fi
14818
14819    if test -n "$ac_tool_prefix"; then
14820  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14821set dummy ${ac_tool_prefix}lipo; ac_word=$2
14822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14823printf %s "checking for $ac_word... " >&6; }
14824if test ${ac_cv_prog_LIPO+y}
14825then :
14826  printf %s "(cached) " >&6
14827else case e in #(
14828  e) if test -n "$LIPO"; then
14829  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14830else
14831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14832for as_dir in $PATH
14833do
14834  IFS=$as_save_IFS
14835  case $as_dir in #(((
14836    '') as_dir=./ ;;
14837    */) ;;
14838    *) as_dir=$as_dir/ ;;
14839  esac
14840    for ac_exec_ext in '' $ac_executable_extensions; do
14841  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14842    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14843    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14844    break 2
14845  fi
14846done
14847  done
14848IFS=$as_save_IFS
14849
14850fi ;;
14851esac
14852fi
14853LIPO=$ac_cv_prog_LIPO
14854if test -n "$LIPO"; then
14855  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14856printf "%s\n" "$LIPO" >&6; }
14857else
14858  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14859printf "%s\n" "no" >&6; }
14860fi
14861
14862
14863fi
14864if test -z "$ac_cv_prog_LIPO"; then
14865  ac_ct_LIPO=$LIPO
14866  # Extract the first word of "lipo", so it can be a program name with args.
14867set dummy lipo; ac_word=$2
14868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14869printf %s "checking for $ac_word... " >&6; }
14870if test ${ac_cv_prog_ac_ct_LIPO+y}
14871then :
14872  printf %s "(cached) " >&6
14873else case e in #(
14874  e) if test -n "$ac_ct_LIPO"; then
14875  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14876else
14877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14878for as_dir in $PATH
14879do
14880  IFS=$as_save_IFS
14881  case $as_dir in #(((
14882    '') as_dir=./ ;;
14883    */) ;;
14884    *) as_dir=$as_dir/ ;;
14885  esac
14886    for ac_exec_ext in '' $ac_executable_extensions; do
14887  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14888    ac_cv_prog_ac_ct_LIPO="lipo"
14889    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14890    break 2
14891  fi
14892done
14893  done
14894IFS=$as_save_IFS
14895
14896fi ;;
14897esac
14898fi
14899ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14900if test -n "$ac_ct_LIPO"; then
14901  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14902printf "%s\n" "$ac_ct_LIPO" >&6; }
14903else
14904  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14905printf "%s\n" "no" >&6; }
14906fi
14907
14908  if test "x$ac_ct_LIPO" = x; then
14909    LIPO=":"
14910  else
14911    case $cross_compiling:$ac_tool_warned in
14912yes:)
14913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14914printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14915ac_tool_warned=yes ;;
14916esac
14917    LIPO=$ac_ct_LIPO
14918  fi
14919else
14920  LIPO="$ac_cv_prog_LIPO"
14921fi
14922
14923    if test -n "$ac_tool_prefix"; then
14924  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14925set dummy ${ac_tool_prefix}otool; ac_word=$2
14926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14927printf %s "checking for $ac_word... " >&6; }
14928if test ${ac_cv_prog_OTOOL+y}
14929then :
14930  printf %s "(cached) " >&6
14931else case e in #(
14932  e) if test -n "$OTOOL"; then
14933  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14934else
14935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14936for as_dir in $PATH
14937do
14938  IFS=$as_save_IFS
14939  case $as_dir in #(((
14940    '') as_dir=./ ;;
14941    */) ;;
14942    *) as_dir=$as_dir/ ;;
14943  esac
14944    for ac_exec_ext in '' $ac_executable_extensions; do
14945  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14946    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14947    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14948    break 2
14949  fi
14950done
14951  done
14952IFS=$as_save_IFS
14953
14954fi ;;
14955esac
14956fi
14957OTOOL=$ac_cv_prog_OTOOL
14958if test -n "$OTOOL"; then
14959  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14960printf "%s\n" "$OTOOL" >&6; }
14961else
14962  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14963printf "%s\n" "no" >&6; }
14964fi
14965
14966
14967fi
14968if test -z "$ac_cv_prog_OTOOL"; then
14969  ac_ct_OTOOL=$OTOOL
14970  # Extract the first word of "otool", so it can be a program name with args.
14971set dummy otool; ac_word=$2
14972{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14973printf %s "checking for $ac_word... " >&6; }
14974if test ${ac_cv_prog_ac_ct_OTOOL+y}
14975then :
14976  printf %s "(cached) " >&6
14977else case e in #(
14978  e) if test -n "$ac_ct_OTOOL"; then
14979  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14980else
14981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14982for as_dir in $PATH
14983do
14984  IFS=$as_save_IFS
14985  case $as_dir in #(((
14986    '') as_dir=./ ;;
14987    */) ;;
14988    *) as_dir=$as_dir/ ;;
14989  esac
14990    for ac_exec_ext in '' $ac_executable_extensions; do
14991  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14992    ac_cv_prog_ac_ct_OTOOL="otool"
14993    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14994    break 2
14995  fi
14996done
14997  done
14998IFS=$as_save_IFS
14999
15000fi ;;
15001esac
15002fi
15003ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15004if test -n "$ac_ct_OTOOL"; then
15005  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15006printf "%s\n" "$ac_ct_OTOOL" >&6; }
15007else
15008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15009printf "%s\n" "no" >&6; }
15010fi
15011
15012  if test "x$ac_ct_OTOOL" = x; then
15013    OTOOL=":"
15014  else
15015    case $cross_compiling:$ac_tool_warned in
15016yes:)
15017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15018printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15019ac_tool_warned=yes ;;
15020esac
15021    OTOOL=$ac_ct_OTOOL
15022  fi
15023else
15024  OTOOL="$ac_cv_prog_OTOOL"
15025fi
15026
15027    if test -n "$ac_tool_prefix"; then
15028  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15029set dummy ${ac_tool_prefix}otool64; ac_word=$2
15030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15031printf %s "checking for $ac_word... " >&6; }
15032if test ${ac_cv_prog_OTOOL64+y}
15033then :
15034  printf %s "(cached) " >&6
15035else case e in #(
15036  e) if test -n "$OTOOL64"; then
15037  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15038else
15039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15040for as_dir in $PATH
15041do
15042  IFS=$as_save_IFS
15043  case $as_dir in #(((
15044    '') as_dir=./ ;;
15045    */) ;;
15046    *) as_dir=$as_dir/ ;;
15047  esac
15048    for ac_exec_ext in '' $ac_executable_extensions; do
15049  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15050    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15051    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15052    break 2
15053  fi
15054done
15055  done
15056IFS=$as_save_IFS
15057
15058fi ;;
15059esac
15060fi
15061OTOOL64=$ac_cv_prog_OTOOL64
15062if test -n "$OTOOL64"; then
15063  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15064printf "%s\n" "$OTOOL64" >&6; }
15065else
15066  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15067printf "%s\n" "no" >&6; }
15068fi
15069
15070
15071fi
15072if test -z "$ac_cv_prog_OTOOL64"; then
15073  ac_ct_OTOOL64=$OTOOL64
15074  # Extract the first word of "otool64", so it can be a program name with args.
15075set dummy otool64; ac_word=$2
15076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15077printf %s "checking for $ac_word... " >&6; }
15078if test ${ac_cv_prog_ac_ct_OTOOL64+y}
15079then :
15080  printf %s "(cached) " >&6
15081else case e in #(
15082  e) if test -n "$ac_ct_OTOOL64"; then
15083  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15084else
15085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15086for as_dir in $PATH
15087do
15088  IFS=$as_save_IFS
15089  case $as_dir in #(((
15090    '') as_dir=./ ;;
15091    */) ;;
15092    *) as_dir=$as_dir/ ;;
15093  esac
15094    for ac_exec_ext in '' $ac_executable_extensions; do
15095  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15096    ac_cv_prog_ac_ct_OTOOL64="otool64"
15097    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15098    break 2
15099  fi
15100done
15101  done
15102IFS=$as_save_IFS
15103
15104fi ;;
15105esac
15106fi
15107ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15108if test -n "$ac_ct_OTOOL64"; then
15109  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15110printf "%s\n" "$ac_ct_OTOOL64" >&6; }
15111else
15112  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15113printf "%s\n" "no" >&6; }
15114fi
15115
15116  if test "x$ac_ct_OTOOL64" = x; then
15117    OTOOL64=":"
15118  else
15119    case $cross_compiling:$ac_tool_warned in
15120yes:)
15121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15122printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15123ac_tool_warned=yes ;;
15124esac
15125    OTOOL64=$ac_ct_OTOOL64
15126  fi
15127else
15128  OTOOL64="$ac_cv_prog_OTOOL64"
15129fi
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15158printf %s "checking for -single_module linker flag... " >&6; }
15159if test ${lt_cv_apple_cc_single_mod+y}
15160then :
15161  printf %s "(cached) " >&6
15162else case e in #(
15163  e) lt_cv_apple_cc_single_mod=no
15164      if test -z "$LT_MULTI_MODULE"; then
15165	# By default we will add the -single_module flag. You can override
15166	# by either setting the environment variable LT_MULTI_MODULE
15167	# non-empty at configure time, or by adding -multi_module to the
15168	# link flags.
15169	rm -rf libconftest.dylib*
15170	echo "int foo(void){return 1;}" > conftest.c
15171	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15172-dynamiclib -Wl,-single_module conftest.c" >&5
15173	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15174	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15175        _lt_result=$?
15176	# If there is a non-empty error log, and "single_module"
15177	# appears in it, assume the flag caused a linker warning
15178        if test -s conftest.err && $GREP single_module conftest.err; then
15179	  cat conftest.err >&5
15180	# Otherwise, if the output was created with a 0 exit code from
15181	# the compiler, it worked.
15182	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
15183	  lt_cv_apple_cc_single_mod=yes
15184	else
15185	  cat conftest.err >&5
15186	fi
15187	rm -rf libconftest.dylib*
15188	rm -f conftest.*
15189      fi ;;
15190esac
15191fi
15192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15193printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
15194
15195    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15196printf %s "checking for -exported_symbols_list linker flag... " >&6; }
15197if test ${lt_cv_ld_exported_symbols_list+y}
15198then :
15199  printf %s "(cached) " >&6
15200else case e in #(
15201  e) lt_cv_ld_exported_symbols_list=no
15202      save_LDFLAGS=$LDFLAGS
15203      echo "_main" > conftest.sym
15204      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15205      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15206/* end confdefs.h.  */
15207
15208int
15209main (void)
15210{
15211
15212  ;
15213  return 0;
15214}
15215_ACEOF
15216if ac_fn_c_try_link "$LINENO"
15217then :
15218  lt_cv_ld_exported_symbols_list=yes
15219else case e in #(
15220  e) lt_cv_ld_exported_symbols_list=no ;;
15221esac
15222fi
15223rm -f core conftest.err conftest.$ac_objext conftest.beam \
15224    conftest$ac_exeext conftest.$ac_ext
15225	LDFLAGS=$save_LDFLAGS
15226     ;;
15227esac
15228fi
15229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15230printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
15231
15232    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15233printf %s "checking for -force_load linker flag... " >&6; }
15234if test ${lt_cv_ld_force_load+y}
15235then :
15236  printf %s "(cached) " >&6
15237else case e in #(
15238  e) lt_cv_ld_force_load=no
15239      cat > conftest.c << _LT_EOF
15240int forced_loaded() { return 2;}
15241_LT_EOF
15242      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15243      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15244      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
15245      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
15246      echo "$RANLIB libconftest.a" >&5
15247      $RANLIB libconftest.a 2>&5
15248      cat > conftest.c << _LT_EOF
15249int main() { return 0;}
15250_LT_EOF
15251      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15252      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15253      _lt_result=$?
15254      if test -s conftest.err && $GREP force_load conftest.err; then
15255	cat conftest.err >&5
15256      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
15257	lt_cv_ld_force_load=yes
15258      else
15259	cat conftest.err >&5
15260      fi
15261        rm -f conftest.err libconftest.a conftest conftest.c
15262        rm -rf conftest.dSYM
15263     ;;
15264esac
15265fi
15266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15267printf "%s\n" "$lt_cv_ld_force_load" >&6; }
15268    case $host_os in
15269    rhapsody* | darwin1.[012])
15270      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
15271    darwin1.*)
15272      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15273    darwin*)
15274      case $MACOSX_DEPLOYMENT_TARGET,$host in
15275        10.[012],*|,*powerpc*-darwin[5-8]*)
15276          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15277        *)
15278          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
15279      esac
15280    ;;
15281  esac
15282    if test yes = "$lt_cv_apple_cc_single_mod"; then
15283      _lt_dar_single_mod='$single_module'
15284    fi
15285    if test yes = "$lt_cv_ld_exported_symbols_list"; then
15286      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
15287    else
15288      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
15289    fi
15290    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
15291      _lt_dsymutil='~$DSYMUTIL $lib || :'
15292    else
15293      _lt_dsymutil=
15294    fi
15295    ;;
15296  esac
15297
15298# func_munge_path_list VARIABLE PATH
15299# -----------------------------------
15300# VARIABLE is name of variable containing _space_ separated list of
15301# directories to be munged by the contents of PATH, which is string
15302# having a format:
15303# "DIR[:DIR]:"
15304#       string "DIR[ DIR]" will be prepended to VARIABLE
15305# ":DIR[:DIR]"
15306#       string "DIR[ DIR]" will be appended to VARIABLE
15307# "DIRP[:DIRP]::[DIRA:]DIRA"
15308#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15309#       "DIRA[ DIRA]" will be appended to VARIABLE
15310# "DIR[:DIR]"
15311#       VARIABLE will be replaced by "DIR[ DIR]"
15312func_munge_path_list ()
15313{
15314    case x$2 in
15315    x)
15316        ;;
15317    *:)
15318        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15319        ;;
15320    x:*)
15321        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15322        ;;
15323    *::*)
15324        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15325        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15326        ;;
15327    *)
15328        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15329        ;;
15330    esac
15331}
15332
15333ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15334"
15335if test "x$ac_cv_header_dlfcn_h" = xyes
15336then :
15337  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
15338
15339fi
15340
15341
15342
15343
15344
15345# Set options
15346# Check whether --enable-static was given.
15347if test ${enable_static+y}
15348then :
15349  enableval=$enable_static; p=${PACKAGE-default}
15350    case $enableval in
15351    yes) enable_static=yes ;;
15352    no) enable_static=no ;;
15353    *)
15354     enable_static=no
15355      # Look at the argument we got.  We use all the common list separators.
15356      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15357      for pkg in $enableval; do
15358	IFS=$lt_save_ifs
15359	if test "X$pkg" = "X$p"; then
15360	  enable_static=yes
15361	fi
15362      done
15363      IFS=$lt_save_ifs
15364      ;;
15365    esac
15366else case e in #(
15367  e) enable_static=no ;;
15368esac
15369fi
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380        enable_dlopen=no
15381
15382
15383  enable_win32_dll=no
15384
15385
15386            # Check whether --enable-shared was given.
15387if test ${enable_shared+y}
15388then :
15389  enableval=$enable_shared; p=${PACKAGE-default}
15390    case $enableval in
15391    yes) enable_shared=yes ;;
15392    no) enable_shared=no ;;
15393    *)
15394      enable_shared=no
15395      # Look at the argument we got.  We use all the common list separators.
15396      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15397      for pkg in $enableval; do
15398	IFS=$lt_save_ifs
15399	if test "X$pkg" = "X$p"; then
15400	  enable_shared=yes
15401	fi
15402      done
15403      IFS=$lt_save_ifs
15404      ;;
15405    esac
15406else case e in #(
15407  e) enable_shared=yes ;;
15408esac
15409fi
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421# Check whether --with-pic was given.
15422if test ${with_pic+y}
15423then :
15424  withval=$with_pic; lt_p=${PACKAGE-default}
15425    case $withval in
15426    yes|no) pic_mode=$withval ;;
15427    *)
15428      pic_mode=default
15429      # Look at the argument we got.  We use all the common list separators.
15430      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15431      for lt_pkg in $withval; do
15432	IFS=$lt_save_ifs
15433	if test "X$lt_pkg" = "X$lt_p"; then
15434	  pic_mode=yes
15435	fi
15436      done
15437      IFS=$lt_save_ifs
15438      ;;
15439    esac
15440else case e in #(
15441  e) pic_mode=default ;;
15442esac
15443fi
15444
15445
15446
15447
15448
15449
15450
15451
15452  # Check whether --enable-fast-install was given.
15453if test ${enable_fast_install+y}
15454then :
15455  enableval=$enable_fast_install; p=${PACKAGE-default}
15456    case $enableval in
15457    yes) enable_fast_install=yes ;;
15458    no) enable_fast_install=no ;;
15459    *)
15460      enable_fast_install=no
15461      # Look at the argument we got.  We use all the common list separators.
15462      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15463      for pkg in $enableval; do
15464	IFS=$lt_save_ifs
15465	if test "X$pkg" = "X$p"; then
15466	  enable_fast_install=yes
15467	fi
15468      done
15469      IFS=$lt_save_ifs
15470      ;;
15471    esac
15472else case e in #(
15473  e) enable_fast_install=yes ;;
15474esac
15475fi
15476
15477
15478
15479
15480
15481
15482
15483
15484  shared_archive_member_spec=
15485case $host,$enable_shared in
15486power*-*-aix[5-9]*,yes)
15487  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15488printf %s "checking which variant of shared library versioning to provide... " >&6; }
15489
15490# Check whether --with-aix-soname was given.
15491if test ${with_aix_soname+y}
15492then :
15493  withval=$with_aix_soname; case $withval in
15494    aix|svr4|both)
15495      ;;
15496    *)
15497      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15498      ;;
15499    esac
15500    lt_cv_with_aix_soname=$with_aix_soname
15501else case e in #(
15502  e) if test ${lt_cv_with_aix_soname+y}
15503then :
15504  printf %s "(cached) " >&6
15505else case e in #(
15506  e) lt_cv_with_aix_soname=aix ;;
15507esac
15508fi
15509
15510    with_aix_soname=$lt_cv_with_aix_soname ;;
15511esac
15512fi
15513
15514  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15515printf "%s\n" "$with_aix_soname" >&6; }
15516  if test aix != "$with_aix_soname"; then
15517    # For the AIX way of multilib, we name the shared archive member
15518    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15519    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15520    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15521    # the AIX toolchain works better with OBJECT_MODE set (default 32).
15522    if test 64 = "${OBJECT_MODE-32}"; then
15523      shared_archive_member_spec=shr_64
15524    else
15525      shared_archive_member_spec=shr
15526    fi
15527  fi
15528  ;;
15529*)
15530  with_aix_soname=aix
15531  ;;
15532esac
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543# This can be used to rebuild libtool when needed
15544LIBTOOL_DEPS=$ltmain
15545
15546# Always use our own libtool.
15547LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578test -z "$LN_S" && LN_S="ln -s"
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593if test -n "${ZSH_VERSION+set}"; then
15594   setopt NO_GLOB_SUBST
15595fi
15596
15597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15598printf %s "checking for objdir... " >&6; }
15599if test ${lt_cv_objdir+y}
15600then :
15601  printf %s "(cached) " >&6
15602else case e in #(
15603  e) rm -f .libs 2>/dev/null
15604mkdir .libs 2>/dev/null
15605if test -d .libs; then
15606  lt_cv_objdir=.libs
15607else
15608  # MS-DOS does not allow filenames that begin with a dot.
15609  lt_cv_objdir=_libs
15610fi
15611rmdir .libs 2>/dev/null ;;
15612esac
15613fi
15614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15615printf "%s\n" "$lt_cv_objdir" >&6; }
15616objdir=$lt_cv_objdir
15617
15618
15619
15620
15621
15622printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
15623
15624
15625
15626
15627case $host_os in
15628aix3*)
15629  # AIX sometimes has problems with the GCC collect2 program.  For some
15630  # reason, if we set the COLLECT_NAMES environment variable, the problems
15631  # vanish in a puff of smoke.
15632  if test set != "${COLLECT_NAMES+set}"; then
15633    COLLECT_NAMES=
15634    export COLLECT_NAMES
15635  fi
15636  ;;
15637esac
15638
15639# Global variables:
15640ofile=libtool
15641can_build_shared=yes
15642
15643# All known linkers require a '.a' archive for static linking (except MSVC and
15644# ICC, which need '.lib').
15645libext=a
15646
15647with_gnu_ld=$lt_cv_prog_gnu_ld
15648
15649old_CC=$CC
15650old_CFLAGS=$CFLAGS
15651
15652# Set sane defaults for various variables
15653test -z "$CC" && CC=cc
15654test -z "$LTCC" && LTCC=$CC
15655test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15656test -z "$LD" && LD=ld
15657test -z "$ac_objext" && ac_objext=o
15658
15659func_cc_basename $compiler
15660cc_basename=$func_cc_basename_result
15661
15662
15663# Only perform the check for file, if the check method requires it
15664test -z "$MAGIC_CMD" && MAGIC_CMD=file
15665case $deplibs_check_method in
15666file_magic*)
15667  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15668    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15669printf %s "checking for ${ac_tool_prefix}file... " >&6; }
15670if test ${lt_cv_path_MAGIC_CMD+y}
15671then :
15672  printf %s "(cached) " >&6
15673else case e in #(
15674  e) case $MAGIC_CMD in
15675[\\/*] |  ?:[\\/]*)
15676  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15677  ;;
15678*)
15679  lt_save_MAGIC_CMD=$MAGIC_CMD
15680  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15681  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15682  for ac_dir in $ac_dummy; do
15683    IFS=$lt_save_ifs
15684    test -z "$ac_dir" && ac_dir=.
15685    if test -f "$ac_dir/${ac_tool_prefix}file"; then
15686      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15687      if test -n "$file_magic_test_file"; then
15688	case $deplibs_check_method in
15689	"file_magic "*)
15690	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15691	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15692	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15693	    $EGREP "$file_magic_regex" > /dev/null; then
15694	    :
15695	  else
15696	    cat <<_LT_EOF 1>&2
15697
15698*** Warning: the command libtool uses to detect shared libraries,
15699*** $file_magic_cmd, produces output that libtool cannot recognize.
15700*** The result is that libtool may fail to recognize shared libraries
15701*** as such.  This will affect the creation of libtool libraries that
15702*** depend on shared libraries, but programs linked with such libtool
15703*** libraries will work regardless of this problem.  Nevertheless, you
15704*** may want to report the problem to your system manager and/or to
15705*** bug-libtool@gnu.org
15706
15707_LT_EOF
15708	  fi ;;
15709	esac
15710      fi
15711      break
15712    fi
15713  done
15714  IFS=$lt_save_ifs
15715  MAGIC_CMD=$lt_save_MAGIC_CMD
15716  ;;
15717esac ;;
15718esac
15719fi
15720
15721MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15722if test -n "$MAGIC_CMD"; then
15723  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15724printf "%s\n" "$MAGIC_CMD" >&6; }
15725else
15726  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15727printf "%s\n" "no" >&6; }
15728fi
15729
15730
15731
15732
15733
15734if test -z "$lt_cv_path_MAGIC_CMD"; then
15735  if test -n "$ac_tool_prefix"; then
15736    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15737printf %s "checking for file... " >&6; }
15738if test ${lt_cv_path_MAGIC_CMD+y}
15739then :
15740  printf %s "(cached) " >&6
15741else case e in #(
15742  e) case $MAGIC_CMD in
15743[\\/*] |  ?:[\\/]*)
15744  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15745  ;;
15746*)
15747  lt_save_MAGIC_CMD=$MAGIC_CMD
15748  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15749  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15750  for ac_dir in $ac_dummy; do
15751    IFS=$lt_save_ifs
15752    test -z "$ac_dir" && ac_dir=.
15753    if test -f "$ac_dir/file"; then
15754      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15755      if test -n "$file_magic_test_file"; then
15756	case $deplibs_check_method in
15757	"file_magic "*)
15758	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15759	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15760	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15761	    $EGREP "$file_magic_regex" > /dev/null; then
15762	    :
15763	  else
15764	    cat <<_LT_EOF 1>&2
15765
15766*** Warning: the command libtool uses to detect shared libraries,
15767*** $file_magic_cmd, produces output that libtool cannot recognize.
15768*** The result is that libtool may fail to recognize shared libraries
15769*** as such.  This will affect the creation of libtool libraries that
15770*** depend on shared libraries, but programs linked with such libtool
15771*** libraries will work regardless of this problem.  Nevertheless, you
15772*** may want to report the problem to your system manager and/or to
15773*** bug-libtool@gnu.org
15774
15775_LT_EOF
15776	  fi ;;
15777	esac
15778      fi
15779      break
15780    fi
15781  done
15782  IFS=$lt_save_ifs
15783  MAGIC_CMD=$lt_save_MAGIC_CMD
15784  ;;
15785esac ;;
15786esac
15787fi
15788
15789MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15790if test -n "$MAGIC_CMD"; then
15791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15792printf "%s\n" "$MAGIC_CMD" >&6; }
15793else
15794  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15795printf "%s\n" "no" >&6; }
15796fi
15797
15798
15799  else
15800    MAGIC_CMD=:
15801  fi
15802fi
15803
15804  fi
15805  ;;
15806esac
15807
15808# Use C for the default configuration in the libtool script
15809
15810lt_save_CC=$CC
15811ac_ext=c
15812ac_cpp='$CPP $CPPFLAGS'
15813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15815ac_compiler_gnu=$ac_cv_c_compiler_gnu
15816
15817
15818# Source file extension for C test sources.
15819ac_ext=c
15820
15821# Object file extension for compiled C test sources.
15822objext=o
15823objext=$objext
15824
15825# Code to be used in simple compile tests
15826lt_simple_compile_test_code="int some_variable = 0;"
15827
15828# Code to be used in simple link tests
15829lt_simple_link_test_code='int main(){return(0);}'
15830
15831
15832
15833
15834
15835
15836
15837# If no C compiler was specified, use CC.
15838LTCC=${LTCC-"$CC"}
15839
15840# If no C compiler flags were specified, use CFLAGS.
15841LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15842
15843# Allow CC to be a program name with arguments.
15844compiler=$CC
15845
15846# Save the default compiler, since it gets overwritten when the other
15847# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15848compiler_DEFAULT=$CC
15849
15850# save warnings/boilerplate of simple test code
15851ac_outfile=conftest.$ac_objext
15852echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15853eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15854_lt_compiler_boilerplate=`cat conftest.err`
15855$RM conftest*
15856
15857ac_outfile=conftest.$ac_objext
15858echo "$lt_simple_link_test_code" >conftest.$ac_ext
15859eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15860_lt_linker_boilerplate=`cat conftest.err`
15861$RM -r conftest*
15862
15863
15864if test -n "$compiler"; then
15865
15866lt_prog_compiler_no_builtin_flag=
15867
15868if test yes = "$GCC"; then
15869  case $cc_basename in
15870  nvcc*)
15871    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15872  *)
15873    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15874  esac
15875
15876  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15877printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15878if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15879then :
15880  printf %s "(cached) " >&6
15881else case e in #(
15882  e) lt_cv_prog_compiler_rtti_exceptions=no
15883   ac_outfile=conftest.$ac_objext
15884   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15885   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
15886   # Insert the option either (1) after the last *FLAGS variable, or
15887   # (2) before a word containing "conftest.", or (3) at the end.
15888   # Note that $ac_compile itself does not contain backslashes and begins
15889   # with a dollar sign (not a hyphen), so the echo should work correctly.
15890   # The option is referenced via a variable to avoid confusing sed.
15891   lt_compile=`echo "$ac_compile" | $SED \
15892   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15893   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15894   -e 's:$: $lt_compiler_flag:'`
15895   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15896   (eval "$lt_compile" 2>conftest.err)
15897   ac_status=$?
15898   cat conftest.err >&5
15899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900   if (exit $ac_status) && test -s "$ac_outfile"; then
15901     # The compiler can only warn and ignore the option if not recognized
15902     # So say no if there are warnings other than the usual output.
15903     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15904     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15905     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15906       lt_cv_prog_compiler_rtti_exceptions=yes
15907     fi
15908   fi
15909   $RM conftest*
15910 ;;
15911esac
15912fi
15913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15914printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15915
15916if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15917    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15918else
15919    :
15920fi
15921
15922fi
15923
15924
15925
15926
15927
15928
15929  lt_prog_compiler_wl=
15930lt_prog_compiler_pic=
15931lt_prog_compiler_static=
15932
15933
15934  if test yes = "$GCC"; then
15935    lt_prog_compiler_wl='-Wl,'
15936    lt_prog_compiler_static='-static'
15937
15938    case $host_os in
15939      aix*)
15940      # All AIX code is PIC.
15941      if test ia64 = "$host_cpu"; then
15942	# AIX 5 now supports IA64 processor
15943	lt_prog_compiler_static='-Bstatic'
15944      fi
15945      lt_prog_compiler_pic='-fPIC'
15946      ;;
15947
15948    amigaos*)
15949      case $host_cpu in
15950      powerpc)
15951            # see comment about AmigaOS4 .so support
15952            lt_prog_compiler_pic='-fPIC'
15953        ;;
15954      m68k)
15955            # FIXME: we need at least 68020 code to build shared libraries, but
15956            # adding the '-m68020' flag to GCC prevents building anything better,
15957            # like '-m68040'.
15958            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15959        ;;
15960      esac
15961      ;;
15962
15963    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15964      # PIC is the default for these OSes.
15965      ;;
15966
15967    mingw* | cygwin* | pw32* | os2* | cegcc*)
15968      # This hack is so that the source file can tell whether it is being
15969      # built for inclusion in a dll (and should export symbols for example).
15970      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15971      # (--disable-auto-import) libraries
15972      lt_prog_compiler_pic='-DDLL_EXPORT'
15973      case $host_os in
15974      os2*)
15975	lt_prog_compiler_static='$wl-static'
15976	;;
15977      esac
15978      ;;
15979
15980    darwin* | rhapsody*)
15981      # PIC is the default on this platform
15982      # Common symbols not allowed in MH_DYLIB files
15983      lt_prog_compiler_pic='-fno-common'
15984      ;;
15985
15986    haiku*)
15987      # PIC is the default for Haiku.
15988      # The "-static" flag exists, but is broken.
15989      lt_prog_compiler_static=
15990      ;;
15991
15992    hpux*)
15993      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15994      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15995      # sets the default TLS model and affects inlining.
15996      case $host_cpu in
15997      hppa*64*)
15998	# +Z the default
15999	;;
16000      *)
16001	lt_prog_compiler_pic='-fPIC'
16002	;;
16003      esac
16004      ;;
16005
16006    interix[3-9]*)
16007      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16008      # Instead, we relocate shared libraries at runtime.
16009      ;;
16010
16011    msdosdjgpp*)
16012      # Just because we use GCC doesn't mean we suddenly get shared libraries
16013      # on systems that don't support them.
16014      lt_prog_compiler_can_build_shared=no
16015      enable_shared=no
16016      ;;
16017
16018    *nto* | *qnx*)
16019      # QNX uses GNU C++, but need to define -shared option too, otherwise
16020      # it will coredump.
16021      lt_prog_compiler_pic='-fPIC -shared'
16022      ;;
16023
16024    sysv4*MP*)
16025      if test -d /usr/nec; then
16026	lt_prog_compiler_pic=-Kconform_pic
16027      fi
16028      ;;
16029
16030    *)
16031      lt_prog_compiler_pic='-fPIC'
16032      ;;
16033    esac
16034
16035    case $cc_basename in
16036    nvcc*) # Cuda Compiler Driver 2.2
16037      lt_prog_compiler_wl='-Xlinker '
16038      if test -n "$lt_prog_compiler_pic"; then
16039        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
16040      fi
16041      ;;
16042    esac
16043  else
16044    # PORTME Check for flag to pass linker flags through the system compiler.
16045    case $host_os in
16046    aix*)
16047      lt_prog_compiler_wl='-Wl,'
16048      if test ia64 = "$host_cpu"; then
16049	# AIX 5 now supports IA64 processor
16050	lt_prog_compiler_static='-Bstatic'
16051      else
16052	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16053      fi
16054      ;;
16055
16056    darwin* | rhapsody*)
16057      # PIC is the default on this platform
16058      # Common symbols not allowed in MH_DYLIB files
16059      lt_prog_compiler_pic='-fno-common'
16060      case $cc_basename in
16061      nagfor*)
16062        # NAG Fortran compiler
16063        lt_prog_compiler_wl='-Wl,-Wl,,'
16064        lt_prog_compiler_pic='-PIC'
16065        lt_prog_compiler_static='-Bstatic'
16066        ;;
16067      esac
16068      ;;
16069
16070    mingw* | cygwin* | pw32* | os2* | cegcc*)
16071      # This hack is so that the source file can tell whether it is being
16072      # built for inclusion in a dll (and should export symbols for example).
16073      lt_prog_compiler_pic='-DDLL_EXPORT'
16074      case $host_os in
16075      os2*)
16076	lt_prog_compiler_static='$wl-static'
16077	;;
16078      esac
16079      ;;
16080
16081    hpux9* | hpux10* | hpux11*)
16082      lt_prog_compiler_wl='-Wl,'
16083      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16084      # not for PA HP-UX.
16085      case $host_cpu in
16086      hppa*64*|ia64*)
16087	# +Z the default
16088	;;
16089      *)
16090	lt_prog_compiler_pic='+Z'
16091	;;
16092      esac
16093      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16094      lt_prog_compiler_static='$wl-a ${wl}archive'
16095      ;;
16096
16097    irix5* | irix6* | nonstopux*)
16098      lt_prog_compiler_wl='-Wl,'
16099      # PIC (with -KPIC) is the default.
16100      lt_prog_compiler_static='-non_shared'
16101      ;;
16102
16103    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16104      case $cc_basename in
16105      # old Intel for x86_64, which still supported -KPIC.
16106      ecc*)
16107	lt_prog_compiler_wl='-Wl,'
16108	lt_prog_compiler_pic='-KPIC'
16109	lt_prog_compiler_static='-static'
16110        ;;
16111      # icc used to be incompatible with GCC.
16112      # ICC 10 doesn't accept -KPIC any more.
16113      icc* | ifort*)
16114	lt_prog_compiler_wl='-Wl,'
16115	lt_prog_compiler_pic='-fPIC'
16116	lt_prog_compiler_static='-static'
16117        ;;
16118      # Lahey Fortran 8.1.
16119      lf95*)
16120	lt_prog_compiler_wl='-Wl,'
16121	lt_prog_compiler_pic='--shared'
16122	lt_prog_compiler_static='--static'
16123	;;
16124      nagfor*)
16125	# NAG Fortran compiler
16126	lt_prog_compiler_wl='-Wl,-Wl,,'
16127	lt_prog_compiler_pic='-PIC'
16128	lt_prog_compiler_static='-Bstatic'
16129	;;
16130      tcc*)
16131	# Fabrice Bellard et al's Tiny C Compiler
16132	lt_prog_compiler_wl='-Wl,'
16133	lt_prog_compiler_pic='-fPIC'
16134	lt_prog_compiler_static='-static'
16135	;;
16136      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16137        # Portland Group compilers (*not* the Pentium gcc compiler,
16138	# which looks to be a dead project)
16139	lt_prog_compiler_wl='-Wl,'
16140	lt_prog_compiler_pic='-fpic'
16141	lt_prog_compiler_static='-Bstatic'
16142        ;;
16143      ccc*)
16144        lt_prog_compiler_wl='-Wl,'
16145        # All Alpha code is PIC.
16146        lt_prog_compiler_static='-non_shared'
16147        ;;
16148      xl* | bgxl* | bgf* | mpixl*)
16149	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16150	lt_prog_compiler_wl='-Wl,'
16151	lt_prog_compiler_pic='-qpic'
16152	lt_prog_compiler_static='-qstaticlink'
16153	;;
16154      *)
16155	case `$CC -V 2>&1 | $SED 5q` in
16156	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
16157	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16158	  lt_prog_compiler_pic='-KPIC'
16159	  lt_prog_compiler_static='-Bstatic'
16160	  lt_prog_compiler_wl=''
16161	  ;;
16162	*Sun\ F* | *Sun*Fortran*)
16163	  lt_prog_compiler_pic='-KPIC'
16164	  lt_prog_compiler_static='-Bstatic'
16165	  lt_prog_compiler_wl='-Qoption ld '
16166	  ;;
16167	*Sun\ C*)
16168	  # Sun C 5.9
16169	  lt_prog_compiler_pic='-KPIC'
16170	  lt_prog_compiler_static='-Bstatic'
16171	  lt_prog_compiler_wl='-Wl,'
16172	  ;;
16173        *Intel*\ [CF]*Compiler*)
16174	  lt_prog_compiler_wl='-Wl,'
16175	  lt_prog_compiler_pic='-fPIC'
16176	  lt_prog_compiler_static='-static'
16177	  ;;
16178	*Portland\ Group*)
16179	  lt_prog_compiler_wl='-Wl,'
16180	  lt_prog_compiler_pic='-fpic'
16181	  lt_prog_compiler_static='-Bstatic'
16182	  ;;
16183	esac
16184	;;
16185      esac
16186      ;;
16187
16188    newsos6)
16189      lt_prog_compiler_pic='-KPIC'
16190      lt_prog_compiler_static='-Bstatic'
16191      ;;
16192
16193    *nto* | *qnx*)
16194      # QNX uses GNU C++, but need to define -shared option too, otherwise
16195      # it will coredump.
16196      lt_prog_compiler_pic='-fPIC -shared'
16197      ;;
16198
16199    osf3* | osf4* | osf5*)
16200      lt_prog_compiler_wl='-Wl,'
16201      # All OSF/1 code is PIC.
16202      lt_prog_compiler_static='-non_shared'
16203      ;;
16204
16205    rdos*)
16206      lt_prog_compiler_static='-non_shared'
16207      ;;
16208
16209    solaris*)
16210      lt_prog_compiler_pic='-KPIC'
16211      lt_prog_compiler_static='-Bstatic'
16212      case $cc_basename in
16213      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
16214	lt_prog_compiler_wl='-Qoption ld ';;
16215      *)
16216	lt_prog_compiler_wl='-Wl,';;
16217      esac
16218      ;;
16219
16220    sunos4*)
16221      lt_prog_compiler_wl='-Qoption ld '
16222      lt_prog_compiler_pic='-PIC'
16223      lt_prog_compiler_static='-Bstatic'
16224      ;;
16225
16226    sysv4 | sysv4.2uw2* | sysv4.3*)
16227      lt_prog_compiler_wl='-Wl,'
16228      lt_prog_compiler_pic='-KPIC'
16229      lt_prog_compiler_static='-Bstatic'
16230      ;;
16231
16232    sysv4*MP*)
16233      if test -d /usr/nec; then
16234	lt_prog_compiler_pic='-Kconform_pic'
16235	lt_prog_compiler_static='-Bstatic'
16236      fi
16237      ;;
16238
16239    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16240      lt_prog_compiler_wl='-Wl,'
16241      lt_prog_compiler_pic='-KPIC'
16242      lt_prog_compiler_static='-Bstatic'
16243      ;;
16244
16245    unicos*)
16246      lt_prog_compiler_wl='-Wl,'
16247      lt_prog_compiler_can_build_shared=no
16248      ;;
16249
16250    uts4*)
16251      lt_prog_compiler_pic='-pic'
16252      lt_prog_compiler_static='-Bstatic'
16253      ;;
16254
16255    *)
16256      lt_prog_compiler_can_build_shared=no
16257      ;;
16258    esac
16259  fi
16260
16261case $host_os in
16262  # For platforms that do not support PIC, -DPIC is meaningless:
16263  *djgpp*)
16264    lt_prog_compiler_pic=
16265    ;;
16266  *)
16267    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16268    ;;
16269esac
16270
16271{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16272printf %s "checking for $compiler option to produce PIC... " >&6; }
16273if test ${lt_cv_prog_compiler_pic+y}
16274then :
16275  printf %s "(cached) " >&6
16276else case e in #(
16277  e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
16278esac
16279fi
16280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
16281printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
16282lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
16283
16284#
16285# Check to make sure the PIC flag actually works.
16286#
16287if test -n "$lt_prog_compiler_pic"; then
16288  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16289printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16290if test ${lt_cv_prog_compiler_pic_works+y}
16291then :
16292  printf %s "(cached) " >&6
16293else case e in #(
16294  e) lt_cv_prog_compiler_pic_works=no
16295   ac_outfile=conftest.$ac_objext
16296   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16297   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16298   # Insert the option either (1) after the last *FLAGS variable, or
16299   # (2) before a word containing "conftest.", or (3) at the end.
16300   # Note that $ac_compile itself does not contain backslashes and begins
16301   # with a dollar sign (not a hyphen), so the echo should work correctly.
16302   # The option is referenced via a variable to avoid confusing sed.
16303   lt_compile=`echo "$ac_compile" | $SED \
16304   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16305   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16306   -e 's:$: $lt_compiler_flag:'`
16307   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16308   (eval "$lt_compile" 2>conftest.err)
16309   ac_status=$?
16310   cat conftest.err >&5
16311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312   if (exit $ac_status) && test -s "$ac_outfile"; then
16313     # The compiler can only warn and ignore the option if not recognized
16314     # So say no if there are warnings other than the usual output.
16315     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16316     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16317     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16318       lt_cv_prog_compiler_pic_works=yes
16319     fi
16320   fi
16321   $RM conftest*
16322 ;;
16323esac
16324fi
16325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16326printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
16327
16328if test yes = "$lt_cv_prog_compiler_pic_works"; then
16329    case $lt_prog_compiler_pic in
16330     "" | " "*) ;;
16331     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16332     esac
16333else
16334    lt_prog_compiler_pic=
16335     lt_prog_compiler_can_build_shared=no
16336fi
16337
16338fi
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350#
16351# Check to make sure the static flag actually works.
16352#
16353wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16354{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16355printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16356if test ${lt_cv_prog_compiler_static_works+y}
16357then :
16358  printf %s "(cached) " >&6
16359else case e in #(
16360  e) lt_cv_prog_compiler_static_works=no
16361   save_LDFLAGS=$LDFLAGS
16362   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16363   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16364   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16365     # The linker can only warn and ignore the option if not recognized
16366     # So say no if there are warnings
16367     if test -s conftest.err; then
16368       # Append any errors to the config.log.
16369       cat conftest.err 1>&5
16370       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16371       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16372       if diff conftest.exp conftest.er2 >/dev/null; then
16373         lt_cv_prog_compiler_static_works=yes
16374       fi
16375     else
16376       lt_cv_prog_compiler_static_works=yes
16377     fi
16378   fi
16379   $RM -r conftest*
16380   LDFLAGS=$save_LDFLAGS
16381 ;;
16382esac
16383fi
16384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16385printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
16386
16387if test yes = "$lt_cv_prog_compiler_static_works"; then
16388    :
16389else
16390    lt_prog_compiler_static=
16391fi
16392
16393
16394
16395
16396
16397
16398
16399  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16400printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16401if test ${lt_cv_prog_compiler_c_o+y}
16402then :
16403  printf %s "(cached) " >&6
16404else case e in #(
16405  e) lt_cv_prog_compiler_c_o=no
16406   $RM -r conftest 2>/dev/null
16407   mkdir conftest
16408   cd conftest
16409   mkdir out
16410   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16411
16412   lt_compiler_flag="-o out/conftest2.$ac_objext"
16413   # Insert the option either (1) after the last *FLAGS variable, or
16414   # (2) before a word containing "conftest.", or (3) at the end.
16415   # Note that $ac_compile itself does not contain backslashes and begins
16416   # with a dollar sign (not a hyphen), so the echo should work correctly.
16417   lt_compile=`echo "$ac_compile" | $SED \
16418   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16419   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16420   -e 's:$: $lt_compiler_flag:'`
16421   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16422   (eval "$lt_compile" 2>out/conftest.err)
16423   ac_status=$?
16424   cat out/conftest.err >&5
16425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16427   then
16428     # The compiler can only warn and ignore the option if not recognized
16429     # So say no if there are warnings
16430     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16431     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16432     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16433       lt_cv_prog_compiler_c_o=yes
16434     fi
16435   fi
16436   chmod u+w . 2>&5
16437   $RM conftest*
16438   # SGI C++ compiler will create directory out/ii_files/ for
16439   # template instantiation
16440   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16441   $RM out/* && rmdir out
16442   cd ..
16443   $RM -r conftest
16444   $RM conftest*
16445 ;;
16446esac
16447fi
16448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16449printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16450
16451
16452
16453
16454
16455
16456  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16457printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16458if test ${lt_cv_prog_compiler_c_o+y}
16459then :
16460  printf %s "(cached) " >&6
16461else case e in #(
16462  e) lt_cv_prog_compiler_c_o=no
16463   $RM -r conftest 2>/dev/null
16464   mkdir conftest
16465   cd conftest
16466   mkdir out
16467   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16468
16469   lt_compiler_flag="-o out/conftest2.$ac_objext"
16470   # Insert the option either (1) after the last *FLAGS variable, or
16471   # (2) before a word containing "conftest.", or (3) at the end.
16472   # Note that $ac_compile itself does not contain backslashes and begins
16473   # with a dollar sign (not a hyphen), so the echo should work correctly.
16474   lt_compile=`echo "$ac_compile" | $SED \
16475   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16476   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16477   -e 's:$: $lt_compiler_flag:'`
16478   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16479   (eval "$lt_compile" 2>out/conftest.err)
16480   ac_status=$?
16481   cat out/conftest.err >&5
16482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16484   then
16485     # The compiler can only warn and ignore the option if not recognized
16486     # So say no if there are warnings
16487     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16488     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16489     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16490       lt_cv_prog_compiler_c_o=yes
16491     fi
16492   fi
16493   chmod u+w . 2>&5
16494   $RM conftest*
16495   # SGI C++ compiler will create directory out/ii_files/ for
16496   # template instantiation
16497   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16498   $RM out/* && rmdir out
16499   cd ..
16500   $RM -r conftest
16501   $RM conftest*
16502 ;;
16503esac
16504fi
16505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16506printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16507
16508
16509
16510
16511hard_links=nottested
16512if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16513  # do not overwrite the value of need_locks provided by the user
16514  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16515printf %s "checking if we can lock with hard links... " >&6; }
16516  hard_links=yes
16517  $RM conftest*
16518  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16519  touch conftest.a
16520  ln conftest.a conftest.b 2>&5 || hard_links=no
16521  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16522  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16523printf "%s\n" "$hard_links" >&6; }
16524  if test no = "$hard_links"; then
16525    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16526printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16527    need_locks=warn
16528  fi
16529else
16530  need_locks=no
16531fi
16532
16533
16534
16535
16536
16537
16538  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16539printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16540
16541  runpath_var=
16542  allow_undefined_flag=
16543  always_export_symbols=no
16544  archive_cmds=
16545  archive_expsym_cmds=
16546  compiler_needs_object=no
16547  enable_shared_with_static_runtimes=no
16548  export_dynamic_flag_spec=
16549  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16550  hardcode_automatic=no
16551  hardcode_direct=no
16552  hardcode_direct_absolute=no
16553  hardcode_libdir_flag_spec=
16554  hardcode_libdir_separator=
16555  hardcode_minus_L=no
16556  hardcode_shlibpath_var=unsupported
16557  inherit_rpath=no
16558  link_all_deplibs=unknown
16559  module_cmds=
16560  module_expsym_cmds=
16561  old_archive_from_new_cmds=
16562  old_archive_from_expsyms_cmds=
16563  thread_safe_flag_spec=
16564  whole_archive_flag_spec=
16565  # include_expsyms should be a list of space-separated symbols to be *always*
16566  # included in the symbol list
16567  include_expsyms=
16568  # exclude_expsyms can be an extended regexp of symbols to exclude
16569  # it will be wrapped by ' (' and ')$', so one must not match beginning or
16570  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16571  # as well as any symbol that contains 'd'.
16572  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16573  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16574  # platforms (ab)use it in PIC code, but their linkers get confused if
16575  # the symbol is explicitly referenced.  Since portable code cannot
16576  # rely on this symbol name, it's probably fine to never include it in
16577  # preloaded symbol tables.
16578  # Exclude shared library initialization/finalization symbols.
16579  extract_expsyms_cmds=
16580
16581  case $host_os in
16582  cygwin* | mingw* | pw32* | cegcc*)
16583    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16584    # When not using gcc, we currently assume that we are using
16585    # Microsoft Visual C++ or Intel C++ Compiler.
16586    if test yes != "$GCC"; then
16587      with_gnu_ld=no
16588    fi
16589    ;;
16590  interix*)
16591    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16592    with_gnu_ld=yes
16593    ;;
16594  openbsd* | bitrig*)
16595    with_gnu_ld=no
16596    ;;
16597  esac
16598
16599  ld_shlibs=yes
16600
16601  # On some targets, GNU ld is compatible enough with the native linker
16602  # that we're better off using the native interface for both.
16603  lt_use_gnu_ld_interface=no
16604  if test yes = "$with_gnu_ld"; then
16605    case $host_os in
16606      aix*)
16607	# The AIX port of GNU ld has always aspired to compatibility
16608	# with the native linker.  However, as the warning in the GNU ld
16609	# block says, versions before 2.19.5* couldn't really create working
16610	# shared libraries, regardless of the interface used.
16611	case `$LD -v 2>&1` in
16612	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16613	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16614	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16615	  *)
16616	    lt_use_gnu_ld_interface=yes
16617	    ;;
16618	esac
16619	;;
16620      *)
16621	lt_use_gnu_ld_interface=yes
16622	;;
16623    esac
16624  fi
16625
16626  if test yes = "$lt_use_gnu_ld_interface"; then
16627    # If archive_cmds runs LD, not CC, wlarc should be empty
16628    wlarc='$wl'
16629
16630    # Set some defaults for GNU ld with shared library support. These
16631    # are reset later if shared libraries are not supported. Putting them
16632    # here allows them to be overridden if necessary.
16633    runpath_var=LD_RUN_PATH
16634    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16635    export_dynamic_flag_spec='$wl--export-dynamic'
16636    # ancient GNU ld didn't support --whole-archive et. al.
16637    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16638      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16639    else
16640      whole_archive_flag_spec=
16641    fi
16642    supports_anon_versioning=no
16643    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16644      *GNU\ gold*) supports_anon_versioning=yes ;;
16645      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16646      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16647      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16648      *\ 2.11.*) ;; # other 2.11 versions
16649      *) supports_anon_versioning=yes ;;
16650    esac
16651
16652    # See if GNU ld supports shared libraries.
16653    case $host_os in
16654    aix[3-9]*)
16655      # On AIX/PPC, the GNU linker is very broken
16656      if test ia64 != "$host_cpu"; then
16657	ld_shlibs=no
16658	cat <<_LT_EOF 1>&2
16659
16660*** Warning: the GNU linker, at least up to release 2.19, is reported
16661*** to be unable to reliably create shared libraries on AIX.
16662*** Therefore, libtool is disabling shared libraries support.  If you
16663*** really care for shared libraries, you may want to install binutils
16664*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16665*** You will then need to restart the configuration process.
16666
16667_LT_EOF
16668      fi
16669      ;;
16670
16671    amigaos*)
16672      case $host_cpu in
16673      powerpc)
16674            # see comment about AmigaOS4 .so support
16675            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16676            archive_expsym_cmds=''
16677        ;;
16678      m68k)
16679            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)'
16680            hardcode_libdir_flag_spec='-L$libdir'
16681            hardcode_minus_L=yes
16682        ;;
16683      esac
16684      ;;
16685
16686    beos*)
16687      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16688	allow_undefined_flag=unsupported
16689	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16690	# support --undefined.  This deserves some investigation.  FIXME
16691	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16692      else
16693	ld_shlibs=no
16694      fi
16695      ;;
16696
16697    cygwin* | mingw* | pw32* | cegcc*)
16698      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16699      # as there is no search path for DLLs.
16700      hardcode_libdir_flag_spec='-L$libdir'
16701      export_dynamic_flag_spec='$wl--export-all-symbols'
16702      allow_undefined_flag=unsupported
16703      always_export_symbols=no
16704      enable_shared_with_static_runtimes=yes
16705      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'
16706      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16707
16708      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16709        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16710	# If the export-symbols file already is a .def file, use it as
16711	# is; otherwise, prepend EXPORTS...
16712	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16713          cp $export_symbols $output_objdir/$soname.def;
16714        else
16715          echo EXPORTS > $output_objdir/$soname.def;
16716          cat $export_symbols >> $output_objdir/$soname.def;
16717        fi~
16718        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16719      else
16720	ld_shlibs=no
16721      fi
16722      ;;
16723
16724    haiku*)
16725      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16726      link_all_deplibs=yes
16727      ;;
16728
16729    os2*)
16730      hardcode_libdir_flag_spec='-L$libdir'
16731      hardcode_minus_L=yes
16732      allow_undefined_flag=unsupported
16733      shrext_cmds=.dll
16734      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16735	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16736	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16737	$ECHO EXPORTS >> $output_objdir/$libname.def~
16738	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16739	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16740	emximp -o $lib $output_objdir/$libname.def'
16741      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16742	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16743	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16744	$ECHO EXPORTS >> $output_objdir/$libname.def~
16745	prefix_cmds="$SED"~
16746	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16747	  prefix_cmds="$prefix_cmds -e 1d";
16748	fi~
16749	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16750	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16751	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16752	emximp -o $lib $output_objdir/$libname.def'
16753      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16754      enable_shared_with_static_runtimes=yes
16755      file_list_spec='@'
16756      ;;
16757
16758    interix[3-9]*)
16759      hardcode_direct=no
16760      hardcode_shlibpath_var=no
16761      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16762      export_dynamic_flag_spec='$wl-E'
16763      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16764      # Instead, shared libraries are loaded at an image base (0x10000000 by
16765      # default) and relocated if they conflict, which is a slow very memory
16766      # consuming and fragmenting process.  To avoid this, we pick a random,
16767      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16768      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16769      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16770      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'
16771      ;;
16772
16773    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16774      tmp_diet=no
16775      if test linux-dietlibc = "$host_os"; then
16776	case $cc_basename in
16777	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
16778	esac
16779      fi
16780      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16781	 && test no = "$tmp_diet"
16782      then
16783	tmp_addflag=' $pic_flag'
16784	tmp_sharedflag='-shared'
16785	case $cc_basename,$host_cpu in
16786        pgcc*)				# Portland Group C compiler
16787	  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'
16788	  tmp_addflag=' $pic_flag'
16789	  ;;
16790	pgf77* | pgf90* | pgf95* | pgfortran*)
16791					# Portland Group f77 and f90 compilers
16792	  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'
16793	  tmp_addflag=' $pic_flag -Mnomain' ;;
16794	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
16795	  tmp_addflag=' -i_dynamic' ;;
16796	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16797	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16798	ifc* | ifort*)			# Intel Fortran compiler
16799	  tmp_addflag=' -nofor_main' ;;
16800	lf95*)				# Lahey Fortran 8.1
16801	  whole_archive_flag_spec=
16802	  tmp_sharedflag='--shared' ;;
16803        nagfor*)                        # NAGFOR 5.3
16804          tmp_sharedflag='-Wl,-shared' ;;
16805	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16806	  tmp_sharedflag='-qmkshrobj'
16807	  tmp_addflag= ;;
16808	nvcc*)	# Cuda Compiler Driver 2.2
16809	  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'
16810	  compiler_needs_object=yes
16811	  ;;
16812	esac
16813	case `$CC -V 2>&1 | $SED 5q` in
16814	*Sun\ C*)			# Sun C 5.9
16815	  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'
16816	  compiler_needs_object=yes
16817	  tmp_sharedflag='-G' ;;
16818	*Sun\ F*)			# Sun Fortran 8.3
16819	  tmp_sharedflag='-G' ;;
16820	esac
16821	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16822
16823        if test yes = "$supports_anon_versioning"; then
16824          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16825            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16826            echo "local: *; };" >> $output_objdir/$libname.ver~
16827            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16828        fi
16829
16830	case $cc_basename in
16831	tcc*)
16832	  export_dynamic_flag_spec='-rdynamic'
16833	  ;;
16834	xlf* | bgf* | bgxlf* | mpixlf*)
16835	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16836	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16837	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16838	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16839	  if test yes = "$supports_anon_versioning"; then
16840	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16841              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16842              echo "local: *; };" >> $output_objdir/$libname.ver~
16843              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16844	  fi
16845	  ;;
16846	esac
16847      else
16848        ld_shlibs=no
16849      fi
16850      ;;
16851
16852    netbsd*)
16853      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16854	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16855	wlarc=
16856      else
16857	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16858	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16859      fi
16860      ;;
16861
16862    solaris*)
16863      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16864	ld_shlibs=no
16865	cat <<_LT_EOF 1>&2
16866
16867*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16868*** create shared libraries on Solaris systems.  Therefore, libtool
16869*** is disabling shared libraries support.  We urge you to upgrade GNU
16870*** binutils to release 2.9.1 or newer.  Another option is to modify
16871*** your PATH or compiler configuration so that the native linker is
16872*** used, and then restart.
16873
16874_LT_EOF
16875      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16876	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16877	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16878      else
16879	ld_shlibs=no
16880      fi
16881      ;;
16882
16883    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16884      case `$LD -v 2>&1` in
16885        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16886	ld_shlibs=no
16887	cat <<_LT_EOF 1>&2
16888
16889*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16890*** reliably create shared libraries on SCO systems.  Therefore, libtool
16891*** is disabling shared libraries support.  We urge you to upgrade GNU
16892*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16893*** your PATH or compiler configuration so that the native linker is
16894*** used, and then restart.
16895
16896_LT_EOF
16897	;;
16898	*)
16899	  # For security reasons, it is highly recommended that you always
16900	  # use absolute paths for naming shared libraries, and exclude the
16901	  # DT_RUNPATH tag from executables and libraries.  But doing so
16902	  # requires that you compile everything twice, which is a pain.
16903	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16904	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16905	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16906	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16907	  else
16908	    ld_shlibs=no
16909	  fi
16910	;;
16911      esac
16912      ;;
16913
16914    sunos4*)
16915      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16916      wlarc=
16917      hardcode_direct=yes
16918      hardcode_shlibpath_var=no
16919      ;;
16920
16921    *)
16922      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16923	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16924	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16925      else
16926	ld_shlibs=no
16927      fi
16928      ;;
16929    esac
16930
16931    if test no = "$ld_shlibs"; then
16932      runpath_var=
16933      hardcode_libdir_flag_spec=
16934      export_dynamic_flag_spec=
16935      whole_archive_flag_spec=
16936    fi
16937  else
16938    # PORTME fill in a description of your system's linker (not GNU ld)
16939    case $host_os in
16940    aix3*)
16941      allow_undefined_flag=unsupported
16942      always_export_symbols=yes
16943      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'
16944      # Note: this linker hardcodes the directories in LIBPATH if there
16945      # are no directories specified by -L.
16946      hardcode_minus_L=yes
16947      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16948	# Neither direct hardcoding nor static linking is supported with a
16949	# broken collect2.
16950	hardcode_direct=unsupported
16951      fi
16952      ;;
16953
16954    aix[4-9]*)
16955      if test ia64 = "$host_cpu"; then
16956	# On IA64, the linker does run time linking by default, so we don't
16957	# have to do anything special.
16958	aix_use_runtimelinking=no
16959	exp_sym_flag='-Bexport'
16960	no_entry_flag=
16961      else
16962	# If we're using GNU nm, then we don't want the "-C" option.
16963	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
16964	# Without the "-l" option, or with the "-B" option, AIX nm treats
16965	# weak defined symbols like other global defined symbols, whereas
16966	# GNU nm marks them as "W".
16967	# While the 'weak' keyword is ignored in the Export File, we need
16968	# it in the Import File for the 'aix-soname' feature, so we have
16969	# to replace the "-B" option with "-P" for AIX nm.
16970	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16971	  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'
16972	else
16973	  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'
16974	fi
16975	aix_use_runtimelinking=no
16976
16977	# Test if we are trying to use run time linking or normal
16978	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16979	# have runtime linking enabled, and use it for executables.
16980	# For shared libraries, we enable/disable runtime linking
16981	# depending on the kind of the shared library created -
16982	# when "with_aix_soname,aix_use_runtimelinking" is:
16983	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
16984	# "aix,yes"  lib.so          shared, rtl:yes, for executables
16985	#            lib.a           static archive
16986	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
16987	#            lib.a(lib.so.V) shared, rtl:no,  for executables
16988	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16989	#            lib.a(lib.so.V) shared, rtl:no
16990	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
16991	#            lib.a           static archive
16992	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16993	  for ld_flag in $LDFLAGS; do
16994	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16995	    aix_use_runtimelinking=yes
16996	    break
16997	  fi
16998	  done
16999	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
17000	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
17001	    # so we don't have lib.a shared libs to link our executables.
17002	    # We have to force runtime linking in this case.
17003	    aix_use_runtimelinking=yes
17004	    LDFLAGS="$LDFLAGS -Wl,-brtl"
17005	  fi
17006	  ;;
17007	esac
17008
17009	exp_sym_flag='-bexport'
17010	no_entry_flag='-bnoentry'
17011      fi
17012
17013      # When large executables or shared objects are built, AIX ld can
17014      # have problems creating the table of contents.  If linking a library
17015      # or program results in "error TOC overflow" add -mminimal-toc to
17016      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17017      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17018
17019      archive_cmds=''
17020      hardcode_direct=yes
17021      hardcode_direct_absolute=yes
17022      hardcode_libdir_separator=':'
17023      link_all_deplibs=yes
17024      file_list_spec='$wl-f,'
17025      case $with_aix_soname,$aix_use_runtimelinking in
17026      aix,*) ;; # traditional, no import file
17027      svr4,* | *,yes) # use import file
17028	# The Import File defines what to hardcode.
17029	hardcode_direct=no
17030	hardcode_direct_absolute=no
17031	;;
17032      esac
17033
17034      if test yes = "$GCC"; then
17035	case $host_os in aix4.[012]|aix4.[012].*)
17036	# We only want to do this on AIX 4.2 and lower, the check
17037	# below for broken collect2 doesn't work under 4.3+
17038	  collect2name=`$CC -print-prog-name=collect2`
17039	  if test -f "$collect2name" &&
17040	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17041	  then
17042	  # We have reworked collect2
17043	  :
17044	  else
17045	  # We have old collect2
17046	  hardcode_direct=unsupported
17047	  # It fails to find uninstalled libraries when the uninstalled
17048	  # path is not listed in the libpath.  Setting hardcode_minus_L
17049	  # to unsupported forces relinking
17050	  hardcode_minus_L=yes
17051	  hardcode_libdir_flag_spec='-L$libdir'
17052	  hardcode_libdir_separator=
17053	  fi
17054	  ;;
17055	esac
17056	shared_flag='-shared'
17057	if test yes = "$aix_use_runtimelinking"; then
17058	  shared_flag="$shared_flag "'$wl-G'
17059	fi
17060	# Need to ensure runtime linking is disabled for the traditional
17061	# shared library, or the linker may eventually find shared libraries
17062	# /with/ Import File - we do not want to mix them.
17063	shared_flag_aix='-shared'
17064	shared_flag_svr4='-shared $wl-G'
17065      else
17066	# not using gcc
17067	if test ia64 = "$host_cpu"; then
17068	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17069	# chokes on -Wl,-G. The following line is correct:
17070	  shared_flag='-G'
17071	else
17072	  if test yes = "$aix_use_runtimelinking"; then
17073	    shared_flag='$wl-G'
17074	  else
17075	    shared_flag='$wl-bM:SRE'
17076	  fi
17077	  shared_flag_aix='$wl-bM:SRE'
17078	  shared_flag_svr4='$wl-G'
17079	fi
17080      fi
17081
17082      export_dynamic_flag_spec='$wl-bexpall'
17083      # It seems that -bexpall does not export symbols beginning with
17084      # underscore (_), so it is better to generate a list of symbols to export.
17085      always_export_symbols=yes
17086      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
17087	# Warning - without using the other runtime loading flags (-brtl),
17088	# -berok will link without error, but may produce a broken library.
17089	allow_undefined_flag='-berok'
17090        # Determine the default libpath from the value encoded in an
17091        # empty executable.
17092        if test set = "${lt_cv_aix_libpath+set}"; then
17093  aix_libpath=$lt_cv_aix_libpath
17094else
17095  if test ${lt_cv_aix_libpath_+y}
17096then :
17097  printf %s "(cached) " >&6
17098else case e in #(
17099  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17100/* end confdefs.h.  */
17101
17102int
17103main (void)
17104{
17105
17106  ;
17107  return 0;
17108}
17109_ACEOF
17110if ac_fn_c_try_link "$LINENO"
17111then :
17112
17113  lt_aix_libpath_sed='
17114      /Import File Strings/,/^$/ {
17115	  /^0/ {
17116	      s/^0  *\([^ ]*\) *$/\1/
17117	      p
17118	  }
17119      }'
17120  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17121  # Check for a 64-bit object if we didn't find anything.
17122  if test -z "$lt_cv_aix_libpath_"; then
17123    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17124  fi
17125fi
17126rm -f core conftest.err conftest.$ac_objext conftest.beam \
17127    conftest$ac_exeext conftest.$ac_ext
17128  if test -z "$lt_cv_aix_libpath_"; then
17129    lt_cv_aix_libpath_=/usr/lib:/lib
17130  fi
17131   ;;
17132esac
17133fi
17134
17135  aix_libpath=$lt_cv_aix_libpath_
17136fi
17137
17138        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
17139        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
17140      else
17141	if test ia64 = "$host_cpu"; then
17142	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
17143	  allow_undefined_flag="-z nodefs"
17144	  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"
17145	else
17146	 # Determine the default libpath from the value encoded in an
17147	 # empty executable.
17148	 if test set = "${lt_cv_aix_libpath+set}"; then
17149  aix_libpath=$lt_cv_aix_libpath
17150else
17151  if test ${lt_cv_aix_libpath_+y}
17152then :
17153  printf %s "(cached) " >&6
17154else case e in #(
17155  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17156/* end confdefs.h.  */
17157
17158int
17159main (void)
17160{
17161
17162  ;
17163  return 0;
17164}
17165_ACEOF
17166if ac_fn_c_try_link "$LINENO"
17167then :
17168
17169  lt_aix_libpath_sed='
17170      /Import File Strings/,/^$/ {
17171	  /^0/ {
17172	      s/^0  *\([^ ]*\) *$/\1/
17173	      p
17174	  }
17175      }'
17176  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17177  # Check for a 64-bit object if we didn't find anything.
17178  if test -z "$lt_cv_aix_libpath_"; then
17179    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17180  fi
17181fi
17182rm -f core conftest.err conftest.$ac_objext conftest.beam \
17183    conftest$ac_exeext conftest.$ac_ext
17184  if test -z "$lt_cv_aix_libpath_"; then
17185    lt_cv_aix_libpath_=/usr/lib:/lib
17186  fi
17187   ;;
17188esac
17189fi
17190
17191  aix_libpath=$lt_cv_aix_libpath_
17192fi
17193
17194	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
17195	  # Warning - without using the other run time loading flags,
17196	  # -berok will link without error, but may produce a broken library.
17197	  no_undefined_flag=' $wl-bernotok'
17198	  allow_undefined_flag=' $wl-berok'
17199	  if test yes = "$with_gnu_ld"; then
17200	    # We only use this code for GNU lds that support --whole-archive.
17201	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
17202	  else
17203	    # Exported symbols can be pulled into shared objects from archives
17204	    whole_archive_flag_spec='$convenience'
17205	  fi
17206	  archive_cmds_need_lc=yes
17207	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
17208	  # -brtl affects multiple linker settings, -berok does not and is overridden later
17209	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
17210	  if test svr4 != "$with_aix_soname"; then
17211	    # This is similar to how AIX traditionally builds its shared libraries.
17212	    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'
17213	  fi
17214	  if test aix != "$with_aix_soname"; then
17215	    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'
17216	  else
17217	    # used by -dlpreopen to get the symbols
17218	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
17219	  fi
17220	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
17221	fi
17222      fi
17223      ;;
17224
17225    amigaos*)
17226      case $host_cpu in
17227      powerpc)
17228            # see comment about AmigaOS4 .so support
17229            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17230            archive_expsym_cmds=''
17231        ;;
17232      m68k)
17233            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)'
17234            hardcode_libdir_flag_spec='-L$libdir'
17235            hardcode_minus_L=yes
17236        ;;
17237      esac
17238      ;;
17239
17240    bsdi[45]*)
17241      export_dynamic_flag_spec=-rdynamic
17242      ;;
17243
17244    cygwin* | mingw* | pw32* | cegcc*)
17245      # When not using gcc, we currently assume that we are using
17246      # Microsoft Visual C++ or Intel C++ Compiler.
17247      # hardcode_libdir_flag_spec is actually meaningless, as there is
17248      # no search path for DLLs.
17249      case $cc_basename in
17250      cl* | icl*)
17251	# Native MSVC or ICC
17252	hardcode_libdir_flag_spec=' '
17253	allow_undefined_flag=unsupported
17254	always_export_symbols=yes
17255	file_list_spec='@'
17256	# Tell ltmain to make .lib files, not .a files.
17257	libext=lib
17258	# Tell ltmain to make .dll files, not .so files.
17259	shrext_cmds=.dll
17260	# FIXME: Setting linknames here is a bad hack.
17261	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17262	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
17263            cp "$export_symbols" "$output_objdir/$soname.def";
17264            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17265          else
17266            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17267          fi~
17268          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17269          linknames='
17270	# The linker will not automatically build a static lib if we build a DLL.
17271	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
17272	enable_shared_with_static_runtimes=yes
17273	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17274	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17275	# Don't use ranlib
17276	old_postinstall_cmds='chmod 644 $oldlib'
17277	postlink_cmds='lt_outputfile="@OUTPUT@"~
17278          lt_tool_outputfile="@TOOL_OUTPUT@"~
17279          case $lt_outputfile in
17280            *.exe|*.EXE) ;;
17281            *)
17282              lt_outputfile=$lt_outputfile.exe
17283              lt_tool_outputfile=$lt_tool_outputfile.exe
17284              ;;
17285          esac~
17286          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17287            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17288            $RM "$lt_outputfile.manifest";
17289          fi'
17290	;;
17291      *)
17292	# Assume MSVC and ICC wrapper
17293	hardcode_libdir_flag_spec=' '
17294	allow_undefined_flag=unsupported
17295	# Tell ltmain to make .lib files, not .a files.
17296	libext=lib
17297	# Tell ltmain to make .dll files, not .so files.
17298	shrext_cmds=.dll
17299	# FIXME: Setting linknames here is a bad hack.
17300	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17301	# The linker will automatically build a .lib file if we build a DLL.
17302	old_archive_from_new_cmds='true'
17303	# FIXME: Should let the user specify the lib program.
17304	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17305	enable_shared_with_static_runtimes=yes
17306	;;
17307      esac
17308      ;;
17309
17310    darwin* | rhapsody*)
17311
17312
17313  archive_cmds_need_lc=no
17314  hardcode_direct=no
17315  hardcode_automatic=yes
17316  hardcode_shlibpath_var=unsupported
17317  if test yes = "$lt_cv_ld_force_load"; then
17318    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\"`'
17319
17320  else
17321    whole_archive_flag_spec=''
17322  fi
17323  link_all_deplibs=yes
17324  allow_undefined_flag=$_lt_dar_allow_undefined
17325  case $cc_basename in
17326     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
17327     *) _lt_dar_can_shared=$GCC ;;
17328  esac
17329  if test yes = "$_lt_dar_can_shared"; then
17330    output_verbose_link_cmd=func_echo_all
17331    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
17332    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17333    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"
17334    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"
17335
17336  else
17337  ld_shlibs=no
17338  fi
17339
17340      ;;
17341
17342    dgux*)
17343      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17344      hardcode_libdir_flag_spec='-L$libdir'
17345      hardcode_shlibpath_var=no
17346      ;;
17347
17348    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17349    # support.  Future versions do this automatically, but an explicit c++rt0.o
17350    # does not break anything, and helps significantly (at the cost of a little
17351    # extra space).
17352    freebsd2.2*)
17353      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17354      hardcode_libdir_flag_spec='-R$libdir'
17355      hardcode_direct=yes
17356      hardcode_shlibpath_var=no
17357      ;;
17358
17359    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17360    freebsd2.*)
17361      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17362      hardcode_direct=yes
17363      hardcode_minus_L=yes
17364      hardcode_shlibpath_var=no
17365      ;;
17366
17367    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17368    freebsd* | dragonfly* | midnightbsd*)
17369      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17370      hardcode_libdir_flag_spec='-R$libdir'
17371      hardcode_direct=yes
17372      hardcode_shlibpath_var=no
17373      ;;
17374
17375    hpux9*)
17376      if test yes = "$GCC"; then
17377	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'
17378      else
17379	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'
17380      fi
17381      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17382      hardcode_libdir_separator=:
17383      hardcode_direct=yes
17384
17385      # hardcode_minus_L: Not really in the search PATH,
17386      # but as the default location of the library.
17387      hardcode_minus_L=yes
17388      export_dynamic_flag_spec='$wl-E'
17389      ;;
17390
17391    hpux10*)
17392      if test yes,no = "$GCC,$with_gnu_ld"; then
17393	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17394      else
17395	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17396      fi
17397      if test no = "$with_gnu_ld"; then
17398	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17399	hardcode_libdir_separator=:
17400	hardcode_direct=yes
17401	hardcode_direct_absolute=yes
17402	export_dynamic_flag_spec='$wl-E'
17403	# hardcode_minus_L: Not really in the search PATH,
17404	# but as the default location of the library.
17405	hardcode_minus_L=yes
17406      fi
17407      ;;
17408
17409    hpux11*)
17410      if test yes,no = "$GCC,$with_gnu_ld"; then
17411	case $host_cpu in
17412	hppa*64*)
17413	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17414	  ;;
17415	ia64*)
17416	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17417	  ;;
17418	*)
17419	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17420	  ;;
17421	esac
17422      else
17423	case $host_cpu in
17424	hppa*64*)
17425	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17426	  ;;
17427	ia64*)
17428	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17429	  ;;
17430	*)
17431
17432	  # Older versions of the 11.00 compiler do not understand -b yet
17433	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17434	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17435printf %s "checking if $CC understands -b... " >&6; }
17436if test ${lt_cv_prog_compiler__b+y}
17437then :
17438  printf %s "(cached) " >&6
17439else case e in #(
17440  e) lt_cv_prog_compiler__b=no
17441   save_LDFLAGS=$LDFLAGS
17442   LDFLAGS="$LDFLAGS -b"
17443   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17444   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17445     # The linker can only warn and ignore the option if not recognized
17446     # So say no if there are warnings
17447     if test -s conftest.err; then
17448       # Append any errors to the config.log.
17449       cat conftest.err 1>&5
17450       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17451       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17452       if diff conftest.exp conftest.er2 >/dev/null; then
17453         lt_cv_prog_compiler__b=yes
17454       fi
17455     else
17456       lt_cv_prog_compiler__b=yes
17457     fi
17458   fi
17459   $RM -r conftest*
17460   LDFLAGS=$save_LDFLAGS
17461 ;;
17462esac
17463fi
17464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17465printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17466
17467if test yes = "$lt_cv_prog_compiler__b"; then
17468    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17469else
17470    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17471fi
17472
17473	  ;;
17474	esac
17475      fi
17476      if test no = "$with_gnu_ld"; then
17477	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17478	hardcode_libdir_separator=:
17479
17480	case $host_cpu in
17481	hppa*64*|ia64*)
17482	  hardcode_direct=no
17483	  hardcode_shlibpath_var=no
17484	  ;;
17485	*)
17486	  hardcode_direct=yes
17487	  hardcode_direct_absolute=yes
17488	  export_dynamic_flag_spec='$wl-E'
17489
17490	  # hardcode_minus_L: Not really in the search PATH,
17491	  # but as the default location of the library.
17492	  hardcode_minus_L=yes
17493	  ;;
17494	esac
17495      fi
17496      ;;
17497
17498    irix5* | irix6* | nonstopux*)
17499      if test yes = "$GCC"; then
17500	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'
17501	# Try to use the -exported_symbol ld option, if it does not
17502	# work, assume that -exports_file does not work either and
17503	# implicitly export all symbols.
17504	# This should be the same for all languages, so no per-tag cache variable.
17505	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17506printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17507if test ${lt_cv_irix_exported_symbol+y}
17508then :
17509  printf %s "(cached) " >&6
17510else case e in #(
17511  e) save_LDFLAGS=$LDFLAGS
17512	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17513	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17514/* end confdefs.h.  */
17515int foo (void) { return 0; }
17516_ACEOF
17517if ac_fn_c_try_link "$LINENO"
17518then :
17519  lt_cv_irix_exported_symbol=yes
17520else case e in #(
17521  e) lt_cv_irix_exported_symbol=no ;;
17522esac
17523fi
17524rm -f core conftest.err conftest.$ac_objext conftest.beam \
17525    conftest$ac_exeext conftest.$ac_ext
17526           LDFLAGS=$save_LDFLAGS ;;
17527esac
17528fi
17529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17530printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17531	if test yes = "$lt_cv_irix_exported_symbol"; then
17532          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'
17533	fi
17534      else
17535	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'
17536	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'
17537      fi
17538      archive_cmds_need_lc='no'
17539      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17540      hardcode_libdir_separator=:
17541      inherit_rpath=yes
17542      link_all_deplibs=yes
17543      ;;
17544
17545    linux*)
17546      case $cc_basename in
17547      tcc*)
17548	# Fabrice Bellard et al's Tiny C Compiler
17549	ld_shlibs=yes
17550	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17551	;;
17552      esac
17553      ;;
17554
17555    netbsd*)
17556      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17557	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17558      else
17559	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17560      fi
17561      hardcode_libdir_flag_spec='-R$libdir'
17562      hardcode_direct=yes
17563      hardcode_shlibpath_var=no
17564      ;;
17565
17566    newsos6)
17567      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17568      hardcode_direct=yes
17569      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17570      hardcode_libdir_separator=:
17571      hardcode_shlibpath_var=no
17572      ;;
17573
17574    *nto* | *qnx*)
17575      ;;
17576
17577    openbsd* | bitrig*)
17578      if test -f /usr/libexec/ld.so; then
17579	hardcode_direct=yes
17580	hardcode_shlibpath_var=no
17581	hardcode_direct_absolute=yes
17582	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17583	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17584	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17585	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17586	  export_dynamic_flag_spec='$wl-E'
17587	else
17588	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17589	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17590	fi
17591      else
17592	ld_shlibs=no
17593      fi
17594      ;;
17595
17596    os2*)
17597      hardcode_libdir_flag_spec='-L$libdir'
17598      hardcode_minus_L=yes
17599      allow_undefined_flag=unsupported
17600      shrext_cmds=.dll
17601      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17602	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17603	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17604	$ECHO EXPORTS >> $output_objdir/$libname.def~
17605	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17606	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17607	emximp -o $lib $output_objdir/$libname.def'
17608      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17609	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17610	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17611	$ECHO EXPORTS >> $output_objdir/$libname.def~
17612	prefix_cmds="$SED"~
17613	if test EXPORTS = "`$SED 1q $export_symbols`"; then
17614	  prefix_cmds="$prefix_cmds -e 1d";
17615	fi~
17616	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17617	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17618	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17619	emximp -o $lib $output_objdir/$libname.def'
17620      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17621      enable_shared_with_static_runtimes=yes
17622      file_list_spec='@'
17623      ;;
17624
17625    osf3*)
17626      if test yes = "$GCC"; then
17627	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17628	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'
17629      else
17630	allow_undefined_flag=' -expect_unresolved \*'
17631	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'
17632      fi
17633      archive_cmds_need_lc='no'
17634      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17635      hardcode_libdir_separator=:
17636      ;;
17637
17638    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17639      if test yes = "$GCC"; then
17640	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17641	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'
17642	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17643      else
17644	allow_undefined_flag=' -expect_unresolved \*'
17645	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'
17646	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~
17647          $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'
17648
17649	# Both c and cxx compiler support -rpath directly
17650	hardcode_libdir_flag_spec='-rpath $libdir'
17651      fi
17652      archive_cmds_need_lc='no'
17653      hardcode_libdir_separator=:
17654      ;;
17655
17656    solaris*)
17657      no_undefined_flag=' -z defs'
17658      if test yes = "$GCC"; then
17659	wlarc='$wl'
17660	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17661	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17662          $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'
17663      else
17664	case `$CC -V 2>&1` in
17665	*"Compilers 5.0"*)
17666	  wlarc=''
17667	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17668	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17669            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17670	  ;;
17671	*)
17672	  wlarc='$wl'
17673	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17674	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17675            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17676	  ;;
17677	esac
17678      fi
17679      hardcode_libdir_flag_spec='-R$libdir'
17680      hardcode_shlibpath_var=no
17681      case $host_os in
17682      solaris2.[0-5] | solaris2.[0-5].*) ;;
17683      *)
17684	# The compiler driver will combine and reorder linker options,
17685	# but understands '-z linker_flag'.  GCC discards it without '$wl',
17686	# but is careful enough not to reorder.
17687	# Supported since Solaris 2.6 (maybe 2.5.1?)
17688	if test yes = "$GCC"; then
17689	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17690	else
17691	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17692	fi
17693	;;
17694      esac
17695      link_all_deplibs=yes
17696      ;;
17697
17698    sunos4*)
17699      if test sequent = "$host_vendor"; then
17700	# Use $CC to link under sequent, because it throws in some extra .o
17701	# files that make .init and .fini sections work.
17702	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17703      else
17704	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17705      fi
17706      hardcode_libdir_flag_spec='-L$libdir'
17707      hardcode_direct=yes
17708      hardcode_minus_L=yes
17709      hardcode_shlibpath_var=no
17710      ;;
17711
17712    sysv4)
17713      case $host_vendor in
17714	sni)
17715	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17716	  hardcode_direct=yes # is this really true???
17717	;;
17718	siemens)
17719	  ## LD is ld it makes a PLAMLIB
17720	  ## CC just makes a GrossModule.
17721	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17722	  reload_cmds='$CC -r -o $output$reload_objs'
17723	  hardcode_direct=no
17724        ;;
17725	motorola)
17726	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17727	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17728	;;
17729      esac
17730      runpath_var='LD_RUN_PATH'
17731      hardcode_shlibpath_var=no
17732      ;;
17733
17734    sysv4.3*)
17735      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17736      hardcode_shlibpath_var=no
17737      export_dynamic_flag_spec='-Bexport'
17738      ;;
17739
17740    sysv4*MP*)
17741      if test -d /usr/nec; then
17742	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17743	hardcode_shlibpath_var=no
17744	runpath_var=LD_RUN_PATH
17745	hardcode_runpath_var=yes
17746	ld_shlibs=yes
17747      fi
17748      ;;
17749
17750    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17751      no_undefined_flag='$wl-z,text'
17752      archive_cmds_need_lc=no
17753      hardcode_shlibpath_var=no
17754      runpath_var='LD_RUN_PATH'
17755
17756      if test yes = "$GCC"; then
17757	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17758	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17759      else
17760	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17761	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17762      fi
17763      ;;
17764
17765    sysv5* | sco3.2v5* | sco5v6*)
17766      # Note: We CANNOT use -z defs as we might desire, because we do not
17767      # link with -lc, and that would cause any symbols used from libc to
17768      # always be unresolved, which means just about no library would
17769      # ever link correctly.  If we're not using GNU ld we use -z text
17770      # though, which does catch some bad symbols but isn't as heavy-handed
17771      # as -z defs.
17772      no_undefined_flag='$wl-z,text'
17773      allow_undefined_flag='$wl-z,nodefs'
17774      archive_cmds_need_lc=no
17775      hardcode_shlibpath_var=no
17776      hardcode_libdir_flag_spec='$wl-R,$libdir'
17777      hardcode_libdir_separator=':'
17778      link_all_deplibs=yes
17779      export_dynamic_flag_spec='$wl-Bexport'
17780      runpath_var='LD_RUN_PATH'
17781
17782      if test yes = "$GCC"; then
17783	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17784	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17785      else
17786	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17787	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17788      fi
17789      ;;
17790
17791    uts4*)
17792      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17793      hardcode_libdir_flag_spec='-L$libdir'
17794      hardcode_shlibpath_var=no
17795      ;;
17796
17797    *)
17798      ld_shlibs=no
17799      ;;
17800    esac
17801
17802    if test sni = "$host_vendor"; then
17803      case $host in
17804      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17805	export_dynamic_flag_spec='$wl-Blargedynsym'
17806	;;
17807      esac
17808    fi
17809  fi
17810
17811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17812printf "%s\n" "$ld_shlibs" >&6; }
17813test no = "$ld_shlibs" && can_build_shared=no
17814
17815with_gnu_ld=$with_gnu_ld
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831#
17832# Do we need to explicitly link libc?
17833#
17834case "x$archive_cmds_need_lc" in
17835x|xyes)
17836  # Assume -lc should be added
17837  archive_cmds_need_lc=yes
17838
17839  if test yes,yes = "$GCC,$enable_shared"; then
17840    case $archive_cmds in
17841    *'~'*)
17842      # FIXME: we may have to deal with multi-command sequences.
17843      ;;
17844    '$CC '*)
17845      # Test whether the compiler implicitly links with -lc since on some
17846      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17847      # to ld, don't add -lc before -lgcc.
17848      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17849printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17850if test ${lt_cv_archive_cmds_need_lc+y}
17851then :
17852  printf %s "(cached) " >&6
17853else case e in #(
17854  e) $RM conftest*
17855	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17856
17857	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17858  (eval $ac_compile) 2>&5
17859  ac_status=$?
17860  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17861  test $ac_status = 0; } 2>conftest.err; then
17862	  soname=conftest
17863	  lib=conftest
17864	  libobjs=conftest.$ac_objext
17865	  deplibs=
17866	  wl=$lt_prog_compiler_wl
17867	  pic_flag=$lt_prog_compiler_pic
17868	  compiler_flags=-v
17869	  linker_flags=-v
17870	  verstring=
17871	  output_objdir=.
17872	  libname=conftest
17873	  lt_save_allow_undefined_flag=$allow_undefined_flag
17874	  allow_undefined_flag=
17875	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17876  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17877  ac_status=$?
17878  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17879  test $ac_status = 0; }
17880	  then
17881	    lt_cv_archive_cmds_need_lc=no
17882	  else
17883	    lt_cv_archive_cmds_need_lc=yes
17884	  fi
17885	  allow_undefined_flag=$lt_save_allow_undefined_flag
17886	else
17887	  cat conftest.err 1>&5
17888	fi
17889	$RM conftest*
17890	 ;;
17891esac
17892fi
17893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17894printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17895      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17896      ;;
17897    esac
17898  fi
17899  ;;
17900esac
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18054printf %s "checking dynamic linker characteristics... " >&6; }
18055
18056if test yes = "$GCC"; then
18057  case $host_os in
18058    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
18059    *) lt_awk_arg='/^libraries:/' ;;
18060  esac
18061  case $host_os in
18062    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
18063    *) lt_sed_strip_eq='s|=/|/|g' ;;
18064  esac
18065  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18066  case $lt_search_path_spec in
18067  *\;*)
18068    # if the path contains ";" then we assume it to be the separator
18069    # otherwise default to the standard path separator (i.e. ":") - it is
18070    # assumed that no part of a normal pathname contains ";" but that should
18071    # okay in the real world where ";" in dirpaths is itself problematic.
18072    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18073    ;;
18074  *)
18075    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18076    ;;
18077  esac
18078  # Ok, now we have the path, separated by spaces, we can step through it
18079  # and add multilib dir if necessary...
18080  lt_tmp_lt_search_path_spec=
18081  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18082  # ...but if some path component already ends with the multilib dir we assume
18083  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
18084  case "$lt_multi_os_dir; $lt_search_path_spec " in
18085  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
18086    lt_multi_os_dir=
18087    ;;
18088  esac
18089  for lt_sys_path in $lt_search_path_spec; do
18090    if test -d "$lt_sys_path$lt_multi_os_dir"; then
18091      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
18092    elif test -n "$lt_multi_os_dir"; then
18093      test -d "$lt_sys_path" && \
18094	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18095    fi
18096  done
18097  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18098BEGIN {RS = " "; FS = "/|\n";} {
18099  lt_foo = "";
18100  lt_count = 0;
18101  for (lt_i = NF; lt_i > 0; lt_i--) {
18102    if ($lt_i != "" && $lt_i != ".") {
18103      if ($lt_i == "..") {
18104        lt_count++;
18105      } else {
18106        if (lt_count == 0) {
18107          lt_foo = "/" $lt_i lt_foo;
18108        } else {
18109          lt_count--;
18110        }
18111      }
18112    }
18113  }
18114  if (lt_foo != "") { lt_freq[lt_foo]++; }
18115  if (lt_freq[lt_foo] == 1) { print lt_foo; }
18116}'`
18117  # AWK program above erroneously prepends '/' to C:/dos/paths
18118  # for these hosts.
18119  case $host_os in
18120    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18121      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
18122  esac
18123  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18124else
18125  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18126fi
18127library_names_spec=
18128libname_spec='lib$name'
18129soname_spec=
18130shrext_cmds=.so
18131postinstall_cmds=
18132postuninstall_cmds=
18133finish_cmds=
18134finish_eval=
18135shlibpath_var=
18136shlibpath_overrides_runpath=unknown
18137version_type=none
18138dynamic_linker="$host_os ld.so"
18139sys_lib_dlsearch_path_spec="/lib /usr/lib"
18140need_lib_prefix=unknown
18141hardcode_into_libs=no
18142
18143# when you set need_version to no, make sure it does not cause -set_version
18144# flags to be left without arguments
18145need_version=unknown
18146
18147
18148
18149case $host_os in
18150aix3*)
18151  version_type=linux # correct to gnu/linux during the next big refactor
18152  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18153  shlibpath_var=LIBPATH
18154
18155  # AIX 3 has no versioning support, so we append a major version to the name.
18156  soname_spec='$libname$release$shared_ext$major'
18157  ;;
18158
18159aix[4-9]*)
18160  version_type=linux # correct to gnu/linux during the next big refactor
18161  need_lib_prefix=no
18162  need_version=no
18163  hardcode_into_libs=yes
18164  if test ia64 = "$host_cpu"; then
18165    # AIX 5 supports IA64
18166    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18167    shlibpath_var=LD_LIBRARY_PATH
18168  else
18169    # With GCC up to 2.95.x, collect2 would create an import file
18170    # for dependence libraries.  The import file would start with
18171    # the line '#! .'.  This would cause the generated library to
18172    # depend on '.', always an invalid library.  This was fixed in
18173    # development snapshots of GCC prior to 3.0.
18174    case $host_os in
18175      aix4 | aix4.[01] | aix4.[01].*)
18176      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18177	   echo ' yes '
18178	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18179	:
18180      else
18181	can_build_shared=no
18182      fi
18183      ;;
18184    esac
18185    # Using Import Files as archive members, it is possible to support
18186    # filename-based versioning of shared library archives on AIX. While
18187    # this would work for both with and without runtime linking, it will
18188    # prevent static linking of such archives. So we do filename-based
18189    # shared library versioning with .so extension only, which is used
18190    # when both runtime linking and shared linking is enabled.
18191    # Unfortunately, runtime linking may impact performance, so we do
18192    # not want this to be the default eventually. Also, we use the
18193    # versioned .so libs for executables only if there is the -brtl
18194    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
18195    # To allow for filename-based versioning support, we need to create
18196    # libNAME.so.V as an archive file, containing:
18197    # *) an Import File, referring to the versioned filename of the
18198    #    archive as well as the shared archive member, telling the
18199    #    bitwidth (32 or 64) of that shared object, and providing the
18200    #    list of exported symbols of that shared object, eventually
18201    #    decorated with the 'weak' keyword
18202    # *) the shared object with the F_LOADONLY flag set, to really avoid
18203    #    it being seen by the linker.
18204    # At run time we better use the real file rather than another symlink,
18205    # but for link time we create the symlink libNAME.so -> libNAME.so.V
18206
18207    case $with_aix_soname,$aix_use_runtimelinking in
18208    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18209    # soname into executable. Probably we can add versioning support to
18210    # collect2, so additional links can be useful in future.
18211    aix,yes) # traditional libtool
18212      dynamic_linker='AIX unversionable lib.so'
18213      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18214      # instead of lib<name>.a to let people know that these are not
18215      # typical AIX shared libraries.
18216      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18217      ;;
18218    aix,no) # traditional AIX only
18219      dynamic_linker='AIX lib.a(lib.so.V)'
18220      # We preserve .a as extension for shared libraries through AIX4.2
18221      # and later when we are not doing run time linking.
18222      library_names_spec='$libname$release.a $libname.a'
18223      soname_spec='$libname$release$shared_ext$major'
18224      ;;
18225    svr4,*) # full svr4 only
18226      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18227      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18228      # We do not specify a path in Import Files, so LIBPATH fires.
18229      shlibpath_overrides_runpath=yes
18230      ;;
18231    *,yes) # both, prefer svr4
18232      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18233      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18234      # unpreferred sharedlib libNAME.a needs extra handling
18235      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"'
18236      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"'
18237      # We do not specify a path in Import Files, so LIBPATH fires.
18238      shlibpath_overrides_runpath=yes
18239      ;;
18240    *,no) # both, prefer aix
18241      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18242      library_names_spec='$libname$release.a $libname.a'
18243      soname_spec='$libname$release$shared_ext$major'
18244      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18245      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)'
18246      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"'
18247      ;;
18248    esac
18249    shlibpath_var=LIBPATH
18250  fi
18251  ;;
18252
18253amigaos*)
18254  case $host_cpu in
18255  powerpc)
18256    # Since July 2007 AmigaOS4 officially supports .so libraries.
18257    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18258    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18259    ;;
18260  m68k)
18261    library_names_spec='$libname.ixlibrary $libname.a'
18262    # Create ${libname}_ixlibrary.a entries in /sys/libs.
18263    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'
18264    ;;
18265  esac
18266  ;;
18267
18268beos*)
18269  library_names_spec='$libname$shared_ext'
18270  dynamic_linker="$host_os ld.so"
18271  shlibpath_var=LIBRARY_PATH
18272  ;;
18273
18274bsdi[45]*)
18275  version_type=linux # correct to gnu/linux during the next big refactor
18276  need_version=no
18277  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18278  soname_spec='$libname$release$shared_ext$major'
18279  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18280  shlibpath_var=LD_LIBRARY_PATH
18281  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18282  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18283  # the default ld.so.conf also contains /usr/contrib/lib and
18284  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18285  # libtool to hard-code these into programs
18286  ;;
18287
18288cygwin* | mingw* | pw32* | cegcc*)
18289  version_type=windows
18290  shrext_cmds=.dll
18291  need_version=no
18292  need_lib_prefix=no
18293
18294  case $GCC,$cc_basename in
18295  yes,*)
18296    # gcc
18297    library_names_spec='$libname.dll.a'
18298    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18299    postinstall_cmds='base_file=`basename \$file`~
18300      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18301      dldir=$destdir/`dirname \$dlpath`~
18302      test -d \$dldir || mkdir -p \$dldir~
18303      $install_prog $dir/$dlname \$dldir/$dlname~
18304      chmod a+x \$dldir/$dlname~
18305      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18306        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18307      fi'
18308    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18309      dlpath=$dir/\$dldll~
18310       $RM \$dlpath'
18311    shlibpath_overrides_runpath=yes
18312
18313    case $host_os in
18314    cygwin*)
18315      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18316      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18317
18318      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18319      ;;
18320    mingw* | cegcc*)
18321      # MinGW DLLs use traditional 'lib' prefix
18322      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18323      ;;
18324    pw32*)
18325      # pw32 DLLs use 'pw' prefix rather than 'lib'
18326      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18327      ;;
18328    esac
18329    dynamic_linker='Win32 ld.exe'
18330    ;;
18331
18332  *,cl* | *,icl*)
18333    # Native MSVC or ICC
18334    libname_spec='$name'
18335    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18336    library_names_spec='$libname.dll.lib'
18337
18338    case $build_os in
18339    mingw*)
18340      sys_lib_search_path_spec=
18341      lt_save_ifs=$IFS
18342      IFS=';'
18343      for lt_path in $LIB
18344      do
18345        IFS=$lt_save_ifs
18346        # Let DOS variable expansion print the short 8.3 style file name.
18347        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18348        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18349      done
18350      IFS=$lt_save_ifs
18351      # Convert to MSYS style.
18352      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18353      ;;
18354    cygwin*)
18355      # Convert to unix form, then to dos form, then back to unix form
18356      # but this time dos style (no spaces!) so that the unix form looks
18357      # like /cygdrive/c/PROGRA~1:/cygdr...
18358      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18359      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18360      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18361      ;;
18362    *)
18363      sys_lib_search_path_spec=$LIB
18364      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18365        # It is most probably a Windows format PATH.
18366        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18367      else
18368        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18369      fi
18370      # FIXME: find the short name or the path components, as spaces are
18371      # common. (e.g. "Program Files" -> "PROGRA~1")
18372      ;;
18373    esac
18374
18375    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18376    postinstall_cmds='base_file=`basename \$file`~
18377      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18378      dldir=$destdir/`dirname \$dlpath`~
18379      test -d \$dldir || mkdir -p \$dldir~
18380      $install_prog $dir/$dlname \$dldir/$dlname'
18381    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18382      dlpath=$dir/\$dldll~
18383       $RM \$dlpath'
18384    shlibpath_overrides_runpath=yes
18385    dynamic_linker='Win32 link.exe'
18386    ;;
18387
18388  *)
18389    # Assume MSVC and ICC wrapper
18390    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18391    dynamic_linker='Win32 ld.exe'
18392    ;;
18393  esac
18394  # FIXME: first we should search . and the directory the executable is in
18395  shlibpath_var=PATH
18396  ;;
18397
18398darwin* | rhapsody*)
18399  dynamic_linker="$host_os dyld"
18400  version_type=darwin
18401  need_lib_prefix=no
18402  need_version=no
18403  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18404  soname_spec='$libname$release$major$shared_ext'
18405  shlibpath_overrides_runpath=yes
18406  shlibpath_var=DYLD_LIBRARY_PATH
18407  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18408
18409  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18410  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18411  ;;
18412
18413dgux*)
18414  version_type=linux # correct to gnu/linux during the next big refactor
18415  need_lib_prefix=no
18416  need_version=no
18417  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18418  soname_spec='$libname$release$shared_ext$major'
18419  shlibpath_var=LD_LIBRARY_PATH
18420  ;;
18421
18422freebsd* | dragonfly* | midnightbsd*)
18423  # DragonFly does not have aout.  When/if they implement a new
18424  # versioning mechanism, adjust this.
18425  if test -x /usr/bin/objformat; then
18426    objformat=`/usr/bin/objformat`
18427  else
18428    case $host_os in
18429    freebsd[23].*) objformat=aout ;;
18430    *) objformat=elf ;;
18431    esac
18432  fi
18433  version_type=freebsd-$objformat
18434  case $version_type in
18435    freebsd-elf*)
18436      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18437      soname_spec='$libname$release$shared_ext$major'
18438      need_version=no
18439      need_lib_prefix=no
18440      ;;
18441    freebsd-*)
18442      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18443      need_version=yes
18444      ;;
18445  esac
18446  shlibpath_var=LD_LIBRARY_PATH
18447  case $host_os in
18448  freebsd2.*)
18449    shlibpath_overrides_runpath=yes
18450    ;;
18451  freebsd3.[01]* | freebsdelf3.[01]*)
18452    shlibpath_overrides_runpath=yes
18453    hardcode_into_libs=yes
18454    ;;
18455  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18456  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18457    shlibpath_overrides_runpath=no
18458    hardcode_into_libs=yes
18459    ;;
18460  *) # from 4.6 on, and DragonFly
18461    shlibpath_overrides_runpath=yes
18462    hardcode_into_libs=yes
18463    ;;
18464  esac
18465  ;;
18466
18467haiku*)
18468  version_type=linux # correct to gnu/linux during the next big refactor
18469  need_lib_prefix=no
18470  need_version=no
18471  dynamic_linker="$host_os runtime_loader"
18472  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18473  soname_spec='$libname$release$shared_ext$major'
18474  shlibpath_var=LIBRARY_PATH
18475  shlibpath_overrides_runpath=no
18476  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18477  hardcode_into_libs=yes
18478  ;;
18479
18480hpux9* | hpux10* | hpux11*)
18481  # Give a soname corresponding to the major version so that dld.sl refuses to
18482  # link against other versions.
18483  version_type=sunos
18484  need_lib_prefix=no
18485  need_version=no
18486  case $host_cpu in
18487  ia64*)
18488    shrext_cmds='.so'
18489    hardcode_into_libs=yes
18490    dynamic_linker="$host_os dld.so"
18491    shlibpath_var=LD_LIBRARY_PATH
18492    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18493    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18494    soname_spec='$libname$release$shared_ext$major'
18495    if test 32 = "$HPUX_IA64_MODE"; then
18496      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18497      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18498    else
18499      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18500      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18501    fi
18502    ;;
18503  hppa*64*)
18504    shrext_cmds='.sl'
18505    hardcode_into_libs=yes
18506    dynamic_linker="$host_os dld.sl"
18507    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18508    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18509    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18510    soname_spec='$libname$release$shared_ext$major'
18511    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18512    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18513    ;;
18514  *)
18515    shrext_cmds='.sl'
18516    dynamic_linker="$host_os dld.sl"
18517    shlibpath_var=SHLIB_PATH
18518    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18519    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18520    soname_spec='$libname$release$shared_ext$major'
18521    ;;
18522  esac
18523  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18524  postinstall_cmds='chmod 555 $lib'
18525  # or fails outright, so override atomically:
18526  install_override_mode=555
18527  ;;
18528
18529interix[3-9]*)
18530  version_type=linux # correct to gnu/linux during the next big refactor
18531  need_lib_prefix=no
18532  need_version=no
18533  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18534  soname_spec='$libname$release$shared_ext$major'
18535  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18536  shlibpath_var=LD_LIBRARY_PATH
18537  shlibpath_overrides_runpath=no
18538  hardcode_into_libs=yes
18539  ;;
18540
18541irix5* | irix6* | nonstopux*)
18542  case $host_os in
18543    nonstopux*) version_type=nonstopux ;;
18544    *)
18545	if test yes = "$lt_cv_prog_gnu_ld"; then
18546		version_type=linux # correct to gnu/linux during the next big refactor
18547	else
18548		version_type=irix
18549	fi ;;
18550  esac
18551  need_lib_prefix=no
18552  need_version=no
18553  soname_spec='$libname$release$shared_ext$major'
18554  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18555  case $host_os in
18556  irix5* | nonstopux*)
18557    libsuff= shlibsuff=
18558    ;;
18559  *)
18560    case $LD in # libtool.m4 will add one of these switches to LD
18561    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18562      libsuff= shlibsuff= libmagic=32-bit;;
18563    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18564      libsuff=32 shlibsuff=N32 libmagic=N32;;
18565    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18566      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18567    *) libsuff= shlibsuff= libmagic=never-match;;
18568    esac
18569    ;;
18570  esac
18571  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18572  shlibpath_overrides_runpath=no
18573  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18574  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18575  hardcode_into_libs=yes
18576  ;;
18577
18578# No shared lib support for Linux oldld, aout, or coff.
18579linux*oldld* | linux*aout* | linux*coff*)
18580  dynamic_linker=no
18581  ;;
18582
18583linux*android*)
18584  version_type=none # Android doesn't support versioned libraries.
18585  need_lib_prefix=no
18586  need_version=no
18587  library_names_spec='$libname$release$shared_ext'
18588  soname_spec='$libname$release$shared_ext'
18589  finish_cmds=
18590  shlibpath_var=LD_LIBRARY_PATH
18591  shlibpath_overrides_runpath=yes
18592
18593  # This implies no fast_install, which is unacceptable.
18594  # Some rework will be needed to allow for fast_install
18595  # before this can be enabled.
18596  hardcode_into_libs=yes
18597
18598  dynamic_linker='Android linker'
18599  # Don't embed -rpath directories since the linker doesn't support them.
18600  hardcode_libdir_flag_spec='-L$libdir'
18601  ;;
18602
18603# This must be glibc/ELF.
18604linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18605  version_type=linux # correct to gnu/linux during the next big refactor
18606  need_lib_prefix=no
18607  need_version=no
18608  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18609  soname_spec='$libname$release$shared_ext$major'
18610  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18611  shlibpath_var=LD_LIBRARY_PATH
18612  shlibpath_overrides_runpath=no
18613
18614  # Some binutils ld are patched to set DT_RUNPATH
18615  if test ${lt_cv_shlibpath_overrides_runpath+y}
18616then :
18617  printf %s "(cached) " >&6
18618else case e in #(
18619  e) lt_cv_shlibpath_overrides_runpath=no
18620    save_LDFLAGS=$LDFLAGS
18621    save_libdir=$libdir
18622    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18623	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18624    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18625/* end confdefs.h.  */
18626
18627int
18628main (void)
18629{
18630
18631  ;
18632  return 0;
18633}
18634_ACEOF
18635if ac_fn_c_try_link "$LINENO"
18636then :
18637  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18638then :
18639  lt_cv_shlibpath_overrides_runpath=yes
18640fi
18641fi
18642rm -f core conftest.err conftest.$ac_objext conftest.beam \
18643    conftest$ac_exeext conftest.$ac_ext
18644    LDFLAGS=$save_LDFLAGS
18645    libdir=$save_libdir
18646     ;;
18647esac
18648fi
18649
18650  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18651
18652  # This implies no fast_install, which is unacceptable.
18653  # Some rework will be needed to allow for fast_install
18654  # before this can be enabled.
18655  hardcode_into_libs=yes
18656
18657  # Ideally, we could use ldconfig to report *all* directores which are
18658  # searched for libraries, however this is still not possible.  Aside from not
18659  # being certain /sbin/ldconfig is available, command
18660  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18661  # even though it is searched at run-time.  Try to do the best guess by
18662  # appending ld.so.conf contents (and includes) to the search path.
18663  if test -f /etc/ld.so.conf; then
18664    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' ' '`
18665    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18666  fi
18667
18668  # We used to test for /lib/ld.so.1 and disable shared libraries on
18669  # powerpc, because MkLinux only supported shared libraries with the
18670  # GNU dynamic linker.  Since this was broken with cross compilers,
18671  # most powerpc-linux boxes support dynamic linking these days and
18672  # people can always --disable-shared, the test was removed, and we
18673  # assume the GNU/Linux dynamic linker is in use.
18674  dynamic_linker='GNU/Linux ld.so'
18675  ;;
18676
18677netbsd*)
18678  version_type=sunos
18679  need_lib_prefix=no
18680  need_version=no
18681  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18682    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18683    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18684    dynamic_linker='NetBSD (a.out) ld.so'
18685  else
18686    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18687    soname_spec='$libname$release$shared_ext$major'
18688    dynamic_linker='NetBSD ld.elf_so'
18689  fi
18690  shlibpath_var=LD_LIBRARY_PATH
18691  shlibpath_overrides_runpath=yes
18692  hardcode_into_libs=yes
18693  ;;
18694
18695newsos6)
18696  version_type=linux # correct to gnu/linux during the next big refactor
18697  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18698  shlibpath_var=LD_LIBRARY_PATH
18699  shlibpath_overrides_runpath=yes
18700  ;;
18701
18702*nto* | *qnx*)
18703  version_type=qnx
18704  need_lib_prefix=no
18705  need_version=no
18706  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18707  soname_spec='$libname$release$shared_ext$major'
18708  shlibpath_var=LD_LIBRARY_PATH
18709  shlibpath_overrides_runpath=no
18710  hardcode_into_libs=yes
18711  dynamic_linker='ldqnx.so'
18712  ;;
18713
18714openbsd* | bitrig*)
18715  version_type=sunos
18716  sys_lib_dlsearch_path_spec=/usr/lib
18717  need_lib_prefix=no
18718  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18719    need_version=no
18720  else
18721    need_version=yes
18722  fi
18723  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18724  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18725  shlibpath_var=LD_LIBRARY_PATH
18726  shlibpath_overrides_runpath=yes
18727  ;;
18728
18729os2*)
18730  libname_spec='$name'
18731  version_type=windows
18732  shrext_cmds=.dll
18733  need_version=no
18734  need_lib_prefix=no
18735  # OS/2 can only load a DLL with a base name of 8 characters or less.
18736  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18737    v=$($ECHO $release$versuffix | tr -d .-);
18738    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18739    $ECHO $n$v`$shared_ext'
18740  library_names_spec='${libname}_dll.$libext'
18741  dynamic_linker='OS/2 ld.exe'
18742  shlibpath_var=BEGINLIBPATH
18743  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18744  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18745  postinstall_cmds='base_file=`basename \$file`~
18746    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18747    dldir=$destdir/`dirname \$dlpath`~
18748    test -d \$dldir || mkdir -p \$dldir~
18749    $install_prog $dir/$dlname \$dldir/$dlname~
18750    chmod a+x \$dldir/$dlname~
18751    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18752      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18753    fi'
18754  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18755    dlpath=$dir/\$dldll~
18756    $RM \$dlpath'
18757  ;;
18758
18759osf3* | osf4* | osf5*)
18760  version_type=osf
18761  need_lib_prefix=no
18762  need_version=no
18763  soname_spec='$libname$release$shared_ext$major'
18764  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18765  shlibpath_var=LD_LIBRARY_PATH
18766  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18767  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18768  ;;
18769
18770rdos*)
18771  dynamic_linker=no
18772  ;;
18773
18774solaris*)
18775  version_type=linux # correct to gnu/linux during the next big refactor
18776  need_lib_prefix=no
18777  need_version=no
18778  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18779  soname_spec='$libname$release$shared_ext$major'
18780  shlibpath_var=LD_LIBRARY_PATH
18781  shlibpath_overrides_runpath=yes
18782  hardcode_into_libs=yes
18783  # ldd complains unless libraries are executable
18784  postinstall_cmds='chmod +x $lib'
18785  ;;
18786
18787sunos4*)
18788  version_type=sunos
18789  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18790  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18791  shlibpath_var=LD_LIBRARY_PATH
18792  shlibpath_overrides_runpath=yes
18793  if test yes = "$with_gnu_ld"; then
18794    need_lib_prefix=no
18795  fi
18796  need_version=yes
18797  ;;
18798
18799sysv4 | sysv4.3*)
18800  version_type=linux # correct to gnu/linux during the next big refactor
18801  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18802  soname_spec='$libname$release$shared_ext$major'
18803  shlibpath_var=LD_LIBRARY_PATH
18804  case $host_vendor in
18805    sni)
18806      shlibpath_overrides_runpath=no
18807      need_lib_prefix=no
18808      runpath_var=LD_RUN_PATH
18809      ;;
18810    siemens)
18811      need_lib_prefix=no
18812      ;;
18813    motorola)
18814      need_lib_prefix=no
18815      need_version=no
18816      shlibpath_overrides_runpath=no
18817      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18818      ;;
18819  esac
18820  ;;
18821
18822sysv4*MP*)
18823  if test -d /usr/nec; then
18824    version_type=linux # correct to gnu/linux during the next big refactor
18825    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18826    soname_spec='$libname$shared_ext.$major'
18827    shlibpath_var=LD_LIBRARY_PATH
18828  fi
18829  ;;
18830
18831sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18832  version_type=sco
18833  need_lib_prefix=no
18834  need_version=no
18835  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18836  soname_spec='$libname$release$shared_ext$major'
18837  shlibpath_var=LD_LIBRARY_PATH
18838  shlibpath_overrides_runpath=yes
18839  hardcode_into_libs=yes
18840  if test yes = "$with_gnu_ld"; then
18841    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18842  else
18843    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18844    case $host_os in
18845      sco3.2v5*)
18846        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18847	;;
18848    esac
18849  fi
18850  sys_lib_dlsearch_path_spec='/usr/lib'
18851  ;;
18852
18853tpf*)
18854  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18855  version_type=linux # correct to gnu/linux during the next big refactor
18856  need_lib_prefix=no
18857  need_version=no
18858  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18859  shlibpath_var=LD_LIBRARY_PATH
18860  shlibpath_overrides_runpath=no
18861  hardcode_into_libs=yes
18862  ;;
18863
18864uts4*)
18865  version_type=linux # correct to gnu/linux during the next big refactor
18866  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18867  soname_spec='$libname$release$shared_ext$major'
18868  shlibpath_var=LD_LIBRARY_PATH
18869  ;;
18870
18871*)
18872  dynamic_linker=no
18873  ;;
18874esac
18875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18876printf "%s\n" "$dynamic_linker" >&6; }
18877test no = "$dynamic_linker" && can_build_shared=no
18878
18879variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18880if test yes = "$GCC"; then
18881  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18882fi
18883
18884if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18885  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18886fi
18887
18888if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18889  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18890fi
18891
18892# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18893configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18894
18895# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18896func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18897
18898# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18899configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18998printf %s "checking how to hardcode library paths into programs... " >&6; }
18999hardcode_action=
19000if test -n "$hardcode_libdir_flag_spec" ||
19001   test -n "$runpath_var" ||
19002   test yes = "$hardcode_automatic"; then
19003
19004  # We can hardcode non-existent directories.
19005  if test no != "$hardcode_direct" &&
19006     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19007     # have to relink, otherwise we might link with an installed library
19008     # when we should be linking with a yet-to-be-installed one
19009     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
19010     test no != "$hardcode_minus_L"; then
19011    # Linking always hardcodes the temporary library directory.
19012    hardcode_action=relink
19013  else
19014    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19015    hardcode_action=immediate
19016  fi
19017else
19018  # We cannot hardcode anything, or else we can only hardcode existing
19019  # directories.
19020  hardcode_action=unsupported
19021fi
19022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19023printf "%s\n" "$hardcode_action" >&6; }
19024
19025if test relink = "$hardcode_action" ||
19026   test yes = "$inherit_rpath"; then
19027  # Fast installation is not supported
19028  enable_fast_install=no
19029elif test yes = "$shlibpath_overrides_runpath" ||
19030     test no = "$enable_shared"; then
19031  # Fast installation is not necessary
19032  enable_fast_install=needless
19033fi
19034
19035
19036
19037
19038
19039
19040  if test yes != "$enable_dlopen"; then
19041  enable_dlopen=unknown
19042  enable_dlopen_self=unknown
19043  enable_dlopen_self_static=unknown
19044else
19045  lt_cv_dlopen=no
19046  lt_cv_dlopen_libs=
19047
19048  case $host_os in
19049  beos*)
19050    lt_cv_dlopen=load_add_on
19051    lt_cv_dlopen_libs=
19052    lt_cv_dlopen_self=yes
19053    ;;
19054
19055  mingw* | pw32* | cegcc*)
19056    lt_cv_dlopen=LoadLibrary
19057    lt_cv_dlopen_libs=
19058    ;;
19059
19060  cygwin*)
19061    lt_cv_dlopen=dlopen
19062    lt_cv_dlopen_libs=
19063    ;;
19064
19065  darwin*)
19066    # if libdl is installed we need to link against it
19067    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19068printf %s "checking for dlopen in -ldl... " >&6; }
19069if test ${ac_cv_lib_dl_dlopen+y}
19070then :
19071  printf %s "(cached) " >&6
19072else case e in #(
19073  e) ac_check_lib_save_LIBS=$LIBS
19074LIBS="-ldl  $LIBS"
19075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19076/* end confdefs.h.  */
19077
19078/* Override any GCC internal prototype to avoid an error.
19079   Use char because int might match the return type of a GCC
19080   builtin and then its argument prototype would still apply.
19081   The 'extern "C"' is for builds by C++ compilers;
19082   although this is not generally supported in C code supporting it here
19083   has little cost and some practical benefit (sr 110532).  */
19084#ifdef __cplusplus
19085extern "C"
19086#endif
19087char dlopen (void);
19088int
19089main (void)
19090{
19091return dlopen ();
19092  ;
19093  return 0;
19094}
19095_ACEOF
19096if ac_fn_c_try_link "$LINENO"
19097then :
19098  ac_cv_lib_dl_dlopen=yes
19099else case e in #(
19100  e) ac_cv_lib_dl_dlopen=no ;;
19101esac
19102fi
19103rm -f core conftest.err conftest.$ac_objext conftest.beam \
19104    conftest$ac_exeext conftest.$ac_ext
19105LIBS=$ac_check_lib_save_LIBS ;;
19106esac
19107fi
19108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19109printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
19110if test "x$ac_cv_lib_dl_dlopen" = xyes
19111then :
19112  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
19113else case e in #(
19114  e)
19115    lt_cv_dlopen=dyld
19116    lt_cv_dlopen_libs=
19117    lt_cv_dlopen_self=yes
19118     ;;
19119esac
19120fi
19121
19122    ;;
19123
19124  tpf*)
19125    # Don't try to run any link tests for TPF.  We know it's impossible
19126    # because TPF is a cross-compiler, and we know how we open DSOs.
19127    lt_cv_dlopen=dlopen
19128    lt_cv_dlopen_libs=
19129    lt_cv_dlopen_self=no
19130    ;;
19131
19132  *)
19133    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19134if test "x$ac_cv_func_shl_load" = xyes
19135then :
19136  lt_cv_dlopen=shl_load
19137else case e in #(
19138  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19139printf %s "checking for shl_load in -ldld... " >&6; }
19140if test ${ac_cv_lib_dld_shl_load+y}
19141then :
19142  printf %s "(cached) " >&6
19143else case e in #(
19144  e) ac_check_lib_save_LIBS=$LIBS
19145LIBS="-ldld  $LIBS"
19146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19147/* end confdefs.h.  */
19148
19149/* Override any GCC internal prototype to avoid an error.
19150   Use char because int might match the return type of a GCC
19151   builtin and then its argument prototype would still apply.
19152   The 'extern "C"' is for builds by C++ compilers;
19153   although this is not generally supported in C code supporting it here
19154   has little cost and some practical benefit (sr 110532).  */
19155#ifdef __cplusplus
19156extern "C"
19157#endif
19158char shl_load (void);
19159int
19160main (void)
19161{
19162return shl_load ();
19163  ;
19164  return 0;
19165}
19166_ACEOF
19167if ac_fn_c_try_link "$LINENO"
19168then :
19169  ac_cv_lib_dld_shl_load=yes
19170else case e in #(
19171  e) ac_cv_lib_dld_shl_load=no ;;
19172esac
19173fi
19174rm -f core conftest.err conftest.$ac_objext conftest.beam \
19175    conftest$ac_exeext conftest.$ac_ext
19176LIBS=$ac_check_lib_save_LIBS ;;
19177esac
19178fi
19179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19180printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
19181if test "x$ac_cv_lib_dld_shl_load" = xyes
19182then :
19183  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
19184else case e in #(
19185  e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19186if test "x$ac_cv_func_dlopen" = xyes
19187then :
19188  lt_cv_dlopen=dlopen
19189else case e in #(
19190  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19191printf %s "checking for dlopen in -ldl... " >&6; }
19192if test ${ac_cv_lib_dl_dlopen+y}
19193then :
19194  printf %s "(cached) " >&6
19195else case e in #(
19196  e) ac_check_lib_save_LIBS=$LIBS
19197LIBS="-ldl  $LIBS"
19198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19199/* end confdefs.h.  */
19200
19201/* Override any GCC internal prototype to avoid an error.
19202   Use char because int might match the return type of a GCC
19203   builtin and then its argument prototype would still apply.
19204   The 'extern "C"' is for builds by C++ compilers;
19205   although this is not generally supported in C code supporting it here
19206   has little cost and some practical benefit (sr 110532).  */
19207#ifdef __cplusplus
19208extern "C"
19209#endif
19210char dlopen (void);
19211int
19212main (void)
19213{
19214return dlopen ();
19215  ;
19216  return 0;
19217}
19218_ACEOF
19219if ac_fn_c_try_link "$LINENO"
19220then :
19221  ac_cv_lib_dl_dlopen=yes
19222else case e in #(
19223  e) ac_cv_lib_dl_dlopen=no ;;
19224esac
19225fi
19226rm -f core conftest.err conftest.$ac_objext conftest.beam \
19227    conftest$ac_exeext conftest.$ac_ext
19228LIBS=$ac_check_lib_save_LIBS ;;
19229esac
19230fi
19231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19232printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
19233if test "x$ac_cv_lib_dl_dlopen" = xyes
19234then :
19235  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
19236else case e in #(
19237  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19238printf %s "checking for dlopen in -lsvld... " >&6; }
19239if test ${ac_cv_lib_svld_dlopen+y}
19240then :
19241  printf %s "(cached) " >&6
19242else case e in #(
19243  e) ac_check_lib_save_LIBS=$LIBS
19244LIBS="-lsvld  $LIBS"
19245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19246/* end confdefs.h.  */
19247
19248/* Override any GCC internal prototype to avoid an error.
19249   Use char because int might match the return type of a GCC
19250   builtin and then its argument prototype would still apply.
19251   The 'extern "C"' is for builds by C++ compilers;
19252   although this is not generally supported in C code supporting it here
19253   has little cost and some practical benefit (sr 110532).  */
19254#ifdef __cplusplus
19255extern "C"
19256#endif
19257char dlopen (void);
19258int
19259main (void)
19260{
19261return dlopen ();
19262  ;
19263  return 0;
19264}
19265_ACEOF
19266if ac_fn_c_try_link "$LINENO"
19267then :
19268  ac_cv_lib_svld_dlopen=yes
19269else case e in #(
19270  e) ac_cv_lib_svld_dlopen=no ;;
19271esac
19272fi
19273rm -f core conftest.err conftest.$ac_objext conftest.beam \
19274    conftest$ac_exeext conftest.$ac_ext
19275LIBS=$ac_check_lib_save_LIBS ;;
19276esac
19277fi
19278{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19279printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
19280if test "x$ac_cv_lib_svld_dlopen" = xyes
19281then :
19282  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
19283else case e in #(
19284  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19285printf %s "checking for dld_link in -ldld... " >&6; }
19286if test ${ac_cv_lib_dld_dld_link+y}
19287then :
19288  printf %s "(cached) " >&6
19289else case e in #(
19290  e) ac_check_lib_save_LIBS=$LIBS
19291LIBS="-ldld  $LIBS"
19292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19293/* end confdefs.h.  */
19294
19295/* Override any GCC internal prototype to avoid an error.
19296   Use char because int might match the return type of a GCC
19297   builtin and then its argument prototype would still apply.
19298   The 'extern "C"' is for builds by C++ compilers;
19299   although this is not generally supported in C code supporting it here
19300   has little cost and some practical benefit (sr 110532).  */
19301#ifdef __cplusplus
19302extern "C"
19303#endif
19304char dld_link (void);
19305int
19306main (void)
19307{
19308return dld_link ();
19309  ;
19310  return 0;
19311}
19312_ACEOF
19313if ac_fn_c_try_link "$LINENO"
19314then :
19315  ac_cv_lib_dld_dld_link=yes
19316else case e in #(
19317  e) ac_cv_lib_dld_dld_link=no ;;
19318esac
19319fi
19320rm -f core conftest.err conftest.$ac_objext conftest.beam \
19321    conftest$ac_exeext conftest.$ac_ext
19322LIBS=$ac_check_lib_save_LIBS ;;
19323esac
19324fi
19325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19326printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
19327if test "x$ac_cv_lib_dld_dld_link" = xyes
19328then :
19329  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
19330fi
19331
19332	       ;;
19333esac
19334fi
19335
19336	     ;;
19337esac
19338fi
19339
19340	   ;;
19341esac
19342fi
19343
19344	 ;;
19345esac
19346fi
19347
19348       ;;
19349esac
19350fi
19351
19352    ;;
19353  esac
19354
19355  if test no = "$lt_cv_dlopen"; then
19356    enable_dlopen=no
19357  else
19358    enable_dlopen=yes
19359  fi
19360
19361  case $lt_cv_dlopen in
19362  dlopen)
19363    save_CPPFLAGS=$CPPFLAGS
19364    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19365
19366    save_LDFLAGS=$LDFLAGS
19367    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19368
19369    save_LIBS=$LIBS
19370    LIBS="$lt_cv_dlopen_libs $LIBS"
19371
19372    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19373printf %s "checking whether a program can dlopen itself... " >&6; }
19374if test ${lt_cv_dlopen_self+y}
19375then :
19376  printf %s "(cached) " >&6
19377else case e in #(
19378  e) 	  if test yes = "$cross_compiling"; then :
19379  lt_cv_dlopen_self=cross
19380else
19381  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19382  lt_status=$lt_dlunknown
19383  cat > conftest.$ac_ext <<_LT_EOF
19384#line $LINENO "configure"
19385#include "confdefs.h"
19386
19387#if HAVE_DLFCN_H
19388#include <dlfcn.h>
19389#endif
19390
19391#include <stdio.h>
19392
19393#ifdef RTLD_GLOBAL
19394#  define LT_DLGLOBAL		RTLD_GLOBAL
19395#else
19396#  ifdef DL_GLOBAL
19397#    define LT_DLGLOBAL		DL_GLOBAL
19398#  else
19399#    define LT_DLGLOBAL		0
19400#  endif
19401#endif
19402
19403/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19404   find out it does not work in some platform. */
19405#ifndef LT_DLLAZY_OR_NOW
19406#  ifdef RTLD_LAZY
19407#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19408#  else
19409#    ifdef DL_LAZY
19410#      define LT_DLLAZY_OR_NOW		DL_LAZY
19411#    else
19412#      ifdef RTLD_NOW
19413#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19414#      else
19415#        ifdef DL_NOW
19416#          define LT_DLLAZY_OR_NOW	DL_NOW
19417#        else
19418#          define LT_DLLAZY_OR_NOW	0
19419#        endif
19420#      endif
19421#    endif
19422#  endif
19423#endif
19424
19425/* When -fvisibility=hidden is used, assume the code has been annotated
19426   correspondingly for the symbols needed.  */
19427#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19428int fnord () __attribute__((visibility("default")));
19429#endif
19430
19431int fnord () { return 42; }
19432int main ()
19433{
19434  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19435  int status = $lt_dlunknown;
19436
19437  if (self)
19438    {
19439      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19440      else
19441        {
19442	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19443          else puts (dlerror ());
19444	}
19445      /* dlclose (self); */
19446    }
19447  else
19448    puts (dlerror ());
19449
19450  return status;
19451}
19452_LT_EOF
19453  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19454  (eval $ac_link) 2>&5
19455  ac_status=$?
19456  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19457  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19458    (./conftest; exit; ) >&5 2>/dev/null
19459    lt_status=$?
19460    case x$lt_status in
19461      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19462      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19463      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19464    esac
19465  else :
19466    # compilation failed
19467    lt_cv_dlopen_self=no
19468  fi
19469fi
19470rm -fr conftest*
19471
19472     ;;
19473esac
19474fi
19475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19476printf "%s\n" "$lt_cv_dlopen_self" >&6; }
19477
19478    if test yes = "$lt_cv_dlopen_self"; then
19479      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19480      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19481printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19482if test ${lt_cv_dlopen_self_static+y}
19483then :
19484  printf %s "(cached) " >&6
19485else case e in #(
19486  e) 	  if test yes = "$cross_compiling"; then :
19487  lt_cv_dlopen_self_static=cross
19488else
19489  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19490  lt_status=$lt_dlunknown
19491  cat > conftest.$ac_ext <<_LT_EOF
19492#line $LINENO "configure"
19493#include "confdefs.h"
19494
19495#if HAVE_DLFCN_H
19496#include <dlfcn.h>
19497#endif
19498
19499#include <stdio.h>
19500
19501#ifdef RTLD_GLOBAL
19502#  define LT_DLGLOBAL		RTLD_GLOBAL
19503#else
19504#  ifdef DL_GLOBAL
19505#    define LT_DLGLOBAL		DL_GLOBAL
19506#  else
19507#    define LT_DLGLOBAL		0
19508#  endif
19509#endif
19510
19511/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19512   find out it does not work in some platform. */
19513#ifndef LT_DLLAZY_OR_NOW
19514#  ifdef RTLD_LAZY
19515#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19516#  else
19517#    ifdef DL_LAZY
19518#      define LT_DLLAZY_OR_NOW		DL_LAZY
19519#    else
19520#      ifdef RTLD_NOW
19521#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19522#      else
19523#        ifdef DL_NOW
19524#          define LT_DLLAZY_OR_NOW	DL_NOW
19525#        else
19526#          define LT_DLLAZY_OR_NOW	0
19527#        endif
19528#      endif
19529#    endif
19530#  endif
19531#endif
19532
19533/* When -fvisibility=hidden is used, assume the code has been annotated
19534   correspondingly for the symbols needed.  */
19535#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19536int fnord () __attribute__((visibility("default")));
19537#endif
19538
19539int fnord () { return 42; }
19540int main ()
19541{
19542  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19543  int status = $lt_dlunknown;
19544
19545  if (self)
19546    {
19547      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19548      else
19549        {
19550	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19551          else puts (dlerror ());
19552	}
19553      /* dlclose (self); */
19554    }
19555  else
19556    puts (dlerror ());
19557
19558  return status;
19559}
19560_LT_EOF
19561  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19562  (eval $ac_link) 2>&5
19563  ac_status=$?
19564  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19565  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19566    (./conftest; exit; ) >&5 2>/dev/null
19567    lt_status=$?
19568    case x$lt_status in
19569      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19570      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19571      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19572    esac
19573  else :
19574    # compilation failed
19575    lt_cv_dlopen_self_static=no
19576  fi
19577fi
19578rm -fr conftest*
19579
19580       ;;
19581esac
19582fi
19583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19584printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19585    fi
19586
19587    CPPFLAGS=$save_CPPFLAGS
19588    LDFLAGS=$save_LDFLAGS
19589    LIBS=$save_LIBS
19590    ;;
19591  esac
19592
19593  case $lt_cv_dlopen_self in
19594  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19595  *) enable_dlopen_self=unknown ;;
19596  esac
19597
19598  case $lt_cv_dlopen_self_static in
19599  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19600  *) enable_dlopen_self_static=unknown ;;
19601  esac
19602fi
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620striplib=
19621old_striplib=
19622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19623printf %s "checking whether stripping libraries is possible... " >&6; }
19624if test -z "$STRIP"; then
19625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19626printf "%s\n" "no" >&6; }
19627else
19628  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19629    old_striplib="$STRIP --strip-debug"
19630    striplib="$STRIP --strip-unneeded"
19631    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19632printf "%s\n" "yes" >&6; }
19633  else
19634    case $host_os in
19635    darwin*)
19636      # FIXME - insert some real tests, host_os isn't really good enough
19637      striplib="$STRIP -x"
19638      old_striplib="$STRIP -S"
19639      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19640printf "%s\n" "yes" >&6; }
19641      ;;
19642    freebsd*)
19643      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
19644        old_striplib="$STRIP --strip-debug"
19645        striplib="$STRIP --strip-unneeded"
19646        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19647printf "%s\n" "yes" >&6; }
19648      else
19649        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19650printf "%s\n" "no" >&6; }
19651      fi
19652      ;;
19653    *)
19654      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19655printf "%s\n" "no" >&6; }
19656      ;;
19657    esac
19658  fi
19659fi
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672  # Report what library types will actually be built
19673  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19674printf %s "checking if libtool supports shared libraries... " >&6; }
19675  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19676printf "%s\n" "$can_build_shared" >&6; }
19677
19678  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19679printf %s "checking whether to build shared libraries... " >&6; }
19680  test no = "$can_build_shared" && enable_shared=no
19681
19682  # On AIX, shared libraries and static libraries use the same namespace, and
19683  # are all built from PIC.
19684  case $host_os in
19685  aix3*)
19686    test yes = "$enable_shared" && enable_static=no
19687    if test -n "$RANLIB"; then
19688      archive_cmds="$archive_cmds~\$RANLIB \$lib"
19689      postinstall_cmds='$RANLIB $lib'
19690    fi
19691    ;;
19692
19693  aix[4-9]*)
19694    if test ia64 != "$host_cpu"; then
19695      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19696      yes,aix,yes) ;;			# shared object as lib.so file only
19697      yes,svr4,*) ;;			# shared object as lib.so archive member only
19698      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
19699      esac
19700    fi
19701    ;;
19702  esac
19703  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19704printf "%s\n" "$enable_shared" >&6; }
19705
19706  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19707printf %s "checking whether to build static libraries... " >&6; }
19708  # Make sure either enable_shared or enable_static is yes.
19709  test yes = "$enable_shared" || enable_static=yes
19710  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19711printf "%s\n" "$enable_static" >&6; }
19712
19713
19714
19715
19716fi
19717ac_ext=c
19718ac_cpp='$CPP $CPPFLAGS'
19719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19721ac_compiler_gnu=$ac_cv_c_compiler_gnu
19722
19723CC=$lt_save_CC
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739        ac_config_commands="$ac_config_commands libtool"
19740
19741
19742
19743
19744# Only expand once:
19745
19746
19747
19748
19749
19750# Options
19751# Define a configure option for an alternate module directory
19752
19753# Check whether --with-xorg-module-dir was given.
19754if test ${with_xorg_module_dir+y}
19755then :
19756  withval=$with_xorg_module_dir; moduledir="$withval"
19757else case e in #(
19758  e) moduledir="$libdir/xorg/modules" ;;
19759esac
19760fi
19761
19762
19763# Store the list of server defined optional extensions in REQUIRED_MODULES
19764
19765
19766	SAVE_CFLAGS="$CFLAGS"
19767	CFLAGS="$CFLAGS `$PKG_CONFIG --cflags xorg-server`"
19768	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19769/* end confdefs.h.  */
19770
19771#include "xorg-server.h"
19772#if !defined RANDR
19773#error RANDR not defined
19774#endif
19775
19776int
19777main (void)
19778{
19779
19780  ;
19781  return 0;
19782}
19783_ACEOF
19784if ac_fn_c_try_compile "$LINENO"
19785then :
19786  _EXT_CHECK=yes
19787else case e in #(
19788  e) _EXT_CHECK=no ;;
19789esac
19790fi
19791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19792	CFLAGS="$SAVE_CFLAGS"
19793	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19794printf %s "checking if RANDR is defined... " >&6; }
19795	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19796printf "%s\n" "$_EXT_CHECK" >&6; }
19797	if test "$_EXT_CHECK" != no; then
19798		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19799	fi
19800
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 RENDER
19810#error RENDER 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 RENDER is defined" >&5
19831printf %s "checking if RENDER 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 renderproto"
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 XV
19847#error XV 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 XV is defined" >&5
19868printf %s "checking if XV 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 videoproto"
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 DPMSExtension
19884#error DPMSExtension 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 DPMSExtension is defined" >&5
19905printf %s "checking if DPMSExtension 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 xextproto"
19910	fi
19911
19912
19913# Obtain compiler/linker options for the driver dependencies
19914
19915pkg_failed=no
19916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19917printf %s "checking for XORG... " >&6; }
19918
19919if test -n "$XORG_CFLAGS"; then
19920    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19921 elif test -n "$PKG_CONFIG"; then
19922    if test -n "$PKG_CONFIG" && \
19923    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19924  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5
19925  ac_status=$?
19926  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19927  test $ac_status = 0; }; then
19928  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19929		      test "x$?" != "x0" && pkg_failed=yes
19930else
19931  pkg_failed=yes
19932fi
19933 else
19934    pkg_failed=untried
19935fi
19936if test -n "$XORG_LIBS"; then
19937    pkg_cv_XORG_LIBS="$XORG_LIBS"
19938 elif test -n "$PKG_CONFIG"; then
19939    if test -n "$PKG_CONFIG" && \
19940    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.3 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19941  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES") 2>&5
19942  ac_status=$?
19943  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19944  test $ac_status = 0; }; then
19945  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19946		      test "x$?" != "x0" && pkg_failed=yes
19947else
19948  pkg_failed=yes
19949fi
19950 else
19951    pkg_failed=untried
19952fi
19953
19954
19955
19956if test $pkg_failed = yes; then
19957   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19958printf "%s\n" "no" >&6; }
19959
19960if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19961        _pkg_short_errors_supported=yes
19962else
19963        _pkg_short_errors_supported=no
19964fi
19965        if test $_pkg_short_errors_supported = yes; then
19966	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19967        else
19968	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19969        fi
19970	# Put the nasty error message in config.log where it belongs
19971	echo "$XORG_PKG_ERRORS" >&5
19972
19973	as_fn_error $? "Package requirements (xorg-server >= 1.3 xproto fontsproto $REQUIRED_MODULES) were not met:
19974
19975$XORG_PKG_ERRORS
19976
19977Consider adjusting the PKG_CONFIG_PATH environment variable if you
19978installed software in a non-standard prefix.
19979
19980Alternatively, you may set the environment variables XORG_CFLAGS
19981and XORG_LIBS to avoid the need to call pkg-config.
19982See the pkg-config man page for more details." "$LINENO" 5
19983elif test $pkg_failed = untried; then
19984     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19985printf "%s\n" "no" >&6; }
19986	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19987printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19988as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19989is in your PATH or set the PKG_CONFIG environment variable to the full
19990path to pkg-config.
19991
19992Alternatively, you may set the environment variables XORG_CFLAGS
19993and XORG_LIBS to avoid the need to call pkg-config.
19994See the pkg-config man page for more details.
19995
19996To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19997See 'config.log' for more details" "$LINENO" 5; }
19998else
19999	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
20000	XORG_LIBS=$pkg_cv_XORG_LIBS
20001        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20002printf "%s\n" "yes" >&6; }
20003
20004fi
20005
20006pkg_failed=no
20007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
20008printf %s "checking for XEXT... " >&6; }
20009
20010if test -n "$XEXT_CFLAGS"; then
20011    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
20012 elif test -n "$PKG_CONFIG"; then
20013    if test -n "$PKG_CONFIG" && \
20014    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
20015  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
20016  ac_status=$?
20017  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20018  test $ac_status = 0; }; then
20019  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
20020		      test "x$?" != "x0" && pkg_failed=yes
20021else
20022  pkg_failed=yes
20023fi
20024 else
20025    pkg_failed=untried
20026fi
20027if test -n "$XEXT_LIBS"; then
20028    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
20029 elif test -n "$PKG_CONFIG"; then
20030    if test -n "$PKG_CONFIG" && \
20031    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
20032  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
20033  ac_status=$?
20034  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20035  test $ac_status = 0; }; then
20036  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
20037		      test "x$?" != "x0" && pkg_failed=yes
20038else
20039  pkg_failed=yes
20040fi
20041 else
20042    pkg_failed=untried
20043fi
20044
20045
20046
20047if test $pkg_failed = yes; then
20048   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20049printf "%s\n" "no" >&6; }
20050
20051if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20052        _pkg_short_errors_supported=yes
20053else
20054        _pkg_short_errors_supported=no
20055fi
20056        if test $_pkg_short_errors_supported = yes; then
20057	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
20058        else
20059	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
20060        fi
20061	# Put the nasty error message in config.log where it belongs
20062	echo "$XEXT_PKG_ERRORS" >&5
20063
20064	HAVE_XEXTPROTO_71="no"
20065elif test $pkg_failed = untried; then
20066     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20067printf "%s\n" "no" >&6; }
20068	HAVE_XEXTPROTO_71="no"
20069else
20070	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
20071	XEXT_LIBS=$pkg_cv_XEXT_LIBS
20072        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20073printf "%s\n" "yes" >&6; }
20074	HAVE_XEXTPROTO_71="yes";
20075printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
20076
20077fi
20078 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
20079  HAVE_XEXTPROTO_71_TRUE=
20080  HAVE_XEXTPROTO_71_FALSE='#'
20081else
20082  HAVE_XEXTPROTO_71_TRUE='#'
20083  HAVE_XEXTPROTO_71_FALSE=
20084fi
20085
20086
20087# Checks for libraries.
20088
20089
20090save_CFLAGS="$CFLAGS"
20091CFLAGS="$XORG_CFLAGS"
20092
20093# PCI rework
20094ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
20095" "$ac_c_undeclared_builtin_options" "CFLAGS"
20096if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes
20097then :
20098  XSERVER_LIBPCIACCESS=yes
20099else case e in #(
20100  e) XSERVER_LIBPCIACCESS=no ;;
20101esac
20102fi
20103if test "x$XSERVER_LIBPCIACCESS" = "xyes"; then
20104
20105pkg_failed=no
20106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
20107printf %s "checking for PCIACCESS... " >&6; }
20108
20109if test -n "$PCIACCESS_CFLAGS"; then
20110    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
20111 elif test -n "$PKG_CONFIG"; then
20112    if test -n "$PKG_CONFIG" && \
20113    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10.7\""; } >&5
20114  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10.7") 2>&5
20115  ac_status=$?
20116  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20117  test $ac_status = 0; }; then
20118  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.10.7" 2>/dev/null`
20119		      test "x$?" != "x0" && pkg_failed=yes
20120else
20121  pkg_failed=yes
20122fi
20123 else
20124    pkg_failed=untried
20125fi
20126if test -n "$PCIACCESS_LIBS"; then
20127    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
20128 elif test -n "$PKG_CONFIG"; then
20129    if test -n "$PKG_CONFIG" && \
20130    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.10.7\""; } >&5
20131  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.10.7") 2>&5
20132  ac_status=$?
20133  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20134  test $ac_status = 0; }; then
20135  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.10.7" 2>/dev/null`
20136		      test "x$?" != "x0" && pkg_failed=yes
20137else
20138  pkg_failed=yes
20139fi
20140 else
20141    pkg_failed=untried
20142fi
20143
20144
20145
20146if test $pkg_failed = yes; then
20147   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20148printf "%s\n" "no" >&6; }
20149
20150if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20151        _pkg_short_errors_supported=yes
20152else
20153        _pkg_short_errors_supported=no
20154fi
20155        if test $_pkg_short_errors_supported = yes; then
20156	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.10.7" 2>&1`
20157        else
20158	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.10.7" 2>&1`
20159        fi
20160	# Put the nasty error message in config.log where it belongs
20161	echo "$PCIACCESS_PKG_ERRORS" >&5
20162
20163	as_fn_error $? "Package requirements (pciaccess >= 0.10.7) were not met:
20164
20165$PCIACCESS_PKG_ERRORS
20166
20167Consider adjusting the PKG_CONFIG_PATH environment variable if you
20168installed software in a non-standard prefix.
20169
20170Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20171and PCIACCESS_LIBS to avoid the need to call pkg-config.
20172See the pkg-config man page for more details." "$LINENO" 5
20173elif test $pkg_failed = untried; then
20174     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20175printf "%s\n" "no" >&6; }
20176	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20177printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20178as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
20179is in your PATH or set the PKG_CONFIG environment variable to the full
20180path to pkg-config.
20181
20182Alternatively, you may set the environment variables PCIACCESS_CFLAGS
20183and PCIACCESS_LIBS to avoid the need to call pkg-config.
20184See the pkg-config man page for more details.
20185
20186To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20187See 'config.log' for more details" "$LINENO" 5; }
20188else
20189	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
20190	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
20191        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20192printf "%s\n" "yes" >&6; }
20193
20194fi
20195fi
20196
20197CFLAGS="$save_CFLAGS"
20198
20199# Check whether --enable-xaa was given.
20200if test ${enable_xaa+y}
20201then :
20202  enableval=$enable_xaa; XAA="$enableval"
20203else case e in #(
20204  e) XAA=auto ;;
20205esac
20206fi
20207
20208if test "x$XAA" != xno; then
20209        save_CFLAGS=$CFLAGS
20210        save_CPPFLAGS=$CPPFLAGS
20211        CFLAGS=$XORG_CFLAGS
20212        CPPFLAGS="$XORG_CFLAGS"
20213               for ac_header in xaa.h
20214do :
20215  ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
20216if test "x$ac_cv_header_xaa_h" = xyes
20217then :
20218  printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h
20219 XAA=yes
20220else case e in #(
20221  e) XAA=no ;;
20222esac
20223fi
20224
20225done
20226        CFLAGS=$save_CFLAGS
20227        CPPFLAGS=$save_CPPFLAGS
20228fi
20229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
20230printf %s "checking whether to include XAA support... " >&6; }
20231 if test "x$XAA" = xyes; then
20232  XAA_TRUE=
20233  XAA_FALSE='#'
20234else
20235  XAA_TRUE='#'
20236  XAA_FALSE=
20237fi
20238
20239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
20240printf "%s\n" "$XAA" >&6; }
20241
20242# Substitutions
20243
20244
20245DRIVER_NAME=nv
20246
20247
20248ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
20249
20250cat >confcache <<\_ACEOF
20251# This file is a shell script that caches the results of configure
20252# tests run on this system so they can be shared between configure
20253# scripts and configure runs, see configure's option --config-cache.
20254# It is not useful on other systems.  If it contains results you don't
20255# want to keep, you may remove or edit it.
20256#
20257# config.status only pays attention to the cache file if you give it
20258# the --recheck option to rerun configure.
20259#
20260# 'ac_cv_env_foo' variables (set or unset) will be overridden when
20261# loading this file, other *unset* 'ac_cv_foo' will be assigned the
20262# following values.
20263
20264_ACEOF
20265
20266# The following way of writing the cache mishandles newlines in values,
20267# but we know of no workaround that is simple, portable, and efficient.
20268# So, we kill variables containing newlines.
20269# Ultrix sh set writes to stderr and can't be redirected directly,
20270# and sets the high bit in the cache file unless we assign to the vars.
20271(
20272  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20273    eval ac_val=\$$ac_var
20274    case $ac_val in #(
20275    *${as_nl}*)
20276      case $ac_var in #(
20277      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20278printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20279      esac
20280      case $ac_var in #(
20281      _ | IFS | as_nl) ;; #(
20282      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20283      *) { eval $ac_var=; unset $ac_var;} ;;
20284      esac ;;
20285    esac
20286  done
20287
20288  (set) 2>&1 |
20289    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20290    *${as_nl}ac_space=\ *)
20291      # 'set' does not quote correctly, so add quotes: double-quote
20292      # substitution turns \\\\ into \\, and sed turns \\ into \.
20293      sed -n \
20294	"s/'/'\\\\''/g;
20295	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20296      ;; #(
20297    *)
20298      # 'set' quotes correctly as required by POSIX, so do not add quotes.
20299      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20300      ;;
20301    esac |
20302    sort
20303) |
20304  sed '
20305     /^ac_cv_env_/b end
20306     t clear
20307     :clear
20308     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20309     t end
20310     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20311     :end' >>confcache
20312if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20313  if test -w "$cache_file"; then
20314    if test "x$cache_file" != "x/dev/null"; then
20315      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20316printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20317      if test ! -f "$cache_file" || test -h "$cache_file"; then
20318	cat confcache >"$cache_file"
20319      else
20320        case $cache_file in #(
20321        */* | ?:*)
20322	  mv -f confcache "$cache_file"$$ &&
20323	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20324        *)
20325	  mv -f confcache "$cache_file" ;;
20326	esac
20327      fi
20328    fi
20329  else
20330    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20331printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20332  fi
20333fi
20334rm -f confcache
20335
20336test "x$prefix" = xNONE && prefix=$ac_default_prefix
20337# Let make expand exec_prefix.
20338test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20339
20340DEFS=-DHAVE_CONFIG_H
20341
20342ac_libobjs=
20343ac_ltlibobjs=
20344U=
20345for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20346  # 1. Remove the extension, and $U if already installed.
20347  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20348  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20349  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20350  #    will be set to the directory where LIBOBJS objects are built.
20351  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20352  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20353done
20354LIBOBJS=$ac_libobjs
20355
20356LTLIBOBJS=$ac_ltlibobjs
20357
20358
20359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20360printf %s "checking that generated files are newer than configure... " >&6; }
20361   if test -n "$am_sleep_pid"; then
20362     # Hide warnings about reused PIDs.
20363     wait $am_sleep_pid 2>/dev/null
20364   fi
20365   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20366printf "%s\n" "done" >&6; }
20367if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20368  as_fn_error $? "conditional \"AMDEP\" was never defined.
20369Usually this means the macro was only invoked conditionally." "$LINENO" 5
20370fi
20371if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20372  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20373Usually this means the macro was only invoked conditionally." "$LINENO" 5
20374fi
20375 if test -n "$EXEEXT"; then
20376  am__EXEEXT_TRUE=
20377  am__EXEEXT_FALSE='#'
20378else
20379  am__EXEEXT_TRUE='#'
20380  am__EXEEXT_FALSE=
20381fi
20382
20383if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
20384  as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
20385Usually this means the macro was only invoked conditionally." "$LINENO" 5
20386fi
20387if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
20388  as_fn_error $? "conditional \"XAA\" was never defined.
20389Usually this means the macro was only invoked conditionally." "$LINENO" 5
20390fi
20391
20392: "${CONFIG_STATUS=./config.status}"
20393ac_write_fail=0
20394ac_clean_files_save=$ac_clean_files
20395ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20397printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20398as_write_fail=0
20399cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20400#! $SHELL
20401# Generated by $as_me.
20402# Run this file to recreate the current configuration.
20403# Compiler output produced by configure, useful for debugging
20404# configure, is in config.log if it exists.
20405
20406debug=false
20407ac_cs_recheck=false
20408ac_cs_silent=false
20409
20410SHELL=\${CONFIG_SHELL-$SHELL}
20411export SHELL
20412_ASEOF
20413cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20414## -------------------- ##
20415## M4sh Initialization. ##
20416## -------------------- ##
20417
20418# Be more Bourne compatible
20419DUALCASE=1; export DUALCASE # for MKS sh
20420if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20421then :
20422  emulate sh
20423  NULLCMD=:
20424  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20425  # is contrary to our usage.  Disable this feature.
20426  alias -g '${1+"$@"}'='"$@"'
20427  setopt NO_GLOB_SUBST
20428else case e in #(
20429  e) case `(set -o) 2>/dev/null` in #(
20430  *posix*) :
20431    set -o posix ;; #(
20432  *) :
20433     ;;
20434esac ;;
20435esac
20436fi
20437
20438
20439
20440# Reset variables that may have inherited troublesome values from
20441# the environment.
20442
20443# IFS needs to be set, to space, tab, and newline, in precisely that order.
20444# (If _AS_PATH_WALK were called with IFS unset, it would have the
20445# side effect of setting IFS to empty, thus disabling word splitting.)
20446# Quoting is to prevent editors from complaining about space-tab.
20447as_nl='
20448'
20449export as_nl
20450IFS=" ""	$as_nl"
20451
20452PS1='$ '
20453PS2='> '
20454PS4='+ '
20455
20456# Ensure predictable behavior from utilities with locale-dependent output.
20457LC_ALL=C
20458export LC_ALL
20459LANGUAGE=C
20460export LANGUAGE
20461
20462# We cannot yet rely on "unset" to work, but we need these variables
20463# to be unset--not just set to an empty or harmless value--now, to
20464# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20465# also avoids known problems related to "unset" and subshell syntax
20466# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20467for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20468do eval test \${$as_var+y} \
20469  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20470done
20471
20472# Ensure that fds 0, 1, and 2 are open.
20473if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20474if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20475if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20476
20477# The user is always right.
20478if ${PATH_SEPARATOR+false} :; then
20479  PATH_SEPARATOR=:
20480  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20481    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20482      PATH_SEPARATOR=';'
20483  }
20484fi
20485
20486
20487# Find who we are.  Look in the path if we contain no directory separator.
20488as_myself=
20489case $0 in #((
20490  *[\\/]* ) as_myself=$0 ;;
20491  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20492for as_dir in $PATH
20493do
20494  IFS=$as_save_IFS
20495  case $as_dir in #(((
20496    '') as_dir=./ ;;
20497    */) ;;
20498    *) as_dir=$as_dir/ ;;
20499  esac
20500    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20501  done
20502IFS=$as_save_IFS
20503
20504     ;;
20505esac
20506# We did not find ourselves, most probably we were run as 'sh COMMAND'
20507# in which case we are not to be found in the path.
20508if test "x$as_myself" = x; then
20509  as_myself=$0
20510fi
20511if test ! -f "$as_myself"; then
20512  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20513  exit 1
20514fi
20515
20516
20517
20518# as_fn_error STATUS ERROR [LINENO LOG_FD]
20519# ----------------------------------------
20520# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20521# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20522# script with STATUS, using 1 if that was 0.
20523as_fn_error ()
20524{
20525  as_status=$1; test $as_status -eq 0 && as_status=1
20526  if test "$4"; then
20527    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20528    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20529  fi
20530  printf "%s\n" "$as_me: error: $2" >&2
20531  as_fn_exit $as_status
20532} # as_fn_error
20533
20534
20535# as_fn_set_status STATUS
20536# -----------------------
20537# Set $? to STATUS, without forking.
20538as_fn_set_status ()
20539{
20540  return $1
20541} # as_fn_set_status
20542
20543# as_fn_exit STATUS
20544# -----------------
20545# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20546as_fn_exit ()
20547{
20548  set +e
20549  as_fn_set_status $1
20550  exit $1
20551} # as_fn_exit
20552
20553# as_fn_unset VAR
20554# ---------------
20555# Portably unset VAR.
20556as_fn_unset ()
20557{
20558  { eval $1=; unset $1;}
20559}
20560as_unset=as_fn_unset
20561
20562# as_fn_append VAR VALUE
20563# ----------------------
20564# Append the text in VALUE to the end of the definition contained in VAR. Take
20565# advantage of any shell optimizations that allow amortized linear growth over
20566# repeated appends, instead of the typical quadratic growth present in naive
20567# implementations.
20568if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20569then :
20570  eval 'as_fn_append ()
20571  {
20572    eval $1+=\$2
20573  }'
20574else case e in #(
20575  e) as_fn_append ()
20576  {
20577    eval $1=\$$1\$2
20578  } ;;
20579esac
20580fi # as_fn_append
20581
20582# as_fn_arith ARG...
20583# ------------------
20584# Perform arithmetic evaluation on the ARGs, and store the result in the
20585# global $as_val. Take advantage of shells that can avoid forks. The arguments
20586# must be portable across $(()) and expr.
20587if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20588then :
20589  eval 'as_fn_arith ()
20590  {
20591    as_val=$(( $* ))
20592  }'
20593else case e in #(
20594  e) as_fn_arith ()
20595  {
20596    as_val=`expr "$@" || test $? -eq 1`
20597  } ;;
20598esac
20599fi # as_fn_arith
20600
20601
20602if expr a : '\(a\)' >/dev/null 2>&1 &&
20603   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20604  as_expr=expr
20605else
20606  as_expr=false
20607fi
20608
20609if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20610  as_basename=basename
20611else
20612  as_basename=false
20613fi
20614
20615if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20616  as_dirname=dirname
20617else
20618  as_dirname=false
20619fi
20620
20621as_me=`$as_basename -- "$0" ||
20622$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20623	 X"$0" : 'X\(//\)$' \| \
20624	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20625printf "%s\n" X/"$0" |
20626    sed '/^.*\/\([^/][^/]*\)\/*$/{
20627	    s//\1/
20628	    q
20629	  }
20630	  /^X\/\(\/\/\)$/{
20631	    s//\1/
20632	    q
20633	  }
20634	  /^X\/\(\/\).*/{
20635	    s//\1/
20636	    q
20637	  }
20638	  s/.*/./; q'`
20639
20640# Avoid depending upon Character Ranges.
20641as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20642as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20643as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20644as_cr_digits='0123456789'
20645as_cr_alnum=$as_cr_Letters$as_cr_digits
20646
20647
20648# Determine whether it's possible to make 'echo' print without a newline.
20649# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20650# for compatibility with existing Makefiles.
20651ECHO_C= ECHO_N= ECHO_T=
20652case `echo -n x` in #(((((
20653-n*)
20654  case `echo 'xy\c'` in
20655  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20656  xy)  ECHO_C='\c';;
20657  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20658       ECHO_T='	';;
20659  esac;;
20660*)
20661  ECHO_N='-n';;
20662esac
20663
20664# For backward compatibility with old third-party macros, we provide
20665# the shell variables $as_echo and $as_echo_n.  New code should use
20666# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20667as_echo='printf %s\n'
20668as_echo_n='printf %s'
20669
20670rm -f conf$$ conf$$.exe conf$$.file
20671if test -d conf$$.dir; then
20672  rm -f conf$$.dir/conf$$.file
20673else
20674  rm -f conf$$.dir
20675  mkdir conf$$.dir 2>/dev/null
20676fi
20677if (echo >conf$$.file) 2>/dev/null; then
20678  if ln -s conf$$.file conf$$ 2>/dev/null; then
20679    as_ln_s='ln -s'
20680    # ... but there are two gotchas:
20681    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
20682    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
20683    # In both cases, we have to default to 'cp -pR'.
20684    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20685      as_ln_s='cp -pR'
20686  elif ln conf$$.file conf$$ 2>/dev/null; then
20687    as_ln_s=ln
20688  else
20689    as_ln_s='cp -pR'
20690  fi
20691else
20692  as_ln_s='cp -pR'
20693fi
20694rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20695rmdir conf$$.dir 2>/dev/null
20696
20697
20698# as_fn_mkdir_p
20699# -------------
20700# Create "$as_dir" as a directory, including parents if necessary.
20701as_fn_mkdir_p ()
20702{
20703
20704  case $as_dir in #(
20705  -*) as_dir=./$as_dir;;
20706  esac
20707  test -d "$as_dir" || eval $as_mkdir_p || {
20708    as_dirs=
20709    while :; do
20710      case $as_dir in #(
20711      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20712      *) as_qdir=$as_dir;;
20713      esac
20714      as_dirs="'$as_qdir' $as_dirs"
20715      as_dir=`$as_dirname -- "$as_dir" ||
20716$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20717	 X"$as_dir" : 'X\(//\)[^/]' \| \
20718	 X"$as_dir" : 'X\(//\)$' \| \
20719	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20720printf "%s\n" X"$as_dir" |
20721    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20722	    s//\1/
20723	    q
20724	  }
20725	  /^X\(\/\/\)[^/].*/{
20726	    s//\1/
20727	    q
20728	  }
20729	  /^X\(\/\/\)$/{
20730	    s//\1/
20731	    q
20732	  }
20733	  /^X\(\/\).*/{
20734	    s//\1/
20735	    q
20736	  }
20737	  s/.*/./; q'`
20738      test -d "$as_dir" && break
20739    done
20740    test -z "$as_dirs" || eval "mkdir $as_dirs"
20741  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20742
20743
20744} # as_fn_mkdir_p
20745if mkdir -p . 2>/dev/null; then
20746  as_mkdir_p='mkdir -p "$as_dir"'
20747else
20748  test -d ./-p && rmdir ./-p
20749  as_mkdir_p=false
20750fi
20751
20752
20753# as_fn_executable_p FILE
20754# -----------------------
20755# Test if FILE is an executable regular file.
20756as_fn_executable_p ()
20757{
20758  test -f "$1" && test -x "$1"
20759} # as_fn_executable_p
20760as_test_x='test -x'
20761as_executable_p=as_fn_executable_p
20762
20763# Sed expression to map a string onto a valid CPP name.
20764as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
20765as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
20766
20767# Sed expression to map a string onto a valid variable name.
20768as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20769as_tr_sh="eval sed '$as_sed_sh'" # deprecated
20770
20771
20772exec 6>&1
20773## ----------------------------------- ##
20774## Main body of $CONFIG_STATUS script. ##
20775## ----------------------------------- ##
20776_ASEOF
20777test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20778
20779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20780# Save the log message, to keep $0 and so on meaningful, and to
20781# report actual input values of CONFIG_FILES etc. instead of their
20782# values after options handling.
20783ac_log="
20784This file was extended by xf86-video-nv $as_me 2.1.23, which was
20785generated by GNU Autoconf 2.72.  Invocation command line was
20786
20787  CONFIG_FILES    = $CONFIG_FILES
20788  CONFIG_HEADERS  = $CONFIG_HEADERS
20789  CONFIG_LINKS    = $CONFIG_LINKS
20790  CONFIG_COMMANDS = $CONFIG_COMMANDS
20791  $ $0 $@
20792
20793on `(hostname || uname -n) 2>/dev/null | sed 1q`
20794"
20795
20796_ACEOF
20797
20798case $ac_config_files in *"
20799"*) set x $ac_config_files; shift; ac_config_files=$*;;
20800esac
20801
20802case $ac_config_headers in *"
20803"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20804esac
20805
20806
20807cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20808# Files that config.status was made for.
20809config_files="$ac_config_files"
20810config_headers="$ac_config_headers"
20811config_commands="$ac_config_commands"
20812
20813_ACEOF
20814
20815cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20816ac_cs_usage="\
20817'$as_me' instantiates files and other configuration actions
20818from templates according to the current configuration.  Unless the files
20819and actions are specified as TAGs, all are instantiated by default.
20820
20821Usage: $0 [OPTION]... [TAG]...
20822
20823  -h, --help       print this help, then exit
20824  -V, --version    print version number and configuration settings, then exit
20825      --config     print configuration, then exit
20826  -q, --quiet, --silent
20827                   do not print progress messages
20828  -d, --debug      don't remove temporary files
20829      --recheck    update $as_me by reconfiguring in the same conditions
20830      --file=FILE[:TEMPLATE]
20831                   instantiate the configuration file FILE
20832      --header=FILE[:TEMPLATE]
20833                   instantiate the configuration header FILE
20834
20835Configuration files:
20836$config_files
20837
20838Configuration headers:
20839$config_headers
20840
20841Configuration commands:
20842$config_commands
20843
20844Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-nv/-/issues>."
20845
20846_ACEOF
20847ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20848ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20849cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20850ac_cs_config='$ac_cs_config_escaped'
20851ac_cs_version="\\
20852xf86-video-nv config.status 2.1.23
20853configured by $0, generated by GNU Autoconf 2.72,
20854  with options \\"\$ac_cs_config\\"
20855
20856Copyright (C) 2023 Free Software Foundation, Inc.
20857This config.status script is free software; the Free Software Foundation
20858gives unlimited permission to copy, distribute and modify it."
20859
20860ac_pwd='$ac_pwd'
20861srcdir='$srcdir'
20862INSTALL='$INSTALL'
20863MKDIR_P='$MKDIR_P'
20864AWK='$AWK'
20865test -n "\$AWK" || AWK=awk
20866_ACEOF
20867
20868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20869# The default lists apply if the user does not specify any file.
20870ac_need_defaults=:
20871while test $# != 0
20872do
20873  case $1 in
20874  --*=?*)
20875    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20876    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20877    ac_shift=:
20878    ;;
20879  --*=)
20880    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20881    ac_optarg=
20882    ac_shift=:
20883    ;;
20884  *)
20885    ac_option=$1
20886    ac_optarg=$2
20887    ac_shift=shift
20888    ;;
20889  esac
20890
20891  case $ac_option in
20892  # Handling of the options.
20893  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20894    ac_cs_recheck=: ;;
20895  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20896    printf "%s\n" "$ac_cs_version"; exit ;;
20897  --config | --confi | --conf | --con | --co | --c )
20898    printf "%s\n" "$ac_cs_config"; exit ;;
20899  --debug | --debu | --deb | --de | --d | -d )
20900    debug=: ;;
20901  --file | --fil | --fi | --f )
20902    $ac_shift
20903    case $ac_optarg in
20904    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20905    '') as_fn_error $? "missing file argument" ;;
20906    esac
20907    as_fn_append CONFIG_FILES " '$ac_optarg'"
20908    ac_need_defaults=false;;
20909  --header | --heade | --head | --hea )
20910    $ac_shift
20911    case $ac_optarg in
20912    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20913    esac
20914    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20915    ac_need_defaults=false;;
20916  --he | --h)
20917    # Conflict between --help and --header
20918    as_fn_error $? "ambiguous option: '$1'
20919Try '$0 --help' for more information.";;
20920  --help | --hel | -h )
20921    printf "%s\n" "$ac_cs_usage"; exit ;;
20922  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20923  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20924    ac_cs_silent=: ;;
20925
20926  # This is an error.
20927  -*) as_fn_error $? "unrecognized option: '$1'
20928Try '$0 --help' for more information." ;;
20929
20930  *) as_fn_append ac_config_targets " $1"
20931     ac_need_defaults=false ;;
20932
20933  esac
20934  shift
20935done
20936
20937ac_configure_extra_args=
20938
20939if $ac_cs_silent; then
20940  exec 6>/dev/null
20941  ac_configure_extra_args="$ac_configure_extra_args --silent"
20942fi
20943
20944_ACEOF
20945cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20946if \$ac_cs_recheck; then
20947  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20948  shift
20949  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20950  CONFIG_SHELL='$SHELL'
20951  export CONFIG_SHELL
20952  exec "\$@"
20953fi
20954
20955_ACEOF
20956cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20957exec 5>>config.log
20958{
20959  echo
20960  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20961## Running $as_me. ##
20962_ASBOX
20963  printf "%s\n" "$ac_log"
20964} >&5
20965
20966_ACEOF
20967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20968#
20969# INIT-COMMANDS
20970#
20971AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20972
20973
20974# The HP-UX ksh and POSIX shell print the target directory to stdout
20975# if CDPATH is set.
20976(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20977
20978sed_quote_subst='$sed_quote_subst'
20979double_quote_subst='$double_quote_subst'
20980delay_variable_subst='$delay_variable_subst'
20981macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20982macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20983enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20984enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20985pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20986enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20987shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20988SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20989ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20990PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20991host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20992host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20993host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20994build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20995build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20996build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20997SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20998Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20999GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21000EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21001FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21002LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21003NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21004LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21005max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21006ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21007exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21008lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21009lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21010lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21011lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21012lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21013reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21014reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21015FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21016OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21017deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21018file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21019file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21020want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21021DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21022sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21023AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21024lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21025AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21026archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21027STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21028RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21029old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21030old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21031old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21032lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21033CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21034CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21035compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21036GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21037lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21038lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21039lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21040lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21041lt_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"`'
21042lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21043nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21044lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21045lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21046objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21047MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21048lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21049lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21050lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21051lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21052lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21053need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21054MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21055DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21056NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21057LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21058OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21059OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21060libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21061shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21062extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21063archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21064enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21065export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21066whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21067compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21068old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21069old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21070archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21071archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21072module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21073module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21074with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21075allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21076no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21077hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21078hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21079hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21080hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21081hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21082hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21083hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21084inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21085link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21086always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21087export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21088exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21089include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21090prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21091postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21092file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21093variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21094need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21095need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21096version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21097runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21098shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21099shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21100libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21101library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21102soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21103install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21104postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21105postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21106finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21107finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21108hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21109sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21110configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21111configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21112hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21113enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21114enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21115enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21116old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21117striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21118
21119LTCC='$LTCC'
21120LTCFLAGS='$LTCFLAGS'
21121compiler='$compiler_DEFAULT'
21122
21123# A function that is used when there is no print builtin or printf.
21124func_fallback_echo ()
21125{
21126  eval 'cat <<_LTECHO_EOF
21127\$1
21128_LTECHO_EOF'
21129}
21130
21131# Quote evaled strings.
21132for var in SHELL \
21133ECHO \
21134PATH_SEPARATOR \
21135SED \
21136GREP \
21137EGREP \
21138FGREP \
21139LD \
21140NM \
21141LN_S \
21142lt_SP2NL \
21143lt_NL2SP \
21144reload_flag \
21145FILECMD \
21146OBJDUMP \
21147deplibs_check_method \
21148file_magic_cmd \
21149file_magic_glob \
21150want_nocaseglob \
21151DLLTOOL \
21152sharedlib_from_linklib_cmd \
21153AR \
21154archiver_list_spec \
21155STRIP \
21156RANLIB \
21157CC \
21158CFLAGS \
21159compiler \
21160lt_cv_sys_global_symbol_pipe \
21161lt_cv_sys_global_symbol_to_cdecl \
21162lt_cv_sys_global_symbol_to_import \
21163lt_cv_sys_global_symbol_to_c_name_address \
21164lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21165lt_cv_nm_interface \
21166nm_file_list_spec \
21167lt_cv_truncate_bin \
21168lt_prog_compiler_no_builtin_flag \
21169lt_prog_compiler_pic \
21170lt_prog_compiler_wl \
21171lt_prog_compiler_static \
21172lt_cv_prog_compiler_c_o \
21173need_locks \
21174MANIFEST_TOOL \
21175DSYMUTIL \
21176NMEDIT \
21177LIPO \
21178OTOOL \
21179OTOOL64 \
21180shrext_cmds \
21181export_dynamic_flag_spec \
21182whole_archive_flag_spec \
21183compiler_needs_object \
21184with_gnu_ld \
21185allow_undefined_flag \
21186no_undefined_flag \
21187hardcode_libdir_flag_spec \
21188hardcode_libdir_separator \
21189exclude_expsyms \
21190include_expsyms \
21191file_list_spec \
21192variables_saved_for_relink \
21193libname_spec \
21194library_names_spec \
21195soname_spec \
21196install_override_mode \
21197finish_eval \
21198old_striplib \
21199striplib; do
21200    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21201    *[\\\\\\\`\\"\\\$]*)
21202      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21203      ;;
21204    *)
21205      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21206      ;;
21207    esac
21208done
21209
21210# Double-quote double-evaled strings.
21211for var in reload_cmds \
21212old_postinstall_cmds \
21213old_postuninstall_cmds \
21214old_archive_cmds \
21215extract_expsyms_cmds \
21216old_archive_from_new_cmds \
21217old_archive_from_expsyms_cmds \
21218archive_cmds \
21219archive_expsym_cmds \
21220module_cmds \
21221module_expsym_cmds \
21222export_symbols_cmds \
21223prelink_cmds \
21224postlink_cmds \
21225postinstall_cmds \
21226postuninstall_cmds \
21227finish_cmds \
21228sys_lib_search_path_spec \
21229configure_time_dlsearch_path \
21230configure_time_lt_sys_library_path; do
21231    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21232    *[\\\\\\\`\\"\\\$]*)
21233      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21234      ;;
21235    *)
21236      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21237      ;;
21238    esac
21239done
21240
21241ac_aux_dir='$ac_aux_dir'
21242
21243# See if we are running on zsh, and set the options that allow our
21244# commands through without removal of \ escapes INIT.
21245if test -n "\${ZSH_VERSION+set}"; then
21246   setopt NO_GLOB_SUBST
21247fi
21248
21249
21250    PACKAGE='$PACKAGE'
21251    VERSION='$VERSION'
21252    RM='$RM'
21253    ofile='$ofile'
21254
21255
21256
21257
21258_ACEOF
21259
21260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21261
21262# Handling of arguments.
21263for ac_config_target in $ac_config_targets
21264do
21265  case $ac_config_target in
21266    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21267    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21268    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21269    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21270    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21271    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21272
21273  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21274  esac
21275done
21276
21277
21278# If the user did not use the arguments to specify the items to instantiate,
21279# then the envvar interface is used.  Set only those that are not.
21280# We use the long form for the default assignment because of an extremely
21281# bizarre bug on SunOS 4.1.3.
21282if $ac_need_defaults; then
21283  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21284  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21285  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21286fi
21287
21288# Have a temporary directory for convenience.  Make it in the build tree
21289# simply because there is no reason against having it here, and in addition,
21290# creating and moving files from /tmp can sometimes cause problems.
21291# Hook for its removal unless debugging.
21292# Note that there is a small window in which the directory will not be cleaned:
21293# after its creation but before its name has been assigned to '$tmp'.
21294$debug ||
21295{
21296  tmp= ac_tmp=
21297  trap 'exit_status=$?
21298  : "${ac_tmp:=$tmp}"
21299  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21300' 0
21301  trap 'as_fn_exit 1' 1 2 13 15
21302}
21303# Create a (secure) tmp directory for tmp files.
21304
21305{
21306  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21307  test -d "$tmp"
21308}  ||
21309{
21310  tmp=./conf$$-$RANDOM
21311  (umask 077 && mkdir "$tmp")
21312} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21313ac_tmp=$tmp
21314
21315# Set up the scripts for CONFIG_FILES section.
21316# No need to generate them if there are no CONFIG_FILES.
21317# This happens for instance with './config.status config.h'.
21318if test -n "$CONFIG_FILES"; then
21319
21320
21321ac_cr=`echo X | tr X '\015'`
21322# On cygwin, bash can eat \r inside `` if the user requested igncr.
21323# But we know of no other shell where ac_cr would be empty at this
21324# point, so we can use a bashism as a fallback.
21325if test "x$ac_cr" = x; then
21326  eval ac_cr=\$\'\\r\'
21327fi
21328ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21329if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21330  ac_cs_awk_cr='\\r'
21331else
21332  ac_cs_awk_cr=$ac_cr
21333fi
21334
21335echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21336_ACEOF
21337
21338
21339{
21340  echo "cat >conf$$subs.awk <<_ACEOF" &&
21341  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21342  echo "_ACEOF"
21343} >conf$$subs.sh ||
21344  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21345ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21346ac_delim='%!_!# '
21347for ac_last_try in false false false false false :; do
21348  . ./conf$$subs.sh ||
21349    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21350
21351  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21352  if test $ac_delim_n = $ac_delim_num; then
21353    break
21354  elif $ac_last_try; then
21355    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21356  else
21357    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21358  fi
21359done
21360rm -f conf$$subs.sh
21361
21362cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21363cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21364_ACEOF
21365sed -n '
21366h
21367s/^/S["/; s/!.*/"]=/
21368p
21369g
21370s/^[^!]*!//
21371:repl
21372t repl
21373s/'"$ac_delim"'$//
21374t delim
21375:nl
21376h
21377s/\(.\{148\}\)..*/\1/
21378t more1
21379s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21380p
21381n
21382b repl
21383:more1
21384s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21385p
21386g
21387s/.\{148\}//
21388t nl
21389:delim
21390h
21391s/\(.\{148\}\)..*/\1/
21392t more2
21393s/["\\]/\\&/g; s/^/"/; s/$/"/
21394p
21395b
21396:more2
21397s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21398p
21399g
21400s/.\{148\}//
21401t delim
21402' <conf$$subs.awk | sed '
21403/^[^""]/{
21404  N
21405  s/\n//
21406}
21407' >>$CONFIG_STATUS || ac_write_fail=1
21408rm -f conf$$subs.awk
21409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21410_ACAWK
21411cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21412  for (key in S) S_is_set[key] = 1
21413  FS = ""
21414
21415}
21416{
21417  line = $ 0
21418  nfields = split(line, field, "@")
21419  substed = 0
21420  len = length(field[1])
21421  for (i = 2; i < nfields; i++) {
21422    key = field[i]
21423    keylen = length(key)
21424    if (S_is_set[key]) {
21425      value = S[key]
21426      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21427      len += length(value) + length(field[++i])
21428      substed = 1
21429    } else
21430      len += 1 + keylen
21431  }
21432
21433  print line
21434}
21435
21436_ACAWK
21437_ACEOF
21438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21439if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21440  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21441else
21442  cat
21443fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21444  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21445_ACEOF
21446
21447# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21448# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21449# trailing colons and then remove the whole line if VPATH becomes empty
21450# (actually we leave an empty line to preserve line numbers).
21451if test "x$srcdir" = x.; then
21452  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21453h
21454s///
21455s/^/:/
21456s/[	 ]*$/:/
21457s/:\$(srcdir):/:/g
21458s/:\${srcdir}:/:/g
21459s/:@srcdir@:/:/g
21460s/^:*//
21461s/:*$//
21462x
21463s/\(=[	 ]*\).*/\1/
21464G
21465s/\n//
21466s/^[^=]*=[	 ]*$//
21467}'
21468fi
21469
21470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21471fi # test -n "$CONFIG_FILES"
21472
21473# Set up the scripts for CONFIG_HEADERS section.
21474# No need to generate them if there are no CONFIG_HEADERS.
21475# This happens for instance with './config.status Makefile'.
21476if test -n "$CONFIG_HEADERS"; then
21477cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21478BEGIN {
21479_ACEOF
21480
21481# Transform confdefs.h into an awk script 'defines.awk', embedded as
21482# here-document in config.status, that substitutes the proper values into
21483# config.h.in to produce config.h.
21484
21485# Create a delimiter string that does not exist in confdefs.h, to ease
21486# handling of long lines.
21487ac_delim='%!_!# '
21488for ac_last_try in false false :; do
21489  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21490  if test -z "$ac_tt"; then
21491    break
21492  elif $ac_last_try; then
21493    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21494  else
21495    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21496  fi
21497done
21498
21499# For the awk script, D is an array of macro values keyed by name,
21500# likewise P contains macro parameters if any.  Preserve backslash
21501# newline sequences.
21502
21503ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21504sed -n '
21505s/.\{148\}/&'"$ac_delim"'/g
21506t rset
21507:rset
21508s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21509t def
21510d
21511:def
21512s/\\$//
21513t bsnl
21514s/["\\]/\\&/g
21515s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21516D["\1"]=" \3"/p
21517s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21518d
21519:bsnl
21520s/["\\]/\\&/g
21521s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21522D["\1"]=" \3\\\\\\n"\\/p
21523t cont
21524s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21525t cont
21526d
21527:cont
21528n
21529s/.\{148\}/&'"$ac_delim"'/g
21530t clear
21531:clear
21532s/\\$//
21533t bsnlc
21534s/["\\]/\\&/g; s/^/"/; s/$/"/p
21535d
21536:bsnlc
21537s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21538b cont
21539' <confdefs.h | sed '
21540s/'"$ac_delim"'/"\\\
21541"/g' >>$CONFIG_STATUS || ac_write_fail=1
21542
21543cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21544  for (key in D) D_is_set[key] = 1
21545  FS = ""
21546}
21547/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21548  line = \$ 0
21549  split(line, arg, " ")
21550  if (arg[1] == "#") {
21551    defundef = arg[2]
21552    mac1 = arg[3]
21553  } else {
21554    defundef = substr(arg[1], 2)
21555    mac1 = arg[2]
21556  }
21557  split(mac1, mac2, "(") #)
21558  macro = mac2[1]
21559  prefix = substr(line, 1, index(line, defundef) - 1)
21560  if (D_is_set[macro]) {
21561    # Preserve the white space surrounding the "#".
21562    print prefix "define", macro P[macro] D[macro]
21563    next
21564  } else {
21565    # Replace #undef with comments.  This is necessary, for example,
21566    # in the case of _POSIX_SOURCE, which is predefined and required
21567    # on some systems where configure will not decide to define it.
21568    if (defundef == "undef") {
21569      print "/*", prefix defundef, macro, "*/"
21570      next
21571    }
21572  }
21573}
21574{ print }
21575_ACAWK
21576_ACEOF
21577cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21578  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21579fi # test -n "$CONFIG_HEADERS"
21580
21581
21582eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21583shift
21584for ac_tag
21585do
21586  case $ac_tag in
21587  :[FHLC]) ac_mode=$ac_tag; continue;;
21588  esac
21589  case $ac_mode$ac_tag in
21590  :[FHL]*:*);;
21591  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
21592  :[FH]-) ac_tag=-:-;;
21593  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21594  esac
21595  ac_save_IFS=$IFS
21596  IFS=:
21597  set x $ac_tag
21598  IFS=$ac_save_IFS
21599  shift
21600  ac_file=$1
21601  shift
21602
21603  case $ac_mode in
21604  :L) ac_source=$1;;
21605  :[FH])
21606    ac_file_inputs=
21607    for ac_f
21608    do
21609      case $ac_f in
21610      -) ac_f="$ac_tmp/stdin";;
21611      *) # Look for the file first in the build tree, then in the source tree
21612	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21613	 # because $ac_f cannot contain ':'.
21614	 test -f "$ac_f" ||
21615	   case $ac_f in
21616	   [\\/$]*) false;;
21617	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21618	   esac ||
21619	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
21620      esac
21621      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21622      as_fn_append ac_file_inputs " '$ac_f'"
21623    done
21624
21625    # Let's still pretend it is 'configure' which instantiates (i.e., don't
21626    # use $as_me), people would be surprised to read:
21627    #    /* config.h.  Generated by config.status.  */
21628    configure_input='Generated from '`
21629	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21630	`' by configure.'
21631    if test x"$ac_file" != x-; then
21632      configure_input="$ac_file.  $configure_input"
21633      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21634printf "%s\n" "$as_me: creating $ac_file" >&6;}
21635    fi
21636    # Neutralize special characters interpreted by sed in replacement strings.
21637    case $configure_input in #(
21638    *\&* | *\|* | *\\* )
21639       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21640       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21641    *) ac_sed_conf_input=$configure_input;;
21642    esac
21643
21644    case $ac_tag in
21645    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21646      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21647    esac
21648    ;;
21649  esac
21650
21651  ac_dir=`$as_dirname -- "$ac_file" ||
21652$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21653	 X"$ac_file" : 'X\(//\)[^/]' \| \
21654	 X"$ac_file" : 'X\(//\)$' \| \
21655	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21656printf "%s\n" X"$ac_file" |
21657    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21658	    s//\1/
21659	    q
21660	  }
21661	  /^X\(\/\/\)[^/].*/{
21662	    s//\1/
21663	    q
21664	  }
21665	  /^X\(\/\/\)$/{
21666	    s//\1/
21667	    q
21668	  }
21669	  /^X\(\/\).*/{
21670	    s//\1/
21671	    q
21672	  }
21673	  s/.*/./; q'`
21674  as_dir="$ac_dir"; as_fn_mkdir_p
21675  ac_builddir=.
21676
21677case "$ac_dir" in
21678.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21679*)
21680  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21681  # A ".." for each directory in $ac_dir_suffix.
21682  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21683  case $ac_top_builddir_sub in
21684  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21685  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21686  esac ;;
21687esac
21688ac_abs_top_builddir=$ac_pwd
21689ac_abs_builddir=$ac_pwd$ac_dir_suffix
21690# for backward compatibility:
21691ac_top_builddir=$ac_top_build_prefix
21692
21693case $srcdir in
21694  .)  # We are building in place.
21695    ac_srcdir=.
21696    ac_top_srcdir=$ac_top_builddir_sub
21697    ac_abs_top_srcdir=$ac_pwd ;;
21698  [\\/]* | ?:[\\/]* )  # Absolute name.
21699    ac_srcdir=$srcdir$ac_dir_suffix;
21700    ac_top_srcdir=$srcdir
21701    ac_abs_top_srcdir=$srcdir ;;
21702  *) # Relative name.
21703    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21704    ac_top_srcdir=$ac_top_build_prefix$srcdir
21705    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21706esac
21707ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21708
21709
21710  case $ac_mode in
21711  :F)
21712  #
21713  # CONFIG_FILE
21714  #
21715
21716  case $INSTALL in
21717  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21718  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21719  esac
21720  ac_MKDIR_P=$MKDIR_P
21721  case $MKDIR_P in
21722  [\\/$]* | ?:[\\/]* ) ;;
21723  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21724  esac
21725_ACEOF
21726
21727cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21728# If the template does not know about datarootdir, expand it.
21729# FIXME: This hack should be removed a few years after 2.60.
21730ac_datarootdir_hack=; ac_datarootdir_seen=
21731ac_sed_dataroot='
21732/datarootdir/ {
21733  p
21734  q
21735}
21736/@datadir@/p
21737/@docdir@/p
21738/@infodir@/p
21739/@localedir@/p
21740/@mandir@/p'
21741case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21742*datarootdir*) ac_datarootdir_seen=yes;;
21743*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21744  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21745printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21746_ACEOF
21747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21748  ac_datarootdir_hack='
21749  s&@datadir@&$datadir&g
21750  s&@docdir@&$docdir&g
21751  s&@infodir@&$infodir&g
21752  s&@localedir@&$localedir&g
21753  s&@mandir@&$mandir&g
21754  s&\\\${datarootdir}&$datarootdir&g' ;;
21755esac
21756_ACEOF
21757
21758# Neutralize VPATH when '$srcdir' = '.'.
21759# Shell code in configure.ac might set extrasub.
21760# FIXME: do we really want to maintain this feature?
21761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21762ac_sed_extra="$ac_vpsub
21763$extrasub
21764_ACEOF
21765cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21766:t
21767/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21768s|@configure_input@|$ac_sed_conf_input|;t t
21769s&@top_builddir@&$ac_top_builddir_sub&;t t
21770s&@top_build_prefix@&$ac_top_build_prefix&;t t
21771s&@srcdir@&$ac_srcdir&;t t
21772s&@abs_srcdir@&$ac_abs_srcdir&;t t
21773s&@top_srcdir@&$ac_top_srcdir&;t t
21774s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21775s&@builddir@&$ac_builddir&;t t
21776s&@abs_builddir@&$ac_abs_builddir&;t t
21777s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21778s&@INSTALL@&$ac_INSTALL&;t t
21779s&@MKDIR_P@&$ac_MKDIR_P&;t t
21780$ac_datarootdir_hack
21781"
21782eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21783  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21784
21785test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21786  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21787  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21788      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21790which seems to be undefined.  Please make sure it is defined" >&5
21791printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21792which seems to be undefined.  Please make sure it is defined" >&2;}
21793
21794  rm -f "$ac_tmp/stdin"
21795  case $ac_file in
21796  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21797  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21798  esac \
21799  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21800 ;;
21801  :H)
21802  #
21803  # CONFIG_HEADER
21804  #
21805  if test x"$ac_file" != x-; then
21806    {
21807      printf "%s\n" "/* $configure_input  */" >&1 \
21808      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21809    } >"$ac_tmp/config.h" \
21810      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21811    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21812      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21813printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21814    else
21815      rm -f "$ac_file"
21816      mv "$ac_tmp/config.h" "$ac_file" \
21817	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21818    fi
21819  else
21820    printf "%s\n" "/* $configure_input  */" >&1 \
21821      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21822      || as_fn_error $? "could not create -" "$LINENO" 5
21823  fi
21824# Compute "$ac_file"'s index in $config_headers.
21825_am_arg="$ac_file"
21826_am_stamp_count=1
21827for _am_header in $config_headers :; do
21828  case $_am_header in
21829    $_am_arg | $_am_arg:* )
21830      break ;;
21831    * )
21832      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21833  esac
21834done
21835echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21836$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21837	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21838	 X"$_am_arg" : 'X\(//\)$' \| \
21839	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21840printf "%s\n" X"$_am_arg" |
21841    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21842	    s//\1/
21843	    q
21844	  }
21845	  /^X\(\/\/\)[^/].*/{
21846	    s//\1/
21847	    q
21848	  }
21849	  /^X\(\/\/\)$/{
21850	    s//\1/
21851	    q
21852	  }
21853	  /^X\(\/\).*/{
21854	    s//\1/
21855	    q
21856	  }
21857	  s/.*/./; q'`/stamp-h$_am_stamp_count
21858 ;;
21859
21860  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21861printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21862 ;;
21863  esac
21864
21865
21866  case $ac_file$ac_mode in
21867    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21868  # Older Autoconf quotes --file arguments for eval, but not when files
21869  # are listed without --file.  Let's play safe and only enable the eval
21870  # if we detect the quoting.
21871  # TODO: see whether this extra hack can be removed once we start
21872  # requiring Autoconf 2.70 or later.
21873  case $CONFIG_FILES in #(
21874  *\'*) :
21875    eval set x "$CONFIG_FILES" ;; #(
21876  *) :
21877    set x $CONFIG_FILES ;; #(
21878  *) :
21879     ;;
21880esac
21881  shift
21882  # Used to flag and report bootstrapping failures.
21883  am_rc=0
21884  for am_mf
21885  do
21886    # Strip MF so we end up with the name of the file.
21887    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21888    # Check whether this is an Automake generated Makefile which includes
21889    # dependency-tracking related rules and includes.
21890    # Grep'ing the whole file directly is not great: AIX grep has a line
21891    # limit of 2048, but all sed's we know have understand at least 4000.
21892    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21893      || continue
21894    am_dirpart=`$as_dirname -- "$am_mf" ||
21895$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21896	 X"$am_mf" : 'X\(//\)[^/]' \| \
21897	 X"$am_mf" : 'X\(//\)$' \| \
21898	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21899printf "%s\n" X"$am_mf" |
21900    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21901	    s//\1/
21902	    q
21903	  }
21904	  /^X\(\/\/\)[^/].*/{
21905	    s//\1/
21906	    q
21907	  }
21908	  /^X\(\/\/\)$/{
21909	    s//\1/
21910	    q
21911	  }
21912	  /^X\(\/\).*/{
21913	    s//\1/
21914	    q
21915	  }
21916	  s/.*/./; q'`
21917    am_filepart=`$as_basename -- "$am_mf" ||
21918$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21919	 X"$am_mf" : 'X\(//\)$' \| \
21920	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21921printf "%s\n" X/"$am_mf" |
21922    sed '/^.*\/\([^/][^/]*\)\/*$/{
21923	    s//\1/
21924	    q
21925	  }
21926	  /^X\/\(\/\/\)$/{
21927	    s//\1/
21928	    q
21929	  }
21930	  /^X\/\(\/\).*/{
21931	    s//\1/
21932	    q
21933	  }
21934	  s/.*/./; q'`
21935    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21936      && sed -e '/# am--include-marker/d' "$am_filepart" \
21937        | $MAKE -f - am--depfiles" >&5
21938   (cd "$am_dirpart" \
21939      && sed -e '/# am--include-marker/d' "$am_filepart" \
21940        | $MAKE -f - am--depfiles) >&5 2>&5
21941   ac_status=$?
21942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943   (exit $ac_status); } || am_rc=$?
21944  done
21945  if test $am_rc -ne 0; then
21946    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21947printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21948as_fn_error $? "Something went wrong bootstrapping makefile fragments
21949    for automatic dependency tracking.  If GNU make was not used, consider
21950    re-running the configure script with MAKE=\"gmake\" (or whatever is
21951    necessary).  You can also try re-running configure with the
21952    '--disable-dependency-tracking' option to at least be able to build
21953    the package (albeit without support for automatic dependency tracking).
21954See 'config.log' for more details" "$LINENO" 5; }
21955  fi
21956  { am_dirpart=; unset am_dirpart;}
21957  { am_filepart=; unset am_filepart;}
21958  { am_mf=; unset am_mf;}
21959  { am_rc=; unset am_rc;}
21960  rm -f conftest-deps.mk
21961}
21962 ;;
21963    "libtool":C)
21964
21965    # See if we are running on zsh, and set the options that allow our
21966    # commands through without removal of \ escapes.
21967    if test -n "${ZSH_VERSION+set}"; then
21968      setopt NO_GLOB_SUBST
21969    fi
21970
21971    cfgfile=${ofile}T
21972    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21973    $RM "$cfgfile"
21974
21975    cat <<_LT_EOF >> "$cfgfile"
21976#! $SHELL
21977# Generated automatically by $as_me ($PACKAGE) $VERSION
21978# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21979# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21980
21981# Provide generalized library-building support services.
21982# Written by Gordon Matzigkeit, 1996
21983
21984# Copyright (C) 2014 Free Software Foundation, Inc.
21985# This is free software; see the source for copying conditions.  There is NO
21986# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21987
21988# GNU Libtool is free software; you can redistribute it and/or modify
21989# it under the terms of the GNU General Public License as published by
21990# the Free Software Foundation; either version 2 of of the License, or
21991# (at your option) any later version.
21992#
21993# As a special exception to the GNU General Public License, if you
21994# distribute this file as part of a program or library that is built
21995# using GNU Libtool, you may include this file under the  same
21996# distribution terms that you use for the rest of that program.
21997#
21998# GNU Libtool is distributed in the hope that it will be useful, but
21999# WITHOUT ANY WARRANTY; without even the implied warranty of
22000# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22001# GNU General Public License for more details.
22002#
22003# You should have received a copy of the GNU General Public License
22004# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22005
22006
22007# The names of the tagged configurations supported by this script.
22008available_tags=''
22009
22010# Configured defaults for sys_lib_dlsearch_path munging.
22011: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22012
22013# ### BEGIN LIBTOOL CONFIG
22014
22015# Which release of libtool.m4 was used?
22016macro_version=$macro_version
22017macro_revision=$macro_revision
22018
22019# Whether or not to build static libraries.
22020build_old_libs=$enable_static
22021
22022# Whether or not to build shared libraries.
22023build_libtool_libs=$enable_shared
22024
22025# What type of objects to build.
22026pic_mode=$pic_mode
22027
22028# Whether or not to optimize for fast installation.
22029fast_install=$enable_fast_install
22030
22031# Shared archive member basename,for filename based shared library versioning on AIX.
22032shared_archive_member_spec=$shared_archive_member_spec
22033
22034# Shell to use when invoking shell scripts.
22035SHELL=$lt_SHELL
22036
22037# An echo program that protects backslashes.
22038ECHO=$lt_ECHO
22039
22040# The PATH separator for the build system.
22041PATH_SEPARATOR=$lt_PATH_SEPARATOR
22042
22043# The host system.
22044host_alias=$host_alias
22045host=$host
22046host_os=$host_os
22047
22048# The build system.
22049build_alias=$build_alias
22050build=$build
22051build_os=$build_os
22052
22053# A sed program that does not truncate output.
22054SED=$lt_SED
22055
22056# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22057Xsed="\$SED -e 1s/^X//"
22058
22059# A grep program that handles long lines.
22060GREP=$lt_GREP
22061
22062# An ERE matcher.
22063EGREP=$lt_EGREP
22064
22065# A literal string matcher.
22066FGREP=$lt_FGREP
22067
22068# A BSD- or MS-compatible name lister.
22069NM=$lt_NM
22070
22071# Whether we need soft or hard links.
22072LN_S=$lt_LN_S
22073
22074# What is the maximum length of a command?
22075max_cmd_len=$max_cmd_len
22076
22077# Object file suffix (normally "o").
22078objext=$ac_objext
22079
22080# Executable file suffix (normally "").
22081exeext=$exeext
22082
22083# whether the shell understands "unset".
22084lt_unset=$lt_unset
22085
22086# turn spaces into newlines.
22087SP2NL=$lt_lt_SP2NL
22088
22089# turn newlines into spaces.
22090NL2SP=$lt_lt_NL2SP
22091
22092# convert \$build file names to \$host format.
22093to_host_file_cmd=$lt_cv_to_host_file_cmd
22094
22095# convert \$build files to toolchain format.
22096to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22097
22098# A file(cmd) program that detects file types.
22099FILECMD=$lt_FILECMD
22100
22101# An object symbol dumper.
22102OBJDUMP=$lt_OBJDUMP
22103
22104# Method to check whether dependent libraries are shared objects.
22105deplibs_check_method=$lt_deplibs_check_method
22106
22107# Command to use when deplibs_check_method = "file_magic".
22108file_magic_cmd=$lt_file_magic_cmd
22109
22110# How to find potential files when deplibs_check_method = "file_magic".
22111file_magic_glob=$lt_file_magic_glob
22112
22113# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22114want_nocaseglob=$lt_want_nocaseglob
22115
22116# DLL creation program.
22117DLLTOOL=$lt_DLLTOOL
22118
22119# Command to associate shared and link libraries.
22120sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22121
22122# The archiver.
22123AR=$lt_AR
22124
22125# Flags to create an archive (by configure).
22126lt_ar_flags=$lt_ar_flags
22127
22128# Flags to create an archive.
22129AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22130
22131# How to feed a file listing to the archiver.
22132archiver_list_spec=$lt_archiver_list_spec
22133
22134# A symbol stripping program.
22135STRIP=$lt_STRIP
22136
22137# Commands used to install an old-style archive.
22138RANLIB=$lt_RANLIB
22139old_postinstall_cmds=$lt_old_postinstall_cmds
22140old_postuninstall_cmds=$lt_old_postuninstall_cmds
22141
22142# Whether to use a lock for old archive extraction.
22143lock_old_archive_extraction=$lock_old_archive_extraction
22144
22145# A C compiler.
22146LTCC=$lt_CC
22147
22148# LTCC compiler flags.
22149LTCFLAGS=$lt_CFLAGS
22150
22151# Take the output of nm and produce a listing of raw symbols and C names.
22152global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22153
22154# Transform the output of nm in a proper C declaration.
22155global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22156
22157# Transform the output of nm into a list of symbols to manually relocate.
22158global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22159
22160# Transform the output of nm in a C name address pair.
22161global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22162
22163# Transform the output of nm in a C name address pair when lib prefix is needed.
22164global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22165
22166# The name lister interface.
22167nm_interface=$lt_lt_cv_nm_interface
22168
22169# Specify filename containing input files for \$NM.
22170nm_file_list_spec=$lt_nm_file_list_spec
22171
22172# The root where to search for dependent libraries,and where our libraries should be installed.
22173lt_sysroot=$lt_sysroot
22174
22175# Command to truncate a binary pipe.
22176lt_truncate_bin=$lt_lt_cv_truncate_bin
22177
22178# The name of the directory that contains temporary libtool files.
22179objdir=$objdir
22180
22181# Used to examine libraries when file_magic_cmd begins with "file".
22182MAGIC_CMD=$MAGIC_CMD
22183
22184# Must we lock files when doing compilation?
22185need_locks=$lt_need_locks
22186
22187# Manifest tool.
22188MANIFEST_TOOL=$lt_MANIFEST_TOOL
22189
22190# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22191DSYMUTIL=$lt_DSYMUTIL
22192
22193# Tool to change global to local symbols on Mac OS X.
22194NMEDIT=$lt_NMEDIT
22195
22196# Tool to manipulate fat objects and archives on Mac OS X.
22197LIPO=$lt_LIPO
22198
22199# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22200OTOOL=$lt_OTOOL
22201
22202# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22203OTOOL64=$lt_OTOOL64
22204
22205# Old archive suffix (normally "a").
22206libext=$libext
22207
22208# Shared library suffix (normally ".so").
22209shrext_cmds=$lt_shrext_cmds
22210
22211# The commands to extract the exported symbol list from a shared archive.
22212extract_expsyms_cmds=$lt_extract_expsyms_cmds
22213
22214# Variables whose values should be saved in libtool wrapper scripts and
22215# restored at link time.
22216variables_saved_for_relink=$lt_variables_saved_for_relink
22217
22218# Do we need the "lib" prefix for modules?
22219need_lib_prefix=$need_lib_prefix
22220
22221# Do we need a version for libraries?
22222need_version=$need_version
22223
22224# Library versioning type.
22225version_type=$version_type
22226
22227# Shared library runtime path variable.
22228runpath_var=$runpath_var
22229
22230# Shared library path variable.
22231shlibpath_var=$shlibpath_var
22232
22233# Is shlibpath searched before the hard-coded library search path?
22234shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22235
22236# Format of library name prefix.
22237libname_spec=$lt_libname_spec
22238
22239# List of archive names.  First name is the real one, the rest are links.
22240# The last name is the one that the linker finds with -lNAME
22241library_names_spec=$lt_library_names_spec
22242
22243# The coded name of the library, if different from the real name.
22244soname_spec=$lt_soname_spec
22245
22246# Permission mode override for installation of shared libraries.
22247install_override_mode=$lt_install_override_mode
22248
22249# Command to use after installation of a shared archive.
22250postinstall_cmds=$lt_postinstall_cmds
22251
22252# Command to use after uninstallation of a shared archive.
22253postuninstall_cmds=$lt_postuninstall_cmds
22254
22255# Commands used to finish a libtool library installation in a directory.
22256finish_cmds=$lt_finish_cmds
22257
22258# As "finish_cmds", except a single script fragment to be evaled but
22259# not shown.
22260finish_eval=$lt_finish_eval
22261
22262# Whether we should hardcode library paths into libraries.
22263hardcode_into_libs=$hardcode_into_libs
22264
22265# Compile-time system search path for libraries.
22266sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22267
22268# Detected run-time system search path for libraries.
22269sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22270
22271# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22272configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22273
22274# Whether dlopen is supported.
22275dlopen_support=$enable_dlopen
22276
22277# Whether dlopen of programs is supported.
22278dlopen_self=$enable_dlopen_self
22279
22280# Whether dlopen of statically linked programs is supported.
22281dlopen_self_static=$enable_dlopen_self_static
22282
22283# Commands to strip libraries.
22284old_striplib=$lt_old_striplib
22285striplib=$lt_striplib
22286
22287
22288# The linker used to build libraries.
22289LD=$lt_LD
22290
22291# How to create reloadable object files.
22292reload_flag=$lt_reload_flag
22293reload_cmds=$lt_reload_cmds
22294
22295# Commands used to build an old-style archive.
22296old_archive_cmds=$lt_old_archive_cmds
22297
22298# A language specific compiler.
22299CC=$lt_compiler
22300
22301# Is the compiler the GNU compiler?
22302with_gcc=$GCC
22303
22304# Compiler flag to turn off builtin functions.
22305no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22306
22307# Additional compiler flags for building library objects.
22308pic_flag=$lt_lt_prog_compiler_pic
22309
22310# How to pass a linker flag through the compiler.
22311wl=$lt_lt_prog_compiler_wl
22312
22313# Compiler flag to prevent dynamic linking.
22314link_static_flag=$lt_lt_prog_compiler_static
22315
22316# Does compiler simultaneously support -c and -o options?
22317compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22318
22319# Whether or not to add -lc for building shared libraries.
22320build_libtool_need_lc=$archive_cmds_need_lc
22321
22322# Whether or not to disallow shared libs when runtime libs are static.
22323allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22324
22325# Compiler flag to allow reflexive dlopens.
22326export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22327
22328# Compiler flag to generate shared objects directly from archives.
22329whole_archive_flag_spec=$lt_whole_archive_flag_spec
22330
22331# Whether the compiler copes with passing no objects directly.
22332compiler_needs_object=$lt_compiler_needs_object
22333
22334# Create an old-style archive from a shared archive.
22335old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22336
22337# Create a temporary old-style archive to link instead of a shared archive.
22338old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22339
22340# Commands used to build a shared archive.
22341archive_cmds=$lt_archive_cmds
22342archive_expsym_cmds=$lt_archive_expsym_cmds
22343
22344# Commands used to build a loadable module if different from building
22345# a shared archive.
22346module_cmds=$lt_module_cmds
22347module_expsym_cmds=$lt_module_expsym_cmds
22348
22349# Whether we are building with GNU ld or not.
22350with_gnu_ld=$lt_with_gnu_ld
22351
22352# Flag that allows shared libraries with undefined symbols to be built.
22353allow_undefined_flag=$lt_allow_undefined_flag
22354
22355# Flag that enforces no undefined symbols.
22356no_undefined_flag=$lt_no_undefined_flag
22357
22358# Flag to hardcode \$libdir into a binary during linking.
22359# This must work even if \$libdir does not exist
22360hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22361
22362# Whether we need a single "-rpath" flag with a separated argument.
22363hardcode_libdir_separator=$lt_hardcode_libdir_separator
22364
22365# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22366# DIR into the resulting binary.
22367hardcode_direct=$hardcode_direct
22368
22369# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22370# DIR into the resulting binary and the resulting library dependency is
22371# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22372# library is relocated.
22373hardcode_direct_absolute=$hardcode_direct_absolute
22374
22375# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22376# into the resulting binary.
22377hardcode_minus_L=$hardcode_minus_L
22378
22379# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22380# into the resulting binary.
22381hardcode_shlibpath_var=$hardcode_shlibpath_var
22382
22383# Set to "yes" if building a shared library automatically hardcodes DIR
22384# into the library and all subsequent libraries and executables linked
22385# against it.
22386hardcode_automatic=$hardcode_automatic
22387
22388# Set to yes if linker adds runtime paths of dependent libraries
22389# to runtime path list.
22390inherit_rpath=$inherit_rpath
22391
22392# Whether libtool must link a program against all its dependency libraries.
22393link_all_deplibs=$link_all_deplibs
22394
22395# Set to "yes" if exported symbols are required.
22396always_export_symbols=$always_export_symbols
22397
22398# The commands to list exported symbols.
22399export_symbols_cmds=$lt_export_symbols_cmds
22400
22401# Symbols that should not be listed in the preloaded symbols.
22402exclude_expsyms=$lt_exclude_expsyms
22403
22404# Symbols that must always be exported.
22405include_expsyms=$lt_include_expsyms
22406
22407# Commands necessary for linking programs (against libraries) with templates.
22408prelink_cmds=$lt_prelink_cmds
22409
22410# Commands necessary for finishing linking programs.
22411postlink_cmds=$lt_postlink_cmds
22412
22413# Specify filename containing input files.
22414file_list_spec=$lt_file_list_spec
22415
22416# How to hardcode a shared library path into an executable.
22417hardcode_action=$hardcode_action
22418
22419# ### END LIBTOOL CONFIG
22420
22421_LT_EOF
22422
22423    cat <<'_LT_EOF' >> "$cfgfile"
22424
22425# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22426
22427# func_munge_path_list VARIABLE PATH
22428# -----------------------------------
22429# VARIABLE is name of variable containing _space_ separated list of
22430# directories to be munged by the contents of PATH, which is string
22431# having a format:
22432# "DIR[:DIR]:"
22433#       string "DIR[ DIR]" will be prepended to VARIABLE
22434# ":DIR[:DIR]"
22435#       string "DIR[ DIR]" will be appended to VARIABLE
22436# "DIRP[:DIRP]::[DIRA:]DIRA"
22437#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22438#       "DIRA[ DIRA]" will be appended to VARIABLE
22439# "DIR[:DIR]"
22440#       VARIABLE will be replaced by "DIR[ DIR]"
22441func_munge_path_list ()
22442{
22443    case x$2 in
22444    x)
22445        ;;
22446    *:)
22447        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22448        ;;
22449    x:*)
22450        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22451        ;;
22452    *::*)
22453        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22454        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22455        ;;
22456    *)
22457        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22458        ;;
22459    esac
22460}
22461
22462
22463# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22464func_cc_basename ()
22465{
22466    for cc_temp in $*""; do
22467      case $cc_temp in
22468        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22469        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22470        \-*) ;;
22471        *) break;;
22472      esac
22473    done
22474    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22475}
22476
22477
22478# ### END FUNCTIONS SHARED WITH CONFIGURE
22479
22480_LT_EOF
22481
22482  case $host_os in
22483  aix3*)
22484    cat <<\_LT_EOF >> "$cfgfile"
22485# AIX sometimes has problems with the GCC collect2 program.  For some
22486# reason, if we set the COLLECT_NAMES environment variable, the problems
22487# vanish in a puff of smoke.
22488if test set != "${COLLECT_NAMES+set}"; then
22489  COLLECT_NAMES=
22490  export COLLECT_NAMES
22491fi
22492_LT_EOF
22493    ;;
22494  esac
22495
22496
22497
22498ltmain=$ac_aux_dir/ltmain.sh
22499
22500
22501  # We use sed instead of cat because bash on DJGPP gets confused if
22502  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22503  # text mode, it properly converts lines to CR/LF.  This bash problem
22504  # is reportedly fixed, but why not run on old versions too?
22505  $SED '$q' "$ltmain" >> "$cfgfile" \
22506     || (rm -f "$cfgfile"; exit 1)
22507
22508   mv -f "$cfgfile" "$ofile" ||
22509    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22510  chmod +x "$ofile"
22511
22512 ;;
22513
22514  esac
22515done # for ac_tag
22516
22517
22518as_fn_exit 0
22519_ACEOF
22520ac_clean_files=$ac_clean_files_save
22521
22522test $ac_write_fail = 0 ||
22523  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22524
22525
22526# configure is writing to config.log, and then calls config.status.
22527# config.status does its own redirection, appending to config.log.
22528# Unfortunately, on DOS this fails, as config.log is still kept open
22529# by configure, so config.status won't be able to write to it; its
22530# output is simply discarded.  So we exec the FD to /dev/null,
22531# effectively closing config.log, so it can be properly (re)opened and
22532# appended to by config.status.  When coming back to configure, we
22533# need to make the FD available again.
22534if test "$no_create" != yes; then
22535  ac_cs_success=:
22536  ac_config_status_args=
22537  test "$silent" = yes &&
22538    ac_config_status_args="$ac_config_status_args --quiet"
22539  exec 5>/dev/null
22540  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22541  exec 5>>config.log
22542  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22543  # would make configure fail if this is the last instruction.
22544  $ac_cs_success || as_fn_exit 1
22545fi
22546if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22547  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22548printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22549fi
22550
22551
22552