1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xf86-video-trident 1.4.0.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-trident/-/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 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
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
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="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
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 \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186test \$(( 1 + 1 )) = 2 || 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"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: https://gitlab.freedesktop.org/xorg/driver/xf86-video-trident/-/issues
280$0: about your system, including any error possibly output
281$0: before this message. Then install a modern shell, or
282$0: manually run the script under such a shell if you do
283$0: have one."
284  fi
285  exit 1
286fi
287fi
288fi
289SHELL=${CONFIG_SHELL-/bin/sh}
290export SHELL
291# Unset more variables known to interfere with behavior of common tools.
292CLICOLOR_FORCE= GREP_OPTIONS=
293unset CLICOLOR_FORCE GREP_OPTIONS
294
295## --------------------- ##
296## M4sh Shell Functions. ##
297## --------------------- ##
298# as_fn_unset VAR
299# ---------------
300# Portably unset VAR.
301as_fn_unset ()
302{
303  { eval $1=; unset $1;}
304}
305as_unset=as_fn_unset
306
307
308# as_fn_set_status STATUS
309# -----------------------
310# Set $? to STATUS, without forking.
311as_fn_set_status ()
312{
313  return $1
314} # as_fn_set_status
315
316# as_fn_exit STATUS
317# -----------------
318# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319as_fn_exit ()
320{
321  set +e
322  as_fn_set_status $1
323  exit $1
324} # as_fn_exit
325# as_fn_nop
326# ---------
327# Do nothing but, unlike ":", preserve the value of $?.
328as_fn_nop ()
329{
330  return $?
331}
332as_nop=as_fn_nop
333
334# as_fn_mkdir_p
335# -------------
336# Create "$as_dir" as a directory, including parents if necessary.
337as_fn_mkdir_p ()
338{
339
340  case $as_dir in #(
341  -*) as_dir=./$as_dir;;
342  esac
343  test -d "$as_dir" || eval $as_mkdir_p || {
344    as_dirs=
345    while :; do
346      case $as_dir in #(
347      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348      *) as_qdir=$as_dir;;
349      esac
350      as_dirs="'$as_qdir' $as_dirs"
351      as_dir=`$as_dirname -- "$as_dir" ||
352$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353	 X"$as_dir" : 'X\(//\)[^/]' \| \
354	 X"$as_dir" : 'X\(//\)$' \| \
355	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356printf "%s\n" X"$as_dir" |
357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358	    s//\1/
359	    q
360	  }
361	  /^X\(\/\/\)[^/].*/{
362	    s//\1/
363	    q
364	  }
365	  /^X\(\/\/\)$/{
366	    s//\1/
367	    q
368	  }
369	  /^X\(\/\).*/{
370	    s//\1/
371	    q
372	  }
373	  s/.*/./; q'`
374      test -d "$as_dir" && break
375    done
376    test -z "$as_dirs" || eval "mkdir $as_dirs"
377  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380} # as_fn_mkdir_p
381
382# as_fn_executable_p FILE
383# -----------------------
384# Test if FILE is an executable regular file.
385as_fn_executable_p ()
386{
387  test -f "$1" && test -x "$1"
388} # as_fn_executable_p
389# as_fn_append VAR VALUE
390# ----------------------
391# Append the text in VALUE to the end of the definition contained in VAR. Take
392# advantage of any shell optimizations that allow amortized linear growth over
393# repeated appends, instead of the typical quadratic growth present in naive
394# implementations.
395if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396then :
397  eval 'as_fn_append ()
398  {
399    eval $1+=\$2
400  }'
401else $as_nop
402  as_fn_append ()
403  {
404    eval $1=\$$1\$2
405  }
406fi # as_fn_append
407
408# as_fn_arith ARG...
409# ------------------
410# Perform arithmetic evaluation on the ARGs, and store the result in the
411# global $as_val. Take advantage of shells that can avoid forks. The arguments
412# must be portable across $(()) and expr.
413if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414then :
415  eval 'as_fn_arith ()
416  {
417    as_val=$(( $* ))
418  }'
419else $as_nop
420  as_fn_arith ()
421  {
422    as_val=`expr "$@" || test $? -eq 1`
423  }
424fi # as_fn_arith
425
426# as_fn_nop
427# ---------
428# Do nothing but, unlike ":", preserve the value of $?.
429as_fn_nop ()
430{
431  return $?
432}
433as_nop=as_fn_nop
434
435# as_fn_error STATUS ERROR [LINENO LOG_FD]
436# ----------------------------------------
437# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439# script with STATUS, using 1 if that was 0.
440as_fn_error ()
441{
442  as_status=$1; test $as_status -eq 0 && as_status=1
443  if test "$4"; then
444    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446  fi
447  printf "%s\n" "$as_me: error: $2" >&2
448  as_fn_exit $as_status
449} # as_fn_error
450
451if expr a : '\(a\)' >/dev/null 2>&1 &&
452   test "X`expr 00001 : '.*\(...\)'`" = X001; then
453  as_expr=expr
454else
455  as_expr=false
456fi
457
458if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459  as_basename=basename
460else
461  as_basename=false
462fi
463
464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465  as_dirname=dirname
466else
467  as_dirname=false
468fi
469
470as_me=`$as_basename -- "$0" ||
471$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472	 X"$0" : 'X\(//\)$' \| \
473	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474printf "%s\n" X/"$0" |
475    sed '/^.*\/\([^/][^/]*\)\/*$/{
476	    s//\1/
477	    q
478	  }
479	  /^X\/\(\/\/\)$/{
480	    s//\1/
481	    q
482	  }
483	  /^X\/\(\/\).*/{
484	    s//\1/
485	    q
486	  }
487	  s/.*/./; q'`
488
489# Avoid depending upon Character Ranges.
490as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493as_cr_digits='0123456789'
494as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497  as_lineno_1=$LINENO as_lineno_1a=$LINENO
498  as_lineno_2=$LINENO as_lineno_2a=$LINENO
499  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
502  sed -n '
503    p
504    /[$]LINENO/=
505  ' <$as_myself |
506    sed '
507      s/[$]LINENO.*/&-/
508      t lineno
509      b
510      :lineno
511      N
512      :loop
513      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514      t loop
515      s/-\n.*//
516    ' >$as_me.lineno &&
517  chmod +x "$as_me.lineno" ||
518    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521  # already done that, so ensure we don't try to do so again and fall
522  # in an infinite loop.  This has already happened in practice.
523  _as_can_reexec=no; export _as_can_reexec
524  # Don't try to exec as it changes $[0], causing all sort of problems
525  # (the dirname of $[0] is not the place where we might find the
526  # original and so on.  Autoconf is especially sensitive to this).
527  . "./$as_me.lineno"
528  # Exit status is that of the last command.
529  exit
530}
531
532
533# Determine whether it's possible to make 'echo' print without a newline.
534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535# for compatibility with existing Makefiles.
536ECHO_C= ECHO_N= ECHO_T=
537case `echo -n x` in #(((((
538-n*)
539  case `echo 'xy\c'` in
540  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
541  xy)  ECHO_C='\c';;
542  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
543       ECHO_T='	';;
544  esac;;
545*)
546  ECHO_N='-n';;
547esac
548
549# For backward compatibility with old third-party macros, we provide
550# the shell variables $as_echo and $as_echo_n.  New code should use
551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552as_echo='printf %s\n'
553as_echo_n='printf %s'
554
555
556rm -f conf$$ conf$$.exe conf$$.file
557if test -d conf$$.dir; then
558  rm -f conf$$.dir/conf$$.file
559else
560  rm -f conf$$.dir
561  mkdir conf$$.dir 2>/dev/null
562fi
563if (echo >conf$$.file) 2>/dev/null; then
564  if ln -s conf$$.file conf$$ 2>/dev/null; then
565    as_ln_s='ln -s'
566    # ... but there are two gotchas:
567    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569    # In both cases, we have to default to `cp -pR'.
570    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571      as_ln_s='cp -pR'
572  elif ln conf$$.file conf$$ 2>/dev/null; then
573    as_ln_s=ln
574  else
575    as_ln_s='cp -pR'
576  fi
577else
578  as_ln_s='cp -pR'
579fi
580rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581rmdir conf$$.dir 2>/dev/null
582
583if mkdir -p . 2>/dev/null; then
584  as_mkdir_p='mkdir -p "$as_dir"'
585else
586  test -d ./-p && rmdir ./-p
587  as_mkdir_p=false
588fi
589
590as_test_x='test -x'
591as_executable_p=as_fn_executable_p
592
593# Sed expression to map a string onto a valid CPP name.
594as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596# Sed expression to map a string onto a valid variable name.
597as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602test -n "$DJDIR" || exec 7<&0 </dev/null
603exec 6>&1
604
605# Name of the host.
606# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607# so uname gets run too.
608ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610#
611# Initializations.
612#
613ac_default_prefix=/usr/local
614ac_clean_files=
615ac_config_libobj_dir=.
616LIBOBJS=
617cross_compiling=no
618subdirs=
619MFLAGS=
620MAKEFLAGS=
621
622# Identity of this package.
623PACKAGE_NAME='xf86-video-trident'
624PACKAGE_TARNAME='xf86-video-trident'
625PACKAGE_VERSION='1.4.0'
626PACKAGE_STRING='xf86-video-trident 1.4.0'
627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-trident/-/issues'
628PACKAGE_URL=''
629
630ac_unique_file="Makefile.am"
631# Factoring default headers for most tests.
632ac_includes_default="\
633#include <stddef.h>
634#ifdef HAVE_STDIO_H
635# include <stdio.h>
636#endif
637#ifdef HAVE_STDLIB_H
638# include <stdlib.h>
639#endif
640#ifdef HAVE_STRING_H
641# include <string.h>
642#endif
643#ifdef HAVE_INTTYPES_H
644# include <inttypes.h>
645#endif
646#ifdef HAVE_STDINT_H
647# include <stdint.h>
648#endif
649#ifdef HAVE_STRINGS_H
650# include <strings.h>
651#endif
652#ifdef HAVE_SYS_TYPES_H
653# include <sys/types.h>
654#endif
655#ifdef HAVE_SYS_STAT_H
656# include <sys/stat.h>
657#endif
658#ifdef HAVE_UNISTD_H
659# include <unistd.h>
660#endif"
661
662ac_header_c_list=
663ac_subst_vars='am__EXEEXT_FALSE
664am__EXEEXT_TRUE
665LTLIBOBJS
666LIBOBJS
667DRIVER_NAME
668moduledir
669XSERVER_LIBPCIACCESS_FALSE
670XSERVER_LIBPCIACCESS_TRUE
671PCIACCESS_LIBS
672PCIACCESS_CFLAGS
673XAA_FALSE
674XAA_TRUE
675HAVE_XEXTPROTO_71_FALSE
676HAVE_XEXTPROTO_71_TRUE
677XEXT_LIBS
678XEXT_CFLAGS
679XORG_LIBS
680XORG_CFLAGS
681LT_SYS_LIBRARY_PATH
682OTOOL64
683OTOOL
684LIPO
685NMEDIT
686DSYMUTIL
687MANIFEST_TOOL
688RANLIB
689ac_ct_AR
690AR
691DLLTOOL
692OBJDUMP
693FILECMD
694LN_S
695NM
696ac_ct_DUMPBIN
697DUMPBIN
698LD
699FGREP
700EGREP
701GREP
702LIBTOOL
703MAN_SUBSTS
704XORG_MAN_PAGE
705ADMIN_MAN_DIR
706DRIVER_MAN_DIR
707MISC_MAN_DIR
708FILE_MAN_DIR
709LIB_MAN_DIR
710APP_MAN_DIR
711ADMIN_MAN_SUFFIX
712DRIVER_MAN_SUFFIX
713MISC_MAN_SUFFIX
714FILE_MAN_SUFFIX
715LIB_MAN_SUFFIX
716APP_MAN_SUFFIX
717SED
718host_os
719host_vendor
720host_cpu
721host
722build_os
723build_vendor
724build_cpu
725build
726INSTALL_CMD
727PKG_CONFIG_LIBDIR
728PKG_CONFIG_PATH
729PKG_CONFIG
730CHANGELOG_CMD
731STRICT_CFLAGS
732CWARNFLAGS
733BASE_CFLAGS
734am__fastdepCC_FALSE
735am__fastdepCC_TRUE
736CCDEPMODE
737am__nodep
738AMDEPBACKSLASH
739AMDEP_FALSE
740AMDEP_TRUE
741am__include
742DEPDIR
743OBJEXT
744EXEEXT
745ac_ct_CC
746CPPFLAGS
747LDFLAGS
748CFLAGS
749CC
750AM_BACKSLASH
751AM_DEFAULT_VERBOSITY
752AM_DEFAULT_V
753AM_V
754CSCOPE
755ETAGS
756CTAGS
757am__untar
758am__tar
759AMTAR
760am__leading_dot
761SET_MAKE
762AWK
763mkdir_p
764MKDIR_P
765INSTALL_STRIP_PROGRAM
766STRIP
767install_sh
768MAKEINFO
769AUTOHEADER
770AUTOMAKE
771AUTOCONF
772ACLOCAL
773VERSION
774PACKAGE
775CYGPATH_W
776am__isrc
777INSTALL_DATA
778INSTALL_SCRIPT
779INSTALL_PROGRAM
780target_alias
781host_alias
782build_alias
783LIBS
784ECHO_T
785ECHO_N
786ECHO_C
787DEFS
788mandir
789localedir
790libdir
791psdir
792pdfdir
793dvidir
794htmldir
795infodir
796docdir
797oldincludedir
798includedir
799runstatedir
800localstatedir
801sharedstatedir
802sysconfdir
803datadir
804datarootdir
805libexecdir
806sbindir
807bindir
808program_transform_name
809prefix
810exec_prefix
811PACKAGE_URL
812PACKAGE_BUGREPORT
813PACKAGE_STRING
814PACKAGE_VERSION
815PACKAGE_TARNAME
816PACKAGE_NAME
817PATH_SEPARATOR
818SHELL
819am__quote'
820ac_subst_files=''
821ac_user_opts='
822enable_option_checking
823enable_silent_rules
824enable_dependency_tracking
825enable_selective_werror
826enable_strict_compilation
827enable_static
828enable_shared
829with_pic
830enable_fast_install
831with_aix_soname
832with_gnu_ld
833with_sysroot
834enable_libtool_lock
835with_xorg_module_dir
836enable_xaa
837'
838      ac_precious_vars='build_alias
839host_alias
840target_alias
841CC
842CFLAGS
843LDFLAGS
844LIBS
845CPPFLAGS
846PKG_CONFIG
847PKG_CONFIG_PATH
848PKG_CONFIG_LIBDIR
849LT_SYS_LIBRARY_PATH
850XORG_CFLAGS
851XORG_LIBS
852XEXT_CFLAGS
853XEXT_LIBS
854PCIACCESS_CFLAGS
855PCIACCESS_LIBS'
856
857
858# Initialize some variables set by options.
859ac_init_help=
860ac_init_version=false
861ac_unrecognized_opts=
862ac_unrecognized_sep=
863# The variables have the same names as the options, with
864# dashes changed to underlines.
865cache_file=/dev/null
866exec_prefix=NONE
867no_create=
868no_recursion=
869prefix=NONE
870program_prefix=NONE
871program_suffix=NONE
872program_transform_name=s,x,x,
873silent=
874site=
875srcdir=
876verbose=
877x_includes=NONE
878x_libraries=NONE
879
880# Installation directory options.
881# These are left unexpanded so users can "make install exec_prefix=/foo"
882# and all the variables that are supposed to be based on exec_prefix
883# by default will actually change.
884# Use braces instead of parens because sh, perl, etc. also accept them.
885# (The list follows the same order as the GNU Coding Standards.)
886bindir='${exec_prefix}/bin'
887sbindir='${exec_prefix}/sbin'
888libexecdir='${exec_prefix}/libexec'
889datarootdir='${prefix}/share'
890datadir='${datarootdir}'
891sysconfdir='${prefix}/etc'
892sharedstatedir='${prefix}/com'
893localstatedir='${prefix}/var'
894runstatedir='${localstatedir}/run'
895includedir='${prefix}/include'
896oldincludedir='/usr/include'
897docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
898infodir='${datarootdir}/info'
899htmldir='${docdir}'
900dvidir='${docdir}'
901pdfdir='${docdir}'
902psdir='${docdir}'
903libdir='${exec_prefix}/lib'
904localedir='${datarootdir}/locale'
905mandir='${datarootdir}/man'
906
907ac_prev=
908ac_dashdash=
909for ac_option
910do
911  # If the previous option needs an argument, assign it.
912  if test -n "$ac_prev"; then
913    eval $ac_prev=\$ac_option
914    ac_prev=
915    continue
916  fi
917
918  case $ac_option in
919  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920  *=)   ac_optarg= ;;
921  *)    ac_optarg=yes ;;
922  esac
923
924  case $ac_dashdash$ac_option in
925  --)
926    ac_dashdash=yes ;;
927
928  -bindir | --bindir | --bindi | --bind | --bin | --bi)
929    ac_prev=bindir ;;
930  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
931    bindir=$ac_optarg ;;
932
933  -build | --build | --buil | --bui | --bu)
934    ac_prev=build_alias ;;
935  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
936    build_alias=$ac_optarg ;;
937
938  -cache-file | --cache-file | --cache-fil | --cache-fi \
939  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
940    ac_prev=cache_file ;;
941  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
942  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
943    cache_file=$ac_optarg ;;
944
945  --config-cache | -C)
946    cache_file=config.cache ;;
947
948  -datadir | --datadir | --datadi | --datad)
949    ac_prev=datadir ;;
950  -datadir=* | --datadir=* | --datadi=* | --datad=*)
951    datadir=$ac_optarg ;;
952
953  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
954  | --dataroo | --dataro | --datar)
955    ac_prev=datarootdir ;;
956  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
957  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
958    datarootdir=$ac_optarg ;;
959
960  -disable-* | --disable-*)
961    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
962    # Reject names that are not valid shell variable names.
963    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964      as_fn_error $? "invalid feature name: \`$ac_useropt'"
965    ac_useropt_orig=$ac_useropt
966    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
967    case $ac_user_opts in
968      *"
969"enable_$ac_useropt"
970"*) ;;
971      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
972	 ac_unrecognized_sep=', ';;
973    esac
974    eval enable_$ac_useropt=no ;;
975
976  -docdir | --docdir | --docdi | --doc | --do)
977    ac_prev=docdir ;;
978  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
979    docdir=$ac_optarg ;;
980
981  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
982    ac_prev=dvidir ;;
983  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
984    dvidir=$ac_optarg ;;
985
986  -enable-* | --enable-*)
987    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
988    # Reject names that are not valid shell variable names.
989    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990      as_fn_error $? "invalid feature name: \`$ac_useropt'"
991    ac_useropt_orig=$ac_useropt
992    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
993    case $ac_user_opts in
994      *"
995"enable_$ac_useropt"
996"*) ;;
997      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
998	 ac_unrecognized_sep=', ';;
999    esac
1000    eval enable_$ac_useropt=\$ac_optarg ;;
1001
1002  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1003  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1004  | --exec | --exe | --ex)
1005    ac_prev=exec_prefix ;;
1006  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1007  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1008  | --exec=* | --exe=* | --ex=*)
1009    exec_prefix=$ac_optarg ;;
1010
1011  -gas | --gas | --ga | --g)
1012    # Obsolete; use --with-gas.
1013    with_gas=yes ;;
1014
1015  -help | --help | --hel | --he | -h)
1016    ac_init_help=long ;;
1017  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1018    ac_init_help=recursive ;;
1019  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1020    ac_init_help=short ;;
1021
1022  -host | --host | --hos | --ho)
1023    ac_prev=host_alias ;;
1024  -host=* | --host=* | --hos=* | --ho=*)
1025    host_alias=$ac_optarg ;;
1026
1027  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1028    ac_prev=htmldir ;;
1029  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1030  | --ht=*)
1031    htmldir=$ac_optarg ;;
1032
1033  -includedir | --includedir | --includedi | --included | --include \
1034  | --includ | --inclu | --incl | --inc)
1035    ac_prev=includedir ;;
1036  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1037  | --includ=* | --inclu=* | --incl=* | --inc=*)
1038    includedir=$ac_optarg ;;
1039
1040  -infodir | --infodir | --infodi | --infod | --info | --inf)
1041    ac_prev=infodir ;;
1042  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1043    infodir=$ac_optarg ;;
1044
1045  -libdir | --libdir | --libdi | --libd)
1046    ac_prev=libdir ;;
1047  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1048    libdir=$ac_optarg ;;
1049
1050  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1051  | --libexe | --libex | --libe)
1052    ac_prev=libexecdir ;;
1053  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1054  | --libexe=* | --libex=* | --libe=*)
1055    libexecdir=$ac_optarg ;;
1056
1057  -localedir | --localedir | --localedi | --localed | --locale)
1058    ac_prev=localedir ;;
1059  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1060    localedir=$ac_optarg ;;
1061
1062  -localstatedir | --localstatedir | --localstatedi | --localstated \
1063  | --localstate | --localstat | --localsta | --localst | --locals)
1064    ac_prev=localstatedir ;;
1065  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1066  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1067    localstatedir=$ac_optarg ;;
1068
1069  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1070    ac_prev=mandir ;;
1071  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1072    mandir=$ac_optarg ;;
1073
1074  -nfp | --nfp | --nf)
1075    # Obsolete; use --without-fp.
1076    with_fp=no ;;
1077
1078  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1079  | --no-cr | --no-c | -n)
1080    no_create=yes ;;
1081
1082  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1083  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1084    no_recursion=yes ;;
1085
1086  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1087  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1088  | --oldin | --oldi | --old | --ol | --o)
1089    ac_prev=oldincludedir ;;
1090  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1091  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1092  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1093    oldincludedir=$ac_optarg ;;
1094
1095  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1096    ac_prev=prefix ;;
1097  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1098    prefix=$ac_optarg ;;
1099
1100  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1101  | --program-pre | --program-pr | --program-p)
1102    ac_prev=program_prefix ;;
1103  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1104  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1105    program_prefix=$ac_optarg ;;
1106
1107  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1108  | --program-suf | --program-su | --program-s)
1109    ac_prev=program_suffix ;;
1110  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1111  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1112    program_suffix=$ac_optarg ;;
1113
1114  -program-transform-name | --program-transform-name \
1115  | --program-transform-nam | --program-transform-na \
1116  | --program-transform-n | --program-transform- \
1117  | --program-transform | --program-transfor \
1118  | --program-transfo | --program-transf \
1119  | --program-trans | --program-tran \
1120  | --progr-tra | --program-tr | --program-t)
1121    ac_prev=program_transform_name ;;
1122  -program-transform-name=* | --program-transform-name=* \
1123  | --program-transform-nam=* | --program-transform-na=* \
1124  | --program-transform-n=* | --program-transform-=* \
1125  | --program-transform=* | --program-transfor=* \
1126  | --program-transfo=* | --program-transf=* \
1127  | --program-trans=* | --program-tran=* \
1128  | --progr-tra=* | --program-tr=* | --program-t=*)
1129    program_transform_name=$ac_optarg ;;
1130
1131  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1132    ac_prev=pdfdir ;;
1133  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1134    pdfdir=$ac_optarg ;;
1135
1136  -psdir | --psdir | --psdi | --psd | --ps)
1137    ac_prev=psdir ;;
1138  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1139    psdir=$ac_optarg ;;
1140
1141  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1142  | -silent | --silent | --silen | --sile | --sil)
1143    silent=yes ;;
1144
1145  -runstatedir | --runstatedir | --runstatedi | --runstated \
1146  | --runstate | --runstat | --runsta | --runst | --runs \
1147  | --run | --ru | --r)
1148    ac_prev=runstatedir ;;
1149  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1150  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1151  | --run=* | --ru=* | --r=*)
1152    runstatedir=$ac_optarg ;;
1153
1154  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155    ac_prev=sbindir ;;
1156  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157  | --sbi=* | --sb=*)
1158    sbindir=$ac_optarg ;;
1159
1160  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162  | --sharedst | --shareds | --shared | --share | --shar \
1163  | --sha | --sh)
1164    ac_prev=sharedstatedir ;;
1165  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168  | --sha=* | --sh=*)
1169    sharedstatedir=$ac_optarg ;;
1170
1171  -site | --site | --sit)
1172    ac_prev=site ;;
1173  -site=* | --site=* | --sit=*)
1174    site=$ac_optarg ;;
1175
1176  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177    ac_prev=srcdir ;;
1178  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179    srcdir=$ac_optarg ;;
1180
1181  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182  | --syscon | --sysco | --sysc | --sys | --sy)
1183    ac_prev=sysconfdir ;;
1184  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186    sysconfdir=$ac_optarg ;;
1187
1188  -target | --target | --targe | --targ | --tar | --ta | --t)
1189    ac_prev=target_alias ;;
1190  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191    target_alias=$ac_optarg ;;
1192
1193  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194    verbose=yes ;;
1195
1196  -version | --version | --versio | --versi | --vers | -V)
1197    ac_init_version=: ;;
1198
1199  -with-* | --with-*)
1200    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201    # Reject names that are not valid shell variable names.
1202    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203      as_fn_error $? "invalid package name: \`$ac_useropt'"
1204    ac_useropt_orig=$ac_useropt
1205    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1206    case $ac_user_opts in
1207      *"
1208"with_$ac_useropt"
1209"*) ;;
1210      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211	 ac_unrecognized_sep=', ';;
1212    esac
1213    eval with_$ac_useropt=\$ac_optarg ;;
1214
1215  -without-* | --without-*)
1216    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217    # Reject names that are not valid shell variable names.
1218    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219      as_fn_error $? "invalid package name: \`$ac_useropt'"
1220    ac_useropt_orig=$ac_useropt
1221    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1222    case $ac_user_opts in
1223      *"
1224"with_$ac_useropt"
1225"*) ;;
1226      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227	 ac_unrecognized_sep=', ';;
1228    esac
1229    eval with_$ac_useropt=no ;;
1230
1231  --x)
1232    # Obsolete; use --with-x.
1233    with_x=yes ;;
1234
1235  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236  | --x-incl | --x-inc | --x-in | --x-i)
1237    ac_prev=x_includes ;;
1238  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240    x_includes=$ac_optarg ;;
1241
1242  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244    ac_prev=x_libraries ;;
1245  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247    x_libraries=$ac_optarg ;;
1248
1249  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1250Try \`$0 --help' for more information"
1251    ;;
1252
1253  *=*)
1254    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255    # Reject names that are not valid shell variable names.
1256    case $ac_envvar in #(
1257      '' | [0-9]* | *[!_$as_cr_alnum]* )
1258      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1259    esac
1260    eval $ac_envvar=\$ac_optarg
1261    export $ac_envvar ;;
1262
1263  *)
1264    # FIXME: should be removed in autoconf 3.0.
1265    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1266    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1268    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1269    ;;
1270
1271  esac
1272done
1273
1274if test -n "$ac_prev"; then
1275  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276  as_fn_error $? "missing argument to $ac_option"
1277fi
1278
1279if test -n "$ac_unrecognized_opts"; then
1280  case $enable_option_checking in
1281    no) ;;
1282    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1283    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1284  esac
1285fi
1286
1287# Check all directory arguments for consistency.
1288for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289		datadir sysconfdir sharedstatedir localstatedir includedir \
1290		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291		libdir localedir mandir runstatedir
1292do
1293  eval ac_val=\$$ac_var
1294  # Remove trailing slashes.
1295  case $ac_val in
1296    */ )
1297      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1298      eval $ac_var=\$ac_val;;
1299  esac
1300  # Be sure to have absolute directory names.
1301  case $ac_val in
1302    [\\/$]* | ?:[\\/]* )  continue;;
1303    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304  esac
1305  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1306done
1307
1308# There might be people who depend on the old broken behavior: `$host'
1309# used to hold the argument of --host etc.
1310# FIXME: To remove some day.
1311build=$build_alias
1312host=$host_alias
1313target=$target_alias
1314
1315# FIXME: To remove some day.
1316if test "x$host_alias" != x; then
1317  if test "x$build_alias" = x; then
1318    cross_compiling=maybe
1319  elif test "x$build_alias" != "x$host_alias"; then
1320    cross_compiling=yes
1321  fi
1322fi
1323
1324ac_tool_prefix=
1325test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326
1327test "$silent" = yes && exec 6>/dev/null
1328
1329
1330ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331ac_ls_di=`ls -di .` &&
1332ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333  as_fn_error $? "working directory cannot be determined"
1334test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1335  as_fn_error $? "pwd does not report name of working directory"
1336
1337
1338# Find the source files, if location was not specified.
1339if test -z "$srcdir"; then
1340  ac_srcdir_defaulted=yes
1341  # Try the directory containing this script, then the parent directory.
1342  ac_confdir=`$as_dirname -- "$as_myself" ||
1343$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344	 X"$as_myself" : 'X\(//\)[^/]' \| \
1345	 X"$as_myself" : 'X\(//\)$' \| \
1346	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1347printf "%s\n" X"$as_myself" |
1348    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349	    s//\1/
1350	    q
1351	  }
1352	  /^X\(\/\/\)[^/].*/{
1353	    s//\1/
1354	    q
1355	  }
1356	  /^X\(\/\/\)$/{
1357	    s//\1/
1358	    q
1359	  }
1360	  /^X\(\/\).*/{
1361	    s//\1/
1362	    q
1363	  }
1364	  s/.*/./; q'`
1365  srcdir=$ac_confdir
1366  if test ! -r "$srcdir/$ac_unique_file"; then
1367    srcdir=..
1368  fi
1369else
1370  ac_srcdir_defaulted=no
1371fi
1372if test ! -r "$srcdir/$ac_unique_file"; then
1373  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1375fi
1376ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377ac_abs_confdir=`(
1378	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1379	pwd)`
1380# When building in place, set srcdir=.
1381if test "$ac_abs_confdir" = "$ac_pwd"; then
1382  srcdir=.
1383fi
1384# Remove unnecessary trailing slashes from srcdir.
1385# Double slashes in file names in object file debugging info
1386# mess up M-x gdb in Emacs.
1387case $srcdir in
1388*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389esac
1390for ac_var in $ac_precious_vars; do
1391  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392  eval ac_env_${ac_var}_value=\$${ac_var}
1393  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395done
1396
1397#
1398# Report the --help message.
1399#
1400if test "$ac_init_help" = "long"; then
1401  # Omit some internal or obsolete options to make the list less imposing.
1402  # This message is too long to be a string in the A/UX 3.1 sh.
1403  cat <<_ACEOF
1404\`configure' configures xf86-video-trident 1.4.0 to adapt to many kinds of systems.
1405
1406Usage: $0 [OPTION]... [VAR=VALUE]...
1407
1408To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409VAR=VALUE.  See below for descriptions of some of the useful variables.
1410
1411Defaults for the options are specified in brackets.
1412
1413Configuration:
1414  -h, --help              display this help and exit
1415      --help=short        display options specific to this package
1416      --help=recursive    display the short help of all the included packages
1417  -V, --version           display version information and exit
1418  -q, --quiet, --silent   do not print \`checking ...' messages
1419      --cache-file=FILE   cache test results in FILE [disabled]
1420  -C, --config-cache      alias for \`--cache-file=config.cache'
1421  -n, --no-create         do not create output files
1422      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1423
1424Installation directories:
1425  --prefix=PREFIX         install architecture-independent files in PREFIX
1426                          [$ac_default_prefix]
1427  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1428                          [PREFIX]
1429
1430By default, \`make install' will install all the files in
1431\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1432an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433for instance \`--prefix=\$HOME'.
1434
1435For better control, use the options below.
1436
1437Fine tuning of the installation directories:
1438  --bindir=DIR            user executables [EPREFIX/bin]
1439  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1440  --libexecdir=DIR        program executables [EPREFIX/libexec]
1441  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1442  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1443  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1444  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1445  --libdir=DIR            object code libraries [EPREFIX/lib]
1446  --includedir=DIR        C header files [PREFIX/include]
1447  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1448  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1449  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1450  --infodir=DIR           info documentation [DATAROOTDIR/info]
1451  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1452  --mandir=DIR            man documentation [DATAROOTDIR/man]
1453  --docdir=DIR            documentation root
1454                          [DATAROOTDIR/doc/xf86-video-trident]
1455  --htmldir=DIR           html documentation [DOCDIR]
1456  --dvidir=DIR            dvi documentation [DOCDIR]
1457  --pdfdir=DIR            pdf documentation [DOCDIR]
1458  --psdir=DIR             ps documentation [DOCDIR]
1459_ACEOF
1460
1461  cat <<\_ACEOF
1462
1463Program names:
1464  --program-prefix=PREFIX            prepend PREFIX to installed program names
1465  --program-suffix=SUFFIX            append SUFFIX to installed program names
1466  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1467
1468System types:
1469  --build=BUILD     configure for building on BUILD [guessed]
1470  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1471_ACEOF
1472fi
1473
1474if test -n "$ac_init_help"; then
1475  case $ac_init_help in
1476     short | recursive ) echo "Configuration of xf86-video-trident 1.4.0:";;
1477   esac
1478  cat <<\_ACEOF
1479
1480Optional Features:
1481  --disable-option-checking  ignore unrecognized --enable/--with options
1482  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1483  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1484  --enable-silent-rules   less verbose build output (undo: "make V=1")
1485  --disable-silent-rules  verbose build output (undo: "make V=0")
1486  --enable-dependency-tracking
1487                          do not reject slow dependency extractors
1488  --disable-dependency-tracking
1489                          speeds up one-time build
1490  --disable-selective-werror
1491                          Turn off selective compiler errors. (default:
1492                          enabled)
1493  --enable-strict-compilation
1494                          Enable all warnings from compiler and make them
1495                          errors (default: disabled)
1496  --enable-static[=PKGS]  build static libraries [default=no]
1497  --enable-shared[=PKGS]  build shared libraries [default=yes]
1498  --enable-fast-install[=PKGS]
1499                          optimize for fast installation [default=yes]
1500  --disable-libtool-lock  avoid locking (might break parallel builds)
1501  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1502                          [default=auto]
1503
1504Optional Packages:
1505  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1506  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1507  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1508                          both]
1509  --with-aix-soname=aix|svr4|both
1510                          shared library versioning (aka "SONAME") variant to
1511                          provide on AIX, [default=aix].
1512  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1513  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1514                          compiler's sysroot if not specified).
1515  --with-xorg-module-dir=DIR
1516                          Default xorg module directory
1517                          [[default=$libdir/xorg/modules]]
1518
1519Some influential environment variables:
1520  CC          C compiler command
1521  CFLAGS      C compiler flags
1522  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1523              nonstandard directory <lib dir>
1524  LIBS        libraries to pass to the linker, e.g. -l<library>
1525  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1526              you have headers in a nonstandard directory <include dir>
1527  PKG_CONFIG  path to pkg-config utility
1528  PKG_CONFIG_PATH
1529              directories to add to pkg-config's search path
1530  PKG_CONFIG_LIBDIR
1531              path overriding pkg-config's built-in search path
1532  LT_SYS_LIBRARY_PATH
1533              User-defined run-time library search path.
1534  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1535  XORG_LIBS   linker flags for XORG, overriding pkg-config
1536  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1537  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1538  PCIACCESS_CFLAGS
1539              C compiler flags for PCIACCESS, overriding pkg-config
1540  PCIACCESS_LIBS
1541              linker flags for PCIACCESS, overriding pkg-config
1542
1543Use these variables to override the choices made by `configure' or to help
1544it to find libraries and programs with nonstandard names/locations.
1545
1546Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-trident/-/issues>.
1547_ACEOF
1548ac_status=$?
1549fi
1550
1551if test "$ac_init_help" = "recursive"; then
1552  # If there are subdirs, report their specific --help.
1553  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1554    test -d "$ac_dir" ||
1555      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1556      continue
1557    ac_builddir=.
1558
1559case "$ac_dir" in
1560.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561*)
1562  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1563  # A ".." for each directory in $ac_dir_suffix.
1564  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1565  case $ac_top_builddir_sub in
1566  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1568  esac ;;
1569esac
1570ac_abs_top_builddir=$ac_pwd
1571ac_abs_builddir=$ac_pwd$ac_dir_suffix
1572# for backward compatibility:
1573ac_top_builddir=$ac_top_build_prefix
1574
1575case $srcdir in
1576  .)  # We are building in place.
1577    ac_srcdir=.
1578    ac_top_srcdir=$ac_top_builddir_sub
1579    ac_abs_top_srcdir=$ac_pwd ;;
1580  [\\/]* | ?:[\\/]* )  # Absolute name.
1581    ac_srcdir=$srcdir$ac_dir_suffix;
1582    ac_top_srcdir=$srcdir
1583    ac_abs_top_srcdir=$srcdir ;;
1584  *) # Relative name.
1585    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1586    ac_top_srcdir=$ac_top_build_prefix$srcdir
1587    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1588esac
1589ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1590
1591    cd "$ac_dir" || { ac_status=$?; continue; }
1592    # Check for configure.gnu first; this name is used for a wrapper for
1593    # Metaconfig's "Configure" on case-insensitive file systems.
1594    if test -f "$ac_srcdir/configure.gnu"; then
1595      echo &&
1596      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1597    elif test -f "$ac_srcdir/configure"; then
1598      echo &&
1599      $SHELL "$ac_srcdir/configure" --help=recursive
1600    else
1601      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1602    fi || ac_status=$?
1603    cd "$ac_pwd" || { ac_status=$?; break; }
1604  done
1605fi
1606
1607test -n "$ac_init_help" && exit $ac_status
1608if $ac_init_version; then
1609  cat <<\_ACEOF
1610xf86-video-trident configure 1.4.0
1611generated by GNU Autoconf 2.71
1612
1613Copyright (C) 2021 Free Software Foundation, Inc.
1614This configure script is free software; the Free Software Foundation
1615gives unlimited permission to copy, distribute and modify it.
1616_ACEOF
1617  exit
1618fi
1619
1620## ------------------------ ##
1621## Autoconf initialization. ##
1622## ------------------------ ##
1623
1624# ac_fn_c_try_compile LINENO
1625# --------------------------
1626# Try to compile conftest.$ac_ext, and return whether this succeeded.
1627ac_fn_c_try_compile ()
1628{
1629  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630  rm -f conftest.$ac_objext conftest.beam
1631  if { { ac_try="$ac_compile"
1632case "(($ac_try" in
1633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634  *) ac_try_echo=$ac_try;;
1635esac
1636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637printf "%s\n" "$ac_try_echo"; } >&5
1638  (eval "$ac_compile") 2>conftest.err
1639  ac_status=$?
1640  if test -s conftest.err; then
1641    grep -v '^ *+' conftest.err >conftest.er1
1642    cat conftest.er1 >&5
1643    mv -f conftest.er1 conftest.err
1644  fi
1645  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646  test $ac_status = 0; } && {
1647	 test -z "$ac_c_werror_flag" ||
1648	 test ! -s conftest.err
1649       } && test -s conftest.$ac_objext
1650then :
1651  ac_retval=0
1652else $as_nop
1653  printf "%s\n" "$as_me: failed program was:" >&5
1654sed 's/^/| /' conftest.$ac_ext >&5
1655
1656	ac_retval=1
1657fi
1658  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659  as_fn_set_status $ac_retval
1660
1661} # ac_fn_c_try_compile
1662
1663# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1664# ------------------------------------------------------------------
1665# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1666# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1667ac_fn_check_decl ()
1668{
1669  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670  as_decl_name=`echo $2|sed 's/ *(.*//'`
1671  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1672printf %s "checking whether $as_decl_name is declared... " >&6; }
1673if eval test \${$3+y}
1674then :
1675  printf %s "(cached) " >&6
1676else $as_nop
1677  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1678  eval ac_save_FLAGS=\$$6
1679  as_fn_append $6 " $5"
1680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681/* end confdefs.h.  */
1682$4
1683int
1684main (void)
1685{
1686#ifndef $as_decl_name
1687#ifdef __cplusplus
1688  (void) $as_decl_use;
1689#else
1690  (void) $as_decl_name;
1691#endif
1692#endif
1693
1694  ;
1695  return 0;
1696}
1697_ACEOF
1698if ac_fn_c_try_compile "$LINENO"
1699then :
1700  eval "$3=yes"
1701else $as_nop
1702  eval "$3=no"
1703fi
1704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1705  eval $6=\$ac_save_FLAGS
1706
1707fi
1708eval ac_res=\$$3
1709	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710printf "%s\n" "$ac_res" >&6; }
1711  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712
1713} # ac_fn_check_decl
1714
1715# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1716# -------------------------------------------------------
1717# Tests whether HEADER exists and can be compiled using the include files in
1718# INCLUDES, setting the cache variable VAR accordingly.
1719ac_fn_c_check_header_compile ()
1720{
1721  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723printf %s "checking for $2... " >&6; }
1724if eval test \${$3+y}
1725then :
1726  printf %s "(cached) " >&6
1727else $as_nop
1728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729/* end confdefs.h.  */
1730$4
1731#include <$2>
1732_ACEOF
1733if ac_fn_c_try_compile "$LINENO"
1734then :
1735  eval "$3=yes"
1736else $as_nop
1737  eval "$3=no"
1738fi
1739rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1740fi
1741eval ac_res=\$$3
1742	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743printf "%s\n" "$ac_res" >&6; }
1744  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745
1746} # ac_fn_c_check_header_compile
1747
1748# ac_fn_c_try_link LINENO
1749# -----------------------
1750# Try to link conftest.$ac_ext, and return whether this succeeded.
1751ac_fn_c_try_link ()
1752{
1753  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1755  if { { ac_try="$ac_link"
1756case "(($ac_try" in
1757  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758  *) ac_try_echo=$ac_try;;
1759esac
1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761printf "%s\n" "$ac_try_echo"; } >&5
1762  (eval "$ac_link") 2>conftest.err
1763  ac_status=$?
1764  if test -s conftest.err; then
1765    grep -v '^ *+' conftest.err >conftest.er1
1766    cat conftest.er1 >&5
1767    mv -f conftest.er1 conftest.err
1768  fi
1769  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770  test $ac_status = 0; } && {
1771	 test -z "$ac_c_werror_flag" ||
1772	 test ! -s conftest.err
1773       } && test -s conftest$ac_exeext && {
1774	 test "$cross_compiling" = yes ||
1775	 test -x conftest$ac_exeext
1776       }
1777then :
1778  ac_retval=0
1779else $as_nop
1780  printf "%s\n" "$as_me: failed program was:" >&5
1781sed 's/^/| /' conftest.$ac_ext >&5
1782
1783	ac_retval=1
1784fi
1785  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1786  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1787  # interfere with the next link command; also delete a directory that is
1788  # left behind by Apple's compiler.  We do this before executing the actions.
1789  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1790  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791  as_fn_set_status $ac_retval
1792
1793} # ac_fn_c_try_link
1794
1795# ac_fn_c_check_func LINENO FUNC VAR
1796# ----------------------------------
1797# Tests whether FUNC exists, setting the cache variable VAR accordingly
1798ac_fn_c_check_func ()
1799{
1800  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802printf %s "checking for $2... " >&6; }
1803if eval test \${$3+y}
1804then :
1805  printf %s "(cached) " >&6
1806else $as_nop
1807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1808/* end confdefs.h.  */
1809/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1810   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1811#define $2 innocuous_$2
1812
1813/* System header to define __stub macros and hopefully few prototypes,
1814   which can conflict with char $2 (); below.  */
1815
1816#include <limits.h>
1817#undef $2
1818
1819/* Override any GCC internal prototype to avoid an error.
1820   Use char because int might match the return type of a GCC
1821   builtin and then its argument prototype would still apply.  */
1822#ifdef __cplusplus
1823extern "C"
1824#endif
1825char $2 ();
1826/* The GNU C library defines this for functions which it implements
1827    to always fail with ENOSYS.  Some functions are actually named
1828    something starting with __ and the normal name is an alias.  */
1829#if defined __stub_$2 || defined __stub___$2
1830choke me
1831#endif
1832
1833int
1834main (void)
1835{
1836return $2 ();
1837  ;
1838  return 0;
1839}
1840_ACEOF
1841if ac_fn_c_try_link "$LINENO"
1842then :
1843  eval "$3=yes"
1844else $as_nop
1845  eval "$3=no"
1846fi
1847rm -f core conftest.err conftest.$ac_objext conftest.beam \
1848    conftest$ac_exeext conftest.$ac_ext
1849fi
1850eval ac_res=\$$3
1851	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1852printf "%s\n" "$ac_res" >&6; }
1853  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854
1855} # ac_fn_c_check_func
1856ac_configure_args_raw=
1857for ac_arg
1858do
1859  case $ac_arg in
1860  *\'*)
1861    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1862  esac
1863  as_fn_append ac_configure_args_raw " '$ac_arg'"
1864done
1865
1866case $ac_configure_args_raw in
1867  *$as_nl*)
1868    ac_safe_unquote= ;;
1869  *)
1870    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1871    ac_unsafe_a="$ac_unsafe_z#~"
1872    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1873    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1874esac
1875
1876cat >config.log <<_ACEOF
1877This file contains any messages produced by compilers while
1878running configure, to aid debugging if configure makes a mistake.
1879
1880It was created by xf86-video-trident $as_me 1.4.0, which was
1881generated by GNU Autoconf 2.71.  Invocation command line was
1882
1883  $ $0$ac_configure_args_raw
1884
1885_ACEOF
1886exec 5>>config.log
1887{
1888cat <<_ASUNAME
1889## --------- ##
1890## Platform. ##
1891## --------- ##
1892
1893hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1894uname -m = `(uname -m) 2>/dev/null || echo unknown`
1895uname -r = `(uname -r) 2>/dev/null || echo unknown`
1896uname -s = `(uname -s) 2>/dev/null || echo unknown`
1897uname -v = `(uname -v) 2>/dev/null || echo unknown`
1898
1899/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1900/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1901
1902/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1903/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1904/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1905/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1906/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1907/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1908/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1909
1910_ASUNAME
1911
1912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913for as_dir in $PATH
1914do
1915  IFS=$as_save_IFS
1916  case $as_dir in #(((
1917    '') as_dir=./ ;;
1918    */) ;;
1919    *) as_dir=$as_dir/ ;;
1920  esac
1921    printf "%s\n" "PATH: $as_dir"
1922  done
1923IFS=$as_save_IFS
1924
1925} >&5
1926
1927cat >&5 <<_ACEOF
1928
1929
1930## ----------- ##
1931## Core tests. ##
1932## ----------- ##
1933
1934_ACEOF
1935
1936
1937# Keep a trace of the command line.
1938# Strip out --no-create and --no-recursion so they do not pile up.
1939# Strip out --silent because we don't want to record it for future runs.
1940# Also quote any args containing shell meta-characters.
1941# Make two passes to allow for proper duplicate-argument suppression.
1942ac_configure_args=
1943ac_configure_args0=
1944ac_configure_args1=
1945ac_must_keep_next=false
1946for ac_pass in 1 2
1947do
1948  for ac_arg
1949  do
1950    case $ac_arg in
1951    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1952    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1953    | -silent | --silent | --silen | --sile | --sil)
1954      continue ;;
1955    *\'*)
1956      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1957    esac
1958    case $ac_pass in
1959    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1960    2)
1961      as_fn_append ac_configure_args1 " '$ac_arg'"
1962      if test $ac_must_keep_next = true; then
1963	ac_must_keep_next=false # Got value, back to normal.
1964      else
1965	case $ac_arg in
1966	  *=* | --config-cache | -C | -disable-* | --disable-* \
1967	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1968	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1969	  | -with-* | --with-* | -without-* | --without-* | --x)
1970	    case "$ac_configure_args0 " in
1971	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1972	    esac
1973	    ;;
1974	  -* ) ac_must_keep_next=true ;;
1975	esac
1976      fi
1977      as_fn_append ac_configure_args " '$ac_arg'"
1978      ;;
1979    esac
1980  done
1981done
1982{ ac_configure_args0=; unset ac_configure_args0;}
1983{ ac_configure_args1=; unset ac_configure_args1;}
1984
1985# When interrupted or exit'd, cleanup temporary files, and complete
1986# config.log.  We remove comments because anyway the quotes in there
1987# would cause problems or look ugly.
1988# WARNING: Use '\'' to represent an apostrophe within the trap.
1989# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1990trap 'exit_status=$?
1991  # Sanitize IFS.
1992  IFS=" ""	$as_nl"
1993  # Save into config.log some information that might help in debugging.
1994  {
1995    echo
1996
1997    printf "%s\n" "## ---------------- ##
1998## Cache variables. ##
1999## ---------------- ##"
2000    echo
2001    # The following way of writing the cache mishandles newlines in values,
2002(
2003  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2004    eval ac_val=\$$ac_var
2005    case $ac_val in #(
2006    *${as_nl}*)
2007      case $ac_var in #(
2008      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2009printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2010      esac
2011      case $ac_var in #(
2012      _ | IFS | as_nl) ;; #(
2013      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2014      *) { eval $ac_var=; unset $ac_var;} ;;
2015      esac ;;
2016    esac
2017  done
2018  (set) 2>&1 |
2019    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2020    *${as_nl}ac_space=\ *)
2021      sed -n \
2022	"s/'\''/'\''\\\\'\'''\''/g;
2023	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2024      ;; #(
2025    *)
2026      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2027      ;;
2028    esac |
2029    sort
2030)
2031    echo
2032
2033    printf "%s\n" "## ----------------- ##
2034## Output variables. ##
2035## ----------------- ##"
2036    echo
2037    for ac_var in $ac_subst_vars
2038    do
2039      eval ac_val=\$$ac_var
2040      case $ac_val in
2041      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2042      esac
2043      printf "%s\n" "$ac_var='\''$ac_val'\''"
2044    done | sort
2045    echo
2046
2047    if test -n "$ac_subst_files"; then
2048      printf "%s\n" "## ------------------- ##
2049## File substitutions. ##
2050## ------------------- ##"
2051      echo
2052      for ac_var in $ac_subst_files
2053      do
2054	eval ac_val=\$$ac_var
2055	case $ac_val in
2056	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057	esac
2058	printf "%s\n" "$ac_var='\''$ac_val'\''"
2059      done | sort
2060      echo
2061    fi
2062
2063    if test -s confdefs.h; then
2064      printf "%s\n" "## ----------- ##
2065## confdefs.h. ##
2066## ----------- ##"
2067      echo
2068      cat confdefs.h
2069      echo
2070    fi
2071    test "$ac_signal" != 0 &&
2072      printf "%s\n" "$as_me: caught signal $ac_signal"
2073    printf "%s\n" "$as_me: exit $exit_status"
2074  } >&5
2075  rm -f core *.core core.conftest.* &&
2076    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2077    exit $exit_status
2078' 0
2079for ac_signal in 1 2 13 15; do
2080  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2081done
2082ac_signal=0
2083
2084# confdefs.h avoids OS command line length limits that DEFS can exceed.
2085rm -f -r conftest* confdefs.h
2086
2087printf "%s\n" "/* confdefs.h */" > confdefs.h
2088
2089# Predefined preprocessor variables.
2090
2091printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2092
2093printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2094
2095printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2096
2097printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2098
2099printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2100
2101printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2102
2103
2104# Let the site file select an alternate cache file if it wants to.
2105# Prefer an explicitly selected file to automatically selected ones.
2106if test -n "$CONFIG_SITE"; then
2107  ac_site_files="$CONFIG_SITE"
2108elif test "x$prefix" != xNONE; then
2109  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2110else
2111  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2112fi
2113
2114for ac_site_file in $ac_site_files
2115do
2116  case $ac_site_file in #(
2117  */*) :
2118     ;; #(
2119  *) :
2120    ac_site_file=./$ac_site_file ;;
2121esac
2122  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2123    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2124printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2125    sed 's/^/| /' "$ac_site_file" >&5
2126    . "$ac_site_file" \
2127      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2128printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2129as_fn_error $? "failed to load site script $ac_site_file
2130See \`config.log' for more details" "$LINENO" 5; }
2131  fi
2132done
2133
2134if test -r "$cache_file"; then
2135  # Some versions of bash will fail to source /dev/null (special files
2136  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2137  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2138    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2139printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2140    case $cache_file in
2141      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2142      *)                      . "./$cache_file";;
2143    esac
2144  fi
2145else
2146  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2147printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2148  >$cache_file
2149fi
2150
2151# Test code for whether the C compiler supports C89 (global declarations)
2152ac_c_conftest_c89_globals='
2153/* Does the compiler advertise C89 conformance?
2154   Do not test the value of __STDC__, because some compilers set it to 0
2155   while being otherwise adequately conformant. */
2156#if !defined __STDC__
2157# error "Compiler does not advertise C89 conformance"
2158#endif
2159
2160#include <stddef.h>
2161#include <stdarg.h>
2162struct stat;
2163/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2164struct buf { int x; };
2165struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2166static char *e (p, i)
2167     char **p;
2168     int i;
2169{
2170  return p[i];
2171}
2172static char *f (char * (*g) (char **, int), char **p, ...)
2173{
2174  char *s;
2175  va_list v;
2176  va_start (v,p);
2177  s = g (p, va_arg (v,int));
2178  va_end (v);
2179  return s;
2180}
2181
2182/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2183   function prototypes and stuff, but not \xHH hex character constants.
2184   These do not provoke an error unfortunately, instead are silently treated
2185   as an "x".  The following induces an error, until -std is added to get
2186   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2187   array size at least.  It is necessary to write \x00 == 0 to get something
2188   that is true only with -std.  */
2189int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2190
2191/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2192   inside strings and character constants.  */
2193#define FOO(x) '\''x'\''
2194int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2195
2196int test (int i, double x);
2197struct s1 {int (*f) (int a);};
2198struct s2 {int (*f) (double a);};
2199int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2200               int, int);'
2201
2202# Test code for whether the C compiler supports C89 (body of main).
2203ac_c_conftest_c89_main='
2204ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2205'
2206
2207# Test code for whether the C compiler supports C99 (global declarations)
2208ac_c_conftest_c99_globals='
2209// Does the compiler advertise C99 conformance?
2210#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2211# error "Compiler does not advertise C99 conformance"
2212#endif
2213
2214#include <stdbool.h>
2215extern int puts (const char *);
2216extern int printf (const char *, ...);
2217extern int dprintf (int, const char *, ...);
2218extern void *malloc (size_t);
2219
2220// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2221// dprintf is used instead of fprintf to avoid needing to declare
2222// FILE and stderr.
2223#define debug(...) dprintf (2, __VA_ARGS__)
2224#define showlist(...) puts (#__VA_ARGS__)
2225#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2226static void
2227test_varargs_macros (void)
2228{
2229  int x = 1234;
2230  int y = 5678;
2231  debug ("Flag");
2232  debug ("X = %d\n", x);
2233  showlist (The first, second, and third items.);
2234  report (x>y, "x is %d but y is %d", x, y);
2235}
2236
2237// Check long long types.
2238#define BIG64 18446744073709551615ull
2239#define BIG32 4294967295ul
2240#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2241#if !BIG_OK
2242  #error "your preprocessor is broken"
2243#endif
2244#if BIG_OK
2245#else
2246  #error "your preprocessor is broken"
2247#endif
2248static long long int bignum = -9223372036854775807LL;
2249static unsigned long long int ubignum = BIG64;
2250
2251struct incomplete_array
2252{
2253  int datasize;
2254  double data[];
2255};
2256
2257struct named_init {
2258  int number;
2259  const wchar_t *name;
2260  double average;
2261};
2262
2263typedef const char *ccp;
2264
2265static inline int
2266test_restrict (ccp restrict text)
2267{
2268  // See if C++-style comments work.
2269  // Iterate through items via the restricted pointer.
2270  // Also check for declarations in for loops.
2271  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2272    continue;
2273  return 0;
2274}
2275
2276// Check varargs and va_copy.
2277static bool
2278test_varargs (const char *format, ...)
2279{
2280  va_list args;
2281  va_start (args, format);
2282  va_list args_copy;
2283  va_copy (args_copy, args);
2284
2285  const char *str = "";
2286  int number = 0;
2287  float fnumber = 0;
2288
2289  while (*format)
2290    {
2291      switch (*format++)
2292	{
2293	case '\''s'\'': // string
2294	  str = va_arg (args_copy, const char *);
2295	  break;
2296	case '\''d'\'': // int
2297	  number = va_arg (args_copy, int);
2298	  break;
2299	case '\''f'\'': // float
2300	  fnumber = va_arg (args_copy, double);
2301	  break;
2302	default:
2303	  break;
2304	}
2305    }
2306  va_end (args_copy);
2307  va_end (args);
2308
2309  return *str && number && fnumber;
2310}
2311'
2312
2313# Test code for whether the C compiler supports C99 (body of main).
2314ac_c_conftest_c99_main='
2315  // Check bool.
2316  _Bool success = false;
2317  success |= (argc != 0);
2318
2319  // Check restrict.
2320  if (test_restrict ("String literal") == 0)
2321    success = true;
2322  char *restrict newvar = "Another string";
2323
2324  // Check varargs.
2325  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2326  test_varargs_macros ();
2327
2328  // Check flexible array members.
2329  struct incomplete_array *ia =
2330    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2331  ia->datasize = 10;
2332  for (int i = 0; i < ia->datasize; ++i)
2333    ia->data[i] = i * 1.234;
2334
2335  // Check named initializers.
2336  struct named_init ni = {
2337    .number = 34,
2338    .name = L"Test wide string",
2339    .average = 543.34343,
2340  };
2341
2342  ni.number = 58;
2343
2344  int dynamic_array[ni.number];
2345  dynamic_array[0] = argv[0][0];
2346  dynamic_array[ni.number - 1] = 543;
2347
2348  // work around unused variable warnings
2349  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2350	 || dynamic_array[ni.number - 1] != 543);
2351'
2352
2353# Test code for whether the C compiler supports C11 (global declarations)
2354ac_c_conftest_c11_globals='
2355// Does the compiler advertise C11 conformance?
2356#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2357# error "Compiler does not advertise C11 conformance"
2358#endif
2359
2360// Check _Alignas.
2361char _Alignas (double) aligned_as_double;
2362char _Alignas (0) no_special_alignment;
2363extern char aligned_as_int;
2364char _Alignas (0) _Alignas (int) aligned_as_int;
2365
2366// Check _Alignof.
2367enum
2368{
2369  int_alignment = _Alignof (int),
2370  int_array_alignment = _Alignof (int[100]),
2371  char_alignment = _Alignof (char)
2372};
2373_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2374
2375// Check _Noreturn.
2376int _Noreturn does_not_return (void) { for (;;) continue; }
2377
2378// Check _Static_assert.
2379struct test_static_assert
2380{
2381  int x;
2382  _Static_assert (sizeof (int) <= sizeof (long int),
2383                  "_Static_assert does not work in struct");
2384  long int y;
2385};
2386
2387// Check UTF-8 literals.
2388#define u8 syntax error!
2389char const utf8_literal[] = u8"happens to be ASCII" "another string";
2390
2391// Check duplicate typedefs.
2392typedef long *long_ptr;
2393typedef long int *long_ptr;
2394typedef long_ptr long_ptr;
2395
2396// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2397struct anonymous
2398{
2399  union {
2400    struct { int i; int j; };
2401    struct { int k; long int l; } w;
2402  };
2403  int m;
2404} v1;
2405'
2406
2407# Test code for whether the C compiler supports C11 (body of main).
2408ac_c_conftest_c11_main='
2409  _Static_assert ((offsetof (struct anonymous, i)
2410		   == offsetof (struct anonymous, w.k)),
2411		  "Anonymous union alignment botch");
2412  v1.i = 2;
2413  v1.w.k = 5;
2414  ok |= v1.i != 5;
2415'
2416
2417# Test code for whether the C compiler supports C11 (complete).
2418ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2419${ac_c_conftest_c99_globals}
2420${ac_c_conftest_c11_globals}
2421
2422int
2423main (int argc, char **argv)
2424{
2425  int ok = 0;
2426  ${ac_c_conftest_c89_main}
2427  ${ac_c_conftest_c99_main}
2428  ${ac_c_conftest_c11_main}
2429  return ok;
2430}
2431"
2432
2433# Test code for whether the C compiler supports C99 (complete).
2434ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2435${ac_c_conftest_c99_globals}
2436
2437int
2438main (int argc, char **argv)
2439{
2440  int ok = 0;
2441  ${ac_c_conftest_c89_main}
2442  ${ac_c_conftest_c99_main}
2443  return ok;
2444}
2445"
2446
2447# Test code for whether the C compiler supports C89 (complete).
2448ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2449
2450int
2451main (int argc, char **argv)
2452{
2453  int ok = 0;
2454  ${ac_c_conftest_c89_main}
2455  return ok;
2456}
2457"
2458
2459as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2460as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2461as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2462as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2463as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2464as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2465as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2466as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2467as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2468
2469# Auxiliary files required by this configure script.
2470ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2471
2472# Locations in which to look for auxiliary files.
2473ac_aux_dir_candidates="${srcdir}/."
2474
2475# Search for a directory containing all of the required auxiliary files,
2476# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2477# If we don't find one directory that contains all the files we need,
2478# we report the set of missing files from the *first* directory in
2479# $ac_aux_dir_candidates and give up.
2480ac_missing_aux_files=""
2481ac_first_candidate=:
2482printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484as_found=false
2485for as_dir in $ac_aux_dir_candidates
2486do
2487  IFS=$as_save_IFS
2488  case $as_dir in #(((
2489    '') as_dir=./ ;;
2490    */) ;;
2491    *) as_dir=$as_dir/ ;;
2492  esac
2493  as_found=:
2494
2495  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2496  ac_aux_dir_found=yes
2497  ac_install_sh=
2498  for ac_aux in $ac_aux_files
2499  do
2500    # As a special case, if "install-sh" is required, that requirement
2501    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2502    # and $ac_install_sh is set appropriately for whichever one is found.
2503    if test x"$ac_aux" = x"install-sh"
2504    then
2505      if test -f "${as_dir}install-sh"; then
2506        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2507        ac_install_sh="${as_dir}install-sh -c"
2508      elif test -f "${as_dir}install.sh"; then
2509        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2510        ac_install_sh="${as_dir}install.sh -c"
2511      elif test -f "${as_dir}shtool"; then
2512        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2513        ac_install_sh="${as_dir}shtool install -c"
2514      else
2515        ac_aux_dir_found=no
2516        if $ac_first_candidate; then
2517          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2518        else
2519          break
2520        fi
2521      fi
2522    else
2523      if test -f "${as_dir}${ac_aux}"; then
2524        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2525      else
2526        ac_aux_dir_found=no
2527        if $ac_first_candidate; then
2528          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2529        else
2530          break
2531        fi
2532      fi
2533    fi
2534  done
2535  if test "$ac_aux_dir_found" = yes; then
2536    ac_aux_dir="$as_dir"
2537    break
2538  fi
2539  ac_first_candidate=false
2540
2541  as_found=false
2542done
2543IFS=$as_save_IFS
2544if $as_found
2545then :
2546
2547else $as_nop
2548  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2549fi
2550
2551
2552# These three variables are undocumented and unsupported,
2553# and are intended to be withdrawn in a future Autoconf release.
2554# They can cause serious problems if a builder's source tree is in a directory
2555# whose full name contains unusual characters.
2556if test -f "${ac_aux_dir}config.guess"; then
2557  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2558fi
2559if test -f "${ac_aux_dir}config.sub"; then
2560  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2561fi
2562if test -f "$ac_aux_dir/configure"; then
2563  ac_configure="$SHELL ${ac_aux_dir}configure"
2564fi
2565
2566# Check that the precious variables saved in the cache have kept the same
2567# value.
2568ac_cache_corrupted=false
2569for ac_var in $ac_precious_vars; do
2570  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2571  eval ac_new_set=\$ac_env_${ac_var}_set
2572  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2573  eval ac_new_val=\$ac_env_${ac_var}_value
2574  case $ac_old_set,$ac_new_set in
2575    set,)
2576      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2577printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2578      ac_cache_corrupted=: ;;
2579    ,set)
2580      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2581printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2582      ac_cache_corrupted=: ;;
2583    ,);;
2584    *)
2585      if test "x$ac_old_val" != "x$ac_new_val"; then
2586	# differences in whitespace do not lead to failure.
2587	ac_old_val_w=`echo x $ac_old_val`
2588	ac_new_val_w=`echo x $ac_new_val`
2589	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2590	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2591printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2592	  ac_cache_corrupted=:
2593	else
2594	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2595printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2596	  eval $ac_var=\$ac_old_val
2597	fi
2598	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2599printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2600	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2601printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2602      fi;;
2603  esac
2604  # Pass precious variables to config.status.
2605  if test "$ac_new_set" = set; then
2606    case $ac_new_val in
2607    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2608    *) ac_arg=$ac_var=$ac_new_val ;;
2609    esac
2610    case " $ac_configure_args " in
2611      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2612      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2613    esac
2614  fi
2615done
2616if $ac_cache_corrupted; then
2617  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2618printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2619  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2620printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2621  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2622	    and start over" "$LINENO" 5
2623fi
2624## -------------------- ##
2625## Main body of script. ##
2626## -------------------- ##
2627
2628ac_ext=c
2629ac_cpp='$CPP $CPPFLAGS'
2630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2632ac_compiler_gnu=$ac_cv_c_compiler_gnu
2633
2634
2635
2636ac_config_headers="$ac_config_headers config.h"
2637
2638
2639
2640# Initialize Automake
2641am__api_version='1.16'
2642
2643
2644
2645  # Find a good install program.  We prefer a C program (faster),
2646# so one script is as good as another.  But avoid the broken or
2647# incompatible versions:
2648# SysV /etc/install, /usr/sbin/install
2649# SunOS /usr/etc/install
2650# IRIX /sbin/install
2651# AIX /bin/install
2652# AmigaOS /C/install, which installs bootblocks on floppy discs
2653# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2654# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2655# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2656# OS/2's system install, which has a completely different semantic
2657# ./install, which can be erroneously created by make from ./install.sh.
2658# Reject install programs that cannot install multiple files.
2659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2660printf %s "checking for a BSD-compatible install... " >&6; }
2661if test -z "$INSTALL"; then
2662if test ${ac_cv_path_install+y}
2663then :
2664  printf %s "(cached) " >&6
2665else $as_nop
2666  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667for as_dir in $PATH
2668do
2669  IFS=$as_save_IFS
2670  case $as_dir in #(((
2671    '') as_dir=./ ;;
2672    */) ;;
2673    *) as_dir=$as_dir/ ;;
2674  esac
2675    # Account for fact that we put trailing slashes in our PATH walk.
2676case $as_dir in #((
2677  ./ | /[cC]/* | \
2678  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2679  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2680  /usr/ucb/* ) ;;
2681  *)
2682    # OSF1 and SCO ODT 3.0 have their own names for install.
2683    # Don't use installbsd from OSF since it installs stuff as root
2684    # by default.
2685    for ac_prog in ginstall scoinst install; do
2686      for ac_exec_ext in '' $ac_executable_extensions; do
2687	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2688	  if test $ac_prog = install &&
2689	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2690	    # AIX install.  It has an incompatible calling convention.
2691	    :
2692	  elif test $ac_prog = install &&
2693	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2694	    # program-specific install script used by HP pwplus--don't use.
2695	    :
2696	  else
2697	    rm -rf conftest.one conftest.two conftest.dir
2698	    echo one > conftest.one
2699	    echo two > conftest.two
2700	    mkdir conftest.dir
2701	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2702	      test -s conftest.one && test -s conftest.two &&
2703	      test -s conftest.dir/conftest.one &&
2704	      test -s conftest.dir/conftest.two
2705	    then
2706	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2707	      break 3
2708	    fi
2709	  fi
2710	fi
2711      done
2712    done
2713    ;;
2714esac
2715
2716  done
2717IFS=$as_save_IFS
2718
2719rm -rf conftest.one conftest.two conftest.dir
2720
2721fi
2722  if test ${ac_cv_path_install+y}; then
2723    INSTALL=$ac_cv_path_install
2724  else
2725    # As a last resort, use the slow shell script.  Don't cache a
2726    # value for INSTALL within a source directory, because that will
2727    # break other packages using the cache if that directory is
2728    # removed, or if the value is a relative name.
2729    INSTALL=$ac_install_sh
2730  fi
2731fi
2732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2733printf "%s\n" "$INSTALL" >&6; }
2734
2735# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2736# It thinks the first close brace ends the variable substitution.
2737test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2738
2739test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2740
2741test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2742
2743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2744printf %s "checking whether build environment is sane... " >&6; }
2745# Reject unsafe characters in $srcdir or the absolute working directory
2746# name.  Accept space and tab only in the latter.
2747am_lf='
2748'
2749case `pwd` in
2750  *[\\\"\#\$\&\'\`$am_lf]*)
2751    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2752esac
2753case $srcdir in
2754  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2755    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2756esac
2757
2758# Do 'set' in a subshell so we don't clobber the current shell's
2759# arguments.  Must try -L first in case configure is actually a
2760# symlink; some systems play weird games with the mod time of symlinks
2761# (eg FreeBSD returns the mod time of the symlink's containing
2762# directory).
2763if (
2764   am_has_slept=no
2765   for am_try in 1 2; do
2766     echo "timestamp, slept: $am_has_slept" > conftest.file
2767     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2768     if test "$*" = "X"; then
2769	# -L didn't work.
2770	set X `ls -t "$srcdir/configure" conftest.file`
2771     fi
2772     if test "$*" != "X $srcdir/configure conftest.file" \
2773	&& test "$*" != "X conftest.file $srcdir/configure"; then
2774
2775	# If neither matched, then we have a broken ls.  This can happen
2776	# if, for instance, CONFIG_SHELL is bash and it inherits a
2777	# broken ls alias from the environment.  This has actually
2778	# happened.  Such a system could not be considered "sane".
2779	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2780  alias in your environment" "$LINENO" 5
2781     fi
2782     if test "$2" = conftest.file || test $am_try -eq 2; then
2783       break
2784     fi
2785     # Just in case.
2786     sleep 1
2787     am_has_slept=yes
2788   done
2789   test "$2" = conftest.file
2790   )
2791then
2792   # Ok.
2793   :
2794else
2795   as_fn_error $? "newly created file is older than distributed files!
2796Check your system clock" "$LINENO" 5
2797fi
2798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2799printf "%s\n" "yes" >&6; }
2800# If we didn't sleep, we still need to ensure time stamps of config.status and
2801# generated files are strictly newer.
2802am_sleep_pid=
2803if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2804  ( sleep 1 ) &
2805  am_sleep_pid=$!
2806fi
2807
2808rm -f conftest.file
2809
2810test "$program_prefix" != NONE &&
2811  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2812# Use a double $ so make ignores it.
2813test "$program_suffix" != NONE &&
2814  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2815# Double any \ or $.
2816# By default was `s,x,x', remove it if useless.
2817ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2818program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2819
2820
2821# Expand $ac_aux_dir to an absolute path.
2822am_aux_dir=`cd "$ac_aux_dir" && pwd`
2823
2824
2825  if test x"${MISSING+set}" != xset; then
2826  MISSING="\${SHELL} '$am_aux_dir/missing'"
2827fi
2828# Use eval to expand $SHELL
2829if eval "$MISSING --is-lightweight"; then
2830  am_missing_run="$MISSING "
2831else
2832  am_missing_run=
2833  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2834printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2835fi
2836
2837if test x"${install_sh+set}" != xset; then
2838  case $am_aux_dir in
2839  *\ * | *\	*)
2840    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2841  *)
2842    install_sh="\${SHELL} $am_aux_dir/install-sh"
2843  esac
2844fi
2845
2846# Installed binaries are usually stripped using 'strip' when the user
2847# run "make install-strip".  However 'strip' might not be the right
2848# tool to use in cross-compilation environments, therefore Automake
2849# will honor the 'STRIP' environment variable to overrule this program.
2850if test "$cross_compiling" != no; then
2851  if test -n "$ac_tool_prefix"; then
2852  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2853set dummy ${ac_tool_prefix}strip; ac_word=$2
2854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855printf %s "checking for $ac_word... " >&6; }
2856if test ${ac_cv_prog_STRIP+y}
2857then :
2858  printf %s "(cached) " >&6
2859else $as_nop
2860  if test -n "$STRIP"; then
2861  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2862else
2863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864for as_dir in $PATH
2865do
2866  IFS=$as_save_IFS
2867  case $as_dir in #(((
2868    '') as_dir=./ ;;
2869    */) ;;
2870    *) as_dir=$as_dir/ ;;
2871  esac
2872    for ac_exec_ext in '' $ac_executable_extensions; do
2873  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2874    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2875    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2876    break 2
2877  fi
2878done
2879  done
2880IFS=$as_save_IFS
2881
2882fi
2883fi
2884STRIP=$ac_cv_prog_STRIP
2885if test -n "$STRIP"; then
2886  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2887printf "%s\n" "$STRIP" >&6; }
2888else
2889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890printf "%s\n" "no" >&6; }
2891fi
2892
2893
2894fi
2895if test -z "$ac_cv_prog_STRIP"; then
2896  ac_ct_STRIP=$STRIP
2897  # Extract the first word of "strip", so it can be a program name with args.
2898set dummy strip; ac_word=$2
2899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900printf %s "checking for $ac_word... " >&6; }
2901if test ${ac_cv_prog_ac_ct_STRIP+y}
2902then :
2903  printf %s "(cached) " >&6
2904else $as_nop
2905  if test -n "$ac_ct_STRIP"; then
2906  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2907else
2908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909for as_dir in $PATH
2910do
2911  IFS=$as_save_IFS
2912  case $as_dir in #(((
2913    '') as_dir=./ ;;
2914    */) ;;
2915    *) as_dir=$as_dir/ ;;
2916  esac
2917    for ac_exec_ext in '' $ac_executable_extensions; do
2918  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2919    ac_cv_prog_ac_ct_STRIP="strip"
2920    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2921    break 2
2922  fi
2923done
2924  done
2925IFS=$as_save_IFS
2926
2927fi
2928fi
2929ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2930if test -n "$ac_ct_STRIP"; then
2931  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2932printf "%s\n" "$ac_ct_STRIP" >&6; }
2933else
2934  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935printf "%s\n" "no" >&6; }
2936fi
2937
2938  if test "x$ac_ct_STRIP" = x; then
2939    STRIP=":"
2940  else
2941    case $cross_compiling:$ac_tool_warned in
2942yes:)
2943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2944printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2945ac_tool_warned=yes ;;
2946esac
2947    STRIP=$ac_ct_STRIP
2948  fi
2949else
2950  STRIP="$ac_cv_prog_STRIP"
2951fi
2952
2953fi
2954INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2955
2956
2957  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2958printf %s "checking for a race-free mkdir -p... " >&6; }
2959if test -z "$MKDIR_P"; then
2960  if test ${ac_cv_path_mkdir+y}
2961then :
2962  printf %s "(cached) " >&6
2963else $as_nop
2964  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2966do
2967  IFS=$as_save_IFS
2968  case $as_dir in #(((
2969    '') as_dir=./ ;;
2970    */) ;;
2971    *) as_dir=$as_dir/ ;;
2972  esac
2973    for ac_prog in mkdir gmkdir; do
2974	 for ac_exec_ext in '' $ac_executable_extensions; do
2975	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2976	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2977	     'mkdir ('*'coreutils) '* | \
2978	     'BusyBox '* | \
2979	     'mkdir (fileutils) '4.1*)
2980	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2981	       break 3;;
2982	   esac
2983	 done
2984       done
2985  done
2986IFS=$as_save_IFS
2987
2988fi
2989
2990  test -d ./--version && rmdir ./--version
2991  if test ${ac_cv_path_mkdir+y}; then
2992    MKDIR_P="$ac_cv_path_mkdir -p"
2993  else
2994    # As a last resort, use the slow shell script.  Don't cache a
2995    # value for MKDIR_P within a source directory, because that will
2996    # break other packages using the cache if that directory is
2997    # removed, or if the value is a relative name.
2998    MKDIR_P="$ac_install_sh -d"
2999  fi
3000fi
3001{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3002printf "%s\n" "$MKDIR_P" >&6; }
3003
3004for ac_prog in gawk mawk nawk awk
3005do
3006  # Extract the first word of "$ac_prog", so it can be a program name with args.
3007set dummy $ac_prog; ac_word=$2
3008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009printf %s "checking for $ac_word... " >&6; }
3010if test ${ac_cv_prog_AWK+y}
3011then :
3012  printf %s "(cached) " >&6
3013else $as_nop
3014  if test -n "$AWK"; then
3015  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3016else
3017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018for as_dir in $PATH
3019do
3020  IFS=$as_save_IFS
3021  case $as_dir in #(((
3022    '') as_dir=./ ;;
3023    */) ;;
3024    *) as_dir=$as_dir/ ;;
3025  esac
3026    for ac_exec_ext in '' $ac_executable_extensions; do
3027  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3028    ac_cv_prog_AWK="$ac_prog"
3029    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3030    break 2
3031  fi
3032done
3033  done
3034IFS=$as_save_IFS
3035
3036fi
3037fi
3038AWK=$ac_cv_prog_AWK
3039if test -n "$AWK"; then
3040  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3041printf "%s\n" "$AWK" >&6; }
3042else
3043  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044printf "%s\n" "no" >&6; }
3045fi
3046
3047
3048  test -n "$AWK" && break
3049done
3050
3051{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3052printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3053set x ${MAKE-make}
3054ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3055if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3056then :
3057  printf %s "(cached) " >&6
3058else $as_nop
3059  cat >conftest.make <<\_ACEOF
3060SHELL = /bin/sh
3061all:
3062	@echo '@@@%%%=$(MAKE)=@@@%%%'
3063_ACEOF
3064# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3065case `${MAKE-make} -f conftest.make 2>/dev/null` in
3066  *@@@%%%=?*=@@@%%%*)
3067    eval ac_cv_prog_make_${ac_make}_set=yes;;
3068  *)
3069    eval ac_cv_prog_make_${ac_make}_set=no;;
3070esac
3071rm -f conftest.make
3072fi
3073if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3074  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3075printf "%s\n" "yes" >&6; }
3076  SET_MAKE=
3077else
3078  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079printf "%s\n" "no" >&6; }
3080  SET_MAKE="MAKE=${MAKE-make}"
3081fi
3082
3083rm -rf .tst 2>/dev/null
3084mkdir .tst 2>/dev/null
3085if test -d .tst; then
3086  am__leading_dot=.
3087else
3088  am__leading_dot=_
3089fi
3090rmdir .tst 2>/dev/null
3091
3092# Check whether --enable-silent-rules was given.
3093if test ${enable_silent_rules+y}
3094then :
3095  enableval=$enable_silent_rules;
3096fi
3097
3098case $enable_silent_rules in # (((
3099  yes) AM_DEFAULT_VERBOSITY=0;;
3100   no) AM_DEFAULT_VERBOSITY=1;;
3101    *) AM_DEFAULT_VERBOSITY=1;;
3102esac
3103am_make=${MAKE-make}
3104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3105printf %s "checking whether $am_make supports nested variables... " >&6; }
3106if test ${am_cv_make_support_nested_variables+y}
3107then :
3108  printf %s "(cached) " >&6
3109else $as_nop
3110  if printf "%s\n" 'TRUE=$(BAR$(V))
3111BAR0=false
3112BAR1=true
3113V=1
3114am__doit:
3115	@$(TRUE)
3116.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3117  am_cv_make_support_nested_variables=yes
3118else
3119  am_cv_make_support_nested_variables=no
3120fi
3121fi
3122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3123printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3124if test $am_cv_make_support_nested_variables = yes; then
3125    AM_V='$(V)'
3126  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3127else
3128  AM_V=$AM_DEFAULT_VERBOSITY
3129  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3130fi
3131AM_BACKSLASH='\'
3132
3133if test "`cd $srcdir && pwd`" != "`pwd`"; then
3134  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3135  # is not polluted with repeated "-I."
3136  am__isrc=' -I$(srcdir)'
3137  # test to see if srcdir already configured
3138  if test -f $srcdir/config.status; then
3139    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3140  fi
3141fi
3142
3143# test whether we have cygpath
3144if test -z "$CYGPATH_W"; then
3145  if (cygpath --version) >/dev/null 2>/dev/null; then
3146    CYGPATH_W='cygpath -w'
3147  else
3148    CYGPATH_W=echo
3149  fi
3150fi
3151
3152
3153# Define the identity of the package.
3154 PACKAGE='xf86-video-trident'
3155 VERSION='1.4.0'
3156
3157
3158printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3159
3160
3161printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3162
3163# Some tools Automake needs.
3164
3165ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3166
3167
3168AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3169
3170
3171AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3172
3173
3174AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3175
3176
3177MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3178
3179# For better backward compatibility.  To be removed once Automake 1.9.x
3180# dies out for good.  For more background, see:
3181# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3182# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3183mkdir_p='$(MKDIR_P)'
3184
3185# We need awk for the "check" target (and possibly the TAP driver).  The
3186# system "awk" is bad on some platforms.
3187# Always define AMTAR for backward compatibility.  Yes, it's still used
3188# in the wild :-(  We should find a proper way to deprecate it ...
3189AMTAR='$${TAR-tar}'
3190
3191
3192# We'll loop over all known methods to create a tar archive until one works.
3193_am_tools='gnutar  pax cpio none'
3194
3195am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3196
3197
3198
3199
3200
3201# Variables for tags utilities; see am/tags.am
3202if test -z "$CTAGS"; then
3203  CTAGS=ctags
3204fi
3205
3206if test -z "$ETAGS"; then
3207  ETAGS=etags
3208fi
3209
3210if test -z "$CSCOPE"; then
3211  CSCOPE=cscope
3212fi
3213
3214
3215
3216# POSIX will say in a future version that running "rm -f" with no argument
3217# is OK; and we want to be able to make that assumption in our Makefile
3218# recipes.  So use an aggressive probe to check that the usage we want is
3219# actually supported "in the wild" to an acceptable degree.
3220# See automake bug#10828.
3221# To make any issue more visible, cause the running configure to be aborted
3222# by default if the 'rm' program in use doesn't match our expectations; the
3223# user can still override this though.
3224if rm -f && rm -fr && rm -rf; then : OK; else
3225  cat >&2 <<'END'
3226Oops!
3227
3228Your 'rm' program seems unable to run without file operands specified
3229on the command line, even when the '-f' option is present.  This is contrary
3230to the behaviour of most rm programs out there, and not conforming with
3231the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3232
3233Please tell bug-automake@gnu.org about your system, including the value
3234of your $PATH and any error possibly output before this message.  This
3235can help us improve future automake versions.
3236
3237END
3238  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3239    echo 'Configuration will proceed anyway, since you have set the' >&2
3240    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3241    echo >&2
3242  else
3243    cat >&2 <<'END'
3244Aborting the configuration process, to ensure you take notice of the issue.
3245
3246You can download and install GNU coreutils to get an 'rm' implementation
3247that behaves properly: <https://www.gnu.org/software/coreutils/>.
3248
3249If you want to complete the configuration process using your problematic
3250'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3251to "yes", and re-run configure.
3252
3253END
3254    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3255  fi
3256fi
3257
3258
3259# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280DEPDIR="${am__leading_dot}deps"
3281
3282ac_config_commands="$ac_config_commands depfiles"
3283
3284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3285printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3286cat > confinc.mk << 'END'
3287am__doit:
3288	@echo this is the am__doit target >confinc.out
3289.PHONY: am__doit
3290END
3291am__include="#"
3292am__quote=
3293# BSD make does it like this.
3294echo '.include "confinc.mk" # ignored' > confmf.BSD
3295# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3296echo 'include confinc.mk # ignored' > confmf.GNU
3297_am_result=no
3298for s in GNU BSD; do
3299  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3300   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3301   ac_status=$?
3302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303   (exit $ac_status); }
3304  case $?:`cat confinc.out 2>/dev/null` in #(
3305  '0:this is the am__doit target') :
3306    case $s in #(
3307  BSD) :
3308    am__include='.include' am__quote='"' ;; #(
3309  *) :
3310    am__include='include' am__quote='' ;;
3311esac ;; #(
3312  *) :
3313     ;;
3314esac
3315  if test "$am__include" != "#"; then
3316    _am_result="yes ($s style)"
3317    break
3318  fi
3319done
3320rm -f confinc.* confmf.*
3321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3322printf "%s\n" "${_am_result}" >&6; }
3323
3324# Check whether --enable-dependency-tracking was given.
3325if test ${enable_dependency_tracking+y}
3326then :
3327  enableval=$enable_dependency_tracking;
3328fi
3329
3330if test "x$enable_dependency_tracking" != xno; then
3331  am_depcomp="$ac_aux_dir/depcomp"
3332  AMDEPBACKSLASH='\'
3333  am__nodep='_no'
3334fi
3335 if test "x$enable_dependency_tracking" != xno; then
3336  AMDEP_TRUE=
3337  AMDEP_FALSE='#'
3338else
3339  AMDEP_TRUE='#'
3340  AMDEP_FALSE=
3341fi
3342
3343
3344ac_ext=c
3345ac_cpp='$CPP $CPPFLAGS'
3346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348ac_compiler_gnu=$ac_cv_c_compiler_gnu
3349if test -n "$ac_tool_prefix"; then
3350  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3351set dummy ${ac_tool_prefix}gcc; ac_word=$2
3352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353printf %s "checking for $ac_word... " >&6; }
3354if test ${ac_cv_prog_CC+y}
3355then :
3356  printf %s "(cached) " >&6
3357else $as_nop
3358  if test -n "$CC"; then
3359  ac_cv_prog_CC="$CC" # Let the user override the test.
3360else
3361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362for as_dir in $PATH
3363do
3364  IFS=$as_save_IFS
3365  case $as_dir in #(((
3366    '') as_dir=./ ;;
3367    */) ;;
3368    *) as_dir=$as_dir/ ;;
3369  esac
3370    for ac_exec_ext in '' $ac_executable_extensions; do
3371  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3372    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3373    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3374    break 2
3375  fi
3376done
3377  done
3378IFS=$as_save_IFS
3379
3380fi
3381fi
3382CC=$ac_cv_prog_CC
3383if test -n "$CC"; then
3384  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3385printf "%s\n" "$CC" >&6; }
3386else
3387  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388printf "%s\n" "no" >&6; }
3389fi
3390
3391
3392fi
3393if test -z "$ac_cv_prog_CC"; then
3394  ac_ct_CC=$CC
3395  # Extract the first word of "gcc", so it can be a program name with args.
3396set dummy gcc; ac_word=$2
3397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398printf %s "checking for $ac_word... " >&6; }
3399if test ${ac_cv_prog_ac_ct_CC+y}
3400then :
3401  printf %s "(cached) " >&6
3402else $as_nop
3403  if test -n "$ac_ct_CC"; then
3404  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3405else
3406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3407for as_dir in $PATH
3408do
3409  IFS=$as_save_IFS
3410  case $as_dir in #(((
3411    '') as_dir=./ ;;
3412    */) ;;
3413    *) as_dir=$as_dir/ ;;
3414  esac
3415    for ac_exec_ext in '' $ac_executable_extensions; do
3416  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3417    ac_cv_prog_ac_ct_CC="gcc"
3418    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3419    break 2
3420  fi
3421done
3422  done
3423IFS=$as_save_IFS
3424
3425fi
3426fi
3427ac_ct_CC=$ac_cv_prog_ac_ct_CC
3428if test -n "$ac_ct_CC"; then
3429  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3430printf "%s\n" "$ac_ct_CC" >&6; }
3431else
3432  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433printf "%s\n" "no" >&6; }
3434fi
3435
3436  if test "x$ac_ct_CC" = x; then
3437    CC=""
3438  else
3439    case $cross_compiling:$ac_tool_warned in
3440yes:)
3441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3442printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3443ac_tool_warned=yes ;;
3444esac
3445    CC=$ac_ct_CC
3446  fi
3447else
3448  CC="$ac_cv_prog_CC"
3449fi
3450
3451if test -z "$CC"; then
3452          if test -n "$ac_tool_prefix"; then
3453    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3454set dummy ${ac_tool_prefix}cc; ac_word=$2
3455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456printf %s "checking for $ac_word... " >&6; }
3457if test ${ac_cv_prog_CC+y}
3458then :
3459  printf %s "(cached) " >&6
3460else $as_nop
3461  if test -n "$CC"; then
3462  ac_cv_prog_CC="$CC" # Let the user override the test.
3463else
3464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465for as_dir in $PATH
3466do
3467  IFS=$as_save_IFS
3468  case $as_dir in #(((
3469    '') as_dir=./ ;;
3470    */) ;;
3471    *) as_dir=$as_dir/ ;;
3472  esac
3473    for ac_exec_ext in '' $ac_executable_extensions; do
3474  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3475    ac_cv_prog_CC="${ac_tool_prefix}cc"
3476    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3477    break 2
3478  fi
3479done
3480  done
3481IFS=$as_save_IFS
3482
3483fi
3484fi
3485CC=$ac_cv_prog_CC
3486if test -n "$CC"; then
3487  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3488printf "%s\n" "$CC" >&6; }
3489else
3490  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491printf "%s\n" "no" >&6; }
3492fi
3493
3494
3495  fi
3496fi
3497if test -z "$CC"; then
3498  # Extract the first word of "cc", so it can be a program name with args.
3499set dummy cc; ac_word=$2
3500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501printf %s "checking for $ac_word... " >&6; }
3502if test ${ac_cv_prog_CC+y}
3503then :
3504  printf %s "(cached) " >&6
3505else $as_nop
3506  if test -n "$CC"; then
3507  ac_cv_prog_CC="$CC" # Let the user override the test.
3508else
3509  ac_prog_rejected=no
3510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511for as_dir in $PATH
3512do
3513  IFS=$as_save_IFS
3514  case $as_dir in #(((
3515    '') as_dir=./ ;;
3516    */) ;;
3517    *) as_dir=$as_dir/ ;;
3518  esac
3519    for ac_exec_ext in '' $ac_executable_extensions; do
3520  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3521    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3522       ac_prog_rejected=yes
3523       continue
3524     fi
3525    ac_cv_prog_CC="cc"
3526    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3527    break 2
3528  fi
3529done
3530  done
3531IFS=$as_save_IFS
3532
3533if test $ac_prog_rejected = yes; then
3534  # We found a bogon in the path, so make sure we never use it.
3535  set dummy $ac_cv_prog_CC
3536  shift
3537  if test $# != 0; then
3538    # We chose a different compiler from the bogus one.
3539    # However, it has the same basename, so the bogon will be chosen
3540    # first if we set CC to just the basename; use the full file name.
3541    shift
3542    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3543  fi
3544fi
3545fi
3546fi
3547CC=$ac_cv_prog_CC
3548if test -n "$CC"; then
3549  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3550printf "%s\n" "$CC" >&6; }
3551else
3552  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553printf "%s\n" "no" >&6; }
3554fi
3555
3556
3557fi
3558if test -z "$CC"; then
3559  if test -n "$ac_tool_prefix"; then
3560  for ac_prog in cl.exe
3561  do
3562    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3563set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565printf %s "checking for $ac_word... " >&6; }
3566if test ${ac_cv_prog_CC+y}
3567then :
3568  printf %s "(cached) " >&6
3569else $as_nop
3570  if test -n "$CC"; then
3571  ac_cv_prog_CC="$CC" # Let the user override the test.
3572else
3573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574for as_dir in $PATH
3575do
3576  IFS=$as_save_IFS
3577  case $as_dir in #(((
3578    '') as_dir=./ ;;
3579    */) ;;
3580    *) as_dir=$as_dir/ ;;
3581  esac
3582    for ac_exec_ext in '' $ac_executable_extensions; do
3583  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3584    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3585    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3586    break 2
3587  fi
3588done
3589  done
3590IFS=$as_save_IFS
3591
3592fi
3593fi
3594CC=$ac_cv_prog_CC
3595if test -n "$CC"; then
3596  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3597printf "%s\n" "$CC" >&6; }
3598else
3599  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600printf "%s\n" "no" >&6; }
3601fi
3602
3603
3604    test -n "$CC" && break
3605  done
3606fi
3607if test -z "$CC"; then
3608  ac_ct_CC=$CC
3609  for ac_prog in cl.exe
3610do
3611  # Extract the first word of "$ac_prog", so it can be a program name with args.
3612set dummy $ac_prog; ac_word=$2
3613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614printf %s "checking for $ac_word... " >&6; }
3615if test ${ac_cv_prog_ac_ct_CC+y}
3616then :
3617  printf %s "(cached) " >&6
3618else $as_nop
3619  if test -n "$ac_ct_CC"; then
3620  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3621else
3622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623for as_dir in $PATH
3624do
3625  IFS=$as_save_IFS
3626  case $as_dir in #(((
3627    '') as_dir=./ ;;
3628    */) ;;
3629    *) as_dir=$as_dir/ ;;
3630  esac
3631    for ac_exec_ext in '' $ac_executable_extensions; do
3632  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3633    ac_cv_prog_ac_ct_CC="$ac_prog"
3634    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3635    break 2
3636  fi
3637done
3638  done
3639IFS=$as_save_IFS
3640
3641fi
3642fi
3643ac_ct_CC=$ac_cv_prog_ac_ct_CC
3644if test -n "$ac_ct_CC"; then
3645  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3646printf "%s\n" "$ac_ct_CC" >&6; }
3647else
3648  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649printf "%s\n" "no" >&6; }
3650fi
3651
3652
3653  test -n "$ac_ct_CC" && break
3654done
3655
3656  if test "x$ac_ct_CC" = x; then
3657    CC=""
3658  else
3659    case $cross_compiling:$ac_tool_warned in
3660yes:)
3661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3662printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3663ac_tool_warned=yes ;;
3664esac
3665    CC=$ac_ct_CC
3666  fi
3667fi
3668
3669fi
3670if test -z "$CC"; then
3671  if test -n "$ac_tool_prefix"; then
3672  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3673set dummy ${ac_tool_prefix}clang; 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 $as_nop
3680  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}clang"
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
3703fi
3704CC=$ac_cv_prog_CC
3705if test -n "$CC"; then
3706  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3707printf "%s\n" "$CC" >&6; }
3708else
3709  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3710printf "%s\n" "no" >&6; }
3711fi
3712
3713
3714fi
3715if test -z "$ac_cv_prog_CC"; then
3716  ac_ct_CC=$CC
3717  # Extract the first word of "clang", so it can be a program name with args.
3718set dummy clang; ac_word=$2
3719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720printf %s "checking for $ac_word... " >&6; }
3721if test ${ac_cv_prog_ac_ct_CC+y}
3722then :
3723  printf %s "(cached) " >&6
3724else $as_nop
3725  if test -n "$ac_ct_CC"; then
3726  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3727else
3728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729for as_dir in $PATH
3730do
3731  IFS=$as_save_IFS
3732  case $as_dir in #(((
3733    '') as_dir=./ ;;
3734    */) ;;
3735    *) as_dir=$as_dir/ ;;
3736  esac
3737    for ac_exec_ext in '' $ac_executable_extensions; do
3738  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3739    ac_cv_prog_ac_ct_CC="clang"
3740    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3741    break 2
3742  fi
3743done
3744  done
3745IFS=$as_save_IFS
3746
3747fi
3748fi
3749ac_ct_CC=$ac_cv_prog_ac_ct_CC
3750if test -n "$ac_ct_CC"; then
3751  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3752printf "%s\n" "$ac_ct_CC" >&6; }
3753else
3754  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755printf "%s\n" "no" >&6; }
3756fi
3757
3758  if test "x$ac_ct_CC" = x; then
3759    CC=""
3760  else
3761    case $cross_compiling:$ac_tool_warned in
3762yes:)
3763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3764printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3765ac_tool_warned=yes ;;
3766esac
3767    CC=$ac_ct_CC
3768  fi
3769else
3770  CC="$ac_cv_prog_CC"
3771fi
3772
3773fi
3774
3775
3776test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3777printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3778as_fn_error $? "no acceptable C compiler found in \$PATH
3779See \`config.log' for more details" "$LINENO" 5; }
3780
3781# Provide some information about the compiler.
3782printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3783set X $ac_compile
3784ac_compiler=$2
3785for ac_option in --version -v -V -qversion -version; do
3786  { { ac_try="$ac_compiler $ac_option >&5"
3787case "(($ac_try" in
3788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789  *) ac_try_echo=$ac_try;;
3790esac
3791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3792printf "%s\n" "$ac_try_echo"; } >&5
3793  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3794  ac_status=$?
3795  if test -s conftest.err; then
3796    sed '10a\
3797... rest of stderr output deleted ...
3798         10q' conftest.err >conftest.er1
3799    cat conftest.er1 >&5
3800  fi
3801  rm -f conftest.er1 conftest.err
3802  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3803  test $ac_status = 0; }
3804done
3805
3806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807/* end confdefs.h.  */
3808
3809int
3810main (void)
3811{
3812
3813  ;
3814  return 0;
3815}
3816_ACEOF
3817ac_clean_files_save=$ac_clean_files
3818ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3819# Try to create an executable without -o first, disregard a.out.
3820# It will help us diagnose broken compilers, and finding out an intuition
3821# of exeext.
3822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3823printf %s "checking whether the C compiler works... " >&6; }
3824ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3825
3826# The possible output files:
3827ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3828
3829ac_rmfiles=
3830for ac_file in $ac_files
3831do
3832  case $ac_file in
3833    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3834    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3835  esac
3836done
3837rm -f $ac_rmfiles
3838
3839if { { ac_try="$ac_link_default"
3840case "(($ac_try" in
3841  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842  *) ac_try_echo=$ac_try;;
3843esac
3844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3845printf "%s\n" "$ac_try_echo"; } >&5
3846  (eval "$ac_link_default") 2>&5
3847  ac_status=$?
3848  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3849  test $ac_status = 0; }
3850then :
3851  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3852# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3853# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3854# so that the user can short-circuit this test for compilers unknown to
3855# Autoconf.
3856for ac_file in $ac_files ''
3857do
3858  test -f "$ac_file" || continue
3859  case $ac_file in
3860    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3861	;;
3862    [ab].out )
3863	# We found the default executable, but exeext='' is most
3864	# certainly right.
3865	break;;
3866    *.* )
3867	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3868	then :; else
3869	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3870	fi
3871	# We set ac_cv_exeext here because the later test for it is not
3872	# safe: cross compilers may not add the suffix if given an `-o'
3873	# argument, so we may need to know it at that point already.
3874	# Even if this section looks crufty: it has the advantage of
3875	# actually working.
3876	break;;
3877    * )
3878	break;;
3879  esac
3880done
3881test "$ac_cv_exeext" = no && ac_cv_exeext=
3882
3883else $as_nop
3884  ac_file=''
3885fi
3886if test -z "$ac_file"
3887then :
3888  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3889printf "%s\n" "no" >&6; }
3890printf "%s\n" "$as_me: failed program was:" >&5
3891sed 's/^/| /' conftest.$ac_ext >&5
3892
3893{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3894printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3895as_fn_error 77 "C compiler cannot create executables
3896See \`config.log' for more details" "$LINENO" 5; }
3897else $as_nop
3898  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3899printf "%s\n" "yes" >&6; }
3900fi
3901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3902printf %s "checking for C compiler default output file name... " >&6; }
3903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3904printf "%s\n" "$ac_file" >&6; }
3905ac_exeext=$ac_cv_exeext
3906
3907rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3908ac_clean_files=$ac_clean_files_save
3909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3910printf %s "checking for suffix of executables... " >&6; }
3911if { { ac_try="$ac_link"
3912case "(($ac_try" in
3913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914  *) ac_try_echo=$ac_try;;
3915esac
3916eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3917printf "%s\n" "$ac_try_echo"; } >&5
3918  (eval "$ac_link") 2>&5
3919  ac_status=$?
3920  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921  test $ac_status = 0; }
3922then :
3923  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3924# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3925# work properly (i.e., refer to `conftest.exe'), while it won't with
3926# `rm'.
3927for ac_file in conftest.exe conftest conftest.*; do
3928  test -f "$ac_file" || continue
3929  case $ac_file in
3930    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3931    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3932	  break;;
3933    * ) break;;
3934  esac
3935done
3936else $as_nop
3937  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3938printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3939as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3940See \`config.log' for more details" "$LINENO" 5; }
3941fi
3942rm -f conftest conftest$ac_cv_exeext
3943{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3944printf "%s\n" "$ac_cv_exeext" >&6; }
3945
3946rm -f conftest.$ac_ext
3947EXEEXT=$ac_cv_exeext
3948ac_exeext=$EXEEXT
3949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950/* end confdefs.h.  */
3951#include <stdio.h>
3952int
3953main (void)
3954{
3955FILE *f = fopen ("conftest.out", "w");
3956 return ferror (f) || fclose (f) != 0;
3957
3958  ;
3959  return 0;
3960}
3961_ACEOF
3962ac_clean_files="$ac_clean_files conftest.out"
3963# Check that the compiler produces executables we can run.  If not, either
3964# the compiler is broken, or we cross compile.
3965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3966printf %s "checking whether we are cross compiling... " >&6; }
3967if test "$cross_compiling" != yes; then
3968  { { ac_try="$ac_link"
3969case "(($ac_try" in
3970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971  *) ac_try_echo=$ac_try;;
3972esac
3973eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3974printf "%s\n" "$ac_try_echo"; } >&5
3975  (eval "$ac_link") 2>&5
3976  ac_status=$?
3977  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3978  test $ac_status = 0; }
3979  if { ac_try='./conftest$ac_cv_exeext'
3980  { { case "(($ac_try" in
3981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982  *) ac_try_echo=$ac_try;;
3983esac
3984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3985printf "%s\n" "$ac_try_echo"; } >&5
3986  (eval "$ac_try") 2>&5
3987  ac_status=$?
3988  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3989  test $ac_status = 0; }; }; then
3990    cross_compiling=no
3991  else
3992    if test "$cross_compiling" = maybe; then
3993	cross_compiling=yes
3994    else
3995	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3996printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3997as_fn_error 77 "cannot run C compiled programs.
3998If you meant to cross compile, use \`--host'.
3999See \`config.log' for more details" "$LINENO" 5; }
4000    fi
4001  fi
4002fi
4003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4004printf "%s\n" "$cross_compiling" >&6; }
4005
4006rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4007ac_clean_files=$ac_clean_files_save
4008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4009printf %s "checking for suffix of object files... " >&6; }
4010if test ${ac_cv_objext+y}
4011then :
4012  printf %s "(cached) " >&6
4013else $as_nop
4014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015/* end confdefs.h.  */
4016
4017int
4018main (void)
4019{
4020
4021  ;
4022  return 0;
4023}
4024_ACEOF
4025rm -f conftest.o conftest.obj
4026if { { ac_try="$ac_compile"
4027case "(($ac_try" in
4028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029  *) ac_try_echo=$ac_try;;
4030esac
4031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4032printf "%s\n" "$ac_try_echo"; } >&5
4033  (eval "$ac_compile") 2>&5
4034  ac_status=$?
4035  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036  test $ac_status = 0; }
4037then :
4038  for ac_file in conftest.o conftest.obj conftest.*; do
4039  test -f "$ac_file" || continue;
4040  case $ac_file in
4041    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4042    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4043       break;;
4044  esac
4045done
4046else $as_nop
4047  printf "%s\n" "$as_me: failed program was:" >&5
4048sed 's/^/| /' conftest.$ac_ext >&5
4049
4050{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4051printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4052as_fn_error $? "cannot compute suffix of object files: cannot compile
4053See \`config.log' for more details" "$LINENO" 5; }
4054fi
4055rm -f conftest.$ac_cv_objext conftest.$ac_ext
4056fi
4057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4058printf "%s\n" "$ac_cv_objext" >&6; }
4059OBJEXT=$ac_cv_objext
4060ac_objext=$OBJEXT
4061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4062printf %s "checking whether the compiler supports GNU C... " >&6; }
4063if test ${ac_cv_c_compiler_gnu+y}
4064then :
4065  printf %s "(cached) " >&6
4066else $as_nop
4067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068/* end confdefs.h.  */
4069
4070int
4071main (void)
4072{
4073#ifndef __GNUC__
4074       choke me
4075#endif
4076
4077  ;
4078  return 0;
4079}
4080_ACEOF
4081if ac_fn_c_try_compile "$LINENO"
4082then :
4083  ac_compiler_gnu=yes
4084else $as_nop
4085  ac_compiler_gnu=no
4086fi
4087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4088ac_cv_c_compiler_gnu=$ac_compiler_gnu
4089
4090fi
4091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4092printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4093ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094
4095if test $ac_compiler_gnu = yes; then
4096  GCC=yes
4097else
4098  GCC=
4099fi
4100ac_test_CFLAGS=${CFLAGS+y}
4101ac_save_CFLAGS=$CFLAGS
4102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4103printf %s "checking whether $CC accepts -g... " >&6; }
4104if test ${ac_cv_prog_cc_g+y}
4105then :
4106  printf %s "(cached) " >&6
4107else $as_nop
4108  ac_save_c_werror_flag=$ac_c_werror_flag
4109   ac_c_werror_flag=yes
4110   ac_cv_prog_cc_g=no
4111   CFLAGS="-g"
4112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113/* end confdefs.h.  */
4114
4115int
4116main (void)
4117{
4118
4119  ;
4120  return 0;
4121}
4122_ACEOF
4123if ac_fn_c_try_compile "$LINENO"
4124then :
4125  ac_cv_prog_cc_g=yes
4126else $as_nop
4127  CFLAGS=""
4128      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129/* end confdefs.h.  */
4130
4131int
4132main (void)
4133{
4134
4135  ;
4136  return 0;
4137}
4138_ACEOF
4139if ac_fn_c_try_compile "$LINENO"
4140then :
4141
4142else $as_nop
4143  ac_c_werror_flag=$ac_save_c_werror_flag
4144	 CFLAGS="-g"
4145	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146/* end confdefs.h.  */
4147
4148int
4149main (void)
4150{
4151
4152  ;
4153  return 0;
4154}
4155_ACEOF
4156if ac_fn_c_try_compile "$LINENO"
4157then :
4158  ac_cv_prog_cc_g=yes
4159fi
4160rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4161fi
4162rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4163fi
4164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4165   ac_c_werror_flag=$ac_save_c_werror_flag
4166fi
4167{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4168printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4169if test $ac_test_CFLAGS; then
4170  CFLAGS=$ac_save_CFLAGS
4171elif test $ac_cv_prog_cc_g = yes; then
4172  if test "$GCC" = yes; then
4173    CFLAGS="-g -O2"
4174  else
4175    CFLAGS="-g"
4176  fi
4177else
4178  if test "$GCC" = yes; then
4179    CFLAGS="-O2"
4180  else
4181    CFLAGS=
4182  fi
4183fi
4184ac_prog_cc_stdc=no
4185if test x$ac_prog_cc_stdc = xno
4186then :
4187  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4188printf %s "checking for $CC option to enable C11 features... " >&6; }
4189if test ${ac_cv_prog_cc_c11+y}
4190then :
4191  printf %s "(cached) " >&6
4192else $as_nop
4193  ac_cv_prog_cc_c11=no
4194ac_save_CC=$CC
4195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196/* end confdefs.h.  */
4197$ac_c_conftest_c11_program
4198_ACEOF
4199for ac_arg in '' -std=gnu11
4200do
4201  CC="$ac_save_CC $ac_arg"
4202  if ac_fn_c_try_compile "$LINENO"
4203then :
4204  ac_cv_prog_cc_c11=$ac_arg
4205fi
4206rm -f core conftest.err conftest.$ac_objext conftest.beam
4207  test "x$ac_cv_prog_cc_c11" != "xno" && break
4208done
4209rm -f conftest.$ac_ext
4210CC=$ac_save_CC
4211fi
4212
4213if test "x$ac_cv_prog_cc_c11" = xno
4214then :
4215  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4216printf "%s\n" "unsupported" >&6; }
4217else $as_nop
4218  if test "x$ac_cv_prog_cc_c11" = x
4219then :
4220  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4221printf "%s\n" "none needed" >&6; }
4222else $as_nop
4223  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4224printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4225     CC="$CC $ac_cv_prog_cc_c11"
4226fi
4227  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4228  ac_prog_cc_stdc=c11
4229fi
4230fi
4231if test x$ac_prog_cc_stdc = xno
4232then :
4233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4234printf %s "checking for $CC option to enable C99 features... " >&6; }
4235if test ${ac_cv_prog_cc_c99+y}
4236then :
4237  printf %s "(cached) " >&6
4238else $as_nop
4239  ac_cv_prog_cc_c99=no
4240ac_save_CC=$CC
4241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242/* end confdefs.h.  */
4243$ac_c_conftest_c99_program
4244_ACEOF
4245for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4246do
4247  CC="$ac_save_CC $ac_arg"
4248  if ac_fn_c_try_compile "$LINENO"
4249then :
4250  ac_cv_prog_cc_c99=$ac_arg
4251fi
4252rm -f core conftest.err conftest.$ac_objext conftest.beam
4253  test "x$ac_cv_prog_cc_c99" != "xno" && break
4254done
4255rm -f conftest.$ac_ext
4256CC=$ac_save_CC
4257fi
4258
4259if test "x$ac_cv_prog_cc_c99" = xno
4260then :
4261  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4262printf "%s\n" "unsupported" >&6; }
4263else $as_nop
4264  if test "x$ac_cv_prog_cc_c99" = x
4265then :
4266  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4267printf "%s\n" "none needed" >&6; }
4268else $as_nop
4269  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4270printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4271     CC="$CC $ac_cv_prog_cc_c99"
4272fi
4273  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4274  ac_prog_cc_stdc=c99
4275fi
4276fi
4277if test x$ac_prog_cc_stdc = xno
4278then :
4279  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4280printf %s "checking for $CC option to enable C89 features... " >&6; }
4281if test ${ac_cv_prog_cc_c89+y}
4282then :
4283  printf %s "(cached) " >&6
4284else $as_nop
4285  ac_cv_prog_cc_c89=no
4286ac_save_CC=$CC
4287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288/* end confdefs.h.  */
4289$ac_c_conftest_c89_program
4290_ACEOF
4291for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4292do
4293  CC="$ac_save_CC $ac_arg"
4294  if ac_fn_c_try_compile "$LINENO"
4295then :
4296  ac_cv_prog_cc_c89=$ac_arg
4297fi
4298rm -f core conftest.err conftest.$ac_objext conftest.beam
4299  test "x$ac_cv_prog_cc_c89" != "xno" && break
4300done
4301rm -f conftest.$ac_ext
4302CC=$ac_save_CC
4303fi
4304
4305if test "x$ac_cv_prog_cc_c89" = xno
4306then :
4307  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4308printf "%s\n" "unsupported" >&6; }
4309else $as_nop
4310  if test "x$ac_cv_prog_cc_c89" = x
4311then :
4312  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4313printf "%s\n" "none needed" >&6; }
4314else $as_nop
4315  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4316printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4317     CC="$CC $ac_cv_prog_cc_c89"
4318fi
4319  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4320  ac_prog_cc_stdc=c89
4321fi
4322fi
4323
4324ac_ext=c
4325ac_cpp='$CPP $CPPFLAGS'
4326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329
4330
4331  ac_ext=c
4332ac_cpp='$CPP $CPPFLAGS'
4333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4337printf %s "checking whether $CC understands -c and -o together... " >&6; }
4338if test ${am_cv_prog_cc_c_o+y}
4339then :
4340  printf %s "(cached) " >&6
4341else $as_nop
4342  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343/* end confdefs.h.  */
4344
4345int
4346main (void)
4347{
4348
4349  ;
4350  return 0;
4351}
4352_ACEOF
4353  # Make sure it works both with $CC and with simple cc.
4354  # Following AC_PROG_CC_C_O, we do the test twice because some
4355  # compilers refuse to overwrite an existing .o file with -o,
4356  # though they will create one.
4357  am_cv_prog_cc_c_o=yes
4358  for am_i in 1 2; do
4359    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4360   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4361   ac_status=$?
4362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363   (exit $ac_status); } \
4364         && test -f conftest2.$ac_objext; then
4365      : OK
4366    else
4367      am_cv_prog_cc_c_o=no
4368      break
4369    fi
4370  done
4371  rm -f core conftest*
4372  unset am_i
4373fi
4374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4375printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4376if test "$am_cv_prog_cc_c_o" != yes; then
4377   # Losing compiler, so override with the script.
4378   # FIXME: It is wrong to rewrite CC.
4379   # But if we don't then we get into trouble of one sort or another.
4380   # A longer-term fix would be to have automake use am__CC in this case,
4381   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4382   CC="$am_aux_dir/compile $CC"
4383fi
4384ac_ext=c
4385ac_cpp='$CPP $CPPFLAGS'
4386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388ac_compiler_gnu=$ac_cv_c_compiler_gnu
4389
4390
4391depcc="$CC"   am_compiler_list=
4392
4393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4394printf %s "checking dependency style of $depcc... " >&6; }
4395if test ${am_cv_CC_dependencies_compiler_type+y}
4396then :
4397  printf %s "(cached) " >&6
4398else $as_nop
4399  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4400  # We make a subdir and do the tests there.  Otherwise we can end up
4401  # making bogus files that we don't know about and never remove.  For
4402  # instance it was reported that on HP-UX the gcc test will end up
4403  # making a dummy file named 'D' -- because '-MD' means "put the output
4404  # in D".
4405  rm -rf conftest.dir
4406  mkdir conftest.dir
4407  # Copy depcomp to subdir because otherwise we won't find it if we're
4408  # using a relative directory.
4409  cp "$am_depcomp" conftest.dir
4410  cd conftest.dir
4411  # We will build objects and dependencies in a subdirectory because
4412  # it helps to detect inapplicable dependency modes.  For instance
4413  # both Tru64's cc and ICC support -MD to output dependencies as a
4414  # side effect of compilation, but ICC will put the dependencies in
4415  # the current directory while Tru64 will put them in the object
4416  # directory.
4417  mkdir sub
4418
4419  am_cv_CC_dependencies_compiler_type=none
4420  if test "$am_compiler_list" = ""; then
4421     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4422  fi
4423  am__universal=false
4424  case " $depcc " in #(
4425     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4426     esac
4427
4428  for depmode in $am_compiler_list; do
4429    # Setup a source with many dependencies, because some compilers
4430    # like to wrap large dependency lists on column 80 (with \), and
4431    # we should not choose a depcomp mode which is confused by this.
4432    #
4433    # We need to recreate these files for each test, as the compiler may
4434    # overwrite some of them when testing with obscure command lines.
4435    # This happens at least with the AIX C compiler.
4436    : > sub/conftest.c
4437    for i in 1 2 3 4 5 6; do
4438      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4439      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4440      # Solaris 10 /bin/sh.
4441      echo '/* dummy */' > sub/conftst$i.h
4442    done
4443    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4444
4445    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4446    # mode.  It turns out that the SunPro C++ compiler does not properly
4447    # handle '-M -o', and we need to detect this.  Also, some Intel
4448    # versions had trouble with output in subdirs.
4449    am__obj=sub/conftest.${OBJEXT-o}
4450    am__minus_obj="-o $am__obj"
4451    case $depmode in
4452    gcc)
4453      # This depmode causes a compiler race in universal mode.
4454      test "$am__universal" = false || continue
4455      ;;
4456    nosideeffect)
4457      # After this tag, mechanisms are not by side-effect, so they'll
4458      # only be used when explicitly requested.
4459      if test "x$enable_dependency_tracking" = xyes; then
4460	continue
4461      else
4462	break
4463      fi
4464      ;;
4465    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4466      # This compiler won't grok '-c -o', but also, the minuso test has
4467      # not run yet.  These depmodes are late enough in the game, and
4468      # so weak that their functioning should not be impacted.
4469      am__obj=conftest.${OBJEXT-o}
4470      am__minus_obj=
4471      ;;
4472    none) break ;;
4473    esac
4474    if depmode=$depmode \
4475       source=sub/conftest.c object=$am__obj \
4476       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4477       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4478         >/dev/null 2>conftest.err &&
4479       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4480       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4481       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4482       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4483      # icc doesn't choke on unknown options, it will just issue warnings
4484      # or remarks (even with -Werror).  So we grep stderr for any message
4485      # that says an option was ignored or not supported.
4486      # When given -MP, icc 7.0 and 7.1 complain thusly:
4487      #   icc: Command line warning: ignoring option '-M'; no argument required
4488      # The diagnosis changed in icc 8.0:
4489      #   icc: Command line remark: option '-MP' not supported
4490      if (grep 'ignoring option' conftest.err ||
4491          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4492        am_cv_CC_dependencies_compiler_type=$depmode
4493        break
4494      fi
4495    fi
4496  done
4497
4498  cd ..
4499  rm -rf conftest.dir
4500else
4501  am_cv_CC_dependencies_compiler_type=none
4502fi
4503
4504fi
4505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4506printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4507CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4508
4509 if
4510  test "x$enable_dependency_tracking" != xno \
4511  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4512  am__fastdepCC_TRUE=
4513  am__fastdepCC_FALSE='#'
4514else
4515  am__fastdepCC_TRUE='#'
4516  am__fastdepCC_FALSE=
4517fi
4518
4519
4520
4521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4522printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4523if test ${ac_cv_c_undeclared_builtin_options+y}
4524then :
4525  printf %s "(cached) " >&6
4526else $as_nop
4527  ac_save_CFLAGS=$CFLAGS
4528   ac_cv_c_undeclared_builtin_options='cannot detect'
4529   for ac_arg in '' -fno-builtin; do
4530     CFLAGS="$ac_save_CFLAGS $ac_arg"
4531     # This test program should *not* compile successfully.
4532     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533/* end confdefs.h.  */
4534
4535int
4536main (void)
4537{
4538(void) strchr;
4539  ;
4540  return 0;
4541}
4542_ACEOF
4543if ac_fn_c_try_compile "$LINENO"
4544then :
4545
4546else $as_nop
4547  # This test program should compile successfully.
4548        # No library function is consistently available on
4549        # freestanding implementations, so test against a dummy
4550        # declaration.  Include always-available headers on the
4551        # off chance that they somehow elicit warnings.
4552        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4553/* end confdefs.h.  */
4554#include <float.h>
4555#include <limits.h>
4556#include <stdarg.h>
4557#include <stddef.h>
4558extern void ac_decl (int, char *);
4559
4560int
4561main (void)
4562{
4563(void) ac_decl (0, (char *) 0);
4564  (void) ac_decl;
4565
4566  ;
4567  return 0;
4568}
4569_ACEOF
4570if ac_fn_c_try_compile "$LINENO"
4571then :
4572  if test x"$ac_arg" = x
4573then :
4574  ac_cv_c_undeclared_builtin_options='none needed'
4575else $as_nop
4576  ac_cv_c_undeclared_builtin_options=$ac_arg
4577fi
4578          break
4579fi
4580rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4581fi
4582rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4583    done
4584    CFLAGS=$ac_save_CFLAGS
4585
4586fi
4587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4588printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4589  case $ac_cv_c_undeclared_builtin_options in #(
4590  'cannot detect') :
4591    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4592printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4593as_fn_error $? "cannot make $CC report undeclared builtins
4594See \`config.log' for more details" "$LINENO" 5; } ;; #(
4595  'none needed') :
4596    ac_c_undeclared_builtin_options='' ;; #(
4597  *) :
4598    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4599esac
4600
4601ac_header= ac_cache=
4602for ac_item in $ac_header_c_list
4603do
4604  if test $ac_cache; then
4605    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4606    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4607      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4608    fi
4609    ac_header= ac_cache=
4610  elif test $ac_header; then
4611    ac_cache=$ac_item
4612  else
4613    ac_header=$ac_item
4614  fi
4615done
4616
4617
4618
4619
4620
4621
4622
4623
4624if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4625then :
4626
4627printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4628
4629fi
4630
4631
4632
4633
4634ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4635if test "x$ac_cv_have_decl___clang__" = xyes
4636then :
4637  CLANGCC="yes"
4638else $as_nop
4639  CLANGCC="no"
4640fi
4641ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4642if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4643then :
4644  INTELCC="yes"
4645else $as_nop
4646  INTELCC="no"
4647fi
4648ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4649if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4650then :
4651  SUNCC="yes"
4652else $as_nop
4653  SUNCC="no"
4654fi
4655
4656
4657
4658
4659
4660
4661
4662
4663if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4664	if test -n "$ac_tool_prefix"; then
4665  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4666set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4668printf %s "checking for $ac_word... " >&6; }
4669if test ${ac_cv_path_PKG_CONFIG+y}
4670then :
4671  printf %s "(cached) " >&6
4672else $as_nop
4673  case $PKG_CONFIG in
4674  [\\/]* | ?:[\\/]*)
4675  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4676  ;;
4677  *)
4678  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679for as_dir in $PATH
4680do
4681  IFS=$as_save_IFS
4682  case $as_dir in #(((
4683    '') as_dir=./ ;;
4684    */) ;;
4685    *) as_dir=$as_dir/ ;;
4686  esac
4687    for ac_exec_ext in '' $ac_executable_extensions; do
4688  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4689    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4690    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4691    break 2
4692  fi
4693done
4694  done
4695IFS=$as_save_IFS
4696
4697  ;;
4698esac
4699fi
4700PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4701if test -n "$PKG_CONFIG"; then
4702  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4703printf "%s\n" "$PKG_CONFIG" >&6; }
4704else
4705  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706printf "%s\n" "no" >&6; }
4707fi
4708
4709
4710fi
4711if test -z "$ac_cv_path_PKG_CONFIG"; then
4712  ac_pt_PKG_CONFIG=$PKG_CONFIG
4713  # Extract the first word of "pkg-config", so it can be a program name with args.
4714set dummy pkg-config; ac_word=$2
4715{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4716printf %s "checking for $ac_word... " >&6; }
4717if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4718then :
4719  printf %s "(cached) " >&6
4720else $as_nop
4721  case $ac_pt_PKG_CONFIG in
4722  [\\/]* | ?:[\\/]*)
4723  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4724  ;;
4725  *)
4726  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727for as_dir in $PATH
4728do
4729  IFS=$as_save_IFS
4730  case $as_dir in #(((
4731    '') as_dir=./ ;;
4732    */) ;;
4733    *) as_dir=$as_dir/ ;;
4734  esac
4735    for ac_exec_ext in '' $ac_executable_extensions; do
4736  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4737    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4738    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4739    break 2
4740  fi
4741done
4742  done
4743IFS=$as_save_IFS
4744
4745  ;;
4746esac
4747fi
4748ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4749if test -n "$ac_pt_PKG_CONFIG"; then
4750  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4751printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4752else
4753  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754printf "%s\n" "no" >&6; }
4755fi
4756
4757  if test "x$ac_pt_PKG_CONFIG" = x; then
4758    PKG_CONFIG=""
4759  else
4760    case $cross_compiling:$ac_tool_warned in
4761yes:)
4762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4763printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4764ac_tool_warned=yes ;;
4765esac
4766    PKG_CONFIG=$ac_pt_PKG_CONFIG
4767  fi
4768else
4769  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4770fi
4771
4772fi
4773if test -n "$PKG_CONFIG"; then
4774	_pkg_min_version=0.9.0
4775	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4776printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4777	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4778		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4779printf "%s\n" "yes" >&6; }
4780	else
4781		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782printf "%s\n" "no" >&6; }
4783		PKG_CONFIG=""
4784	fi
4785fi
4786
4787
4788  # Make sure we can run config.sub.
4789$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4790  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4791
4792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4793printf %s "checking build system type... " >&6; }
4794if test ${ac_cv_build+y}
4795then :
4796  printf %s "(cached) " >&6
4797else $as_nop
4798  ac_build_alias=$build_alias
4799test "x$ac_build_alias" = x &&
4800  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4801test "x$ac_build_alias" = x &&
4802  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4803ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4804  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4805
4806fi
4807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4808printf "%s\n" "$ac_cv_build" >&6; }
4809case $ac_cv_build in
4810*-*-*) ;;
4811*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4812esac
4813build=$ac_cv_build
4814ac_save_IFS=$IFS; IFS='-'
4815set x $ac_cv_build
4816shift
4817build_cpu=$1
4818build_vendor=$2
4819shift; shift
4820# Remember, the first character of IFS is used to create $*,
4821# except with old shells:
4822build_os=$*
4823IFS=$ac_save_IFS
4824case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4825
4826
4827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4828printf %s "checking host system type... " >&6; }
4829if test ${ac_cv_host+y}
4830then :
4831  printf %s "(cached) " >&6
4832else $as_nop
4833  if test "x$host_alias" = x; then
4834  ac_cv_host=$ac_cv_build
4835else
4836  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4837    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4838fi
4839
4840fi
4841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4842printf "%s\n" "$ac_cv_host" >&6; }
4843case $ac_cv_host in
4844*-*-*) ;;
4845*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4846esac
4847host=$ac_cv_host
4848ac_save_IFS=$IFS; IFS='-'
4849set x $ac_cv_host
4850shift
4851host_cpu=$1
4852host_vendor=$2
4853shift; shift
4854# Remember, the first character of IFS is used to create $*,
4855# except with old shells:
4856host_os=$*
4857IFS=$ac_save_IFS
4858case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4859
4860
4861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4862printf %s "checking for a sed that does not truncate output... " >&6; }
4863if test ${ac_cv_path_SED+y}
4864then :
4865  printf %s "(cached) " >&6
4866else $as_nop
4867            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4868     for ac_i in 1 2 3 4 5 6 7; do
4869       ac_script="$ac_script$as_nl$ac_script"
4870     done
4871     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4872     { ac_script=; unset ac_script;}
4873     if test -z "$SED"; then
4874  ac_path_SED_found=false
4875  # Loop through the user's path and test for each of PROGNAME-LIST
4876  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877for as_dir in $PATH
4878do
4879  IFS=$as_save_IFS
4880  case $as_dir in #(((
4881    '') as_dir=./ ;;
4882    */) ;;
4883    *) as_dir=$as_dir/ ;;
4884  esac
4885    for ac_prog in sed gsed
4886   do
4887    for ac_exec_ext in '' $ac_executable_extensions; do
4888      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4889      as_fn_executable_p "$ac_path_SED" || continue
4890# Check for GNU ac_path_SED and select it if it is found.
4891  # Check for GNU $ac_path_SED
4892case `"$ac_path_SED" --version 2>&1` in
4893*GNU*)
4894  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4895*)
4896  ac_count=0
4897  printf %s 0123456789 >"conftest.in"
4898  while :
4899  do
4900    cat "conftest.in" "conftest.in" >"conftest.tmp"
4901    mv "conftest.tmp" "conftest.in"
4902    cp "conftest.in" "conftest.nl"
4903    printf "%s\n" '' >> "conftest.nl"
4904    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4905    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4906    as_fn_arith $ac_count + 1 && ac_count=$as_val
4907    if test $ac_count -gt ${ac_path_SED_max-0}; then
4908      # Best one so far, save it but keep looking for a better one
4909      ac_cv_path_SED="$ac_path_SED"
4910      ac_path_SED_max=$ac_count
4911    fi
4912    # 10*(2^10) chars as input seems more than enough
4913    test $ac_count -gt 10 && break
4914  done
4915  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4916esac
4917
4918      $ac_path_SED_found && break 3
4919    done
4920  done
4921  done
4922IFS=$as_save_IFS
4923  if test -z "$ac_cv_path_SED"; then
4924    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4925  fi
4926else
4927  ac_cv_path_SED=$SED
4928fi
4929
4930fi
4931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4932printf "%s\n" "$ac_cv_path_SED" >&6; }
4933 SED="$ac_cv_path_SED"
4934  rm -f conftest.sed
4935
4936
4937
4938
4939
4940
4941# Check whether --enable-selective-werror was given.
4942if test ${enable_selective_werror+y}
4943then :
4944  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4945else $as_nop
4946  SELECTIVE_WERROR=yes
4947fi
4948
4949
4950
4951
4952
4953# -v is too short to test reliably with XORG_TESTSET_CFLAG
4954if test "x$SUNCC" = "xyes"; then
4955    BASE_CFLAGS="-v"
4956else
4957    BASE_CFLAGS=""
4958fi
4959
4960# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974xorg_testset_save_CFLAGS="$CFLAGS"
4975
4976if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4977	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4978	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4979printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4980if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4981then :
4982  printf %s "(cached) " >&6
4983else $as_nop
4984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4985/* end confdefs.h.  */
4986int i;
4987_ACEOF
4988if ac_fn_c_try_compile "$LINENO"
4989then :
4990  xorg_cv_cc_flag_unknown_warning_option=yes
4991else $as_nop
4992  xorg_cv_cc_flag_unknown_warning_option=no
4993fi
4994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4995fi
4996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4997printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4998	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4999	CFLAGS="$xorg_testset_save_CFLAGS"
5000fi
5001
5002if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5003	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5004		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5005	fi
5006	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5007	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5008printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5009if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5010then :
5011  printf %s "(cached) " >&6
5012else $as_nop
5013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014/* end confdefs.h.  */
5015int i;
5016_ACEOF
5017if ac_fn_c_try_compile "$LINENO"
5018then :
5019  xorg_cv_cc_flag_unused_command_line_argument=yes
5020else $as_nop
5021  xorg_cv_cc_flag_unused_command_line_argument=no
5022fi
5023rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5024fi
5025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5026printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5027	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5028	CFLAGS="$xorg_testset_save_CFLAGS"
5029fi
5030
5031found="no"
5032
5033	if test $found = "no" ; then
5034		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5035			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5036		fi
5037
5038		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5039			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5040		fi
5041
5042		CFLAGS="$CFLAGS -Wall"
5043
5044		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5045printf %s "checking if $CC supports -Wall... " >&6; }
5046		cacheid=xorg_cv_cc_flag__Wall
5047		if eval test \${$cacheid+y}
5048then :
5049  printf %s "(cached) " >&6
5050else $as_nop
5051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052/* end confdefs.h.  */
5053int i;
5054int
5055main (void)
5056{
5057
5058  ;
5059  return 0;
5060}
5061_ACEOF
5062if ac_fn_c_try_link "$LINENO"
5063then :
5064  eval $cacheid=yes
5065else $as_nop
5066  eval $cacheid=no
5067fi
5068rm -f core conftest.err conftest.$ac_objext conftest.beam \
5069    conftest$ac_exeext conftest.$ac_ext
5070fi
5071
5072
5073		CFLAGS="$xorg_testset_save_CFLAGS"
5074
5075		eval supported=\$$cacheid
5076		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5077printf "%s\n" "$supported" >&6; }
5078		if test "$supported" = "yes" ; then
5079			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5080			found="yes"
5081		fi
5082	fi
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098xorg_testset_save_CFLAGS="$CFLAGS"
5099
5100if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5101	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5102	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5103printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5104if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5105then :
5106  printf %s "(cached) " >&6
5107else $as_nop
5108  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109/* end confdefs.h.  */
5110int i;
5111_ACEOF
5112if ac_fn_c_try_compile "$LINENO"
5113then :
5114  xorg_cv_cc_flag_unknown_warning_option=yes
5115else $as_nop
5116  xorg_cv_cc_flag_unknown_warning_option=no
5117fi
5118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5119fi
5120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5121printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5122	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5123	CFLAGS="$xorg_testset_save_CFLAGS"
5124fi
5125
5126if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5127	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5128		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5129	fi
5130	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5131	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5132printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5133if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5134then :
5135  printf %s "(cached) " >&6
5136else $as_nop
5137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5138/* end confdefs.h.  */
5139int i;
5140_ACEOF
5141if ac_fn_c_try_compile "$LINENO"
5142then :
5143  xorg_cv_cc_flag_unused_command_line_argument=yes
5144else $as_nop
5145  xorg_cv_cc_flag_unused_command_line_argument=no
5146fi
5147rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5148fi
5149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5150printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5151	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5152	CFLAGS="$xorg_testset_save_CFLAGS"
5153fi
5154
5155found="no"
5156
5157	if test $found = "no" ; then
5158		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5159			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5160		fi
5161
5162		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5163			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5164		fi
5165
5166		CFLAGS="$CFLAGS -Wpointer-arith"
5167
5168		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5169printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5170		cacheid=xorg_cv_cc_flag__Wpointer_arith
5171		if eval test \${$cacheid+y}
5172then :
5173  printf %s "(cached) " >&6
5174else $as_nop
5175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176/* end confdefs.h.  */
5177int i;
5178int
5179main (void)
5180{
5181
5182  ;
5183  return 0;
5184}
5185_ACEOF
5186if ac_fn_c_try_link "$LINENO"
5187then :
5188  eval $cacheid=yes
5189else $as_nop
5190  eval $cacheid=no
5191fi
5192rm -f core conftest.err conftest.$ac_objext conftest.beam \
5193    conftest$ac_exeext conftest.$ac_ext
5194fi
5195
5196
5197		CFLAGS="$xorg_testset_save_CFLAGS"
5198
5199		eval supported=\$$cacheid
5200		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5201printf "%s\n" "$supported" >&6; }
5202		if test "$supported" = "yes" ; then
5203			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5204			found="yes"
5205		fi
5206	fi
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222xorg_testset_save_CFLAGS="$CFLAGS"
5223
5224if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5225	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5226	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5227printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5228if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5229then :
5230  printf %s "(cached) " >&6
5231else $as_nop
5232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233/* end confdefs.h.  */
5234int i;
5235_ACEOF
5236if ac_fn_c_try_compile "$LINENO"
5237then :
5238  xorg_cv_cc_flag_unknown_warning_option=yes
5239else $as_nop
5240  xorg_cv_cc_flag_unknown_warning_option=no
5241fi
5242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5243fi
5244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5245printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5246	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5247	CFLAGS="$xorg_testset_save_CFLAGS"
5248fi
5249
5250if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5251	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5252		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5253	fi
5254	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5255	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5256printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5257if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5258then :
5259  printf %s "(cached) " >&6
5260else $as_nop
5261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262/* end confdefs.h.  */
5263int i;
5264_ACEOF
5265if ac_fn_c_try_compile "$LINENO"
5266then :
5267  xorg_cv_cc_flag_unused_command_line_argument=yes
5268else $as_nop
5269  xorg_cv_cc_flag_unused_command_line_argument=no
5270fi
5271rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5272fi
5273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5274printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5275	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5276	CFLAGS="$xorg_testset_save_CFLAGS"
5277fi
5278
5279found="no"
5280
5281	if test $found = "no" ; then
5282		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5283			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5284		fi
5285
5286		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5287			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5288		fi
5289
5290		CFLAGS="$CFLAGS -Wmissing-declarations"
5291
5292		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5293printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5294		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5295		if eval test \${$cacheid+y}
5296then :
5297  printf %s "(cached) " >&6
5298else $as_nop
5299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300/* end confdefs.h.  */
5301int i;
5302int
5303main (void)
5304{
5305
5306  ;
5307  return 0;
5308}
5309_ACEOF
5310if ac_fn_c_try_link "$LINENO"
5311then :
5312  eval $cacheid=yes
5313else $as_nop
5314  eval $cacheid=no
5315fi
5316rm -f core conftest.err conftest.$ac_objext conftest.beam \
5317    conftest$ac_exeext conftest.$ac_ext
5318fi
5319
5320
5321		CFLAGS="$xorg_testset_save_CFLAGS"
5322
5323		eval supported=\$$cacheid
5324		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5325printf "%s\n" "$supported" >&6; }
5326		if test "$supported" = "yes" ; then
5327			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5328			found="yes"
5329		fi
5330	fi
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346xorg_testset_save_CFLAGS="$CFLAGS"
5347
5348if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5349	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5350	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5351printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5352if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5353then :
5354  printf %s "(cached) " >&6
5355else $as_nop
5356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357/* end confdefs.h.  */
5358int i;
5359_ACEOF
5360if ac_fn_c_try_compile "$LINENO"
5361then :
5362  xorg_cv_cc_flag_unknown_warning_option=yes
5363else $as_nop
5364  xorg_cv_cc_flag_unknown_warning_option=no
5365fi
5366rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5367fi
5368{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5369printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5370	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5371	CFLAGS="$xorg_testset_save_CFLAGS"
5372fi
5373
5374if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5375	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5376		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5377	fi
5378	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5379	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5380printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5381if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5382then :
5383  printf %s "(cached) " >&6
5384else $as_nop
5385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386/* end confdefs.h.  */
5387int i;
5388_ACEOF
5389if ac_fn_c_try_compile "$LINENO"
5390then :
5391  xorg_cv_cc_flag_unused_command_line_argument=yes
5392else $as_nop
5393  xorg_cv_cc_flag_unused_command_line_argument=no
5394fi
5395rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5396fi
5397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5398printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5399	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5400	CFLAGS="$xorg_testset_save_CFLAGS"
5401fi
5402
5403found="no"
5404
5405	if test $found = "no" ; then
5406		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5407			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5408		fi
5409
5410		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5411			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5412		fi
5413
5414		CFLAGS="$CFLAGS -Wformat=2"
5415
5416		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5417printf %s "checking if $CC supports -Wformat=2... " >&6; }
5418		cacheid=xorg_cv_cc_flag__Wformat_2
5419		if eval test \${$cacheid+y}
5420then :
5421  printf %s "(cached) " >&6
5422else $as_nop
5423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424/* end confdefs.h.  */
5425int i;
5426int
5427main (void)
5428{
5429
5430  ;
5431  return 0;
5432}
5433_ACEOF
5434if ac_fn_c_try_link "$LINENO"
5435then :
5436  eval $cacheid=yes
5437else $as_nop
5438  eval $cacheid=no
5439fi
5440rm -f core conftest.err conftest.$ac_objext conftest.beam \
5441    conftest$ac_exeext conftest.$ac_ext
5442fi
5443
5444
5445		CFLAGS="$xorg_testset_save_CFLAGS"
5446
5447		eval supported=\$$cacheid
5448		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5449printf "%s\n" "$supported" >&6; }
5450		if test "$supported" = "yes" ; then
5451			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5452			found="yes"
5453		fi
5454	fi
5455
5456	if test $found = "no" ; then
5457		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5458			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5459		fi
5460
5461		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5462			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5463		fi
5464
5465		CFLAGS="$CFLAGS -Wformat"
5466
5467		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5468printf %s "checking if $CC supports -Wformat... " >&6; }
5469		cacheid=xorg_cv_cc_flag__Wformat
5470		if eval test \${$cacheid+y}
5471then :
5472  printf %s "(cached) " >&6
5473else $as_nop
5474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475/* end confdefs.h.  */
5476int i;
5477int
5478main (void)
5479{
5480
5481  ;
5482  return 0;
5483}
5484_ACEOF
5485if ac_fn_c_try_link "$LINENO"
5486then :
5487  eval $cacheid=yes
5488else $as_nop
5489  eval $cacheid=no
5490fi
5491rm -f core conftest.err conftest.$ac_objext conftest.beam \
5492    conftest$ac_exeext conftest.$ac_ext
5493fi
5494
5495
5496		CFLAGS="$xorg_testset_save_CFLAGS"
5497
5498		eval supported=\$$cacheid
5499		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5500printf "%s\n" "$supported" >&6; }
5501		if test "$supported" = "yes" ; then
5502			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5503			found="yes"
5504		fi
5505	fi
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523xorg_testset_save_CFLAGS="$CFLAGS"
5524
5525if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5526	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5527	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5528printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5529if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5530then :
5531  printf %s "(cached) " >&6
5532else $as_nop
5533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534/* end confdefs.h.  */
5535int i;
5536_ACEOF
5537if ac_fn_c_try_compile "$LINENO"
5538then :
5539  xorg_cv_cc_flag_unknown_warning_option=yes
5540else $as_nop
5541  xorg_cv_cc_flag_unknown_warning_option=no
5542fi
5543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5544fi
5545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5546printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5547	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5548	CFLAGS="$xorg_testset_save_CFLAGS"
5549fi
5550
5551if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5552	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5553		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5554	fi
5555	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5556	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5557printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5558if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5559then :
5560  printf %s "(cached) " >&6
5561else $as_nop
5562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563/* end confdefs.h.  */
5564int i;
5565_ACEOF
5566if ac_fn_c_try_compile "$LINENO"
5567then :
5568  xorg_cv_cc_flag_unused_command_line_argument=yes
5569else $as_nop
5570  xorg_cv_cc_flag_unused_command_line_argument=no
5571fi
5572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5573fi
5574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5575printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5576	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5577	CFLAGS="$xorg_testset_save_CFLAGS"
5578fi
5579
5580found="no"
5581
5582	if test $found = "no" ; then
5583		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5584			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5585		fi
5586
5587		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5588			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5589		fi
5590
5591		CFLAGS="$CFLAGS -Wstrict-prototypes"
5592
5593		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5594printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5595		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5596		if eval test \${$cacheid+y}
5597then :
5598  printf %s "(cached) " >&6
5599else $as_nop
5600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601/* end confdefs.h.  */
5602int i;
5603int
5604main (void)
5605{
5606
5607  ;
5608  return 0;
5609}
5610_ACEOF
5611if ac_fn_c_try_link "$LINENO"
5612then :
5613  eval $cacheid=yes
5614else $as_nop
5615  eval $cacheid=no
5616fi
5617rm -f core conftest.err conftest.$ac_objext conftest.beam \
5618    conftest$ac_exeext conftest.$ac_ext
5619fi
5620
5621
5622		CFLAGS="$xorg_testset_save_CFLAGS"
5623
5624		eval supported=\$$cacheid
5625		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5626printf "%s\n" "$supported" >&6; }
5627		if test "$supported" = "yes" ; then
5628			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5629			found="yes"
5630		fi
5631	fi
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647xorg_testset_save_CFLAGS="$CFLAGS"
5648
5649if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5650	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5651	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5652printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5653if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5654then :
5655  printf %s "(cached) " >&6
5656else $as_nop
5657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658/* end confdefs.h.  */
5659int i;
5660_ACEOF
5661if ac_fn_c_try_compile "$LINENO"
5662then :
5663  xorg_cv_cc_flag_unknown_warning_option=yes
5664else $as_nop
5665  xorg_cv_cc_flag_unknown_warning_option=no
5666fi
5667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5668fi
5669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5670printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5671	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5672	CFLAGS="$xorg_testset_save_CFLAGS"
5673fi
5674
5675if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5676	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5677		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5678	fi
5679	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5680	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5681printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5682if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5683then :
5684  printf %s "(cached) " >&6
5685else $as_nop
5686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687/* end confdefs.h.  */
5688int i;
5689_ACEOF
5690if ac_fn_c_try_compile "$LINENO"
5691then :
5692  xorg_cv_cc_flag_unused_command_line_argument=yes
5693else $as_nop
5694  xorg_cv_cc_flag_unused_command_line_argument=no
5695fi
5696rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5697fi
5698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5699printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5700	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5701	CFLAGS="$xorg_testset_save_CFLAGS"
5702fi
5703
5704found="no"
5705
5706	if test $found = "no" ; then
5707		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5708			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5709		fi
5710
5711		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5712			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5713		fi
5714
5715		CFLAGS="$CFLAGS -Wmissing-prototypes"
5716
5717		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5718printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5719		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5720		if eval test \${$cacheid+y}
5721then :
5722  printf %s "(cached) " >&6
5723else $as_nop
5724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5725/* end confdefs.h.  */
5726int i;
5727int
5728main (void)
5729{
5730
5731  ;
5732  return 0;
5733}
5734_ACEOF
5735if ac_fn_c_try_link "$LINENO"
5736then :
5737  eval $cacheid=yes
5738else $as_nop
5739  eval $cacheid=no
5740fi
5741rm -f core conftest.err conftest.$ac_objext conftest.beam \
5742    conftest$ac_exeext conftest.$ac_ext
5743fi
5744
5745
5746		CFLAGS="$xorg_testset_save_CFLAGS"
5747
5748		eval supported=\$$cacheid
5749		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5750printf "%s\n" "$supported" >&6; }
5751		if test "$supported" = "yes" ; then
5752			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5753			found="yes"
5754		fi
5755	fi
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771xorg_testset_save_CFLAGS="$CFLAGS"
5772
5773if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5774	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5775	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5776printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5777if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5778then :
5779  printf %s "(cached) " >&6
5780else $as_nop
5781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5782/* end confdefs.h.  */
5783int i;
5784_ACEOF
5785if ac_fn_c_try_compile "$LINENO"
5786then :
5787  xorg_cv_cc_flag_unknown_warning_option=yes
5788else $as_nop
5789  xorg_cv_cc_flag_unknown_warning_option=no
5790fi
5791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5792fi
5793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5794printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5795	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5796	CFLAGS="$xorg_testset_save_CFLAGS"
5797fi
5798
5799if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5800	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5801		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5802	fi
5803	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5804	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5805printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5806if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5807then :
5808  printf %s "(cached) " >&6
5809else $as_nop
5810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811/* end confdefs.h.  */
5812int i;
5813_ACEOF
5814if ac_fn_c_try_compile "$LINENO"
5815then :
5816  xorg_cv_cc_flag_unused_command_line_argument=yes
5817else $as_nop
5818  xorg_cv_cc_flag_unused_command_line_argument=no
5819fi
5820rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5821fi
5822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5823printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5824	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5825	CFLAGS="$xorg_testset_save_CFLAGS"
5826fi
5827
5828found="no"
5829
5830	if test $found = "no" ; then
5831		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5832			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5833		fi
5834
5835		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5836			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5837		fi
5838
5839		CFLAGS="$CFLAGS -Wnested-externs"
5840
5841		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5842printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5843		cacheid=xorg_cv_cc_flag__Wnested_externs
5844		if eval test \${$cacheid+y}
5845then :
5846  printf %s "(cached) " >&6
5847else $as_nop
5848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849/* end confdefs.h.  */
5850int i;
5851int
5852main (void)
5853{
5854
5855  ;
5856  return 0;
5857}
5858_ACEOF
5859if ac_fn_c_try_link "$LINENO"
5860then :
5861  eval $cacheid=yes
5862else $as_nop
5863  eval $cacheid=no
5864fi
5865rm -f core conftest.err conftest.$ac_objext conftest.beam \
5866    conftest$ac_exeext conftest.$ac_ext
5867fi
5868
5869
5870		CFLAGS="$xorg_testset_save_CFLAGS"
5871
5872		eval supported=\$$cacheid
5873		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5874printf "%s\n" "$supported" >&6; }
5875		if test "$supported" = "yes" ; then
5876			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5877			found="yes"
5878		fi
5879	fi
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895xorg_testset_save_CFLAGS="$CFLAGS"
5896
5897if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5898	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5899	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5900printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5901if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5902then :
5903  printf %s "(cached) " >&6
5904else $as_nop
5905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906/* end confdefs.h.  */
5907int i;
5908_ACEOF
5909if ac_fn_c_try_compile "$LINENO"
5910then :
5911  xorg_cv_cc_flag_unknown_warning_option=yes
5912else $as_nop
5913  xorg_cv_cc_flag_unknown_warning_option=no
5914fi
5915rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5916fi
5917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5918printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5919	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5920	CFLAGS="$xorg_testset_save_CFLAGS"
5921fi
5922
5923if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5924	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5925		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5926	fi
5927	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5928	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5929printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5930if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5931then :
5932  printf %s "(cached) " >&6
5933else $as_nop
5934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935/* end confdefs.h.  */
5936int i;
5937_ACEOF
5938if ac_fn_c_try_compile "$LINENO"
5939then :
5940  xorg_cv_cc_flag_unused_command_line_argument=yes
5941else $as_nop
5942  xorg_cv_cc_flag_unused_command_line_argument=no
5943fi
5944rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5945fi
5946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5947printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5948	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5949	CFLAGS="$xorg_testset_save_CFLAGS"
5950fi
5951
5952found="no"
5953
5954	if test $found = "no" ; then
5955		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5956			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5957		fi
5958
5959		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5960			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5961		fi
5962
5963		CFLAGS="$CFLAGS -Wbad-function-cast"
5964
5965		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5966printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5967		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5968		if eval test \${$cacheid+y}
5969then :
5970  printf %s "(cached) " >&6
5971else $as_nop
5972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973/* end confdefs.h.  */
5974int i;
5975int
5976main (void)
5977{
5978
5979  ;
5980  return 0;
5981}
5982_ACEOF
5983if ac_fn_c_try_link "$LINENO"
5984then :
5985  eval $cacheid=yes
5986else $as_nop
5987  eval $cacheid=no
5988fi
5989rm -f core conftest.err conftest.$ac_objext conftest.beam \
5990    conftest$ac_exeext conftest.$ac_ext
5991fi
5992
5993
5994		CFLAGS="$xorg_testset_save_CFLAGS"
5995
5996		eval supported=\$$cacheid
5997		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5998printf "%s\n" "$supported" >&6; }
5999		if test "$supported" = "yes" ; then
6000			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6001			found="yes"
6002		fi
6003	fi
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019xorg_testset_save_CFLAGS="$CFLAGS"
6020
6021if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6022	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6023	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6024printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6025if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6026then :
6027  printf %s "(cached) " >&6
6028else $as_nop
6029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030/* end confdefs.h.  */
6031int i;
6032_ACEOF
6033if ac_fn_c_try_compile "$LINENO"
6034then :
6035  xorg_cv_cc_flag_unknown_warning_option=yes
6036else $as_nop
6037  xorg_cv_cc_flag_unknown_warning_option=no
6038fi
6039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6040fi
6041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6042printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6043	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6044	CFLAGS="$xorg_testset_save_CFLAGS"
6045fi
6046
6047if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6048	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6049		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6050	fi
6051	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6052	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6053printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6054if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6055then :
6056  printf %s "(cached) " >&6
6057else $as_nop
6058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059/* end confdefs.h.  */
6060int i;
6061_ACEOF
6062if ac_fn_c_try_compile "$LINENO"
6063then :
6064  xorg_cv_cc_flag_unused_command_line_argument=yes
6065else $as_nop
6066  xorg_cv_cc_flag_unused_command_line_argument=no
6067fi
6068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6069fi
6070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6071printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6072	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6073	CFLAGS="$xorg_testset_save_CFLAGS"
6074fi
6075
6076found="no"
6077
6078	if test $found = "no" ; then
6079		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6080			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6081		fi
6082
6083		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6084			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6085		fi
6086
6087		CFLAGS="$CFLAGS -Wold-style-definition"
6088
6089		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6090printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6091		cacheid=xorg_cv_cc_flag__Wold_style_definition
6092		if eval test \${$cacheid+y}
6093then :
6094  printf %s "(cached) " >&6
6095else $as_nop
6096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097/* end confdefs.h.  */
6098int i;
6099int
6100main (void)
6101{
6102
6103  ;
6104  return 0;
6105}
6106_ACEOF
6107if ac_fn_c_try_link "$LINENO"
6108then :
6109  eval $cacheid=yes
6110else $as_nop
6111  eval $cacheid=no
6112fi
6113rm -f core conftest.err conftest.$ac_objext conftest.beam \
6114    conftest$ac_exeext conftest.$ac_ext
6115fi
6116
6117
6118		CFLAGS="$xorg_testset_save_CFLAGS"
6119
6120		eval supported=\$$cacheid
6121		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6122printf "%s\n" "$supported" >&6; }
6123		if test "$supported" = "yes" ; then
6124			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6125			found="yes"
6126		fi
6127	fi
6128
6129	if test $found = "no" ; then
6130		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6131			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6132		fi
6133
6134		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6135			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6136		fi
6137
6138		CFLAGS="$CFLAGS -fd"
6139
6140		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6141printf %s "checking if $CC supports -fd... " >&6; }
6142		cacheid=xorg_cv_cc_flag__fd
6143		if eval test \${$cacheid+y}
6144then :
6145  printf %s "(cached) " >&6
6146else $as_nop
6147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6148/* end confdefs.h.  */
6149int i;
6150int
6151main (void)
6152{
6153
6154  ;
6155  return 0;
6156}
6157_ACEOF
6158if ac_fn_c_try_link "$LINENO"
6159then :
6160  eval $cacheid=yes
6161else $as_nop
6162  eval $cacheid=no
6163fi
6164rm -f core conftest.err conftest.$ac_objext conftest.beam \
6165    conftest$ac_exeext conftest.$ac_ext
6166fi
6167
6168
6169		CFLAGS="$xorg_testset_save_CFLAGS"
6170
6171		eval supported=\$$cacheid
6172		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6173printf "%s\n" "$supported" >&6; }
6174		if test "$supported" = "yes" ; then
6175			BASE_CFLAGS="$BASE_CFLAGS -fd"
6176			found="yes"
6177		fi
6178	fi
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194xorg_testset_save_CFLAGS="$CFLAGS"
6195
6196if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6197	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6198	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6199printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6200if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6201then :
6202  printf %s "(cached) " >&6
6203else $as_nop
6204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6205/* end confdefs.h.  */
6206int i;
6207_ACEOF
6208if ac_fn_c_try_compile "$LINENO"
6209then :
6210  xorg_cv_cc_flag_unknown_warning_option=yes
6211else $as_nop
6212  xorg_cv_cc_flag_unknown_warning_option=no
6213fi
6214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6215fi
6216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6217printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6218	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6219	CFLAGS="$xorg_testset_save_CFLAGS"
6220fi
6221
6222if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6223	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6224		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6225	fi
6226	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6227	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6228printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6229if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6230then :
6231  printf %s "(cached) " >&6
6232else $as_nop
6233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6234/* end confdefs.h.  */
6235int i;
6236_ACEOF
6237if ac_fn_c_try_compile "$LINENO"
6238then :
6239  xorg_cv_cc_flag_unused_command_line_argument=yes
6240else $as_nop
6241  xorg_cv_cc_flag_unused_command_line_argument=no
6242fi
6243rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6244fi
6245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6246printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6247	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6248	CFLAGS="$xorg_testset_save_CFLAGS"
6249fi
6250
6251found="no"
6252
6253	if test $found = "no" ; then
6254		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6255			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6256		fi
6257
6258		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6259			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6260		fi
6261
6262		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6263
6264		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6265printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6266		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6267		if eval test \${$cacheid+y}
6268then :
6269  printf %s "(cached) " >&6
6270else $as_nop
6271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272/* end confdefs.h.  */
6273int i;
6274int
6275main (void)
6276{
6277
6278  ;
6279  return 0;
6280}
6281_ACEOF
6282if ac_fn_c_try_link "$LINENO"
6283then :
6284  eval $cacheid=yes
6285else $as_nop
6286  eval $cacheid=no
6287fi
6288rm -f core conftest.err conftest.$ac_objext conftest.beam \
6289    conftest$ac_exeext conftest.$ac_ext
6290fi
6291
6292
6293		CFLAGS="$xorg_testset_save_CFLAGS"
6294
6295		eval supported=\$$cacheid
6296		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6297printf "%s\n" "$supported" >&6; }
6298		if test "$supported" = "yes" ; then
6299			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6300			found="yes"
6301		fi
6302	fi
6303
6304
6305
6306
6307
6308# This chunk adds additional warnings that could catch undesired effects.
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322xorg_testset_save_CFLAGS="$CFLAGS"
6323
6324if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6325	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6326	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6327printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6328if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6329then :
6330  printf %s "(cached) " >&6
6331else $as_nop
6332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333/* end confdefs.h.  */
6334int i;
6335_ACEOF
6336if ac_fn_c_try_compile "$LINENO"
6337then :
6338  xorg_cv_cc_flag_unknown_warning_option=yes
6339else $as_nop
6340  xorg_cv_cc_flag_unknown_warning_option=no
6341fi
6342rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6343fi
6344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6345printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6346	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6347	CFLAGS="$xorg_testset_save_CFLAGS"
6348fi
6349
6350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6351	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6352		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6353	fi
6354	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6355	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6356printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6357if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6358then :
6359  printf %s "(cached) " >&6
6360else $as_nop
6361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362/* end confdefs.h.  */
6363int i;
6364_ACEOF
6365if ac_fn_c_try_compile "$LINENO"
6366then :
6367  xorg_cv_cc_flag_unused_command_line_argument=yes
6368else $as_nop
6369  xorg_cv_cc_flag_unused_command_line_argument=no
6370fi
6371rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6372fi
6373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6374printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6375	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6376	CFLAGS="$xorg_testset_save_CFLAGS"
6377fi
6378
6379found="no"
6380
6381	if test $found = "no" ; then
6382		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6383			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6384		fi
6385
6386		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6387			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6388		fi
6389
6390		CFLAGS="$CFLAGS -Wunused"
6391
6392		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6393printf %s "checking if $CC supports -Wunused... " >&6; }
6394		cacheid=xorg_cv_cc_flag__Wunused
6395		if eval test \${$cacheid+y}
6396then :
6397  printf %s "(cached) " >&6
6398else $as_nop
6399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400/* end confdefs.h.  */
6401int i;
6402int
6403main (void)
6404{
6405
6406  ;
6407  return 0;
6408}
6409_ACEOF
6410if ac_fn_c_try_link "$LINENO"
6411then :
6412  eval $cacheid=yes
6413else $as_nop
6414  eval $cacheid=no
6415fi
6416rm -f core conftest.err conftest.$ac_objext conftest.beam \
6417    conftest$ac_exeext conftest.$ac_ext
6418fi
6419
6420
6421		CFLAGS="$xorg_testset_save_CFLAGS"
6422
6423		eval supported=\$$cacheid
6424		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6425printf "%s\n" "$supported" >&6; }
6426		if test "$supported" = "yes" ; then
6427			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6428			found="yes"
6429		fi
6430	fi
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446xorg_testset_save_CFLAGS="$CFLAGS"
6447
6448if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6449	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6450	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6451printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6452if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6453then :
6454  printf %s "(cached) " >&6
6455else $as_nop
6456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457/* end confdefs.h.  */
6458int i;
6459_ACEOF
6460if ac_fn_c_try_compile "$LINENO"
6461then :
6462  xorg_cv_cc_flag_unknown_warning_option=yes
6463else $as_nop
6464  xorg_cv_cc_flag_unknown_warning_option=no
6465fi
6466rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6467fi
6468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6469printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6470	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6471	CFLAGS="$xorg_testset_save_CFLAGS"
6472fi
6473
6474if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6475	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6476		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6477	fi
6478	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6479	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6480printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6481if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6482then :
6483  printf %s "(cached) " >&6
6484else $as_nop
6485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6486/* end confdefs.h.  */
6487int i;
6488_ACEOF
6489if ac_fn_c_try_compile "$LINENO"
6490then :
6491  xorg_cv_cc_flag_unused_command_line_argument=yes
6492else $as_nop
6493  xorg_cv_cc_flag_unused_command_line_argument=no
6494fi
6495rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6496fi
6497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6498printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6499	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6500	CFLAGS="$xorg_testset_save_CFLAGS"
6501fi
6502
6503found="no"
6504
6505	if test $found = "no" ; then
6506		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6507			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6508		fi
6509
6510		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6511			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6512		fi
6513
6514		CFLAGS="$CFLAGS -Wuninitialized"
6515
6516		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6517printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6518		cacheid=xorg_cv_cc_flag__Wuninitialized
6519		if eval test \${$cacheid+y}
6520then :
6521  printf %s "(cached) " >&6
6522else $as_nop
6523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524/* end confdefs.h.  */
6525int i;
6526int
6527main (void)
6528{
6529
6530  ;
6531  return 0;
6532}
6533_ACEOF
6534if ac_fn_c_try_link "$LINENO"
6535then :
6536  eval $cacheid=yes
6537else $as_nop
6538  eval $cacheid=no
6539fi
6540rm -f core conftest.err conftest.$ac_objext conftest.beam \
6541    conftest$ac_exeext conftest.$ac_ext
6542fi
6543
6544
6545		CFLAGS="$xorg_testset_save_CFLAGS"
6546
6547		eval supported=\$$cacheid
6548		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6549printf "%s\n" "$supported" >&6; }
6550		if test "$supported" = "yes" ; then
6551			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6552			found="yes"
6553		fi
6554	fi
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570xorg_testset_save_CFLAGS="$CFLAGS"
6571
6572if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6573	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6574	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6575printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6576if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6577then :
6578  printf %s "(cached) " >&6
6579else $as_nop
6580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581/* end confdefs.h.  */
6582int i;
6583_ACEOF
6584if ac_fn_c_try_compile "$LINENO"
6585then :
6586  xorg_cv_cc_flag_unknown_warning_option=yes
6587else $as_nop
6588  xorg_cv_cc_flag_unknown_warning_option=no
6589fi
6590rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6591fi
6592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6593printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6594	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6595	CFLAGS="$xorg_testset_save_CFLAGS"
6596fi
6597
6598if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6599	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6600		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6601	fi
6602	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6603	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6604printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6605if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6606then :
6607  printf %s "(cached) " >&6
6608else $as_nop
6609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610/* end confdefs.h.  */
6611int i;
6612_ACEOF
6613if ac_fn_c_try_compile "$LINENO"
6614then :
6615  xorg_cv_cc_flag_unused_command_line_argument=yes
6616else $as_nop
6617  xorg_cv_cc_flag_unused_command_line_argument=no
6618fi
6619rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6620fi
6621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6622printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6623	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6624	CFLAGS="$xorg_testset_save_CFLAGS"
6625fi
6626
6627found="no"
6628
6629	if test $found = "no" ; then
6630		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6631			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6632		fi
6633
6634		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6635			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6636		fi
6637
6638		CFLAGS="$CFLAGS -Wshadow"
6639
6640		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6641printf %s "checking if $CC supports -Wshadow... " >&6; }
6642		cacheid=xorg_cv_cc_flag__Wshadow
6643		if eval test \${$cacheid+y}
6644then :
6645  printf %s "(cached) " >&6
6646else $as_nop
6647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6648/* end confdefs.h.  */
6649int i;
6650int
6651main (void)
6652{
6653
6654  ;
6655  return 0;
6656}
6657_ACEOF
6658if ac_fn_c_try_link "$LINENO"
6659then :
6660  eval $cacheid=yes
6661else $as_nop
6662  eval $cacheid=no
6663fi
6664rm -f core conftest.err conftest.$ac_objext conftest.beam \
6665    conftest$ac_exeext conftest.$ac_ext
6666fi
6667
6668
6669		CFLAGS="$xorg_testset_save_CFLAGS"
6670
6671		eval supported=\$$cacheid
6672		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6673printf "%s\n" "$supported" >&6; }
6674		if test "$supported" = "yes" ; then
6675			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6676			found="yes"
6677		fi
6678	fi
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694xorg_testset_save_CFLAGS="$CFLAGS"
6695
6696if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6697	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6698	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6699printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6700if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6701then :
6702  printf %s "(cached) " >&6
6703else $as_nop
6704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705/* end confdefs.h.  */
6706int i;
6707_ACEOF
6708if ac_fn_c_try_compile "$LINENO"
6709then :
6710  xorg_cv_cc_flag_unknown_warning_option=yes
6711else $as_nop
6712  xorg_cv_cc_flag_unknown_warning_option=no
6713fi
6714rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6715fi
6716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6717printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6718	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6719	CFLAGS="$xorg_testset_save_CFLAGS"
6720fi
6721
6722if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6723	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6724		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6725	fi
6726	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6727	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6728printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6729if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6730then :
6731  printf %s "(cached) " >&6
6732else $as_nop
6733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734/* end confdefs.h.  */
6735int i;
6736_ACEOF
6737if ac_fn_c_try_compile "$LINENO"
6738then :
6739  xorg_cv_cc_flag_unused_command_line_argument=yes
6740else $as_nop
6741  xorg_cv_cc_flag_unused_command_line_argument=no
6742fi
6743rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6744fi
6745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6746printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6747	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6748	CFLAGS="$xorg_testset_save_CFLAGS"
6749fi
6750
6751found="no"
6752
6753	if test $found = "no" ; then
6754		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6755			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6756		fi
6757
6758		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6759			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6760		fi
6761
6762		CFLAGS="$CFLAGS -Wmissing-noreturn"
6763
6764		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6765printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6766		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6767		if eval test \${$cacheid+y}
6768then :
6769  printf %s "(cached) " >&6
6770else $as_nop
6771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772/* end confdefs.h.  */
6773int i;
6774int
6775main (void)
6776{
6777
6778  ;
6779  return 0;
6780}
6781_ACEOF
6782if ac_fn_c_try_link "$LINENO"
6783then :
6784  eval $cacheid=yes
6785else $as_nop
6786  eval $cacheid=no
6787fi
6788rm -f core conftest.err conftest.$ac_objext conftest.beam \
6789    conftest$ac_exeext conftest.$ac_ext
6790fi
6791
6792
6793		CFLAGS="$xorg_testset_save_CFLAGS"
6794
6795		eval supported=\$$cacheid
6796		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6797printf "%s\n" "$supported" >&6; }
6798		if test "$supported" = "yes" ; then
6799			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6800			found="yes"
6801		fi
6802	fi
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818xorg_testset_save_CFLAGS="$CFLAGS"
6819
6820if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6821	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6822	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6823printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6824if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6825then :
6826  printf %s "(cached) " >&6
6827else $as_nop
6828  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829/* end confdefs.h.  */
6830int i;
6831_ACEOF
6832if ac_fn_c_try_compile "$LINENO"
6833then :
6834  xorg_cv_cc_flag_unknown_warning_option=yes
6835else $as_nop
6836  xorg_cv_cc_flag_unknown_warning_option=no
6837fi
6838rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6839fi
6840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6841printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6842	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6843	CFLAGS="$xorg_testset_save_CFLAGS"
6844fi
6845
6846if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6847	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6848		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6849	fi
6850	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6851	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6852printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6853if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6854then :
6855  printf %s "(cached) " >&6
6856else $as_nop
6857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858/* end confdefs.h.  */
6859int i;
6860_ACEOF
6861if ac_fn_c_try_compile "$LINENO"
6862then :
6863  xorg_cv_cc_flag_unused_command_line_argument=yes
6864else $as_nop
6865  xorg_cv_cc_flag_unused_command_line_argument=no
6866fi
6867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6868fi
6869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6870printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6871	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6872	CFLAGS="$xorg_testset_save_CFLAGS"
6873fi
6874
6875found="no"
6876
6877	if test $found = "no" ; then
6878		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6879			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6880		fi
6881
6882		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6883			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6884		fi
6885
6886		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6887
6888		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6889printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6890		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6891		if eval test \${$cacheid+y}
6892then :
6893  printf %s "(cached) " >&6
6894else $as_nop
6895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896/* end confdefs.h.  */
6897int i;
6898int
6899main (void)
6900{
6901
6902  ;
6903  return 0;
6904}
6905_ACEOF
6906if ac_fn_c_try_link "$LINENO"
6907then :
6908  eval $cacheid=yes
6909else $as_nop
6910  eval $cacheid=no
6911fi
6912rm -f core conftest.err conftest.$ac_objext conftest.beam \
6913    conftest$ac_exeext conftest.$ac_ext
6914fi
6915
6916
6917		CFLAGS="$xorg_testset_save_CFLAGS"
6918
6919		eval supported=\$$cacheid
6920		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6921printf "%s\n" "$supported" >&6; }
6922		if test "$supported" = "yes" ; then
6923			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6924			found="yes"
6925		fi
6926	fi
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942xorg_testset_save_CFLAGS="$CFLAGS"
6943
6944if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6945	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6946	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6947printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6948if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6949then :
6950  printf %s "(cached) " >&6
6951else $as_nop
6952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953/* end confdefs.h.  */
6954int i;
6955_ACEOF
6956if ac_fn_c_try_compile "$LINENO"
6957then :
6958  xorg_cv_cc_flag_unknown_warning_option=yes
6959else $as_nop
6960  xorg_cv_cc_flag_unknown_warning_option=no
6961fi
6962rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6963fi
6964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6965printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6966	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6967	CFLAGS="$xorg_testset_save_CFLAGS"
6968fi
6969
6970if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6971	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6972		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6973	fi
6974	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6975	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6976printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6977if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6978then :
6979  printf %s "(cached) " >&6
6980else $as_nop
6981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982/* end confdefs.h.  */
6983int i;
6984_ACEOF
6985if ac_fn_c_try_compile "$LINENO"
6986then :
6987  xorg_cv_cc_flag_unused_command_line_argument=yes
6988else $as_nop
6989  xorg_cv_cc_flag_unused_command_line_argument=no
6990fi
6991rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6992fi
6993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6994printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6995	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6996	CFLAGS="$xorg_testset_save_CFLAGS"
6997fi
6998
6999found="no"
7000
7001	if test $found = "no" ; then
7002		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7003			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7004		fi
7005
7006		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7007			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7008		fi
7009
7010		CFLAGS="$CFLAGS -Wredundant-decls"
7011
7012		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7013printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7014		cacheid=xorg_cv_cc_flag__Wredundant_decls
7015		if eval test \${$cacheid+y}
7016then :
7017  printf %s "(cached) " >&6
7018else $as_nop
7019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020/* end confdefs.h.  */
7021int i;
7022int
7023main (void)
7024{
7025
7026  ;
7027  return 0;
7028}
7029_ACEOF
7030if ac_fn_c_try_link "$LINENO"
7031then :
7032  eval $cacheid=yes
7033else $as_nop
7034  eval $cacheid=no
7035fi
7036rm -f core conftest.err conftest.$ac_objext conftest.beam \
7037    conftest$ac_exeext conftest.$ac_ext
7038fi
7039
7040
7041		CFLAGS="$xorg_testset_save_CFLAGS"
7042
7043		eval supported=\$$cacheid
7044		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7045printf "%s\n" "$supported" >&6; }
7046		if test "$supported" = "yes" ; then
7047			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7048			found="yes"
7049		fi
7050	fi
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066xorg_testset_save_CFLAGS="$CFLAGS"
7067
7068if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7069	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7070	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7071printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7072if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7073then :
7074  printf %s "(cached) " >&6
7075else $as_nop
7076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077/* end confdefs.h.  */
7078int i;
7079_ACEOF
7080if ac_fn_c_try_compile "$LINENO"
7081then :
7082  xorg_cv_cc_flag_unknown_warning_option=yes
7083else $as_nop
7084  xorg_cv_cc_flag_unknown_warning_option=no
7085fi
7086rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7087fi
7088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7089printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7090	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7091	CFLAGS="$xorg_testset_save_CFLAGS"
7092fi
7093
7094if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7095	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7096		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7097	fi
7098	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7099	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7100printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7101if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7102then :
7103  printf %s "(cached) " >&6
7104else $as_nop
7105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7106/* end confdefs.h.  */
7107int i;
7108_ACEOF
7109if ac_fn_c_try_compile "$LINENO"
7110then :
7111  xorg_cv_cc_flag_unused_command_line_argument=yes
7112else $as_nop
7113  xorg_cv_cc_flag_unused_command_line_argument=no
7114fi
7115rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7116fi
7117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7118printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7119	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7120	CFLAGS="$xorg_testset_save_CFLAGS"
7121fi
7122
7123found="no"
7124
7125	if test $found = "no" ; then
7126		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7127			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7128		fi
7129
7130		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7131			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7132		fi
7133
7134		CFLAGS="$CFLAGS -Wlogical-op"
7135
7136		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7137printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7138		cacheid=xorg_cv_cc_flag__Wlogical_op
7139		if eval test \${$cacheid+y}
7140then :
7141  printf %s "(cached) " >&6
7142else $as_nop
7143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144/* end confdefs.h.  */
7145int i;
7146int
7147main (void)
7148{
7149
7150  ;
7151  return 0;
7152}
7153_ACEOF
7154if ac_fn_c_try_link "$LINENO"
7155then :
7156  eval $cacheid=yes
7157else $as_nop
7158  eval $cacheid=no
7159fi
7160rm -f core conftest.err conftest.$ac_objext conftest.beam \
7161    conftest$ac_exeext conftest.$ac_ext
7162fi
7163
7164
7165		CFLAGS="$xorg_testset_save_CFLAGS"
7166
7167		eval supported=\$$cacheid
7168		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7169printf "%s\n" "$supported" >&6; }
7170		if test "$supported" = "yes" ; then
7171			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7172			found="yes"
7173		fi
7174	fi
7175
7176
7177
7178# These are currently disabled because they are noisy.  They will be enabled
7179# in the future once the codebase is sufficiently modernized to silence
7180# them.  For now, I don't want them to drown out the other warnings.
7181# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7182# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7183# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7184
7185# Turn some warnings into errors, so we don't accidentally get successful builds
7186# when there are problems that should be fixed.
7187
7188if test "x$SELECTIVE_WERROR" = "xyes" ; then
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202xorg_testset_save_CFLAGS="$CFLAGS"
7203
7204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7205	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7206	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7207printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7208if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7209then :
7210  printf %s "(cached) " >&6
7211else $as_nop
7212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213/* end confdefs.h.  */
7214int i;
7215_ACEOF
7216if ac_fn_c_try_compile "$LINENO"
7217then :
7218  xorg_cv_cc_flag_unknown_warning_option=yes
7219else $as_nop
7220  xorg_cv_cc_flag_unknown_warning_option=no
7221fi
7222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7223fi
7224{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7225printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7226	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7227	CFLAGS="$xorg_testset_save_CFLAGS"
7228fi
7229
7230if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7231	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7232		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7233	fi
7234	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7235	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7236printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7237if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7238then :
7239  printf %s "(cached) " >&6
7240else $as_nop
7241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242/* end confdefs.h.  */
7243int i;
7244_ACEOF
7245if ac_fn_c_try_compile "$LINENO"
7246then :
7247  xorg_cv_cc_flag_unused_command_line_argument=yes
7248else $as_nop
7249  xorg_cv_cc_flag_unused_command_line_argument=no
7250fi
7251rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7252fi
7253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7254printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7255	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7256	CFLAGS="$xorg_testset_save_CFLAGS"
7257fi
7258
7259found="no"
7260
7261	if test $found = "no" ; then
7262		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7263			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7264		fi
7265
7266		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7267			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7268		fi
7269
7270		CFLAGS="$CFLAGS -Werror=implicit"
7271
7272		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7273printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7274		cacheid=xorg_cv_cc_flag__Werror_implicit
7275		if eval test \${$cacheid+y}
7276then :
7277  printf %s "(cached) " >&6
7278else $as_nop
7279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280/* end confdefs.h.  */
7281int i;
7282int
7283main (void)
7284{
7285
7286  ;
7287  return 0;
7288}
7289_ACEOF
7290if ac_fn_c_try_link "$LINENO"
7291then :
7292  eval $cacheid=yes
7293else $as_nop
7294  eval $cacheid=no
7295fi
7296rm -f core conftest.err conftest.$ac_objext conftest.beam \
7297    conftest$ac_exeext conftest.$ac_ext
7298fi
7299
7300
7301		CFLAGS="$xorg_testset_save_CFLAGS"
7302
7303		eval supported=\$$cacheid
7304		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7305printf "%s\n" "$supported" >&6; }
7306		if test "$supported" = "yes" ; then
7307			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7308			found="yes"
7309		fi
7310	fi
7311
7312	if test $found = "no" ; then
7313		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7314			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7315		fi
7316
7317		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7318			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7319		fi
7320
7321		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7322
7323		{ 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
7324printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7325		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7326		if eval test \${$cacheid+y}
7327then :
7328  printf %s "(cached) " >&6
7329else $as_nop
7330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331/* end confdefs.h.  */
7332int i;
7333int
7334main (void)
7335{
7336
7337  ;
7338  return 0;
7339}
7340_ACEOF
7341if ac_fn_c_try_link "$LINENO"
7342then :
7343  eval $cacheid=yes
7344else $as_nop
7345  eval $cacheid=no
7346fi
7347rm -f core conftest.err conftest.$ac_objext conftest.beam \
7348    conftest$ac_exeext conftest.$ac_ext
7349fi
7350
7351
7352		CFLAGS="$xorg_testset_save_CFLAGS"
7353
7354		eval supported=\$$cacheid
7355		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7356printf "%s\n" "$supported" >&6; }
7357		if test "$supported" = "yes" ; then
7358			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7359			found="yes"
7360		fi
7361	fi
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377xorg_testset_save_CFLAGS="$CFLAGS"
7378
7379if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7380	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7381	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7382printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7383if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7384then :
7385  printf %s "(cached) " >&6
7386else $as_nop
7387  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7388/* end confdefs.h.  */
7389int i;
7390_ACEOF
7391if ac_fn_c_try_compile "$LINENO"
7392then :
7393  xorg_cv_cc_flag_unknown_warning_option=yes
7394else $as_nop
7395  xorg_cv_cc_flag_unknown_warning_option=no
7396fi
7397rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7398fi
7399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7400printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7401	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7402	CFLAGS="$xorg_testset_save_CFLAGS"
7403fi
7404
7405if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7406	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7407		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7408	fi
7409	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7410	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7411printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7412if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7413then :
7414  printf %s "(cached) " >&6
7415else $as_nop
7416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417/* end confdefs.h.  */
7418int i;
7419_ACEOF
7420if ac_fn_c_try_compile "$LINENO"
7421then :
7422  xorg_cv_cc_flag_unused_command_line_argument=yes
7423else $as_nop
7424  xorg_cv_cc_flag_unused_command_line_argument=no
7425fi
7426rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7427fi
7428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7429printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7430	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7431	CFLAGS="$xorg_testset_save_CFLAGS"
7432fi
7433
7434found="no"
7435
7436	if test $found = "no" ; then
7437		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7438			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7439		fi
7440
7441		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7442			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7443		fi
7444
7445		CFLAGS="$CFLAGS -Werror=nonnull"
7446
7447		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7448printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7449		cacheid=xorg_cv_cc_flag__Werror_nonnull
7450		if eval test \${$cacheid+y}
7451then :
7452  printf %s "(cached) " >&6
7453else $as_nop
7454  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7455/* end confdefs.h.  */
7456int i;
7457int
7458main (void)
7459{
7460
7461  ;
7462  return 0;
7463}
7464_ACEOF
7465if ac_fn_c_try_link "$LINENO"
7466then :
7467  eval $cacheid=yes
7468else $as_nop
7469  eval $cacheid=no
7470fi
7471rm -f core conftest.err conftest.$ac_objext conftest.beam \
7472    conftest$ac_exeext conftest.$ac_ext
7473fi
7474
7475
7476		CFLAGS="$xorg_testset_save_CFLAGS"
7477
7478		eval supported=\$$cacheid
7479		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7480printf "%s\n" "$supported" >&6; }
7481		if test "$supported" = "yes" ; then
7482			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7483			found="yes"
7484		fi
7485	fi
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501xorg_testset_save_CFLAGS="$CFLAGS"
7502
7503if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7504	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7505	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7506printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7507if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7508then :
7509  printf %s "(cached) " >&6
7510else $as_nop
7511  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512/* end confdefs.h.  */
7513int i;
7514_ACEOF
7515if ac_fn_c_try_compile "$LINENO"
7516then :
7517  xorg_cv_cc_flag_unknown_warning_option=yes
7518else $as_nop
7519  xorg_cv_cc_flag_unknown_warning_option=no
7520fi
7521rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7522fi
7523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7524printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7525	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7526	CFLAGS="$xorg_testset_save_CFLAGS"
7527fi
7528
7529if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7530	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7531		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7532	fi
7533	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7534	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7535printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7536if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7537then :
7538  printf %s "(cached) " >&6
7539else $as_nop
7540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7541/* end confdefs.h.  */
7542int i;
7543_ACEOF
7544if ac_fn_c_try_compile "$LINENO"
7545then :
7546  xorg_cv_cc_flag_unused_command_line_argument=yes
7547else $as_nop
7548  xorg_cv_cc_flag_unused_command_line_argument=no
7549fi
7550rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7551fi
7552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7553printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7554	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7555	CFLAGS="$xorg_testset_save_CFLAGS"
7556fi
7557
7558found="no"
7559
7560	if test $found = "no" ; then
7561		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7562			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7563		fi
7564
7565		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7566			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7567		fi
7568
7569		CFLAGS="$CFLAGS -Werror=init-self"
7570
7571		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7572printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7573		cacheid=xorg_cv_cc_flag__Werror_init_self
7574		if eval test \${$cacheid+y}
7575then :
7576  printf %s "(cached) " >&6
7577else $as_nop
7578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7579/* end confdefs.h.  */
7580int i;
7581int
7582main (void)
7583{
7584
7585  ;
7586  return 0;
7587}
7588_ACEOF
7589if ac_fn_c_try_link "$LINENO"
7590then :
7591  eval $cacheid=yes
7592else $as_nop
7593  eval $cacheid=no
7594fi
7595rm -f core conftest.err conftest.$ac_objext conftest.beam \
7596    conftest$ac_exeext conftest.$ac_ext
7597fi
7598
7599
7600		CFLAGS="$xorg_testset_save_CFLAGS"
7601
7602		eval supported=\$$cacheid
7603		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7604printf "%s\n" "$supported" >&6; }
7605		if test "$supported" = "yes" ; then
7606			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7607			found="yes"
7608		fi
7609	fi
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625xorg_testset_save_CFLAGS="$CFLAGS"
7626
7627if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7628	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7629	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7630printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7631if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7632then :
7633  printf %s "(cached) " >&6
7634else $as_nop
7635  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636/* end confdefs.h.  */
7637int i;
7638_ACEOF
7639if ac_fn_c_try_compile "$LINENO"
7640then :
7641  xorg_cv_cc_flag_unknown_warning_option=yes
7642else $as_nop
7643  xorg_cv_cc_flag_unknown_warning_option=no
7644fi
7645rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7646fi
7647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7648printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7649	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7650	CFLAGS="$xorg_testset_save_CFLAGS"
7651fi
7652
7653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7654	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7655		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7656	fi
7657	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7658	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7659printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7660if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7661then :
7662  printf %s "(cached) " >&6
7663else $as_nop
7664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665/* end confdefs.h.  */
7666int i;
7667_ACEOF
7668if ac_fn_c_try_compile "$LINENO"
7669then :
7670  xorg_cv_cc_flag_unused_command_line_argument=yes
7671else $as_nop
7672  xorg_cv_cc_flag_unused_command_line_argument=no
7673fi
7674rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7675fi
7676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7677printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7678	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7679	CFLAGS="$xorg_testset_save_CFLAGS"
7680fi
7681
7682found="no"
7683
7684	if test $found = "no" ; then
7685		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7686			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7687		fi
7688
7689		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7690			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7691		fi
7692
7693		CFLAGS="$CFLAGS -Werror=main"
7694
7695		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7696printf %s "checking if $CC supports -Werror=main... " >&6; }
7697		cacheid=xorg_cv_cc_flag__Werror_main
7698		if eval test \${$cacheid+y}
7699then :
7700  printf %s "(cached) " >&6
7701else $as_nop
7702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7703/* end confdefs.h.  */
7704int i;
7705int
7706main (void)
7707{
7708
7709  ;
7710  return 0;
7711}
7712_ACEOF
7713if ac_fn_c_try_link "$LINENO"
7714then :
7715  eval $cacheid=yes
7716else $as_nop
7717  eval $cacheid=no
7718fi
7719rm -f core conftest.err conftest.$ac_objext conftest.beam \
7720    conftest$ac_exeext conftest.$ac_ext
7721fi
7722
7723
7724		CFLAGS="$xorg_testset_save_CFLAGS"
7725
7726		eval supported=\$$cacheid
7727		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7728printf "%s\n" "$supported" >&6; }
7729		if test "$supported" = "yes" ; then
7730			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7731			found="yes"
7732		fi
7733	fi
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749xorg_testset_save_CFLAGS="$CFLAGS"
7750
7751if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7752	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7753	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7754printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7755if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7756then :
7757  printf %s "(cached) " >&6
7758else $as_nop
7759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7760/* end confdefs.h.  */
7761int i;
7762_ACEOF
7763if ac_fn_c_try_compile "$LINENO"
7764then :
7765  xorg_cv_cc_flag_unknown_warning_option=yes
7766else $as_nop
7767  xorg_cv_cc_flag_unknown_warning_option=no
7768fi
7769rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7770fi
7771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7772printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7773	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7774	CFLAGS="$xorg_testset_save_CFLAGS"
7775fi
7776
7777if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7778	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7779		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7780	fi
7781	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7782	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7783printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7784if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7785then :
7786  printf %s "(cached) " >&6
7787else $as_nop
7788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789/* end confdefs.h.  */
7790int i;
7791_ACEOF
7792if ac_fn_c_try_compile "$LINENO"
7793then :
7794  xorg_cv_cc_flag_unused_command_line_argument=yes
7795else $as_nop
7796  xorg_cv_cc_flag_unused_command_line_argument=no
7797fi
7798rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7799fi
7800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7801printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7802	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7803	CFLAGS="$xorg_testset_save_CFLAGS"
7804fi
7805
7806found="no"
7807
7808	if test $found = "no" ; then
7809		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7810			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7811		fi
7812
7813		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7814			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7815		fi
7816
7817		CFLAGS="$CFLAGS -Werror=missing-braces"
7818
7819		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7820printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7821		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7822		if eval test \${$cacheid+y}
7823then :
7824  printf %s "(cached) " >&6
7825else $as_nop
7826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827/* end confdefs.h.  */
7828int i;
7829int
7830main (void)
7831{
7832
7833  ;
7834  return 0;
7835}
7836_ACEOF
7837if ac_fn_c_try_link "$LINENO"
7838then :
7839  eval $cacheid=yes
7840else $as_nop
7841  eval $cacheid=no
7842fi
7843rm -f core conftest.err conftest.$ac_objext conftest.beam \
7844    conftest$ac_exeext conftest.$ac_ext
7845fi
7846
7847
7848		CFLAGS="$xorg_testset_save_CFLAGS"
7849
7850		eval supported=\$$cacheid
7851		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7852printf "%s\n" "$supported" >&6; }
7853		if test "$supported" = "yes" ; then
7854			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7855			found="yes"
7856		fi
7857	fi
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873xorg_testset_save_CFLAGS="$CFLAGS"
7874
7875if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7876	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7877	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7878printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7879if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7880then :
7881  printf %s "(cached) " >&6
7882else $as_nop
7883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884/* end confdefs.h.  */
7885int i;
7886_ACEOF
7887if ac_fn_c_try_compile "$LINENO"
7888then :
7889  xorg_cv_cc_flag_unknown_warning_option=yes
7890else $as_nop
7891  xorg_cv_cc_flag_unknown_warning_option=no
7892fi
7893rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7894fi
7895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7896printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7897	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7898	CFLAGS="$xorg_testset_save_CFLAGS"
7899fi
7900
7901if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7902	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7903		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7904	fi
7905	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7906	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7907printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7908if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7909then :
7910  printf %s "(cached) " >&6
7911else $as_nop
7912  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913/* end confdefs.h.  */
7914int i;
7915_ACEOF
7916if ac_fn_c_try_compile "$LINENO"
7917then :
7918  xorg_cv_cc_flag_unused_command_line_argument=yes
7919else $as_nop
7920  xorg_cv_cc_flag_unused_command_line_argument=no
7921fi
7922rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7923fi
7924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7925printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7926	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7927	CFLAGS="$xorg_testset_save_CFLAGS"
7928fi
7929
7930found="no"
7931
7932	if test $found = "no" ; then
7933		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7934			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7935		fi
7936
7937		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7938			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7939		fi
7940
7941		CFLAGS="$CFLAGS -Werror=sequence-point"
7942
7943		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7944printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7945		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7946		if eval test \${$cacheid+y}
7947then :
7948  printf %s "(cached) " >&6
7949else $as_nop
7950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951/* end confdefs.h.  */
7952int i;
7953int
7954main (void)
7955{
7956
7957  ;
7958  return 0;
7959}
7960_ACEOF
7961if ac_fn_c_try_link "$LINENO"
7962then :
7963  eval $cacheid=yes
7964else $as_nop
7965  eval $cacheid=no
7966fi
7967rm -f core conftest.err conftest.$ac_objext conftest.beam \
7968    conftest$ac_exeext conftest.$ac_ext
7969fi
7970
7971
7972		CFLAGS="$xorg_testset_save_CFLAGS"
7973
7974		eval supported=\$$cacheid
7975		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7976printf "%s\n" "$supported" >&6; }
7977		if test "$supported" = "yes" ; then
7978			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7979			found="yes"
7980		fi
7981	fi
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997xorg_testset_save_CFLAGS="$CFLAGS"
7998
7999if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8000	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8001	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8002printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8003if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8004then :
8005  printf %s "(cached) " >&6
8006else $as_nop
8007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8008/* end confdefs.h.  */
8009int i;
8010_ACEOF
8011if ac_fn_c_try_compile "$LINENO"
8012then :
8013  xorg_cv_cc_flag_unknown_warning_option=yes
8014else $as_nop
8015  xorg_cv_cc_flag_unknown_warning_option=no
8016fi
8017rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8018fi
8019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8020printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8021	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8022	CFLAGS="$xorg_testset_save_CFLAGS"
8023fi
8024
8025if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8026	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8027		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8028	fi
8029	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8030	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8031printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8032if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8033then :
8034  printf %s "(cached) " >&6
8035else $as_nop
8036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8037/* end confdefs.h.  */
8038int i;
8039_ACEOF
8040if ac_fn_c_try_compile "$LINENO"
8041then :
8042  xorg_cv_cc_flag_unused_command_line_argument=yes
8043else $as_nop
8044  xorg_cv_cc_flag_unused_command_line_argument=no
8045fi
8046rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8047fi
8048{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8049printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8050	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8051	CFLAGS="$xorg_testset_save_CFLAGS"
8052fi
8053
8054found="no"
8055
8056	if test $found = "no" ; then
8057		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8058			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8059		fi
8060
8061		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8062			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8063		fi
8064
8065		CFLAGS="$CFLAGS -Werror=return-type"
8066
8067		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8068printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8069		cacheid=xorg_cv_cc_flag__Werror_return_type
8070		if eval test \${$cacheid+y}
8071then :
8072  printf %s "(cached) " >&6
8073else $as_nop
8074  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075/* end confdefs.h.  */
8076int i;
8077int
8078main (void)
8079{
8080
8081  ;
8082  return 0;
8083}
8084_ACEOF
8085if ac_fn_c_try_link "$LINENO"
8086then :
8087  eval $cacheid=yes
8088else $as_nop
8089  eval $cacheid=no
8090fi
8091rm -f core conftest.err conftest.$ac_objext conftest.beam \
8092    conftest$ac_exeext conftest.$ac_ext
8093fi
8094
8095
8096		CFLAGS="$xorg_testset_save_CFLAGS"
8097
8098		eval supported=\$$cacheid
8099		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8100printf "%s\n" "$supported" >&6; }
8101		if test "$supported" = "yes" ; then
8102			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8103			found="yes"
8104		fi
8105	fi
8106
8107	if test $found = "no" ; then
8108		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8109			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8110		fi
8111
8112		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8113			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8114		fi
8115
8116		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8117
8118		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8119printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8120		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8121		if eval test \${$cacheid+y}
8122then :
8123  printf %s "(cached) " >&6
8124else $as_nop
8125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8126/* end confdefs.h.  */
8127int i;
8128int
8129main (void)
8130{
8131
8132  ;
8133  return 0;
8134}
8135_ACEOF
8136if ac_fn_c_try_link "$LINENO"
8137then :
8138  eval $cacheid=yes
8139else $as_nop
8140  eval $cacheid=no
8141fi
8142rm -f core conftest.err conftest.$ac_objext conftest.beam \
8143    conftest$ac_exeext conftest.$ac_ext
8144fi
8145
8146
8147		CFLAGS="$xorg_testset_save_CFLAGS"
8148
8149		eval supported=\$$cacheid
8150		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8151printf "%s\n" "$supported" >&6; }
8152		if test "$supported" = "yes" ; then
8153			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8154			found="yes"
8155		fi
8156	fi
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172xorg_testset_save_CFLAGS="$CFLAGS"
8173
8174if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8175	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8176	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8177printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8178if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8179then :
8180  printf %s "(cached) " >&6
8181else $as_nop
8182  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183/* end confdefs.h.  */
8184int i;
8185_ACEOF
8186if ac_fn_c_try_compile "$LINENO"
8187then :
8188  xorg_cv_cc_flag_unknown_warning_option=yes
8189else $as_nop
8190  xorg_cv_cc_flag_unknown_warning_option=no
8191fi
8192rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8193fi
8194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8195printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8196	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8197	CFLAGS="$xorg_testset_save_CFLAGS"
8198fi
8199
8200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8201	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8202		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8203	fi
8204	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8205	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8206printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8207if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8208then :
8209  printf %s "(cached) " >&6
8210else $as_nop
8211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8212/* end confdefs.h.  */
8213int i;
8214_ACEOF
8215if ac_fn_c_try_compile "$LINENO"
8216then :
8217  xorg_cv_cc_flag_unused_command_line_argument=yes
8218else $as_nop
8219  xorg_cv_cc_flag_unused_command_line_argument=no
8220fi
8221rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8222fi
8223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8224printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8225	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8226	CFLAGS="$xorg_testset_save_CFLAGS"
8227fi
8228
8229found="no"
8230
8231	if test $found = "no" ; then
8232		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8233			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8234		fi
8235
8236		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8237			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8238		fi
8239
8240		CFLAGS="$CFLAGS -Werror=trigraphs"
8241
8242		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8243printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8244		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8245		if eval test \${$cacheid+y}
8246then :
8247  printf %s "(cached) " >&6
8248else $as_nop
8249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8250/* end confdefs.h.  */
8251int i;
8252int
8253main (void)
8254{
8255
8256  ;
8257  return 0;
8258}
8259_ACEOF
8260if ac_fn_c_try_link "$LINENO"
8261then :
8262  eval $cacheid=yes
8263else $as_nop
8264  eval $cacheid=no
8265fi
8266rm -f core conftest.err conftest.$ac_objext conftest.beam \
8267    conftest$ac_exeext conftest.$ac_ext
8268fi
8269
8270
8271		CFLAGS="$xorg_testset_save_CFLAGS"
8272
8273		eval supported=\$$cacheid
8274		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8275printf "%s\n" "$supported" >&6; }
8276		if test "$supported" = "yes" ; then
8277			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8278			found="yes"
8279		fi
8280	fi
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296xorg_testset_save_CFLAGS="$CFLAGS"
8297
8298if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8299	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8300	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8301printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8302if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8303then :
8304  printf %s "(cached) " >&6
8305else $as_nop
8306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8307/* end confdefs.h.  */
8308int i;
8309_ACEOF
8310if ac_fn_c_try_compile "$LINENO"
8311then :
8312  xorg_cv_cc_flag_unknown_warning_option=yes
8313else $as_nop
8314  xorg_cv_cc_flag_unknown_warning_option=no
8315fi
8316rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8317fi
8318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8319printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8320	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8321	CFLAGS="$xorg_testset_save_CFLAGS"
8322fi
8323
8324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8325	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8326		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8327	fi
8328	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8329	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8330printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8331if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8332then :
8333  printf %s "(cached) " >&6
8334else $as_nop
8335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336/* end confdefs.h.  */
8337int i;
8338_ACEOF
8339if ac_fn_c_try_compile "$LINENO"
8340then :
8341  xorg_cv_cc_flag_unused_command_line_argument=yes
8342else $as_nop
8343  xorg_cv_cc_flag_unused_command_line_argument=no
8344fi
8345rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8346fi
8347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8348printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8349	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8350	CFLAGS="$xorg_testset_save_CFLAGS"
8351fi
8352
8353found="no"
8354
8355	if test $found = "no" ; then
8356		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8357			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8358		fi
8359
8360		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8361			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8362		fi
8363
8364		CFLAGS="$CFLAGS -Werror=array-bounds"
8365
8366		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8367printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8368		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8369		if eval test \${$cacheid+y}
8370then :
8371  printf %s "(cached) " >&6
8372else $as_nop
8373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374/* end confdefs.h.  */
8375int i;
8376int
8377main (void)
8378{
8379
8380  ;
8381  return 0;
8382}
8383_ACEOF
8384if ac_fn_c_try_link "$LINENO"
8385then :
8386  eval $cacheid=yes
8387else $as_nop
8388  eval $cacheid=no
8389fi
8390rm -f core conftest.err conftest.$ac_objext conftest.beam \
8391    conftest$ac_exeext conftest.$ac_ext
8392fi
8393
8394
8395		CFLAGS="$xorg_testset_save_CFLAGS"
8396
8397		eval supported=\$$cacheid
8398		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8399printf "%s\n" "$supported" >&6; }
8400		if test "$supported" = "yes" ; then
8401			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8402			found="yes"
8403		fi
8404	fi
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420xorg_testset_save_CFLAGS="$CFLAGS"
8421
8422if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8423	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8424	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8425printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8426if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8427then :
8428  printf %s "(cached) " >&6
8429else $as_nop
8430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8431/* end confdefs.h.  */
8432int i;
8433_ACEOF
8434if ac_fn_c_try_compile "$LINENO"
8435then :
8436  xorg_cv_cc_flag_unknown_warning_option=yes
8437else $as_nop
8438  xorg_cv_cc_flag_unknown_warning_option=no
8439fi
8440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8441fi
8442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8443printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8444	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8445	CFLAGS="$xorg_testset_save_CFLAGS"
8446fi
8447
8448if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8449	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8450		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8451	fi
8452	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8453	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8454printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8455if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8456then :
8457  printf %s "(cached) " >&6
8458else $as_nop
8459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460/* end confdefs.h.  */
8461int i;
8462_ACEOF
8463if ac_fn_c_try_compile "$LINENO"
8464then :
8465  xorg_cv_cc_flag_unused_command_line_argument=yes
8466else $as_nop
8467  xorg_cv_cc_flag_unused_command_line_argument=no
8468fi
8469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8470fi
8471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8472printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8473	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8474	CFLAGS="$xorg_testset_save_CFLAGS"
8475fi
8476
8477found="no"
8478
8479	if test $found = "no" ; then
8480		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8481			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8482		fi
8483
8484		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8485			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8486		fi
8487
8488		CFLAGS="$CFLAGS -Werror=write-strings"
8489
8490		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8491printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8492		cacheid=xorg_cv_cc_flag__Werror_write_strings
8493		if eval test \${$cacheid+y}
8494then :
8495  printf %s "(cached) " >&6
8496else $as_nop
8497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498/* end confdefs.h.  */
8499int i;
8500int
8501main (void)
8502{
8503
8504  ;
8505  return 0;
8506}
8507_ACEOF
8508if ac_fn_c_try_link "$LINENO"
8509then :
8510  eval $cacheid=yes
8511else $as_nop
8512  eval $cacheid=no
8513fi
8514rm -f core conftest.err conftest.$ac_objext conftest.beam \
8515    conftest$ac_exeext conftest.$ac_ext
8516fi
8517
8518
8519		CFLAGS="$xorg_testset_save_CFLAGS"
8520
8521		eval supported=\$$cacheid
8522		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8523printf "%s\n" "$supported" >&6; }
8524		if test "$supported" = "yes" ; then
8525			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8526			found="yes"
8527		fi
8528	fi
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544xorg_testset_save_CFLAGS="$CFLAGS"
8545
8546if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8547	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8548	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8549printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8550if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8551then :
8552  printf %s "(cached) " >&6
8553else $as_nop
8554  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8555/* end confdefs.h.  */
8556int i;
8557_ACEOF
8558if ac_fn_c_try_compile "$LINENO"
8559then :
8560  xorg_cv_cc_flag_unknown_warning_option=yes
8561else $as_nop
8562  xorg_cv_cc_flag_unknown_warning_option=no
8563fi
8564rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8565fi
8566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8567printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8568	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8569	CFLAGS="$xorg_testset_save_CFLAGS"
8570fi
8571
8572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8573	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8574		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8575	fi
8576	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8577	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8578printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8579if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8580then :
8581  printf %s "(cached) " >&6
8582else $as_nop
8583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8584/* end confdefs.h.  */
8585int i;
8586_ACEOF
8587if ac_fn_c_try_compile "$LINENO"
8588then :
8589  xorg_cv_cc_flag_unused_command_line_argument=yes
8590else $as_nop
8591  xorg_cv_cc_flag_unused_command_line_argument=no
8592fi
8593rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8594fi
8595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8596printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8597	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8598	CFLAGS="$xorg_testset_save_CFLAGS"
8599fi
8600
8601found="no"
8602
8603	if test $found = "no" ; then
8604		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8605			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8606		fi
8607
8608		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8609			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8610		fi
8611
8612		CFLAGS="$CFLAGS -Werror=address"
8613
8614		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8615printf %s "checking if $CC supports -Werror=address... " >&6; }
8616		cacheid=xorg_cv_cc_flag__Werror_address
8617		if eval test \${$cacheid+y}
8618then :
8619  printf %s "(cached) " >&6
8620else $as_nop
8621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8622/* end confdefs.h.  */
8623int i;
8624int
8625main (void)
8626{
8627
8628  ;
8629  return 0;
8630}
8631_ACEOF
8632if ac_fn_c_try_link "$LINENO"
8633then :
8634  eval $cacheid=yes
8635else $as_nop
8636  eval $cacheid=no
8637fi
8638rm -f core conftest.err conftest.$ac_objext conftest.beam \
8639    conftest$ac_exeext conftest.$ac_ext
8640fi
8641
8642
8643		CFLAGS="$xorg_testset_save_CFLAGS"
8644
8645		eval supported=\$$cacheid
8646		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8647printf "%s\n" "$supported" >&6; }
8648		if test "$supported" = "yes" ; then
8649			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8650			found="yes"
8651		fi
8652	fi
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668xorg_testset_save_CFLAGS="$CFLAGS"
8669
8670if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8671	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8672	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8673printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8674if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8675then :
8676  printf %s "(cached) " >&6
8677else $as_nop
8678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8679/* end confdefs.h.  */
8680int i;
8681_ACEOF
8682if ac_fn_c_try_compile "$LINENO"
8683then :
8684  xorg_cv_cc_flag_unknown_warning_option=yes
8685else $as_nop
8686  xorg_cv_cc_flag_unknown_warning_option=no
8687fi
8688rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8689fi
8690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8691printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8692	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8693	CFLAGS="$xorg_testset_save_CFLAGS"
8694fi
8695
8696if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8697	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8698		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8699	fi
8700	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8701	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8702printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8703if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8704then :
8705  printf %s "(cached) " >&6
8706else $as_nop
8707  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708/* end confdefs.h.  */
8709int i;
8710_ACEOF
8711if ac_fn_c_try_compile "$LINENO"
8712then :
8713  xorg_cv_cc_flag_unused_command_line_argument=yes
8714else $as_nop
8715  xorg_cv_cc_flag_unused_command_line_argument=no
8716fi
8717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8718fi
8719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8720printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8721	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8722	CFLAGS="$xorg_testset_save_CFLAGS"
8723fi
8724
8725found="no"
8726
8727	if test $found = "no" ; then
8728		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8729			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8730		fi
8731
8732		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8733			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8734		fi
8735
8736		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8737
8738		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8739printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8740		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8741		if eval test \${$cacheid+y}
8742then :
8743  printf %s "(cached) " >&6
8744else $as_nop
8745  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8746/* end confdefs.h.  */
8747int i;
8748int
8749main (void)
8750{
8751
8752  ;
8753  return 0;
8754}
8755_ACEOF
8756if ac_fn_c_try_link "$LINENO"
8757then :
8758  eval $cacheid=yes
8759else $as_nop
8760  eval $cacheid=no
8761fi
8762rm -f core conftest.err conftest.$ac_objext conftest.beam \
8763    conftest$ac_exeext conftest.$ac_ext
8764fi
8765
8766
8767		CFLAGS="$xorg_testset_save_CFLAGS"
8768
8769		eval supported=\$$cacheid
8770		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8771printf "%s\n" "$supported" >&6; }
8772		if test "$supported" = "yes" ; then
8773			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8774			found="yes"
8775		fi
8776	fi
8777
8778	if test $found = "no" ; then
8779		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8780			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8781		fi
8782
8783		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8784			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8785		fi
8786
8787		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8788
8789		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8790printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8791		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8792		if eval test \${$cacheid+y}
8793then :
8794  printf %s "(cached) " >&6
8795else $as_nop
8796  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797/* end confdefs.h.  */
8798int i;
8799int
8800main (void)
8801{
8802
8803  ;
8804  return 0;
8805}
8806_ACEOF
8807if ac_fn_c_try_link "$LINENO"
8808then :
8809  eval $cacheid=yes
8810else $as_nop
8811  eval $cacheid=no
8812fi
8813rm -f core conftest.err conftest.$ac_objext conftest.beam \
8814    conftest$ac_exeext conftest.$ac_ext
8815fi
8816
8817
8818		CFLAGS="$xorg_testset_save_CFLAGS"
8819
8820		eval supported=\$$cacheid
8821		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8822printf "%s\n" "$supported" >&6; }
8823		if test "$supported" = "yes" ; then
8824			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8825			found="yes"
8826		fi
8827	fi
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843xorg_testset_save_CFLAGS="$CFLAGS"
8844
8845if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8846	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8847	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8848printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8849if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8850then :
8851  printf %s "(cached) " >&6
8852else $as_nop
8853  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8854/* end confdefs.h.  */
8855int i;
8856_ACEOF
8857if ac_fn_c_try_compile "$LINENO"
8858then :
8859  xorg_cv_cc_flag_unknown_warning_option=yes
8860else $as_nop
8861  xorg_cv_cc_flag_unknown_warning_option=no
8862fi
8863rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8864fi
8865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8866printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8867	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8868	CFLAGS="$xorg_testset_save_CFLAGS"
8869fi
8870
8871if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8872	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8873		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8874	fi
8875	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8876	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8877printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8878if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8879then :
8880  printf %s "(cached) " >&6
8881else $as_nop
8882  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8883/* end confdefs.h.  */
8884int i;
8885_ACEOF
8886if ac_fn_c_try_compile "$LINENO"
8887then :
8888  xorg_cv_cc_flag_unused_command_line_argument=yes
8889else $as_nop
8890  xorg_cv_cc_flag_unused_command_line_argument=no
8891fi
8892rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8893fi
8894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8895printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8896	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8897	CFLAGS="$xorg_testset_save_CFLAGS"
8898fi
8899
8900found="no"
8901
8902	if test $found = "no" ; then
8903		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8904			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8905		fi
8906
8907		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8908			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8909		fi
8910
8911		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8912
8913		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8914printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8915		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8916		if eval test \${$cacheid+y}
8917then :
8918  printf %s "(cached) " >&6
8919else $as_nop
8920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921/* end confdefs.h.  */
8922int i;
8923int
8924main (void)
8925{
8926
8927  ;
8928  return 0;
8929}
8930_ACEOF
8931if ac_fn_c_try_link "$LINENO"
8932then :
8933  eval $cacheid=yes
8934else $as_nop
8935  eval $cacheid=no
8936fi
8937rm -f core conftest.err conftest.$ac_objext conftest.beam \
8938    conftest$ac_exeext conftest.$ac_ext
8939fi
8940
8941
8942		CFLAGS="$xorg_testset_save_CFLAGS"
8943
8944		eval supported=\$$cacheid
8945		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8946printf "%s\n" "$supported" >&6; }
8947		if test "$supported" = "yes" ; then
8948			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8949			found="yes"
8950		fi
8951	fi
8952
8953 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8954else
8955{ 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
8956printf "%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;}
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970xorg_testset_save_CFLAGS="$CFLAGS"
8971
8972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8973	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8974	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8975printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8976if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8977then :
8978  printf %s "(cached) " >&6
8979else $as_nop
8980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8981/* end confdefs.h.  */
8982int i;
8983_ACEOF
8984if ac_fn_c_try_compile "$LINENO"
8985then :
8986  xorg_cv_cc_flag_unknown_warning_option=yes
8987else $as_nop
8988  xorg_cv_cc_flag_unknown_warning_option=no
8989fi
8990rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8991fi
8992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8993printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8994	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8995	CFLAGS="$xorg_testset_save_CFLAGS"
8996fi
8997
8998if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8999	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9000		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9001	fi
9002	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9003	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9004printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9005if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9006then :
9007  printf %s "(cached) " >&6
9008else $as_nop
9009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010/* end confdefs.h.  */
9011int i;
9012_ACEOF
9013if ac_fn_c_try_compile "$LINENO"
9014then :
9015  xorg_cv_cc_flag_unused_command_line_argument=yes
9016else $as_nop
9017  xorg_cv_cc_flag_unused_command_line_argument=no
9018fi
9019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9020fi
9021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9022printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9023	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9024	CFLAGS="$xorg_testset_save_CFLAGS"
9025fi
9026
9027found="no"
9028
9029	if test $found = "no" ; then
9030		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9031			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9032		fi
9033
9034		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9035			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9036		fi
9037
9038		CFLAGS="$CFLAGS -Wimplicit"
9039
9040		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9041printf %s "checking if $CC supports -Wimplicit... " >&6; }
9042		cacheid=xorg_cv_cc_flag__Wimplicit
9043		if eval test \${$cacheid+y}
9044then :
9045  printf %s "(cached) " >&6
9046else $as_nop
9047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048/* end confdefs.h.  */
9049int i;
9050int
9051main (void)
9052{
9053
9054  ;
9055  return 0;
9056}
9057_ACEOF
9058if ac_fn_c_try_link "$LINENO"
9059then :
9060  eval $cacheid=yes
9061else $as_nop
9062  eval $cacheid=no
9063fi
9064rm -f core conftest.err conftest.$ac_objext conftest.beam \
9065    conftest$ac_exeext conftest.$ac_ext
9066fi
9067
9068
9069		CFLAGS="$xorg_testset_save_CFLAGS"
9070
9071		eval supported=\$$cacheid
9072		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9073printf "%s\n" "$supported" >&6; }
9074		if test "$supported" = "yes" ; then
9075			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9076			found="yes"
9077		fi
9078	fi
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094xorg_testset_save_CFLAGS="$CFLAGS"
9095
9096if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9097	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9098	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9099printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9100if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9101then :
9102  printf %s "(cached) " >&6
9103else $as_nop
9104  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105/* end confdefs.h.  */
9106int i;
9107_ACEOF
9108if ac_fn_c_try_compile "$LINENO"
9109then :
9110  xorg_cv_cc_flag_unknown_warning_option=yes
9111else $as_nop
9112  xorg_cv_cc_flag_unknown_warning_option=no
9113fi
9114rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9115fi
9116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9117printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9118	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9119	CFLAGS="$xorg_testset_save_CFLAGS"
9120fi
9121
9122if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9123	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9124		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9125	fi
9126	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9127	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9128printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9129if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9130then :
9131  printf %s "(cached) " >&6
9132else $as_nop
9133  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9134/* end confdefs.h.  */
9135int i;
9136_ACEOF
9137if ac_fn_c_try_compile "$LINENO"
9138then :
9139  xorg_cv_cc_flag_unused_command_line_argument=yes
9140else $as_nop
9141  xorg_cv_cc_flag_unused_command_line_argument=no
9142fi
9143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9144fi
9145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9146printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9147	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9148	CFLAGS="$xorg_testset_save_CFLAGS"
9149fi
9150
9151found="no"
9152
9153	if test $found = "no" ; then
9154		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9155			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9156		fi
9157
9158		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9159			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9160		fi
9161
9162		CFLAGS="$CFLAGS -Wnonnull"
9163
9164		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9165printf %s "checking if $CC supports -Wnonnull... " >&6; }
9166		cacheid=xorg_cv_cc_flag__Wnonnull
9167		if eval test \${$cacheid+y}
9168then :
9169  printf %s "(cached) " >&6
9170else $as_nop
9171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9172/* end confdefs.h.  */
9173int i;
9174int
9175main (void)
9176{
9177
9178  ;
9179  return 0;
9180}
9181_ACEOF
9182if ac_fn_c_try_link "$LINENO"
9183then :
9184  eval $cacheid=yes
9185else $as_nop
9186  eval $cacheid=no
9187fi
9188rm -f core conftest.err conftest.$ac_objext conftest.beam \
9189    conftest$ac_exeext conftest.$ac_ext
9190fi
9191
9192
9193		CFLAGS="$xorg_testset_save_CFLAGS"
9194
9195		eval supported=\$$cacheid
9196		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9197printf "%s\n" "$supported" >&6; }
9198		if test "$supported" = "yes" ; then
9199			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9200			found="yes"
9201		fi
9202	fi
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218xorg_testset_save_CFLAGS="$CFLAGS"
9219
9220if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9221	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9222	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9223printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9224if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9225then :
9226  printf %s "(cached) " >&6
9227else $as_nop
9228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229/* end confdefs.h.  */
9230int i;
9231_ACEOF
9232if ac_fn_c_try_compile "$LINENO"
9233then :
9234  xorg_cv_cc_flag_unknown_warning_option=yes
9235else $as_nop
9236  xorg_cv_cc_flag_unknown_warning_option=no
9237fi
9238rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9239fi
9240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9241printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9242	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9243	CFLAGS="$xorg_testset_save_CFLAGS"
9244fi
9245
9246if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9247	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9248		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9249	fi
9250	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9251	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9252printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9253if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9254then :
9255  printf %s "(cached) " >&6
9256else $as_nop
9257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258/* end confdefs.h.  */
9259int i;
9260_ACEOF
9261if ac_fn_c_try_compile "$LINENO"
9262then :
9263  xorg_cv_cc_flag_unused_command_line_argument=yes
9264else $as_nop
9265  xorg_cv_cc_flag_unused_command_line_argument=no
9266fi
9267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9268fi
9269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9270printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9271	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9272	CFLAGS="$xorg_testset_save_CFLAGS"
9273fi
9274
9275found="no"
9276
9277	if test $found = "no" ; then
9278		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9279			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9280		fi
9281
9282		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9283			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9284		fi
9285
9286		CFLAGS="$CFLAGS -Winit-self"
9287
9288		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9289printf %s "checking if $CC supports -Winit-self... " >&6; }
9290		cacheid=xorg_cv_cc_flag__Winit_self
9291		if eval test \${$cacheid+y}
9292then :
9293  printf %s "(cached) " >&6
9294else $as_nop
9295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296/* end confdefs.h.  */
9297int i;
9298int
9299main (void)
9300{
9301
9302  ;
9303  return 0;
9304}
9305_ACEOF
9306if ac_fn_c_try_link "$LINENO"
9307then :
9308  eval $cacheid=yes
9309else $as_nop
9310  eval $cacheid=no
9311fi
9312rm -f core conftest.err conftest.$ac_objext conftest.beam \
9313    conftest$ac_exeext conftest.$ac_ext
9314fi
9315
9316
9317		CFLAGS="$xorg_testset_save_CFLAGS"
9318
9319		eval supported=\$$cacheid
9320		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9321printf "%s\n" "$supported" >&6; }
9322		if test "$supported" = "yes" ; then
9323			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9324			found="yes"
9325		fi
9326	fi
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342xorg_testset_save_CFLAGS="$CFLAGS"
9343
9344if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9345	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9346	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9347printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9348if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9349then :
9350  printf %s "(cached) " >&6
9351else $as_nop
9352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353/* end confdefs.h.  */
9354int i;
9355_ACEOF
9356if ac_fn_c_try_compile "$LINENO"
9357then :
9358  xorg_cv_cc_flag_unknown_warning_option=yes
9359else $as_nop
9360  xorg_cv_cc_flag_unknown_warning_option=no
9361fi
9362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9363fi
9364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9365printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9366	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9367	CFLAGS="$xorg_testset_save_CFLAGS"
9368fi
9369
9370if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9371	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9372		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9373	fi
9374	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9375	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9376printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9377if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9378then :
9379  printf %s "(cached) " >&6
9380else $as_nop
9381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9382/* end confdefs.h.  */
9383int i;
9384_ACEOF
9385if ac_fn_c_try_compile "$LINENO"
9386then :
9387  xorg_cv_cc_flag_unused_command_line_argument=yes
9388else $as_nop
9389  xorg_cv_cc_flag_unused_command_line_argument=no
9390fi
9391rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9392fi
9393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9394printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9395	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9396	CFLAGS="$xorg_testset_save_CFLAGS"
9397fi
9398
9399found="no"
9400
9401	if test $found = "no" ; then
9402		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9403			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9404		fi
9405
9406		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9407			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9408		fi
9409
9410		CFLAGS="$CFLAGS -Wmain"
9411
9412		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9413printf %s "checking if $CC supports -Wmain... " >&6; }
9414		cacheid=xorg_cv_cc_flag__Wmain
9415		if eval test \${$cacheid+y}
9416then :
9417  printf %s "(cached) " >&6
9418else $as_nop
9419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9420/* end confdefs.h.  */
9421int i;
9422int
9423main (void)
9424{
9425
9426  ;
9427  return 0;
9428}
9429_ACEOF
9430if ac_fn_c_try_link "$LINENO"
9431then :
9432  eval $cacheid=yes
9433else $as_nop
9434  eval $cacheid=no
9435fi
9436rm -f core conftest.err conftest.$ac_objext conftest.beam \
9437    conftest$ac_exeext conftest.$ac_ext
9438fi
9439
9440
9441		CFLAGS="$xorg_testset_save_CFLAGS"
9442
9443		eval supported=\$$cacheid
9444		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9445printf "%s\n" "$supported" >&6; }
9446		if test "$supported" = "yes" ; then
9447			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9448			found="yes"
9449		fi
9450	fi
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466xorg_testset_save_CFLAGS="$CFLAGS"
9467
9468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9469	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9470	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9471printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9472if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9473then :
9474  printf %s "(cached) " >&6
9475else $as_nop
9476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477/* end confdefs.h.  */
9478int i;
9479_ACEOF
9480if ac_fn_c_try_compile "$LINENO"
9481then :
9482  xorg_cv_cc_flag_unknown_warning_option=yes
9483else $as_nop
9484  xorg_cv_cc_flag_unknown_warning_option=no
9485fi
9486rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9487fi
9488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9489printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9490	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9491	CFLAGS="$xorg_testset_save_CFLAGS"
9492fi
9493
9494if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9495	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9496		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9497	fi
9498	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9499	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9500printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9501if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9502then :
9503  printf %s "(cached) " >&6
9504else $as_nop
9505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9506/* end confdefs.h.  */
9507int i;
9508_ACEOF
9509if ac_fn_c_try_compile "$LINENO"
9510then :
9511  xorg_cv_cc_flag_unused_command_line_argument=yes
9512else $as_nop
9513  xorg_cv_cc_flag_unused_command_line_argument=no
9514fi
9515rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9516fi
9517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9518printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9519	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9520	CFLAGS="$xorg_testset_save_CFLAGS"
9521fi
9522
9523found="no"
9524
9525	if test $found = "no" ; then
9526		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9527			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9528		fi
9529
9530		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9531			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9532		fi
9533
9534		CFLAGS="$CFLAGS -Wmissing-braces"
9535
9536		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9537printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9538		cacheid=xorg_cv_cc_flag__Wmissing_braces
9539		if eval test \${$cacheid+y}
9540then :
9541  printf %s "(cached) " >&6
9542else $as_nop
9543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9544/* end confdefs.h.  */
9545int i;
9546int
9547main (void)
9548{
9549
9550  ;
9551  return 0;
9552}
9553_ACEOF
9554if ac_fn_c_try_link "$LINENO"
9555then :
9556  eval $cacheid=yes
9557else $as_nop
9558  eval $cacheid=no
9559fi
9560rm -f core conftest.err conftest.$ac_objext conftest.beam \
9561    conftest$ac_exeext conftest.$ac_ext
9562fi
9563
9564
9565		CFLAGS="$xorg_testset_save_CFLAGS"
9566
9567		eval supported=\$$cacheid
9568		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9569printf "%s\n" "$supported" >&6; }
9570		if test "$supported" = "yes" ; then
9571			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9572			found="yes"
9573		fi
9574	fi
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590xorg_testset_save_CFLAGS="$CFLAGS"
9591
9592if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9593	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9594	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9595printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9596if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9597then :
9598  printf %s "(cached) " >&6
9599else $as_nop
9600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601/* end confdefs.h.  */
9602int i;
9603_ACEOF
9604if ac_fn_c_try_compile "$LINENO"
9605then :
9606  xorg_cv_cc_flag_unknown_warning_option=yes
9607else $as_nop
9608  xorg_cv_cc_flag_unknown_warning_option=no
9609fi
9610rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9611fi
9612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9613printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9614	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9615	CFLAGS="$xorg_testset_save_CFLAGS"
9616fi
9617
9618if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9619	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9620		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9621	fi
9622	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9623	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9624printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9625if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9626then :
9627  printf %s "(cached) " >&6
9628else $as_nop
9629  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630/* end confdefs.h.  */
9631int i;
9632_ACEOF
9633if ac_fn_c_try_compile "$LINENO"
9634then :
9635  xorg_cv_cc_flag_unused_command_line_argument=yes
9636else $as_nop
9637  xorg_cv_cc_flag_unused_command_line_argument=no
9638fi
9639rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9640fi
9641{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9642printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9643	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9644	CFLAGS="$xorg_testset_save_CFLAGS"
9645fi
9646
9647found="no"
9648
9649	if test $found = "no" ; then
9650		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9651			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9652		fi
9653
9654		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9655			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9656		fi
9657
9658		CFLAGS="$CFLAGS -Wsequence-point"
9659
9660		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9661printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9662		cacheid=xorg_cv_cc_flag__Wsequence_point
9663		if eval test \${$cacheid+y}
9664then :
9665  printf %s "(cached) " >&6
9666else $as_nop
9667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9668/* end confdefs.h.  */
9669int i;
9670int
9671main (void)
9672{
9673
9674  ;
9675  return 0;
9676}
9677_ACEOF
9678if ac_fn_c_try_link "$LINENO"
9679then :
9680  eval $cacheid=yes
9681else $as_nop
9682  eval $cacheid=no
9683fi
9684rm -f core conftest.err conftest.$ac_objext conftest.beam \
9685    conftest$ac_exeext conftest.$ac_ext
9686fi
9687
9688
9689		CFLAGS="$xorg_testset_save_CFLAGS"
9690
9691		eval supported=\$$cacheid
9692		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9693printf "%s\n" "$supported" >&6; }
9694		if test "$supported" = "yes" ; then
9695			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9696			found="yes"
9697		fi
9698	fi
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714xorg_testset_save_CFLAGS="$CFLAGS"
9715
9716if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9717	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9718	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9719printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9720if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9721then :
9722  printf %s "(cached) " >&6
9723else $as_nop
9724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9725/* end confdefs.h.  */
9726int i;
9727_ACEOF
9728if ac_fn_c_try_compile "$LINENO"
9729then :
9730  xorg_cv_cc_flag_unknown_warning_option=yes
9731else $as_nop
9732  xorg_cv_cc_flag_unknown_warning_option=no
9733fi
9734rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9735fi
9736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9737printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9738	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9739	CFLAGS="$xorg_testset_save_CFLAGS"
9740fi
9741
9742if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9743	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9744		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9745	fi
9746	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9747	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9748printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9749if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9750then :
9751  printf %s "(cached) " >&6
9752else $as_nop
9753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754/* end confdefs.h.  */
9755int i;
9756_ACEOF
9757if ac_fn_c_try_compile "$LINENO"
9758then :
9759  xorg_cv_cc_flag_unused_command_line_argument=yes
9760else $as_nop
9761  xorg_cv_cc_flag_unused_command_line_argument=no
9762fi
9763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9764fi
9765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9766printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9767	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9768	CFLAGS="$xorg_testset_save_CFLAGS"
9769fi
9770
9771found="no"
9772
9773	if test $found = "no" ; then
9774		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9775			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9776		fi
9777
9778		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9779			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9780		fi
9781
9782		CFLAGS="$CFLAGS -Wreturn-type"
9783
9784		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9785printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9786		cacheid=xorg_cv_cc_flag__Wreturn_type
9787		if eval test \${$cacheid+y}
9788then :
9789  printf %s "(cached) " >&6
9790else $as_nop
9791  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9792/* end confdefs.h.  */
9793int i;
9794int
9795main (void)
9796{
9797
9798  ;
9799  return 0;
9800}
9801_ACEOF
9802if ac_fn_c_try_link "$LINENO"
9803then :
9804  eval $cacheid=yes
9805else $as_nop
9806  eval $cacheid=no
9807fi
9808rm -f core conftest.err conftest.$ac_objext conftest.beam \
9809    conftest$ac_exeext conftest.$ac_ext
9810fi
9811
9812
9813		CFLAGS="$xorg_testset_save_CFLAGS"
9814
9815		eval supported=\$$cacheid
9816		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9817printf "%s\n" "$supported" >&6; }
9818		if test "$supported" = "yes" ; then
9819			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9820			found="yes"
9821		fi
9822	fi
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838xorg_testset_save_CFLAGS="$CFLAGS"
9839
9840if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9841	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9842	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9843printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9844if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9845then :
9846  printf %s "(cached) " >&6
9847else $as_nop
9848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9849/* end confdefs.h.  */
9850int i;
9851_ACEOF
9852if ac_fn_c_try_compile "$LINENO"
9853then :
9854  xorg_cv_cc_flag_unknown_warning_option=yes
9855else $as_nop
9856  xorg_cv_cc_flag_unknown_warning_option=no
9857fi
9858rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9859fi
9860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9861printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9862	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9863	CFLAGS="$xorg_testset_save_CFLAGS"
9864fi
9865
9866if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9867	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9868		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9869	fi
9870	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9871	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9872printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9873if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9874then :
9875  printf %s "(cached) " >&6
9876else $as_nop
9877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9878/* end confdefs.h.  */
9879int i;
9880_ACEOF
9881if ac_fn_c_try_compile "$LINENO"
9882then :
9883  xorg_cv_cc_flag_unused_command_line_argument=yes
9884else $as_nop
9885  xorg_cv_cc_flag_unused_command_line_argument=no
9886fi
9887rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9888fi
9889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9890printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9891	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9892	CFLAGS="$xorg_testset_save_CFLAGS"
9893fi
9894
9895found="no"
9896
9897	if test $found = "no" ; then
9898		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9899			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9900		fi
9901
9902		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9903			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9904		fi
9905
9906		CFLAGS="$CFLAGS -Wtrigraphs"
9907
9908		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9909printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9910		cacheid=xorg_cv_cc_flag__Wtrigraphs
9911		if eval test \${$cacheid+y}
9912then :
9913  printf %s "(cached) " >&6
9914else $as_nop
9915  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9916/* end confdefs.h.  */
9917int i;
9918int
9919main (void)
9920{
9921
9922  ;
9923  return 0;
9924}
9925_ACEOF
9926if ac_fn_c_try_link "$LINENO"
9927then :
9928  eval $cacheid=yes
9929else $as_nop
9930  eval $cacheid=no
9931fi
9932rm -f core conftest.err conftest.$ac_objext conftest.beam \
9933    conftest$ac_exeext conftest.$ac_ext
9934fi
9935
9936
9937		CFLAGS="$xorg_testset_save_CFLAGS"
9938
9939		eval supported=\$$cacheid
9940		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9941printf "%s\n" "$supported" >&6; }
9942		if test "$supported" = "yes" ; then
9943			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9944			found="yes"
9945		fi
9946	fi
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962xorg_testset_save_CFLAGS="$CFLAGS"
9963
9964if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9965	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9966	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9967printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9968if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9969then :
9970  printf %s "(cached) " >&6
9971else $as_nop
9972  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9973/* end confdefs.h.  */
9974int i;
9975_ACEOF
9976if ac_fn_c_try_compile "$LINENO"
9977then :
9978  xorg_cv_cc_flag_unknown_warning_option=yes
9979else $as_nop
9980  xorg_cv_cc_flag_unknown_warning_option=no
9981fi
9982rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9983fi
9984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9985printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9986	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9987	CFLAGS="$xorg_testset_save_CFLAGS"
9988fi
9989
9990if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9991	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9992		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9993	fi
9994	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9995	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9996printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9997if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9998then :
9999  printf %s "(cached) " >&6
10000else $as_nop
10001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10002/* end confdefs.h.  */
10003int i;
10004_ACEOF
10005if ac_fn_c_try_compile "$LINENO"
10006then :
10007  xorg_cv_cc_flag_unused_command_line_argument=yes
10008else $as_nop
10009  xorg_cv_cc_flag_unused_command_line_argument=no
10010fi
10011rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10012fi
10013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10014printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10015	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10016	CFLAGS="$xorg_testset_save_CFLAGS"
10017fi
10018
10019found="no"
10020
10021	if test $found = "no" ; then
10022		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10023			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10024		fi
10025
10026		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10027			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10028		fi
10029
10030		CFLAGS="$CFLAGS -Warray-bounds"
10031
10032		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10033printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10034		cacheid=xorg_cv_cc_flag__Warray_bounds
10035		if eval test \${$cacheid+y}
10036then :
10037  printf %s "(cached) " >&6
10038else $as_nop
10039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10040/* end confdefs.h.  */
10041int i;
10042int
10043main (void)
10044{
10045
10046  ;
10047  return 0;
10048}
10049_ACEOF
10050if ac_fn_c_try_link "$LINENO"
10051then :
10052  eval $cacheid=yes
10053else $as_nop
10054  eval $cacheid=no
10055fi
10056rm -f core conftest.err conftest.$ac_objext conftest.beam \
10057    conftest$ac_exeext conftest.$ac_ext
10058fi
10059
10060
10061		CFLAGS="$xorg_testset_save_CFLAGS"
10062
10063		eval supported=\$$cacheid
10064		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10065printf "%s\n" "$supported" >&6; }
10066		if test "$supported" = "yes" ; then
10067			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10068			found="yes"
10069		fi
10070	fi
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086xorg_testset_save_CFLAGS="$CFLAGS"
10087
10088if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10089	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10090	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10091printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10092if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10093then :
10094  printf %s "(cached) " >&6
10095else $as_nop
10096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10097/* end confdefs.h.  */
10098int i;
10099_ACEOF
10100if ac_fn_c_try_compile "$LINENO"
10101then :
10102  xorg_cv_cc_flag_unknown_warning_option=yes
10103else $as_nop
10104  xorg_cv_cc_flag_unknown_warning_option=no
10105fi
10106rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10107fi
10108{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10109printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10110	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10111	CFLAGS="$xorg_testset_save_CFLAGS"
10112fi
10113
10114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10115	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10116		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10117	fi
10118	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10119	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10120printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10121if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10122then :
10123  printf %s "(cached) " >&6
10124else $as_nop
10125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126/* end confdefs.h.  */
10127int i;
10128_ACEOF
10129if ac_fn_c_try_compile "$LINENO"
10130then :
10131  xorg_cv_cc_flag_unused_command_line_argument=yes
10132else $as_nop
10133  xorg_cv_cc_flag_unused_command_line_argument=no
10134fi
10135rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10136fi
10137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10138printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10139	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10140	CFLAGS="$xorg_testset_save_CFLAGS"
10141fi
10142
10143found="no"
10144
10145	if test $found = "no" ; then
10146		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10147			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10148		fi
10149
10150		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10151			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10152		fi
10153
10154		CFLAGS="$CFLAGS -Wwrite-strings"
10155
10156		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10157printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10158		cacheid=xorg_cv_cc_flag__Wwrite_strings
10159		if eval test \${$cacheid+y}
10160then :
10161  printf %s "(cached) " >&6
10162else $as_nop
10163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10164/* end confdefs.h.  */
10165int i;
10166int
10167main (void)
10168{
10169
10170  ;
10171  return 0;
10172}
10173_ACEOF
10174if ac_fn_c_try_link "$LINENO"
10175then :
10176  eval $cacheid=yes
10177else $as_nop
10178  eval $cacheid=no
10179fi
10180rm -f core conftest.err conftest.$ac_objext conftest.beam \
10181    conftest$ac_exeext conftest.$ac_ext
10182fi
10183
10184
10185		CFLAGS="$xorg_testset_save_CFLAGS"
10186
10187		eval supported=\$$cacheid
10188		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10189printf "%s\n" "$supported" >&6; }
10190		if test "$supported" = "yes" ; then
10191			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10192			found="yes"
10193		fi
10194	fi
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210xorg_testset_save_CFLAGS="$CFLAGS"
10211
10212if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10213	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10214	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10215printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10216if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10217then :
10218  printf %s "(cached) " >&6
10219else $as_nop
10220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10221/* end confdefs.h.  */
10222int i;
10223_ACEOF
10224if ac_fn_c_try_compile "$LINENO"
10225then :
10226  xorg_cv_cc_flag_unknown_warning_option=yes
10227else $as_nop
10228  xorg_cv_cc_flag_unknown_warning_option=no
10229fi
10230rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10231fi
10232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10233printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10234	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10235	CFLAGS="$xorg_testset_save_CFLAGS"
10236fi
10237
10238if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10239	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10240		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10241	fi
10242	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10243	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10244printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10245if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10246then :
10247  printf %s "(cached) " >&6
10248else $as_nop
10249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10250/* end confdefs.h.  */
10251int i;
10252_ACEOF
10253if ac_fn_c_try_compile "$LINENO"
10254then :
10255  xorg_cv_cc_flag_unused_command_line_argument=yes
10256else $as_nop
10257  xorg_cv_cc_flag_unused_command_line_argument=no
10258fi
10259rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10260fi
10261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10262printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10263	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10264	CFLAGS="$xorg_testset_save_CFLAGS"
10265fi
10266
10267found="no"
10268
10269	if test $found = "no" ; then
10270		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10271			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10272		fi
10273
10274		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10275			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10276		fi
10277
10278		CFLAGS="$CFLAGS -Waddress"
10279
10280		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10281printf %s "checking if $CC supports -Waddress... " >&6; }
10282		cacheid=xorg_cv_cc_flag__Waddress
10283		if eval test \${$cacheid+y}
10284then :
10285  printf %s "(cached) " >&6
10286else $as_nop
10287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10288/* end confdefs.h.  */
10289int i;
10290int
10291main (void)
10292{
10293
10294  ;
10295  return 0;
10296}
10297_ACEOF
10298if ac_fn_c_try_link "$LINENO"
10299then :
10300  eval $cacheid=yes
10301else $as_nop
10302  eval $cacheid=no
10303fi
10304rm -f core conftest.err conftest.$ac_objext conftest.beam \
10305    conftest$ac_exeext conftest.$ac_ext
10306fi
10307
10308
10309		CFLAGS="$xorg_testset_save_CFLAGS"
10310
10311		eval supported=\$$cacheid
10312		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10313printf "%s\n" "$supported" >&6; }
10314		if test "$supported" = "yes" ; then
10315			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10316			found="yes"
10317		fi
10318	fi
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334xorg_testset_save_CFLAGS="$CFLAGS"
10335
10336if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10337	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10338	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10339printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10340if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10341then :
10342  printf %s "(cached) " >&6
10343else $as_nop
10344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10345/* end confdefs.h.  */
10346int i;
10347_ACEOF
10348if ac_fn_c_try_compile "$LINENO"
10349then :
10350  xorg_cv_cc_flag_unknown_warning_option=yes
10351else $as_nop
10352  xorg_cv_cc_flag_unknown_warning_option=no
10353fi
10354rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10355fi
10356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10357printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10358	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10359	CFLAGS="$xorg_testset_save_CFLAGS"
10360fi
10361
10362if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10363	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10364		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10365	fi
10366	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10367	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10368printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10369if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10370then :
10371  printf %s "(cached) " >&6
10372else $as_nop
10373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10374/* end confdefs.h.  */
10375int i;
10376_ACEOF
10377if ac_fn_c_try_compile "$LINENO"
10378then :
10379  xorg_cv_cc_flag_unused_command_line_argument=yes
10380else $as_nop
10381  xorg_cv_cc_flag_unused_command_line_argument=no
10382fi
10383rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10384fi
10385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10386printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10387	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10388	CFLAGS="$xorg_testset_save_CFLAGS"
10389fi
10390
10391found="no"
10392
10393	if test $found = "no" ; then
10394		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10395			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10396		fi
10397
10398		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10399			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10400		fi
10401
10402		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10403
10404		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10405printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10406		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10407		if eval test \${$cacheid+y}
10408then :
10409  printf %s "(cached) " >&6
10410else $as_nop
10411  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10412/* end confdefs.h.  */
10413int i;
10414int
10415main (void)
10416{
10417
10418  ;
10419  return 0;
10420}
10421_ACEOF
10422if ac_fn_c_try_link "$LINENO"
10423then :
10424  eval $cacheid=yes
10425else $as_nop
10426  eval $cacheid=no
10427fi
10428rm -f core conftest.err conftest.$ac_objext conftest.beam \
10429    conftest$ac_exeext conftest.$ac_ext
10430fi
10431
10432
10433		CFLAGS="$xorg_testset_save_CFLAGS"
10434
10435		eval supported=\$$cacheid
10436		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10437printf "%s\n" "$supported" >&6; }
10438		if test "$supported" = "yes" ; then
10439			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10440			found="yes"
10441		fi
10442	fi
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458xorg_testset_save_CFLAGS="$CFLAGS"
10459
10460if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10461	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10462	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10463printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10464if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10465then :
10466  printf %s "(cached) " >&6
10467else $as_nop
10468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10469/* end confdefs.h.  */
10470int i;
10471_ACEOF
10472if ac_fn_c_try_compile "$LINENO"
10473then :
10474  xorg_cv_cc_flag_unknown_warning_option=yes
10475else $as_nop
10476  xorg_cv_cc_flag_unknown_warning_option=no
10477fi
10478rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10479fi
10480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10481printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10482	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10483	CFLAGS="$xorg_testset_save_CFLAGS"
10484fi
10485
10486if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10487	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10488		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10489	fi
10490	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10491	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10492printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10493if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10494then :
10495  printf %s "(cached) " >&6
10496else $as_nop
10497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10498/* end confdefs.h.  */
10499int i;
10500_ACEOF
10501if ac_fn_c_try_compile "$LINENO"
10502then :
10503  xorg_cv_cc_flag_unused_command_line_argument=yes
10504else $as_nop
10505  xorg_cv_cc_flag_unused_command_line_argument=no
10506fi
10507rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10508fi
10509{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10510printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10511	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10512	CFLAGS="$xorg_testset_save_CFLAGS"
10513fi
10514
10515found="no"
10516
10517	if test $found = "no" ; then
10518		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10519			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10520		fi
10521
10522		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10523			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10524		fi
10525
10526		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10527
10528		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10529printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10530		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10531		if eval test \${$cacheid+y}
10532then :
10533  printf %s "(cached) " >&6
10534else $as_nop
10535  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10536/* end confdefs.h.  */
10537int i;
10538int
10539main (void)
10540{
10541
10542  ;
10543  return 0;
10544}
10545_ACEOF
10546if ac_fn_c_try_link "$LINENO"
10547then :
10548  eval $cacheid=yes
10549else $as_nop
10550  eval $cacheid=no
10551fi
10552rm -f core conftest.err conftest.$ac_objext conftest.beam \
10553    conftest$ac_exeext conftest.$ac_ext
10554fi
10555
10556
10557		CFLAGS="$xorg_testset_save_CFLAGS"
10558
10559		eval supported=\$$cacheid
10560		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10561printf "%s\n" "$supported" >&6; }
10562		if test "$supported" = "yes" ; then
10563			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10564			found="yes"
10565		fi
10566	fi
10567
10568
10569fi
10570
10571
10572
10573
10574
10575
10576
10577		CWARNFLAGS="$BASE_CFLAGS"
10578		if  test "x$GCC" = xyes ; then
10579		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10580		fi
10581
10582
10583
10584
10585
10586
10587
10588
10589# Check whether --enable-strict-compilation was given.
10590if test ${enable_strict_compilation+y}
10591then :
10592  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10593else $as_nop
10594  STRICT_COMPILE=no
10595fi
10596
10597
10598
10599
10600
10601
10602STRICT_CFLAGS=""
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616xorg_testset_save_CFLAGS="$CFLAGS"
10617
10618if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10619	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10620	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10621printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10622if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10623then :
10624  printf %s "(cached) " >&6
10625else $as_nop
10626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627/* end confdefs.h.  */
10628int i;
10629_ACEOF
10630if ac_fn_c_try_compile "$LINENO"
10631then :
10632  xorg_cv_cc_flag_unknown_warning_option=yes
10633else $as_nop
10634  xorg_cv_cc_flag_unknown_warning_option=no
10635fi
10636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10637fi
10638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10639printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10640	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10641	CFLAGS="$xorg_testset_save_CFLAGS"
10642fi
10643
10644if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10645	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10646		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10647	fi
10648	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10649	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10650printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10651if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10652then :
10653  printf %s "(cached) " >&6
10654else $as_nop
10655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10656/* end confdefs.h.  */
10657int i;
10658_ACEOF
10659if ac_fn_c_try_compile "$LINENO"
10660then :
10661  xorg_cv_cc_flag_unused_command_line_argument=yes
10662else $as_nop
10663  xorg_cv_cc_flag_unused_command_line_argument=no
10664fi
10665rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10666fi
10667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10668printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10669	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10670	CFLAGS="$xorg_testset_save_CFLAGS"
10671fi
10672
10673found="no"
10674
10675	if test $found = "no" ; then
10676		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10677			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10678		fi
10679
10680		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10681			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10682		fi
10683
10684		CFLAGS="$CFLAGS -pedantic"
10685
10686		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10687printf %s "checking if $CC supports -pedantic... " >&6; }
10688		cacheid=xorg_cv_cc_flag__pedantic
10689		if eval test \${$cacheid+y}
10690then :
10691  printf %s "(cached) " >&6
10692else $as_nop
10693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694/* end confdefs.h.  */
10695int i;
10696int
10697main (void)
10698{
10699
10700  ;
10701  return 0;
10702}
10703_ACEOF
10704if ac_fn_c_try_link "$LINENO"
10705then :
10706  eval $cacheid=yes
10707else $as_nop
10708  eval $cacheid=no
10709fi
10710rm -f core conftest.err conftest.$ac_objext conftest.beam \
10711    conftest$ac_exeext conftest.$ac_ext
10712fi
10713
10714
10715		CFLAGS="$xorg_testset_save_CFLAGS"
10716
10717		eval supported=\$$cacheid
10718		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10719printf "%s\n" "$supported" >&6; }
10720		if test "$supported" = "yes" ; then
10721			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10722			found="yes"
10723		fi
10724	fi
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740xorg_testset_save_CFLAGS="$CFLAGS"
10741
10742if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10743	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10744	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10745printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10746if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10747then :
10748  printf %s "(cached) " >&6
10749else $as_nop
10750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10751/* end confdefs.h.  */
10752int i;
10753_ACEOF
10754if ac_fn_c_try_compile "$LINENO"
10755then :
10756  xorg_cv_cc_flag_unknown_warning_option=yes
10757else $as_nop
10758  xorg_cv_cc_flag_unknown_warning_option=no
10759fi
10760rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10761fi
10762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10763printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10764	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10765	CFLAGS="$xorg_testset_save_CFLAGS"
10766fi
10767
10768if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10769	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10770		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10771	fi
10772	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10773	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10774printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10775if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10776then :
10777  printf %s "(cached) " >&6
10778else $as_nop
10779  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10780/* end confdefs.h.  */
10781int i;
10782_ACEOF
10783if ac_fn_c_try_compile "$LINENO"
10784then :
10785  xorg_cv_cc_flag_unused_command_line_argument=yes
10786else $as_nop
10787  xorg_cv_cc_flag_unused_command_line_argument=no
10788fi
10789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10790fi
10791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10792printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10793	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10794	CFLAGS="$xorg_testset_save_CFLAGS"
10795fi
10796
10797found="no"
10798
10799	if test $found = "no" ; then
10800		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10801			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10802		fi
10803
10804		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10805			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10806		fi
10807
10808		CFLAGS="$CFLAGS -Werror"
10809
10810		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10811printf %s "checking if $CC supports -Werror... " >&6; }
10812		cacheid=xorg_cv_cc_flag__Werror
10813		if eval test \${$cacheid+y}
10814then :
10815  printf %s "(cached) " >&6
10816else $as_nop
10817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818/* end confdefs.h.  */
10819int i;
10820int
10821main (void)
10822{
10823
10824  ;
10825  return 0;
10826}
10827_ACEOF
10828if ac_fn_c_try_link "$LINENO"
10829then :
10830  eval $cacheid=yes
10831else $as_nop
10832  eval $cacheid=no
10833fi
10834rm -f core conftest.err conftest.$ac_objext conftest.beam \
10835    conftest$ac_exeext conftest.$ac_ext
10836fi
10837
10838
10839		CFLAGS="$xorg_testset_save_CFLAGS"
10840
10841		eval supported=\$$cacheid
10842		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10843printf "%s\n" "$supported" >&6; }
10844		if test "$supported" = "yes" ; then
10845			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10846			found="yes"
10847		fi
10848	fi
10849
10850	if test $found = "no" ; then
10851		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10852			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10853		fi
10854
10855		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10856			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10857		fi
10858
10859		CFLAGS="$CFLAGS -errwarn"
10860
10861		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10862printf %s "checking if $CC supports -errwarn... " >&6; }
10863		cacheid=xorg_cv_cc_flag__errwarn
10864		if eval test \${$cacheid+y}
10865then :
10866  printf %s "(cached) " >&6
10867else $as_nop
10868  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869/* end confdefs.h.  */
10870int i;
10871int
10872main (void)
10873{
10874
10875  ;
10876  return 0;
10877}
10878_ACEOF
10879if ac_fn_c_try_link "$LINENO"
10880then :
10881  eval $cacheid=yes
10882else $as_nop
10883  eval $cacheid=no
10884fi
10885rm -f core conftest.err conftest.$ac_objext conftest.beam \
10886    conftest$ac_exeext conftest.$ac_ext
10887fi
10888
10889
10890		CFLAGS="$xorg_testset_save_CFLAGS"
10891
10892		eval supported=\$$cacheid
10893		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10894printf "%s\n" "$supported" >&6; }
10895		if test "$supported" = "yes" ; then
10896			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10897			found="yes"
10898		fi
10899	fi
10900
10901
10902
10903# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10904# activate it with -Werror, so we add it here explicitly.
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918xorg_testset_save_CFLAGS="$CFLAGS"
10919
10920if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10921	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10922	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10923printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10924if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10925then :
10926  printf %s "(cached) " >&6
10927else $as_nop
10928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10929/* end confdefs.h.  */
10930int i;
10931_ACEOF
10932if ac_fn_c_try_compile "$LINENO"
10933then :
10934  xorg_cv_cc_flag_unknown_warning_option=yes
10935else $as_nop
10936  xorg_cv_cc_flag_unknown_warning_option=no
10937fi
10938rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10939fi
10940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10941printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10942	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10943	CFLAGS="$xorg_testset_save_CFLAGS"
10944fi
10945
10946if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10947	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10948		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10949	fi
10950	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10951	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10952printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10953if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10954then :
10955  printf %s "(cached) " >&6
10956else $as_nop
10957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10958/* end confdefs.h.  */
10959int i;
10960_ACEOF
10961if ac_fn_c_try_compile "$LINENO"
10962then :
10963  xorg_cv_cc_flag_unused_command_line_argument=yes
10964else $as_nop
10965  xorg_cv_cc_flag_unused_command_line_argument=no
10966fi
10967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10968fi
10969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10970printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10971	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10972	CFLAGS="$xorg_testset_save_CFLAGS"
10973fi
10974
10975found="no"
10976
10977	if test $found = "no" ; then
10978		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10979			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10980		fi
10981
10982		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10983			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10984		fi
10985
10986		CFLAGS="$CFLAGS -Werror=attributes"
10987
10988		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10989printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10990		cacheid=xorg_cv_cc_flag__Werror_attributes
10991		if eval test \${$cacheid+y}
10992then :
10993  printf %s "(cached) " >&6
10994else $as_nop
10995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996/* end confdefs.h.  */
10997int i;
10998int
10999main (void)
11000{
11001
11002  ;
11003  return 0;
11004}
11005_ACEOF
11006if ac_fn_c_try_link "$LINENO"
11007then :
11008  eval $cacheid=yes
11009else $as_nop
11010  eval $cacheid=no
11011fi
11012rm -f core conftest.err conftest.$ac_objext conftest.beam \
11013    conftest$ac_exeext conftest.$ac_ext
11014fi
11015
11016
11017		CFLAGS="$xorg_testset_save_CFLAGS"
11018
11019		eval supported=\$$cacheid
11020		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11021printf "%s\n" "$supported" >&6; }
11022		if test "$supported" = "yes" ; then
11023			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11024			found="yes"
11025		fi
11026	fi
11027
11028
11029
11030if test "x$STRICT_COMPILE" = "xyes"; then
11031    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11032    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11033fi
11034
11035
11036
11037
11038
11039
11040
11041
11042cat >>confdefs.h <<_ACEOF
11043#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11044_ACEOF
11045
11046	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11047	if test "x$PVM" = "x"; then
11048		PVM="0"
11049	fi
11050
11051printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11052
11053	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11054	if test "x$PVP" = "x"; then
11055		PVP="0"
11056	fi
11057
11058printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11059
11060
11061
11062CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11063mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11064|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11065touch \$(top_srcdir)/ChangeLog; \
11066echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11067
11068
11069
11070
11071macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11072INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11073mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11074|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11075touch \$(top_srcdir)/INSTALL; \
11076echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11077
11078
11079
11080
11081
11082
11083case $host_os in
11084    solaris*)
11085        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11086        # check for a man page file found in later versions that use
11087        # traditional section numbers instead
11088        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11089printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11090if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11091then :
11092  printf %s "(cached) " >&6
11093else $as_nop
11094  test "$cross_compiling" = yes &&
11095  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11096if test -r "/usr/share/man/man7/attributes.7"; then
11097  ac_cv_file__usr_share_man_man7_attributes_7=yes
11098else
11099  ac_cv_file__usr_share_man_man7_attributes_7=no
11100fi
11101fi
11102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11103printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11104if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11105then :
11106  SYSV_MAN_SECTIONS=false
11107else $as_nop
11108  SYSV_MAN_SECTIONS=true
11109fi
11110
11111        ;;
11112    *) SYSV_MAN_SECTIONS=false ;;
11113esac
11114
11115if test x$APP_MAN_SUFFIX = x    ; then
11116    APP_MAN_SUFFIX=1
11117fi
11118if test x$APP_MAN_DIR = x    ; then
11119    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11120fi
11121
11122if test x$LIB_MAN_SUFFIX = x    ; then
11123    LIB_MAN_SUFFIX=3
11124fi
11125if test x$LIB_MAN_DIR = x    ; then
11126    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11127fi
11128
11129if test x$FILE_MAN_SUFFIX = x    ; then
11130    case $SYSV_MAN_SECTIONS in
11131	true)				FILE_MAN_SUFFIX=4  ;;
11132	*)				FILE_MAN_SUFFIX=5  ;;
11133    esac
11134fi
11135if test x$FILE_MAN_DIR = x    ; then
11136    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11137fi
11138
11139if test x$MISC_MAN_SUFFIX = x    ; then
11140    case $SYSV_MAN_SECTIONS in
11141	true)				MISC_MAN_SUFFIX=5  ;;
11142	*)				MISC_MAN_SUFFIX=7  ;;
11143    esac
11144fi
11145if test x$MISC_MAN_DIR = x    ; then
11146    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11147fi
11148
11149if test x$DRIVER_MAN_SUFFIX = x    ; then
11150    case $SYSV_MAN_SECTIONS in
11151	true)				DRIVER_MAN_SUFFIX=7  ;;
11152	*)				DRIVER_MAN_SUFFIX=4  ;;
11153    esac
11154fi
11155if test x$DRIVER_MAN_DIR = x    ; then
11156    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11157fi
11158
11159if test x$ADMIN_MAN_SUFFIX = x    ; then
11160    case $SYSV_MAN_SECTIONS in
11161	true)				ADMIN_MAN_SUFFIX=1m ;;
11162	*)				ADMIN_MAN_SUFFIX=8  ;;
11163    esac
11164fi
11165if test x$ADMIN_MAN_DIR = x    ; then
11166    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11167fi
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183XORG_MAN_PAGE="X Version 11"
11184
11185MAN_SUBSTS="\
11186	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11187	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11188	-e 's|__xservername__|Xorg|g' \
11189	-e 's|__xconfigfile__|xorg.conf|g' \
11190	-e 's|__projectroot__|\$(prefix)|g' \
11191	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11192	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11193	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11194	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11195	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11196	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11197	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11198
11199
11200
11201# Check whether --enable-silent-rules was given.
11202if test ${enable_silent_rules+y}
11203then :
11204  enableval=$enable_silent_rules;
11205fi
11206
11207case $enable_silent_rules in # (((
11208  yes) AM_DEFAULT_VERBOSITY=0;;
11209   no) AM_DEFAULT_VERBOSITY=1;;
11210    *) AM_DEFAULT_VERBOSITY=0;;
11211esac
11212am_make=${MAKE-make}
11213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11214printf %s "checking whether $am_make supports nested variables... " >&6; }
11215if test ${am_cv_make_support_nested_variables+y}
11216then :
11217  printf %s "(cached) " >&6
11218else $as_nop
11219  if printf "%s\n" 'TRUE=$(BAR$(V))
11220BAR0=false
11221BAR1=true
11222V=1
11223am__doit:
11224	@$(TRUE)
11225.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11226  am_cv_make_support_nested_variables=yes
11227else
11228  am_cv_make_support_nested_variables=no
11229fi
11230fi
11231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11232printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11233if test $am_cv_make_support_nested_variables = yes; then
11234    AM_V='$(V)'
11235  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11236else
11237  AM_V=$AM_DEFAULT_VERBOSITY
11238  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11239fi
11240AM_BACKSLASH='\'
11241
11242
11243
11244
11245# Initialize libtool
11246# Check whether --enable-static was given.
11247if test ${enable_static+y}
11248then :
11249  enableval=$enable_static; p=${PACKAGE-default}
11250    case $enableval in
11251    yes) enable_static=yes ;;
11252    no) enable_static=no ;;
11253    *)
11254     enable_static=no
11255      # Look at the argument we got.  We use all the common list separators.
11256      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11257      for pkg in $enableval; do
11258	IFS=$lt_save_ifs
11259	if test "X$pkg" = "X$p"; then
11260	  enable_static=yes
11261	fi
11262      done
11263      IFS=$lt_save_ifs
11264      ;;
11265    esac
11266else $as_nop
11267  enable_static=no
11268fi
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278case `pwd` in
11279  *\ * | *\	*)
11280    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11281printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11282esac
11283
11284
11285
11286macro_version='2.4.7'
11287macro_revision='2.4.7'
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302ltmain=$ac_aux_dir/ltmain.sh
11303
11304# Backslashify metacharacters that are still active within
11305# double-quoted strings.
11306sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11307
11308# Same as above, but do not quote variable references.
11309double_quote_subst='s/\(["`\\]\)/\\\1/g'
11310
11311# Sed substitution to delay expansion of an escaped shell variable in a
11312# double_quote_subst'ed string.
11313delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11314
11315# Sed substitution to delay expansion of an escaped single quote.
11316delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11317
11318# Sed substitution to avoid accidental globbing in evaled expressions
11319no_glob_subst='s/\*/\\\*/g'
11320
11321ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11322ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11323ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11324
11325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11326printf %s "checking how to print strings... " >&6; }
11327# Test print first, because it will be a builtin if present.
11328if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11329   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11330  ECHO='print -r --'
11331elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11332  ECHO='printf %s\n'
11333else
11334  # Use this function as a fallback that always works.
11335  func_fallback_echo ()
11336  {
11337    eval 'cat <<_LTECHO_EOF
11338$1
11339_LTECHO_EOF'
11340  }
11341  ECHO='func_fallback_echo'
11342fi
11343
11344# func_echo_all arg...
11345# Invoke $ECHO with all args, space-separated.
11346func_echo_all ()
11347{
11348    $ECHO ""
11349}
11350
11351case $ECHO in
11352  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11353printf "%s\n" "printf" >&6; } ;;
11354  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11355printf "%s\n" "print -r" >&6; } ;;
11356  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11357printf "%s\n" "cat" >&6; } ;;
11358esac
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11374printf %s "checking for a sed that does not truncate output... " >&6; }
11375if test ${ac_cv_path_SED+y}
11376then :
11377  printf %s "(cached) " >&6
11378else $as_nop
11379            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11380     for ac_i in 1 2 3 4 5 6 7; do
11381       ac_script="$ac_script$as_nl$ac_script"
11382     done
11383     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11384     { ac_script=; unset ac_script;}
11385     if test -z "$SED"; then
11386  ac_path_SED_found=false
11387  # Loop through the user's path and test for each of PROGNAME-LIST
11388  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11389for as_dir in $PATH
11390do
11391  IFS=$as_save_IFS
11392  case $as_dir in #(((
11393    '') as_dir=./ ;;
11394    */) ;;
11395    *) as_dir=$as_dir/ ;;
11396  esac
11397    for ac_prog in sed gsed
11398   do
11399    for ac_exec_ext in '' $ac_executable_extensions; do
11400      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
11401      as_fn_executable_p "$ac_path_SED" || continue
11402# Check for GNU ac_path_SED and select it if it is found.
11403  # Check for GNU $ac_path_SED
11404case `"$ac_path_SED" --version 2>&1` in
11405*GNU*)
11406  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11407*)
11408  ac_count=0
11409  printf %s 0123456789 >"conftest.in"
11410  while :
11411  do
11412    cat "conftest.in" "conftest.in" >"conftest.tmp"
11413    mv "conftest.tmp" "conftest.in"
11414    cp "conftest.in" "conftest.nl"
11415    printf "%s\n" '' >> "conftest.nl"
11416    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11417    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11418    as_fn_arith $ac_count + 1 && ac_count=$as_val
11419    if test $ac_count -gt ${ac_path_SED_max-0}; then
11420      # Best one so far, save it but keep looking for a better one
11421      ac_cv_path_SED="$ac_path_SED"
11422      ac_path_SED_max=$ac_count
11423    fi
11424    # 10*(2^10) chars as input seems more than enough
11425    test $ac_count -gt 10 && break
11426  done
11427  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11428esac
11429
11430      $ac_path_SED_found && break 3
11431    done
11432  done
11433  done
11434IFS=$as_save_IFS
11435  if test -z "$ac_cv_path_SED"; then
11436    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11437  fi
11438else
11439  ac_cv_path_SED=$SED
11440fi
11441
11442fi
11443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11444printf "%s\n" "$ac_cv_path_SED" >&6; }
11445 SED="$ac_cv_path_SED"
11446  rm -f conftest.sed
11447
11448test -z "$SED" && SED=sed
11449Xsed="$SED -e 1s/^X//"
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11462printf %s "checking for grep that handles long lines and -e... " >&6; }
11463if test ${ac_cv_path_GREP+y}
11464then :
11465  printf %s "(cached) " >&6
11466else $as_nop
11467  if test -z "$GREP"; then
11468  ac_path_GREP_found=false
11469  # Loop through the user's path and test for each of PROGNAME-LIST
11470  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11471for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11472do
11473  IFS=$as_save_IFS
11474  case $as_dir in #(((
11475    '') as_dir=./ ;;
11476    */) ;;
11477    *) as_dir=$as_dir/ ;;
11478  esac
11479    for ac_prog in grep ggrep
11480   do
11481    for ac_exec_ext in '' $ac_executable_extensions; do
11482      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11483      as_fn_executable_p "$ac_path_GREP" || continue
11484# Check for GNU ac_path_GREP and select it if it is found.
11485  # Check for GNU $ac_path_GREP
11486case `"$ac_path_GREP" --version 2>&1` in
11487*GNU*)
11488  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11489*)
11490  ac_count=0
11491  printf %s 0123456789 >"conftest.in"
11492  while :
11493  do
11494    cat "conftest.in" "conftest.in" >"conftest.tmp"
11495    mv "conftest.tmp" "conftest.in"
11496    cp "conftest.in" "conftest.nl"
11497    printf "%s\n" 'GREP' >> "conftest.nl"
11498    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11499    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11500    as_fn_arith $ac_count + 1 && ac_count=$as_val
11501    if test $ac_count -gt ${ac_path_GREP_max-0}; then
11502      # Best one so far, save it but keep looking for a better one
11503      ac_cv_path_GREP="$ac_path_GREP"
11504      ac_path_GREP_max=$ac_count
11505    fi
11506    # 10*(2^10) chars as input seems more than enough
11507    test $ac_count -gt 10 && break
11508  done
11509  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11510esac
11511
11512      $ac_path_GREP_found && break 3
11513    done
11514  done
11515  done
11516IFS=$as_save_IFS
11517  if test -z "$ac_cv_path_GREP"; then
11518    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11519  fi
11520else
11521  ac_cv_path_GREP=$GREP
11522fi
11523
11524fi
11525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11526printf "%s\n" "$ac_cv_path_GREP" >&6; }
11527 GREP="$ac_cv_path_GREP"
11528
11529
11530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11531printf %s "checking for egrep... " >&6; }
11532if test ${ac_cv_path_EGREP+y}
11533then :
11534  printf %s "(cached) " >&6
11535else $as_nop
11536  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11537   then ac_cv_path_EGREP="$GREP -E"
11538   else
11539     if test -z "$EGREP"; then
11540  ac_path_EGREP_found=false
11541  # Loop through the user's path and test for each of PROGNAME-LIST
11542  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11543for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11544do
11545  IFS=$as_save_IFS
11546  case $as_dir in #(((
11547    '') as_dir=./ ;;
11548    */) ;;
11549    *) as_dir=$as_dir/ ;;
11550  esac
11551    for ac_prog in egrep
11552   do
11553    for ac_exec_ext in '' $ac_executable_extensions; do
11554      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11555      as_fn_executable_p "$ac_path_EGREP" || continue
11556# Check for GNU ac_path_EGREP and select it if it is found.
11557  # Check for GNU $ac_path_EGREP
11558case `"$ac_path_EGREP" --version 2>&1` in
11559*GNU*)
11560  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11561*)
11562  ac_count=0
11563  printf %s 0123456789 >"conftest.in"
11564  while :
11565  do
11566    cat "conftest.in" "conftest.in" >"conftest.tmp"
11567    mv "conftest.tmp" "conftest.in"
11568    cp "conftest.in" "conftest.nl"
11569    printf "%s\n" 'EGREP' >> "conftest.nl"
11570    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11571    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11572    as_fn_arith $ac_count + 1 && ac_count=$as_val
11573    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11574      # Best one so far, save it but keep looking for a better one
11575      ac_cv_path_EGREP="$ac_path_EGREP"
11576      ac_path_EGREP_max=$ac_count
11577    fi
11578    # 10*(2^10) chars as input seems more than enough
11579    test $ac_count -gt 10 && break
11580  done
11581  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11582esac
11583
11584      $ac_path_EGREP_found && break 3
11585    done
11586  done
11587  done
11588IFS=$as_save_IFS
11589  if test -z "$ac_cv_path_EGREP"; then
11590    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11591  fi
11592else
11593  ac_cv_path_EGREP=$EGREP
11594fi
11595
11596   fi
11597fi
11598{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11599printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11600 EGREP="$ac_cv_path_EGREP"
11601
11602
11603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11604printf %s "checking for fgrep... " >&6; }
11605if test ${ac_cv_path_FGREP+y}
11606then :
11607  printf %s "(cached) " >&6
11608else $as_nop
11609  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11610   then ac_cv_path_FGREP="$GREP -F"
11611   else
11612     if test -z "$FGREP"; then
11613  ac_path_FGREP_found=false
11614  # Loop through the user's path and test for each of PROGNAME-LIST
11615  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11616for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11617do
11618  IFS=$as_save_IFS
11619  case $as_dir in #(((
11620    '') as_dir=./ ;;
11621    */) ;;
11622    *) as_dir=$as_dir/ ;;
11623  esac
11624    for ac_prog in fgrep
11625   do
11626    for ac_exec_ext in '' $ac_executable_extensions; do
11627      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
11628      as_fn_executable_p "$ac_path_FGREP" || continue
11629# Check for GNU ac_path_FGREP and select it if it is found.
11630  # Check for GNU $ac_path_FGREP
11631case `"$ac_path_FGREP" --version 2>&1` in
11632*GNU*)
11633  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11634*)
11635  ac_count=0
11636  printf %s 0123456789 >"conftest.in"
11637  while :
11638  do
11639    cat "conftest.in" "conftest.in" >"conftest.tmp"
11640    mv "conftest.tmp" "conftest.in"
11641    cp "conftest.in" "conftest.nl"
11642    printf "%s\n" 'FGREP' >> "conftest.nl"
11643    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11644    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11645    as_fn_arith $ac_count + 1 && ac_count=$as_val
11646    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11647      # Best one so far, save it but keep looking for a better one
11648      ac_cv_path_FGREP="$ac_path_FGREP"
11649      ac_path_FGREP_max=$ac_count
11650    fi
11651    # 10*(2^10) chars as input seems more than enough
11652    test $ac_count -gt 10 && break
11653  done
11654  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11655esac
11656
11657      $ac_path_FGREP_found && break 3
11658    done
11659  done
11660  done
11661IFS=$as_save_IFS
11662  if test -z "$ac_cv_path_FGREP"; then
11663    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11664  fi
11665else
11666  ac_cv_path_FGREP=$FGREP
11667fi
11668
11669   fi
11670fi
11671{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11672printf "%s\n" "$ac_cv_path_FGREP" >&6; }
11673 FGREP="$ac_cv_path_FGREP"
11674
11675
11676test -z "$GREP" && GREP=grep
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696# Check whether --with-gnu-ld was given.
11697if test ${with_gnu_ld+y}
11698then :
11699  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11700else $as_nop
11701  with_gnu_ld=no
11702fi
11703
11704ac_prog=ld
11705if test yes = "$GCC"; then
11706  # Check if gcc -print-prog-name=ld gives a path.
11707  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11708printf %s "checking for ld used by $CC... " >&6; }
11709  case $host in
11710  *-*-mingw*)
11711    # gcc leaves a trailing carriage return, which upsets mingw
11712    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11713  *)
11714    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11715  esac
11716  case $ac_prog in
11717    # Accept absolute paths.
11718    [\\/]* | ?:[\\/]*)
11719      re_direlt='/[^/][^/]*/\.\./'
11720      # Canonicalize the pathname of ld
11721      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11722      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11723	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11724      done
11725      test -z "$LD" && LD=$ac_prog
11726      ;;
11727  "")
11728    # If it fails, then pretend we aren't using GCC.
11729    ac_prog=ld
11730    ;;
11731  *)
11732    # If it is relative, then search for the first ld in PATH.
11733    with_gnu_ld=unknown
11734    ;;
11735  esac
11736elif test yes = "$with_gnu_ld"; then
11737  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11738printf %s "checking for GNU ld... " >&6; }
11739else
11740  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11741printf %s "checking for non-GNU ld... " >&6; }
11742fi
11743if test ${lt_cv_path_LD+y}
11744then :
11745  printf %s "(cached) " >&6
11746else $as_nop
11747  if test -z "$LD"; then
11748  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11749  for ac_dir in $PATH; do
11750    IFS=$lt_save_ifs
11751    test -z "$ac_dir" && ac_dir=.
11752    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11753      lt_cv_path_LD=$ac_dir/$ac_prog
11754      # Check to see if the program is GNU ld.  I'd rather use --version,
11755      # but apparently some variants of GNU ld only accept -v.
11756      # Break only if it was the GNU/non-GNU ld that we prefer.
11757      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11758      *GNU* | *'with BFD'*)
11759	test no != "$with_gnu_ld" && break
11760	;;
11761      *)
11762	test yes != "$with_gnu_ld" && break
11763	;;
11764      esac
11765    fi
11766  done
11767  IFS=$lt_save_ifs
11768else
11769  lt_cv_path_LD=$LD # Let the user override the test with a path.
11770fi
11771fi
11772
11773LD=$lt_cv_path_LD
11774if test -n "$LD"; then
11775  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11776printf "%s\n" "$LD" >&6; }
11777else
11778  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11779printf "%s\n" "no" >&6; }
11780fi
11781test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11783printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
11784if test ${lt_cv_prog_gnu_ld+y}
11785then :
11786  printf %s "(cached) " >&6
11787else $as_nop
11788  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11789case `$LD -v 2>&1 </dev/null` in
11790*GNU* | *'with BFD'*)
11791  lt_cv_prog_gnu_ld=yes
11792  ;;
11793*)
11794  lt_cv_prog_gnu_ld=no
11795  ;;
11796esac
11797fi
11798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11799printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
11800with_gnu_ld=$lt_cv_prog_gnu_ld
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11811printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11812if test ${lt_cv_path_NM+y}
11813then :
11814  printf %s "(cached) " >&6
11815else $as_nop
11816  if test -n "$NM"; then
11817  # Let the user override the test.
11818  lt_cv_path_NM=$NM
11819else
11820  lt_nm_to_check=${ac_tool_prefix}nm
11821  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11822    lt_nm_to_check="$lt_nm_to_check nm"
11823  fi
11824  for lt_tmp_nm in $lt_nm_to_check; do
11825    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11826    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11827      IFS=$lt_save_ifs
11828      test -z "$ac_dir" && ac_dir=.
11829      tmp_nm=$ac_dir/$lt_tmp_nm
11830      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11831	# Check to see if the nm accepts a BSD-compat flag.
11832	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11833	#   nm: unknown option "B" ignored
11834	# Tru64's nm complains that /dev/null is an invalid object file
11835	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11836	case $build_os in
11837	mingw*) lt_bad_file=conftest.nm/nofile ;;
11838	*) lt_bad_file=/dev/null ;;
11839	esac
11840	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
11841	*$lt_bad_file* | *'Invalid file or object type'*)
11842	  lt_cv_path_NM="$tmp_nm -B"
11843	  break 2
11844	  ;;
11845	*)
11846	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
11847	  */dev/null*)
11848	    lt_cv_path_NM="$tmp_nm -p"
11849	    break 2
11850	    ;;
11851	  *)
11852	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11853	    continue # so that we can try to find one that supports BSD flags
11854	    ;;
11855	  esac
11856	  ;;
11857	esac
11858      fi
11859    done
11860    IFS=$lt_save_ifs
11861  done
11862  : ${lt_cv_path_NM=no}
11863fi
11864fi
11865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11866printf "%s\n" "$lt_cv_path_NM" >&6; }
11867if test no != "$lt_cv_path_NM"; then
11868  NM=$lt_cv_path_NM
11869else
11870  # Didn't find any BSD compatible name lister, look for dumpbin.
11871  if test -n "$DUMPBIN"; then :
11872    # Let the user override the test.
11873  else
11874    if test -n "$ac_tool_prefix"; then
11875  for ac_prog in dumpbin "link -dump"
11876  do
11877    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11878set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11880printf %s "checking for $ac_word... " >&6; }
11881if test ${ac_cv_prog_DUMPBIN+y}
11882then :
11883  printf %s "(cached) " >&6
11884else $as_nop
11885  if test -n "$DUMPBIN"; then
11886  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11887else
11888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11889for as_dir in $PATH
11890do
11891  IFS=$as_save_IFS
11892  case $as_dir in #(((
11893    '') as_dir=./ ;;
11894    */) ;;
11895    *) as_dir=$as_dir/ ;;
11896  esac
11897    for ac_exec_ext in '' $ac_executable_extensions; do
11898  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11899    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11900    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11901    break 2
11902  fi
11903done
11904  done
11905IFS=$as_save_IFS
11906
11907fi
11908fi
11909DUMPBIN=$ac_cv_prog_DUMPBIN
11910if test -n "$DUMPBIN"; then
11911  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11912printf "%s\n" "$DUMPBIN" >&6; }
11913else
11914  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915printf "%s\n" "no" >&6; }
11916fi
11917
11918
11919    test -n "$DUMPBIN" && break
11920  done
11921fi
11922if test -z "$DUMPBIN"; then
11923  ac_ct_DUMPBIN=$DUMPBIN
11924  for ac_prog in dumpbin "link -dump"
11925do
11926  # Extract the first word of "$ac_prog", so it can be a program name with args.
11927set dummy $ac_prog; ac_word=$2
11928{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11929printf %s "checking for $ac_word... " >&6; }
11930if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
11931then :
11932  printf %s "(cached) " >&6
11933else $as_nop
11934  if test -n "$ac_ct_DUMPBIN"; then
11935  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11936else
11937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11938for as_dir in $PATH
11939do
11940  IFS=$as_save_IFS
11941  case $as_dir in #(((
11942    '') as_dir=./ ;;
11943    */) ;;
11944    *) as_dir=$as_dir/ ;;
11945  esac
11946    for ac_exec_ext in '' $ac_executable_extensions; do
11947  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11948    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11949    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11950    break 2
11951  fi
11952done
11953  done
11954IFS=$as_save_IFS
11955
11956fi
11957fi
11958ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11959if test -n "$ac_ct_DUMPBIN"; then
11960  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11961printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
11962else
11963  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11964printf "%s\n" "no" >&6; }
11965fi
11966
11967
11968  test -n "$ac_ct_DUMPBIN" && break
11969done
11970
11971  if test "x$ac_ct_DUMPBIN" = x; then
11972    DUMPBIN=":"
11973  else
11974    case $cross_compiling:$ac_tool_warned in
11975yes:)
11976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11977printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11978ac_tool_warned=yes ;;
11979esac
11980    DUMPBIN=$ac_ct_DUMPBIN
11981  fi
11982fi
11983
11984    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
11985    *COFF*)
11986      DUMPBIN="$DUMPBIN -symbols -headers"
11987      ;;
11988    *)
11989      DUMPBIN=:
11990      ;;
11991    esac
11992  fi
11993
11994  if test : != "$DUMPBIN"; then
11995    NM=$DUMPBIN
11996  fi
11997fi
11998test -z "$NM" && NM=nm
11999
12000
12001
12002
12003
12004
12005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12006printf %s "checking the name lister ($NM) interface... " >&6; }
12007if test ${lt_cv_nm_interface+y}
12008then :
12009  printf %s "(cached) " >&6
12010else $as_nop
12011  lt_cv_nm_interface="BSD nm"
12012  echo "int some_variable = 0;" > conftest.$ac_ext
12013  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12014  (eval "$ac_compile" 2>conftest.err)
12015  cat conftest.err >&5
12016  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12017  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12018  cat conftest.err >&5
12019  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12020  cat conftest.out >&5
12021  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12022    lt_cv_nm_interface="MS dumpbin"
12023  fi
12024  rm -f conftest*
12025fi
12026{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12027printf "%s\n" "$lt_cv_nm_interface" >&6; }
12028
12029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12030printf %s "checking whether ln -s works... " >&6; }
12031LN_S=$as_ln_s
12032if test "$LN_S" = "ln -s"; then
12033  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12034printf "%s\n" "yes" >&6; }
12035else
12036  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12037printf "%s\n" "no, using $LN_S" >&6; }
12038fi
12039
12040# find the maximum length of command line arguments
12041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12042printf %s "checking the maximum length of command line arguments... " >&6; }
12043if test ${lt_cv_sys_max_cmd_len+y}
12044then :
12045  printf %s "(cached) " >&6
12046else $as_nop
12047    i=0
12048  teststring=ABCD
12049
12050  case $build_os in
12051  msdosdjgpp*)
12052    # On DJGPP, this test can blow up pretty badly due to problems in libc
12053    # (any single argument exceeding 2000 bytes causes a buffer overrun
12054    # during glob expansion).  Even if it were fixed, the result of this
12055    # check would be larger than it should be.
12056    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12057    ;;
12058
12059  gnu*)
12060    # Under GNU Hurd, this test is not required because there is
12061    # no limit to the length of command line arguments.
12062    # Libtool will interpret -1 as no limit whatsoever
12063    lt_cv_sys_max_cmd_len=-1;
12064    ;;
12065
12066  cygwin* | mingw* | cegcc*)
12067    # On Win9x/ME, this test blows up -- it succeeds, but takes
12068    # about 5 minutes as the teststring grows exponentially.
12069    # Worse, since 9x/ME are not pre-emptively multitasking,
12070    # you end up with a "frozen" computer, even though with patience
12071    # the test eventually succeeds (with a max line length of 256k).
12072    # Instead, let's just punt: use the minimum linelength reported by
12073    # all of the supported platforms: 8192 (on NT/2K/XP).
12074    lt_cv_sys_max_cmd_len=8192;
12075    ;;
12076
12077  mint*)
12078    # On MiNT this can take a long time and run out of memory.
12079    lt_cv_sys_max_cmd_len=8192;
12080    ;;
12081
12082  amigaos*)
12083    # On AmigaOS with pdksh, this test takes hours, literally.
12084    # So we just punt and use a minimum line length of 8192.
12085    lt_cv_sys_max_cmd_len=8192;
12086    ;;
12087
12088  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12089    # This has been around since 386BSD, at least.  Likely further.
12090    if test -x /sbin/sysctl; then
12091      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12092    elif test -x /usr/sbin/sysctl; then
12093      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12094    else
12095      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
12096    fi
12097    # And add a safety zone
12098    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12099    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12100    ;;
12101
12102  interix*)
12103    # We know the value 262144 and hardcode it with a safety zone (like BSD)
12104    lt_cv_sys_max_cmd_len=196608
12105    ;;
12106
12107  os2*)
12108    # The test takes a long time on OS/2.
12109    lt_cv_sys_max_cmd_len=8192
12110    ;;
12111
12112  osf*)
12113    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12114    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12115    # nice to cause kernel panics so lets avoid the loop below.
12116    # First set a reasonable default.
12117    lt_cv_sys_max_cmd_len=16384
12118    #
12119    if test -x /sbin/sysconfig; then
12120      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12121        *1*) lt_cv_sys_max_cmd_len=-1 ;;
12122      esac
12123    fi
12124    ;;
12125  sco3.2v5*)
12126    lt_cv_sys_max_cmd_len=102400
12127    ;;
12128  sysv5* | sco5v6* | sysv4.2uw2*)
12129    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12130    if test -n "$kargmax"; then
12131      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
12132    else
12133      lt_cv_sys_max_cmd_len=32768
12134    fi
12135    ;;
12136  *)
12137    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12138    if test -n "$lt_cv_sys_max_cmd_len" && \
12139       test undefined != "$lt_cv_sys_max_cmd_len"; then
12140      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12141      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12142    else
12143      # Make teststring a little bigger before we do anything with it.
12144      # a 1K string should be a reasonable start.
12145      for i in 1 2 3 4 5 6 7 8; do
12146        teststring=$teststring$teststring
12147      done
12148      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12149      # If test is not a shell built-in, we'll probably end up computing a
12150      # maximum length that is only half of the actual maximum length, but
12151      # we can't tell.
12152      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12153	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12154	      test 17 != "$i" # 1/2 MB should be enough
12155      do
12156        i=`expr $i + 1`
12157        teststring=$teststring$teststring
12158      done
12159      # Only check the string length outside the loop.
12160      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12161      teststring=
12162      # Add a significant safety factor because C++ compilers can tack on
12163      # massive amounts of additional arguments before passing them to the
12164      # linker.  It appears as though 1/2 is a usable value.
12165      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12166    fi
12167    ;;
12168  esac
12169
12170fi
12171
12172if test -n "$lt_cv_sys_max_cmd_len"; then
12173  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12174printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12175else
12176  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12177printf "%s\n" "none" >&6; }
12178fi
12179max_cmd_len=$lt_cv_sys_max_cmd_len
12180
12181
12182
12183
12184
12185
12186: ${CP="cp -f"}
12187: ${MV="mv -f"}
12188: ${RM="rm -f"}
12189
12190if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12191  lt_unset=unset
12192else
12193  lt_unset=false
12194fi
12195
12196
12197
12198
12199
12200# test EBCDIC or ASCII
12201case `echo X|tr X '\101'` in
12202 A) # ASCII based system
12203    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12204  lt_SP2NL='tr \040 \012'
12205  lt_NL2SP='tr \015\012 \040\040'
12206  ;;
12207 *) # EBCDIC based system
12208  lt_SP2NL='tr \100 \n'
12209  lt_NL2SP='tr \r\n \100\100'
12210  ;;
12211esac
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12222printf %s "checking how to convert $build file names to $host format... " >&6; }
12223if test ${lt_cv_to_host_file_cmd+y}
12224then :
12225  printf %s "(cached) " >&6
12226else $as_nop
12227  case $host in
12228  *-*-mingw* )
12229    case $build in
12230      *-*-mingw* ) # actually msys
12231        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12232        ;;
12233      *-*-cygwin* )
12234        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12235        ;;
12236      * ) # otherwise, assume *nix
12237        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12238        ;;
12239    esac
12240    ;;
12241  *-*-cygwin* )
12242    case $build in
12243      *-*-mingw* ) # actually msys
12244        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12245        ;;
12246      *-*-cygwin* )
12247        lt_cv_to_host_file_cmd=func_convert_file_noop
12248        ;;
12249      * ) # otherwise, assume *nix
12250        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12251        ;;
12252    esac
12253    ;;
12254  * ) # unhandled hosts (and "normal" native builds)
12255    lt_cv_to_host_file_cmd=func_convert_file_noop
12256    ;;
12257esac
12258
12259fi
12260
12261to_host_file_cmd=$lt_cv_to_host_file_cmd
12262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12263printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12264
12265
12266
12267
12268
12269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12270printf %s "checking how to convert $build file names to toolchain format... " >&6; }
12271if test ${lt_cv_to_tool_file_cmd+y}
12272then :
12273  printf %s "(cached) " >&6
12274else $as_nop
12275  #assume ordinary cross tools, or native build.
12276lt_cv_to_tool_file_cmd=func_convert_file_noop
12277case $host in
12278  *-*-mingw* )
12279    case $build in
12280      *-*-mingw* ) # actually msys
12281        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12282        ;;
12283    esac
12284    ;;
12285esac
12286
12287fi
12288
12289to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12291printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
12292
12293
12294
12295
12296
12297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12298printf %s "checking for $LD option to reload object files... " >&6; }
12299if test ${lt_cv_ld_reload_flag+y}
12300then :
12301  printf %s "(cached) " >&6
12302else $as_nop
12303  lt_cv_ld_reload_flag='-r'
12304fi
12305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12306printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
12307reload_flag=$lt_cv_ld_reload_flag
12308case $reload_flag in
12309"" | " "*) ;;
12310*) reload_flag=" $reload_flag" ;;
12311esac
12312reload_cmds='$LD$reload_flag -o $output$reload_objs'
12313case $host_os in
12314  cygwin* | mingw* | pw32* | cegcc*)
12315    if test yes != "$GCC"; then
12316      reload_cmds=false
12317    fi
12318    ;;
12319  darwin*)
12320    if test yes = "$GCC"; then
12321      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12322    else
12323      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12324    fi
12325    ;;
12326esac
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336if test -n "$ac_tool_prefix"; then
12337  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
12338set dummy ${ac_tool_prefix}file; ac_word=$2
12339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12340printf %s "checking for $ac_word... " >&6; }
12341if test ${ac_cv_prog_FILECMD+y}
12342then :
12343  printf %s "(cached) " >&6
12344else $as_nop
12345  if test -n "$FILECMD"; then
12346  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
12347else
12348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12349for as_dir in $PATH
12350do
12351  IFS=$as_save_IFS
12352  case $as_dir in #(((
12353    '') as_dir=./ ;;
12354    */) ;;
12355    *) as_dir=$as_dir/ ;;
12356  esac
12357    for ac_exec_ext in '' $ac_executable_extensions; do
12358  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12359    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
12360    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12361    break 2
12362  fi
12363done
12364  done
12365IFS=$as_save_IFS
12366
12367fi
12368fi
12369FILECMD=$ac_cv_prog_FILECMD
12370if test -n "$FILECMD"; then
12371  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
12372printf "%s\n" "$FILECMD" >&6; }
12373else
12374  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12375printf "%s\n" "no" >&6; }
12376fi
12377
12378
12379fi
12380if test -z "$ac_cv_prog_FILECMD"; then
12381  ac_ct_FILECMD=$FILECMD
12382  # Extract the first word of "file", so it can be a program name with args.
12383set dummy file; ac_word=$2
12384{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12385printf %s "checking for $ac_word... " >&6; }
12386if test ${ac_cv_prog_ac_ct_FILECMD+y}
12387then :
12388  printf %s "(cached) " >&6
12389else $as_nop
12390  if test -n "$ac_ct_FILECMD"; then
12391  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
12392else
12393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12394for as_dir in $PATH
12395do
12396  IFS=$as_save_IFS
12397  case $as_dir in #(((
12398    '') as_dir=./ ;;
12399    */) ;;
12400    *) as_dir=$as_dir/ ;;
12401  esac
12402    for ac_exec_ext in '' $ac_executable_extensions; do
12403  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12404    ac_cv_prog_ac_ct_FILECMD="file"
12405    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12406    break 2
12407  fi
12408done
12409  done
12410IFS=$as_save_IFS
12411
12412fi
12413fi
12414ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
12415if test -n "$ac_ct_FILECMD"; then
12416  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
12417printf "%s\n" "$ac_ct_FILECMD" >&6; }
12418else
12419  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12420printf "%s\n" "no" >&6; }
12421fi
12422
12423  if test "x$ac_ct_FILECMD" = x; then
12424    FILECMD=":"
12425  else
12426    case $cross_compiling:$ac_tool_warned in
12427yes:)
12428{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12429printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12430ac_tool_warned=yes ;;
12431esac
12432    FILECMD=$ac_ct_FILECMD
12433  fi
12434else
12435  FILECMD="$ac_cv_prog_FILECMD"
12436fi
12437
12438
12439
12440
12441
12442
12443
12444if test -n "$ac_tool_prefix"; then
12445  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12446set dummy ${ac_tool_prefix}objdump; ac_word=$2
12447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12448printf %s "checking for $ac_word... " >&6; }
12449if test ${ac_cv_prog_OBJDUMP+y}
12450then :
12451  printf %s "(cached) " >&6
12452else $as_nop
12453  if test -n "$OBJDUMP"; then
12454  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12455else
12456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12457for as_dir in $PATH
12458do
12459  IFS=$as_save_IFS
12460  case $as_dir in #(((
12461    '') as_dir=./ ;;
12462    */) ;;
12463    *) as_dir=$as_dir/ ;;
12464  esac
12465    for ac_exec_ext in '' $ac_executable_extensions; do
12466  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12467    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12468    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12469    break 2
12470  fi
12471done
12472  done
12473IFS=$as_save_IFS
12474
12475fi
12476fi
12477OBJDUMP=$ac_cv_prog_OBJDUMP
12478if test -n "$OBJDUMP"; then
12479  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12480printf "%s\n" "$OBJDUMP" >&6; }
12481else
12482  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483printf "%s\n" "no" >&6; }
12484fi
12485
12486
12487fi
12488if test -z "$ac_cv_prog_OBJDUMP"; then
12489  ac_ct_OBJDUMP=$OBJDUMP
12490  # Extract the first word of "objdump", so it can be a program name with args.
12491set dummy objdump; ac_word=$2
12492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12493printf %s "checking for $ac_word... " >&6; }
12494if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12495then :
12496  printf %s "(cached) " >&6
12497else $as_nop
12498  if test -n "$ac_ct_OBJDUMP"; then
12499  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12500else
12501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12502for as_dir in $PATH
12503do
12504  IFS=$as_save_IFS
12505  case $as_dir in #(((
12506    '') as_dir=./ ;;
12507    */) ;;
12508    *) as_dir=$as_dir/ ;;
12509  esac
12510    for ac_exec_ext in '' $ac_executable_extensions; do
12511  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12512    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12513    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12514    break 2
12515  fi
12516done
12517  done
12518IFS=$as_save_IFS
12519
12520fi
12521fi
12522ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12523if test -n "$ac_ct_OBJDUMP"; then
12524  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12525printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12526else
12527  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12528printf "%s\n" "no" >&6; }
12529fi
12530
12531  if test "x$ac_ct_OBJDUMP" = x; then
12532    OBJDUMP="false"
12533  else
12534    case $cross_compiling:$ac_tool_warned in
12535yes:)
12536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12537printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12538ac_tool_warned=yes ;;
12539esac
12540    OBJDUMP=$ac_ct_OBJDUMP
12541  fi
12542else
12543  OBJDUMP="$ac_cv_prog_OBJDUMP"
12544fi
12545
12546test -z "$OBJDUMP" && OBJDUMP=objdump
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12557printf %s "checking how to recognize dependent libraries... " >&6; }
12558if test ${lt_cv_deplibs_check_method+y}
12559then :
12560  printf %s "(cached) " >&6
12561else $as_nop
12562  lt_cv_file_magic_cmd='$MAGIC_CMD'
12563lt_cv_file_magic_test_file=
12564lt_cv_deplibs_check_method='unknown'
12565# Need to set the preceding variable on all platforms that support
12566# interlibrary dependencies.
12567# 'none' -- dependencies not supported.
12568# 'unknown' -- same as none, but documents that we really don't know.
12569# 'pass_all' -- all dependencies passed with no checks.
12570# 'test_compile' -- check by making test program.
12571# 'file_magic [[regex]]' -- check by looking for files in library path
12572# that responds to the $file_magic_cmd with a given extended regex.
12573# If you have 'file' or equivalent on your system and you're not sure
12574# whether 'pass_all' will *always* work, you probably want this one.
12575
12576case $host_os in
12577aix[4-9]*)
12578  lt_cv_deplibs_check_method=pass_all
12579  ;;
12580
12581beos*)
12582  lt_cv_deplibs_check_method=pass_all
12583  ;;
12584
12585bsdi[45]*)
12586  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12587  lt_cv_file_magic_cmd='$FILECMD -L'
12588  lt_cv_file_magic_test_file=/shlib/libc.so
12589  ;;
12590
12591cygwin*)
12592  # func_win32_libid is a shell function defined in ltmain.sh
12593  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12594  lt_cv_file_magic_cmd='func_win32_libid'
12595  ;;
12596
12597mingw* | pw32*)
12598  # Base MSYS/MinGW do not provide the 'file' command needed by
12599  # func_win32_libid shell function, so use a weaker test based on 'objdump',
12600  # unless we find 'file', for example because we are cross-compiling.
12601  if ( file / ) >/dev/null 2>&1; then
12602    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12603    lt_cv_file_magic_cmd='func_win32_libid'
12604  else
12605    # Keep this pattern in sync with the one in func_win32_libid.
12606    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12607    lt_cv_file_magic_cmd='$OBJDUMP -f'
12608  fi
12609  ;;
12610
12611cegcc*)
12612  # use the weaker test based on 'objdump'. See mingw*.
12613  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12614  lt_cv_file_magic_cmd='$OBJDUMP -f'
12615  ;;
12616
12617darwin* | rhapsody*)
12618  lt_cv_deplibs_check_method=pass_all
12619  ;;
12620
12621freebsd* | dragonfly* | midnightbsd*)
12622  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12623    case $host_cpu in
12624    i*86 )
12625      # Not sure whether the presence of OpenBSD here was a mistake.
12626      # Let's accept both of them until this is cleared up.
12627      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12628      lt_cv_file_magic_cmd=$FILECMD
12629      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12630      ;;
12631    esac
12632  else
12633    lt_cv_deplibs_check_method=pass_all
12634  fi
12635  ;;
12636
12637haiku*)
12638  lt_cv_deplibs_check_method=pass_all
12639  ;;
12640
12641hpux10.20* | hpux11*)
12642  lt_cv_file_magic_cmd=$FILECMD
12643  case $host_cpu in
12644  ia64*)
12645    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12646    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12647    ;;
12648  hppa*64*)
12649    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]'
12650    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12651    ;;
12652  *)
12653    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12654    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12655    ;;
12656  esac
12657  ;;
12658
12659interix[3-9]*)
12660  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12661  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12662  ;;
12663
12664irix5* | irix6* | nonstopux*)
12665  case $LD in
12666  *-32|*"-32 ") libmagic=32-bit;;
12667  *-n32|*"-n32 ") libmagic=N32;;
12668  *-64|*"-64 ") libmagic=64-bit;;
12669  *) libmagic=never-match;;
12670  esac
12671  lt_cv_deplibs_check_method=pass_all
12672  ;;
12673
12674# This must be glibc/ELF.
12675linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12676  lt_cv_deplibs_check_method=pass_all
12677  ;;
12678
12679netbsd*)
12680  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12681    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12682  else
12683    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12684  fi
12685  ;;
12686
12687newos6*)
12688  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12689  lt_cv_file_magic_cmd=$FILECMD
12690  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12691  ;;
12692
12693*nto* | *qnx*)
12694  lt_cv_deplibs_check_method=pass_all
12695  ;;
12696
12697openbsd* | bitrig*)
12698  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12699    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12700  else
12701    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12702  fi
12703  ;;
12704
12705osf3* | osf4* | osf5*)
12706  lt_cv_deplibs_check_method=pass_all
12707  ;;
12708
12709rdos*)
12710  lt_cv_deplibs_check_method=pass_all
12711  ;;
12712
12713solaris*)
12714  lt_cv_deplibs_check_method=pass_all
12715  ;;
12716
12717sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12718  lt_cv_deplibs_check_method=pass_all
12719  ;;
12720
12721sysv4 | sysv4.3*)
12722  case $host_vendor in
12723  motorola)
12724    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]'
12725    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12726    ;;
12727  ncr)
12728    lt_cv_deplibs_check_method=pass_all
12729    ;;
12730  sequent)
12731    lt_cv_file_magic_cmd='/bin/file'
12732    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12733    ;;
12734  sni)
12735    lt_cv_file_magic_cmd='/bin/file'
12736    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12737    lt_cv_file_magic_test_file=/lib/libc.so
12738    ;;
12739  siemens)
12740    lt_cv_deplibs_check_method=pass_all
12741    ;;
12742  pc)
12743    lt_cv_deplibs_check_method=pass_all
12744    ;;
12745  esac
12746  ;;
12747
12748tpf*)
12749  lt_cv_deplibs_check_method=pass_all
12750  ;;
12751os2*)
12752  lt_cv_deplibs_check_method=pass_all
12753  ;;
12754esac
12755
12756fi
12757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12758printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
12759
12760file_magic_glob=
12761want_nocaseglob=no
12762if test "$build" = "$host"; then
12763  case $host_os in
12764  mingw* | pw32*)
12765    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12766      want_nocaseglob=yes
12767    else
12768      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12769    fi
12770    ;;
12771  esac
12772fi
12773
12774file_magic_cmd=$lt_cv_file_magic_cmd
12775deplibs_check_method=$lt_cv_deplibs_check_method
12776test -z "$deplibs_check_method" && deplibs_check_method=unknown
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799if test -n "$ac_tool_prefix"; then
12800  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12801set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12803printf %s "checking for $ac_word... " >&6; }
12804if test ${ac_cv_prog_DLLTOOL+y}
12805then :
12806  printf %s "(cached) " >&6
12807else $as_nop
12808  if test -n "$DLLTOOL"; then
12809  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12810else
12811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12812for as_dir in $PATH
12813do
12814  IFS=$as_save_IFS
12815  case $as_dir in #(((
12816    '') as_dir=./ ;;
12817    */) ;;
12818    *) as_dir=$as_dir/ ;;
12819  esac
12820    for ac_exec_ext in '' $ac_executable_extensions; do
12821  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12822    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12823    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12824    break 2
12825  fi
12826done
12827  done
12828IFS=$as_save_IFS
12829
12830fi
12831fi
12832DLLTOOL=$ac_cv_prog_DLLTOOL
12833if test -n "$DLLTOOL"; then
12834  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12835printf "%s\n" "$DLLTOOL" >&6; }
12836else
12837  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838printf "%s\n" "no" >&6; }
12839fi
12840
12841
12842fi
12843if test -z "$ac_cv_prog_DLLTOOL"; then
12844  ac_ct_DLLTOOL=$DLLTOOL
12845  # Extract the first word of "dlltool", so it can be a program name with args.
12846set dummy dlltool; ac_word=$2
12847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12848printf %s "checking for $ac_word... " >&6; }
12849if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12850then :
12851  printf %s "(cached) " >&6
12852else $as_nop
12853  if test -n "$ac_ct_DLLTOOL"; then
12854  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12855else
12856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12857for as_dir in $PATH
12858do
12859  IFS=$as_save_IFS
12860  case $as_dir in #(((
12861    '') as_dir=./ ;;
12862    */) ;;
12863    *) as_dir=$as_dir/ ;;
12864  esac
12865    for ac_exec_ext in '' $ac_executable_extensions; do
12866  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12867    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12868    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12869    break 2
12870  fi
12871done
12872  done
12873IFS=$as_save_IFS
12874
12875fi
12876fi
12877ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12878if test -n "$ac_ct_DLLTOOL"; then
12879  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12880printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12881else
12882  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883printf "%s\n" "no" >&6; }
12884fi
12885
12886  if test "x$ac_ct_DLLTOOL" = x; then
12887    DLLTOOL="false"
12888  else
12889    case $cross_compiling:$ac_tool_warned in
12890yes:)
12891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12892printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12893ac_tool_warned=yes ;;
12894esac
12895    DLLTOOL=$ac_ct_DLLTOOL
12896  fi
12897else
12898  DLLTOOL="$ac_cv_prog_DLLTOOL"
12899fi
12900
12901test -z "$DLLTOOL" && DLLTOOL=dlltool
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12913printf %s "checking how to associate runtime and link libraries... " >&6; }
12914if test ${lt_cv_sharedlib_from_linklib_cmd+y}
12915then :
12916  printf %s "(cached) " >&6
12917else $as_nop
12918  lt_cv_sharedlib_from_linklib_cmd='unknown'
12919
12920case $host_os in
12921cygwin* | mingw* | pw32* | cegcc*)
12922  # two different shell functions defined in ltmain.sh;
12923  # decide which one to use based on capabilities of $DLLTOOL
12924  case `$DLLTOOL --help 2>&1` in
12925  *--identify-strict*)
12926    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12927    ;;
12928  *)
12929    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12930    ;;
12931  esac
12932  ;;
12933*)
12934  # fallback: assume linklib IS sharedlib
12935  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12936  ;;
12937esac
12938
12939fi
12940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12941printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12942sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12943test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12944
12945
12946
12947
12948
12949
12950
12951if test -n "$ac_tool_prefix"; then
12952  for ac_prog in ar
12953  do
12954    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12955set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12957printf %s "checking for $ac_word... " >&6; }
12958if test ${ac_cv_prog_AR+y}
12959then :
12960  printf %s "(cached) " >&6
12961else $as_nop
12962  if test -n "$AR"; then
12963  ac_cv_prog_AR="$AR" # Let the user override the test.
12964else
12965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12966for as_dir in $PATH
12967do
12968  IFS=$as_save_IFS
12969  case $as_dir in #(((
12970    '') as_dir=./ ;;
12971    */) ;;
12972    *) as_dir=$as_dir/ ;;
12973  esac
12974    for ac_exec_ext in '' $ac_executable_extensions; do
12975  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12976    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12977    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12978    break 2
12979  fi
12980done
12981  done
12982IFS=$as_save_IFS
12983
12984fi
12985fi
12986AR=$ac_cv_prog_AR
12987if test -n "$AR"; then
12988  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12989printf "%s\n" "$AR" >&6; }
12990else
12991  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12992printf "%s\n" "no" >&6; }
12993fi
12994
12995
12996    test -n "$AR" && break
12997  done
12998fi
12999if test -z "$AR"; then
13000  ac_ct_AR=$AR
13001  for ac_prog in ar
13002do
13003  # Extract the first word of "$ac_prog", so it can be a program name with args.
13004set dummy $ac_prog; ac_word=$2
13005{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13006printf %s "checking for $ac_word... " >&6; }
13007if test ${ac_cv_prog_ac_ct_AR+y}
13008then :
13009  printf %s "(cached) " >&6
13010else $as_nop
13011  if test -n "$ac_ct_AR"; then
13012  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13013else
13014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13015for as_dir in $PATH
13016do
13017  IFS=$as_save_IFS
13018  case $as_dir in #(((
13019    '') as_dir=./ ;;
13020    */) ;;
13021    *) as_dir=$as_dir/ ;;
13022  esac
13023    for ac_exec_ext in '' $ac_executable_extensions; do
13024  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13025    ac_cv_prog_ac_ct_AR="$ac_prog"
13026    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13027    break 2
13028  fi
13029done
13030  done
13031IFS=$as_save_IFS
13032
13033fi
13034fi
13035ac_ct_AR=$ac_cv_prog_ac_ct_AR
13036if test -n "$ac_ct_AR"; then
13037  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13038printf "%s\n" "$ac_ct_AR" >&6; }
13039else
13040  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041printf "%s\n" "no" >&6; }
13042fi
13043
13044
13045  test -n "$ac_ct_AR" && break
13046done
13047
13048  if test "x$ac_ct_AR" = x; then
13049    AR="false"
13050  else
13051    case $cross_compiling:$ac_tool_warned in
13052yes:)
13053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13054printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13055ac_tool_warned=yes ;;
13056esac
13057    AR=$ac_ct_AR
13058  fi
13059fi
13060
13061: ${AR=ar}
13062
13063
13064
13065
13066
13067
13068# Use ARFLAGS variable as AR's operation code to sync the variable naming with
13069# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13070# higher priority because thats what people were doing historically (setting
13071# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
13072# variable obsoleted/removed.
13073
13074test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13075lt_ar_flags=$AR_FLAGS
13076
13077
13078
13079
13080
13081
13082# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
13083# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13084
13085
13086
13087
13088
13089
13090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13091printf %s "checking for archiver @FILE support... " >&6; }
13092if test ${lt_cv_ar_at_file+y}
13093then :
13094  printf %s "(cached) " >&6
13095else $as_nop
13096  lt_cv_ar_at_file=no
13097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13098/* end confdefs.h.  */
13099
13100int
13101main (void)
13102{
13103
13104  ;
13105  return 0;
13106}
13107_ACEOF
13108if ac_fn_c_try_compile "$LINENO"
13109then :
13110  echo conftest.$ac_objext > conftest.lst
13111      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13112      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13113  (eval $lt_ar_try) 2>&5
13114  ac_status=$?
13115  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13116  test $ac_status = 0; }
13117      if test 0 -eq "$ac_status"; then
13118	# Ensure the archiver fails upon bogus file names.
13119	rm -f conftest.$ac_objext libconftest.a
13120	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13121  (eval $lt_ar_try) 2>&5
13122  ac_status=$?
13123  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13124  test $ac_status = 0; }
13125	if test 0 -ne "$ac_status"; then
13126          lt_cv_ar_at_file=@
13127        fi
13128      fi
13129      rm -f conftest.* libconftest.a
13130
13131fi
13132rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13133
13134fi
13135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13136printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13137
13138if test no = "$lt_cv_ar_at_file"; then
13139  archiver_list_spec=
13140else
13141  archiver_list_spec=$lt_cv_ar_at_file
13142fi
13143
13144
13145
13146
13147
13148
13149
13150if test -n "$ac_tool_prefix"; then
13151  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13152set dummy ${ac_tool_prefix}strip; ac_word=$2
13153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13154printf %s "checking for $ac_word... " >&6; }
13155if test ${ac_cv_prog_STRIP+y}
13156then :
13157  printf %s "(cached) " >&6
13158else $as_nop
13159  if test -n "$STRIP"; then
13160  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13161else
13162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13163for as_dir in $PATH
13164do
13165  IFS=$as_save_IFS
13166  case $as_dir in #(((
13167    '') as_dir=./ ;;
13168    */) ;;
13169    *) as_dir=$as_dir/ ;;
13170  esac
13171    for ac_exec_ext in '' $ac_executable_extensions; do
13172  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13173    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13174    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13175    break 2
13176  fi
13177done
13178  done
13179IFS=$as_save_IFS
13180
13181fi
13182fi
13183STRIP=$ac_cv_prog_STRIP
13184if test -n "$STRIP"; then
13185  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13186printf "%s\n" "$STRIP" >&6; }
13187else
13188  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13189printf "%s\n" "no" >&6; }
13190fi
13191
13192
13193fi
13194if test -z "$ac_cv_prog_STRIP"; then
13195  ac_ct_STRIP=$STRIP
13196  # Extract the first word of "strip", so it can be a program name with args.
13197set dummy strip; ac_word=$2
13198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13199printf %s "checking for $ac_word... " >&6; }
13200if test ${ac_cv_prog_ac_ct_STRIP+y}
13201then :
13202  printf %s "(cached) " >&6
13203else $as_nop
13204  if test -n "$ac_ct_STRIP"; then
13205  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13206else
13207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13208for as_dir in $PATH
13209do
13210  IFS=$as_save_IFS
13211  case $as_dir in #(((
13212    '') as_dir=./ ;;
13213    */) ;;
13214    *) as_dir=$as_dir/ ;;
13215  esac
13216    for ac_exec_ext in '' $ac_executable_extensions; do
13217  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13218    ac_cv_prog_ac_ct_STRIP="strip"
13219    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13220    break 2
13221  fi
13222done
13223  done
13224IFS=$as_save_IFS
13225
13226fi
13227fi
13228ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13229if test -n "$ac_ct_STRIP"; then
13230  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13231printf "%s\n" "$ac_ct_STRIP" >&6; }
13232else
13233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13234printf "%s\n" "no" >&6; }
13235fi
13236
13237  if test "x$ac_ct_STRIP" = x; then
13238    STRIP=":"
13239  else
13240    case $cross_compiling:$ac_tool_warned in
13241yes:)
13242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13243printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13244ac_tool_warned=yes ;;
13245esac
13246    STRIP=$ac_ct_STRIP
13247  fi
13248else
13249  STRIP="$ac_cv_prog_STRIP"
13250fi
13251
13252test -z "$STRIP" && STRIP=:
13253
13254
13255
13256
13257
13258
13259if test -n "$ac_tool_prefix"; then
13260  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13261set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13263printf %s "checking for $ac_word... " >&6; }
13264if test ${ac_cv_prog_RANLIB+y}
13265then :
13266  printf %s "(cached) " >&6
13267else $as_nop
13268  if test -n "$RANLIB"; then
13269  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13270else
13271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13272for as_dir in $PATH
13273do
13274  IFS=$as_save_IFS
13275  case $as_dir in #(((
13276    '') as_dir=./ ;;
13277    */) ;;
13278    *) as_dir=$as_dir/ ;;
13279  esac
13280    for ac_exec_ext in '' $ac_executable_extensions; do
13281  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13282    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13283    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13284    break 2
13285  fi
13286done
13287  done
13288IFS=$as_save_IFS
13289
13290fi
13291fi
13292RANLIB=$ac_cv_prog_RANLIB
13293if test -n "$RANLIB"; then
13294  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13295printf "%s\n" "$RANLIB" >&6; }
13296else
13297  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298printf "%s\n" "no" >&6; }
13299fi
13300
13301
13302fi
13303if test -z "$ac_cv_prog_RANLIB"; then
13304  ac_ct_RANLIB=$RANLIB
13305  # Extract the first word of "ranlib", so it can be a program name with args.
13306set dummy ranlib; ac_word=$2
13307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13308printf %s "checking for $ac_word... " >&6; }
13309if test ${ac_cv_prog_ac_ct_RANLIB+y}
13310then :
13311  printf %s "(cached) " >&6
13312else $as_nop
13313  if test -n "$ac_ct_RANLIB"; then
13314  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13315else
13316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13317for as_dir in $PATH
13318do
13319  IFS=$as_save_IFS
13320  case $as_dir in #(((
13321    '') as_dir=./ ;;
13322    */) ;;
13323    *) as_dir=$as_dir/ ;;
13324  esac
13325    for ac_exec_ext in '' $ac_executable_extensions; do
13326  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13327    ac_cv_prog_ac_ct_RANLIB="ranlib"
13328    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13329    break 2
13330  fi
13331done
13332  done
13333IFS=$as_save_IFS
13334
13335fi
13336fi
13337ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13338if test -n "$ac_ct_RANLIB"; then
13339  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13340printf "%s\n" "$ac_ct_RANLIB" >&6; }
13341else
13342  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343printf "%s\n" "no" >&6; }
13344fi
13345
13346  if test "x$ac_ct_RANLIB" = x; then
13347    RANLIB=":"
13348  else
13349    case $cross_compiling:$ac_tool_warned in
13350yes:)
13351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13352printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13353ac_tool_warned=yes ;;
13354esac
13355    RANLIB=$ac_ct_RANLIB
13356  fi
13357else
13358  RANLIB="$ac_cv_prog_RANLIB"
13359fi
13360
13361test -z "$RANLIB" && RANLIB=:
13362
13363
13364
13365
13366
13367
13368# Determine commands to create old-style static archives.
13369old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13370old_postinstall_cmds='chmod 644 $oldlib'
13371old_postuninstall_cmds=
13372
13373if test -n "$RANLIB"; then
13374  case $host_os in
13375  bitrig* | openbsd*)
13376    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13377    ;;
13378  *)
13379    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13380    ;;
13381  esac
13382  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13383fi
13384
13385case $host_os in
13386  darwin*)
13387    lock_old_archive_extraction=yes ;;
13388  *)
13389    lock_old_archive_extraction=no ;;
13390esac
13391
13392
13393
13394
13395
13396
13397
13398
13399
13400
13401
13402
13403
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430# If no C compiler was specified, use CC.
13431LTCC=${LTCC-"$CC"}
13432
13433# If no C compiler flags were specified, use CFLAGS.
13434LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13435
13436# Allow CC to be a program name with arguments.
13437compiler=$CC
13438
13439
13440# Check for command to grab the raw symbol name followed by C symbol from nm.
13441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13442printf %s "checking command to parse $NM output from $compiler object... " >&6; }
13443if test ${lt_cv_sys_global_symbol_pipe+y}
13444then :
13445  printf %s "(cached) " >&6
13446else $as_nop
13447
13448# These are sane defaults that work on at least a few old systems.
13449# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13450
13451# Character class describing NM global symbol codes.
13452symcode='[BCDEGRST]'
13453
13454# Regexp to match symbols that can be accessed directly from C.
13455sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13456
13457# Define system-specific variables.
13458case $host_os in
13459aix*)
13460  symcode='[BCDT]'
13461  ;;
13462cygwin* | mingw* | pw32* | cegcc*)
13463  symcode='[ABCDGISTW]'
13464  ;;
13465hpux*)
13466  if test ia64 = "$host_cpu"; then
13467    symcode='[ABCDEGRST]'
13468  fi
13469  ;;
13470irix* | nonstopux*)
13471  symcode='[BCDEGRST]'
13472  ;;
13473osf*)
13474  symcode='[BCDEGQRST]'
13475  ;;
13476solaris*)
13477  symcode='[BDRT]'
13478  ;;
13479sco3.2v5*)
13480  symcode='[DT]'
13481  ;;
13482sysv4.2uw2*)
13483  symcode='[DT]'
13484  ;;
13485sysv5* | sco5v6* | unixware* | OpenUNIX*)
13486  symcode='[ABDT]'
13487  ;;
13488sysv4)
13489  symcode='[DFNSTU]'
13490  ;;
13491esac
13492
13493# If we're using GNU nm, then use its standard symbol codes.
13494case `$NM -V 2>&1` in
13495*GNU* | *'with BFD'*)
13496  symcode='[ABCDGIRSTW]' ;;
13497esac
13498
13499if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13500  # Gets list of data symbols to import.
13501  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
13502  # Adjust the below global symbol transforms to fixup imported variables.
13503  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13504  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
13505  lt_c_name_lib_hook="\
13506  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
13507  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
13508else
13509  # Disable hooks by default.
13510  lt_cv_sys_global_symbol_to_import=
13511  lt_cdecl_hook=
13512  lt_c_name_hook=
13513  lt_c_name_lib_hook=
13514fi
13515
13516# Transform an extracted symbol line into a proper C declaration.
13517# Some systems (esp. on ia64) link data and code symbols differently,
13518# so use this general approach.
13519lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
13520$lt_cdecl_hook\
13521" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13522" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13523
13524# Transform an extracted symbol line into symbol name and symbol address
13525lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
13526$lt_c_name_hook\
13527" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13528" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
13529
13530# Transform an extracted symbol line into symbol name with lib prefix and
13531# symbol address.
13532lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
13533$lt_c_name_lib_hook\
13534" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13535" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
13536" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
13537
13538# Handle CRLF in mingw tool chain
13539opt_cr=
13540case $build_os in
13541mingw*)
13542  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13543  ;;
13544esac
13545
13546# Try without a prefix underscore, then with it.
13547for ac_symprfx in "" "_"; do
13548
13549  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13550  symxfrm="\\1 $ac_symprfx\\2 \\2"
13551
13552  # Write the raw and C identifiers.
13553  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13554    # Fake it for dumpbin and say T for any non-static function,
13555    # D for any global variable and I for any imported variable.
13556    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
13557    # which start with @ or ?.
13558    lt_cv_sys_global_symbol_pipe="$AWK '"\
13559"     {last_section=section; section=\$ 3};"\
13560"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13561"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13562"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13563"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13564"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13565"     \$ 0!~/External *\|/{next};"\
13566"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13567"     {if(hide[section]) next};"\
13568"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13569"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13570"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13571"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13572"     ' prfx=^$ac_symprfx"
13573  else
13574    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13575  fi
13576  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
13577
13578  # Check to see that the pipe works correctly.
13579  pipe_works=no
13580
13581  rm -f conftest*
13582  cat > conftest.$ac_ext <<_LT_EOF
13583#ifdef __cplusplus
13584extern "C" {
13585#endif
13586char nm_test_var;
13587void nm_test_func(void);
13588void nm_test_func(void){}
13589#ifdef __cplusplus
13590}
13591#endif
13592int main(){nm_test_var='a';nm_test_func();return(0);}
13593_LT_EOF
13594
13595  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13596  (eval $ac_compile) 2>&5
13597  ac_status=$?
13598  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13599  test $ac_status = 0; }; then
13600    # Now try to grab the symbols.
13601    nlist=conftest.nm
13602    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13603  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13604  ac_status=$?
13605  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13606  test $ac_status = 0; } && test -s "$nlist"; then
13607      # Try sorting and uniquifying the output.
13608      if sort "$nlist" | uniq > "$nlist"T; then
13609	mv -f "$nlist"T "$nlist"
13610      else
13611	rm -f "$nlist"T
13612      fi
13613
13614      # Make sure that we snagged all the symbols we need.
13615      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13616	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13617	  cat <<_LT_EOF > conftest.$ac_ext
13618/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
13619#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13620/* DATA imports from DLLs on WIN32 can't be const, because runtime
13621   relocations are performed -- see ld's documentation on pseudo-relocs.  */
13622# define LT_DLSYM_CONST
13623#elif defined __osf__
13624/* This system does not cope well with relocations in const data.  */
13625# define LT_DLSYM_CONST
13626#else
13627# define LT_DLSYM_CONST const
13628#endif
13629
13630#ifdef __cplusplus
13631extern "C" {
13632#endif
13633
13634_LT_EOF
13635	  # Now generate the symbol file.
13636	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13637
13638	  cat <<_LT_EOF >> conftest.$ac_ext
13639
13640/* The mapping between symbol names and symbols.  */
13641LT_DLSYM_CONST struct {
13642  const char *name;
13643  void       *address;
13644}
13645lt__PROGRAM__LTX_preloaded_symbols[] =
13646{
13647  { "@PROGRAM@", (void *) 0 },
13648_LT_EOF
13649	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13650	  cat <<\_LT_EOF >> conftest.$ac_ext
13651  {0, (void *) 0}
13652};
13653
13654/* This works around a problem in FreeBSD linker */
13655#ifdef FREEBSD_WORKAROUND
13656static const void *lt_preloaded_setup() {
13657  return lt__PROGRAM__LTX_preloaded_symbols;
13658}
13659#endif
13660
13661#ifdef __cplusplus
13662}
13663#endif
13664_LT_EOF
13665	  # Now try linking the two files.
13666	  mv conftest.$ac_objext conftstm.$ac_objext
13667	  lt_globsym_save_LIBS=$LIBS
13668	  lt_globsym_save_CFLAGS=$CFLAGS
13669	  LIBS=conftstm.$ac_objext
13670	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13671	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13672  (eval $ac_link) 2>&5
13673  ac_status=$?
13674  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13675  test $ac_status = 0; } && test -s conftest$ac_exeext; then
13676	    pipe_works=yes
13677	  fi
13678	  LIBS=$lt_globsym_save_LIBS
13679	  CFLAGS=$lt_globsym_save_CFLAGS
13680	else
13681	  echo "cannot find nm_test_func in $nlist" >&5
13682	fi
13683      else
13684	echo "cannot find nm_test_var in $nlist" >&5
13685      fi
13686    else
13687      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13688    fi
13689  else
13690    echo "$progname: failed program was:" >&5
13691    cat conftest.$ac_ext >&5
13692  fi
13693  rm -rf conftest* conftst*
13694
13695  # Do not use the global_symbol_pipe unless it works.
13696  if test yes = "$pipe_works"; then
13697    break
13698  else
13699    lt_cv_sys_global_symbol_pipe=
13700  fi
13701done
13702
13703fi
13704
13705if test -z "$lt_cv_sys_global_symbol_pipe"; then
13706  lt_cv_sys_global_symbol_to_cdecl=
13707fi
13708if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13709  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13710printf "%s\n" "failed" >&6; }
13711else
13712  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13713printf "%s\n" "ok" >&6; }
13714fi
13715
13716# Response file support.
13717if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13718  nm_file_list_spec='@'
13719elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13720  nm_file_list_spec='@'
13721fi
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756
13757
13758
13759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13760printf %s "checking for sysroot... " >&6; }
13761
13762# Check whether --with-sysroot was given.
13763if test ${with_sysroot+y}
13764then :
13765  withval=$with_sysroot;
13766else $as_nop
13767  with_sysroot=no
13768fi
13769
13770
13771lt_sysroot=
13772case $with_sysroot in #(
13773 yes)
13774   if test yes = "$GCC"; then
13775     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13776   fi
13777   ;; #(
13778 /*)
13779   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
13780   ;; #(
13781 no|'')
13782   ;; #(
13783 *)
13784   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13785printf "%s\n" "$with_sysroot" >&6; }
13786   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13787   ;;
13788esac
13789
13790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13791printf "%s\n" "${lt_sysroot:-no}" >&6; }
13792
13793
13794
13795
13796
13797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13798printf %s "checking for a working dd... " >&6; }
13799if test ${ac_cv_path_lt_DD+y}
13800then :
13801  printf %s "(cached) " >&6
13802else $as_nop
13803  printf 0123456789abcdef0123456789abcdef >conftest.i
13804cat conftest.i conftest.i >conftest2.i
13805: ${lt_DD:=$DD}
13806if test -z "$lt_DD"; then
13807  ac_path_lt_DD_found=false
13808  # Loop through the user's path and test for each of PROGNAME-LIST
13809  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13810for as_dir in $PATH
13811do
13812  IFS=$as_save_IFS
13813  case $as_dir in #(((
13814    '') as_dir=./ ;;
13815    */) ;;
13816    *) as_dir=$as_dir/ ;;
13817  esac
13818    for ac_prog in dd
13819   do
13820    for ac_exec_ext in '' $ac_executable_extensions; do
13821      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
13822      as_fn_executable_p "$ac_path_lt_DD" || continue
13823if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13824  cmp -s conftest.i conftest.out \
13825  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13826fi
13827      $ac_path_lt_DD_found && break 3
13828    done
13829  done
13830  done
13831IFS=$as_save_IFS
13832  if test -z "$ac_cv_path_lt_DD"; then
13833    :
13834  fi
13835else
13836  ac_cv_path_lt_DD=$lt_DD
13837fi
13838
13839rm -f conftest.i conftest2.i conftest.out
13840fi
13841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13842printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
13843
13844
13845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13846printf %s "checking how to truncate binary pipes... " >&6; }
13847if test ${lt_cv_truncate_bin+y}
13848then :
13849  printf %s "(cached) " >&6
13850else $as_nop
13851  printf 0123456789abcdef0123456789abcdef >conftest.i
13852cat conftest.i conftest.i >conftest2.i
13853lt_cv_truncate_bin=
13854if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13855  cmp -s conftest.i conftest.out \
13856  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13857fi
13858rm -f conftest.i conftest2.i conftest.out
13859test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13860fi
13861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13862printf "%s\n" "$lt_cv_truncate_bin" >&6; }
13863
13864
13865
13866
13867
13868
13869
13870# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
13871func_cc_basename ()
13872{
13873    for cc_temp in $*""; do
13874      case $cc_temp in
13875        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13876        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13877        \-*) ;;
13878        *) break;;
13879      esac
13880    done
13881    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13882}
13883
13884# Check whether --enable-libtool-lock was given.
13885if test ${enable_libtool_lock+y}
13886then :
13887  enableval=$enable_libtool_lock;
13888fi
13889
13890test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13891
13892# Some flags need to be propagated to the compiler or linker for good
13893# libtool support.
13894case $host in
13895ia64-*-hpux*)
13896  # Find out what ABI is being produced by ac_compile, and set mode
13897  # options accordingly.
13898  echo 'int i;' > conftest.$ac_ext
13899  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13900  (eval $ac_compile) 2>&5
13901  ac_status=$?
13902  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13903  test $ac_status = 0; }; then
13904    case `$FILECMD conftest.$ac_objext` in
13905      *ELF-32*)
13906	HPUX_IA64_MODE=32
13907	;;
13908      *ELF-64*)
13909	HPUX_IA64_MODE=64
13910	;;
13911    esac
13912  fi
13913  rm -rf conftest*
13914  ;;
13915*-*-irix6*)
13916  # Find out what ABI is being produced by ac_compile, and set linker
13917  # options accordingly.
13918  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13919  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13920  (eval $ac_compile) 2>&5
13921  ac_status=$?
13922  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13923  test $ac_status = 0; }; then
13924    if test yes = "$lt_cv_prog_gnu_ld"; then
13925      case `$FILECMD conftest.$ac_objext` in
13926	*32-bit*)
13927	  LD="${LD-ld} -melf32bsmip"
13928	  ;;
13929	*N32*)
13930	  LD="${LD-ld} -melf32bmipn32"
13931	  ;;
13932	*64-bit*)
13933	  LD="${LD-ld} -melf64bmip"
13934	;;
13935      esac
13936    else
13937      case `$FILECMD conftest.$ac_objext` in
13938	*32-bit*)
13939	  LD="${LD-ld} -32"
13940	  ;;
13941	*N32*)
13942	  LD="${LD-ld} -n32"
13943	  ;;
13944	*64-bit*)
13945	  LD="${LD-ld} -64"
13946	  ;;
13947      esac
13948    fi
13949  fi
13950  rm -rf conftest*
13951  ;;
13952
13953mips64*-*linux*)
13954  # Find out what ABI is being produced by ac_compile, and set linker
13955  # options accordingly.
13956  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13957  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13958  (eval $ac_compile) 2>&5
13959  ac_status=$?
13960  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13961  test $ac_status = 0; }; then
13962    emul=elf
13963    case `$FILECMD conftest.$ac_objext` in
13964      *32-bit*)
13965	emul="${emul}32"
13966	;;
13967      *64-bit*)
13968	emul="${emul}64"
13969	;;
13970    esac
13971    case `$FILECMD conftest.$ac_objext` in
13972      *MSB*)
13973	emul="${emul}btsmip"
13974	;;
13975      *LSB*)
13976	emul="${emul}ltsmip"
13977	;;
13978    esac
13979    case `$FILECMD conftest.$ac_objext` in
13980      *N32*)
13981	emul="${emul}n32"
13982	;;
13983    esac
13984    LD="${LD-ld} -m $emul"
13985  fi
13986  rm -rf conftest*
13987  ;;
13988
13989x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13990s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13991  # Find out what ABI is being produced by ac_compile, and set linker
13992  # options accordingly.  Note that the listed cases only cover the
13993  # situations where additional linker options are needed (such as when
13994  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13995  # vice versa); the common cases where no linker options are needed do
13996  # not appear in the list.
13997  echo 'int i;' > conftest.$ac_ext
13998  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13999  (eval $ac_compile) 2>&5
14000  ac_status=$?
14001  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14002  test $ac_status = 0; }; then
14003    case `$FILECMD conftest.o` in
14004      *32-bit*)
14005	case $host in
14006	  x86_64-*kfreebsd*-gnu)
14007	    LD="${LD-ld} -m elf_i386_fbsd"
14008	    ;;
14009	  x86_64-*linux*)
14010	    case `$FILECMD conftest.o` in
14011	      *x86-64*)
14012		LD="${LD-ld} -m elf32_x86_64"
14013		;;
14014	      *)
14015		LD="${LD-ld} -m elf_i386"
14016		;;
14017	    esac
14018	    ;;
14019	  powerpc64le-*linux*)
14020	    LD="${LD-ld} -m elf32lppclinux"
14021	    ;;
14022	  powerpc64-*linux*)
14023	    LD="${LD-ld} -m elf32ppclinux"
14024	    ;;
14025	  s390x-*linux*)
14026	    LD="${LD-ld} -m elf_s390"
14027	    ;;
14028	  sparc64-*linux*)
14029	    LD="${LD-ld} -m elf32_sparc"
14030	    ;;
14031	esac
14032	;;
14033      *64-bit*)
14034	case $host in
14035	  x86_64-*kfreebsd*-gnu)
14036	    LD="${LD-ld} -m elf_x86_64_fbsd"
14037	    ;;
14038	  x86_64-*linux*)
14039	    LD="${LD-ld} -m elf_x86_64"
14040	    ;;
14041	  powerpcle-*linux*)
14042	    LD="${LD-ld} -m elf64lppc"
14043	    ;;
14044	  powerpc-*linux*)
14045	    LD="${LD-ld} -m elf64ppc"
14046	    ;;
14047	  s390*-*linux*|s390*-*tpf*)
14048	    LD="${LD-ld} -m elf64_s390"
14049	    ;;
14050	  sparc*-*linux*)
14051	    LD="${LD-ld} -m elf64_sparc"
14052	    ;;
14053	esac
14054	;;
14055    esac
14056  fi
14057  rm -rf conftest*
14058  ;;
14059
14060*-*-sco3.2v5*)
14061  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14062  SAVE_CFLAGS=$CFLAGS
14063  CFLAGS="$CFLAGS -belf"
14064  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14065printf %s "checking whether the C compiler needs -belf... " >&6; }
14066if test ${lt_cv_cc_needs_belf+y}
14067then :
14068  printf %s "(cached) " >&6
14069else $as_nop
14070  ac_ext=c
14071ac_cpp='$CPP $CPPFLAGS'
14072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14074ac_compiler_gnu=$ac_cv_c_compiler_gnu
14075
14076     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14077/* end confdefs.h.  */
14078
14079int
14080main (void)
14081{
14082
14083  ;
14084  return 0;
14085}
14086_ACEOF
14087if ac_fn_c_try_link "$LINENO"
14088then :
14089  lt_cv_cc_needs_belf=yes
14090else $as_nop
14091  lt_cv_cc_needs_belf=no
14092fi
14093rm -f core conftest.err conftest.$ac_objext conftest.beam \
14094    conftest$ac_exeext conftest.$ac_ext
14095     ac_ext=c
14096ac_cpp='$CPP $CPPFLAGS'
14097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14099ac_compiler_gnu=$ac_cv_c_compiler_gnu
14100
14101fi
14102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14103printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14104  if test yes != "$lt_cv_cc_needs_belf"; then
14105    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14106    CFLAGS=$SAVE_CFLAGS
14107  fi
14108  ;;
14109*-*solaris*)
14110  # Find out what ABI is being produced by ac_compile, and set linker
14111  # options accordingly.
14112  echo 'int i;' > conftest.$ac_ext
14113  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14114  (eval $ac_compile) 2>&5
14115  ac_status=$?
14116  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14117  test $ac_status = 0; }; then
14118    case `$FILECMD conftest.o` in
14119    *64-bit*)
14120      case $lt_cv_prog_gnu_ld in
14121      yes*)
14122        case $host in
14123        i?86-*-solaris*|x86_64-*-solaris*)
14124          LD="${LD-ld} -m elf_x86_64"
14125          ;;
14126        sparc*-*-solaris*)
14127          LD="${LD-ld} -m elf64_sparc"
14128          ;;
14129        esac
14130        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
14131        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14132          LD=${LD-ld}_sol2
14133        fi
14134        ;;
14135      *)
14136	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14137	  LD="${LD-ld} -64"
14138	fi
14139	;;
14140      esac
14141      ;;
14142    esac
14143  fi
14144  rm -rf conftest*
14145  ;;
14146esac
14147
14148need_locks=$enable_libtool_lock
14149
14150if test -n "$ac_tool_prefix"; then
14151  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14152set dummy ${ac_tool_prefix}mt; ac_word=$2
14153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14154printf %s "checking for $ac_word... " >&6; }
14155if test ${ac_cv_prog_MANIFEST_TOOL+y}
14156then :
14157  printf %s "(cached) " >&6
14158else $as_nop
14159  if test -n "$MANIFEST_TOOL"; then
14160  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14161else
14162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14163for as_dir in $PATH
14164do
14165  IFS=$as_save_IFS
14166  case $as_dir in #(((
14167    '') as_dir=./ ;;
14168    */) ;;
14169    *) as_dir=$as_dir/ ;;
14170  esac
14171    for ac_exec_ext in '' $ac_executable_extensions; do
14172  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14173    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14174    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14175    break 2
14176  fi
14177done
14178  done
14179IFS=$as_save_IFS
14180
14181fi
14182fi
14183MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14184if test -n "$MANIFEST_TOOL"; then
14185  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14186printf "%s\n" "$MANIFEST_TOOL" >&6; }
14187else
14188  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14189printf "%s\n" "no" >&6; }
14190fi
14191
14192
14193fi
14194if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14195  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14196  # Extract the first word of "mt", so it can be a program name with args.
14197set dummy mt; ac_word=$2
14198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14199printf %s "checking for $ac_word... " >&6; }
14200if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14201then :
14202  printf %s "(cached) " >&6
14203else $as_nop
14204  if test -n "$ac_ct_MANIFEST_TOOL"; then
14205  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14206else
14207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14208for as_dir in $PATH
14209do
14210  IFS=$as_save_IFS
14211  case $as_dir in #(((
14212    '') as_dir=./ ;;
14213    */) ;;
14214    *) as_dir=$as_dir/ ;;
14215  esac
14216    for ac_exec_ext in '' $ac_executable_extensions; do
14217  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14218    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14219    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14220    break 2
14221  fi
14222done
14223  done
14224IFS=$as_save_IFS
14225
14226fi
14227fi
14228ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14229if test -n "$ac_ct_MANIFEST_TOOL"; then
14230  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14231printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14232else
14233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14234printf "%s\n" "no" >&6; }
14235fi
14236
14237  if test "x$ac_ct_MANIFEST_TOOL" = x; then
14238    MANIFEST_TOOL=":"
14239  else
14240    case $cross_compiling:$ac_tool_warned in
14241yes:)
14242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14243printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14244ac_tool_warned=yes ;;
14245esac
14246    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14247  fi
14248else
14249  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14250fi
14251
14252test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14254printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14255if test ${lt_cv_path_mainfest_tool+y}
14256then :
14257  printf %s "(cached) " >&6
14258else $as_nop
14259  lt_cv_path_mainfest_tool=no
14260  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14261  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14262  cat conftest.err >&5
14263  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14264    lt_cv_path_mainfest_tool=yes
14265  fi
14266  rm -f conftest*
14267fi
14268{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14269printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
14270if test yes != "$lt_cv_path_mainfest_tool"; then
14271  MANIFEST_TOOL=:
14272fi
14273
14274
14275
14276
14277
14278
14279  case $host_os in
14280    rhapsody* | darwin*)
14281    if test -n "$ac_tool_prefix"; then
14282  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14283set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14285printf %s "checking for $ac_word... " >&6; }
14286if test ${ac_cv_prog_DSYMUTIL+y}
14287then :
14288  printf %s "(cached) " >&6
14289else $as_nop
14290  if test -n "$DSYMUTIL"; then
14291  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14292else
14293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14294for as_dir in $PATH
14295do
14296  IFS=$as_save_IFS
14297  case $as_dir in #(((
14298    '') as_dir=./ ;;
14299    */) ;;
14300    *) as_dir=$as_dir/ ;;
14301  esac
14302    for ac_exec_ext in '' $ac_executable_extensions; do
14303  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14304    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14305    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14306    break 2
14307  fi
14308done
14309  done
14310IFS=$as_save_IFS
14311
14312fi
14313fi
14314DSYMUTIL=$ac_cv_prog_DSYMUTIL
14315if test -n "$DSYMUTIL"; then
14316  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14317printf "%s\n" "$DSYMUTIL" >&6; }
14318else
14319  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14320printf "%s\n" "no" >&6; }
14321fi
14322
14323
14324fi
14325if test -z "$ac_cv_prog_DSYMUTIL"; then
14326  ac_ct_DSYMUTIL=$DSYMUTIL
14327  # Extract the first word of "dsymutil", so it can be a program name with args.
14328set dummy dsymutil; ac_word=$2
14329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14330printf %s "checking for $ac_word... " >&6; }
14331if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
14332then :
14333  printf %s "(cached) " >&6
14334else $as_nop
14335  if test -n "$ac_ct_DSYMUTIL"; then
14336  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14337else
14338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14339for as_dir in $PATH
14340do
14341  IFS=$as_save_IFS
14342  case $as_dir in #(((
14343    '') as_dir=./ ;;
14344    */) ;;
14345    *) as_dir=$as_dir/ ;;
14346  esac
14347    for ac_exec_ext in '' $ac_executable_extensions; do
14348  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14349    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14350    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14351    break 2
14352  fi
14353done
14354  done
14355IFS=$as_save_IFS
14356
14357fi
14358fi
14359ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14360if test -n "$ac_ct_DSYMUTIL"; then
14361  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14362printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14363else
14364  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14365printf "%s\n" "no" >&6; }
14366fi
14367
14368  if test "x$ac_ct_DSYMUTIL" = x; then
14369    DSYMUTIL=":"
14370  else
14371    case $cross_compiling:$ac_tool_warned in
14372yes:)
14373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14374printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14375ac_tool_warned=yes ;;
14376esac
14377    DSYMUTIL=$ac_ct_DSYMUTIL
14378  fi
14379else
14380  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14381fi
14382
14383    if test -n "$ac_tool_prefix"; then
14384  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14385set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14387printf %s "checking for $ac_word... " >&6; }
14388if test ${ac_cv_prog_NMEDIT+y}
14389then :
14390  printf %s "(cached) " >&6
14391else $as_nop
14392  if test -n "$NMEDIT"; then
14393  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14394else
14395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14396for as_dir in $PATH
14397do
14398  IFS=$as_save_IFS
14399  case $as_dir in #(((
14400    '') as_dir=./ ;;
14401    */) ;;
14402    *) as_dir=$as_dir/ ;;
14403  esac
14404    for ac_exec_ext in '' $ac_executable_extensions; do
14405  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14406    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14407    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14408    break 2
14409  fi
14410done
14411  done
14412IFS=$as_save_IFS
14413
14414fi
14415fi
14416NMEDIT=$ac_cv_prog_NMEDIT
14417if test -n "$NMEDIT"; then
14418  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14419printf "%s\n" "$NMEDIT" >&6; }
14420else
14421  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14422printf "%s\n" "no" >&6; }
14423fi
14424
14425
14426fi
14427if test -z "$ac_cv_prog_NMEDIT"; then
14428  ac_ct_NMEDIT=$NMEDIT
14429  # Extract the first word of "nmedit", so it can be a program name with args.
14430set dummy nmedit; ac_word=$2
14431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14432printf %s "checking for $ac_word... " >&6; }
14433if test ${ac_cv_prog_ac_ct_NMEDIT+y}
14434then :
14435  printf %s "(cached) " >&6
14436else $as_nop
14437  if test -n "$ac_ct_NMEDIT"; then
14438  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14439else
14440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14441for as_dir in $PATH
14442do
14443  IFS=$as_save_IFS
14444  case $as_dir in #(((
14445    '') as_dir=./ ;;
14446    */) ;;
14447    *) as_dir=$as_dir/ ;;
14448  esac
14449    for ac_exec_ext in '' $ac_executable_extensions; do
14450  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14451    ac_cv_prog_ac_ct_NMEDIT="nmedit"
14452    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14453    break 2
14454  fi
14455done
14456  done
14457IFS=$as_save_IFS
14458
14459fi
14460fi
14461ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14462if test -n "$ac_ct_NMEDIT"; then
14463  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14464printf "%s\n" "$ac_ct_NMEDIT" >&6; }
14465else
14466  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14467printf "%s\n" "no" >&6; }
14468fi
14469
14470  if test "x$ac_ct_NMEDIT" = x; then
14471    NMEDIT=":"
14472  else
14473    case $cross_compiling:$ac_tool_warned in
14474yes:)
14475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14476printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14477ac_tool_warned=yes ;;
14478esac
14479    NMEDIT=$ac_ct_NMEDIT
14480  fi
14481else
14482  NMEDIT="$ac_cv_prog_NMEDIT"
14483fi
14484
14485    if test -n "$ac_tool_prefix"; then
14486  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14487set dummy ${ac_tool_prefix}lipo; ac_word=$2
14488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14489printf %s "checking for $ac_word... " >&6; }
14490if test ${ac_cv_prog_LIPO+y}
14491then :
14492  printf %s "(cached) " >&6
14493else $as_nop
14494  if test -n "$LIPO"; then
14495  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14496else
14497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14498for as_dir in $PATH
14499do
14500  IFS=$as_save_IFS
14501  case $as_dir in #(((
14502    '') as_dir=./ ;;
14503    */) ;;
14504    *) as_dir=$as_dir/ ;;
14505  esac
14506    for ac_exec_ext in '' $ac_executable_extensions; do
14507  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14508    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14509    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14510    break 2
14511  fi
14512done
14513  done
14514IFS=$as_save_IFS
14515
14516fi
14517fi
14518LIPO=$ac_cv_prog_LIPO
14519if test -n "$LIPO"; then
14520  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14521printf "%s\n" "$LIPO" >&6; }
14522else
14523  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14524printf "%s\n" "no" >&6; }
14525fi
14526
14527
14528fi
14529if test -z "$ac_cv_prog_LIPO"; then
14530  ac_ct_LIPO=$LIPO
14531  # Extract the first word of "lipo", so it can be a program name with args.
14532set dummy lipo; ac_word=$2
14533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14534printf %s "checking for $ac_word... " >&6; }
14535if test ${ac_cv_prog_ac_ct_LIPO+y}
14536then :
14537  printf %s "(cached) " >&6
14538else $as_nop
14539  if test -n "$ac_ct_LIPO"; then
14540  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14541else
14542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14543for as_dir in $PATH
14544do
14545  IFS=$as_save_IFS
14546  case $as_dir in #(((
14547    '') as_dir=./ ;;
14548    */) ;;
14549    *) as_dir=$as_dir/ ;;
14550  esac
14551    for ac_exec_ext in '' $ac_executable_extensions; do
14552  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14553    ac_cv_prog_ac_ct_LIPO="lipo"
14554    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14555    break 2
14556  fi
14557done
14558  done
14559IFS=$as_save_IFS
14560
14561fi
14562fi
14563ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14564if test -n "$ac_ct_LIPO"; then
14565  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14566printf "%s\n" "$ac_ct_LIPO" >&6; }
14567else
14568  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14569printf "%s\n" "no" >&6; }
14570fi
14571
14572  if test "x$ac_ct_LIPO" = x; then
14573    LIPO=":"
14574  else
14575    case $cross_compiling:$ac_tool_warned in
14576yes:)
14577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14578printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14579ac_tool_warned=yes ;;
14580esac
14581    LIPO=$ac_ct_LIPO
14582  fi
14583else
14584  LIPO="$ac_cv_prog_LIPO"
14585fi
14586
14587    if test -n "$ac_tool_prefix"; then
14588  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14589set dummy ${ac_tool_prefix}otool; ac_word=$2
14590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14591printf %s "checking for $ac_word... " >&6; }
14592if test ${ac_cv_prog_OTOOL+y}
14593then :
14594  printf %s "(cached) " >&6
14595else $as_nop
14596  if test -n "$OTOOL"; then
14597  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14598else
14599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14600for as_dir in $PATH
14601do
14602  IFS=$as_save_IFS
14603  case $as_dir in #(((
14604    '') as_dir=./ ;;
14605    */) ;;
14606    *) as_dir=$as_dir/ ;;
14607  esac
14608    for ac_exec_ext in '' $ac_executable_extensions; do
14609  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14610    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14611    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14612    break 2
14613  fi
14614done
14615  done
14616IFS=$as_save_IFS
14617
14618fi
14619fi
14620OTOOL=$ac_cv_prog_OTOOL
14621if test -n "$OTOOL"; then
14622  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14623printf "%s\n" "$OTOOL" >&6; }
14624else
14625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14626printf "%s\n" "no" >&6; }
14627fi
14628
14629
14630fi
14631if test -z "$ac_cv_prog_OTOOL"; then
14632  ac_ct_OTOOL=$OTOOL
14633  # Extract the first word of "otool", so it can be a program name with args.
14634set dummy otool; ac_word=$2
14635{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14636printf %s "checking for $ac_word... " >&6; }
14637if test ${ac_cv_prog_ac_ct_OTOOL+y}
14638then :
14639  printf %s "(cached) " >&6
14640else $as_nop
14641  if test -n "$ac_ct_OTOOL"; then
14642  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14643else
14644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14645for as_dir in $PATH
14646do
14647  IFS=$as_save_IFS
14648  case $as_dir in #(((
14649    '') as_dir=./ ;;
14650    */) ;;
14651    *) as_dir=$as_dir/ ;;
14652  esac
14653    for ac_exec_ext in '' $ac_executable_extensions; do
14654  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14655    ac_cv_prog_ac_ct_OTOOL="otool"
14656    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14657    break 2
14658  fi
14659done
14660  done
14661IFS=$as_save_IFS
14662
14663fi
14664fi
14665ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14666if test -n "$ac_ct_OTOOL"; then
14667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14668printf "%s\n" "$ac_ct_OTOOL" >&6; }
14669else
14670  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14671printf "%s\n" "no" >&6; }
14672fi
14673
14674  if test "x$ac_ct_OTOOL" = x; then
14675    OTOOL=":"
14676  else
14677    case $cross_compiling:$ac_tool_warned in
14678yes:)
14679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14680printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14681ac_tool_warned=yes ;;
14682esac
14683    OTOOL=$ac_ct_OTOOL
14684  fi
14685else
14686  OTOOL="$ac_cv_prog_OTOOL"
14687fi
14688
14689    if test -n "$ac_tool_prefix"; then
14690  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14691set dummy ${ac_tool_prefix}otool64; ac_word=$2
14692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14693printf %s "checking for $ac_word... " >&6; }
14694if test ${ac_cv_prog_OTOOL64+y}
14695then :
14696  printf %s "(cached) " >&6
14697else $as_nop
14698  if test -n "$OTOOL64"; then
14699  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14700else
14701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14702for as_dir in $PATH
14703do
14704  IFS=$as_save_IFS
14705  case $as_dir in #(((
14706    '') as_dir=./ ;;
14707    */) ;;
14708    *) as_dir=$as_dir/ ;;
14709  esac
14710    for ac_exec_ext in '' $ac_executable_extensions; do
14711  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14712    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14713    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14714    break 2
14715  fi
14716done
14717  done
14718IFS=$as_save_IFS
14719
14720fi
14721fi
14722OTOOL64=$ac_cv_prog_OTOOL64
14723if test -n "$OTOOL64"; then
14724  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14725printf "%s\n" "$OTOOL64" >&6; }
14726else
14727  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14728printf "%s\n" "no" >&6; }
14729fi
14730
14731
14732fi
14733if test -z "$ac_cv_prog_OTOOL64"; then
14734  ac_ct_OTOOL64=$OTOOL64
14735  # Extract the first word of "otool64", so it can be a program name with args.
14736set dummy otool64; ac_word=$2
14737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14738printf %s "checking for $ac_word... " >&6; }
14739if test ${ac_cv_prog_ac_ct_OTOOL64+y}
14740then :
14741  printf %s "(cached) " >&6
14742else $as_nop
14743  if test -n "$ac_ct_OTOOL64"; then
14744  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14745else
14746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14747for as_dir in $PATH
14748do
14749  IFS=$as_save_IFS
14750  case $as_dir in #(((
14751    '') as_dir=./ ;;
14752    */) ;;
14753    *) as_dir=$as_dir/ ;;
14754  esac
14755    for ac_exec_ext in '' $ac_executable_extensions; do
14756  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14757    ac_cv_prog_ac_ct_OTOOL64="otool64"
14758    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14759    break 2
14760  fi
14761done
14762  done
14763IFS=$as_save_IFS
14764
14765fi
14766fi
14767ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14768if test -n "$ac_ct_OTOOL64"; then
14769  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14770printf "%s\n" "$ac_ct_OTOOL64" >&6; }
14771else
14772  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14773printf "%s\n" "no" >&6; }
14774fi
14775
14776  if test "x$ac_ct_OTOOL64" = x; then
14777    OTOOL64=":"
14778  else
14779    case $cross_compiling:$ac_tool_warned in
14780yes:)
14781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14782printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14783ac_tool_warned=yes ;;
14784esac
14785    OTOOL64=$ac_ct_OTOOL64
14786  fi
14787else
14788  OTOOL64="$ac_cv_prog_OTOOL64"
14789fi
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14818printf %s "checking for -single_module linker flag... " >&6; }
14819if test ${lt_cv_apple_cc_single_mod+y}
14820then :
14821  printf %s "(cached) " >&6
14822else $as_nop
14823  lt_cv_apple_cc_single_mod=no
14824      if test -z "$LT_MULTI_MODULE"; then
14825	# By default we will add the -single_module flag. You can override
14826	# by either setting the environment variable LT_MULTI_MODULE
14827	# non-empty at configure time, or by adding -multi_module to the
14828	# link flags.
14829	rm -rf libconftest.dylib*
14830	echo "int foo(void){return 1;}" > conftest.c
14831	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14832-dynamiclib -Wl,-single_module conftest.c" >&5
14833	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14834	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14835        _lt_result=$?
14836	# If there is a non-empty error log, and "single_module"
14837	# appears in it, assume the flag caused a linker warning
14838        if test -s conftest.err && $GREP single_module conftest.err; then
14839	  cat conftest.err >&5
14840	# Otherwise, if the output was created with a 0 exit code from
14841	# the compiler, it worked.
14842	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14843	  lt_cv_apple_cc_single_mod=yes
14844	else
14845	  cat conftest.err >&5
14846	fi
14847	rm -rf libconftest.dylib*
14848	rm -f conftest.*
14849      fi
14850fi
14851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14852printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
14853
14854    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14855printf %s "checking for -exported_symbols_list linker flag... " >&6; }
14856if test ${lt_cv_ld_exported_symbols_list+y}
14857then :
14858  printf %s "(cached) " >&6
14859else $as_nop
14860  lt_cv_ld_exported_symbols_list=no
14861      save_LDFLAGS=$LDFLAGS
14862      echo "_main" > conftest.sym
14863      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14864      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14865/* end confdefs.h.  */
14866
14867int
14868main (void)
14869{
14870
14871  ;
14872  return 0;
14873}
14874_ACEOF
14875if ac_fn_c_try_link "$LINENO"
14876then :
14877  lt_cv_ld_exported_symbols_list=yes
14878else $as_nop
14879  lt_cv_ld_exported_symbols_list=no
14880fi
14881rm -f core conftest.err conftest.$ac_objext conftest.beam \
14882    conftest$ac_exeext conftest.$ac_ext
14883	LDFLAGS=$save_LDFLAGS
14884
14885fi
14886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14887printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
14888
14889    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14890printf %s "checking for -force_load linker flag... " >&6; }
14891if test ${lt_cv_ld_force_load+y}
14892then :
14893  printf %s "(cached) " >&6
14894else $as_nop
14895  lt_cv_ld_force_load=no
14896      cat > conftest.c << _LT_EOF
14897int forced_loaded() { return 2;}
14898_LT_EOF
14899      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14900      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14901      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
14902      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
14903      echo "$RANLIB libconftest.a" >&5
14904      $RANLIB libconftest.a 2>&5
14905      cat > conftest.c << _LT_EOF
14906int main() { return 0;}
14907_LT_EOF
14908      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14909      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14910      _lt_result=$?
14911      if test -s conftest.err && $GREP force_load conftest.err; then
14912	cat conftest.err >&5
14913      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14914	lt_cv_ld_force_load=yes
14915      else
14916	cat conftest.err >&5
14917      fi
14918        rm -f conftest.err libconftest.a conftest conftest.c
14919        rm -rf conftest.dSYM
14920
14921fi
14922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14923printf "%s\n" "$lt_cv_ld_force_load" >&6; }
14924    case $host_os in
14925    rhapsody* | darwin1.[012])
14926      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14927    darwin1.*)
14928      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14929    darwin*)
14930      case $MACOSX_DEPLOYMENT_TARGET,$host in
14931        10.[012],*|,*powerpc*-darwin[5-8]*)
14932          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14933        *)
14934          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14935      esac
14936    ;;
14937  esac
14938    if test yes = "$lt_cv_apple_cc_single_mod"; then
14939      _lt_dar_single_mod='$single_module'
14940    fi
14941    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14942      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14943    else
14944      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14945    fi
14946    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14947      _lt_dsymutil='~$DSYMUTIL $lib || :'
14948    else
14949      _lt_dsymutil=
14950    fi
14951    ;;
14952  esac
14953
14954# func_munge_path_list VARIABLE PATH
14955# -----------------------------------
14956# VARIABLE is name of variable containing _space_ separated list of
14957# directories to be munged by the contents of PATH, which is string
14958# having a format:
14959# "DIR[:DIR]:"
14960#       string "DIR[ DIR]" will be prepended to VARIABLE
14961# ":DIR[:DIR]"
14962#       string "DIR[ DIR]" will be appended to VARIABLE
14963# "DIRP[:DIRP]::[DIRA:]DIRA"
14964#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14965#       "DIRA[ DIRA]" will be appended to VARIABLE
14966# "DIR[:DIR]"
14967#       VARIABLE will be replaced by "DIR[ DIR]"
14968func_munge_path_list ()
14969{
14970    case x$2 in
14971    x)
14972        ;;
14973    *:)
14974        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14975        ;;
14976    x:*)
14977        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14978        ;;
14979    *::*)
14980        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14981        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14982        ;;
14983    *)
14984        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14985        ;;
14986    esac
14987}
14988
14989ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14990"
14991if test "x$ac_cv_header_dlfcn_h" = xyes
14992then :
14993  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
14994
14995fi
14996
14997
14998
14999
15000
15001# Set options
15002
15003
15004
15005        enable_dlopen=no
15006
15007
15008  enable_win32_dll=no
15009
15010
15011            # Check whether --enable-shared was given.
15012if test ${enable_shared+y}
15013then :
15014  enableval=$enable_shared; p=${PACKAGE-default}
15015    case $enableval in
15016    yes) enable_shared=yes ;;
15017    no) enable_shared=no ;;
15018    *)
15019      enable_shared=no
15020      # Look at the argument we got.  We use all the common list separators.
15021      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15022      for pkg in $enableval; do
15023	IFS=$lt_save_ifs
15024	if test "X$pkg" = "X$p"; then
15025	  enable_shared=yes
15026	fi
15027      done
15028      IFS=$lt_save_ifs
15029      ;;
15030    esac
15031else $as_nop
15032  enable_shared=yes
15033fi
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045# Check whether --with-pic was given.
15046if test ${with_pic+y}
15047then :
15048  withval=$with_pic; lt_p=${PACKAGE-default}
15049    case $withval in
15050    yes|no) pic_mode=$withval ;;
15051    *)
15052      pic_mode=default
15053      # Look at the argument we got.  We use all the common list separators.
15054      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15055      for lt_pkg in $withval; do
15056	IFS=$lt_save_ifs
15057	if test "X$lt_pkg" = "X$lt_p"; then
15058	  pic_mode=yes
15059	fi
15060      done
15061      IFS=$lt_save_ifs
15062      ;;
15063    esac
15064else $as_nop
15065  pic_mode=default
15066fi
15067
15068
15069
15070
15071
15072
15073
15074
15075  # Check whether --enable-fast-install was given.
15076if test ${enable_fast_install+y}
15077then :
15078  enableval=$enable_fast_install; p=${PACKAGE-default}
15079    case $enableval in
15080    yes) enable_fast_install=yes ;;
15081    no) enable_fast_install=no ;;
15082    *)
15083      enable_fast_install=no
15084      # Look at the argument we got.  We use all the common list separators.
15085      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15086      for pkg in $enableval; do
15087	IFS=$lt_save_ifs
15088	if test "X$pkg" = "X$p"; then
15089	  enable_fast_install=yes
15090	fi
15091      done
15092      IFS=$lt_save_ifs
15093      ;;
15094    esac
15095else $as_nop
15096  enable_fast_install=yes
15097fi
15098
15099
15100
15101
15102
15103
15104
15105
15106  shared_archive_member_spec=
15107case $host,$enable_shared in
15108power*-*-aix[5-9]*,yes)
15109  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15110printf %s "checking which variant of shared library versioning to provide... " >&6; }
15111
15112# Check whether --with-aix-soname was given.
15113if test ${with_aix_soname+y}
15114then :
15115  withval=$with_aix_soname; case $withval in
15116    aix|svr4|both)
15117      ;;
15118    *)
15119      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15120      ;;
15121    esac
15122    lt_cv_with_aix_soname=$with_aix_soname
15123else $as_nop
15124  if test ${lt_cv_with_aix_soname+y}
15125then :
15126  printf %s "(cached) " >&6
15127else $as_nop
15128  lt_cv_with_aix_soname=aix
15129fi
15130
15131    with_aix_soname=$lt_cv_with_aix_soname
15132fi
15133
15134  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15135printf "%s\n" "$with_aix_soname" >&6; }
15136  if test aix != "$with_aix_soname"; then
15137    # For the AIX way of multilib, we name the shared archive member
15138    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15139    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15140    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15141    # the AIX toolchain works better with OBJECT_MODE set (default 32).
15142    if test 64 = "${OBJECT_MODE-32}"; then
15143      shared_archive_member_spec=shr_64
15144    else
15145      shared_archive_member_spec=shr
15146    fi
15147  fi
15148  ;;
15149*)
15150  with_aix_soname=aix
15151  ;;
15152esac
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163# This can be used to rebuild libtool when needed
15164LIBTOOL_DEPS=$ltmain
15165
15166# Always use our own libtool.
15167LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198test -z "$LN_S" && LN_S="ln -s"
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213if test -n "${ZSH_VERSION+set}"; then
15214   setopt NO_GLOB_SUBST
15215fi
15216
15217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15218printf %s "checking for objdir... " >&6; }
15219if test ${lt_cv_objdir+y}
15220then :
15221  printf %s "(cached) " >&6
15222else $as_nop
15223  rm -f .libs 2>/dev/null
15224mkdir .libs 2>/dev/null
15225if test -d .libs; then
15226  lt_cv_objdir=.libs
15227else
15228  # MS-DOS does not allow filenames that begin with a dot.
15229  lt_cv_objdir=_libs
15230fi
15231rmdir .libs 2>/dev/null
15232fi
15233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15234printf "%s\n" "$lt_cv_objdir" >&6; }
15235objdir=$lt_cv_objdir
15236
15237
15238
15239
15240
15241printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
15242
15243
15244
15245
15246case $host_os in
15247aix3*)
15248  # AIX sometimes has problems with the GCC collect2 program.  For some
15249  # reason, if we set the COLLECT_NAMES environment variable, the problems
15250  # vanish in a puff of smoke.
15251  if test set != "${COLLECT_NAMES+set}"; then
15252    COLLECT_NAMES=
15253    export COLLECT_NAMES
15254  fi
15255  ;;
15256esac
15257
15258# Global variables:
15259ofile=libtool
15260can_build_shared=yes
15261
15262# All known linkers require a '.a' archive for static linking (except MSVC and
15263# ICC, which need '.lib').
15264libext=a
15265
15266with_gnu_ld=$lt_cv_prog_gnu_ld
15267
15268old_CC=$CC
15269old_CFLAGS=$CFLAGS
15270
15271# Set sane defaults for various variables
15272test -z "$CC" && CC=cc
15273test -z "$LTCC" && LTCC=$CC
15274test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15275test -z "$LD" && LD=ld
15276test -z "$ac_objext" && ac_objext=o
15277
15278func_cc_basename $compiler
15279cc_basename=$func_cc_basename_result
15280
15281
15282# Only perform the check for file, if the check method requires it
15283test -z "$MAGIC_CMD" && MAGIC_CMD=file
15284case $deplibs_check_method in
15285file_magic*)
15286  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15287    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15288printf %s "checking for ${ac_tool_prefix}file... " >&6; }
15289if test ${lt_cv_path_MAGIC_CMD+y}
15290then :
15291  printf %s "(cached) " >&6
15292else $as_nop
15293  case $MAGIC_CMD in
15294[\\/*] |  ?:[\\/]*)
15295  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15296  ;;
15297*)
15298  lt_save_MAGIC_CMD=$MAGIC_CMD
15299  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15300  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15301  for ac_dir in $ac_dummy; do
15302    IFS=$lt_save_ifs
15303    test -z "$ac_dir" && ac_dir=.
15304    if test -f "$ac_dir/${ac_tool_prefix}file"; then
15305      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15306      if test -n "$file_magic_test_file"; then
15307	case $deplibs_check_method in
15308	"file_magic "*)
15309	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15310	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15311	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15312	    $EGREP "$file_magic_regex" > /dev/null; then
15313	    :
15314	  else
15315	    cat <<_LT_EOF 1>&2
15316
15317*** Warning: the command libtool uses to detect shared libraries,
15318*** $file_magic_cmd, produces output that libtool cannot recognize.
15319*** The result is that libtool may fail to recognize shared libraries
15320*** as such.  This will affect the creation of libtool libraries that
15321*** depend on shared libraries, but programs linked with such libtool
15322*** libraries will work regardless of this problem.  Nevertheless, you
15323*** may want to report the problem to your system manager and/or to
15324*** bug-libtool@gnu.org
15325
15326_LT_EOF
15327	  fi ;;
15328	esac
15329      fi
15330      break
15331    fi
15332  done
15333  IFS=$lt_save_ifs
15334  MAGIC_CMD=$lt_save_MAGIC_CMD
15335  ;;
15336esac
15337fi
15338
15339MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15340if test -n "$MAGIC_CMD"; then
15341  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15342printf "%s\n" "$MAGIC_CMD" >&6; }
15343else
15344  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15345printf "%s\n" "no" >&6; }
15346fi
15347
15348
15349
15350
15351
15352if test -z "$lt_cv_path_MAGIC_CMD"; then
15353  if test -n "$ac_tool_prefix"; then
15354    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15355printf %s "checking for file... " >&6; }
15356if test ${lt_cv_path_MAGIC_CMD+y}
15357then :
15358  printf %s "(cached) " >&6
15359else $as_nop
15360  case $MAGIC_CMD in
15361[\\/*] |  ?:[\\/]*)
15362  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15363  ;;
15364*)
15365  lt_save_MAGIC_CMD=$MAGIC_CMD
15366  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15367  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15368  for ac_dir in $ac_dummy; do
15369    IFS=$lt_save_ifs
15370    test -z "$ac_dir" && ac_dir=.
15371    if test -f "$ac_dir/file"; then
15372      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15373      if test -n "$file_magic_test_file"; then
15374	case $deplibs_check_method in
15375	"file_magic "*)
15376	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15377	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15378	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15379	    $EGREP "$file_magic_regex" > /dev/null; then
15380	    :
15381	  else
15382	    cat <<_LT_EOF 1>&2
15383
15384*** Warning: the command libtool uses to detect shared libraries,
15385*** $file_magic_cmd, produces output that libtool cannot recognize.
15386*** The result is that libtool may fail to recognize shared libraries
15387*** as such.  This will affect the creation of libtool libraries that
15388*** depend on shared libraries, but programs linked with such libtool
15389*** libraries will work regardless of this problem.  Nevertheless, you
15390*** may want to report the problem to your system manager and/or to
15391*** bug-libtool@gnu.org
15392
15393_LT_EOF
15394	  fi ;;
15395	esac
15396      fi
15397      break
15398    fi
15399  done
15400  IFS=$lt_save_ifs
15401  MAGIC_CMD=$lt_save_MAGIC_CMD
15402  ;;
15403esac
15404fi
15405
15406MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15407if test -n "$MAGIC_CMD"; then
15408  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15409printf "%s\n" "$MAGIC_CMD" >&6; }
15410else
15411  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15412printf "%s\n" "no" >&6; }
15413fi
15414
15415
15416  else
15417    MAGIC_CMD=:
15418  fi
15419fi
15420
15421  fi
15422  ;;
15423esac
15424
15425# Use C for the default configuration in the libtool script
15426
15427lt_save_CC=$CC
15428ac_ext=c
15429ac_cpp='$CPP $CPPFLAGS'
15430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15432ac_compiler_gnu=$ac_cv_c_compiler_gnu
15433
15434
15435# Source file extension for C test sources.
15436ac_ext=c
15437
15438# Object file extension for compiled C test sources.
15439objext=o
15440objext=$objext
15441
15442# Code to be used in simple compile tests
15443lt_simple_compile_test_code="int some_variable = 0;"
15444
15445# Code to be used in simple link tests
15446lt_simple_link_test_code='int main(){return(0);}'
15447
15448
15449
15450
15451
15452
15453
15454# If no C compiler was specified, use CC.
15455LTCC=${LTCC-"$CC"}
15456
15457# If no C compiler flags were specified, use CFLAGS.
15458LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15459
15460# Allow CC to be a program name with arguments.
15461compiler=$CC
15462
15463# Save the default compiler, since it gets overwritten when the other
15464# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15465compiler_DEFAULT=$CC
15466
15467# save warnings/boilerplate of simple test code
15468ac_outfile=conftest.$ac_objext
15469echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15470eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15471_lt_compiler_boilerplate=`cat conftest.err`
15472$RM conftest*
15473
15474ac_outfile=conftest.$ac_objext
15475echo "$lt_simple_link_test_code" >conftest.$ac_ext
15476eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15477_lt_linker_boilerplate=`cat conftest.err`
15478$RM -r conftest*
15479
15480
15481if test -n "$compiler"; then
15482
15483lt_prog_compiler_no_builtin_flag=
15484
15485if test yes = "$GCC"; then
15486  case $cc_basename in
15487  nvcc*)
15488    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15489  *)
15490    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15491  esac
15492
15493  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15494printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15495if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15496then :
15497  printf %s "(cached) " >&6
15498else $as_nop
15499  lt_cv_prog_compiler_rtti_exceptions=no
15500   ac_outfile=conftest.$ac_objext
15501   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15502   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
15503   # Insert the option either (1) after the last *FLAGS variable, or
15504   # (2) before a word containing "conftest.", or (3) at the end.
15505   # Note that $ac_compile itself does not contain backslashes and begins
15506   # with a dollar sign (not a hyphen), so the echo should work correctly.
15507   # The option is referenced via a variable to avoid confusing sed.
15508   lt_compile=`echo "$ac_compile" | $SED \
15509   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15510   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15511   -e 's:$: $lt_compiler_flag:'`
15512   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15513   (eval "$lt_compile" 2>conftest.err)
15514   ac_status=$?
15515   cat conftest.err >&5
15516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517   if (exit $ac_status) && test -s "$ac_outfile"; then
15518     # The compiler can only warn and ignore the option if not recognized
15519     # So say no if there are warnings other than the usual output.
15520     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15521     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15522     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15523       lt_cv_prog_compiler_rtti_exceptions=yes
15524     fi
15525   fi
15526   $RM conftest*
15527
15528fi
15529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15530printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15531
15532if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15533    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15534else
15535    :
15536fi
15537
15538fi
15539
15540
15541
15542
15543
15544
15545  lt_prog_compiler_wl=
15546lt_prog_compiler_pic=
15547lt_prog_compiler_static=
15548
15549
15550  if test yes = "$GCC"; then
15551    lt_prog_compiler_wl='-Wl,'
15552    lt_prog_compiler_static='-static'
15553
15554    case $host_os in
15555      aix*)
15556      # All AIX code is PIC.
15557      if test ia64 = "$host_cpu"; then
15558	# AIX 5 now supports IA64 processor
15559	lt_prog_compiler_static='-Bstatic'
15560      fi
15561      lt_prog_compiler_pic='-fPIC'
15562      ;;
15563
15564    amigaos*)
15565      case $host_cpu in
15566      powerpc)
15567            # see comment about AmigaOS4 .so support
15568            lt_prog_compiler_pic='-fPIC'
15569        ;;
15570      m68k)
15571            # FIXME: we need at least 68020 code to build shared libraries, but
15572            # adding the '-m68020' flag to GCC prevents building anything better,
15573            # like '-m68040'.
15574            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15575        ;;
15576      esac
15577      ;;
15578
15579    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15580      # PIC is the default for these OSes.
15581      ;;
15582
15583    mingw* | cygwin* | pw32* | os2* | cegcc*)
15584      # This hack is so that the source file can tell whether it is being
15585      # built for inclusion in a dll (and should export symbols for example).
15586      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15587      # (--disable-auto-import) libraries
15588      lt_prog_compiler_pic='-DDLL_EXPORT'
15589      case $host_os in
15590      os2*)
15591	lt_prog_compiler_static='$wl-static'
15592	;;
15593      esac
15594      ;;
15595
15596    darwin* | rhapsody*)
15597      # PIC is the default on this platform
15598      # Common symbols not allowed in MH_DYLIB files
15599      lt_prog_compiler_pic='-fno-common'
15600      ;;
15601
15602    haiku*)
15603      # PIC is the default for Haiku.
15604      # The "-static" flag exists, but is broken.
15605      lt_prog_compiler_static=
15606      ;;
15607
15608    hpux*)
15609      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15610      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15611      # sets the default TLS model and affects inlining.
15612      case $host_cpu in
15613      hppa*64*)
15614	# +Z the default
15615	;;
15616      *)
15617	lt_prog_compiler_pic='-fPIC'
15618	;;
15619      esac
15620      ;;
15621
15622    interix[3-9]*)
15623      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15624      # Instead, we relocate shared libraries at runtime.
15625      ;;
15626
15627    msdosdjgpp*)
15628      # Just because we use GCC doesn't mean we suddenly get shared libraries
15629      # on systems that don't support them.
15630      lt_prog_compiler_can_build_shared=no
15631      enable_shared=no
15632      ;;
15633
15634    *nto* | *qnx*)
15635      # QNX uses GNU C++, but need to define -shared option too, otherwise
15636      # it will coredump.
15637      lt_prog_compiler_pic='-fPIC -shared'
15638      ;;
15639
15640    sysv4*MP*)
15641      if test -d /usr/nec; then
15642	lt_prog_compiler_pic=-Kconform_pic
15643      fi
15644      ;;
15645
15646    *)
15647      lt_prog_compiler_pic='-fPIC'
15648      ;;
15649    esac
15650
15651    case $cc_basename in
15652    nvcc*) # Cuda Compiler Driver 2.2
15653      lt_prog_compiler_wl='-Xlinker '
15654      if test -n "$lt_prog_compiler_pic"; then
15655        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15656      fi
15657      ;;
15658    esac
15659  else
15660    # PORTME Check for flag to pass linker flags through the system compiler.
15661    case $host_os in
15662    aix*)
15663      lt_prog_compiler_wl='-Wl,'
15664      if test ia64 = "$host_cpu"; then
15665	# AIX 5 now supports IA64 processor
15666	lt_prog_compiler_static='-Bstatic'
15667      else
15668	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15669      fi
15670      ;;
15671
15672    darwin* | rhapsody*)
15673      # PIC is the default on this platform
15674      # Common symbols not allowed in MH_DYLIB files
15675      lt_prog_compiler_pic='-fno-common'
15676      case $cc_basename in
15677      nagfor*)
15678        # NAG Fortran compiler
15679        lt_prog_compiler_wl='-Wl,-Wl,,'
15680        lt_prog_compiler_pic='-PIC'
15681        lt_prog_compiler_static='-Bstatic'
15682        ;;
15683      esac
15684      ;;
15685
15686    mingw* | cygwin* | pw32* | os2* | cegcc*)
15687      # This hack is so that the source file can tell whether it is being
15688      # built for inclusion in a dll (and should export symbols for example).
15689      lt_prog_compiler_pic='-DDLL_EXPORT'
15690      case $host_os in
15691      os2*)
15692	lt_prog_compiler_static='$wl-static'
15693	;;
15694      esac
15695      ;;
15696
15697    hpux9* | hpux10* | hpux11*)
15698      lt_prog_compiler_wl='-Wl,'
15699      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15700      # not for PA HP-UX.
15701      case $host_cpu in
15702      hppa*64*|ia64*)
15703	# +Z the default
15704	;;
15705      *)
15706	lt_prog_compiler_pic='+Z'
15707	;;
15708      esac
15709      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15710      lt_prog_compiler_static='$wl-a ${wl}archive'
15711      ;;
15712
15713    irix5* | irix6* | nonstopux*)
15714      lt_prog_compiler_wl='-Wl,'
15715      # PIC (with -KPIC) is the default.
15716      lt_prog_compiler_static='-non_shared'
15717      ;;
15718
15719    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15720      case $cc_basename in
15721      # old Intel for x86_64, which still supported -KPIC.
15722      ecc*)
15723	lt_prog_compiler_wl='-Wl,'
15724	lt_prog_compiler_pic='-KPIC'
15725	lt_prog_compiler_static='-static'
15726        ;;
15727      # icc used to be incompatible with GCC.
15728      # ICC 10 doesn't accept -KPIC any more.
15729      icc* | ifort*)
15730	lt_prog_compiler_wl='-Wl,'
15731	lt_prog_compiler_pic='-fPIC'
15732	lt_prog_compiler_static='-static'
15733        ;;
15734      # Lahey Fortran 8.1.
15735      lf95*)
15736	lt_prog_compiler_wl='-Wl,'
15737	lt_prog_compiler_pic='--shared'
15738	lt_prog_compiler_static='--static'
15739	;;
15740      nagfor*)
15741	# NAG Fortran compiler
15742	lt_prog_compiler_wl='-Wl,-Wl,,'
15743	lt_prog_compiler_pic='-PIC'
15744	lt_prog_compiler_static='-Bstatic'
15745	;;
15746      tcc*)
15747	# Fabrice Bellard et al's Tiny C Compiler
15748	lt_prog_compiler_wl='-Wl,'
15749	lt_prog_compiler_pic='-fPIC'
15750	lt_prog_compiler_static='-static'
15751	;;
15752      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15753        # Portland Group compilers (*not* the Pentium gcc compiler,
15754	# which looks to be a dead project)
15755	lt_prog_compiler_wl='-Wl,'
15756	lt_prog_compiler_pic='-fpic'
15757	lt_prog_compiler_static='-Bstatic'
15758        ;;
15759      ccc*)
15760        lt_prog_compiler_wl='-Wl,'
15761        # All Alpha code is PIC.
15762        lt_prog_compiler_static='-non_shared'
15763        ;;
15764      xl* | bgxl* | bgf* | mpixl*)
15765	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15766	lt_prog_compiler_wl='-Wl,'
15767	lt_prog_compiler_pic='-qpic'
15768	lt_prog_compiler_static='-qstaticlink'
15769	;;
15770      *)
15771	case `$CC -V 2>&1 | $SED 5q` in
15772	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15773	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15774	  lt_prog_compiler_pic='-KPIC'
15775	  lt_prog_compiler_static='-Bstatic'
15776	  lt_prog_compiler_wl=''
15777	  ;;
15778	*Sun\ F* | *Sun*Fortran*)
15779	  lt_prog_compiler_pic='-KPIC'
15780	  lt_prog_compiler_static='-Bstatic'
15781	  lt_prog_compiler_wl='-Qoption ld '
15782	  ;;
15783	*Sun\ C*)
15784	  # Sun C 5.9
15785	  lt_prog_compiler_pic='-KPIC'
15786	  lt_prog_compiler_static='-Bstatic'
15787	  lt_prog_compiler_wl='-Wl,'
15788	  ;;
15789        *Intel*\ [CF]*Compiler*)
15790	  lt_prog_compiler_wl='-Wl,'
15791	  lt_prog_compiler_pic='-fPIC'
15792	  lt_prog_compiler_static='-static'
15793	  ;;
15794	*Portland\ Group*)
15795	  lt_prog_compiler_wl='-Wl,'
15796	  lt_prog_compiler_pic='-fpic'
15797	  lt_prog_compiler_static='-Bstatic'
15798	  ;;
15799	esac
15800	;;
15801      esac
15802      ;;
15803
15804    newsos6)
15805      lt_prog_compiler_pic='-KPIC'
15806      lt_prog_compiler_static='-Bstatic'
15807      ;;
15808
15809    *nto* | *qnx*)
15810      # QNX uses GNU C++, but need to define -shared option too, otherwise
15811      # it will coredump.
15812      lt_prog_compiler_pic='-fPIC -shared'
15813      ;;
15814
15815    osf3* | osf4* | osf5*)
15816      lt_prog_compiler_wl='-Wl,'
15817      # All OSF/1 code is PIC.
15818      lt_prog_compiler_static='-non_shared'
15819      ;;
15820
15821    rdos*)
15822      lt_prog_compiler_static='-non_shared'
15823      ;;
15824
15825    solaris*)
15826      lt_prog_compiler_pic='-KPIC'
15827      lt_prog_compiler_static='-Bstatic'
15828      case $cc_basename in
15829      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15830	lt_prog_compiler_wl='-Qoption ld ';;
15831      *)
15832	lt_prog_compiler_wl='-Wl,';;
15833      esac
15834      ;;
15835
15836    sunos4*)
15837      lt_prog_compiler_wl='-Qoption ld '
15838      lt_prog_compiler_pic='-PIC'
15839      lt_prog_compiler_static='-Bstatic'
15840      ;;
15841
15842    sysv4 | sysv4.2uw2* | sysv4.3*)
15843      lt_prog_compiler_wl='-Wl,'
15844      lt_prog_compiler_pic='-KPIC'
15845      lt_prog_compiler_static='-Bstatic'
15846      ;;
15847
15848    sysv4*MP*)
15849      if test -d /usr/nec; then
15850	lt_prog_compiler_pic='-Kconform_pic'
15851	lt_prog_compiler_static='-Bstatic'
15852      fi
15853      ;;
15854
15855    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15856      lt_prog_compiler_wl='-Wl,'
15857      lt_prog_compiler_pic='-KPIC'
15858      lt_prog_compiler_static='-Bstatic'
15859      ;;
15860
15861    unicos*)
15862      lt_prog_compiler_wl='-Wl,'
15863      lt_prog_compiler_can_build_shared=no
15864      ;;
15865
15866    uts4*)
15867      lt_prog_compiler_pic='-pic'
15868      lt_prog_compiler_static='-Bstatic'
15869      ;;
15870
15871    *)
15872      lt_prog_compiler_can_build_shared=no
15873      ;;
15874    esac
15875  fi
15876
15877case $host_os in
15878  # For platforms that do not support PIC, -DPIC is meaningless:
15879  *djgpp*)
15880    lt_prog_compiler_pic=
15881    ;;
15882  *)
15883    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15884    ;;
15885esac
15886
15887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15888printf %s "checking for $compiler option to produce PIC... " >&6; }
15889if test ${lt_cv_prog_compiler_pic+y}
15890then :
15891  printf %s "(cached) " >&6
15892else $as_nop
15893  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15894fi
15895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15896printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15897lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15898
15899#
15900# Check to make sure the PIC flag actually works.
15901#
15902if test -n "$lt_prog_compiler_pic"; then
15903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15904printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15905if test ${lt_cv_prog_compiler_pic_works+y}
15906then :
15907  printf %s "(cached) " >&6
15908else $as_nop
15909  lt_cv_prog_compiler_pic_works=no
15910   ac_outfile=conftest.$ac_objext
15911   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15912   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15913   # Insert the option either (1) after the last *FLAGS variable, or
15914   # (2) before a word containing "conftest.", or (3) at the end.
15915   # Note that $ac_compile itself does not contain backslashes and begins
15916   # with a dollar sign (not a hyphen), so the echo should work correctly.
15917   # The option is referenced via a variable to avoid confusing sed.
15918   lt_compile=`echo "$ac_compile" | $SED \
15919   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15920   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15921   -e 's:$: $lt_compiler_flag:'`
15922   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15923   (eval "$lt_compile" 2>conftest.err)
15924   ac_status=$?
15925   cat conftest.err >&5
15926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927   if (exit $ac_status) && test -s "$ac_outfile"; then
15928     # The compiler can only warn and ignore the option if not recognized
15929     # So say no if there are warnings other than the usual output.
15930     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15931     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15932     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15933       lt_cv_prog_compiler_pic_works=yes
15934     fi
15935   fi
15936   $RM conftest*
15937
15938fi
15939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15940printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15941
15942if test yes = "$lt_cv_prog_compiler_pic_works"; then
15943    case $lt_prog_compiler_pic in
15944     "" | " "*) ;;
15945     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15946     esac
15947else
15948    lt_prog_compiler_pic=
15949     lt_prog_compiler_can_build_shared=no
15950fi
15951
15952fi
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964#
15965# Check to make sure the static flag actually works.
15966#
15967wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15969printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15970if test ${lt_cv_prog_compiler_static_works+y}
15971then :
15972  printf %s "(cached) " >&6
15973else $as_nop
15974  lt_cv_prog_compiler_static_works=no
15975   save_LDFLAGS=$LDFLAGS
15976   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15977   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15978   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15979     # The linker can only warn and ignore the option if not recognized
15980     # So say no if there are warnings
15981     if test -s conftest.err; then
15982       # Append any errors to the config.log.
15983       cat conftest.err 1>&5
15984       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15985       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15986       if diff conftest.exp conftest.er2 >/dev/null; then
15987         lt_cv_prog_compiler_static_works=yes
15988       fi
15989     else
15990       lt_cv_prog_compiler_static_works=yes
15991     fi
15992   fi
15993   $RM -r conftest*
15994   LDFLAGS=$save_LDFLAGS
15995
15996fi
15997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15998printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
15999
16000if test yes = "$lt_cv_prog_compiler_static_works"; then
16001    :
16002else
16003    lt_prog_compiler_static=
16004fi
16005
16006
16007
16008
16009
16010
16011
16012  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16013printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16014if test ${lt_cv_prog_compiler_c_o+y}
16015then :
16016  printf %s "(cached) " >&6
16017else $as_nop
16018  lt_cv_prog_compiler_c_o=no
16019   $RM -r conftest 2>/dev/null
16020   mkdir conftest
16021   cd conftest
16022   mkdir out
16023   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16024
16025   lt_compiler_flag="-o out/conftest2.$ac_objext"
16026   # Insert the option either (1) after the last *FLAGS variable, or
16027   # (2) before a word containing "conftest.", or (3) at the end.
16028   # Note that $ac_compile itself does not contain backslashes and begins
16029   # with a dollar sign (not a hyphen), so the echo should work correctly.
16030   lt_compile=`echo "$ac_compile" | $SED \
16031   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16032   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16033   -e 's:$: $lt_compiler_flag:'`
16034   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16035   (eval "$lt_compile" 2>out/conftest.err)
16036   ac_status=$?
16037   cat out/conftest.err >&5
16038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16040   then
16041     # The compiler can only warn and ignore the option if not recognized
16042     # So say no if there are warnings
16043     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16044     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16045     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16046       lt_cv_prog_compiler_c_o=yes
16047     fi
16048   fi
16049   chmod u+w . 2>&5
16050   $RM conftest*
16051   # SGI C++ compiler will create directory out/ii_files/ for
16052   # template instantiation
16053   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16054   $RM out/* && rmdir out
16055   cd ..
16056   $RM -r conftest
16057   $RM conftest*
16058
16059fi
16060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16061printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16062
16063
16064
16065
16066
16067
16068  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16069printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16070if test ${lt_cv_prog_compiler_c_o+y}
16071then :
16072  printf %s "(cached) " >&6
16073else $as_nop
16074  lt_cv_prog_compiler_c_o=no
16075   $RM -r conftest 2>/dev/null
16076   mkdir conftest
16077   cd conftest
16078   mkdir out
16079   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16080
16081   lt_compiler_flag="-o out/conftest2.$ac_objext"
16082   # Insert the option either (1) after the last *FLAGS variable, or
16083   # (2) before a word containing "conftest.", or (3) at the end.
16084   # Note that $ac_compile itself does not contain backslashes and begins
16085   # with a dollar sign (not a hyphen), so the echo should work correctly.
16086   lt_compile=`echo "$ac_compile" | $SED \
16087   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16088   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16089   -e 's:$: $lt_compiler_flag:'`
16090   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16091   (eval "$lt_compile" 2>out/conftest.err)
16092   ac_status=$?
16093   cat out/conftest.err >&5
16094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16096   then
16097     # The compiler can only warn and ignore the option if not recognized
16098     # So say no if there are warnings
16099     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16100     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16101     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16102       lt_cv_prog_compiler_c_o=yes
16103     fi
16104   fi
16105   chmod u+w . 2>&5
16106   $RM conftest*
16107   # SGI C++ compiler will create directory out/ii_files/ for
16108   # template instantiation
16109   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16110   $RM out/* && rmdir out
16111   cd ..
16112   $RM -r conftest
16113   $RM conftest*
16114
16115fi
16116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16117printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16118
16119
16120
16121
16122hard_links=nottested
16123if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16124  # do not overwrite the value of need_locks provided by the user
16125  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16126printf %s "checking if we can lock with hard links... " >&6; }
16127  hard_links=yes
16128  $RM conftest*
16129  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16130  touch conftest.a
16131  ln conftest.a conftest.b 2>&5 || hard_links=no
16132  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16133  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16134printf "%s\n" "$hard_links" >&6; }
16135  if test no = "$hard_links"; then
16136    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16137printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16138    need_locks=warn
16139  fi
16140else
16141  need_locks=no
16142fi
16143
16144
16145
16146
16147
16148
16149  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16150printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16151
16152  runpath_var=
16153  allow_undefined_flag=
16154  always_export_symbols=no
16155  archive_cmds=
16156  archive_expsym_cmds=
16157  compiler_needs_object=no
16158  enable_shared_with_static_runtimes=no
16159  export_dynamic_flag_spec=
16160  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16161  hardcode_automatic=no
16162  hardcode_direct=no
16163  hardcode_direct_absolute=no
16164  hardcode_libdir_flag_spec=
16165  hardcode_libdir_separator=
16166  hardcode_minus_L=no
16167  hardcode_shlibpath_var=unsupported
16168  inherit_rpath=no
16169  link_all_deplibs=unknown
16170  module_cmds=
16171  module_expsym_cmds=
16172  old_archive_from_new_cmds=
16173  old_archive_from_expsyms_cmds=
16174  thread_safe_flag_spec=
16175  whole_archive_flag_spec=
16176  # include_expsyms should be a list of space-separated symbols to be *always*
16177  # included in the symbol list
16178  include_expsyms=
16179  # exclude_expsyms can be an extended regexp of symbols to exclude
16180  # it will be wrapped by ' (' and ')$', so one must not match beginning or
16181  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16182  # as well as any symbol that contains 'd'.
16183  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16184  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16185  # platforms (ab)use it in PIC code, but their linkers get confused if
16186  # the symbol is explicitly referenced.  Since portable code cannot
16187  # rely on this symbol name, it's probably fine to never include it in
16188  # preloaded symbol tables.
16189  # Exclude shared library initialization/finalization symbols.
16190  extract_expsyms_cmds=
16191
16192  case $host_os in
16193  cygwin* | mingw* | pw32* | cegcc*)
16194    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16195    # When not using gcc, we currently assume that we are using
16196    # Microsoft Visual C++ or Intel C++ Compiler.
16197    if test yes != "$GCC"; then
16198      with_gnu_ld=no
16199    fi
16200    ;;
16201  interix*)
16202    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16203    with_gnu_ld=yes
16204    ;;
16205  openbsd* | bitrig*)
16206    with_gnu_ld=no
16207    ;;
16208  esac
16209
16210  ld_shlibs=yes
16211
16212  # On some targets, GNU ld is compatible enough with the native linker
16213  # that we're better off using the native interface for both.
16214  lt_use_gnu_ld_interface=no
16215  if test yes = "$with_gnu_ld"; then
16216    case $host_os in
16217      aix*)
16218	# The AIX port of GNU ld has always aspired to compatibility
16219	# with the native linker.  However, as the warning in the GNU ld
16220	# block says, versions before 2.19.5* couldn't really create working
16221	# shared libraries, regardless of the interface used.
16222	case `$LD -v 2>&1` in
16223	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16224	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16225	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16226	  *)
16227	    lt_use_gnu_ld_interface=yes
16228	    ;;
16229	esac
16230	;;
16231      *)
16232	lt_use_gnu_ld_interface=yes
16233	;;
16234    esac
16235  fi
16236
16237  if test yes = "$lt_use_gnu_ld_interface"; then
16238    # If archive_cmds runs LD, not CC, wlarc should be empty
16239    wlarc='$wl'
16240
16241    # Set some defaults for GNU ld with shared library support. These
16242    # are reset later if shared libraries are not supported. Putting them
16243    # here allows them to be overridden if necessary.
16244    runpath_var=LD_RUN_PATH
16245    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16246    export_dynamic_flag_spec='$wl--export-dynamic'
16247    # ancient GNU ld didn't support --whole-archive et. al.
16248    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16249      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16250    else
16251      whole_archive_flag_spec=
16252    fi
16253    supports_anon_versioning=no
16254    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16255      *GNU\ gold*) supports_anon_versioning=yes ;;
16256      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16257      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16258      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16259      *\ 2.11.*) ;; # other 2.11 versions
16260      *) supports_anon_versioning=yes ;;
16261    esac
16262
16263    # See if GNU ld supports shared libraries.
16264    case $host_os in
16265    aix[3-9]*)
16266      # On AIX/PPC, the GNU linker is very broken
16267      if test ia64 != "$host_cpu"; then
16268	ld_shlibs=no
16269	cat <<_LT_EOF 1>&2
16270
16271*** Warning: the GNU linker, at least up to release 2.19, is reported
16272*** to be unable to reliably create shared libraries on AIX.
16273*** Therefore, libtool is disabling shared libraries support.  If you
16274*** really care for shared libraries, you may want to install binutils
16275*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16276*** You will then need to restart the configuration process.
16277
16278_LT_EOF
16279      fi
16280      ;;
16281
16282    amigaos*)
16283      case $host_cpu in
16284      powerpc)
16285            # see comment about AmigaOS4 .so support
16286            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16287            archive_expsym_cmds=''
16288        ;;
16289      m68k)
16290            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)'
16291            hardcode_libdir_flag_spec='-L$libdir'
16292            hardcode_minus_L=yes
16293        ;;
16294      esac
16295      ;;
16296
16297    beos*)
16298      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16299	allow_undefined_flag=unsupported
16300	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16301	# support --undefined.  This deserves some investigation.  FIXME
16302	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16303      else
16304	ld_shlibs=no
16305      fi
16306      ;;
16307
16308    cygwin* | mingw* | pw32* | cegcc*)
16309      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16310      # as there is no search path for DLLs.
16311      hardcode_libdir_flag_spec='-L$libdir'
16312      export_dynamic_flag_spec='$wl--export-all-symbols'
16313      allow_undefined_flag=unsupported
16314      always_export_symbols=no
16315      enable_shared_with_static_runtimes=yes
16316      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'
16317      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16318
16319      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16320        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16321	# If the export-symbols file already is a .def file, use it as
16322	# is; otherwise, prepend EXPORTS...
16323	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16324          cp $export_symbols $output_objdir/$soname.def;
16325        else
16326          echo EXPORTS > $output_objdir/$soname.def;
16327          cat $export_symbols >> $output_objdir/$soname.def;
16328        fi~
16329        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16330      else
16331	ld_shlibs=no
16332      fi
16333      ;;
16334
16335    haiku*)
16336      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16337      link_all_deplibs=yes
16338      ;;
16339
16340    os2*)
16341      hardcode_libdir_flag_spec='-L$libdir'
16342      hardcode_minus_L=yes
16343      allow_undefined_flag=unsupported
16344      shrext_cmds=.dll
16345      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16346	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16347	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16348	$ECHO EXPORTS >> $output_objdir/$libname.def~
16349	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16350	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16351	emximp -o $lib $output_objdir/$libname.def'
16352      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16353	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16354	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16355	$ECHO EXPORTS >> $output_objdir/$libname.def~
16356	prefix_cmds="$SED"~
16357	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16358	  prefix_cmds="$prefix_cmds -e 1d";
16359	fi~
16360	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16361	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16362	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16363	emximp -o $lib $output_objdir/$libname.def'
16364      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16365      enable_shared_with_static_runtimes=yes
16366      file_list_spec='@'
16367      ;;
16368
16369    interix[3-9]*)
16370      hardcode_direct=no
16371      hardcode_shlibpath_var=no
16372      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16373      export_dynamic_flag_spec='$wl-E'
16374      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16375      # Instead, shared libraries are loaded at an image base (0x10000000 by
16376      # default) and relocated if they conflict, which is a slow very memory
16377      # consuming and fragmenting process.  To avoid this, we pick a random,
16378      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16379      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16380      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16381      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'
16382      ;;
16383
16384    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16385      tmp_diet=no
16386      if test linux-dietlibc = "$host_os"; then
16387	case $cc_basename in
16388	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
16389	esac
16390      fi
16391      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16392	 && test no = "$tmp_diet"
16393      then
16394	tmp_addflag=' $pic_flag'
16395	tmp_sharedflag='-shared'
16396	case $cc_basename,$host_cpu in
16397        pgcc*)				# Portland Group C compiler
16398	  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'
16399	  tmp_addflag=' $pic_flag'
16400	  ;;
16401	pgf77* | pgf90* | pgf95* | pgfortran*)
16402					# Portland Group f77 and f90 compilers
16403	  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'
16404	  tmp_addflag=' $pic_flag -Mnomain' ;;
16405	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
16406	  tmp_addflag=' -i_dynamic' ;;
16407	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16408	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16409	ifc* | ifort*)			# Intel Fortran compiler
16410	  tmp_addflag=' -nofor_main' ;;
16411	lf95*)				# Lahey Fortran 8.1
16412	  whole_archive_flag_spec=
16413	  tmp_sharedflag='--shared' ;;
16414        nagfor*)                        # NAGFOR 5.3
16415          tmp_sharedflag='-Wl,-shared' ;;
16416	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16417	  tmp_sharedflag='-qmkshrobj'
16418	  tmp_addflag= ;;
16419	nvcc*)	# Cuda Compiler Driver 2.2
16420	  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'
16421	  compiler_needs_object=yes
16422	  ;;
16423	esac
16424	case `$CC -V 2>&1 | $SED 5q` in
16425	*Sun\ C*)			# Sun C 5.9
16426	  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'
16427	  compiler_needs_object=yes
16428	  tmp_sharedflag='-G' ;;
16429	*Sun\ F*)			# Sun Fortran 8.3
16430	  tmp_sharedflag='-G' ;;
16431	esac
16432	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16433
16434        if test yes = "$supports_anon_versioning"; then
16435          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16436            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16437            echo "local: *; };" >> $output_objdir/$libname.ver~
16438            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16439        fi
16440
16441	case $cc_basename in
16442	tcc*)
16443	  export_dynamic_flag_spec='-rdynamic'
16444	  ;;
16445	xlf* | bgf* | bgxlf* | mpixlf*)
16446	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16447	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16448	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16449	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16450	  if test yes = "$supports_anon_versioning"; then
16451	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16452              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16453              echo "local: *; };" >> $output_objdir/$libname.ver~
16454              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16455	  fi
16456	  ;;
16457	esac
16458      else
16459        ld_shlibs=no
16460      fi
16461      ;;
16462
16463    netbsd*)
16464      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16465	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16466	wlarc=
16467      else
16468	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16469	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16470      fi
16471      ;;
16472
16473    solaris*)
16474      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16475	ld_shlibs=no
16476	cat <<_LT_EOF 1>&2
16477
16478*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16479*** create shared libraries on Solaris systems.  Therefore, libtool
16480*** is disabling shared libraries support.  We urge you to upgrade GNU
16481*** binutils to release 2.9.1 or newer.  Another option is to modify
16482*** your PATH or compiler configuration so that the native linker is
16483*** used, and then restart.
16484
16485_LT_EOF
16486      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16487	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16488	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16489      else
16490	ld_shlibs=no
16491      fi
16492      ;;
16493
16494    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16495      case `$LD -v 2>&1` in
16496        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16497	ld_shlibs=no
16498	cat <<_LT_EOF 1>&2
16499
16500*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16501*** reliably create shared libraries on SCO systems.  Therefore, libtool
16502*** is disabling shared libraries support.  We urge you to upgrade GNU
16503*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16504*** your PATH or compiler configuration so that the native linker is
16505*** used, and then restart.
16506
16507_LT_EOF
16508	;;
16509	*)
16510	  # For security reasons, it is highly recommended that you always
16511	  # use absolute paths for naming shared libraries, and exclude the
16512	  # DT_RUNPATH tag from executables and libraries.  But doing so
16513	  # requires that you compile everything twice, which is a pain.
16514	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16515	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16516	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16517	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16518	  else
16519	    ld_shlibs=no
16520	  fi
16521	;;
16522      esac
16523      ;;
16524
16525    sunos4*)
16526      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16527      wlarc=
16528      hardcode_direct=yes
16529      hardcode_shlibpath_var=no
16530      ;;
16531
16532    *)
16533      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16534	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16535	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16536      else
16537	ld_shlibs=no
16538      fi
16539      ;;
16540    esac
16541
16542    if test no = "$ld_shlibs"; then
16543      runpath_var=
16544      hardcode_libdir_flag_spec=
16545      export_dynamic_flag_spec=
16546      whole_archive_flag_spec=
16547    fi
16548  else
16549    # PORTME fill in a description of your system's linker (not GNU ld)
16550    case $host_os in
16551    aix3*)
16552      allow_undefined_flag=unsupported
16553      always_export_symbols=yes
16554      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'
16555      # Note: this linker hardcodes the directories in LIBPATH if there
16556      # are no directories specified by -L.
16557      hardcode_minus_L=yes
16558      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16559	# Neither direct hardcoding nor static linking is supported with a
16560	# broken collect2.
16561	hardcode_direct=unsupported
16562      fi
16563      ;;
16564
16565    aix[4-9]*)
16566      if test ia64 = "$host_cpu"; then
16567	# On IA64, the linker does run time linking by default, so we don't
16568	# have to do anything special.
16569	aix_use_runtimelinking=no
16570	exp_sym_flag='-Bexport'
16571	no_entry_flag=
16572      else
16573	# If we're using GNU nm, then we don't want the "-C" option.
16574	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
16575	# Without the "-l" option, or with the "-B" option, AIX nm treats
16576	# weak defined symbols like other global defined symbols, whereas
16577	# GNU nm marks them as "W".
16578	# While the 'weak' keyword is ignored in the Export File, we need
16579	# it in the Import File for the 'aix-soname' feature, so we have
16580	# to replace the "-B" option with "-P" for AIX nm.
16581	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16582	  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'
16583	else
16584	  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'
16585	fi
16586	aix_use_runtimelinking=no
16587
16588	# Test if we are trying to use run time linking or normal
16589	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16590	# have runtime linking enabled, and use it for executables.
16591	# For shared libraries, we enable/disable runtime linking
16592	# depending on the kind of the shared library created -
16593	# when "with_aix_soname,aix_use_runtimelinking" is:
16594	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
16595	# "aix,yes"  lib.so          shared, rtl:yes, for executables
16596	#            lib.a           static archive
16597	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
16598	#            lib.a(lib.so.V) shared, rtl:no,  for executables
16599	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16600	#            lib.a(lib.so.V) shared, rtl:no
16601	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
16602	#            lib.a           static archive
16603	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16604	  for ld_flag in $LDFLAGS; do
16605	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16606	    aix_use_runtimelinking=yes
16607	    break
16608	  fi
16609	  done
16610	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16611	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
16612	    # so we don't have lib.a shared libs to link our executables.
16613	    # We have to force runtime linking in this case.
16614	    aix_use_runtimelinking=yes
16615	    LDFLAGS="$LDFLAGS -Wl,-brtl"
16616	  fi
16617	  ;;
16618	esac
16619
16620	exp_sym_flag='-bexport'
16621	no_entry_flag='-bnoentry'
16622      fi
16623
16624      # When large executables or shared objects are built, AIX ld can
16625      # have problems creating the table of contents.  If linking a library
16626      # or program results in "error TOC overflow" add -mminimal-toc to
16627      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16628      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16629
16630      archive_cmds=''
16631      hardcode_direct=yes
16632      hardcode_direct_absolute=yes
16633      hardcode_libdir_separator=':'
16634      link_all_deplibs=yes
16635      file_list_spec='$wl-f,'
16636      case $with_aix_soname,$aix_use_runtimelinking in
16637      aix,*) ;; # traditional, no import file
16638      svr4,* | *,yes) # use import file
16639	# The Import File defines what to hardcode.
16640	hardcode_direct=no
16641	hardcode_direct_absolute=no
16642	;;
16643      esac
16644
16645      if test yes = "$GCC"; then
16646	case $host_os in aix4.[012]|aix4.[012].*)
16647	# We only want to do this on AIX 4.2 and lower, the check
16648	# below for broken collect2 doesn't work under 4.3+
16649	  collect2name=`$CC -print-prog-name=collect2`
16650	  if test -f "$collect2name" &&
16651	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16652	  then
16653	  # We have reworked collect2
16654	  :
16655	  else
16656	  # We have old collect2
16657	  hardcode_direct=unsupported
16658	  # It fails to find uninstalled libraries when the uninstalled
16659	  # path is not listed in the libpath.  Setting hardcode_minus_L
16660	  # to unsupported forces relinking
16661	  hardcode_minus_L=yes
16662	  hardcode_libdir_flag_spec='-L$libdir'
16663	  hardcode_libdir_separator=
16664	  fi
16665	  ;;
16666	esac
16667	shared_flag='-shared'
16668	if test yes = "$aix_use_runtimelinking"; then
16669	  shared_flag="$shared_flag "'$wl-G'
16670	fi
16671	# Need to ensure runtime linking is disabled for the traditional
16672	# shared library, or the linker may eventually find shared libraries
16673	# /with/ Import File - we do not want to mix them.
16674	shared_flag_aix='-shared'
16675	shared_flag_svr4='-shared $wl-G'
16676      else
16677	# not using gcc
16678	if test ia64 = "$host_cpu"; then
16679	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16680	# chokes on -Wl,-G. The following line is correct:
16681	  shared_flag='-G'
16682	else
16683	  if test yes = "$aix_use_runtimelinking"; then
16684	    shared_flag='$wl-G'
16685	  else
16686	    shared_flag='$wl-bM:SRE'
16687	  fi
16688	  shared_flag_aix='$wl-bM:SRE'
16689	  shared_flag_svr4='$wl-G'
16690	fi
16691      fi
16692
16693      export_dynamic_flag_spec='$wl-bexpall'
16694      # It seems that -bexpall does not export symbols beginning with
16695      # underscore (_), so it is better to generate a list of symbols to export.
16696      always_export_symbols=yes
16697      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16698	# Warning - without using the other runtime loading flags (-brtl),
16699	# -berok will link without error, but may produce a broken library.
16700	allow_undefined_flag='-berok'
16701        # Determine the default libpath from the value encoded in an
16702        # empty executable.
16703        if test set = "${lt_cv_aix_libpath+set}"; then
16704  aix_libpath=$lt_cv_aix_libpath
16705else
16706  if test ${lt_cv_aix_libpath_+y}
16707then :
16708  printf %s "(cached) " >&6
16709else $as_nop
16710  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16711/* end confdefs.h.  */
16712
16713int
16714main (void)
16715{
16716
16717  ;
16718  return 0;
16719}
16720_ACEOF
16721if ac_fn_c_try_link "$LINENO"
16722then :
16723
16724  lt_aix_libpath_sed='
16725      /Import File Strings/,/^$/ {
16726	  /^0/ {
16727	      s/^0  *\([^ ]*\) *$/\1/
16728	      p
16729	  }
16730      }'
16731  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16732  # Check for a 64-bit object if we didn't find anything.
16733  if test -z "$lt_cv_aix_libpath_"; then
16734    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16735  fi
16736fi
16737rm -f core conftest.err conftest.$ac_objext conftest.beam \
16738    conftest$ac_exeext conftest.$ac_ext
16739  if test -z "$lt_cv_aix_libpath_"; then
16740    lt_cv_aix_libpath_=/usr/lib:/lib
16741  fi
16742
16743fi
16744
16745  aix_libpath=$lt_cv_aix_libpath_
16746fi
16747
16748        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16749        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
16750      else
16751	if test ia64 = "$host_cpu"; then
16752	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16753	  allow_undefined_flag="-z nodefs"
16754	  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"
16755	else
16756	 # Determine the default libpath from the value encoded in an
16757	 # empty executable.
16758	 if test set = "${lt_cv_aix_libpath+set}"; then
16759  aix_libpath=$lt_cv_aix_libpath
16760else
16761  if test ${lt_cv_aix_libpath_+y}
16762then :
16763  printf %s "(cached) " >&6
16764else $as_nop
16765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16766/* end confdefs.h.  */
16767
16768int
16769main (void)
16770{
16771
16772  ;
16773  return 0;
16774}
16775_ACEOF
16776if ac_fn_c_try_link "$LINENO"
16777then :
16778
16779  lt_aix_libpath_sed='
16780      /Import File Strings/,/^$/ {
16781	  /^0/ {
16782	      s/^0  *\([^ ]*\) *$/\1/
16783	      p
16784	  }
16785      }'
16786  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16787  # Check for a 64-bit object if we didn't find anything.
16788  if test -z "$lt_cv_aix_libpath_"; then
16789    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16790  fi
16791fi
16792rm -f core conftest.err conftest.$ac_objext conftest.beam \
16793    conftest$ac_exeext conftest.$ac_ext
16794  if test -z "$lt_cv_aix_libpath_"; then
16795    lt_cv_aix_libpath_=/usr/lib:/lib
16796  fi
16797
16798fi
16799
16800  aix_libpath=$lt_cv_aix_libpath_
16801fi
16802
16803	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16804	  # Warning - without using the other run time loading flags,
16805	  # -berok will link without error, but may produce a broken library.
16806	  no_undefined_flag=' $wl-bernotok'
16807	  allow_undefined_flag=' $wl-berok'
16808	  if test yes = "$with_gnu_ld"; then
16809	    # We only use this code for GNU lds that support --whole-archive.
16810	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16811	  else
16812	    # Exported symbols can be pulled into shared objects from archives
16813	    whole_archive_flag_spec='$convenience'
16814	  fi
16815	  archive_cmds_need_lc=yes
16816	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16817	  # -brtl affects multiple linker settings, -berok does not and is overridden later
16818	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16819	  if test svr4 != "$with_aix_soname"; then
16820	    # This is similar to how AIX traditionally builds its shared libraries.
16821	    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'
16822	  fi
16823	  if test aix != "$with_aix_soname"; then
16824	    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'
16825	  else
16826	    # used by -dlpreopen to get the symbols
16827	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16828	  fi
16829	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16830	fi
16831      fi
16832      ;;
16833
16834    amigaos*)
16835      case $host_cpu in
16836      powerpc)
16837            # see comment about AmigaOS4 .so support
16838            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16839            archive_expsym_cmds=''
16840        ;;
16841      m68k)
16842            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)'
16843            hardcode_libdir_flag_spec='-L$libdir'
16844            hardcode_minus_L=yes
16845        ;;
16846      esac
16847      ;;
16848
16849    bsdi[45]*)
16850      export_dynamic_flag_spec=-rdynamic
16851      ;;
16852
16853    cygwin* | mingw* | pw32* | cegcc*)
16854      # When not using gcc, we currently assume that we are using
16855      # Microsoft Visual C++ or Intel C++ Compiler.
16856      # hardcode_libdir_flag_spec is actually meaningless, as there is
16857      # no search path for DLLs.
16858      case $cc_basename in
16859      cl* | icl*)
16860	# Native MSVC or ICC
16861	hardcode_libdir_flag_spec=' '
16862	allow_undefined_flag=unsupported
16863	always_export_symbols=yes
16864	file_list_spec='@'
16865	# Tell ltmain to make .lib files, not .a files.
16866	libext=lib
16867	# Tell ltmain to make .dll files, not .so files.
16868	shrext_cmds=.dll
16869	# FIXME: Setting linknames here is a bad hack.
16870	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16871	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16872            cp "$export_symbols" "$output_objdir/$soname.def";
16873            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16874          else
16875            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16876          fi~
16877          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16878          linknames='
16879	# The linker will not automatically build a static lib if we build a DLL.
16880	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16881	enable_shared_with_static_runtimes=yes
16882	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16883	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16884	# Don't use ranlib
16885	old_postinstall_cmds='chmod 644 $oldlib'
16886	postlink_cmds='lt_outputfile="@OUTPUT@"~
16887          lt_tool_outputfile="@TOOL_OUTPUT@"~
16888          case $lt_outputfile in
16889            *.exe|*.EXE) ;;
16890            *)
16891              lt_outputfile=$lt_outputfile.exe
16892              lt_tool_outputfile=$lt_tool_outputfile.exe
16893              ;;
16894          esac~
16895          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16896            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16897            $RM "$lt_outputfile.manifest";
16898          fi'
16899	;;
16900      *)
16901	# Assume MSVC and ICC wrapper
16902	hardcode_libdir_flag_spec=' '
16903	allow_undefined_flag=unsupported
16904	# Tell ltmain to make .lib files, not .a files.
16905	libext=lib
16906	# Tell ltmain to make .dll files, not .so files.
16907	shrext_cmds=.dll
16908	# FIXME: Setting linknames here is a bad hack.
16909	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16910	# The linker will automatically build a .lib file if we build a DLL.
16911	old_archive_from_new_cmds='true'
16912	# FIXME: Should let the user specify the lib program.
16913	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16914	enable_shared_with_static_runtimes=yes
16915	;;
16916      esac
16917      ;;
16918
16919    darwin* | rhapsody*)
16920
16921
16922  archive_cmds_need_lc=no
16923  hardcode_direct=no
16924  hardcode_automatic=yes
16925  hardcode_shlibpath_var=unsupported
16926  if test yes = "$lt_cv_ld_force_load"; then
16927    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\"`'
16928
16929  else
16930    whole_archive_flag_spec=''
16931  fi
16932  link_all_deplibs=yes
16933  allow_undefined_flag=$_lt_dar_allow_undefined
16934  case $cc_basename in
16935     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16936     *) _lt_dar_can_shared=$GCC ;;
16937  esac
16938  if test yes = "$_lt_dar_can_shared"; then
16939    output_verbose_link_cmd=func_echo_all
16940    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16941    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16942    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"
16943    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"
16944
16945  else
16946  ld_shlibs=no
16947  fi
16948
16949      ;;
16950
16951    dgux*)
16952      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16953      hardcode_libdir_flag_spec='-L$libdir'
16954      hardcode_shlibpath_var=no
16955      ;;
16956
16957    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16958    # support.  Future versions do this automatically, but an explicit c++rt0.o
16959    # does not break anything, and helps significantly (at the cost of a little
16960    # extra space).
16961    freebsd2.2*)
16962      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16963      hardcode_libdir_flag_spec='-R$libdir'
16964      hardcode_direct=yes
16965      hardcode_shlibpath_var=no
16966      ;;
16967
16968    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16969    freebsd2.*)
16970      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16971      hardcode_direct=yes
16972      hardcode_minus_L=yes
16973      hardcode_shlibpath_var=no
16974      ;;
16975
16976    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16977    freebsd* | dragonfly* | midnightbsd*)
16978      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16979      hardcode_libdir_flag_spec='-R$libdir'
16980      hardcode_direct=yes
16981      hardcode_shlibpath_var=no
16982      ;;
16983
16984    hpux9*)
16985      if test yes = "$GCC"; then
16986	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'
16987      else
16988	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'
16989      fi
16990      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16991      hardcode_libdir_separator=:
16992      hardcode_direct=yes
16993
16994      # hardcode_minus_L: Not really in the search PATH,
16995      # but as the default location of the library.
16996      hardcode_minus_L=yes
16997      export_dynamic_flag_spec='$wl-E'
16998      ;;
16999
17000    hpux10*)
17001      if test yes,no = "$GCC,$with_gnu_ld"; then
17002	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17003      else
17004	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17005      fi
17006      if test no = "$with_gnu_ld"; then
17007	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17008	hardcode_libdir_separator=:
17009	hardcode_direct=yes
17010	hardcode_direct_absolute=yes
17011	export_dynamic_flag_spec='$wl-E'
17012	# hardcode_minus_L: Not really in the search PATH,
17013	# but as the default location of the library.
17014	hardcode_minus_L=yes
17015      fi
17016      ;;
17017
17018    hpux11*)
17019      if test yes,no = "$GCC,$with_gnu_ld"; then
17020	case $host_cpu in
17021	hppa*64*)
17022	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17023	  ;;
17024	ia64*)
17025	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17026	  ;;
17027	*)
17028	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17029	  ;;
17030	esac
17031      else
17032	case $host_cpu in
17033	hppa*64*)
17034	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17035	  ;;
17036	ia64*)
17037	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17038	  ;;
17039	*)
17040
17041	  # Older versions of the 11.00 compiler do not understand -b yet
17042	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17043	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17044printf %s "checking if $CC understands -b... " >&6; }
17045if test ${lt_cv_prog_compiler__b+y}
17046then :
17047  printf %s "(cached) " >&6
17048else $as_nop
17049  lt_cv_prog_compiler__b=no
17050   save_LDFLAGS=$LDFLAGS
17051   LDFLAGS="$LDFLAGS -b"
17052   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17053   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17054     # The linker can only warn and ignore the option if not recognized
17055     # So say no if there are warnings
17056     if test -s conftest.err; then
17057       # Append any errors to the config.log.
17058       cat conftest.err 1>&5
17059       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17060       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17061       if diff conftest.exp conftest.er2 >/dev/null; then
17062         lt_cv_prog_compiler__b=yes
17063       fi
17064     else
17065       lt_cv_prog_compiler__b=yes
17066     fi
17067   fi
17068   $RM -r conftest*
17069   LDFLAGS=$save_LDFLAGS
17070
17071fi
17072{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17073printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17074
17075if test yes = "$lt_cv_prog_compiler__b"; then
17076    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17077else
17078    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17079fi
17080
17081	  ;;
17082	esac
17083      fi
17084      if test no = "$with_gnu_ld"; then
17085	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17086	hardcode_libdir_separator=:
17087
17088	case $host_cpu in
17089	hppa*64*|ia64*)
17090	  hardcode_direct=no
17091	  hardcode_shlibpath_var=no
17092	  ;;
17093	*)
17094	  hardcode_direct=yes
17095	  hardcode_direct_absolute=yes
17096	  export_dynamic_flag_spec='$wl-E'
17097
17098	  # hardcode_minus_L: Not really in the search PATH,
17099	  # but as the default location of the library.
17100	  hardcode_minus_L=yes
17101	  ;;
17102	esac
17103      fi
17104      ;;
17105
17106    irix5* | irix6* | nonstopux*)
17107      if test yes = "$GCC"; then
17108	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'
17109	# Try to use the -exported_symbol ld option, if it does not
17110	# work, assume that -exports_file does not work either and
17111	# implicitly export all symbols.
17112	# This should be the same for all languages, so no per-tag cache variable.
17113	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17114printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17115if test ${lt_cv_irix_exported_symbol+y}
17116then :
17117  printf %s "(cached) " >&6
17118else $as_nop
17119  save_LDFLAGS=$LDFLAGS
17120	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17121	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17122/* end confdefs.h.  */
17123int foo (void) { return 0; }
17124_ACEOF
17125if ac_fn_c_try_link "$LINENO"
17126then :
17127  lt_cv_irix_exported_symbol=yes
17128else $as_nop
17129  lt_cv_irix_exported_symbol=no
17130fi
17131rm -f core conftest.err conftest.$ac_objext conftest.beam \
17132    conftest$ac_exeext conftest.$ac_ext
17133           LDFLAGS=$save_LDFLAGS
17134fi
17135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17136printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17137	if test yes = "$lt_cv_irix_exported_symbol"; then
17138          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'
17139	fi
17140      else
17141	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'
17142	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'
17143      fi
17144      archive_cmds_need_lc='no'
17145      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17146      hardcode_libdir_separator=:
17147      inherit_rpath=yes
17148      link_all_deplibs=yes
17149      ;;
17150
17151    linux*)
17152      case $cc_basename in
17153      tcc*)
17154	# Fabrice Bellard et al's Tiny C Compiler
17155	ld_shlibs=yes
17156	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17157	;;
17158      esac
17159      ;;
17160
17161    netbsd*)
17162      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17163	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17164      else
17165	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17166      fi
17167      hardcode_libdir_flag_spec='-R$libdir'
17168      hardcode_direct=yes
17169      hardcode_shlibpath_var=no
17170      ;;
17171
17172    newsos6)
17173      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17174      hardcode_direct=yes
17175      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17176      hardcode_libdir_separator=:
17177      hardcode_shlibpath_var=no
17178      ;;
17179
17180    *nto* | *qnx*)
17181      ;;
17182
17183    openbsd* | bitrig*)
17184      if test -f /usr/libexec/ld.so; then
17185	hardcode_direct=yes
17186	hardcode_shlibpath_var=no
17187	hardcode_direct_absolute=yes
17188	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17189	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17190	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17191	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17192	  export_dynamic_flag_spec='$wl-E'
17193	else
17194	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17195	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17196	fi
17197      else
17198	ld_shlibs=no
17199      fi
17200      ;;
17201
17202    os2*)
17203      hardcode_libdir_flag_spec='-L$libdir'
17204      hardcode_minus_L=yes
17205      allow_undefined_flag=unsupported
17206      shrext_cmds=.dll
17207      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17208	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17209	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17210	$ECHO EXPORTS >> $output_objdir/$libname.def~
17211	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17212	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17213	emximp -o $lib $output_objdir/$libname.def'
17214      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17215	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17216	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17217	$ECHO EXPORTS >> $output_objdir/$libname.def~
17218	prefix_cmds="$SED"~
17219	if test EXPORTS = "`$SED 1q $export_symbols`"; then
17220	  prefix_cmds="$prefix_cmds -e 1d";
17221	fi~
17222	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17223	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17224	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17225	emximp -o $lib $output_objdir/$libname.def'
17226      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17227      enable_shared_with_static_runtimes=yes
17228      file_list_spec='@'
17229      ;;
17230
17231    osf3*)
17232      if test yes = "$GCC"; then
17233	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17234	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'
17235      else
17236	allow_undefined_flag=' -expect_unresolved \*'
17237	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'
17238      fi
17239      archive_cmds_need_lc='no'
17240      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17241      hardcode_libdir_separator=:
17242      ;;
17243
17244    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17245      if test yes = "$GCC"; then
17246	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17247	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'
17248	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17249      else
17250	allow_undefined_flag=' -expect_unresolved \*'
17251	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'
17252	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~
17253          $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'
17254
17255	# Both c and cxx compiler support -rpath directly
17256	hardcode_libdir_flag_spec='-rpath $libdir'
17257      fi
17258      archive_cmds_need_lc='no'
17259      hardcode_libdir_separator=:
17260      ;;
17261
17262    solaris*)
17263      no_undefined_flag=' -z defs'
17264      if test yes = "$GCC"; then
17265	wlarc='$wl'
17266	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17267	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17268          $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'
17269      else
17270	case `$CC -V 2>&1` in
17271	*"Compilers 5.0"*)
17272	  wlarc=''
17273	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17274	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17275            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17276	  ;;
17277	*)
17278	  wlarc='$wl'
17279	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17280	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17281            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17282	  ;;
17283	esac
17284      fi
17285      hardcode_libdir_flag_spec='-R$libdir'
17286      hardcode_shlibpath_var=no
17287      case $host_os in
17288      solaris2.[0-5] | solaris2.[0-5].*) ;;
17289      *)
17290	# The compiler driver will combine and reorder linker options,
17291	# but understands '-z linker_flag'.  GCC discards it without '$wl',
17292	# but is careful enough not to reorder.
17293	# Supported since Solaris 2.6 (maybe 2.5.1?)
17294	if test yes = "$GCC"; then
17295	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17296	else
17297	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17298	fi
17299	;;
17300      esac
17301      link_all_deplibs=yes
17302      ;;
17303
17304    sunos4*)
17305      if test sequent = "$host_vendor"; then
17306	# Use $CC to link under sequent, because it throws in some extra .o
17307	# files that make .init and .fini sections work.
17308	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17309      else
17310	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17311      fi
17312      hardcode_libdir_flag_spec='-L$libdir'
17313      hardcode_direct=yes
17314      hardcode_minus_L=yes
17315      hardcode_shlibpath_var=no
17316      ;;
17317
17318    sysv4)
17319      case $host_vendor in
17320	sni)
17321	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17322	  hardcode_direct=yes # is this really true???
17323	;;
17324	siemens)
17325	  ## LD is ld it makes a PLAMLIB
17326	  ## CC just makes a GrossModule.
17327	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17328	  reload_cmds='$CC -r -o $output$reload_objs'
17329	  hardcode_direct=no
17330        ;;
17331	motorola)
17332	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17333	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17334	;;
17335      esac
17336      runpath_var='LD_RUN_PATH'
17337      hardcode_shlibpath_var=no
17338      ;;
17339
17340    sysv4.3*)
17341      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17342      hardcode_shlibpath_var=no
17343      export_dynamic_flag_spec='-Bexport'
17344      ;;
17345
17346    sysv4*MP*)
17347      if test -d /usr/nec; then
17348	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17349	hardcode_shlibpath_var=no
17350	runpath_var=LD_RUN_PATH
17351	hardcode_runpath_var=yes
17352	ld_shlibs=yes
17353      fi
17354      ;;
17355
17356    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17357      no_undefined_flag='$wl-z,text'
17358      archive_cmds_need_lc=no
17359      hardcode_shlibpath_var=no
17360      runpath_var='LD_RUN_PATH'
17361
17362      if test yes = "$GCC"; then
17363	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17364	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17365      else
17366	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17367	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17368      fi
17369      ;;
17370
17371    sysv5* | sco3.2v5* | sco5v6*)
17372      # Note: We CANNOT use -z defs as we might desire, because we do not
17373      # link with -lc, and that would cause any symbols used from libc to
17374      # always be unresolved, which means just about no library would
17375      # ever link correctly.  If we're not using GNU ld we use -z text
17376      # though, which does catch some bad symbols but isn't as heavy-handed
17377      # as -z defs.
17378      no_undefined_flag='$wl-z,text'
17379      allow_undefined_flag='$wl-z,nodefs'
17380      archive_cmds_need_lc=no
17381      hardcode_shlibpath_var=no
17382      hardcode_libdir_flag_spec='$wl-R,$libdir'
17383      hardcode_libdir_separator=':'
17384      link_all_deplibs=yes
17385      export_dynamic_flag_spec='$wl-Bexport'
17386      runpath_var='LD_RUN_PATH'
17387
17388      if test yes = "$GCC"; then
17389	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17390	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17391      else
17392	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17393	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17394      fi
17395      ;;
17396
17397    uts4*)
17398      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17399      hardcode_libdir_flag_spec='-L$libdir'
17400      hardcode_shlibpath_var=no
17401      ;;
17402
17403    *)
17404      ld_shlibs=no
17405      ;;
17406    esac
17407
17408    if test sni = "$host_vendor"; then
17409      case $host in
17410      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17411	export_dynamic_flag_spec='$wl-Blargedynsym'
17412	;;
17413      esac
17414    fi
17415  fi
17416
17417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17418printf "%s\n" "$ld_shlibs" >&6; }
17419test no = "$ld_shlibs" && can_build_shared=no
17420
17421with_gnu_ld=$with_gnu_ld
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437#
17438# Do we need to explicitly link libc?
17439#
17440case "x$archive_cmds_need_lc" in
17441x|xyes)
17442  # Assume -lc should be added
17443  archive_cmds_need_lc=yes
17444
17445  if test yes,yes = "$GCC,$enable_shared"; then
17446    case $archive_cmds in
17447    *'~'*)
17448      # FIXME: we may have to deal with multi-command sequences.
17449      ;;
17450    '$CC '*)
17451      # Test whether the compiler implicitly links with -lc since on some
17452      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17453      # to ld, don't add -lc before -lgcc.
17454      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17455printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17456if test ${lt_cv_archive_cmds_need_lc+y}
17457then :
17458  printf %s "(cached) " >&6
17459else $as_nop
17460  $RM conftest*
17461	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17462
17463	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17464  (eval $ac_compile) 2>&5
17465  ac_status=$?
17466  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17467  test $ac_status = 0; } 2>conftest.err; then
17468	  soname=conftest
17469	  lib=conftest
17470	  libobjs=conftest.$ac_objext
17471	  deplibs=
17472	  wl=$lt_prog_compiler_wl
17473	  pic_flag=$lt_prog_compiler_pic
17474	  compiler_flags=-v
17475	  linker_flags=-v
17476	  verstring=
17477	  output_objdir=.
17478	  libname=conftest
17479	  lt_save_allow_undefined_flag=$allow_undefined_flag
17480	  allow_undefined_flag=
17481	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17482  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17483  ac_status=$?
17484  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17485  test $ac_status = 0; }
17486	  then
17487	    lt_cv_archive_cmds_need_lc=no
17488	  else
17489	    lt_cv_archive_cmds_need_lc=yes
17490	  fi
17491	  allow_undefined_flag=$lt_save_allow_undefined_flag
17492	else
17493	  cat conftest.err 1>&5
17494	fi
17495	$RM conftest*
17496
17497fi
17498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17499printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17500      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17501      ;;
17502    esac
17503  fi
17504  ;;
17505esac
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17659printf %s "checking dynamic linker characteristics... " >&6; }
17660
17661if test yes = "$GCC"; then
17662  case $host_os in
17663    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17664    *) lt_awk_arg='/^libraries:/' ;;
17665  esac
17666  case $host_os in
17667    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17668    *) lt_sed_strip_eq='s|=/|/|g' ;;
17669  esac
17670  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17671  case $lt_search_path_spec in
17672  *\;*)
17673    # if the path contains ";" then we assume it to be the separator
17674    # otherwise default to the standard path separator (i.e. ":") - it is
17675    # assumed that no part of a normal pathname contains ";" but that should
17676    # okay in the real world where ";" in dirpaths is itself problematic.
17677    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17678    ;;
17679  *)
17680    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17681    ;;
17682  esac
17683  # Ok, now we have the path, separated by spaces, we can step through it
17684  # and add multilib dir if necessary...
17685  lt_tmp_lt_search_path_spec=
17686  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17687  # ...but if some path component already ends with the multilib dir we assume
17688  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17689  case "$lt_multi_os_dir; $lt_search_path_spec " in
17690  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17691    lt_multi_os_dir=
17692    ;;
17693  esac
17694  for lt_sys_path in $lt_search_path_spec; do
17695    if test -d "$lt_sys_path$lt_multi_os_dir"; then
17696      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17697    elif test -n "$lt_multi_os_dir"; then
17698      test -d "$lt_sys_path" && \
17699	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17700    fi
17701  done
17702  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17703BEGIN {RS = " "; FS = "/|\n";} {
17704  lt_foo = "";
17705  lt_count = 0;
17706  for (lt_i = NF; lt_i > 0; lt_i--) {
17707    if ($lt_i != "" && $lt_i != ".") {
17708      if ($lt_i == "..") {
17709        lt_count++;
17710      } else {
17711        if (lt_count == 0) {
17712          lt_foo = "/" $lt_i lt_foo;
17713        } else {
17714          lt_count--;
17715        }
17716      }
17717    }
17718  }
17719  if (lt_foo != "") { lt_freq[lt_foo]++; }
17720  if (lt_freq[lt_foo] == 1) { print lt_foo; }
17721}'`
17722  # AWK program above erroneously prepends '/' to C:/dos/paths
17723  # for these hosts.
17724  case $host_os in
17725    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17726      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17727  esac
17728  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17729else
17730  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17731fi
17732library_names_spec=
17733libname_spec='lib$name'
17734soname_spec=
17735shrext_cmds=.so
17736postinstall_cmds=
17737postuninstall_cmds=
17738finish_cmds=
17739finish_eval=
17740shlibpath_var=
17741shlibpath_overrides_runpath=unknown
17742version_type=none
17743dynamic_linker="$host_os ld.so"
17744sys_lib_dlsearch_path_spec="/lib /usr/lib"
17745need_lib_prefix=unknown
17746hardcode_into_libs=no
17747
17748# when you set need_version to no, make sure it does not cause -set_version
17749# flags to be left without arguments
17750need_version=unknown
17751
17752
17753
17754case $host_os in
17755aix3*)
17756  version_type=linux # correct to gnu/linux during the next big refactor
17757  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17758  shlibpath_var=LIBPATH
17759
17760  # AIX 3 has no versioning support, so we append a major version to the name.
17761  soname_spec='$libname$release$shared_ext$major'
17762  ;;
17763
17764aix[4-9]*)
17765  version_type=linux # correct to gnu/linux during the next big refactor
17766  need_lib_prefix=no
17767  need_version=no
17768  hardcode_into_libs=yes
17769  if test ia64 = "$host_cpu"; then
17770    # AIX 5 supports IA64
17771    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17772    shlibpath_var=LD_LIBRARY_PATH
17773  else
17774    # With GCC up to 2.95.x, collect2 would create an import file
17775    # for dependence libraries.  The import file would start with
17776    # the line '#! .'.  This would cause the generated library to
17777    # depend on '.', always an invalid library.  This was fixed in
17778    # development snapshots of GCC prior to 3.0.
17779    case $host_os in
17780      aix4 | aix4.[01] | aix4.[01].*)
17781      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17782	   echo ' yes '
17783	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17784	:
17785      else
17786	can_build_shared=no
17787      fi
17788      ;;
17789    esac
17790    # Using Import Files as archive members, it is possible to support
17791    # filename-based versioning of shared library archives on AIX. While
17792    # this would work for both with and without runtime linking, it will
17793    # prevent static linking of such archives. So we do filename-based
17794    # shared library versioning with .so extension only, which is used
17795    # when both runtime linking and shared linking is enabled.
17796    # Unfortunately, runtime linking may impact performance, so we do
17797    # not want this to be the default eventually. Also, we use the
17798    # versioned .so libs for executables only if there is the -brtl
17799    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17800    # To allow for filename-based versioning support, we need to create
17801    # libNAME.so.V as an archive file, containing:
17802    # *) an Import File, referring to the versioned filename of the
17803    #    archive as well as the shared archive member, telling the
17804    #    bitwidth (32 or 64) of that shared object, and providing the
17805    #    list of exported symbols of that shared object, eventually
17806    #    decorated with the 'weak' keyword
17807    # *) the shared object with the F_LOADONLY flag set, to really avoid
17808    #    it being seen by the linker.
17809    # At run time we better use the real file rather than another symlink,
17810    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17811
17812    case $with_aix_soname,$aix_use_runtimelinking in
17813    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17814    # soname into executable. Probably we can add versioning support to
17815    # collect2, so additional links can be useful in future.
17816    aix,yes) # traditional libtool
17817      dynamic_linker='AIX unversionable lib.so'
17818      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17819      # instead of lib<name>.a to let people know that these are not
17820      # typical AIX shared libraries.
17821      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17822      ;;
17823    aix,no) # traditional AIX only
17824      dynamic_linker='AIX lib.a(lib.so.V)'
17825      # We preserve .a as extension for shared libraries through AIX4.2
17826      # and later when we are not doing run time linking.
17827      library_names_spec='$libname$release.a $libname.a'
17828      soname_spec='$libname$release$shared_ext$major'
17829      ;;
17830    svr4,*) # full svr4 only
17831      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17832      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17833      # We do not specify a path in Import Files, so LIBPATH fires.
17834      shlibpath_overrides_runpath=yes
17835      ;;
17836    *,yes) # both, prefer svr4
17837      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17838      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17839      # unpreferred sharedlib libNAME.a needs extra handling
17840      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"'
17841      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"'
17842      # We do not specify a path in Import Files, so LIBPATH fires.
17843      shlibpath_overrides_runpath=yes
17844      ;;
17845    *,no) # both, prefer aix
17846      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17847      library_names_spec='$libname$release.a $libname.a'
17848      soname_spec='$libname$release$shared_ext$major'
17849      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17850      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)'
17851      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"'
17852      ;;
17853    esac
17854    shlibpath_var=LIBPATH
17855  fi
17856  ;;
17857
17858amigaos*)
17859  case $host_cpu in
17860  powerpc)
17861    # Since July 2007 AmigaOS4 officially supports .so libraries.
17862    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17863    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17864    ;;
17865  m68k)
17866    library_names_spec='$libname.ixlibrary $libname.a'
17867    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17868    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'
17869    ;;
17870  esac
17871  ;;
17872
17873beos*)
17874  library_names_spec='$libname$shared_ext'
17875  dynamic_linker="$host_os ld.so"
17876  shlibpath_var=LIBRARY_PATH
17877  ;;
17878
17879bsdi[45]*)
17880  version_type=linux # correct to gnu/linux during the next big refactor
17881  need_version=no
17882  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17883  soname_spec='$libname$release$shared_ext$major'
17884  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17885  shlibpath_var=LD_LIBRARY_PATH
17886  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17887  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17888  # the default ld.so.conf also contains /usr/contrib/lib and
17889  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17890  # libtool to hard-code these into programs
17891  ;;
17892
17893cygwin* | mingw* | pw32* | cegcc*)
17894  version_type=windows
17895  shrext_cmds=.dll
17896  need_version=no
17897  need_lib_prefix=no
17898
17899  case $GCC,$cc_basename in
17900  yes,*)
17901    # gcc
17902    library_names_spec='$libname.dll.a'
17903    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17904    postinstall_cmds='base_file=`basename \$file`~
17905      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17906      dldir=$destdir/`dirname \$dlpath`~
17907      test -d \$dldir || mkdir -p \$dldir~
17908      $install_prog $dir/$dlname \$dldir/$dlname~
17909      chmod a+x \$dldir/$dlname~
17910      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17911        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17912      fi'
17913    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17914      dlpath=$dir/\$dldll~
17915       $RM \$dlpath'
17916    shlibpath_overrides_runpath=yes
17917
17918    case $host_os in
17919    cygwin*)
17920      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17921      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17922
17923      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17924      ;;
17925    mingw* | cegcc*)
17926      # MinGW DLLs use traditional 'lib' prefix
17927      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17928      ;;
17929    pw32*)
17930      # pw32 DLLs use 'pw' prefix rather than 'lib'
17931      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17932      ;;
17933    esac
17934    dynamic_linker='Win32 ld.exe'
17935    ;;
17936
17937  *,cl* | *,icl*)
17938    # Native MSVC or ICC
17939    libname_spec='$name'
17940    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17941    library_names_spec='$libname.dll.lib'
17942
17943    case $build_os in
17944    mingw*)
17945      sys_lib_search_path_spec=
17946      lt_save_ifs=$IFS
17947      IFS=';'
17948      for lt_path in $LIB
17949      do
17950        IFS=$lt_save_ifs
17951        # Let DOS variable expansion print the short 8.3 style file name.
17952        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17953        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17954      done
17955      IFS=$lt_save_ifs
17956      # Convert to MSYS style.
17957      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17958      ;;
17959    cygwin*)
17960      # Convert to unix form, then to dos form, then back to unix form
17961      # but this time dos style (no spaces!) so that the unix form looks
17962      # like /cygdrive/c/PROGRA~1:/cygdr...
17963      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17964      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17965      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17966      ;;
17967    *)
17968      sys_lib_search_path_spec=$LIB
17969      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17970        # It is most probably a Windows format PATH.
17971        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17972      else
17973        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17974      fi
17975      # FIXME: find the short name or the path components, as spaces are
17976      # common. (e.g. "Program Files" -> "PROGRA~1")
17977      ;;
17978    esac
17979
17980    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17981    postinstall_cmds='base_file=`basename \$file`~
17982      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17983      dldir=$destdir/`dirname \$dlpath`~
17984      test -d \$dldir || mkdir -p \$dldir~
17985      $install_prog $dir/$dlname \$dldir/$dlname'
17986    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17987      dlpath=$dir/\$dldll~
17988       $RM \$dlpath'
17989    shlibpath_overrides_runpath=yes
17990    dynamic_linker='Win32 link.exe'
17991    ;;
17992
17993  *)
17994    # Assume MSVC and ICC wrapper
17995    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17996    dynamic_linker='Win32 ld.exe'
17997    ;;
17998  esac
17999  # FIXME: first we should search . and the directory the executable is in
18000  shlibpath_var=PATH
18001  ;;
18002
18003darwin* | rhapsody*)
18004  dynamic_linker="$host_os dyld"
18005  version_type=darwin
18006  need_lib_prefix=no
18007  need_version=no
18008  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18009  soname_spec='$libname$release$major$shared_ext'
18010  shlibpath_overrides_runpath=yes
18011  shlibpath_var=DYLD_LIBRARY_PATH
18012  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18013
18014  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18015  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18016  ;;
18017
18018dgux*)
18019  version_type=linux # correct to gnu/linux during the next big refactor
18020  need_lib_prefix=no
18021  need_version=no
18022  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18023  soname_spec='$libname$release$shared_ext$major'
18024  shlibpath_var=LD_LIBRARY_PATH
18025  ;;
18026
18027freebsd* | dragonfly* | midnightbsd*)
18028  # DragonFly does not have aout.  When/if they implement a new
18029  # versioning mechanism, adjust this.
18030  if test -x /usr/bin/objformat; then
18031    objformat=`/usr/bin/objformat`
18032  else
18033    case $host_os in
18034    freebsd[23].*) objformat=aout ;;
18035    *) objformat=elf ;;
18036    esac
18037  fi
18038  version_type=freebsd-$objformat
18039  case $version_type in
18040    freebsd-elf*)
18041      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18042      soname_spec='$libname$release$shared_ext$major'
18043      need_version=no
18044      need_lib_prefix=no
18045      ;;
18046    freebsd-*)
18047      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18048      need_version=yes
18049      ;;
18050  esac
18051  shlibpath_var=LD_LIBRARY_PATH
18052  case $host_os in
18053  freebsd2.*)
18054    shlibpath_overrides_runpath=yes
18055    ;;
18056  freebsd3.[01]* | freebsdelf3.[01]*)
18057    shlibpath_overrides_runpath=yes
18058    hardcode_into_libs=yes
18059    ;;
18060  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18061  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18062    shlibpath_overrides_runpath=no
18063    hardcode_into_libs=yes
18064    ;;
18065  *) # from 4.6 on, and DragonFly
18066    shlibpath_overrides_runpath=yes
18067    hardcode_into_libs=yes
18068    ;;
18069  esac
18070  ;;
18071
18072haiku*)
18073  version_type=linux # correct to gnu/linux during the next big refactor
18074  need_lib_prefix=no
18075  need_version=no
18076  dynamic_linker="$host_os runtime_loader"
18077  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18078  soname_spec='$libname$release$shared_ext$major'
18079  shlibpath_var=LIBRARY_PATH
18080  shlibpath_overrides_runpath=no
18081  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18082  hardcode_into_libs=yes
18083  ;;
18084
18085hpux9* | hpux10* | hpux11*)
18086  # Give a soname corresponding to the major version so that dld.sl refuses to
18087  # link against other versions.
18088  version_type=sunos
18089  need_lib_prefix=no
18090  need_version=no
18091  case $host_cpu in
18092  ia64*)
18093    shrext_cmds='.so'
18094    hardcode_into_libs=yes
18095    dynamic_linker="$host_os dld.so"
18096    shlibpath_var=LD_LIBRARY_PATH
18097    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18098    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18099    soname_spec='$libname$release$shared_ext$major'
18100    if test 32 = "$HPUX_IA64_MODE"; then
18101      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18102      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18103    else
18104      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18105      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18106    fi
18107    ;;
18108  hppa*64*)
18109    shrext_cmds='.sl'
18110    hardcode_into_libs=yes
18111    dynamic_linker="$host_os dld.sl"
18112    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18113    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18114    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18115    soname_spec='$libname$release$shared_ext$major'
18116    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18117    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18118    ;;
18119  *)
18120    shrext_cmds='.sl'
18121    dynamic_linker="$host_os dld.sl"
18122    shlibpath_var=SHLIB_PATH
18123    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18124    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18125    soname_spec='$libname$release$shared_ext$major'
18126    ;;
18127  esac
18128  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18129  postinstall_cmds='chmod 555 $lib'
18130  # or fails outright, so override atomically:
18131  install_override_mode=555
18132  ;;
18133
18134interix[3-9]*)
18135  version_type=linux # correct to gnu/linux during the next big refactor
18136  need_lib_prefix=no
18137  need_version=no
18138  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18139  soname_spec='$libname$release$shared_ext$major'
18140  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18141  shlibpath_var=LD_LIBRARY_PATH
18142  shlibpath_overrides_runpath=no
18143  hardcode_into_libs=yes
18144  ;;
18145
18146irix5* | irix6* | nonstopux*)
18147  case $host_os in
18148    nonstopux*) version_type=nonstopux ;;
18149    *)
18150	if test yes = "$lt_cv_prog_gnu_ld"; then
18151		version_type=linux # correct to gnu/linux during the next big refactor
18152	else
18153		version_type=irix
18154	fi ;;
18155  esac
18156  need_lib_prefix=no
18157  need_version=no
18158  soname_spec='$libname$release$shared_ext$major'
18159  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18160  case $host_os in
18161  irix5* | nonstopux*)
18162    libsuff= shlibsuff=
18163    ;;
18164  *)
18165    case $LD in # libtool.m4 will add one of these switches to LD
18166    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18167      libsuff= shlibsuff= libmagic=32-bit;;
18168    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18169      libsuff=32 shlibsuff=N32 libmagic=N32;;
18170    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18171      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18172    *) libsuff= shlibsuff= libmagic=never-match;;
18173    esac
18174    ;;
18175  esac
18176  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18177  shlibpath_overrides_runpath=no
18178  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18179  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18180  hardcode_into_libs=yes
18181  ;;
18182
18183# No shared lib support for Linux oldld, aout, or coff.
18184linux*oldld* | linux*aout* | linux*coff*)
18185  dynamic_linker=no
18186  ;;
18187
18188linux*android*)
18189  version_type=none # Android doesn't support versioned libraries.
18190  need_lib_prefix=no
18191  need_version=no
18192  library_names_spec='$libname$release$shared_ext'
18193  soname_spec='$libname$release$shared_ext'
18194  finish_cmds=
18195  shlibpath_var=LD_LIBRARY_PATH
18196  shlibpath_overrides_runpath=yes
18197
18198  # This implies no fast_install, which is unacceptable.
18199  # Some rework will be needed to allow for fast_install
18200  # before this can be enabled.
18201  hardcode_into_libs=yes
18202
18203  dynamic_linker='Android linker'
18204  # Don't embed -rpath directories since the linker doesn't support them.
18205  hardcode_libdir_flag_spec='-L$libdir'
18206  ;;
18207
18208# This must be glibc/ELF.
18209linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18210  version_type=linux # correct to gnu/linux during the next big refactor
18211  need_lib_prefix=no
18212  need_version=no
18213  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18214  soname_spec='$libname$release$shared_ext$major'
18215  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18216  shlibpath_var=LD_LIBRARY_PATH
18217  shlibpath_overrides_runpath=no
18218
18219  # Some binutils ld are patched to set DT_RUNPATH
18220  if test ${lt_cv_shlibpath_overrides_runpath+y}
18221then :
18222  printf %s "(cached) " >&6
18223else $as_nop
18224  lt_cv_shlibpath_overrides_runpath=no
18225    save_LDFLAGS=$LDFLAGS
18226    save_libdir=$libdir
18227    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18228	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18229    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18230/* end confdefs.h.  */
18231
18232int
18233main (void)
18234{
18235
18236  ;
18237  return 0;
18238}
18239_ACEOF
18240if ac_fn_c_try_link "$LINENO"
18241then :
18242  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18243then :
18244  lt_cv_shlibpath_overrides_runpath=yes
18245fi
18246fi
18247rm -f core conftest.err conftest.$ac_objext conftest.beam \
18248    conftest$ac_exeext conftest.$ac_ext
18249    LDFLAGS=$save_LDFLAGS
18250    libdir=$save_libdir
18251
18252fi
18253
18254  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18255
18256  # This implies no fast_install, which is unacceptable.
18257  # Some rework will be needed to allow for fast_install
18258  # before this can be enabled.
18259  hardcode_into_libs=yes
18260
18261  # Ideally, we could use ldconfig to report *all* directores which are
18262  # searched for libraries, however this is still not possible.  Aside from not
18263  # being certain /sbin/ldconfig is available, command
18264  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18265  # even though it is searched at run-time.  Try to do the best guess by
18266  # appending ld.so.conf contents (and includes) to the search path.
18267  if test -f /etc/ld.so.conf; then
18268    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' ' '`
18269    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18270  fi
18271
18272  # We used to test for /lib/ld.so.1 and disable shared libraries on
18273  # powerpc, because MkLinux only supported shared libraries with the
18274  # GNU dynamic linker.  Since this was broken with cross compilers,
18275  # most powerpc-linux boxes support dynamic linking these days and
18276  # people can always --disable-shared, the test was removed, and we
18277  # assume the GNU/Linux dynamic linker is in use.
18278  dynamic_linker='GNU/Linux ld.so'
18279  ;;
18280
18281netbsd*)
18282  version_type=sunos
18283  need_lib_prefix=no
18284  need_version=no
18285  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18286    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18287    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18288    dynamic_linker='NetBSD (a.out) ld.so'
18289  else
18290    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18291    soname_spec='$libname$release$shared_ext$major'
18292    dynamic_linker='NetBSD ld.elf_so'
18293  fi
18294  shlibpath_var=LD_LIBRARY_PATH
18295  shlibpath_overrides_runpath=yes
18296  hardcode_into_libs=yes
18297  ;;
18298
18299newsos6)
18300  version_type=linux # correct to gnu/linux during the next big refactor
18301  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18302  shlibpath_var=LD_LIBRARY_PATH
18303  shlibpath_overrides_runpath=yes
18304  ;;
18305
18306*nto* | *qnx*)
18307  version_type=qnx
18308  need_lib_prefix=no
18309  need_version=no
18310  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18311  soname_spec='$libname$release$shared_ext$major'
18312  shlibpath_var=LD_LIBRARY_PATH
18313  shlibpath_overrides_runpath=no
18314  hardcode_into_libs=yes
18315  dynamic_linker='ldqnx.so'
18316  ;;
18317
18318openbsd* | bitrig*)
18319  version_type=sunos
18320  sys_lib_dlsearch_path_spec=/usr/lib
18321  need_lib_prefix=no
18322  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18323    need_version=no
18324  else
18325    need_version=yes
18326  fi
18327  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18328  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18329  shlibpath_var=LD_LIBRARY_PATH
18330  shlibpath_overrides_runpath=yes
18331  ;;
18332
18333os2*)
18334  libname_spec='$name'
18335  version_type=windows
18336  shrext_cmds=.dll
18337  need_version=no
18338  need_lib_prefix=no
18339  # OS/2 can only load a DLL with a base name of 8 characters or less.
18340  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18341    v=$($ECHO $release$versuffix | tr -d .-);
18342    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18343    $ECHO $n$v`$shared_ext'
18344  library_names_spec='${libname}_dll.$libext'
18345  dynamic_linker='OS/2 ld.exe'
18346  shlibpath_var=BEGINLIBPATH
18347  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18348  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18349  postinstall_cmds='base_file=`basename \$file`~
18350    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18351    dldir=$destdir/`dirname \$dlpath`~
18352    test -d \$dldir || mkdir -p \$dldir~
18353    $install_prog $dir/$dlname \$dldir/$dlname~
18354    chmod a+x \$dldir/$dlname~
18355    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18356      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18357    fi'
18358  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18359    dlpath=$dir/\$dldll~
18360    $RM \$dlpath'
18361  ;;
18362
18363osf3* | osf4* | osf5*)
18364  version_type=osf
18365  need_lib_prefix=no
18366  need_version=no
18367  soname_spec='$libname$release$shared_ext$major'
18368  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18369  shlibpath_var=LD_LIBRARY_PATH
18370  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18371  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18372  ;;
18373
18374rdos*)
18375  dynamic_linker=no
18376  ;;
18377
18378solaris*)
18379  version_type=linux # correct to gnu/linux during the next big refactor
18380  need_lib_prefix=no
18381  need_version=no
18382  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18383  soname_spec='$libname$release$shared_ext$major'
18384  shlibpath_var=LD_LIBRARY_PATH
18385  shlibpath_overrides_runpath=yes
18386  hardcode_into_libs=yes
18387  # ldd complains unless libraries are executable
18388  postinstall_cmds='chmod +x $lib'
18389  ;;
18390
18391sunos4*)
18392  version_type=sunos
18393  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18394  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18395  shlibpath_var=LD_LIBRARY_PATH
18396  shlibpath_overrides_runpath=yes
18397  if test yes = "$with_gnu_ld"; then
18398    need_lib_prefix=no
18399  fi
18400  need_version=yes
18401  ;;
18402
18403sysv4 | sysv4.3*)
18404  version_type=linux # correct to gnu/linux during the next big refactor
18405  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18406  soname_spec='$libname$release$shared_ext$major'
18407  shlibpath_var=LD_LIBRARY_PATH
18408  case $host_vendor in
18409    sni)
18410      shlibpath_overrides_runpath=no
18411      need_lib_prefix=no
18412      runpath_var=LD_RUN_PATH
18413      ;;
18414    siemens)
18415      need_lib_prefix=no
18416      ;;
18417    motorola)
18418      need_lib_prefix=no
18419      need_version=no
18420      shlibpath_overrides_runpath=no
18421      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18422      ;;
18423  esac
18424  ;;
18425
18426sysv4*MP*)
18427  if test -d /usr/nec; then
18428    version_type=linux # correct to gnu/linux during the next big refactor
18429    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18430    soname_spec='$libname$shared_ext.$major'
18431    shlibpath_var=LD_LIBRARY_PATH
18432  fi
18433  ;;
18434
18435sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18436  version_type=sco
18437  need_lib_prefix=no
18438  need_version=no
18439  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18440  soname_spec='$libname$release$shared_ext$major'
18441  shlibpath_var=LD_LIBRARY_PATH
18442  shlibpath_overrides_runpath=yes
18443  hardcode_into_libs=yes
18444  if test yes = "$with_gnu_ld"; then
18445    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18446  else
18447    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18448    case $host_os in
18449      sco3.2v5*)
18450        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18451	;;
18452    esac
18453  fi
18454  sys_lib_dlsearch_path_spec='/usr/lib'
18455  ;;
18456
18457tpf*)
18458  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18459  version_type=linux # correct to gnu/linux during the next big refactor
18460  need_lib_prefix=no
18461  need_version=no
18462  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18463  shlibpath_var=LD_LIBRARY_PATH
18464  shlibpath_overrides_runpath=no
18465  hardcode_into_libs=yes
18466  ;;
18467
18468uts4*)
18469  version_type=linux # correct to gnu/linux during the next big refactor
18470  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18471  soname_spec='$libname$release$shared_ext$major'
18472  shlibpath_var=LD_LIBRARY_PATH
18473  ;;
18474
18475*)
18476  dynamic_linker=no
18477  ;;
18478esac
18479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18480printf "%s\n" "$dynamic_linker" >&6; }
18481test no = "$dynamic_linker" && can_build_shared=no
18482
18483variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18484if test yes = "$GCC"; then
18485  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18486fi
18487
18488if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18489  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18490fi
18491
18492if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18493  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18494fi
18495
18496# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18497configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18498
18499# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18500func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18501
18502# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18503configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18602printf %s "checking how to hardcode library paths into programs... " >&6; }
18603hardcode_action=
18604if test -n "$hardcode_libdir_flag_spec" ||
18605   test -n "$runpath_var" ||
18606   test yes = "$hardcode_automatic"; then
18607
18608  # We can hardcode non-existent directories.
18609  if test no != "$hardcode_direct" &&
18610     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18611     # have to relink, otherwise we might link with an installed library
18612     # when we should be linking with a yet-to-be-installed one
18613     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18614     test no != "$hardcode_minus_L"; then
18615    # Linking always hardcodes the temporary library directory.
18616    hardcode_action=relink
18617  else
18618    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18619    hardcode_action=immediate
18620  fi
18621else
18622  # We cannot hardcode anything, or else we can only hardcode existing
18623  # directories.
18624  hardcode_action=unsupported
18625fi
18626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18627printf "%s\n" "$hardcode_action" >&6; }
18628
18629if test relink = "$hardcode_action" ||
18630   test yes = "$inherit_rpath"; then
18631  # Fast installation is not supported
18632  enable_fast_install=no
18633elif test yes = "$shlibpath_overrides_runpath" ||
18634     test no = "$enable_shared"; then
18635  # Fast installation is not necessary
18636  enable_fast_install=needless
18637fi
18638
18639
18640
18641
18642
18643
18644  if test yes != "$enable_dlopen"; then
18645  enable_dlopen=unknown
18646  enable_dlopen_self=unknown
18647  enable_dlopen_self_static=unknown
18648else
18649  lt_cv_dlopen=no
18650  lt_cv_dlopen_libs=
18651
18652  case $host_os in
18653  beos*)
18654    lt_cv_dlopen=load_add_on
18655    lt_cv_dlopen_libs=
18656    lt_cv_dlopen_self=yes
18657    ;;
18658
18659  mingw* | pw32* | cegcc*)
18660    lt_cv_dlopen=LoadLibrary
18661    lt_cv_dlopen_libs=
18662    ;;
18663
18664  cygwin*)
18665    lt_cv_dlopen=dlopen
18666    lt_cv_dlopen_libs=
18667    ;;
18668
18669  darwin*)
18670    # if libdl is installed we need to link against it
18671    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18672printf %s "checking for dlopen in -ldl... " >&6; }
18673if test ${ac_cv_lib_dl_dlopen+y}
18674then :
18675  printf %s "(cached) " >&6
18676else $as_nop
18677  ac_check_lib_save_LIBS=$LIBS
18678LIBS="-ldl  $LIBS"
18679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18680/* end confdefs.h.  */
18681
18682/* Override any GCC internal prototype to avoid an error.
18683   Use char because int might match the return type of a GCC
18684   builtin and then its argument prototype would still apply.  */
18685char dlopen ();
18686int
18687main (void)
18688{
18689return dlopen ();
18690  ;
18691  return 0;
18692}
18693_ACEOF
18694if ac_fn_c_try_link "$LINENO"
18695then :
18696  ac_cv_lib_dl_dlopen=yes
18697else $as_nop
18698  ac_cv_lib_dl_dlopen=no
18699fi
18700rm -f core conftest.err conftest.$ac_objext conftest.beam \
18701    conftest$ac_exeext conftest.$ac_ext
18702LIBS=$ac_check_lib_save_LIBS
18703fi
18704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18705printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18706if test "x$ac_cv_lib_dl_dlopen" = xyes
18707then :
18708  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18709else $as_nop
18710
18711    lt_cv_dlopen=dyld
18712    lt_cv_dlopen_libs=
18713    lt_cv_dlopen_self=yes
18714
18715fi
18716
18717    ;;
18718
18719  tpf*)
18720    # Don't try to run any link tests for TPF.  We know it's impossible
18721    # because TPF is a cross-compiler, and we know how we open DSOs.
18722    lt_cv_dlopen=dlopen
18723    lt_cv_dlopen_libs=
18724    lt_cv_dlopen_self=no
18725    ;;
18726
18727  *)
18728    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18729if test "x$ac_cv_func_shl_load" = xyes
18730then :
18731  lt_cv_dlopen=shl_load
18732else $as_nop
18733  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18734printf %s "checking for shl_load in -ldld... " >&6; }
18735if test ${ac_cv_lib_dld_shl_load+y}
18736then :
18737  printf %s "(cached) " >&6
18738else $as_nop
18739  ac_check_lib_save_LIBS=$LIBS
18740LIBS="-ldld  $LIBS"
18741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18742/* end confdefs.h.  */
18743
18744/* Override any GCC internal prototype to avoid an error.
18745   Use char because int might match the return type of a GCC
18746   builtin and then its argument prototype would still apply.  */
18747char shl_load ();
18748int
18749main (void)
18750{
18751return shl_load ();
18752  ;
18753  return 0;
18754}
18755_ACEOF
18756if ac_fn_c_try_link "$LINENO"
18757then :
18758  ac_cv_lib_dld_shl_load=yes
18759else $as_nop
18760  ac_cv_lib_dld_shl_load=no
18761fi
18762rm -f core conftest.err conftest.$ac_objext conftest.beam \
18763    conftest$ac_exeext conftest.$ac_ext
18764LIBS=$ac_check_lib_save_LIBS
18765fi
18766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18767printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
18768if test "x$ac_cv_lib_dld_shl_load" = xyes
18769then :
18770  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18771else $as_nop
18772  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18773if test "x$ac_cv_func_dlopen" = xyes
18774then :
18775  lt_cv_dlopen=dlopen
18776else $as_nop
18777  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18778printf %s "checking for dlopen in -ldl... " >&6; }
18779if test ${ac_cv_lib_dl_dlopen+y}
18780then :
18781  printf %s "(cached) " >&6
18782else $as_nop
18783  ac_check_lib_save_LIBS=$LIBS
18784LIBS="-ldl  $LIBS"
18785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18786/* end confdefs.h.  */
18787
18788/* Override any GCC internal prototype to avoid an error.
18789   Use char because int might match the return type of a GCC
18790   builtin and then its argument prototype would still apply.  */
18791char dlopen ();
18792int
18793main (void)
18794{
18795return dlopen ();
18796  ;
18797  return 0;
18798}
18799_ACEOF
18800if ac_fn_c_try_link "$LINENO"
18801then :
18802  ac_cv_lib_dl_dlopen=yes
18803else $as_nop
18804  ac_cv_lib_dl_dlopen=no
18805fi
18806rm -f core conftest.err conftest.$ac_objext conftest.beam \
18807    conftest$ac_exeext conftest.$ac_ext
18808LIBS=$ac_check_lib_save_LIBS
18809fi
18810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18811printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18812if test "x$ac_cv_lib_dl_dlopen" = xyes
18813then :
18814  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18815else $as_nop
18816  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18817printf %s "checking for dlopen in -lsvld... " >&6; }
18818if test ${ac_cv_lib_svld_dlopen+y}
18819then :
18820  printf %s "(cached) " >&6
18821else $as_nop
18822  ac_check_lib_save_LIBS=$LIBS
18823LIBS="-lsvld  $LIBS"
18824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18825/* end confdefs.h.  */
18826
18827/* Override any GCC internal prototype to avoid an error.
18828   Use char because int might match the return type of a GCC
18829   builtin and then its argument prototype would still apply.  */
18830char dlopen ();
18831int
18832main (void)
18833{
18834return dlopen ();
18835  ;
18836  return 0;
18837}
18838_ACEOF
18839if ac_fn_c_try_link "$LINENO"
18840then :
18841  ac_cv_lib_svld_dlopen=yes
18842else $as_nop
18843  ac_cv_lib_svld_dlopen=no
18844fi
18845rm -f core conftest.err conftest.$ac_objext conftest.beam \
18846    conftest$ac_exeext conftest.$ac_ext
18847LIBS=$ac_check_lib_save_LIBS
18848fi
18849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18850printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
18851if test "x$ac_cv_lib_svld_dlopen" = xyes
18852then :
18853  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18854else $as_nop
18855  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18856printf %s "checking for dld_link in -ldld... " >&6; }
18857if test ${ac_cv_lib_dld_dld_link+y}
18858then :
18859  printf %s "(cached) " >&6
18860else $as_nop
18861  ac_check_lib_save_LIBS=$LIBS
18862LIBS="-ldld  $LIBS"
18863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18864/* end confdefs.h.  */
18865
18866/* Override any GCC internal prototype to avoid an error.
18867   Use char because int might match the return type of a GCC
18868   builtin and then its argument prototype would still apply.  */
18869char dld_link ();
18870int
18871main (void)
18872{
18873return dld_link ();
18874  ;
18875  return 0;
18876}
18877_ACEOF
18878if ac_fn_c_try_link "$LINENO"
18879then :
18880  ac_cv_lib_dld_dld_link=yes
18881else $as_nop
18882  ac_cv_lib_dld_dld_link=no
18883fi
18884rm -f core conftest.err conftest.$ac_objext conftest.beam \
18885    conftest$ac_exeext conftest.$ac_ext
18886LIBS=$ac_check_lib_save_LIBS
18887fi
18888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18889printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
18890if test "x$ac_cv_lib_dld_dld_link" = xyes
18891then :
18892  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18893fi
18894
18895
18896fi
18897
18898
18899fi
18900
18901
18902fi
18903
18904
18905fi
18906
18907
18908fi
18909
18910    ;;
18911  esac
18912
18913  if test no = "$lt_cv_dlopen"; then
18914    enable_dlopen=no
18915  else
18916    enable_dlopen=yes
18917  fi
18918
18919  case $lt_cv_dlopen in
18920  dlopen)
18921    save_CPPFLAGS=$CPPFLAGS
18922    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18923
18924    save_LDFLAGS=$LDFLAGS
18925    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18926
18927    save_LIBS=$LIBS
18928    LIBS="$lt_cv_dlopen_libs $LIBS"
18929
18930    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18931printf %s "checking whether a program can dlopen itself... " >&6; }
18932if test ${lt_cv_dlopen_self+y}
18933then :
18934  printf %s "(cached) " >&6
18935else $as_nop
18936  	  if test yes = "$cross_compiling"; then :
18937  lt_cv_dlopen_self=cross
18938else
18939  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18940  lt_status=$lt_dlunknown
18941  cat > conftest.$ac_ext <<_LT_EOF
18942#line $LINENO "configure"
18943#include "confdefs.h"
18944
18945#if HAVE_DLFCN_H
18946#include <dlfcn.h>
18947#endif
18948
18949#include <stdio.h>
18950
18951#ifdef RTLD_GLOBAL
18952#  define LT_DLGLOBAL		RTLD_GLOBAL
18953#else
18954#  ifdef DL_GLOBAL
18955#    define LT_DLGLOBAL		DL_GLOBAL
18956#  else
18957#    define LT_DLGLOBAL		0
18958#  endif
18959#endif
18960
18961/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18962   find out it does not work in some platform. */
18963#ifndef LT_DLLAZY_OR_NOW
18964#  ifdef RTLD_LAZY
18965#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18966#  else
18967#    ifdef DL_LAZY
18968#      define LT_DLLAZY_OR_NOW		DL_LAZY
18969#    else
18970#      ifdef RTLD_NOW
18971#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18972#      else
18973#        ifdef DL_NOW
18974#          define LT_DLLAZY_OR_NOW	DL_NOW
18975#        else
18976#          define LT_DLLAZY_OR_NOW	0
18977#        endif
18978#      endif
18979#    endif
18980#  endif
18981#endif
18982
18983/* When -fvisibility=hidden is used, assume the code has been annotated
18984   correspondingly for the symbols needed.  */
18985#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18986int fnord () __attribute__((visibility("default")));
18987#endif
18988
18989int fnord () { return 42; }
18990int main ()
18991{
18992  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18993  int status = $lt_dlunknown;
18994
18995  if (self)
18996    {
18997      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18998      else
18999        {
19000	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19001          else puts (dlerror ());
19002	}
19003      /* dlclose (self); */
19004    }
19005  else
19006    puts (dlerror ());
19007
19008  return status;
19009}
19010_LT_EOF
19011  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19012  (eval $ac_link) 2>&5
19013  ac_status=$?
19014  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19015  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19016    (./conftest; exit; ) >&5 2>/dev/null
19017    lt_status=$?
19018    case x$lt_status in
19019      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19020      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19021      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19022    esac
19023  else :
19024    # compilation failed
19025    lt_cv_dlopen_self=no
19026  fi
19027fi
19028rm -fr conftest*
19029
19030
19031fi
19032{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19033printf "%s\n" "$lt_cv_dlopen_self" >&6; }
19034
19035    if test yes = "$lt_cv_dlopen_self"; then
19036      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19037      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19038printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19039if test ${lt_cv_dlopen_self_static+y}
19040then :
19041  printf %s "(cached) " >&6
19042else $as_nop
19043  	  if test yes = "$cross_compiling"; then :
19044  lt_cv_dlopen_self_static=cross
19045else
19046  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19047  lt_status=$lt_dlunknown
19048  cat > conftest.$ac_ext <<_LT_EOF
19049#line $LINENO "configure"
19050#include "confdefs.h"
19051
19052#if HAVE_DLFCN_H
19053#include <dlfcn.h>
19054#endif
19055
19056#include <stdio.h>
19057
19058#ifdef RTLD_GLOBAL
19059#  define LT_DLGLOBAL		RTLD_GLOBAL
19060#else
19061#  ifdef DL_GLOBAL
19062#    define LT_DLGLOBAL		DL_GLOBAL
19063#  else
19064#    define LT_DLGLOBAL		0
19065#  endif
19066#endif
19067
19068/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19069   find out it does not work in some platform. */
19070#ifndef LT_DLLAZY_OR_NOW
19071#  ifdef RTLD_LAZY
19072#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19073#  else
19074#    ifdef DL_LAZY
19075#      define LT_DLLAZY_OR_NOW		DL_LAZY
19076#    else
19077#      ifdef RTLD_NOW
19078#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19079#      else
19080#        ifdef DL_NOW
19081#          define LT_DLLAZY_OR_NOW	DL_NOW
19082#        else
19083#          define LT_DLLAZY_OR_NOW	0
19084#        endif
19085#      endif
19086#    endif
19087#  endif
19088#endif
19089
19090/* When -fvisibility=hidden is used, assume the code has been annotated
19091   correspondingly for the symbols needed.  */
19092#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19093int fnord () __attribute__((visibility("default")));
19094#endif
19095
19096int fnord () { return 42; }
19097int main ()
19098{
19099  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19100  int status = $lt_dlunknown;
19101
19102  if (self)
19103    {
19104      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19105      else
19106        {
19107	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19108          else puts (dlerror ());
19109	}
19110      /* dlclose (self); */
19111    }
19112  else
19113    puts (dlerror ());
19114
19115  return status;
19116}
19117_LT_EOF
19118  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19119  (eval $ac_link) 2>&5
19120  ac_status=$?
19121  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19122  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19123    (./conftest; exit; ) >&5 2>/dev/null
19124    lt_status=$?
19125    case x$lt_status in
19126      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19127      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19128      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19129    esac
19130  else :
19131    # compilation failed
19132    lt_cv_dlopen_self_static=no
19133  fi
19134fi
19135rm -fr conftest*
19136
19137
19138fi
19139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19140printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19141    fi
19142
19143    CPPFLAGS=$save_CPPFLAGS
19144    LDFLAGS=$save_LDFLAGS
19145    LIBS=$save_LIBS
19146    ;;
19147  esac
19148
19149  case $lt_cv_dlopen_self in
19150  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19151  *) enable_dlopen_self=unknown ;;
19152  esac
19153
19154  case $lt_cv_dlopen_self_static in
19155  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19156  *) enable_dlopen_self_static=unknown ;;
19157  esac
19158fi
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176striplib=
19177old_striplib=
19178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19179printf %s "checking whether stripping libraries is possible... " >&6; }
19180if test -z "$STRIP"; then
19181  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19182printf "%s\n" "no" >&6; }
19183else
19184  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19185    old_striplib="$STRIP --strip-debug"
19186    striplib="$STRIP --strip-unneeded"
19187    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19188printf "%s\n" "yes" >&6; }
19189  else
19190    case $host_os in
19191    darwin*)
19192      # FIXME - insert some real tests, host_os isn't really good enough
19193      striplib="$STRIP -x"
19194      old_striplib="$STRIP -S"
19195      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19196printf "%s\n" "yes" >&6; }
19197      ;;
19198    freebsd*)
19199      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
19200        old_striplib="$STRIP --strip-debug"
19201        striplib="$STRIP --strip-unneeded"
19202        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19203printf "%s\n" "yes" >&6; }
19204      else
19205        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19206printf "%s\n" "no" >&6; }
19207      fi
19208      ;;
19209    *)
19210      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19211printf "%s\n" "no" >&6; }
19212      ;;
19213    esac
19214  fi
19215fi
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228  # Report what library types will actually be built
19229  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19230printf %s "checking if libtool supports shared libraries... " >&6; }
19231  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19232printf "%s\n" "$can_build_shared" >&6; }
19233
19234  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19235printf %s "checking whether to build shared libraries... " >&6; }
19236  test no = "$can_build_shared" && enable_shared=no
19237
19238  # On AIX, shared libraries and static libraries use the same namespace, and
19239  # are all built from PIC.
19240  case $host_os in
19241  aix3*)
19242    test yes = "$enable_shared" && enable_static=no
19243    if test -n "$RANLIB"; then
19244      archive_cmds="$archive_cmds~\$RANLIB \$lib"
19245      postinstall_cmds='$RANLIB $lib'
19246    fi
19247    ;;
19248
19249  aix[4-9]*)
19250    if test ia64 != "$host_cpu"; then
19251      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19252      yes,aix,yes) ;;			# shared object as lib.so file only
19253      yes,svr4,*) ;;			# shared object as lib.so archive member only
19254      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
19255      esac
19256    fi
19257    ;;
19258  esac
19259  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19260printf "%s\n" "$enable_shared" >&6; }
19261
19262  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19263printf %s "checking whether to build static libraries... " >&6; }
19264  # Make sure either enable_shared or enable_static is yes.
19265  test yes = "$enable_shared" || enable_static=yes
19266  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19267printf "%s\n" "$enable_static" >&6; }
19268
19269
19270
19271
19272fi
19273ac_ext=c
19274ac_cpp='$CPP $CPPFLAGS'
19275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19277ac_compiler_gnu=$ac_cv_c_compiler_gnu
19278
19279CC=$lt_save_CC
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294
19295        ac_config_commands="$ac_config_commands libtool"
19296
19297
19298
19299
19300# Only expand once:
19301
19302
19303
19304
19305
19306# Define a configure option for an alternate module directory
19307
19308# Check whether --with-xorg-module-dir was given.
19309if test ${with_xorg_module_dir+y}
19310then :
19311  withval=$with_xorg_module_dir; moduledir="$withval"
19312else $as_nop
19313  moduledir="$libdir/xorg/modules"
19314fi
19315
19316
19317# Store the list of server defined optional extensions in REQUIRED_MODULES
19318
19319
19320	SAVE_CFLAGS="$CFLAGS"
19321	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19322	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19323/* end confdefs.h.  */
19324
19325#include "xorg-server.h"
19326#if !defined RANDR
19327#error RANDR not defined
19328#endif
19329
19330int
19331main (void)
19332{
19333
19334  ;
19335  return 0;
19336}
19337_ACEOF
19338if ac_fn_c_try_compile "$LINENO"
19339then :
19340  _EXT_CHECK=yes
19341else $as_nop
19342  _EXT_CHECK=no
19343fi
19344rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19345	CFLAGS="$SAVE_CFLAGS"
19346	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19347printf %s "checking if RANDR is defined... " >&6; }
19348	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19349printf "%s\n" "$_EXT_CHECK" >&6; }
19350	if test "$_EXT_CHECK" != no; then
19351		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19352	fi
19353
19354
19355
19356	SAVE_CFLAGS="$CFLAGS"
19357	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19358	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19359/* end confdefs.h.  */
19360
19361#include "xorg-server.h"
19362#if !defined RENDER
19363#error RENDER not defined
19364#endif
19365
19366int
19367main (void)
19368{
19369
19370  ;
19371  return 0;
19372}
19373_ACEOF
19374if ac_fn_c_try_compile "$LINENO"
19375then :
19376  _EXT_CHECK=yes
19377else $as_nop
19378  _EXT_CHECK=no
19379fi
19380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19381	CFLAGS="$SAVE_CFLAGS"
19382	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
19383printf %s "checking if RENDER is defined... " >&6; }
19384	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19385printf "%s\n" "$_EXT_CHECK" >&6; }
19386	if test "$_EXT_CHECK" != no; then
19387		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19388	fi
19389
19390
19391
19392	SAVE_CFLAGS="$CFLAGS"
19393	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19394	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19395/* end confdefs.h.  */
19396
19397#include "xorg-server.h"
19398#if !defined XV
19399#error XV not defined
19400#endif
19401
19402int
19403main (void)
19404{
19405
19406  ;
19407  return 0;
19408}
19409_ACEOF
19410if ac_fn_c_try_compile "$LINENO"
19411then :
19412  _EXT_CHECK=yes
19413else $as_nop
19414  _EXT_CHECK=no
19415fi
19416rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19417	CFLAGS="$SAVE_CFLAGS"
19418	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
19419printf %s "checking if XV is defined... " >&6; }
19420	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19421printf "%s\n" "$_EXT_CHECK" >&6; }
19422	if test "$_EXT_CHECK" != no; then
19423		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
19424	fi
19425
19426
19427
19428	SAVE_CFLAGS="$CFLAGS"
19429	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19430	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19431/* end confdefs.h.  */
19432
19433#include "xorg-server.h"
19434#if !defined DPMSExtension
19435#error DPMSExtension not defined
19436#endif
19437
19438int
19439main (void)
19440{
19441
19442  ;
19443  return 0;
19444}
19445_ACEOF
19446if ac_fn_c_try_compile "$LINENO"
19447then :
19448  _EXT_CHECK=yes
19449else $as_nop
19450  _EXT_CHECK=no
19451fi
19452rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19453	CFLAGS="$SAVE_CFLAGS"
19454	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
19455printf %s "checking if DPMSExtension is defined... " >&6; }
19456	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19457printf "%s\n" "$_EXT_CHECK" >&6; }
19458	if test "$_EXT_CHECK" != no; then
19459		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19460	fi
19461
19462
19463
19464	SAVE_CFLAGS="$CFLAGS"
19465	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19466	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19467/* end confdefs.h.  */
19468
19469#include "xorg-server.h"
19470#if !defined XFreeXDGA
19471#error XFreeXDGA not defined
19472#endif
19473
19474int
19475main (void)
19476{
19477
19478  ;
19479  return 0;
19480}
19481_ACEOF
19482if ac_fn_c_try_compile "$LINENO"
19483then :
19484  _EXT_CHECK=yes
19485else $as_nop
19486  _EXT_CHECK=no
19487fi
19488rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19489	CFLAGS="$SAVE_CFLAGS"
19490	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XFreeXDGA is defined" >&5
19491printf %s "checking if XFreeXDGA is defined... " >&6; }
19492	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19493printf "%s\n" "$_EXT_CHECK" >&6; }
19494	if test "$_EXT_CHECK" != no; then
19495		REQUIRED_MODULES="$REQUIRED_MODULES xf86dgaproto"
19496	fi
19497
19498
19499# Obtain compiler/linker options for the driver dependencies
19500
19501pkg_failed=no
19502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19503printf %s "checking for XORG... " >&6; }
19504
19505if test -n "$XORG_CFLAGS"; then
19506    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19507 elif test -n "$PKG_CONFIG"; then
19508    if test -n "$PKG_CONFIG" && \
19509    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19510  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
19511  ac_status=$?
19512  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19513  test $ac_status = 0; }; then
19514  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19515		      test "x$?" != "x0" && pkg_failed=yes
19516else
19517  pkg_failed=yes
19518fi
19519 else
19520    pkg_failed=untried
19521fi
19522if test -n "$XORG_LIBS"; then
19523    pkg_cv_XORG_LIBS="$XORG_LIBS"
19524 elif test -n "$PKG_CONFIG"; then
19525    if test -n "$PKG_CONFIG" && \
19526    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19527  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
19528  ac_status=$?
19529  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19530  test $ac_status = 0; }; then
19531  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19532		      test "x$?" != "x0" && pkg_failed=yes
19533else
19534  pkg_failed=yes
19535fi
19536 else
19537    pkg_failed=untried
19538fi
19539
19540
19541
19542if test $pkg_failed = yes; then
19543   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19544printf "%s\n" "no" >&6; }
19545
19546if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19547        _pkg_short_errors_supported=yes
19548else
19549        _pkg_short_errors_supported=no
19550fi
19551        if test $_pkg_short_errors_supported = yes; then
19552	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19553        else
19554	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19555        fi
19556	# Put the nasty error message in config.log where it belongs
19557	echo "$XORG_PKG_ERRORS" >&5
19558
19559	as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
19560
19561$XORG_PKG_ERRORS
19562
19563Consider adjusting the PKG_CONFIG_PATH environment variable if you
19564installed software in a non-standard prefix.
19565
19566Alternatively, you may set the environment variables XORG_CFLAGS
19567and XORG_LIBS to avoid the need to call pkg-config.
19568See the pkg-config man page for more details." "$LINENO" 5
19569elif test $pkg_failed = untried; then
19570     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19571printf "%s\n" "no" >&6; }
19572	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19573printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19574as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19575is in your PATH or set the PKG_CONFIG environment variable to the full
19576path to pkg-config.
19577
19578Alternatively, you may set the environment variables XORG_CFLAGS
19579and XORG_LIBS to avoid the need to call pkg-config.
19580See the pkg-config man page for more details.
19581
19582To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19583See \`config.log' for more details" "$LINENO" 5; }
19584else
19585	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19586	XORG_LIBS=$pkg_cv_XORG_LIBS
19587        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19588printf "%s\n" "yes" >&6; }
19589
19590fi
19591
19592pkg_failed=no
19593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
19594printf %s "checking for XEXT... " >&6; }
19595
19596if test -n "$XEXT_CFLAGS"; then
19597    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
19598 elif test -n "$PKG_CONFIG"; then
19599    if test -n "$PKG_CONFIG" && \
19600    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19601  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19602  ac_status=$?
19603  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19604  test $ac_status = 0; }; then
19605  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
19606		      test "x$?" != "x0" && pkg_failed=yes
19607else
19608  pkg_failed=yes
19609fi
19610 else
19611    pkg_failed=untried
19612fi
19613if test -n "$XEXT_LIBS"; then
19614    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
19615 elif test -n "$PKG_CONFIG"; then
19616    if test -n "$PKG_CONFIG" && \
19617    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19618  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19619  ac_status=$?
19620  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19621  test $ac_status = 0; }; then
19622  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
19623		      test "x$?" != "x0" && pkg_failed=yes
19624else
19625  pkg_failed=yes
19626fi
19627 else
19628    pkg_failed=untried
19629fi
19630
19631
19632
19633if test $pkg_failed = yes; then
19634   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19635printf "%s\n" "no" >&6; }
19636
19637if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19638        _pkg_short_errors_supported=yes
19639else
19640        _pkg_short_errors_supported=no
19641fi
19642        if test $_pkg_short_errors_supported = yes; then
19643	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19644        else
19645	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19646        fi
19647	# Put the nasty error message in config.log where it belongs
19648	echo "$XEXT_PKG_ERRORS" >&5
19649
19650	HAVE_XEXTPROTO_71="no"
19651elif test $pkg_failed = untried; then
19652     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19653printf "%s\n" "no" >&6; }
19654	HAVE_XEXTPROTO_71="no"
19655else
19656	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
19657	XEXT_LIBS=$pkg_cv_XEXT_LIBS
19658        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19659printf "%s\n" "yes" >&6; }
19660	HAVE_XEXTPROTO_71="yes";
19661printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
19662
19663fi
19664 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
19665  HAVE_XEXTPROTO_71_TRUE=
19666  HAVE_XEXTPROTO_71_FALSE='#'
19667else
19668  HAVE_XEXTPROTO_71_TRUE='#'
19669  HAVE_XEXTPROTO_71_FALSE=
19670fi
19671
19672
19673save_CFLAGS="$CFLAGS"
19674CFLAGS="$XORG_CFLAGS"
19675ac_fn_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\"
19676" "$ac_c_undeclared_builtin_options" "CFLAGS"
19677if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes
19678then :
19679
19680printf "%s\n" "#define HAVE_ISA 1" >>confdefs.h
19681
19682fi
19683CFLAGS="$save_CFLAGS"
19684
19685SAVE_CPPFLAGS="$CPPFLAGS"
19686CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
19687ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
19688" "$ac_c_undeclared_builtin_options" "CFLAGS"
19689if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes
19690then :
19691  XSERVER_LIBPCIACCESS=yes
19692else $as_nop
19693  XSERVER_LIBPCIACCESS=no
19694fi
19695CPPFLAGS="$SAVE_CPPFLAGS"
19696
19697# Check whether --enable-xaa was given.
19698if test ${enable_xaa+y}
19699then :
19700  enableval=$enable_xaa; XAA="$enableval"
19701else $as_nop
19702  XAA=auto
19703fi
19704
19705if test "x$XAA" != xno; then
19706        save_CFLAGS=$CFLAGS
19707        save_CPPFLAGS=$CPPFLAGS
19708        CFLAGS=$XORG_CFLAGS
19709        CPPFLAGS="$XORG_CFLAGS"
19710               for ac_header in xaa.h
19711do :
19712  ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
19713if test "x$ac_cv_header_xaa_h" = xyes
19714then :
19715  printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h
19716 XAA=yes
19717else $as_nop
19718  XAA=no
19719fi
19720
19721done
19722        CFLAGS=$save_CFLAGS
19723        CPPFLAGS=$save_CPPFLAGS
19724fi
19725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
19726printf %s "checking whether to include XAA support... " >&6; }
19727 if test "x$XAA" = xyes; then
19728  XAA_TRUE=
19729  XAA_FALSE='#'
19730else
19731  XAA_TRUE='#'
19732  XAA_FALSE=
19733fi
19734
19735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
19736printf "%s\n" "$XAA" >&6; }
19737
19738if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19739
19740pkg_failed=no
19741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19742printf %s "checking for PCIACCESS... " >&6; }
19743
19744if test -n "$PCIACCESS_CFLAGS"; then
19745    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19746 elif test -n "$PKG_CONFIG"; then
19747    if test -n "$PKG_CONFIG" && \
19748    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19749  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19750  ac_status=$?
19751  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19752  test $ac_status = 0; }; then
19753  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
19754		      test "x$?" != "x0" && pkg_failed=yes
19755else
19756  pkg_failed=yes
19757fi
19758 else
19759    pkg_failed=untried
19760fi
19761if test -n "$PCIACCESS_LIBS"; then
19762    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19763 elif test -n "$PKG_CONFIG"; then
19764    if test -n "$PKG_CONFIG" && \
19765    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19766  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19767  ac_status=$?
19768  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19769  test $ac_status = 0; }; then
19770  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
19771		      test "x$?" != "x0" && pkg_failed=yes
19772else
19773  pkg_failed=yes
19774fi
19775 else
19776    pkg_failed=untried
19777fi
19778
19779
19780
19781if test $pkg_failed = yes; then
19782   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19783printf "%s\n" "no" >&6; }
19784
19785if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19786        _pkg_short_errors_supported=yes
19787else
19788        _pkg_short_errors_supported=no
19789fi
19790        if test $_pkg_short_errors_supported = yes; then
19791	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19792        else
19793	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19794        fi
19795	# Put the nasty error message in config.log where it belongs
19796	echo "$PCIACCESS_PKG_ERRORS" >&5
19797
19798	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
19799
19800$PCIACCESS_PKG_ERRORS
19801
19802Consider adjusting the PKG_CONFIG_PATH environment variable if you
19803installed software in a non-standard prefix.
19804
19805Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19806and PCIACCESS_LIBS to avoid the need to call pkg-config.
19807See the pkg-config man page for more details." "$LINENO" 5
19808elif test $pkg_failed = untried; then
19809     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19810printf "%s\n" "no" >&6; }
19811	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19812printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19813as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19814is in your PATH or set the PKG_CONFIG environment variable to the full
19815path to pkg-config.
19816
19817Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19818and PCIACCESS_LIBS to avoid the need to call pkg-config.
19819See the pkg-config man page for more details.
19820
19821To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19822See \`config.log' for more details" "$LINENO" 5; }
19823else
19824	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19825	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19826        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19827printf "%s\n" "yes" >&6; }
19828
19829fi
19830    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
19831fi
19832 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19833  XSERVER_LIBPCIACCESS_TRUE=
19834  XSERVER_LIBPCIACCESS_FALSE='#'
19835else
19836  XSERVER_LIBPCIACCESS_TRUE='#'
19837  XSERVER_LIBPCIACCESS_FALSE=
19838fi
19839
19840
19841# Checks for libraries.
19842
19843
19844
19845DRIVER_NAME=trident
19846
19847
19848ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
19849
19850cat >confcache <<\_ACEOF
19851# This file is a shell script that caches the results of configure
19852# tests run on this system so they can be shared between configure
19853# scripts and configure runs, see configure's option --config-cache.
19854# It is not useful on other systems.  If it contains results you don't
19855# want to keep, you may remove or edit it.
19856#
19857# config.status only pays attention to the cache file if you give it
19858# the --recheck option to rerun configure.
19859#
19860# `ac_cv_env_foo' variables (set or unset) will be overridden when
19861# loading this file, other *unset* `ac_cv_foo' will be assigned the
19862# following values.
19863
19864_ACEOF
19865
19866# The following way of writing the cache mishandles newlines in values,
19867# but we know of no workaround that is simple, portable, and efficient.
19868# So, we kill variables containing newlines.
19869# Ultrix sh set writes to stderr and can't be redirected directly,
19870# and sets the high bit in the cache file unless we assign to the vars.
19871(
19872  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19873    eval ac_val=\$$ac_var
19874    case $ac_val in #(
19875    *${as_nl}*)
19876      case $ac_var in #(
19877      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19878printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19879      esac
19880      case $ac_var in #(
19881      _ | IFS | as_nl) ;; #(
19882      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19883      *) { eval $ac_var=; unset $ac_var;} ;;
19884      esac ;;
19885    esac
19886  done
19887
19888  (set) 2>&1 |
19889    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19890    *${as_nl}ac_space=\ *)
19891      # `set' does not quote correctly, so add quotes: double-quote
19892      # substitution turns \\\\ into \\, and sed turns \\ into \.
19893      sed -n \
19894	"s/'/'\\\\''/g;
19895	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19896      ;; #(
19897    *)
19898      # `set' quotes correctly as required by POSIX, so do not add quotes.
19899      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19900      ;;
19901    esac |
19902    sort
19903) |
19904  sed '
19905     /^ac_cv_env_/b end
19906     t clear
19907     :clear
19908     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19909     t end
19910     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19911     :end' >>confcache
19912if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19913  if test -w "$cache_file"; then
19914    if test "x$cache_file" != "x/dev/null"; then
19915      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19916printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19917      if test ! -f "$cache_file" || test -h "$cache_file"; then
19918	cat confcache >"$cache_file"
19919      else
19920        case $cache_file in #(
19921        */* | ?:*)
19922	  mv -f confcache "$cache_file"$$ &&
19923	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19924        *)
19925	  mv -f confcache "$cache_file" ;;
19926	esac
19927      fi
19928    fi
19929  else
19930    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19931printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19932  fi
19933fi
19934rm -f confcache
19935
19936test "x$prefix" = xNONE && prefix=$ac_default_prefix
19937# Let make expand exec_prefix.
19938test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19939
19940DEFS=-DHAVE_CONFIG_H
19941
19942ac_libobjs=
19943ac_ltlibobjs=
19944U=
19945for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19946  # 1. Remove the extension, and $U if already installed.
19947  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19948  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19949  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19950  #    will be set to the directory where LIBOBJS objects are built.
19951  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19952  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19953done
19954LIBOBJS=$ac_libobjs
19955
19956LTLIBOBJS=$ac_ltlibobjs
19957
19958
19959{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19960printf %s "checking that generated files are newer than configure... " >&6; }
19961   if test -n "$am_sleep_pid"; then
19962     # Hide warnings about reused PIDs.
19963     wait $am_sleep_pid 2>/dev/null
19964   fi
19965   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19966printf "%s\n" "done" >&6; }
19967 if test -n "$EXEEXT"; then
19968  am__EXEEXT_TRUE=
19969  am__EXEEXT_FALSE='#'
19970else
19971  am__EXEEXT_TRUE='#'
19972  am__EXEEXT_FALSE=
19973fi
19974
19975if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19976  as_fn_error $? "conditional \"AMDEP\" was never defined.
19977Usually this means the macro was only invoked conditionally." "$LINENO" 5
19978fi
19979if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19980  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19981Usually this means the macro was only invoked conditionally." "$LINENO" 5
19982fi
19983if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
19984  as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
19985Usually this means the macro was only invoked conditionally." "$LINENO" 5
19986fi
19987if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19988  as_fn_error $? "conditional \"XAA\" was never defined.
19989Usually this means the macro was only invoked conditionally." "$LINENO" 5
19990fi
19991if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19992  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19993Usually this means the macro was only invoked conditionally." "$LINENO" 5
19994fi
19995
19996: "${CONFIG_STATUS=./config.status}"
19997ac_write_fail=0
19998ac_clean_files_save=$ac_clean_files
19999ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20001printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20002as_write_fail=0
20003cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20004#! $SHELL
20005# Generated by $as_me.
20006# Run this file to recreate the current configuration.
20007# Compiler output produced by configure, useful for debugging
20008# configure, is in config.log if it exists.
20009
20010debug=false
20011ac_cs_recheck=false
20012ac_cs_silent=false
20013
20014SHELL=\${CONFIG_SHELL-$SHELL}
20015export SHELL
20016_ASEOF
20017cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20018## -------------------- ##
20019## M4sh Initialization. ##
20020## -------------------- ##
20021
20022# Be more Bourne compatible
20023DUALCASE=1; export DUALCASE # for MKS sh
20024as_nop=:
20025if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20026then :
20027  emulate sh
20028  NULLCMD=:
20029  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20030  # is contrary to our usage.  Disable this feature.
20031  alias -g '${1+"$@"}'='"$@"'
20032  setopt NO_GLOB_SUBST
20033else $as_nop
20034  case `(set -o) 2>/dev/null` in #(
20035  *posix*) :
20036    set -o posix ;; #(
20037  *) :
20038     ;;
20039esac
20040fi
20041
20042
20043
20044# Reset variables that may have inherited troublesome values from
20045# the environment.
20046
20047# IFS needs to be set, to space, tab, and newline, in precisely that order.
20048# (If _AS_PATH_WALK were called with IFS unset, it would have the
20049# side effect of setting IFS to empty, thus disabling word splitting.)
20050# Quoting is to prevent editors from complaining about space-tab.
20051as_nl='
20052'
20053export as_nl
20054IFS=" ""	$as_nl"
20055
20056PS1='$ '
20057PS2='> '
20058PS4='+ '
20059
20060# Ensure predictable behavior from utilities with locale-dependent output.
20061LC_ALL=C
20062export LC_ALL
20063LANGUAGE=C
20064export LANGUAGE
20065
20066# We cannot yet rely on "unset" to work, but we need these variables
20067# to be unset--not just set to an empty or harmless value--now, to
20068# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20069# also avoids known problems related to "unset" and subshell syntax
20070# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20071for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20072do eval test \${$as_var+y} \
20073  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20074done
20075
20076# Ensure that fds 0, 1, and 2 are open.
20077if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20078if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20079if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20080
20081# The user is always right.
20082if ${PATH_SEPARATOR+false} :; then
20083  PATH_SEPARATOR=:
20084  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20085    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20086      PATH_SEPARATOR=';'
20087  }
20088fi
20089
20090
20091# Find who we are.  Look in the path if we contain no directory separator.
20092as_myself=
20093case $0 in #((
20094  *[\\/]* ) as_myself=$0 ;;
20095  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20096for as_dir in $PATH
20097do
20098  IFS=$as_save_IFS
20099  case $as_dir in #(((
20100    '') as_dir=./ ;;
20101    */) ;;
20102    *) as_dir=$as_dir/ ;;
20103  esac
20104    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20105  done
20106IFS=$as_save_IFS
20107
20108     ;;
20109esac
20110# We did not find ourselves, most probably we were run as `sh COMMAND'
20111# in which case we are not to be found in the path.
20112if test "x$as_myself" = x; then
20113  as_myself=$0
20114fi
20115if test ! -f "$as_myself"; then
20116  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20117  exit 1
20118fi
20119
20120
20121
20122# as_fn_error STATUS ERROR [LINENO LOG_FD]
20123# ----------------------------------------
20124# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20125# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20126# script with STATUS, using 1 if that was 0.
20127as_fn_error ()
20128{
20129  as_status=$1; test $as_status -eq 0 && as_status=1
20130  if test "$4"; then
20131    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20132    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20133  fi
20134  printf "%s\n" "$as_me: error: $2" >&2
20135  as_fn_exit $as_status
20136} # as_fn_error
20137
20138
20139
20140# as_fn_set_status STATUS
20141# -----------------------
20142# Set $? to STATUS, without forking.
20143as_fn_set_status ()
20144{
20145  return $1
20146} # as_fn_set_status
20147
20148# as_fn_exit STATUS
20149# -----------------
20150# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20151as_fn_exit ()
20152{
20153  set +e
20154  as_fn_set_status $1
20155  exit $1
20156} # as_fn_exit
20157
20158# as_fn_unset VAR
20159# ---------------
20160# Portably unset VAR.
20161as_fn_unset ()
20162{
20163  { eval $1=; unset $1;}
20164}
20165as_unset=as_fn_unset
20166
20167# as_fn_append VAR VALUE
20168# ----------------------
20169# Append the text in VALUE to the end of the definition contained in VAR. Take
20170# advantage of any shell optimizations that allow amortized linear growth over
20171# repeated appends, instead of the typical quadratic growth present in naive
20172# implementations.
20173if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20174then :
20175  eval 'as_fn_append ()
20176  {
20177    eval $1+=\$2
20178  }'
20179else $as_nop
20180  as_fn_append ()
20181  {
20182    eval $1=\$$1\$2
20183  }
20184fi # as_fn_append
20185
20186# as_fn_arith ARG...
20187# ------------------
20188# Perform arithmetic evaluation on the ARGs, and store the result in the
20189# global $as_val. Take advantage of shells that can avoid forks. The arguments
20190# must be portable across $(()) and expr.
20191if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20192then :
20193  eval 'as_fn_arith ()
20194  {
20195    as_val=$(( $* ))
20196  }'
20197else $as_nop
20198  as_fn_arith ()
20199  {
20200    as_val=`expr "$@" || test $? -eq 1`
20201  }
20202fi # as_fn_arith
20203
20204
20205if expr a : '\(a\)' >/dev/null 2>&1 &&
20206   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20207  as_expr=expr
20208else
20209  as_expr=false
20210fi
20211
20212if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20213  as_basename=basename
20214else
20215  as_basename=false
20216fi
20217
20218if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20219  as_dirname=dirname
20220else
20221  as_dirname=false
20222fi
20223
20224as_me=`$as_basename -- "$0" ||
20225$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20226	 X"$0" : 'X\(//\)$' \| \
20227	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20228printf "%s\n" X/"$0" |
20229    sed '/^.*\/\([^/][^/]*\)\/*$/{
20230	    s//\1/
20231	    q
20232	  }
20233	  /^X\/\(\/\/\)$/{
20234	    s//\1/
20235	    q
20236	  }
20237	  /^X\/\(\/\).*/{
20238	    s//\1/
20239	    q
20240	  }
20241	  s/.*/./; q'`
20242
20243# Avoid depending upon Character Ranges.
20244as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20245as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20246as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20247as_cr_digits='0123456789'
20248as_cr_alnum=$as_cr_Letters$as_cr_digits
20249
20250
20251# Determine whether it's possible to make 'echo' print without a newline.
20252# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20253# for compatibility with existing Makefiles.
20254ECHO_C= ECHO_N= ECHO_T=
20255case `echo -n x` in #(((((
20256-n*)
20257  case `echo 'xy\c'` in
20258  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20259  xy)  ECHO_C='\c';;
20260  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20261       ECHO_T='	';;
20262  esac;;
20263*)
20264  ECHO_N='-n';;
20265esac
20266
20267# For backward compatibility with old third-party macros, we provide
20268# the shell variables $as_echo and $as_echo_n.  New code should use
20269# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20270as_echo='printf %s\n'
20271as_echo_n='printf %s'
20272
20273rm -f conf$$ conf$$.exe conf$$.file
20274if test -d conf$$.dir; then
20275  rm -f conf$$.dir/conf$$.file
20276else
20277  rm -f conf$$.dir
20278  mkdir conf$$.dir 2>/dev/null
20279fi
20280if (echo >conf$$.file) 2>/dev/null; then
20281  if ln -s conf$$.file conf$$ 2>/dev/null; then
20282    as_ln_s='ln -s'
20283    # ... but there are two gotchas:
20284    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20285    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20286    # In both cases, we have to default to `cp -pR'.
20287    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20288      as_ln_s='cp -pR'
20289  elif ln conf$$.file conf$$ 2>/dev/null; then
20290    as_ln_s=ln
20291  else
20292    as_ln_s='cp -pR'
20293  fi
20294else
20295  as_ln_s='cp -pR'
20296fi
20297rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20298rmdir conf$$.dir 2>/dev/null
20299
20300
20301# as_fn_mkdir_p
20302# -------------
20303# Create "$as_dir" as a directory, including parents if necessary.
20304as_fn_mkdir_p ()
20305{
20306
20307  case $as_dir in #(
20308  -*) as_dir=./$as_dir;;
20309  esac
20310  test -d "$as_dir" || eval $as_mkdir_p || {
20311    as_dirs=
20312    while :; do
20313      case $as_dir in #(
20314      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20315      *) as_qdir=$as_dir;;
20316      esac
20317      as_dirs="'$as_qdir' $as_dirs"
20318      as_dir=`$as_dirname -- "$as_dir" ||
20319$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20320	 X"$as_dir" : 'X\(//\)[^/]' \| \
20321	 X"$as_dir" : 'X\(//\)$' \| \
20322	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20323printf "%s\n" X"$as_dir" |
20324    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20325	    s//\1/
20326	    q
20327	  }
20328	  /^X\(\/\/\)[^/].*/{
20329	    s//\1/
20330	    q
20331	  }
20332	  /^X\(\/\/\)$/{
20333	    s//\1/
20334	    q
20335	  }
20336	  /^X\(\/\).*/{
20337	    s//\1/
20338	    q
20339	  }
20340	  s/.*/./; q'`
20341      test -d "$as_dir" && break
20342    done
20343    test -z "$as_dirs" || eval "mkdir $as_dirs"
20344  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20345
20346
20347} # as_fn_mkdir_p
20348if mkdir -p . 2>/dev/null; then
20349  as_mkdir_p='mkdir -p "$as_dir"'
20350else
20351  test -d ./-p && rmdir ./-p
20352  as_mkdir_p=false
20353fi
20354
20355
20356# as_fn_executable_p FILE
20357# -----------------------
20358# Test if FILE is an executable regular file.
20359as_fn_executable_p ()
20360{
20361  test -f "$1" && test -x "$1"
20362} # as_fn_executable_p
20363as_test_x='test -x'
20364as_executable_p=as_fn_executable_p
20365
20366# Sed expression to map a string onto a valid CPP name.
20367as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20368
20369# Sed expression to map a string onto a valid variable name.
20370as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20371
20372
20373exec 6>&1
20374## ----------------------------------- ##
20375## Main body of $CONFIG_STATUS script. ##
20376## ----------------------------------- ##
20377_ASEOF
20378test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20379
20380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20381# Save the log message, to keep $0 and so on meaningful, and to
20382# report actual input values of CONFIG_FILES etc. instead of their
20383# values after options handling.
20384ac_log="
20385This file was extended by xf86-video-trident $as_me 1.4.0, which was
20386generated by GNU Autoconf 2.71.  Invocation command line was
20387
20388  CONFIG_FILES    = $CONFIG_FILES
20389  CONFIG_HEADERS  = $CONFIG_HEADERS
20390  CONFIG_LINKS    = $CONFIG_LINKS
20391  CONFIG_COMMANDS = $CONFIG_COMMANDS
20392  $ $0 $@
20393
20394on `(hostname || uname -n) 2>/dev/null | sed 1q`
20395"
20396
20397_ACEOF
20398
20399case $ac_config_files in *"
20400"*) set x $ac_config_files; shift; ac_config_files=$*;;
20401esac
20402
20403case $ac_config_headers in *"
20404"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20405esac
20406
20407
20408cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20409# Files that config.status was made for.
20410config_files="$ac_config_files"
20411config_headers="$ac_config_headers"
20412config_commands="$ac_config_commands"
20413
20414_ACEOF
20415
20416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20417ac_cs_usage="\
20418\`$as_me' instantiates files and other configuration actions
20419from templates according to the current configuration.  Unless the files
20420and actions are specified as TAGs, all are instantiated by default.
20421
20422Usage: $0 [OPTION]... [TAG]...
20423
20424  -h, --help       print this help, then exit
20425  -V, --version    print version number and configuration settings, then exit
20426      --config     print configuration, then exit
20427  -q, --quiet, --silent
20428                   do not print progress messages
20429  -d, --debug      don't remove temporary files
20430      --recheck    update $as_me by reconfiguring in the same conditions
20431      --file=FILE[:TEMPLATE]
20432                   instantiate the configuration file FILE
20433      --header=FILE[:TEMPLATE]
20434                   instantiate the configuration header FILE
20435
20436Configuration files:
20437$config_files
20438
20439Configuration headers:
20440$config_headers
20441
20442Configuration commands:
20443$config_commands
20444
20445Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-trident/-/issues>."
20446
20447_ACEOF
20448ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20449ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20450cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20451ac_cs_config='$ac_cs_config_escaped'
20452ac_cs_version="\\
20453xf86-video-trident config.status 1.4.0
20454configured by $0, generated by GNU Autoconf 2.71,
20455  with options \\"\$ac_cs_config\\"
20456
20457Copyright (C) 2021 Free Software Foundation, Inc.
20458This config.status script is free software; the Free Software Foundation
20459gives unlimited permission to copy, distribute and modify it."
20460
20461ac_pwd='$ac_pwd'
20462srcdir='$srcdir'
20463INSTALL='$INSTALL'
20464MKDIR_P='$MKDIR_P'
20465AWK='$AWK'
20466test -n "\$AWK" || AWK=awk
20467_ACEOF
20468
20469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20470# The default lists apply if the user does not specify any file.
20471ac_need_defaults=:
20472while test $# != 0
20473do
20474  case $1 in
20475  --*=?*)
20476    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20477    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20478    ac_shift=:
20479    ;;
20480  --*=)
20481    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20482    ac_optarg=
20483    ac_shift=:
20484    ;;
20485  *)
20486    ac_option=$1
20487    ac_optarg=$2
20488    ac_shift=shift
20489    ;;
20490  esac
20491
20492  case $ac_option in
20493  # Handling of the options.
20494  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20495    ac_cs_recheck=: ;;
20496  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20497    printf "%s\n" "$ac_cs_version"; exit ;;
20498  --config | --confi | --conf | --con | --co | --c )
20499    printf "%s\n" "$ac_cs_config"; exit ;;
20500  --debug | --debu | --deb | --de | --d | -d )
20501    debug=: ;;
20502  --file | --fil | --fi | --f )
20503    $ac_shift
20504    case $ac_optarg in
20505    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20506    '') as_fn_error $? "missing file argument" ;;
20507    esac
20508    as_fn_append CONFIG_FILES " '$ac_optarg'"
20509    ac_need_defaults=false;;
20510  --header | --heade | --head | --hea )
20511    $ac_shift
20512    case $ac_optarg in
20513    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20514    esac
20515    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20516    ac_need_defaults=false;;
20517  --he | --h)
20518    # Conflict between --help and --header
20519    as_fn_error $? "ambiguous option: \`$1'
20520Try \`$0 --help' for more information.";;
20521  --help | --hel | -h )
20522    printf "%s\n" "$ac_cs_usage"; exit ;;
20523  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20524  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20525    ac_cs_silent=: ;;
20526
20527  # This is an error.
20528  -*) as_fn_error $? "unrecognized option: \`$1'
20529Try \`$0 --help' for more information." ;;
20530
20531  *) as_fn_append ac_config_targets " $1"
20532     ac_need_defaults=false ;;
20533
20534  esac
20535  shift
20536done
20537
20538ac_configure_extra_args=
20539
20540if $ac_cs_silent; then
20541  exec 6>/dev/null
20542  ac_configure_extra_args="$ac_configure_extra_args --silent"
20543fi
20544
20545_ACEOF
20546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20547if \$ac_cs_recheck; then
20548  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20549  shift
20550  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20551  CONFIG_SHELL='$SHELL'
20552  export CONFIG_SHELL
20553  exec "\$@"
20554fi
20555
20556_ACEOF
20557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20558exec 5>>config.log
20559{
20560  echo
20561  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20562## Running $as_me. ##
20563_ASBOX
20564  printf "%s\n" "$ac_log"
20565} >&5
20566
20567_ACEOF
20568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20569#
20570# INIT-COMMANDS
20571#
20572AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20573
20574
20575# The HP-UX ksh and POSIX shell print the target directory to stdout
20576# if CDPATH is set.
20577(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20578
20579sed_quote_subst='$sed_quote_subst'
20580double_quote_subst='$double_quote_subst'
20581delay_variable_subst='$delay_variable_subst'
20582enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20583macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20584macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20585enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20586pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20587enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20588shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20589SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20590ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20591PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20592host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20593host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20594host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20595build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20596build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20597build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20598SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20599Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20600GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20601EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20602FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20603LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20604NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20605LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20606max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20607ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20608exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20609lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20610lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20611lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20612lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20613lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20614reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20615reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20616FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20617OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20618deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20619file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20620file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20621want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20622DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20623sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20624AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20625lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20626AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20627archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20628STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20629RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20630old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20631old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20632old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20633lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20634CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20635CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20636compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20637GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20638lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20639lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20640lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20641lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20642lt_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"`'
20643lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20644nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20645lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20646lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20647objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20648MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20649lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20650lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20651lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20652lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20653lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20654need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20655MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20656DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20657NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20658LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20659OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20660OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20661libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20662shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20663extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20664archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20665enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20666export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20667whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20668compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20669old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20670old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20671archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20672archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20673module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20674module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20675with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20676allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20677no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20678hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20679hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20680hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20681hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20682hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20683hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20684hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20685inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20686link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20687always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20688export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20689exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20690include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20691prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20692postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20693file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20694variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20695need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20696need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20697version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20698runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20699shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20700shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20701libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20702library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20703soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20704install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20705postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20706postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20707finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20708finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20709hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20710sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20711configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20712configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20713hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20714enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20715enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20716enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20717old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20718striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20719
20720LTCC='$LTCC'
20721LTCFLAGS='$LTCFLAGS'
20722compiler='$compiler_DEFAULT'
20723
20724# A function that is used when there is no print builtin or printf.
20725func_fallback_echo ()
20726{
20727  eval 'cat <<_LTECHO_EOF
20728\$1
20729_LTECHO_EOF'
20730}
20731
20732# Quote evaled strings.
20733for var in SHELL \
20734ECHO \
20735PATH_SEPARATOR \
20736SED \
20737GREP \
20738EGREP \
20739FGREP \
20740LD \
20741NM \
20742LN_S \
20743lt_SP2NL \
20744lt_NL2SP \
20745reload_flag \
20746FILECMD \
20747OBJDUMP \
20748deplibs_check_method \
20749file_magic_cmd \
20750file_magic_glob \
20751want_nocaseglob \
20752DLLTOOL \
20753sharedlib_from_linklib_cmd \
20754AR \
20755archiver_list_spec \
20756STRIP \
20757RANLIB \
20758CC \
20759CFLAGS \
20760compiler \
20761lt_cv_sys_global_symbol_pipe \
20762lt_cv_sys_global_symbol_to_cdecl \
20763lt_cv_sys_global_symbol_to_import \
20764lt_cv_sys_global_symbol_to_c_name_address \
20765lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20766lt_cv_nm_interface \
20767nm_file_list_spec \
20768lt_cv_truncate_bin \
20769lt_prog_compiler_no_builtin_flag \
20770lt_prog_compiler_pic \
20771lt_prog_compiler_wl \
20772lt_prog_compiler_static \
20773lt_cv_prog_compiler_c_o \
20774need_locks \
20775MANIFEST_TOOL \
20776DSYMUTIL \
20777NMEDIT \
20778LIPO \
20779OTOOL \
20780OTOOL64 \
20781shrext_cmds \
20782export_dynamic_flag_spec \
20783whole_archive_flag_spec \
20784compiler_needs_object \
20785with_gnu_ld \
20786allow_undefined_flag \
20787no_undefined_flag \
20788hardcode_libdir_flag_spec \
20789hardcode_libdir_separator \
20790exclude_expsyms \
20791include_expsyms \
20792file_list_spec \
20793variables_saved_for_relink \
20794libname_spec \
20795library_names_spec \
20796soname_spec \
20797install_override_mode \
20798finish_eval \
20799old_striplib \
20800striplib; do
20801    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20802    *[\\\\\\\`\\"\\\$]*)
20803      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20804      ;;
20805    *)
20806      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20807      ;;
20808    esac
20809done
20810
20811# Double-quote double-evaled strings.
20812for var in reload_cmds \
20813old_postinstall_cmds \
20814old_postuninstall_cmds \
20815old_archive_cmds \
20816extract_expsyms_cmds \
20817old_archive_from_new_cmds \
20818old_archive_from_expsyms_cmds \
20819archive_cmds \
20820archive_expsym_cmds \
20821module_cmds \
20822module_expsym_cmds \
20823export_symbols_cmds \
20824prelink_cmds \
20825postlink_cmds \
20826postinstall_cmds \
20827postuninstall_cmds \
20828finish_cmds \
20829sys_lib_search_path_spec \
20830configure_time_dlsearch_path \
20831configure_time_lt_sys_library_path; do
20832    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20833    *[\\\\\\\`\\"\\\$]*)
20834      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20835      ;;
20836    *)
20837      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20838      ;;
20839    esac
20840done
20841
20842ac_aux_dir='$ac_aux_dir'
20843
20844# See if we are running on zsh, and set the options that allow our
20845# commands through without removal of \ escapes INIT.
20846if test -n "\${ZSH_VERSION+set}"; then
20847   setopt NO_GLOB_SUBST
20848fi
20849
20850
20851    PACKAGE='$PACKAGE'
20852    VERSION='$VERSION'
20853    RM='$RM'
20854    ofile='$ofile'
20855
20856
20857
20858
20859_ACEOF
20860
20861cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20862
20863# Handling of arguments.
20864for ac_config_target in $ac_config_targets
20865do
20866  case $ac_config_target in
20867    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20868    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20869    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20870    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20871    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20872    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20873
20874  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20875  esac
20876done
20877
20878
20879# If the user did not use the arguments to specify the items to instantiate,
20880# then the envvar interface is used.  Set only those that are not.
20881# We use the long form for the default assignment because of an extremely
20882# bizarre bug on SunOS 4.1.3.
20883if $ac_need_defaults; then
20884  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20885  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20886  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20887fi
20888
20889# Have a temporary directory for convenience.  Make it in the build tree
20890# simply because there is no reason against having it here, and in addition,
20891# creating and moving files from /tmp can sometimes cause problems.
20892# Hook for its removal unless debugging.
20893# Note that there is a small window in which the directory will not be cleaned:
20894# after its creation but before its name has been assigned to `$tmp'.
20895$debug ||
20896{
20897  tmp= ac_tmp=
20898  trap 'exit_status=$?
20899  : "${ac_tmp:=$tmp}"
20900  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20901' 0
20902  trap 'as_fn_exit 1' 1 2 13 15
20903}
20904# Create a (secure) tmp directory for tmp files.
20905
20906{
20907  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20908  test -d "$tmp"
20909}  ||
20910{
20911  tmp=./conf$$-$RANDOM
20912  (umask 077 && mkdir "$tmp")
20913} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20914ac_tmp=$tmp
20915
20916# Set up the scripts for CONFIG_FILES section.
20917# No need to generate them if there are no CONFIG_FILES.
20918# This happens for instance with `./config.status config.h'.
20919if test -n "$CONFIG_FILES"; then
20920
20921
20922ac_cr=`echo X | tr X '\015'`
20923# On cygwin, bash can eat \r inside `` if the user requested igncr.
20924# But we know of no other shell where ac_cr would be empty at this
20925# point, so we can use a bashism as a fallback.
20926if test "x$ac_cr" = x; then
20927  eval ac_cr=\$\'\\r\'
20928fi
20929ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20930if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20931  ac_cs_awk_cr='\\r'
20932else
20933  ac_cs_awk_cr=$ac_cr
20934fi
20935
20936echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20937_ACEOF
20938
20939
20940{
20941  echo "cat >conf$$subs.awk <<_ACEOF" &&
20942  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20943  echo "_ACEOF"
20944} >conf$$subs.sh ||
20945  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20946ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20947ac_delim='%!_!# '
20948for ac_last_try in false false false false false :; do
20949  . ./conf$$subs.sh ||
20950    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20951
20952  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20953  if test $ac_delim_n = $ac_delim_num; then
20954    break
20955  elif $ac_last_try; then
20956    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20957  else
20958    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20959  fi
20960done
20961rm -f conf$$subs.sh
20962
20963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20964cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20965_ACEOF
20966sed -n '
20967h
20968s/^/S["/; s/!.*/"]=/
20969p
20970g
20971s/^[^!]*!//
20972:repl
20973t repl
20974s/'"$ac_delim"'$//
20975t delim
20976:nl
20977h
20978s/\(.\{148\}\)..*/\1/
20979t more1
20980s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20981p
20982n
20983b repl
20984:more1
20985s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20986p
20987g
20988s/.\{148\}//
20989t nl
20990:delim
20991h
20992s/\(.\{148\}\)..*/\1/
20993t more2
20994s/["\\]/\\&/g; s/^/"/; s/$/"/
20995p
20996b
20997:more2
20998s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20999p
21000g
21001s/.\{148\}//
21002t delim
21003' <conf$$subs.awk | sed '
21004/^[^""]/{
21005  N
21006  s/\n//
21007}
21008' >>$CONFIG_STATUS || ac_write_fail=1
21009rm -f conf$$subs.awk
21010cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21011_ACAWK
21012cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21013  for (key in S) S_is_set[key] = 1
21014  FS = ""
21015
21016}
21017{
21018  line = $ 0
21019  nfields = split(line, field, "@")
21020  substed = 0
21021  len = length(field[1])
21022  for (i = 2; i < nfields; i++) {
21023    key = field[i]
21024    keylen = length(key)
21025    if (S_is_set[key]) {
21026      value = S[key]
21027      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21028      len += length(value) + length(field[++i])
21029      substed = 1
21030    } else
21031      len += 1 + keylen
21032  }
21033
21034  print line
21035}
21036
21037_ACAWK
21038_ACEOF
21039cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21040if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21041  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21042else
21043  cat
21044fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21045  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21046_ACEOF
21047
21048# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21049# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21050# trailing colons and then remove the whole line if VPATH becomes empty
21051# (actually we leave an empty line to preserve line numbers).
21052if test "x$srcdir" = x.; then
21053  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21054h
21055s///
21056s/^/:/
21057s/[	 ]*$/:/
21058s/:\$(srcdir):/:/g
21059s/:\${srcdir}:/:/g
21060s/:@srcdir@:/:/g
21061s/^:*//
21062s/:*$//
21063x
21064s/\(=[	 ]*\).*/\1/
21065G
21066s/\n//
21067s/^[^=]*=[	 ]*$//
21068}'
21069fi
21070
21071cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21072fi # test -n "$CONFIG_FILES"
21073
21074# Set up the scripts for CONFIG_HEADERS section.
21075# No need to generate them if there are no CONFIG_HEADERS.
21076# This happens for instance with `./config.status Makefile'.
21077if test -n "$CONFIG_HEADERS"; then
21078cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21079BEGIN {
21080_ACEOF
21081
21082# Transform confdefs.h into an awk script `defines.awk', embedded as
21083# here-document in config.status, that substitutes the proper values into
21084# config.h.in to produce config.h.
21085
21086# Create a delimiter string that does not exist in confdefs.h, to ease
21087# handling of long lines.
21088ac_delim='%!_!# '
21089for ac_last_try in false false :; do
21090  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21091  if test -z "$ac_tt"; then
21092    break
21093  elif $ac_last_try; then
21094    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21095  else
21096    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21097  fi
21098done
21099
21100# For the awk script, D is an array of macro values keyed by name,
21101# likewise P contains macro parameters if any.  Preserve backslash
21102# newline sequences.
21103
21104ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21105sed -n '
21106s/.\{148\}/&'"$ac_delim"'/g
21107t rset
21108:rset
21109s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21110t def
21111d
21112:def
21113s/\\$//
21114t bsnl
21115s/["\\]/\\&/g
21116s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21117D["\1"]=" \3"/p
21118s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21119d
21120:bsnl
21121s/["\\]/\\&/g
21122s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21123D["\1"]=" \3\\\\\\n"\\/p
21124t cont
21125s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21126t cont
21127d
21128:cont
21129n
21130s/.\{148\}/&'"$ac_delim"'/g
21131t clear
21132:clear
21133s/\\$//
21134t bsnlc
21135s/["\\]/\\&/g; s/^/"/; s/$/"/p
21136d
21137:bsnlc
21138s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21139b cont
21140' <confdefs.h | sed '
21141s/'"$ac_delim"'/"\\\
21142"/g' >>$CONFIG_STATUS || ac_write_fail=1
21143
21144cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21145  for (key in D) D_is_set[key] = 1
21146  FS = ""
21147}
21148/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21149  line = \$ 0
21150  split(line, arg, " ")
21151  if (arg[1] == "#") {
21152    defundef = arg[2]
21153    mac1 = arg[3]
21154  } else {
21155    defundef = substr(arg[1], 2)
21156    mac1 = arg[2]
21157  }
21158  split(mac1, mac2, "(") #)
21159  macro = mac2[1]
21160  prefix = substr(line, 1, index(line, defundef) - 1)
21161  if (D_is_set[macro]) {
21162    # Preserve the white space surrounding the "#".
21163    print prefix "define", macro P[macro] D[macro]
21164    next
21165  } else {
21166    # Replace #undef with comments.  This is necessary, for example,
21167    # in the case of _POSIX_SOURCE, which is predefined and required
21168    # on some systems where configure will not decide to define it.
21169    if (defundef == "undef") {
21170      print "/*", prefix defundef, macro, "*/"
21171      next
21172    }
21173  }
21174}
21175{ print }
21176_ACAWK
21177_ACEOF
21178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21179  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21180fi # test -n "$CONFIG_HEADERS"
21181
21182
21183eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21184shift
21185for ac_tag
21186do
21187  case $ac_tag in
21188  :[FHLC]) ac_mode=$ac_tag; continue;;
21189  esac
21190  case $ac_mode$ac_tag in
21191  :[FHL]*:*);;
21192  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21193  :[FH]-) ac_tag=-:-;;
21194  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21195  esac
21196  ac_save_IFS=$IFS
21197  IFS=:
21198  set x $ac_tag
21199  IFS=$ac_save_IFS
21200  shift
21201  ac_file=$1
21202  shift
21203
21204  case $ac_mode in
21205  :L) ac_source=$1;;
21206  :[FH])
21207    ac_file_inputs=
21208    for ac_f
21209    do
21210      case $ac_f in
21211      -) ac_f="$ac_tmp/stdin";;
21212      *) # Look for the file first in the build tree, then in the source tree
21213	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21214	 # because $ac_f cannot contain `:'.
21215	 test -f "$ac_f" ||
21216	   case $ac_f in
21217	   [\\/$]*) false;;
21218	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21219	   esac ||
21220	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21221      esac
21222      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21223      as_fn_append ac_file_inputs " '$ac_f'"
21224    done
21225
21226    # Let's still pretend it is `configure' which instantiates (i.e., don't
21227    # use $as_me), people would be surprised to read:
21228    #    /* config.h.  Generated by config.status.  */
21229    configure_input='Generated from '`
21230	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21231	`' by configure.'
21232    if test x"$ac_file" != x-; then
21233      configure_input="$ac_file.  $configure_input"
21234      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21235printf "%s\n" "$as_me: creating $ac_file" >&6;}
21236    fi
21237    # Neutralize special characters interpreted by sed in replacement strings.
21238    case $configure_input in #(
21239    *\&* | *\|* | *\\* )
21240       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21241       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21242    *) ac_sed_conf_input=$configure_input;;
21243    esac
21244
21245    case $ac_tag in
21246    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21247      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21248    esac
21249    ;;
21250  esac
21251
21252  ac_dir=`$as_dirname -- "$ac_file" ||
21253$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21254	 X"$ac_file" : 'X\(//\)[^/]' \| \
21255	 X"$ac_file" : 'X\(//\)$' \| \
21256	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21257printf "%s\n" X"$ac_file" |
21258    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21259	    s//\1/
21260	    q
21261	  }
21262	  /^X\(\/\/\)[^/].*/{
21263	    s//\1/
21264	    q
21265	  }
21266	  /^X\(\/\/\)$/{
21267	    s//\1/
21268	    q
21269	  }
21270	  /^X\(\/\).*/{
21271	    s//\1/
21272	    q
21273	  }
21274	  s/.*/./; q'`
21275  as_dir="$ac_dir"; as_fn_mkdir_p
21276  ac_builddir=.
21277
21278case "$ac_dir" in
21279.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21280*)
21281  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21282  # A ".." for each directory in $ac_dir_suffix.
21283  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21284  case $ac_top_builddir_sub in
21285  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21286  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21287  esac ;;
21288esac
21289ac_abs_top_builddir=$ac_pwd
21290ac_abs_builddir=$ac_pwd$ac_dir_suffix
21291# for backward compatibility:
21292ac_top_builddir=$ac_top_build_prefix
21293
21294case $srcdir in
21295  .)  # We are building in place.
21296    ac_srcdir=.
21297    ac_top_srcdir=$ac_top_builddir_sub
21298    ac_abs_top_srcdir=$ac_pwd ;;
21299  [\\/]* | ?:[\\/]* )  # Absolute name.
21300    ac_srcdir=$srcdir$ac_dir_suffix;
21301    ac_top_srcdir=$srcdir
21302    ac_abs_top_srcdir=$srcdir ;;
21303  *) # Relative name.
21304    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21305    ac_top_srcdir=$ac_top_build_prefix$srcdir
21306    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21307esac
21308ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21309
21310
21311  case $ac_mode in
21312  :F)
21313  #
21314  # CONFIG_FILE
21315  #
21316
21317  case $INSTALL in
21318  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21319  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21320  esac
21321  ac_MKDIR_P=$MKDIR_P
21322  case $MKDIR_P in
21323  [\\/$]* | ?:[\\/]* ) ;;
21324  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21325  esac
21326_ACEOF
21327
21328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21329# If the template does not know about datarootdir, expand it.
21330# FIXME: This hack should be removed a few years after 2.60.
21331ac_datarootdir_hack=; ac_datarootdir_seen=
21332ac_sed_dataroot='
21333/datarootdir/ {
21334  p
21335  q
21336}
21337/@datadir@/p
21338/@docdir@/p
21339/@infodir@/p
21340/@localedir@/p
21341/@mandir@/p'
21342case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21343*datarootdir*) ac_datarootdir_seen=yes;;
21344*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21345  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21346printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21347_ACEOF
21348cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21349  ac_datarootdir_hack='
21350  s&@datadir@&$datadir&g
21351  s&@docdir@&$docdir&g
21352  s&@infodir@&$infodir&g
21353  s&@localedir@&$localedir&g
21354  s&@mandir@&$mandir&g
21355  s&\\\${datarootdir}&$datarootdir&g' ;;
21356esac
21357_ACEOF
21358
21359# Neutralize VPATH when `$srcdir' = `.'.
21360# Shell code in configure.ac might set extrasub.
21361# FIXME: do we really want to maintain this feature?
21362cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21363ac_sed_extra="$ac_vpsub
21364$extrasub
21365_ACEOF
21366cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21367:t
21368/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21369s|@configure_input@|$ac_sed_conf_input|;t t
21370s&@top_builddir@&$ac_top_builddir_sub&;t t
21371s&@top_build_prefix@&$ac_top_build_prefix&;t t
21372s&@srcdir@&$ac_srcdir&;t t
21373s&@abs_srcdir@&$ac_abs_srcdir&;t t
21374s&@top_srcdir@&$ac_top_srcdir&;t t
21375s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21376s&@builddir@&$ac_builddir&;t t
21377s&@abs_builddir@&$ac_abs_builddir&;t t
21378s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21379s&@INSTALL@&$ac_INSTALL&;t t
21380s&@MKDIR_P@&$ac_MKDIR_P&;t t
21381$ac_datarootdir_hack
21382"
21383eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21384  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21385
21386test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21387  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21388  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21389      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21390  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21391which seems to be undefined.  Please make sure it is defined" >&5
21392printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21393which seems to be undefined.  Please make sure it is defined" >&2;}
21394
21395  rm -f "$ac_tmp/stdin"
21396  case $ac_file in
21397  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21398  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21399  esac \
21400  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21401 ;;
21402  :H)
21403  #
21404  # CONFIG_HEADER
21405  #
21406  if test x"$ac_file" != x-; then
21407    {
21408      printf "%s\n" "/* $configure_input  */" >&1 \
21409      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21410    } >"$ac_tmp/config.h" \
21411      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21412    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21413      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21414printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21415    else
21416      rm -f "$ac_file"
21417      mv "$ac_tmp/config.h" "$ac_file" \
21418	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21419    fi
21420  else
21421    printf "%s\n" "/* $configure_input  */" >&1 \
21422      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21423      || as_fn_error $? "could not create -" "$LINENO" 5
21424  fi
21425# Compute "$ac_file"'s index in $config_headers.
21426_am_arg="$ac_file"
21427_am_stamp_count=1
21428for _am_header in $config_headers :; do
21429  case $_am_header in
21430    $_am_arg | $_am_arg:* )
21431      break ;;
21432    * )
21433      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21434  esac
21435done
21436echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21437$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21438	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21439	 X"$_am_arg" : 'X\(//\)$' \| \
21440	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21441printf "%s\n" X"$_am_arg" |
21442    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21443	    s//\1/
21444	    q
21445	  }
21446	  /^X\(\/\/\)[^/].*/{
21447	    s//\1/
21448	    q
21449	  }
21450	  /^X\(\/\/\)$/{
21451	    s//\1/
21452	    q
21453	  }
21454	  /^X\(\/\).*/{
21455	    s//\1/
21456	    q
21457	  }
21458	  s/.*/./; q'`/stamp-h$_am_stamp_count
21459 ;;
21460
21461  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21462printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21463 ;;
21464  esac
21465
21466
21467  case $ac_file$ac_mode in
21468    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21469  # Older Autoconf quotes --file arguments for eval, but not when files
21470  # are listed without --file.  Let's play safe and only enable the eval
21471  # if we detect the quoting.
21472  # TODO: see whether this extra hack can be removed once we start
21473  # requiring Autoconf 2.70 or later.
21474  case $CONFIG_FILES in #(
21475  *\'*) :
21476    eval set x "$CONFIG_FILES" ;; #(
21477  *) :
21478    set x $CONFIG_FILES ;; #(
21479  *) :
21480     ;;
21481esac
21482  shift
21483  # Used to flag and report bootstrapping failures.
21484  am_rc=0
21485  for am_mf
21486  do
21487    # Strip MF so we end up with the name of the file.
21488    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21489    # Check whether this is an Automake generated Makefile which includes
21490    # dependency-tracking related rules and includes.
21491    # Grep'ing the whole file directly is not great: AIX grep has a line
21492    # limit of 2048, but all sed's we know have understand at least 4000.
21493    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21494      || continue
21495    am_dirpart=`$as_dirname -- "$am_mf" ||
21496$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21497	 X"$am_mf" : 'X\(//\)[^/]' \| \
21498	 X"$am_mf" : 'X\(//\)$' \| \
21499	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21500printf "%s\n" X"$am_mf" |
21501    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21502	    s//\1/
21503	    q
21504	  }
21505	  /^X\(\/\/\)[^/].*/{
21506	    s//\1/
21507	    q
21508	  }
21509	  /^X\(\/\/\)$/{
21510	    s//\1/
21511	    q
21512	  }
21513	  /^X\(\/\).*/{
21514	    s//\1/
21515	    q
21516	  }
21517	  s/.*/./; q'`
21518    am_filepart=`$as_basename -- "$am_mf" ||
21519$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21520	 X"$am_mf" : 'X\(//\)$' \| \
21521	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21522printf "%s\n" X/"$am_mf" |
21523    sed '/^.*\/\([^/][^/]*\)\/*$/{
21524	    s//\1/
21525	    q
21526	  }
21527	  /^X\/\(\/\/\)$/{
21528	    s//\1/
21529	    q
21530	  }
21531	  /^X\/\(\/\).*/{
21532	    s//\1/
21533	    q
21534	  }
21535	  s/.*/./; q'`
21536    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21537      && sed -e '/# am--include-marker/d' "$am_filepart" \
21538        | $MAKE -f - am--depfiles" >&5
21539   (cd "$am_dirpart" \
21540      && sed -e '/# am--include-marker/d' "$am_filepart" \
21541        | $MAKE -f - am--depfiles) >&5 2>&5
21542   ac_status=$?
21543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544   (exit $ac_status); } || am_rc=$?
21545  done
21546  if test $am_rc -ne 0; then
21547    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21548printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21549as_fn_error $? "Something went wrong bootstrapping makefile fragments
21550    for automatic dependency tracking.  If GNU make was not used, consider
21551    re-running the configure script with MAKE=\"gmake\" (or whatever is
21552    necessary).  You can also try re-running configure with the
21553    '--disable-dependency-tracking' option to at least be able to build
21554    the package (albeit without support for automatic dependency tracking).
21555See \`config.log' for more details" "$LINENO" 5; }
21556  fi
21557  { am_dirpart=; unset am_dirpart;}
21558  { am_filepart=; unset am_filepart;}
21559  { am_mf=; unset am_mf;}
21560  { am_rc=; unset am_rc;}
21561  rm -f conftest-deps.mk
21562}
21563 ;;
21564    "libtool":C)
21565
21566    # See if we are running on zsh, and set the options that allow our
21567    # commands through without removal of \ escapes.
21568    if test -n "${ZSH_VERSION+set}"; then
21569      setopt NO_GLOB_SUBST
21570    fi
21571
21572    cfgfile=${ofile}T
21573    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21574    $RM "$cfgfile"
21575
21576    cat <<_LT_EOF >> "$cfgfile"
21577#! $SHELL
21578# Generated automatically by $as_me ($PACKAGE) $VERSION
21579# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21580# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21581
21582# Provide generalized library-building support services.
21583# Written by Gordon Matzigkeit, 1996
21584
21585# Copyright (C) 2014 Free Software Foundation, Inc.
21586# This is free software; see the source for copying conditions.  There is NO
21587# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21588
21589# GNU Libtool is free software; you can redistribute it and/or modify
21590# it under the terms of the GNU General Public License as published by
21591# the Free Software Foundation; either version 2 of of the License, or
21592# (at your option) any later version.
21593#
21594# As a special exception to the GNU General Public License, if you
21595# distribute this file as part of a program or library that is built
21596# using GNU Libtool, you may include this file under the  same
21597# distribution terms that you use for the rest of that program.
21598#
21599# GNU Libtool is distributed in the hope that it will be useful, but
21600# WITHOUT ANY WARRANTY; without even the implied warranty of
21601# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21602# GNU General Public License for more details.
21603#
21604# You should have received a copy of the GNU General Public License
21605# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21606
21607
21608# The names of the tagged configurations supported by this script.
21609available_tags=''
21610
21611# Configured defaults for sys_lib_dlsearch_path munging.
21612: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21613
21614# ### BEGIN LIBTOOL CONFIG
21615
21616# Whether or not to build static libraries.
21617build_old_libs=$enable_static
21618
21619# Which release of libtool.m4 was used?
21620macro_version=$macro_version
21621macro_revision=$macro_revision
21622
21623# Whether or not to build shared libraries.
21624build_libtool_libs=$enable_shared
21625
21626# What type of objects to build.
21627pic_mode=$pic_mode
21628
21629# Whether or not to optimize for fast installation.
21630fast_install=$enable_fast_install
21631
21632# Shared archive member basename,for filename based shared library versioning on AIX.
21633shared_archive_member_spec=$shared_archive_member_spec
21634
21635# Shell to use when invoking shell scripts.
21636SHELL=$lt_SHELL
21637
21638# An echo program that protects backslashes.
21639ECHO=$lt_ECHO
21640
21641# The PATH separator for the build system.
21642PATH_SEPARATOR=$lt_PATH_SEPARATOR
21643
21644# The host system.
21645host_alias=$host_alias
21646host=$host
21647host_os=$host_os
21648
21649# The build system.
21650build_alias=$build_alias
21651build=$build
21652build_os=$build_os
21653
21654# A sed program that does not truncate output.
21655SED=$lt_SED
21656
21657# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21658Xsed="\$SED -e 1s/^X//"
21659
21660# A grep program that handles long lines.
21661GREP=$lt_GREP
21662
21663# An ERE matcher.
21664EGREP=$lt_EGREP
21665
21666# A literal string matcher.
21667FGREP=$lt_FGREP
21668
21669# A BSD- or MS-compatible name lister.
21670NM=$lt_NM
21671
21672# Whether we need soft or hard links.
21673LN_S=$lt_LN_S
21674
21675# What is the maximum length of a command?
21676max_cmd_len=$max_cmd_len
21677
21678# Object file suffix (normally "o").
21679objext=$ac_objext
21680
21681# Executable file suffix (normally "").
21682exeext=$exeext
21683
21684# whether the shell understands "unset".
21685lt_unset=$lt_unset
21686
21687# turn spaces into newlines.
21688SP2NL=$lt_lt_SP2NL
21689
21690# turn newlines into spaces.
21691NL2SP=$lt_lt_NL2SP
21692
21693# convert \$build file names to \$host format.
21694to_host_file_cmd=$lt_cv_to_host_file_cmd
21695
21696# convert \$build files to toolchain format.
21697to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21698
21699# A file(cmd) program that detects file types.
21700FILECMD=$lt_FILECMD
21701
21702# An object symbol dumper.
21703OBJDUMP=$lt_OBJDUMP
21704
21705# Method to check whether dependent libraries are shared objects.
21706deplibs_check_method=$lt_deplibs_check_method
21707
21708# Command to use when deplibs_check_method = "file_magic".
21709file_magic_cmd=$lt_file_magic_cmd
21710
21711# How to find potential files when deplibs_check_method = "file_magic".
21712file_magic_glob=$lt_file_magic_glob
21713
21714# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21715want_nocaseglob=$lt_want_nocaseglob
21716
21717# DLL creation program.
21718DLLTOOL=$lt_DLLTOOL
21719
21720# Command to associate shared and link libraries.
21721sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21722
21723# The archiver.
21724AR=$lt_AR
21725
21726# Flags to create an archive (by configure).
21727lt_ar_flags=$lt_ar_flags
21728
21729# Flags to create an archive.
21730AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21731
21732# How to feed a file listing to the archiver.
21733archiver_list_spec=$lt_archiver_list_spec
21734
21735# A symbol stripping program.
21736STRIP=$lt_STRIP
21737
21738# Commands used to install an old-style archive.
21739RANLIB=$lt_RANLIB
21740old_postinstall_cmds=$lt_old_postinstall_cmds
21741old_postuninstall_cmds=$lt_old_postuninstall_cmds
21742
21743# Whether to use a lock for old archive extraction.
21744lock_old_archive_extraction=$lock_old_archive_extraction
21745
21746# A C compiler.
21747LTCC=$lt_CC
21748
21749# LTCC compiler flags.
21750LTCFLAGS=$lt_CFLAGS
21751
21752# Take the output of nm and produce a listing of raw symbols and C names.
21753global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21754
21755# Transform the output of nm in a proper C declaration.
21756global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21757
21758# Transform the output of nm into a list of symbols to manually relocate.
21759global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21760
21761# Transform the output of nm in a C name address pair.
21762global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21763
21764# Transform the output of nm in a C name address pair when lib prefix is needed.
21765global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21766
21767# The name lister interface.
21768nm_interface=$lt_lt_cv_nm_interface
21769
21770# Specify filename containing input files for \$NM.
21771nm_file_list_spec=$lt_nm_file_list_spec
21772
21773# The root where to search for dependent libraries,and where our libraries should be installed.
21774lt_sysroot=$lt_sysroot
21775
21776# Command to truncate a binary pipe.
21777lt_truncate_bin=$lt_lt_cv_truncate_bin
21778
21779# The name of the directory that contains temporary libtool files.
21780objdir=$objdir
21781
21782# Used to examine libraries when file_magic_cmd begins with "file".
21783MAGIC_CMD=$MAGIC_CMD
21784
21785# Must we lock files when doing compilation?
21786need_locks=$lt_need_locks
21787
21788# Manifest tool.
21789MANIFEST_TOOL=$lt_MANIFEST_TOOL
21790
21791# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21792DSYMUTIL=$lt_DSYMUTIL
21793
21794# Tool to change global to local symbols on Mac OS X.
21795NMEDIT=$lt_NMEDIT
21796
21797# Tool to manipulate fat objects and archives on Mac OS X.
21798LIPO=$lt_LIPO
21799
21800# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21801OTOOL=$lt_OTOOL
21802
21803# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21804OTOOL64=$lt_OTOOL64
21805
21806# Old archive suffix (normally "a").
21807libext=$libext
21808
21809# Shared library suffix (normally ".so").
21810shrext_cmds=$lt_shrext_cmds
21811
21812# The commands to extract the exported symbol list from a shared archive.
21813extract_expsyms_cmds=$lt_extract_expsyms_cmds
21814
21815# Variables whose values should be saved in libtool wrapper scripts and
21816# restored at link time.
21817variables_saved_for_relink=$lt_variables_saved_for_relink
21818
21819# Do we need the "lib" prefix for modules?
21820need_lib_prefix=$need_lib_prefix
21821
21822# Do we need a version for libraries?
21823need_version=$need_version
21824
21825# Library versioning type.
21826version_type=$version_type
21827
21828# Shared library runtime path variable.
21829runpath_var=$runpath_var
21830
21831# Shared library path variable.
21832shlibpath_var=$shlibpath_var
21833
21834# Is shlibpath searched before the hard-coded library search path?
21835shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21836
21837# Format of library name prefix.
21838libname_spec=$lt_libname_spec
21839
21840# List of archive names.  First name is the real one, the rest are links.
21841# The last name is the one that the linker finds with -lNAME
21842library_names_spec=$lt_library_names_spec
21843
21844# The coded name of the library, if different from the real name.
21845soname_spec=$lt_soname_spec
21846
21847# Permission mode override for installation of shared libraries.
21848install_override_mode=$lt_install_override_mode
21849
21850# Command to use after installation of a shared archive.
21851postinstall_cmds=$lt_postinstall_cmds
21852
21853# Command to use after uninstallation of a shared archive.
21854postuninstall_cmds=$lt_postuninstall_cmds
21855
21856# Commands used to finish a libtool library installation in a directory.
21857finish_cmds=$lt_finish_cmds
21858
21859# As "finish_cmds", except a single script fragment to be evaled but
21860# not shown.
21861finish_eval=$lt_finish_eval
21862
21863# Whether we should hardcode library paths into libraries.
21864hardcode_into_libs=$hardcode_into_libs
21865
21866# Compile-time system search path for libraries.
21867sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21868
21869# Detected run-time system search path for libraries.
21870sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21871
21872# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21873configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21874
21875# Whether dlopen is supported.
21876dlopen_support=$enable_dlopen
21877
21878# Whether dlopen of programs is supported.
21879dlopen_self=$enable_dlopen_self
21880
21881# Whether dlopen of statically linked programs is supported.
21882dlopen_self_static=$enable_dlopen_self_static
21883
21884# Commands to strip libraries.
21885old_striplib=$lt_old_striplib
21886striplib=$lt_striplib
21887
21888
21889# The linker used to build libraries.
21890LD=$lt_LD
21891
21892# How to create reloadable object files.
21893reload_flag=$lt_reload_flag
21894reload_cmds=$lt_reload_cmds
21895
21896# Commands used to build an old-style archive.
21897old_archive_cmds=$lt_old_archive_cmds
21898
21899# A language specific compiler.
21900CC=$lt_compiler
21901
21902# Is the compiler the GNU compiler?
21903with_gcc=$GCC
21904
21905# Compiler flag to turn off builtin functions.
21906no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21907
21908# Additional compiler flags for building library objects.
21909pic_flag=$lt_lt_prog_compiler_pic
21910
21911# How to pass a linker flag through the compiler.
21912wl=$lt_lt_prog_compiler_wl
21913
21914# Compiler flag to prevent dynamic linking.
21915link_static_flag=$lt_lt_prog_compiler_static
21916
21917# Does compiler simultaneously support -c and -o options?
21918compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21919
21920# Whether or not to add -lc for building shared libraries.
21921build_libtool_need_lc=$archive_cmds_need_lc
21922
21923# Whether or not to disallow shared libs when runtime libs are static.
21924allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21925
21926# Compiler flag to allow reflexive dlopens.
21927export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21928
21929# Compiler flag to generate shared objects directly from archives.
21930whole_archive_flag_spec=$lt_whole_archive_flag_spec
21931
21932# Whether the compiler copes with passing no objects directly.
21933compiler_needs_object=$lt_compiler_needs_object
21934
21935# Create an old-style archive from a shared archive.
21936old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21937
21938# Create a temporary old-style archive to link instead of a shared archive.
21939old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21940
21941# Commands used to build a shared archive.
21942archive_cmds=$lt_archive_cmds
21943archive_expsym_cmds=$lt_archive_expsym_cmds
21944
21945# Commands used to build a loadable module if different from building
21946# a shared archive.
21947module_cmds=$lt_module_cmds
21948module_expsym_cmds=$lt_module_expsym_cmds
21949
21950# Whether we are building with GNU ld or not.
21951with_gnu_ld=$lt_with_gnu_ld
21952
21953# Flag that allows shared libraries with undefined symbols to be built.
21954allow_undefined_flag=$lt_allow_undefined_flag
21955
21956# Flag that enforces no undefined symbols.
21957no_undefined_flag=$lt_no_undefined_flag
21958
21959# Flag to hardcode \$libdir into a binary during linking.
21960# This must work even if \$libdir does not exist
21961hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21962
21963# Whether we need a single "-rpath" flag with a separated argument.
21964hardcode_libdir_separator=$lt_hardcode_libdir_separator
21965
21966# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21967# DIR into the resulting binary.
21968hardcode_direct=$hardcode_direct
21969
21970# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21971# DIR into the resulting binary and the resulting library dependency is
21972# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21973# library is relocated.
21974hardcode_direct_absolute=$hardcode_direct_absolute
21975
21976# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21977# into the resulting binary.
21978hardcode_minus_L=$hardcode_minus_L
21979
21980# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21981# into the resulting binary.
21982hardcode_shlibpath_var=$hardcode_shlibpath_var
21983
21984# Set to "yes" if building a shared library automatically hardcodes DIR
21985# into the library and all subsequent libraries and executables linked
21986# against it.
21987hardcode_automatic=$hardcode_automatic
21988
21989# Set to yes if linker adds runtime paths of dependent libraries
21990# to runtime path list.
21991inherit_rpath=$inherit_rpath
21992
21993# Whether libtool must link a program against all its dependency libraries.
21994link_all_deplibs=$link_all_deplibs
21995
21996# Set to "yes" if exported symbols are required.
21997always_export_symbols=$always_export_symbols
21998
21999# The commands to list exported symbols.
22000export_symbols_cmds=$lt_export_symbols_cmds
22001
22002# Symbols that should not be listed in the preloaded symbols.
22003exclude_expsyms=$lt_exclude_expsyms
22004
22005# Symbols that must always be exported.
22006include_expsyms=$lt_include_expsyms
22007
22008# Commands necessary for linking programs (against libraries) with templates.
22009prelink_cmds=$lt_prelink_cmds
22010
22011# Commands necessary for finishing linking programs.
22012postlink_cmds=$lt_postlink_cmds
22013
22014# Specify filename containing input files.
22015file_list_spec=$lt_file_list_spec
22016
22017# How to hardcode a shared library path into an executable.
22018hardcode_action=$hardcode_action
22019
22020# ### END LIBTOOL CONFIG
22021
22022_LT_EOF
22023
22024    cat <<'_LT_EOF' >> "$cfgfile"
22025
22026# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22027
22028# func_munge_path_list VARIABLE PATH
22029# -----------------------------------
22030# VARIABLE is name of variable containing _space_ separated list of
22031# directories to be munged by the contents of PATH, which is string
22032# having a format:
22033# "DIR[:DIR]:"
22034#       string "DIR[ DIR]" will be prepended to VARIABLE
22035# ":DIR[:DIR]"
22036#       string "DIR[ DIR]" will be appended to VARIABLE
22037# "DIRP[:DIRP]::[DIRA:]DIRA"
22038#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22039#       "DIRA[ DIRA]" will be appended to VARIABLE
22040# "DIR[:DIR]"
22041#       VARIABLE will be replaced by "DIR[ DIR]"
22042func_munge_path_list ()
22043{
22044    case x$2 in
22045    x)
22046        ;;
22047    *:)
22048        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22049        ;;
22050    x:*)
22051        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22052        ;;
22053    *::*)
22054        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22055        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22056        ;;
22057    *)
22058        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22059        ;;
22060    esac
22061}
22062
22063
22064# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22065func_cc_basename ()
22066{
22067    for cc_temp in $*""; do
22068      case $cc_temp in
22069        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22070        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22071        \-*) ;;
22072        *) break;;
22073      esac
22074    done
22075    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22076}
22077
22078
22079# ### END FUNCTIONS SHARED WITH CONFIGURE
22080
22081_LT_EOF
22082
22083  case $host_os in
22084  aix3*)
22085    cat <<\_LT_EOF >> "$cfgfile"
22086# AIX sometimes has problems with the GCC collect2 program.  For some
22087# reason, if we set the COLLECT_NAMES environment variable, the problems
22088# vanish in a puff of smoke.
22089if test set != "${COLLECT_NAMES+set}"; then
22090  COLLECT_NAMES=
22091  export COLLECT_NAMES
22092fi
22093_LT_EOF
22094    ;;
22095  esac
22096
22097
22098
22099ltmain=$ac_aux_dir/ltmain.sh
22100
22101
22102  # We use sed instead of cat because bash on DJGPP gets confused if
22103  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22104  # text mode, it properly converts lines to CR/LF.  This bash problem
22105  # is reportedly fixed, but why not run on old versions too?
22106  $SED '$q' "$ltmain" >> "$cfgfile" \
22107     || (rm -f "$cfgfile"; exit 1)
22108
22109   mv -f "$cfgfile" "$ofile" ||
22110    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22111  chmod +x "$ofile"
22112
22113 ;;
22114
22115  esac
22116done # for ac_tag
22117
22118
22119as_fn_exit 0
22120_ACEOF
22121ac_clean_files=$ac_clean_files_save
22122
22123test $ac_write_fail = 0 ||
22124  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22125
22126
22127# configure is writing to config.log, and then calls config.status.
22128# config.status does its own redirection, appending to config.log.
22129# Unfortunately, on DOS this fails, as config.log is still kept open
22130# by configure, so config.status won't be able to write to it; its
22131# output is simply discarded.  So we exec the FD to /dev/null,
22132# effectively closing config.log, so it can be properly (re)opened and
22133# appended to by config.status.  When coming back to configure, we
22134# need to make the FD available again.
22135if test "$no_create" != yes; then
22136  ac_cs_success=:
22137  ac_config_status_args=
22138  test "$silent" = yes &&
22139    ac_config_status_args="$ac_config_status_args --quiet"
22140  exec 5>/dev/null
22141  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22142  exec 5>>config.log
22143  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22144  # would make configure fail if this is the last instruction.
22145  $ac_cs_success || as_fn_exit 1
22146fi
22147if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22148  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22149printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22150fi
22151
22152
22153