1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.72 for libXvMC 1.0.14.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxvmc/-/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
187
188  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192    PATH=/empty FPATH=/empty; export PATH FPATH
193    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195test \$(( 1 + 1 )) = 2 || 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/lib/libxvmc/-/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='libXvMC'
617PACKAGE_TARNAME='libXvMC'
618PACKAGE_VERSION='1.0.14'
619PACKAGE_STRING='libXvMC 1.0.14'
620PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxvmc/-/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
660LINT_FALSE
661LINT_TRUE
662LINT_FLAGS
663LINT
664DLOPEN_LIBS
665XVMC_LIBS
666XVMC_CFLAGS
667XTMALLOC_ZERO_CFLAGS
668XMALLOC_ZERO_CFLAGS
669MALLOC_ZERO_CFLAGS
670MAN_SUBSTS
671XORG_MAN_PAGE
672ADMIN_MAN_DIR
673DRIVER_MAN_DIR
674MISC_MAN_DIR
675FILE_MAN_DIR
676LIB_MAN_DIR
677APP_MAN_DIR
678ADMIN_MAN_SUFFIX
679DRIVER_MAN_SUFFIX
680MISC_MAN_SUFFIX
681FILE_MAN_SUFFIX
682LIB_MAN_SUFFIX
683APP_MAN_SUFFIX
684INSTALL_CMD
685PKG_CONFIG_LIBDIR
686PKG_CONFIG_PATH
687PKG_CONFIG
688CHANGELOG_CMD
689STRICT_CFLAGS
690CWARNFLAGS
691BASE_CFLAGS
692LT_SYS_LIBRARY_PATH
693OTOOL64
694OTOOL
695LIPO
696NMEDIT
697DSYMUTIL
698MANIFEST_TOOL
699RANLIB
700ac_ct_AR
701AR
702DLLTOOL
703OBJDUMP
704FILECMD
705LN_S
706NM
707ac_ct_DUMPBIN
708DUMPBIN
709LD
710FGREP
711EGREP
712GREP
713SED
714am__fastdepCC_FALSE
715am__fastdepCC_TRUE
716CCDEPMODE
717am__nodep
718AMDEPBACKSLASH
719AMDEP_FALSE
720AMDEP_TRUE
721am__include
722DEPDIR
723OBJEXT
724EXEEXT
725ac_ct_CC
726CPPFLAGS
727LDFLAGS
728CFLAGS
729CC
730host_os
731host_vendor
732host_cpu
733host
734build_os
735build_vendor
736build_cpu
737build
738LIBTOOL
739AM_BACKSLASH
740AM_DEFAULT_VERBOSITY
741AM_DEFAULT_V
742AM_V
743CSCOPE
744ETAGS
745CTAGS
746am__untar
747am__tar
748AMTAR
749am__leading_dot
750SET_MAKE
751AWK
752mkdir_p
753MKDIR_P
754INSTALL_STRIP_PROGRAM
755STRIP
756install_sh
757MAKEINFO
758AUTOHEADER
759AUTOMAKE
760AUTOCONF
761ACLOCAL
762VERSION
763PACKAGE
764CYGPATH_W
765am__isrc
766INSTALL_DATA
767INSTALL_SCRIPT
768INSTALL_PROGRAM
769target_alias
770host_alias
771build_alias
772LIBS
773ECHO_T
774ECHO_N
775ECHO_C
776DEFS
777mandir
778localedir
779libdir
780psdir
781pdfdir
782dvidir
783htmldir
784infodir
785docdir
786oldincludedir
787includedir
788runstatedir
789localstatedir
790sharedstatedir
791sysconfdir
792datadir
793datarootdir
794libexecdir
795sbindir
796bindir
797program_transform_name
798prefix
799exec_prefix
800PACKAGE_URL
801PACKAGE_BUGREPORT
802PACKAGE_STRING
803PACKAGE_VERSION
804PACKAGE_TARNAME
805PACKAGE_NAME
806PATH_SEPARATOR
807SHELL
808am__quote'
809ac_subst_files=''
810ac_user_opts='
811enable_option_checking
812enable_silent_rules
813enable_shared
814enable_static
815with_pic
816enable_fast_install
817with_aix_soname
818enable_dependency_tracking
819with_gnu_ld
820with_sysroot
821enable_libtool_lock
822enable_selective_werror
823enable_strict_compilation
824enable_malloc0returnsnull
825with_lint
826'
827      ac_precious_vars='build_alias
828host_alias
829target_alias
830CC
831CFLAGS
832LDFLAGS
833LIBS
834CPPFLAGS
835LT_SYS_LIBRARY_PATH
836PKG_CONFIG
837PKG_CONFIG_PATH
838PKG_CONFIG_LIBDIR
839XVMC_CFLAGS
840XVMC_LIBS
841LINT
842LINT_FLAGS'
843
844
845# Initialize some variables set by options.
846ac_init_help=
847ac_init_version=false
848ac_unrecognized_opts=
849ac_unrecognized_sep=
850# The variables have the same names as the options, with
851# dashes changed to underlines.
852cache_file=/dev/null
853exec_prefix=NONE
854no_create=
855no_recursion=
856prefix=NONE
857program_prefix=NONE
858program_suffix=NONE
859program_transform_name=s,x,x,
860silent=
861site=
862srcdir=
863verbose=
864x_includes=NONE
865x_libraries=NONE
866
867# Installation directory options.
868# These are left unexpanded so users can "make install exec_prefix=/foo"
869# and all the variables that are supposed to be based on exec_prefix
870# by default will actually change.
871# Use braces instead of parens because sh, perl, etc. also accept them.
872# (The list follows the same order as the GNU Coding Standards.)
873bindir='${exec_prefix}/bin'
874sbindir='${exec_prefix}/sbin'
875libexecdir='${exec_prefix}/libexec'
876datarootdir='${prefix}/share'
877datadir='${datarootdir}'
878sysconfdir='${prefix}/etc'
879sharedstatedir='${prefix}/com'
880localstatedir='${prefix}/var'
881runstatedir='${localstatedir}/run'
882includedir='${prefix}/include'
883oldincludedir='/usr/include'
884docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
885infodir='${datarootdir}/info'
886htmldir='${docdir}'
887dvidir='${docdir}'
888pdfdir='${docdir}'
889psdir='${docdir}'
890libdir='${exec_prefix}/lib'
891localedir='${datarootdir}/locale'
892mandir='${datarootdir}/man'
893
894ac_prev=
895ac_dashdash=
896for ac_option
897do
898  # If the previous option needs an argument, assign it.
899  if test -n "$ac_prev"; then
900    eval $ac_prev=\$ac_option
901    ac_prev=
902    continue
903  fi
904
905  case $ac_option in
906  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907  *=)   ac_optarg= ;;
908  *)    ac_optarg=yes ;;
909  esac
910
911  case $ac_dashdash$ac_option in
912  --)
913    ac_dashdash=yes ;;
914
915  -bindir | --bindir | --bindi | --bind | --bin | --bi)
916    ac_prev=bindir ;;
917  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
918    bindir=$ac_optarg ;;
919
920  -build | --build | --buil | --bui | --bu)
921    ac_prev=build_alias ;;
922  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
923    build_alias=$ac_optarg ;;
924
925  -cache-file | --cache-file | --cache-fil | --cache-fi \
926  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
927    ac_prev=cache_file ;;
928  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
929  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
930    cache_file=$ac_optarg ;;
931
932  --config-cache | -C)
933    cache_file=config.cache ;;
934
935  -datadir | --datadir | --datadi | --datad)
936    ac_prev=datadir ;;
937  -datadir=* | --datadir=* | --datadi=* | --datad=*)
938    datadir=$ac_optarg ;;
939
940  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
941  | --dataroo | --dataro | --datar)
942    ac_prev=datarootdir ;;
943  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
944  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
945    datarootdir=$ac_optarg ;;
946
947  -disable-* | --disable-*)
948    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
949    # Reject names that are not valid shell variable names.
950    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951      as_fn_error $? "invalid feature name: '$ac_useropt'"
952    ac_useropt_orig=$ac_useropt
953    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
954    case $ac_user_opts in
955      *"
956"enable_$ac_useropt"
957"*) ;;
958      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959	 ac_unrecognized_sep=', ';;
960    esac
961    eval enable_$ac_useropt=no ;;
962
963  -docdir | --docdir | --docdi | --doc | --do)
964    ac_prev=docdir ;;
965  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966    docdir=$ac_optarg ;;
967
968  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
969    ac_prev=dvidir ;;
970  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971    dvidir=$ac_optarg ;;
972
973  -enable-* | --enable-*)
974    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975    # Reject names that are not valid shell variable names.
976    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977      as_fn_error $? "invalid feature name: '$ac_useropt'"
978    ac_useropt_orig=$ac_useropt
979    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
980    case $ac_user_opts in
981      *"
982"enable_$ac_useropt"
983"*) ;;
984      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
985	 ac_unrecognized_sep=', ';;
986    esac
987    eval enable_$ac_useropt=\$ac_optarg ;;
988
989  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
990  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
991  | --exec | --exe | --ex)
992    ac_prev=exec_prefix ;;
993  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
994  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
995  | --exec=* | --exe=* | --ex=*)
996    exec_prefix=$ac_optarg ;;
997
998  -gas | --gas | --ga | --g)
999    # Obsolete; use --with-gas.
1000    with_gas=yes ;;
1001
1002  -help | --help | --hel | --he | -h)
1003    ac_init_help=long ;;
1004  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1005    ac_init_help=recursive ;;
1006  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1007    ac_init_help=short ;;
1008
1009  -host | --host | --hos | --ho)
1010    ac_prev=host_alias ;;
1011  -host=* | --host=* | --hos=* | --ho=*)
1012    host_alias=$ac_optarg ;;
1013
1014  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1015    ac_prev=htmldir ;;
1016  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1017  | --ht=*)
1018    htmldir=$ac_optarg ;;
1019
1020  -includedir | --includedir | --includedi | --included | --include \
1021  | --includ | --inclu | --incl | --inc)
1022    ac_prev=includedir ;;
1023  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1024  | --includ=* | --inclu=* | --incl=* | --inc=*)
1025    includedir=$ac_optarg ;;
1026
1027  -infodir | --infodir | --infodi | --infod | --info | --inf)
1028    ac_prev=infodir ;;
1029  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1030    infodir=$ac_optarg ;;
1031
1032  -libdir | --libdir | --libdi | --libd)
1033    ac_prev=libdir ;;
1034  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1035    libdir=$ac_optarg ;;
1036
1037  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1038  | --libexe | --libex | --libe)
1039    ac_prev=libexecdir ;;
1040  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1041  | --libexe=* | --libex=* | --libe=*)
1042    libexecdir=$ac_optarg ;;
1043
1044  -localedir | --localedir | --localedi | --localed | --locale)
1045    ac_prev=localedir ;;
1046  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1047    localedir=$ac_optarg ;;
1048
1049  -localstatedir | --localstatedir | --localstatedi | --localstated \
1050  | --localstate | --localstat | --localsta | --localst | --locals)
1051    ac_prev=localstatedir ;;
1052  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1053  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1054    localstatedir=$ac_optarg ;;
1055
1056  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1057    ac_prev=mandir ;;
1058  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1059    mandir=$ac_optarg ;;
1060
1061  -nfp | --nfp | --nf)
1062    # Obsolete; use --without-fp.
1063    with_fp=no ;;
1064
1065  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1066  | --no-cr | --no-c | -n)
1067    no_create=yes ;;
1068
1069  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1070  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1071    no_recursion=yes ;;
1072
1073  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1074  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1075  | --oldin | --oldi | --old | --ol | --o)
1076    ac_prev=oldincludedir ;;
1077  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1078  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1079  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1080    oldincludedir=$ac_optarg ;;
1081
1082  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1083    ac_prev=prefix ;;
1084  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1085    prefix=$ac_optarg ;;
1086
1087  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1088  | --program-pre | --program-pr | --program-p)
1089    ac_prev=program_prefix ;;
1090  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1091  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1092    program_prefix=$ac_optarg ;;
1093
1094  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1095  | --program-suf | --program-su | --program-s)
1096    ac_prev=program_suffix ;;
1097  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1098  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1099    program_suffix=$ac_optarg ;;
1100
1101  -program-transform-name | --program-transform-name \
1102  | --program-transform-nam | --program-transform-na \
1103  | --program-transform-n | --program-transform- \
1104  | --program-transform | --program-transfor \
1105  | --program-transfo | --program-transf \
1106  | --program-trans | --program-tran \
1107  | --progr-tra | --program-tr | --program-t)
1108    ac_prev=program_transform_name ;;
1109  -program-transform-name=* | --program-transform-name=* \
1110  | --program-transform-nam=* | --program-transform-na=* \
1111  | --program-transform-n=* | --program-transform-=* \
1112  | --program-transform=* | --program-transfor=* \
1113  | --program-transfo=* | --program-transf=* \
1114  | --program-trans=* | --program-tran=* \
1115  | --progr-tra=* | --program-tr=* | --program-t=*)
1116    program_transform_name=$ac_optarg ;;
1117
1118  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1119    ac_prev=pdfdir ;;
1120  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1121    pdfdir=$ac_optarg ;;
1122
1123  -psdir | --psdir | --psdi | --psd | --ps)
1124    ac_prev=psdir ;;
1125  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1126    psdir=$ac_optarg ;;
1127
1128  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129  | -silent | --silent | --silen | --sile | --sil)
1130    silent=yes ;;
1131
1132  -runstatedir | --runstatedir | --runstatedi | --runstated \
1133  | --runstate | --runstat | --runsta | --runst | --runs \
1134  | --run | --ru | --r)
1135    ac_prev=runstatedir ;;
1136  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1137  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1138  | --run=* | --ru=* | --r=*)
1139    runstatedir=$ac_optarg ;;
1140
1141  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1142    ac_prev=sbindir ;;
1143  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1144  | --sbi=* | --sb=*)
1145    sbindir=$ac_optarg ;;
1146
1147  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1148  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1149  | --sharedst | --shareds | --shared | --share | --shar \
1150  | --sha | --sh)
1151    ac_prev=sharedstatedir ;;
1152  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1153  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1154  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1155  | --sha=* | --sh=*)
1156    sharedstatedir=$ac_optarg ;;
1157
1158  -site | --site | --sit)
1159    ac_prev=site ;;
1160  -site=* | --site=* | --sit=*)
1161    site=$ac_optarg ;;
1162
1163  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1164    ac_prev=srcdir ;;
1165  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1166    srcdir=$ac_optarg ;;
1167
1168  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1169  | --syscon | --sysco | --sysc | --sys | --sy)
1170    ac_prev=sysconfdir ;;
1171  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1172  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1173    sysconfdir=$ac_optarg ;;
1174
1175  -target | --target | --targe | --targ | --tar | --ta | --t)
1176    ac_prev=target_alias ;;
1177  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1178    target_alias=$ac_optarg ;;
1179
1180  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1181    verbose=yes ;;
1182
1183  -version | --version | --versio | --versi | --vers | -V)
1184    ac_init_version=: ;;
1185
1186  -with-* | --with-*)
1187    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1188    # Reject names that are not valid shell variable names.
1189    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190      as_fn_error $? "invalid package name: '$ac_useropt'"
1191    ac_useropt_orig=$ac_useropt
1192    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1193    case $ac_user_opts in
1194      *"
1195"with_$ac_useropt"
1196"*) ;;
1197      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1198	 ac_unrecognized_sep=', ';;
1199    esac
1200    eval with_$ac_useropt=\$ac_optarg ;;
1201
1202  -without-* | --without-*)
1203    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1204    # Reject names that are not valid shell variable names.
1205    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206      as_fn_error $? "invalid package name: '$ac_useropt'"
1207    ac_useropt_orig=$ac_useropt
1208    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1209    case $ac_user_opts in
1210      *"
1211"with_$ac_useropt"
1212"*) ;;
1213      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1214	 ac_unrecognized_sep=', ';;
1215    esac
1216    eval with_$ac_useropt=no ;;
1217
1218  --x)
1219    # Obsolete; use --with-x.
1220    with_x=yes ;;
1221
1222  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1223  | --x-incl | --x-inc | --x-in | --x-i)
1224    ac_prev=x_includes ;;
1225  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1226  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1227    x_includes=$ac_optarg ;;
1228
1229  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1230  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1231    ac_prev=x_libraries ;;
1232  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1233  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1234    x_libraries=$ac_optarg ;;
1235
1236  -*) as_fn_error $? "unrecognized option: '$ac_option'
1237Try '$0 --help' for more information"
1238    ;;
1239
1240  *=*)
1241    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242    # Reject names that are not valid shell variable names.
1243    case $ac_envvar in #(
1244      '' | [0-9]* | *[!_$as_cr_alnum]* )
1245      as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1246    esac
1247    eval $ac_envvar=\$ac_optarg
1248    export $ac_envvar ;;
1249
1250  *)
1251    # FIXME: should be removed in autoconf 3.0.
1252    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1253    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1254      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1255    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1256    ;;
1257
1258  esac
1259done
1260
1261if test -n "$ac_prev"; then
1262  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1263  as_fn_error $? "missing argument to $ac_option"
1264fi
1265
1266if test -n "$ac_unrecognized_opts"; then
1267  case $enable_option_checking in
1268    no) ;;
1269    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1270    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1271  esac
1272fi
1273
1274# Check all directory arguments for consistency.
1275for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1276		datadir sysconfdir sharedstatedir localstatedir includedir \
1277		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1278		libdir localedir mandir runstatedir
1279do
1280  eval ac_val=\$$ac_var
1281  # Remove trailing slashes.
1282  case $ac_val in
1283    */ )
1284      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1285      eval $ac_var=\$ac_val;;
1286  esac
1287  # Be sure to have absolute directory names.
1288  case $ac_val in
1289    [\\/$]* | ?:[\\/]* )  continue;;
1290    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291  esac
1292  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1293done
1294
1295# There might be people who depend on the old broken behavior: '$host'
1296# used to hold the argument of --host etc.
1297# FIXME: To remove some day.
1298build=$build_alias
1299host=$host_alias
1300target=$target_alias
1301
1302# FIXME: To remove some day.
1303if test "x$host_alias" != x; then
1304  if test "x$build_alias" = x; then
1305    cross_compiling=maybe
1306  elif test "x$build_alias" != "x$host_alias"; then
1307    cross_compiling=yes
1308  fi
1309fi
1310
1311ac_tool_prefix=
1312test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313
1314test "$silent" = yes && exec 6>/dev/null
1315
1316
1317ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318ac_ls_di=`ls -di .` &&
1319ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320  as_fn_error $? "working directory cannot be determined"
1321test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1322  as_fn_error $? "pwd does not report name of working directory"
1323
1324
1325# Find the source files, if location was not specified.
1326if test -z "$srcdir"; then
1327  ac_srcdir_defaulted=yes
1328  # Try the directory containing this script, then the parent directory.
1329  ac_confdir=`$as_dirname -- "$as_myself" ||
1330$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1331	 X"$as_myself" : 'X\(//\)[^/]' \| \
1332	 X"$as_myself" : 'X\(//\)$' \| \
1333	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1334printf "%s\n" X"$as_myself" |
1335    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1336	    s//\1/
1337	    q
1338	  }
1339	  /^X\(\/\/\)[^/].*/{
1340	    s//\1/
1341	    q
1342	  }
1343	  /^X\(\/\/\)$/{
1344	    s//\1/
1345	    q
1346	  }
1347	  /^X\(\/\).*/{
1348	    s//\1/
1349	    q
1350	  }
1351	  s/.*/./; q'`
1352  srcdir=$ac_confdir
1353  if test ! -r "$srcdir/$ac_unique_file"; then
1354    srcdir=..
1355  fi
1356else
1357  ac_srcdir_defaulted=no
1358fi
1359if test ! -r "$srcdir/$ac_unique_file"; then
1360  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1361  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1362fi
1363ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1364ac_abs_confdir=`(
1365	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1366	pwd)`
1367# When building in place, set srcdir=.
1368if test "$ac_abs_confdir" = "$ac_pwd"; then
1369  srcdir=.
1370fi
1371# Remove unnecessary trailing slashes from srcdir.
1372# Double slashes in file names in object file debugging info
1373# mess up M-x gdb in Emacs.
1374case $srcdir in
1375*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376esac
1377for ac_var in $ac_precious_vars; do
1378  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1379  eval ac_env_${ac_var}_value=\$${ac_var}
1380  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1381  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1382done
1383
1384#
1385# Report the --help message.
1386#
1387if test "$ac_init_help" = "long"; then
1388  # Omit some internal or obsolete options to make the list less imposing.
1389  # This message is too long to be a string in the A/UX 3.1 sh.
1390  cat <<_ACEOF
1391'configure' configures libXvMC 1.0.14 to adapt to many kinds of systems.
1392
1393Usage: $0 [OPTION]... [VAR=VALUE]...
1394
1395To assign environment variables (e.g., CC, CFLAGS...), specify them as
1396VAR=VALUE.  See below for descriptions of some of the useful variables.
1397
1398Defaults for the options are specified in brackets.
1399
1400Configuration:
1401  -h, --help              display this help and exit
1402      --help=short        display options specific to this package
1403      --help=recursive    display the short help of all the included packages
1404  -V, --version           display version information and exit
1405  -q, --quiet, --silent   do not print 'checking ...' messages
1406      --cache-file=FILE   cache test results in FILE [disabled]
1407  -C, --config-cache      alias for '--cache-file=config.cache'
1408  -n, --no-create         do not create output files
1409      --srcdir=DIR        find the sources in DIR [configure dir or '..']
1410
1411Installation directories:
1412  --prefix=PREFIX         install architecture-independent files in PREFIX
1413                          [$ac_default_prefix]
1414  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1415                          [PREFIX]
1416
1417By default, 'make install' will install all the files in
1418'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc.  You can specify
1419an installation prefix other than '$ac_default_prefix' using '--prefix',
1420for instance '--prefix=\$HOME'.
1421
1422For better control, use the options below.
1423
1424Fine tuning of the installation directories:
1425  --bindir=DIR            user executables [EPREFIX/bin]
1426  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1427  --libexecdir=DIR        program executables [EPREFIX/libexec]
1428  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1429  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1430  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1431  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1432  --libdir=DIR            object code libraries [EPREFIX/lib]
1433  --includedir=DIR        C header files [PREFIX/include]
1434  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1435  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1436  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1437  --infodir=DIR           info documentation [DATAROOTDIR/info]
1438  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1439  --mandir=DIR            man documentation [DATAROOTDIR/man]
1440  --docdir=DIR            documentation root [DATAROOTDIR/doc/libXvMC]
1441  --htmldir=DIR           html documentation [DOCDIR]
1442  --dvidir=DIR            dvi documentation [DOCDIR]
1443  --pdfdir=DIR            pdf documentation [DOCDIR]
1444  --psdir=DIR             ps documentation [DOCDIR]
1445_ACEOF
1446
1447  cat <<\_ACEOF
1448
1449Program names:
1450  --program-prefix=PREFIX            prepend PREFIX to installed program names
1451  --program-suffix=SUFFIX            append SUFFIX to installed program names
1452  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1453
1454System types:
1455  --build=BUILD     configure for building on BUILD [guessed]
1456  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1457_ACEOF
1458fi
1459
1460if test -n "$ac_init_help"; then
1461  case $ac_init_help in
1462     short | recursive ) echo "Configuration of libXvMC 1.0.14:";;
1463   esac
1464  cat <<\_ACEOF
1465
1466Optional Features:
1467  --disable-option-checking  ignore unrecognized --enable/--with options
1468  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1469  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1470  --enable-silent-rules   less verbose build output (undo: "make V=1")
1471  --disable-silent-rules  verbose build output (undo: "make V=0")
1472  --enable-shared[=PKGS]  build shared libraries [default=yes]
1473  --enable-static[=PKGS]  build static libraries [default=yes]
1474  --enable-fast-install[=PKGS]
1475                          optimize for fast installation [default=yes]
1476  --enable-dependency-tracking
1477                          do not reject slow dependency extractors
1478  --disable-dependency-tracking
1479                          speeds up one-time build
1480  --disable-libtool-lock  avoid locking (might break parallel builds)
1481  --disable-selective-werror
1482                          Turn off selective compiler errors. (default:
1483                          enabled)
1484  --enable-strict-compilation
1485                          Enable all warnings from compiler and make them
1486                          errors (default: disabled)
1487  --enable-malloc0returnsnull
1488                          malloc(0) returns NULL (default: auto)
1489
1490Optional Packages:
1491  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1492  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1493  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1494                          both]
1495  --with-aix-soname=aix|svr4|both
1496                          shared library versioning (aka "SONAME") variant to
1497                          provide on AIX, [default=aix].
1498  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1499  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1500                          compiler's sysroot if not specified).
1501  --with-lint             Use a lint-style source code checker (default:
1502                          disabled)
1503
1504Some influential environment variables:
1505  CC          C compiler command
1506  CFLAGS      C compiler flags
1507  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1508              nonstandard directory <lib dir>
1509  LIBS        libraries to pass to the linker, e.g. -l<library>
1510  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1511              you have headers in a nonstandard directory <include dir>
1512  LT_SYS_LIBRARY_PATH
1513              User-defined run-time library search path.
1514  PKG_CONFIG  path to pkg-config utility
1515  PKG_CONFIG_PATH
1516              directories to add to pkg-config's search path
1517  PKG_CONFIG_LIBDIR
1518              path overriding pkg-config's built-in search path
1519  XVMC_CFLAGS C compiler flags for XVMC, overriding pkg-config
1520  XVMC_LIBS   linker flags for XVMC, overriding pkg-config
1521  LINT        Path to a lint-style command
1522  LINT_FLAGS  Flags for the lint-style command
1523
1524Use these variables to override the choices made by 'configure' or to help
1525it to find libraries and programs with nonstandard names/locations.
1526
1527Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxvmc/-/issues>.
1528_ACEOF
1529ac_status=$?
1530fi
1531
1532if test "$ac_init_help" = "recursive"; then
1533  # If there are subdirs, report their specific --help.
1534  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535    test -d "$ac_dir" ||
1536      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1537      continue
1538    ac_builddir=.
1539
1540case "$ac_dir" in
1541.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542*)
1543  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1544  # A ".." for each directory in $ac_dir_suffix.
1545  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1546  case $ac_top_builddir_sub in
1547  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549  esac ;;
1550esac
1551ac_abs_top_builddir=$ac_pwd
1552ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553# for backward compatibility:
1554ac_top_builddir=$ac_top_build_prefix
1555
1556case $srcdir in
1557  .)  # We are building in place.
1558    ac_srcdir=.
1559    ac_top_srcdir=$ac_top_builddir_sub
1560    ac_abs_top_srcdir=$ac_pwd ;;
1561  [\\/]* | ?:[\\/]* )  # Absolute name.
1562    ac_srcdir=$srcdir$ac_dir_suffix;
1563    ac_top_srcdir=$srcdir
1564    ac_abs_top_srcdir=$srcdir ;;
1565  *) # Relative name.
1566    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567    ac_top_srcdir=$ac_top_build_prefix$srcdir
1568    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569esac
1570ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571
1572    cd "$ac_dir" || { ac_status=$?; continue; }
1573    # Check for configure.gnu first; this name is used for a wrapper for
1574    # Metaconfig's "Configure" on case-insensitive file systems.
1575    if test -f "$ac_srcdir/configure.gnu"; then
1576      echo &&
1577      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578    elif test -f "$ac_srcdir/configure"; then
1579      echo &&
1580      $SHELL "$ac_srcdir/configure" --help=recursive
1581    else
1582      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583    fi || ac_status=$?
1584    cd "$ac_pwd" || { ac_status=$?; break; }
1585  done
1586fi
1587
1588test -n "$ac_init_help" && exit $ac_status
1589if $ac_init_version; then
1590  cat <<\_ACEOF
1591libXvMC configure 1.0.14
1592generated by GNU Autoconf 2.72
1593
1594Copyright (C) 2023 Free Software Foundation, Inc.
1595This configure script is free software; the Free Software Foundation
1596gives unlimited permission to copy, distribute and modify it.
1597_ACEOF
1598  exit
1599fi
1600
1601## ------------------------ ##
1602## Autoconf initialization. ##
1603## ------------------------ ##
1604
1605# ac_fn_c_try_compile LINENO
1606# --------------------------
1607# Try to compile conftest.$ac_ext, and return whether this succeeded.
1608ac_fn_c_try_compile ()
1609{
1610  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611  rm -f conftest.$ac_objext conftest.beam
1612  if { { ac_try="$ac_compile"
1613case "(($ac_try" in
1614  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615  *) ac_try_echo=$ac_try;;
1616esac
1617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618printf "%s\n" "$ac_try_echo"; } >&5
1619  (eval "$ac_compile") 2>conftest.err
1620  ac_status=$?
1621  if test -s conftest.err; then
1622    grep -v '^ *+' conftest.err >conftest.er1
1623    cat conftest.er1 >&5
1624    mv -f conftest.er1 conftest.err
1625  fi
1626  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627  test $ac_status = 0; } && {
1628	 test -z "$ac_c_werror_flag" ||
1629	 test ! -s conftest.err
1630       } && test -s conftest.$ac_objext
1631then :
1632  ac_retval=0
1633else case e in #(
1634  e) printf "%s\n" "$as_me: failed program was:" >&5
1635sed 's/^/| /' conftest.$ac_ext >&5
1636
1637	ac_retval=1 ;;
1638esac
1639fi
1640  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641  as_fn_set_status $ac_retval
1642
1643} # ac_fn_c_try_compile
1644
1645# ac_fn_c_try_link LINENO
1646# -----------------------
1647# Try to link conftest.$ac_ext, and return whether this succeeded.
1648ac_fn_c_try_link ()
1649{
1650  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1652  if { { ac_try="$ac_link"
1653case "(($ac_try" in
1654  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1655  *) ac_try_echo=$ac_try;;
1656esac
1657eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1658printf "%s\n" "$ac_try_echo"; } >&5
1659  (eval "$ac_link") 2>conftest.err
1660  ac_status=$?
1661  if test -s conftest.err; then
1662    grep -v '^ *+' conftest.err >conftest.er1
1663    cat conftest.er1 >&5
1664    mv -f conftest.er1 conftest.err
1665  fi
1666  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667  test $ac_status = 0; } && {
1668	 test -z "$ac_c_werror_flag" ||
1669	 test ! -s conftest.err
1670       } && test -s conftest$ac_exeext && {
1671	 test "$cross_compiling" = yes ||
1672	 test -x conftest$ac_exeext
1673       }
1674then :
1675  ac_retval=0
1676else case e in #(
1677  e) printf "%s\n" "$as_me: failed program was:" >&5
1678sed 's/^/| /' conftest.$ac_ext >&5
1679
1680	ac_retval=1 ;;
1681esac
1682fi
1683  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1684  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1685  # interfere with the next link command; also delete a directory that is
1686  # left behind by Apple's compiler.  We do this before executing the actions.
1687  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1688  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689  as_fn_set_status $ac_retval
1690
1691} # ac_fn_c_try_link
1692
1693# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1694# -------------------------------------------------------
1695# Tests whether HEADER exists and can be compiled using the include files in
1696# INCLUDES, setting the cache variable VAR accordingly.
1697ac_fn_c_check_header_compile ()
1698{
1699  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701printf %s "checking for $2... " >&6; }
1702if eval test \${$3+y}
1703then :
1704  printf %s "(cached) " >&6
1705else case e in #(
1706  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707/* end confdefs.h.  */
1708$4
1709#include <$2>
1710_ACEOF
1711if ac_fn_c_try_compile "$LINENO"
1712then :
1713  eval "$3=yes"
1714else case e in #(
1715  e) eval "$3=no" ;;
1716esac
1717fi
1718rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1719esac
1720fi
1721eval ac_res=\$$3
1722	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723printf "%s\n" "$ac_res" >&6; }
1724  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725
1726} # ac_fn_c_check_header_compile
1727
1728# ac_fn_c_check_func LINENO FUNC VAR
1729# ----------------------------------
1730# Tests whether FUNC exists, setting the cache variable VAR accordingly
1731ac_fn_c_check_func ()
1732{
1733  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735printf %s "checking for $2... " >&6; }
1736if eval test \${$3+y}
1737then :
1738  printf %s "(cached) " >&6
1739else case e in #(
1740  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741/* end confdefs.h.  */
1742/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1743   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1744#define $2 innocuous_$2
1745
1746/* System header to define __stub macros and hopefully few prototypes,
1747   which can conflict with char $2 (void); below.  */
1748
1749#include <limits.h>
1750#undef $2
1751
1752/* Override any GCC internal prototype to avoid an error.
1753   Use char because int might match the return type of a GCC
1754   builtin and then its argument prototype would still apply.  */
1755#ifdef __cplusplus
1756extern "C"
1757#endif
1758char $2 (void);
1759/* The GNU C library defines this for functions which it implements
1760    to always fail with ENOSYS.  Some functions are actually named
1761    something starting with __ and the normal name is an alias.  */
1762#if defined __stub_$2 || defined __stub___$2
1763choke me
1764#endif
1765
1766int
1767main (void)
1768{
1769return $2 ();
1770  ;
1771  return 0;
1772}
1773_ACEOF
1774if ac_fn_c_try_link "$LINENO"
1775then :
1776  eval "$3=yes"
1777else case e in #(
1778  e) eval "$3=no" ;;
1779esac
1780fi
1781rm -f core conftest.err conftest.$ac_objext conftest.beam \
1782    conftest$ac_exeext conftest.$ac_ext ;;
1783esac
1784fi
1785eval ac_res=\$$3
1786	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787printf "%s\n" "$ac_res" >&6; }
1788  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790} # ac_fn_c_check_func
1791
1792# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1793# ------------------------------------------------------------------
1794# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1795# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1796ac_fn_check_decl ()
1797{
1798  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799  as_decl_name=`echo $2|sed 's/ *(.*//'`
1800  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1801printf %s "checking whether $as_decl_name is declared... " >&6; }
1802if eval test \${$3+y}
1803then :
1804  printf %s "(cached) " >&6
1805else case e in #(
1806  e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1807  eval ac_save_FLAGS=\$$6
1808  as_fn_append $6 " $5"
1809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810/* end confdefs.h.  */
1811$4
1812int
1813main (void)
1814{
1815#ifndef $as_decl_name
1816#ifdef __cplusplus
1817  (void) $as_decl_use;
1818#else
1819  (void) $as_decl_name;
1820#endif
1821#endif
1822
1823  ;
1824  return 0;
1825}
1826_ACEOF
1827if ac_fn_c_try_compile "$LINENO"
1828then :
1829  eval "$3=yes"
1830else case e in #(
1831  e) eval "$3=no" ;;
1832esac
1833fi
1834rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1835  eval $6=\$ac_save_FLAGS
1836 ;;
1837esac
1838fi
1839eval ac_res=\$$3
1840	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841printf "%s\n" "$ac_res" >&6; }
1842  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843
1844} # ac_fn_check_decl
1845
1846# ac_fn_c_try_run LINENO
1847# ----------------------
1848# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1849# executables *can* be run.
1850ac_fn_c_try_run ()
1851{
1852  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853  if { { ac_try="$ac_link"
1854case "(($ac_try" in
1855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856  *) ac_try_echo=$ac_try;;
1857esac
1858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859printf "%s\n" "$ac_try_echo"; } >&5
1860  (eval "$ac_link") 2>&5
1861  ac_status=$?
1862  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1864  { { case "(($ac_try" in
1865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866  *) ac_try_echo=$ac_try;;
1867esac
1868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869printf "%s\n" "$ac_try_echo"; } >&5
1870  (eval "$ac_try") 2>&5
1871  ac_status=$?
1872  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873  test $ac_status = 0; }; }
1874then :
1875  ac_retval=0
1876else case e in #(
1877  e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1878       printf "%s\n" "$as_me: failed program was:" >&5
1879sed 's/^/| /' conftest.$ac_ext >&5
1880
1881       ac_retval=$ac_status ;;
1882esac
1883fi
1884  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1885  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886  as_fn_set_status $ac_retval
1887
1888} # ac_fn_c_try_run
1889ac_configure_args_raw=
1890for ac_arg
1891do
1892  case $ac_arg in
1893  *\'*)
1894    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1895  esac
1896  as_fn_append ac_configure_args_raw " '$ac_arg'"
1897done
1898
1899case $ac_configure_args_raw in
1900  *$as_nl*)
1901    ac_safe_unquote= ;;
1902  *)
1903    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1904    ac_unsafe_a="$ac_unsafe_z#~"
1905    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1906    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1907esac
1908
1909cat >config.log <<_ACEOF
1910This file contains any messages produced by compilers while
1911running configure, to aid debugging if configure makes a mistake.
1912
1913It was created by libXvMC $as_me 1.0.14, which was
1914generated by GNU Autoconf 2.72.  Invocation command line was
1915
1916  $ $0$ac_configure_args_raw
1917
1918_ACEOF
1919exec 5>>config.log
1920{
1921cat <<_ASUNAME
1922## --------- ##
1923## Platform. ##
1924## --------- ##
1925
1926hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1927uname -m = `(uname -m) 2>/dev/null || echo unknown`
1928uname -r = `(uname -r) 2>/dev/null || echo unknown`
1929uname -s = `(uname -s) 2>/dev/null || echo unknown`
1930uname -v = `(uname -v) 2>/dev/null || echo unknown`
1931
1932/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1933/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1934
1935/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1936/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1937/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1938/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1939/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1940/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1941/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1942
1943_ASUNAME
1944
1945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946for as_dir in $PATH
1947do
1948  IFS=$as_save_IFS
1949  case $as_dir in #(((
1950    '') as_dir=./ ;;
1951    */) ;;
1952    *) as_dir=$as_dir/ ;;
1953  esac
1954    printf "%s\n" "PATH: $as_dir"
1955  done
1956IFS=$as_save_IFS
1957
1958} >&5
1959
1960cat >&5 <<_ACEOF
1961
1962
1963## ----------- ##
1964## Core tests. ##
1965## ----------- ##
1966
1967_ACEOF
1968
1969
1970# Keep a trace of the command line.
1971# Strip out --no-create and --no-recursion so they do not pile up.
1972# Strip out --silent because we don't want to record it for future runs.
1973# Also quote any args containing shell meta-characters.
1974# Make two passes to allow for proper duplicate-argument suppression.
1975ac_configure_args=
1976ac_configure_args0=
1977ac_configure_args1=
1978ac_must_keep_next=false
1979for ac_pass in 1 2
1980do
1981  for ac_arg
1982  do
1983    case $ac_arg in
1984    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1985    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1986    | -silent | --silent | --silen | --sile | --sil)
1987      continue ;;
1988    *\'*)
1989      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1990    esac
1991    case $ac_pass in
1992    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1993    2)
1994      as_fn_append ac_configure_args1 " '$ac_arg'"
1995      if test $ac_must_keep_next = true; then
1996	ac_must_keep_next=false # Got value, back to normal.
1997      else
1998	case $ac_arg in
1999	  *=* | --config-cache | -C | -disable-* | --disable-* \
2000	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2001	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2002	  | -with-* | --with-* | -without-* | --without-* | --x)
2003	    case "$ac_configure_args0 " in
2004	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2005	    esac
2006	    ;;
2007	  -* ) ac_must_keep_next=true ;;
2008	esac
2009      fi
2010      as_fn_append ac_configure_args " '$ac_arg'"
2011      ;;
2012    esac
2013  done
2014done
2015{ ac_configure_args0=; unset ac_configure_args0;}
2016{ ac_configure_args1=; unset ac_configure_args1;}
2017
2018# When interrupted or exit'd, cleanup temporary files, and complete
2019# config.log.  We remove comments because anyway the quotes in there
2020# would cause problems or look ugly.
2021# WARNING: Use '\'' to represent an apostrophe within the trap.
2022# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2023trap 'exit_status=$?
2024  # Sanitize IFS.
2025  IFS=" ""	$as_nl"
2026  # Save into config.log some information that might help in debugging.
2027  {
2028    echo
2029
2030    printf "%s\n" "## ---------------- ##
2031## Cache variables. ##
2032## ---------------- ##"
2033    echo
2034    # The following way of writing the cache mishandles newlines in values,
2035(
2036  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2037    eval ac_val=\$$ac_var
2038    case $ac_val in #(
2039    *${as_nl}*)
2040      case $ac_var in #(
2041      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2042printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2043      esac
2044      case $ac_var in #(
2045      _ | IFS | as_nl) ;; #(
2046      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2047      *) { eval $ac_var=; unset $ac_var;} ;;
2048      esac ;;
2049    esac
2050  done
2051  (set) 2>&1 |
2052    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2053    *${as_nl}ac_space=\ *)
2054      sed -n \
2055	"s/'\''/'\''\\\\'\'''\''/g;
2056	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2057      ;; #(
2058    *)
2059      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2060      ;;
2061    esac |
2062    sort
2063)
2064    echo
2065
2066    printf "%s\n" "## ----------------- ##
2067## Output variables. ##
2068## ----------------- ##"
2069    echo
2070    for ac_var in $ac_subst_vars
2071    do
2072      eval ac_val=\$$ac_var
2073      case $ac_val in
2074      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2075      esac
2076      printf "%s\n" "$ac_var='\''$ac_val'\''"
2077    done | sort
2078    echo
2079
2080    if test -n "$ac_subst_files"; then
2081      printf "%s\n" "## ------------------- ##
2082## File substitutions. ##
2083## ------------------- ##"
2084      echo
2085      for ac_var in $ac_subst_files
2086      do
2087	eval ac_val=\$$ac_var
2088	case $ac_val in
2089	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2090	esac
2091	printf "%s\n" "$ac_var='\''$ac_val'\''"
2092      done | sort
2093      echo
2094    fi
2095
2096    if test -s confdefs.h; then
2097      printf "%s\n" "## ----------- ##
2098## confdefs.h. ##
2099## ----------- ##"
2100      echo
2101      cat confdefs.h
2102      echo
2103    fi
2104    test "$ac_signal" != 0 &&
2105      printf "%s\n" "$as_me: caught signal $ac_signal"
2106    printf "%s\n" "$as_me: exit $exit_status"
2107  } >&5
2108  rm -f core *.core core.conftest.* &&
2109    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2110    exit $exit_status
2111' 0
2112for ac_signal in 1 2 13 15; do
2113  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2114done
2115ac_signal=0
2116
2117# confdefs.h avoids OS command line length limits that DEFS can exceed.
2118rm -f -r conftest* confdefs.h
2119
2120printf "%s\n" "/* confdefs.h */" > confdefs.h
2121
2122# Predefined preprocessor variables.
2123
2124printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2125
2126printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2127
2128printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2129
2130printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2131
2132printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2133
2134printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2135
2136
2137# Let the site file select an alternate cache file if it wants to.
2138# Prefer an explicitly selected file to automatically selected ones.
2139if test -n "$CONFIG_SITE"; then
2140  ac_site_files="$CONFIG_SITE"
2141elif test "x$prefix" != xNONE; then
2142  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2143else
2144  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2145fi
2146
2147for ac_site_file in $ac_site_files
2148do
2149  case $ac_site_file in #(
2150  */*) :
2151     ;; #(
2152  *) :
2153    ac_site_file=./$ac_site_file ;;
2154esac
2155  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2156    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2157printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2158    sed 's/^/| /' "$ac_site_file" >&5
2159    . "$ac_site_file" \
2160      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2161printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2162as_fn_error $? "failed to load site script $ac_site_file
2163See 'config.log' for more details" "$LINENO" 5; }
2164  fi
2165done
2166
2167if test -r "$cache_file"; then
2168  # Some versions of bash will fail to source /dev/null (special files
2169  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2170  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2171    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2172printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2173    case $cache_file in
2174      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2175      *)                      . "./$cache_file";;
2176    esac
2177  fi
2178else
2179  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2180printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2181  >$cache_file
2182fi
2183
2184# Test code for whether the C compiler supports C89 (global declarations)
2185ac_c_conftest_c89_globals='
2186/* Does the compiler advertise C89 conformance?
2187   Do not test the value of __STDC__, because some compilers set it to 0
2188   while being otherwise adequately conformant. */
2189#if !defined __STDC__
2190# error "Compiler does not advertise C89 conformance"
2191#endif
2192
2193#include <stddef.h>
2194#include <stdarg.h>
2195struct stat;
2196/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2197struct buf { int x; };
2198struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2199static char *e (char **p, int i)
2200{
2201  return p[i];
2202}
2203static char *f (char * (*g) (char **, int), char **p, ...)
2204{
2205  char *s;
2206  va_list v;
2207  va_start (v,p);
2208  s = g (p, va_arg (v,int));
2209  va_end (v);
2210  return s;
2211}
2212
2213/* C89 style stringification. */
2214#define noexpand_stringify(a) #a
2215const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2216
2217/* C89 style token pasting.  Exercises some of the corner cases that
2218   e.g. old MSVC gets wrong, but not very hard. */
2219#define noexpand_concat(a,b) a##b
2220#define expand_concat(a,b) noexpand_concat(a,b)
2221extern int vA;
2222extern int vbee;
2223#define aye A
2224#define bee B
2225int *pvA = &expand_concat(v,aye);
2226int *pvbee = &noexpand_concat(v,bee);
2227
2228/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2229   function prototypes and stuff, but not \xHH hex character constants.
2230   These do not provoke an error unfortunately, instead are silently treated
2231   as an "x".  The following induces an error, until -std is added to get
2232   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2233   array size at least.  It is necessary to write \x00 == 0 to get something
2234   that is true only with -std.  */
2235int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2236
2237/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2238   inside strings and character constants.  */
2239#define FOO(x) '\''x'\''
2240int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2241
2242int test (int i, double x);
2243struct s1 {int (*f) (int a);};
2244struct s2 {int (*f) (double a);};
2245int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2246               int, int);'
2247
2248# Test code for whether the C compiler supports C89 (body of main).
2249ac_c_conftest_c89_main='
2250ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2251'
2252
2253# Test code for whether the C compiler supports C99 (global declarations)
2254ac_c_conftest_c99_globals='
2255/* Does the compiler advertise C99 conformance? */
2256#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2257# error "Compiler does not advertise C99 conformance"
2258#endif
2259
2260// See if C++-style comments work.
2261
2262#include <stdbool.h>
2263extern int puts (const char *);
2264extern int printf (const char *, ...);
2265extern int dprintf (int, const char *, ...);
2266extern void *malloc (size_t);
2267extern void free (void *);
2268
2269// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2270// dprintf is used instead of fprintf to avoid needing to declare
2271// FILE and stderr.
2272#define debug(...) dprintf (2, __VA_ARGS__)
2273#define showlist(...) puts (#__VA_ARGS__)
2274#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2275static void
2276test_varargs_macros (void)
2277{
2278  int x = 1234;
2279  int y = 5678;
2280  debug ("Flag");
2281  debug ("X = %d\n", x);
2282  showlist (The first, second, and third items.);
2283  report (x>y, "x is %d but y is %d", x, y);
2284}
2285
2286// Check long long types.
2287#define BIG64 18446744073709551615ull
2288#define BIG32 4294967295ul
2289#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2290#if !BIG_OK
2291  #error "your preprocessor is broken"
2292#endif
2293#if BIG_OK
2294#else
2295  #error "your preprocessor is broken"
2296#endif
2297static long long int bignum = -9223372036854775807LL;
2298static unsigned long long int ubignum = BIG64;
2299
2300struct incomplete_array
2301{
2302  int datasize;
2303  double data[];
2304};
2305
2306struct named_init {
2307  int number;
2308  const wchar_t *name;
2309  double average;
2310};
2311
2312typedef const char *ccp;
2313
2314static inline int
2315test_restrict (ccp restrict text)
2316{
2317  // Iterate through items via the restricted pointer.
2318  // Also check for declarations in for loops.
2319  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2320    continue;
2321  return 0;
2322}
2323
2324// Check varargs and va_copy.
2325static bool
2326test_varargs (const char *format, ...)
2327{
2328  va_list args;
2329  va_start (args, format);
2330  va_list args_copy;
2331  va_copy (args_copy, args);
2332
2333  const char *str = "";
2334  int number = 0;
2335  float fnumber = 0;
2336
2337  while (*format)
2338    {
2339      switch (*format++)
2340	{
2341	case '\''s'\'': // string
2342	  str = va_arg (args_copy, const char *);
2343	  break;
2344	case '\''d'\'': // int
2345	  number = va_arg (args_copy, int);
2346	  break;
2347	case '\''f'\'': // float
2348	  fnumber = va_arg (args_copy, double);
2349	  break;
2350	default:
2351	  break;
2352	}
2353    }
2354  va_end (args_copy);
2355  va_end (args);
2356
2357  return *str && number && fnumber;
2358}
2359'
2360
2361# Test code for whether the C compiler supports C99 (body of main).
2362ac_c_conftest_c99_main='
2363  // Check bool.
2364  _Bool success = false;
2365  success |= (argc != 0);
2366
2367  // Check restrict.
2368  if (test_restrict ("String literal") == 0)
2369    success = true;
2370  char *restrict newvar = "Another string";
2371
2372  // Check varargs.
2373  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2374  test_varargs_macros ();
2375
2376  // Check flexible array members.
2377  struct incomplete_array *ia =
2378    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2379  ia->datasize = 10;
2380  for (int i = 0; i < ia->datasize; ++i)
2381    ia->data[i] = i * 1.234;
2382  // Work around memory leak warnings.
2383  free (ia);
2384
2385  // Check named initializers.
2386  struct named_init ni = {
2387    .number = 34,
2388    .name = L"Test wide string",
2389    .average = 543.34343,
2390  };
2391
2392  ni.number = 58;
2393
2394  int dynamic_array[ni.number];
2395  dynamic_array[0] = argv[0][0];
2396  dynamic_array[ni.number - 1] = 543;
2397
2398  // work around unused variable warnings
2399  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2400	 || dynamic_array[ni.number - 1] != 543);
2401'
2402
2403# Test code for whether the C compiler supports C11 (global declarations)
2404ac_c_conftest_c11_globals='
2405/* Does the compiler advertise C11 conformance? */
2406#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2407# error "Compiler does not advertise C11 conformance"
2408#endif
2409
2410// Check _Alignas.
2411char _Alignas (double) aligned_as_double;
2412char _Alignas (0) no_special_alignment;
2413extern char aligned_as_int;
2414char _Alignas (0) _Alignas (int) aligned_as_int;
2415
2416// Check _Alignof.
2417enum
2418{
2419  int_alignment = _Alignof (int),
2420  int_array_alignment = _Alignof (int[100]),
2421  char_alignment = _Alignof (char)
2422};
2423_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2424
2425// Check _Noreturn.
2426int _Noreturn does_not_return (void) { for (;;) continue; }
2427
2428// Check _Static_assert.
2429struct test_static_assert
2430{
2431  int x;
2432  _Static_assert (sizeof (int) <= sizeof (long int),
2433                  "_Static_assert does not work in struct");
2434  long int y;
2435};
2436
2437// Check UTF-8 literals.
2438#define u8 syntax error!
2439char const utf8_literal[] = u8"happens to be ASCII" "another string";
2440
2441// Check duplicate typedefs.
2442typedef long *long_ptr;
2443typedef long int *long_ptr;
2444typedef long_ptr long_ptr;
2445
2446// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2447struct anonymous
2448{
2449  union {
2450    struct { int i; int j; };
2451    struct { int k; long int l; } w;
2452  };
2453  int m;
2454} v1;
2455'
2456
2457# Test code for whether the C compiler supports C11 (body of main).
2458ac_c_conftest_c11_main='
2459  _Static_assert ((offsetof (struct anonymous, i)
2460		   == offsetof (struct anonymous, w.k)),
2461		  "Anonymous union alignment botch");
2462  v1.i = 2;
2463  v1.w.k = 5;
2464  ok |= v1.i != 5;
2465'
2466
2467# Test code for whether the C compiler supports C11 (complete).
2468ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2469${ac_c_conftest_c99_globals}
2470${ac_c_conftest_c11_globals}
2471
2472int
2473main (int argc, char **argv)
2474{
2475  int ok = 0;
2476  ${ac_c_conftest_c89_main}
2477  ${ac_c_conftest_c99_main}
2478  ${ac_c_conftest_c11_main}
2479  return ok;
2480}
2481"
2482
2483# Test code for whether the C compiler supports C99 (complete).
2484ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2485${ac_c_conftest_c99_globals}
2486
2487int
2488main (int argc, char **argv)
2489{
2490  int ok = 0;
2491  ${ac_c_conftest_c89_main}
2492  ${ac_c_conftest_c99_main}
2493  return ok;
2494}
2495"
2496
2497# Test code for whether the C compiler supports C89 (complete).
2498ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2499
2500int
2501main (int argc, char **argv)
2502{
2503  int ok = 0;
2504  ${ac_c_conftest_c89_main}
2505  return ok;
2506}
2507"
2508
2509as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2510as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2511as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2512as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2513as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2514as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2515as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2516as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2517as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2518
2519# Auxiliary files required by this configure script.
2520ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2521
2522# Locations in which to look for auxiliary files.
2523ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2524
2525# Search for a directory containing all of the required auxiliary files,
2526# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2527# If we don't find one directory that contains all the files we need,
2528# we report the set of missing files from the *first* directory in
2529# $ac_aux_dir_candidates and give up.
2530ac_missing_aux_files=""
2531ac_first_candidate=:
2532printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534as_found=false
2535for as_dir in $ac_aux_dir_candidates
2536do
2537  IFS=$as_save_IFS
2538  case $as_dir in #(((
2539    '') as_dir=./ ;;
2540    */) ;;
2541    *) as_dir=$as_dir/ ;;
2542  esac
2543  as_found=:
2544
2545  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2546  ac_aux_dir_found=yes
2547  ac_install_sh=
2548  for ac_aux in $ac_aux_files
2549  do
2550    # As a special case, if "install-sh" is required, that requirement
2551    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2552    # and $ac_install_sh is set appropriately for whichever one is found.
2553    if test x"$ac_aux" = x"install-sh"
2554    then
2555      if test -f "${as_dir}install-sh"; then
2556        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2557        ac_install_sh="${as_dir}install-sh -c"
2558      elif test -f "${as_dir}install.sh"; then
2559        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2560        ac_install_sh="${as_dir}install.sh -c"
2561      elif test -f "${as_dir}shtool"; then
2562        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2563        ac_install_sh="${as_dir}shtool install -c"
2564      else
2565        ac_aux_dir_found=no
2566        if $ac_first_candidate; then
2567          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2568        else
2569          break
2570        fi
2571      fi
2572    else
2573      if test -f "${as_dir}${ac_aux}"; then
2574        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2575      else
2576        ac_aux_dir_found=no
2577        if $ac_first_candidate; then
2578          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2579        else
2580          break
2581        fi
2582      fi
2583    fi
2584  done
2585  if test "$ac_aux_dir_found" = yes; then
2586    ac_aux_dir="$as_dir"
2587    break
2588  fi
2589  ac_first_candidate=false
2590
2591  as_found=false
2592done
2593IFS=$as_save_IFS
2594if $as_found
2595then :
2596
2597else case e in #(
2598  e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2599esac
2600fi
2601
2602
2603# These three variables are undocumented and unsupported,
2604# and are intended to be withdrawn in a future Autoconf release.
2605# They can cause serious problems if a builder's source tree is in a directory
2606# whose full name contains unusual characters.
2607if test -f "${ac_aux_dir}config.guess"; then
2608  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2609fi
2610if test -f "${ac_aux_dir}config.sub"; then
2611  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2612fi
2613if test -f "$ac_aux_dir/configure"; then
2614  ac_configure="$SHELL ${ac_aux_dir}configure"
2615fi
2616
2617# Check that the precious variables saved in the cache have kept the same
2618# value.
2619ac_cache_corrupted=false
2620for ac_var in $ac_precious_vars; do
2621  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2622  eval ac_new_set=\$ac_env_${ac_var}_set
2623  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2624  eval ac_new_val=\$ac_env_${ac_var}_value
2625  case $ac_old_set,$ac_new_set in
2626    set,)
2627      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2628printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2629      ac_cache_corrupted=: ;;
2630    ,set)
2631      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2632printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2633      ac_cache_corrupted=: ;;
2634    ,);;
2635    *)
2636      if test "x$ac_old_val" != "x$ac_new_val"; then
2637	# differences in whitespace do not lead to failure.
2638	ac_old_val_w=`echo x $ac_old_val`
2639	ac_new_val_w=`echo x $ac_new_val`
2640	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2641	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2642printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2643	  ac_cache_corrupted=:
2644	else
2645	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2646printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2647	  eval $ac_var=\$ac_old_val
2648	fi
2649	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  '$ac_old_val'" >&5
2650printf "%s\n" "$as_me:   former value:  '$ac_old_val'" >&2;}
2651	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: '$ac_new_val'" >&5
2652printf "%s\n" "$as_me:   current value: '$ac_new_val'" >&2;}
2653      fi;;
2654  esac
2655  # Pass precious variables to config.status.
2656  if test "$ac_new_set" = set; then
2657    case $ac_new_val in
2658    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2659    *) ac_arg=$ac_var=$ac_new_val ;;
2660    esac
2661    case " $ac_configure_args " in
2662      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2663      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2664    esac
2665  fi
2666done
2667if $ac_cache_corrupted; then
2668  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2669printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2670  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2671printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2672  as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2673	    and start over" "$LINENO" 5
2674fi
2675## -------------------- ##
2676## Main body of script. ##
2677## -------------------- ##
2678
2679ac_ext=c
2680ac_cpp='$CPP $CPPFLAGS'
2681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2683ac_compiler_gnu=$ac_cv_c_compiler_gnu
2684
2685
2686
2687ac_config_headers="$ac_config_headers config.h"
2688
2689
2690
2691# Initialize Automake
2692am__api_version='1.16'
2693
2694
2695
2696  # Find a good install program.  We prefer a C program (faster),
2697# so one script is as good as another.  But avoid the broken or
2698# incompatible versions:
2699# SysV /etc/install, /usr/sbin/install
2700# SunOS /usr/etc/install
2701# IRIX /sbin/install
2702# AIX /bin/install
2703# AmigaOS /C/install, which installs bootblocks on floppy discs
2704# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2705# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2706# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2707# OS/2's system install, which has a completely different semantic
2708# ./install, which can be erroneously created by make from ./install.sh.
2709# Reject install programs that cannot install multiple files.
2710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2711printf %s "checking for a BSD-compatible install... " >&6; }
2712if test -z "$INSTALL"; then
2713if test ${ac_cv_path_install+y}
2714then :
2715  printf %s "(cached) " >&6
2716else case e in #(
2717  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718for as_dir in $PATH
2719do
2720  IFS=$as_save_IFS
2721  case $as_dir in #(((
2722    '') as_dir=./ ;;
2723    */) ;;
2724    *) as_dir=$as_dir/ ;;
2725  esac
2726    # Account for fact that we put trailing slashes in our PATH walk.
2727case $as_dir in #((
2728  ./ | /[cC]/* | \
2729  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2730  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2731  /usr/ucb/* ) ;;
2732  *)
2733    # OSF1 and SCO ODT 3.0 have their own names for install.
2734    # Don't use installbsd from OSF since it installs stuff as root
2735    # by default.
2736    for ac_prog in ginstall scoinst install; do
2737      for ac_exec_ext in '' $ac_executable_extensions; do
2738	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2739	  if test $ac_prog = install &&
2740	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2741	    # AIX install.  It has an incompatible calling convention.
2742	    :
2743	  elif test $ac_prog = install &&
2744	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2745	    # program-specific install script used by HP pwplus--don't use.
2746	    :
2747	  else
2748	    rm -rf conftest.one conftest.two conftest.dir
2749	    echo one > conftest.one
2750	    echo two > conftest.two
2751	    mkdir conftest.dir
2752	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2753	      test -s conftest.one && test -s conftest.two &&
2754	      test -s conftest.dir/conftest.one &&
2755	      test -s conftest.dir/conftest.two
2756	    then
2757	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2758	      break 3
2759	    fi
2760	  fi
2761	fi
2762      done
2763    done
2764    ;;
2765esac
2766
2767  done
2768IFS=$as_save_IFS
2769
2770rm -rf conftest.one conftest.two conftest.dir
2771 ;;
2772esac
2773fi
2774  if test ${ac_cv_path_install+y}; then
2775    INSTALL=$ac_cv_path_install
2776  else
2777    # As a last resort, use the slow shell script.  Don't cache a
2778    # value for INSTALL within a source directory, because that will
2779    # break other packages using the cache if that directory is
2780    # removed, or if the value is a relative name.
2781    INSTALL=$ac_install_sh
2782  fi
2783fi
2784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2785printf "%s\n" "$INSTALL" >&6; }
2786
2787# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2788# It thinks the first close brace ends the variable substitution.
2789test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2790
2791test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2792
2793test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2794
2795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2796printf %s "checking whether build environment is sane... " >&6; }
2797# Reject unsafe characters in $srcdir or the absolute working directory
2798# name.  Accept space and tab only in the latter.
2799am_lf='
2800'
2801case `pwd` in
2802  *[\\\"\#\$\&\'\`$am_lf]*)
2803    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2804esac
2805case $srcdir in
2806  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2807    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2808esac
2809
2810# Do 'set' in a subshell so we don't clobber the current shell's
2811# arguments.  Must try -L first in case configure is actually a
2812# symlink; some systems play weird games with the mod time of symlinks
2813# (eg FreeBSD returns the mod time of the symlink's containing
2814# directory).
2815if (
2816   am_has_slept=no
2817   for am_try in 1 2; do
2818     echo "timestamp, slept: $am_has_slept" > conftest.file
2819     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2820     if test "$*" = "X"; then
2821	# -L didn't work.
2822	set X `ls -t "$srcdir/configure" conftest.file`
2823     fi
2824     if test "$*" != "X $srcdir/configure conftest.file" \
2825	&& test "$*" != "X conftest.file $srcdir/configure"; then
2826
2827	# If neither matched, then we have a broken ls.  This can happen
2828	# if, for instance, CONFIG_SHELL is bash and it inherits a
2829	# broken ls alias from the environment.  This has actually
2830	# happened.  Such a system could not be considered "sane".
2831	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2832  alias in your environment" "$LINENO" 5
2833     fi
2834     if test "$2" = conftest.file || test $am_try -eq 2; then
2835       break
2836     fi
2837     # Just in case.
2838     sleep 1
2839     am_has_slept=yes
2840   done
2841   test "$2" = conftest.file
2842   )
2843then
2844   # Ok.
2845   :
2846else
2847   as_fn_error $? "newly created file is older than distributed files!
2848Check your system clock" "$LINENO" 5
2849fi
2850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2851printf "%s\n" "yes" >&6; }
2852# If we didn't sleep, we still need to ensure time stamps of config.status and
2853# generated files are strictly newer.
2854am_sleep_pid=
2855if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2856  ( sleep 1 ) &
2857  am_sleep_pid=$!
2858fi
2859
2860rm -f conftest.file
2861
2862test "$program_prefix" != NONE &&
2863  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2864# Use a double $ so make ignores it.
2865test "$program_suffix" != NONE &&
2866  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2867# Double any \ or $.
2868# By default was 's,x,x', remove it if useless.
2869ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2870program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2871
2872
2873# Expand $ac_aux_dir to an absolute path.
2874am_aux_dir=`cd "$ac_aux_dir" && pwd`
2875
2876
2877  if test x"${MISSING+set}" != xset; then
2878  MISSING="\${SHELL} '$am_aux_dir/missing'"
2879fi
2880# Use eval to expand $SHELL
2881if eval "$MISSING --is-lightweight"; then
2882  am_missing_run="$MISSING "
2883else
2884  am_missing_run=
2885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2886printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2887fi
2888
2889if test x"${install_sh+set}" != xset; then
2890  case $am_aux_dir in
2891  *\ * | *\	*)
2892    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2893  *)
2894    install_sh="\${SHELL} $am_aux_dir/install-sh"
2895  esac
2896fi
2897
2898# Installed binaries are usually stripped using 'strip' when the user
2899# run "make install-strip".  However 'strip' might not be the right
2900# tool to use in cross-compilation environments, therefore Automake
2901# will honor the 'STRIP' environment variable to overrule this program.
2902if test "$cross_compiling" != no; then
2903  if test -n "$ac_tool_prefix"; then
2904  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2905set dummy ${ac_tool_prefix}strip; ac_word=$2
2906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907printf %s "checking for $ac_word... " >&6; }
2908if test ${ac_cv_prog_STRIP+y}
2909then :
2910  printf %s "(cached) " >&6
2911else case e in #(
2912  e) if test -n "$STRIP"; then
2913  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2914else
2915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916for as_dir in $PATH
2917do
2918  IFS=$as_save_IFS
2919  case $as_dir in #(((
2920    '') as_dir=./ ;;
2921    */) ;;
2922    *) as_dir=$as_dir/ ;;
2923  esac
2924    for ac_exec_ext in '' $ac_executable_extensions; do
2925  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2926    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2927    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2928    break 2
2929  fi
2930done
2931  done
2932IFS=$as_save_IFS
2933
2934fi ;;
2935esac
2936fi
2937STRIP=$ac_cv_prog_STRIP
2938if test -n "$STRIP"; then
2939  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2940printf "%s\n" "$STRIP" >&6; }
2941else
2942  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943printf "%s\n" "no" >&6; }
2944fi
2945
2946
2947fi
2948if test -z "$ac_cv_prog_STRIP"; then
2949  ac_ct_STRIP=$STRIP
2950  # Extract the first word of "strip", so it can be a program name with args.
2951set dummy strip; ac_word=$2
2952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953printf %s "checking for $ac_word... " >&6; }
2954if test ${ac_cv_prog_ac_ct_STRIP+y}
2955then :
2956  printf %s "(cached) " >&6
2957else case e in #(
2958  e) if test -n "$ac_ct_STRIP"; then
2959  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2960else
2961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962for as_dir in $PATH
2963do
2964  IFS=$as_save_IFS
2965  case $as_dir in #(((
2966    '') as_dir=./ ;;
2967    */) ;;
2968    *) as_dir=$as_dir/ ;;
2969  esac
2970    for ac_exec_ext in '' $ac_executable_extensions; do
2971  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2972    ac_cv_prog_ac_ct_STRIP="strip"
2973    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2974    break 2
2975  fi
2976done
2977  done
2978IFS=$as_save_IFS
2979
2980fi ;;
2981esac
2982fi
2983ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2984if test -n "$ac_ct_STRIP"; then
2985  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2986printf "%s\n" "$ac_ct_STRIP" >&6; }
2987else
2988  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989printf "%s\n" "no" >&6; }
2990fi
2991
2992  if test "x$ac_ct_STRIP" = x; then
2993    STRIP=":"
2994  else
2995    case $cross_compiling:$ac_tool_warned in
2996yes:)
2997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2998printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2999ac_tool_warned=yes ;;
3000esac
3001    STRIP=$ac_ct_STRIP
3002  fi
3003else
3004  STRIP="$ac_cv_prog_STRIP"
3005fi
3006
3007fi
3008INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3009
3010
3011  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3012printf %s "checking for a race-free mkdir -p... " >&6; }
3013if test -z "$MKDIR_P"; then
3014  if test ${ac_cv_path_mkdir+y}
3015then :
3016  printf %s "(cached) " >&6
3017else case e in #(
3018  e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3020do
3021  IFS=$as_save_IFS
3022  case $as_dir in #(((
3023    '') as_dir=./ ;;
3024    */) ;;
3025    *) as_dir=$as_dir/ ;;
3026  esac
3027    for ac_prog in mkdir gmkdir; do
3028	 for ac_exec_ext in '' $ac_executable_extensions; do
3029	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3030	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3031	     'mkdir ('*'coreutils) '* | \
3032	     *'BusyBox '* | \
3033	     'mkdir (fileutils) '4.1*)
3034	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3035	       break 3;;
3036	   esac
3037	 done
3038       done
3039  done
3040IFS=$as_save_IFS
3041 ;;
3042esac
3043fi
3044
3045  test -d ./--version && rmdir ./--version
3046  if test ${ac_cv_path_mkdir+y}; then
3047    MKDIR_P="$ac_cv_path_mkdir -p"
3048  else
3049    # As a last resort, use plain mkdir -p,
3050    # in the hope it doesn't have the bugs of ancient mkdir.
3051    MKDIR_P='mkdir -p'
3052  fi
3053fi
3054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3055printf "%s\n" "$MKDIR_P" >&6; }
3056
3057for ac_prog in gawk mawk nawk awk
3058do
3059  # Extract the first word of "$ac_prog", so it can be a program name with args.
3060set dummy $ac_prog; ac_word=$2
3061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062printf %s "checking for $ac_word... " >&6; }
3063if test ${ac_cv_prog_AWK+y}
3064then :
3065  printf %s "(cached) " >&6
3066else case e in #(
3067  e) if test -n "$AWK"; then
3068  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3069else
3070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071for as_dir in $PATH
3072do
3073  IFS=$as_save_IFS
3074  case $as_dir in #(((
3075    '') as_dir=./ ;;
3076    */) ;;
3077    *) as_dir=$as_dir/ ;;
3078  esac
3079    for ac_exec_ext in '' $ac_executable_extensions; do
3080  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3081    ac_cv_prog_AWK="$ac_prog"
3082    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3083    break 2
3084  fi
3085done
3086  done
3087IFS=$as_save_IFS
3088
3089fi ;;
3090esac
3091fi
3092AWK=$ac_cv_prog_AWK
3093if test -n "$AWK"; then
3094  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3095printf "%s\n" "$AWK" >&6; }
3096else
3097  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098printf "%s\n" "no" >&6; }
3099fi
3100
3101
3102  test -n "$AWK" && break
3103done
3104
3105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3106printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3107set x ${MAKE-make}
3108ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3109if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3110then :
3111  printf %s "(cached) " >&6
3112else case e in #(
3113  e) cat >conftest.make <<\_ACEOF
3114SHELL = /bin/sh
3115all:
3116	@echo '@@@%%%=$(MAKE)=@@@%%%'
3117_ACEOF
3118# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3119case `${MAKE-make} -f conftest.make 2>/dev/null` in
3120  *@@@%%%=?*=@@@%%%*)
3121    eval ac_cv_prog_make_${ac_make}_set=yes;;
3122  *)
3123    eval ac_cv_prog_make_${ac_make}_set=no;;
3124esac
3125rm -f conftest.make ;;
3126esac
3127fi
3128if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3129  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3130printf "%s\n" "yes" >&6; }
3131  SET_MAKE=
3132else
3133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134printf "%s\n" "no" >&6; }
3135  SET_MAKE="MAKE=${MAKE-make}"
3136fi
3137
3138rm -rf .tst 2>/dev/null
3139mkdir .tst 2>/dev/null
3140if test -d .tst; then
3141  am__leading_dot=.
3142else
3143  am__leading_dot=_
3144fi
3145rmdir .tst 2>/dev/null
3146
3147# Check whether --enable-silent-rules was given.
3148if test ${enable_silent_rules+y}
3149then :
3150  enableval=$enable_silent_rules;
3151fi
3152
3153case $enable_silent_rules in # (((
3154  yes) AM_DEFAULT_VERBOSITY=0;;
3155   no) AM_DEFAULT_VERBOSITY=1;;
3156    *) AM_DEFAULT_VERBOSITY=1;;
3157esac
3158am_make=${MAKE-make}
3159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3160printf %s "checking whether $am_make supports nested variables... " >&6; }
3161if test ${am_cv_make_support_nested_variables+y}
3162then :
3163  printf %s "(cached) " >&6
3164else case e in #(
3165  e) if printf "%s\n" 'TRUE=$(BAR$(V))
3166BAR0=false
3167BAR1=true
3168V=1
3169am__doit:
3170	@$(TRUE)
3171.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3172  am_cv_make_support_nested_variables=yes
3173else
3174  am_cv_make_support_nested_variables=no
3175fi ;;
3176esac
3177fi
3178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3179printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3180if test $am_cv_make_support_nested_variables = yes; then
3181    AM_V='$(V)'
3182  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3183else
3184  AM_V=$AM_DEFAULT_VERBOSITY
3185  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3186fi
3187AM_BACKSLASH='\'
3188
3189if test "`cd $srcdir && pwd`" != "`pwd`"; then
3190  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3191  # is not polluted with repeated "-I."
3192  am__isrc=' -I$(srcdir)'
3193  # test to see if srcdir already configured
3194  if test -f $srcdir/config.status; then
3195    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3196  fi
3197fi
3198
3199# test whether we have cygpath
3200if test -z "$CYGPATH_W"; then
3201  if (cygpath --version) >/dev/null 2>/dev/null; then
3202    CYGPATH_W='cygpath -w'
3203  else
3204    CYGPATH_W=echo
3205  fi
3206fi
3207
3208
3209# Define the identity of the package.
3210 PACKAGE='libXvMC'
3211 VERSION='1.0.14'
3212
3213
3214printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3215
3216
3217printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3218
3219# Some tools Automake needs.
3220
3221ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3222
3223
3224AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3225
3226
3227AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3228
3229
3230AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3231
3232
3233MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3234
3235# For better backward compatibility.  To be removed once Automake 1.9.x
3236# dies out for good.  For more background, see:
3237# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3238# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3239mkdir_p='$(MKDIR_P)'
3240
3241# We need awk for the "check" target (and possibly the TAP driver).  The
3242# system "awk" is bad on some platforms.
3243# Always define AMTAR for backward compatibility.  Yes, it's still used
3244# in the wild :-(  We should find a proper way to deprecate it ...
3245AMTAR='$${TAR-tar}'
3246
3247
3248# We'll loop over all known methods to create a tar archive until one works.
3249_am_tools='gnutar  pax cpio none'
3250
3251am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3252
3253
3254
3255
3256
3257# Variables for tags utilities; see am/tags.am
3258if test -z "$CTAGS"; then
3259  CTAGS=ctags
3260fi
3261
3262if test -z "$ETAGS"; then
3263  ETAGS=etags
3264fi
3265
3266if test -z "$CSCOPE"; then
3267  CSCOPE=cscope
3268fi
3269
3270
3271
3272# POSIX will say in a future version that running "rm -f" with no argument
3273# is OK; and we want to be able to make that assumption in our Makefile
3274# recipes.  So use an aggressive probe to check that the usage we want is
3275# actually supported "in the wild" to an acceptable degree.
3276# See automake bug#10828.
3277# To make any issue more visible, cause the running configure to be aborted
3278# by default if the 'rm' program in use doesn't match our expectations; the
3279# user can still override this though.
3280if rm -f && rm -fr && rm -rf; then : OK; else
3281  cat >&2 <<'END'
3282Oops!
3283
3284Your 'rm' program seems unable to run without file operands specified
3285on the command line, even when the '-f' option is present.  This is contrary
3286to the behaviour of most rm programs out there, and not conforming with
3287the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3288
3289Please tell bug-automake@gnu.org about your system, including the value
3290of your $PATH and any error possibly output before this message.  This
3291can help us improve future automake versions.
3292
3293END
3294  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3295    echo 'Configuration will proceed anyway, since you have set the' >&2
3296    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3297    echo >&2
3298  else
3299    cat >&2 <<'END'
3300Aborting the configuration process, to ensure you take notice of the issue.
3301
3302You can download and install GNU coreutils to get an 'rm' implementation
3303that behaves properly: <https://www.gnu.org/software/coreutils/>.
3304
3305If you want to complete the configuration process using your problematic
3306'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3307to "yes", and re-run configure.
3308
3309END
3310    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3311  fi
3312fi
3313
3314
3315# Initialize libtool
3316case `pwd` in
3317  *\ * | *\	*)
3318    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3319printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3320esac
3321
3322
3323
3324macro_version='2.4.7'
3325macro_revision='2.4.7'
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340ltmain=$ac_aux_dir/ltmain.sh
3341
3342
3343
3344  # Make sure we can run config.sub.
3345$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3346  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3347
3348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3349printf %s "checking build system type... " >&6; }
3350if test ${ac_cv_build+y}
3351then :
3352  printf %s "(cached) " >&6
3353else case e in #(
3354  e) ac_build_alias=$build_alias
3355test "x$ac_build_alias" = x &&
3356  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3357test "x$ac_build_alias" = x &&
3358  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3359ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3360  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3361 ;;
3362esac
3363fi
3364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3365printf "%s\n" "$ac_cv_build" >&6; }
3366case $ac_cv_build in
3367*-*-*) ;;
3368*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3369esac
3370build=$ac_cv_build
3371ac_save_IFS=$IFS; IFS='-'
3372set x $ac_cv_build
3373shift
3374build_cpu=$1
3375build_vendor=$2
3376shift; shift
3377# Remember, the first character of IFS is used to create $*,
3378# except with old shells:
3379build_os=$*
3380IFS=$ac_save_IFS
3381case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3382
3383
3384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3385printf %s "checking host system type... " >&6; }
3386if test ${ac_cv_host+y}
3387then :
3388  printf %s "(cached) " >&6
3389else case e in #(
3390  e) if test "x$host_alias" = x; then
3391  ac_cv_host=$ac_cv_build
3392else
3393  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3394    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3395fi
3396 ;;
3397esac
3398fi
3399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3400printf "%s\n" "$ac_cv_host" >&6; }
3401case $ac_cv_host in
3402*-*-*) ;;
3403*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3404esac
3405host=$ac_cv_host
3406ac_save_IFS=$IFS; IFS='-'
3407set x $ac_cv_host
3408shift
3409host_cpu=$1
3410host_vendor=$2
3411shift; shift
3412# Remember, the first character of IFS is used to create $*,
3413# except with old shells:
3414host_os=$*
3415IFS=$ac_save_IFS
3416case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3417
3418
3419# Backslashify metacharacters that are still active within
3420# double-quoted strings.
3421sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3422
3423# Same as above, but do not quote variable references.
3424double_quote_subst='s/\(["`\\]\)/\\\1/g'
3425
3426# Sed substitution to delay expansion of an escaped shell variable in a
3427# double_quote_subst'ed string.
3428delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3429
3430# Sed substitution to delay expansion of an escaped single quote.
3431delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3432
3433# Sed substitution to avoid accidental globbing in evaled expressions
3434no_glob_subst='s/\*/\\\*/g'
3435
3436ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3437ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3438ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3439
3440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3441printf %s "checking how to print strings... " >&6; }
3442# Test print first, because it will be a builtin if present.
3443if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3444   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3445  ECHO='print -r --'
3446elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3447  ECHO='printf %s\n'
3448else
3449  # Use this function as a fallback that always works.
3450  func_fallback_echo ()
3451  {
3452    eval 'cat <<_LTECHO_EOF
3453$1
3454_LTECHO_EOF'
3455  }
3456  ECHO='func_fallback_echo'
3457fi
3458
3459# func_echo_all arg...
3460# Invoke $ECHO with all args, space-separated.
3461func_echo_all ()
3462{
3463    $ECHO ""
3464}
3465
3466case $ECHO in
3467  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3468printf "%s\n" "printf" >&6; } ;;
3469  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3470printf "%s\n" "print -r" >&6; } ;;
3471  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3472printf "%s\n" "cat" >&6; } ;;
3473esac
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497DEPDIR="${am__leading_dot}deps"
3498
3499ac_config_commands="$ac_config_commands depfiles"
3500
3501{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3502printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3503cat > confinc.mk << 'END'
3504am__doit:
3505	@echo this is the am__doit target >confinc.out
3506.PHONY: am__doit
3507END
3508am__include="#"
3509am__quote=
3510# BSD make does it like this.
3511echo '.include "confinc.mk" # ignored' > confmf.BSD
3512# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3513echo 'include confinc.mk # ignored' > confmf.GNU
3514_am_result=no
3515for s in GNU BSD; do
3516  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3517   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3518   ac_status=$?
3519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520   (exit $ac_status); }
3521  case $?:`cat confinc.out 2>/dev/null` in #(
3522  '0:this is the am__doit target') :
3523    case $s in #(
3524  BSD) :
3525    am__include='.include' am__quote='"' ;; #(
3526  *) :
3527    am__include='include' am__quote='' ;;
3528esac ;; #(
3529  *) :
3530     ;;
3531esac
3532  if test "$am__include" != "#"; then
3533    _am_result="yes ($s style)"
3534    break
3535  fi
3536done
3537rm -f confinc.* confmf.*
3538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3539printf "%s\n" "${_am_result}" >&6; }
3540
3541# Check whether --enable-dependency-tracking was given.
3542if test ${enable_dependency_tracking+y}
3543then :
3544  enableval=$enable_dependency_tracking;
3545fi
3546
3547if test "x$enable_dependency_tracking" != xno; then
3548  am_depcomp="$ac_aux_dir/depcomp"
3549  AMDEPBACKSLASH='\'
3550  am__nodep='_no'
3551fi
3552 if test "x$enable_dependency_tracking" != xno; then
3553  AMDEP_TRUE=
3554  AMDEP_FALSE='#'
3555else
3556  AMDEP_TRUE='#'
3557  AMDEP_FALSE=
3558fi
3559
3560
3561ac_ext=c
3562ac_cpp='$CPP $CPPFLAGS'
3563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565ac_compiler_gnu=$ac_cv_c_compiler_gnu
3566if test -n "$ac_tool_prefix"; then
3567  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3568set dummy ${ac_tool_prefix}gcc; ac_word=$2
3569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570printf %s "checking for $ac_word... " >&6; }
3571if test ${ac_cv_prog_CC+y}
3572then :
3573  printf %s "(cached) " >&6
3574else case e in #(
3575  e) if test -n "$CC"; then
3576  ac_cv_prog_CC="$CC" # Let the user override the test.
3577else
3578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579for as_dir in $PATH
3580do
3581  IFS=$as_save_IFS
3582  case $as_dir in #(((
3583    '') as_dir=./ ;;
3584    */) ;;
3585    *) as_dir=$as_dir/ ;;
3586  esac
3587    for ac_exec_ext in '' $ac_executable_extensions; do
3588  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3589    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3590    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3591    break 2
3592  fi
3593done
3594  done
3595IFS=$as_save_IFS
3596
3597fi ;;
3598esac
3599fi
3600CC=$ac_cv_prog_CC
3601if test -n "$CC"; then
3602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3603printf "%s\n" "$CC" >&6; }
3604else
3605  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606printf "%s\n" "no" >&6; }
3607fi
3608
3609
3610fi
3611if test -z "$ac_cv_prog_CC"; then
3612  ac_ct_CC=$CC
3613  # Extract the first word of "gcc", so it can be a program name with args.
3614set dummy gcc; ac_word=$2
3615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3616printf %s "checking for $ac_word... " >&6; }
3617if test ${ac_cv_prog_ac_ct_CC+y}
3618then :
3619  printf %s "(cached) " >&6
3620else case e in #(
3621  e) if test -n "$ac_ct_CC"; then
3622  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3623else
3624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625for as_dir in $PATH
3626do
3627  IFS=$as_save_IFS
3628  case $as_dir in #(((
3629    '') as_dir=./ ;;
3630    */) ;;
3631    *) as_dir=$as_dir/ ;;
3632  esac
3633    for ac_exec_ext in '' $ac_executable_extensions; do
3634  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3635    ac_cv_prog_ac_ct_CC="gcc"
3636    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3637    break 2
3638  fi
3639done
3640  done
3641IFS=$as_save_IFS
3642
3643fi ;;
3644esac
3645fi
3646ac_ct_CC=$ac_cv_prog_ac_ct_CC
3647if test -n "$ac_ct_CC"; then
3648  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3649printf "%s\n" "$ac_ct_CC" >&6; }
3650else
3651  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3652printf "%s\n" "no" >&6; }
3653fi
3654
3655  if test "x$ac_ct_CC" = x; then
3656    CC=""
3657  else
3658    case $cross_compiling:$ac_tool_warned in
3659yes:)
3660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3661printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3662ac_tool_warned=yes ;;
3663esac
3664    CC=$ac_ct_CC
3665  fi
3666else
3667  CC="$ac_cv_prog_CC"
3668fi
3669
3670if test -z "$CC"; then
3671          if test -n "$ac_tool_prefix"; then
3672    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3673set dummy ${ac_tool_prefix}cc; ac_word=$2
3674{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3675printf %s "checking for $ac_word... " >&6; }
3676if test ${ac_cv_prog_CC+y}
3677then :
3678  printf %s "(cached) " >&6
3679else case e in #(
3680  e) if test -n "$CC"; then
3681  ac_cv_prog_CC="$CC" # Let the user override the test.
3682else
3683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684for as_dir in $PATH
3685do
3686  IFS=$as_save_IFS
3687  case $as_dir in #(((
3688    '') as_dir=./ ;;
3689    */) ;;
3690    *) as_dir=$as_dir/ ;;
3691  esac
3692    for ac_exec_ext in '' $ac_executable_extensions; do
3693  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3694    ac_cv_prog_CC="${ac_tool_prefix}cc"
3695    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3696    break 2
3697  fi
3698done
3699  done
3700IFS=$as_save_IFS
3701
3702fi ;;
3703esac
3704fi
3705CC=$ac_cv_prog_CC
3706if test -n "$CC"; then
3707  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3708printf "%s\n" "$CC" >&6; }
3709else
3710  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711printf "%s\n" "no" >&6; }
3712fi
3713
3714
3715  fi
3716fi
3717if test -z "$CC"; then
3718  # Extract the first word of "cc", so it can be a program name with args.
3719set dummy cc; ac_word=$2
3720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3721printf %s "checking for $ac_word... " >&6; }
3722if test ${ac_cv_prog_CC+y}
3723then :
3724  printf %s "(cached) " >&6
3725else case e in #(
3726  e) if test -n "$CC"; then
3727  ac_cv_prog_CC="$CC" # Let the user override the test.
3728else
3729  ac_prog_rejected=no
3730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731for as_dir in $PATH
3732do
3733  IFS=$as_save_IFS
3734  case $as_dir in #(((
3735    '') as_dir=./ ;;
3736    */) ;;
3737    *) as_dir=$as_dir/ ;;
3738  esac
3739    for ac_exec_ext in '' $ac_executable_extensions; do
3740  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3741    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3742       ac_prog_rejected=yes
3743       continue
3744     fi
3745    ac_cv_prog_CC="cc"
3746    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3747    break 2
3748  fi
3749done
3750  done
3751IFS=$as_save_IFS
3752
3753if test $ac_prog_rejected = yes; then
3754  # We found a bogon in the path, so make sure we never use it.
3755  set dummy $ac_cv_prog_CC
3756  shift
3757  if test $# != 0; then
3758    # We chose a different compiler from the bogus one.
3759    # However, it has the same basename, so the bogon will be chosen
3760    # first if we set CC to just the basename; use the full file name.
3761    shift
3762    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3763  fi
3764fi
3765fi ;;
3766esac
3767fi
3768CC=$ac_cv_prog_CC
3769if test -n "$CC"; then
3770  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3771printf "%s\n" "$CC" >&6; }
3772else
3773  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774printf "%s\n" "no" >&6; }
3775fi
3776
3777
3778fi
3779if test -z "$CC"; then
3780  if test -n "$ac_tool_prefix"; then
3781  for ac_prog in cl.exe
3782  do
3783    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3784set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3786printf %s "checking for $ac_word... " >&6; }
3787if test ${ac_cv_prog_CC+y}
3788then :
3789  printf %s "(cached) " >&6
3790else case e in #(
3791  e) if test -n "$CC"; then
3792  ac_cv_prog_CC="$CC" # Let the user override the test.
3793else
3794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3795for as_dir in $PATH
3796do
3797  IFS=$as_save_IFS
3798  case $as_dir in #(((
3799    '') as_dir=./ ;;
3800    */) ;;
3801    *) as_dir=$as_dir/ ;;
3802  esac
3803    for ac_exec_ext in '' $ac_executable_extensions; do
3804  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3805    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3806    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3807    break 2
3808  fi
3809done
3810  done
3811IFS=$as_save_IFS
3812
3813fi ;;
3814esac
3815fi
3816CC=$ac_cv_prog_CC
3817if test -n "$CC"; then
3818  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3819printf "%s\n" "$CC" >&6; }
3820else
3821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822printf "%s\n" "no" >&6; }
3823fi
3824
3825
3826    test -n "$CC" && break
3827  done
3828fi
3829if test -z "$CC"; then
3830  ac_ct_CC=$CC
3831  for ac_prog in cl.exe
3832do
3833  # Extract the first word of "$ac_prog", so it can be a program name with args.
3834set dummy $ac_prog; ac_word=$2
3835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836printf %s "checking for $ac_word... " >&6; }
3837if test ${ac_cv_prog_ac_ct_CC+y}
3838then :
3839  printf %s "(cached) " >&6
3840else case e in #(
3841  e) if test -n "$ac_ct_CC"; then
3842  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3843else
3844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845for as_dir in $PATH
3846do
3847  IFS=$as_save_IFS
3848  case $as_dir in #(((
3849    '') as_dir=./ ;;
3850    */) ;;
3851    *) as_dir=$as_dir/ ;;
3852  esac
3853    for ac_exec_ext in '' $ac_executable_extensions; do
3854  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3855    ac_cv_prog_ac_ct_CC="$ac_prog"
3856    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3857    break 2
3858  fi
3859done
3860  done
3861IFS=$as_save_IFS
3862
3863fi ;;
3864esac
3865fi
3866ac_ct_CC=$ac_cv_prog_ac_ct_CC
3867if test -n "$ac_ct_CC"; then
3868  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3869printf "%s\n" "$ac_ct_CC" >&6; }
3870else
3871  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3872printf "%s\n" "no" >&6; }
3873fi
3874
3875
3876  test -n "$ac_ct_CC" && break
3877done
3878
3879  if test "x$ac_ct_CC" = x; then
3880    CC=""
3881  else
3882    case $cross_compiling:$ac_tool_warned in
3883yes:)
3884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3885printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3886ac_tool_warned=yes ;;
3887esac
3888    CC=$ac_ct_CC
3889  fi
3890fi
3891
3892fi
3893if test -z "$CC"; then
3894  if test -n "$ac_tool_prefix"; then
3895  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3896set dummy ${ac_tool_prefix}clang; ac_word=$2
3897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3898printf %s "checking for $ac_word... " >&6; }
3899if test ${ac_cv_prog_CC+y}
3900then :
3901  printf %s "(cached) " >&6
3902else case e in #(
3903  e) if test -n "$CC"; then
3904  ac_cv_prog_CC="$CC" # Let the user override the test.
3905else
3906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907for as_dir in $PATH
3908do
3909  IFS=$as_save_IFS
3910  case $as_dir in #(((
3911    '') as_dir=./ ;;
3912    */) ;;
3913    *) as_dir=$as_dir/ ;;
3914  esac
3915    for ac_exec_ext in '' $ac_executable_extensions; do
3916  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3917    ac_cv_prog_CC="${ac_tool_prefix}clang"
3918    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3919    break 2
3920  fi
3921done
3922  done
3923IFS=$as_save_IFS
3924
3925fi ;;
3926esac
3927fi
3928CC=$ac_cv_prog_CC
3929if test -n "$CC"; then
3930  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3931printf "%s\n" "$CC" >&6; }
3932else
3933  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3934printf "%s\n" "no" >&6; }
3935fi
3936
3937
3938fi
3939if test -z "$ac_cv_prog_CC"; then
3940  ac_ct_CC=$CC
3941  # Extract the first word of "clang", so it can be a program name with args.
3942set dummy clang; ac_word=$2
3943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3944printf %s "checking for $ac_word... " >&6; }
3945if test ${ac_cv_prog_ac_ct_CC+y}
3946then :
3947  printf %s "(cached) " >&6
3948else case e in #(
3949  e) if test -n "$ac_ct_CC"; then
3950  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3951else
3952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953for as_dir in $PATH
3954do
3955  IFS=$as_save_IFS
3956  case $as_dir in #(((
3957    '') as_dir=./ ;;
3958    */) ;;
3959    *) as_dir=$as_dir/ ;;
3960  esac
3961    for ac_exec_ext in '' $ac_executable_extensions; do
3962  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3963    ac_cv_prog_ac_ct_CC="clang"
3964    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3965    break 2
3966  fi
3967done
3968  done
3969IFS=$as_save_IFS
3970
3971fi ;;
3972esac
3973fi
3974ac_ct_CC=$ac_cv_prog_ac_ct_CC
3975if test -n "$ac_ct_CC"; then
3976  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3977printf "%s\n" "$ac_ct_CC" >&6; }
3978else
3979  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3980printf "%s\n" "no" >&6; }
3981fi
3982
3983  if test "x$ac_ct_CC" = x; then
3984    CC=""
3985  else
3986    case $cross_compiling:$ac_tool_warned in
3987yes:)
3988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3989printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3990ac_tool_warned=yes ;;
3991esac
3992    CC=$ac_ct_CC
3993  fi
3994else
3995  CC="$ac_cv_prog_CC"
3996fi
3997
3998fi
3999
4000
4001test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4002printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4003as_fn_error $? "no acceptable C compiler found in \$PATH
4004See 'config.log' for more details" "$LINENO" 5; }
4005
4006# Provide some information about the compiler.
4007printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4008set X $ac_compile
4009ac_compiler=$2
4010for ac_option in --version -v -V -qversion -version; do
4011  { { ac_try="$ac_compiler $ac_option >&5"
4012case "(($ac_try" in
4013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014  *) ac_try_echo=$ac_try;;
4015esac
4016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017printf "%s\n" "$ac_try_echo"; } >&5
4018  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4019  ac_status=$?
4020  if test -s conftest.err; then
4021    sed '10a\
4022... rest of stderr output deleted ...
4023         10q' conftest.err >conftest.er1
4024    cat conftest.er1 >&5
4025  fi
4026  rm -f conftest.er1 conftest.err
4027  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4028  test $ac_status = 0; }
4029done
4030
4031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032/* end confdefs.h.  */
4033
4034int
4035main (void)
4036{
4037
4038  ;
4039  return 0;
4040}
4041_ACEOF
4042ac_clean_files_save=$ac_clean_files
4043ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4044# Try to create an executable without -o first, disregard a.out.
4045# It will help us diagnose broken compilers, and finding out an intuition
4046# of exeext.
4047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4048printf %s "checking whether the C compiler works... " >&6; }
4049ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4050
4051# The possible output files:
4052ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4053
4054ac_rmfiles=
4055for ac_file in $ac_files
4056do
4057  case $ac_file in
4058    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4059    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4060  esac
4061done
4062rm -f $ac_rmfiles
4063
4064if { { ac_try="$ac_link_default"
4065case "(($ac_try" in
4066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4067  *) ac_try_echo=$ac_try;;
4068esac
4069eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4070printf "%s\n" "$ac_try_echo"; } >&5
4071  (eval "$ac_link_default") 2>&5
4072  ac_status=$?
4073  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4074  test $ac_status = 0; }
4075then :
4076  # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4077# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4078# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4079# so that the user can short-circuit this test for compilers unknown to
4080# Autoconf.
4081for ac_file in $ac_files ''
4082do
4083  test -f "$ac_file" || continue
4084  case $ac_file in
4085    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4086	;;
4087    [ab].out )
4088	# We found the default executable, but exeext='' is most
4089	# certainly right.
4090	break;;
4091    *.* )
4092	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4093	then :; else
4094	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4095	fi
4096	# We set ac_cv_exeext here because the later test for it is not
4097	# safe: cross compilers may not add the suffix if given an '-o'
4098	# argument, so we may need to know it at that point already.
4099	# Even if this section looks crufty: it has the advantage of
4100	# actually working.
4101	break;;
4102    * )
4103	break;;
4104  esac
4105done
4106test "$ac_cv_exeext" = no && ac_cv_exeext=
4107
4108else case e in #(
4109  e) ac_file='' ;;
4110esac
4111fi
4112if test -z "$ac_file"
4113then :
4114  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4115printf "%s\n" "no" >&6; }
4116printf "%s\n" "$as_me: failed program was:" >&5
4117sed 's/^/| /' conftest.$ac_ext >&5
4118
4119{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4120printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4121as_fn_error 77 "C compiler cannot create executables
4122See 'config.log' for more details" "$LINENO" 5; }
4123else case e in #(
4124  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4125printf "%s\n" "yes" >&6; } ;;
4126esac
4127fi
4128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4129printf %s "checking for C compiler default output file name... " >&6; }
4130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4131printf "%s\n" "$ac_file" >&6; }
4132ac_exeext=$ac_cv_exeext
4133
4134rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4135ac_clean_files=$ac_clean_files_save
4136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4137printf %s "checking for suffix of executables... " >&6; }
4138if { { ac_try="$ac_link"
4139case "(($ac_try" in
4140  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141  *) ac_try_echo=$ac_try;;
4142esac
4143eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4144printf "%s\n" "$ac_try_echo"; } >&5
4145  (eval "$ac_link") 2>&5
4146  ac_status=$?
4147  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4148  test $ac_status = 0; }
4149then :
4150  # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4151# catch 'conftest.exe'.  For instance with Cygwin, 'ls conftest' will
4152# work properly (i.e., refer to 'conftest.exe'), while it won't with
4153# 'rm'.
4154for ac_file in conftest.exe conftest conftest.*; do
4155  test -f "$ac_file" || continue
4156  case $ac_file in
4157    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4158    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4159	  break;;
4160    * ) break;;
4161  esac
4162done
4163else case e in #(
4164  e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4165printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4166as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4167See 'config.log' for more details" "$LINENO" 5; } ;;
4168esac
4169fi
4170rm -f conftest conftest$ac_cv_exeext
4171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4172printf "%s\n" "$ac_cv_exeext" >&6; }
4173
4174rm -f conftest.$ac_ext
4175EXEEXT=$ac_cv_exeext
4176ac_exeext=$EXEEXT
4177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178/* end confdefs.h.  */
4179#include <stdio.h>
4180int
4181main (void)
4182{
4183FILE *f = fopen ("conftest.out", "w");
4184 if (!f)
4185  return 1;
4186 return ferror (f) || fclose (f) != 0;
4187
4188  ;
4189  return 0;
4190}
4191_ACEOF
4192ac_clean_files="$ac_clean_files conftest.out"
4193# Check that the compiler produces executables we can run.  If not, either
4194# the compiler is broken, or we cross compile.
4195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4196printf %s "checking whether we are cross compiling... " >&6; }
4197if test "$cross_compiling" != yes; then
4198  { { ac_try="$ac_link"
4199case "(($ac_try" in
4200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201  *) ac_try_echo=$ac_try;;
4202esac
4203eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4204printf "%s\n" "$ac_try_echo"; } >&5
4205  (eval "$ac_link") 2>&5
4206  ac_status=$?
4207  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4208  test $ac_status = 0; }
4209  if { ac_try='./conftest$ac_cv_exeext'
4210  { { case "(($ac_try" in
4211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212  *) ac_try_echo=$ac_try;;
4213esac
4214eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4215printf "%s\n" "$ac_try_echo"; } >&5
4216  (eval "$ac_try") 2>&5
4217  ac_status=$?
4218  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4219  test $ac_status = 0; }; }; then
4220    cross_compiling=no
4221  else
4222    if test "$cross_compiling" = maybe; then
4223	cross_compiling=yes
4224    else
4225	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4226printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4227as_fn_error 77 "cannot run C compiled programs.
4228If you meant to cross compile, use '--host'.
4229See 'config.log' for more details" "$LINENO" 5; }
4230    fi
4231  fi
4232fi
4233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4234printf "%s\n" "$cross_compiling" >&6; }
4235
4236rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4237  conftest.o conftest.obj conftest.out
4238ac_clean_files=$ac_clean_files_save
4239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4240printf %s "checking for suffix of object files... " >&6; }
4241if test ${ac_cv_objext+y}
4242then :
4243  printf %s "(cached) " >&6
4244else case e in #(
4245  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246/* end confdefs.h.  */
4247
4248int
4249main (void)
4250{
4251
4252  ;
4253  return 0;
4254}
4255_ACEOF
4256rm -f conftest.o conftest.obj
4257if { { ac_try="$ac_compile"
4258case "(($ac_try" in
4259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260  *) ac_try_echo=$ac_try;;
4261esac
4262eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4263printf "%s\n" "$ac_try_echo"; } >&5
4264  (eval "$ac_compile") 2>&5
4265  ac_status=$?
4266  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4267  test $ac_status = 0; }
4268then :
4269  for ac_file in conftest.o conftest.obj conftest.*; do
4270  test -f "$ac_file" || continue;
4271  case $ac_file in
4272    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4273    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4274       break;;
4275  esac
4276done
4277else case e in #(
4278  e) printf "%s\n" "$as_me: failed program was:" >&5
4279sed 's/^/| /' conftest.$ac_ext >&5
4280
4281{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4282printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4283as_fn_error $? "cannot compute suffix of object files: cannot compile
4284See 'config.log' for more details" "$LINENO" 5; } ;;
4285esac
4286fi
4287rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4288esac
4289fi
4290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4291printf "%s\n" "$ac_cv_objext" >&6; }
4292OBJEXT=$ac_cv_objext
4293ac_objext=$OBJEXT
4294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4295printf %s "checking whether the compiler supports GNU C... " >&6; }
4296if test ${ac_cv_c_compiler_gnu+y}
4297then :
4298  printf %s "(cached) " >&6
4299else case e in #(
4300  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4301/* end confdefs.h.  */
4302
4303int
4304main (void)
4305{
4306#ifndef __GNUC__
4307       choke me
4308#endif
4309
4310  ;
4311  return 0;
4312}
4313_ACEOF
4314if ac_fn_c_try_compile "$LINENO"
4315then :
4316  ac_compiler_gnu=yes
4317else case e in #(
4318  e) ac_compiler_gnu=no ;;
4319esac
4320fi
4321rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4322ac_cv_c_compiler_gnu=$ac_compiler_gnu
4323 ;;
4324esac
4325fi
4326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4327printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4328ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329
4330if test $ac_compiler_gnu = yes; then
4331  GCC=yes
4332else
4333  GCC=
4334fi
4335ac_test_CFLAGS=${CFLAGS+y}
4336ac_save_CFLAGS=$CFLAGS
4337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4338printf %s "checking whether $CC accepts -g... " >&6; }
4339if test ${ac_cv_prog_cc_g+y}
4340then :
4341  printf %s "(cached) " >&6
4342else case e in #(
4343  e) ac_save_c_werror_flag=$ac_c_werror_flag
4344   ac_c_werror_flag=yes
4345   ac_cv_prog_cc_g=no
4346   CFLAGS="-g"
4347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348/* end confdefs.h.  */
4349
4350int
4351main (void)
4352{
4353
4354  ;
4355  return 0;
4356}
4357_ACEOF
4358if ac_fn_c_try_compile "$LINENO"
4359then :
4360  ac_cv_prog_cc_g=yes
4361else case e in #(
4362  e) CFLAGS=""
4363      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364/* end confdefs.h.  */
4365
4366int
4367main (void)
4368{
4369
4370  ;
4371  return 0;
4372}
4373_ACEOF
4374if ac_fn_c_try_compile "$LINENO"
4375then :
4376
4377else case e in #(
4378  e) ac_c_werror_flag=$ac_save_c_werror_flag
4379	 CFLAGS="-g"
4380	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381/* end confdefs.h.  */
4382
4383int
4384main (void)
4385{
4386
4387  ;
4388  return 0;
4389}
4390_ACEOF
4391if ac_fn_c_try_compile "$LINENO"
4392then :
4393  ac_cv_prog_cc_g=yes
4394fi
4395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4396esac
4397fi
4398rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4399esac
4400fi
4401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4402   ac_c_werror_flag=$ac_save_c_werror_flag ;;
4403esac
4404fi
4405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4406printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4407if test $ac_test_CFLAGS; then
4408  CFLAGS=$ac_save_CFLAGS
4409elif test $ac_cv_prog_cc_g = yes; then
4410  if test "$GCC" = yes; then
4411    CFLAGS="-g -O2"
4412  else
4413    CFLAGS="-g"
4414  fi
4415else
4416  if test "$GCC" = yes; then
4417    CFLAGS="-O2"
4418  else
4419    CFLAGS=
4420  fi
4421fi
4422ac_prog_cc_stdc=no
4423if test x$ac_prog_cc_stdc = xno
4424then :
4425  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4426printf %s "checking for $CC option to enable C11 features... " >&6; }
4427if test ${ac_cv_prog_cc_c11+y}
4428then :
4429  printf %s "(cached) " >&6
4430else case e in #(
4431  e) ac_cv_prog_cc_c11=no
4432ac_save_CC=$CC
4433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434/* end confdefs.h.  */
4435$ac_c_conftest_c11_program
4436_ACEOF
4437for ac_arg in '' -std=gnu11
4438do
4439  CC="$ac_save_CC $ac_arg"
4440  if ac_fn_c_try_compile "$LINENO"
4441then :
4442  ac_cv_prog_cc_c11=$ac_arg
4443fi
4444rm -f core conftest.err conftest.$ac_objext conftest.beam
4445  test "x$ac_cv_prog_cc_c11" != "xno" && break
4446done
4447rm -f conftest.$ac_ext
4448CC=$ac_save_CC ;;
4449esac
4450fi
4451
4452if test "x$ac_cv_prog_cc_c11" = xno
4453then :
4454  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4455printf "%s\n" "unsupported" >&6; }
4456else case e in #(
4457  e) if test "x$ac_cv_prog_cc_c11" = x
4458then :
4459  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4460printf "%s\n" "none needed" >&6; }
4461else case e in #(
4462  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4463printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4464     CC="$CC $ac_cv_prog_cc_c11" ;;
4465esac
4466fi
4467  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4468  ac_prog_cc_stdc=c11 ;;
4469esac
4470fi
4471fi
4472if test x$ac_prog_cc_stdc = xno
4473then :
4474  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4475printf %s "checking for $CC option to enable C99 features... " >&6; }
4476if test ${ac_cv_prog_cc_c99+y}
4477then :
4478  printf %s "(cached) " >&6
4479else case e in #(
4480  e) ac_cv_prog_cc_c99=no
4481ac_save_CC=$CC
4482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483/* end confdefs.h.  */
4484$ac_c_conftest_c99_program
4485_ACEOF
4486for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4487do
4488  CC="$ac_save_CC $ac_arg"
4489  if ac_fn_c_try_compile "$LINENO"
4490then :
4491  ac_cv_prog_cc_c99=$ac_arg
4492fi
4493rm -f core conftest.err conftest.$ac_objext conftest.beam
4494  test "x$ac_cv_prog_cc_c99" != "xno" && break
4495done
4496rm -f conftest.$ac_ext
4497CC=$ac_save_CC ;;
4498esac
4499fi
4500
4501if test "x$ac_cv_prog_cc_c99" = xno
4502then :
4503  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4504printf "%s\n" "unsupported" >&6; }
4505else case e in #(
4506  e) if test "x$ac_cv_prog_cc_c99" = x
4507then :
4508  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4509printf "%s\n" "none needed" >&6; }
4510else case e in #(
4511  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4512printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4513     CC="$CC $ac_cv_prog_cc_c99" ;;
4514esac
4515fi
4516  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4517  ac_prog_cc_stdc=c99 ;;
4518esac
4519fi
4520fi
4521if test x$ac_prog_cc_stdc = xno
4522then :
4523  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4524printf %s "checking for $CC option to enable C89 features... " >&6; }
4525if test ${ac_cv_prog_cc_c89+y}
4526then :
4527  printf %s "(cached) " >&6
4528else case e in #(
4529  e) ac_cv_prog_cc_c89=no
4530ac_save_CC=$CC
4531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532/* end confdefs.h.  */
4533$ac_c_conftest_c89_program
4534_ACEOF
4535for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4536do
4537  CC="$ac_save_CC $ac_arg"
4538  if ac_fn_c_try_compile "$LINENO"
4539then :
4540  ac_cv_prog_cc_c89=$ac_arg
4541fi
4542rm -f core conftest.err conftest.$ac_objext conftest.beam
4543  test "x$ac_cv_prog_cc_c89" != "xno" && break
4544done
4545rm -f conftest.$ac_ext
4546CC=$ac_save_CC ;;
4547esac
4548fi
4549
4550if test "x$ac_cv_prog_cc_c89" = xno
4551then :
4552  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4553printf "%s\n" "unsupported" >&6; }
4554else case e in #(
4555  e) if test "x$ac_cv_prog_cc_c89" = x
4556then :
4557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4558printf "%s\n" "none needed" >&6; }
4559else case e in #(
4560  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4561printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4562     CC="$CC $ac_cv_prog_cc_c89" ;;
4563esac
4564fi
4565  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4566  ac_prog_cc_stdc=c89 ;;
4567esac
4568fi
4569fi
4570
4571ac_ext=c
4572ac_cpp='$CPP $CPPFLAGS'
4573ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4574ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4575ac_compiler_gnu=$ac_cv_c_compiler_gnu
4576
4577
4578  ac_ext=c
4579ac_cpp='$CPP $CPPFLAGS'
4580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4582ac_compiler_gnu=$ac_cv_c_compiler_gnu
4583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4584printf %s "checking whether $CC understands -c and -o together... " >&6; }
4585if test ${am_cv_prog_cc_c_o+y}
4586then :
4587  printf %s "(cached) " >&6
4588else case e in #(
4589  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590/* end confdefs.h.  */
4591
4592int
4593main (void)
4594{
4595
4596  ;
4597  return 0;
4598}
4599_ACEOF
4600  # Make sure it works both with $CC and with simple cc.
4601  # Following AC_PROG_CC_C_O, we do the test twice because some
4602  # compilers refuse to overwrite an existing .o file with -o,
4603  # though they will create one.
4604  am_cv_prog_cc_c_o=yes
4605  for am_i in 1 2; do
4606    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4607   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4608   ac_status=$?
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); } \
4611         && test -f conftest2.$ac_objext; then
4612      : OK
4613    else
4614      am_cv_prog_cc_c_o=no
4615      break
4616    fi
4617  done
4618  rm -f core conftest*
4619  unset am_i ;;
4620esac
4621fi
4622{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4623printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4624if test "$am_cv_prog_cc_c_o" != yes; then
4625   # Losing compiler, so override with the script.
4626   # FIXME: It is wrong to rewrite CC.
4627   # But if we don't then we get into trouble of one sort or another.
4628   # A longer-term fix would be to have automake use am__CC in this case,
4629   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4630   CC="$am_aux_dir/compile $CC"
4631fi
4632ac_ext=c
4633ac_cpp='$CPP $CPPFLAGS'
4634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4636ac_compiler_gnu=$ac_cv_c_compiler_gnu
4637
4638
4639depcc="$CC"   am_compiler_list=
4640
4641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4642printf %s "checking dependency style of $depcc... " >&6; }
4643if test ${am_cv_CC_dependencies_compiler_type+y}
4644then :
4645  printf %s "(cached) " >&6
4646else case e in #(
4647  e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4648  # We make a subdir and do the tests there.  Otherwise we can end up
4649  # making bogus files that we don't know about and never remove.  For
4650  # instance it was reported that on HP-UX the gcc test will end up
4651  # making a dummy file named 'D' -- because '-MD' means "put the output
4652  # in D".
4653  rm -rf conftest.dir
4654  mkdir conftest.dir
4655  # Copy depcomp to subdir because otherwise we won't find it if we're
4656  # using a relative directory.
4657  cp "$am_depcomp" conftest.dir
4658  cd conftest.dir
4659  # We will build objects and dependencies in a subdirectory because
4660  # it helps to detect inapplicable dependency modes.  For instance
4661  # both Tru64's cc and ICC support -MD to output dependencies as a
4662  # side effect of compilation, but ICC will put the dependencies in
4663  # the current directory while Tru64 will put them in the object
4664  # directory.
4665  mkdir sub
4666
4667  am_cv_CC_dependencies_compiler_type=none
4668  if test "$am_compiler_list" = ""; then
4669     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4670  fi
4671  am__universal=false
4672  case " $depcc " in #(
4673     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4674     esac
4675
4676  for depmode in $am_compiler_list; do
4677    # Setup a source with many dependencies, because some compilers
4678    # like to wrap large dependency lists on column 80 (with \), and
4679    # we should not choose a depcomp mode which is confused by this.
4680    #
4681    # We need to recreate these files for each test, as the compiler may
4682    # overwrite some of them when testing with obscure command lines.
4683    # This happens at least with the AIX C compiler.
4684    : > sub/conftest.c
4685    for i in 1 2 3 4 5 6; do
4686      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4687      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4688      # Solaris 10 /bin/sh.
4689      echo '/* dummy */' > sub/conftst$i.h
4690    done
4691    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4692
4693    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4694    # mode.  It turns out that the SunPro C++ compiler does not properly
4695    # handle '-M -o', and we need to detect this.  Also, some Intel
4696    # versions had trouble with output in subdirs.
4697    am__obj=sub/conftest.${OBJEXT-o}
4698    am__minus_obj="-o $am__obj"
4699    case $depmode in
4700    gcc)
4701      # This depmode causes a compiler race in universal mode.
4702      test "$am__universal" = false || continue
4703      ;;
4704    nosideeffect)
4705      # After this tag, mechanisms are not by side-effect, so they'll
4706      # only be used when explicitly requested.
4707      if test "x$enable_dependency_tracking" = xyes; then
4708	continue
4709      else
4710	break
4711      fi
4712      ;;
4713    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4714      # This compiler won't grok '-c -o', but also, the minuso test has
4715      # not run yet.  These depmodes are late enough in the game, and
4716      # so weak that their functioning should not be impacted.
4717      am__obj=conftest.${OBJEXT-o}
4718      am__minus_obj=
4719      ;;
4720    none) break ;;
4721    esac
4722    if depmode=$depmode \
4723       source=sub/conftest.c object=$am__obj \
4724       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4725       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4726         >/dev/null 2>conftest.err &&
4727       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4728       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4729       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4730       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4731      # icc doesn't choke on unknown options, it will just issue warnings
4732      # or remarks (even with -Werror).  So we grep stderr for any message
4733      # that says an option was ignored or not supported.
4734      # When given -MP, icc 7.0 and 7.1 complain thusly:
4735      #   icc: Command line warning: ignoring option '-M'; no argument required
4736      # The diagnosis changed in icc 8.0:
4737      #   icc: Command line remark: option '-MP' not supported
4738      if (grep 'ignoring option' conftest.err ||
4739          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4740        am_cv_CC_dependencies_compiler_type=$depmode
4741        break
4742      fi
4743    fi
4744  done
4745
4746  cd ..
4747  rm -rf conftest.dir
4748else
4749  am_cv_CC_dependencies_compiler_type=none
4750fi
4751 ;;
4752esac
4753fi
4754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4755printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4756CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4757
4758 if
4759  test "x$enable_dependency_tracking" != xno \
4760  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4761  am__fastdepCC_TRUE=
4762  am__fastdepCC_FALSE='#'
4763else
4764  am__fastdepCC_TRUE='#'
4765  am__fastdepCC_FALSE=
4766fi
4767
4768
4769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4770printf %s "checking for a sed that does not truncate output... " >&6; }
4771if test ${ac_cv_path_SED+y}
4772then :
4773  printf %s "(cached) " >&6
4774else case e in #(
4775  e)           ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4776     for ac_i in 1 2 3 4 5 6 7; do
4777       ac_script="$ac_script$as_nl$ac_script"
4778     done
4779     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4780     { ac_script=; unset ac_script;}
4781     if test -z "$SED"; then
4782  ac_path_SED_found=false
4783  # Loop through the user's path and test for each of PROGNAME-LIST
4784  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785for as_dir in $PATH
4786do
4787  IFS=$as_save_IFS
4788  case $as_dir in #(((
4789    '') as_dir=./ ;;
4790    */) ;;
4791    *) as_dir=$as_dir/ ;;
4792  esac
4793    for ac_prog in sed gsed
4794   do
4795    for ac_exec_ext in '' $ac_executable_extensions; do
4796      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4797      as_fn_executable_p "$ac_path_SED" || continue
4798# Check for GNU ac_path_SED and select it if it is found.
4799  # Check for GNU $ac_path_SED
4800case `"$ac_path_SED" --version 2>&1` in #(
4801*GNU*)
4802  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4803#(
4804*)
4805  ac_count=0
4806  printf %s 0123456789 >"conftest.in"
4807  while :
4808  do
4809    cat "conftest.in" "conftest.in" >"conftest.tmp"
4810    mv "conftest.tmp" "conftest.in"
4811    cp "conftest.in" "conftest.nl"
4812    printf "%s\n" '' >> "conftest.nl"
4813    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4814    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4815    as_fn_arith $ac_count + 1 && ac_count=$as_val
4816    if test $ac_count -gt ${ac_path_SED_max-0}; then
4817      # Best one so far, save it but keep looking for a better one
4818      ac_cv_path_SED="$ac_path_SED"
4819      ac_path_SED_max=$ac_count
4820    fi
4821    # 10*(2^10) chars as input seems more than enough
4822    test $ac_count -gt 10 && break
4823  done
4824  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4825esac
4826
4827      $ac_path_SED_found && break 3
4828    done
4829  done
4830  done
4831IFS=$as_save_IFS
4832  if test -z "$ac_cv_path_SED"; then
4833    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4834  fi
4835else
4836  ac_cv_path_SED=$SED
4837fi
4838 ;;
4839esac
4840fi
4841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4842printf "%s\n" "$ac_cv_path_SED" >&6; }
4843 SED="$ac_cv_path_SED"
4844  rm -f conftest.sed
4845
4846test -z "$SED" && SED=sed
4847Xsed="$SED -e 1s/^X//"
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4860printf %s "checking for grep that handles long lines and -e... " >&6; }
4861if test ${ac_cv_path_GREP+y}
4862then :
4863  printf %s "(cached) " >&6
4864else case e in #(
4865  e) if test -z "$GREP"; then
4866  ac_path_GREP_found=false
4867  # Loop through the user's path and test for each of PROGNAME-LIST
4868  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4870do
4871  IFS=$as_save_IFS
4872  case $as_dir in #(((
4873    '') as_dir=./ ;;
4874    */) ;;
4875    *) as_dir=$as_dir/ ;;
4876  esac
4877    for ac_prog in grep ggrep
4878   do
4879    for ac_exec_ext in '' $ac_executable_extensions; do
4880      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4881      as_fn_executable_p "$ac_path_GREP" || continue
4882# Check for GNU ac_path_GREP and select it if it is found.
4883  # Check for GNU $ac_path_GREP
4884case `"$ac_path_GREP" --version 2>&1` in #(
4885*GNU*)
4886  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4887#(
4888*)
4889  ac_count=0
4890  printf %s 0123456789 >"conftest.in"
4891  while :
4892  do
4893    cat "conftest.in" "conftest.in" >"conftest.tmp"
4894    mv "conftest.tmp" "conftest.in"
4895    cp "conftest.in" "conftest.nl"
4896    printf "%s\n" 'GREP' >> "conftest.nl"
4897    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4898    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4899    as_fn_arith $ac_count + 1 && ac_count=$as_val
4900    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4901      # Best one so far, save it but keep looking for a better one
4902      ac_cv_path_GREP="$ac_path_GREP"
4903      ac_path_GREP_max=$ac_count
4904    fi
4905    # 10*(2^10) chars as input seems more than enough
4906    test $ac_count -gt 10 && break
4907  done
4908  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4909esac
4910
4911      $ac_path_GREP_found && break 3
4912    done
4913  done
4914  done
4915IFS=$as_save_IFS
4916  if test -z "$ac_cv_path_GREP"; then
4917    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4918  fi
4919else
4920  ac_cv_path_GREP=$GREP
4921fi
4922 ;;
4923esac
4924fi
4925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4926printf "%s\n" "$ac_cv_path_GREP" >&6; }
4927 GREP="$ac_cv_path_GREP"
4928
4929
4930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4931printf %s "checking for egrep... " >&6; }
4932if test ${ac_cv_path_EGREP+y}
4933then :
4934  printf %s "(cached) " >&6
4935else case e in #(
4936  e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4937   then ac_cv_path_EGREP="$GREP -E"
4938   else
4939     if test -z "$EGREP"; then
4940  ac_path_EGREP_found=false
4941  # Loop through the user's path and test for each of PROGNAME-LIST
4942  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4944do
4945  IFS=$as_save_IFS
4946  case $as_dir in #(((
4947    '') as_dir=./ ;;
4948    */) ;;
4949    *) as_dir=$as_dir/ ;;
4950  esac
4951    for ac_prog in egrep
4952   do
4953    for ac_exec_ext in '' $ac_executable_extensions; do
4954      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4955      as_fn_executable_p "$ac_path_EGREP" || continue
4956# Check for GNU ac_path_EGREP and select it if it is found.
4957  # Check for GNU $ac_path_EGREP
4958case `"$ac_path_EGREP" --version 2>&1` in #(
4959*GNU*)
4960  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4961#(
4962*)
4963  ac_count=0
4964  printf %s 0123456789 >"conftest.in"
4965  while :
4966  do
4967    cat "conftest.in" "conftest.in" >"conftest.tmp"
4968    mv "conftest.tmp" "conftest.in"
4969    cp "conftest.in" "conftest.nl"
4970    printf "%s\n" 'EGREP' >> "conftest.nl"
4971    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4972    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4973    as_fn_arith $ac_count + 1 && ac_count=$as_val
4974    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4975      # Best one so far, save it but keep looking for a better one
4976      ac_cv_path_EGREP="$ac_path_EGREP"
4977      ac_path_EGREP_max=$ac_count
4978    fi
4979    # 10*(2^10) chars as input seems more than enough
4980    test $ac_count -gt 10 && break
4981  done
4982  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4983esac
4984
4985      $ac_path_EGREP_found && break 3
4986    done
4987  done
4988  done
4989IFS=$as_save_IFS
4990  if test -z "$ac_cv_path_EGREP"; then
4991    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4992  fi
4993else
4994  ac_cv_path_EGREP=$EGREP
4995fi
4996
4997   fi ;;
4998esac
4999fi
5000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5001printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5002 EGREP="$ac_cv_path_EGREP"
5003
5004         EGREP_TRADITIONAL=$EGREP
5005 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5006
5007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5008printf %s "checking for fgrep... " >&6; }
5009if test ${ac_cv_path_FGREP+y}
5010then :
5011  printf %s "(cached) " >&6
5012else case e in #(
5013  e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5014   then ac_cv_path_FGREP="$GREP -F"
5015   else
5016     if test -z "$FGREP"; then
5017  ac_path_FGREP_found=false
5018  # Loop through the user's path and test for each of PROGNAME-LIST
5019  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5021do
5022  IFS=$as_save_IFS
5023  case $as_dir in #(((
5024    '') as_dir=./ ;;
5025    */) ;;
5026    *) as_dir=$as_dir/ ;;
5027  esac
5028    for ac_prog in fgrep
5029   do
5030    for ac_exec_ext in '' $ac_executable_extensions; do
5031      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5032      as_fn_executable_p "$ac_path_FGREP" || continue
5033# Check for GNU ac_path_FGREP and select it if it is found.
5034  # Check for GNU $ac_path_FGREP
5035case `"$ac_path_FGREP" --version 2>&1` in #(
5036*GNU*)
5037  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5038#(
5039*)
5040  ac_count=0
5041  printf %s 0123456789 >"conftest.in"
5042  while :
5043  do
5044    cat "conftest.in" "conftest.in" >"conftest.tmp"
5045    mv "conftest.tmp" "conftest.in"
5046    cp "conftest.in" "conftest.nl"
5047    printf "%s\n" 'FGREP' >> "conftest.nl"
5048    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5049    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5050    as_fn_arith $ac_count + 1 && ac_count=$as_val
5051    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5052      # Best one so far, save it but keep looking for a better one
5053      ac_cv_path_FGREP="$ac_path_FGREP"
5054      ac_path_FGREP_max=$ac_count
5055    fi
5056    # 10*(2^10) chars as input seems more than enough
5057    test $ac_count -gt 10 && break
5058  done
5059  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5060esac
5061
5062      $ac_path_FGREP_found && break 3
5063    done
5064  done
5065  done
5066IFS=$as_save_IFS
5067  if test -z "$ac_cv_path_FGREP"; then
5068    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5069  fi
5070else
5071  ac_cv_path_FGREP=$FGREP
5072fi
5073
5074   fi ;;
5075esac
5076fi
5077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5078printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5079 FGREP="$ac_cv_path_FGREP"
5080
5081
5082test -z "$GREP" && GREP=grep
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102# Check whether --with-gnu-ld was given.
5103if test ${with_gnu_ld+y}
5104then :
5105  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5106else case e in #(
5107  e) with_gnu_ld=no ;;
5108esac
5109fi
5110
5111ac_prog=ld
5112if test yes = "$GCC"; then
5113  # Check if gcc -print-prog-name=ld gives a path.
5114  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5115printf %s "checking for ld used by $CC... " >&6; }
5116  case $host in
5117  *-*-mingw*)
5118    # gcc leaves a trailing carriage return, which upsets mingw
5119    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5120  *)
5121    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5122  esac
5123  case $ac_prog in
5124    # Accept absolute paths.
5125    [\\/]* | ?:[\\/]*)
5126      re_direlt='/[^/][^/]*/\.\./'
5127      # Canonicalize the pathname of ld
5128      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5129      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5130	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5131      done
5132      test -z "$LD" && LD=$ac_prog
5133      ;;
5134  "")
5135    # If it fails, then pretend we aren't using GCC.
5136    ac_prog=ld
5137    ;;
5138  *)
5139    # If it is relative, then search for the first ld in PATH.
5140    with_gnu_ld=unknown
5141    ;;
5142  esac
5143elif test yes = "$with_gnu_ld"; then
5144  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5145printf %s "checking for GNU ld... " >&6; }
5146else
5147  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5148printf %s "checking for non-GNU ld... " >&6; }
5149fi
5150if test ${lt_cv_path_LD+y}
5151then :
5152  printf %s "(cached) " >&6
5153else case e in #(
5154  e) if test -z "$LD"; then
5155  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5156  for ac_dir in $PATH; do
5157    IFS=$lt_save_ifs
5158    test -z "$ac_dir" && ac_dir=.
5159    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5160      lt_cv_path_LD=$ac_dir/$ac_prog
5161      # Check to see if the program is GNU ld.  I'd rather use --version,
5162      # but apparently some variants of GNU ld only accept -v.
5163      # Break only if it was the GNU/non-GNU ld that we prefer.
5164      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5165      *GNU* | *'with BFD'*)
5166	test no != "$with_gnu_ld" && break
5167	;;
5168      *)
5169	test yes != "$with_gnu_ld" && break
5170	;;
5171      esac
5172    fi
5173  done
5174  IFS=$lt_save_ifs
5175else
5176  lt_cv_path_LD=$LD # Let the user override the test with a path.
5177fi ;;
5178esac
5179fi
5180
5181LD=$lt_cv_path_LD
5182if test -n "$LD"; then
5183  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5184printf "%s\n" "$LD" >&6; }
5185else
5186  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187printf "%s\n" "no" >&6; }
5188fi
5189test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5191printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5192if test ${lt_cv_prog_gnu_ld+y}
5193then :
5194  printf %s "(cached) " >&6
5195else case e in #(
5196  e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5197case `$LD -v 2>&1 </dev/null` in
5198*GNU* | *'with BFD'*)
5199  lt_cv_prog_gnu_ld=yes
5200  ;;
5201*)
5202  lt_cv_prog_gnu_ld=no
5203  ;;
5204esac ;;
5205esac
5206fi
5207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5208printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5209with_gnu_ld=$lt_cv_prog_gnu_ld
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5220printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5221if test ${lt_cv_path_NM+y}
5222then :
5223  printf %s "(cached) " >&6
5224else case e in #(
5225  e) if test -n "$NM"; then
5226  # Let the user override the test.
5227  lt_cv_path_NM=$NM
5228else
5229  lt_nm_to_check=${ac_tool_prefix}nm
5230  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5231    lt_nm_to_check="$lt_nm_to_check nm"
5232  fi
5233  for lt_tmp_nm in $lt_nm_to_check; do
5234    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5235    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5236      IFS=$lt_save_ifs
5237      test -z "$ac_dir" && ac_dir=.
5238      tmp_nm=$ac_dir/$lt_tmp_nm
5239      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5240	# Check to see if the nm accepts a BSD-compat flag.
5241	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5242	#   nm: unknown option "B" ignored
5243	# Tru64's nm complains that /dev/null is an invalid object file
5244	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5245	case $build_os in
5246	mingw*) lt_bad_file=conftest.nm/nofile ;;
5247	*) lt_bad_file=/dev/null ;;
5248	esac
5249	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5250	*$lt_bad_file* | *'Invalid file or object type'*)
5251	  lt_cv_path_NM="$tmp_nm -B"
5252	  break 2
5253	  ;;
5254	*)
5255	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5256	  */dev/null*)
5257	    lt_cv_path_NM="$tmp_nm -p"
5258	    break 2
5259	    ;;
5260	  *)
5261	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5262	    continue # so that we can try to find one that supports BSD flags
5263	    ;;
5264	  esac
5265	  ;;
5266	esac
5267      fi
5268    done
5269    IFS=$lt_save_ifs
5270  done
5271  : ${lt_cv_path_NM=no}
5272fi ;;
5273esac
5274fi
5275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5276printf "%s\n" "$lt_cv_path_NM" >&6; }
5277if test no != "$lt_cv_path_NM"; then
5278  NM=$lt_cv_path_NM
5279else
5280  # Didn't find any BSD compatible name lister, look for dumpbin.
5281  if test -n "$DUMPBIN"; then :
5282    # Let the user override the test.
5283  else
5284    if test -n "$ac_tool_prefix"; then
5285  for ac_prog in dumpbin "link -dump"
5286  do
5287    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5288set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290printf %s "checking for $ac_word... " >&6; }
5291if test ${ac_cv_prog_DUMPBIN+y}
5292then :
5293  printf %s "(cached) " >&6
5294else case e in #(
5295  e) if test -n "$DUMPBIN"; then
5296  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5297else
5298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299for as_dir in $PATH
5300do
5301  IFS=$as_save_IFS
5302  case $as_dir in #(((
5303    '') as_dir=./ ;;
5304    */) ;;
5305    *) as_dir=$as_dir/ ;;
5306  esac
5307    for ac_exec_ext in '' $ac_executable_extensions; do
5308  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5309    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5310    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5311    break 2
5312  fi
5313done
5314  done
5315IFS=$as_save_IFS
5316
5317fi ;;
5318esac
5319fi
5320DUMPBIN=$ac_cv_prog_DUMPBIN
5321if test -n "$DUMPBIN"; then
5322  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5323printf "%s\n" "$DUMPBIN" >&6; }
5324else
5325  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326printf "%s\n" "no" >&6; }
5327fi
5328
5329
5330    test -n "$DUMPBIN" && break
5331  done
5332fi
5333if test -z "$DUMPBIN"; then
5334  ac_ct_DUMPBIN=$DUMPBIN
5335  for ac_prog in dumpbin "link -dump"
5336do
5337  # Extract the first word of "$ac_prog", so it can be a program name with args.
5338set dummy $ac_prog; ac_word=$2
5339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5340printf %s "checking for $ac_word... " >&6; }
5341if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5342then :
5343  printf %s "(cached) " >&6
5344else case e in #(
5345  e) if test -n "$ac_ct_DUMPBIN"; then
5346  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5347else
5348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5349for as_dir in $PATH
5350do
5351  IFS=$as_save_IFS
5352  case $as_dir in #(((
5353    '') as_dir=./ ;;
5354    */) ;;
5355    *) as_dir=$as_dir/ ;;
5356  esac
5357    for ac_exec_ext in '' $ac_executable_extensions; do
5358  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5359    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5360    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5361    break 2
5362  fi
5363done
5364  done
5365IFS=$as_save_IFS
5366
5367fi ;;
5368esac
5369fi
5370ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5371if test -n "$ac_ct_DUMPBIN"; then
5372  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5373printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5374else
5375  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376printf "%s\n" "no" >&6; }
5377fi
5378
5379
5380  test -n "$ac_ct_DUMPBIN" && break
5381done
5382
5383  if test "x$ac_ct_DUMPBIN" = x; then
5384    DUMPBIN=":"
5385  else
5386    case $cross_compiling:$ac_tool_warned in
5387yes:)
5388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5389printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5390ac_tool_warned=yes ;;
5391esac
5392    DUMPBIN=$ac_ct_DUMPBIN
5393  fi
5394fi
5395
5396    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5397    *COFF*)
5398      DUMPBIN="$DUMPBIN -symbols -headers"
5399      ;;
5400    *)
5401      DUMPBIN=:
5402      ;;
5403    esac
5404  fi
5405
5406  if test : != "$DUMPBIN"; then
5407    NM=$DUMPBIN
5408  fi
5409fi
5410test -z "$NM" && NM=nm
5411
5412
5413
5414
5415
5416
5417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5418printf %s "checking the name lister ($NM) interface... " >&6; }
5419if test ${lt_cv_nm_interface+y}
5420then :
5421  printf %s "(cached) " >&6
5422else case e in #(
5423  e) lt_cv_nm_interface="BSD nm"
5424  echo "int some_variable = 0;" > conftest.$ac_ext
5425  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5426  (eval "$ac_compile" 2>conftest.err)
5427  cat conftest.err >&5
5428  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5429  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5430  cat conftest.err >&5
5431  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5432  cat conftest.out >&5
5433  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5434    lt_cv_nm_interface="MS dumpbin"
5435  fi
5436  rm -f conftest* ;;
5437esac
5438fi
5439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5440printf "%s\n" "$lt_cv_nm_interface" >&6; }
5441
5442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5443printf %s "checking whether ln -s works... " >&6; }
5444LN_S=$as_ln_s
5445if test "$LN_S" = "ln -s"; then
5446  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5447printf "%s\n" "yes" >&6; }
5448else
5449  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5450printf "%s\n" "no, using $LN_S" >&6; }
5451fi
5452
5453# find the maximum length of command line arguments
5454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5455printf %s "checking the maximum length of command line arguments... " >&6; }
5456if test ${lt_cv_sys_max_cmd_len+y}
5457then :
5458  printf %s "(cached) " >&6
5459else case e in #(
5460  e)   i=0
5461  teststring=ABCD
5462
5463  case $build_os in
5464  msdosdjgpp*)
5465    # On DJGPP, this test can blow up pretty badly due to problems in libc
5466    # (any single argument exceeding 2000 bytes causes a buffer overrun
5467    # during glob expansion).  Even if it were fixed, the result of this
5468    # check would be larger than it should be.
5469    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5470    ;;
5471
5472  gnu*)
5473    # Under GNU Hurd, this test is not required because there is
5474    # no limit to the length of command line arguments.
5475    # Libtool will interpret -1 as no limit whatsoever
5476    lt_cv_sys_max_cmd_len=-1;
5477    ;;
5478
5479  cygwin* | mingw* | cegcc*)
5480    # On Win9x/ME, this test blows up -- it succeeds, but takes
5481    # about 5 minutes as the teststring grows exponentially.
5482    # Worse, since 9x/ME are not pre-emptively multitasking,
5483    # you end up with a "frozen" computer, even though with patience
5484    # the test eventually succeeds (with a max line length of 256k).
5485    # Instead, let's just punt: use the minimum linelength reported by
5486    # all of the supported platforms: 8192 (on NT/2K/XP).
5487    lt_cv_sys_max_cmd_len=8192;
5488    ;;
5489
5490  mint*)
5491    # On MiNT this can take a long time and run out of memory.
5492    lt_cv_sys_max_cmd_len=8192;
5493    ;;
5494
5495  amigaos*)
5496    # On AmigaOS with pdksh, this test takes hours, literally.
5497    # So we just punt and use a minimum line length of 8192.
5498    lt_cv_sys_max_cmd_len=8192;
5499    ;;
5500
5501  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5502    # This has been around since 386BSD, at least.  Likely further.
5503    if test -x /sbin/sysctl; then
5504      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5505    elif test -x /usr/sbin/sysctl; then
5506      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5507    else
5508      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5509    fi
5510    # And add a safety zone
5511    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5512    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5513    ;;
5514
5515  interix*)
5516    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5517    lt_cv_sys_max_cmd_len=196608
5518    ;;
5519
5520  os2*)
5521    # The test takes a long time on OS/2.
5522    lt_cv_sys_max_cmd_len=8192
5523    ;;
5524
5525  osf*)
5526    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5527    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5528    # nice to cause kernel panics so lets avoid the loop below.
5529    # First set a reasonable default.
5530    lt_cv_sys_max_cmd_len=16384
5531    #
5532    if test -x /sbin/sysconfig; then
5533      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5534        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5535      esac
5536    fi
5537    ;;
5538  sco3.2v5*)
5539    lt_cv_sys_max_cmd_len=102400
5540    ;;
5541  sysv5* | sco5v6* | sysv4.2uw2*)
5542    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5543    if test -n "$kargmax"; then
5544      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
5545    else
5546      lt_cv_sys_max_cmd_len=32768
5547    fi
5548    ;;
5549  *)
5550    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5551    if test -n "$lt_cv_sys_max_cmd_len" && \
5552       test undefined != "$lt_cv_sys_max_cmd_len"; then
5553      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5554      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5555    else
5556      # Make teststring a little bigger before we do anything with it.
5557      # a 1K string should be a reasonable start.
5558      for i in 1 2 3 4 5 6 7 8; do
5559        teststring=$teststring$teststring
5560      done
5561      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5562      # If test is not a shell built-in, we'll probably end up computing a
5563      # maximum length that is only half of the actual maximum length, but
5564      # we can't tell.
5565      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5566	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5567	      test 17 != "$i" # 1/2 MB should be enough
5568      do
5569        i=`expr $i + 1`
5570        teststring=$teststring$teststring
5571      done
5572      # Only check the string length outside the loop.
5573      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5574      teststring=
5575      # Add a significant safety factor because C++ compilers can tack on
5576      # massive amounts of additional arguments before passing them to the
5577      # linker.  It appears as though 1/2 is a usable value.
5578      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5579    fi
5580    ;;
5581  esac
5582 ;;
5583esac
5584fi
5585
5586if test -n "$lt_cv_sys_max_cmd_len"; then
5587  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5588printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5589else
5590  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5591printf "%s\n" "none" >&6; }
5592fi
5593max_cmd_len=$lt_cv_sys_max_cmd_len
5594
5595
5596
5597
5598
5599
5600: ${CP="cp -f"}
5601: ${MV="mv -f"}
5602: ${RM="rm -f"}
5603
5604if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5605  lt_unset=unset
5606else
5607  lt_unset=false
5608fi
5609
5610
5611
5612
5613
5614# test EBCDIC or ASCII
5615case `echo X|tr X '\101'` in
5616 A) # ASCII based system
5617    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5618  lt_SP2NL='tr \040 \012'
5619  lt_NL2SP='tr \015\012 \040\040'
5620  ;;
5621 *) # EBCDIC based system
5622  lt_SP2NL='tr \100 \n'
5623  lt_NL2SP='tr \r\n \100\100'
5624  ;;
5625esac
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5636printf %s "checking how to convert $build file names to $host format... " >&6; }
5637if test ${lt_cv_to_host_file_cmd+y}
5638then :
5639  printf %s "(cached) " >&6
5640else case e in #(
5641  e) case $host in
5642  *-*-mingw* )
5643    case $build in
5644      *-*-mingw* ) # actually msys
5645        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5646        ;;
5647      *-*-cygwin* )
5648        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5649        ;;
5650      * ) # otherwise, assume *nix
5651        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5652        ;;
5653    esac
5654    ;;
5655  *-*-cygwin* )
5656    case $build in
5657      *-*-mingw* ) # actually msys
5658        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5659        ;;
5660      *-*-cygwin* )
5661        lt_cv_to_host_file_cmd=func_convert_file_noop
5662        ;;
5663      * ) # otherwise, assume *nix
5664        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5665        ;;
5666    esac
5667    ;;
5668  * ) # unhandled hosts (and "normal" native builds)
5669    lt_cv_to_host_file_cmd=func_convert_file_noop
5670    ;;
5671esac
5672 ;;
5673esac
5674fi
5675
5676to_host_file_cmd=$lt_cv_to_host_file_cmd
5677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5678printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5679
5680
5681
5682
5683
5684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5685printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5686if test ${lt_cv_to_tool_file_cmd+y}
5687then :
5688  printf %s "(cached) " >&6
5689else case e in #(
5690  e) #assume ordinary cross tools, or native build.
5691lt_cv_to_tool_file_cmd=func_convert_file_noop
5692case $host in
5693  *-*-mingw* )
5694    case $build in
5695      *-*-mingw* ) # actually msys
5696        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5697        ;;
5698    esac
5699    ;;
5700esac
5701 ;;
5702esac
5703fi
5704
5705to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5707printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5708
5709
5710
5711
5712
5713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5714printf %s "checking for $LD option to reload object files... " >&6; }
5715if test ${lt_cv_ld_reload_flag+y}
5716then :
5717  printf %s "(cached) " >&6
5718else case e in #(
5719  e) lt_cv_ld_reload_flag='-r' ;;
5720esac
5721fi
5722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5723printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5724reload_flag=$lt_cv_ld_reload_flag
5725case $reload_flag in
5726"" | " "*) ;;
5727*) reload_flag=" $reload_flag" ;;
5728esac
5729reload_cmds='$LD$reload_flag -o $output$reload_objs'
5730case $host_os in
5731  cygwin* | mingw* | pw32* | cegcc*)
5732    if test yes != "$GCC"; then
5733      reload_cmds=false
5734    fi
5735    ;;
5736  darwin*)
5737    if test yes = "$GCC"; then
5738      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5739    else
5740      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5741    fi
5742    ;;
5743esac
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753if test -n "$ac_tool_prefix"; then
5754  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5755set dummy ${ac_tool_prefix}file; ac_word=$2
5756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757printf %s "checking for $ac_word... " >&6; }
5758if test ${ac_cv_prog_FILECMD+y}
5759then :
5760  printf %s "(cached) " >&6
5761else case e in #(
5762  e) if test -n "$FILECMD"; then
5763  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5764else
5765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766for as_dir in $PATH
5767do
5768  IFS=$as_save_IFS
5769  case $as_dir in #(((
5770    '') as_dir=./ ;;
5771    */) ;;
5772    *) as_dir=$as_dir/ ;;
5773  esac
5774    for ac_exec_ext in '' $ac_executable_extensions; do
5775  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5776    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5777    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5778    break 2
5779  fi
5780done
5781  done
5782IFS=$as_save_IFS
5783
5784fi ;;
5785esac
5786fi
5787FILECMD=$ac_cv_prog_FILECMD
5788if test -n "$FILECMD"; then
5789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5790printf "%s\n" "$FILECMD" >&6; }
5791else
5792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793printf "%s\n" "no" >&6; }
5794fi
5795
5796
5797fi
5798if test -z "$ac_cv_prog_FILECMD"; then
5799  ac_ct_FILECMD=$FILECMD
5800  # Extract the first word of "file", so it can be a program name with args.
5801set dummy file; ac_word=$2
5802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803printf %s "checking for $ac_word... " >&6; }
5804if test ${ac_cv_prog_ac_ct_FILECMD+y}
5805then :
5806  printf %s "(cached) " >&6
5807else case e in #(
5808  e) if test -n "$ac_ct_FILECMD"; then
5809  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5810else
5811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812for as_dir in $PATH
5813do
5814  IFS=$as_save_IFS
5815  case $as_dir in #(((
5816    '') as_dir=./ ;;
5817    */) ;;
5818    *) as_dir=$as_dir/ ;;
5819  esac
5820    for ac_exec_ext in '' $ac_executable_extensions; do
5821  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5822    ac_cv_prog_ac_ct_FILECMD="file"
5823    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5824    break 2
5825  fi
5826done
5827  done
5828IFS=$as_save_IFS
5829
5830fi ;;
5831esac
5832fi
5833ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5834if test -n "$ac_ct_FILECMD"; then
5835  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5836printf "%s\n" "$ac_ct_FILECMD" >&6; }
5837else
5838  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839printf "%s\n" "no" >&6; }
5840fi
5841
5842  if test "x$ac_ct_FILECMD" = x; then
5843    FILECMD=":"
5844  else
5845    case $cross_compiling:$ac_tool_warned in
5846yes:)
5847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5848printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5849ac_tool_warned=yes ;;
5850esac
5851    FILECMD=$ac_ct_FILECMD
5852  fi
5853else
5854  FILECMD="$ac_cv_prog_FILECMD"
5855fi
5856
5857
5858
5859
5860
5861
5862
5863if test -n "$ac_tool_prefix"; then
5864  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5865set dummy ${ac_tool_prefix}objdump; ac_word=$2
5866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867printf %s "checking for $ac_word... " >&6; }
5868if test ${ac_cv_prog_OBJDUMP+y}
5869then :
5870  printf %s "(cached) " >&6
5871else case e in #(
5872  e) if test -n "$OBJDUMP"; then
5873  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5874else
5875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876for as_dir in $PATH
5877do
5878  IFS=$as_save_IFS
5879  case $as_dir in #(((
5880    '') as_dir=./ ;;
5881    */) ;;
5882    *) as_dir=$as_dir/ ;;
5883  esac
5884    for ac_exec_ext in '' $ac_executable_extensions; do
5885  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5886    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5887    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5888    break 2
5889  fi
5890done
5891  done
5892IFS=$as_save_IFS
5893
5894fi ;;
5895esac
5896fi
5897OBJDUMP=$ac_cv_prog_OBJDUMP
5898if test -n "$OBJDUMP"; then
5899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5900printf "%s\n" "$OBJDUMP" >&6; }
5901else
5902  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5903printf "%s\n" "no" >&6; }
5904fi
5905
5906
5907fi
5908if test -z "$ac_cv_prog_OBJDUMP"; then
5909  ac_ct_OBJDUMP=$OBJDUMP
5910  # Extract the first word of "objdump", so it can be a program name with args.
5911set dummy objdump; ac_word=$2
5912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913printf %s "checking for $ac_word... " >&6; }
5914if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5915then :
5916  printf %s "(cached) " >&6
5917else case e in #(
5918  e) if test -n "$ac_ct_OBJDUMP"; then
5919  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5920else
5921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5922for as_dir in $PATH
5923do
5924  IFS=$as_save_IFS
5925  case $as_dir in #(((
5926    '') as_dir=./ ;;
5927    */) ;;
5928    *) as_dir=$as_dir/ ;;
5929  esac
5930    for ac_exec_ext in '' $ac_executable_extensions; do
5931  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5932    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5933    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5934    break 2
5935  fi
5936done
5937  done
5938IFS=$as_save_IFS
5939
5940fi ;;
5941esac
5942fi
5943ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5944if test -n "$ac_ct_OBJDUMP"; then
5945  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5946printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
5947else
5948  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5949printf "%s\n" "no" >&6; }
5950fi
5951
5952  if test "x$ac_ct_OBJDUMP" = x; then
5953    OBJDUMP="false"
5954  else
5955    case $cross_compiling:$ac_tool_warned in
5956yes:)
5957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5958printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5959ac_tool_warned=yes ;;
5960esac
5961    OBJDUMP=$ac_ct_OBJDUMP
5962  fi
5963else
5964  OBJDUMP="$ac_cv_prog_OBJDUMP"
5965fi
5966
5967test -z "$OBJDUMP" && OBJDUMP=objdump
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5978printf %s "checking how to recognize dependent libraries... " >&6; }
5979if test ${lt_cv_deplibs_check_method+y}
5980then :
5981  printf %s "(cached) " >&6
5982else case e in #(
5983  e) lt_cv_file_magic_cmd='$MAGIC_CMD'
5984lt_cv_file_magic_test_file=
5985lt_cv_deplibs_check_method='unknown'
5986# Need to set the preceding variable on all platforms that support
5987# interlibrary dependencies.
5988# 'none' -- dependencies not supported.
5989# 'unknown' -- same as none, but documents that we really don't know.
5990# 'pass_all' -- all dependencies passed with no checks.
5991# 'test_compile' -- check by making test program.
5992# 'file_magic [[regex]]' -- check by looking for files in library path
5993# that responds to the $file_magic_cmd with a given extended regex.
5994# If you have 'file' or equivalent on your system and you're not sure
5995# whether 'pass_all' will *always* work, you probably want this one.
5996
5997case $host_os in
5998aix[4-9]*)
5999  lt_cv_deplibs_check_method=pass_all
6000  ;;
6001
6002beos*)
6003  lt_cv_deplibs_check_method=pass_all
6004  ;;
6005
6006bsdi[45]*)
6007  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6008  lt_cv_file_magic_cmd='$FILECMD -L'
6009  lt_cv_file_magic_test_file=/shlib/libc.so
6010  ;;
6011
6012cygwin*)
6013  # func_win32_libid is a shell function defined in ltmain.sh
6014  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6015  lt_cv_file_magic_cmd='func_win32_libid'
6016  ;;
6017
6018mingw* | pw32*)
6019  # Base MSYS/MinGW do not provide the 'file' command needed by
6020  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6021  # unless we find 'file', for example because we are cross-compiling.
6022  if ( file / ) >/dev/null 2>&1; then
6023    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6024    lt_cv_file_magic_cmd='func_win32_libid'
6025  else
6026    # Keep this pattern in sync with the one in func_win32_libid.
6027    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6028    lt_cv_file_magic_cmd='$OBJDUMP -f'
6029  fi
6030  ;;
6031
6032cegcc*)
6033  # use the weaker test based on 'objdump'. See mingw*.
6034  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6035  lt_cv_file_magic_cmd='$OBJDUMP -f'
6036  ;;
6037
6038darwin* | rhapsody*)
6039  lt_cv_deplibs_check_method=pass_all
6040  ;;
6041
6042freebsd* | dragonfly* | midnightbsd*)
6043  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6044    case $host_cpu in
6045    i*86 )
6046      # Not sure whether the presence of OpenBSD here was a mistake.
6047      # Let's accept both of them until this is cleared up.
6048      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6049      lt_cv_file_magic_cmd=$FILECMD
6050      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6051      ;;
6052    esac
6053  else
6054    lt_cv_deplibs_check_method=pass_all
6055  fi
6056  ;;
6057
6058haiku*)
6059  lt_cv_deplibs_check_method=pass_all
6060  ;;
6061
6062hpux10.20* | hpux11*)
6063  lt_cv_file_magic_cmd=$FILECMD
6064  case $host_cpu in
6065  ia64*)
6066    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6067    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6068    ;;
6069  hppa*64*)
6070    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]'
6071    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6072    ;;
6073  *)
6074    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6075    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6076    ;;
6077  esac
6078  ;;
6079
6080interix[3-9]*)
6081  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6082  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6083  ;;
6084
6085irix5* | irix6* | nonstopux*)
6086  case $LD in
6087  *-32|*"-32 ") libmagic=32-bit;;
6088  *-n32|*"-n32 ") libmagic=N32;;
6089  *-64|*"-64 ") libmagic=64-bit;;
6090  *) libmagic=never-match;;
6091  esac
6092  lt_cv_deplibs_check_method=pass_all
6093  ;;
6094
6095# This must be glibc/ELF.
6096linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6097  lt_cv_deplibs_check_method=pass_all
6098  ;;
6099
6100netbsd*)
6101  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6102    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6103  else
6104    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6105  fi
6106  ;;
6107
6108newos6*)
6109  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6110  lt_cv_file_magic_cmd=$FILECMD
6111  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6112  ;;
6113
6114*nto* | *qnx*)
6115  lt_cv_deplibs_check_method=pass_all
6116  ;;
6117
6118openbsd* | bitrig*)
6119  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6120    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6121  else
6122    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6123  fi
6124  ;;
6125
6126osf3* | osf4* | osf5*)
6127  lt_cv_deplibs_check_method=pass_all
6128  ;;
6129
6130rdos*)
6131  lt_cv_deplibs_check_method=pass_all
6132  ;;
6133
6134solaris*)
6135  lt_cv_deplibs_check_method=pass_all
6136  ;;
6137
6138sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6139  lt_cv_deplibs_check_method=pass_all
6140  ;;
6141
6142sysv4 | sysv4.3*)
6143  case $host_vendor in
6144  motorola)
6145    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]'
6146    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6147    ;;
6148  ncr)
6149    lt_cv_deplibs_check_method=pass_all
6150    ;;
6151  sequent)
6152    lt_cv_file_magic_cmd='/bin/file'
6153    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6154    ;;
6155  sni)
6156    lt_cv_file_magic_cmd='/bin/file'
6157    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6158    lt_cv_file_magic_test_file=/lib/libc.so
6159    ;;
6160  siemens)
6161    lt_cv_deplibs_check_method=pass_all
6162    ;;
6163  pc)
6164    lt_cv_deplibs_check_method=pass_all
6165    ;;
6166  esac
6167  ;;
6168
6169tpf*)
6170  lt_cv_deplibs_check_method=pass_all
6171  ;;
6172os2*)
6173  lt_cv_deplibs_check_method=pass_all
6174  ;;
6175esac
6176 ;;
6177esac
6178fi
6179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6180printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6181
6182file_magic_glob=
6183want_nocaseglob=no
6184if test "$build" = "$host"; then
6185  case $host_os in
6186  mingw* | pw32*)
6187    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6188      want_nocaseglob=yes
6189    else
6190      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6191    fi
6192    ;;
6193  esac
6194fi
6195
6196file_magic_cmd=$lt_cv_file_magic_cmd
6197deplibs_check_method=$lt_cv_deplibs_check_method
6198test -z "$deplibs_check_method" && deplibs_check_method=unknown
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221if test -n "$ac_tool_prefix"; then
6222  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6223set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225printf %s "checking for $ac_word... " >&6; }
6226if test ${ac_cv_prog_DLLTOOL+y}
6227then :
6228  printf %s "(cached) " >&6
6229else case e in #(
6230  e) if test -n "$DLLTOOL"; then
6231  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6232else
6233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234for as_dir in $PATH
6235do
6236  IFS=$as_save_IFS
6237  case $as_dir in #(((
6238    '') as_dir=./ ;;
6239    */) ;;
6240    *) as_dir=$as_dir/ ;;
6241  esac
6242    for ac_exec_ext in '' $ac_executable_extensions; do
6243  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6244    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6245    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6246    break 2
6247  fi
6248done
6249  done
6250IFS=$as_save_IFS
6251
6252fi ;;
6253esac
6254fi
6255DLLTOOL=$ac_cv_prog_DLLTOOL
6256if test -n "$DLLTOOL"; then
6257  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6258printf "%s\n" "$DLLTOOL" >&6; }
6259else
6260  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261printf "%s\n" "no" >&6; }
6262fi
6263
6264
6265fi
6266if test -z "$ac_cv_prog_DLLTOOL"; then
6267  ac_ct_DLLTOOL=$DLLTOOL
6268  # Extract the first word of "dlltool", so it can be a program name with args.
6269set dummy dlltool; ac_word=$2
6270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6271printf %s "checking for $ac_word... " >&6; }
6272if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6273then :
6274  printf %s "(cached) " >&6
6275else case e in #(
6276  e) if test -n "$ac_ct_DLLTOOL"; then
6277  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6278else
6279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280for as_dir in $PATH
6281do
6282  IFS=$as_save_IFS
6283  case $as_dir in #(((
6284    '') as_dir=./ ;;
6285    */) ;;
6286    *) as_dir=$as_dir/ ;;
6287  esac
6288    for ac_exec_ext in '' $ac_executable_extensions; do
6289  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6290    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6291    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6292    break 2
6293  fi
6294done
6295  done
6296IFS=$as_save_IFS
6297
6298fi ;;
6299esac
6300fi
6301ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6302if test -n "$ac_ct_DLLTOOL"; then
6303  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6304printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6305else
6306  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307printf "%s\n" "no" >&6; }
6308fi
6309
6310  if test "x$ac_ct_DLLTOOL" = x; then
6311    DLLTOOL="false"
6312  else
6313    case $cross_compiling:$ac_tool_warned in
6314yes:)
6315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6316printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6317ac_tool_warned=yes ;;
6318esac
6319    DLLTOOL=$ac_ct_DLLTOOL
6320  fi
6321else
6322  DLLTOOL="$ac_cv_prog_DLLTOOL"
6323fi
6324
6325test -z "$DLLTOOL" && DLLTOOL=dlltool
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6337printf %s "checking how to associate runtime and link libraries... " >&6; }
6338if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6339then :
6340  printf %s "(cached) " >&6
6341else case e in #(
6342  e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6343
6344case $host_os in
6345cygwin* | mingw* | pw32* | cegcc*)
6346  # two different shell functions defined in ltmain.sh;
6347  # decide which one to use based on capabilities of $DLLTOOL
6348  case `$DLLTOOL --help 2>&1` in
6349  *--identify-strict*)
6350    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6351    ;;
6352  *)
6353    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6354    ;;
6355  esac
6356  ;;
6357*)
6358  # fallback: assume linklib IS sharedlib
6359  lt_cv_sharedlib_from_linklib_cmd=$ECHO
6360  ;;
6361esac
6362 ;;
6363esac
6364fi
6365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6366printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6367sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6368test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6369
6370
6371
6372
6373
6374
6375
6376
6377if test -n "$ac_tool_prefix"; then
6378  for ac_prog in ar
6379  do
6380    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6381set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6383printf %s "checking for $ac_word... " >&6; }
6384if test ${ac_cv_prog_AR+y}
6385then :
6386  printf %s "(cached) " >&6
6387else case e in #(
6388  e) if test -n "$AR"; then
6389  ac_cv_prog_AR="$AR" # Let the user override the test.
6390else
6391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392for as_dir in $PATH
6393do
6394  IFS=$as_save_IFS
6395  case $as_dir in #(((
6396    '') as_dir=./ ;;
6397    */) ;;
6398    *) as_dir=$as_dir/ ;;
6399  esac
6400    for ac_exec_ext in '' $ac_executable_extensions; do
6401  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6402    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6403    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6404    break 2
6405  fi
6406done
6407  done
6408IFS=$as_save_IFS
6409
6410fi ;;
6411esac
6412fi
6413AR=$ac_cv_prog_AR
6414if test -n "$AR"; then
6415  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6416printf "%s\n" "$AR" >&6; }
6417else
6418  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419printf "%s\n" "no" >&6; }
6420fi
6421
6422
6423    test -n "$AR" && break
6424  done
6425fi
6426if test -z "$AR"; then
6427  ac_ct_AR=$AR
6428  for ac_prog in ar
6429do
6430  # Extract the first word of "$ac_prog", so it can be a program name with args.
6431set dummy $ac_prog; ac_word=$2
6432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433printf %s "checking for $ac_word... " >&6; }
6434if test ${ac_cv_prog_ac_ct_AR+y}
6435then :
6436  printf %s "(cached) " >&6
6437else case e in #(
6438  e) if test -n "$ac_ct_AR"; then
6439  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6440else
6441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442for as_dir in $PATH
6443do
6444  IFS=$as_save_IFS
6445  case $as_dir in #(((
6446    '') as_dir=./ ;;
6447    */) ;;
6448    *) as_dir=$as_dir/ ;;
6449  esac
6450    for ac_exec_ext in '' $ac_executable_extensions; do
6451  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6452    ac_cv_prog_ac_ct_AR="$ac_prog"
6453    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6454    break 2
6455  fi
6456done
6457  done
6458IFS=$as_save_IFS
6459
6460fi ;;
6461esac
6462fi
6463ac_ct_AR=$ac_cv_prog_ac_ct_AR
6464if test -n "$ac_ct_AR"; then
6465  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6466printf "%s\n" "$ac_ct_AR" >&6; }
6467else
6468  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469printf "%s\n" "no" >&6; }
6470fi
6471
6472
6473  test -n "$ac_ct_AR" && break
6474done
6475
6476  if test "x$ac_ct_AR" = x; then
6477    AR="false"
6478  else
6479    case $cross_compiling:$ac_tool_warned in
6480yes:)
6481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6482printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6483ac_tool_warned=yes ;;
6484esac
6485    AR=$ac_ct_AR
6486  fi
6487fi
6488
6489: ${AR=ar}
6490
6491
6492
6493
6494
6495
6496# Use ARFLAGS variable as AR's operation code to sync the variable naming with
6497# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6498# higher priority because thats what people were doing historically (setting
6499# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
6500# variable obsoleted/removed.
6501
6502test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6503lt_ar_flags=$AR_FLAGS
6504
6505
6506
6507
6508
6509
6510# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
6511# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6512
6513
6514
6515
6516
6517
6518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6519printf %s "checking for archiver @FILE support... " >&6; }
6520if test ${lt_cv_ar_at_file+y}
6521then :
6522  printf %s "(cached) " >&6
6523else case e in #(
6524  e) lt_cv_ar_at_file=no
6525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6526/* end confdefs.h.  */
6527
6528int
6529main (void)
6530{
6531
6532  ;
6533  return 0;
6534}
6535_ACEOF
6536if ac_fn_c_try_compile "$LINENO"
6537then :
6538  echo conftest.$ac_objext > conftest.lst
6539      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6540      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6541  (eval $lt_ar_try) 2>&5
6542  ac_status=$?
6543  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6544  test $ac_status = 0; }
6545      if test 0 -eq "$ac_status"; then
6546	# Ensure the archiver fails upon bogus file names.
6547	rm -f conftest.$ac_objext libconftest.a
6548	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6549  (eval $lt_ar_try) 2>&5
6550  ac_status=$?
6551  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6552  test $ac_status = 0; }
6553	if test 0 -ne "$ac_status"; then
6554          lt_cv_ar_at_file=@
6555        fi
6556      fi
6557      rm -f conftest.* libconftest.a
6558
6559fi
6560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6561   ;;
6562esac
6563fi
6564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6565printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6566
6567if test no = "$lt_cv_ar_at_file"; then
6568  archiver_list_spec=
6569else
6570  archiver_list_spec=$lt_cv_ar_at_file
6571fi
6572
6573
6574
6575
6576
6577
6578
6579if test -n "$ac_tool_prefix"; then
6580  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6581set dummy ${ac_tool_prefix}strip; ac_word=$2
6582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6583printf %s "checking for $ac_word... " >&6; }
6584if test ${ac_cv_prog_STRIP+y}
6585then :
6586  printf %s "(cached) " >&6
6587else case e in #(
6588  e) if test -n "$STRIP"; then
6589  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6590else
6591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592for as_dir in $PATH
6593do
6594  IFS=$as_save_IFS
6595  case $as_dir in #(((
6596    '') as_dir=./ ;;
6597    */) ;;
6598    *) as_dir=$as_dir/ ;;
6599  esac
6600    for ac_exec_ext in '' $ac_executable_extensions; do
6601  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6602    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6603    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6604    break 2
6605  fi
6606done
6607  done
6608IFS=$as_save_IFS
6609
6610fi ;;
6611esac
6612fi
6613STRIP=$ac_cv_prog_STRIP
6614if test -n "$STRIP"; then
6615  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6616printf "%s\n" "$STRIP" >&6; }
6617else
6618  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619printf "%s\n" "no" >&6; }
6620fi
6621
6622
6623fi
6624if test -z "$ac_cv_prog_STRIP"; then
6625  ac_ct_STRIP=$STRIP
6626  # Extract the first word of "strip", so it can be a program name with args.
6627set dummy strip; ac_word=$2
6628{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6629printf %s "checking for $ac_word... " >&6; }
6630if test ${ac_cv_prog_ac_ct_STRIP+y}
6631then :
6632  printf %s "(cached) " >&6
6633else case e in #(
6634  e) if test -n "$ac_ct_STRIP"; then
6635  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6636else
6637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638for as_dir in $PATH
6639do
6640  IFS=$as_save_IFS
6641  case $as_dir in #(((
6642    '') as_dir=./ ;;
6643    */) ;;
6644    *) as_dir=$as_dir/ ;;
6645  esac
6646    for ac_exec_ext in '' $ac_executable_extensions; do
6647  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6648    ac_cv_prog_ac_ct_STRIP="strip"
6649    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6650    break 2
6651  fi
6652done
6653  done
6654IFS=$as_save_IFS
6655
6656fi ;;
6657esac
6658fi
6659ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6660if test -n "$ac_ct_STRIP"; then
6661  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6662printf "%s\n" "$ac_ct_STRIP" >&6; }
6663else
6664  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665printf "%s\n" "no" >&6; }
6666fi
6667
6668  if test "x$ac_ct_STRIP" = x; then
6669    STRIP=":"
6670  else
6671    case $cross_compiling:$ac_tool_warned in
6672yes:)
6673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6674printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6675ac_tool_warned=yes ;;
6676esac
6677    STRIP=$ac_ct_STRIP
6678  fi
6679else
6680  STRIP="$ac_cv_prog_STRIP"
6681fi
6682
6683test -z "$STRIP" && STRIP=:
6684
6685
6686
6687
6688
6689
6690if test -n "$ac_tool_prefix"; then
6691  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6692set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6694printf %s "checking for $ac_word... " >&6; }
6695if test ${ac_cv_prog_RANLIB+y}
6696then :
6697  printf %s "(cached) " >&6
6698else case e in #(
6699  e) if test -n "$RANLIB"; then
6700  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6701else
6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705  IFS=$as_save_IFS
6706  case $as_dir in #(((
6707    '') as_dir=./ ;;
6708    */) ;;
6709    *) as_dir=$as_dir/ ;;
6710  esac
6711    for ac_exec_ext in '' $ac_executable_extensions; do
6712  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6713    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6714    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6715    break 2
6716  fi
6717done
6718  done
6719IFS=$as_save_IFS
6720
6721fi ;;
6722esac
6723fi
6724RANLIB=$ac_cv_prog_RANLIB
6725if test -n "$RANLIB"; then
6726  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6727printf "%s\n" "$RANLIB" >&6; }
6728else
6729  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6730printf "%s\n" "no" >&6; }
6731fi
6732
6733
6734fi
6735if test -z "$ac_cv_prog_RANLIB"; then
6736  ac_ct_RANLIB=$RANLIB
6737  # Extract the first word of "ranlib", so it can be a program name with args.
6738set dummy ranlib; ac_word=$2
6739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6740printf %s "checking for $ac_word... " >&6; }
6741if test ${ac_cv_prog_ac_ct_RANLIB+y}
6742then :
6743  printf %s "(cached) " >&6
6744else case e in #(
6745  e) if test -n "$ac_ct_RANLIB"; then
6746  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6747else
6748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749for as_dir in $PATH
6750do
6751  IFS=$as_save_IFS
6752  case $as_dir in #(((
6753    '') as_dir=./ ;;
6754    */) ;;
6755    *) as_dir=$as_dir/ ;;
6756  esac
6757    for ac_exec_ext in '' $ac_executable_extensions; do
6758  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6759    ac_cv_prog_ac_ct_RANLIB="ranlib"
6760    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6761    break 2
6762  fi
6763done
6764  done
6765IFS=$as_save_IFS
6766
6767fi ;;
6768esac
6769fi
6770ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6771if test -n "$ac_ct_RANLIB"; then
6772  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6773printf "%s\n" "$ac_ct_RANLIB" >&6; }
6774else
6775  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6776printf "%s\n" "no" >&6; }
6777fi
6778
6779  if test "x$ac_ct_RANLIB" = x; then
6780    RANLIB=":"
6781  else
6782    case $cross_compiling:$ac_tool_warned in
6783yes:)
6784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6785printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6786ac_tool_warned=yes ;;
6787esac
6788    RANLIB=$ac_ct_RANLIB
6789  fi
6790else
6791  RANLIB="$ac_cv_prog_RANLIB"
6792fi
6793
6794test -z "$RANLIB" && RANLIB=:
6795
6796
6797
6798
6799
6800
6801# Determine commands to create old-style static archives.
6802old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6803old_postinstall_cmds='chmod 644 $oldlib'
6804old_postuninstall_cmds=
6805
6806if test -n "$RANLIB"; then
6807  case $host_os in
6808  bitrig* | openbsd*)
6809    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6810    ;;
6811  *)
6812    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6813    ;;
6814  esac
6815  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6816fi
6817
6818case $host_os in
6819  darwin*)
6820    lock_old_archive_extraction=yes ;;
6821  *)
6822    lock_old_archive_extraction=no ;;
6823esac
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863# If no C compiler was specified, use CC.
6864LTCC=${LTCC-"$CC"}
6865
6866# If no C compiler flags were specified, use CFLAGS.
6867LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6868
6869# Allow CC to be a program name with arguments.
6870compiler=$CC
6871
6872
6873# Check for command to grab the raw symbol name followed by C symbol from nm.
6874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6875printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6876if test ${lt_cv_sys_global_symbol_pipe+y}
6877then :
6878  printf %s "(cached) " >&6
6879else case e in #(
6880  e)
6881# These are sane defaults that work on at least a few old systems.
6882# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6883
6884# Character class describing NM global symbol codes.
6885symcode='[BCDEGRST]'
6886
6887# Regexp to match symbols that can be accessed directly from C.
6888sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6889
6890# Define system-specific variables.
6891case $host_os in
6892aix*)
6893  symcode='[BCDT]'
6894  ;;
6895cygwin* | mingw* | pw32* | cegcc*)
6896  symcode='[ABCDGISTW]'
6897  ;;
6898hpux*)
6899  if test ia64 = "$host_cpu"; then
6900    symcode='[ABCDEGRST]'
6901  fi
6902  ;;
6903irix* | nonstopux*)
6904  symcode='[BCDEGRST]'
6905  ;;
6906osf*)
6907  symcode='[BCDEGQRST]'
6908  ;;
6909solaris*)
6910  symcode='[BDRT]'
6911  ;;
6912sco3.2v5*)
6913  symcode='[DT]'
6914  ;;
6915sysv4.2uw2*)
6916  symcode='[DT]'
6917  ;;
6918sysv5* | sco5v6* | unixware* | OpenUNIX*)
6919  symcode='[ABDT]'
6920  ;;
6921sysv4)
6922  symcode='[DFNSTU]'
6923  ;;
6924esac
6925
6926# If we're using GNU nm, then use its standard symbol codes.
6927case `$NM -V 2>&1` in
6928*GNU* | *'with BFD'*)
6929  symcode='[ABCDGIRSTW]' ;;
6930esac
6931
6932if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6933  # Gets list of data symbols to import.
6934  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6935  # Adjust the below global symbol transforms to fixup imported variables.
6936  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6937  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6938  lt_c_name_lib_hook="\
6939  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6940  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6941else
6942  # Disable hooks by default.
6943  lt_cv_sys_global_symbol_to_import=
6944  lt_cdecl_hook=
6945  lt_c_name_hook=
6946  lt_c_name_lib_hook=
6947fi
6948
6949# Transform an extracted symbol line into a proper C declaration.
6950# Some systems (esp. on ia64) link data and code symbols differently,
6951# so use this general approach.
6952lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6953$lt_cdecl_hook\
6954" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6955" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6956
6957# Transform an extracted symbol line into symbol name and symbol address
6958lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
6959$lt_c_name_hook\
6960" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6961" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6962
6963# Transform an extracted symbol line into symbol name with lib prefix and
6964# symbol address.
6965lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
6966$lt_c_name_lib_hook\
6967" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6968" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6969" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6970
6971# Handle CRLF in mingw tool chain
6972opt_cr=
6973case $build_os in
6974mingw*)
6975  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6976  ;;
6977esac
6978
6979# Try without a prefix underscore, then with it.
6980for ac_symprfx in "" "_"; do
6981
6982  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6983  symxfrm="\\1 $ac_symprfx\\2 \\2"
6984
6985  # Write the raw and C identifiers.
6986  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6987    # Fake it for dumpbin and say T for any non-static function,
6988    # D for any global variable and I for any imported variable.
6989    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
6990    # which start with @ or ?.
6991    lt_cv_sys_global_symbol_pipe="$AWK '"\
6992"     {last_section=section; section=\$ 3};"\
6993"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6994"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6995"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6996"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6997"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6998"     \$ 0!~/External *\|/{next};"\
6999"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7000"     {if(hide[section]) next};"\
7001"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7002"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7003"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7004"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7005"     ' prfx=^$ac_symprfx"
7006  else
7007    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7008  fi
7009  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7010
7011  # Check to see that the pipe works correctly.
7012  pipe_works=no
7013
7014  rm -f conftest*
7015  cat > conftest.$ac_ext <<_LT_EOF
7016#ifdef __cplusplus
7017extern "C" {
7018#endif
7019char nm_test_var;
7020void nm_test_func(void);
7021void nm_test_func(void){}
7022#ifdef __cplusplus
7023}
7024#endif
7025int main(){nm_test_var='a';nm_test_func();return(0);}
7026_LT_EOF
7027
7028  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7029  (eval $ac_compile) 2>&5
7030  ac_status=$?
7031  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7032  test $ac_status = 0; }; then
7033    # Now try to grab the symbols.
7034    nlist=conftest.nm
7035    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7036  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7037  ac_status=$?
7038  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7039  test $ac_status = 0; } && test -s "$nlist"; then
7040      # Try sorting and uniquifying the output.
7041      if sort "$nlist" | uniq > "$nlist"T; then
7042	mv -f "$nlist"T "$nlist"
7043      else
7044	rm -f "$nlist"T
7045      fi
7046
7047      # Make sure that we snagged all the symbols we need.
7048      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7049	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7050	  cat <<_LT_EOF > conftest.$ac_ext
7051/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7052#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7053/* DATA imports from DLLs on WIN32 can't be const, because runtime
7054   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7055# define LT_DLSYM_CONST
7056#elif defined __osf__
7057/* This system does not cope well with relocations in const data.  */
7058# define LT_DLSYM_CONST
7059#else
7060# define LT_DLSYM_CONST const
7061#endif
7062
7063#ifdef __cplusplus
7064extern "C" {
7065#endif
7066
7067_LT_EOF
7068	  # Now generate the symbol file.
7069	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7070
7071	  cat <<_LT_EOF >> conftest.$ac_ext
7072
7073/* The mapping between symbol names and symbols.  */
7074LT_DLSYM_CONST struct {
7075  const char *name;
7076  void       *address;
7077}
7078lt__PROGRAM__LTX_preloaded_symbols[] =
7079{
7080  { "@PROGRAM@", (void *) 0 },
7081_LT_EOF
7082	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7083	  cat <<\_LT_EOF >> conftest.$ac_ext
7084  {0, (void *) 0}
7085};
7086
7087/* This works around a problem in FreeBSD linker */
7088#ifdef FREEBSD_WORKAROUND
7089static const void *lt_preloaded_setup() {
7090  return lt__PROGRAM__LTX_preloaded_symbols;
7091}
7092#endif
7093
7094#ifdef __cplusplus
7095}
7096#endif
7097_LT_EOF
7098	  # Now try linking the two files.
7099	  mv conftest.$ac_objext conftstm.$ac_objext
7100	  lt_globsym_save_LIBS=$LIBS
7101	  lt_globsym_save_CFLAGS=$CFLAGS
7102	  LIBS=conftstm.$ac_objext
7103	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7104	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7105  (eval $ac_link) 2>&5
7106  ac_status=$?
7107  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7108  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7109	    pipe_works=yes
7110	  fi
7111	  LIBS=$lt_globsym_save_LIBS
7112	  CFLAGS=$lt_globsym_save_CFLAGS
7113	else
7114	  echo "cannot find nm_test_func in $nlist" >&5
7115	fi
7116      else
7117	echo "cannot find nm_test_var in $nlist" >&5
7118      fi
7119    else
7120      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7121    fi
7122  else
7123    echo "$progname: failed program was:" >&5
7124    cat conftest.$ac_ext >&5
7125  fi
7126  rm -rf conftest* conftst*
7127
7128  # Do not use the global_symbol_pipe unless it works.
7129  if test yes = "$pipe_works"; then
7130    break
7131  else
7132    lt_cv_sys_global_symbol_pipe=
7133  fi
7134done
7135 ;;
7136esac
7137fi
7138
7139if test -z "$lt_cv_sys_global_symbol_pipe"; then
7140  lt_cv_sys_global_symbol_to_cdecl=
7141fi
7142if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7143  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7144printf "%s\n" "failed" >&6; }
7145else
7146  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7147printf "%s\n" "ok" >&6; }
7148fi
7149
7150# Response file support.
7151if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7152  nm_file_list_spec='@'
7153elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7154  nm_file_list_spec='@'
7155fi
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7194printf %s "checking for sysroot... " >&6; }
7195
7196# Check whether --with-sysroot was given.
7197if test ${with_sysroot+y}
7198then :
7199  withval=$with_sysroot;
7200else case e in #(
7201  e) with_sysroot=no ;;
7202esac
7203fi
7204
7205
7206lt_sysroot=
7207case $with_sysroot in #(
7208 yes)
7209   if test yes = "$GCC"; then
7210     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7211   fi
7212   ;; #(
7213 /*)
7214   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7215   ;; #(
7216 no|'')
7217   ;; #(
7218 *)
7219   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7220printf "%s\n" "$with_sysroot" >&6; }
7221   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7222   ;;
7223esac
7224
7225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7226printf "%s\n" "${lt_sysroot:-no}" >&6; }
7227
7228
7229
7230
7231
7232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7233printf %s "checking for a working dd... " >&6; }
7234if test ${ac_cv_path_lt_DD+y}
7235then :
7236  printf %s "(cached) " >&6
7237else case e in #(
7238  e) printf 0123456789abcdef0123456789abcdef >conftest.i
7239cat conftest.i conftest.i >conftest2.i
7240: ${lt_DD:=$DD}
7241if test -z "$lt_DD"; then
7242  ac_path_lt_DD_found=false
7243  # Loop through the user's path and test for each of PROGNAME-LIST
7244  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245for as_dir in $PATH
7246do
7247  IFS=$as_save_IFS
7248  case $as_dir in #(((
7249    '') as_dir=./ ;;
7250    */) ;;
7251    *) as_dir=$as_dir/ ;;
7252  esac
7253    for ac_prog in dd
7254   do
7255    for ac_exec_ext in '' $ac_executable_extensions; do
7256      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7257      as_fn_executable_p "$ac_path_lt_DD" || continue
7258if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7259  cmp -s conftest.i conftest.out \
7260  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7261fi
7262      $ac_path_lt_DD_found && break 3
7263    done
7264  done
7265  done
7266IFS=$as_save_IFS
7267  if test -z "$ac_cv_path_lt_DD"; then
7268    :
7269  fi
7270else
7271  ac_cv_path_lt_DD=$lt_DD
7272fi
7273
7274rm -f conftest.i conftest2.i conftest.out ;;
7275esac
7276fi
7277{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7278printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7279
7280
7281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7282printf %s "checking how to truncate binary pipes... " >&6; }
7283if test ${lt_cv_truncate_bin+y}
7284then :
7285  printf %s "(cached) " >&6
7286else case e in #(
7287  e) printf 0123456789abcdef0123456789abcdef >conftest.i
7288cat conftest.i conftest.i >conftest2.i
7289lt_cv_truncate_bin=
7290if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7291  cmp -s conftest.i conftest.out \
7292  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7293fi
7294rm -f conftest.i conftest2.i conftest.out
7295test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7296esac
7297fi
7298{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7299printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7300
7301
7302
7303
7304
7305
7306
7307# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7308func_cc_basename ()
7309{
7310    for cc_temp in $*""; do
7311      case $cc_temp in
7312        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7313        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7314        \-*) ;;
7315        *) break;;
7316      esac
7317    done
7318    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7319}
7320
7321# Check whether --enable-libtool-lock was given.
7322if test ${enable_libtool_lock+y}
7323then :
7324  enableval=$enable_libtool_lock;
7325fi
7326
7327test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7328
7329# Some flags need to be propagated to the compiler or linker for good
7330# libtool support.
7331case $host in
7332ia64-*-hpux*)
7333  # Find out what ABI is being produced by ac_compile, and set mode
7334  # options accordingly.
7335  echo 'int i;' > conftest.$ac_ext
7336  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7337  (eval $ac_compile) 2>&5
7338  ac_status=$?
7339  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7340  test $ac_status = 0; }; then
7341    case `$FILECMD conftest.$ac_objext` in
7342      *ELF-32*)
7343	HPUX_IA64_MODE=32
7344	;;
7345      *ELF-64*)
7346	HPUX_IA64_MODE=64
7347	;;
7348    esac
7349  fi
7350  rm -rf conftest*
7351  ;;
7352*-*-irix6*)
7353  # Find out what ABI is being produced by ac_compile, and set linker
7354  # options accordingly.
7355  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7356  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357  (eval $ac_compile) 2>&5
7358  ac_status=$?
7359  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7360  test $ac_status = 0; }; then
7361    if test yes = "$lt_cv_prog_gnu_ld"; then
7362      case `$FILECMD conftest.$ac_objext` in
7363	*32-bit*)
7364	  LD="${LD-ld} -melf32bsmip"
7365	  ;;
7366	*N32*)
7367	  LD="${LD-ld} -melf32bmipn32"
7368	  ;;
7369	*64-bit*)
7370	  LD="${LD-ld} -melf64bmip"
7371	;;
7372      esac
7373    else
7374      case `$FILECMD conftest.$ac_objext` in
7375	*32-bit*)
7376	  LD="${LD-ld} -32"
7377	  ;;
7378	*N32*)
7379	  LD="${LD-ld} -n32"
7380	  ;;
7381	*64-bit*)
7382	  LD="${LD-ld} -64"
7383	  ;;
7384      esac
7385    fi
7386  fi
7387  rm -rf conftest*
7388  ;;
7389
7390mips64*-*linux*)
7391  # Find out what ABI is being produced by ac_compile, and set linker
7392  # options accordingly.
7393  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7394  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7395  (eval $ac_compile) 2>&5
7396  ac_status=$?
7397  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7398  test $ac_status = 0; }; then
7399    emul=elf
7400    case `$FILECMD conftest.$ac_objext` in
7401      *32-bit*)
7402	emul="${emul}32"
7403	;;
7404      *64-bit*)
7405	emul="${emul}64"
7406	;;
7407    esac
7408    case `$FILECMD conftest.$ac_objext` in
7409      *MSB*)
7410	emul="${emul}btsmip"
7411	;;
7412      *LSB*)
7413	emul="${emul}ltsmip"
7414	;;
7415    esac
7416    case `$FILECMD conftest.$ac_objext` in
7417      *N32*)
7418	emul="${emul}n32"
7419	;;
7420    esac
7421    LD="${LD-ld} -m $emul"
7422  fi
7423  rm -rf conftest*
7424  ;;
7425
7426x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7427s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7428  # Find out what ABI is being produced by ac_compile, and set linker
7429  # options accordingly.  Note that the listed cases only cover the
7430  # situations where additional linker options are needed (such as when
7431  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7432  # vice versa); the common cases where no linker options are needed do
7433  # not appear in the list.
7434  echo 'int i;' > conftest.$ac_ext
7435  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7436  (eval $ac_compile) 2>&5
7437  ac_status=$?
7438  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7439  test $ac_status = 0; }; then
7440    case `$FILECMD conftest.o` in
7441      *32-bit*)
7442	case $host in
7443	  x86_64-*kfreebsd*-gnu)
7444	    LD="${LD-ld} -m elf_i386_fbsd"
7445	    ;;
7446	  x86_64-*linux*)
7447	    case `$FILECMD conftest.o` in
7448	      *x86-64*)
7449		LD="${LD-ld} -m elf32_x86_64"
7450		;;
7451	      *)
7452		LD="${LD-ld} -m elf_i386"
7453		;;
7454	    esac
7455	    ;;
7456	  powerpc64le-*linux*)
7457	    LD="${LD-ld} -m elf32lppclinux"
7458	    ;;
7459	  powerpc64-*linux*)
7460	    LD="${LD-ld} -m elf32ppclinux"
7461	    ;;
7462	  s390x-*linux*)
7463	    LD="${LD-ld} -m elf_s390"
7464	    ;;
7465	  sparc64-*linux*)
7466	    LD="${LD-ld} -m elf32_sparc"
7467	    ;;
7468	esac
7469	;;
7470      *64-bit*)
7471	case $host in
7472	  x86_64-*kfreebsd*-gnu)
7473	    LD="${LD-ld} -m elf_x86_64_fbsd"
7474	    ;;
7475	  x86_64-*linux*)
7476	    LD="${LD-ld} -m elf_x86_64"
7477	    ;;
7478	  powerpcle-*linux*)
7479	    LD="${LD-ld} -m elf64lppc"
7480	    ;;
7481	  powerpc-*linux*)
7482	    LD="${LD-ld} -m elf64ppc"
7483	    ;;
7484	  s390*-*linux*|s390*-*tpf*)
7485	    LD="${LD-ld} -m elf64_s390"
7486	    ;;
7487	  sparc*-*linux*)
7488	    LD="${LD-ld} -m elf64_sparc"
7489	    ;;
7490	esac
7491	;;
7492    esac
7493  fi
7494  rm -rf conftest*
7495  ;;
7496
7497*-*-sco3.2v5*)
7498  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7499  SAVE_CFLAGS=$CFLAGS
7500  CFLAGS="$CFLAGS -belf"
7501  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7502printf %s "checking whether the C compiler needs -belf... " >&6; }
7503if test ${lt_cv_cc_needs_belf+y}
7504then :
7505  printf %s "(cached) " >&6
7506else case e in #(
7507  e) ac_ext=c
7508ac_cpp='$CPP $CPPFLAGS'
7509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7511ac_compiler_gnu=$ac_cv_c_compiler_gnu
7512
7513     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7514/* end confdefs.h.  */
7515
7516int
7517main (void)
7518{
7519
7520  ;
7521  return 0;
7522}
7523_ACEOF
7524if ac_fn_c_try_link "$LINENO"
7525then :
7526  lt_cv_cc_needs_belf=yes
7527else case e in #(
7528  e) lt_cv_cc_needs_belf=no ;;
7529esac
7530fi
7531rm -f core conftest.err conftest.$ac_objext conftest.beam \
7532    conftest$ac_exeext conftest.$ac_ext
7533     ac_ext=c
7534ac_cpp='$CPP $CPPFLAGS'
7535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7537ac_compiler_gnu=$ac_cv_c_compiler_gnu
7538 ;;
7539esac
7540fi
7541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7542printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7543  if test yes != "$lt_cv_cc_needs_belf"; then
7544    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7545    CFLAGS=$SAVE_CFLAGS
7546  fi
7547  ;;
7548*-*solaris*)
7549  # Find out what ABI is being produced by ac_compile, and set linker
7550  # options accordingly.
7551  echo 'int i;' > conftest.$ac_ext
7552  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7553  (eval $ac_compile) 2>&5
7554  ac_status=$?
7555  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7556  test $ac_status = 0; }; then
7557    case `$FILECMD conftest.o` in
7558    *64-bit*)
7559      case $lt_cv_prog_gnu_ld in
7560      yes*)
7561        case $host in
7562        i?86-*-solaris*|x86_64-*-solaris*)
7563          LD="${LD-ld} -m elf_x86_64"
7564          ;;
7565        sparc*-*-solaris*)
7566          LD="${LD-ld} -m elf64_sparc"
7567          ;;
7568        esac
7569        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7570        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7571          LD=${LD-ld}_sol2
7572        fi
7573        ;;
7574      *)
7575	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7576	  LD="${LD-ld} -64"
7577	fi
7578	;;
7579      esac
7580      ;;
7581    esac
7582  fi
7583  rm -rf conftest*
7584  ;;
7585esac
7586
7587need_locks=$enable_libtool_lock
7588
7589if test -n "$ac_tool_prefix"; then
7590  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7591set dummy ${ac_tool_prefix}mt; ac_word=$2
7592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7593printf %s "checking for $ac_word... " >&6; }
7594if test ${ac_cv_prog_MANIFEST_TOOL+y}
7595then :
7596  printf %s "(cached) " >&6
7597else case e in #(
7598  e) if test -n "$MANIFEST_TOOL"; then
7599  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7600else
7601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602for as_dir in $PATH
7603do
7604  IFS=$as_save_IFS
7605  case $as_dir in #(((
7606    '') as_dir=./ ;;
7607    */) ;;
7608    *) as_dir=$as_dir/ ;;
7609  esac
7610    for ac_exec_ext in '' $ac_executable_extensions; do
7611  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7612    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7613    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7614    break 2
7615  fi
7616done
7617  done
7618IFS=$as_save_IFS
7619
7620fi ;;
7621esac
7622fi
7623MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7624if test -n "$MANIFEST_TOOL"; then
7625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7626printf "%s\n" "$MANIFEST_TOOL" >&6; }
7627else
7628  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629printf "%s\n" "no" >&6; }
7630fi
7631
7632
7633fi
7634if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7635  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7636  # Extract the first word of "mt", so it can be a program name with args.
7637set dummy mt; ac_word=$2
7638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639printf %s "checking for $ac_word... " >&6; }
7640if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7641then :
7642  printf %s "(cached) " >&6
7643else case e in #(
7644  e) if test -n "$ac_ct_MANIFEST_TOOL"; then
7645  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7646else
7647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648for as_dir in $PATH
7649do
7650  IFS=$as_save_IFS
7651  case $as_dir in #(((
7652    '') as_dir=./ ;;
7653    */) ;;
7654    *) as_dir=$as_dir/ ;;
7655  esac
7656    for ac_exec_ext in '' $ac_executable_extensions; do
7657  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7658    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7659    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7660    break 2
7661  fi
7662done
7663  done
7664IFS=$as_save_IFS
7665
7666fi ;;
7667esac
7668fi
7669ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7670if test -n "$ac_ct_MANIFEST_TOOL"; then
7671  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7672printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7673else
7674  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675printf "%s\n" "no" >&6; }
7676fi
7677
7678  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7679    MANIFEST_TOOL=":"
7680  else
7681    case $cross_compiling:$ac_tool_warned in
7682yes:)
7683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7684printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7685ac_tool_warned=yes ;;
7686esac
7687    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7688  fi
7689else
7690  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7691fi
7692
7693test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7695printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7696if test ${lt_cv_path_mainfest_tool+y}
7697then :
7698  printf %s "(cached) " >&6
7699else case e in #(
7700  e) lt_cv_path_mainfest_tool=no
7701  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7702  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7703  cat conftest.err >&5
7704  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7705    lt_cv_path_mainfest_tool=yes
7706  fi
7707  rm -f conftest* ;;
7708esac
7709fi
7710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7711printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7712if test yes != "$lt_cv_path_mainfest_tool"; then
7713  MANIFEST_TOOL=:
7714fi
7715
7716
7717
7718
7719
7720
7721  case $host_os in
7722    rhapsody* | darwin*)
7723    if test -n "$ac_tool_prefix"; then
7724  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7725set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7727printf %s "checking for $ac_word... " >&6; }
7728if test ${ac_cv_prog_DSYMUTIL+y}
7729then :
7730  printf %s "(cached) " >&6
7731else case e in #(
7732  e) if test -n "$DSYMUTIL"; then
7733  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7734else
7735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736for as_dir in $PATH
7737do
7738  IFS=$as_save_IFS
7739  case $as_dir in #(((
7740    '') as_dir=./ ;;
7741    */) ;;
7742    *) as_dir=$as_dir/ ;;
7743  esac
7744    for ac_exec_ext in '' $ac_executable_extensions; do
7745  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7746    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7747    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7748    break 2
7749  fi
7750done
7751  done
7752IFS=$as_save_IFS
7753
7754fi ;;
7755esac
7756fi
7757DSYMUTIL=$ac_cv_prog_DSYMUTIL
7758if test -n "$DSYMUTIL"; then
7759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7760printf "%s\n" "$DSYMUTIL" >&6; }
7761else
7762  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763printf "%s\n" "no" >&6; }
7764fi
7765
7766
7767fi
7768if test -z "$ac_cv_prog_DSYMUTIL"; then
7769  ac_ct_DSYMUTIL=$DSYMUTIL
7770  # Extract the first word of "dsymutil", so it can be a program name with args.
7771set dummy dsymutil; ac_word=$2
7772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773printf %s "checking for $ac_word... " >&6; }
7774if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7775then :
7776  printf %s "(cached) " >&6
7777else case e in #(
7778  e) if test -n "$ac_ct_DSYMUTIL"; then
7779  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7780else
7781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782for as_dir in $PATH
7783do
7784  IFS=$as_save_IFS
7785  case $as_dir in #(((
7786    '') as_dir=./ ;;
7787    */) ;;
7788    *) as_dir=$as_dir/ ;;
7789  esac
7790    for ac_exec_ext in '' $ac_executable_extensions; do
7791  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7792    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7793    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7794    break 2
7795  fi
7796done
7797  done
7798IFS=$as_save_IFS
7799
7800fi ;;
7801esac
7802fi
7803ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7804if test -n "$ac_ct_DSYMUTIL"; then
7805  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7806printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7807else
7808  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809printf "%s\n" "no" >&6; }
7810fi
7811
7812  if test "x$ac_ct_DSYMUTIL" = x; then
7813    DSYMUTIL=":"
7814  else
7815    case $cross_compiling:$ac_tool_warned in
7816yes:)
7817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7818printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7819ac_tool_warned=yes ;;
7820esac
7821    DSYMUTIL=$ac_ct_DSYMUTIL
7822  fi
7823else
7824  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7825fi
7826
7827    if test -n "$ac_tool_prefix"; then
7828  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7829set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7831printf %s "checking for $ac_word... " >&6; }
7832if test ${ac_cv_prog_NMEDIT+y}
7833then :
7834  printf %s "(cached) " >&6
7835else case e in #(
7836  e) if test -n "$NMEDIT"; then
7837  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7838else
7839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840for as_dir in $PATH
7841do
7842  IFS=$as_save_IFS
7843  case $as_dir in #(((
7844    '') as_dir=./ ;;
7845    */) ;;
7846    *) as_dir=$as_dir/ ;;
7847  esac
7848    for ac_exec_ext in '' $ac_executable_extensions; do
7849  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7850    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7851    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7852    break 2
7853  fi
7854done
7855  done
7856IFS=$as_save_IFS
7857
7858fi ;;
7859esac
7860fi
7861NMEDIT=$ac_cv_prog_NMEDIT
7862if test -n "$NMEDIT"; then
7863  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7864printf "%s\n" "$NMEDIT" >&6; }
7865else
7866  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867printf "%s\n" "no" >&6; }
7868fi
7869
7870
7871fi
7872if test -z "$ac_cv_prog_NMEDIT"; then
7873  ac_ct_NMEDIT=$NMEDIT
7874  # Extract the first word of "nmedit", so it can be a program name with args.
7875set dummy nmedit; ac_word=$2
7876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877printf %s "checking for $ac_word... " >&6; }
7878if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7879then :
7880  printf %s "(cached) " >&6
7881else case e in #(
7882  e) if test -n "$ac_ct_NMEDIT"; then
7883  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7884else
7885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886for as_dir in $PATH
7887do
7888  IFS=$as_save_IFS
7889  case $as_dir in #(((
7890    '') as_dir=./ ;;
7891    */) ;;
7892    *) as_dir=$as_dir/ ;;
7893  esac
7894    for ac_exec_ext in '' $ac_executable_extensions; do
7895  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7896    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7897    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7898    break 2
7899  fi
7900done
7901  done
7902IFS=$as_save_IFS
7903
7904fi ;;
7905esac
7906fi
7907ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7908if test -n "$ac_ct_NMEDIT"; then
7909  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7910printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7911else
7912  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913printf "%s\n" "no" >&6; }
7914fi
7915
7916  if test "x$ac_ct_NMEDIT" = x; then
7917    NMEDIT=":"
7918  else
7919    case $cross_compiling:$ac_tool_warned in
7920yes:)
7921{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7922printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7923ac_tool_warned=yes ;;
7924esac
7925    NMEDIT=$ac_ct_NMEDIT
7926  fi
7927else
7928  NMEDIT="$ac_cv_prog_NMEDIT"
7929fi
7930
7931    if test -n "$ac_tool_prefix"; then
7932  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7933set dummy ${ac_tool_prefix}lipo; ac_word=$2
7934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935printf %s "checking for $ac_word... " >&6; }
7936if test ${ac_cv_prog_LIPO+y}
7937then :
7938  printf %s "(cached) " >&6
7939else case e in #(
7940  e) if test -n "$LIPO"; then
7941  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7942else
7943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944for as_dir in $PATH
7945do
7946  IFS=$as_save_IFS
7947  case $as_dir in #(((
7948    '') as_dir=./ ;;
7949    */) ;;
7950    *) as_dir=$as_dir/ ;;
7951  esac
7952    for ac_exec_ext in '' $ac_executable_extensions; do
7953  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7954    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7955    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7956    break 2
7957  fi
7958done
7959  done
7960IFS=$as_save_IFS
7961
7962fi ;;
7963esac
7964fi
7965LIPO=$ac_cv_prog_LIPO
7966if test -n "$LIPO"; then
7967  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7968printf "%s\n" "$LIPO" >&6; }
7969else
7970  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971printf "%s\n" "no" >&6; }
7972fi
7973
7974
7975fi
7976if test -z "$ac_cv_prog_LIPO"; then
7977  ac_ct_LIPO=$LIPO
7978  # Extract the first word of "lipo", so it can be a program name with args.
7979set dummy lipo; ac_word=$2
7980{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981printf %s "checking for $ac_word... " >&6; }
7982if test ${ac_cv_prog_ac_ct_LIPO+y}
7983then :
7984  printf %s "(cached) " >&6
7985else case e in #(
7986  e) if test -n "$ac_ct_LIPO"; then
7987  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7988else
7989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990for as_dir in $PATH
7991do
7992  IFS=$as_save_IFS
7993  case $as_dir in #(((
7994    '') as_dir=./ ;;
7995    */) ;;
7996    *) as_dir=$as_dir/ ;;
7997  esac
7998    for ac_exec_ext in '' $ac_executable_extensions; do
7999  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8000    ac_cv_prog_ac_ct_LIPO="lipo"
8001    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8002    break 2
8003  fi
8004done
8005  done
8006IFS=$as_save_IFS
8007
8008fi ;;
8009esac
8010fi
8011ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8012if test -n "$ac_ct_LIPO"; then
8013  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8014printf "%s\n" "$ac_ct_LIPO" >&6; }
8015else
8016  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017printf "%s\n" "no" >&6; }
8018fi
8019
8020  if test "x$ac_ct_LIPO" = x; then
8021    LIPO=":"
8022  else
8023    case $cross_compiling:$ac_tool_warned in
8024yes:)
8025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8026printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8027ac_tool_warned=yes ;;
8028esac
8029    LIPO=$ac_ct_LIPO
8030  fi
8031else
8032  LIPO="$ac_cv_prog_LIPO"
8033fi
8034
8035    if test -n "$ac_tool_prefix"; then
8036  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8037set dummy ${ac_tool_prefix}otool; ac_word=$2
8038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8039printf %s "checking for $ac_word... " >&6; }
8040if test ${ac_cv_prog_OTOOL+y}
8041then :
8042  printf %s "(cached) " >&6
8043else case e in #(
8044  e) if test -n "$OTOOL"; then
8045  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8046else
8047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048for as_dir in $PATH
8049do
8050  IFS=$as_save_IFS
8051  case $as_dir in #(((
8052    '') as_dir=./ ;;
8053    */) ;;
8054    *) as_dir=$as_dir/ ;;
8055  esac
8056    for ac_exec_ext in '' $ac_executable_extensions; do
8057  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8058    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8059    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8060    break 2
8061  fi
8062done
8063  done
8064IFS=$as_save_IFS
8065
8066fi ;;
8067esac
8068fi
8069OTOOL=$ac_cv_prog_OTOOL
8070if test -n "$OTOOL"; then
8071  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8072printf "%s\n" "$OTOOL" >&6; }
8073else
8074  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075printf "%s\n" "no" >&6; }
8076fi
8077
8078
8079fi
8080if test -z "$ac_cv_prog_OTOOL"; then
8081  ac_ct_OTOOL=$OTOOL
8082  # Extract the first word of "otool", so it can be a program name with args.
8083set dummy otool; ac_word=$2
8084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8085printf %s "checking for $ac_word... " >&6; }
8086if test ${ac_cv_prog_ac_ct_OTOOL+y}
8087then :
8088  printf %s "(cached) " >&6
8089else case e in #(
8090  e) if test -n "$ac_ct_OTOOL"; then
8091  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8092else
8093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094for as_dir in $PATH
8095do
8096  IFS=$as_save_IFS
8097  case $as_dir in #(((
8098    '') as_dir=./ ;;
8099    */) ;;
8100    *) as_dir=$as_dir/ ;;
8101  esac
8102    for ac_exec_ext in '' $ac_executable_extensions; do
8103  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8104    ac_cv_prog_ac_ct_OTOOL="otool"
8105    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8106    break 2
8107  fi
8108done
8109  done
8110IFS=$as_save_IFS
8111
8112fi ;;
8113esac
8114fi
8115ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8116if test -n "$ac_ct_OTOOL"; then
8117  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8118printf "%s\n" "$ac_ct_OTOOL" >&6; }
8119else
8120  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121printf "%s\n" "no" >&6; }
8122fi
8123
8124  if test "x$ac_ct_OTOOL" = x; then
8125    OTOOL=":"
8126  else
8127    case $cross_compiling:$ac_tool_warned in
8128yes:)
8129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8130printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8131ac_tool_warned=yes ;;
8132esac
8133    OTOOL=$ac_ct_OTOOL
8134  fi
8135else
8136  OTOOL="$ac_cv_prog_OTOOL"
8137fi
8138
8139    if test -n "$ac_tool_prefix"; then
8140  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8141set dummy ${ac_tool_prefix}otool64; ac_word=$2
8142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8143printf %s "checking for $ac_word... " >&6; }
8144if test ${ac_cv_prog_OTOOL64+y}
8145then :
8146  printf %s "(cached) " >&6
8147else case e in #(
8148  e) if test -n "$OTOOL64"; then
8149  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8150else
8151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152for as_dir in $PATH
8153do
8154  IFS=$as_save_IFS
8155  case $as_dir in #(((
8156    '') as_dir=./ ;;
8157    */) ;;
8158    *) as_dir=$as_dir/ ;;
8159  esac
8160    for ac_exec_ext in '' $ac_executable_extensions; do
8161  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8162    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8163    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8164    break 2
8165  fi
8166done
8167  done
8168IFS=$as_save_IFS
8169
8170fi ;;
8171esac
8172fi
8173OTOOL64=$ac_cv_prog_OTOOL64
8174if test -n "$OTOOL64"; then
8175  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8176printf "%s\n" "$OTOOL64" >&6; }
8177else
8178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8179printf "%s\n" "no" >&6; }
8180fi
8181
8182
8183fi
8184if test -z "$ac_cv_prog_OTOOL64"; then
8185  ac_ct_OTOOL64=$OTOOL64
8186  # Extract the first word of "otool64", so it can be a program name with args.
8187set dummy otool64; ac_word=$2
8188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8189printf %s "checking for $ac_word... " >&6; }
8190if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8191then :
8192  printf %s "(cached) " >&6
8193else case e in #(
8194  e) if test -n "$ac_ct_OTOOL64"; then
8195  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8196else
8197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198for as_dir in $PATH
8199do
8200  IFS=$as_save_IFS
8201  case $as_dir in #(((
8202    '') as_dir=./ ;;
8203    */) ;;
8204    *) as_dir=$as_dir/ ;;
8205  esac
8206    for ac_exec_ext in '' $ac_executable_extensions; do
8207  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8208    ac_cv_prog_ac_ct_OTOOL64="otool64"
8209    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8210    break 2
8211  fi
8212done
8213  done
8214IFS=$as_save_IFS
8215
8216fi ;;
8217esac
8218fi
8219ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8220if test -n "$ac_ct_OTOOL64"; then
8221  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8222printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8223else
8224  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8225printf "%s\n" "no" >&6; }
8226fi
8227
8228  if test "x$ac_ct_OTOOL64" = x; then
8229    OTOOL64=":"
8230  else
8231    case $cross_compiling:$ac_tool_warned in
8232yes:)
8233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8234printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8235ac_tool_warned=yes ;;
8236esac
8237    OTOOL64=$ac_ct_OTOOL64
8238  fi
8239else
8240  OTOOL64="$ac_cv_prog_OTOOL64"
8241fi
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8270printf %s "checking for -single_module linker flag... " >&6; }
8271if test ${lt_cv_apple_cc_single_mod+y}
8272then :
8273  printf %s "(cached) " >&6
8274else case e in #(
8275  e) lt_cv_apple_cc_single_mod=no
8276      if test -z "$LT_MULTI_MODULE"; then
8277	# By default we will add the -single_module flag. You can override
8278	# by either setting the environment variable LT_MULTI_MODULE
8279	# non-empty at configure time, or by adding -multi_module to the
8280	# link flags.
8281	rm -rf libconftest.dylib*
8282	echo "int foo(void){return 1;}" > conftest.c
8283	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8284-dynamiclib -Wl,-single_module conftest.c" >&5
8285	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8286	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8287        _lt_result=$?
8288	# If there is a non-empty error log, and "single_module"
8289	# appears in it, assume the flag caused a linker warning
8290        if test -s conftest.err && $GREP single_module conftest.err; then
8291	  cat conftest.err >&5
8292	# Otherwise, if the output was created with a 0 exit code from
8293	# the compiler, it worked.
8294	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8295	  lt_cv_apple_cc_single_mod=yes
8296	else
8297	  cat conftest.err >&5
8298	fi
8299	rm -rf libconftest.dylib*
8300	rm -f conftest.*
8301      fi ;;
8302esac
8303fi
8304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8305printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8306
8307    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8308printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8309if test ${lt_cv_ld_exported_symbols_list+y}
8310then :
8311  printf %s "(cached) " >&6
8312else case e in #(
8313  e) lt_cv_ld_exported_symbols_list=no
8314      save_LDFLAGS=$LDFLAGS
8315      echo "_main" > conftest.sym
8316      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8317      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8318/* end confdefs.h.  */
8319
8320int
8321main (void)
8322{
8323
8324  ;
8325  return 0;
8326}
8327_ACEOF
8328if ac_fn_c_try_link "$LINENO"
8329then :
8330  lt_cv_ld_exported_symbols_list=yes
8331else case e in #(
8332  e) lt_cv_ld_exported_symbols_list=no ;;
8333esac
8334fi
8335rm -f core conftest.err conftest.$ac_objext conftest.beam \
8336    conftest$ac_exeext conftest.$ac_ext
8337	LDFLAGS=$save_LDFLAGS
8338     ;;
8339esac
8340fi
8341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8342printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8343
8344    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8345printf %s "checking for -force_load linker flag... " >&6; }
8346if test ${lt_cv_ld_force_load+y}
8347then :
8348  printf %s "(cached) " >&6
8349else case e in #(
8350  e) lt_cv_ld_force_load=no
8351      cat > conftest.c << _LT_EOF
8352int forced_loaded() { return 2;}
8353_LT_EOF
8354      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8355      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8356      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8357      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8358      echo "$RANLIB libconftest.a" >&5
8359      $RANLIB libconftest.a 2>&5
8360      cat > conftest.c << _LT_EOF
8361int main() { return 0;}
8362_LT_EOF
8363      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8364      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8365      _lt_result=$?
8366      if test -s conftest.err && $GREP force_load conftest.err; then
8367	cat conftest.err >&5
8368      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8369	lt_cv_ld_force_load=yes
8370      else
8371	cat conftest.err >&5
8372      fi
8373        rm -f conftest.err libconftest.a conftest conftest.c
8374        rm -rf conftest.dSYM
8375     ;;
8376esac
8377fi
8378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8379printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8380    case $host_os in
8381    rhapsody* | darwin1.[012])
8382      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8383    darwin1.*)
8384      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8385    darwin*)
8386      case $MACOSX_DEPLOYMENT_TARGET,$host in
8387        10.[012],*|,*powerpc*-darwin[5-8]*)
8388          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8389        *)
8390          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8391      esac
8392    ;;
8393  esac
8394    if test yes = "$lt_cv_apple_cc_single_mod"; then
8395      _lt_dar_single_mod='$single_module'
8396    fi
8397    if test yes = "$lt_cv_ld_exported_symbols_list"; then
8398      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8399    else
8400      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8401    fi
8402    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8403      _lt_dsymutil='~$DSYMUTIL $lib || :'
8404    else
8405      _lt_dsymutil=
8406    fi
8407    ;;
8408  esac
8409
8410# func_munge_path_list VARIABLE PATH
8411# -----------------------------------
8412# VARIABLE is name of variable containing _space_ separated list of
8413# directories to be munged by the contents of PATH, which is string
8414# having a format:
8415# "DIR[:DIR]:"
8416#       string "DIR[ DIR]" will be prepended to VARIABLE
8417# ":DIR[:DIR]"
8418#       string "DIR[ DIR]" will be appended to VARIABLE
8419# "DIRP[:DIRP]::[DIRA:]DIRA"
8420#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8421#       "DIRA[ DIRA]" will be appended to VARIABLE
8422# "DIR[:DIR]"
8423#       VARIABLE will be replaced by "DIR[ DIR]"
8424func_munge_path_list ()
8425{
8426    case x$2 in
8427    x)
8428        ;;
8429    *:)
8430        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8431        ;;
8432    x:*)
8433        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8434        ;;
8435    *::*)
8436        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8437        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8438        ;;
8439    *)
8440        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8441        ;;
8442    esac
8443}
8444
8445ac_header= ac_cache=
8446for ac_item in $ac_header_c_list
8447do
8448  if test $ac_cache; then
8449    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8450    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8451      printf "%s\n" "#define $ac_item 1" >> confdefs.h
8452    fi
8453    ac_header= ac_cache=
8454  elif test $ac_header; then
8455    ac_cache=$ac_item
8456  else
8457    ac_header=$ac_item
8458  fi
8459done
8460
8461
8462
8463
8464
8465
8466
8467
8468if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8469then :
8470
8471printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8472
8473fi
8474ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8475"
8476if test "x$ac_cv_header_dlfcn_h" = xyes
8477then :
8478  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8479
8480fi
8481
8482
8483
8484
8485
8486# Set options
8487
8488
8489
8490        enable_dlopen=no
8491
8492
8493  enable_win32_dll=no
8494
8495
8496            # Check whether --enable-shared was given.
8497if test ${enable_shared+y}
8498then :
8499  enableval=$enable_shared; p=${PACKAGE-default}
8500    case $enableval in
8501    yes) enable_shared=yes ;;
8502    no) enable_shared=no ;;
8503    *)
8504      enable_shared=no
8505      # Look at the argument we got.  We use all the common list separators.
8506      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8507      for pkg in $enableval; do
8508	IFS=$lt_save_ifs
8509	if test "X$pkg" = "X$p"; then
8510	  enable_shared=yes
8511	fi
8512      done
8513      IFS=$lt_save_ifs
8514      ;;
8515    esac
8516else case e in #(
8517  e) enable_shared=yes ;;
8518esac
8519fi
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529  # Check whether --enable-static was given.
8530if test ${enable_static+y}
8531then :
8532  enableval=$enable_static; p=${PACKAGE-default}
8533    case $enableval in
8534    yes) enable_static=yes ;;
8535    no) enable_static=no ;;
8536    *)
8537     enable_static=no
8538      # Look at the argument we got.  We use all the common list separators.
8539      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8540      for pkg in $enableval; do
8541	IFS=$lt_save_ifs
8542	if test "X$pkg" = "X$p"; then
8543	  enable_static=yes
8544	fi
8545      done
8546      IFS=$lt_save_ifs
8547      ;;
8548    esac
8549else case e in #(
8550  e) enable_static=yes ;;
8551esac
8552fi
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563# Check whether --with-pic was given.
8564if test ${with_pic+y}
8565then :
8566  withval=$with_pic; lt_p=${PACKAGE-default}
8567    case $withval in
8568    yes|no) pic_mode=$withval ;;
8569    *)
8570      pic_mode=default
8571      # Look at the argument we got.  We use all the common list separators.
8572      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8573      for lt_pkg in $withval; do
8574	IFS=$lt_save_ifs
8575	if test "X$lt_pkg" = "X$lt_p"; then
8576	  pic_mode=yes
8577	fi
8578      done
8579      IFS=$lt_save_ifs
8580      ;;
8581    esac
8582else case e in #(
8583  e) pic_mode=default ;;
8584esac
8585fi
8586
8587
8588
8589
8590
8591
8592
8593
8594  # Check whether --enable-fast-install was given.
8595if test ${enable_fast_install+y}
8596then :
8597  enableval=$enable_fast_install; p=${PACKAGE-default}
8598    case $enableval in
8599    yes) enable_fast_install=yes ;;
8600    no) enable_fast_install=no ;;
8601    *)
8602      enable_fast_install=no
8603      # Look at the argument we got.  We use all the common list separators.
8604      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8605      for pkg in $enableval; do
8606	IFS=$lt_save_ifs
8607	if test "X$pkg" = "X$p"; then
8608	  enable_fast_install=yes
8609	fi
8610      done
8611      IFS=$lt_save_ifs
8612      ;;
8613    esac
8614else case e in #(
8615  e) enable_fast_install=yes ;;
8616esac
8617fi
8618
8619
8620
8621
8622
8623
8624
8625
8626  shared_archive_member_spec=
8627case $host,$enable_shared in
8628power*-*-aix[5-9]*,yes)
8629  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8630printf %s "checking which variant of shared library versioning to provide... " >&6; }
8631
8632# Check whether --with-aix-soname was given.
8633if test ${with_aix_soname+y}
8634then :
8635  withval=$with_aix_soname; case $withval in
8636    aix|svr4|both)
8637      ;;
8638    *)
8639      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8640      ;;
8641    esac
8642    lt_cv_with_aix_soname=$with_aix_soname
8643else case e in #(
8644  e) if test ${lt_cv_with_aix_soname+y}
8645then :
8646  printf %s "(cached) " >&6
8647else case e in #(
8648  e) lt_cv_with_aix_soname=aix ;;
8649esac
8650fi
8651
8652    with_aix_soname=$lt_cv_with_aix_soname ;;
8653esac
8654fi
8655
8656  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8657printf "%s\n" "$with_aix_soname" >&6; }
8658  if test aix != "$with_aix_soname"; then
8659    # For the AIX way of multilib, we name the shared archive member
8660    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8661    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8662    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8663    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8664    if test 64 = "${OBJECT_MODE-32}"; then
8665      shared_archive_member_spec=shr_64
8666    else
8667      shared_archive_member_spec=shr
8668    fi
8669  fi
8670  ;;
8671*)
8672  with_aix_soname=aix
8673  ;;
8674esac
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685# This can be used to rebuild libtool when needed
8686LIBTOOL_DEPS=$ltmain
8687
8688# Always use our own libtool.
8689LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720test -z "$LN_S" && LN_S="ln -s"
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735if test -n "${ZSH_VERSION+set}"; then
8736   setopt NO_GLOB_SUBST
8737fi
8738
8739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8740printf %s "checking for objdir... " >&6; }
8741if test ${lt_cv_objdir+y}
8742then :
8743  printf %s "(cached) " >&6
8744else case e in #(
8745  e) rm -f .libs 2>/dev/null
8746mkdir .libs 2>/dev/null
8747if test -d .libs; then
8748  lt_cv_objdir=.libs
8749else
8750  # MS-DOS does not allow filenames that begin with a dot.
8751  lt_cv_objdir=_libs
8752fi
8753rmdir .libs 2>/dev/null ;;
8754esac
8755fi
8756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8757printf "%s\n" "$lt_cv_objdir" >&6; }
8758objdir=$lt_cv_objdir
8759
8760
8761
8762
8763
8764printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8765
8766
8767
8768
8769case $host_os in
8770aix3*)
8771  # AIX sometimes has problems with the GCC collect2 program.  For some
8772  # reason, if we set the COLLECT_NAMES environment variable, the problems
8773  # vanish in a puff of smoke.
8774  if test set != "${COLLECT_NAMES+set}"; then
8775    COLLECT_NAMES=
8776    export COLLECT_NAMES
8777  fi
8778  ;;
8779esac
8780
8781# Global variables:
8782ofile=libtool
8783can_build_shared=yes
8784
8785# All known linkers require a '.a' archive for static linking (except MSVC and
8786# ICC, which need '.lib').
8787libext=a
8788
8789with_gnu_ld=$lt_cv_prog_gnu_ld
8790
8791old_CC=$CC
8792old_CFLAGS=$CFLAGS
8793
8794# Set sane defaults for various variables
8795test -z "$CC" && CC=cc
8796test -z "$LTCC" && LTCC=$CC
8797test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8798test -z "$LD" && LD=ld
8799test -z "$ac_objext" && ac_objext=o
8800
8801func_cc_basename $compiler
8802cc_basename=$func_cc_basename_result
8803
8804
8805# Only perform the check for file, if the check method requires it
8806test -z "$MAGIC_CMD" && MAGIC_CMD=file
8807case $deplibs_check_method in
8808file_magic*)
8809  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8810    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8811printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8812if test ${lt_cv_path_MAGIC_CMD+y}
8813then :
8814  printf %s "(cached) " >&6
8815else case e in #(
8816  e) case $MAGIC_CMD in
8817[\\/*] |  ?:[\\/]*)
8818  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8819  ;;
8820*)
8821  lt_save_MAGIC_CMD=$MAGIC_CMD
8822  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8823  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8824  for ac_dir in $ac_dummy; do
8825    IFS=$lt_save_ifs
8826    test -z "$ac_dir" && ac_dir=.
8827    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8828      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8829      if test -n "$file_magic_test_file"; then
8830	case $deplibs_check_method in
8831	"file_magic "*)
8832	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8833	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8834	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8835	    $EGREP "$file_magic_regex" > /dev/null; then
8836	    :
8837	  else
8838	    cat <<_LT_EOF 1>&2
8839
8840*** Warning: the command libtool uses to detect shared libraries,
8841*** $file_magic_cmd, produces output that libtool cannot recognize.
8842*** The result is that libtool may fail to recognize shared libraries
8843*** as such.  This will affect the creation of libtool libraries that
8844*** depend on shared libraries, but programs linked with such libtool
8845*** libraries will work regardless of this problem.  Nevertheless, you
8846*** may want to report the problem to your system manager and/or to
8847*** bug-libtool@gnu.org
8848
8849_LT_EOF
8850	  fi ;;
8851	esac
8852      fi
8853      break
8854    fi
8855  done
8856  IFS=$lt_save_ifs
8857  MAGIC_CMD=$lt_save_MAGIC_CMD
8858  ;;
8859esac ;;
8860esac
8861fi
8862
8863MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8864if test -n "$MAGIC_CMD"; then
8865  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8866printf "%s\n" "$MAGIC_CMD" >&6; }
8867else
8868  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8869printf "%s\n" "no" >&6; }
8870fi
8871
8872
8873
8874
8875
8876if test -z "$lt_cv_path_MAGIC_CMD"; then
8877  if test -n "$ac_tool_prefix"; then
8878    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8879printf %s "checking for file... " >&6; }
8880if test ${lt_cv_path_MAGIC_CMD+y}
8881then :
8882  printf %s "(cached) " >&6
8883else case e in #(
8884  e) case $MAGIC_CMD in
8885[\\/*] |  ?:[\\/]*)
8886  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8887  ;;
8888*)
8889  lt_save_MAGIC_CMD=$MAGIC_CMD
8890  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8891  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8892  for ac_dir in $ac_dummy; do
8893    IFS=$lt_save_ifs
8894    test -z "$ac_dir" && ac_dir=.
8895    if test -f "$ac_dir/file"; then
8896      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8897      if test -n "$file_magic_test_file"; then
8898	case $deplibs_check_method in
8899	"file_magic "*)
8900	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8901	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8902	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8903	    $EGREP "$file_magic_regex" > /dev/null; then
8904	    :
8905	  else
8906	    cat <<_LT_EOF 1>&2
8907
8908*** Warning: the command libtool uses to detect shared libraries,
8909*** $file_magic_cmd, produces output that libtool cannot recognize.
8910*** The result is that libtool may fail to recognize shared libraries
8911*** as such.  This will affect the creation of libtool libraries that
8912*** depend on shared libraries, but programs linked with such libtool
8913*** libraries will work regardless of this problem.  Nevertheless, you
8914*** may want to report the problem to your system manager and/or to
8915*** bug-libtool@gnu.org
8916
8917_LT_EOF
8918	  fi ;;
8919	esac
8920      fi
8921      break
8922    fi
8923  done
8924  IFS=$lt_save_ifs
8925  MAGIC_CMD=$lt_save_MAGIC_CMD
8926  ;;
8927esac ;;
8928esac
8929fi
8930
8931MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8932if test -n "$MAGIC_CMD"; then
8933  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8934printf "%s\n" "$MAGIC_CMD" >&6; }
8935else
8936  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8937printf "%s\n" "no" >&6; }
8938fi
8939
8940
8941  else
8942    MAGIC_CMD=:
8943  fi
8944fi
8945
8946  fi
8947  ;;
8948esac
8949
8950# Use C for the default configuration in the libtool script
8951
8952lt_save_CC=$CC
8953ac_ext=c
8954ac_cpp='$CPP $CPPFLAGS'
8955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8957ac_compiler_gnu=$ac_cv_c_compiler_gnu
8958
8959
8960# Source file extension for C test sources.
8961ac_ext=c
8962
8963# Object file extension for compiled C test sources.
8964objext=o
8965objext=$objext
8966
8967# Code to be used in simple compile tests
8968lt_simple_compile_test_code="int some_variable = 0;"
8969
8970# Code to be used in simple link tests
8971lt_simple_link_test_code='int main(){return(0);}'
8972
8973
8974
8975
8976
8977
8978
8979# If no C compiler was specified, use CC.
8980LTCC=${LTCC-"$CC"}
8981
8982# If no C compiler flags were specified, use CFLAGS.
8983LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8984
8985# Allow CC to be a program name with arguments.
8986compiler=$CC
8987
8988# Save the default compiler, since it gets overwritten when the other
8989# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8990compiler_DEFAULT=$CC
8991
8992# save warnings/boilerplate of simple test code
8993ac_outfile=conftest.$ac_objext
8994echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8995eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8996_lt_compiler_boilerplate=`cat conftest.err`
8997$RM conftest*
8998
8999ac_outfile=conftest.$ac_objext
9000echo "$lt_simple_link_test_code" >conftest.$ac_ext
9001eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9002_lt_linker_boilerplate=`cat conftest.err`
9003$RM -r conftest*
9004
9005
9006## CAVEAT EMPTOR:
9007## There is no encapsulation within the following macros, do not change
9008## the running order or otherwise move them around unless you know exactly
9009## what you are doing...
9010if test -n "$compiler"; then
9011
9012lt_prog_compiler_no_builtin_flag=
9013
9014if test yes = "$GCC"; then
9015  case $cc_basename in
9016  nvcc*)
9017    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9018  *)
9019    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9020  esac
9021
9022  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9023printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9024if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9025then :
9026  printf %s "(cached) " >&6
9027else case e in #(
9028  e) lt_cv_prog_compiler_rtti_exceptions=no
9029   ac_outfile=conftest.$ac_objext
9030   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9031   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9032   # Insert the option either (1) after the last *FLAGS variable, or
9033   # (2) before a word containing "conftest.", or (3) at the end.
9034   # Note that $ac_compile itself does not contain backslashes and begins
9035   # with a dollar sign (not a hyphen), so the echo should work correctly.
9036   # The option is referenced via a variable to avoid confusing sed.
9037   lt_compile=`echo "$ac_compile" | $SED \
9038   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9039   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9040   -e 's:$: $lt_compiler_flag:'`
9041   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9042   (eval "$lt_compile" 2>conftest.err)
9043   ac_status=$?
9044   cat conftest.err >&5
9045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046   if (exit $ac_status) && test -s "$ac_outfile"; then
9047     # The compiler can only warn and ignore the option if not recognized
9048     # So say no if there are warnings other than the usual output.
9049     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9050     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9051     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9052       lt_cv_prog_compiler_rtti_exceptions=yes
9053     fi
9054   fi
9055   $RM conftest*
9056 ;;
9057esac
9058fi
9059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9060printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9061
9062if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9063    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9064else
9065    :
9066fi
9067
9068fi
9069
9070
9071
9072
9073
9074
9075  lt_prog_compiler_wl=
9076lt_prog_compiler_pic=
9077lt_prog_compiler_static=
9078
9079
9080  if test yes = "$GCC"; then
9081    lt_prog_compiler_wl='-Wl,'
9082    lt_prog_compiler_static='-static'
9083
9084    case $host_os in
9085      aix*)
9086      # All AIX code is PIC.
9087      if test ia64 = "$host_cpu"; then
9088	# AIX 5 now supports IA64 processor
9089	lt_prog_compiler_static='-Bstatic'
9090      fi
9091      lt_prog_compiler_pic='-fPIC'
9092      ;;
9093
9094    amigaos*)
9095      case $host_cpu in
9096      powerpc)
9097            # see comment about AmigaOS4 .so support
9098            lt_prog_compiler_pic='-fPIC'
9099        ;;
9100      m68k)
9101            # FIXME: we need at least 68020 code to build shared libraries, but
9102            # adding the '-m68020' flag to GCC prevents building anything better,
9103            # like '-m68040'.
9104            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9105        ;;
9106      esac
9107      ;;
9108
9109    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9110      # PIC is the default for these OSes.
9111      ;;
9112
9113    mingw* | cygwin* | pw32* | os2* | cegcc*)
9114      # This hack is so that the source file can tell whether it is being
9115      # built for inclusion in a dll (and should export symbols for example).
9116      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9117      # (--disable-auto-import) libraries
9118      lt_prog_compiler_pic='-DDLL_EXPORT'
9119      case $host_os in
9120      os2*)
9121	lt_prog_compiler_static='$wl-static'
9122	;;
9123      esac
9124      ;;
9125
9126    darwin* | rhapsody*)
9127      # PIC is the default on this platform
9128      # Common symbols not allowed in MH_DYLIB files
9129      lt_prog_compiler_pic='-fno-common'
9130      ;;
9131
9132    haiku*)
9133      # PIC is the default for Haiku.
9134      # The "-static" flag exists, but is broken.
9135      lt_prog_compiler_static=
9136      ;;
9137
9138    hpux*)
9139      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9140      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9141      # sets the default TLS model and affects inlining.
9142      case $host_cpu in
9143      hppa*64*)
9144	# +Z the default
9145	;;
9146      *)
9147	lt_prog_compiler_pic='-fPIC'
9148	;;
9149      esac
9150      ;;
9151
9152    interix[3-9]*)
9153      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9154      # Instead, we relocate shared libraries at runtime.
9155      ;;
9156
9157    msdosdjgpp*)
9158      # Just because we use GCC doesn't mean we suddenly get shared libraries
9159      # on systems that don't support them.
9160      lt_prog_compiler_can_build_shared=no
9161      enable_shared=no
9162      ;;
9163
9164    *nto* | *qnx*)
9165      # QNX uses GNU C++, but need to define -shared option too, otherwise
9166      # it will coredump.
9167      lt_prog_compiler_pic='-fPIC -shared'
9168      ;;
9169
9170    sysv4*MP*)
9171      if test -d /usr/nec; then
9172	lt_prog_compiler_pic=-Kconform_pic
9173      fi
9174      ;;
9175
9176    *)
9177      lt_prog_compiler_pic='-fPIC'
9178      ;;
9179    esac
9180
9181    case $cc_basename in
9182    nvcc*) # Cuda Compiler Driver 2.2
9183      lt_prog_compiler_wl='-Xlinker '
9184      if test -n "$lt_prog_compiler_pic"; then
9185        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9186      fi
9187      ;;
9188    esac
9189  else
9190    # PORTME Check for flag to pass linker flags through the system compiler.
9191    case $host_os in
9192    aix*)
9193      lt_prog_compiler_wl='-Wl,'
9194      if test ia64 = "$host_cpu"; then
9195	# AIX 5 now supports IA64 processor
9196	lt_prog_compiler_static='-Bstatic'
9197      else
9198	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9199      fi
9200      ;;
9201
9202    darwin* | rhapsody*)
9203      # PIC is the default on this platform
9204      # Common symbols not allowed in MH_DYLIB files
9205      lt_prog_compiler_pic='-fno-common'
9206      case $cc_basename in
9207      nagfor*)
9208        # NAG Fortran compiler
9209        lt_prog_compiler_wl='-Wl,-Wl,,'
9210        lt_prog_compiler_pic='-PIC'
9211        lt_prog_compiler_static='-Bstatic'
9212        ;;
9213      esac
9214      ;;
9215
9216    mingw* | cygwin* | pw32* | os2* | cegcc*)
9217      # This hack is so that the source file can tell whether it is being
9218      # built for inclusion in a dll (and should export symbols for example).
9219      lt_prog_compiler_pic='-DDLL_EXPORT'
9220      case $host_os in
9221      os2*)
9222	lt_prog_compiler_static='$wl-static'
9223	;;
9224      esac
9225      ;;
9226
9227    hpux9* | hpux10* | hpux11*)
9228      lt_prog_compiler_wl='-Wl,'
9229      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9230      # not for PA HP-UX.
9231      case $host_cpu in
9232      hppa*64*|ia64*)
9233	# +Z the default
9234	;;
9235      *)
9236	lt_prog_compiler_pic='+Z'
9237	;;
9238      esac
9239      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9240      lt_prog_compiler_static='$wl-a ${wl}archive'
9241      ;;
9242
9243    irix5* | irix6* | nonstopux*)
9244      lt_prog_compiler_wl='-Wl,'
9245      # PIC (with -KPIC) is the default.
9246      lt_prog_compiler_static='-non_shared'
9247      ;;
9248
9249    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9250      case $cc_basename in
9251      # old Intel for x86_64, which still supported -KPIC.
9252      ecc*)
9253	lt_prog_compiler_wl='-Wl,'
9254	lt_prog_compiler_pic='-KPIC'
9255	lt_prog_compiler_static='-static'
9256        ;;
9257      # icc used to be incompatible with GCC.
9258      # ICC 10 doesn't accept -KPIC any more.
9259      icc* | ifort*)
9260	lt_prog_compiler_wl='-Wl,'
9261	lt_prog_compiler_pic='-fPIC'
9262	lt_prog_compiler_static='-static'
9263        ;;
9264      # Lahey Fortran 8.1.
9265      lf95*)
9266	lt_prog_compiler_wl='-Wl,'
9267	lt_prog_compiler_pic='--shared'
9268	lt_prog_compiler_static='--static'
9269	;;
9270      nagfor*)
9271	# NAG Fortran compiler
9272	lt_prog_compiler_wl='-Wl,-Wl,,'
9273	lt_prog_compiler_pic='-PIC'
9274	lt_prog_compiler_static='-Bstatic'
9275	;;
9276      tcc*)
9277	# Fabrice Bellard et al's Tiny C Compiler
9278	lt_prog_compiler_wl='-Wl,'
9279	lt_prog_compiler_pic='-fPIC'
9280	lt_prog_compiler_static='-static'
9281	;;
9282      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9283        # Portland Group compilers (*not* the Pentium gcc compiler,
9284	# which looks to be a dead project)
9285	lt_prog_compiler_wl='-Wl,'
9286	lt_prog_compiler_pic='-fpic'
9287	lt_prog_compiler_static='-Bstatic'
9288        ;;
9289      ccc*)
9290        lt_prog_compiler_wl='-Wl,'
9291        # All Alpha code is PIC.
9292        lt_prog_compiler_static='-non_shared'
9293        ;;
9294      xl* | bgxl* | bgf* | mpixl*)
9295	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9296	lt_prog_compiler_wl='-Wl,'
9297	lt_prog_compiler_pic='-qpic'
9298	lt_prog_compiler_static='-qstaticlink'
9299	;;
9300      *)
9301	case `$CC -V 2>&1 | $SED 5q` in
9302	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9303	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9304	  lt_prog_compiler_pic='-KPIC'
9305	  lt_prog_compiler_static='-Bstatic'
9306	  lt_prog_compiler_wl=''
9307	  ;;
9308	*Sun\ F* | *Sun*Fortran*)
9309	  lt_prog_compiler_pic='-KPIC'
9310	  lt_prog_compiler_static='-Bstatic'
9311	  lt_prog_compiler_wl='-Qoption ld '
9312	  ;;
9313	*Sun\ C*)
9314	  # Sun C 5.9
9315	  lt_prog_compiler_pic='-KPIC'
9316	  lt_prog_compiler_static='-Bstatic'
9317	  lt_prog_compiler_wl='-Wl,'
9318	  ;;
9319        *Intel*\ [CF]*Compiler*)
9320	  lt_prog_compiler_wl='-Wl,'
9321	  lt_prog_compiler_pic='-fPIC'
9322	  lt_prog_compiler_static='-static'
9323	  ;;
9324	*Portland\ Group*)
9325	  lt_prog_compiler_wl='-Wl,'
9326	  lt_prog_compiler_pic='-fpic'
9327	  lt_prog_compiler_static='-Bstatic'
9328	  ;;
9329	esac
9330	;;
9331      esac
9332      ;;
9333
9334    newsos6)
9335      lt_prog_compiler_pic='-KPIC'
9336      lt_prog_compiler_static='-Bstatic'
9337      ;;
9338
9339    *nto* | *qnx*)
9340      # QNX uses GNU C++, but need to define -shared option too, otherwise
9341      # it will coredump.
9342      lt_prog_compiler_pic='-fPIC -shared'
9343      ;;
9344
9345    osf3* | osf4* | osf5*)
9346      lt_prog_compiler_wl='-Wl,'
9347      # All OSF/1 code is PIC.
9348      lt_prog_compiler_static='-non_shared'
9349      ;;
9350
9351    rdos*)
9352      lt_prog_compiler_static='-non_shared'
9353      ;;
9354
9355    solaris*)
9356      lt_prog_compiler_pic='-KPIC'
9357      lt_prog_compiler_static='-Bstatic'
9358      case $cc_basename in
9359      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9360	lt_prog_compiler_wl='-Qoption ld ';;
9361      *)
9362	lt_prog_compiler_wl='-Wl,';;
9363      esac
9364      ;;
9365
9366    sunos4*)
9367      lt_prog_compiler_wl='-Qoption ld '
9368      lt_prog_compiler_pic='-PIC'
9369      lt_prog_compiler_static='-Bstatic'
9370      ;;
9371
9372    sysv4 | sysv4.2uw2* | sysv4.3*)
9373      lt_prog_compiler_wl='-Wl,'
9374      lt_prog_compiler_pic='-KPIC'
9375      lt_prog_compiler_static='-Bstatic'
9376      ;;
9377
9378    sysv4*MP*)
9379      if test -d /usr/nec; then
9380	lt_prog_compiler_pic='-Kconform_pic'
9381	lt_prog_compiler_static='-Bstatic'
9382      fi
9383      ;;
9384
9385    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9386      lt_prog_compiler_wl='-Wl,'
9387      lt_prog_compiler_pic='-KPIC'
9388      lt_prog_compiler_static='-Bstatic'
9389      ;;
9390
9391    unicos*)
9392      lt_prog_compiler_wl='-Wl,'
9393      lt_prog_compiler_can_build_shared=no
9394      ;;
9395
9396    uts4*)
9397      lt_prog_compiler_pic='-pic'
9398      lt_prog_compiler_static='-Bstatic'
9399      ;;
9400
9401    *)
9402      lt_prog_compiler_can_build_shared=no
9403      ;;
9404    esac
9405  fi
9406
9407case $host_os in
9408  # For platforms that do not support PIC, -DPIC is meaningless:
9409  *djgpp*)
9410    lt_prog_compiler_pic=
9411    ;;
9412  *)
9413    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9414    ;;
9415esac
9416
9417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9418printf %s "checking for $compiler option to produce PIC... " >&6; }
9419if test ${lt_cv_prog_compiler_pic+y}
9420then :
9421  printf %s "(cached) " >&6
9422else case e in #(
9423  e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9424esac
9425fi
9426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9427printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9428lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9429
9430#
9431# Check to make sure the PIC flag actually works.
9432#
9433if test -n "$lt_prog_compiler_pic"; then
9434  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9435printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9436if test ${lt_cv_prog_compiler_pic_works+y}
9437then :
9438  printf %s "(cached) " >&6
9439else case e in #(
9440  e) lt_cv_prog_compiler_pic_works=no
9441   ac_outfile=conftest.$ac_objext
9442   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9443   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9444   # Insert the option either (1) after the last *FLAGS variable, or
9445   # (2) before a word containing "conftest.", or (3) at the end.
9446   # Note that $ac_compile itself does not contain backslashes and begins
9447   # with a dollar sign (not a hyphen), so the echo should work correctly.
9448   # The option is referenced via a variable to avoid confusing sed.
9449   lt_compile=`echo "$ac_compile" | $SED \
9450   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9451   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9452   -e 's:$: $lt_compiler_flag:'`
9453   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9454   (eval "$lt_compile" 2>conftest.err)
9455   ac_status=$?
9456   cat conftest.err >&5
9457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458   if (exit $ac_status) && test -s "$ac_outfile"; then
9459     # The compiler can only warn and ignore the option if not recognized
9460     # So say no if there are warnings other than the usual output.
9461     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9462     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9463     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9464       lt_cv_prog_compiler_pic_works=yes
9465     fi
9466   fi
9467   $RM conftest*
9468 ;;
9469esac
9470fi
9471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9472printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9473
9474if test yes = "$lt_cv_prog_compiler_pic_works"; then
9475    case $lt_prog_compiler_pic in
9476     "" | " "*) ;;
9477     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9478     esac
9479else
9480    lt_prog_compiler_pic=
9481     lt_prog_compiler_can_build_shared=no
9482fi
9483
9484fi
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496#
9497# Check to make sure the static flag actually works.
9498#
9499wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9501printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9502if test ${lt_cv_prog_compiler_static_works+y}
9503then :
9504  printf %s "(cached) " >&6
9505else case e in #(
9506  e) lt_cv_prog_compiler_static_works=no
9507   save_LDFLAGS=$LDFLAGS
9508   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9509   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9510   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9511     # The linker can only warn and ignore the option if not recognized
9512     # So say no if there are warnings
9513     if test -s conftest.err; then
9514       # Append any errors to the config.log.
9515       cat conftest.err 1>&5
9516       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9517       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9518       if diff conftest.exp conftest.er2 >/dev/null; then
9519         lt_cv_prog_compiler_static_works=yes
9520       fi
9521     else
9522       lt_cv_prog_compiler_static_works=yes
9523     fi
9524   fi
9525   $RM -r conftest*
9526   LDFLAGS=$save_LDFLAGS
9527 ;;
9528esac
9529fi
9530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9531printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9532
9533if test yes = "$lt_cv_prog_compiler_static_works"; then
9534    :
9535else
9536    lt_prog_compiler_static=
9537fi
9538
9539
9540
9541
9542
9543
9544
9545  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9546printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9547if test ${lt_cv_prog_compiler_c_o+y}
9548then :
9549  printf %s "(cached) " >&6
9550else case e in #(
9551  e) lt_cv_prog_compiler_c_o=no
9552   $RM -r conftest 2>/dev/null
9553   mkdir conftest
9554   cd conftest
9555   mkdir out
9556   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9557
9558   lt_compiler_flag="-o out/conftest2.$ac_objext"
9559   # Insert the option either (1) after the last *FLAGS variable, or
9560   # (2) before a word containing "conftest.", or (3) at the end.
9561   # Note that $ac_compile itself does not contain backslashes and begins
9562   # with a dollar sign (not a hyphen), so the echo should work correctly.
9563   lt_compile=`echo "$ac_compile" | $SED \
9564   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9565   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9566   -e 's:$: $lt_compiler_flag:'`
9567   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9568   (eval "$lt_compile" 2>out/conftest.err)
9569   ac_status=$?
9570   cat out/conftest.err >&5
9571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9573   then
9574     # The compiler can only warn and ignore the option if not recognized
9575     # So say no if there are warnings
9576     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9577     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9578     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9579       lt_cv_prog_compiler_c_o=yes
9580     fi
9581   fi
9582   chmod u+w . 2>&5
9583   $RM conftest*
9584   # SGI C++ compiler will create directory out/ii_files/ for
9585   # template instantiation
9586   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9587   $RM out/* && rmdir out
9588   cd ..
9589   $RM -r conftest
9590   $RM conftest*
9591 ;;
9592esac
9593fi
9594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9595printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9596
9597
9598
9599
9600
9601
9602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9603printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9604if test ${lt_cv_prog_compiler_c_o+y}
9605then :
9606  printf %s "(cached) " >&6
9607else case e in #(
9608  e) lt_cv_prog_compiler_c_o=no
9609   $RM -r conftest 2>/dev/null
9610   mkdir conftest
9611   cd conftest
9612   mkdir out
9613   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9614
9615   lt_compiler_flag="-o out/conftest2.$ac_objext"
9616   # Insert the option either (1) after the last *FLAGS variable, or
9617   # (2) before a word containing "conftest.", or (3) at the end.
9618   # Note that $ac_compile itself does not contain backslashes and begins
9619   # with a dollar sign (not a hyphen), so the echo should work correctly.
9620   lt_compile=`echo "$ac_compile" | $SED \
9621   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9622   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9623   -e 's:$: $lt_compiler_flag:'`
9624   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9625   (eval "$lt_compile" 2>out/conftest.err)
9626   ac_status=$?
9627   cat out/conftest.err >&5
9628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9630   then
9631     # The compiler can only warn and ignore the option if not recognized
9632     # So say no if there are warnings
9633     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9634     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9635     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9636       lt_cv_prog_compiler_c_o=yes
9637     fi
9638   fi
9639   chmod u+w . 2>&5
9640   $RM conftest*
9641   # SGI C++ compiler will create directory out/ii_files/ for
9642   # template instantiation
9643   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9644   $RM out/* && rmdir out
9645   cd ..
9646   $RM -r conftest
9647   $RM conftest*
9648 ;;
9649esac
9650fi
9651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9652printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9653
9654
9655
9656
9657hard_links=nottested
9658if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9659  # do not overwrite the value of need_locks provided by the user
9660  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9661printf %s "checking if we can lock with hard links... " >&6; }
9662  hard_links=yes
9663  $RM conftest*
9664  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9665  touch conftest.a
9666  ln conftest.a conftest.b 2>&5 || hard_links=no
9667  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9668  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9669printf "%s\n" "$hard_links" >&6; }
9670  if test no = "$hard_links"; then
9671    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9672printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9673    need_locks=warn
9674  fi
9675else
9676  need_locks=no
9677fi
9678
9679
9680
9681
9682
9683
9684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9685printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9686
9687  runpath_var=
9688  allow_undefined_flag=
9689  always_export_symbols=no
9690  archive_cmds=
9691  archive_expsym_cmds=
9692  compiler_needs_object=no
9693  enable_shared_with_static_runtimes=no
9694  export_dynamic_flag_spec=
9695  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9696  hardcode_automatic=no
9697  hardcode_direct=no
9698  hardcode_direct_absolute=no
9699  hardcode_libdir_flag_spec=
9700  hardcode_libdir_separator=
9701  hardcode_minus_L=no
9702  hardcode_shlibpath_var=unsupported
9703  inherit_rpath=no
9704  link_all_deplibs=unknown
9705  module_cmds=
9706  module_expsym_cmds=
9707  old_archive_from_new_cmds=
9708  old_archive_from_expsyms_cmds=
9709  thread_safe_flag_spec=
9710  whole_archive_flag_spec=
9711  # include_expsyms should be a list of space-separated symbols to be *always*
9712  # included in the symbol list
9713  include_expsyms=
9714  # exclude_expsyms can be an extended regexp of symbols to exclude
9715  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9716  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9717  # as well as any symbol that contains 'd'.
9718  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9719  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9720  # platforms (ab)use it in PIC code, but their linkers get confused if
9721  # the symbol is explicitly referenced.  Since portable code cannot
9722  # rely on this symbol name, it's probably fine to never include it in
9723  # preloaded symbol tables.
9724  # Exclude shared library initialization/finalization symbols.
9725  extract_expsyms_cmds=
9726
9727  case $host_os in
9728  cygwin* | mingw* | pw32* | cegcc*)
9729    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9730    # When not using gcc, we currently assume that we are using
9731    # Microsoft Visual C++ or Intel C++ Compiler.
9732    if test yes != "$GCC"; then
9733      with_gnu_ld=no
9734    fi
9735    ;;
9736  interix*)
9737    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9738    with_gnu_ld=yes
9739    ;;
9740  openbsd* | bitrig*)
9741    with_gnu_ld=no
9742    ;;
9743  esac
9744
9745  ld_shlibs=yes
9746
9747  # On some targets, GNU ld is compatible enough with the native linker
9748  # that we're better off using the native interface for both.
9749  lt_use_gnu_ld_interface=no
9750  if test yes = "$with_gnu_ld"; then
9751    case $host_os in
9752      aix*)
9753	# The AIX port of GNU ld has always aspired to compatibility
9754	# with the native linker.  However, as the warning in the GNU ld
9755	# block says, versions before 2.19.5* couldn't really create working
9756	# shared libraries, regardless of the interface used.
9757	case `$LD -v 2>&1` in
9758	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9759	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9760	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9761	  *)
9762	    lt_use_gnu_ld_interface=yes
9763	    ;;
9764	esac
9765	;;
9766      *)
9767	lt_use_gnu_ld_interface=yes
9768	;;
9769    esac
9770  fi
9771
9772  if test yes = "$lt_use_gnu_ld_interface"; then
9773    # If archive_cmds runs LD, not CC, wlarc should be empty
9774    wlarc='$wl'
9775
9776    # Set some defaults for GNU ld with shared library support. These
9777    # are reset later if shared libraries are not supported. Putting them
9778    # here allows them to be overridden if necessary.
9779    runpath_var=LD_RUN_PATH
9780    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9781    export_dynamic_flag_spec='$wl--export-dynamic'
9782    # ancient GNU ld didn't support --whole-archive et. al.
9783    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9784      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9785    else
9786      whole_archive_flag_spec=
9787    fi
9788    supports_anon_versioning=no
9789    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9790      *GNU\ gold*) supports_anon_versioning=yes ;;
9791      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9792      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9793      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9794      *\ 2.11.*) ;; # other 2.11 versions
9795      *) supports_anon_versioning=yes ;;
9796    esac
9797
9798    # See if GNU ld supports shared libraries.
9799    case $host_os in
9800    aix[3-9]*)
9801      # On AIX/PPC, the GNU linker is very broken
9802      if test ia64 != "$host_cpu"; then
9803	ld_shlibs=no
9804	cat <<_LT_EOF 1>&2
9805
9806*** Warning: the GNU linker, at least up to release 2.19, is reported
9807*** to be unable to reliably create shared libraries on AIX.
9808*** Therefore, libtool is disabling shared libraries support.  If you
9809*** really care for shared libraries, you may want to install binutils
9810*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9811*** You will then need to restart the configuration process.
9812
9813_LT_EOF
9814      fi
9815      ;;
9816
9817    amigaos*)
9818      case $host_cpu in
9819      powerpc)
9820            # see comment about AmigaOS4 .so support
9821            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9822            archive_expsym_cmds=''
9823        ;;
9824      m68k)
9825            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)'
9826            hardcode_libdir_flag_spec='-L$libdir'
9827            hardcode_minus_L=yes
9828        ;;
9829      esac
9830      ;;
9831
9832    beos*)
9833      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9834	allow_undefined_flag=unsupported
9835	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9836	# support --undefined.  This deserves some investigation.  FIXME
9837	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9838      else
9839	ld_shlibs=no
9840      fi
9841      ;;
9842
9843    cygwin* | mingw* | pw32* | cegcc*)
9844      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9845      # as there is no search path for DLLs.
9846      hardcode_libdir_flag_spec='-L$libdir'
9847      export_dynamic_flag_spec='$wl--export-all-symbols'
9848      allow_undefined_flag=unsupported
9849      always_export_symbols=no
9850      enable_shared_with_static_runtimes=yes
9851      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'
9852      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9853
9854      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9855        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9856	# If the export-symbols file already is a .def file, use it as
9857	# is; otherwise, prepend EXPORTS...
9858	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9859          cp $export_symbols $output_objdir/$soname.def;
9860        else
9861          echo EXPORTS > $output_objdir/$soname.def;
9862          cat $export_symbols >> $output_objdir/$soname.def;
9863        fi~
9864        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9865      else
9866	ld_shlibs=no
9867      fi
9868      ;;
9869
9870    haiku*)
9871      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9872      link_all_deplibs=yes
9873      ;;
9874
9875    os2*)
9876      hardcode_libdir_flag_spec='-L$libdir'
9877      hardcode_minus_L=yes
9878      allow_undefined_flag=unsupported
9879      shrext_cmds=.dll
9880      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9881	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9882	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9883	$ECHO EXPORTS >> $output_objdir/$libname.def~
9884	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9885	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9886	emximp -o $lib $output_objdir/$libname.def'
9887      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9888	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9889	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9890	$ECHO EXPORTS >> $output_objdir/$libname.def~
9891	prefix_cmds="$SED"~
9892	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9893	  prefix_cmds="$prefix_cmds -e 1d";
9894	fi~
9895	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9896	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9897	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9898	emximp -o $lib $output_objdir/$libname.def'
9899      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9900      enable_shared_with_static_runtimes=yes
9901      file_list_spec='@'
9902      ;;
9903
9904    interix[3-9]*)
9905      hardcode_direct=no
9906      hardcode_shlibpath_var=no
9907      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9908      export_dynamic_flag_spec='$wl-E'
9909      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9910      # Instead, shared libraries are loaded at an image base (0x10000000 by
9911      # default) and relocated if they conflict, which is a slow very memory
9912      # consuming and fragmenting process.  To avoid this, we pick a random,
9913      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9914      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9915      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9916      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'
9917      ;;
9918
9919    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9920      tmp_diet=no
9921      if test linux-dietlibc = "$host_os"; then
9922	case $cc_basename in
9923	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9924	esac
9925      fi
9926      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9927	 && test no = "$tmp_diet"
9928      then
9929	tmp_addflag=' $pic_flag'
9930	tmp_sharedflag='-shared'
9931	case $cc_basename,$host_cpu in
9932        pgcc*)				# Portland Group C compiler
9933	  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'
9934	  tmp_addflag=' $pic_flag'
9935	  ;;
9936	pgf77* | pgf90* | pgf95* | pgfortran*)
9937					# Portland Group f77 and f90 compilers
9938	  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'
9939	  tmp_addflag=' $pic_flag -Mnomain' ;;
9940	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9941	  tmp_addflag=' -i_dynamic' ;;
9942	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9943	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9944	ifc* | ifort*)			# Intel Fortran compiler
9945	  tmp_addflag=' -nofor_main' ;;
9946	lf95*)				# Lahey Fortran 8.1
9947	  whole_archive_flag_spec=
9948	  tmp_sharedflag='--shared' ;;
9949        nagfor*)                        # NAGFOR 5.3
9950          tmp_sharedflag='-Wl,-shared' ;;
9951	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9952	  tmp_sharedflag='-qmkshrobj'
9953	  tmp_addflag= ;;
9954	nvcc*)	# Cuda Compiler Driver 2.2
9955	  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'
9956	  compiler_needs_object=yes
9957	  ;;
9958	esac
9959	case `$CC -V 2>&1 | $SED 5q` in
9960	*Sun\ C*)			# Sun C 5.9
9961	  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'
9962	  compiler_needs_object=yes
9963	  tmp_sharedflag='-G' ;;
9964	*Sun\ F*)			# Sun Fortran 8.3
9965	  tmp_sharedflag='-G' ;;
9966	esac
9967	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9968
9969        if test yes = "$supports_anon_versioning"; then
9970          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9971            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9972            echo "local: *; };" >> $output_objdir/$libname.ver~
9973            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9974        fi
9975
9976	case $cc_basename in
9977	tcc*)
9978	  export_dynamic_flag_spec='-rdynamic'
9979	  ;;
9980	xlf* | bgf* | bgxlf* | mpixlf*)
9981	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9982	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9983	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9984	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9985	  if test yes = "$supports_anon_versioning"; then
9986	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9987              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9988              echo "local: *; };" >> $output_objdir/$libname.ver~
9989              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9990	  fi
9991	  ;;
9992	esac
9993      else
9994        ld_shlibs=no
9995      fi
9996      ;;
9997
9998    netbsd*)
9999      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10000	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10001	wlarc=
10002      else
10003	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10004	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10005      fi
10006      ;;
10007
10008    solaris*)
10009      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10010	ld_shlibs=no
10011	cat <<_LT_EOF 1>&2
10012
10013*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10014*** create shared libraries on Solaris systems.  Therefore, libtool
10015*** is disabling shared libraries support.  We urge you to upgrade GNU
10016*** binutils to release 2.9.1 or newer.  Another option is to modify
10017*** your PATH or compiler configuration so that the native linker is
10018*** used, and then restart.
10019
10020_LT_EOF
10021      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10022	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10023	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10024      else
10025	ld_shlibs=no
10026      fi
10027      ;;
10028
10029    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10030      case `$LD -v 2>&1` in
10031        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10032	ld_shlibs=no
10033	cat <<_LT_EOF 1>&2
10034
10035*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10036*** reliably create shared libraries on SCO systems.  Therefore, libtool
10037*** is disabling shared libraries support.  We urge you to upgrade GNU
10038*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10039*** your PATH or compiler configuration so that the native linker is
10040*** used, and then restart.
10041
10042_LT_EOF
10043	;;
10044	*)
10045	  # For security reasons, it is highly recommended that you always
10046	  # use absolute paths for naming shared libraries, and exclude the
10047	  # DT_RUNPATH tag from executables and libraries.  But doing so
10048	  # requires that you compile everything twice, which is a pain.
10049	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10050	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10051	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10052	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10053	  else
10054	    ld_shlibs=no
10055	  fi
10056	;;
10057      esac
10058      ;;
10059
10060    sunos4*)
10061      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10062      wlarc=
10063      hardcode_direct=yes
10064      hardcode_shlibpath_var=no
10065      ;;
10066
10067    *)
10068      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10069	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10070	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10071      else
10072	ld_shlibs=no
10073      fi
10074      ;;
10075    esac
10076
10077    if test no = "$ld_shlibs"; then
10078      runpath_var=
10079      hardcode_libdir_flag_spec=
10080      export_dynamic_flag_spec=
10081      whole_archive_flag_spec=
10082    fi
10083  else
10084    # PORTME fill in a description of your system's linker (not GNU ld)
10085    case $host_os in
10086    aix3*)
10087      allow_undefined_flag=unsupported
10088      always_export_symbols=yes
10089      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'
10090      # Note: this linker hardcodes the directories in LIBPATH if there
10091      # are no directories specified by -L.
10092      hardcode_minus_L=yes
10093      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10094	# Neither direct hardcoding nor static linking is supported with a
10095	# broken collect2.
10096	hardcode_direct=unsupported
10097      fi
10098      ;;
10099
10100    aix[4-9]*)
10101      if test ia64 = "$host_cpu"; then
10102	# On IA64, the linker does run time linking by default, so we don't
10103	# have to do anything special.
10104	aix_use_runtimelinking=no
10105	exp_sym_flag='-Bexport'
10106	no_entry_flag=
10107      else
10108	# If we're using GNU nm, then we don't want the "-C" option.
10109	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10110	# Without the "-l" option, or with the "-B" option, AIX nm treats
10111	# weak defined symbols like other global defined symbols, whereas
10112	# GNU nm marks them as "W".
10113	# While the 'weak' keyword is ignored in the Export File, we need
10114	# it in the Import File for the 'aix-soname' feature, so we have
10115	# to replace the "-B" option with "-P" for AIX nm.
10116	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10117	  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'
10118	else
10119	  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'
10120	fi
10121	aix_use_runtimelinking=no
10122
10123	# Test if we are trying to use run time linking or normal
10124	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10125	# have runtime linking enabled, and use it for executables.
10126	# For shared libraries, we enable/disable runtime linking
10127	# depending on the kind of the shared library created -
10128	# when "with_aix_soname,aix_use_runtimelinking" is:
10129	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10130	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10131	#            lib.a           static archive
10132	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10133	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10134	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10135	#            lib.a(lib.so.V) shared, rtl:no
10136	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10137	#            lib.a           static archive
10138	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10139	  for ld_flag in $LDFLAGS; do
10140	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10141	    aix_use_runtimelinking=yes
10142	    break
10143	  fi
10144	  done
10145	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10146	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10147	    # so we don't have lib.a shared libs to link our executables.
10148	    # We have to force runtime linking in this case.
10149	    aix_use_runtimelinking=yes
10150	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10151	  fi
10152	  ;;
10153	esac
10154
10155	exp_sym_flag='-bexport'
10156	no_entry_flag='-bnoentry'
10157      fi
10158
10159      # When large executables or shared objects are built, AIX ld can
10160      # have problems creating the table of contents.  If linking a library
10161      # or program results in "error TOC overflow" add -mminimal-toc to
10162      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10163      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10164
10165      archive_cmds=''
10166      hardcode_direct=yes
10167      hardcode_direct_absolute=yes
10168      hardcode_libdir_separator=':'
10169      link_all_deplibs=yes
10170      file_list_spec='$wl-f,'
10171      case $with_aix_soname,$aix_use_runtimelinking in
10172      aix,*) ;; # traditional, no import file
10173      svr4,* | *,yes) # use import file
10174	# The Import File defines what to hardcode.
10175	hardcode_direct=no
10176	hardcode_direct_absolute=no
10177	;;
10178      esac
10179
10180      if test yes = "$GCC"; then
10181	case $host_os in aix4.[012]|aix4.[012].*)
10182	# We only want to do this on AIX 4.2 and lower, the check
10183	# below for broken collect2 doesn't work under 4.3+
10184	  collect2name=`$CC -print-prog-name=collect2`
10185	  if test -f "$collect2name" &&
10186	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10187	  then
10188	  # We have reworked collect2
10189	  :
10190	  else
10191	  # We have old collect2
10192	  hardcode_direct=unsupported
10193	  # It fails to find uninstalled libraries when the uninstalled
10194	  # path is not listed in the libpath.  Setting hardcode_minus_L
10195	  # to unsupported forces relinking
10196	  hardcode_minus_L=yes
10197	  hardcode_libdir_flag_spec='-L$libdir'
10198	  hardcode_libdir_separator=
10199	  fi
10200	  ;;
10201	esac
10202	shared_flag='-shared'
10203	if test yes = "$aix_use_runtimelinking"; then
10204	  shared_flag="$shared_flag "'$wl-G'
10205	fi
10206	# Need to ensure runtime linking is disabled for the traditional
10207	# shared library, or the linker may eventually find shared libraries
10208	# /with/ Import File - we do not want to mix them.
10209	shared_flag_aix='-shared'
10210	shared_flag_svr4='-shared $wl-G'
10211      else
10212	# not using gcc
10213	if test ia64 = "$host_cpu"; then
10214	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10215	# chokes on -Wl,-G. The following line is correct:
10216	  shared_flag='-G'
10217	else
10218	  if test yes = "$aix_use_runtimelinking"; then
10219	    shared_flag='$wl-G'
10220	  else
10221	    shared_flag='$wl-bM:SRE'
10222	  fi
10223	  shared_flag_aix='$wl-bM:SRE'
10224	  shared_flag_svr4='$wl-G'
10225	fi
10226      fi
10227
10228      export_dynamic_flag_spec='$wl-bexpall'
10229      # It seems that -bexpall does not export symbols beginning with
10230      # underscore (_), so it is better to generate a list of symbols to export.
10231      always_export_symbols=yes
10232      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10233	# Warning - without using the other runtime loading flags (-brtl),
10234	# -berok will link without error, but may produce a broken library.
10235	allow_undefined_flag='-berok'
10236        # Determine the default libpath from the value encoded in an
10237        # empty executable.
10238        if test set = "${lt_cv_aix_libpath+set}"; then
10239  aix_libpath=$lt_cv_aix_libpath
10240else
10241  if test ${lt_cv_aix_libpath_+y}
10242then :
10243  printf %s "(cached) " >&6
10244else case e in #(
10245  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10246/* end confdefs.h.  */
10247
10248int
10249main (void)
10250{
10251
10252  ;
10253  return 0;
10254}
10255_ACEOF
10256if ac_fn_c_try_link "$LINENO"
10257then :
10258
10259  lt_aix_libpath_sed='
10260      /Import File Strings/,/^$/ {
10261	  /^0/ {
10262	      s/^0  *\([^ ]*\) *$/\1/
10263	      p
10264	  }
10265      }'
10266  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10267  # Check for a 64-bit object if we didn't find anything.
10268  if test -z "$lt_cv_aix_libpath_"; then
10269    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10270  fi
10271fi
10272rm -f core conftest.err conftest.$ac_objext conftest.beam \
10273    conftest$ac_exeext conftest.$ac_ext
10274  if test -z "$lt_cv_aix_libpath_"; then
10275    lt_cv_aix_libpath_=/usr/lib:/lib
10276  fi
10277   ;;
10278esac
10279fi
10280
10281  aix_libpath=$lt_cv_aix_libpath_
10282fi
10283
10284        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10285        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
10286      else
10287	if test ia64 = "$host_cpu"; then
10288	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10289	  allow_undefined_flag="-z nodefs"
10290	  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"
10291	else
10292	 # Determine the default libpath from the value encoded in an
10293	 # empty executable.
10294	 if test set = "${lt_cv_aix_libpath+set}"; then
10295  aix_libpath=$lt_cv_aix_libpath
10296else
10297  if test ${lt_cv_aix_libpath_+y}
10298then :
10299  printf %s "(cached) " >&6
10300else case e in #(
10301  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10302/* end confdefs.h.  */
10303
10304int
10305main (void)
10306{
10307
10308  ;
10309  return 0;
10310}
10311_ACEOF
10312if ac_fn_c_try_link "$LINENO"
10313then :
10314
10315  lt_aix_libpath_sed='
10316      /Import File Strings/,/^$/ {
10317	  /^0/ {
10318	      s/^0  *\([^ ]*\) *$/\1/
10319	      p
10320	  }
10321      }'
10322  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10323  # Check for a 64-bit object if we didn't find anything.
10324  if test -z "$lt_cv_aix_libpath_"; then
10325    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10326  fi
10327fi
10328rm -f core conftest.err conftest.$ac_objext conftest.beam \
10329    conftest$ac_exeext conftest.$ac_ext
10330  if test -z "$lt_cv_aix_libpath_"; then
10331    lt_cv_aix_libpath_=/usr/lib:/lib
10332  fi
10333   ;;
10334esac
10335fi
10336
10337  aix_libpath=$lt_cv_aix_libpath_
10338fi
10339
10340	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10341	  # Warning - without using the other run time loading flags,
10342	  # -berok will link without error, but may produce a broken library.
10343	  no_undefined_flag=' $wl-bernotok'
10344	  allow_undefined_flag=' $wl-berok'
10345	  if test yes = "$with_gnu_ld"; then
10346	    # We only use this code for GNU lds that support --whole-archive.
10347	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10348	  else
10349	    # Exported symbols can be pulled into shared objects from archives
10350	    whole_archive_flag_spec='$convenience'
10351	  fi
10352	  archive_cmds_need_lc=yes
10353	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10354	  # -brtl affects multiple linker settings, -berok does not and is overridden later
10355	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10356	  if test svr4 != "$with_aix_soname"; then
10357	    # This is similar to how AIX traditionally builds its shared libraries.
10358	    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'
10359	  fi
10360	  if test aix != "$with_aix_soname"; then
10361	    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'
10362	  else
10363	    # used by -dlpreopen to get the symbols
10364	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10365	  fi
10366	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10367	fi
10368      fi
10369      ;;
10370
10371    amigaos*)
10372      case $host_cpu in
10373      powerpc)
10374            # see comment about AmigaOS4 .so support
10375            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10376            archive_expsym_cmds=''
10377        ;;
10378      m68k)
10379            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)'
10380            hardcode_libdir_flag_spec='-L$libdir'
10381            hardcode_minus_L=yes
10382        ;;
10383      esac
10384      ;;
10385
10386    bsdi[45]*)
10387      export_dynamic_flag_spec=-rdynamic
10388      ;;
10389
10390    cygwin* | mingw* | pw32* | cegcc*)
10391      # When not using gcc, we currently assume that we are using
10392      # Microsoft Visual C++ or Intel C++ Compiler.
10393      # hardcode_libdir_flag_spec is actually meaningless, as there is
10394      # no search path for DLLs.
10395      case $cc_basename in
10396      cl* | icl*)
10397	# Native MSVC or ICC
10398	hardcode_libdir_flag_spec=' '
10399	allow_undefined_flag=unsupported
10400	always_export_symbols=yes
10401	file_list_spec='@'
10402	# Tell ltmain to make .lib files, not .a files.
10403	libext=lib
10404	# Tell ltmain to make .dll files, not .so files.
10405	shrext_cmds=.dll
10406	# FIXME: Setting linknames here is a bad hack.
10407	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10408	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10409            cp "$export_symbols" "$output_objdir/$soname.def";
10410            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10411          else
10412            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10413          fi~
10414          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10415          linknames='
10416	# The linker will not automatically build a static lib if we build a DLL.
10417	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10418	enable_shared_with_static_runtimes=yes
10419	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10420	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10421	# Don't use ranlib
10422	old_postinstall_cmds='chmod 644 $oldlib'
10423	postlink_cmds='lt_outputfile="@OUTPUT@"~
10424          lt_tool_outputfile="@TOOL_OUTPUT@"~
10425          case $lt_outputfile in
10426            *.exe|*.EXE) ;;
10427            *)
10428              lt_outputfile=$lt_outputfile.exe
10429              lt_tool_outputfile=$lt_tool_outputfile.exe
10430              ;;
10431          esac~
10432          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10433            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10434            $RM "$lt_outputfile.manifest";
10435          fi'
10436	;;
10437      *)
10438	# Assume MSVC and ICC wrapper
10439	hardcode_libdir_flag_spec=' '
10440	allow_undefined_flag=unsupported
10441	# Tell ltmain to make .lib files, not .a files.
10442	libext=lib
10443	# Tell ltmain to make .dll files, not .so files.
10444	shrext_cmds=.dll
10445	# FIXME: Setting linknames here is a bad hack.
10446	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10447	# The linker will automatically build a .lib file if we build a DLL.
10448	old_archive_from_new_cmds='true'
10449	# FIXME: Should let the user specify the lib program.
10450	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10451	enable_shared_with_static_runtimes=yes
10452	;;
10453      esac
10454      ;;
10455
10456    darwin* | rhapsody*)
10457
10458
10459  archive_cmds_need_lc=no
10460  hardcode_direct=no
10461  hardcode_automatic=yes
10462  hardcode_shlibpath_var=unsupported
10463  if test yes = "$lt_cv_ld_force_load"; then
10464    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\"`'
10465
10466  else
10467    whole_archive_flag_spec=''
10468  fi
10469  link_all_deplibs=yes
10470  allow_undefined_flag=$_lt_dar_allow_undefined
10471  case $cc_basename in
10472     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10473     *) _lt_dar_can_shared=$GCC ;;
10474  esac
10475  if test yes = "$_lt_dar_can_shared"; then
10476    output_verbose_link_cmd=func_echo_all
10477    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10478    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10479    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"
10480    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"
10481
10482  else
10483  ld_shlibs=no
10484  fi
10485
10486      ;;
10487
10488    dgux*)
10489      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10490      hardcode_libdir_flag_spec='-L$libdir'
10491      hardcode_shlibpath_var=no
10492      ;;
10493
10494    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10495    # support.  Future versions do this automatically, but an explicit c++rt0.o
10496    # does not break anything, and helps significantly (at the cost of a little
10497    # extra space).
10498    freebsd2.2*)
10499      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10500      hardcode_libdir_flag_spec='-R$libdir'
10501      hardcode_direct=yes
10502      hardcode_shlibpath_var=no
10503      ;;
10504
10505    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10506    freebsd2.*)
10507      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10508      hardcode_direct=yes
10509      hardcode_minus_L=yes
10510      hardcode_shlibpath_var=no
10511      ;;
10512
10513    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10514    freebsd* | dragonfly* | midnightbsd*)
10515      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10516      hardcode_libdir_flag_spec='-R$libdir'
10517      hardcode_direct=yes
10518      hardcode_shlibpath_var=no
10519      ;;
10520
10521    hpux9*)
10522      if test yes = "$GCC"; then
10523	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'
10524      else
10525	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'
10526      fi
10527      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10528      hardcode_libdir_separator=:
10529      hardcode_direct=yes
10530
10531      # hardcode_minus_L: Not really in the search PATH,
10532      # but as the default location of the library.
10533      hardcode_minus_L=yes
10534      export_dynamic_flag_spec='$wl-E'
10535      ;;
10536
10537    hpux10*)
10538      if test yes,no = "$GCC,$with_gnu_ld"; then
10539	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10540      else
10541	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10542      fi
10543      if test no = "$with_gnu_ld"; then
10544	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10545	hardcode_libdir_separator=:
10546	hardcode_direct=yes
10547	hardcode_direct_absolute=yes
10548	export_dynamic_flag_spec='$wl-E'
10549	# hardcode_minus_L: Not really in the search PATH,
10550	# but as the default location of the library.
10551	hardcode_minus_L=yes
10552      fi
10553      ;;
10554
10555    hpux11*)
10556      if test yes,no = "$GCC,$with_gnu_ld"; then
10557	case $host_cpu in
10558	hppa*64*)
10559	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10560	  ;;
10561	ia64*)
10562	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10563	  ;;
10564	*)
10565	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10566	  ;;
10567	esac
10568      else
10569	case $host_cpu in
10570	hppa*64*)
10571	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10572	  ;;
10573	ia64*)
10574	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10575	  ;;
10576	*)
10577
10578	  # Older versions of the 11.00 compiler do not understand -b yet
10579	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10580	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10581printf %s "checking if $CC understands -b... " >&6; }
10582if test ${lt_cv_prog_compiler__b+y}
10583then :
10584  printf %s "(cached) " >&6
10585else case e in #(
10586  e) lt_cv_prog_compiler__b=no
10587   save_LDFLAGS=$LDFLAGS
10588   LDFLAGS="$LDFLAGS -b"
10589   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10590   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10591     # The linker can only warn and ignore the option if not recognized
10592     # So say no if there are warnings
10593     if test -s conftest.err; then
10594       # Append any errors to the config.log.
10595       cat conftest.err 1>&5
10596       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10597       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10598       if diff conftest.exp conftest.er2 >/dev/null; then
10599         lt_cv_prog_compiler__b=yes
10600       fi
10601     else
10602       lt_cv_prog_compiler__b=yes
10603     fi
10604   fi
10605   $RM -r conftest*
10606   LDFLAGS=$save_LDFLAGS
10607 ;;
10608esac
10609fi
10610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10611printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10612
10613if test yes = "$lt_cv_prog_compiler__b"; then
10614    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10615else
10616    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10617fi
10618
10619	  ;;
10620	esac
10621      fi
10622      if test no = "$with_gnu_ld"; then
10623	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10624	hardcode_libdir_separator=:
10625
10626	case $host_cpu in
10627	hppa*64*|ia64*)
10628	  hardcode_direct=no
10629	  hardcode_shlibpath_var=no
10630	  ;;
10631	*)
10632	  hardcode_direct=yes
10633	  hardcode_direct_absolute=yes
10634	  export_dynamic_flag_spec='$wl-E'
10635
10636	  # hardcode_minus_L: Not really in the search PATH,
10637	  # but as the default location of the library.
10638	  hardcode_minus_L=yes
10639	  ;;
10640	esac
10641      fi
10642      ;;
10643
10644    irix5* | irix6* | nonstopux*)
10645      if test yes = "$GCC"; then
10646	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'
10647	# Try to use the -exported_symbol ld option, if it does not
10648	# work, assume that -exports_file does not work either and
10649	# implicitly export all symbols.
10650	# This should be the same for all languages, so no per-tag cache variable.
10651	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10652printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10653if test ${lt_cv_irix_exported_symbol+y}
10654then :
10655  printf %s "(cached) " >&6
10656else case e in #(
10657  e) save_LDFLAGS=$LDFLAGS
10658	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10659	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10660/* end confdefs.h.  */
10661int foo (void) { return 0; }
10662_ACEOF
10663if ac_fn_c_try_link "$LINENO"
10664then :
10665  lt_cv_irix_exported_symbol=yes
10666else case e in #(
10667  e) lt_cv_irix_exported_symbol=no ;;
10668esac
10669fi
10670rm -f core conftest.err conftest.$ac_objext conftest.beam \
10671    conftest$ac_exeext conftest.$ac_ext
10672           LDFLAGS=$save_LDFLAGS ;;
10673esac
10674fi
10675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10676printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10677	if test yes = "$lt_cv_irix_exported_symbol"; then
10678          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'
10679	fi
10680      else
10681	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'
10682	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'
10683      fi
10684      archive_cmds_need_lc='no'
10685      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10686      hardcode_libdir_separator=:
10687      inherit_rpath=yes
10688      link_all_deplibs=yes
10689      ;;
10690
10691    linux*)
10692      case $cc_basename in
10693      tcc*)
10694	# Fabrice Bellard et al's Tiny C Compiler
10695	ld_shlibs=yes
10696	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10697	;;
10698      esac
10699      ;;
10700
10701    netbsd*)
10702      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10703	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10704      else
10705	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10706      fi
10707      hardcode_libdir_flag_spec='-R$libdir'
10708      hardcode_direct=yes
10709      hardcode_shlibpath_var=no
10710      ;;
10711
10712    newsos6)
10713      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10714      hardcode_direct=yes
10715      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10716      hardcode_libdir_separator=:
10717      hardcode_shlibpath_var=no
10718      ;;
10719
10720    *nto* | *qnx*)
10721      ;;
10722
10723    openbsd* | bitrig*)
10724      if test -f /usr/libexec/ld.so; then
10725	hardcode_direct=yes
10726	hardcode_shlibpath_var=no
10727	hardcode_direct_absolute=yes
10728	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10729	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10730	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10731	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10732	  export_dynamic_flag_spec='$wl-E'
10733	else
10734	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10735	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10736	fi
10737      else
10738	ld_shlibs=no
10739      fi
10740      ;;
10741
10742    os2*)
10743      hardcode_libdir_flag_spec='-L$libdir'
10744      hardcode_minus_L=yes
10745      allow_undefined_flag=unsupported
10746      shrext_cmds=.dll
10747      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10748	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10749	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10750	$ECHO EXPORTS >> $output_objdir/$libname.def~
10751	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10752	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10753	emximp -o $lib $output_objdir/$libname.def'
10754      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10755	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10756	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10757	$ECHO EXPORTS >> $output_objdir/$libname.def~
10758	prefix_cmds="$SED"~
10759	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10760	  prefix_cmds="$prefix_cmds -e 1d";
10761	fi~
10762	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10763	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10764	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10765	emximp -o $lib $output_objdir/$libname.def'
10766      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10767      enable_shared_with_static_runtimes=yes
10768      file_list_spec='@'
10769      ;;
10770
10771    osf3*)
10772      if test yes = "$GCC"; then
10773	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10774	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'
10775      else
10776	allow_undefined_flag=' -expect_unresolved \*'
10777	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'
10778      fi
10779      archive_cmds_need_lc='no'
10780      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10781      hardcode_libdir_separator=:
10782      ;;
10783
10784    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10785      if test yes = "$GCC"; then
10786	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10787	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'
10788	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10789      else
10790	allow_undefined_flag=' -expect_unresolved \*'
10791	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'
10792	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~
10793          $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'
10794
10795	# Both c and cxx compiler support -rpath directly
10796	hardcode_libdir_flag_spec='-rpath $libdir'
10797      fi
10798      archive_cmds_need_lc='no'
10799      hardcode_libdir_separator=:
10800      ;;
10801
10802    solaris*)
10803      no_undefined_flag=' -z defs'
10804      if test yes = "$GCC"; then
10805	wlarc='$wl'
10806	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10807	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10808          $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'
10809      else
10810	case `$CC -V 2>&1` in
10811	*"Compilers 5.0"*)
10812	  wlarc=''
10813	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10814	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10815            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10816	  ;;
10817	*)
10818	  wlarc='$wl'
10819	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10820	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10821            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10822	  ;;
10823	esac
10824      fi
10825      hardcode_libdir_flag_spec='-R$libdir'
10826      hardcode_shlibpath_var=no
10827      case $host_os in
10828      solaris2.[0-5] | solaris2.[0-5].*) ;;
10829      *)
10830	# The compiler driver will combine and reorder linker options,
10831	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10832	# but is careful enough not to reorder.
10833	# Supported since Solaris 2.6 (maybe 2.5.1?)
10834	if test yes = "$GCC"; then
10835	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10836	else
10837	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10838	fi
10839	;;
10840      esac
10841      link_all_deplibs=yes
10842      ;;
10843
10844    sunos4*)
10845      if test sequent = "$host_vendor"; then
10846	# Use $CC to link under sequent, because it throws in some extra .o
10847	# files that make .init and .fini sections work.
10848	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10849      else
10850	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10851      fi
10852      hardcode_libdir_flag_spec='-L$libdir'
10853      hardcode_direct=yes
10854      hardcode_minus_L=yes
10855      hardcode_shlibpath_var=no
10856      ;;
10857
10858    sysv4)
10859      case $host_vendor in
10860	sni)
10861	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10862	  hardcode_direct=yes # is this really true???
10863	;;
10864	siemens)
10865	  ## LD is ld it makes a PLAMLIB
10866	  ## CC just makes a GrossModule.
10867	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10868	  reload_cmds='$CC -r -o $output$reload_objs'
10869	  hardcode_direct=no
10870        ;;
10871	motorola)
10872	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10873	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10874	;;
10875      esac
10876      runpath_var='LD_RUN_PATH'
10877      hardcode_shlibpath_var=no
10878      ;;
10879
10880    sysv4.3*)
10881      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10882      hardcode_shlibpath_var=no
10883      export_dynamic_flag_spec='-Bexport'
10884      ;;
10885
10886    sysv4*MP*)
10887      if test -d /usr/nec; then
10888	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10889	hardcode_shlibpath_var=no
10890	runpath_var=LD_RUN_PATH
10891	hardcode_runpath_var=yes
10892	ld_shlibs=yes
10893      fi
10894      ;;
10895
10896    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10897      no_undefined_flag='$wl-z,text'
10898      archive_cmds_need_lc=no
10899      hardcode_shlibpath_var=no
10900      runpath_var='LD_RUN_PATH'
10901
10902      if test yes = "$GCC"; then
10903	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10904	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10905      else
10906	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10907	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10908      fi
10909      ;;
10910
10911    sysv5* | sco3.2v5* | sco5v6*)
10912      # Note: We CANNOT use -z defs as we might desire, because we do not
10913      # link with -lc, and that would cause any symbols used from libc to
10914      # always be unresolved, which means just about no library would
10915      # ever link correctly.  If we're not using GNU ld we use -z text
10916      # though, which does catch some bad symbols but isn't as heavy-handed
10917      # as -z defs.
10918      no_undefined_flag='$wl-z,text'
10919      allow_undefined_flag='$wl-z,nodefs'
10920      archive_cmds_need_lc=no
10921      hardcode_shlibpath_var=no
10922      hardcode_libdir_flag_spec='$wl-R,$libdir'
10923      hardcode_libdir_separator=':'
10924      link_all_deplibs=yes
10925      export_dynamic_flag_spec='$wl-Bexport'
10926      runpath_var='LD_RUN_PATH'
10927
10928      if test yes = "$GCC"; then
10929	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10930	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10931      else
10932	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10933	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10934      fi
10935      ;;
10936
10937    uts4*)
10938      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10939      hardcode_libdir_flag_spec='-L$libdir'
10940      hardcode_shlibpath_var=no
10941      ;;
10942
10943    *)
10944      ld_shlibs=no
10945      ;;
10946    esac
10947
10948    if test sni = "$host_vendor"; then
10949      case $host in
10950      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10951	export_dynamic_flag_spec='$wl-Blargedynsym'
10952	;;
10953      esac
10954    fi
10955  fi
10956
10957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10958printf "%s\n" "$ld_shlibs" >&6; }
10959test no = "$ld_shlibs" && can_build_shared=no
10960
10961with_gnu_ld=$with_gnu_ld
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977#
10978# Do we need to explicitly link libc?
10979#
10980case "x$archive_cmds_need_lc" in
10981x|xyes)
10982  # Assume -lc should be added
10983  archive_cmds_need_lc=yes
10984
10985  if test yes,yes = "$GCC,$enable_shared"; then
10986    case $archive_cmds in
10987    *'~'*)
10988      # FIXME: we may have to deal with multi-command sequences.
10989      ;;
10990    '$CC '*)
10991      # Test whether the compiler implicitly links with -lc since on some
10992      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10993      # to ld, don't add -lc before -lgcc.
10994      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10995printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10996if test ${lt_cv_archive_cmds_need_lc+y}
10997then :
10998  printf %s "(cached) " >&6
10999else case e in #(
11000  e) $RM conftest*
11001	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11002
11003	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11004  (eval $ac_compile) 2>&5
11005  ac_status=$?
11006  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11007  test $ac_status = 0; } 2>conftest.err; then
11008	  soname=conftest
11009	  lib=conftest
11010	  libobjs=conftest.$ac_objext
11011	  deplibs=
11012	  wl=$lt_prog_compiler_wl
11013	  pic_flag=$lt_prog_compiler_pic
11014	  compiler_flags=-v
11015	  linker_flags=-v
11016	  verstring=
11017	  output_objdir=.
11018	  libname=conftest
11019	  lt_save_allow_undefined_flag=$allow_undefined_flag
11020	  allow_undefined_flag=
11021	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11022  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11023  ac_status=$?
11024  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11025  test $ac_status = 0; }
11026	  then
11027	    lt_cv_archive_cmds_need_lc=no
11028	  else
11029	    lt_cv_archive_cmds_need_lc=yes
11030	  fi
11031	  allow_undefined_flag=$lt_save_allow_undefined_flag
11032	else
11033	  cat conftest.err 1>&5
11034	fi
11035	$RM conftest*
11036	 ;;
11037esac
11038fi
11039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11040printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11041      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11042      ;;
11043    esac
11044  fi
11045  ;;
11046esac
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11200printf %s "checking dynamic linker characteristics... " >&6; }
11201
11202if test yes = "$GCC"; then
11203  case $host_os in
11204    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11205    *) lt_awk_arg='/^libraries:/' ;;
11206  esac
11207  case $host_os in
11208    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11209    *) lt_sed_strip_eq='s|=/|/|g' ;;
11210  esac
11211  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11212  case $lt_search_path_spec in
11213  *\;*)
11214    # if the path contains ";" then we assume it to be the separator
11215    # otherwise default to the standard path separator (i.e. ":") - it is
11216    # assumed that no part of a normal pathname contains ";" but that should
11217    # okay in the real world where ";" in dirpaths is itself problematic.
11218    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11219    ;;
11220  *)
11221    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11222    ;;
11223  esac
11224  # Ok, now we have the path, separated by spaces, we can step through it
11225  # and add multilib dir if necessary...
11226  lt_tmp_lt_search_path_spec=
11227  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11228  # ...but if some path component already ends with the multilib dir we assume
11229  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11230  case "$lt_multi_os_dir; $lt_search_path_spec " in
11231  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11232    lt_multi_os_dir=
11233    ;;
11234  esac
11235  for lt_sys_path in $lt_search_path_spec; do
11236    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11237      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11238    elif test -n "$lt_multi_os_dir"; then
11239      test -d "$lt_sys_path" && \
11240	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11241    fi
11242  done
11243  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11244BEGIN {RS = " "; FS = "/|\n";} {
11245  lt_foo = "";
11246  lt_count = 0;
11247  for (lt_i = NF; lt_i > 0; lt_i--) {
11248    if ($lt_i != "" && $lt_i != ".") {
11249      if ($lt_i == "..") {
11250        lt_count++;
11251      } else {
11252        if (lt_count == 0) {
11253          lt_foo = "/" $lt_i lt_foo;
11254        } else {
11255          lt_count--;
11256        }
11257      }
11258    }
11259  }
11260  if (lt_foo != "") { lt_freq[lt_foo]++; }
11261  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11262}'`
11263  # AWK program above erroneously prepends '/' to C:/dos/paths
11264  # for these hosts.
11265  case $host_os in
11266    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11267      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11268  esac
11269  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11270else
11271  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11272fi
11273library_names_spec=
11274libname_spec='lib$name'
11275soname_spec=
11276shrext_cmds=.so
11277postinstall_cmds=
11278postuninstall_cmds=
11279finish_cmds=
11280finish_eval=
11281shlibpath_var=
11282shlibpath_overrides_runpath=unknown
11283version_type=none
11284dynamic_linker="$host_os ld.so"
11285sys_lib_dlsearch_path_spec="/lib /usr/lib"
11286need_lib_prefix=unknown
11287hardcode_into_libs=no
11288
11289# when you set need_version to no, make sure it does not cause -set_version
11290# flags to be left without arguments
11291need_version=unknown
11292
11293
11294
11295case $host_os in
11296aix3*)
11297  version_type=linux # correct to gnu/linux during the next big refactor
11298  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11299  shlibpath_var=LIBPATH
11300
11301  # AIX 3 has no versioning support, so we append a major version to the name.
11302  soname_spec='$libname$release$shared_ext$major'
11303  ;;
11304
11305aix[4-9]*)
11306  version_type=linux # correct to gnu/linux during the next big refactor
11307  need_lib_prefix=no
11308  need_version=no
11309  hardcode_into_libs=yes
11310  if test ia64 = "$host_cpu"; then
11311    # AIX 5 supports IA64
11312    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11313    shlibpath_var=LD_LIBRARY_PATH
11314  else
11315    # With GCC up to 2.95.x, collect2 would create an import file
11316    # for dependence libraries.  The import file would start with
11317    # the line '#! .'.  This would cause the generated library to
11318    # depend on '.', always an invalid library.  This was fixed in
11319    # development snapshots of GCC prior to 3.0.
11320    case $host_os in
11321      aix4 | aix4.[01] | aix4.[01].*)
11322      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11323	   echo ' yes '
11324	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11325	:
11326      else
11327	can_build_shared=no
11328      fi
11329      ;;
11330    esac
11331    # Using Import Files as archive members, it is possible to support
11332    # filename-based versioning of shared library archives on AIX. While
11333    # this would work for both with and without runtime linking, it will
11334    # prevent static linking of such archives. So we do filename-based
11335    # shared library versioning with .so extension only, which is used
11336    # when both runtime linking and shared linking is enabled.
11337    # Unfortunately, runtime linking may impact performance, so we do
11338    # not want this to be the default eventually. Also, we use the
11339    # versioned .so libs for executables only if there is the -brtl
11340    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11341    # To allow for filename-based versioning support, we need to create
11342    # libNAME.so.V as an archive file, containing:
11343    # *) an Import File, referring to the versioned filename of the
11344    #    archive as well as the shared archive member, telling the
11345    #    bitwidth (32 or 64) of that shared object, and providing the
11346    #    list of exported symbols of that shared object, eventually
11347    #    decorated with the 'weak' keyword
11348    # *) the shared object with the F_LOADONLY flag set, to really avoid
11349    #    it being seen by the linker.
11350    # At run time we better use the real file rather than another symlink,
11351    # but for link time we create the symlink libNAME.so -> libNAME.so.V
11352
11353    case $with_aix_soname,$aix_use_runtimelinking in
11354    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11355    # soname into executable. Probably we can add versioning support to
11356    # collect2, so additional links can be useful in future.
11357    aix,yes) # traditional libtool
11358      dynamic_linker='AIX unversionable lib.so'
11359      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11360      # instead of lib<name>.a to let people know that these are not
11361      # typical AIX shared libraries.
11362      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11363      ;;
11364    aix,no) # traditional AIX only
11365      dynamic_linker='AIX lib.a(lib.so.V)'
11366      # We preserve .a as extension for shared libraries through AIX4.2
11367      # and later when we are not doing run time linking.
11368      library_names_spec='$libname$release.a $libname.a'
11369      soname_spec='$libname$release$shared_ext$major'
11370      ;;
11371    svr4,*) # full svr4 only
11372      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11373      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11374      # We do not specify a path in Import Files, so LIBPATH fires.
11375      shlibpath_overrides_runpath=yes
11376      ;;
11377    *,yes) # both, prefer svr4
11378      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11379      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11380      # unpreferred sharedlib libNAME.a needs extra handling
11381      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"'
11382      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"'
11383      # We do not specify a path in Import Files, so LIBPATH fires.
11384      shlibpath_overrides_runpath=yes
11385      ;;
11386    *,no) # both, prefer aix
11387      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11388      library_names_spec='$libname$release.a $libname.a'
11389      soname_spec='$libname$release$shared_ext$major'
11390      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11391      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)'
11392      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"'
11393      ;;
11394    esac
11395    shlibpath_var=LIBPATH
11396  fi
11397  ;;
11398
11399amigaos*)
11400  case $host_cpu in
11401  powerpc)
11402    # Since July 2007 AmigaOS4 officially supports .so libraries.
11403    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11404    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11405    ;;
11406  m68k)
11407    library_names_spec='$libname.ixlibrary $libname.a'
11408    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11409    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'
11410    ;;
11411  esac
11412  ;;
11413
11414beos*)
11415  library_names_spec='$libname$shared_ext'
11416  dynamic_linker="$host_os ld.so"
11417  shlibpath_var=LIBRARY_PATH
11418  ;;
11419
11420bsdi[45]*)
11421  version_type=linux # correct to gnu/linux during the next big refactor
11422  need_version=no
11423  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11424  soname_spec='$libname$release$shared_ext$major'
11425  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11426  shlibpath_var=LD_LIBRARY_PATH
11427  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11428  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11429  # the default ld.so.conf also contains /usr/contrib/lib and
11430  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11431  # libtool to hard-code these into programs
11432  ;;
11433
11434cygwin* | mingw* | pw32* | cegcc*)
11435  version_type=windows
11436  shrext_cmds=.dll
11437  need_version=no
11438  need_lib_prefix=no
11439
11440  case $GCC,$cc_basename in
11441  yes,*)
11442    # gcc
11443    library_names_spec='$libname.dll.a'
11444    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11445    postinstall_cmds='base_file=`basename \$file`~
11446      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11447      dldir=$destdir/`dirname \$dlpath`~
11448      test -d \$dldir || mkdir -p \$dldir~
11449      $install_prog $dir/$dlname \$dldir/$dlname~
11450      chmod a+x \$dldir/$dlname~
11451      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11452        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11453      fi'
11454    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11455      dlpath=$dir/\$dldll~
11456       $RM \$dlpath'
11457    shlibpath_overrides_runpath=yes
11458
11459    case $host_os in
11460    cygwin*)
11461      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11462      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11463
11464      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11465      ;;
11466    mingw* | cegcc*)
11467      # MinGW DLLs use traditional 'lib' prefix
11468      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11469      ;;
11470    pw32*)
11471      # pw32 DLLs use 'pw' prefix rather than 'lib'
11472      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11473      ;;
11474    esac
11475    dynamic_linker='Win32 ld.exe'
11476    ;;
11477
11478  *,cl* | *,icl*)
11479    # Native MSVC or ICC
11480    libname_spec='$name'
11481    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11482    library_names_spec='$libname.dll.lib'
11483
11484    case $build_os in
11485    mingw*)
11486      sys_lib_search_path_spec=
11487      lt_save_ifs=$IFS
11488      IFS=';'
11489      for lt_path in $LIB
11490      do
11491        IFS=$lt_save_ifs
11492        # Let DOS variable expansion print the short 8.3 style file name.
11493        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11494        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11495      done
11496      IFS=$lt_save_ifs
11497      # Convert to MSYS style.
11498      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11499      ;;
11500    cygwin*)
11501      # Convert to unix form, then to dos form, then back to unix form
11502      # but this time dos style (no spaces!) so that the unix form looks
11503      # like /cygdrive/c/PROGRA~1:/cygdr...
11504      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11505      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11506      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11507      ;;
11508    *)
11509      sys_lib_search_path_spec=$LIB
11510      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11511        # It is most probably a Windows format PATH.
11512        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11513      else
11514        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11515      fi
11516      # FIXME: find the short name or the path components, as spaces are
11517      # common. (e.g. "Program Files" -> "PROGRA~1")
11518      ;;
11519    esac
11520
11521    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11522    postinstall_cmds='base_file=`basename \$file`~
11523      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11524      dldir=$destdir/`dirname \$dlpath`~
11525      test -d \$dldir || mkdir -p \$dldir~
11526      $install_prog $dir/$dlname \$dldir/$dlname'
11527    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11528      dlpath=$dir/\$dldll~
11529       $RM \$dlpath'
11530    shlibpath_overrides_runpath=yes
11531    dynamic_linker='Win32 link.exe'
11532    ;;
11533
11534  *)
11535    # Assume MSVC and ICC wrapper
11536    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11537    dynamic_linker='Win32 ld.exe'
11538    ;;
11539  esac
11540  # FIXME: first we should search . and the directory the executable is in
11541  shlibpath_var=PATH
11542  ;;
11543
11544darwin* | rhapsody*)
11545  dynamic_linker="$host_os dyld"
11546  version_type=darwin
11547  need_lib_prefix=no
11548  need_version=no
11549  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11550  soname_spec='$libname$release$major$shared_ext'
11551  shlibpath_overrides_runpath=yes
11552  shlibpath_var=DYLD_LIBRARY_PATH
11553  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11554
11555  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11556  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11557  ;;
11558
11559dgux*)
11560  version_type=linux # correct to gnu/linux during the next big refactor
11561  need_lib_prefix=no
11562  need_version=no
11563  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11564  soname_spec='$libname$release$shared_ext$major'
11565  shlibpath_var=LD_LIBRARY_PATH
11566  ;;
11567
11568freebsd* | dragonfly* | midnightbsd*)
11569  # DragonFly does not have aout.  When/if they implement a new
11570  # versioning mechanism, adjust this.
11571  if test -x /usr/bin/objformat; then
11572    objformat=`/usr/bin/objformat`
11573  else
11574    case $host_os in
11575    freebsd[23].*) objformat=aout ;;
11576    *) objformat=elf ;;
11577    esac
11578  fi
11579  version_type=freebsd-$objformat
11580  case $version_type in
11581    freebsd-elf*)
11582      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11583      soname_spec='$libname$release$shared_ext$major'
11584      need_version=no
11585      need_lib_prefix=no
11586      ;;
11587    freebsd-*)
11588      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11589      need_version=yes
11590      ;;
11591  esac
11592  shlibpath_var=LD_LIBRARY_PATH
11593  case $host_os in
11594  freebsd2.*)
11595    shlibpath_overrides_runpath=yes
11596    ;;
11597  freebsd3.[01]* | freebsdelf3.[01]*)
11598    shlibpath_overrides_runpath=yes
11599    hardcode_into_libs=yes
11600    ;;
11601  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11602  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11603    shlibpath_overrides_runpath=no
11604    hardcode_into_libs=yes
11605    ;;
11606  *) # from 4.6 on, and DragonFly
11607    shlibpath_overrides_runpath=yes
11608    hardcode_into_libs=yes
11609    ;;
11610  esac
11611  ;;
11612
11613haiku*)
11614  version_type=linux # correct to gnu/linux during the next big refactor
11615  need_lib_prefix=no
11616  need_version=no
11617  dynamic_linker="$host_os runtime_loader"
11618  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11619  soname_spec='$libname$release$shared_ext$major'
11620  shlibpath_var=LIBRARY_PATH
11621  shlibpath_overrides_runpath=no
11622  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11623  hardcode_into_libs=yes
11624  ;;
11625
11626hpux9* | hpux10* | hpux11*)
11627  # Give a soname corresponding to the major version so that dld.sl refuses to
11628  # link against other versions.
11629  version_type=sunos
11630  need_lib_prefix=no
11631  need_version=no
11632  case $host_cpu in
11633  ia64*)
11634    shrext_cmds='.so'
11635    hardcode_into_libs=yes
11636    dynamic_linker="$host_os dld.so"
11637    shlibpath_var=LD_LIBRARY_PATH
11638    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11639    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11640    soname_spec='$libname$release$shared_ext$major'
11641    if test 32 = "$HPUX_IA64_MODE"; then
11642      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11643      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11644    else
11645      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11646      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11647    fi
11648    ;;
11649  hppa*64*)
11650    shrext_cmds='.sl'
11651    hardcode_into_libs=yes
11652    dynamic_linker="$host_os dld.sl"
11653    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11654    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11655    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11656    soname_spec='$libname$release$shared_ext$major'
11657    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11658    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11659    ;;
11660  *)
11661    shrext_cmds='.sl'
11662    dynamic_linker="$host_os dld.sl"
11663    shlibpath_var=SHLIB_PATH
11664    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11665    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11666    soname_spec='$libname$release$shared_ext$major'
11667    ;;
11668  esac
11669  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11670  postinstall_cmds='chmod 555 $lib'
11671  # or fails outright, so override atomically:
11672  install_override_mode=555
11673  ;;
11674
11675interix[3-9]*)
11676  version_type=linux # correct to gnu/linux during the next big refactor
11677  need_lib_prefix=no
11678  need_version=no
11679  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11680  soname_spec='$libname$release$shared_ext$major'
11681  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11682  shlibpath_var=LD_LIBRARY_PATH
11683  shlibpath_overrides_runpath=no
11684  hardcode_into_libs=yes
11685  ;;
11686
11687irix5* | irix6* | nonstopux*)
11688  case $host_os in
11689    nonstopux*) version_type=nonstopux ;;
11690    *)
11691	if test yes = "$lt_cv_prog_gnu_ld"; then
11692		version_type=linux # correct to gnu/linux during the next big refactor
11693	else
11694		version_type=irix
11695	fi ;;
11696  esac
11697  need_lib_prefix=no
11698  need_version=no
11699  soname_spec='$libname$release$shared_ext$major'
11700  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11701  case $host_os in
11702  irix5* | nonstopux*)
11703    libsuff= shlibsuff=
11704    ;;
11705  *)
11706    case $LD in # libtool.m4 will add one of these switches to LD
11707    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11708      libsuff= shlibsuff= libmagic=32-bit;;
11709    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11710      libsuff=32 shlibsuff=N32 libmagic=N32;;
11711    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11712      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11713    *) libsuff= shlibsuff= libmagic=never-match;;
11714    esac
11715    ;;
11716  esac
11717  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11718  shlibpath_overrides_runpath=no
11719  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11720  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11721  hardcode_into_libs=yes
11722  ;;
11723
11724# No shared lib support for Linux oldld, aout, or coff.
11725linux*oldld* | linux*aout* | linux*coff*)
11726  dynamic_linker=no
11727  ;;
11728
11729linux*android*)
11730  version_type=none # Android doesn't support versioned libraries.
11731  need_lib_prefix=no
11732  need_version=no
11733  library_names_spec='$libname$release$shared_ext'
11734  soname_spec='$libname$release$shared_ext'
11735  finish_cmds=
11736  shlibpath_var=LD_LIBRARY_PATH
11737  shlibpath_overrides_runpath=yes
11738
11739  # This implies no fast_install, which is unacceptable.
11740  # Some rework will be needed to allow for fast_install
11741  # before this can be enabled.
11742  hardcode_into_libs=yes
11743
11744  dynamic_linker='Android linker'
11745  # Don't embed -rpath directories since the linker doesn't support them.
11746  hardcode_libdir_flag_spec='-L$libdir'
11747  ;;
11748
11749# This must be glibc/ELF.
11750linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11751  version_type=linux # correct to gnu/linux during the next big refactor
11752  need_lib_prefix=no
11753  need_version=no
11754  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11755  soname_spec='$libname$release$shared_ext$major'
11756  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11757  shlibpath_var=LD_LIBRARY_PATH
11758  shlibpath_overrides_runpath=no
11759
11760  # Some binutils ld are patched to set DT_RUNPATH
11761  if test ${lt_cv_shlibpath_overrides_runpath+y}
11762then :
11763  printf %s "(cached) " >&6
11764else case e in #(
11765  e) lt_cv_shlibpath_overrides_runpath=no
11766    save_LDFLAGS=$LDFLAGS
11767    save_libdir=$libdir
11768    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11769	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11770    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11771/* end confdefs.h.  */
11772
11773int
11774main (void)
11775{
11776
11777  ;
11778  return 0;
11779}
11780_ACEOF
11781if ac_fn_c_try_link "$LINENO"
11782then :
11783  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11784then :
11785  lt_cv_shlibpath_overrides_runpath=yes
11786fi
11787fi
11788rm -f core conftest.err conftest.$ac_objext conftest.beam \
11789    conftest$ac_exeext conftest.$ac_ext
11790    LDFLAGS=$save_LDFLAGS
11791    libdir=$save_libdir
11792     ;;
11793esac
11794fi
11795
11796  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11797
11798  # This implies no fast_install, which is unacceptable.
11799  # Some rework will be needed to allow for fast_install
11800  # before this can be enabled.
11801  hardcode_into_libs=yes
11802
11803  # Ideally, we could use ldconfig to report *all* directores which are
11804  # searched for libraries, however this is still not possible.  Aside from not
11805  # being certain /sbin/ldconfig is available, command
11806  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11807  # even though it is searched at run-time.  Try to do the best guess by
11808  # appending ld.so.conf contents (and includes) to the search path.
11809  if test -f /etc/ld.so.conf; then
11810    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' ' '`
11811    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11812  fi
11813
11814  # We used to test for /lib/ld.so.1 and disable shared libraries on
11815  # powerpc, because MkLinux only supported shared libraries with the
11816  # GNU dynamic linker.  Since this was broken with cross compilers,
11817  # most powerpc-linux boxes support dynamic linking these days and
11818  # people can always --disable-shared, the test was removed, and we
11819  # assume the GNU/Linux dynamic linker is in use.
11820  dynamic_linker='GNU/Linux ld.so'
11821  ;;
11822
11823netbsd*)
11824  version_type=sunos
11825  need_lib_prefix=no
11826  need_version=no
11827  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11828    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11829    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11830    dynamic_linker='NetBSD (a.out) ld.so'
11831  else
11832    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11833    soname_spec='$libname$release$shared_ext$major'
11834    dynamic_linker='NetBSD ld.elf_so'
11835  fi
11836  shlibpath_var=LD_LIBRARY_PATH
11837  shlibpath_overrides_runpath=yes
11838  hardcode_into_libs=yes
11839  ;;
11840
11841newsos6)
11842  version_type=linux # correct to gnu/linux during the next big refactor
11843  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11844  shlibpath_var=LD_LIBRARY_PATH
11845  shlibpath_overrides_runpath=yes
11846  ;;
11847
11848*nto* | *qnx*)
11849  version_type=qnx
11850  need_lib_prefix=no
11851  need_version=no
11852  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11853  soname_spec='$libname$release$shared_ext$major'
11854  shlibpath_var=LD_LIBRARY_PATH
11855  shlibpath_overrides_runpath=no
11856  hardcode_into_libs=yes
11857  dynamic_linker='ldqnx.so'
11858  ;;
11859
11860openbsd* | bitrig*)
11861  version_type=sunos
11862  sys_lib_dlsearch_path_spec=/usr/lib
11863  need_lib_prefix=no
11864  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11865    need_version=no
11866  else
11867    need_version=yes
11868  fi
11869  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11870  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11871  shlibpath_var=LD_LIBRARY_PATH
11872  shlibpath_overrides_runpath=yes
11873  ;;
11874
11875os2*)
11876  libname_spec='$name'
11877  version_type=windows
11878  shrext_cmds=.dll
11879  need_version=no
11880  need_lib_prefix=no
11881  # OS/2 can only load a DLL with a base name of 8 characters or less.
11882  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11883    v=$($ECHO $release$versuffix | tr -d .-);
11884    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11885    $ECHO $n$v`$shared_ext'
11886  library_names_spec='${libname}_dll.$libext'
11887  dynamic_linker='OS/2 ld.exe'
11888  shlibpath_var=BEGINLIBPATH
11889  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11890  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11891  postinstall_cmds='base_file=`basename \$file`~
11892    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11893    dldir=$destdir/`dirname \$dlpath`~
11894    test -d \$dldir || mkdir -p \$dldir~
11895    $install_prog $dir/$dlname \$dldir/$dlname~
11896    chmod a+x \$dldir/$dlname~
11897    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11898      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11899    fi'
11900  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11901    dlpath=$dir/\$dldll~
11902    $RM \$dlpath'
11903  ;;
11904
11905osf3* | osf4* | osf5*)
11906  version_type=osf
11907  need_lib_prefix=no
11908  need_version=no
11909  soname_spec='$libname$release$shared_ext$major'
11910  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11911  shlibpath_var=LD_LIBRARY_PATH
11912  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11913  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11914  ;;
11915
11916rdos*)
11917  dynamic_linker=no
11918  ;;
11919
11920solaris*)
11921  version_type=linux # correct to gnu/linux during the next big refactor
11922  need_lib_prefix=no
11923  need_version=no
11924  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11925  soname_spec='$libname$release$shared_ext$major'
11926  shlibpath_var=LD_LIBRARY_PATH
11927  shlibpath_overrides_runpath=yes
11928  hardcode_into_libs=yes
11929  # ldd complains unless libraries are executable
11930  postinstall_cmds='chmod +x $lib'
11931  ;;
11932
11933sunos4*)
11934  version_type=sunos
11935  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11936  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11937  shlibpath_var=LD_LIBRARY_PATH
11938  shlibpath_overrides_runpath=yes
11939  if test yes = "$with_gnu_ld"; then
11940    need_lib_prefix=no
11941  fi
11942  need_version=yes
11943  ;;
11944
11945sysv4 | sysv4.3*)
11946  version_type=linux # correct to gnu/linux during the next big refactor
11947  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11948  soname_spec='$libname$release$shared_ext$major'
11949  shlibpath_var=LD_LIBRARY_PATH
11950  case $host_vendor in
11951    sni)
11952      shlibpath_overrides_runpath=no
11953      need_lib_prefix=no
11954      runpath_var=LD_RUN_PATH
11955      ;;
11956    siemens)
11957      need_lib_prefix=no
11958      ;;
11959    motorola)
11960      need_lib_prefix=no
11961      need_version=no
11962      shlibpath_overrides_runpath=no
11963      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11964      ;;
11965  esac
11966  ;;
11967
11968sysv4*MP*)
11969  if test -d /usr/nec; then
11970    version_type=linux # correct to gnu/linux during the next big refactor
11971    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11972    soname_spec='$libname$shared_ext.$major'
11973    shlibpath_var=LD_LIBRARY_PATH
11974  fi
11975  ;;
11976
11977sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11978  version_type=sco
11979  need_lib_prefix=no
11980  need_version=no
11981  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11982  soname_spec='$libname$release$shared_ext$major'
11983  shlibpath_var=LD_LIBRARY_PATH
11984  shlibpath_overrides_runpath=yes
11985  hardcode_into_libs=yes
11986  if test yes = "$with_gnu_ld"; then
11987    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11988  else
11989    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11990    case $host_os in
11991      sco3.2v5*)
11992        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11993	;;
11994    esac
11995  fi
11996  sys_lib_dlsearch_path_spec='/usr/lib'
11997  ;;
11998
11999tpf*)
12000  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12001  version_type=linux # correct to gnu/linux during the next big refactor
12002  need_lib_prefix=no
12003  need_version=no
12004  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12005  shlibpath_var=LD_LIBRARY_PATH
12006  shlibpath_overrides_runpath=no
12007  hardcode_into_libs=yes
12008  ;;
12009
12010uts4*)
12011  version_type=linux # correct to gnu/linux during the next big refactor
12012  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12013  soname_spec='$libname$release$shared_ext$major'
12014  shlibpath_var=LD_LIBRARY_PATH
12015  ;;
12016
12017*)
12018  dynamic_linker=no
12019  ;;
12020esac
12021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12022printf "%s\n" "$dynamic_linker" >&6; }
12023test no = "$dynamic_linker" && can_build_shared=no
12024
12025variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12026if test yes = "$GCC"; then
12027  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12028fi
12029
12030if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12031  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12032fi
12033
12034if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12035  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12036fi
12037
12038# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12039configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12040
12041# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12042func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12043
12044# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12045configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12144printf %s "checking how to hardcode library paths into programs... " >&6; }
12145hardcode_action=
12146if test -n "$hardcode_libdir_flag_spec" ||
12147   test -n "$runpath_var" ||
12148   test yes = "$hardcode_automatic"; then
12149
12150  # We can hardcode non-existent directories.
12151  if test no != "$hardcode_direct" &&
12152     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12153     # have to relink, otherwise we might link with an installed library
12154     # when we should be linking with a yet-to-be-installed one
12155     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12156     test no != "$hardcode_minus_L"; then
12157    # Linking always hardcodes the temporary library directory.
12158    hardcode_action=relink
12159  else
12160    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12161    hardcode_action=immediate
12162  fi
12163else
12164  # We cannot hardcode anything, or else we can only hardcode existing
12165  # directories.
12166  hardcode_action=unsupported
12167fi
12168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12169printf "%s\n" "$hardcode_action" >&6; }
12170
12171if test relink = "$hardcode_action" ||
12172   test yes = "$inherit_rpath"; then
12173  # Fast installation is not supported
12174  enable_fast_install=no
12175elif test yes = "$shlibpath_overrides_runpath" ||
12176     test no = "$enable_shared"; then
12177  # Fast installation is not necessary
12178  enable_fast_install=needless
12179fi
12180
12181
12182
12183
12184
12185
12186  if test yes != "$enable_dlopen"; then
12187  enable_dlopen=unknown
12188  enable_dlopen_self=unknown
12189  enable_dlopen_self_static=unknown
12190else
12191  lt_cv_dlopen=no
12192  lt_cv_dlopen_libs=
12193
12194  case $host_os in
12195  beos*)
12196    lt_cv_dlopen=load_add_on
12197    lt_cv_dlopen_libs=
12198    lt_cv_dlopen_self=yes
12199    ;;
12200
12201  mingw* | pw32* | cegcc*)
12202    lt_cv_dlopen=LoadLibrary
12203    lt_cv_dlopen_libs=
12204    ;;
12205
12206  cygwin*)
12207    lt_cv_dlopen=dlopen
12208    lt_cv_dlopen_libs=
12209    ;;
12210
12211  darwin*)
12212    # if libdl is installed we need to link against it
12213    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12214printf %s "checking for dlopen in -ldl... " >&6; }
12215if test ${ac_cv_lib_dl_dlopen+y}
12216then :
12217  printf %s "(cached) " >&6
12218else case e in #(
12219  e) ac_check_lib_save_LIBS=$LIBS
12220LIBS="-ldl  $LIBS"
12221cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12222/* end confdefs.h.  */
12223
12224/* Override any GCC internal prototype to avoid an error.
12225   Use char because int might match the return type of a GCC
12226   builtin and then its argument prototype would still apply.
12227   The 'extern "C"' is for builds by C++ compilers;
12228   although this is not generally supported in C code supporting it here
12229   has little cost and some practical benefit (sr 110532).  */
12230#ifdef __cplusplus
12231extern "C"
12232#endif
12233char dlopen (void);
12234int
12235main (void)
12236{
12237return dlopen ();
12238  ;
12239  return 0;
12240}
12241_ACEOF
12242if ac_fn_c_try_link "$LINENO"
12243then :
12244  ac_cv_lib_dl_dlopen=yes
12245else case e in #(
12246  e) ac_cv_lib_dl_dlopen=no ;;
12247esac
12248fi
12249rm -f core conftest.err conftest.$ac_objext conftest.beam \
12250    conftest$ac_exeext conftest.$ac_ext
12251LIBS=$ac_check_lib_save_LIBS ;;
12252esac
12253fi
12254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12255printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12256if test "x$ac_cv_lib_dl_dlopen" = xyes
12257then :
12258  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12259else case e in #(
12260  e)
12261    lt_cv_dlopen=dyld
12262    lt_cv_dlopen_libs=
12263    lt_cv_dlopen_self=yes
12264     ;;
12265esac
12266fi
12267
12268    ;;
12269
12270  tpf*)
12271    # Don't try to run any link tests for TPF.  We know it's impossible
12272    # because TPF is a cross-compiler, and we know how we open DSOs.
12273    lt_cv_dlopen=dlopen
12274    lt_cv_dlopen_libs=
12275    lt_cv_dlopen_self=no
12276    ;;
12277
12278  *)
12279    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12280if test "x$ac_cv_func_shl_load" = xyes
12281then :
12282  lt_cv_dlopen=shl_load
12283else case e in #(
12284  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12285printf %s "checking for shl_load in -ldld... " >&6; }
12286if test ${ac_cv_lib_dld_shl_load+y}
12287then :
12288  printf %s "(cached) " >&6
12289else case e in #(
12290  e) ac_check_lib_save_LIBS=$LIBS
12291LIBS="-ldld  $LIBS"
12292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12293/* end confdefs.h.  */
12294
12295/* Override any GCC internal prototype to avoid an error.
12296   Use char because int might match the return type of a GCC
12297   builtin and then its argument prototype would still apply.
12298   The 'extern "C"' is for builds by C++ compilers;
12299   although this is not generally supported in C code supporting it here
12300   has little cost and some practical benefit (sr 110532).  */
12301#ifdef __cplusplus
12302extern "C"
12303#endif
12304char shl_load (void);
12305int
12306main (void)
12307{
12308return shl_load ();
12309  ;
12310  return 0;
12311}
12312_ACEOF
12313if ac_fn_c_try_link "$LINENO"
12314then :
12315  ac_cv_lib_dld_shl_load=yes
12316else case e in #(
12317  e) ac_cv_lib_dld_shl_load=no ;;
12318esac
12319fi
12320rm -f core conftest.err conftest.$ac_objext conftest.beam \
12321    conftest$ac_exeext conftest.$ac_ext
12322LIBS=$ac_check_lib_save_LIBS ;;
12323esac
12324fi
12325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12326printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12327if test "x$ac_cv_lib_dld_shl_load" = xyes
12328then :
12329  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12330else case e in #(
12331  e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12332if test "x$ac_cv_func_dlopen" = xyes
12333then :
12334  lt_cv_dlopen=dlopen
12335else case e in #(
12336  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12337printf %s "checking for dlopen in -ldl... " >&6; }
12338if test ${ac_cv_lib_dl_dlopen+y}
12339then :
12340  printf %s "(cached) " >&6
12341else case e in #(
12342  e) ac_check_lib_save_LIBS=$LIBS
12343LIBS="-ldl  $LIBS"
12344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345/* end confdefs.h.  */
12346
12347/* Override any GCC internal prototype to avoid an error.
12348   Use char because int might match the return type of a GCC
12349   builtin and then its argument prototype would still apply.
12350   The 'extern "C"' is for builds by C++ compilers;
12351   although this is not generally supported in C code supporting it here
12352   has little cost and some practical benefit (sr 110532).  */
12353#ifdef __cplusplus
12354extern "C"
12355#endif
12356char dlopen (void);
12357int
12358main (void)
12359{
12360return dlopen ();
12361  ;
12362  return 0;
12363}
12364_ACEOF
12365if ac_fn_c_try_link "$LINENO"
12366then :
12367  ac_cv_lib_dl_dlopen=yes
12368else case e in #(
12369  e) ac_cv_lib_dl_dlopen=no ;;
12370esac
12371fi
12372rm -f core conftest.err conftest.$ac_objext conftest.beam \
12373    conftest$ac_exeext conftest.$ac_ext
12374LIBS=$ac_check_lib_save_LIBS ;;
12375esac
12376fi
12377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12378printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12379if test "x$ac_cv_lib_dl_dlopen" = xyes
12380then :
12381  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12382else case e in #(
12383  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12384printf %s "checking for dlopen in -lsvld... " >&6; }
12385if test ${ac_cv_lib_svld_dlopen+y}
12386then :
12387  printf %s "(cached) " >&6
12388else case e in #(
12389  e) ac_check_lib_save_LIBS=$LIBS
12390LIBS="-lsvld  $LIBS"
12391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12392/* end confdefs.h.  */
12393
12394/* Override any GCC internal prototype to avoid an error.
12395   Use char because int might match the return type of a GCC
12396   builtin and then its argument prototype would still apply.
12397   The 'extern "C"' is for builds by C++ compilers;
12398   although this is not generally supported in C code supporting it here
12399   has little cost and some practical benefit (sr 110532).  */
12400#ifdef __cplusplus
12401extern "C"
12402#endif
12403char dlopen (void);
12404int
12405main (void)
12406{
12407return dlopen ();
12408  ;
12409  return 0;
12410}
12411_ACEOF
12412if ac_fn_c_try_link "$LINENO"
12413then :
12414  ac_cv_lib_svld_dlopen=yes
12415else case e in #(
12416  e) ac_cv_lib_svld_dlopen=no ;;
12417esac
12418fi
12419rm -f core conftest.err conftest.$ac_objext conftest.beam \
12420    conftest$ac_exeext conftest.$ac_ext
12421LIBS=$ac_check_lib_save_LIBS ;;
12422esac
12423fi
12424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12425printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12426if test "x$ac_cv_lib_svld_dlopen" = xyes
12427then :
12428  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12429else case e in #(
12430  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12431printf %s "checking for dld_link in -ldld... " >&6; }
12432if test ${ac_cv_lib_dld_dld_link+y}
12433then :
12434  printf %s "(cached) " >&6
12435else case e in #(
12436  e) ac_check_lib_save_LIBS=$LIBS
12437LIBS="-ldld  $LIBS"
12438cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439/* end confdefs.h.  */
12440
12441/* Override any GCC internal prototype to avoid an error.
12442   Use char because int might match the return type of a GCC
12443   builtin and then its argument prototype would still apply.
12444   The 'extern "C"' is for builds by C++ compilers;
12445   although this is not generally supported in C code supporting it here
12446   has little cost and some practical benefit (sr 110532).  */
12447#ifdef __cplusplus
12448extern "C"
12449#endif
12450char dld_link (void);
12451int
12452main (void)
12453{
12454return dld_link ();
12455  ;
12456  return 0;
12457}
12458_ACEOF
12459if ac_fn_c_try_link "$LINENO"
12460then :
12461  ac_cv_lib_dld_dld_link=yes
12462else case e in #(
12463  e) ac_cv_lib_dld_dld_link=no ;;
12464esac
12465fi
12466rm -f core conftest.err conftest.$ac_objext conftest.beam \
12467    conftest$ac_exeext conftest.$ac_ext
12468LIBS=$ac_check_lib_save_LIBS ;;
12469esac
12470fi
12471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12472printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12473if test "x$ac_cv_lib_dld_dld_link" = xyes
12474then :
12475  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12476fi
12477
12478	       ;;
12479esac
12480fi
12481
12482	     ;;
12483esac
12484fi
12485
12486	   ;;
12487esac
12488fi
12489
12490	 ;;
12491esac
12492fi
12493
12494       ;;
12495esac
12496fi
12497
12498    ;;
12499  esac
12500
12501  if test no = "$lt_cv_dlopen"; then
12502    enable_dlopen=no
12503  else
12504    enable_dlopen=yes
12505  fi
12506
12507  case $lt_cv_dlopen in
12508  dlopen)
12509    save_CPPFLAGS=$CPPFLAGS
12510    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12511
12512    save_LDFLAGS=$LDFLAGS
12513    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12514
12515    save_LIBS=$LIBS
12516    LIBS="$lt_cv_dlopen_libs $LIBS"
12517
12518    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12519printf %s "checking whether a program can dlopen itself... " >&6; }
12520if test ${lt_cv_dlopen_self+y}
12521then :
12522  printf %s "(cached) " >&6
12523else case e in #(
12524  e) 	  if test yes = "$cross_compiling"; then :
12525  lt_cv_dlopen_self=cross
12526else
12527  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12528  lt_status=$lt_dlunknown
12529  cat > conftest.$ac_ext <<_LT_EOF
12530#line $LINENO "configure"
12531#include "confdefs.h"
12532
12533#if HAVE_DLFCN_H
12534#include <dlfcn.h>
12535#endif
12536
12537#include <stdio.h>
12538
12539#ifdef RTLD_GLOBAL
12540#  define LT_DLGLOBAL		RTLD_GLOBAL
12541#else
12542#  ifdef DL_GLOBAL
12543#    define LT_DLGLOBAL		DL_GLOBAL
12544#  else
12545#    define LT_DLGLOBAL		0
12546#  endif
12547#endif
12548
12549/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12550   find out it does not work in some platform. */
12551#ifndef LT_DLLAZY_OR_NOW
12552#  ifdef RTLD_LAZY
12553#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12554#  else
12555#    ifdef DL_LAZY
12556#      define LT_DLLAZY_OR_NOW		DL_LAZY
12557#    else
12558#      ifdef RTLD_NOW
12559#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12560#      else
12561#        ifdef DL_NOW
12562#          define LT_DLLAZY_OR_NOW	DL_NOW
12563#        else
12564#          define LT_DLLAZY_OR_NOW	0
12565#        endif
12566#      endif
12567#    endif
12568#  endif
12569#endif
12570
12571/* When -fvisibility=hidden is used, assume the code has been annotated
12572   correspondingly for the symbols needed.  */
12573#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12574int fnord () __attribute__((visibility("default")));
12575#endif
12576
12577int fnord () { return 42; }
12578int main ()
12579{
12580  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12581  int status = $lt_dlunknown;
12582
12583  if (self)
12584    {
12585      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12586      else
12587        {
12588	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12589          else puts (dlerror ());
12590	}
12591      /* dlclose (self); */
12592    }
12593  else
12594    puts (dlerror ());
12595
12596  return status;
12597}
12598_LT_EOF
12599  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12600  (eval $ac_link) 2>&5
12601  ac_status=$?
12602  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12603  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12604    (./conftest; exit; ) >&5 2>/dev/null
12605    lt_status=$?
12606    case x$lt_status in
12607      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12608      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12609      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12610    esac
12611  else :
12612    # compilation failed
12613    lt_cv_dlopen_self=no
12614  fi
12615fi
12616rm -fr conftest*
12617
12618     ;;
12619esac
12620fi
12621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12622printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12623
12624    if test yes = "$lt_cv_dlopen_self"; then
12625      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12626      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12627printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12628if test ${lt_cv_dlopen_self_static+y}
12629then :
12630  printf %s "(cached) " >&6
12631else case e in #(
12632  e) 	  if test yes = "$cross_compiling"; then :
12633  lt_cv_dlopen_self_static=cross
12634else
12635  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12636  lt_status=$lt_dlunknown
12637  cat > conftest.$ac_ext <<_LT_EOF
12638#line $LINENO "configure"
12639#include "confdefs.h"
12640
12641#if HAVE_DLFCN_H
12642#include <dlfcn.h>
12643#endif
12644
12645#include <stdio.h>
12646
12647#ifdef RTLD_GLOBAL
12648#  define LT_DLGLOBAL		RTLD_GLOBAL
12649#else
12650#  ifdef DL_GLOBAL
12651#    define LT_DLGLOBAL		DL_GLOBAL
12652#  else
12653#    define LT_DLGLOBAL		0
12654#  endif
12655#endif
12656
12657/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12658   find out it does not work in some platform. */
12659#ifndef LT_DLLAZY_OR_NOW
12660#  ifdef RTLD_LAZY
12661#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12662#  else
12663#    ifdef DL_LAZY
12664#      define LT_DLLAZY_OR_NOW		DL_LAZY
12665#    else
12666#      ifdef RTLD_NOW
12667#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12668#      else
12669#        ifdef DL_NOW
12670#          define LT_DLLAZY_OR_NOW	DL_NOW
12671#        else
12672#          define LT_DLLAZY_OR_NOW	0
12673#        endif
12674#      endif
12675#    endif
12676#  endif
12677#endif
12678
12679/* When -fvisibility=hidden is used, assume the code has been annotated
12680   correspondingly for the symbols needed.  */
12681#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12682int fnord () __attribute__((visibility("default")));
12683#endif
12684
12685int fnord () { return 42; }
12686int main ()
12687{
12688  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12689  int status = $lt_dlunknown;
12690
12691  if (self)
12692    {
12693      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12694      else
12695        {
12696	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12697          else puts (dlerror ());
12698	}
12699      /* dlclose (self); */
12700    }
12701  else
12702    puts (dlerror ());
12703
12704  return status;
12705}
12706_LT_EOF
12707  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12708  (eval $ac_link) 2>&5
12709  ac_status=$?
12710  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12711  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12712    (./conftest; exit; ) >&5 2>/dev/null
12713    lt_status=$?
12714    case x$lt_status in
12715      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12716      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12717      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12718    esac
12719  else :
12720    # compilation failed
12721    lt_cv_dlopen_self_static=no
12722  fi
12723fi
12724rm -fr conftest*
12725
12726       ;;
12727esac
12728fi
12729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12730printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12731    fi
12732
12733    CPPFLAGS=$save_CPPFLAGS
12734    LDFLAGS=$save_LDFLAGS
12735    LIBS=$save_LIBS
12736    ;;
12737  esac
12738
12739  case $lt_cv_dlopen_self in
12740  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12741  *) enable_dlopen_self=unknown ;;
12742  esac
12743
12744  case $lt_cv_dlopen_self_static in
12745  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12746  *) enable_dlopen_self_static=unknown ;;
12747  esac
12748fi
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766striplib=
12767old_striplib=
12768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12769printf %s "checking whether stripping libraries is possible... " >&6; }
12770if test -z "$STRIP"; then
12771  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12772printf "%s\n" "no" >&6; }
12773else
12774  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12775    old_striplib="$STRIP --strip-debug"
12776    striplib="$STRIP --strip-unneeded"
12777    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12778printf "%s\n" "yes" >&6; }
12779  else
12780    case $host_os in
12781    darwin*)
12782      # FIXME - insert some real tests, host_os isn't really good enough
12783      striplib="$STRIP -x"
12784      old_striplib="$STRIP -S"
12785      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12786printf "%s\n" "yes" >&6; }
12787      ;;
12788    freebsd*)
12789      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12790        old_striplib="$STRIP --strip-debug"
12791        striplib="$STRIP --strip-unneeded"
12792        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12793printf "%s\n" "yes" >&6; }
12794      else
12795        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796printf "%s\n" "no" >&6; }
12797      fi
12798      ;;
12799    *)
12800      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12801printf "%s\n" "no" >&6; }
12802      ;;
12803    esac
12804  fi
12805fi
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818  # Report what library types will actually be built
12819  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12820printf %s "checking if libtool supports shared libraries... " >&6; }
12821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12822printf "%s\n" "$can_build_shared" >&6; }
12823
12824  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12825printf %s "checking whether to build shared libraries... " >&6; }
12826  test no = "$can_build_shared" && enable_shared=no
12827
12828  # On AIX, shared libraries and static libraries use the same namespace, and
12829  # are all built from PIC.
12830  case $host_os in
12831  aix3*)
12832    test yes = "$enable_shared" && enable_static=no
12833    if test -n "$RANLIB"; then
12834      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12835      postinstall_cmds='$RANLIB $lib'
12836    fi
12837    ;;
12838
12839  aix[4-9]*)
12840    if test ia64 != "$host_cpu"; then
12841      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12842      yes,aix,yes) ;;			# shared object as lib.so file only
12843      yes,svr4,*) ;;			# shared object as lib.so archive member only
12844      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12845      esac
12846    fi
12847    ;;
12848  esac
12849  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12850printf "%s\n" "$enable_shared" >&6; }
12851
12852  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12853printf %s "checking whether to build static libraries... " >&6; }
12854  # Make sure either enable_shared or enable_static is yes.
12855  test yes = "$enable_shared" || enable_static=yes
12856  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12857printf "%s\n" "$enable_static" >&6; }
12858
12859
12860
12861
12862fi
12863ac_ext=c
12864ac_cpp='$CPP $CPPFLAGS'
12865ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12866ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12867ac_compiler_gnu=$ac_cv_c_compiler_gnu
12868
12869CC=$lt_save_CC
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885        ac_config_commands="$ac_config_commands libtool"
12886
12887
12888
12889
12890# Only expand once:
12891
12892
12893
12894# Require X.Org macros 1.8 or later for AC_PROG_INSTALL
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12907printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12908if test ${ac_cv_c_undeclared_builtin_options+y}
12909then :
12910  printf %s "(cached) " >&6
12911else case e in #(
12912  e) ac_save_CFLAGS=$CFLAGS
12913   ac_cv_c_undeclared_builtin_options='cannot detect'
12914   for ac_arg in '' -fno-builtin; do
12915     CFLAGS="$ac_save_CFLAGS $ac_arg"
12916     # This test program should *not* compile successfully.
12917     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12918/* end confdefs.h.  */
12919
12920int
12921main (void)
12922{
12923(void) strchr;
12924  ;
12925  return 0;
12926}
12927_ACEOF
12928if ac_fn_c_try_compile "$LINENO"
12929then :
12930
12931else case e in #(
12932  e) # This test program should compile successfully.
12933        # No library function is consistently available on
12934        # freestanding implementations, so test against a dummy
12935        # declaration.  Include always-available headers on the
12936        # off chance that they somehow elicit warnings.
12937        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12938/* end confdefs.h.  */
12939#include <float.h>
12940#include <limits.h>
12941#include <stdarg.h>
12942#include <stddef.h>
12943extern void ac_decl (int, char *);
12944
12945int
12946main (void)
12947{
12948(void) ac_decl (0, (char *) 0);
12949  (void) ac_decl;
12950
12951  ;
12952  return 0;
12953}
12954_ACEOF
12955if ac_fn_c_try_compile "$LINENO"
12956then :
12957  if test x"$ac_arg" = x
12958then :
12959  ac_cv_c_undeclared_builtin_options='none needed'
12960else case e in #(
12961  e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
12962esac
12963fi
12964          break
12965fi
12966rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12967esac
12968fi
12969rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12970    done
12971    CFLAGS=$ac_save_CFLAGS
12972   ;;
12973esac
12974fi
12975{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12976printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12977  case $ac_cv_c_undeclared_builtin_options in #(
12978  'cannot detect') :
12979    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12980printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12981as_fn_error $? "cannot make $CC report undeclared builtins
12982See 'config.log' for more details" "$LINENO" 5; } ;; #(
12983  'none needed') :
12984    ac_c_undeclared_builtin_options='' ;; #(
12985  *) :
12986    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12987esac
12988
12989
12990
12991
12992
12993ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12994if test "x$ac_cv_have_decl___clang__" = xyes
12995then :
12996  CLANGCC="yes"
12997else case e in #(
12998  e) CLANGCC="no" ;;
12999esac
13000fi
13001ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13002if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13003then :
13004  INTELCC="yes"
13005else case e in #(
13006  e) INTELCC="no" ;;
13007esac
13008fi
13009ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13010if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13011then :
13012  SUNCC="yes"
13013else case e in #(
13014  e) SUNCC="no" ;;
13015esac
13016fi
13017
13018
13019
13020
13021
13022
13023
13024
13025if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13026	if test -n "$ac_tool_prefix"; then
13027  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13028set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13030printf %s "checking for $ac_word... " >&6; }
13031if test ${ac_cv_path_PKG_CONFIG+y}
13032then :
13033  printf %s "(cached) " >&6
13034else case e in #(
13035  e) case $PKG_CONFIG in
13036  [\\/]* | ?:[\\/]*)
13037  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13038  ;;
13039  *)
13040  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13041for as_dir in $PATH
13042do
13043  IFS=$as_save_IFS
13044  case $as_dir in #(((
13045    '') as_dir=./ ;;
13046    */) ;;
13047    *) as_dir=$as_dir/ ;;
13048  esac
13049    for ac_exec_ext in '' $ac_executable_extensions; do
13050  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13051    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13052    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13053    break 2
13054  fi
13055done
13056  done
13057IFS=$as_save_IFS
13058
13059  ;;
13060esac ;;
13061esac
13062fi
13063PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13064if test -n "$PKG_CONFIG"; then
13065  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13066printf "%s\n" "$PKG_CONFIG" >&6; }
13067else
13068  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069printf "%s\n" "no" >&6; }
13070fi
13071
13072
13073fi
13074if test -z "$ac_cv_path_PKG_CONFIG"; then
13075  ac_pt_PKG_CONFIG=$PKG_CONFIG
13076  # Extract the first word of "pkg-config", so it can be a program name with args.
13077set dummy pkg-config; ac_word=$2
13078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13079printf %s "checking for $ac_word... " >&6; }
13080if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13081then :
13082  printf %s "(cached) " >&6
13083else case e in #(
13084  e) case $ac_pt_PKG_CONFIG in
13085  [\\/]* | ?:[\\/]*)
13086  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13087  ;;
13088  *)
13089  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13090for as_dir in $PATH
13091do
13092  IFS=$as_save_IFS
13093  case $as_dir in #(((
13094    '') as_dir=./ ;;
13095    */) ;;
13096    *) as_dir=$as_dir/ ;;
13097  esac
13098    for ac_exec_ext in '' $ac_executable_extensions; do
13099  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13100    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13101    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13102    break 2
13103  fi
13104done
13105  done
13106IFS=$as_save_IFS
13107
13108  ;;
13109esac ;;
13110esac
13111fi
13112ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13113if test -n "$ac_pt_PKG_CONFIG"; then
13114  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13115printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13116else
13117  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13118printf "%s\n" "no" >&6; }
13119fi
13120
13121  if test "x$ac_pt_PKG_CONFIG" = x; then
13122    PKG_CONFIG=""
13123  else
13124    case $cross_compiling:$ac_tool_warned in
13125yes:)
13126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13127printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13128ac_tool_warned=yes ;;
13129esac
13130    PKG_CONFIG=$ac_pt_PKG_CONFIG
13131  fi
13132else
13133  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13134fi
13135
13136fi
13137if test -n "$PKG_CONFIG"; then
13138	_pkg_min_version=0.9.0
13139	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13140printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13141	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13142		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13143printf "%s\n" "yes" >&6; }
13144	else
13145		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13146printf "%s\n" "no" >&6; }
13147		PKG_CONFIG=""
13148	fi
13149fi
13150
13151
13152
13153
13154
13155# Check whether --enable-selective-werror was given.
13156if test ${enable_selective_werror+y}
13157then :
13158  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13159else case e in #(
13160  e) SELECTIVE_WERROR=yes ;;
13161esac
13162fi
13163
13164
13165
13166
13167
13168# -v is too short to test reliably with XORG_TESTSET_CFLAG
13169if test "x$SUNCC" = "xyes"; then
13170    BASE_CFLAGS="-v"
13171else
13172    BASE_CFLAGS=""
13173fi
13174
13175# This chunk of warnings were those that existed in the legacy CWARNFLAGS
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189xorg_testset_save_CFLAGS="$CFLAGS"
13190
13191if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13192	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13193	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13194printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13195if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13196then :
13197  printf %s "(cached) " >&6
13198else case e in #(
13199  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200/* end confdefs.h.  */
13201int i;
13202_ACEOF
13203if ac_fn_c_try_compile "$LINENO"
13204then :
13205  xorg_cv_cc_flag_unknown_warning_option=yes
13206else case e in #(
13207  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13208esac
13209fi
13210rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13211esac
13212fi
13213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13214printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13215	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13216	CFLAGS="$xorg_testset_save_CFLAGS"
13217fi
13218
13219if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13220	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13221		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13222	fi
13223	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13224	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13225printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13226if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13227then :
13228  printf %s "(cached) " >&6
13229else case e in #(
13230  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13231/* end confdefs.h.  */
13232int i;
13233_ACEOF
13234if ac_fn_c_try_compile "$LINENO"
13235then :
13236  xorg_cv_cc_flag_unused_command_line_argument=yes
13237else case e in #(
13238  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13239esac
13240fi
13241rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13242esac
13243fi
13244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13245printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13246	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13247	CFLAGS="$xorg_testset_save_CFLAGS"
13248fi
13249
13250found="no"
13251
13252	if test $found = "no" ; then
13253		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13254			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13255		fi
13256
13257		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13258			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13259		fi
13260
13261		CFLAGS="$CFLAGS -Wall"
13262
13263		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13264printf %s "checking if $CC supports -Wall... " >&6; }
13265		cacheid=xorg_cv_cc_flag__Wall
13266		if eval test \${$cacheid+y}
13267then :
13268  printf %s "(cached) " >&6
13269else case e in #(
13270  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13271/* end confdefs.h.  */
13272int i;
13273int
13274main (void)
13275{
13276
13277  ;
13278  return 0;
13279}
13280_ACEOF
13281if ac_fn_c_try_link "$LINENO"
13282then :
13283  eval $cacheid=yes
13284else case e in #(
13285  e) eval $cacheid=no ;;
13286esac
13287fi
13288rm -f core conftest.err conftest.$ac_objext conftest.beam \
13289    conftest$ac_exeext conftest.$ac_ext ;;
13290esac
13291fi
13292
13293
13294		CFLAGS="$xorg_testset_save_CFLAGS"
13295
13296		eval supported=\$$cacheid
13297		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13298printf "%s\n" "$supported" >&6; }
13299		if test "$supported" = "yes" ; then
13300			BASE_CFLAGS="$BASE_CFLAGS -Wall"
13301			found="yes"
13302		fi
13303	fi
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319xorg_testset_save_CFLAGS="$CFLAGS"
13320
13321if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13322	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13323	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13324printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13325if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13326then :
13327  printf %s "(cached) " >&6
13328else case e in #(
13329  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13330/* end confdefs.h.  */
13331int i;
13332_ACEOF
13333if ac_fn_c_try_compile "$LINENO"
13334then :
13335  xorg_cv_cc_flag_unknown_warning_option=yes
13336else case e in #(
13337  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13338esac
13339fi
13340rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13341esac
13342fi
13343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13344printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13345	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13346	CFLAGS="$xorg_testset_save_CFLAGS"
13347fi
13348
13349if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13350	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13351		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13352	fi
13353	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13354	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13355printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13356if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13357then :
13358  printf %s "(cached) " >&6
13359else case e in #(
13360  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361/* end confdefs.h.  */
13362int i;
13363_ACEOF
13364if ac_fn_c_try_compile "$LINENO"
13365then :
13366  xorg_cv_cc_flag_unused_command_line_argument=yes
13367else case e in #(
13368  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13369esac
13370fi
13371rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13372esac
13373fi
13374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13375printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13376	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13377	CFLAGS="$xorg_testset_save_CFLAGS"
13378fi
13379
13380found="no"
13381
13382	if test $found = "no" ; then
13383		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13384			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13385		fi
13386
13387		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13388			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13389		fi
13390
13391		CFLAGS="$CFLAGS -Wpointer-arith"
13392
13393		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13394printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13395		cacheid=xorg_cv_cc_flag__Wpointer_arith
13396		if eval test \${$cacheid+y}
13397then :
13398  printf %s "(cached) " >&6
13399else case e in #(
13400  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13401/* end confdefs.h.  */
13402int i;
13403int
13404main (void)
13405{
13406
13407  ;
13408  return 0;
13409}
13410_ACEOF
13411if ac_fn_c_try_link "$LINENO"
13412then :
13413  eval $cacheid=yes
13414else case e in #(
13415  e) eval $cacheid=no ;;
13416esac
13417fi
13418rm -f core conftest.err conftest.$ac_objext conftest.beam \
13419    conftest$ac_exeext conftest.$ac_ext ;;
13420esac
13421fi
13422
13423
13424		CFLAGS="$xorg_testset_save_CFLAGS"
13425
13426		eval supported=\$$cacheid
13427		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13428printf "%s\n" "$supported" >&6; }
13429		if test "$supported" = "yes" ; then
13430			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13431			found="yes"
13432		fi
13433	fi
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448
13449xorg_testset_save_CFLAGS="$CFLAGS"
13450
13451if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13452	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13453	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13454printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13455if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13456then :
13457  printf %s "(cached) " >&6
13458else case e in #(
13459  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13460/* end confdefs.h.  */
13461int i;
13462_ACEOF
13463if ac_fn_c_try_compile "$LINENO"
13464then :
13465  xorg_cv_cc_flag_unknown_warning_option=yes
13466else case e in #(
13467  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13468esac
13469fi
13470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13471esac
13472fi
13473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13474printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13475	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13476	CFLAGS="$xorg_testset_save_CFLAGS"
13477fi
13478
13479if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13480	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13481		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13482	fi
13483	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13484	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13485printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13486if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13487then :
13488  printf %s "(cached) " >&6
13489else case e in #(
13490  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13491/* end confdefs.h.  */
13492int i;
13493_ACEOF
13494if ac_fn_c_try_compile "$LINENO"
13495then :
13496  xorg_cv_cc_flag_unused_command_line_argument=yes
13497else case e in #(
13498  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13499esac
13500fi
13501rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13502esac
13503fi
13504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13505printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13506	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13507	CFLAGS="$xorg_testset_save_CFLAGS"
13508fi
13509
13510found="no"
13511
13512	if test $found = "no" ; then
13513		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13514			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13515		fi
13516
13517		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13518			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13519		fi
13520
13521		CFLAGS="$CFLAGS -Wmissing-declarations"
13522
13523		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13524printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13525		cacheid=xorg_cv_cc_flag__Wmissing_declarations
13526		if eval test \${$cacheid+y}
13527then :
13528  printf %s "(cached) " >&6
13529else case e in #(
13530  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531/* end confdefs.h.  */
13532int i;
13533int
13534main (void)
13535{
13536
13537  ;
13538  return 0;
13539}
13540_ACEOF
13541if ac_fn_c_try_link "$LINENO"
13542then :
13543  eval $cacheid=yes
13544else case e in #(
13545  e) eval $cacheid=no ;;
13546esac
13547fi
13548rm -f core conftest.err conftest.$ac_objext conftest.beam \
13549    conftest$ac_exeext conftest.$ac_ext ;;
13550esac
13551fi
13552
13553
13554		CFLAGS="$xorg_testset_save_CFLAGS"
13555
13556		eval supported=\$$cacheid
13557		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13558printf "%s\n" "$supported" >&6; }
13559		if test "$supported" = "yes" ; then
13560			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13561			found="yes"
13562		fi
13563	fi
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579xorg_testset_save_CFLAGS="$CFLAGS"
13580
13581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13582	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13583	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13584printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13585if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13586then :
13587  printf %s "(cached) " >&6
13588else case e in #(
13589  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590/* end confdefs.h.  */
13591int i;
13592_ACEOF
13593if ac_fn_c_try_compile "$LINENO"
13594then :
13595  xorg_cv_cc_flag_unknown_warning_option=yes
13596else case e in #(
13597  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13598esac
13599fi
13600rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13601esac
13602fi
13603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13604printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13605	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13606	CFLAGS="$xorg_testset_save_CFLAGS"
13607fi
13608
13609if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13610	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13611		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13612	fi
13613	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13614	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13615printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13616if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13617then :
13618  printf %s "(cached) " >&6
13619else case e in #(
13620  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621/* end confdefs.h.  */
13622int i;
13623_ACEOF
13624if ac_fn_c_try_compile "$LINENO"
13625then :
13626  xorg_cv_cc_flag_unused_command_line_argument=yes
13627else case e in #(
13628  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13629esac
13630fi
13631rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13632esac
13633fi
13634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13635printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13636	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13637	CFLAGS="$xorg_testset_save_CFLAGS"
13638fi
13639
13640found="no"
13641
13642	if test $found = "no" ; then
13643		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13644			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13645		fi
13646
13647		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13648			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13649		fi
13650
13651		CFLAGS="$CFLAGS -Wformat=2"
13652
13653		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13654printf %s "checking if $CC supports -Wformat=2... " >&6; }
13655		cacheid=xorg_cv_cc_flag__Wformat_2
13656		if eval test \${$cacheid+y}
13657then :
13658  printf %s "(cached) " >&6
13659else case e in #(
13660  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13661/* end confdefs.h.  */
13662int i;
13663int
13664main (void)
13665{
13666
13667  ;
13668  return 0;
13669}
13670_ACEOF
13671if ac_fn_c_try_link "$LINENO"
13672then :
13673  eval $cacheid=yes
13674else case e in #(
13675  e) eval $cacheid=no ;;
13676esac
13677fi
13678rm -f core conftest.err conftest.$ac_objext conftest.beam \
13679    conftest$ac_exeext conftest.$ac_ext ;;
13680esac
13681fi
13682
13683
13684		CFLAGS="$xorg_testset_save_CFLAGS"
13685
13686		eval supported=\$$cacheid
13687		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13688printf "%s\n" "$supported" >&6; }
13689		if test "$supported" = "yes" ; then
13690			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13691			found="yes"
13692		fi
13693	fi
13694
13695	if test $found = "no" ; then
13696		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13697			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13698		fi
13699
13700		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13701			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13702		fi
13703
13704		CFLAGS="$CFLAGS -Wformat"
13705
13706		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13707printf %s "checking if $CC supports -Wformat... " >&6; }
13708		cacheid=xorg_cv_cc_flag__Wformat
13709		if eval test \${$cacheid+y}
13710then :
13711  printf %s "(cached) " >&6
13712else case e in #(
13713  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13714/* end confdefs.h.  */
13715int i;
13716int
13717main (void)
13718{
13719
13720  ;
13721  return 0;
13722}
13723_ACEOF
13724if ac_fn_c_try_link "$LINENO"
13725then :
13726  eval $cacheid=yes
13727else case e in #(
13728  e) eval $cacheid=no ;;
13729esac
13730fi
13731rm -f core conftest.err conftest.$ac_objext conftest.beam \
13732    conftest$ac_exeext conftest.$ac_ext ;;
13733esac
13734fi
13735
13736
13737		CFLAGS="$xorg_testset_save_CFLAGS"
13738
13739		eval supported=\$$cacheid
13740		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13741printf "%s\n" "$supported" >&6; }
13742		if test "$supported" = "yes" ; then
13743			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13744			found="yes"
13745		fi
13746	fi
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759
13760
13761
13762
13763
13764xorg_testset_save_CFLAGS="$CFLAGS"
13765
13766if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13767	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13768	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13769printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13770if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13771then :
13772  printf %s "(cached) " >&6
13773else case e in #(
13774  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775/* end confdefs.h.  */
13776int i;
13777_ACEOF
13778if ac_fn_c_try_compile "$LINENO"
13779then :
13780  xorg_cv_cc_flag_unknown_warning_option=yes
13781else case e in #(
13782  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13783esac
13784fi
13785rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13786esac
13787fi
13788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13789printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13790	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13791	CFLAGS="$xorg_testset_save_CFLAGS"
13792fi
13793
13794if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13795	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13796		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13797	fi
13798	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13799	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13800printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13801if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13802then :
13803  printf %s "(cached) " >&6
13804else case e in #(
13805  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13806/* end confdefs.h.  */
13807int i;
13808_ACEOF
13809if ac_fn_c_try_compile "$LINENO"
13810then :
13811  xorg_cv_cc_flag_unused_command_line_argument=yes
13812else case e in #(
13813  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13814esac
13815fi
13816rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13817esac
13818fi
13819{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13820printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13821	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13822	CFLAGS="$xorg_testset_save_CFLAGS"
13823fi
13824
13825found="no"
13826
13827	if test $found = "no" ; then
13828		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13829			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13830		fi
13831
13832		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13833			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13834		fi
13835
13836		CFLAGS="$CFLAGS -Wstrict-prototypes"
13837
13838		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13839printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13840		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13841		if eval test \${$cacheid+y}
13842then :
13843  printf %s "(cached) " >&6
13844else case e in #(
13845  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13846/* end confdefs.h.  */
13847int i;
13848int
13849main (void)
13850{
13851
13852  ;
13853  return 0;
13854}
13855_ACEOF
13856if ac_fn_c_try_link "$LINENO"
13857then :
13858  eval $cacheid=yes
13859else case e in #(
13860  e) eval $cacheid=no ;;
13861esac
13862fi
13863rm -f core conftest.err conftest.$ac_objext conftest.beam \
13864    conftest$ac_exeext conftest.$ac_ext ;;
13865esac
13866fi
13867
13868
13869		CFLAGS="$xorg_testset_save_CFLAGS"
13870
13871		eval supported=\$$cacheid
13872		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13873printf "%s\n" "$supported" >&6; }
13874		if test "$supported" = "yes" ; then
13875			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13876			found="yes"
13877		fi
13878	fi
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894xorg_testset_save_CFLAGS="$CFLAGS"
13895
13896if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13897	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13898	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13899printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13900if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13901then :
13902  printf %s "(cached) " >&6
13903else case e in #(
13904  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13905/* end confdefs.h.  */
13906int i;
13907_ACEOF
13908if ac_fn_c_try_compile "$LINENO"
13909then :
13910  xorg_cv_cc_flag_unknown_warning_option=yes
13911else case e in #(
13912  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
13913esac
13914fi
13915rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13916esac
13917fi
13918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13919printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13920	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13921	CFLAGS="$xorg_testset_save_CFLAGS"
13922fi
13923
13924if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13925	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13926		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13927	fi
13928	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13929	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13930printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13931if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13932then :
13933  printf %s "(cached) " >&6
13934else case e in #(
13935  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13936/* end confdefs.h.  */
13937int i;
13938_ACEOF
13939if ac_fn_c_try_compile "$LINENO"
13940then :
13941  xorg_cv_cc_flag_unused_command_line_argument=yes
13942else case e in #(
13943  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
13944esac
13945fi
13946rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13947esac
13948fi
13949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13950printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13951	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13952	CFLAGS="$xorg_testset_save_CFLAGS"
13953fi
13954
13955found="no"
13956
13957	if test $found = "no" ; then
13958		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13959			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13960		fi
13961
13962		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13963			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13964		fi
13965
13966		CFLAGS="$CFLAGS -Wmissing-prototypes"
13967
13968		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13969printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13970		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13971		if eval test \${$cacheid+y}
13972then :
13973  printf %s "(cached) " >&6
13974else case e in #(
13975  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13976/* end confdefs.h.  */
13977int i;
13978int
13979main (void)
13980{
13981
13982  ;
13983  return 0;
13984}
13985_ACEOF
13986if ac_fn_c_try_link "$LINENO"
13987then :
13988  eval $cacheid=yes
13989else case e in #(
13990  e) eval $cacheid=no ;;
13991esac
13992fi
13993rm -f core conftest.err conftest.$ac_objext conftest.beam \
13994    conftest$ac_exeext conftest.$ac_ext ;;
13995esac
13996fi
13997
13998
13999		CFLAGS="$xorg_testset_save_CFLAGS"
14000
14001		eval supported=\$$cacheid
14002		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14003printf "%s\n" "$supported" >&6; }
14004		if test "$supported" = "yes" ; then
14005			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14006			found="yes"
14007		fi
14008	fi
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024xorg_testset_save_CFLAGS="$CFLAGS"
14025
14026if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14027	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14028	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14029printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14030if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14031then :
14032  printf %s "(cached) " >&6
14033else case e in #(
14034  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035/* end confdefs.h.  */
14036int i;
14037_ACEOF
14038if ac_fn_c_try_compile "$LINENO"
14039then :
14040  xorg_cv_cc_flag_unknown_warning_option=yes
14041else case e in #(
14042  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14043esac
14044fi
14045rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14046esac
14047fi
14048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14049printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14050	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14051	CFLAGS="$xorg_testset_save_CFLAGS"
14052fi
14053
14054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14055	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14056		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14057	fi
14058	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14059	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14060printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14061if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14062then :
14063  printf %s "(cached) " >&6
14064else case e in #(
14065  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14066/* end confdefs.h.  */
14067int i;
14068_ACEOF
14069if ac_fn_c_try_compile "$LINENO"
14070then :
14071  xorg_cv_cc_flag_unused_command_line_argument=yes
14072else case e in #(
14073  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14074esac
14075fi
14076rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14077esac
14078fi
14079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14080printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14081	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14082	CFLAGS="$xorg_testset_save_CFLAGS"
14083fi
14084
14085found="no"
14086
14087	if test $found = "no" ; then
14088		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14089			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14090		fi
14091
14092		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14093			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14094		fi
14095
14096		CFLAGS="$CFLAGS -Wnested-externs"
14097
14098		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14099printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14100		cacheid=xorg_cv_cc_flag__Wnested_externs
14101		if eval test \${$cacheid+y}
14102then :
14103  printf %s "(cached) " >&6
14104else case e in #(
14105  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106/* end confdefs.h.  */
14107int i;
14108int
14109main (void)
14110{
14111
14112  ;
14113  return 0;
14114}
14115_ACEOF
14116if ac_fn_c_try_link "$LINENO"
14117then :
14118  eval $cacheid=yes
14119else case e in #(
14120  e) eval $cacheid=no ;;
14121esac
14122fi
14123rm -f core conftest.err conftest.$ac_objext conftest.beam \
14124    conftest$ac_exeext conftest.$ac_ext ;;
14125esac
14126fi
14127
14128
14129		CFLAGS="$xorg_testset_save_CFLAGS"
14130
14131		eval supported=\$$cacheid
14132		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14133printf "%s\n" "$supported" >&6; }
14134		if test "$supported" = "yes" ; then
14135			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14136			found="yes"
14137		fi
14138	fi
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154xorg_testset_save_CFLAGS="$CFLAGS"
14155
14156if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14157	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14158	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14159printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14160if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14161then :
14162  printf %s "(cached) " >&6
14163else case e in #(
14164  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14165/* end confdefs.h.  */
14166int i;
14167_ACEOF
14168if ac_fn_c_try_compile "$LINENO"
14169then :
14170  xorg_cv_cc_flag_unknown_warning_option=yes
14171else case e in #(
14172  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14173esac
14174fi
14175rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14176esac
14177fi
14178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14179printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14180	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14181	CFLAGS="$xorg_testset_save_CFLAGS"
14182fi
14183
14184if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14185	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14186		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14187	fi
14188	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14189	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14190printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14191if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14192then :
14193  printf %s "(cached) " >&6
14194else case e in #(
14195  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14196/* end confdefs.h.  */
14197int i;
14198_ACEOF
14199if ac_fn_c_try_compile "$LINENO"
14200then :
14201  xorg_cv_cc_flag_unused_command_line_argument=yes
14202else case e in #(
14203  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14204esac
14205fi
14206rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14207esac
14208fi
14209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14210printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14211	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14212	CFLAGS="$xorg_testset_save_CFLAGS"
14213fi
14214
14215found="no"
14216
14217	if test $found = "no" ; then
14218		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14219			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14220		fi
14221
14222		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14223			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14224		fi
14225
14226		CFLAGS="$CFLAGS -Wbad-function-cast"
14227
14228		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14229printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14230		cacheid=xorg_cv_cc_flag__Wbad_function_cast
14231		if eval test \${$cacheid+y}
14232then :
14233  printf %s "(cached) " >&6
14234else case e in #(
14235  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14236/* end confdefs.h.  */
14237int i;
14238int
14239main (void)
14240{
14241
14242  ;
14243  return 0;
14244}
14245_ACEOF
14246if ac_fn_c_try_link "$LINENO"
14247then :
14248  eval $cacheid=yes
14249else case e in #(
14250  e) eval $cacheid=no ;;
14251esac
14252fi
14253rm -f core conftest.err conftest.$ac_objext conftest.beam \
14254    conftest$ac_exeext conftest.$ac_ext ;;
14255esac
14256fi
14257
14258
14259		CFLAGS="$xorg_testset_save_CFLAGS"
14260
14261		eval supported=\$$cacheid
14262		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14263printf "%s\n" "$supported" >&6; }
14264		if test "$supported" = "yes" ; then
14265			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14266			found="yes"
14267		fi
14268	fi
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280
14281
14282
14283
14284xorg_testset_save_CFLAGS="$CFLAGS"
14285
14286if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14287	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14288	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14289printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14290if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14291then :
14292  printf %s "(cached) " >&6
14293else case e in #(
14294  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14295/* end confdefs.h.  */
14296int i;
14297_ACEOF
14298if ac_fn_c_try_compile "$LINENO"
14299then :
14300  xorg_cv_cc_flag_unknown_warning_option=yes
14301else case e in #(
14302  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14303esac
14304fi
14305rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14306esac
14307fi
14308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14309printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14310	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14311	CFLAGS="$xorg_testset_save_CFLAGS"
14312fi
14313
14314if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14315	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14316		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14317	fi
14318	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14319	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14320printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14321if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14322then :
14323  printf %s "(cached) " >&6
14324else case e in #(
14325  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14326/* end confdefs.h.  */
14327int i;
14328_ACEOF
14329if ac_fn_c_try_compile "$LINENO"
14330then :
14331  xorg_cv_cc_flag_unused_command_line_argument=yes
14332else case e in #(
14333  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14334esac
14335fi
14336rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14337esac
14338fi
14339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14340printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14341	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14342	CFLAGS="$xorg_testset_save_CFLAGS"
14343fi
14344
14345found="no"
14346
14347	if test $found = "no" ; then
14348		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14349			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14350		fi
14351
14352		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14353			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14354		fi
14355
14356		CFLAGS="$CFLAGS -Wold-style-definition"
14357
14358		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14359printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14360		cacheid=xorg_cv_cc_flag__Wold_style_definition
14361		if eval test \${$cacheid+y}
14362then :
14363  printf %s "(cached) " >&6
14364else case e in #(
14365  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14366/* end confdefs.h.  */
14367int i;
14368int
14369main (void)
14370{
14371
14372  ;
14373  return 0;
14374}
14375_ACEOF
14376if ac_fn_c_try_link "$LINENO"
14377then :
14378  eval $cacheid=yes
14379else case e in #(
14380  e) eval $cacheid=no ;;
14381esac
14382fi
14383rm -f core conftest.err conftest.$ac_objext conftest.beam \
14384    conftest$ac_exeext conftest.$ac_ext ;;
14385esac
14386fi
14387
14388
14389		CFLAGS="$xorg_testset_save_CFLAGS"
14390
14391		eval supported=\$$cacheid
14392		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14393printf "%s\n" "$supported" >&6; }
14394		if test "$supported" = "yes" ; then
14395			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14396			found="yes"
14397		fi
14398	fi
14399
14400	if test $found = "no" ; then
14401		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14402			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14403		fi
14404
14405		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14406			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14407		fi
14408
14409		CFLAGS="$CFLAGS -fd"
14410
14411		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14412printf %s "checking if $CC supports -fd... " >&6; }
14413		cacheid=xorg_cv_cc_flag__fd
14414		if eval test \${$cacheid+y}
14415then :
14416  printf %s "(cached) " >&6
14417else case e in #(
14418  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14419/* end confdefs.h.  */
14420int i;
14421int
14422main (void)
14423{
14424
14425  ;
14426  return 0;
14427}
14428_ACEOF
14429if ac_fn_c_try_link "$LINENO"
14430then :
14431  eval $cacheid=yes
14432else case e in #(
14433  e) eval $cacheid=no ;;
14434esac
14435fi
14436rm -f core conftest.err conftest.$ac_objext conftest.beam \
14437    conftest$ac_exeext conftest.$ac_ext ;;
14438esac
14439fi
14440
14441
14442		CFLAGS="$xorg_testset_save_CFLAGS"
14443
14444		eval supported=\$$cacheid
14445		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14446printf "%s\n" "$supported" >&6; }
14447		if test "$supported" = "yes" ; then
14448			BASE_CFLAGS="$BASE_CFLAGS -fd"
14449			found="yes"
14450		fi
14451	fi
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467xorg_testset_save_CFLAGS="$CFLAGS"
14468
14469if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14470	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14471	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14472printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14473if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14474then :
14475  printf %s "(cached) " >&6
14476else case e in #(
14477  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14478/* end confdefs.h.  */
14479int i;
14480_ACEOF
14481if ac_fn_c_try_compile "$LINENO"
14482then :
14483  xorg_cv_cc_flag_unknown_warning_option=yes
14484else case e in #(
14485  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14486esac
14487fi
14488rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14489esac
14490fi
14491{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14492printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14493	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14494	CFLAGS="$xorg_testset_save_CFLAGS"
14495fi
14496
14497if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14498	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14499		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14500	fi
14501	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14502	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14503printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14504if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14505then :
14506  printf %s "(cached) " >&6
14507else case e in #(
14508  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509/* end confdefs.h.  */
14510int i;
14511_ACEOF
14512if ac_fn_c_try_compile "$LINENO"
14513then :
14514  xorg_cv_cc_flag_unused_command_line_argument=yes
14515else case e in #(
14516  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14517esac
14518fi
14519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14520esac
14521fi
14522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14523printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14524	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14525	CFLAGS="$xorg_testset_save_CFLAGS"
14526fi
14527
14528found="no"
14529
14530	if test $found = "no" ; then
14531		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14532			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14533		fi
14534
14535		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14536			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14537		fi
14538
14539		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14540
14541		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14542printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14543		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14544		if eval test \${$cacheid+y}
14545then :
14546  printf %s "(cached) " >&6
14547else case e in #(
14548  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549/* end confdefs.h.  */
14550int i;
14551int
14552main (void)
14553{
14554
14555  ;
14556  return 0;
14557}
14558_ACEOF
14559if ac_fn_c_try_link "$LINENO"
14560then :
14561  eval $cacheid=yes
14562else case e in #(
14563  e) eval $cacheid=no ;;
14564esac
14565fi
14566rm -f core conftest.err conftest.$ac_objext conftest.beam \
14567    conftest$ac_exeext conftest.$ac_ext ;;
14568esac
14569fi
14570
14571
14572		CFLAGS="$xorg_testset_save_CFLAGS"
14573
14574		eval supported=\$$cacheid
14575		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14576printf "%s\n" "$supported" >&6; }
14577		if test "$supported" = "yes" ; then
14578			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14579			found="yes"
14580		fi
14581	fi
14582
14583
14584
14585
14586
14587# This chunk adds additional warnings that could catch undesired effects.
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601xorg_testset_save_CFLAGS="$CFLAGS"
14602
14603if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14604	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14605	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14606printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14607if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14608then :
14609  printf %s "(cached) " >&6
14610else case e in #(
14611  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612/* end confdefs.h.  */
14613int i;
14614_ACEOF
14615if ac_fn_c_try_compile "$LINENO"
14616then :
14617  xorg_cv_cc_flag_unknown_warning_option=yes
14618else case e in #(
14619  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14620esac
14621fi
14622rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14623esac
14624fi
14625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14626printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14627	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14628	CFLAGS="$xorg_testset_save_CFLAGS"
14629fi
14630
14631if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14632	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14633		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14634	fi
14635	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14636	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14637printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14638if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14639then :
14640  printf %s "(cached) " >&6
14641else case e in #(
14642  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14643/* end confdefs.h.  */
14644int i;
14645_ACEOF
14646if ac_fn_c_try_compile "$LINENO"
14647then :
14648  xorg_cv_cc_flag_unused_command_line_argument=yes
14649else case e in #(
14650  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14651esac
14652fi
14653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14654esac
14655fi
14656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14657printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14658	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14659	CFLAGS="$xorg_testset_save_CFLAGS"
14660fi
14661
14662found="no"
14663
14664	if test $found = "no" ; then
14665		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14666			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14667		fi
14668
14669		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14670			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14671		fi
14672
14673		CFLAGS="$CFLAGS -Wunused"
14674
14675		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14676printf %s "checking if $CC supports -Wunused... " >&6; }
14677		cacheid=xorg_cv_cc_flag__Wunused
14678		if eval test \${$cacheid+y}
14679then :
14680  printf %s "(cached) " >&6
14681else case e in #(
14682  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14683/* end confdefs.h.  */
14684int i;
14685int
14686main (void)
14687{
14688
14689  ;
14690  return 0;
14691}
14692_ACEOF
14693if ac_fn_c_try_link "$LINENO"
14694then :
14695  eval $cacheid=yes
14696else case e in #(
14697  e) eval $cacheid=no ;;
14698esac
14699fi
14700rm -f core conftest.err conftest.$ac_objext conftest.beam \
14701    conftest$ac_exeext conftest.$ac_ext ;;
14702esac
14703fi
14704
14705
14706		CFLAGS="$xorg_testset_save_CFLAGS"
14707
14708		eval supported=\$$cacheid
14709		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14710printf "%s\n" "$supported" >&6; }
14711		if test "$supported" = "yes" ; then
14712			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14713			found="yes"
14714		fi
14715	fi
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731xorg_testset_save_CFLAGS="$CFLAGS"
14732
14733if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14734	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14735	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14736printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14737if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14738then :
14739  printf %s "(cached) " >&6
14740else case e in #(
14741  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14742/* end confdefs.h.  */
14743int i;
14744_ACEOF
14745if ac_fn_c_try_compile "$LINENO"
14746then :
14747  xorg_cv_cc_flag_unknown_warning_option=yes
14748else case e in #(
14749  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14750esac
14751fi
14752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14753esac
14754fi
14755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14756printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14757	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14758	CFLAGS="$xorg_testset_save_CFLAGS"
14759fi
14760
14761if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14762	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14763		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14764	fi
14765	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14766	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14767printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14768if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14769then :
14770  printf %s "(cached) " >&6
14771else case e in #(
14772  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14773/* end confdefs.h.  */
14774int i;
14775_ACEOF
14776if ac_fn_c_try_compile "$LINENO"
14777then :
14778  xorg_cv_cc_flag_unused_command_line_argument=yes
14779else case e in #(
14780  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14781esac
14782fi
14783rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14784esac
14785fi
14786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14787printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14788	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14789	CFLAGS="$xorg_testset_save_CFLAGS"
14790fi
14791
14792found="no"
14793
14794	if test $found = "no" ; then
14795		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14796			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14797		fi
14798
14799		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14800			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14801		fi
14802
14803		CFLAGS="$CFLAGS -Wuninitialized"
14804
14805		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14806printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14807		cacheid=xorg_cv_cc_flag__Wuninitialized
14808		if eval test \${$cacheid+y}
14809then :
14810  printf %s "(cached) " >&6
14811else case e in #(
14812  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14813/* end confdefs.h.  */
14814int i;
14815int
14816main (void)
14817{
14818
14819  ;
14820  return 0;
14821}
14822_ACEOF
14823if ac_fn_c_try_link "$LINENO"
14824then :
14825  eval $cacheid=yes
14826else case e in #(
14827  e) eval $cacheid=no ;;
14828esac
14829fi
14830rm -f core conftest.err conftest.$ac_objext conftest.beam \
14831    conftest$ac_exeext conftest.$ac_ext ;;
14832esac
14833fi
14834
14835
14836		CFLAGS="$xorg_testset_save_CFLAGS"
14837
14838		eval supported=\$$cacheid
14839		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14840printf "%s\n" "$supported" >&6; }
14841		if test "$supported" = "yes" ; then
14842			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14843			found="yes"
14844		fi
14845	fi
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861xorg_testset_save_CFLAGS="$CFLAGS"
14862
14863if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14864	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14865	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14866printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14867if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14868then :
14869  printf %s "(cached) " >&6
14870else case e in #(
14871  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14872/* end confdefs.h.  */
14873int i;
14874_ACEOF
14875if ac_fn_c_try_compile "$LINENO"
14876then :
14877  xorg_cv_cc_flag_unknown_warning_option=yes
14878else case e in #(
14879  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14880esac
14881fi
14882rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14883esac
14884fi
14885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14886printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14887	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14888	CFLAGS="$xorg_testset_save_CFLAGS"
14889fi
14890
14891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14892	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14893		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14894	fi
14895	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14896	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14897printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14898if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14899then :
14900  printf %s "(cached) " >&6
14901else case e in #(
14902  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14903/* end confdefs.h.  */
14904int i;
14905_ACEOF
14906if ac_fn_c_try_compile "$LINENO"
14907then :
14908  xorg_cv_cc_flag_unused_command_line_argument=yes
14909else case e in #(
14910  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14911esac
14912fi
14913rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14914esac
14915fi
14916{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14917printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14918	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14919	CFLAGS="$xorg_testset_save_CFLAGS"
14920fi
14921
14922found="no"
14923
14924	if test $found = "no" ; then
14925		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14926			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14927		fi
14928
14929		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14930			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14931		fi
14932
14933		CFLAGS="$CFLAGS -Wshadow"
14934
14935		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14936printf %s "checking if $CC supports -Wshadow... " >&6; }
14937		cacheid=xorg_cv_cc_flag__Wshadow
14938		if eval test \${$cacheid+y}
14939then :
14940  printf %s "(cached) " >&6
14941else case e in #(
14942  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14943/* end confdefs.h.  */
14944int i;
14945int
14946main (void)
14947{
14948
14949  ;
14950  return 0;
14951}
14952_ACEOF
14953if ac_fn_c_try_link "$LINENO"
14954then :
14955  eval $cacheid=yes
14956else case e in #(
14957  e) eval $cacheid=no ;;
14958esac
14959fi
14960rm -f core conftest.err conftest.$ac_objext conftest.beam \
14961    conftest$ac_exeext conftest.$ac_ext ;;
14962esac
14963fi
14964
14965
14966		CFLAGS="$xorg_testset_save_CFLAGS"
14967
14968		eval supported=\$$cacheid
14969		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14970printf "%s\n" "$supported" >&6; }
14971		if test "$supported" = "yes" ; then
14972			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14973			found="yes"
14974		fi
14975	fi
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991xorg_testset_save_CFLAGS="$CFLAGS"
14992
14993if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14994	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14995	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14996printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14997if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14998then :
14999  printf %s "(cached) " >&6
15000else case e in #(
15001  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15002/* end confdefs.h.  */
15003int i;
15004_ACEOF
15005if ac_fn_c_try_compile "$LINENO"
15006then :
15007  xorg_cv_cc_flag_unknown_warning_option=yes
15008else case e in #(
15009  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15010esac
15011fi
15012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15013esac
15014fi
15015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15016printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15017	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15018	CFLAGS="$xorg_testset_save_CFLAGS"
15019fi
15020
15021if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15022	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15023		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15024	fi
15025	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15026	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15027printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15028if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15029then :
15030  printf %s "(cached) " >&6
15031else case e in #(
15032  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033/* end confdefs.h.  */
15034int i;
15035_ACEOF
15036if ac_fn_c_try_compile "$LINENO"
15037then :
15038  xorg_cv_cc_flag_unused_command_line_argument=yes
15039else case e in #(
15040  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15041esac
15042fi
15043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15044esac
15045fi
15046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15047printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15048	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15049	CFLAGS="$xorg_testset_save_CFLAGS"
15050fi
15051
15052found="no"
15053
15054	if test $found = "no" ; then
15055		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15056			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15057		fi
15058
15059		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15060			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15061		fi
15062
15063		CFLAGS="$CFLAGS -Wmissing-noreturn"
15064
15065		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15066printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15067		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15068		if eval test \${$cacheid+y}
15069then :
15070  printf %s "(cached) " >&6
15071else case e in #(
15072  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073/* end confdefs.h.  */
15074int i;
15075int
15076main (void)
15077{
15078
15079  ;
15080  return 0;
15081}
15082_ACEOF
15083if ac_fn_c_try_link "$LINENO"
15084then :
15085  eval $cacheid=yes
15086else case e in #(
15087  e) eval $cacheid=no ;;
15088esac
15089fi
15090rm -f core conftest.err conftest.$ac_objext conftest.beam \
15091    conftest$ac_exeext conftest.$ac_ext ;;
15092esac
15093fi
15094
15095
15096		CFLAGS="$xorg_testset_save_CFLAGS"
15097
15098		eval supported=\$$cacheid
15099		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15100printf "%s\n" "$supported" >&6; }
15101		if test "$supported" = "yes" ; then
15102			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15103			found="yes"
15104		fi
15105	fi
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121xorg_testset_save_CFLAGS="$CFLAGS"
15122
15123if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15124	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15125	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15126printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15127if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15128then :
15129  printf %s "(cached) " >&6
15130else case e in #(
15131  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132/* end confdefs.h.  */
15133int i;
15134_ACEOF
15135if ac_fn_c_try_compile "$LINENO"
15136then :
15137  xorg_cv_cc_flag_unknown_warning_option=yes
15138else case e in #(
15139  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15140esac
15141fi
15142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15143esac
15144fi
15145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15146printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15147	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15148	CFLAGS="$xorg_testset_save_CFLAGS"
15149fi
15150
15151if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15152	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15153		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15154	fi
15155	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15156	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15157printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15158if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15159then :
15160  printf %s "(cached) " >&6
15161else case e in #(
15162  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15163/* end confdefs.h.  */
15164int i;
15165_ACEOF
15166if ac_fn_c_try_compile "$LINENO"
15167then :
15168  xorg_cv_cc_flag_unused_command_line_argument=yes
15169else case e in #(
15170  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15171esac
15172fi
15173rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15174esac
15175fi
15176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15177printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15178	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15179	CFLAGS="$xorg_testset_save_CFLAGS"
15180fi
15181
15182found="no"
15183
15184	if test $found = "no" ; then
15185		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15186			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15187		fi
15188
15189		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15190			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15191		fi
15192
15193		CFLAGS="$CFLAGS -Wmissing-format-attribute"
15194
15195		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15196printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15197		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15198		if eval test \${$cacheid+y}
15199then :
15200  printf %s "(cached) " >&6
15201else case e in #(
15202  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203/* end confdefs.h.  */
15204int i;
15205int
15206main (void)
15207{
15208
15209  ;
15210  return 0;
15211}
15212_ACEOF
15213if ac_fn_c_try_link "$LINENO"
15214then :
15215  eval $cacheid=yes
15216else case e in #(
15217  e) eval $cacheid=no ;;
15218esac
15219fi
15220rm -f core conftest.err conftest.$ac_objext conftest.beam \
15221    conftest$ac_exeext conftest.$ac_ext ;;
15222esac
15223fi
15224
15225
15226		CFLAGS="$xorg_testset_save_CFLAGS"
15227
15228		eval supported=\$$cacheid
15229		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15230printf "%s\n" "$supported" >&6; }
15231		if test "$supported" = "yes" ; then
15232			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15233			found="yes"
15234		fi
15235	fi
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251xorg_testset_save_CFLAGS="$CFLAGS"
15252
15253if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15254	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15255	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15256printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15257if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15258then :
15259  printf %s "(cached) " >&6
15260else case e in #(
15261  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15262/* end confdefs.h.  */
15263int i;
15264_ACEOF
15265if ac_fn_c_try_compile "$LINENO"
15266then :
15267  xorg_cv_cc_flag_unknown_warning_option=yes
15268else case e in #(
15269  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15270esac
15271fi
15272rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15273esac
15274fi
15275{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15276printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15277	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15278	CFLAGS="$xorg_testset_save_CFLAGS"
15279fi
15280
15281if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15282	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15283		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15284	fi
15285	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15286	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15287printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15288if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15289then :
15290  printf %s "(cached) " >&6
15291else case e in #(
15292  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15293/* end confdefs.h.  */
15294int i;
15295_ACEOF
15296if ac_fn_c_try_compile "$LINENO"
15297then :
15298  xorg_cv_cc_flag_unused_command_line_argument=yes
15299else case e in #(
15300  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15301esac
15302fi
15303rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15304esac
15305fi
15306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15307printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15308	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15309	CFLAGS="$xorg_testset_save_CFLAGS"
15310fi
15311
15312found="no"
15313
15314	if test $found = "no" ; then
15315		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15316			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15317		fi
15318
15319		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15320			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15321		fi
15322
15323		CFLAGS="$CFLAGS -Wredundant-decls"
15324
15325		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15326printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15327		cacheid=xorg_cv_cc_flag__Wredundant_decls
15328		if eval test \${$cacheid+y}
15329then :
15330  printf %s "(cached) " >&6
15331else case e in #(
15332  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15333/* end confdefs.h.  */
15334int i;
15335int
15336main (void)
15337{
15338
15339  ;
15340  return 0;
15341}
15342_ACEOF
15343if ac_fn_c_try_link "$LINENO"
15344then :
15345  eval $cacheid=yes
15346else case e in #(
15347  e) eval $cacheid=no ;;
15348esac
15349fi
15350rm -f core conftest.err conftest.$ac_objext conftest.beam \
15351    conftest$ac_exeext conftest.$ac_ext ;;
15352esac
15353fi
15354
15355
15356		CFLAGS="$xorg_testset_save_CFLAGS"
15357
15358		eval supported=\$$cacheid
15359		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15360printf "%s\n" "$supported" >&6; }
15361		if test "$supported" = "yes" ; then
15362			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15363			found="yes"
15364		fi
15365	fi
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381xorg_testset_save_CFLAGS="$CFLAGS"
15382
15383if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15384	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15385	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15386printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15387if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15388then :
15389  printf %s "(cached) " >&6
15390else case e in #(
15391  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15392/* end confdefs.h.  */
15393int i;
15394_ACEOF
15395if ac_fn_c_try_compile "$LINENO"
15396then :
15397  xorg_cv_cc_flag_unknown_warning_option=yes
15398else case e in #(
15399  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15400esac
15401fi
15402rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15403esac
15404fi
15405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15406printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15407	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15408	CFLAGS="$xorg_testset_save_CFLAGS"
15409fi
15410
15411if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15412	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15413		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15414	fi
15415	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15416	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15417printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15418if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15419then :
15420  printf %s "(cached) " >&6
15421else case e in #(
15422  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15423/* end confdefs.h.  */
15424int i;
15425_ACEOF
15426if ac_fn_c_try_compile "$LINENO"
15427then :
15428  xorg_cv_cc_flag_unused_command_line_argument=yes
15429else case e in #(
15430  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15431esac
15432fi
15433rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15434esac
15435fi
15436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15437printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15438	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15439	CFLAGS="$xorg_testset_save_CFLAGS"
15440fi
15441
15442found="no"
15443
15444	if test $found = "no" ; then
15445		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15446			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15447		fi
15448
15449		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15450			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15451		fi
15452
15453		CFLAGS="$CFLAGS -Wlogical-op"
15454
15455		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15456printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15457		cacheid=xorg_cv_cc_flag__Wlogical_op
15458		if eval test \${$cacheid+y}
15459then :
15460  printf %s "(cached) " >&6
15461else case e in #(
15462  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15463/* end confdefs.h.  */
15464int i;
15465int
15466main (void)
15467{
15468
15469  ;
15470  return 0;
15471}
15472_ACEOF
15473if ac_fn_c_try_link "$LINENO"
15474then :
15475  eval $cacheid=yes
15476else case e in #(
15477  e) eval $cacheid=no ;;
15478esac
15479fi
15480rm -f core conftest.err conftest.$ac_objext conftest.beam \
15481    conftest$ac_exeext conftest.$ac_ext ;;
15482esac
15483fi
15484
15485
15486		CFLAGS="$xorg_testset_save_CFLAGS"
15487
15488		eval supported=\$$cacheid
15489		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15490printf "%s\n" "$supported" >&6; }
15491		if test "$supported" = "yes" ; then
15492			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15493			found="yes"
15494		fi
15495	fi
15496
15497
15498
15499# These are currently disabled because they are noisy.  They will be enabled
15500# in the future once the codebase is sufficiently modernized to silence
15501# them.  For now, I don't want them to drown out the other warnings.
15502# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15503# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15504# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15505
15506# Turn some warnings into errors, so we don't accidentally get successful builds
15507# when there are problems that should be fixed.
15508
15509if test "x$SELECTIVE_WERROR" = "xyes" ; then
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523xorg_testset_save_CFLAGS="$CFLAGS"
15524
15525if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15526	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15527	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15528printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15529if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15530then :
15531  printf %s "(cached) " >&6
15532else case e in #(
15533  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15534/* end confdefs.h.  */
15535int i;
15536_ACEOF
15537if ac_fn_c_try_compile "$LINENO"
15538then :
15539  xorg_cv_cc_flag_unknown_warning_option=yes
15540else case e in #(
15541  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15542esac
15543fi
15544rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15545esac
15546fi
15547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15548printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15549	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15550	CFLAGS="$xorg_testset_save_CFLAGS"
15551fi
15552
15553if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15554	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15555		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15556	fi
15557	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15558	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15559printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15560if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15561then :
15562  printf %s "(cached) " >&6
15563else case e in #(
15564  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15565/* end confdefs.h.  */
15566int i;
15567_ACEOF
15568if ac_fn_c_try_compile "$LINENO"
15569then :
15570  xorg_cv_cc_flag_unused_command_line_argument=yes
15571else case e in #(
15572  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15573esac
15574fi
15575rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15576esac
15577fi
15578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15579printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15580	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15581	CFLAGS="$xorg_testset_save_CFLAGS"
15582fi
15583
15584found="no"
15585
15586	if test $found = "no" ; then
15587		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15588			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15589		fi
15590
15591		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15592			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15593		fi
15594
15595		CFLAGS="$CFLAGS -Werror=implicit"
15596
15597		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15598printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15599		cacheid=xorg_cv_cc_flag__Werror_implicit
15600		if eval test \${$cacheid+y}
15601then :
15602  printf %s "(cached) " >&6
15603else case e in #(
15604  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15605/* end confdefs.h.  */
15606int i;
15607int
15608main (void)
15609{
15610
15611  ;
15612  return 0;
15613}
15614_ACEOF
15615if ac_fn_c_try_link "$LINENO"
15616then :
15617  eval $cacheid=yes
15618else case e in #(
15619  e) eval $cacheid=no ;;
15620esac
15621fi
15622rm -f core conftest.err conftest.$ac_objext conftest.beam \
15623    conftest$ac_exeext conftest.$ac_ext ;;
15624esac
15625fi
15626
15627
15628		CFLAGS="$xorg_testset_save_CFLAGS"
15629
15630		eval supported=\$$cacheid
15631		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15632printf "%s\n" "$supported" >&6; }
15633		if test "$supported" = "yes" ; then
15634			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15635			found="yes"
15636		fi
15637	fi
15638
15639	if test $found = "no" ; then
15640		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15641			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15642		fi
15643
15644		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15645			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15646		fi
15647
15648		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15649
15650		{ 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
15651printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15652		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15653		if eval test \${$cacheid+y}
15654then :
15655  printf %s "(cached) " >&6
15656else case e in #(
15657  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15658/* end confdefs.h.  */
15659int i;
15660int
15661main (void)
15662{
15663
15664  ;
15665  return 0;
15666}
15667_ACEOF
15668if ac_fn_c_try_link "$LINENO"
15669then :
15670  eval $cacheid=yes
15671else case e in #(
15672  e) eval $cacheid=no ;;
15673esac
15674fi
15675rm -f core conftest.err conftest.$ac_objext conftest.beam \
15676    conftest$ac_exeext conftest.$ac_ext ;;
15677esac
15678fi
15679
15680
15681		CFLAGS="$xorg_testset_save_CFLAGS"
15682
15683		eval supported=\$$cacheid
15684		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15685printf "%s\n" "$supported" >&6; }
15686		if test "$supported" = "yes" ; then
15687			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15688			found="yes"
15689		fi
15690	fi
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706xorg_testset_save_CFLAGS="$CFLAGS"
15707
15708if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15709	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15710	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15711printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15712if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15713then :
15714  printf %s "(cached) " >&6
15715else case e in #(
15716  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15717/* end confdefs.h.  */
15718int i;
15719_ACEOF
15720if ac_fn_c_try_compile "$LINENO"
15721then :
15722  xorg_cv_cc_flag_unknown_warning_option=yes
15723else case e in #(
15724  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15725esac
15726fi
15727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15728esac
15729fi
15730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15731printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15732	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15733	CFLAGS="$xorg_testset_save_CFLAGS"
15734fi
15735
15736if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15737	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15738		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15739	fi
15740	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15741	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15742printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15743if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15744then :
15745  printf %s "(cached) " >&6
15746else case e in #(
15747  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15748/* end confdefs.h.  */
15749int i;
15750_ACEOF
15751if ac_fn_c_try_compile "$LINENO"
15752then :
15753  xorg_cv_cc_flag_unused_command_line_argument=yes
15754else case e in #(
15755  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15756esac
15757fi
15758rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15759esac
15760fi
15761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15762printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15763	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15764	CFLAGS="$xorg_testset_save_CFLAGS"
15765fi
15766
15767found="no"
15768
15769	if test $found = "no" ; then
15770		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15771			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15772		fi
15773
15774		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15775			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15776		fi
15777
15778		CFLAGS="$CFLAGS -Werror=nonnull"
15779
15780		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15781printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15782		cacheid=xorg_cv_cc_flag__Werror_nonnull
15783		if eval test \${$cacheid+y}
15784then :
15785  printf %s "(cached) " >&6
15786else case e in #(
15787  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15788/* end confdefs.h.  */
15789int i;
15790int
15791main (void)
15792{
15793
15794  ;
15795  return 0;
15796}
15797_ACEOF
15798if ac_fn_c_try_link "$LINENO"
15799then :
15800  eval $cacheid=yes
15801else case e in #(
15802  e) eval $cacheid=no ;;
15803esac
15804fi
15805rm -f core conftest.err conftest.$ac_objext conftest.beam \
15806    conftest$ac_exeext conftest.$ac_ext ;;
15807esac
15808fi
15809
15810
15811		CFLAGS="$xorg_testset_save_CFLAGS"
15812
15813		eval supported=\$$cacheid
15814		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15815printf "%s\n" "$supported" >&6; }
15816		if test "$supported" = "yes" ; then
15817			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15818			found="yes"
15819		fi
15820	fi
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836xorg_testset_save_CFLAGS="$CFLAGS"
15837
15838if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15839	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15840	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15841printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15842if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15843then :
15844  printf %s "(cached) " >&6
15845else case e in #(
15846  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15847/* end confdefs.h.  */
15848int i;
15849_ACEOF
15850if ac_fn_c_try_compile "$LINENO"
15851then :
15852  xorg_cv_cc_flag_unknown_warning_option=yes
15853else case e in #(
15854  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15855esac
15856fi
15857rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15858esac
15859fi
15860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15861printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15862	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15863	CFLAGS="$xorg_testset_save_CFLAGS"
15864fi
15865
15866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15867	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15868		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15869	fi
15870	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15871	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15872printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15873if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15874then :
15875  printf %s "(cached) " >&6
15876else case e in #(
15877  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15878/* end confdefs.h.  */
15879int i;
15880_ACEOF
15881if ac_fn_c_try_compile "$LINENO"
15882then :
15883  xorg_cv_cc_flag_unused_command_line_argument=yes
15884else case e in #(
15885  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15886esac
15887fi
15888rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15889esac
15890fi
15891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15892printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15893	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15894	CFLAGS="$xorg_testset_save_CFLAGS"
15895fi
15896
15897found="no"
15898
15899	if test $found = "no" ; then
15900		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15901			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15902		fi
15903
15904		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15905			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15906		fi
15907
15908		CFLAGS="$CFLAGS -Werror=init-self"
15909
15910		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15911printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15912		cacheid=xorg_cv_cc_flag__Werror_init_self
15913		if eval test \${$cacheid+y}
15914then :
15915  printf %s "(cached) " >&6
15916else case e in #(
15917  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918/* end confdefs.h.  */
15919int i;
15920int
15921main (void)
15922{
15923
15924  ;
15925  return 0;
15926}
15927_ACEOF
15928if ac_fn_c_try_link "$LINENO"
15929then :
15930  eval $cacheid=yes
15931else case e in #(
15932  e) eval $cacheid=no ;;
15933esac
15934fi
15935rm -f core conftest.err conftest.$ac_objext conftest.beam \
15936    conftest$ac_exeext conftest.$ac_ext ;;
15937esac
15938fi
15939
15940
15941		CFLAGS="$xorg_testset_save_CFLAGS"
15942
15943		eval supported=\$$cacheid
15944		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15945printf "%s\n" "$supported" >&6; }
15946		if test "$supported" = "yes" ; then
15947			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15948			found="yes"
15949		fi
15950	fi
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966xorg_testset_save_CFLAGS="$CFLAGS"
15967
15968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15969	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15970	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15971printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15972if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15973then :
15974  printf %s "(cached) " >&6
15975else case e in #(
15976  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15977/* end confdefs.h.  */
15978int i;
15979_ACEOF
15980if ac_fn_c_try_compile "$LINENO"
15981then :
15982  xorg_cv_cc_flag_unknown_warning_option=yes
15983else case e in #(
15984  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15985esac
15986fi
15987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15988esac
15989fi
15990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15991printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15992	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15993	CFLAGS="$xorg_testset_save_CFLAGS"
15994fi
15995
15996if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15997	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15998		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15999	fi
16000	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16001	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16002printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16003if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16004then :
16005  printf %s "(cached) " >&6
16006else case e in #(
16007  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16008/* end confdefs.h.  */
16009int i;
16010_ACEOF
16011if ac_fn_c_try_compile "$LINENO"
16012then :
16013  xorg_cv_cc_flag_unused_command_line_argument=yes
16014else case e in #(
16015  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16016esac
16017fi
16018rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16019esac
16020fi
16021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16022printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16023	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16024	CFLAGS="$xorg_testset_save_CFLAGS"
16025fi
16026
16027found="no"
16028
16029	if test $found = "no" ; then
16030		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16031			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16032		fi
16033
16034		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16035			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16036		fi
16037
16038		CFLAGS="$CFLAGS -Werror=main"
16039
16040		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16041printf %s "checking if $CC supports -Werror=main... " >&6; }
16042		cacheid=xorg_cv_cc_flag__Werror_main
16043		if eval test \${$cacheid+y}
16044then :
16045  printf %s "(cached) " >&6
16046else case e in #(
16047  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16048/* end confdefs.h.  */
16049int i;
16050int
16051main (void)
16052{
16053
16054  ;
16055  return 0;
16056}
16057_ACEOF
16058if ac_fn_c_try_link "$LINENO"
16059then :
16060  eval $cacheid=yes
16061else case e in #(
16062  e) eval $cacheid=no ;;
16063esac
16064fi
16065rm -f core conftest.err conftest.$ac_objext conftest.beam \
16066    conftest$ac_exeext conftest.$ac_ext ;;
16067esac
16068fi
16069
16070
16071		CFLAGS="$xorg_testset_save_CFLAGS"
16072
16073		eval supported=\$$cacheid
16074		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16075printf "%s\n" "$supported" >&6; }
16076		if test "$supported" = "yes" ; then
16077			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16078			found="yes"
16079		fi
16080	fi
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096xorg_testset_save_CFLAGS="$CFLAGS"
16097
16098if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16099	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16100	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16101printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16102if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16103then :
16104  printf %s "(cached) " >&6
16105else case e in #(
16106  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16107/* end confdefs.h.  */
16108int i;
16109_ACEOF
16110if ac_fn_c_try_compile "$LINENO"
16111then :
16112  xorg_cv_cc_flag_unknown_warning_option=yes
16113else case e in #(
16114  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16115esac
16116fi
16117rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16118esac
16119fi
16120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16121printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16122	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16123	CFLAGS="$xorg_testset_save_CFLAGS"
16124fi
16125
16126if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16127	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16128		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16129	fi
16130	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16131	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16132printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16133if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16134then :
16135  printf %s "(cached) " >&6
16136else case e in #(
16137  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16138/* end confdefs.h.  */
16139int i;
16140_ACEOF
16141if ac_fn_c_try_compile "$LINENO"
16142then :
16143  xorg_cv_cc_flag_unused_command_line_argument=yes
16144else case e in #(
16145  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16146esac
16147fi
16148rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16149esac
16150fi
16151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16152printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16153	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16154	CFLAGS="$xorg_testset_save_CFLAGS"
16155fi
16156
16157found="no"
16158
16159	if test $found = "no" ; then
16160		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16161			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16162		fi
16163
16164		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16165			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16166		fi
16167
16168		CFLAGS="$CFLAGS -Werror=missing-braces"
16169
16170		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16171printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16172		cacheid=xorg_cv_cc_flag__Werror_missing_braces
16173		if eval test \${$cacheid+y}
16174then :
16175  printf %s "(cached) " >&6
16176else case e in #(
16177  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16178/* end confdefs.h.  */
16179int i;
16180int
16181main (void)
16182{
16183
16184  ;
16185  return 0;
16186}
16187_ACEOF
16188if ac_fn_c_try_link "$LINENO"
16189then :
16190  eval $cacheid=yes
16191else case e in #(
16192  e) eval $cacheid=no ;;
16193esac
16194fi
16195rm -f core conftest.err conftest.$ac_objext conftest.beam \
16196    conftest$ac_exeext conftest.$ac_ext ;;
16197esac
16198fi
16199
16200
16201		CFLAGS="$xorg_testset_save_CFLAGS"
16202
16203		eval supported=\$$cacheid
16204		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16205printf "%s\n" "$supported" >&6; }
16206		if test "$supported" = "yes" ; then
16207			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16208			found="yes"
16209		fi
16210	fi
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226xorg_testset_save_CFLAGS="$CFLAGS"
16227
16228if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16229	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16230	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16231printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16232if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16233then :
16234  printf %s "(cached) " >&6
16235else case e in #(
16236  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16237/* end confdefs.h.  */
16238int i;
16239_ACEOF
16240if ac_fn_c_try_compile "$LINENO"
16241then :
16242  xorg_cv_cc_flag_unknown_warning_option=yes
16243else case e in #(
16244  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16245esac
16246fi
16247rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16248esac
16249fi
16250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16251printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16252	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16253	CFLAGS="$xorg_testset_save_CFLAGS"
16254fi
16255
16256if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16257	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16258		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16259	fi
16260	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16261	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16262printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16263if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16264then :
16265  printf %s "(cached) " >&6
16266else case e in #(
16267  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16268/* end confdefs.h.  */
16269int i;
16270_ACEOF
16271if ac_fn_c_try_compile "$LINENO"
16272then :
16273  xorg_cv_cc_flag_unused_command_line_argument=yes
16274else case e in #(
16275  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16276esac
16277fi
16278rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16279esac
16280fi
16281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16282printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16283	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16284	CFLAGS="$xorg_testset_save_CFLAGS"
16285fi
16286
16287found="no"
16288
16289	if test $found = "no" ; then
16290		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16291			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16292		fi
16293
16294		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16295			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16296		fi
16297
16298		CFLAGS="$CFLAGS -Werror=sequence-point"
16299
16300		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16301printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16302		cacheid=xorg_cv_cc_flag__Werror_sequence_point
16303		if eval test \${$cacheid+y}
16304then :
16305  printf %s "(cached) " >&6
16306else case e in #(
16307  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16308/* end confdefs.h.  */
16309int i;
16310int
16311main (void)
16312{
16313
16314  ;
16315  return 0;
16316}
16317_ACEOF
16318if ac_fn_c_try_link "$LINENO"
16319then :
16320  eval $cacheid=yes
16321else case e in #(
16322  e) eval $cacheid=no ;;
16323esac
16324fi
16325rm -f core conftest.err conftest.$ac_objext conftest.beam \
16326    conftest$ac_exeext conftest.$ac_ext ;;
16327esac
16328fi
16329
16330
16331		CFLAGS="$xorg_testset_save_CFLAGS"
16332
16333		eval supported=\$$cacheid
16334		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16335printf "%s\n" "$supported" >&6; }
16336		if test "$supported" = "yes" ; then
16337			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16338			found="yes"
16339		fi
16340	fi
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356xorg_testset_save_CFLAGS="$CFLAGS"
16357
16358if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16359	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16360	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16361printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16362if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16363then :
16364  printf %s "(cached) " >&6
16365else case e in #(
16366  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16367/* end confdefs.h.  */
16368int i;
16369_ACEOF
16370if ac_fn_c_try_compile "$LINENO"
16371then :
16372  xorg_cv_cc_flag_unknown_warning_option=yes
16373else case e in #(
16374  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16375esac
16376fi
16377rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16378esac
16379fi
16380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16381printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16382	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16383	CFLAGS="$xorg_testset_save_CFLAGS"
16384fi
16385
16386if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16387	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16388		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16389	fi
16390	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16391	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16392printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16393if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16394then :
16395  printf %s "(cached) " >&6
16396else case e in #(
16397  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16398/* end confdefs.h.  */
16399int i;
16400_ACEOF
16401if ac_fn_c_try_compile "$LINENO"
16402then :
16403  xorg_cv_cc_flag_unused_command_line_argument=yes
16404else case e in #(
16405  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16406esac
16407fi
16408rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16409esac
16410fi
16411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16412printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16413	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16414	CFLAGS="$xorg_testset_save_CFLAGS"
16415fi
16416
16417found="no"
16418
16419	if test $found = "no" ; then
16420		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16421			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16422		fi
16423
16424		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16425			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16426		fi
16427
16428		CFLAGS="$CFLAGS -Werror=return-type"
16429
16430		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16431printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16432		cacheid=xorg_cv_cc_flag__Werror_return_type
16433		if eval test \${$cacheid+y}
16434then :
16435  printf %s "(cached) " >&6
16436else case e in #(
16437  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16438/* end confdefs.h.  */
16439int i;
16440int
16441main (void)
16442{
16443
16444  ;
16445  return 0;
16446}
16447_ACEOF
16448if ac_fn_c_try_link "$LINENO"
16449then :
16450  eval $cacheid=yes
16451else case e in #(
16452  e) eval $cacheid=no ;;
16453esac
16454fi
16455rm -f core conftest.err conftest.$ac_objext conftest.beam \
16456    conftest$ac_exeext conftest.$ac_ext ;;
16457esac
16458fi
16459
16460
16461		CFLAGS="$xorg_testset_save_CFLAGS"
16462
16463		eval supported=\$$cacheid
16464		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16465printf "%s\n" "$supported" >&6; }
16466		if test "$supported" = "yes" ; then
16467			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16468			found="yes"
16469		fi
16470	fi
16471
16472	if test $found = "no" ; then
16473		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16474			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16475		fi
16476
16477		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16478			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16479		fi
16480
16481		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16482
16483		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16484printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16485		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16486		if eval test \${$cacheid+y}
16487then :
16488  printf %s "(cached) " >&6
16489else case e in #(
16490  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16491/* end confdefs.h.  */
16492int i;
16493int
16494main (void)
16495{
16496
16497  ;
16498  return 0;
16499}
16500_ACEOF
16501if ac_fn_c_try_link "$LINENO"
16502then :
16503  eval $cacheid=yes
16504else case e in #(
16505  e) eval $cacheid=no ;;
16506esac
16507fi
16508rm -f core conftest.err conftest.$ac_objext conftest.beam \
16509    conftest$ac_exeext conftest.$ac_ext ;;
16510esac
16511fi
16512
16513
16514		CFLAGS="$xorg_testset_save_CFLAGS"
16515
16516		eval supported=\$$cacheid
16517		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16518printf "%s\n" "$supported" >&6; }
16519		if test "$supported" = "yes" ; then
16520			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16521			found="yes"
16522		fi
16523	fi
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539xorg_testset_save_CFLAGS="$CFLAGS"
16540
16541if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16542	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16543	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16544printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16545if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16546then :
16547  printf %s "(cached) " >&6
16548else case e in #(
16549  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16550/* end confdefs.h.  */
16551int i;
16552_ACEOF
16553if ac_fn_c_try_compile "$LINENO"
16554then :
16555  xorg_cv_cc_flag_unknown_warning_option=yes
16556else case e in #(
16557  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16558esac
16559fi
16560rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16561esac
16562fi
16563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16564printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16565	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16566	CFLAGS="$xorg_testset_save_CFLAGS"
16567fi
16568
16569if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16570	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16571		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16572	fi
16573	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16574	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16575printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16576if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16577then :
16578  printf %s "(cached) " >&6
16579else case e in #(
16580  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16581/* end confdefs.h.  */
16582int i;
16583_ACEOF
16584if ac_fn_c_try_compile "$LINENO"
16585then :
16586  xorg_cv_cc_flag_unused_command_line_argument=yes
16587else case e in #(
16588  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16589esac
16590fi
16591rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16592esac
16593fi
16594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16595printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16596	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16597	CFLAGS="$xorg_testset_save_CFLAGS"
16598fi
16599
16600found="no"
16601
16602	if test $found = "no" ; then
16603		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16604			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16605		fi
16606
16607		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16608			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16609		fi
16610
16611		CFLAGS="$CFLAGS -Werror=trigraphs"
16612
16613		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16614printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16615		cacheid=xorg_cv_cc_flag__Werror_trigraphs
16616		if eval test \${$cacheid+y}
16617then :
16618  printf %s "(cached) " >&6
16619else case e in #(
16620  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16621/* end confdefs.h.  */
16622int i;
16623int
16624main (void)
16625{
16626
16627  ;
16628  return 0;
16629}
16630_ACEOF
16631if ac_fn_c_try_link "$LINENO"
16632then :
16633  eval $cacheid=yes
16634else case e in #(
16635  e) eval $cacheid=no ;;
16636esac
16637fi
16638rm -f core conftest.err conftest.$ac_objext conftest.beam \
16639    conftest$ac_exeext conftest.$ac_ext ;;
16640esac
16641fi
16642
16643
16644		CFLAGS="$xorg_testset_save_CFLAGS"
16645
16646		eval supported=\$$cacheid
16647		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16648printf "%s\n" "$supported" >&6; }
16649		if test "$supported" = "yes" ; then
16650			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16651			found="yes"
16652		fi
16653	fi
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669xorg_testset_save_CFLAGS="$CFLAGS"
16670
16671if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16672	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16673	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16674printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16675if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16676then :
16677  printf %s "(cached) " >&6
16678else case e in #(
16679  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16680/* end confdefs.h.  */
16681int i;
16682_ACEOF
16683if ac_fn_c_try_compile "$LINENO"
16684then :
16685  xorg_cv_cc_flag_unknown_warning_option=yes
16686else case e in #(
16687  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16688esac
16689fi
16690rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16691esac
16692fi
16693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16694printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16695	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16696	CFLAGS="$xorg_testset_save_CFLAGS"
16697fi
16698
16699if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16700	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16701		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16702	fi
16703	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16704	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16705printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16706if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16707then :
16708  printf %s "(cached) " >&6
16709else case e in #(
16710  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16711/* end confdefs.h.  */
16712int i;
16713_ACEOF
16714if ac_fn_c_try_compile "$LINENO"
16715then :
16716  xorg_cv_cc_flag_unused_command_line_argument=yes
16717else case e in #(
16718  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16719esac
16720fi
16721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16722esac
16723fi
16724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16725printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16726	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16727	CFLAGS="$xorg_testset_save_CFLAGS"
16728fi
16729
16730found="no"
16731
16732	if test $found = "no" ; then
16733		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16734			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16735		fi
16736
16737		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16738			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16739		fi
16740
16741		CFLAGS="$CFLAGS -Werror=array-bounds"
16742
16743		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16744printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16745		cacheid=xorg_cv_cc_flag__Werror_array_bounds
16746		if eval test \${$cacheid+y}
16747then :
16748  printf %s "(cached) " >&6
16749else case e in #(
16750  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16751/* end confdefs.h.  */
16752int i;
16753int
16754main (void)
16755{
16756
16757  ;
16758  return 0;
16759}
16760_ACEOF
16761if ac_fn_c_try_link "$LINENO"
16762then :
16763  eval $cacheid=yes
16764else case e in #(
16765  e) eval $cacheid=no ;;
16766esac
16767fi
16768rm -f core conftest.err conftest.$ac_objext conftest.beam \
16769    conftest$ac_exeext conftest.$ac_ext ;;
16770esac
16771fi
16772
16773
16774		CFLAGS="$xorg_testset_save_CFLAGS"
16775
16776		eval supported=\$$cacheid
16777		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16778printf "%s\n" "$supported" >&6; }
16779		if test "$supported" = "yes" ; then
16780			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16781			found="yes"
16782		fi
16783	fi
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799xorg_testset_save_CFLAGS="$CFLAGS"
16800
16801if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16802	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16803	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16804printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16805if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16806then :
16807  printf %s "(cached) " >&6
16808else case e in #(
16809  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16810/* end confdefs.h.  */
16811int i;
16812_ACEOF
16813if ac_fn_c_try_compile "$LINENO"
16814then :
16815  xorg_cv_cc_flag_unknown_warning_option=yes
16816else case e in #(
16817  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16818esac
16819fi
16820rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16821esac
16822fi
16823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16824printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16825	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16826	CFLAGS="$xorg_testset_save_CFLAGS"
16827fi
16828
16829if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16830	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16831		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16832	fi
16833	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16834	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16835printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16836if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16837then :
16838  printf %s "(cached) " >&6
16839else case e in #(
16840  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16841/* end confdefs.h.  */
16842int i;
16843_ACEOF
16844if ac_fn_c_try_compile "$LINENO"
16845then :
16846  xorg_cv_cc_flag_unused_command_line_argument=yes
16847else case e in #(
16848  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16849esac
16850fi
16851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16852esac
16853fi
16854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16855printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16856	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16857	CFLAGS="$xorg_testset_save_CFLAGS"
16858fi
16859
16860found="no"
16861
16862	if test $found = "no" ; then
16863		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16864			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16865		fi
16866
16867		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16868			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16869		fi
16870
16871		CFLAGS="$CFLAGS -Werror=write-strings"
16872
16873		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16874printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16875		cacheid=xorg_cv_cc_flag__Werror_write_strings
16876		if eval test \${$cacheid+y}
16877then :
16878  printf %s "(cached) " >&6
16879else case e in #(
16880  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16881/* end confdefs.h.  */
16882int i;
16883int
16884main (void)
16885{
16886
16887  ;
16888  return 0;
16889}
16890_ACEOF
16891if ac_fn_c_try_link "$LINENO"
16892then :
16893  eval $cacheid=yes
16894else case e in #(
16895  e) eval $cacheid=no ;;
16896esac
16897fi
16898rm -f core conftest.err conftest.$ac_objext conftest.beam \
16899    conftest$ac_exeext conftest.$ac_ext ;;
16900esac
16901fi
16902
16903
16904		CFLAGS="$xorg_testset_save_CFLAGS"
16905
16906		eval supported=\$$cacheid
16907		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16908printf "%s\n" "$supported" >&6; }
16909		if test "$supported" = "yes" ; then
16910			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16911			found="yes"
16912		fi
16913	fi
16914
16915
16916
16917
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929xorg_testset_save_CFLAGS="$CFLAGS"
16930
16931if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16932	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16933	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16934printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16935if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16936then :
16937  printf %s "(cached) " >&6
16938else case e in #(
16939  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16940/* end confdefs.h.  */
16941int i;
16942_ACEOF
16943if ac_fn_c_try_compile "$LINENO"
16944then :
16945  xorg_cv_cc_flag_unknown_warning_option=yes
16946else case e in #(
16947  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16948esac
16949fi
16950rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16951esac
16952fi
16953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16954printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16955	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16956	CFLAGS="$xorg_testset_save_CFLAGS"
16957fi
16958
16959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16960	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16961		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16962	fi
16963	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16964	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16965printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16966if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16967then :
16968  printf %s "(cached) " >&6
16969else case e in #(
16970  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16971/* end confdefs.h.  */
16972int i;
16973_ACEOF
16974if ac_fn_c_try_compile "$LINENO"
16975then :
16976  xorg_cv_cc_flag_unused_command_line_argument=yes
16977else case e in #(
16978  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16979esac
16980fi
16981rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16982esac
16983fi
16984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16985printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16986	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16987	CFLAGS="$xorg_testset_save_CFLAGS"
16988fi
16989
16990found="no"
16991
16992	if test $found = "no" ; then
16993		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16994			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16995		fi
16996
16997		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16998			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16999		fi
17000
17001		CFLAGS="$CFLAGS -Werror=address"
17002
17003		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17004printf %s "checking if $CC supports -Werror=address... " >&6; }
17005		cacheid=xorg_cv_cc_flag__Werror_address
17006		if eval test \${$cacheid+y}
17007then :
17008  printf %s "(cached) " >&6
17009else case e in #(
17010  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17011/* end confdefs.h.  */
17012int i;
17013int
17014main (void)
17015{
17016
17017  ;
17018  return 0;
17019}
17020_ACEOF
17021if ac_fn_c_try_link "$LINENO"
17022then :
17023  eval $cacheid=yes
17024else case e in #(
17025  e) eval $cacheid=no ;;
17026esac
17027fi
17028rm -f core conftest.err conftest.$ac_objext conftest.beam \
17029    conftest$ac_exeext conftest.$ac_ext ;;
17030esac
17031fi
17032
17033
17034		CFLAGS="$xorg_testset_save_CFLAGS"
17035
17036		eval supported=\$$cacheid
17037		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17038printf "%s\n" "$supported" >&6; }
17039		if test "$supported" = "yes" ; then
17040			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17041			found="yes"
17042		fi
17043	fi
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059xorg_testset_save_CFLAGS="$CFLAGS"
17060
17061if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17062	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17063	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17064printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17065if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17066then :
17067  printf %s "(cached) " >&6
17068else case e in #(
17069  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17070/* end confdefs.h.  */
17071int i;
17072_ACEOF
17073if ac_fn_c_try_compile "$LINENO"
17074then :
17075  xorg_cv_cc_flag_unknown_warning_option=yes
17076else case e in #(
17077  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17078esac
17079fi
17080rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17081esac
17082fi
17083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17084printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17085	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17086	CFLAGS="$xorg_testset_save_CFLAGS"
17087fi
17088
17089if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17090	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17091		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17092	fi
17093	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17094	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17095printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17096if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17097then :
17098  printf %s "(cached) " >&6
17099else case e in #(
17100  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17101/* end confdefs.h.  */
17102int i;
17103_ACEOF
17104if ac_fn_c_try_compile "$LINENO"
17105then :
17106  xorg_cv_cc_flag_unused_command_line_argument=yes
17107else case e in #(
17108  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17109esac
17110fi
17111rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17112esac
17113fi
17114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17115printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17116	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17117	CFLAGS="$xorg_testset_save_CFLAGS"
17118fi
17119
17120found="no"
17121
17122	if test $found = "no" ; then
17123		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17124			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17125		fi
17126
17127		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17128			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17129		fi
17130
17131		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17132
17133		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17134printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17135		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17136		if eval test \${$cacheid+y}
17137then :
17138  printf %s "(cached) " >&6
17139else case e in #(
17140  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17141/* end confdefs.h.  */
17142int i;
17143int
17144main (void)
17145{
17146
17147  ;
17148  return 0;
17149}
17150_ACEOF
17151if ac_fn_c_try_link "$LINENO"
17152then :
17153  eval $cacheid=yes
17154else case e in #(
17155  e) eval $cacheid=no ;;
17156esac
17157fi
17158rm -f core conftest.err conftest.$ac_objext conftest.beam \
17159    conftest$ac_exeext conftest.$ac_ext ;;
17160esac
17161fi
17162
17163
17164		CFLAGS="$xorg_testset_save_CFLAGS"
17165
17166		eval supported=\$$cacheid
17167		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17168printf "%s\n" "$supported" >&6; }
17169		if test "$supported" = "yes" ; then
17170			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17171			found="yes"
17172		fi
17173	fi
17174
17175	if test $found = "no" ; then
17176		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17177			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17178		fi
17179
17180		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17181			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17182		fi
17183
17184		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17185
17186		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17187printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17188		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17189		if eval test \${$cacheid+y}
17190then :
17191  printf %s "(cached) " >&6
17192else case e in #(
17193  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17194/* end confdefs.h.  */
17195int i;
17196int
17197main (void)
17198{
17199
17200  ;
17201  return 0;
17202}
17203_ACEOF
17204if ac_fn_c_try_link "$LINENO"
17205then :
17206  eval $cacheid=yes
17207else case e in #(
17208  e) eval $cacheid=no ;;
17209esac
17210fi
17211rm -f core conftest.err conftest.$ac_objext conftest.beam \
17212    conftest$ac_exeext conftest.$ac_ext ;;
17213esac
17214fi
17215
17216
17217		CFLAGS="$xorg_testset_save_CFLAGS"
17218
17219		eval supported=\$$cacheid
17220		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17221printf "%s\n" "$supported" >&6; }
17222		if test "$supported" = "yes" ; then
17223			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17224			found="yes"
17225		fi
17226	fi
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242xorg_testset_save_CFLAGS="$CFLAGS"
17243
17244if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17245	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17246	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17247printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17248if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17249then :
17250  printf %s "(cached) " >&6
17251else case e in #(
17252  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17253/* end confdefs.h.  */
17254int i;
17255_ACEOF
17256if ac_fn_c_try_compile "$LINENO"
17257then :
17258  xorg_cv_cc_flag_unknown_warning_option=yes
17259else case e in #(
17260  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17261esac
17262fi
17263rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17264esac
17265fi
17266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17267printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17268	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17269	CFLAGS="$xorg_testset_save_CFLAGS"
17270fi
17271
17272if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17273	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17274		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17275	fi
17276	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17277	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17278printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17279if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17280then :
17281  printf %s "(cached) " >&6
17282else case e in #(
17283  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17284/* end confdefs.h.  */
17285int i;
17286_ACEOF
17287if ac_fn_c_try_compile "$LINENO"
17288then :
17289  xorg_cv_cc_flag_unused_command_line_argument=yes
17290else case e in #(
17291  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17292esac
17293fi
17294rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17295esac
17296fi
17297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17298printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17299	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17300	CFLAGS="$xorg_testset_save_CFLAGS"
17301fi
17302
17303found="no"
17304
17305	if test $found = "no" ; then
17306		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17307			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17308		fi
17309
17310		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17311			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17312		fi
17313
17314		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17315
17316		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17317printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17318		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17319		if eval test \${$cacheid+y}
17320then :
17321  printf %s "(cached) " >&6
17322else case e in #(
17323  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17324/* end confdefs.h.  */
17325int i;
17326int
17327main (void)
17328{
17329
17330  ;
17331  return 0;
17332}
17333_ACEOF
17334if ac_fn_c_try_link "$LINENO"
17335then :
17336  eval $cacheid=yes
17337else case e in #(
17338  e) eval $cacheid=no ;;
17339esac
17340fi
17341rm -f core conftest.err conftest.$ac_objext conftest.beam \
17342    conftest$ac_exeext conftest.$ac_ext ;;
17343esac
17344fi
17345
17346
17347		CFLAGS="$xorg_testset_save_CFLAGS"
17348
17349		eval supported=\$$cacheid
17350		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17351printf "%s\n" "$supported" >&6; }
17352		if test "$supported" = "yes" ; then
17353			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17354			found="yes"
17355		fi
17356	fi
17357
17358 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17359else
17360{ 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
17361printf "%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;}
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375xorg_testset_save_CFLAGS="$CFLAGS"
17376
17377if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17378	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17379	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17380printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17381if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17382then :
17383  printf %s "(cached) " >&6
17384else case e in #(
17385  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17386/* end confdefs.h.  */
17387int i;
17388_ACEOF
17389if ac_fn_c_try_compile "$LINENO"
17390then :
17391  xorg_cv_cc_flag_unknown_warning_option=yes
17392else case e in #(
17393  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17394esac
17395fi
17396rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17397esac
17398fi
17399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17400printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17401	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17402	CFLAGS="$xorg_testset_save_CFLAGS"
17403fi
17404
17405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17406	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17407		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17408	fi
17409	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17410	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17411printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17412if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17413then :
17414  printf %s "(cached) " >&6
17415else case e in #(
17416  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17417/* end confdefs.h.  */
17418int i;
17419_ACEOF
17420if ac_fn_c_try_compile "$LINENO"
17421then :
17422  xorg_cv_cc_flag_unused_command_line_argument=yes
17423else case e in #(
17424  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17425esac
17426fi
17427rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17428esac
17429fi
17430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17431printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17432	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17433	CFLAGS="$xorg_testset_save_CFLAGS"
17434fi
17435
17436found="no"
17437
17438	if test $found = "no" ; then
17439		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17440			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17441		fi
17442
17443		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17444			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17445		fi
17446
17447		CFLAGS="$CFLAGS -Wimplicit"
17448
17449		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17450printf %s "checking if $CC supports -Wimplicit... " >&6; }
17451		cacheid=xorg_cv_cc_flag__Wimplicit
17452		if eval test \${$cacheid+y}
17453then :
17454  printf %s "(cached) " >&6
17455else case e in #(
17456  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17457/* end confdefs.h.  */
17458int i;
17459int
17460main (void)
17461{
17462
17463  ;
17464  return 0;
17465}
17466_ACEOF
17467if ac_fn_c_try_link "$LINENO"
17468then :
17469  eval $cacheid=yes
17470else case e in #(
17471  e) eval $cacheid=no ;;
17472esac
17473fi
17474rm -f core conftest.err conftest.$ac_objext conftest.beam \
17475    conftest$ac_exeext conftest.$ac_ext ;;
17476esac
17477fi
17478
17479
17480		CFLAGS="$xorg_testset_save_CFLAGS"
17481
17482		eval supported=\$$cacheid
17483		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17484printf "%s\n" "$supported" >&6; }
17485		if test "$supported" = "yes" ; then
17486			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17487			found="yes"
17488		fi
17489	fi
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505xorg_testset_save_CFLAGS="$CFLAGS"
17506
17507if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17508	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17509	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17510printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17511if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17512then :
17513  printf %s "(cached) " >&6
17514else case e in #(
17515  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17516/* end confdefs.h.  */
17517int i;
17518_ACEOF
17519if ac_fn_c_try_compile "$LINENO"
17520then :
17521  xorg_cv_cc_flag_unknown_warning_option=yes
17522else case e in #(
17523  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17524esac
17525fi
17526rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17527esac
17528fi
17529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17530printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17531	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17532	CFLAGS="$xorg_testset_save_CFLAGS"
17533fi
17534
17535if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17536	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17537		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17538	fi
17539	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17540	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17541printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17542if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17543then :
17544  printf %s "(cached) " >&6
17545else case e in #(
17546  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17547/* end confdefs.h.  */
17548int i;
17549_ACEOF
17550if ac_fn_c_try_compile "$LINENO"
17551then :
17552  xorg_cv_cc_flag_unused_command_line_argument=yes
17553else case e in #(
17554  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17555esac
17556fi
17557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17558esac
17559fi
17560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17561printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17562	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17563	CFLAGS="$xorg_testset_save_CFLAGS"
17564fi
17565
17566found="no"
17567
17568	if test $found = "no" ; then
17569		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17570			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17571		fi
17572
17573		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17574			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17575		fi
17576
17577		CFLAGS="$CFLAGS -Wnonnull"
17578
17579		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17580printf %s "checking if $CC supports -Wnonnull... " >&6; }
17581		cacheid=xorg_cv_cc_flag__Wnonnull
17582		if eval test \${$cacheid+y}
17583then :
17584  printf %s "(cached) " >&6
17585else case e in #(
17586  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17587/* end confdefs.h.  */
17588int i;
17589int
17590main (void)
17591{
17592
17593  ;
17594  return 0;
17595}
17596_ACEOF
17597if ac_fn_c_try_link "$LINENO"
17598then :
17599  eval $cacheid=yes
17600else case e in #(
17601  e) eval $cacheid=no ;;
17602esac
17603fi
17604rm -f core conftest.err conftest.$ac_objext conftest.beam \
17605    conftest$ac_exeext conftest.$ac_ext ;;
17606esac
17607fi
17608
17609
17610		CFLAGS="$xorg_testset_save_CFLAGS"
17611
17612		eval supported=\$$cacheid
17613		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17614printf "%s\n" "$supported" >&6; }
17615		if test "$supported" = "yes" ; then
17616			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17617			found="yes"
17618		fi
17619	fi
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635xorg_testset_save_CFLAGS="$CFLAGS"
17636
17637if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17638	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17639	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17640printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17641if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17642then :
17643  printf %s "(cached) " >&6
17644else case e in #(
17645  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17646/* end confdefs.h.  */
17647int i;
17648_ACEOF
17649if ac_fn_c_try_compile "$LINENO"
17650then :
17651  xorg_cv_cc_flag_unknown_warning_option=yes
17652else case e in #(
17653  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17654esac
17655fi
17656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17657esac
17658fi
17659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17660printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17661	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17662	CFLAGS="$xorg_testset_save_CFLAGS"
17663fi
17664
17665if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17666	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17667		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17668	fi
17669	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17670	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17671printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17672if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17673then :
17674  printf %s "(cached) " >&6
17675else case e in #(
17676  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17677/* end confdefs.h.  */
17678int i;
17679_ACEOF
17680if ac_fn_c_try_compile "$LINENO"
17681then :
17682  xorg_cv_cc_flag_unused_command_line_argument=yes
17683else case e in #(
17684  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17685esac
17686fi
17687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17688esac
17689fi
17690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17691printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17692	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17693	CFLAGS="$xorg_testset_save_CFLAGS"
17694fi
17695
17696found="no"
17697
17698	if test $found = "no" ; then
17699		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17700			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17701		fi
17702
17703		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17704			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17705		fi
17706
17707		CFLAGS="$CFLAGS -Winit-self"
17708
17709		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17710printf %s "checking if $CC supports -Winit-self... " >&6; }
17711		cacheid=xorg_cv_cc_flag__Winit_self
17712		if eval test \${$cacheid+y}
17713then :
17714  printf %s "(cached) " >&6
17715else case e in #(
17716  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17717/* end confdefs.h.  */
17718int i;
17719int
17720main (void)
17721{
17722
17723  ;
17724  return 0;
17725}
17726_ACEOF
17727if ac_fn_c_try_link "$LINENO"
17728then :
17729  eval $cacheid=yes
17730else case e in #(
17731  e) eval $cacheid=no ;;
17732esac
17733fi
17734rm -f core conftest.err conftest.$ac_objext conftest.beam \
17735    conftest$ac_exeext conftest.$ac_ext ;;
17736esac
17737fi
17738
17739
17740		CFLAGS="$xorg_testset_save_CFLAGS"
17741
17742		eval supported=\$$cacheid
17743		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17744printf "%s\n" "$supported" >&6; }
17745		if test "$supported" = "yes" ; then
17746			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17747			found="yes"
17748		fi
17749	fi
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765xorg_testset_save_CFLAGS="$CFLAGS"
17766
17767if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17768	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17769	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17770printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17771if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17772then :
17773  printf %s "(cached) " >&6
17774else case e in #(
17775  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17776/* end confdefs.h.  */
17777int i;
17778_ACEOF
17779if ac_fn_c_try_compile "$LINENO"
17780then :
17781  xorg_cv_cc_flag_unknown_warning_option=yes
17782else case e in #(
17783  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17784esac
17785fi
17786rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17787esac
17788fi
17789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17790printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17791	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17792	CFLAGS="$xorg_testset_save_CFLAGS"
17793fi
17794
17795if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17796	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17797		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17798	fi
17799	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17800	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17801printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17802if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17803then :
17804  printf %s "(cached) " >&6
17805else case e in #(
17806  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17807/* end confdefs.h.  */
17808int i;
17809_ACEOF
17810if ac_fn_c_try_compile "$LINENO"
17811then :
17812  xorg_cv_cc_flag_unused_command_line_argument=yes
17813else case e in #(
17814  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17815esac
17816fi
17817rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17818esac
17819fi
17820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17821printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17822	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17823	CFLAGS="$xorg_testset_save_CFLAGS"
17824fi
17825
17826found="no"
17827
17828	if test $found = "no" ; then
17829		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17830			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17831		fi
17832
17833		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17834			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17835		fi
17836
17837		CFLAGS="$CFLAGS -Wmain"
17838
17839		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17840printf %s "checking if $CC supports -Wmain... " >&6; }
17841		cacheid=xorg_cv_cc_flag__Wmain
17842		if eval test \${$cacheid+y}
17843then :
17844  printf %s "(cached) " >&6
17845else case e in #(
17846  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17847/* end confdefs.h.  */
17848int i;
17849int
17850main (void)
17851{
17852
17853  ;
17854  return 0;
17855}
17856_ACEOF
17857if ac_fn_c_try_link "$LINENO"
17858then :
17859  eval $cacheid=yes
17860else case e in #(
17861  e) eval $cacheid=no ;;
17862esac
17863fi
17864rm -f core conftest.err conftest.$ac_objext conftest.beam \
17865    conftest$ac_exeext conftest.$ac_ext ;;
17866esac
17867fi
17868
17869
17870		CFLAGS="$xorg_testset_save_CFLAGS"
17871
17872		eval supported=\$$cacheid
17873		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17874printf "%s\n" "$supported" >&6; }
17875		if test "$supported" = "yes" ; then
17876			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17877			found="yes"
17878		fi
17879	fi
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895xorg_testset_save_CFLAGS="$CFLAGS"
17896
17897if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17898	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17899	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17900printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17901if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17902then :
17903  printf %s "(cached) " >&6
17904else case e in #(
17905  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17906/* end confdefs.h.  */
17907int i;
17908_ACEOF
17909if ac_fn_c_try_compile "$LINENO"
17910then :
17911  xorg_cv_cc_flag_unknown_warning_option=yes
17912else case e in #(
17913  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17914esac
17915fi
17916rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17917esac
17918fi
17919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17920printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17921	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17922	CFLAGS="$xorg_testset_save_CFLAGS"
17923fi
17924
17925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17926	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17927		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17928	fi
17929	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17930	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17931printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17932if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17933then :
17934  printf %s "(cached) " >&6
17935else case e in #(
17936  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17937/* end confdefs.h.  */
17938int i;
17939_ACEOF
17940if ac_fn_c_try_compile "$LINENO"
17941then :
17942  xorg_cv_cc_flag_unused_command_line_argument=yes
17943else case e in #(
17944  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17945esac
17946fi
17947rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17948esac
17949fi
17950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17951printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17952	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17953	CFLAGS="$xorg_testset_save_CFLAGS"
17954fi
17955
17956found="no"
17957
17958	if test $found = "no" ; then
17959		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17960			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17961		fi
17962
17963		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17964			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17965		fi
17966
17967		CFLAGS="$CFLAGS -Wmissing-braces"
17968
17969		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17970printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17971		cacheid=xorg_cv_cc_flag__Wmissing_braces
17972		if eval test \${$cacheid+y}
17973then :
17974  printf %s "(cached) " >&6
17975else case e in #(
17976  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17977/* end confdefs.h.  */
17978int i;
17979int
17980main (void)
17981{
17982
17983  ;
17984  return 0;
17985}
17986_ACEOF
17987if ac_fn_c_try_link "$LINENO"
17988then :
17989  eval $cacheid=yes
17990else case e in #(
17991  e) eval $cacheid=no ;;
17992esac
17993fi
17994rm -f core conftest.err conftest.$ac_objext conftest.beam \
17995    conftest$ac_exeext conftest.$ac_ext ;;
17996esac
17997fi
17998
17999
18000		CFLAGS="$xorg_testset_save_CFLAGS"
18001
18002		eval supported=\$$cacheid
18003		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18004printf "%s\n" "$supported" >&6; }
18005		if test "$supported" = "yes" ; then
18006			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18007			found="yes"
18008		fi
18009	fi
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025xorg_testset_save_CFLAGS="$CFLAGS"
18026
18027if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18028	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18029	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18030printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18031if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18032then :
18033  printf %s "(cached) " >&6
18034else case e in #(
18035  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18036/* end confdefs.h.  */
18037int i;
18038_ACEOF
18039if ac_fn_c_try_compile "$LINENO"
18040then :
18041  xorg_cv_cc_flag_unknown_warning_option=yes
18042else case e in #(
18043  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18044esac
18045fi
18046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18047esac
18048fi
18049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18050printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18051	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18052	CFLAGS="$xorg_testset_save_CFLAGS"
18053fi
18054
18055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18056	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18057		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18058	fi
18059	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18060	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18061printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18062if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18063then :
18064  printf %s "(cached) " >&6
18065else case e in #(
18066  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18067/* end confdefs.h.  */
18068int i;
18069_ACEOF
18070if ac_fn_c_try_compile "$LINENO"
18071then :
18072  xorg_cv_cc_flag_unused_command_line_argument=yes
18073else case e in #(
18074  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18075esac
18076fi
18077rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18078esac
18079fi
18080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18081printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18082	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18083	CFLAGS="$xorg_testset_save_CFLAGS"
18084fi
18085
18086found="no"
18087
18088	if test $found = "no" ; then
18089		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18090			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18091		fi
18092
18093		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18094			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18095		fi
18096
18097		CFLAGS="$CFLAGS -Wsequence-point"
18098
18099		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18100printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18101		cacheid=xorg_cv_cc_flag__Wsequence_point
18102		if eval test \${$cacheid+y}
18103then :
18104  printf %s "(cached) " >&6
18105else case e in #(
18106  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18107/* end confdefs.h.  */
18108int i;
18109int
18110main (void)
18111{
18112
18113  ;
18114  return 0;
18115}
18116_ACEOF
18117if ac_fn_c_try_link "$LINENO"
18118then :
18119  eval $cacheid=yes
18120else case e in #(
18121  e) eval $cacheid=no ;;
18122esac
18123fi
18124rm -f core conftest.err conftest.$ac_objext conftest.beam \
18125    conftest$ac_exeext conftest.$ac_ext ;;
18126esac
18127fi
18128
18129
18130		CFLAGS="$xorg_testset_save_CFLAGS"
18131
18132		eval supported=\$$cacheid
18133		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18134printf "%s\n" "$supported" >&6; }
18135		if test "$supported" = "yes" ; then
18136			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18137			found="yes"
18138		fi
18139	fi
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155xorg_testset_save_CFLAGS="$CFLAGS"
18156
18157if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18158	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18159	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18160printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18161if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18162then :
18163  printf %s "(cached) " >&6
18164else case e in #(
18165  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18166/* end confdefs.h.  */
18167int i;
18168_ACEOF
18169if ac_fn_c_try_compile "$LINENO"
18170then :
18171  xorg_cv_cc_flag_unknown_warning_option=yes
18172else case e in #(
18173  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18174esac
18175fi
18176rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18177esac
18178fi
18179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18180printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18181	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18182	CFLAGS="$xorg_testset_save_CFLAGS"
18183fi
18184
18185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18186	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18187		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18188	fi
18189	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18190	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18191printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18192if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18193then :
18194  printf %s "(cached) " >&6
18195else case e in #(
18196  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18197/* end confdefs.h.  */
18198int i;
18199_ACEOF
18200if ac_fn_c_try_compile "$LINENO"
18201then :
18202  xorg_cv_cc_flag_unused_command_line_argument=yes
18203else case e in #(
18204  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18205esac
18206fi
18207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18208esac
18209fi
18210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18211printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18212	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18213	CFLAGS="$xorg_testset_save_CFLAGS"
18214fi
18215
18216found="no"
18217
18218	if test $found = "no" ; then
18219		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18220			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18221		fi
18222
18223		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18224			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18225		fi
18226
18227		CFLAGS="$CFLAGS -Wreturn-type"
18228
18229		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18230printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18231		cacheid=xorg_cv_cc_flag__Wreturn_type
18232		if eval test \${$cacheid+y}
18233then :
18234  printf %s "(cached) " >&6
18235else case e in #(
18236  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18237/* end confdefs.h.  */
18238int i;
18239int
18240main (void)
18241{
18242
18243  ;
18244  return 0;
18245}
18246_ACEOF
18247if ac_fn_c_try_link "$LINENO"
18248then :
18249  eval $cacheid=yes
18250else case e in #(
18251  e) eval $cacheid=no ;;
18252esac
18253fi
18254rm -f core conftest.err conftest.$ac_objext conftest.beam \
18255    conftest$ac_exeext conftest.$ac_ext ;;
18256esac
18257fi
18258
18259
18260		CFLAGS="$xorg_testset_save_CFLAGS"
18261
18262		eval supported=\$$cacheid
18263		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18264printf "%s\n" "$supported" >&6; }
18265		if test "$supported" = "yes" ; then
18266			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18267			found="yes"
18268		fi
18269	fi
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285xorg_testset_save_CFLAGS="$CFLAGS"
18286
18287if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18288	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18289	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18290printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18291if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18292then :
18293  printf %s "(cached) " >&6
18294else case e in #(
18295  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18296/* end confdefs.h.  */
18297int i;
18298_ACEOF
18299if ac_fn_c_try_compile "$LINENO"
18300then :
18301  xorg_cv_cc_flag_unknown_warning_option=yes
18302else case e in #(
18303  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18304esac
18305fi
18306rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18307esac
18308fi
18309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18310printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18311	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18312	CFLAGS="$xorg_testset_save_CFLAGS"
18313fi
18314
18315if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18316	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18317		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18318	fi
18319	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18320	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18321printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18322if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18323then :
18324  printf %s "(cached) " >&6
18325else case e in #(
18326  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18327/* end confdefs.h.  */
18328int i;
18329_ACEOF
18330if ac_fn_c_try_compile "$LINENO"
18331then :
18332  xorg_cv_cc_flag_unused_command_line_argument=yes
18333else case e in #(
18334  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18335esac
18336fi
18337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18338esac
18339fi
18340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18341printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18342	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18343	CFLAGS="$xorg_testset_save_CFLAGS"
18344fi
18345
18346found="no"
18347
18348	if test $found = "no" ; then
18349		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18350			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18351		fi
18352
18353		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18354			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18355		fi
18356
18357		CFLAGS="$CFLAGS -Wtrigraphs"
18358
18359		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18360printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18361		cacheid=xorg_cv_cc_flag__Wtrigraphs
18362		if eval test \${$cacheid+y}
18363then :
18364  printf %s "(cached) " >&6
18365else case e in #(
18366  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18367/* end confdefs.h.  */
18368int i;
18369int
18370main (void)
18371{
18372
18373  ;
18374  return 0;
18375}
18376_ACEOF
18377if ac_fn_c_try_link "$LINENO"
18378then :
18379  eval $cacheid=yes
18380else case e in #(
18381  e) eval $cacheid=no ;;
18382esac
18383fi
18384rm -f core conftest.err conftest.$ac_objext conftest.beam \
18385    conftest$ac_exeext conftest.$ac_ext ;;
18386esac
18387fi
18388
18389
18390		CFLAGS="$xorg_testset_save_CFLAGS"
18391
18392		eval supported=\$$cacheid
18393		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18394printf "%s\n" "$supported" >&6; }
18395		if test "$supported" = "yes" ; then
18396			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18397			found="yes"
18398		fi
18399	fi
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415xorg_testset_save_CFLAGS="$CFLAGS"
18416
18417if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18418	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18419	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18420printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18421if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18422then :
18423  printf %s "(cached) " >&6
18424else case e in #(
18425  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18426/* end confdefs.h.  */
18427int i;
18428_ACEOF
18429if ac_fn_c_try_compile "$LINENO"
18430then :
18431  xorg_cv_cc_flag_unknown_warning_option=yes
18432else case e in #(
18433  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18434esac
18435fi
18436rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18437esac
18438fi
18439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18440printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18441	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18442	CFLAGS="$xorg_testset_save_CFLAGS"
18443fi
18444
18445if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18446	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18447		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18448	fi
18449	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18450	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18451printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18452if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18453then :
18454  printf %s "(cached) " >&6
18455else case e in #(
18456  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18457/* end confdefs.h.  */
18458int i;
18459_ACEOF
18460if ac_fn_c_try_compile "$LINENO"
18461then :
18462  xorg_cv_cc_flag_unused_command_line_argument=yes
18463else case e in #(
18464  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18465esac
18466fi
18467rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18468esac
18469fi
18470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18471printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18472	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18473	CFLAGS="$xorg_testset_save_CFLAGS"
18474fi
18475
18476found="no"
18477
18478	if test $found = "no" ; then
18479		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18480			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18481		fi
18482
18483		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18484			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18485		fi
18486
18487		CFLAGS="$CFLAGS -Warray-bounds"
18488
18489		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18490printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18491		cacheid=xorg_cv_cc_flag__Warray_bounds
18492		if eval test \${$cacheid+y}
18493then :
18494  printf %s "(cached) " >&6
18495else case e in #(
18496  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18497/* end confdefs.h.  */
18498int i;
18499int
18500main (void)
18501{
18502
18503  ;
18504  return 0;
18505}
18506_ACEOF
18507if ac_fn_c_try_link "$LINENO"
18508then :
18509  eval $cacheid=yes
18510else case e in #(
18511  e) eval $cacheid=no ;;
18512esac
18513fi
18514rm -f core conftest.err conftest.$ac_objext conftest.beam \
18515    conftest$ac_exeext conftest.$ac_ext ;;
18516esac
18517fi
18518
18519
18520		CFLAGS="$xorg_testset_save_CFLAGS"
18521
18522		eval supported=\$$cacheid
18523		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18524printf "%s\n" "$supported" >&6; }
18525		if test "$supported" = "yes" ; then
18526			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18527			found="yes"
18528		fi
18529	fi
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545xorg_testset_save_CFLAGS="$CFLAGS"
18546
18547if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18548	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18549	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18550printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18551if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18552then :
18553  printf %s "(cached) " >&6
18554else case e in #(
18555  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18556/* end confdefs.h.  */
18557int i;
18558_ACEOF
18559if ac_fn_c_try_compile "$LINENO"
18560then :
18561  xorg_cv_cc_flag_unknown_warning_option=yes
18562else case e in #(
18563  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18564esac
18565fi
18566rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18567esac
18568fi
18569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18570printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18571	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18572	CFLAGS="$xorg_testset_save_CFLAGS"
18573fi
18574
18575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18576	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18577		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18578	fi
18579	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18580	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18581printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18582if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18583then :
18584  printf %s "(cached) " >&6
18585else case e in #(
18586  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18587/* end confdefs.h.  */
18588int i;
18589_ACEOF
18590if ac_fn_c_try_compile "$LINENO"
18591then :
18592  xorg_cv_cc_flag_unused_command_line_argument=yes
18593else case e in #(
18594  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18595esac
18596fi
18597rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18598esac
18599fi
18600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18601printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18602	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18603	CFLAGS="$xorg_testset_save_CFLAGS"
18604fi
18605
18606found="no"
18607
18608	if test $found = "no" ; then
18609		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18610			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18611		fi
18612
18613		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18614			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18615		fi
18616
18617		CFLAGS="$CFLAGS -Wwrite-strings"
18618
18619		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18620printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18621		cacheid=xorg_cv_cc_flag__Wwrite_strings
18622		if eval test \${$cacheid+y}
18623then :
18624  printf %s "(cached) " >&6
18625else case e in #(
18626  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18627/* end confdefs.h.  */
18628int i;
18629int
18630main (void)
18631{
18632
18633  ;
18634  return 0;
18635}
18636_ACEOF
18637if ac_fn_c_try_link "$LINENO"
18638then :
18639  eval $cacheid=yes
18640else case e in #(
18641  e) eval $cacheid=no ;;
18642esac
18643fi
18644rm -f core conftest.err conftest.$ac_objext conftest.beam \
18645    conftest$ac_exeext conftest.$ac_ext ;;
18646esac
18647fi
18648
18649
18650		CFLAGS="$xorg_testset_save_CFLAGS"
18651
18652		eval supported=\$$cacheid
18653		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18654printf "%s\n" "$supported" >&6; }
18655		if test "$supported" = "yes" ; then
18656			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18657			found="yes"
18658		fi
18659	fi
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675xorg_testset_save_CFLAGS="$CFLAGS"
18676
18677if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18678	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18679	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18680printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18681if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18682then :
18683  printf %s "(cached) " >&6
18684else case e in #(
18685  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18686/* end confdefs.h.  */
18687int i;
18688_ACEOF
18689if ac_fn_c_try_compile "$LINENO"
18690then :
18691  xorg_cv_cc_flag_unknown_warning_option=yes
18692else case e in #(
18693  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18694esac
18695fi
18696rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18697esac
18698fi
18699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18700printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18701	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18702	CFLAGS="$xorg_testset_save_CFLAGS"
18703fi
18704
18705if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18706	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18707		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18708	fi
18709	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18710	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18711printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18712if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18713then :
18714  printf %s "(cached) " >&6
18715else case e in #(
18716  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18717/* end confdefs.h.  */
18718int i;
18719_ACEOF
18720if ac_fn_c_try_compile "$LINENO"
18721then :
18722  xorg_cv_cc_flag_unused_command_line_argument=yes
18723else case e in #(
18724  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18725esac
18726fi
18727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18728esac
18729fi
18730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18731printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18732	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18733	CFLAGS="$xorg_testset_save_CFLAGS"
18734fi
18735
18736found="no"
18737
18738	if test $found = "no" ; then
18739		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18740			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18741		fi
18742
18743		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18744			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18745		fi
18746
18747		CFLAGS="$CFLAGS -Waddress"
18748
18749		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18750printf %s "checking if $CC supports -Waddress... " >&6; }
18751		cacheid=xorg_cv_cc_flag__Waddress
18752		if eval test \${$cacheid+y}
18753then :
18754  printf %s "(cached) " >&6
18755else case e in #(
18756  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18757/* end confdefs.h.  */
18758int i;
18759int
18760main (void)
18761{
18762
18763  ;
18764  return 0;
18765}
18766_ACEOF
18767if ac_fn_c_try_link "$LINENO"
18768then :
18769  eval $cacheid=yes
18770else case e in #(
18771  e) eval $cacheid=no ;;
18772esac
18773fi
18774rm -f core conftest.err conftest.$ac_objext conftest.beam \
18775    conftest$ac_exeext conftest.$ac_ext ;;
18776esac
18777fi
18778
18779
18780		CFLAGS="$xorg_testset_save_CFLAGS"
18781
18782		eval supported=\$$cacheid
18783		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18784printf "%s\n" "$supported" >&6; }
18785		if test "$supported" = "yes" ; then
18786			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18787			found="yes"
18788		fi
18789	fi
18790
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805xorg_testset_save_CFLAGS="$CFLAGS"
18806
18807if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18808	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18809	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18810printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18811if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18812then :
18813  printf %s "(cached) " >&6
18814else case e in #(
18815  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18816/* end confdefs.h.  */
18817int i;
18818_ACEOF
18819if ac_fn_c_try_compile "$LINENO"
18820then :
18821  xorg_cv_cc_flag_unknown_warning_option=yes
18822else case e in #(
18823  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18824esac
18825fi
18826rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18827esac
18828fi
18829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18830printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18831	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18832	CFLAGS="$xorg_testset_save_CFLAGS"
18833fi
18834
18835if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18836	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18837		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18838	fi
18839	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18840	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18841printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18842if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18843then :
18844  printf %s "(cached) " >&6
18845else case e in #(
18846  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18847/* end confdefs.h.  */
18848int i;
18849_ACEOF
18850if ac_fn_c_try_compile "$LINENO"
18851then :
18852  xorg_cv_cc_flag_unused_command_line_argument=yes
18853else case e in #(
18854  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18855esac
18856fi
18857rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18858esac
18859fi
18860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18861printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18862	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18863	CFLAGS="$xorg_testset_save_CFLAGS"
18864fi
18865
18866found="no"
18867
18868	if test $found = "no" ; then
18869		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18870			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18871		fi
18872
18873		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18874			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18875		fi
18876
18877		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18878
18879		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18880printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18881		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18882		if eval test \${$cacheid+y}
18883then :
18884  printf %s "(cached) " >&6
18885else case e in #(
18886  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18887/* end confdefs.h.  */
18888int i;
18889int
18890main (void)
18891{
18892
18893  ;
18894  return 0;
18895}
18896_ACEOF
18897if ac_fn_c_try_link "$LINENO"
18898then :
18899  eval $cacheid=yes
18900else case e in #(
18901  e) eval $cacheid=no ;;
18902esac
18903fi
18904rm -f core conftest.err conftest.$ac_objext conftest.beam \
18905    conftest$ac_exeext conftest.$ac_ext ;;
18906esac
18907fi
18908
18909
18910		CFLAGS="$xorg_testset_save_CFLAGS"
18911
18912		eval supported=\$$cacheid
18913		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18914printf "%s\n" "$supported" >&6; }
18915		if test "$supported" = "yes" ; then
18916			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18917			found="yes"
18918		fi
18919	fi
18920
18921
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935xorg_testset_save_CFLAGS="$CFLAGS"
18936
18937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18938	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18939	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18940printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18941if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18942then :
18943  printf %s "(cached) " >&6
18944else case e in #(
18945  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18946/* end confdefs.h.  */
18947int i;
18948_ACEOF
18949if ac_fn_c_try_compile "$LINENO"
18950then :
18951  xorg_cv_cc_flag_unknown_warning_option=yes
18952else case e in #(
18953  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18954esac
18955fi
18956rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18957esac
18958fi
18959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18960printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18961	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18962	CFLAGS="$xorg_testset_save_CFLAGS"
18963fi
18964
18965if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18966	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18967		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18968	fi
18969	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18970	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18971printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18972if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18973then :
18974  printf %s "(cached) " >&6
18975else case e in #(
18976  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18977/* end confdefs.h.  */
18978int i;
18979_ACEOF
18980if ac_fn_c_try_compile "$LINENO"
18981then :
18982  xorg_cv_cc_flag_unused_command_line_argument=yes
18983else case e in #(
18984  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18985esac
18986fi
18987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18988esac
18989fi
18990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18991printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18992	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18993	CFLAGS="$xorg_testset_save_CFLAGS"
18994fi
18995
18996found="no"
18997
18998	if test $found = "no" ; then
18999		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19000			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19001		fi
19002
19003		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19004			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19005		fi
19006
19007		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19008
19009		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19010printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19011		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19012		if eval test \${$cacheid+y}
19013then :
19014  printf %s "(cached) " >&6
19015else case e in #(
19016  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19017/* end confdefs.h.  */
19018int i;
19019int
19020main (void)
19021{
19022
19023  ;
19024  return 0;
19025}
19026_ACEOF
19027if ac_fn_c_try_link "$LINENO"
19028then :
19029  eval $cacheid=yes
19030else case e in #(
19031  e) eval $cacheid=no ;;
19032esac
19033fi
19034rm -f core conftest.err conftest.$ac_objext conftest.beam \
19035    conftest$ac_exeext conftest.$ac_ext ;;
19036esac
19037fi
19038
19039
19040		CFLAGS="$xorg_testset_save_CFLAGS"
19041
19042		eval supported=\$$cacheid
19043		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19044printf "%s\n" "$supported" >&6; }
19045		if test "$supported" = "yes" ; then
19046			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19047			found="yes"
19048		fi
19049	fi
19050
19051
19052fi
19053
19054
19055
19056
19057
19058
19059
19060		CWARNFLAGS="$BASE_CFLAGS"
19061		if  test "x$GCC" = xyes ; then
19062		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19063		fi
19064
19065
19066
19067
19068
19069
19070
19071
19072# Check whether --enable-strict-compilation was given.
19073if test ${enable_strict_compilation+y}
19074then :
19075  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19076else case e in #(
19077  e) STRICT_COMPILE=no ;;
19078esac
19079fi
19080
19081
19082
19083
19084
19085
19086STRICT_CFLAGS=""
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100xorg_testset_save_CFLAGS="$CFLAGS"
19101
19102if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19103	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19104	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19105printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19106if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19107then :
19108  printf %s "(cached) " >&6
19109else case e in #(
19110  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19111/* end confdefs.h.  */
19112int i;
19113_ACEOF
19114if ac_fn_c_try_compile "$LINENO"
19115then :
19116  xorg_cv_cc_flag_unknown_warning_option=yes
19117else case e in #(
19118  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19119esac
19120fi
19121rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19122esac
19123fi
19124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19125printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19126	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19127	CFLAGS="$xorg_testset_save_CFLAGS"
19128fi
19129
19130if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19131	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19132		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19133	fi
19134	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19135	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19136printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19137if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19138then :
19139  printf %s "(cached) " >&6
19140else case e in #(
19141  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19142/* end confdefs.h.  */
19143int i;
19144_ACEOF
19145if ac_fn_c_try_compile "$LINENO"
19146then :
19147  xorg_cv_cc_flag_unused_command_line_argument=yes
19148else case e in #(
19149  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19150esac
19151fi
19152rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19153esac
19154fi
19155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19156printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19157	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19158	CFLAGS="$xorg_testset_save_CFLAGS"
19159fi
19160
19161found="no"
19162
19163	if test $found = "no" ; then
19164		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19165			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19166		fi
19167
19168		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19169			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19170		fi
19171
19172		CFLAGS="$CFLAGS -pedantic"
19173
19174		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19175printf %s "checking if $CC supports -pedantic... " >&6; }
19176		cacheid=xorg_cv_cc_flag__pedantic
19177		if eval test \${$cacheid+y}
19178then :
19179  printf %s "(cached) " >&6
19180else case e in #(
19181  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19182/* end confdefs.h.  */
19183int i;
19184int
19185main (void)
19186{
19187
19188  ;
19189  return 0;
19190}
19191_ACEOF
19192if ac_fn_c_try_link "$LINENO"
19193then :
19194  eval $cacheid=yes
19195else case e in #(
19196  e) eval $cacheid=no ;;
19197esac
19198fi
19199rm -f core conftest.err conftest.$ac_objext conftest.beam \
19200    conftest$ac_exeext conftest.$ac_ext ;;
19201esac
19202fi
19203
19204
19205		CFLAGS="$xorg_testset_save_CFLAGS"
19206
19207		eval supported=\$$cacheid
19208		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19209printf "%s\n" "$supported" >&6; }
19210		if test "$supported" = "yes" ; then
19211			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19212			found="yes"
19213		fi
19214	fi
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230xorg_testset_save_CFLAGS="$CFLAGS"
19231
19232if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19233	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19234	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19235printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19236if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19237then :
19238  printf %s "(cached) " >&6
19239else case e in #(
19240  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19241/* end confdefs.h.  */
19242int i;
19243_ACEOF
19244if ac_fn_c_try_compile "$LINENO"
19245then :
19246  xorg_cv_cc_flag_unknown_warning_option=yes
19247else case e in #(
19248  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19249esac
19250fi
19251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19252esac
19253fi
19254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19255printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19256	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19257	CFLAGS="$xorg_testset_save_CFLAGS"
19258fi
19259
19260if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19261	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19262		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19263	fi
19264	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19265	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19266printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19267if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19268then :
19269  printf %s "(cached) " >&6
19270else case e in #(
19271  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19272/* end confdefs.h.  */
19273int i;
19274_ACEOF
19275if ac_fn_c_try_compile "$LINENO"
19276then :
19277  xorg_cv_cc_flag_unused_command_line_argument=yes
19278else case e in #(
19279  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19280esac
19281fi
19282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19283esac
19284fi
19285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19286printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19287	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19288	CFLAGS="$xorg_testset_save_CFLAGS"
19289fi
19290
19291found="no"
19292
19293	if test $found = "no" ; then
19294		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19295			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19296		fi
19297
19298		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19299			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19300		fi
19301
19302		CFLAGS="$CFLAGS -Werror"
19303
19304		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19305printf %s "checking if $CC supports -Werror... " >&6; }
19306		cacheid=xorg_cv_cc_flag__Werror
19307		if eval test \${$cacheid+y}
19308then :
19309  printf %s "(cached) " >&6
19310else case e in #(
19311  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19312/* end confdefs.h.  */
19313int i;
19314int
19315main (void)
19316{
19317
19318  ;
19319  return 0;
19320}
19321_ACEOF
19322if ac_fn_c_try_link "$LINENO"
19323then :
19324  eval $cacheid=yes
19325else case e in #(
19326  e) eval $cacheid=no ;;
19327esac
19328fi
19329rm -f core conftest.err conftest.$ac_objext conftest.beam \
19330    conftest$ac_exeext conftest.$ac_ext ;;
19331esac
19332fi
19333
19334
19335		CFLAGS="$xorg_testset_save_CFLAGS"
19336
19337		eval supported=\$$cacheid
19338		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19339printf "%s\n" "$supported" >&6; }
19340		if test "$supported" = "yes" ; then
19341			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19342			found="yes"
19343		fi
19344	fi
19345
19346	if test $found = "no" ; then
19347		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19348			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19349		fi
19350
19351		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19352			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19353		fi
19354
19355		CFLAGS="$CFLAGS -errwarn"
19356
19357		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19358printf %s "checking if $CC supports -errwarn... " >&6; }
19359		cacheid=xorg_cv_cc_flag__errwarn
19360		if eval test \${$cacheid+y}
19361then :
19362  printf %s "(cached) " >&6
19363else case e in #(
19364  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19365/* end confdefs.h.  */
19366int i;
19367int
19368main (void)
19369{
19370
19371  ;
19372  return 0;
19373}
19374_ACEOF
19375if ac_fn_c_try_link "$LINENO"
19376then :
19377  eval $cacheid=yes
19378else case e in #(
19379  e) eval $cacheid=no ;;
19380esac
19381fi
19382rm -f core conftest.err conftest.$ac_objext conftest.beam \
19383    conftest$ac_exeext conftest.$ac_ext ;;
19384esac
19385fi
19386
19387
19388		CFLAGS="$xorg_testset_save_CFLAGS"
19389
19390		eval supported=\$$cacheid
19391		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19392printf "%s\n" "$supported" >&6; }
19393		if test "$supported" = "yes" ; then
19394			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19395			found="yes"
19396		fi
19397	fi
19398
19399
19400
19401# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19402# activate it with -Werror, so we add it here explicitly.
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415
19416xorg_testset_save_CFLAGS="$CFLAGS"
19417
19418if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19419	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19420	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19421printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19422if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19423then :
19424  printf %s "(cached) " >&6
19425else case e in #(
19426  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19427/* end confdefs.h.  */
19428int i;
19429_ACEOF
19430if ac_fn_c_try_compile "$LINENO"
19431then :
19432  xorg_cv_cc_flag_unknown_warning_option=yes
19433else case e in #(
19434  e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19435esac
19436fi
19437rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19438esac
19439fi
19440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19441printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19442	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19443	CFLAGS="$xorg_testset_save_CFLAGS"
19444fi
19445
19446if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19447	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19448		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19449	fi
19450	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19451	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19452printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19453if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19454then :
19455  printf %s "(cached) " >&6
19456else case e in #(
19457  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19458/* end confdefs.h.  */
19459int i;
19460_ACEOF
19461if ac_fn_c_try_compile "$LINENO"
19462then :
19463  xorg_cv_cc_flag_unused_command_line_argument=yes
19464else case e in #(
19465  e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19466esac
19467fi
19468rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19469esac
19470fi
19471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19472printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19473	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19474	CFLAGS="$xorg_testset_save_CFLAGS"
19475fi
19476
19477found="no"
19478
19479	if test $found = "no" ; then
19480		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19481			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19482		fi
19483
19484		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19485			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19486		fi
19487
19488		CFLAGS="$CFLAGS -Werror=attributes"
19489
19490		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19491printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19492		cacheid=xorg_cv_cc_flag__Werror_attributes
19493		if eval test \${$cacheid+y}
19494then :
19495  printf %s "(cached) " >&6
19496else case e in #(
19497  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19498/* end confdefs.h.  */
19499int i;
19500int
19501main (void)
19502{
19503
19504  ;
19505  return 0;
19506}
19507_ACEOF
19508if ac_fn_c_try_link "$LINENO"
19509then :
19510  eval $cacheid=yes
19511else case e in #(
19512  e) eval $cacheid=no ;;
19513esac
19514fi
19515rm -f core conftest.err conftest.$ac_objext conftest.beam \
19516    conftest$ac_exeext conftest.$ac_ext ;;
19517esac
19518fi
19519
19520
19521		CFLAGS="$xorg_testset_save_CFLAGS"
19522
19523		eval supported=\$$cacheid
19524		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19525printf "%s\n" "$supported" >&6; }
19526		if test "$supported" = "yes" ; then
19527			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19528			found="yes"
19529		fi
19530	fi
19531
19532
19533
19534if test "x$STRICT_COMPILE" = "xyes"; then
19535    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19536    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19537fi
19538
19539
19540
19541
19542
19543
19544
19545
19546cat >>confdefs.h <<_ACEOF
19547#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19548_ACEOF
19549
19550	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19551	if test "x$PVM" = "x"; then
19552		PVM="0"
19553	fi
19554
19555printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19556
19557	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19558	if test "x$PVP" = "x"; then
19559		PVP="0"
19560	fi
19561
19562printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19563
19564
19565
19566CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19567mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19568|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19569touch \$(top_srcdir)/ChangeLog; \
19570echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19571
19572
19573
19574
19575macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19576INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19577mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19578|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19579touch \$(top_srcdir)/INSTALL; \
19580echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19581
19582
19583
19584
19585
19586
19587case $host_os in
19588    solaris*)
19589        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19590        # check for a man page file found in later versions that use
19591        # traditional section numbers instead
19592        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19593printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19594if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19595then :
19596  printf %s "(cached) " >&6
19597else case e in #(
19598  e) test "$cross_compiling" = yes &&
19599  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19600if test -r "/usr/share/man/man7/attributes.7"; then
19601  ac_cv_file__usr_share_man_man7_attributes_7=yes
19602else
19603  ac_cv_file__usr_share_man_man7_attributes_7=no
19604fi ;;
19605esac
19606fi
19607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19608printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19609if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19610then :
19611  SYSV_MAN_SECTIONS=false
19612else case e in #(
19613  e) SYSV_MAN_SECTIONS=true ;;
19614esac
19615fi
19616
19617        ;;
19618    *) SYSV_MAN_SECTIONS=false ;;
19619esac
19620
19621if test x$APP_MAN_SUFFIX = x    ; then
19622    APP_MAN_SUFFIX=1
19623fi
19624if test x$APP_MAN_DIR = x    ; then
19625    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19626fi
19627
19628if test x$LIB_MAN_SUFFIX = x    ; then
19629    LIB_MAN_SUFFIX=3
19630fi
19631if test x$LIB_MAN_DIR = x    ; then
19632    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19633fi
19634
19635if test x$FILE_MAN_SUFFIX = x    ; then
19636    case $SYSV_MAN_SECTIONS in
19637	true)				FILE_MAN_SUFFIX=4  ;;
19638	*)				FILE_MAN_SUFFIX=5  ;;
19639    esac
19640fi
19641if test x$FILE_MAN_DIR = x    ; then
19642    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19643fi
19644
19645if test x$MISC_MAN_SUFFIX = x    ; then
19646    case $SYSV_MAN_SECTIONS in
19647	true)				MISC_MAN_SUFFIX=5  ;;
19648	*)				MISC_MAN_SUFFIX=7  ;;
19649    esac
19650fi
19651if test x$MISC_MAN_DIR = x    ; then
19652    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19653fi
19654
19655if test x$DRIVER_MAN_SUFFIX = x    ; then
19656    case $SYSV_MAN_SECTIONS in
19657	true)				DRIVER_MAN_SUFFIX=7  ;;
19658	*)				DRIVER_MAN_SUFFIX=4  ;;
19659    esac
19660fi
19661if test x$DRIVER_MAN_DIR = x    ; then
19662    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19663fi
19664
19665if test x$ADMIN_MAN_SUFFIX = x    ; then
19666    case $SYSV_MAN_SECTIONS in
19667	true)				ADMIN_MAN_SUFFIX=1m ;;
19668	*)				ADMIN_MAN_SUFFIX=8  ;;
19669    esac
19670fi
19671if test x$ADMIN_MAN_DIR = x    ; then
19672    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19673fi
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689XORG_MAN_PAGE="X Version 11"
19690
19691MAN_SUBSTS="\
19692	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19693	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19694	-e 's|__xservername__|Xorg|g' \
19695	-e 's|__xconfigfile__|xorg.conf|g' \
19696	-e 's|__projectroot__|\$(prefix)|g' \
19697	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
19698	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19699	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19700	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19701	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19702	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19703	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19704
19705
19706
19707# Check whether --enable-silent-rules was given.
19708if test ${enable_silent_rules+y}
19709then :
19710  enableval=$enable_silent_rules;
19711fi
19712
19713case $enable_silent_rules in # (((
19714  yes) AM_DEFAULT_VERBOSITY=0;;
19715   no) AM_DEFAULT_VERBOSITY=1;;
19716    *) AM_DEFAULT_VERBOSITY=0;;
19717esac
19718am_make=${MAKE-make}
19719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19720printf %s "checking whether $am_make supports nested variables... " >&6; }
19721if test ${am_cv_make_support_nested_variables+y}
19722then :
19723  printf %s "(cached) " >&6
19724else case e in #(
19725  e) if printf "%s\n" 'TRUE=$(BAR$(V))
19726BAR0=false
19727BAR1=true
19728V=1
19729am__doit:
19730	@$(TRUE)
19731.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19732  am_cv_make_support_nested_variables=yes
19733else
19734  am_cv_make_support_nested_variables=no
19735fi ;;
19736esac
19737fi
19738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19739printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19740if test $am_cv_make_support_nested_variables = yes; then
19741    AM_V='$(V)'
19742  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19743else
19744  AM_V=$AM_DEFAULT_VERBOSITY
19745  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19746fi
19747AM_BACKSLASH='\'
19748
19749
19750
19751
19752# Check whether --enable-malloc0returnsnull was given.
19753if test ${enable_malloc0returnsnull+y}
19754then :
19755  enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval
19756else case e in #(
19757  e) MALLOC_ZERO_RETURNS_NULL=auto ;;
19758esac
19759fi
19760
19761
19762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5
19763printf %s "checking whether malloc(0) returns NULL... " >&6; }
19764if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then
19765if test ${xorg_cv_malloc0_returns_null+y}
19766then :
19767  printf %s "(cached) " >&6
19768else case e in #(
19769  e) if test "$cross_compiling" = yes
19770then :
19771  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19772printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19773as_fn_error $? "cannot run test program while cross compiling
19774See 'config.log' for more details" "$LINENO" 5; }
19775else case e in #(
19776  e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19777/* end confdefs.h.  */
19778
19779#include <stdlib.h>
19780
19781int
19782main (void)
19783{
19784
19785    char *m0, *r0, *c0, *p;
19786    m0 = malloc(0);
19787    p = malloc(10);
19788    r0 = realloc(p,0);
19789    c0 = calloc(0,10);
19790    exit((m0 == 0 || r0 == 0 || c0 == 0) ? 0 : 1);
19791
19792  ;
19793  return 0;
19794}
19795_ACEOF
19796if ac_fn_c_try_run "$LINENO"
19797then :
19798  xorg_cv_malloc0_returns_null=yes
19799else case e in #(
19800  e) xorg_cv_malloc0_returns_null=no ;;
19801esac
19802fi
19803rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19804  conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19805esac
19806fi
19807 ;;
19808esac
19809fi
19810
19811MALLOC_ZERO_RETURNS_NULL=$xorg_cv_malloc0_returns_null
19812fi
19813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5
19814printf "%s\n" "$MALLOC_ZERO_RETURNS_NULL" >&6; }
19815
19816if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then
19817	MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL"
19818	XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS
19819	XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC"
19820else
19821	MALLOC_ZERO_CFLAGS=""
19822	XMALLOC_ZERO_CFLAGS=""
19823	XTMALLOC_ZERO_CFLAGS=""
19824fi
19825
19826
19827
19828
19829
19830
19831# Obtain compiler/linker options for dependencies
19832
19833pkg_failed=no
19834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XVMC" >&5
19835printf %s "checking for XVMC... " >&6; }
19836
19837if test -n "$XVMC_CFLAGS"; then
19838    pkg_cv_XVMC_CFLAGS="$XVMC_CFLAGS"
19839 elif test -n "$PKG_CONFIG"; then
19840    if test -n "$PKG_CONFIG" && \
19841    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xv xextproto videoproto\""; } >&5
19842  ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xv xextproto videoproto") 2>&5
19843  ac_status=$?
19844  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19845  test $ac_status = 0; }; then
19846  pkg_cv_XVMC_CFLAGS=`$PKG_CONFIG --cflags "x11 >= 1.6 xext xv xextproto videoproto" 2>/dev/null`
19847		      test "x$?" != "x0" && pkg_failed=yes
19848else
19849  pkg_failed=yes
19850fi
19851 else
19852    pkg_failed=untried
19853fi
19854if test -n "$XVMC_LIBS"; then
19855    pkg_cv_XVMC_LIBS="$XVMC_LIBS"
19856 elif test -n "$PKG_CONFIG"; then
19857    if test -n "$PKG_CONFIG" && \
19858    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 >= 1.6 xext xv xextproto videoproto\""; } >&5
19859  ($PKG_CONFIG --exists --print-errors "x11 >= 1.6 xext xv xextproto videoproto") 2>&5
19860  ac_status=$?
19861  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19862  test $ac_status = 0; }; then
19863  pkg_cv_XVMC_LIBS=`$PKG_CONFIG --libs "x11 >= 1.6 xext xv xextproto videoproto" 2>/dev/null`
19864		      test "x$?" != "x0" && pkg_failed=yes
19865else
19866  pkg_failed=yes
19867fi
19868 else
19869    pkg_failed=untried
19870fi
19871
19872
19873
19874if test $pkg_failed = yes; then
19875   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19876printf "%s\n" "no" >&6; }
19877
19878if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19879        _pkg_short_errors_supported=yes
19880else
19881        _pkg_short_errors_supported=no
19882fi
19883        if test $_pkg_short_errors_supported = yes; then
19884	        XVMC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 >= 1.6 xext xv xextproto videoproto" 2>&1`
19885        else
19886	        XVMC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 >= 1.6 xext xv xextproto videoproto" 2>&1`
19887        fi
19888	# Put the nasty error message in config.log where it belongs
19889	echo "$XVMC_PKG_ERRORS" >&5
19890
19891	as_fn_error $? "Package requirements (x11 >= 1.6 xext xv xextproto videoproto) were not met:
19892
19893$XVMC_PKG_ERRORS
19894
19895Consider adjusting the PKG_CONFIG_PATH environment variable if you
19896installed software in a non-standard prefix.
19897
19898Alternatively, you may set the environment variables XVMC_CFLAGS
19899and XVMC_LIBS to avoid the need to call pkg-config.
19900See the pkg-config man page for more details." "$LINENO" 5
19901elif test $pkg_failed = untried; then
19902     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19903printf "%s\n" "no" >&6; }
19904	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
19905printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
19906as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19907is in your PATH or set the PKG_CONFIG environment variable to the full
19908path to pkg-config.
19909
19910Alternatively, you may set the environment variables XVMC_CFLAGS
19911and XVMC_LIBS to avoid the need to call pkg-config.
19912See the pkg-config man page for more details.
19913
19914To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19915See 'config.log' for more details" "$LINENO" 5; }
19916else
19917	XVMC_CFLAGS=$pkg_cv_XVMC_CFLAGS
19918	XVMC_LIBS=$pkg_cv_XVMC_LIBS
19919        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19920printf "%s\n" "yes" >&6; }
19921
19922fi
19923
19924# Checks for library functions.
19925ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
19926if test "x$ac_cv_func_shmat" = xyes
19927then :
19928  printf "%s\n" "#define HAVE_SHMAT 1" >>confdefs.h
19929
19930fi
19931
19932
19933# Check to see if dlopen is in default libraries (like Solaris, which
19934# has it in libc), or if libdl is needed to get it.
19935ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19936if test "x$ac_cv_func_dlopen" = xyes
19937then :
19938
19939else case e in #(
19940  e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19941printf %s "checking for dlopen in -ldl... " >&6; }
19942if test ${ac_cv_lib_dl_dlopen+y}
19943then :
19944  printf %s "(cached) " >&6
19945else case e in #(
19946  e) ac_check_lib_save_LIBS=$LIBS
19947LIBS="-ldl  $LIBS"
19948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19949/* end confdefs.h.  */
19950
19951/* Override any GCC internal prototype to avoid an error.
19952   Use char because int might match the return type of a GCC
19953   builtin and then its argument prototype would still apply.
19954   The 'extern "C"' is for builds by C++ compilers;
19955   although this is not generally supported in C code supporting it here
19956   has little cost and some practical benefit (sr 110532).  */
19957#ifdef __cplusplus
19958extern "C"
19959#endif
19960char dlopen (void);
19961int
19962main (void)
19963{
19964return dlopen ();
19965  ;
19966  return 0;
19967}
19968_ACEOF
19969if ac_fn_c_try_link "$LINENO"
19970then :
19971  ac_cv_lib_dl_dlopen=yes
19972else case e in #(
19973  e) ac_cv_lib_dl_dlopen=no ;;
19974esac
19975fi
19976rm -f core conftest.err conftest.$ac_objext conftest.beam \
19977    conftest$ac_exeext conftest.$ac_ext
19978LIBS=$ac_check_lib_save_LIBS ;;
19979esac
19980fi
19981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19982printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
19983if test "x$ac_cv_lib_dl_dlopen" = xyes
19984then :
19985  DLOPEN_LIBS="-ldl"
19986fi
19987 ;;
19988esac
19989fi
19990
19991
19992
19993# Allow checking code with lint, sparse, etc.
19994
19995
19996
19997
19998
19999# Check whether --with-lint was given.
20000if test ${with_lint+y}
20001then :
20002  withval=$with_lint; use_lint=$withval
20003else case e in #(
20004  e) use_lint=no ;;
20005esac
20006fi
20007
20008
20009# Obtain platform specific info like program name and options
20010# The lint program on FreeBSD and NetBSD is different from the one on Solaris
20011case $host_os in
20012  *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
20013	lint_name=splint
20014	lint_options="-badflag"
20015	;;
20016  *freebsd* | *netbsd*)
20017	lint_name=lint
20018	lint_options="-u -b"
20019	;;
20020  *solaris*)
20021	lint_name=lint
20022	lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
20023	;;
20024esac
20025
20026# Test for the presence of the program (either guessed by the code or spelled out by the user)
20027if test "x$use_lint" = x"yes" ; then
20028   # Extract the first word of "$lint_name", so it can be a program name with args.
20029set dummy $lint_name; ac_word=$2
20030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20031printf %s "checking for $ac_word... " >&6; }
20032if test ${ac_cv_path_LINT+y}
20033then :
20034  printf %s "(cached) " >&6
20035else case e in #(
20036  e) case $LINT in
20037  [\\/]* | ?:[\\/]*)
20038  ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
20039  ;;
20040  *)
20041  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20042for as_dir in $PATH
20043do
20044  IFS=$as_save_IFS
20045  case $as_dir in #(((
20046    '') as_dir=./ ;;
20047    */) ;;
20048    *) as_dir=$as_dir/ ;;
20049  esac
20050    for ac_exec_ext in '' $ac_executable_extensions; do
20051  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20052    ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
20053    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20054    break 2
20055  fi
20056done
20057  done
20058IFS=$as_save_IFS
20059
20060  ;;
20061esac ;;
20062esac
20063fi
20064LINT=$ac_cv_path_LINT
20065if test -n "$LINT"; then
20066  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
20067printf "%s\n" "$LINT" >&6; }
20068else
20069  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20070printf "%s\n" "no" >&6; }
20071fi
20072
20073
20074   if test "x$LINT" = "x"; then
20075        as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
20076   fi
20077elif test "x$use_lint" = x"no" ; then
20078   if test "x$LINT" != "x"; then
20079      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
20080printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
20081   fi
20082else
20083   as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
20084fi
20085
20086# User supplied flags override default flags
20087if test "x$LINT_FLAGS" != "x"; then
20088   lint_options=$LINT_FLAGS
20089fi
20090
20091LINT_FLAGS=$lint_options
20092
20093 if test "x$LINT" != x; then
20094  LINT_TRUE=
20095  LINT_FALSE='#'
20096else
20097  LINT_TRUE='#'
20098  LINT_FALSE=
20099fi
20100
20101
20102
20103LINT_FLAGS="${LINT_FLAGS} ${XVMC_CFLAGS}"
20104
20105ac_config_files="$ac_config_files Makefile include/Makefile include/X11/Makefile include/X11/extensions/Makefile src/Makefile wrapper/Makefile xvmc.pc xvmc-wrapper.pc"
20106
20107cat >confcache <<\_ACEOF
20108# This file is a shell script that caches the results of configure
20109# tests run on this system so they can be shared between configure
20110# scripts and configure runs, see configure's option --config-cache.
20111# It is not useful on other systems.  If it contains results you don't
20112# want to keep, you may remove or edit it.
20113#
20114# config.status only pays attention to the cache file if you give it
20115# the --recheck option to rerun configure.
20116#
20117# 'ac_cv_env_foo' variables (set or unset) will be overridden when
20118# loading this file, other *unset* 'ac_cv_foo' will be assigned the
20119# following values.
20120
20121_ACEOF
20122
20123# The following way of writing the cache mishandles newlines in values,
20124# but we know of no workaround that is simple, portable, and efficient.
20125# So, we kill variables containing newlines.
20126# Ultrix sh set writes to stderr and can't be redirected directly,
20127# and sets the high bit in the cache file unless we assign to the vars.
20128(
20129  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20130    eval ac_val=\$$ac_var
20131    case $ac_val in #(
20132    *${as_nl}*)
20133      case $ac_var in #(
20134      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20135printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20136      esac
20137      case $ac_var in #(
20138      _ | IFS | as_nl) ;; #(
20139      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20140      *) { eval $ac_var=; unset $ac_var;} ;;
20141      esac ;;
20142    esac
20143  done
20144
20145  (set) 2>&1 |
20146    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20147    *${as_nl}ac_space=\ *)
20148      # 'set' does not quote correctly, so add quotes: double-quote
20149      # substitution turns \\\\ into \\, and sed turns \\ into \.
20150      sed -n \
20151	"s/'/'\\\\''/g;
20152	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20153      ;; #(
20154    *)
20155      # 'set' quotes correctly as required by POSIX, so do not add quotes.
20156      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20157      ;;
20158    esac |
20159    sort
20160) |
20161  sed '
20162     /^ac_cv_env_/b end
20163     t clear
20164     :clear
20165     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20166     t end
20167     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20168     :end' >>confcache
20169if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20170  if test -w "$cache_file"; then
20171    if test "x$cache_file" != "x/dev/null"; then
20172      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20173printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20174      if test ! -f "$cache_file" || test -h "$cache_file"; then
20175	cat confcache >"$cache_file"
20176      else
20177        case $cache_file in #(
20178        */* | ?:*)
20179	  mv -f confcache "$cache_file"$$ &&
20180	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20181        *)
20182	  mv -f confcache "$cache_file" ;;
20183	esac
20184      fi
20185    fi
20186  else
20187    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20188printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20189  fi
20190fi
20191rm -f confcache
20192
20193test "x$prefix" = xNONE && prefix=$ac_default_prefix
20194# Let make expand exec_prefix.
20195test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20196
20197DEFS=-DHAVE_CONFIG_H
20198
20199ac_libobjs=
20200ac_ltlibobjs=
20201U=
20202for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20203  # 1. Remove the extension, and $U if already installed.
20204  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20205  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20206  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20207  #    will be set to the directory where LIBOBJS objects are built.
20208  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20209  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20210done
20211LIBOBJS=$ac_libobjs
20212
20213LTLIBOBJS=$ac_ltlibobjs
20214
20215
20216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20217printf %s "checking that generated files are newer than configure... " >&6; }
20218   if test -n "$am_sleep_pid"; then
20219     # Hide warnings about reused PIDs.
20220     wait $am_sleep_pid 2>/dev/null
20221   fi
20222   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20223printf "%s\n" "done" >&6; }
20224 if test -n "$EXEEXT"; then
20225  am__EXEEXT_TRUE=
20226  am__EXEEXT_FALSE='#'
20227else
20228  am__EXEEXT_TRUE='#'
20229  am__EXEEXT_FALSE=
20230fi
20231
20232if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20233  as_fn_error $? "conditional \"AMDEP\" was never defined.
20234Usually this means the macro was only invoked conditionally." "$LINENO" 5
20235fi
20236if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20237  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20238Usually this means the macro was only invoked conditionally." "$LINENO" 5
20239fi
20240if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
20241  as_fn_error $? "conditional \"LINT\" was never defined.
20242Usually this means the macro was only invoked conditionally." "$LINENO" 5
20243fi
20244
20245: "${CONFIG_STATUS=./config.status}"
20246ac_write_fail=0
20247ac_clean_files_save=$ac_clean_files
20248ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20250printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20251as_write_fail=0
20252cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20253#! $SHELL
20254# Generated by $as_me.
20255# Run this file to recreate the current configuration.
20256# Compiler output produced by configure, useful for debugging
20257# configure, is in config.log if it exists.
20258
20259debug=false
20260ac_cs_recheck=false
20261ac_cs_silent=false
20262
20263SHELL=\${CONFIG_SHELL-$SHELL}
20264export SHELL
20265_ASEOF
20266cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20267## -------------------- ##
20268## M4sh Initialization. ##
20269## -------------------- ##
20270
20271# Be more Bourne compatible
20272DUALCASE=1; export DUALCASE # for MKS sh
20273if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20274then :
20275  emulate sh
20276  NULLCMD=:
20277  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20278  # is contrary to our usage.  Disable this feature.
20279  alias -g '${1+"$@"}'='"$@"'
20280  setopt NO_GLOB_SUBST
20281else case e in #(
20282  e) case `(set -o) 2>/dev/null` in #(
20283  *posix*) :
20284    set -o posix ;; #(
20285  *) :
20286     ;;
20287esac ;;
20288esac
20289fi
20290
20291
20292
20293# Reset variables that may have inherited troublesome values from
20294# the environment.
20295
20296# IFS needs to be set, to space, tab, and newline, in precisely that order.
20297# (If _AS_PATH_WALK were called with IFS unset, it would have the
20298# side effect of setting IFS to empty, thus disabling word splitting.)
20299# Quoting is to prevent editors from complaining about space-tab.
20300as_nl='
20301'
20302export as_nl
20303IFS=" ""	$as_nl"
20304
20305PS1='$ '
20306PS2='> '
20307PS4='+ '
20308
20309# Ensure predictable behavior from utilities with locale-dependent output.
20310LC_ALL=C
20311export LC_ALL
20312LANGUAGE=C
20313export LANGUAGE
20314
20315# We cannot yet rely on "unset" to work, but we need these variables
20316# to be unset--not just set to an empty or harmless value--now, to
20317# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20318# also avoids known problems related to "unset" and subshell syntax
20319# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20320for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20321do eval test \${$as_var+y} \
20322  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20323done
20324
20325# Ensure that fds 0, 1, and 2 are open.
20326if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20327if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20328if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20329
20330# The user is always right.
20331if ${PATH_SEPARATOR+false} :; then
20332  PATH_SEPARATOR=:
20333  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20334    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20335      PATH_SEPARATOR=';'
20336  }
20337fi
20338
20339
20340# Find who we are.  Look in the path if we contain no directory separator.
20341as_myself=
20342case $0 in #((
20343  *[\\/]* ) as_myself=$0 ;;
20344  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20345for as_dir in $PATH
20346do
20347  IFS=$as_save_IFS
20348  case $as_dir in #(((
20349    '') as_dir=./ ;;
20350    */) ;;
20351    *) as_dir=$as_dir/ ;;
20352  esac
20353    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20354  done
20355IFS=$as_save_IFS
20356
20357     ;;
20358esac
20359# We did not find ourselves, most probably we were run as 'sh COMMAND'
20360# in which case we are not to be found in the path.
20361if test "x$as_myself" = x; then
20362  as_myself=$0
20363fi
20364if test ! -f "$as_myself"; then
20365  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20366  exit 1
20367fi
20368
20369
20370
20371# as_fn_error STATUS ERROR [LINENO LOG_FD]
20372# ----------------------------------------
20373# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20374# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20375# script with STATUS, using 1 if that was 0.
20376as_fn_error ()
20377{
20378  as_status=$1; test $as_status -eq 0 && as_status=1
20379  if test "$4"; then
20380    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20381    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20382  fi
20383  printf "%s\n" "$as_me: error: $2" >&2
20384  as_fn_exit $as_status
20385} # as_fn_error
20386
20387
20388# as_fn_set_status STATUS
20389# -----------------------
20390# Set $? to STATUS, without forking.
20391as_fn_set_status ()
20392{
20393  return $1
20394} # as_fn_set_status
20395
20396# as_fn_exit STATUS
20397# -----------------
20398# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20399as_fn_exit ()
20400{
20401  set +e
20402  as_fn_set_status $1
20403  exit $1
20404} # as_fn_exit
20405
20406# as_fn_unset VAR
20407# ---------------
20408# Portably unset VAR.
20409as_fn_unset ()
20410{
20411  { eval $1=; unset $1;}
20412}
20413as_unset=as_fn_unset
20414
20415# as_fn_append VAR VALUE
20416# ----------------------
20417# Append the text in VALUE to the end of the definition contained in VAR. Take
20418# advantage of any shell optimizations that allow amortized linear growth over
20419# repeated appends, instead of the typical quadratic growth present in naive
20420# implementations.
20421if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20422then :
20423  eval 'as_fn_append ()
20424  {
20425    eval $1+=\$2
20426  }'
20427else case e in #(
20428  e) as_fn_append ()
20429  {
20430    eval $1=\$$1\$2
20431  } ;;
20432esac
20433fi # as_fn_append
20434
20435# as_fn_arith ARG...
20436# ------------------
20437# Perform arithmetic evaluation on the ARGs, and store the result in the
20438# global $as_val. Take advantage of shells that can avoid forks. The arguments
20439# must be portable across $(()) and expr.
20440if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20441then :
20442  eval 'as_fn_arith ()
20443  {
20444    as_val=$(( $* ))
20445  }'
20446else case e in #(
20447  e) as_fn_arith ()
20448  {
20449    as_val=`expr "$@" || test $? -eq 1`
20450  } ;;
20451esac
20452fi # as_fn_arith
20453
20454
20455if expr a : '\(a\)' >/dev/null 2>&1 &&
20456   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20457  as_expr=expr
20458else
20459  as_expr=false
20460fi
20461
20462if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20463  as_basename=basename
20464else
20465  as_basename=false
20466fi
20467
20468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20469  as_dirname=dirname
20470else
20471  as_dirname=false
20472fi
20473
20474as_me=`$as_basename -- "$0" ||
20475$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20476	 X"$0" : 'X\(//\)$' \| \
20477	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20478printf "%s\n" X/"$0" |
20479    sed '/^.*\/\([^/][^/]*\)\/*$/{
20480	    s//\1/
20481	    q
20482	  }
20483	  /^X\/\(\/\/\)$/{
20484	    s//\1/
20485	    q
20486	  }
20487	  /^X\/\(\/\).*/{
20488	    s//\1/
20489	    q
20490	  }
20491	  s/.*/./; q'`
20492
20493# Avoid depending upon Character Ranges.
20494as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20495as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20496as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20497as_cr_digits='0123456789'
20498as_cr_alnum=$as_cr_Letters$as_cr_digits
20499
20500
20501# Determine whether it's possible to make 'echo' print without a newline.
20502# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20503# for compatibility with existing Makefiles.
20504ECHO_C= ECHO_N= ECHO_T=
20505case `echo -n x` in #(((((
20506-n*)
20507  case `echo 'xy\c'` in
20508  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20509  xy)  ECHO_C='\c';;
20510  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20511       ECHO_T='	';;
20512  esac;;
20513*)
20514  ECHO_N='-n';;
20515esac
20516
20517# For backward compatibility with old third-party macros, we provide
20518# the shell variables $as_echo and $as_echo_n.  New code should use
20519# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20520as_echo='printf %s\n'
20521as_echo_n='printf %s'
20522
20523rm -f conf$$ conf$$.exe conf$$.file
20524if test -d conf$$.dir; then
20525  rm -f conf$$.dir/conf$$.file
20526else
20527  rm -f conf$$.dir
20528  mkdir conf$$.dir 2>/dev/null
20529fi
20530if (echo >conf$$.file) 2>/dev/null; then
20531  if ln -s conf$$.file conf$$ 2>/dev/null; then
20532    as_ln_s='ln -s'
20533    # ... but there are two gotchas:
20534    # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
20535    # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
20536    # In both cases, we have to default to 'cp -pR'.
20537    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20538      as_ln_s='cp -pR'
20539  elif ln conf$$.file conf$$ 2>/dev/null; then
20540    as_ln_s=ln
20541  else
20542    as_ln_s='cp -pR'
20543  fi
20544else
20545  as_ln_s='cp -pR'
20546fi
20547rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20548rmdir conf$$.dir 2>/dev/null
20549
20550
20551# as_fn_mkdir_p
20552# -------------
20553# Create "$as_dir" as a directory, including parents if necessary.
20554as_fn_mkdir_p ()
20555{
20556
20557  case $as_dir in #(
20558  -*) as_dir=./$as_dir;;
20559  esac
20560  test -d "$as_dir" || eval $as_mkdir_p || {
20561    as_dirs=
20562    while :; do
20563      case $as_dir in #(
20564      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20565      *) as_qdir=$as_dir;;
20566      esac
20567      as_dirs="'$as_qdir' $as_dirs"
20568      as_dir=`$as_dirname -- "$as_dir" ||
20569$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20570	 X"$as_dir" : 'X\(//\)[^/]' \| \
20571	 X"$as_dir" : 'X\(//\)$' \| \
20572	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20573printf "%s\n" X"$as_dir" |
20574    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20575	    s//\1/
20576	    q
20577	  }
20578	  /^X\(\/\/\)[^/].*/{
20579	    s//\1/
20580	    q
20581	  }
20582	  /^X\(\/\/\)$/{
20583	    s//\1/
20584	    q
20585	  }
20586	  /^X\(\/\).*/{
20587	    s//\1/
20588	    q
20589	  }
20590	  s/.*/./; q'`
20591      test -d "$as_dir" && break
20592    done
20593    test -z "$as_dirs" || eval "mkdir $as_dirs"
20594  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20595
20596
20597} # as_fn_mkdir_p
20598if mkdir -p . 2>/dev/null; then
20599  as_mkdir_p='mkdir -p "$as_dir"'
20600else
20601  test -d ./-p && rmdir ./-p
20602  as_mkdir_p=false
20603fi
20604
20605
20606# as_fn_executable_p FILE
20607# -----------------------
20608# Test if FILE is an executable regular file.
20609as_fn_executable_p ()
20610{
20611  test -f "$1" && test -x "$1"
20612} # as_fn_executable_p
20613as_test_x='test -x'
20614as_executable_p=as_fn_executable_p
20615
20616# Sed expression to map a string onto a valid CPP name.
20617as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
20618as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
20619
20620# Sed expression to map a string onto a valid variable name.
20621as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20622as_tr_sh="eval sed '$as_sed_sh'" # deprecated
20623
20624
20625exec 6>&1
20626## ----------------------------------- ##
20627## Main body of $CONFIG_STATUS script. ##
20628## ----------------------------------- ##
20629_ASEOF
20630test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20631
20632cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20633# Save the log message, to keep $0 and so on meaningful, and to
20634# report actual input values of CONFIG_FILES etc. instead of their
20635# values after options handling.
20636ac_log="
20637This file was extended by libXvMC $as_me 1.0.14, which was
20638generated by GNU Autoconf 2.72.  Invocation command line was
20639
20640  CONFIG_FILES    = $CONFIG_FILES
20641  CONFIG_HEADERS  = $CONFIG_HEADERS
20642  CONFIG_LINKS    = $CONFIG_LINKS
20643  CONFIG_COMMANDS = $CONFIG_COMMANDS
20644  $ $0 $@
20645
20646on `(hostname || uname -n) 2>/dev/null | sed 1q`
20647"
20648
20649_ACEOF
20650
20651case $ac_config_files in *"
20652"*) set x $ac_config_files; shift; ac_config_files=$*;;
20653esac
20654
20655case $ac_config_headers in *"
20656"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20657esac
20658
20659
20660cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20661# Files that config.status was made for.
20662config_files="$ac_config_files"
20663config_headers="$ac_config_headers"
20664config_commands="$ac_config_commands"
20665
20666_ACEOF
20667
20668cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20669ac_cs_usage="\
20670'$as_me' instantiates files and other configuration actions
20671from templates according to the current configuration.  Unless the files
20672and actions are specified as TAGs, all are instantiated by default.
20673
20674Usage: $0 [OPTION]... [TAG]...
20675
20676  -h, --help       print this help, then exit
20677  -V, --version    print version number and configuration settings, then exit
20678      --config     print configuration, then exit
20679  -q, --quiet, --silent
20680                   do not print progress messages
20681  -d, --debug      don't remove temporary files
20682      --recheck    update $as_me by reconfiguring in the same conditions
20683      --file=FILE[:TEMPLATE]
20684                   instantiate the configuration file FILE
20685      --header=FILE[:TEMPLATE]
20686                   instantiate the configuration header FILE
20687
20688Configuration files:
20689$config_files
20690
20691Configuration headers:
20692$config_headers
20693
20694Configuration commands:
20695$config_commands
20696
20697Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxvmc/-/issues>."
20698
20699_ACEOF
20700ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20701ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20702cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20703ac_cs_config='$ac_cs_config_escaped'
20704ac_cs_version="\\
20705libXvMC config.status 1.0.14
20706configured by $0, generated by GNU Autoconf 2.72,
20707  with options \\"\$ac_cs_config\\"
20708
20709Copyright (C) 2023 Free Software Foundation, Inc.
20710This config.status script is free software; the Free Software Foundation
20711gives unlimited permission to copy, distribute and modify it."
20712
20713ac_pwd='$ac_pwd'
20714srcdir='$srcdir'
20715INSTALL='$INSTALL'
20716MKDIR_P='$MKDIR_P'
20717AWK='$AWK'
20718test -n "\$AWK" || AWK=awk
20719_ACEOF
20720
20721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20722# The default lists apply if the user does not specify any file.
20723ac_need_defaults=:
20724while test $# != 0
20725do
20726  case $1 in
20727  --*=?*)
20728    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20729    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20730    ac_shift=:
20731    ;;
20732  --*=)
20733    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20734    ac_optarg=
20735    ac_shift=:
20736    ;;
20737  *)
20738    ac_option=$1
20739    ac_optarg=$2
20740    ac_shift=shift
20741    ;;
20742  esac
20743
20744  case $ac_option in
20745  # Handling of the options.
20746  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20747    ac_cs_recheck=: ;;
20748  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20749    printf "%s\n" "$ac_cs_version"; exit ;;
20750  --config | --confi | --conf | --con | --co | --c )
20751    printf "%s\n" "$ac_cs_config"; exit ;;
20752  --debug | --debu | --deb | --de | --d | -d )
20753    debug=: ;;
20754  --file | --fil | --fi | --f )
20755    $ac_shift
20756    case $ac_optarg in
20757    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20758    '') as_fn_error $? "missing file argument" ;;
20759    esac
20760    as_fn_append CONFIG_FILES " '$ac_optarg'"
20761    ac_need_defaults=false;;
20762  --header | --heade | --head | --hea )
20763    $ac_shift
20764    case $ac_optarg in
20765    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20766    esac
20767    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20768    ac_need_defaults=false;;
20769  --he | --h)
20770    # Conflict between --help and --header
20771    as_fn_error $? "ambiguous option: '$1'
20772Try '$0 --help' for more information.";;
20773  --help | --hel | -h )
20774    printf "%s\n" "$ac_cs_usage"; exit ;;
20775  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20776  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20777    ac_cs_silent=: ;;
20778
20779  # This is an error.
20780  -*) as_fn_error $? "unrecognized option: '$1'
20781Try '$0 --help' for more information." ;;
20782
20783  *) as_fn_append ac_config_targets " $1"
20784     ac_need_defaults=false ;;
20785
20786  esac
20787  shift
20788done
20789
20790ac_configure_extra_args=
20791
20792if $ac_cs_silent; then
20793  exec 6>/dev/null
20794  ac_configure_extra_args="$ac_configure_extra_args --silent"
20795fi
20796
20797_ACEOF
20798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20799if \$ac_cs_recheck; then
20800  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20801  shift
20802  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20803  CONFIG_SHELL='$SHELL'
20804  export CONFIG_SHELL
20805  exec "\$@"
20806fi
20807
20808_ACEOF
20809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20810exec 5>>config.log
20811{
20812  echo
20813  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20814## Running $as_me. ##
20815_ASBOX
20816  printf "%s\n" "$ac_log"
20817} >&5
20818
20819_ACEOF
20820cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20821#
20822# INIT-COMMANDS
20823#
20824AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20825
20826
20827# The HP-UX ksh and POSIX shell print the target directory to stdout
20828# if CDPATH is set.
20829(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20830
20831sed_quote_subst='$sed_quote_subst'
20832double_quote_subst='$double_quote_subst'
20833delay_variable_subst='$delay_variable_subst'
20834macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20835macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20836enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20837enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20838pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20839enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20840shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20841SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20842ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20843PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20844host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20845host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20846host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20847build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20848build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20849build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20850SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20851Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20852GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20853EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20854FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20855LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20856NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20857LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20858max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20859ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20860exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20861lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20862lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20863lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20864lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20865lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20866reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20867reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20868FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20869OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20870deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20871file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20872file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20873want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20874DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20875sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20876AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20877lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20878AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20879archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20880STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20881RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20882old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20883old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20884old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20885lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20886CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20887CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20888compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20889GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20890lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20891lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20892lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20893lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20894lt_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"`'
20895lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20896nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20897lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20898lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20899objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20900MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20901lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20902lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20903lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20904lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20905lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20906need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20907MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20908DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20909NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20910LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20911OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20912OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20913libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20914shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20915extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20916archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20917enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20918export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20919whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20920compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20921old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20922old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20923archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20924archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20925module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20926module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20927with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20928allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20929no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20930hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20931hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20932hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20933hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20934hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20935hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20936hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20937inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20938link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20939always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20940export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20941exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20942include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20943prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20944postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20945file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20946variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20947need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20948need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20949version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20950runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20951shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20952shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20953libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20954library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20955soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20956install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20957postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20958postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20959finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20960finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20961hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20962sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20963configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20964configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20965hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20966enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20967enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20968enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20969old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20970striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20971
20972LTCC='$LTCC'
20973LTCFLAGS='$LTCFLAGS'
20974compiler='$compiler_DEFAULT'
20975
20976# A function that is used when there is no print builtin or printf.
20977func_fallback_echo ()
20978{
20979  eval 'cat <<_LTECHO_EOF
20980\$1
20981_LTECHO_EOF'
20982}
20983
20984# Quote evaled strings.
20985for var in SHELL \
20986ECHO \
20987PATH_SEPARATOR \
20988SED \
20989GREP \
20990EGREP \
20991FGREP \
20992LD \
20993NM \
20994LN_S \
20995lt_SP2NL \
20996lt_NL2SP \
20997reload_flag \
20998FILECMD \
20999OBJDUMP \
21000deplibs_check_method \
21001file_magic_cmd \
21002file_magic_glob \
21003want_nocaseglob \
21004DLLTOOL \
21005sharedlib_from_linklib_cmd \
21006AR \
21007archiver_list_spec \
21008STRIP \
21009RANLIB \
21010CC \
21011CFLAGS \
21012compiler \
21013lt_cv_sys_global_symbol_pipe \
21014lt_cv_sys_global_symbol_to_cdecl \
21015lt_cv_sys_global_symbol_to_import \
21016lt_cv_sys_global_symbol_to_c_name_address \
21017lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21018lt_cv_nm_interface \
21019nm_file_list_spec \
21020lt_cv_truncate_bin \
21021lt_prog_compiler_no_builtin_flag \
21022lt_prog_compiler_pic \
21023lt_prog_compiler_wl \
21024lt_prog_compiler_static \
21025lt_cv_prog_compiler_c_o \
21026need_locks \
21027MANIFEST_TOOL \
21028DSYMUTIL \
21029NMEDIT \
21030LIPO \
21031OTOOL \
21032OTOOL64 \
21033shrext_cmds \
21034export_dynamic_flag_spec \
21035whole_archive_flag_spec \
21036compiler_needs_object \
21037with_gnu_ld \
21038allow_undefined_flag \
21039no_undefined_flag \
21040hardcode_libdir_flag_spec \
21041hardcode_libdir_separator \
21042exclude_expsyms \
21043include_expsyms \
21044file_list_spec \
21045variables_saved_for_relink \
21046libname_spec \
21047library_names_spec \
21048soname_spec \
21049install_override_mode \
21050finish_eval \
21051old_striplib \
21052striplib; do
21053    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21054    *[\\\\\\\`\\"\\\$]*)
21055      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21056      ;;
21057    *)
21058      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21059      ;;
21060    esac
21061done
21062
21063# Double-quote double-evaled strings.
21064for var in reload_cmds \
21065old_postinstall_cmds \
21066old_postuninstall_cmds \
21067old_archive_cmds \
21068extract_expsyms_cmds \
21069old_archive_from_new_cmds \
21070old_archive_from_expsyms_cmds \
21071archive_cmds \
21072archive_expsym_cmds \
21073module_cmds \
21074module_expsym_cmds \
21075export_symbols_cmds \
21076prelink_cmds \
21077postlink_cmds \
21078postinstall_cmds \
21079postuninstall_cmds \
21080finish_cmds \
21081sys_lib_search_path_spec \
21082configure_time_dlsearch_path \
21083configure_time_lt_sys_library_path; do
21084    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21085    *[\\\\\\\`\\"\\\$]*)
21086      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21087      ;;
21088    *)
21089      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21090      ;;
21091    esac
21092done
21093
21094ac_aux_dir='$ac_aux_dir'
21095
21096# See if we are running on zsh, and set the options that allow our
21097# commands through without removal of \ escapes INIT.
21098if test -n "\${ZSH_VERSION+set}"; then
21099   setopt NO_GLOB_SUBST
21100fi
21101
21102
21103    PACKAGE='$PACKAGE'
21104    VERSION='$VERSION'
21105    RM='$RM'
21106    ofile='$ofile'
21107
21108
21109
21110
21111_ACEOF
21112
21113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21114
21115# Handling of arguments.
21116for ac_config_target in $ac_config_targets
21117do
21118  case $ac_config_target in
21119    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21120    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21121    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21122    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21123    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
21124    "include/X11/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/Makefile" ;;
21125    "include/X11/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES include/X11/extensions/Makefile" ;;
21126    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21127    "wrapper/Makefile") CONFIG_FILES="$CONFIG_FILES wrapper/Makefile" ;;
21128    "xvmc.pc") CONFIG_FILES="$CONFIG_FILES xvmc.pc" ;;
21129    "xvmc-wrapper.pc") CONFIG_FILES="$CONFIG_FILES xvmc-wrapper.pc" ;;
21130
21131  *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21132  esac
21133done
21134
21135
21136# If the user did not use the arguments to specify the items to instantiate,
21137# then the envvar interface is used.  Set only those that are not.
21138# We use the long form for the default assignment because of an extremely
21139# bizarre bug on SunOS 4.1.3.
21140if $ac_need_defaults; then
21141  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21142  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21143  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21144fi
21145
21146# Have a temporary directory for convenience.  Make it in the build tree
21147# simply because there is no reason against having it here, and in addition,
21148# creating and moving files from /tmp can sometimes cause problems.
21149# Hook for its removal unless debugging.
21150# Note that there is a small window in which the directory will not be cleaned:
21151# after its creation but before its name has been assigned to '$tmp'.
21152$debug ||
21153{
21154  tmp= ac_tmp=
21155  trap 'exit_status=$?
21156  : "${ac_tmp:=$tmp}"
21157  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21158' 0
21159  trap 'as_fn_exit 1' 1 2 13 15
21160}
21161# Create a (secure) tmp directory for tmp files.
21162
21163{
21164  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21165  test -d "$tmp"
21166}  ||
21167{
21168  tmp=./conf$$-$RANDOM
21169  (umask 077 && mkdir "$tmp")
21170} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21171ac_tmp=$tmp
21172
21173# Set up the scripts for CONFIG_FILES section.
21174# No need to generate them if there are no CONFIG_FILES.
21175# This happens for instance with './config.status config.h'.
21176if test -n "$CONFIG_FILES"; then
21177
21178
21179ac_cr=`echo X | tr X '\015'`
21180# On cygwin, bash can eat \r inside `` if the user requested igncr.
21181# But we know of no other shell where ac_cr would be empty at this
21182# point, so we can use a bashism as a fallback.
21183if test "x$ac_cr" = x; then
21184  eval ac_cr=\$\'\\r\'
21185fi
21186ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21187if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21188  ac_cs_awk_cr='\\r'
21189else
21190  ac_cs_awk_cr=$ac_cr
21191fi
21192
21193echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21194_ACEOF
21195
21196
21197{
21198  echo "cat >conf$$subs.awk <<_ACEOF" &&
21199  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21200  echo "_ACEOF"
21201} >conf$$subs.sh ||
21202  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21203ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21204ac_delim='%!_!# '
21205for ac_last_try in false false false false false :; do
21206  . ./conf$$subs.sh ||
21207    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21208
21209  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21210  if test $ac_delim_n = $ac_delim_num; then
21211    break
21212  elif $ac_last_try; then
21213    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21214  else
21215    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21216  fi
21217done
21218rm -f conf$$subs.sh
21219
21220cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21221cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21222_ACEOF
21223sed -n '
21224h
21225s/^/S["/; s/!.*/"]=/
21226p
21227g
21228s/^[^!]*!//
21229:repl
21230t repl
21231s/'"$ac_delim"'$//
21232t delim
21233:nl
21234h
21235s/\(.\{148\}\)..*/\1/
21236t more1
21237s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21238p
21239n
21240b repl
21241:more1
21242s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21243p
21244g
21245s/.\{148\}//
21246t nl
21247:delim
21248h
21249s/\(.\{148\}\)..*/\1/
21250t more2
21251s/["\\]/\\&/g; s/^/"/; s/$/"/
21252p
21253b
21254:more2
21255s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21256p
21257g
21258s/.\{148\}//
21259t delim
21260' <conf$$subs.awk | sed '
21261/^[^""]/{
21262  N
21263  s/\n//
21264}
21265' >>$CONFIG_STATUS || ac_write_fail=1
21266rm -f conf$$subs.awk
21267cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21268_ACAWK
21269cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21270  for (key in S) S_is_set[key] = 1
21271  FS = ""
21272
21273}
21274{
21275  line = $ 0
21276  nfields = split(line, field, "@")
21277  substed = 0
21278  len = length(field[1])
21279  for (i = 2; i < nfields; i++) {
21280    key = field[i]
21281    keylen = length(key)
21282    if (S_is_set[key]) {
21283      value = S[key]
21284      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21285      len += length(value) + length(field[++i])
21286      substed = 1
21287    } else
21288      len += 1 + keylen
21289  }
21290
21291  print line
21292}
21293
21294_ACAWK
21295_ACEOF
21296cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21297if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21298  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21299else
21300  cat
21301fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21302  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21303_ACEOF
21304
21305# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21306# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21307# trailing colons and then remove the whole line if VPATH becomes empty
21308# (actually we leave an empty line to preserve line numbers).
21309if test "x$srcdir" = x.; then
21310  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21311h
21312s///
21313s/^/:/
21314s/[	 ]*$/:/
21315s/:\$(srcdir):/:/g
21316s/:\${srcdir}:/:/g
21317s/:@srcdir@:/:/g
21318s/^:*//
21319s/:*$//
21320x
21321s/\(=[	 ]*\).*/\1/
21322G
21323s/\n//
21324s/^[^=]*=[	 ]*$//
21325}'
21326fi
21327
21328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21329fi # test -n "$CONFIG_FILES"
21330
21331# Set up the scripts for CONFIG_HEADERS section.
21332# No need to generate them if there are no CONFIG_HEADERS.
21333# This happens for instance with './config.status Makefile'.
21334if test -n "$CONFIG_HEADERS"; then
21335cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21336BEGIN {
21337_ACEOF
21338
21339# Transform confdefs.h into an awk script 'defines.awk', embedded as
21340# here-document in config.status, that substitutes the proper values into
21341# config.h.in to produce config.h.
21342
21343# Create a delimiter string that does not exist in confdefs.h, to ease
21344# handling of long lines.
21345ac_delim='%!_!# '
21346for ac_last_try in false false :; do
21347  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21348  if test -z "$ac_tt"; then
21349    break
21350  elif $ac_last_try; then
21351    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21352  else
21353    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21354  fi
21355done
21356
21357# For the awk script, D is an array of macro values keyed by name,
21358# likewise P contains macro parameters if any.  Preserve backslash
21359# newline sequences.
21360
21361ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21362sed -n '
21363s/.\{148\}/&'"$ac_delim"'/g
21364t rset
21365:rset
21366s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21367t def
21368d
21369:def
21370s/\\$//
21371t bsnl
21372s/["\\]/\\&/g
21373s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21374D["\1"]=" \3"/p
21375s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21376d
21377:bsnl
21378s/["\\]/\\&/g
21379s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21380D["\1"]=" \3\\\\\\n"\\/p
21381t cont
21382s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21383t cont
21384d
21385:cont
21386n
21387s/.\{148\}/&'"$ac_delim"'/g
21388t clear
21389:clear
21390s/\\$//
21391t bsnlc
21392s/["\\]/\\&/g; s/^/"/; s/$/"/p
21393d
21394:bsnlc
21395s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21396b cont
21397' <confdefs.h | sed '
21398s/'"$ac_delim"'/"\\\
21399"/g' >>$CONFIG_STATUS || ac_write_fail=1
21400
21401cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21402  for (key in D) D_is_set[key] = 1
21403  FS = ""
21404}
21405/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21406  line = \$ 0
21407  split(line, arg, " ")
21408  if (arg[1] == "#") {
21409    defundef = arg[2]
21410    mac1 = arg[3]
21411  } else {
21412    defundef = substr(arg[1], 2)
21413    mac1 = arg[2]
21414  }
21415  split(mac1, mac2, "(") #)
21416  macro = mac2[1]
21417  prefix = substr(line, 1, index(line, defundef) - 1)
21418  if (D_is_set[macro]) {
21419    # Preserve the white space surrounding the "#".
21420    print prefix "define", macro P[macro] D[macro]
21421    next
21422  } else {
21423    # Replace #undef with comments.  This is necessary, for example,
21424    # in the case of _POSIX_SOURCE, which is predefined and required
21425    # on some systems where configure will not decide to define it.
21426    if (defundef == "undef") {
21427      print "/*", prefix defundef, macro, "*/"
21428      next
21429    }
21430  }
21431}
21432{ print }
21433_ACAWK
21434_ACEOF
21435cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21436  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21437fi # test -n "$CONFIG_HEADERS"
21438
21439
21440eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21441shift
21442for ac_tag
21443do
21444  case $ac_tag in
21445  :[FHLC]) ac_mode=$ac_tag; continue;;
21446  esac
21447  case $ac_mode$ac_tag in
21448  :[FHL]*:*);;
21449  :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
21450  :[FH]-) ac_tag=-:-;;
21451  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21452  esac
21453  ac_save_IFS=$IFS
21454  IFS=:
21455  set x $ac_tag
21456  IFS=$ac_save_IFS
21457  shift
21458  ac_file=$1
21459  shift
21460
21461  case $ac_mode in
21462  :L) ac_source=$1;;
21463  :[FH])
21464    ac_file_inputs=
21465    for ac_f
21466    do
21467      case $ac_f in
21468      -) ac_f="$ac_tmp/stdin";;
21469      *) # Look for the file first in the build tree, then in the source tree
21470	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21471	 # because $ac_f cannot contain ':'.
21472	 test -f "$ac_f" ||
21473	   case $ac_f in
21474	   [\\/$]*) false;;
21475	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21476	   esac ||
21477	   as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
21478      esac
21479      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21480      as_fn_append ac_file_inputs " '$ac_f'"
21481    done
21482
21483    # Let's still pretend it is 'configure' which instantiates (i.e., don't
21484    # use $as_me), people would be surprised to read:
21485    #    /* config.h.  Generated by config.status.  */
21486    configure_input='Generated from '`
21487	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21488	`' by configure.'
21489    if test x"$ac_file" != x-; then
21490      configure_input="$ac_file.  $configure_input"
21491      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21492printf "%s\n" "$as_me: creating $ac_file" >&6;}
21493    fi
21494    # Neutralize special characters interpreted by sed in replacement strings.
21495    case $configure_input in #(
21496    *\&* | *\|* | *\\* )
21497       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21498       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21499    *) ac_sed_conf_input=$configure_input;;
21500    esac
21501
21502    case $ac_tag in
21503    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21504      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21505    esac
21506    ;;
21507  esac
21508
21509  ac_dir=`$as_dirname -- "$ac_file" ||
21510$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21511	 X"$ac_file" : 'X\(//\)[^/]' \| \
21512	 X"$ac_file" : 'X\(//\)$' \| \
21513	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21514printf "%s\n" X"$ac_file" |
21515    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21516	    s//\1/
21517	    q
21518	  }
21519	  /^X\(\/\/\)[^/].*/{
21520	    s//\1/
21521	    q
21522	  }
21523	  /^X\(\/\/\)$/{
21524	    s//\1/
21525	    q
21526	  }
21527	  /^X\(\/\).*/{
21528	    s//\1/
21529	    q
21530	  }
21531	  s/.*/./; q'`
21532  as_dir="$ac_dir"; as_fn_mkdir_p
21533  ac_builddir=.
21534
21535case "$ac_dir" in
21536.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21537*)
21538  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21539  # A ".." for each directory in $ac_dir_suffix.
21540  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21541  case $ac_top_builddir_sub in
21542  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21543  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21544  esac ;;
21545esac
21546ac_abs_top_builddir=$ac_pwd
21547ac_abs_builddir=$ac_pwd$ac_dir_suffix
21548# for backward compatibility:
21549ac_top_builddir=$ac_top_build_prefix
21550
21551case $srcdir in
21552  .)  # We are building in place.
21553    ac_srcdir=.
21554    ac_top_srcdir=$ac_top_builddir_sub
21555    ac_abs_top_srcdir=$ac_pwd ;;
21556  [\\/]* | ?:[\\/]* )  # Absolute name.
21557    ac_srcdir=$srcdir$ac_dir_suffix;
21558    ac_top_srcdir=$srcdir
21559    ac_abs_top_srcdir=$srcdir ;;
21560  *) # Relative name.
21561    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21562    ac_top_srcdir=$ac_top_build_prefix$srcdir
21563    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21564esac
21565ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21566
21567
21568  case $ac_mode in
21569  :F)
21570  #
21571  # CONFIG_FILE
21572  #
21573
21574  case $INSTALL in
21575  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21576  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21577  esac
21578  ac_MKDIR_P=$MKDIR_P
21579  case $MKDIR_P in
21580  [\\/$]* | ?:[\\/]* ) ;;
21581  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21582  esac
21583_ACEOF
21584
21585cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21586# If the template does not know about datarootdir, expand it.
21587# FIXME: This hack should be removed a few years after 2.60.
21588ac_datarootdir_hack=; ac_datarootdir_seen=
21589ac_sed_dataroot='
21590/datarootdir/ {
21591  p
21592  q
21593}
21594/@datadir@/p
21595/@docdir@/p
21596/@infodir@/p
21597/@localedir@/p
21598/@mandir@/p'
21599case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21600*datarootdir*) ac_datarootdir_seen=yes;;
21601*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21603printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21604_ACEOF
21605cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21606  ac_datarootdir_hack='
21607  s&@datadir@&$datadir&g
21608  s&@docdir@&$docdir&g
21609  s&@infodir@&$infodir&g
21610  s&@localedir@&$localedir&g
21611  s&@mandir@&$mandir&g
21612  s&\\\${datarootdir}&$datarootdir&g' ;;
21613esac
21614_ACEOF
21615
21616# Neutralize VPATH when '$srcdir' = '.'.
21617# Shell code in configure.ac might set extrasub.
21618# FIXME: do we really want to maintain this feature?
21619cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21620ac_sed_extra="$ac_vpsub
21621$extrasub
21622_ACEOF
21623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21624:t
21625/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21626s|@configure_input@|$ac_sed_conf_input|;t t
21627s&@top_builddir@&$ac_top_builddir_sub&;t t
21628s&@top_build_prefix@&$ac_top_build_prefix&;t t
21629s&@srcdir@&$ac_srcdir&;t t
21630s&@abs_srcdir@&$ac_abs_srcdir&;t t
21631s&@top_srcdir@&$ac_top_srcdir&;t t
21632s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21633s&@builddir@&$ac_builddir&;t t
21634s&@abs_builddir@&$ac_abs_builddir&;t t
21635s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21636s&@INSTALL@&$ac_INSTALL&;t t
21637s&@MKDIR_P@&$ac_MKDIR_P&;t t
21638$ac_datarootdir_hack
21639"
21640eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21641  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21642
21643test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21644  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21645  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21646      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21648which seems to be undefined.  Please make sure it is defined" >&5
21649printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
21650which seems to be undefined.  Please make sure it is defined" >&2;}
21651
21652  rm -f "$ac_tmp/stdin"
21653  case $ac_file in
21654  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21655  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21656  esac \
21657  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21658 ;;
21659  :H)
21660  #
21661  # CONFIG_HEADER
21662  #
21663  if test x"$ac_file" != x-; then
21664    {
21665      printf "%s\n" "/* $configure_input  */" >&1 \
21666      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21667    } >"$ac_tmp/config.h" \
21668      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21669    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21670      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21671printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21672    else
21673      rm -f "$ac_file"
21674      mv "$ac_tmp/config.h" "$ac_file" \
21675	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21676    fi
21677  else
21678    printf "%s\n" "/* $configure_input  */" >&1 \
21679      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21680      || as_fn_error $? "could not create -" "$LINENO" 5
21681  fi
21682# Compute "$ac_file"'s index in $config_headers.
21683_am_arg="$ac_file"
21684_am_stamp_count=1
21685for _am_header in $config_headers :; do
21686  case $_am_header in
21687    $_am_arg | $_am_arg:* )
21688      break ;;
21689    * )
21690      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21691  esac
21692done
21693echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21694$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21695	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21696	 X"$_am_arg" : 'X\(//\)$' \| \
21697	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21698printf "%s\n" X"$_am_arg" |
21699    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21700	    s//\1/
21701	    q
21702	  }
21703	  /^X\(\/\/\)[^/].*/{
21704	    s//\1/
21705	    q
21706	  }
21707	  /^X\(\/\/\)$/{
21708	    s//\1/
21709	    q
21710	  }
21711	  /^X\(\/\).*/{
21712	    s//\1/
21713	    q
21714	  }
21715	  s/.*/./; q'`/stamp-h$_am_stamp_count
21716 ;;
21717
21718  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21719printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21720 ;;
21721  esac
21722
21723
21724  case $ac_file$ac_mode in
21725    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21726  # Older Autoconf quotes --file arguments for eval, but not when files
21727  # are listed without --file.  Let's play safe and only enable the eval
21728  # if we detect the quoting.
21729  # TODO: see whether this extra hack can be removed once we start
21730  # requiring Autoconf 2.70 or later.
21731  case $CONFIG_FILES in #(
21732  *\'*) :
21733    eval set x "$CONFIG_FILES" ;; #(
21734  *) :
21735    set x $CONFIG_FILES ;; #(
21736  *) :
21737     ;;
21738esac
21739  shift
21740  # Used to flag and report bootstrapping failures.
21741  am_rc=0
21742  for am_mf
21743  do
21744    # Strip MF so we end up with the name of the file.
21745    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21746    # Check whether this is an Automake generated Makefile which includes
21747    # dependency-tracking related rules and includes.
21748    # Grep'ing the whole file directly is not great: AIX grep has a line
21749    # limit of 2048, but all sed's we know have understand at least 4000.
21750    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21751      || continue
21752    am_dirpart=`$as_dirname -- "$am_mf" ||
21753$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21754	 X"$am_mf" : 'X\(//\)[^/]' \| \
21755	 X"$am_mf" : 'X\(//\)$' \| \
21756	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21757printf "%s\n" X"$am_mf" |
21758    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21759	    s//\1/
21760	    q
21761	  }
21762	  /^X\(\/\/\)[^/].*/{
21763	    s//\1/
21764	    q
21765	  }
21766	  /^X\(\/\/\)$/{
21767	    s//\1/
21768	    q
21769	  }
21770	  /^X\(\/\).*/{
21771	    s//\1/
21772	    q
21773	  }
21774	  s/.*/./; q'`
21775    am_filepart=`$as_basename -- "$am_mf" ||
21776$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21777	 X"$am_mf" : 'X\(//\)$' \| \
21778	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21779printf "%s\n" X/"$am_mf" |
21780    sed '/^.*\/\([^/][^/]*\)\/*$/{
21781	    s//\1/
21782	    q
21783	  }
21784	  /^X\/\(\/\/\)$/{
21785	    s//\1/
21786	    q
21787	  }
21788	  /^X\/\(\/\).*/{
21789	    s//\1/
21790	    q
21791	  }
21792	  s/.*/./; q'`
21793    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21794      && sed -e '/# am--include-marker/d' "$am_filepart" \
21795        | $MAKE -f - am--depfiles" >&5
21796   (cd "$am_dirpart" \
21797      && sed -e '/# am--include-marker/d' "$am_filepart" \
21798        | $MAKE -f - am--depfiles) >&5 2>&5
21799   ac_status=$?
21800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21801   (exit $ac_status); } || am_rc=$?
21802  done
21803  if test $am_rc -ne 0; then
21804    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21805printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21806as_fn_error $? "Something went wrong bootstrapping makefile fragments
21807    for automatic dependency tracking.  If GNU make was not used, consider
21808    re-running the configure script with MAKE=\"gmake\" (or whatever is
21809    necessary).  You can also try re-running configure with the
21810    '--disable-dependency-tracking' option to at least be able to build
21811    the package (albeit without support for automatic dependency tracking).
21812See 'config.log' for more details" "$LINENO" 5; }
21813  fi
21814  { am_dirpart=; unset am_dirpart;}
21815  { am_filepart=; unset am_filepart;}
21816  { am_mf=; unset am_mf;}
21817  { am_rc=; unset am_rc;}
21818  rm -f conftest-deps.mk
21819}
21820 ;;
21821    "libtool":C)
21822
21823    # See if we are running on zsh, and set the options that allow our
21824    # commands through without removal of \ escapes.
21825    if test -n "${ZSH_VERSION+set}"; then
21826      setopt NO_GLOB_SUBST
21827    fi
21828
21829    cfgfile=${ofile}T
21830    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21831    $RM "$cfgfile"
21832
21833    cat <<_LT_EOF >> "$cfgfile"
21834#! $SHELL
21835# Generated automatically by $as_me ($PACKAGE) $VERSION
21836# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21837# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21838
21839# Provide generalized library-building support services.
21840# Written by Gordon Matzigkeit, 1996
21841
21842# Copyright (C) 2014 Free Software Foundation, Inc.
21843# This is free software; see the source for copying conditions.  There is NO
21844# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21845
21846# GNU Libtool is free software; you can redistribute it and/or modify
21847# it under the terms of the GNU General Public License as published by
21848# the Free Software Foundation; either version 2 of of the License, or
21849# (at your option) any later version.
21850#
21851# As a special exception to the GNU General Public License, if you
21852# distribute this file as part of a program or library that is built
21853# using GNU Libtool, you may include this file under the  same
21854# distribution terms that you use for the rest of that program.
21855#
21856# GNU Libtool is distributed in the hope that it will be useful, but
21857# WITHOUT ANY WARRANTY; without even the implied warranty of
21858# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21859# GNU General Public License for more details.
21860#
21861# You should have received a copy of the GNU General Public License
21862# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21863
21864
21865# The names of the tagged configurations supported by this script.
21866available_tags=''
21867
21868# Configured defaults for sys_lib_dlsearch_path munging.
21869: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21870
21871# ### BEGIN LIBTOOL CONFIG
21872
21873# Which release of libtool.m4 was used?
21874macro_version=$macro_version
21875macro_revision=$macro_revision
21876
21877# Whether or not to build shared libraries.
21878build_libtool_libs=$enable_shared
21879
21880# Whether or not to build static libraries.
21881build_old_libs=$enable_static
21882
21883# What type of objects to build.
21884pic_mode=$pic_mode
21885
21886# Whether or not to optimize for fast installation.
21887fast_install=$enable_fast_install
21888
21889# Shared archive member basename,for filename based shared library versioning on AIX.
21890shared_archive_member_spec=$shared_archive_member_spec
21891
21892# Shell to use when invoking shell scripts.
21893SHELL=$lt_SHELL
21894
21895# An echo program that protects backslashes.
21896ECHO=$lt_ECHO
21897
21898# The PATH separator for the build system.
21899PATH_SEPARATOR=$lt_PATH_SEPARATOR
21900
21901# The host system.
21902host_alias=$host_alias
21903host=$host
21904host_os=$host_os
21905
21906# The build system.
21907build_alias=$build_alias
21908build=$build
21909build_os=$build_os
21910
21911# A sed program that does not truncate output.
21912SED=$lt_SED
21913
21914# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21915Xsed="\$SED -e 1s/^X//"
21916
21917# A grep program that handles long lines.
21918GREP=$lt_GREP
21919
21920# An ERE matcher.
21921EGREP=$lt_EGREP
21922
21923# A literal string matcher.
21924FGREP=$lt_FGREP
21925
21926# A BSD- or MS-compatible name lister.
21927NM=$lt_NM
21928
21929# Whether we need soft or hard links.
21930LN_S=$lt_LN_S
21931
21932# What is the maximum length of a command?
21933max_cmd_len=$max_cmd_len
21934
21935# Object file suffix (normally "o").
21936objext=$ac_objext
21937
21938# Executable file suffix (normally "").
21939exeext=$exeext
21940
21941# whether the shell understands "unset".
21942lt_unset=$lt_unset
21943
21944# turn spaces into newlines.
21945SP2NL=$lt_lt_SP2NL
21946
21947# turn newlines into spaces.
21948NL2SP=$lt_lt_NL2SP
21949
21950# convert \$build file names to \$host format.
21951to_host_file_cmd=$lt_cv_to_host_file_cmd
21952
21953# convert \$build files to toolchain format.
21954to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21955
21956# A file(cmd) program that detects file types.
21957FILECMD=$lt_FILECMD
21958
21959# An object symbol dumper.
21960OBJDUMP=$lt_OBJDUMP
21961
21962# Method to check whether dependent libraries are shared objects.
21963deplibs_check_method=$lt_deplibs_check_method
21964
21965# Command to use when deplibs_check_method = "file_magic".
21966file_magic_cmd=$lt_file_magic_cmd
21967
21968# How to find potential files when deplibs_check_method = "file_magic".
21969file_magic_glob=$lt_file_magic_glob
21970
21971# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21972want_nocaseglob=$lt_want_nocaseglob
21973
21974# DLL creation program.
21975DLLTOOL=$lt_DLLTOOL
21976
21977# Command to associate shared and link libraries.
21978sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21979
21980# The archiver.
21981AR=$lt_AR
21982
21983# Flags to create an archive (by configure).
21984lt_ar_flags=$lt_ar_flags
21985
21986# Flags to create an archive.
21987AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21988
21989# How to feed a file listing to the archiver.
21990archiver_list_spec=$lt_archiver_list_spec
21991
21992# A symbol stripping program.
21993STRIP=$lt_STRIP
21994
21995# Commands used to install an old-style archive.
21996RANLIB=$lt_RANLIB
21997old_postinstall_cmds=$lt_old_postinstall_cmds
21998old_postuninstall_cmds=$lt_old_postuninstall_cmds
21999
22000# Whether to use a lock for old archive extraction.
22001lock_old_archive_extraction=$lock_old_archive_extraction
22002
22003# A C compiler.
22004LTCC=$lt_CC
22005
22006# LTCC compiler flags.
22007LTCFLAGS=$lt_CFLAGS
22008
22009# Take the output of nm and produce a listing of raw symbols and C names.
22010global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22011
22012# Transform the output of nm in a proper C declaration.
22013global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22014
22015# Transform the output of nm into a list of symbols to manually relocate.
22016global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22017
22018# Transform the output of nm in a C name address pair.
22019global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22020
22021# Transform the output of nm in a C name address pair when lib prefix is needed.
22022global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22023
22024# The name lister interface.
22025nm_interface=$lt_lt_cv_nm_interface
22026
22027# Specify filename containing input files for \$NM.
22028nm_file_list_spec=$lt_nm_file_list_spec
22029
22030# The root where to search for dependent libraries,and where our libraries should be installed.
22031lt_sysroot=$lt_sysroot
22032
22033# Command to truncate a binary pipe.
22034lt_truncate_bin=$lt_lt_cv_truncate_bin
22035
22036# The name of the directory that contains temporary libtool files.
22037objdir=$objdir
22038
22039# Used to examine libraries when file_magic_cmd begins with "file".
22040MAGIC_CMD=$MAGIC_CMD
22041
22042# Must we lock files when doing compilation?
22043need_locks=$lt_need_locks
22044
22045# Manifest tool.
22046MANIFEST_TOOL=$lt_MANIFEST_TOOL
22047
22048# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22049DSYMUTIL=$lt_DSYMUTIL
22050
22051# Tool to change global to local symbols on Mac OS X.
22052NMEDIT=$lt_NMEDIT
22053
22054# Tool to manipulate fat objects and archives on Mac OS X.
22055LIPO=$lt_LIPO
22056
22057# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22058OTOOL=$lt_OTOOL
22059
22060# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22061OTOOL64=$lt_OTOOL64
22062
22063# Old archive suffix (normally "a").
22064libext=$libext
22065
22066# Shared library suffix (normally ".so").
22067shrext_cmds=$lt_shrext_cmds
22068
22069# The commands to extract the exported symbol list from a shared archive.
22070extract_expsyms_cmds=$lt_extract_expsyms_cmds
22071
22072# Variables whose values should be saved in libtool wrapper scripts and
22073# restored at link time.
22074variables_saved_for_relink=$lt_variables_saved_for_relink
22075
22076# Do we need the "lib" prefix for modules?
22077need_lib_prefix=$need_lib_prefix
22078
22079# Do we need a version for libraries?
22080need_version=$need_version
22081
22082# Library versioning type.
22083version_type=$version_type
22084
22085# Shared library runtime path variable.
22086runpath_var=$runpath_var
22087
22088# Shared library path variable.
22089shlibpath_var=$shlibpath_var
22090
22091# Is shlibpath searched before the hard-coded library search path?
22092shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22093
22094# Format of library name prefix.
22095libname_spec=$lt_libname_spec
22096
22097# List of archive names.  First name is the real one, the rest are links.
22098# The last name is the one that the linker finds with -lNAME
22099library_names_spec=$lt_library_names_spec
22100
22101# The coded name of the library, if different from the real name.
22102soname_spec=$lt_soname_spec
22103
22104# Permission mode override for installation of shared libraries.
22105install_override_mode=$lt_install_override_mode
22106
22107# Command to use after installation of a shared archive.
22108postinstall_cmds=$lt_postinstall_cmds
22109
22110# Command to use after uninstallation of a shared archive.
22111postuninstall_cmds=$lt_postuninstall_cmds
22112
22113# Commands used to finish a libtool library installation in a directory.
22114finish_cmds=$lt_finish_cmds
22115
22116# As "finish_cmds", except a single script fragment to be evaled but
22117# not shown.
22118finish_eval=$lt_finish_eval
22119
22120# Whether we should hardcode library paths into libraries.
22121hardcode_into_libs=$hardcode_into_libs
22122
22123# Compile-time system search path for libraries.
22124sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22125
22126# Detected run-time system search path for libraries.
22127sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22128
22129# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22130configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22131
22132# Whether dlopen is supported.
22133dlopen_support=$enable_dlopen
22134
22135# Whether dlopen of programs is supported.
22136dlopen_self=$enable_dlopen_self
22137
22138# Whether dlopen of statically linked programs is supported.
22139dlopen_self_static=$enable_dlopen_self_static
22140
22141# Commands to strip libraries.
22142old_striplib=$lt_old_striplib
22143striplib=$lt_striplib
22144
22145
22146# The linker used to build libraries.
22147LD=$lt_LD
22148
22149# How to create reloadable object files.
22150reload_flag=$lt_reload_flag
22151reload_cmds=$lt_reload_cmds
22152
22153# Commands used to build an old-style archive.
22154old_archive_cmds=$lt_old_archive_cmds
22155
22156# A language specific compiler.
22157CC=$lt_compiler
22158
22159# Is the compiler the GNU compiler?
22160with_gcc=$GCC
22161
22162# Compiler flag to turn off builtin functions.
22163no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22164
22165# Additional compiler flags for building library objects.
22166pic_flag=$lt_lt_prog_compiler_pic
22167
22168# How to pass a linker flag through the compiler.
22169wl=$lt_lt_prog_compiler_wl
22170
22171# Compiler flag to prevent dynamic linking.
22172link_static_flag=$lt_lt_prog_compiler_static
22173
22174# Does compiler simultaneously support -c and -o options?
22175compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22176
22177# Whether or not to add -lc for building shared libraries.
22178build_libtool_need_lc=$archive_cmds_need_lc
22179
22180# Whether or not to disallow shared libs when runtime libs are static.
22181allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22182
22183# Compiler flag to allow reflexive dlopens.
22184export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22185
22186# Compiler flag to generate shared objects directly from archives.
22187whole_archive_flag_spec=$lt_whole_archive_flag_spec
22188
22189# Whether the compiler copes with passing no objects directly.
22190compiler_needs_object=$lt_compiler_needs_object
22191
22192# Create an old-style archive from a shared archive.
22193old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22194
22195# Create a temporary old-style archive to link instead of a shared archive.
22196old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22197
22198# Commands used to build a shared archive.
22199archive_cmds=$lt_archive_cmds
22200archive_expsym_cmds=$lt_archive_expsym_cmds
22201
22202# Commands used to build a loadable module if different from building
22203# a shared archive.
22204module_cmds=$lt_module_cmds
22205module_expsym_cmds=$lt_module_expsym_cmds
22206
22207# Whether we are building with GNU ld or not.
22208with_gnu_ld=$lt_with_gnu_ld
22209
22210# Flag that allows shared libraries with undefined symbols to be built.
22211allow_undefined_flag=$lt_allow_undefined_flag
22212
22213# Flag that enforces no undefined symbols.
22214no_undefined_flag=$lt_no_undefined_flag
22215
22216# Flag to hardcode \$libdir into a binary during linking.
22217# This must work even if \$libdir does not exist
22218hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22219
22220# Whether we need a single "-rpath" flag with a separated argument.
22221hardcode_libdir_separator=$lt_hardcode_libdir_separator
22222
22223# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22224# DIR into the resulting binary.
22225hardcode_direct=$hardcode_direct
22226
22227# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22228# DIR into the resulting binary and the resulting library dependency is
22229# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22230# library is relocated.
22231hardcode_direct_absolute=$hardcode_direct_absolute
22232
22233# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22234# into the resulting binary.
22235hardcode_minus_L=$hardcode_minus_L
22236
22237# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22238# into the resulting binary.
22239hardcode_shlibpath_var=$hardcode_shlibpath_var
22240
22241# Set to "yes" if building a shared library automatically hardcodes DIR
22242# into the library and all subsequent libraries and executables linked
22243# against it.
22244hardcode_automatic=$hardcode_automatic
22245
22246# Set to yes if linker adds runtime paths of dependent libraries
22247# to runtime path list.
22248inherit_rpath=$inherit_rpath
22249
22250# Whether libtool must link a program against all its dependency libraries.
22251link_all_deplibs=$link_all_deplibs
22252
22253# Set to "yes" if exported symbols are required.
22254always_export_symbols=$always_export_symbols
22255
22256# The commands to list exported symbols.
22257export_symbols_cmds=$lt_export_symbols_cmds
22258
22259# Symbols that should not be listed in the preloaded symbols.
22260exclude_expsyms=$lt_exclude_expsyms
22261
22262# Symbols that must always be exported.
22263include_expsyms=$lt_include_expsyms
22264
22265# Commands necessary for linking programs (against libraries) with templates.
22266prelink_cmds=$lt_prelink_cmds
22267
22268# Commands necessary for finishing linking programs.
22269postlink_cmds=$lt_postlink_cmds
22270
22271# Specify filename containing input files.
22272file_list_spec=$lt_file_list_spec
22273
22274# How to hardcode a shared library path into an executable.
22275hardcode_action=$hardcode_action
22276
22277# ### END LIBTOOL CONFIG
22278
22279_LT_EOF
22280
22281    cat <<'_LT_EOF' >> "$cfgfile"
22282
22283# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22284
22285# func_munge_path_list VARIABLE PATH
22286# -----------------------------------
22287# VARIABLE is name of variable containing _space_ separated list of
22288# directories to be munged by the contents of PATH, which is string
22289# having a format:
22290# "DIR[:DIR]:"
22291#       string "DIR[ DIR]" will be prepended to VARIABLE
22292# ":DIR[:DIR]"
22293#       string "DIR[ DIR]" will be appended to VARIABLE
22294# "DIRP[:DIRP]::[DIRA:]DIRA"
22295#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22296#       "DIRA[ DIRA]" will be appended to VARIABLE
22297# "DIR[:DIR]"
22298#       VARIABLE will be replaced by "DIR[ DIR]"
22299func_munge_path_list ()
22300{
22301    case x$2 in
22302    x)
22303        ;;
22304    *:)
22305        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22306        ;;
22307    x:*)
22308        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22309        ;;
22310    *::*)
22311        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22312        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22313        ;;
22314    *)
22315        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22316        ;;
22317    esac
22318}
22319
22320
22321# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22322func_cc_basename ()
22323{
22324    for cc_temp in $*""; do
22325      case $cc_temp in
22326        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22327        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22328        \-*) ;;
22329        *) break;;
22330      esac
22331    done
22332    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22333}
22334
22335
22336# ### END FUNCTIONS SHARED WITH CONFIGURE
22337
22338_LT_EOF
22339
22340  case $host_os in
22341  aix3*)
22342    cat <<\_LT_EOF >> "$cfgfile"
22343# AIX sometimes has problems with the GCC collect2 program.  For some
22344# reason, if we set the COLLECT_NAMES environment variable, the problems
22345# vanish in a puff of smoke.
22346if test set != "${COLLECT_NAMES+set}"; then
22347  COLLECT_NAMES=
22348  export COLLECT_NAMES
22349fi
22350_LT_EOF
22351    ;;
22352  esac
22353
22354
22355
22356ltmain=$ac_aux_dir/ltmain.sh
22357
22358
22359  # We use sed instead of cat because bash on DJGPP gets confused if
22360  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22361  # text mode, it properly converts lines to CR/LF.  This bash problem
22362  # is reportedly fixed, but why not run on old versions too?
22363  $SED '$q' "$ltmain" >> "$cfgfile" \
22364     || (rm -f "$cfgfile"; exit 1)
22365
22366   mv -f "$cfgfile" "$ofile" ||
22367    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22368  chmod +x "$ofile"
22369
22370 ;;
22371
22372  esac
22373done # for ac_tag
22374
22375
22376as_fn_exit 0
22377_ACEOF
22378ac_clean_files=$ac_clean_files_save
22379
22380test $ac_write_fail = 0 ||
22381  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22382
22383
22384# configure is writing to config.log, and then calls config.status.
22385# config.status does its own redirection, appending to config.log.
22386# Unfortunately, on DOS this fails, as config.log is still kept open
22387# by configure, so config.status won't be able to write to it; its
22388# output is simply discarded.  So we exec the FD to /dev/null,
22389# effectively closing config.log, so it can be properly (re)opened and
22390# appended to by config.status.  When coming back to configure, we
22391# need to make the FD available again.
22392if test "$no_create" != yes; then
22393  ac_cs_success=:
22394  ac_config_status_args=
22395  test "$silent" = yes &&
22396    ac_config_status_args="$ac_config_status_args --quiet"
22397  exec 5>/dev/null
22398  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22399  exec 5>>config.log
22400  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22401  # would make configure fail if this is the last instruction.
22402  $ac_cs_success || as_fn_exit 1
22403fi
22404if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22405  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22406printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22407fi
22408
22409
22410