configure revision 0814a2ba
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xf86-video-cirrus 1.6.0.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-cirrus/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-cirrus/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-cirrus'
624PACKAGE_TARNAME='xf86-video-cirrus'
625PACKAGE_VERSION='1.6.0'
626PACKAGE_STRING='xf86-video-cirrus 1.6.0'
627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-cirrus/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
675XORG_LIBS
676XORG_CFLAGS
677LT_SYS_LIBRARY_PATH
678OTOOL64
679OTOOL
680LIPO
681NMEDIT
682DSYMUTIL
683MANIFEST_TOOL
684RANLIB
685ac_ct_AR
686AR
687DLLTOOL
688OBJDUMP
689FILECMD
690LN_S
691NM
692ac_ct_DUMPBIN
693DUMPBIN
694LD
695FGREP
696EGREP
697GREP
698LIBTOOL
699MAN_SUBSTS
700XORG_MAN_PAGE
701ADMIN_MAN_DIR
702DRIVER_MAN_DIR
703MISC_MAN_DIR
704FILE_MAN_DIR
705LIB_MAN_DIR
706APP_MAN_DIR
707ADMIN_MAN_SUFFIX
708DRIVER_MAN_SUFFIX
709MISC_MAN_SUFFIX
710FILE_MAN_SUFFIX
711LIB_MAN_SUFFIX
712APP_MAN_SUFFIX
713SED
714host_os
715host_vendor
716host_cpu
717host
718build_os
719build_vendor
720build_cpu
721build
722INSTALL_CMD
723PKG_CONFIG_LIBDIR
724PKG_CONFIG_PATH
725PKG_CONFIG
726CHANGELOG_CMD
727STRICT_CFLAGS
728CWARNFLAGS
729BASE_CFLAGS
730am__fastdepCC_FALSE
731am__fastdepCC_TRUE
732CCDEPMODE
733am__nodep
734AMDEPBACKSLASH
735AMDEP_FALSE
736AMDEP_TRUE
737am__include
738DEPDIR
739OBJEXT
740EXEEXT
741ac_ct_CC
742CPPFLAGS
743LDFLAGS
744CFLAGS
745CC
746AM_BACKSLASH
747AM_DEFAULT_VERBOSITY
748AM_DEFAULT_V
749AM_V
750CSCOPE
751ETAGS
752CTAGS
753am__untar
754am__tar
755AMTAR
756am__leading_dot
757SET_MAKE
758AWK
759mkdir_p
760MKDIR_P
761INSTALL_STRIP_PROGRAM
762STRIP
763install_sh
764MAKEINFO
765AUTOHEADER
766AUTOMAKE
767AUTOCONF
768ACLOCAL
769VERSION
770PACKAGE
771CYGPATH_W
772am__isrc
773INSTALL_DATA
774INSTALL_SCRIPT
775INSTALL_PROGRAM
776target_alias
777host_alias
778build_alias
779LIBS
780ECHO_T
781ECHO_N
782ECHO_C
783DEFS
784mandir
785localedir
786libdir
787psdir
788pdfdir
789dvidir
790htmldir
791infodir
792docdir
793oldincludedir
794includedir
795runstatedir
796localstatedir
797sharedstatedir
798sysconfdir
799datadir
800datarootdir
801libexecdir
802sbindir
803bindir
804program_transform_name
805prefix
806exec_prefix
807PACKAGE_URL
808PACKAGE_BUGREPORT
809PACKAGE_STRING
810PACKAGE_VERSION
811PACKAGE_TARNAME
812PACKAGE_NAME
813PATH_SEPARATOR
814SHELL
815am__quote'
816ac_subst_files=''
817ac_user_opts='
818enable_option_checking
819enable_silent_rules
820enable_dependency_tracking
821enable_selective_werror
822enable_strict_compilation
823enable_static
824enable_shared
825with_pic
826enable_fast_install
827with_aix_soname
828with_gnu_ld
829with_sysroot
830enable_libtool_lock
831with_xorg_module_dir
832enable_xaa
833'
834      ac_precious_vars='build_alias
835host_alias
836target_alias
837CC
838CFLAGS
839LDFLAGS
840LIBS
841CPPFLAGS
842PKG_CONFIG
843PKG_CONFIG_PATH
844PKG_CONFIG_LIBDIR
845LT_SYS_LIBRARY_PATH
846XORG_CFLAGS
847XORG_LIBS
848PCIACCESS_CFLAGS
849PCIACCESS_LIBS'
850
851
852# Initialize some variables set by options.
853ac_init_help=
854ac_init_version=false
855ac_unrecognized_opts=
856ac_unrecognized_sep=
857# The variables have the same names as the options, with
858# dashes changed to underlines.
859cache_file=/dev/null
860exec_prefix=NONE
861no_create=
862no_recursion=
863prefix=NONE
864program_prefix=NONE
865program_suffix=NONE
866program_transform_name=s,x,x,
867silent=
868site=
869srcdir=
870verbose=
871x_includes=NONE
872x_libraries=NONE
873
874# Installation directory options.
875# These are left unexpanded so users can "make install exec_prefix=/foo"
876# and all the variables that are supposed to be based on exec_prefix
877# by default will actually change.
878# Use braces instead of parens because sh, perl, etc. also accept them.
879# (The list follows the same order as the GNU Coding Standards.)
880bindir='${exec_prefix}/bin'
881sbindir='${exec_prefix}/sbin'
882libexecdir='${exec_prefix}/libexec'
883datarootdir='${prefix}/share'
884datadir='${datarootdir}'
885sysconfdir='${prefix}/etc'
886sharedstatedir='${prefix}/com'
887localstatedir='${prefix}/var'
888runstatedir='${localstatedir}/run'
889includedir='${prefix}/include'
890oldincludedir='/usr/include'
891docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
892infodir='${datarootdir}/info'
893htmldir='${docdir}'
894dvidir='${docdir}'
895pdfdir='${docdir}'
896psdir='${docdir}'
897libdir='${exec_prefix}/lib'
898localedir='${datarootdir}/locale'
899mandir='${datarootdir}/man'
900
901ac_prev=
902ac_dashdash=
903for ac_option
904do
905  # If the previous option needs an argument, assign it.
906  if test -n "$ac_prev"; then
907    eval $ac_prev=\$ac_option
908    ac_prev=
909    continue
910  fi
911
912  case $ac_option in
913  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914  *=)   ac_optarg= ;;
915  *)    ac_optarg=yes ;;
916  esac
917
918  case $ac_dashdash$ac_option in
919  --)
920    ac_dashdash=yes ;;
921
922  -bindir | --bindir | --bindi | --bind | --bin | --bi)
923    ac_prev=bindir ;;
924  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925    bindir=$ac_optarg ;;
926
927  -build | --build | --buil | --bui | --bu)
928    ac_prev=build_alias ;;
929  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930    build_alias=$ac_optarg ;;
931
932  -cache-file | --cache-file | --cache-fil | --cache-fi \
933  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934    ac_prev=cache_file ;;
935  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937    cache_file=$ac_optarg ;;
938
939  --config-cache | -C)
940    cache_file=config.cache ;;
941
942  -datadir | --datadir | --datadi | --datad)
943    ac_prev=datadir ;;
944  -datadir=* | --datadir=* | --datadi=* | --datad=*)
945    datadir=$ac_optarg ;;
946
947  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948  | --dataroo | --dataro | --datar)
949    ac_prev=datarootdir ;;
950  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952    datarootdir=$ac_optarg ;;
953
954  -disable-* | --disable-*)
955    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956    # Reject names that are not valid shell variable names.
957    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958      as_fn_error $? "invalid feature name: \`$ac_useropt'"
959    ac_useropt_orig=$ac_useropt
960    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
961    case $ac_user_opts in
962      *"
963"enable_$ac_useropt"
964"*) ;;
965      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
966	 ac_unrecognized_sep=', ';;
967    esac
968    eval enable_$ac_useropt=no ;;
969
970  -docdir | --docdir | --docdi | --doc | --do)
971    ac_prev=docdir ;;
972  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973    docdir=$ac_optarg ;;
974
975  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
976    ac_prev=dvidir ;;
977  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978    dvidir=$ac_optarg ;;
979
980  -enable-* | --enable-*)
981    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
982    # Reject names that are not valid shell variable names.
983    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984      as_fn_error $? "invalid feature name: \`$ac_useropt'"
985    ac_useropt_orig=$ac_useropt
986    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
987    case $ac_user_opts in
988      *"
989"enable_$ac_useropt"
990"*) ;;
991      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992	 ac_unrecognized_sep=', ';;
993    esac
994    eval enable_$ac_useropt=\$ac_optarg ;;
995
996  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998  | --exec | --exe | --ex)
999    ac_prev=exec_prefix ;;
1000  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002  | --exec=* | --exe=* | --ex=*)
1003    exec_prefix=$ac_optarg ;;
1004
1005  -gas | --gas | --ga | --g)
1006    # Obsolete; use --with-gas.
1007    with_gas=yes ;;
1008
1009  -help | --help | --hel | --he | -h)
1010    ac_init_help=long ;;
1011  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012    ac_init_help=recursive ;;
1013  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014    ac_init_help=short ;;
1015
1016  -host | --host | --hos | --ho)
1017    ac_prev=host_alias ;;
1018  -host=* | --host=* | --hos=* | --ho=*)
1019    host_alias=$ac_optarg ;;
1020
1021  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022    ac_prev=htmldir ;;
1023  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024  | --ht=*)
1025    htmldir=$ac_optarg ;;
1026
1027  -includedir | --includedir | --includedi | --included | --include \
1028  | --includ | --inclu | --incl | --inc)
1029    ac_prev=includedir ;;
1030  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031  | --includ=* | --inclu=* | --incl=* | --inc=*)
1032    includedir=$ac_optarg ;;
1033
1034  -infodir | --infodir | --infodi | --infod | --info | --inf)
1035    ac_prev=infodir ;;
1036  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037    infodir=$ac_optarg ;;
1038
1039  -libdir | --libdir | --libdi | --libd)
1040    ac_prev=libdir ;;
1041  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042    libdir=$ac_optarg ;;
1043
1044  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045  | --libexe | --libex | --libe)
1046    ac_prev=libexecdir ;;
1047  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048  | --libexe=* | --libex=* | --libe=*)
1049    libexecdir=$ac_optarg ;;
1050
1051  -localedir | --localedir | --localedi | --localed | --locale)
1052    ac_prev=localedir ;;
1053  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054    localedir=$ac_optarg ;;
1055
1056  -localstatedir | --localstatedir | --localstatedi | --localstated \
1057  | --localstate | --localstat | --localsta | --localst | --locals)
1058    ac_prev=localstatedir ;;
1059  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061    localstatedir=$ac_optarg ;;
1062
1063  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064    ac_prev=mandir ;;
1065  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066    mandir=$ac_optarg ;;
1067
1068  -nfp | --nfp | --nf)
1069    # Obsolete; use --without-fp.
1070    with_fp=no ;;
1071
1072  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073  | --no-cr | --no-c | -n)
1074    no_create=yes ;;
1075
1076  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078    no_recursion=yes ;;
1079
1080  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082  | --oldin | --oldi | --old | --ol | --o)
1083    ac_prev=oldincludedir ;;
1084  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087    oldincludedir=$ac_optarg ;;
1088
1089  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090    ac_prev=prefix ;;
1091  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092    prefix=$ac_optarg ;;
1093
1094  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095  | --program-pre | --program-pr | --program-p)
1096    ac_prev=program_prefix ;;
1097  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099    program_prefix=$ac_optarg ;;
1100
1101  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102  | --program-suf | --program-su | --program-s)
1103    ac_prev=program_suffix ;;
1104  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106    program_suffix=$ac_optarg ;;
1107
1108  -program-transform-name | --program-transform-name \
1109  | --program-transform-nam | --program-transform-na \
1110  | --program-transform-n | --program-transform- \
1111  | --program-transform | --program-transfor \
1112  | --program-transfo | --program-transf \
1113  | --program-trans | --program-tran \
1114  | --progr-tra | --program-tr | --program-t)
1115    ac_prev=program_transform_name ;;
1116  -program-transform-name=* | --program-transform-name=* \
1117  | --program-transform-nam=* | --program-transform-na=* \
1118  | --program-transform-n=* | --program-transform-=* \
1119  | --program-transform=* | --program-transfor=* \
1120  | --program-transfo=* | --program-transf=* \
1121  | --program-trans=* | --program-tran=* \
1122  | --progr-tra=* | --program-tr=* | --program-t=*)
1123    program_transform_name=$ac_optarg ;;
1124
1125  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126    ac_prev=pdfdir ;;
1127  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128    pdfdir=$ac_optarg ;;
1129
1130  -psdir | --psdir | --psdi | --psd | --ps)
1131    ac_prev=psdir ;;
1132  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133    psdir=$ac_optarg ;;
1134
1135  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136  | -silent | --silent | --silen | --sile | --sil)
1137    silent=yes ;;
1138
1139  -runstatedir | --runstatedir | --runstatedi | --runstated \
1140  | --runstate | --runstat | --runsta | --runst | --runs \
1141  | --run | --ru | --r)
1142    ac_prev=runstatedir ;;
1143  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1144  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1145  | --run=* | --ru=* | --r=*)
1146    runstatedir=$ac_optarg ;;
1147
1148  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149    ac_prev=sbindir ;;
1150  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151  | --sbi=* | --sb=*)
1152    sbindir=$ac_optarg ;;
1153
1154  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156  | --sharedst | --shareds | --shared | --share | --shar \
1157  | --sha | --sh)
1158    ac_prev=sharedstatedir ;;
1159  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162  | --sha=* | --sh=*)
1163    sharedstatedir=$ac_optarg ;;
1164
1165  -site | --site | --sit)
1166    ac_prev=site ;;
1167  -site=* | --site=* | --sit=*)
1168    site=$ac_optarg ;;
1169
1170  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171    ac_prev=srcdir ;;
1172  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173    srcdir=$ac_optarg ;;
1174
1175  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176  | --syscon | --sysco | --sysc | --sys | --sy)
1177    ac_prev=sysconfdir ;;
1178  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180    sysconfdir=$ac_optarg ;;
1181
1182  -target | --target | --targe | --targ | --tar | --ta | --t)
1183    ac_prev=target_alias ;;
1184  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185    target_alias=$ac_optarg ;;
1186
1187  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188    verbose=yes ;;
1189
1190  -version | --version | --versio | --versi | --vers | -V)
1191    ac_init_version=: ;;
1192
1193  -with-* | --with-*)
1194    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195    # Reject names that are not valid shell variable names.
1196    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197      as_fn_error $? "invalid package name: \`$ac_useropt'"
1198    ac_useropt_orig=$ac_useropt
1199    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1200    case $ac_user_opts in
1201      *"
1202"with_$ac_useropt"
1203"*) ;;
1204      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205	 ac_unrecognized_sep=', ';;
1206    esac
1207    eval with_$ac_useropt=\$ac_optarg ;;
1208
1209  -without-* | --without-*)
1210    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211    # Reject names that are not valid shell variable names.
1212    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213      as_fn_error $? "invalid package name: \`$ac_useropt'"
1214    ac_useropt_orig=$ac_useropt
1215    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1216    case $ac_user_opts in
1217      *"
1218"with_$ac_useropt"
1219"*) ;;
1220      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221	 ac_unrecognized_sep=', ';;
1222    esac
1223    eval with_$ac_useropt=no ;;
1224
1225  --x)
1226    # Obsolete; use --with-x.
1227    with_x=yes ;;
1228
1229  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230  | --x-incl | --x-inc | --x-in | --x-i)
1231    ac_prev=x_includes ;;
1232  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234    x_includes=$ac_optarg ;;
1235
1236  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238    ac_prev=x_libraries ;;
1239  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241    x_libraries=$ac_optarg ;;
1242
1243  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244Try \`$0 --help' for more information"
1245    ;;
1246
1247  *=*)
1248    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249    # Reject names that are not valid shell variable names.
1250    case $ac_envvar in #(
1251      '' | [0-9]* | *[!_$as_cr_alnum]* )
1252      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253    esac
1254    eval $ac_envvar=\$ac_optarg
1255    export $ac_envvar ;;
1256
1257  *)
1258    # FIXME: should be removed in autoconf 3.0.
1259    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1260    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1262    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263    ;;
1264
1265  esac
1266done
1267
1268if test -n "$ac_prev"; then
1269  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270  as_fn_error $? "missing argument to $ac_option"
1271fi
1272
1273if test -n "$ac_unrecognized_opts"; then
1274  case $enable_option_checking in
1275    no) ;;
1276    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278  esac
1279fi
1280
1281# Check all directory arguments for consistency.
1282for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283		datadir sysconfdir sharedstatedir localstatedir includedir \
1284		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285		libdir localedir mandir runstatedir
1286do
1287  eval ac_val=\$$ac_var
1288  # Remove trailing slashes.
1289  case $ac_val in
1290    */ )
1291      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292      eval $ac_var=\$ac_val;;
1293  esac
1294  # Be sure to have absolute directory names.
1295  case $ac_val in
1296    [\\/$]* | ?:[\\/]* )  continue;;
1297    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298  esac
1299  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300done
1301
1302# There might be people who depend on the old broken behavior: `$host'
1303# used to hold the argument of --host etc.
1304# FIXME: To remove some day.
1305build=$build_alias
1306host=$host_alias
1307target=$target_alias
1308
1309# FIXME: To remove some day.
1310if test "x$host_alias" != x; then
1311  if test "x$build_alias" = x; then
1312    cross_compiling=maybe
1313  elif test "x$build_alias" != "x$host_alias"; then
1314    cross_compiling=yes
1315  fi
1316fi
1317
1318ac_tool_prefix=
1319test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321test "$silent" = yes && exec 6>/dev/null
1322
1323
1324ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325ac_ls_di=`ls -di .` &&
1326ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327  as_fn_error $? "working directory cannot be determined"
1328test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329  as_fn_error $? "pwd does not report name of working directory"
1330
1331
1332# Find the source files, if location was not specified.
1333if test -z "$srcdir"; then
1334  ac_srcdir_defaulted=yes
1335  # Try the directory containing this script, then the parent directory.
1336  ac_confdir=`$as_dirname -- "$as_myself" ||
1337$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338	 X"$as_myself" : 'X\(//\)[^/]' \| \
1339	 X"$as_myself" : 'X\(//\)$' \| \
1340	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341printf "%s\n" X"$as_myself" |
1342    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343	    s//\1/
1344	    q
1345	  }
1346	  /^X\(\/\/\)[^/].*/{
1347	    s//\1/
1348	    q
1349	  }
1350	  /^X\(\/\/\)$/{
1351	    s//\1/
1352	    q
1353	  }
1354	  /^X\(\/\).*/{
1355	    s//\1/
1356	    q
1357	  }
1358	  s/.*/./; q'`
1359  srcdir=$ac_confdir
1360  if test ! -r "$srcdir/$ac_unique_file"; then
1361    srcdir=..
1362  fi
1363else
1364  ac_srcdir_defaulted=no
1365fi
1366if test ! -r "$srcdir/$ac_unique_file"; then
1367  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369fi
1370ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371ac_abs_confdir=`(
1372	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373	pwd)`
1374# When building in place, set srcdir=.
1375if test "$ac_abs_confdir" = "$ac_pwd"; then
1376  srcdir=.
1377fi
1378# Remove unnecessary trailing slashes from srcdir.
1379# Double slashes in file names in object file debugging info
1380# mess up M-x gdb in Emacs.
1381case $srcdir in
1382*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383esac
1384for ac_var in $ac_precious_vars; do
1385  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386  eval ac_env_${ac_var}_value=\$${ac_var}
1387  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389done
1390
1391#
1392# Report the --help message.
1393#
1394if test "$ac_init_help" = "long"; then
1395  # Omit some internal or obsolete options to make the list less imposing.
1396  # This message is too long to be a string in the A/UX 3.1 sh.
1397  cat <<_ACEOF
1398\`configure' configures xf86-video-cirrus 1.6.0 to adapt to many kinds of systems.
1399
1400Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403VAR=VALUE.  See below for descriptions of some of the useful variables.
1404
1405Defaults for the options are specified in brackets.
1406
1407Configuration:
1408  -h, --help              display this help and exit
1409      --help=short        display options specific to this package
1410      --help=recursive    display the short help of all the included packages
1411  -V, --version           display version information and exit
1412  -q, --quiet, --silent   do not print \`checking ...' messages
1413      --cache-file=FILE   cache test results in FILE [disabled]
1414  -C, --config-cache      alias for \`--cache-file=config.cache'
1415  -n, --no-create         do not create output files
1416      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1417
1418Installation directories:
1419  --prefix=PREFIX         install architecture-independent files in PREFIX
1420                          [$ac_default_prefix]
1421  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1422                          [PREFIX]
1423
1424By default, \`make install' will install all the files in
1425\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1426an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427for instance \`--prefix=\$HOME'.
1428
1429For better control, use the options below.
1430
1431Fine tuning of the installation directories:
1432  --bindir=DIR            user executables [EPREFIX/bin]
1433  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1434  --libexecdir=DIR        program executables [EPREFIX/libexec]
1435  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1436  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1437  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1438  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1439  --libdir=DIR            object code libraries [EPREFIX/lib]
1440  --includedir=DIR        C header files [PREFIX/include]
1441  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1442  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1443  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1444  --infodir=DIR           info documentation [DATAROOTDIR/info]
1445  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1446  --mandir=DIR            man documentation [DATAROOTDIR/man]
1447  --docdir=DIR            documentation root
1448                          [DATAROOTDIR/doc/xf86-video-cirrus]
1449  --htmldir=DIR           html documentation [DOCDIR]
1450  --dvidir=DIR            dvi documentation [DOCDIR]
1451  --pdfdir=DIR            pdf documentation [DOCDIR]
1452  --psdir=DIR             ps documentation [DOCDIR]
1453_ACEOF
1454
1455  cat <<\_ACEOF
1456
1457Program names:
1458  --program-prefix=PREFIX            prepend PREFIX to installed program names
1459  --program-suffix=SUFFIX            append SUFFIX to installed program names
1460  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1461
1462System types:
1463  --build=BUILD     configure for building on BUILD [guessed]
1464  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1465_ACEOF
1466fi
1467
1468if test -n "$ac_init_help"; then
1469  case $ac_init_help in
1470     short | recursive ) echo "Configuration of xf86-video-cirrus 1.6.0:";;
1471   esac
1472  cat <<\_ACEOF
1473
1474Optional Features:
1475  --disable-option-checking  ignore unrecognized --enable/--with options
1476  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1477  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1478  --enable-silent-rules   less verbose build output (undo: "make V=1")
1479  --disable-silent-rules  verbose build output (undo: "make V=0")
1480  --enable-dependency-tracking
1481                          do not reject slow dependency extractors
1482  --disable-dependency-tracking
1483                          speeds up one-time build
1484  --disable-selective-werror
1485                          Turn off selective compiler errors. (default:
1486                          enabled)
1487  --enable-strict-compilation
1488                          Enable all warnings from compiler and make them
1489                          errors (default: disabled)
1490  --enable-static[=PKGS]  build static libraries [default=no]
1491  --enable-shared[=PKGS]  build shared libraries [default=yes]
1492  --enable-fast-install[=PKGS]
1493                          optimize for fast installation [default=yes]
1494  --disable-libtool-lock  avoid locking (might break parallel builds)
1495  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1496                          [default=auto]
1497
1498Optional Packages:
1499  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1500  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1501  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1502                          both]
1503  --with-aix-soname=aix|svr4|both
1504                          shared library versioning (aka "SONAME") variant to
1505                          provide on AIX, [default=aix].
1506  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1507  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1508                          compiler's sysroot if not specified).
1509  --with-xorg-module-dir=DIR
1510                          Default xorg module directory
1511                          [[default=$libdir/xorg/modules]]
1512
1513Some influential environment variables:
1514  CC          C compiler command
1515  CFLAGS      C compiler flags
1516  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1517              nonstandard directory <lib dir>
1518  LIBS        libraries to pass to the linker, e.g. -l<library>
1519  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1520              you have headers in a nonstandard directory <include dir>
1521  PKG_CONFIG  path to pkg-config utility
1522  PKG_CONFIG_PATH
1523              directories to add to pkg-config's search path
1524  PKG_CONFIG_LIBDIR
1525              path overriding pkg-config's built-in search path
1526  LT_SYS_LIBRARY_PATH
1527              User-defined run-time library search path.
1528  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1529  XORG_LIBS   linker flags for XORG, overriding pkg-config
1530  PCIACCESS_CFLAGS
1531              C compiler flags for PCIACCESS, overriding pkg-config
1532  PCIACCESS_LIBS
1533              linker flags for PCIACCESS, overriding pkg-config
1534
1535Use these variables to override the choices made by `configure' or to help
1536it to find libraries and programs with nonstandard names/locations.
1537
1538Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-cirrus/issues>.
1539_ACEOF
1540ac_status=$?
1541fi
1542
1543if test "$ac_init_help" = "recursive"; then
1544  # If there are subdirs, report their specific --help.
1545  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546    test -d "$ac_dir" ||
1547      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1548      continue
1549    ac_builddir=.
1550
1551case "$ac_dir" in
1552.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553*)
1554  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1555  # A ".." for each directory in $ac_dir_suffix.
1556  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1557  case $ac_top_builddir_sub in
1558  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560  esac ;;
1561esac
1562ac_abs_top_builddir=$ac_pwd
1563ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564# for backward compatibility:
1565ac_top_builddir=$ac_top_build_prefix
1566
1567case $srcdir in
1568  .)  # We are building in place.
1569    ac_srcdir=.
1570    ac_top_srcdir=$ac_top_builddir_sub
1571    ac_abs_top_srcdir=$ac_pwd ;;
1572  [\\/]* | ?:[\\/]* )  # Absolute name.
1573    ac_srcdir=$srcdir$ac_dir_suffix;
1574    ac_top_srcdir=$srcdir
1575    ac_abs_top_srcdir=$srcdir ;;
1576  *) # Relative name.
1577    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578    ac_top_srcdir=$ac_top_build_prefix$srcdir
1579    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580esac
1581ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582
1583    cd "$ac_dir" || { ac_status=$?; continue; }
1584    # Check for configure.gnu first; this name is used for a wrapper for
1585    # Metaconfig's "Configure" on case-insensitive file systems.
1586    if test -f "$ac_srcdir/configure.gnu"; then
1587      echo &&
1588      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589    elif test -f "$ac_srcdir/configure"; then
1590      echo &&
1591      $SHELL "$ac_srcdir/configure" --help=recursive
1592    else
1593      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1594    fi || ac_status=$?
1595    cd "$ac_pwd" || { ac_status=$?; break; }
1596  done
1597fi
1598
1599test -n "$ac_init_help" && exit $ac_status
1600if $ac_init_version; then
1601  cat <<\_ACEOF
1602xf86-video-cirrus configure 1.6.0
1603generated by GNU Autoconf 2.71
1604
1605Copyright (C) 2021 Free Software Foundation, Inc.
1606This configure script is free software; the Free Software Foundation
1607gives unlimited permission to copy, distribute and modify it.
1608_ACEOF
1609  exit
1610fi
1611
1612## ------------------------ ##
1613## Autoconf initialization. ##
1614## ------------------------ ##
1615
1616# ac_fn_c_try_compile LINENO
1617# --------------------------
1618# Try to compile conftest.$ac_ext, and return whether this succeeded.
1619ac_fn_c_try_compile ()
1620{
1621  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622  rm -f conftest.$ac_objext conftest.beam
1623  if { { ac_try="$ac_compile"
1624case "(($ac_try" in
1625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626  *) ac_try_echo=$ac_try;;
1627esac
1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629printf "%s\n" "$ac_try_echo"; } >&5
1630  (eval "$ac_compile") 2>conftest.err
1631  ac_status=$?
1632  if test -s conftest.err; then
1633    grep -v '^ *+' conftest.err >conftest.er1
1634    cat conftest.er1 >&5
1635    mv -f conftest.er1 conftest.err
1636  fi
1637  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1638  test $ac_status = 0; } && {
1639	 test -z "$ac_c_werror_flag" ||
1640	 test ! -s conftest.err
1641       } && test -s conftest.$ac_objext
1642then :
1643  ac_retval=0
1644else $as_nop
1645  printf "%s\n" "$as_me: failed program was:" >&5
1646sed 's/^/| /' conftest.$ac_ext >&5
1647
1648	ac_retval=1
1649fi
1650  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651  as_fn_set_status $ac_retval
1652
1653} # ac_fn_c_try_compile
1654
1655# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1656# ------------------------------------------------------------------
1657# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1658# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1659ac_fn_check_decl ()
1660{
1661  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662  as_decl_name=`echo $2|sed 's/ *(.*//'`
1663  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1664printf %s "checking whether $as_decl_name is declared... " >&6; }
1665if eval test \${$3+y}
1666then :
1667  printf %s "(cached) " >&6
1668else $as_nop
1669  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1670  eval ac_save_FLAGS=\$$6
1671  as_fn_append $6 " $5"
1672  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673/* end confdefs.h.  */
1674$4
1675int
1676main (void)
1677{
1678#ifndef $as_decl_name
1679#ifdef __cplusplus
1680  (void) $as_decl_use;
1681#else
1682  (void) $as_decl_name;
1683#endif
1684#endif
1685
1686  ;
1687  return 0;
1688}
1689_ACEOF
1690if ac_fn_c_try_compile "$LINENO"
1691then :
1692  eval "$3=yes"
1693else $as_nop
1694  eval "$3=no"
1695fi
1696rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1697  eval $6=\$ac_save_FLAGS
1698
1699fi
1700eval ac_res=\$$3
1701	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702printf "%s\n" "$ac_res" >&6; }
1703  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704
1705} # ac_fn_check_decl
1706
1707# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1708# -------------------------------------------------------
1709# Tests whether HEADER exists and can be compiled using the include files in
1710# INCLUDES, setting the cache variable VAR accordingly.
1711ac_fn_c_check_header_compile ()
1712{
1713  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715printf %s "checking for $2... " >&6; }
1716if eval test \${$3+y}
1717then :
1718  printf %s "(cached) " >&6
1719else $as_nop
1720  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721/* end confdefs.h.  */
1722$4
1723#include <$2>
1724_ACEOF
1725if ac_fn_c_try_compile "$LINENO"
1726then :
1727  eval "$3=yes"
1728else $as_nop
1729  eval "$3=no"
1730fi
1731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1732fi
1733eval ac_res=\$$3
1734	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1735printf "%s\n" "$ac_res" >&6; }
1736  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737
1738} # ac_fn_c_check_header_compile
1739
1740# ac_fn_c_try_link LINENO
1741# -----------------------
1742# Try to link conftest.$ac_ext, and return whether this succeeded.
1743ac_fn_c_try_link ()
1744{
1745  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1747  if { { ac_try="$ac_link"
1748case "(($ac_try" in
1749  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750  *) ac_try_echo=$ac_try;;
1751esac
1752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753printf "%s\n" "$ac_try_echo"; } >&5
1754  (eval "$ac_link") 2>conftest.err
1755  ac_status=$?
1756  if test -s conftest.err; then
1757    grep -v '^ *+' conftest.err >conftest.er1
1758    cat conftest.er1 >&5
1759    mv -f conftest.er1 conftest.err
1760  fi
1761  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762  test $ac_status = 0; } && {
1763	 test -z "$ac_c_werror_flag" ||
1764	 test ! -s conftest.err
1765       } && test -s conftest$ac_exeext && {
1766	 test "$cross_compiling" = yes ||
1767	 test -x conftest$ac_exeext
1768       }
1769then :
1770  ac_retval=0
1771else $as_nop
1772  printf "%s\n" "$as_me: failed program was:" >&5
1773sed 's/^/| /' conftest.$ac_ext >&5
1774
1775	ac_retval=1
1776fi
1777  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1778  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1779  # interfere with the next link command; also delete a directory that is
1780  # left behind by Apple's compiler.  We do this before executing the actions.
1781  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1782  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783  as_fn_set_status $ac_retval
1784
1785} # ac_fn_c_try_link
1786
1787# ac_fn_c_check_func LINENO FUNC VAR
1788# ----------------------------------
1789# Tests whether FUNC exists, setting the cache variable VAR accordingly
1790ac_fn_c_check_func ()
1791{
1792  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1794printf %s "checking for $2... " >&6; }
1795if eval test \${$3+y}
1796then :
1797  printf %s "(cached) " >&6
1798else $as_nop
1799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800/* end confdefs.h.  */
1801/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1802   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1803#define $2 innocuous_$2
1804
1805/* System header to define __stub macros and hopefully few prototypes,
1806   which can conflict with char $2 (); below.  */
1807
1808#include <limits.h>
1809#undef $2
1810
1811/* Override any GCC internal prototype to avoid an error.
1812   Use char because int might match the return type of a GCC
1813   builtin and then its argument prototype would still apply.  */
1814#ifdef __cplusplus
1815extern "C"
1816#endif
1817char $2 ();
1818/* The GNU C library defines this for functions which it implements
1819    to always fail with ENOSYS.  Some functions are actually named
1820    something starting with __ and the normal name is an alias.  */
1821#if defined __stub_$2 || defined __stub___$2
1822choke me
1823#endif
1824
1825int
1826main (void)
1827{
1828return $2 ();
1829  ;
1830  return 0;
1831}
1832_ACEOF
1833if ac_fn_c_try_link "$LINENO"
1834then :
1835  eval "$3=yes"
1836else $as_nop
1837  eval "$3=no"
1838fi
1839rm -f core conftest.err conftest.$ac_objext conftest.beam \
1840    conftest$ac_exeext conftest.$ac_ext
1841fi
1842eval ac_res=\$$3
1843	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844printf "%s\n" "$ac_res" >&6; }
1845  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846
1847} # ac_fn_c_check_func
1848ac_configure_args_raw=
1849for ac_arg
1850do
1851  case $ac_arg in
1852  *\'*)
1853    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1854  esac
1855  as_fn_append ac_configure_args_raw " '$ac_arg'"
1856done
1857
1858case $ac_configure_args_raw in
1859  *$as_nl*)
1860    ac_safe_unquote= ;;
1861  *)
1862    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1863    ac_unsafe_a="$ac_unsafe_z#~"
1864    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1865    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1866esac
1867
1868cat >config.log <<_ACEOF
1869This file contains any messages produced by compilers while
1870running configure, to aid debugging if configure makes a mistake.
1871
1872It was created by xf86-video-cirrus $as_me 1.6.0, which was
1873generated by GNU Autoconf 2.71.  Invocation command line was
1874
1875  $ $0$ac_configure_args_raw
1876
1877_ACEOF
1878exec 5>>config.log
1879{
1880cat <<_ASUNAME
1881## --------- ##
1882## Platform. ##
1883## --------- ##
1884
1885hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1886uname -m = `(uname -m) 2>/dev/null || echo unknown`
1887uname -r = `(uname -r) 2>/dev/null || echo unknown`
1888uname -s = `(uname -s) 2>/dev/null || echo unknown`
1889uname -v = `(uname -v) 2>/dev/null || echo unknown`
1890
1891/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1892/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1893
1894/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1895/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1896/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1897/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1898/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1899/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1900/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1901
1902_ASUNAME
1903
1904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905for as_dir in $PATH
1906do
1907  IFS=$as_save_IFS
1908  case $as_dir in #(((
1909    '') as_dir=./ ;;
1910    */) ;;
1911    *) as_dir=$as_dir/ ;;
1912  esac
1913    printf "%s\n" "PATH: $as_dir"
1914  done
1915IFS=$as_save_IFS
1916
1917} >&5
1918
1919cat >&5 <<_ACEOF
1920
1921
1922## ----------- ##
1923## Core tests. ##
1924## ----------- ##
1925
1926_ACEOF
1927
1928
1929# Keep a trace of the command line.
1930# Strip out --no-create and --no-recursion so they do not pile up.
1931# Strip out --silent because we don't want to record it for future runs.
1932# Also quote any args containing shell meta-characters.
1933# Make two passes to allow for proper duplicate-argument suppression.
1934ac_configure_args=
1935ac_configure_args0=
1936ac_configure_args1=
1937ac_must_keep_next=false
1938for ac_pass in 1 2
1939do
1940  for ac_arg
1941  do
1942    case $ac_arg in
1943    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1944    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1945    | -silent | --silent | --silen | --sile | --sil)
1946      continue ;;
1947    *\'*)
1948      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1949    esac
1950    case $ac_pass in
1951    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1952    2)
1953      as_fn_append ac_configure_args1 " '$ac_arg'"
1954      if test $ac_must_keep_next = true; then
1955	ac_must_keep_next=false # Got value, back to normal.
1956      else
1957	case $ac_arg in
1958	  *=* | --config-cache | -C | -disable-* | --disable-* \
1959	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1960	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1961	  | -with-* | --with-* | -without-* | --without-* | --x)
1962	    case "$ac_configure_args0 " in
1963	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1964	    esac
1965	    ;;
1966	  -* ) ac_must_keep_next=true ;;
1967	esac
1968      fi
1969      as_fn_append ac_configure_args " '$ac_arg'"
1970      ;;
1971    esac
1972  done
1973done
1974{ ac_configure_args0=; unset ac_configure_args0;}
1975{ ac_configure_args1=; unset ac_configure_args1;}
1976
1977# When interrupted or exit'd, cleanup temporary files, and complete
1978# config.log.  We remove comments because anyway the quotes in there
1979# would cause problems or look ugly.
1980# WARNING: Use '\'' to represent an apostrophe within the trap.
1981# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1982trap 'exit_status=$?
1983  # Sanitize IFS.
1984  IFS=" ""	$as_nl"
1985  # Save into config.log some information that might help in debugging.
1986  {
1987    echo
1988
1989    printf "%s\n" "## ---------------- ##
1990## Cache variables. ##
1991## ---------------- ##"
1992    echo
1993    # The following way of writing the cache mishandles newlines in values,
1994(
1995  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1996    eval ac_val=\$$ac_var
1997    case $ac_val in #(
1998    *${as_nl}*)
1999      case $ac_var in #(
2000      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2001printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2002      esac
2003      case $ac_var in #(
2004      _ | IFS | as_nl) ;; #(
2005      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2006      *) { eval $ac_var=; unset $ac_var;} ;;
2007      esac ;;
2008    esac
2009  done
2010  (set) 2>&1 |
2011    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2012    *${as_nl}ac_space=\ *)
2013      sed -n \
2014	"s/'\''/'\''\\\\'\'''\''/g;
2015	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2016      ;; #(
2017    *)
2018      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2019      ;;
2020    esac |
2021    sort
2022)
2023    echo
2024
2025    printf "%s\n" "## ----------------- ##
2026## Output variables. ##
2027## ----------------- ##"
2028    echo
2029    for ac_var in $ac_subst_vars
2030    do
2031      eval ac_val=\$$ac_var
2032      case $ac_val in
2033      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2034      esac
2035      printf "%s\n" "$ac_var='\''$ac_val'\''"
2036    done | sort
2037    echo
2038
2039    if test -n "$ac_subst_files"; then
2040      printf "%s\n" "## ------------------- ##
2041## File substitutions. ##
2042## ------------------- ##"
2043      echo
2044      for ac_var in $ac_subst_files
2045      do
2046	eval ac_val=\$$ac_var
2047	case $ac_val in
2048	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2049	esac
2050	printf "%s\n" "$ac_var='\''$ac_val'\''"
2051      done | sort
2052      echo
2053    fi
2054
2055    if test -s confdefs.h; then
2056      printf "%s\n" "## ----------- ##
2057## confdefs.h. ##
2058## ----------- ##"
2059      echo
2060      cat confdefs.h
2061      echo
2062    fi
2063    test "$ac_signal" != 0 &&
2064      printf "%s\n" "$as_me: caught signal $ac_signal"
2065    printf "%s\n" "$as_me: exit $exit_status"
2066  } >&5
2067  rm -f core *.core core.conftest.* &&
2068    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2069    exit $exit_status
2070' 0
2071for ac_signal in 1 2 13 15; do
2072  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2073done
2074ac_signal=0
2075
2076# confdefs.h avoids OS command line length limits that DEFS can exceed.
2077rm -f -r conftest* confdefs.h
2078
2079printf "%s\n" "/* confdefs.h */" > confdefs.h
2080
2081# Predefined preprocessor variables.
2082
2083printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2084
2085printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2086
2087printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2088
2089printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2090
2091printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2092
2093printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2094
2095
2096# Let the site file select an alternate cache file if it wants to.
2097# Prefer an explicitly selected file to automatically selected ones.
2098if test -n "$CONFIG_SITE"; then
2099  ac_site_files="$CONFIG_SITE"
2100elif test "x$prefix" != xNONE; then
2101  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2102else
2103  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2104fi
2105
2106for ac_site_file in $ac_site_files
2107do
2108  case $ac_site_file in #(
2109  */*) :
2110     ;; #(
2111  *) :
2112    ac_site_file=./$ac_site_file ;;
2113esac
2114  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2115    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2116printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2117    sed 's/^/| /' "$ac_site_file" >&5
2118    . "$ac_site_file" \
2119      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2120printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2121as_fn_error $? "failed to load site script $ac_site_file
2122See \`config.log' for more details" "$LINENO" 5; }
2123  fi
2124done
2125
2126if test -r "$cache_file"; then
2127  # Some versions of bash will fail to source /dev/null (special files
2128  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2129  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2130    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2131printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2132    case $cache_file in
2133      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2134      *)                      . "./$cache_file";;
2135    esac
2136  fi
2137else
2138  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2139printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2140  >$cache_file
2141fi
2142
2143# Test code for whether the C compiler supports C89 (global declarations)
2144ac_c_conftest_c89_globals='
2145/* Does the compiler advertise C89 conformance?
2146   Do not test the value of __STDC__, because some compilers set it to 0
2147   while being otherwise adequately conformant. */
2148#if !defined __STDC__
2149# error "Compiler does not advertise C89 conformance"
2150#endif
2151
2152#include <stddef.h>
2153#include <stdarg.h>
2154struct stat;
2155/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2156struct buf { int x; };
2157struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2158static char *e (p, i)
2159     char **p;
2160     int i;
2161{
2162  return p[i];
2163}
2164static char *f (char * (*g) (char **, int), char **p, ...)
2165{
2166  char *s;
2167  va_list v;
2168  va_start (v,p);
2169  s = g (p, va_arg (v,int));
2170  va_end (v);
2171  return s;
2172}
2173
2174/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2175   function prototypes and stuff, but not \xHH hex character constants.
2176   These do not provoke an error unfortunately, instead are silently treated
2177   as an "x".  The following induces an error, until -std is added to get
2178   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2179   array size at least.  It is necessary to write \x00 == 0 to get something
2180   that is true only with -std.  */
2181int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2182
2183/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2184   inside strings and character constants.  */
2185#define FOO(x) '\''x'\''
2186int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2187
2188int test (int i, double x);
2189struct s1 {int (*f) (int a);};
2190struct s2 {int (*f) (double a);};
2191int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2192               int, int);'
2193
2194# Test code for whether the C compiler supports C89 (body of main).
2195ac_c_conftest_c89_main='
2196ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2197'
2198
2199# Test code for whether the C compiler supports C99 (global declarations)
2200ac_c_conftest_c99_globals='
2201// Does the compiler advertise C99 conformance?
2202#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2203# error "Compiler does not advertise C99 conformance"
2204#endif
2205
2206#include <stdbool.h>
2207extern int puts (const char *);
2208extern int printf (const char *, ...);
2209extern int dprintf (int, const char *, ...);
2210extern void *malloc (size_t);
2211
2212// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2213// dprintf is used instead of fprintf to avoid needing to declare
2214// FILE and stderr.
2215#define debug(...) dprintf (2, __VA_ARGS__)
2216#define showlist(...) puts (#__VA_ARGS__)
2217#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2218static void
2219test_varargs_macros (void)
2220{
2221  int x = 1234;
2222  int y = 5678;
2223  debug ("Flag");
2224  debug ("X = %d\n", x);
2225  showlist (The first, second, and third items.);
2226  report (x>y, "x is %d but y is %d", x, y);
2227}
2228
2229// Check long long types.
2230#define BIG64 18446744073709551615ull
2231#define BIG32 4294967295ul
2232#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2233#if !BIG_OK
2234  #error "your preprocessor is broken"
2235#endif
2236#if BIG_OK
2237#else
2238  #error "your preprocessor is broken"
2239#endif
2240static long long int bignum = -9223372036854775807LL;
2241static unsigned long long int ubignum = BIG64;
2242
2243struct incomplete_array
2244{
2245  int datasize;
2246  double data[];
2247};
2248
2249struct named_init {
2250  int number;
2251  const wchar_t *name;
2252  double average;
2253};
2254
2255typedef const char *ccp;
2256
2257static inline int
2258test_restrict (ccp restrict text)
2259{
2260  // See if C++-style comments work.
2261  // Iterate through items via the restricted pointer.
2262  // Also check for declarations in for loops.
2263  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2264    continue;
2265  return 0;
2266}
2267
2268// Check varargs and va_copy.
2269static bool
2270test_varargs (const char *format, ...)
2271{
2272  va_list args;
2273  va_start (args, format);
2274  va_list args_copy;
2275  va_copy (args_copy, args);
2276
2277  const char *str = "";
2278  int number = 0;
2279  float fnumber = 0;
2280
2281  while (*format)
2282    {
2283      switch (*format++)
2284	{
2285	case '\''s'\'': // string
2286	  str = va_arg (args_copy, const char *);
2287	  break;
2288	case '\''d'\'': // int
2289	  number = va_arg (args_copy, int);
2290	  break;
2291	case '\''f'\'': // float
2292	  fnumber = va_arg (args_copy, double);
2293	  break;
2294	default:
2295	  break;
2296	}
2297    }
2298  va_end (args_copy);
2299  va_end (args);
2300
2301  return *str && number && fnumber;
2302}
2303'
2304
2305# Test code for whether the C compiler supports C99 (body of main).
2306ac_c_conftest_c99_main='
2307  // Check bool.
2308  _Bool success = false;
2309  success |= (argc != 0);
2310
2311  // Check restrict.
2312  if (test_restrict ("String literal") == 0)
2313    success = true;
2314  char *restrict newvar = "Another string";
2315
2316  // Check varargs.
2317  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2318  test_varargs_macros ();
2319
2320  // Check flexible array members.
2321  struct incomplete_array *ia =
2322    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2323  ia->datasize = 10;
2324  for (int i = 0; i < ia->datasize; ++i)
2325    ia->data[i] = i * 1.234;
2326
2327  // Check named initializers.
2328  struct named_init ni = {
2329    .number = 34,
2330    .name = L"Test wide string",
2331    .average = 543.34343,
2332  };
2333
2334  ni.number = 58;
2335
2336  int dynamic_array[ni.number];
2337  dynamic_array[0] = argv[0][0];
2338  dynamic_array[ni.number - 1] = 543;
2339
2340  // work around unused variable warnings
2341  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2342	 || dynamic_array[ni.number - 1] != 543);
2343'
2344
2345# Test code for whether the C compiler supports C11 (global declarations)
2346ac_c_conftest_c11_globals='
2347// Does the compiler advertise C11 conformance?
2348#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2349# error "Compiler does not advertise C11 conformance"
2350#endif
2351
2352// Check _Alignas.
2353char _Alignas (double) aligned_as_double;
2354char _Alignas (0) no_special_alignment;
2355extern char aligned_as_int;
2356char _Alignas (0) _Alignas (int) aligned_as_int;
2357
2358// Check _Alignof.
2359enum
2360{
2361  int_alignment = _Alignof (int),
2362  int_array_alignment = _Alignof (int[100]),
2363  char_alignment = _Alignof (char)
2364};
2365_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2366
2367// Check _Noreturn.
2368int _Noreturn does_not_return (void) { for (;;) continue; }
2369
2370// Check _Static_assert.
2371struct test_static_assert
2372{
2373  int x;
2374  _Static_assert (sizeof (int) <= sizeof (long int),
2375                  "_Static_assert does not work in struct");
2376  long int y;
2377};
2378
2379// Check UTF-8 literals.
2380#define u8 syntax error!
2381char const utf8_literal[] = u8"happens to be ASCII" "another string";
2382
2383// Check duplicate typedefs.
2384typedef long *long_ptr;
2385typedef long int *long_ptr;
2386typedef long_ptr long_ptr;
2387
2388// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2389struct anonymous
2390{
2391  union {
2392    struct { int i; int j; };
2393    struct { int k; long int l; } w;
2394  };
2395  int m;
2396} v1;
2397'
2398
2399# Test code for whether the C compiler supports C11 (body of main).
2400ac_c_conftest_c11_main='
2401  _Static_assert ((offsetof (struct anonymous, i)
2402		   == offsetof (struct anonymous, w.k)),
2403		  "Anonymous union alignment botch");
2404  v1.i = 2;
2405  v1.w.k = 5;
2406  ok |= v1.i != 5;
2407'
2408
2409# Test code for whether the C compiler supports C11 (complete).
2410ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2411${ac_c_conftest_c99_globals}
2412${ac_c_conftest_c11_globals}
2413
2414int
2415main (int argc, char **argv)
2416{
2417  int ok = 0;
2418  ${ac_c_conftest_c89_main}
2419  ${ac_c_conftest_c99_main}
2420  ${ac_c_conftest_c11_main}
2421  return ok;
2422}
2423"
2424
2425# Test code for whether the C compiler supports C99 (complete).
2426ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2427${ac_c_conftest_c99_globals}
2428
2429int
2430main (int argc, char **argv)
2431{
2432  int ok = 0;
2433  ${ac_c_conftest_c89_main}
2434  ${ac_c_conftest_c99_main}
2435  return ok;
2436}
2437"
2438
2439# Test code for whether the C compiler supports C89 (complete).
2440ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2441
2442int
2443main (int argc, char **argv)
2444{
2445  int ok = 0;
2446  ${ac_c_conftest_c89_main}
2447  return ok;
2448}
2449"
2450
2451as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2452as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2453as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2454as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2455as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2456as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2457as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2458as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2459as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2460
2461# Auxiliary files required by this configure script.
2462ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2463
2464# Locations in which to look for auxiliary files.
2465ac_aux_dir_candidates="${srcdir}/."
2466
2467# Search for a directory containing all of the required auxiliary files,
2468# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2469# If we don't find one directory that contains all the files we need,
2470# we report the set of missing files from the *first* directory in
2471# $ac_aux_dir_candidates and give up.
2472ac_missing_aux_files=""
2473ac_first_candidate=:
2474printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476as_found=false
2477for as_dir in $ac_aux_dir_candidates
2478do
2479  IFS=$as_save_IFS
2480  case $as_dir in #(((
2481    '') as_dir=./ ;;
2482    */) ;;
2483    *) as_dir=$as_dir/ ;;
2484  esac
2485  as_found=:
2486
2487  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2488  ac_aux_dir_found=yes
2489  ac_install_sh=
2490  for ac_aux in $ac_aux_files
2491  do
2492    # As a special case, if "install-sh" is required, that requirement
2493    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2494    # and $ac_install_sh is set appropriately for whichever one is found.
2495    if test x"$ac_aux" = x"install-sh"
2496    then
2497      if test -f "${as_dir}install-sh"; then
2498        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2499        ac_install_sh="${as_dir}install-sh -c"
2500      elif test -f "${as_dir}install.sh"; then
2501        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2502        ac_install_sh="${as_dir}install.sh -c"
2503      elif test -f "${as_dir}shtool"; then
2504        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2505        ac_install_sh="${as_dir}shtool install -c"
2506      else
2507        ac_aux_dir_found=no
2508        if $ac_first_candidate; then
2509          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2510        else
2511          break
2512        fi
2513      fi
2514    else
2515      if test -f "${as_dir}${ac_aux}"; then
2516        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2517      else
2518        ac_aux_dir_found=no
2519        if $ac_first_candidate; then
2520          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2521        else
2522          break
2523        fi
2524      fi
2525    fi
2526  done
2527  if test "$ac_aux_dir_found" = yes; then
2528    ac_aux_dir="$as_dir"
2529    break
2530  fi
2531  ac_first_candidate=false
2532
2533  as_found=false
2534done
2535IFS=$as_save_IFS
2536if $as_found
2537then :
2538
2539else $as_nop
2540  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2541fi
2542
2543
2544# These three variables are undocumented and unsupported,
2545# and are intended to be withdrawn in a future Autoconf release.
2546# They can cause serious problems if a builder's source tree is in a directory
2547# whose full name contains unusual characters.
2548if test -f "${ac_aux_dir}config.guess"; then
2549  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2550fi
2551if test -f "${ac_aux_dir}config.sub"; then
2552  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2553fi
2554if test -f "$ac_aux_dir/configure"; then
2555  ac_configure="$SHELL ${ac_aux_dir}configure"
2556fi
2557
2558# Check that the precious variables saved in the cache have kept the same
2559# value.
2560ac_cache_corrupted=false
2561for ac_var in $ac_precious_vars; do
2562  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2563  eval ac_new_set=\$ac_env_${ac_var}_set
2564  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2565  eval ac_new_val=\$ac_env_${ac_var}_value
2566  case $ac_old_set,$ac_new_set in
2567    set,)
2568      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2569printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2570      ac_cache_corrupted=: ;;
2571    ,set)
2572      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2573printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2574      ac_cache_corrupted=: ;;
2575    ,);;
2576    *)
2577      if test "x$ac_old_val" != "x$ac_new_val"; then
2578	# differences in whitespace do not lead to failure.
2579	ac_old_val_w=`echo x $ac_old_val`
2580	ac_new_val_w=`echo x $ac_new_val`
2581	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2582	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2583printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2584	  ac_cache_corrupted=:
2585	else
2586	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2587printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2588	  eval $ac_var=\$ac_old_val
2589	fi
2590	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2591printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2592	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2593printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2594      fi;;
2595  esac
2596  # Pass precious variables to config.status.
2597  if test "$ac_new_set" = set; then
2598    case $ac_new_val in
2599    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2600    *) ac_arg=$ac_var=$ac_new_val ;;
2601    esac
2602    case " $ac_configure_args " in
2603      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2604      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2605    esac
2606  fi
2607done
2608if $ac_cache_corrupted; then
2609  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2610printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2611  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2612printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2613  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2614	    and start over" "$LINENO" 5
2615fi
2616## -------------------- ##
2617## Main body of script. ##
2618## -------------------- ##
2619
2620ac_ext=c
2621ac_cpp='$CPP $CPPFLAGS'
2622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2624ac_compiler_gnu=$ac_cv_c_compiler_gnu
2625
2626
2627
2628ac_config_headers="$ac_config_headers config.h"
2629
2630
2631
2632# Initialize Automake
2633am__api_version='1.16'
2634
2635
2636
2637  # Find a good install program.  We prefer a C program (faster),
2638# so one script is as good as another.  But avoid the broken or
2639# incompatible versions:
2640# SysV /etc/install, /usr/sbin/install
2641# SunOS /usr/etc/install
2642# IRIX /sbin/install
2643# AIX /bin/install
2644# AmigaOS /C/install, which installs bootblocks on floppy discs
2645# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2646# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2647# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2648# OS/2's system install, which has a completely different semantic
2649# ./install, which can be erroneously created by make from ./install.sh.
2650# Reject install programs that cannot install multiple files.
2651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2652printf %s "checking for a BSD-compatible install... " >&6; }
2653if test -z "$INSTALL"; then
2654if test ${ac_cv_path_install+y}
2655then :
2656  printf %s "(cached) " >&6
2657else $as_nop
2658  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659for as_dir in $PATH
2660do
2661  IFS=$as_save_IFS
2662  case $as_dir in #(((
2663    '') as_dir=./ ;;
2664    */) ;;
2665    *) as_dir=$as_dir/ ;;
2666  esac
2667    # Account for fact that we put trailing slashes in our PATH walk.
2668case $as_dir in #((
2669  ./ | /[cC]/* | \
2670  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2671  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2672  /usr/ucb/* ) ;;
2673  *)
2674    # OSF1 and SCO ODT 3.0 have their own names for install.
2675    # Don't use installbsd from OSF since it installs stuff as root
2676    # by default.
2677    for ac_prog in ginstall scoinst install; do
2678      for ac_exec_ext in '' $ac_executable_extensions; do
2679	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2680	  if test $ac_prog = install &&
2681	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2682	    # AIX install.  It has an incompatible calling convention.
2683	    :
2684	  elif test $ac_prog = install &&
2685	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2686	    # program-specific install script used by HP pwplus--don't use.
2687	    :
2688	  else
2689	    rm -rf conftest.one conftest.two conftest.dir
2690	    echo one > conftest.one
2691	    echo two > conftest.two
2692	    mkdir conftest.dir
2693	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2694	      test -s conftest.one && test -s conftest.two &&
2695	      test -s conftest.dir/conftest.one &&
2696	      test -s conftest.dir/conftest.two
2697	    then
2698	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2699	      break 3
2700	    fi
2701	  fi
2702	fi
2703      done
2704    done
2705    ;;
2706esac
2707
2708  done
2709IFS=$as_save_IFS
2710
2711rm -rf conftest.one conftest.two conftest.dir
2712
2713fi
2714  if test ${ac_cv_path_install+y}; then
2715    INSTALL=$ac_cv_path_install
2716  else
2717    # As a last resort, use the slow shell script.  Don't cache a
2718    # value for INSTALL within a source directory, because that will
2719    # break other packages using the cache if that directory is
2720    # removed, or if the value is a relative name.
2721    INSTALL=$ac_install_sh
2722  fi
2723fi
2724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2725printf "%s\n" "$INSTALL" >&6; }
2726
2727# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2728# It thinks the first close brace ends the variable substitution.
2729test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2730
2731test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2732
2733test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2734
2735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2736printf %s "checking whether build environment is sane... " >&6; }
2737# Reject unsafe characters in $srcdir or the absolute working directory
2738# name.  Accept space and tab only in the latter.
2739am_lf='
2740'
2741case `pwd` in
2742  *[\\\"\#\$\&\'\`$am_lf]*)
2743    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2744esac
2745case $srcdir in
2746  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2747    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2748esac
2749
2750# Do 'set' in a subshell so we don't clobber the current shell's
2751# arguments.  Must try -L first in case configure is actually a
2752# symlink; some systems play weird games with the mod time of symlinks
2753# (eg FreeBSD returns the mod time of the symlink's containing
2754# directory).
2755if (
2756   am_has_slept=no
2757   for am_try in 1 2; do
2758     echo "timestamp, slept: $am_has_slept" > conftest.file
2759     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2760     if test "$*" = "X"; then
2761	# -L didn't work.
2762	set X `ls -t "$srcdir/configure" conftest.file`
2763     fi
2764     if test "$*" != "X $srcdir/configure conftest.file" \
2765	&& test "$*" != "X conftest.file $srcdir/configure"; then
2766
2767	# If neither matched, then we have a broken ls.  This can happen
2768	# if, for instance, CONFIG_SHELL is bash and it inherits a
2769	# broken ls alias from the environment.  This has actually
2770	# happened.  Such a system could not be considered "sane".
2771	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2772  alias in your environment" "$LINENO" 5
2773     fi
2774     if test "$2" = conftest.file || test $am_try -eq 2; then
2775       break
2776     fi
2777     # Just in case.
2778     sleep 1
2779     am_has_slept=yes
2780   done
2781   test "$2" = conftest.file
2782   )
2783then
2784   # Ok.
2785   :
2786else
2787   as_fn_error $? "newly created file is older than distributed files!
2788Check your system clock" "$LINENO" 5
2789fi
2790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2791printf "%s\n" "yes" >&6; }
2792# If we didn't sleep, we still need to ensure time stamps of config.status and
2793# generated files are strictly newer.
2794am_sleep_pid=
2795if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2796  ( sleep 1 ) &
2797  am_sleep_pid=$!
2798fi
2799
2800rm -f conftest.file
2801
2802test "$program_prefix" != NONE &&
2803  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2804# Use a double $ so make ignores it.
2805test "$program_suffix" != NONE &&
2806  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2807# Double any \ or $.
2808# By default was `s,x,x', remove it if useless.
2809ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2810program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2811
2812
2813# Expand $ac_aux_dir to an absolute path.
2814am_aux_dir=`cd "$ac_aux_dir" && pwd`
2815
2816
2817  if test x"${MISSING+set}" != xset; then
2818  MISSING="\${SHELL} '$am_aux_dir/missing'"
2819fi
2820# Use eval to expand $SHELL
2821if eval "$MISSING --is-lightweight"; then
2822  am_missing_run="$MISSING "
2823else
2824  am_missing_run=
2825  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2826printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2827fi
2828
2829if test x"${install_sh+set}" != xset; then
2830  case $am_aux_dir in
2831  *\ * | *\	*)
2832    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2833  *)
2834    install_sh="\${SHELL} $am_aux_dir/install-sh"
2835  esac
2836fi
2837
2838# Installed binaries are usually stripped using 'strip' when the user
2839# run "make install-strip".  However 'strip' might not be the right
2840# tool to use in cross-compilation environments, therefore Automake
2841# will honor the 'STRIP' environment variable to overrule this program.
2842if test "$cross_compiling" != no; then
2843  if test -n "$ac_tool_prefix"; then
2844  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2845set dummy ${ac_tool_prefix}strip; ac_word=$2
2846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847printf %s "checking for $ac_word... " >&6; }
2848if test ${ac_cv_prog_STRIP+y}
2849then :
2850  printf %s "(cached) " >&6
2851else $as_nop
2852  if test -n "$STRIP"; then
2853  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2854else
2855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856for as_dir in $PATH
2857do
2858  IFS=$as_save_IFS
2859  case $as_dir in #(((
2860    '') as_dir=./ ;;
2861    */) ;;
2862    *) as_dir=$as_dir/ ;;
2863  esac
2864    for ac_exec_ext in '' $ac_executable_extensions; do
2865  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2866    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2867    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2868    break 2
2869  fi
2870done
2871  done
2872IFS=$as_save_IFS
2873
2874fi
2875fi
2876STRIP=$ac_cv_prog_STRIP
2877if test -n "$STRIP"; then
2878  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2879printf "%s\n" "$STRIP" >&6; }
2880else
2881  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882printf "%s\n" "no" >&6; }
2883fi
2884
2885
2886fi
2887if test -z "$ac_cv_prog_STRIP"; then
2888  ac_ct_STRIP=$STRIP
2889  # Extract the first word of "strip", so it can be a program name with args.
2890set dummy strip; ac_word=$2
2891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892printf %s "checking for $ac_word... " >&6; }
2893if test ${ac_cv_prog_ac_ct_STRIP+y}
2894then :
2895  printf %s "(cached) " >&6
2896else $as_nop
2897  if test -n "$ac_ct_STRIP"; then
2898  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2899else
2900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901for as_dir in $PATH
2902do
2903  IFS=$as_save_IFS
2904  case $as_dir in #(((
2905    '') as_dir=./ ;;
2906    */) ;;
2907    *) as_dir=$as_dir/ ;;
2908  esac
2909    for ac_exec_ext in '' $ac_executable_extensions; do
2910  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2911    ac_cv_prog_ac_ct_STRIP="strip"
2912    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2913    break 2
2914  fi
2915done
2916  done
2917IFS=$as_save_IFS
2918
2919fi
2920fi
2921ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2922if test -n "$ac_ct_STRIP"; then
2923  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2924printf "%s\n" "$ac_ct_STRIP" >&6; }
2925else
2926  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927printf "%s\n" "no" >&6; }
2928fi
2929
2930  if test "x$ac_ct_STRIP" = x; then
2931    STRIP=":"
2932  else
2933    case $cross_compiling:$ac_tool_warned in
2934yes:)
2935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2936printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2937ac_tool_warned=yes ;;
2938esac
2939    STRIP=$ac_ct_STRIP
2940  fi
2941else
2942  STRIP="$ac_cv_prog_STRIP"
2943fi
2944
2945fi
2946INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2947
2948
2949  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2950printf %s "checking for a race-free mkdir -p... " >&6; }
2951if test -z "$MKDIR_P"; then
2952  if test ${ac_cv_path_mkdir+y}
2953then :
2954  printf %s "(cached) " >&6
2955else $as_nop
2956  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2958do
2959  IFS=$as_save_IFS
2960  case $as_dir in #(((
2961    '') as_dir=./ ;;
2962    */) ;;
2963    *) as_dir=$as_dir/ ;;
2964  esac
2965    for ac_prog in mkdir gmkdir; do
2966	 for ac_exec_ext in '' $ac_executable_extensions; do
2967	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2968	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2969	     'mkdir ('*'coreutils) '* | \
2970	     'BusyBox '* | \
2971	     'mkdir (fileutils) '4.1*)
2972	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2973	       break 3;;
2974	   esac
2975	 done
2976       done
2977  done
2978IFS=$as_save_IFS
2979
2980fi
2981
2982  test -d ./--version && rmdir ./--version
2983  if test ${ac_cv_path_mkdir+y}; then
2984    MKDIR_P="$ac_cv_path_mkdir -p"
2985  else
2986    # As a last resort, use the slow shell script.  Don't cache a
2987    # value for MKDIR_P within a source directory, because that will
2988    # break other packages using the cache if that directory is
2989    # removed, or if the value is a relative name.
2990    MKDIR_P="$ac_install_sh -d"
2991  fi
2992fi
2993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2994printf "%s\n" "$MKDIR_P" >&6; }
2995
2996for ac_prog in gawk mawk nawk awk
2997do
2998  # Extract the first word of "$ac_prog", so it can be a program name with args.
2999set dummy $ac_prog; ac_word=$2
3000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001printf %s "checking for $ac_word... " >&6; }
3002if test ${ac_cv_prog_AWK+y}
3003then :
3004  printf %s "(cached) " >&6
3005else $as_nop
3006  if test -n "$AWK"; then
3007  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3008else
3009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010for as_dir in $PATH
3011do
3012  IFS=$as_save_IFS
3013  case $as_dir in #(((
3014    '') as_dir=./ ;;
3015    */) ;;
3016    *) as_dir=$as_dir/ ;;
3017  esac
3018    for ac_exec_ext in '' $ac_executable_extensions; do
3019  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3020    ac_cv_prog_AWK="$ac_prog"
3021    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3022    break 2
3023  fi
3024done
3025  done
3026IFS=$as_save_IFS
3027
3028fi
3029fi
3030AWK=$ac_cv_prog_AWK
3031if test -n "$AWK"; then
3032  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3033printf "%s\n" "$AWK" >&6; }
3034else
3035  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036printf "%s\n" "no" >&6; }
3037fi
3038
3039
3040  test -n "$AWK" && break
3041done
3042
3043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3044printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3045set x ${MAKE-make}
3046ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3047if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3048then :
3049  printf %s "(cached) " >&6
3050else $as_nop
3051  cat >conftest.make <<\_ACEOF
3052SHELL = /bin/sh
3053all:
3054	@echo '@@@%%%=$(MAKE)=@@@%%%'
3055_ACEOF
3056# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3057case `${MAKE-make} -f conftest.make 2>/dev/null` in
3058  *@@@%%%=?*=@@@%%%*)
3059    eval ac_cv_prog_make_${ac_make}_set=yes;;
3060  *)
3061    eval ac_cv_prog_make_${ac_make}_set=no;;
3062esac
3063rm -f conftest.make
3064fi
3065if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3066  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3067printf "%s\n" "yes" >&6; }
3068  SET_MAKE=
3069else
3070  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071printf "%s\n" "no" >&6; }
3072  SET_MAKE="MAKE=${MAKE-make}"
3073fi
3074
3075rm -rf .tst 2>/dev/null
3076mkdir .tst 2>/dev/null
3077if test -d .tst; then
3078  am__leading_dot=.
3079else
3080  am__leading_dot=_
3081fi
3082rmdir .tst 2>/dev/null
3083
3084# Check whether --enable-silent-rules was given.
3085if test ${enable_silent_rules+y}
3086then :
3087  enableval=$enable_silent_rules;
3088fi
3089
3090case $enable_silent_rules in # (((
3091  yes) AM_DEFAULT_VERBOSITY=0;;
3092   no) AM_DEFAULT_VERBOSITY=1;;
3093    *) AM_DEFAULT_VERBOSITY=1;;
3094esac
3095am_make=${MAKE-make}
3096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3097printf %s "checking whether $am_make supports nested variables... " >&6; }
3098if test ${am_cv_make_support_nested_variables+y}
3099then :
3100  printf %s "(cached) " >&6
3101else $as_nop
3102  if printf "%s\n" 'TRUE=$(BAR$(V))
3103BAR0=false
3104BAR1=true
3105V=1
3106am__doit:
3107	@$(TRUE)
3108.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3109  am_cv_make_support_nested_variables=yes
3110else
3111  am_cv_make_support_nested_variables=no
3112fi
3113fi
3114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3115printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3116if test $am_cv_make_support_nested_variables = yes; then
3117    AM_V='$(V)'
3118  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3119else
3120  AM_V=$AM_DEFAULT_VERBOSITY
3121  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3122fi
3123AM_BACKSLASH='\'
3124
3125if test "`cd $srcdir && pwd`" != "`pwd`"; then
3126  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3127  # is not polluted with repeated "-I."
3128  am__isrc=' -I$(srcdir)'
3129  # test to see if srcdir already configured
3130  if test -f $srcdir/config.status; then
3131    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3132  fi
3133fi
3134
3135# test whether we have cygpath
3136if test -z "$CYGPATH_W"; then
3137  if (cygpath --version) >/dev/null 2>/dev/null; then
3138    CYGPATH_W='cygpath -w'
3139  else
3140    CYGPATH_W=echo
3141  fi
3142fi
3143
3144
3145# Define the identity of the package.
3146 PACKAGE='xf86-video-cirrus'
3147 VERSION='1.6.0'
3148
3149
3150printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3151
3152
3153printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3154
3155# Some tools Automake needs.
3156
3157ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3158
3159
3160AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3161
3162
3163AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3164
3165
3166AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3167
3168
3169MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3170
3171# For better backward compatibility.  To be removed once Automake 1.9.x
3172# dies out for good.  For more background, see:
3173# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3174# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3175mkdir_p='$(MKDIR_P)'
3176
3177# We need awk for the "check" target (and possibly the TAP driver).  The
3178# system "awk" is bad on some platforms.
3179# Always define AMTAR for backward compatibility.  Yes, it's still used
3180# in the wild :-(  We should find a proper way to deprecate it ...
3181AMTAR='$${TAR-tar}'
3182
3183
3184# We'll loop over all known methods to create a tar archive until one works.
3185_am_tools='gnutar  pax cpio none'
3186
3187am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3188
3189
3190
3191
3192
3193# Variables for tags utilities; see am/tags.am
3194if test -z "$CTAGS"; then
3195  CTAGS=ctags
3196fi
3197
3198if test -z "$ETAGS"; then
3199  ETAGS=etags
3200fi
3201
3202if test -z "$CSCOPE"; then
3203  CSCOPE=cscope
3204fi
3205
3206
3207
3208# POSIX will say in a future version that running "rm -f" with no argument
3209# is OK; and we want to be able to make that assumption in our Makefile
3210# recipes.  So use an aggressive probe to check that the usage we want is
3211# actually supported "in the wild" to an acceptable degree.
3212# See automake bug#10828.
3213# To make any issue more visible, cause the running configure to be aborted
3214# by default if the 'rm' program in use doesn't match our expectations; the
3215# user can still override this though.
3216if rm -f && rm -fr && rm -rf; then : OK; else
3217  cat >&2 <<'END'
3218Oops!
3219
3220Your 'rm' program seems unable to run without file operands specified
3221on the command line, even when the '-f' option is present.  This is contrary
3222to the behaviour of most rm programs out there, and not conforming with
3223the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3224
3225Please tell bug-automake@gnu.org about your system, including the value
3226of your $PATH and any error possibly output before this message.  This
3227can help us improve future automake versions.
3228
3229END
3230  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3231    echo 'Configuration will proceed anyway, since you have set the' >&2
3232    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3233    echo >&2
3234  else
3235    cat >&2 <<'END'
3236Aborting the configuration process, to ensure you take notice of the issue.
3237
3238You can download and install GNU coreutils to get an 'rm' implementation
3239that behaves properly: <https://www.gnu.org/software/coreutils/>.
3240
3241If you want to complete the configuration process using your problematic
3242'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3243to "yes", and re-run configure.
3244
3245END
3246    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3247  fi
3248fi
3249
3250
3251# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272DEPDIR="${am__leading_dot}deps"
3273
3274ac_config_commands="$ac_config_commands depfiles"
3275
3276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3277printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3278cat > confinc.mk << 'END'
3279am__doit:
3280	@echo this is the am__doit target >confinc.out
3281.PHONY: am__doit
3282END
3283am__include="#"
3284am__quote=
3285# BSD make does it like this.
3286echo '.include "confinc.mk" # ignored' > confmf.BSD
3287# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3288echo 'include confinc.mk # ignored' > confmf.GNU
3289_am_result=no
3290for s in GNU BSD; do
3291  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3292   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3293   ac_status=$?
3294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295   (exit $ac_status); }
3296  case $?:`cat confinc.out 2>/dev/null` in #(
3297  '0:this is the am__doit target') :
3298    case $s in #(
3299  BSD) :
3300    am__include='.include' am__quote='"' ;; #(
3301  *) :
3302    am__include='include' am__quote='' ;;
3303esac ;; #(
3304  *) :
3305     ;;
3306esac
3307  if test "$am__include" != "#"; then
3308    _am_result="yes ($s style)"
3309    break
3310  fi
3311done
3312rm -f confinc.* confmf.*
3313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3314printf "%s\n" "${_am_result}" >&6; }
3315
3316# Check whether --enable-dependency-tracking was given.
3317if test ${enable_dependency_tracking+y}
3318then :
3319  enableval=$enable_dependency_tracking;
3320fi
3321
3322if test "x$enable_dependency_tracking" != xno; then
3323  am_depcomp="$ac_aux_dir/depcomp"
3324  AMDEPBACKSLASH='\'
3325  am__nodep='_no'
3326fi
3327 if test "x$enable_dependency_tracking" != xno; then
3328  AMDEP_TRUE=
3329  AMDEP_FALSE='#'
3330else
3331  AMDEP_TRUE='#'
3332  AMDEP_FALSE=
3333fi
3334
3335
3336ac_ext=c
3337ac_cpp='$CPP $CPPFLAGS'
3338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340ac_compiler_gnu=$ac_cv_c_compiler_gnu
3341if test -n "$ac_tool_prefix"; then
3342  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3343set dummy ${ac_tool_prefix}gcc; ac_word=$2
3344{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345printf %s "checking for $ac_word... " >&6; }
3346if test ${ac_cv_prog_CC+y}
3347then :
3348  printf %s "(cached) " >&6
3349else $as_nop
3350  if test -n "$CC"; then
3351  ac_cv_prog_CC="$CC" # Let the user override the test.
3352else
3353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354for as_dir in $PATH
3355do
3356  IFS=$as_save_IFS
3357  case $as_dir in #(((
3358    '') as_dir=./ ;;
3359    */) ;;
3360    *) as_dir=$as_dir/ ;;
3361  esac
3362    for ac_exec_ext in '' $ac_executable_extensions; do
3363  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3364    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3365    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3366    break 2
3367  fi
3368done
3369  done
3370IFS=$as_save_IFS
3371
3372fi
3373fi
3374CC=$ac_cv_prog_CC
3375if test -n "$CC"; then
3376  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3377printf "%s\n" "$CC" >&6; }
3378else
3379  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380printf "%s\n" "no" >&6; }
3381fi
3382
3383
3384fi
3385if test -z "$ac_cv_prog_CC"; then
3386  ac_ct_CC=$CC
3387  # Extract the first word of "gcc", so it can be a program name with args.
3388set dummy gcc; ac_word=$2
3389{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390printf %s "checking for $ac_word... " >&6; }
3391if test ${ac_cv_prog_ac_ct_CC+y}
3392then :
3393  printf %s "(cached) " >&6
3394else $as_nop
3395  if test -n "$ac_ct_CC"; then
3396  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3397else
3398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399for as_dir in $PATH
3400do
3401  IFS=$as_save_IFS
3402  case $as_dir in #(((
3403    '') as_dir=./ ;;
3404    */) ;;
3405    *) as_dir=$as_dir/ ;;
3406  esac
3407    for ac_exec_ext in '' $ac_executable_extensions; do
3408  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3409    ac_cv_prog_ac_ct_CC="gcc"
3410    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3411    break 2
3412  fi
3413done
3414  done
3415IFS=$as_save_IFS
3416
3417fi
3418fi
3419ac_ct_CC=$ac_cv_prog_ac_ct_CC
3420if test -n "$ac_ct_CC"; then
3421  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3422printf "%s\n" "$ac_ct_CC" >&6; }
3423else
3424  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425printf "%s\n" "no" >&6; }
3426fi
3427
3428  if test "x$ac_ct_CC" = x; then
3429    CC=""
3430  else
3431    case $cross_compiling:$ac_tool_warned in
3432yes:)
3433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3434printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3435ac_tool_warned=yes ;;
3436esac
3437    CC=$ac_ct_CC
3438  fi
3439else
3440  CC="$ac_cv_prog_CC"
3441fi
3442
3443if test -z "$CC"; then
3444          if test -n "$ac_tool_prefix"; then
3445    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3446set dummy ${ac_tool_prefix}cc; ac_word=$2
3447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3448printf %s "checking for $ac_word... " >&6; }
3449if test ${ac_cv_prog_CC+y}
3450then :
3451  printf %s "(cached) " >&6
3452else $as_nop
3453  if test -n "$CC"; then
3454  ac_cv_prog_CC="$CC" # Let the user override the test.
3455else
3456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457for as_dir in $PATH
3458do
3459  IFS=$as_save_IFS
3460  case $as_dir in #(((
3461    '') as_dir=./ ;;
3462    */) ;;
3463    *) as_dir=$as_dir/ ;;
3464  esac
3465    for ac_exec_ext in '' $ac_executable_extensions; do
3466  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3467    ac_cv_prog_CC="${ac_tool_prefix}cc"
3468    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3469    break 2
3470  fi
3471done
3472  done
3473IFS=$as_save_IFS
3474
3475fi
3476fi
3477CC=$ac_cv_prog_CC
3478if test -n "$CC"; then
3479  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3480printf "%s\n" "$CC" >&6; }
3481else
3482  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483printf "%s\n" "no" >&6; }
3484fi
3485
3486
3487  fi
3488fi
3489if test -z "$CC"; then
3490  # Extract the first word of "cc", so it can be a program name with args.
3491set dummy cc; ac_word=$2
3492{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493printf %s "checking for $ac_word... " >&6; }
3494if test ${ac_cv_prog_CC+y}
3495then :
3496  printf %s "(cached) " >&6
3497else $as_nop
3498  if test -n "$CC"; then
3499  ac_cv_prog_CC="$CC" # Let the user override the test.
3500else
3501  ac_prog_rejected=no
3502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503for as_dir in $PATH
3504do
3505  IFS=$as_save_IFS
3506  case $as_dir in #(((
3507    '') as_dir=./ ;;
3508    */) ;;
3509    *) as_dir=$as_dir/ ;;
3510  esac
3511    for ac_exec_ext in '' $ac_executable_extensions; do
3512  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3513    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3514       ac_prog_rejected=yes
3515       continue
3516     fi
3517    ac_cv_prog_CC="cc"
3518    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3519    break 2
3520  fi
3521done
3522  done
3523IFS=$as_save_IFS
3524
3525if test $ac_prog_rejected = yes; then
3526  # We found a bogon in the path, so make sure we never use it.
3527  set dummy $ac_cv_prog_CC
3528  shift
3529  if test $# != 0; then
3530    # We chose a different compiler from the bogus one.
3531    # However, it has the same basename, so the bogon will be chosen
3532    # first if we set CC to just the basename; use the full file name.
3533    shift
3534    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3535  fi
3536fi
3537fi
3538fi
3539CC=$ac_cv_prog_CC
3540if test -n "$CC"; then
3541  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542printf "%s\n" "$CC" >&6; }
3543else
3544  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545printf "%s\n" "no" >&6; }
3546fi
3547
3548
3549fi
3550if test -z "$CC"; then
3551  if test -n "$ac_tool_prefix"; then
3552  for ac_prog in cl.exe
3553  do
3554    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3555set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557printf %s "checking for $ac_word... " >&6; }
3558if test ${ac_cv_prog_CC+y}
3559then :
3560  printf %s "(cached) " >&6
3561else $as_nop
3562  if test -n "$CC"; then
3563  ac_cv_prog_CC="$CC" # Let the user override the test.
3564else
3565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566for as_dir in $PATH
3567do
3568  IFS=$as_save_IFS
3569  case $as_dir in #(((
3570    '') as_dir=./ ;;
3571    */) ;;
3572    *) as_dir=$as_dir/ ;;
3573  esac
3574    for ac_exec_ext in '' $ac_executable_extensions; do
3575  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3576    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3577    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3578    break 2
3579  fi
3580done
3581  done
3582IFS=$as_save_IFS
3583
3584fi
3585fi
3586CC=$ac_cv_prog_CC
3587if test -n "$CC"; then
3588  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3589printf "%s\n" "$CC" >&6; }
3590else
3591  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592printf "%s\n" "no" >&6; }
3593fi
3594
3595
3596    test -n "$CC" && break
3597  done
3598fi
3599if test -z "$CC"; then
3600  ac_ct_CC=$CC
3601  for ac_prog in cl.exe
3602do
3603  # Extract the first word of "$ac_prog", so it can be a program name with args.
3604set dummy $ac_prog; ac_word=$2
3605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3606printf %s "checking for $ac_word... " >&6; }
3607if test ${ac_cv_prog_ac_ct_CC+y}
3608then :
3609  printf %s "(cached) " >&6
3610else $as_nop
3611  if test -n "$ac_ct_CC"; then
3612  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3613else
3614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615for as_dir in $PATH
3616do
3617  IFS=$as_save_IFS
3618  case $as_dir in #(((
3619    '') as_dir=./ ;;
3620    */) ;;
3621    *) as_dir=$as_dir/ ;;
3622  esac
3623    for ac_exec_ext in '' $ac_executable_extensions; do
3624  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3625    ac_cv_prog_ac_ct_CC="$ac_prog"
3626    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3627    break 2
3628  fi
3629done
3630  done
3631IFS=$as_save_IFS
3632
3633fi
3634fi
3635ac_ct_CC=$ac_cv_prog_ac_ct_CC
3636if test -n "$ac_ct_CC"; then
3637  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3638printf "%s\n" "$ac_ct_CC" >&6; }
3639else
3640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641printf "%s\n" "no" >&6; }
3642fi
3643
3644
3645  test -n "$ac_ct_CC" && break
3646done
3647
3648  if test "x$ac_ct_CC" = x; then
3649    CC=""
3650  else
3651    case $cross_compiling:$ac_tool_warned in
3652yes:)
3653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3654printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3655ac_tool_warned=yes ;;
3656esac
3657    CC=$ac_ct_CC
3658  fi
3659fi
3660
3661fi
3662if test -z "$CC"; then
3663  if test -n "$ac_tool_prefix"; then
3664  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3665set dummy ${ac_tool_prefix}clang; ac_word=$2
3666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3667printf %s "checking for $ac_word... " >&6; }
3668if test ${ac_cv_prog_CC+y}
3669then :
3670  printf %s "(cached) " >&6
3671else $as_nop
3672  if test -n "$CC"; then
3673  ac_cv_prog_CC="$CC" # Let the user override the test.
3674else
3675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676for as_dir in $PATH
3677do
3678  IFS=$as_save_IFS
3679  case $as_dir in #(((
3680    '') as_dir=./ ;;
3681    */) ;;
3682    *) as_dir=$as_dir/ ;;
3683  esac
3684    for ac_exec_ext in '' $ac_executable_extensions; do
3685  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3686    ac_cv_prog_CC="${ac_tool_prefix}clang"
3687    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3688    break 2
3689  fi
3690done
3691  done
3692IFS=$as_save_IFS
3693
3694fi
3695fi
3696CC=$ac_cv_prog_CC
3697if test -n "$CC"; then
3698  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3699printf "%s\n" "$CC" >&6; }
3700else
3701  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702printf "%s\n" "no" >&6; }
3703fi
3704
3705
3706fi
3707if test -z "$ac_cv_prog_CC"; then
3708  ac_ct_CC=$CC
3709  # Extract the first word of "clang", so it can be a program name with args.
3710set dummy clang; ac_word=$2
3711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712printf %s "checking for $ac_word... " >&6; }
3713if test ${ac_cv_prog_ac_ct_CC+y}
3714then :
3715  printf %s "(cached) " >&6
3716else $as_nop
3717  if test -n "$ac_ct_CC"; then
3718  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3719else
3720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721for as_dir in $PATH
3722do
3723  IFS=$as_save_IFS
3724  case $as_dir in #(((
3725    '') as_dir=./ ;;
3726    */) ;;
3727    *) as_dir=$as_dir/ ;;
3728  esac
3729    for ac_exec_ext in '' $ac_executable_extensions; do
3730  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3731    ac_cv_prog_ac_ct_CC="clang"
3732    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3733    break 2
3734  fi
3735done
3736  done
3737IFS=$as_save_IFS
3738
3739fi
3740fi
3741ac_ct_CC=$ac_cv_prog_ac_ct_CC
3742if test -n "$ac_ct_CC"; then
3743  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3744printf "%s\n" "$ac_ct_CC" >&6; }
3745else
3746  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747printf "%s\n" "no" >&6; }
3748fi
3749
3750  if test "x$ac_ct_CC" = x; then
3751    CC=""
3752  else
3753    case $cross_compiling:$ac_tool_warned in
3754yes:)
3755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3756printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3757ac_tool_warned=yes ;;
3758esac
3759    CC=$ac_ct_CC
3760  fi
3761else
3762  CC="$ac_cv_prog_CC"
3763fi
3764
3765fi
3766
3767
3768test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3769printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3770as_fn_error $? "no acceptable C compiler found in \$PATH
3771See \`config.log' for more details" "$LINENO" 5; }
3772
3773# Provide some information about the compiler.
3774printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3775set X $ac_compile
3776ac_compiler=$2
3777for ac_option in --version -v -V -qversion -version; do
3778  { { ac_try="$ac_compiler $ac_option >&5"
3779case "(($ac_try" in
3780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781  *) ac_try_echo=$ac_try;;
3782esac
3783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3784printf "%s\n" "$ac_try_echo"; } >&5
3785  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3786  ac_status=$?
3787  if test -s conftest.err; then
3788    sed '10a\
3789... rest of stderr output deleted ...
3790         10q' conftest.err >conftest.er1
3791    cat conftest.er1 >&5
3792  fi
3793  rm -f conftest.er1 conftest.err
3794  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795  test $ac_status = 0; }
3796done
3797
3798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799/* end confdefs.h.  */
3800
3801int
3802main (void)
3803{
3804
3805  ;
3806  return 0;
3807}
3808_ACEOF
3809ac_clean_files_save=$ac_clean_files
3810ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3811# Try to create an executable without -o first, disregard a.out.
3812# It will help us diagnose broken compilers, and finding out an intuition
3813# of exeext.
3814{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3815printf %s "checking whether the C compiler works... " >&6; }
3816ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3817
3818# The possible output files:
3819ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3820
3821ac_rmfiles=
3822for ac_file in $ac_files
3823do
3824  case $ac_file in
3825    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3826    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3827  esac
3828done
3829rm -f $ac_rmfiles
3830
3831if { { ac_try="$ac_link_default"
3832case "(($ac_try" in
3833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834  *) ac_try_echo=$ac_try;;
3835esac
3836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3837printf "%s\n" "$ac_try_echo"; } >&5
3838  (eval "$ac_link_default") 2>&5
3839  ac_status=$?
3840  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3841  test $ac_status = 0; }
3842then :
3843  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3844# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3845# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3846# so that the user can short-circuit this test for compilers unknown to
3847# Autoconf.
3848for ac_file in $ac_files ''
3849do
3850  test -f "$ac_file" || continue
3851  case $ac_file in
3852    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3853	;;
3854    [ab].out )
3855	# We found the default executable, but exeext='' is most
3856	# certainly right.
3857	break;;
3858    *.* )
3859	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3860	then :; else
3861	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3862	fi
3863	# We set ac_cv_exeext here because the later test for it is not
3864	# safe: cross compilers may not add the suffix if given an `-o'
3865	# argument, so we may need to know it at that point already.
3866	# Even if this section looks crufty: it has the advantage of
3867	# actually working.
3868	break;;
3869    * )
3870	break;;
3871  esac
3872done
3873test "$ac_cv_exeext" = no && ac_cv_exeext=
3874
3875else $as_nop
3876  ac_file=''
3877fi
3878if test -z "$ac_file"
3879then :
3880  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881printf "%s\n" "no" >&6; }
3882printf "%s\n" "$as_me: failed program was:" >&5
3883sed 's/^/| /' conftest.$ac_ext >&5
3884
3885{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3886printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3887as_fn_error 77 "C compiler cannot create executables
3888See \`config.log' for more details" "$LINENO" 5; }
3889else $as_nop
3890  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3891printf "%s\n" "yes" >&6; }
3892fi
3893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3894printf %s "checking for C compiler default output file name... " >&6; }
3895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3896printf "%s\n" "$ac_file" >&6; }
3897ac_exeext=$ac_cv_exeext
3898
3899rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3900ac_clean_files=$ac_clean_files_save
3901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3902printf %s "checking for suffix of executables... " >&6; }
3903if { { ac_try="$ac_link"
3904case "(($ac_try" in
3905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906  *) ac_try_echo=$ac_try;;
3907esac
3908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3909printf "%s\n" "$ac_try_echo"; } >&5
3910  (eval "$ac_link") 2>&5
3911  ac_status=$?
3912  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3913  test $ac_status = 0; }
3914then :
3915  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3916# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3917# work properly (i.e., refer to `conftest.exe'), while it won't with
3918# `rm'.
3919for ac_file in conftest.exe conftest conftest.*; do
3920  test -f "$ac_file" || continue
3921  case $ac_file in
3922    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3923    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3924	  break;;
3925    * ) break;;
3926  esac
3927done
3928else $as_nop
3929  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3931as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3932See \`config.log' for more details" "$LINENO" 5; }
3933fi
3934rm -f conftest conftest$ac_cv_exeext
3935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3936printf "%s\n" "$ac_cv_exeext" >&6; }
3937
3938rm -f conftest.$ac_ext
3939EXEEXT=$ac_cv_exeext
3940ac_exeext=$EXEEXT
3941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942/* end confdefs.h.  */
3943#include <stdio.h>
3944int
3945main (void)
3946{
3947FILE *f = fopen ("conftest.out", "w");
3948 return ferror (f) || fclose (f) != 0;
3949
3950  ;
3951  return 0;
3952}
3953_ACEOF
3954ac_clean_files="$ac_clean_files conftest.out"
3955# Check that the compiler produces executables we can run.  If not, either
3956# the compiler is broken, or we cross compile.
3957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3958printf %s "checking whether we are cross compiling... " >&6; }
3959if test "$cross_compiling" != yes; then
3960  { { ac_try="$ac_link"
3961case "(($ac_try" in
3962  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963  *) ac_try_echo=$ac_try;;
3964esac
3965eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3966printf "%s\n" "$ac_try_echo"; } >&5
3967  (eval "$ac_link") 2>&5
3968  ac_status=$?
3969  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3970  test $ac_status = 0; }
3971  if { ac_try='./conftest$ac_cv_exeext'
3972  { { case "(($ac_try" in
3973  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974  *) ac_try_echo=$ac_try;;
3975esac
3976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977printf "%s\n" "$ac_try_echo"; } >&5
3978  (eval "$ac_try") 2>&5
3979  ac_status=$?
3980  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981  test $ac_status = 0; }; }; then
3982    cross_compiling=no
3983  else
3984    if test "$cross_compiling" = maybe; then
3985	cross_compiling=yes
3986    else
3987	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3988printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3989as_fn_error 77 "cannot run C compiled programs.
3990If you meant to cross compile, use \`--host'.
3991See \`config.log' for more details" "$LINENO" 5; }
3992    fi
3993  fi
3994fi
3995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3996printf "%s\n" "$cross_compiling" >&6; }
3997
3998rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3999ac_clean_files=$ac_clean_files_save
4000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4001printf %s "checking for suffix of object files... " >&6; }
4002if test ${ac_cv_objext+y}
4003then :
4004  printf %s "(cached) " >&6
4005else $as_nop
4006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007/* end confdefs.h.  */
4008
4009int
4010main (void)
4011{
4012
4013  ;
4014  return 0;
4015}
4016_ACEOF
4017rm -f conftest.o conftest.obj
4018if { { ac_try="$ac_compile"
4019case "(($ac_try" in
4020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4021  *) ac_try_echo=$ac_try;;
4022esac
4023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4024printf "%s\n" "$ac_try_echo"; } >&5
4025  (eval "$ac_compile") 2>&5
4026  ac_status=$?
4027  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4028  test $ac_status = 0; }
4029then :
4030  for ac_file in conftest.o conftest.obj conftest.*; do
4031  test -f "$ac_file" || continue;
4032  case $ac_file in
4033    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4034    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4035       break;;
4036  esac
4037done
4038else $as_nop
4039  printf "%s\n" "$as_me: failed program was:" >&5
4040sed 's/^/| /' conftest.$ac_ext >&5
4041
4042{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4043printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4044as_fn_error $? "cannot compute suffix of object files: cannot compile
4045See \`config.log' for more details" "$LINENO" 5; }
4046fi
4047rm -f conftest.$ac_cv_objext conftest.$ac_ext
4048fi
4049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4050printf "%s\n" "$ac_cv_objext" >&6; }
4051OBJEXT=$ac_cv_objext
4052ac_objext=$OBJEXT
4053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4054printf %s "checking whether the compiler supports GNU C... " >&6; }
4055if test ${ac_cv_c_compiler_gnu+y}
4056then :
4057  printf %s "(cached) " >&6
4058else $as_nop
4059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060/* end confdefs.h.  */
4061
4062int
4063main (void)
4064{
4065#ifndef __GNUC__
4066       choke me
4067#endif
4068
4069  ;
4070  return 0;
4071}
4072_ACEOF
4073if ac_fn_c_try_compile "$LINENO"
4074then :
4075  ac_compiler_gnu=yes
4076else $as_nop
4077  ac_compiler_gnu=no
4078fi
4079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4080ac_cv_c_compiler_gnu=$ac_compiler_gnu
4081
4082fi
4083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4084printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4085ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086
4087if test $ac_compiler_gnu = yes; then
4088  GCC=yes
4089else
4090  GCC=
4091fi
4092ac_test_CFLAGS=${CFLAGS+y}
4093ac_save_CFLAGS=$CFLAGS
4094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4095printf %s "checking whether $CC accepts -g... " >&6; }
4096if test ${ac_cv_prog_cc_g+y}
4097then :
4098  printf %s "(cached) " >&6
4099else $as_nop
4100  ac_save_c_werror_flag=$ac_c_werror_flag
4101   ac_c_werror_flag=yes
4102   ac_cv_prog_cc_g=no
4103   CFLAGS="-g"
4104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105/* end confdefs.h.  */
4106
4107int
4108main (void)
4109{
4110
4111  ;
4112  return 0;
4113}
4114_ACEOF
4115if ac_fn_c_try_compile "$LINENO"
4116then :
4117  ac_cv_prog_cc_g=yes
4118else $as_nop
4119  CFLAGS=""
4120      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121/* end confdefs.h.  */
4122
4123int
4124main (void)
4125{
4126
4127  ;
4128  return 0;
4129}
4130_ACEOF
4131if ac_fn_c_try_compile "$LINENO"
4132then :
4133
4134else $as_nop
4135  ac_c_werror_flag=$ac_save_c_werror_flag
4136	 CFLAGS="-g"
4137	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138/* end confdefs.h.  */
4139
4140int
4141main (void)
4142{
4143
4144  ;
4145  return 0;
4146}
4147_ACEOF
4148if ac_fn_c_try_compile "$LINENO"
4149then :
4150  ac_cv_prog_cc_g=yes
4151fi
4152rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4153fi
4154rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4155fi
4156rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4157   ac_c_werror_flag=$ac_save_c_werror_flag
4158fi
4159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4160printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4161if test $ac_test_CFLAGS; then
4162  CFLAGS=$ac_save_CFLAGS
4163elif test $ac_cv_prog_cc_g = yes; then
4164  if test "$GCC" = yes; then
4165    CFLAGS="-g -O2"
4166  else
4167    CFLAGS="-g"
4168  fi
4169else
4170  if test "$GCC" = yes; then
4171    CFLAGS="-O2"
4172  else
4173    CFLAGS=
4174  fi
4175fi
4176ac_prog_cc_stdc=no
4177if test x$ac_prog_cc_stdc = xno
4178then :
4179  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4180printf %s "checking for $CC option to enable C11 features... " >&6; }
4181if test ${ac_cv_prog_cc_c11+y}
4182then :
4183  printf %s "(cached) " >&6
4184else $as_nop
4185  ac_cv_prog_cc_c11=no
4186ac_save_CC=$CC
4187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188/* end confdefs.h.  */
4189$ac_c_conftest_c11_program
4190_ACEOF
4191for ac_arg in '' -std=gnu11
4192do
4193  CC="$ac_save_CC $ac_arg"
4194  if ac_fn_c_try_compile "$LINENO"
4195then :
4196  ac_cv_prog_cc_c11=$ac_arg
4197fi
4198rm -f core conftest.err conftest.$ac_objext conftest.beam
4199  test "x$ac_cv_prog_cc_c11" != "xno" && break
4200done
4201rm -f conftest.$ac_ext
4202CC=$ac_save_CC
4203fi
4204
4205if test "x$ac_cv_prog_cc_c11" = xno
4206then :
4207  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4208printf "%s\n" "unsupported" >&6; }
4209else $as_nop
4210  if test "x$ac_cv_prog_cc_c11" = x
4211then :
4212  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4213printf "%s\n" "none needed" >&6; }
4214else $as_nop
4215  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4216printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4217     CC="$CC $ac_cv_prog_cc_c11"
4218fi
4219  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4220  ac_prog_cc_stdc=c11
4221fi
4222fi
4223if test x$ac_prog_cc_stdc = xno
4224then :
4225  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4226printf %s "checking for $CC option to enable C99 features... " >&6; }
4227if test ${ac_cv_prog_cc_c99+y}
4228then :
4229  printf %s "(cached) " >&6
4230else $as_nop
4231  ac_cv_prog_cc_c99=no
4232ac_save_CC=$CC
4233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234/* end confdefs.h.  */
4235$ac_c_conftest_c99_program
4236_ACEOF
4237for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4238do
4239  CC="$ac_save_CC $ac_arg"
4240  if ac_fn_c_try_compile "$LINENO"
4241then :
4242  ac_cv_prog_cc_c99=$ac_arg
4243fi
4244rm -f core conftest.err conftest.$ac_objext conftest.beam
4245  test "x$ac_cv_prog_cc_c99" != "xno" && break
4246done
4247rm -f conftest.$ac_ext
4248CC=$ac_save_CC
4249fi
4250
4251if test "x$ac_cv_prog_cc_c99" = xno
4252then :
4253  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4254printf "%s\n" "unsupported" >&6; }
4255else $as_nop
4256  if test "x$ac_cv_prog_cc_c99" = x
4257then :
4258  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4259printf "%s\n" "none needed" >&6; }
4260else $as_nop
4261  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4262printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4263     CC="$CC $ac_cv_prog_cc_c99"
4264fi
4265  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4266  ac_prog_cc_stdc=c99
4267fi
4268fi
4269if test x$ac_prog_cc_stdc = xno
4270then :
4271  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4272printf %s "checking for $CC option to enable C89 features... " >&6; }
4273if test ${ac_cv_prog_cc_c89+y}
4274then :
4275  printf %s "(cached) " >&6
4276else $as_nop
4277  ac_cv_prog_cc_c89=no
4278ac_save_CC=$CC
4279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280/* end confdefs.h.  */
4281$ac_c_conftest_c89_program
4282_ACEOF
4283for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4284do
4285  CC="$ac_save_CC $ac_arg"
4286  if ac_fn_c_try_compile "$LINENO"
4287then :
4288  ac_cv_prog_cc_c89=$ac_arg
4289fi
4290rm -f core conftest.err conftest.$ac_objext conftest.beam
4291  test "x$ac_cv_prog_cc_c89" != "xno" && break
4292done
4293rm -f conftest.$ac_ext
4294CC=$ac_save_CC
4295fi
4296
4297if test "x$ac_cv_prog_cc_c89" = xno
4298then :
4299  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4300printf "%s\n" "unsupported" >&6; }
4301else $as_nop
4302  if test "x$ac_cv_prog_cc_c89" = x
4303then :
4304  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4305printf "%s\n" "none needed" >&6; }
4306else $as_nop
4307  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4308printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4309     CC="$CC $ac_cv_prog_cc_c89"
4310fi
4311  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4312  ac_prog_cc_stdc=c89
4313fi
4314fi
4315
4316ac_ext=c
4317ac_cpp='$CPP $CPPFLAGS'
4318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4320ac_compiler_gnu=$ac_cv_c_compiler_gnu
4321
4322
4323  ac_ext=c
4324ac_cpp='$CPP $CPPFLAGS'
4325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327ac_compiler_gnu=$ac_cv_c_compiler_gnu
4328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4329printf %s "checking whether $CC understands -c and -o together... " >&6; }
4330if test ${am_cv_prog_cc_c_o+y}
4331then :
4332  printf %s "(cached) " >&6
4333else $as_nop
4334  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335/* end confdefs.h.  */
4336
4337int
4338main (void)
4339{
4340
4341  ;
4342  return 0;
4343}
4344_ACEOF
4345  # Make sure it works both with $CC and with simple cc.
4346  # Following AC_PROG_CC_C_O, we do the test twice because some
4347  # compilers refuse to overwrite an existing .o file with -o,
4348  # though they will create one.
4349  am_cv_prog_cc_c_o=yes
4350  for am_i in 1 2; do
4351    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4352   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4353   ac_status=$?
4354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355   (exit $ac_status); } \
4356         && test -f conftest2.$ac_objext; then
4357      : OK
4358    else
4359      am_cv_prog_cc_c_o=no
4360      break
4361    fi
4362  done
4363  rm -f core conftest*
4364  unset am_i
4365fi
4366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4367printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4368if test "$am_cv_prog_cc_c_o" != yes; then
4369   # Losing compiler, so override with the script.
4370   # FIXME: It is wrong to rewrite CC.
4371   # But if we don't then we get into trouble of one sort or another.
4372   # A longer-term fix would be to have automake use am__CC in this case,
4373   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4374   CC="$am_aux_dir/compile $CC"
4375fi
4376ac_ext=c
4377ac_cpp='$CPP $CPPFLAGS'
4378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4380ac_compiler_gnu=$ac_cv_c_compiler_gnu
4381
4382
4383depcc="$CC"   am_compiler_list=
4384
4385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4386printf %s "checking dependency style of $depcc... " >&6; }
4387if test ${am_cv_CC_dependencies_compiler_type+y}
4388then :
4389  printf %s "(cached) " >&6
4390else $as_nop
4391  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4392  # We make a subdir and do the tests there.  Otherwise we can end up
4393  # making bogus files that we don't know about and never remove.  For
4394  # instance it was reported that on HP-UX the gcc test will end up
4395  # making a dummy file named 'D' -- because '-MD' means "put the output
4396  # in D".
4397  rm -rf conftest.dir
4398  mkdir conftest.dir
4399  # Copy depcomp to subdir because otherwise we won't find it if we're
4400  # using a relative directory.
4401  cp "$am_depcomp" conftest.dir
4402  cd conftest.dir
4403  # We will build objects and dependencies in a subdirectory because
4404  # it helps to detect inapplicable dependency modes.  For instance
4405  # both Tru64's cc and ICC support -MD to output dependencies as a
4406  # side effect of compilation, but ICC will put the dependencies in
4407  # the current directory while Tru64 will put them in the object
4408  # directory.
4409  mkdir sub
4410
4411  am_cv_CC_dependencies_compiler_type=none
4412  if test "$am_compiler_list" = ""; then
4413     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4414  fi
4415  am__universal=false
4416  case " $depcc " in #(
4417     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4418     esac
4419
4420  for depmode in $am_compiler_list; do
4421    # Setup a source with many dependencies, because some compilers
4422    # like to wrap large dependency lists on column 80 (with \), and
4423    # we should not choose a depcomp mode which is confused by this.
4424    #
4425    # We need to recreate these files for each test, as the compiler may
4426    # overwrite some of them when testing with obscure command lines.
4427    # This happens at least with the AIX C compiler.
4428    : > sub/conftest.c
4429    for i in 1 2 3 4 5 6; do
4430      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4431      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4432      # Solaris 10 /bin/sh.
4433      echo '/* dummy */' > sub/conftst$i.h
4434    done
4435    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4436
4437    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4438    # mode.  It turns out that the SunPro C++ compiler does not properly
4439    # handle '-M -o', and we need to detect this.  Also, some Intel
4440    # versions had trouble with output in subdirs.
4441    am__obj=sub/conftest.${OBJEXT-o}
4442    am__minus_obj="-o $am__obj"
4443    case $depmode in
4444    gcc)
4445      # This depmode causes a compiler race in universal mode.
4446      test "$am__universal" = false || continue
4447      ;;
4448    nosideeffect)
4449      # After this tag, mechanisms are not by side-effect, so they'll
4450      # only be used when explicitly requested.
4451      if test "x$enable_dependency_tracking" = xyes; then
4452	continue
4453      else
4454	break
4455      fi
4456      ;;
4457    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4458      # This compiler won't grok '-c -o', but also, the minuso test has
4459      # not run yet.  These depmodes are late enough in the game, and
4460      # so weak that their functioning should not be impacted.
4461      am__obj=conftest.${OBJEXT-o}
4462      am__minus_obj=
4463      ;;
4464    none) break ;;
4465    esac
4466    if depmode=$depmode \
4467       source=sub/conftest.c object=$am__obj \
4468       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4469       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4470         >/dev/null 2>conftest.err &&
4471       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4472       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4473       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4474       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4475      # icc doesn't choke on unknown options, it will just issue warnings
4476      # or remarks (even with -Werror).  So we grep stderr for any message
4477      # that says an option was ignored or not supported.
4478      # When given -MP, icc 7.0 and 7.1 complain thusly:
4479      #   icc: Command line warning: ignoring option '-M'; no argument required
4480      # The diagnosis changed in icc 8.0:
4481      #   icc: Command line remark: option '-MP' not supported
4482      if (grep 'ignoring option' conftest.err ||
4483          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4484        am_cv_CC_dependencies_compiler_type=$depmode
4485        break
4486      fi
4487    fi
4488  done
4489
4490  cd ..
4491  rm -rf conftest.dir
4492else
4493  am_cv_CC_dependencies_compiler_type=none
4494fi
4495
4496fi
4497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4498printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4499CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4500
4501 if
4502  test "x$enable_dependency_tracking" != xno \
4503  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4504  am__fastdepCC_TRUE=
4505  am__fastdepCC_FALSE='#'
4506else
4507  am__fastdepCC_TRUE='#'
4508  am__fastdepCC_FALSE=
4509fi
4510
4511
4512
4513
4514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4515printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4516if test ${ac_cv_c_undeclared_builtin_options+y}
4517then :
4518  printf %s "(cached) " >&6
4519else $as_nop
4520  ac_save_CFLAGS=$CFLAGS
4521   ac_cv_c_undeclared_builtin_options='cannot detect'
4522   for ac_arg in '' -fno-builtin; do
4523     CFLAGS="$ac_save_CFLAGS $ac_arg"
4524     # This test program should *not* compile successfully.
4525     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526/* end confdefs.h.  */
4527
4528int
4529main (void)
4530{
4531(void) strchr;
4532  ;
4533  return 0;
4534}
4535_ACEOF
4536if ac_fn_c_try_compile "$LINENO"
4537then :
4538
4539else $as_nop
4540  # This test program should compile successfully.
4541        # No library function is consistently available on
4542        # freestanding implementations, so test against a dummy
4543        # declaration.  Include always-available headers on the
4544        # off chance that they somehow elicit warnings.
4545        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4546/* end confdefs.h.  */
4547#include <float.h>
4548#include <limits.h>
4549#include <stdarg.h>
4550#include <stddef.h>
4551extern void ac_decl (int, char *);
4552
4553int
4554main (void)
4555{
4556(void) ac_decl (0, (char *) 0);
4557  (void) ac_decl;
4558
4559  ;
4560  return 0;
4561}
4562_ACEOF
4563if ac_fn_c_try_compile "$LINENO"
4564then :
4565  if test x"$ac_arg" = x
4566then :
4567  ac_cv_c_undeclared_builtin_options='none needed'
4568else $as_nop
4569  ac_cv_c_undeclared_builtin_options=$ac_arg
4570fi
4571          break
4572fi
4573rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4574fi
4575rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4576    done
4577    CFLAGS=$ac_save_CFLAGS
4578
4579fi
4580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4581printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4582  case $ac_cv_c_undeclared_builtin_options in #(
4583  'cannot detect') :
4584    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4585printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4586as_fn_error $? "cannot make $CC report undeclared builtins
4587See \`config.log' for more details" "$LINENO" 5; } ;; #(
4588  'none needed') :
4589    ac_c_undeclared_builtin_options='' ;; #(
4590  *) :
4591    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4592esac
4593
4594ac_header= ac_cache=
4595for ac_item in $ac_header_c_list
4596do
4597  if test $ac_cache; then
4598    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4599    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4600      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4601    fi
4602    ac_header= ac_cache=
4603  elif test $ac_header; then
4604    ac_cache=$ac_item
4605  else
4606    ac_header=$ac_item
4607  fi
4608done
4609
4610
4611
4612
4613
4614
4615
4616
4617if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4618then :
4619
4620printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4621
4622fi
4623
4624
4625
4626
4627ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4628if test "x$ac_cv_have_decl___clang__" = xyes
4629then :
4630  CLANGCC="yes"
4631else $as_nop
4632  CLANGCC="no"
4633fi
4634ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4635if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4636then :
4637  INTELCC="yes"
4638else $as_nop
4639  INTELCC="no"
4640fi
4641ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4642if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4643then :
4644  SUNCC="yes"
4645else $as_nop
4646  SUNCC="no"
4647fi
4648
4649
4650
4651
4652
4653
4654
4655
4656if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4657	if test -n "$ac_tool_prefix"; then
4658  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4659set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4661printf %s "checking for $ac_word... " >&6; }
4662if test ${ac_cv_path_PKG_CONFIG+y}
4663then :
4664  printf %s "(cached) " >&6
4665else $as_nop
4666  case $PKG_CONFIG in
4667  [\\/]* | ?:[\\/]*)
4668  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4669  ;;
4670  *)
4671  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672for as_dir in $PATH
4673do
4674  IFS=$as_save_IFS
4675  case $as_dir in #(((
4676    '') as_dir=./ ;;
4677    */) ;;
4678    *) as_dir=$as_dir/ ;;
4679  esac
4680    for ac_exec_ext in '' $ac_executable_extensions; do
4681  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4682    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4683    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4684    break 2
4685  fi
4686done
4687  done
4688IFS=$as_save_IFS
4689
4690  ;;
4691esac
4692fi
4693PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4694if test -n "$PKG_CONFIG"; then
4695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4696printf "%s\n" "$PKG_CONFIG" >&6; }
4697else
4698  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4699printf "%s\n" "no" >&6; }
4700fi
4701
4702
4703fi
4704if test -z "$ac_cv_path_PKG_CONFIG"; then
4705  ac_pt_PKG_CONFIG=$PKG_CONFIG
4706  # Extract the first word of "pkg-config", so it can be a program name with args.
4707set dummy pkg-config; ac_word=$2
4708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709printf %s "checking for $ac_word... " >&6; }
4710if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4711then :
4712  printf %s "(cached) " >&6
4713else $as_nop
4714  case $ac_pt_PKG_CONFIG in
4715  [\\/]* | ?:[\\/]*)
4716  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4717  ;;
4718  *)
4719  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720for as_dir in $PATH
4721do
4722  IFS=$as_save_IFS
4723  case $as_dir in #(((
4724    '') as_dir=./ ;;
4725    */) ;;
4726    *) as_dir=$as_dir/ ;;
4727  esac
4728    for ac_exec_ext in '' $ac_executable_extensions; do
4729  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4730    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4731    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4732    break 2
4733  fi
4734done
4735  done
4736IFS=$as_save_IFS
4737
4738  ;;
4739esac
4740fi
4741ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4742if test -n "$ac_pt_PKG_CONFIG"; then
4743  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4744printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4745else
4746  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4747printf "%s\n" "no" >&6; }
4748fi
4749
4750  if test "x$ac_pt_PKG_CONFIG" = x; then
4751    PKG_CONFIG=""
4752  else
4753    case $cross_compiling:$ac_tool_warned in
4754yes:)
4755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4756printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4757ac_tool_warned=yes ;;
4758esac
4759    PKG_CONFIG=$ac_pt_PKG_CONFIG
4760  fi
4761else
4762  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4763fi
4764
4765fi
4766if test -n "$PKG_CONFIG"; then
4767	_pkg_min_version=0.9.0
4768	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4769printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4770	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4771		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4772printf "%s\n" "yes" >&6; }
4773	else
4774		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775printf "%s\n" "no" >&6; }
4776		PKG_CONFIG=""
4777	fi
4778fi
4779
4780
4781  # Make sure we can run config.sub.
4782$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4783  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4784
4785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4786printf %s "checking build system type... " >&6; }
4787if test ${ac_cv_build+y}
4788then :
4789  printf %s "(cached) " >&6
4790else $as_nop
4791  ac_build_alias=$build_alias
4792test "x$ac_build_alias" = x &&
4793  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4794test "x$ac_build_alias" = x &&
4795  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4796ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4797  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4798
4799fi
4800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4801printf "%s\n" "$ac_cv_build" >&6; }
4802case $ac_cv_build in
4803*-*-*) ;;
4804*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4805esac
4806build=$ac_cv_build
4807ac_save_IFS=$IFS; IFS='-'
4808set x $ac_cv_build
4809shift
4810build_cpu=$1
4811build_vendor=$2
4812shift; shift
4813# Remember, the first character of IFS is used to create $*,
4814# except with old shells:
4815build_os=$*
4816IFS=$ac_save_IFS
4817case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4818
4819
4820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4821printf %s "checking host system type... " >&6; }
4822if test ${ac_cv_host+y}
4823then :
4824  printf %s "(cached) " >&6
4825else $as_nop
4826  if test "x$host_alias" = x; then
4827  ac_cv_host=$ac_cv_build
4828else
4829  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4830    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4831fi
4832
4833fi
4834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4835printf "%s\n" "$ac_cv_host" >&6; }
4836case $ac_cv_host in
4837*-*-*) ;;
4838*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4839esac
4840host=$ac_cv_host
4841ac_save_IFS=$IFS; IFS='-'
4842set x $ac_cv_host
4843shift
4844host_cpu=$1
4845host_vendor=$2
4846shift; shift
4847# Remember, the first character of IFS is used to create $*,
4848# except with old shells:
4849host_os=$*
4850IFS=$ac_save_IFS
4851case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4852
4853
4854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4855printf %s "checking for a sed that does not truncate output... " >&6; }
4856if test ${ac_cv_path_SED+y}
4857then :
4858  printf %s "(cached) " >&6
4859else $as_nop
4860            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4861     for ac_i in 1 2 3 4 5 6 7; do
4862       ac_script="$ac_script$as_nl$ac_script"
4863     done
4864     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4865     { ac_script=; unset ac_script;}
4866     if test -z "$SED"; then
4867  ac_path_SED_found=false
4868  # Loop through the user's path and test for each of PROGNAME-LIST
4869  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870for as_dir in $PATH
4871do
4872  IFS=$as_save_IFS
4873  case $as_dir in #(((
4874    '') as_dir=./ ;;
4875    */) ;;
4876    *) as_dir=$as_dir/ ;;
4877  esac
4878    for ac_prog in sed gsed
4879   do
4880    for ac_exec_ext in '' $ac_executable_extensions; do
4881      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4882      as_fn_executable_p "$ac_path_SED" || continue
4883# Check for GNU ac_path_SED and select it if it is found.
4884  # Check for GNU $ac_path_SED
4885case `"$ac_path_SED" --version 2>&1` in
4886*GNU*)
4887  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4888*)
4889  ac_count=0
4890  printf %s 0123456789 >"conftest.in"
4891  while :
4892  do
4893    cat "conftest.in" "conftest.in" >"conftest.tmp"
4894    mv "conftest.tmp" "conftest.in"
4895    cp "conftest.in" "conftest.nl"
4896    printf "%s\n" '' >> "conftest.nl"
4897    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4898    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4899    as_fn_arith $ac_count + 1 && ac_count=$as_val
4900    if test $ac_count -gt ${ac_path_SED_max-0}; then
4901      # Best one so far, save it but keep looking for a better one
4902      ac_cv_path_SED="$ac_path_SED"
4903      ac_path_SED_max=$ac_count
4904    fi
4905    # 10*(2^10) chars as input seems more than enough
4906    test $ac_count -gt 10 && break
4907  done
4908  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4909esac
4910
4911      $ac_path_SED_found && break 3
4912    done
4913  done
4914  done
4915IFS=$as_save_IFS
4916  if test -z "$ac_cv_path_SED"; then
4917    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4918  fi
4919else
4920  ac_cv_path_SED=$SED
4921fi
4922
4923fi
4924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4925printf "%s\n" "$ac_cv_path_SED" >&6; }
4926 SED="$ac_cv_path_SED"
4927  rm -f conftest.sed
4928
4929
4930
4931
4932
4933
4934# Check whether --enable-selective-werror was given.
4935if test ${enable_selective_werror+y}
4936then :
4937  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4938else $as_nop
4939  SELECTIVE_WERROR=yes
4940fi
4941
4942
4943
4944
4945
4946# -v is too short to test reliably with XORG_TESTSET_CFLAG
4947if test "x$SUNCC" = "xyes"; then
4948    BASE_CFLAGS="-v"
4949else
4950    BASE_CFLAGS=""
4951fi
4952
4953# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967xorg_testset_save_CFLAGS="$CFLAGS"
4968
4969if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4970	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4971	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4972printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4973if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4974then :
4975  printf %s "(cached) " >&6
4976else $as_nop
4977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978/* end confdefs.h.  */
4979int i;
4980_ACEOF
4981if ac_fn_c_try_compile "$LINENO"
4982then :
4983  xorg_cv_cc_flag_unknown_warning_option=yes
4984else $as_nop
4985  xorg_cv_cc_flag_unknown_warning_option=no
4986fi
4987rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4988fi
4989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4990printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4991	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4992	CFLAGS="$xorg_testset_save_CFLAGS"
4993fi
4994
4995if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4996	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4997		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4998	fi
4999	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5000	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5001printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5002if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5003then :
5004  printf %s "(cached) " >&6
5005else $as_nop
5006  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007/* end confdefs.h.  */
5008int i;
5009_ACEOF
5010if ac_fn_c_try_compile "$LINENO"
5011then :
5012  xorg_cv_cc_flag_unused_command_line_argument=yes
5013else $as_nop
5014  xorg_cv_cc_flag_unused_command_line_argument=no
5015fi
5016rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5017fi
5018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5019printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5020	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5021	CFLAGS="$xorg_testset_save_CFLAGS"
5022fi
5023
5024found="no"
5025
5026	if test $found = "no" ; then
5027		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5028			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5029		fi
5030
5031		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5032			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5033		fi
5034
5035		CFLAGS="$CFLAGS -Wall"
5036
5037		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5038printf %s "checking if $CC supports -Wall... " >&6; }
5039		cacheid=xorg_cv_cc_flag__Wall
5040		if eval test \${$cacheid+y}
5041then :
5042  printf %s "(cached) " >&6
5043else $as_nop
5044  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045/* end confdefs.h.  */
5046int i;
5047int
5048main (void)
5049{
5050
5051  ;
5052  return 0;
5053}
5054_ACEOF
5055if ac_fn_c_try_link "$LINENO"
5056then :
5057  eval $cacheid=yes
5058else $as_nop
5059  eval $cacheid=no
5060fi
5061rm -f core conftest.err conftest.$ac_objext conftest.beam \
5062    conftest$ac_exeext conftest.$ac_ext
5063fi
5064
5065
5066		CFLAGS="$xorg_testset_save_CFLAGS"
5067
5068		eval supported=\$$cacheid
5069		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5070printf "%s\n" "$supported" >&6; }
5071		if test "$supported" = "yes" ; then
5072			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5073			found="yes"
5074		fi
5075	fi
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091xorg_testset_save_CFLAGS="$CFLAGS"
5092
5093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5094	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5095	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5096printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5097if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5098then :
5099  printf %s "(cached) " >&6
5100else $as_nop
5101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102/* end confdefs.h.  */
5103int i;
5104_ACEOF
5105if ac_fn_c_try_compile "$LINENO"
5106then :
5107  xorg_cv_cc_flag_unknown_warning_option=yes
5108else $as_nop
5109  xorg_cv_cc_flag_unknown_warning_option=no
5110fi
5111rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5112fi
5113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5114printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5115	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5116	CFLAGS="$xorg_testset_save_CFLAGS"
5117fi
5118
5119if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5120	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5121		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5122	fi
5123	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5124	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5125printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5126if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5127then :
5128  printf %s "(cached) " >&6
5129else $as_nop
5130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131/* end confdefs.h.  */
5132int i;
5133_ACEOF
5134if ac_fn_c_try_compile "$LINENO"
5135then :
5136  xorg_cv_cc_flag_unused_command_line_argument=yes
5137else $as_nop
5138  xorg_cv_cc_flag_unused_command_line_argument=no
5139fi
5140rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5141fi
5142{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5143printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5144	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5145	CFLAGS="$xorg_testset_save_CFLAGS"
5146fi
5147
5148found="no"
5149
5150	if test $found = "no" ; then
5151		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5152			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5153		fi
5154
5155		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5156			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5157		fi
5158
5159		CFLAGS="$CFLAGS -Wpointer-arith"
5160
5161		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5162printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5163		cacheid=xorg_cv_cc_flag__Wpointer_arith
5164		if eval test \${$cacheid+y}
5165then :
5166  printf %s "(cached) " >&6
5167else $as_nop
5168  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169/* end confdefs.h.  */
5170int i;
5171int
5172main (void)
5173{
5174
5175  ;
5176  return 0;
5177}
5178_ACEOF
5179if ac_fn_c_try_link "$LINENO"
5180then :
5181  eval $cacheid=yes
5182else $as_nop
5183  eval $cacheid=no
5184fi
5185rm -f core conftest.err conftest.$ac_objext conftest.beam \
5186    conftest$ac_exeext conftest.$ac_ext
5187fi
5188
5189
5190		CFLAGS="$xorg_testset_save_CFLAGS"
5191
5192		eval supported=\$$cacheid
5193		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5194printf "%s\n" "$supported" >&6; }
5195		if test "$supported" = "yes" ; then
5196			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5197			found="yes"
5198		fi
5199	fi
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215xorg_testset_save_CFLAGS="$CFLAGS"
5216
5217if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5218	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5219	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5220printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5221if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5222then :
5223  printf %s "(cached) " >&6
5224else $as_nop
5225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226/* end confdefs.h.  */
5227int i;
5228_ACEOF
5229if ac_fn_c_try_compile "$LINENO"
5230then :
5231  xorg_cv_cc_flag_unknown_warning_option=yes
5232else $as_nop
5233  xorg_cv_cc_flag_unknown_warning_option=no
5234fi
5235rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5236fi
5237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5238printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5239	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5240	CFLAGS="$xorg_testset_save_CFLAGS"
5241fi
5242
5243if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5244	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5245		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5246	fi
5247	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5248	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5249printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5250if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5251then :
5252  printf %s "(cached) " >&6
5253else $as_nop
5254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255/* end confdefs.h.  */
5256int i;
5257_ACEOF
5258if ac_fn_c_try_compile "$LINENO"
5259then :
5260  xorg_cv_cc_flag_unused_command_line_argument=yes
5261else $as_nop
5262  xorg_cv_cc_flag_unused_command_line_argument=no
5263fi
5264rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5265fi
5266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5267printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5268	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5269	CFLAGS="$xorg_testset_save_CFLAGS"
5270fi
5271
5272found="no"
5273
5274	if test $found = "no" ; then
5275		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5276			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5277		fi
5278
5279		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5280			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5281		fi
5282
5283		CFLAGS="$CFLAGS -Wmissing-declarations"
5284
5285		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5286printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5287		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5288		if eval test \${$cacheid+y}
5289then :
5290  printf %s "(cached) " >&6
5291else $as_nop
5292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293/* end confdefs.h.  */
5294int i;
5295int
5296main (void)
5297{
5298
5299  ;
5300  return 0;
5301}
5302_ACEOF
5303if ac_fn_c_try_link "$LINENO"
5304then :
5305  eval $cacheid=yes
5306else $as_nop
5307  eval $cacheid=no
5308fi
5309rm -f core conftest.err conftest.$ac_objext conftest.beam \
5310    conftest$ac_exeext conftest.$ac_ext
5311fi
5312
5313
5314		CFLAGS="$xorg_testset_save_CFLAGS"
5315
5316		eval supported=\$$cacheid
5317		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5318printf "%s\n" "$supported" >&6; }
5319		if test "$supported" = "yes" ; then
5320			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5321			found="yes"
5322		fi
5323	fi
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339xorg_testset_save_CFLAGS="$CFLAGS"
5340
5341if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5342	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5343	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5344printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5345if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5346then :
5347  printf %s "(cached) " >&6
5348else $as_nop
5349  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350/* end confdefs.h.  */
5351int i;
5352_ACEOF
5353if ac_fn_c_try_compile "$LINENO"
5354then :
5355  xorg_cv_cc_flag_unknown_warning_option=yes
5356else $as_nop
5357  xorg_cv_cc_flag_unknown_warning_option=no
5358fi
5359rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5360fi
5361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5362printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5363	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5364	CFLAGS="$xorg_testset_save_CFLAGS"
5365fi
5366
5367if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5368	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5369		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5370	fi
5371	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5372	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5373printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5374if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5375then :
5376  printf %s "(cached) " >&6
5377else $as_nop
5378  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379/* end confdefs.h.  */
5380int i;
5381_ACEOF
5382if ac_fn_c_try_compile "$LINENO"
5383then :
5384  xorg_cv_cc_flag_unused_command_line_argument=yes
5385else $as_nop
5386  xorg_cv_cc_flag_unused_command_line_argument=no
5387fi
5388rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5389fi
5390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5391printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5392	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5393	CFLAGS="$xorg_testset_save_CFLAGS"
5394fi
5395
5396found="no"
5397
5398	if test $found = "no" ; then
5399		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5400			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5401		fi
5402
5403		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5404			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5405		fi
5406
5407		CFLAGS="$CFLAGS -Wformat=2"
5408
5409		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5410printf %s "checking if $CC supports -Wformat=2... " >&6; }
5411		cacheid=xorg_cv_cc_flag__Wformat_2
5412		if eval test \${$cacheid+y}
5413then :
5414  printf %s "(cached) " >&6
5415else $as_nop
5416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417/* end confdefs.h.  */
5418int i;
5419int
5420main (void)
5421{
5422
5423  ;
5424  return 0;
5425}
5426_ACEOF
5427if ac_fn_c_try_link "$LINENO"
5428then :
5429  eval $cacheid=yes
5430else $as_nop
5431  eval $cacheid=no
5432fi
5433rm -f core conftest.err conftest.$ac_objext conftest.beam \
5434    conftest$ac_exeext conftest.$ac_ext
5435fi
5436
5437
5438		CFLAGS="$xorg_testset_save_CFLAGS"
5439
5440		eval supported=\$$cacheid
5441		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5442printf "%s\n" "$supported" >&6; }
5443		if test "$supported" = "yes" ; then
5444			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5445			found="yes"
5446		fi
5447	fi
5448
5449	if test $found = "no" ; then
5450		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5451			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5452		fi
5453
5454		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5455			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5456		fi
5457
5458		CFLAGS="$CFLAGS -Wformat"
5459
5460		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5461printf %s "checking if $CC supports -Wformat... " >&6; }
5462		cacheid=xorg_cv_cc_flag__Wformat
5463		if eval test \${$cacheid+y}
5464then :
5465  printf %s "(cached) " >&6
5466else $as_nop
5467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468/* end confdefs.h.  */
5469int i;
5470int
5471main (void)
5472{
5473
5474  ;
5475  return 0;
5476}
5477_ACEOF
5478if ac_fn_c_try_link "$LINENO"
5479then :
5480  eval $cacheid=yes
5481else $as_nop
5482  eval $cacheid=no
5483fi
5484rm -f core conftest.err conftest.$ac_objext conftest.beam \
5485    conftest$ac_exeext conftest.$ac_ext
5486fi
5487
5488
5489		CFLAGS="$xorg_testset_save_CFLAGS"
5490
5491		eval supported=\$$cacheid
5492		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5493printf "%s\n" "$supported" >&6; }
5494		if test "$supported" = "yes" ; then
5495			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5496			found="yes"
5497		fi
5498	fi
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516xorg_testset_save_CFLAGS="$CFLAGS"
5517
5518if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5519	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5520	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5521printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5522if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5523then :
5524  printf %s "(cached) " >&6
5525else $as_nop
5526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527/* end confdefs.h.  */
5528int i;
5529_ACEOF
5530if ac_fn_c_try_compile "$LINENO"
5531then :
5532  xorg_cv_cc_flag_unknown_warning_option=yes
5533else $as_nop
5534  xorg_cv_cc_flag_unknown_warning_option=no
5535fi
5536rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5537fi
5538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5539printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5540	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5541	CFLAGS="$xorg_testset_save_CFLAGS"
5542fi
5543
5544if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5545	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5546		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5547	fi
5548	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5549	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5550printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5551if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5552then :
5553  printf %s "(cached) " >&6
5554else $as_nop
5555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5556/* end confdefs.h.  */
5557int i;
5558_ACEOF
5559if ac_fn_c_try_compile "$LINENO"
5560then :
5561  xorg_cv_cc_flag_unused_command_line_argument=yes
5562else $as_nop
5563  xorg_cv_cc_flag_unused_command_line_argument=no
5564fi
5565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5566fi
5567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5568printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5569	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5570	CFLAGS="$xorg_testset_save_CFLAGS"
5571fi
5572
5573found="no"
5574
5575	if test $found = "no" ; then
5576		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5577			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5578		fi
5579
5580		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5581			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5582		fi
5583
5584		CFLAGS="$CFLAGS -Wstrict-prototypes"
5585
5586		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5587printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5588		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5589		if eval test \${$cacheid+y}
5590then :
5591  printf %s "(cached) " >&6
5592else $as_nop
5593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594/* end confdefs.h.  */
5595int i;
5596int
5597main (void)
5598{
5599
5600  ;
5601  return 0;
5602}
5603_ACEOF
5604if ac_fn_c_try_link "$LINENO"
5605then :
5606  eval $cacheid=yes
5607else $as_nop
5608  eval $cacheid=no
5609fi
5610rm -f core conftest.err conftest.$ac_objext conftest.beam \
5611    conftest$ac_exeext conftest.$ac_ext
5612fi
5613
5614
5615		CFLAGS="$xorg_testset_save_CFLAGS"
5616
5617		eval supported=\$$cacheid
5618		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5619printf "%s\n" "$supported" >&6; }
5620		if test "$supported" = "yes" ; then
5621			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5622			found="yes"
5623		fi
5624	fi
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640xorg_testset_save_CFLAGS="$CFLAGS"
5641
5642if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5643	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5644	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5645printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5646if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5647then :
5648  printf %s "(cached) " >&6
5649else $as_nop
5650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651/* end confdefs.h.  */
5652int i;
5653_ACEOF
5654if ac_fn_c_try_compile "$LINENO"
5655then :
5656  xorg_cv_cc_flag_unknown_warning_option=yes
5657else $as_nop
5658  xorg_cv_cc_flag_unknown_warning_option=no
5659fi
5660rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5661fi
5662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5663printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5664	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5665	CFLAGS="$xorg_testset_save_CFLAGS"
5666fi
5667
5668if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5669	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5670		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5671	fi
5672	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5673	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5674printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5675if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5676then :
5677  printf %s "(cached) " >&6
5678else $as_nop
5679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680/* end confdefs.h.  */
5681int i;
5682_ACEOF
5683if ac_fn_c_try_compile "$LINENO"
5684then :
5685  xorg_cv_cc_flag_unused_command_line_argument=yes
5686else $as_nop
5687  xorg_cv_cc_flag_unused_command_line_argument=no
5688fi
5689rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5690fi
5691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5692printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5693	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5694	CFLAGS="$xorg_testset_save_CFLAGS"
5695fi
5696
5697found="no"
5698
5699	if test $found = "no" ; then
5700		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5701			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5702		fi
5703
5704		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5705			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5706		fi
5707
5708		CFLAGS="$CFLAGS -Wmissing-prototypes"
5709
5710		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5711printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5712		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5713		if eval test \${$cacheid+y}
5714then :
5715  printf %s "(cached) " >&6
5716else $as_nop
5717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718/* end confdefs.h.  */
5719int i;
5720int
5721main (void)
5722{
5723
5724  ;
5725  return 0;
5726}
5727_ACEOF
5728if ac_fn_c_try_link "$LINENO"
5729then :
5730  eval $cacheid=yes
5731else $as_nop
5732  eval $cacheid=no
5733fi
5734rm -f core conftest.err conftest.$ac_objext conftest.beam \
5735    conftest$ac_exeext conftest.$ac_ext
5736fi
5737
5738
5739		CFLAGS="$xorg_testset_save_CFLAGS"
5740
5741		eval supported=\$$cacheid
5742		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5743printf "%s\n" "$supported" >&6; }
5744		if test "$supported" = "yes" ; then
5745			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5746			found="yes"
5747		fi
5748	fi
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764xorg_testset_save_CFLAGS="$CFLAGS"
5765
5766if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5767	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5768	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5769printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5770if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5771then :
5772  printf %s "(cached) " >&6
5773else $as_nop
5774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775/* end confdefs.h.  */
5776int i;
5777_ACEOF
5778if ac_fn_c_try_compile "$LINENO"
5779then :
5780  xorg_cv_cc_flag_unknown_warning_option=yes
5781else $as_nop
5782  xorg_cv_cc_flag_unknown_warning_option=no
5783fi
5784rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5785fi
5786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5787printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5788	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5789	CFLAGS="$xorg_testset_save_CFLAGS"
5790fi
5791
5792if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5793	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5794		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5795	fi
5796	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5797	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5798printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5799if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5800then :
5801  printf %s "(cached) " >&6
5802else $as_nop
5803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804/* end confdefs.h.  */
5805int i;
5806_ACEOF
5807if ac_fn_c_try_compile "$LINENO"
5808then :
5809  xorg_cv_cc_flag_unused_command_line_argument=yes
5810else $as_nop
5811  xorg_cv_cc_flag_unused_command_line_argument=no
5812fi
5813rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5814fi
5815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5816printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5817	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5818	CFLAGS="$xorg_testset_save_CFLAGS"
5819fi
5820
5821found="no"
5822
5823	if test $found = "no" ; then
5824		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5825			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5826		fi
5827
5828		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5829			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5830		fi
5831
5832		CFLAGS="$CFLAGS -Wnested-externs"
5833
5834		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5835printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5836		cacheid=xorg_cv_cc_flag__Wnested_externs
5837		if eval test \${$cacheid+y}
5838then :
5839  printf %s "(cached) " >&6
5840else $as_nop
5841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842/* end confdefs.h.  */
5843int i;
5844int
5845main (void)
5846{
5847
5848  ;
5849  return 0;
5850}
5851_ACEOF
5852if ac_fn_c_try_link "$LINENO"
5853then :
5854  eval $cacheid=yes
5855else $as_nop
5856  eval $cacheid=no
5857fi
5858rm -f core conftest.err conftest.$ac_objext conftest.beam \
5859    conftest$ac_exeext conftest.$ac_ext
5860fi
5861
5862
5863		CFLAGS="$xorg_testset_save_CFLAGS"
5864
5865		eval supported=\$$cacheid
5866		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5867printf "%s\n" "$supported" >&6; }
5868		if test "$supported" = "yes" ; then
5869			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5870			found="yes"
5871		fi
5872	fi
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888xorg_testset_save_CFLAGS="$CFLAGS"
5889
5890if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5891	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5892	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5893printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5894if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5895then :
5896  printf %s "(cached) " >&6
5897else $as_nop
5898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5899/* end confdefs.h.  */
5900int i;
5901_ACEOF
5902if ac_fn_c_try_compile "$LINENO"
5903then :
5904  xorg_cv_cc_flag_unknown_warning_option=yes
5905else $as_nop
5906  xorg_cv_cc_flag_unknown_warning_option=no
5907fi
5908rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5909fi
5910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5911printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5912	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5913	CFLAGS="$xorg_testset_save_CFLAGS"
5914fi
5915
5916if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5917	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5918		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5919	fi
5920	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5921	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5922printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5923if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5924then :
5925  printf %s "(cached) " >&6
5926else $as_nop
5927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928/* end confdefs.h.  */
5929int i;
5930_ACEOF
5931if ac_fn_c_try_compile "$LINENO"
5932then :
5933  xorg_cv_cc_flag_unused_command_line_argument=yes
5934else $as_nop
5935  xorg_cv_cc_flag_unused_command_line_argument=no
5936fi
5937rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5938fi
5939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5940printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5941	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5942	CFLAGS="$xorg_testset_save_CFLAGS"
5943fi
5944
5945found="no"
5946
5947	if test $found = "no" ; then
5948		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5949			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5950		fi
5951
5952		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5953			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5954		fi
5955
5956		CFLAGS="$CFLAGS -Wbad-function-cast"
5957
5958		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5959printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5960		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5961		if eval test \${$cacheid+y}
5962then :
5963  printf %s "(cached) " >&6
5964else $as_nop
5965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966/* end confdefs.h.  */
5967int i;
5968int
5969main (void)
5970{
5971
5972  ;
5973  return 0;
5974}
5975_ACEOF
5976if ac_fn_c_try_link "$LINENO"
5977then :
5978  eval $cacheid=yes
5979else $as_nop
5980  eval $cacheid=no
5981fi
5982rm -f core conftest.err conftest.$ac_objext conftest.beam \
5983    conftest$ac_exeext conftest.$ac_ext
5984fi
5985
5986
5987		CFLAGS="$xorg_testset_save_CFLAGS"
5988
5989		eval supported=\$$cacheid
5990		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5991printf "%s\n" "$supported" >&6; }
5992		if test "$supported" = "yes" ; then
5993			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5994			found="yes"
5995		fi
5996	fi
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012xorg_testset_save_CFLAGS="$CFLAGS"
6013
6014if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6015	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6016	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6017printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6018if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6019then :
6020  printf %s "(cached) " >&6
6021else $as_nop
6022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023/* end confdefs.h.  */
6024int i;
6025_ACEOF
6026if ac_fn_c_try_compile "$LINENO"
6027then :
6028  xorg_cv_cc_flag_unknown_warning_option=yes
6029else $as_nop
6030  xorg_cv_cc_flag_unknown_warning_option=no
6031fi
6032rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6033fi
6034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6035printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6036	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6037	CFLAGS="$xorg_testset_save_CFLAGS"
6038fi
6039
6040if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6041	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6042		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6043	fi
6044	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6045	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6046printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6047if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6048then :
6049  printf %s "(cached) " >&6
6050else $as_nop
6051  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052/* end confdefs.h.  */
6053int i;
6054_ACEOF
6055if ac_fn_c_try_compile "$LINENO"
6056then :
6057  xorg_cv_cc_flag_unused_command_line_argument=yes
6058else $as_nop
6059  xorg_cv_cc_flag_unused_command_line_argument=no
6060fi
6061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6062fi
6063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6064printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6065	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6066	CFLAGS="$xorg_testset_save_CFLAGS"
6067fi
6068
6069found="no"
6070
6071	if test $found = "no" ; then
6072		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6073			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6074		fi
6075
6076		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6077			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6078		fi
6079
6080		CFLAGS="$CFLAGS -Wold-style-definition"
6081
6082		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6083printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6084		cacheid=xorg_cv_cc_flag__Wold_style_definition
6085		if eval test \${$cacheid+y}
6086then :
6087  printf %s "(cached) " >&6
6088else $as_nop
6089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090/* end confdefs.h.  */
6091int i;
6092int
6093main (void)
6094{
6095
6096  ;
6097  return 0;
6098}
6099_ACEOF
6100if ac_fn_c_try_link "$LINENO"
6101then :
6102  eval $cacheid=yes
6103else $as_nop
6104  eval $cacheid=no
6105fi
6106rm -f core conftest.err conftest.$ac_objext conftest.beam \
6107    conftest$ac_exeext conftest.$ac_ext
6108fi
6109
6110
6111		CFLAGS="$xorg_testset_save_CFLAGS"
6112
6113		eval supported=\$$cacheid
6114		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6115printf "%s\n" "$supported" >&6; }
6116		if test "$supported" = "yes" ; then
6117			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6118			found="yes"
6119		fi
6120	fi
6121
6122	if test $found = "no" ; then
6123		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6124			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6125		fi
6126
6127		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6128			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6129		fi
6130
6131		CFLAGS="$CFLAGS -fd"
6132
6133		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6134printf %s "checking if $CC supports -fd... " >&6; }
6135		cacheid=xorg_cv_cc_flag__fd
6136		if eval test \${$cacheid+y}
6137then :
6138  printf %s "(cached) " >&6
6139else $as_nop
6140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141/* end confdefs.h.  */
6142int i;
6143int
6144main (void)
6145{
6146
6147  ;
6148  return 0;
6149}
6150_ACEOF
6151if ac_fn_c_try_link "$LINENO"
6152then :
6153  eval $cacheid=yes
6154else $as_nop
6155  eval $cacheid=no
6156fi
6157rm -f core conftest.err conftest.$ac_objext conftest.beam \
6158    conftest$ac_exeext conftest.$ac_ext
6159fi
6160
6161
6162		CFLAGS="$xorg_testset_save_CFLAGS"
6163
6164		eval supported=\$$cacheid
6165		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6166printf "%s\n" "$supported" >&6; }
6167		if test "$supported" = "yes" ; then
6168			BASE_CFLAGS="$BASE_CFLAGS -fd"
6169			found="yes"
6170		fi
6171	fi
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187xorg_testset_save_CFLAGS="$CFLAGS"
6188
6189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6190	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6191	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6192printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6193if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6194then :
6195  printf %s "(cached) " >&6
6196else $as_nop
6197  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198/* end confdefs.h.  */
6199int i;
6200_ACEOF
6201if ac_fn_c_try_compile "$LINENO"
6202then :
6203  xorg_cv_cc_flag_unknown_warning_option=yes
6204else $as_nop
6205  xorg_cv_cc_flag_unknown_warning_option=no
6206fi
6207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6208fi
6209{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6210printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6211	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6212	CFLAGS="$xorg_testset_save_CFLAGS"
6213fi
6214
6215if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6216	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6217		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6218	fi
6219	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6220	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6221printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6222if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6223then :
6224  printf %s "(cached) " >&6
6225else $as_nop
6226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6227/* end confdefs.h.  */
6228int i;
6229_ACEOF
6230if ac_fn_c_try_compile "$LINENO"
6231then :
6232  xorg_cv_cc_flag_unused_command_line_argument=yes
6233else $as_nop
6234  xorg_cv_cc_flag_unused_command_line_argument=no
6235fi
6236rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6237fi
6238{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6239printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6240	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6241	CFLAGS="$xorg_testset_save_CFLAGS"
6242fi
6243
6244found="no"
6245
6246	if test $found = "no" ; then
6247		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6248			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6249		fi
6250
6251		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6252			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6253		fi
6254
6255		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6256
6257		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6258printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6259		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6260		if eval test \${$cacheid+y}
6261then :
6262  printf %s "(cached) " >&6
6263else $as_nop
6264  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6265/* end confdefs.h.  */
6266int i;
6267int
6268main (void)
6269{
6270
6271  ;
6272  return 0;
6273}
6274_ACEOF
6275if ac_fn_c_try_link "$LINENO"
6276then :
6277  eval $cacheid=yes
6278else $as_nop
6279  eval $cacheid=no
6280fi
6281rm -f core conftest.err conftest.$ac_objext conftest.beam \
6282    conftest$ac_exeext conftest.$ac_ext
6283fi
6284
6285
6286		CFLAGS="$xorg_testset_save_CFLAGS"
6287
6288		eval supported=\$$cacheid
6289		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6290printf "%s\n" "$supported" >&6; }
6291		if test "$supported" = "yes" ; then
6292			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6293			found="yes"
6294		fi
6295	fi
6296
6297
6298
6299
6300
6301# This chunk adds additional warnings that could catch undesired effects.
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315xorg_testset_save_CFLAGS="$CFLAGS"
6316
6317if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6318	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6319	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6320printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6321if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6322then :
6323  printf %s "(cached) " >&6
6324else $as_nop
6325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326/* end confdefs.h.  */
6327int i;
6328_ACEOF
6329if ac_fn_c_try_compile "$LINENO"
6330then :
6331  xorg_cv_cc_flag_unknown_warning_option=yes
6332else $as_nop
6333  xorg_cv_cc_flag_unknown_warning_option=no
6334fi
6335rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6336fi
6337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6338printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6339	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6340	CFLAGS="$xorg_testset_save_CFLAGS"
6341fi
6342
6343if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6344	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6345		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6346	fi
6347	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6348	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6349printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6350if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6351then :
6352  printf %s "(cached) " >&6
6353else $as_nop
6354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355/* end confdefs.h.  */
6356int i;
6357_ACEOF
6358if ac_fn_c_try_compile "$LINENO"
6359then :
6360  xorg_cv_cc_flag_unused_command_line_argument=yes
6361else $as_nop
6362  xorg_cv_cc_flag_unused_command_line_argument=no
6363fi
6364rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6365fi
6366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6367printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6368	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6369	CFLAGS="$xorg_testset_save_CFLAGS"
6370fi
6371
6372found="no"
6373
6374	if test $found = "no" ; then
6375		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6376			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6377		fi
6378
6379		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6380			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6381		fi
6382
6383		CFLAGS="$CFLAGS -Wunused"
6384
6385		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6386printf %s "checking if $CC supports -Wunused... " >&6; }
6387		cacheid=xorg_cv_cc_flag__Wunused
6388		if eval test \${$cacheid+y}
6389then :
6390  printf %s "(cached) " >&6
6391else $as_nop
6392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393/* end confdefs.h.  */
6394int i;
6395int
6396main (void)
6397{
6398
6399  ;
6400  return 0;
6401}
6402_ACEOF
6403if ac_fn_c_try_link "$LINENO"
6404then :
6405  eval $cacheid=yes
6406else $as_nop
6407  eval $cacheid=no
6408fi
6409rm -f core conftest.err conftest.$ac_objext conftest.beam \
6410    conftest$ac_exeext conftest.$ac_ext
6411fi
6412
6413
6414		CFLAGS="$xorg_testset_save_CFLAGS"
6415
6416		eval supported=\$$cacheid
6417		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6418printf "%s\n" "$supported" >&6; }
6419		if test "$supported" = "yes" ; then
6420			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6421			found="yes"
6422		fi
6423	fi
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439xorg_testset_save_CFLAGS="$CFLAGS"
6440
6441if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6442	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6443	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6444printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6445if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6446then :
6447  printf %s "(cached) " >&6
6448else $as_nop
6449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450/* end confdefs.h.  */
6451int i;
6452_ACEOF
6453if ac_fn_c_try_compile "$LINENO"
6454then :
6455  xorg_cv_cc_flag_unknown_warning_option=yes
6456else $as_nop
6457  xorg_cv_cc_flag_unknown_warning_option=no
6458fi
6459rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6460fi
6461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6462printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6463	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6464	CFLAGS="$xorg_testset_save_CFLAGS"
6465fi
6466
6467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6468	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6469		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6470	fi
6471	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6472	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6473printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6474if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6475then :
6476  printf %s "(cached) " >&6
6477else $as_nop
6478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479/* end confdefs.h.  */
6480int i;
6481_ACEOF
6482if ac_fn_c_try_compile "$LINENO"
6483then :
6484  xorg_cv_cc_flag_unused_command_line_argument=yes
6485else $as_nop
6486  xorg_cv_cc_flag_unused_command_line_argument=no
6487fi
6488rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6489fi
6490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6491printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6492	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6493	CFLAGS="$xorg_testset_save_CFLAGS"
6494fi
6495
6496found="no"
6497
6498	if test $found = "no" ; then
6499		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6500			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6501		fi
6502
6503		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6504			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6505		fi
6506
6507		CFLAGS="$CFLAGS -Wuninitialized"
6508
6509		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6510printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6511		cacheid=xorg_cv_cc_flag__Wuninitialized
6512		if eval test \${$cacheid+y}
6513then :
6514  printf %s "(cached) " >&6
6515else $as_nop
6516  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6517/* end confdefs.h.  */
6518int i;
6519int
6520main (void)
6521{
6522
6523  ;
6524  return 0;
6525}
6526_ACEOF
6527if ac_fn_c_try_link "$LINENO"
6528then :
6529  eval $cacheid=yes
6530else $as_nop
6531  eval $cacheid=no
6532fi
6533rm -f core conftest.err conftest.$ac_objext conftest.beam \
6534    conftest$ac_exeext conftest.$ac_ext
6535fi
6536
6537
6538		CFLAGS="$xorg_testset_save_CFLAGS"
6539
6540		eval supported=\$$cacheid
6541		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6542printf "%s\n" "$supported" >&6; }
6543		if test "$supported" = "yes" ; then
6544			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6545			found="yes"
6546		fi
6547	fi
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563xorg_testset_save_CFLAGS="$CFLAGS"
6564
6565if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6566	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6567	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6568printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6569if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6570then :
6571  printf %s "(cached) " >&6
6572else $as_nop
6573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574/* end confdefs.h.  */
6575int i;
6576_ACEOF
6577if ac_fn_c_try_compile "$LINENO"
6578then :
6579  xorg_cv_cc_flag_unknown_warning_option=yes
6580else $as_nop
6581  xorg_cv_cc_flag_unknown_warning_option=no
6582fi
6583rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6584fi
6585{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6586printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6587	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6588	CFLAGS="$xorg_testset_save_CFLAGS"
6589fi
6590
6591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6592	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6593		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6594	fi
6595	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6596	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6597printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6598if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6599then :
6600  printf %s "(cached) " >&6
6601else $as_nop
6602  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603/* end confdefs.h.  */
6604int i;
6605_ACEOF
6606if ac_fn_c_try_compile "$LINENO"
6607then :
6608  xorg_cv_cc_flag_unused_command_line_argument=yes
6609else $as_nop
6610  xorg_cv_cc_flag_unused_command_line_argument=no
6611fi
6612rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6613fi
6614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6615printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6616	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6617	CFLAGS="$xorg_testset_save_CFLAGS"
6618fi
6619
6620found="no"
6621
6622	if test $found = "no" ; then
6623		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6624			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6625		fi
6626
6627		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6628			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6629		fi
6630
6631		CFLAGS="$CFLAGS -Wshadow"
6632
6633		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6634printf %s "checking if $CC supports -Wshadow... " >&6; }
6635		cacheid=xorg_cv_cc_flag__Wshadow
6636		if eval test \${$cacheid+y}
6637then :
6638  printf %s "(cached) " >&6
6639else $as_nop
6640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641/* end confdefs.h.  */
6642int i;
6643int
6644main (void)
6645{
6646
6647  ;
6648  return 0;
6649}
6650_ACEOF
6651if ac_fn_c_try_link "$LINENO"
6652then :
6653  eval $cacheid=yes
6654else $as_nop
6655  eval $cacheid=no
6656fi
6657rm -f core conftest.err conftest.$ac_objext conftest.beam \
6658    conftest$ac_exeext conftest.$ac_ext
6659fi
6660
6661
6662		CFLAGS="$xorg_testset_save_CFLAGS"
6663
6664		eval supported=\$$cacheid
6665		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6666printf "%s\n" "$supported" >&6; }
6667		if test "$supported" = "yes" ; then
6668			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6669			found="yes"
6670		fi
6671	fi
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687xorg_testset_save_CFLAGS="$CFLAGS"
6688
6689if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6690	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6691	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6692printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6693if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6694then :
6695  printf %s "(cached) " >&6
6696else $as_nop
6697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698/* end confdefs.h.  */
6699int i;
6700_ACEOF
6701if ac_fn_c_try_compile "$LINENO"
6702then :
6703  xorg_cv_cc_flag_unknown_warning_option=yes
6704else $as_nop
6705  xorg_cv_cc_flag_unknown_warning_option=no
6706fi
6707rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6708fi
6709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6710printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6711	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6712	CFLAGS="$xorg_testset_save_CFLAGS"
6713fi
6714
6715if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6716	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6717		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6718	fi
6719	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6720	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6721printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6722if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6723then :
6724  printf %s "(cached) " >&6
6725else $as_nop
6726  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727/* end confdefs.h.  */
6728int i;
6729_ACEOF
6730if ac_fn_c_try_compile "$LINENO"
6731then :
6732  xorg_cv_cc_flag_unused_command_line_argument=yes
6733else $as_nop
6734  xorg_cv_cc_flag_unused_command_line_argument=no
6735fi
6736rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6737fi
6738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6739printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6740	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6741	CFLAGS="$xorg_testset_save_CFLAGS"
6742fi
6743
6744found="no"
6745
6746	if test $found = "no" ; then
6747		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6748			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6749		fi
6750
6751		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6752			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6753		fi
6754
6755		CFLAGS="$CFLAGS -Wmissing-noreturn"
6756
6757		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6758printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6759		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6760		if eval test \${$cacheid+y}
6761then :
6762  printf %s "(cached) " >&6
6763else $as_nop
6764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6765/* end confdefs.h.  */
6766int i;
6767int
6768main (void)
6769{
6770
6771  ;
6772  return 0;
6773}
6774_ACEOF
6775if ac_fn_c_try_link "$LINENO"
6776then :
6777  eval $cacheid=yes
6778else $as_nop
6779  eval $cacheid=no
6780fi
6781rm -f core conftest.err conftest.$ac_objext conftest.beam \
6782    conftest$ac_exeext conftest.$ac_ext
6783fi
6784
6785
6786		CFLAGS="$xorg_testset_save_CFLAGS"
6787
6788		eval supported=\$$cacheid
6789		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6790printf "%s\n" "$supported" >&6; }
6791		if test "$supported" = "yes" ; then
6792			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6793			found="yes"
6794		fi
6795	fi
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811xorg_testset_save_CFLAGS="$CFLAGS"
6812
6813if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6814	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6815	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6816printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6817if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6818then :
6819  printf %s "(cached) " >&6
6820else $as_nop
6821  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822/* end confdefs.h.  */
6823int i;
6824_ACEOF
6825if ac_fn_c_try_compile "$LINENO"
6826then :
6827  xorg_cv_cc_flag_unknown_warning_option=yes
6828else $as_nop
6829  xorg_cv_cc_flag_unknown_warning_option=no
6830fi
6831rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6832fi
6833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6834printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6835	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6836	CFLAGS="$xorg_testset_save_CFLAGS"
6837fi
6838
6839if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6840	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6841		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6842	fi
6843	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6844	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6845printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6846if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6847then :
6848  printf %s "(cached) " >&6
6849else $as_nop
6850  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851/* end confdefs.h.  */
6852int i;
6853_ACEOF
6854if ac_fn_c_try_compile "$LINENO"
6855then :
6856  xorg_cv_cc_flag_unused_command_line_argument=yes
6857else $as_nop
6858  xorg_cv_cc_flag_unused_command_line_argument=no
6859fi
6860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6861fi
6862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6863printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6864	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6865	CFLAGS="$xorg_testset_save_CFLAGS"
6866fi
6867
6868found="no"
6869
6870	if test $found = "no" ; then
6871		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6872			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6873		fi
6874
6875		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6876			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6877		fi
6878
6879		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6880
6881		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6882printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6883		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6884		if eval test \${$cacheid+y}
6885then :
6886  printf %s "(cached) " >&6
6887else $as_nop
6888  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889/* end confdefs.h.  */
6890int i;
6891int
6892main (void)
6893{
6894
6895  ;
6896  return 0;
6897}
6898_ACEOF
6899if ac_fn_c_try_link "$LINENO"
6900then :
6901  eval $cacheid=yes
6902else $as_nop
6903  eval $cacheid=no
6904fi
6905rm -f core conftest.err conftest.$ac_objext conftest.beam \
6906    conftest$ac_exeext conftest.$ac_ext
6907fi
6908
6909
6910		CFLAGS="$xorg_testset_save_CFLAGS"
6911
6912		eval supported=\$$cacheid
6913		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6914printf "%s\n" "$supported" >&6; }
6915		if test "$supported" = "yes" ; then
6916			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6917			found="yes"
6918		fi
6919	fi
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935xorg_testset_save_CFLAGS="$CFLAGS"
6936
6937if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6938	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6939	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6940printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6941if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6942then :
6943  printf %s "(cached) " >&6
6944else $as_nop
6945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946/* end confdefs.h.  */
6947int i;
6948_ACEOF
6949if ac_fn_c_try_compile "$LINENO"
6950then :
6951  xorg_cv_cc_flag_unknown_warning_option=yes
6952else $as_nop
6953  xorg_cv_cc_flag_unknown_warning_option=no
6954fi
6955rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6956fi
6957{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6958printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6959	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6960	CFLAGS="$xorg_testset_save_CFLAGS"
6961fi
6962
6963if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6964	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6965		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6966	fi
6967	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6968	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6969printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6970if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6971then :
6972  printf %s "(cached) " >&6
6973else $as_nop
6974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975/* end confdefs.h.  */
6976int i;
6977_ACEOF
6978if ac_fn_c_try_compile "$LINENO"
6979then :
6980  xorg_cv_cc_flag_unused_command_line_argument=yes
6981else $as_nop
6982  xorg_cv_cc_flag_unused_command_line_argument=no
6983fi
6984rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6985fi
6986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6987printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6988	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6989	CFLAGS="$xorg_testset_save_CFLAGS"
6990fi
6991
6992found="no"
6993
6994	if test $found = "no" ; then
6995		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6996			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6997		fi
6998
6999		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7000			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7001		fi
7002
7003		CFLAGS="$CFLAGS -Wredundant-decls"
7004
7005		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7006printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7007		cacheid=xorg_cv_cc_flag__Wredundant_decls
7008		if eval test \${$cacheid+y}
7009then :
7010  printf %s "(cached) " >&6
7011else $as_nop
7012  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013/* end confdefs.h.  */
7014int i;
7015int
7016main (void)
7017{
7018
7019  ;
7020  return 0;
7021}
7022_ACEOF
7023if ac_fn_c_try_link "$LINENO"
7024then :
7025  eval $cacheid=yes
7026else $as_nop
7027  eval $cacheid=no
7028fi
7029rm -f core conftest.err conftest.$ac_objext conftest.beam \
7030    conftest$ac_exeext conftest.$ac_ext
7031fi
7032
7033
7034		CFLAGS="$xorg_testset_save_CFLAGS"
7035
7036		eval supported=\$$cacheid
7037		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7038printf "%s\n" "$supported" >&6; }
7039		if test "$supported" = "yes" ; then
7040			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7041			found="yes"
7042		fi
7043	fi
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059xorg_testset_save_CFLAGS="$CFLAGS"
7060
7061if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7062	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7063	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7064printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7065if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7066then :
7067  printf %s "(cached) " >&6
7068else $as_nop
7069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070/* end confdefs.h.  */
7071int i;
7072_ACEOF
7073if ac_fn_c_try_compile "$LINENO"
7074then :
7075  xorg_cv_cc_flag_unknown_warning_option=yes
7076else $as_nop
7077  xorg_cv_cc_flag_unknown_warning_option=no
7078fi
7079rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7080fi
7081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7082printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7083	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7084	CFLAGS="$xorg_testset_save_CFLAGS"
7085fi
7086
7087if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7088	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7089		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7090	fi
7091	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7092	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7093printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7094if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7095then :
7096  printf %s "(cached) " >&6
7097else $as_nop
7098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099/* end confdefs.h.  */
7100int i;
7101_ACEOF
7102if ac_fn_c_try_compile "$LINENO"
7103then :
7104  xorg_cv_cc_flag_unused_command_line_argument=yes
7105else $as_nop
7106  xorg_cv_cc_flag_unused_command_line_argument=no
7107fi
7108rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7109fi
7110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7111printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7112	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7113	CFLAGS="$xorg_testset_save_CFLAGS"
7114fi
7115
7116found="no"
7117
7118	if test $found = "no" ; then
7119		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7120			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7121		fi
7122
7123		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7124			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7125		fi
7126
7127		CFLAGS="$CFLAGS -Wlogical-op"
7128
7129		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7130printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7131		cacheid=xorg_cv_cc_flag__Wlogical_op
7132		if eval test \${$cacheid+y}
7133then :
7134  printf %s "(cached) " >&6
7135else $as_nop
7136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137/* end confdefs.h.  */
7138int i;
7139int
7140main (void)
7141{
7142
7143  ;
7144  return 0;
7145}
7146_ACEOF
7147if ac_fn_c_try_link "$LINENO"
7148then :
7149  eval $cacheid=yes
7150else $as_nop
7151  eval $cacheid=no
7152fi
7153rm -f core conftest.err conftest.$ac_objext conftest.beam \
7154    conftest$ac_exeext conftest.$ac_ext
7155fi
7156
7157
7158		CFLAGS="$xorg_testset_save_CFLAGS"
7159
7160		eval supported=\$$cacheid
7161		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7162printf "%s\n" "$supported" >&6; }
7163		if test "$supported" = "yes" ; then
7164			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7165			found="yes"
7166		fi
7167	fi
7168
7169
7170
7171# These are currently disabled because they are noisy.  They will be enabled
7172# in the future once the codebase is sufficiently modernized to silence
7173# them.  For now, I don't want them to drown out the other warnings.
7174# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7175# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7176# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7177
7178# Turn some warnings into errors, so we don't accidently get successful builds
7179# when there are problems that should be fixed.
7180
7181if test "x$SELECTIVE_WERROR" = "xyes" ; then
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195xorg_testset_save_CFLAGS="$CFLAGS"
7196
7197if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7198	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7199	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7200printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7201if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7202then :
7203  printf %s "(cached) " >&6
7204else $as_nop
7205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206/* end confdefs.h.  */
7207int i;
7208_ACEOF
7209if ac_fn_c_try_compile "$LINENO"
7210then :
7211  xorg_cv_cc_flag_unknown_warning_option=yes
7212else $as_nop
7213  xorg_cv_cc_flag_unknown_warning_option=no
7214fi
7215rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7216fi
7217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7218printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7219	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7220	CFLAGS="$xorg_testset_save_CFLAGS"
7221fi
7222
7223if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7224	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7225		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7226	fi
7227	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7228	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7229printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7230if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7231then :
7232  printf %s "(cached) " >&6
7233else $as_nop
7234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235/* end confdefs.h.  */
7236int i;
7237_ACEOF
7238if ac_fn_c_try_compile "$LINENO"
7239then :
7240  xorg_cv_cc_flag_unused_command_line_argument=yes
7241else $as_nop
7242  xorg_cv_cc_flag_unused_command_line_argument=no
7243fi
7244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7245fi
7246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7247printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7248	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7249	CFLAGS="$xorg_testset_save_CFLAGS"
7250fi
7251
7252found="no"
7253
7254	if test $found = "no" ; then
7255		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7256			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7257		fi
7258
7259		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7260			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7261		fi
7262
7263		CFLAGS="$CFLAGS -Werror=implicit"
7264
7265		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7266printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7267		cacheid=xorg_cv_cc_flag__Werror_implicit
7268		if eval test \${$cacheid+y}
7269then :
7270  printf %s "(cached) " >&6
7271else $as_nop
7272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273/* end confdefs.h.  */
7274int i;
7275int
7276main (void)
7277{
7278
7279  ;
7280  return 0;
7281}
7282_ACEOF
7283if ac_fn_c_try_link "$LINENO"
7284then :
7285  eval $cacheid=yes
7286else $as_nop
7287  eval $cacheid=no
7288fi
7289rm -f core conftest.err conftest.$ac_objext conftest.beam \
7290    conftest$ac_exeext conftest.$ac_ext
7291fi
7292
7293
7294		CFLAGS="$xorg_testset_save_CFLAGS"
7295
7296		eval supported=\$$cacheid
7297		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7298printf "%s\n" "$supported" >&6; }
7299		if test "$supported" = "yes" ; then
7300			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7301			found="yes"
7302		fi
7303	fi
7304
7305	if test $found = "no" ; then
7306		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7307			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7308		fi
7309
7310		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7311			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7312		fi
7313
7314		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7315
7316		{ 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
7317printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7318		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7319		if eval test \${$cacheid+y}
7320then :
7321  printf %s "(cached) " >&6
7322else $as_nop
7323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324/* end confdefs.h.  */
7325int i;
7326int
7327main (void)
7328{
7329
7330  ;
7331  return 0;
7332}
7333_ACEOF
7334if ac_fn_c_try_link "$LINENO"
7335then :
7336  eval $cacheid=yes
7337else $as_nop
7338  eval $cacheid=no
7339fi
7340rm -f core conftest.err conftest.$ac_objext conftest.beam \
7341    conftest$ac_exeext conftest.$ac_ext
7342fi
7343
7344
7345		CFLAGS="$xorg_testset_save_CFLAGS"
7346
7347		eval supported=\$$cacheid
7348		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7349printf "%s\n" "$supported" >&6; }
7350		if test "$supported" = "yes" ; then
7351			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7352			found="yes"
7353		fi
7354	fi
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370xorg_testset_save_CFLAGS="$CFLAGS"
7371
7372if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7373	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7374	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7375printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7376if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7377then :
7378  printf %s "(cached) " >&6
7379else $as_nop
7380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7381/* end confdefs.h.  */
7382int i;
7383_ACEOF
7384if ac_fn_c_try_compile "$LINENO"
7385then :
7386  xorg_cv_cc_flag_unknown_warning_option=yes
7387else $as_nop
7388  xorg_cv_cc_flag_unknown_warning_option=no
7389fi
7390rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7391fi
7392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7393printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7394	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7395	CFLAGS="$xorg_testset_save_CFLAGS"
7396fi
7397
7398if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7399	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7400		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7401	fi
7402	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7403	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7404printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7405if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7406then :
7407  printf %s "(cached) " >&6
7408else $as_nop
7409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410/* end confdefs.h.  */
7411int i;
7412_ACEOF
7413if ac_fn_c_try_compile "$LINENO"
7414then :
7415  xorg_cv_cc_flag_unused_command_line_argument=yes
7416else $as_nop
7417  xorg_cv_cc_flag_unused_command_line_argument=no
7418fi
7419rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7420fi
7421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7422printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7423	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7424	CFLAGS="$xorg_testset_save_CFLAGS"
7425fi
7426
7427found="no"
7428
7429	if test $found = "no" ; then
7430		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7431			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7432		fi
7433
7434		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7435			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7436		fi
7437
7438		CFLAGS="$CFLAGS -Werror=nonnull"
7439
7440		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7441printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7442		cacheid=xorg_cv_cc_flag__Werror_nonnull
7443		if eval test \${$cacheid+y}
7444then :
7445  printf %s "(cached) " >&6
7446else $as_nop
7447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448/* end confdefs.h.  */
7449int i;
7450int
7451main (void)
7452{
7453
7454  ;
7455  return 0;
7456}
7457_ACEOF
7458if ac_fn_c_try_link "$LINENO"
7459then :
7460  eval $cacheid=yes
7461else $as_nop
7462  eval $cacheid=no
7463fi
7464rm -f core conftest.err conftest.$ac_objext conftest.beam \
7465    conftest$ac_exeext conftest.$ac_ext
7466fi
7467
7468
7469		CFLAGS="$xorg_testset_save_CFLAGS"
7470
7471		eval supported=\$$cacheid
7472		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7473printf "%s\n" "$supported" >&6; }
7474		if test "$supported" = "yes" ; then
7475			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7476			found="yes"
7477		fi
7478	fi
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494xorg_testset_save_CFLAGS="$CFLAGS"
7495
7496if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7497	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7498	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7499printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7500if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7501then :
7502  printf %s "(cached) " >&6
7503else $as_nop
7504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505/* end confdefs.h.  */
7506int i;
7507_ACEOF
7508if ac_fn_c_try_compile "$LINENO"
7509then :
7510  xorg_cv_cc_flag_unknown_warning_option=yes
7511else $as_nop
7512  xorg_cv_cc_flag_unknown_warning_option=no
7513fi
7514rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7515fi
7516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7517printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7518	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7519	CFLAGS="$xorg_testset_save_CFLAGS"
7520fi
7521
7522if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7523	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7524		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7525	fi
7526	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7527	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7528printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7529if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7530then :
7531  printf %s "(cached) " >&6
7532else $as_nop
7533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534/* end confdefs.h.  */
7535int i;
7536_ACEOF
7537if ac_fn_c_try_compile "$LINENO"
7538then :
7539  xorg_cv_cc_flag_unused_command_line_argument=yes
7540else $as_nop
7541  xorg_cv_cc_flag_unused_command_line_argument=no
7542fi
7543rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7544fi
7545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7546printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7547	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7548	CFLAGS="$xorg_testset_save_CFLAGS"
7549fi
7550
7551found="no"
7552
7553	if test $found = "no" ; then
7554		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7555			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7556		fi
7557
7558		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7559			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7560		fi
7561
7562		CFLAGS="$CFLAGS -Werror=init-self"
7563
7564		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7565printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7566		cacheid=xorg_cv_cc_flag__Werror_init_self
7567		if eval test \${$cacheid+y}
7568then :
7569  printf %s "(cached) " >&6
7570else $as_nop
7571  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572/* end confdefs.h.  */
7573int i;
7574int
7575main (void)
7576{
7577
7578  ;
7579  return 0;
7580}
7581_ACEOF
7582if ac_fn_c_try_link "$LINENO"
7583then :
7584  eval $cacheid=yes
7585else $as_nop
7586  eval $cacheid=no
7587fi
7588rm -f core conftest.err conftest.$ac_objext conftest.beam \
7589    conftest$ac_exeext conftest.$ac_ext
7590fi
7591
7592
7593		CFLAGS="$xorg_testset_save_CFLAGS"
7594
7595		eval supported=\$$cacheid
7596		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7597printf "%s\n" "$supported" >&6; }
7598		if test "$supported" = "yes" ; then
7599			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7600			found="yes"
7601		fi
7602	fi
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618xorg_testset_save_CFLAGS="$CFLAGS"
7619
7620if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7621	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7622	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7623printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7624if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7625then :
7626  printf %s "(cached) " >&6
7627else $as_nop
7628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629/* end confdefs.h.  */
7630int i;
7631_ACEOF
7632if ac_fn_c_try_compile "$LINENO"
7633then :
7634  xorg_cv_cc_flag_unknown_warning_option=yes
7635else $as_nop
7636  xorg_cv_cc_flag_unknown_warning_option=no
7637fi
7638rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7639fi
7640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7641printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7642	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7643	CFLAGS="$xorg_testset_save_CFLAGS"
7644fi
7645
7646if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7647	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7648		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7649	fi
7650	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7651	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7652printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7653if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7654then :
7655  printf %s "(cached) " >&6
7656else $as_nop
7657  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7658/* end confdefs.h.  */
7659int i;
7660_ACEOF
7661if ac_fn_c_try_compile "$LINENO"
7662then :
7663  xorg_cv_cc_flag_unused_command_line_argument=yes
7664else $as_nop
7665  xorg_cv_cc_flag_unused_command_line_argument=no
7666fi
7667rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7668fi
7669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7670printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7671	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7672	CFLAGS="$xorg_testset_save_CFLAGS"
7673fi
7674
7675found="no"
7676
7677	if test $found = "no" ; then
7678		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7679			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7680		fi
7681
7682		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7683			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7684		fi
7685
7686		CFLAGS="$CFLAGS -Werror=main"
7687
7688		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7689printf %s "checking if $CC supports -Werror=main... " >&6; }
7690		cacheid=xorg_cv_cc_flag__Werror_main
7691		if eval test \${$cacheid+y}
7692then :
7693  printf %s "(cached) " >&6
7694else $as_nop
7695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696/* end confdefs.h.  */
7697int i;
7698int
7699main (void)
7700{
7701
7702  ;
7703  return 0;
7704}
7705_ACEOF
7706if ac_fn_c_try_link "$LINENO"
7707then :
7708  eval $cacheid=yes
7709else $as_nop
7710  eval $cacheid=no
7711fi
7712rm -f core conftest.err conftest.$ac_objext conftest.beam \
7713    conftest$ac_exeext conftest.$ac_ext
7714fi
7715
7716
7717		CFLAGS="$xorg_testset_save_CFLAGS"
7718
7719		eval supported=\$$cacheid
7720		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7721printf "%s\n" "$supported" >&6; }
7722		if test "$supported" = "yes" ; then
7723			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7724			found="yes"
7725		fi
7726	fi
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742xorg_testset_save_CFLAGS="$CFLAGS"
7743
7744if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7745	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7746	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7747printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7748if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7749then :
7750  printf %s "(cached) " >&6
7751else $as_nop
7752  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753/* end confdefs.h.  */
7754int i;
7755_ACEOF
7756if ac_fn_c_try_compile "$LINENO"
7757then :
7758  xorg_cv_cc_flag_unknown_warning_option=yes
7759else $as_nop
7760  xorg_cv_cc_flag_unknown_warning_option=no
7761fi
7762rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7763fi
7764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7765printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7766	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7767	CFLAGS="$xorg_testset_save_CFLAGS"
7768fi
7769
7770if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7771	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7772		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7773	fi
7774	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7775	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7776printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7777if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7778then :
7779  printf %s "(cached) " >&6
7780else $as_nop
7781  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782/* end confdefs.h.  */
7783int i;
7784_ACEOF
7785if ac_fn_c_try_compile "$LINENO"
7786then :
7787  xorg_cv_cc_flag_unused_command_line_argument=yes
7788else $as_nop
7789  xorg_cv_cc_flag_unused_command_line_argument=no
7790fi
7791rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7792fi
7793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7794printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7795	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7796	CFLAGS="$xorg_testset_save_CFLAGS"
7797fi
7798
7799found="no"
7800
7801	if test $found = "no" ; then
7802		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7803			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7804		fi
7805
7806		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7807			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7808		fi
7809
7810		CFLAGS="$CFLAGS -Werror=missing-braces"
7811
7812		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7813printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7814		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7815		if eval test \${$cacheid+y}
7816then :
7817  printf %s "(cached) " >&6
7818else $as_nop
7819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820/* end confdefs.h.  */
7821int i;
7822int
7823main (void)
7824{
7825
7826  ;
7827  return 0;
7828}
7829_ACEOF
7830if ac_fn_c_try_link "$LINENO"
7831then :
7832  eval $cacheid=yes
7833else $as_nop
7834  eval $cacheid=no
7835fi
7836rm -f core conftest.err conftest.$ac_objext conftest.beam \
7837    conftest$ac_exeext conftest.$ac_ext
7838fi
7839
7840
7841		CFLAGS="$xorg_testset_save_CFLAGS"
7842
7843		eval supported=\$$cacheid
7844		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7845printf "%s\n" "$supported" >&6; }
7846		if test "$supported" = "yes" ; then
7847			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7848			found="yes"
7849		fi
7850	fi
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866xorg_testset_save_CFLAGS="$CFLAGS"
7867
7868if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7869	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7870	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7871printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7872if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7873then :
7874  printf %s "(cached) " >&6
7875else $as_nop
7876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877/* end confdefs.h.  */
7878int i;
7879_ACEOF
7880if ac_fn_c_try_compile "$LINENO"
7881then :
7882  xorg_cv_cc_flag_unknown_warning_option=yes
7883else $as_nop
7884  xorg_cv_cc_flag_unknown_warning_option=no
7885fi
7886rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7887fi
7888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7889printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7890	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7891	CFLAGS="$xorg_testset_save_CFLAGS"
7892fi
7893
7894if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7895	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7896		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7897	fi
7898	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7899	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7900printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7901if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7902then :
7903  printf %s "(cached) " >&6
7904else $as_nop
7905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906/* end confdefs.h.  */
7907int i;
7908_ACEOF
7909if ac_fn_c_try_compile "$LINENO"
7910then :
7911  xorg_cv_cc_flag_unused_command_line_argument=yes
7912else $as_nop
7913  xorg_cv_cc_flag_unused_command_line_argument=no
7914fi
7915rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7916fi
7917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7918printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7919	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7920	CFLAGS="$xorg_testset_save_CFLAGS"
7921fi
7922
7923found="no"
7924
7925	if test $found = "no" ; then
7926		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7927			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7928		fi
7929
7930		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7931			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7932		fi
7933
7934		CFLAGS="$CFLAGS -Werror=sequence-point"
7935
7936		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7937printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7938		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7939		if eval test \${$cacheid+y}
7940then :
7941  printf %s "(cached) " >&6
7942else $as_nop
7943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944/* end confdefs.h.  */
7945int i;
7946int
7947main (void)
7948{
7949
7950  ;
7951  return 0;
7952}
7953_ACEOF
7954if ac_fn_c_try_link "$LINENO"
7955then :
7956  eval $cacheid=yes
7957else $as_nop
7958  eval $cacheid=no
7959fi
7960rm -f core conftest.err conftest.$ac_objext conftest.beam \
7961    conftest$ac_exeext conftest.$ac_ext
7962fi
7963
7964
7965		CFLAGS="$xorg_testset_save_CFLAGS"
7966
7967		eval supported=\$$cacheid
7968		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7969printf "%s\n" "$supported" >&6; }
7970		if test "$supported" = "yes" ; then
7971			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7972			found="yes"
7973		fi
7974	fi
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990xorg_testset_save_CFLAGS="$CFLAGS"
7991
7992if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7993	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7994	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7995printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7996if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7997then :
7998  printf %s "(cached) " >&6
7999else $as_nop
8000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001/* end confdefs.h.  */
8002int i;
8003_ACEOF
8004if ac_fn_c_try_compile "$LINENO"
8005then :
8006  xorg_cv_cc_flag_unknown_warning_option=yes
8007else $as_nop
8008  xorg_cv_cc_flag_unknown_warning_option=no
8009fi
8010rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8011fi
8012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8013printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8014	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8015	CFLAGS="$xorg_testset_save_CFLAGS"
8016fi
8017
8018if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8019	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8020		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8021	fi
8022	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8023	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8024printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8025if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8026then :
8027  printf %s "(cached) " >&6
8028else $as_nop
8029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8030/* end confdefs.h.  */
8031int i;
8032_ACEOF
8033if ac_fn_c_try_compile "$LINENO"
8034then :
8035  xorg_cv_cc_flag_unused_command_line_argument=yes
8036else $as_nop
8037  xorg_cv_cc_flag_unused_command_line_argument=no
8038fi
8039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8040fi
8041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8042printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8043	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8044	CFLAGS="$xorg_testset_save_CFLAGS"
8045fi
8046
8047found="no"
8048
8049	if test $found = "no" ; then
8050		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8051			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8052		fi
8053
8054		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8055			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8056		fi
8057
8058		CFLAGS="$CFLAGS -Werror=return-type"
8059
8060		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8061printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8062		cacheid=xorg_cv_cc_flag__Werror_return_type
8063		if eval test \${$cacheid+y}
8064then :
8065  printf %s "(cached) " >&6
8066else $as_nop
8067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068/* end confdefs.h.  */
8069int i;
8070int
8071main (void)
8072{
8073
8074  ;
8075  return 0;
8076}
8077_ACEOF
8078if ac_fn_c_try_link "$LINENO"
8079then :
8080  eval $cacheid=yes
8081else $as_nop
8082  eval $cacheid=no
8083fi
8084rm -f core conftest.err conftest.$ac_objext conftest.beam \
8085    conftest$ac_exeext conftest.$ac_ext
8086fi
8087
8088
8089		CFLAGS="$xorg_testset_save_CFLAGS"
8090
8091		eval supported=\$$cacheid
8092		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8093printf "%s\n" "$supported" >&6; }
8094		if test "$supported" = "yes" ; then
8095			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8096			found="yes"
8097		fi
8098	fi
8099
8100	if test $found = "no" ; then
8101		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8102			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8103		fi
8104
8105		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8106			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8107		fi
8108
8109		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8110
8111		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8112printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8113		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8114		if eval test \${$cacheid+y}
8115then :
8116  printf %s "(cached) " >&6
8117else $as_nop
8118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119/* end confdefs.h.  */
8120int i;
8121int
8122main (void)
8123{
8124
8125  ;
8126  return 0;
8127}
8128_ACEOF
8129if ac_fn_c_try_link "$LINENO"
8130then :
8131  eval $cacheid=yes
8132else $as_nop
8133  eval $cacheid=no
8134fi
8135rm -f core conftest.err conftest.$ac_objext conftest.beam \
8136    conftest$ac_exeext conftest.$ac_ext
8137fi
8138
8139
8140		CFLAGS="$xorg_testset_save_CFLAGS"
8141
8142		eval supported=\$$cacheid
8143		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8144printf "%s\n" "$supported" >&6; }
8145		if test "$supported" = "yes" ; then
8146			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8147			found="yes"
8148		fi
8149	fi
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165xorg_testset_save_CFLAGS="$CFLAGS"
8166
8167if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8168	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8169	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8170printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8171if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8172then :
8173  printf %s "(cached) " >&6
8174else $as_nop
8175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8176/* end confdefs.h.  */
8177int i;
8178_ACEOF
8179if ac_fn_c_try_compile "$LINENO"
8180then :
8181  xorg_cv_cc_flag_unknown_warning_option=yes
8182else $as_nop
8183  xorg_cv_cc_flag_unknown_warning_option=no
8184fi
8185rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8186fi
8187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8188printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8189	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8190	CFLAGS="$xorg_testset_save_CFLAGS"
8191fi
8192
8193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8194	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8195		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8196	fi
8197	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8198	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8199printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8200if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8201then :
8202  printf %s "(cached) " >&6
8203else $as_nop
8204  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205/* end confdefs.h.  */
8206int i;
8207_ACEOF
8208if ac_fn_c_try_compile "$LINENO"
8209then :
8210  xorg_cv_cc_flag_unused_command_line_argument=yes
8211else $as_nop
8212  xorg_cv_cc_flag_unused_command_line_argument=no
8213fi
8214rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8215fi
8216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8217printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8218	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8219	CFLAGS="$xorg_testset_save_CFLAGS"
8220fi
8221
8222found="no"
8223
8224	if test $found = "no" ; then
8225		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8226			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8227		fi
8228
8229		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8230			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8231		fi
8232
8233		CFLAGS="$CFLAGS -Werror=trigraphs"
8234
8235		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8236printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8237		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8238		if eval test \${$cacheid+y}
8239then :
8240  printf %s "(cached) " >&6
8241else $as_nop
8242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243/* end confdefs.h.  */
8244int i;
8245int
8246main (void)
8247{
8248
8249  ;
8250  return 0;
8251}
8252_ACEOF
8253if ac_fn_c_try_link "$LINENO"
8254then :
8255  eval $cacheid=yes
8256else $as_nop
8257  eval $cacheid=no
8258fi
8259rm -f core conftest.err conftest.$ac_objext conftest.beam \
8260    conftest$ac_exeext conftest.$ac_ext
8261fi
8262
8263
8264		CFLAGS="$xorg_testset_save_CFLAGS"
8265
8266		eval supported=\$$cacheid
8267		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8268printf "%s\n" "$supported" >&6; }
8269		if test "$supported" = "yes" ; then
8270			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8271			found="yes"
8272		fi
8273	fi
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289xorg_testset_save_CFLAGS="$CFLAGS"
8290
8291if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8292	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8293	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8294printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8295if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8296then :
8297  printf %s "(cached) " >&6
8298else $as_nop
8299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300/* end confdefs.h.  */
8301int i;
8302_ACEOF
8303if ac_fn_c_try_compile "$LINENO"
8304then :
8305  xorg_cv_cc_flag_unknown_warning_option=yes
8306else $as_nop
8307  xorg_cv_cc_flag_unknown_warning_option=no
8308fi
8309rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8310fi
8311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8312printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8313	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8314	CFLAGS="$xorg_testset_save_CFLAGS"
8315fi
8316
8317if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8318	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8319		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8320	fi
8321	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8322	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8323printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8324if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8325then :
8326  printf %s "(cached) " >&6
8327else $as_nop
8328  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329/* end confdefs.h.  */
8330int i;
8331_ACEOF
8332if ac_fn_c_try_compile "$LINENO"
8333then :
8334  xorg_cv_cc_flag_unused_command_line_argument=yes
8335else $as_nop
8336  xorg_cv_cc_flag_unused_command_line_argument=no
8337fi
8338rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8339fi
8340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8341printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8342	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8343	CFLAGS="$xorg_testset_save_CFLAGS"
8344fi
8345
8346found="no"
8347
8348	if test $found = "no" ; then
8349		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8350			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8351		fi
8352
8353		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8354			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8355		fi
8356
8357		CFLAGS="$CFLAGS -Werror=array-bounds"
8358
8359		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8360printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8361		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8362		if eval test \${$cacheid+y}
8363then :
8364  printf %s "(cached) " >&6
8365else $as_nop
8366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8367/* end confdefs.h.  */
8368int i;
8369int
8370main (void)
8371{
8372
8373  ;
8374  return 0;
8375}
8376_ACEOF
8377if ac_fn_c_try_link "$LINENO"
8378then :
8379  eval $cacheid=yes
8380else $as_nop
8381  eval $cacheid=no
8382fi
8383rm -f core conftest.err conftest.$ac_objext conftest.beam \
8384    conftest$ac_exeext conftest.$ac_ext
8385fi
8386
8387
8388		CFLAGS="$xorg_testset_save_CFLAGS"
8389
8390		eval supported=\$$cacheid
8391		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8392printf "%s\n" "$supported" >&6; }
8393		if test "$supported" = "yes" ; then
8394			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8395			found="yes"
8396		fi
8397	fi
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413xorg_testset_save_CFLAGS="$CFLAGS"
8414
8415if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8416	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8417	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8418printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8419if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8420then :
8421  printf %s "(cached) " >&6
8422else $as_nop
8423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8424/* end confdefs.h.  */
8425int i;
8426_ACEOF
8427if ac_fn_c_try_compile "$LINENO"
8428then :
8429  xorg_cv_cc_flag_unknown_warning_option=yes
8430else $as_nop
8431  xorg_cv_cc_flag_unknown_warning_option=no
8432fi
8433rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8434fi
8435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8436printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8437	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8438	CFLAGS="$xorg_testset_save_CFLAGS"
8439fi
8440
8441if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8442	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8443		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8444	fi
8445	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8446	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8447printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8448if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8449then :
8450  printf %s "(cached) " >&6
8451else $as_nop
8452  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453/* end confdefs.h.  */
8454int i;
8455_ACEOF
8456if ac_fn_c_try_compile "$LINENO"
8457then :
8458  xorg_cv_cc_flag_unused_command_line_argument=yes
8459else $as_nop
8460  xorg_cv_cc_flag_unused_command_line_argument=no
8461fi
8462rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8463fi
8464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8465printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8466	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8467	CFLAGS="$xorg_testset_save_CFLAGS"
8468fi
8469
8470found="no"
8471
8472	if test $found = "no" ; then
8473		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8474			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8475		fi
8476
8477		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8478			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8479		fi
8480
8481		CFLAGS="$CFLAGS -Werror=write-strings"
8482
8483		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8484printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8485		cacheid=xorg_cv_cc_flag__Werror_write_strings
8486		if eval test \${$cacheid+y}
8487then :
8488  printf %s "(cached) " >&6
8489else $as_nop
8490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491/* end confdefs.h.  */
8492int i;
8493int
8494main (void)
8495{
8496
8497  ;
8498  return 0;
8499}
8500_ACEOF
8501if ac_fn_c_try_link "$LINENO"
8502then :
8503  eval $cacheid=yes
8504else $as_nop
8505  eval $cacheid=no
8506fi
8507rm -f core conftest.err conftest.$ac_objext conftest.beam \
8508    conftest$ac_exeext conftest.$ac_ext
8509fi
8510
8511
8512		CFLAGS="$xorg_testset_save_CFLAGS"
8513
8514		eval supported=\$$cacheid
8515		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8516printf "%s\n" "$supported" >&6; }
8517		if test "$supported" = "yes" ; then
8518			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8519			found="yes"
8520		fi
8521	fi
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537xorg_testset_save_CFLAGS="$CFLAGS"
8538
8539if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8540	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8541	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8542printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8543if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8544then :
8545  printf %s "(cached) " >&6
8546else $as_nop
8547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8548/* end confdefs.h.  */
8549int i;
8550_ACEOF
8551if ac_fn_c_try_compile "$LINENO"
8552then :
8553  xorg_cv_cc_flag_unknown_warning_option=yes
8554else $as_nop
8555  xorg_cv_cc_flag_unknown_warning_option=no
8556fi
8557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8558fi
8559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8560printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8561	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8562	CFLAGS="$xorg_testset_save_CFLAGS"
8563fi
8564
8565if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8566	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8567		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8568	fi
8569	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8570	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8571printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8572if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8573then :
8574  printf %s "(cached) " >&6
8575else $as_nop
8576  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8577/* end confdefs.h.  */
8578int i;
8579_ACEOF
8580if ac_fn_c_try_compile "$LINENO"
8581then :
8582  xorg_cv_cc_flag_unused_command_line_argument=yes
8583else $as_nop
8584  xorg_cv_cc_flag_unused_command_line_argument=no
8585fi
8586rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8587fi
8588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8589printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8590	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8591	CFLAGS="$xorg_testset_save_CFLAGS"
8592fi
8593
8594found="no"
8595
8596	if test $found = "no" ; then
8597		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8598			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8599		fi
8600
8601		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8602			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8603		fi
8604
8605		CFLAGS="$CFLAGS -Werror=address"
8606
8607		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8608printf %s "checking if $CC supports -Werror=address... " >&6; }
8609		cacheid=xorg_cv_cc_flag__Werror_address
8610		if eval test \${$cacheid+y}
8611then :
8612  printf %s "(cached) " >&6
8613else $as_nop
8614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615/* end confdefs.h.  */
8616int i;
8617int
8618main (void)
8619{
8620
8621  ;
8622  return 0;
8623}
8624_ACEOF
8625if ac_fn_c_try_link "$LINENO"
8626then :
8627  eval $cacheid=yes
8628else $as_nop
8629  eval $cacheid=no
8630fi
8631rm -f core conftest.err conftest.$ac_objext conftest.beam \
8632    conftest$ac_exeext conftest.$ac_ext
8633fi
8634
8635
8636		CFLAGS="$xorg_testset_save_CFLAGS"
8637
8638		eval supported=\$$cacheid
8639		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8640printf "%s\n" "$supported" >&6; }
8641		if test "$supported" = "yes" ; then
8642			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8643			found="yes"
8644		fi
8645	fi
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661xorg_testset_save_CFLAGS="$CFLAGS"
8662
8663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8664	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8665	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8666printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8667if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8668then :
8669  printf %s "(cached) " >&6
8670else $as_nop
8671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672/* end confdefs.h.  */
8673int i;
8674_ACEOF
8675if ac_fn_c_try_compile "$LINENO"
8676then :
8677  xorg_cv_cc_flag_unknown_warning_option=yes
8678else $as_nop
8679  xorg_cv_cc_flag_unknown_warning_option=no
8680fi
8681rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8682fi
8683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8684printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8685	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8686	CFLAGS="$xorg_testset_save_CFLAGS"
8687fi
8688
8689if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8690	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8691		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8692	fi
8693	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8694	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8695printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8696if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8697then :
8698  printf %s "(cached) " >&6
8699else $as_nop
8700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8701/* end confdefs.h.  */
8702int i;
8703_ACEOF
8704if ac_fn_c_try_compile "$LINENO"
8705then :
8706  xorg_cv_cc_flag_unused_command_line_argument=yes
8707else $as_nop
8708  xorg_cv_cc_flag_unused_command_line_argument=no
8709fi
8710rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8711fi
8712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8713printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8714	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8715	CFLAGS="$xorg_testset_save_CFLAGS"
8716fi
8717
8718found="no"
8719
8720	if test $found = "no" ; then
8721		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8722			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8723		fi
8724
8725		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8726			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8727		fi
8728
8729		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8730
8731		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8732printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8733		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8734		if eval test \${$cacheid+y}
8735then :
8736  printf %s "(cached) " >&6
8737else $as_nop
8738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739/* end confdefs.h.  */
8740int i;
8741int
8742main (void)
8743{
8744
8745  ;
8746  return 0;
8747}
8748_ACEOF
8749if ac_fn_c_try_link "$LINENO"
8750then :
8751  eval $cacheid=yes
8752else $as_nop
8753  eval $cacheid=no
8754fi
8755rm -f core conftest.err conftest.$ac_objext conftest.beam \
8756    conftest$ac_exeext conftest.$ac_ext
8757fi
8758
8759
8760		CFLAGS="$xorg_testset_save_CFLAGS"
8761
8762		eval supported=\$$cacheid
8763		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8764printf "%s\n" "$supported" >&6; }
8765		if test "$supported" = "yes" ; then
8766			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8767			found="yes"
8768		fi
8769	fi
8770
8771	if test $found = "no" ; then
8772		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8773			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8774		fi
8775
8776		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8777			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8778		fi
8779
8780		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8781
8782		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8783printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8784		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8785		if eval test \${$cacheid+y}
8786then :
8787  printf %s "(cached) " >&6
8788else $as_nop
8789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790/* end confdefs.h.  */
8791int i;
8792int
8793main (void)
8794{
8795
8796  ;
8797  return 0;
8798}
8799_ACEOF
8800if ac_fn_c_try_link "$LINENO"
8801then :
8802  eval $cacheid=yes
8803else $as_nop
8804  eval $cacheid=no
8805fi
8806rm -f core conftest.err conftest.$ac_objext conftest.beam \
8807    conftest$ac_exeext conftest.$ac_ext
8808fi
8809
8810
8811		CFLAGS="$xorg_testset_save_CFLAGS"
8812
8813		eval supported=\$$cacheid
8814		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8815printf "%s\n" "$supported" >&6; }
8816		if test "$supported" = "yes" ; then
8817			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8818			found="yes"
8819		fi
8820	fi
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836xorg_testset_save_CFLAGS="$CFLAGS"
8837
8838if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8839	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8840	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8841printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8842if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8843then :
8844  printf %s "(cached) " >&6
8845else $as_nop
8846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8847/* end confdefs.h.  */
8848int i;
8849_ACEOF
8850if ac_fn_c_try_compile "$LINENO"
8851then :
8852  xorg_cv_cc_flag_unknown_warning_option=yes
8853else $as_nop
8854  xorg_cv_cc_flag_unknown_warning_option=no
8855fi
8856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8857fi
8858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8859printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8860	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8861	CFLAGS="$xorg_testset_save_CFLAGS"
8862fi
8863
8864if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8865	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8866		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8867	fi
8868	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8869	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8870printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8871if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8872then :
8873  printf %s "(cached) " >&6
8874else $as_nop
8875  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8876/* end confdefs.h.  */
8877int i;
8878_ACEOF
8879if ac_fn_c_try_compile "$LINENO"
8880then :
8881  xorg_cv_cc_flag_unused_command_line_argument=yes
8882else $as_nop
8883  xorg_cv_cc_flag_unused_command_line_argument=no
8884fi
8885rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8886fi
8887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8888printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8889	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8890	CFLAGS="$xorg_testset_save_CFLAGS"
8891fi
8892
8893found="no"
8894
8895	if test $found = "no" ; then
8896		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8897			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8898		fi
8899
8900		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8901			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8902		fi
8903
8904		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8905
8906		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8907printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8908		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8909		if eval test \${$cacheid+y}
8910then :
8911  printf %s "(cached) " >&6
8912else $as_nop
8913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8914/* end confdefs.h.  */
8915int i;
8916int
8917main (void)
8918{
8919
8920  ;
8921  return 0;
8922}
8923_ACEOF
8924if ac_fn_c_try_link "$LINENO"
8925then :
8926  eval $cacheid=yes
8927else $as_nop
8928  eval $cacheid=no
8929fi
8930rm -f core conftest.err conftest.$ac_objext conftest.beam \
8931    conftest$ac_exeext conftest.$ac_ext
8932fi
8933
8934
8935		CFLAGS="$xorg_testset_save_CFLAGS"
8936
8937		eval supported=\$$cacheid
8938		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8939printf "%s\n" "$supported" >&6; }
8940		if test "$supported" = "yes" ; then
8941			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8942			found="yes"
8943		fi
8944	fi
8945
8946 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8947else
8948{ 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
8949printf "%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;}
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963xorg_testset_save_CFLAGS="$CFLAGS"
8964
8965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8966	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8967	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8968printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8969if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8970then :
8971  printf %s "(cached) " >&6
8972else $as_nop
8973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974/* end confdefs.h.  */
8975int i;
8976_ACEOF
8977if ac_fn_c_try_compile "$LINENO"
8978then :
8979  xorg_cv_cc_flag_unknown_warning_option=yes
8980else $as_nop
8981  xorg_cv_cc_flag_unknown_warning_option=no
8982fi
8983rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8984fi
8985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8986printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8987	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8988	CFLAGS="$xorg_testset_save_CFLAGS"
8989fi
8990
8991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8992	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8993		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8994	fi
8995	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8996	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8997printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8998if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8999then :
9000  printf %s "(cached) " >&6
9001else $as_nop
9002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9003/* end confdefs.h.  */
9004int i;
9005_ACEOF
9006if ac_fn_c_try_compile "$LINENO"
9007then :
9008  xorg_cv_cc_flag_unused_command_line_argument=yes
9009else $as_nop
9010  xorg_cv_cc_flag_unused_command_line_argument=no
9011fi
9012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9013fi
9014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9015printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9016	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9017	CFLAGS="$xorg_testset_save_CFLAGS"
9018fi
9019
9020found="no"
9021
9022	if test $found = "no" ; then
9023		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9024			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9025		fi
9026
9027		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9028			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9029		fi
9030
9031		CFLAGS="$CFLAGS -Wimplicit"
9032
9033		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9034printf %s "checking if $CC supports -Wimplicit... " >&6; }
9035		cacheid=xorg_cv_cc_flag__Wimplicit
9036		if eval test \${$cacheid+y}
9037then :
9038  printf %s "(cached) " >&6
9039else $as_nop
9040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041/* end confdefs.h.  */
9042int i;
9043int
9044main (void)
9045{
9046
9047  ;
9048  return 0;
9049}
9050_ACEOF
9051if ac_fn_c_try_link "$LINENO"
9052then :
9053  eval $cacheid=yes
9054else $as_nop
9055  eval $cacheid=no
9056fi
9057rm -f core conftest.err conftest.$ac_objext conftest.beam \
9058    conftest$ac_exeext conftest.$ac_ext
9059fi
9060
9061
9062		CFLAGS="$xorg_testset_save_CFLAGS"
9063
9064		eval supported=\$$cacheid
9065		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9066printf "%s\n" "$supported" >&6; }
9067		if test "$supported" = "yes" ; then
9068			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9069			found="yes"
9070		fi
9071	fi
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087xorg_testset_save_CFLAGS="$CFLAGS"
9088
9089if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9090	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9091	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9092printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9093if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9094then :
9095  printf %s "(cached) " >&6
9096else $as_nop
9097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9098/* end confdefs.h.  */
9099int i;
9100_ACEOF
9101if ac_fn_c_try_compile "$LINENO"
9102then :
9103  xorg_cv_cc_flag_unknown_warning_option=yes
9104else $as_nop
9105  xorg_cv_cc_flag_unknown_warning_option=no
9106fi
9107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9108fi
9109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9110printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9111	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9112	CFLAGS="$xorg_testset_save_CFLAGS"
9113fi
9114
9115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9116	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9117		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9118	fi
9119	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9120	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9121printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9122if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9123then :
9124  printf %s "(cached) " >&6
9125else $as_nop
9126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127/* end confdefs.h.  */
9128int i;
9129_ACEOF
9130if ac_fn_c_try_compile "$LINENO"
9131then :
9132  xorg_cv_cc_flag_unused_command_line_argument=yes
9133else $as_nop
9134  xorg_cv_cc_flag_unused_command_line_argument=no
9135fi
9136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9137fi
9138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9139printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9140	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9141	CFLAGS="$xorg_testset_save_CFLAGS"
9142fi
9143
9144found="no"
9145
9146	if test $found = "no" ; then
9147		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9148			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9149		fi
9150
9151		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9152			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9153		fi
9154
9155		CFLAGS="$CFLAGS -Wnonnull"
9156
9157		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9158printf %s "checking if $CC supports -Wnonnull... " >&6; }
9159		cacheid=xorg_cv_cc_flag__Wnonnull
9160		if eval test \${$cacheid+y}
9161then :
9162  printf %s "(cached) " >&6
9163else $as_nop
9164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165/* end confdefs.h.  */
9166int i;
9167int
9168main (void)
9169{
9170
9171  ;
9172  return 0;
9173}
9174_ACEOF
9175if ac_fn_c_try_link "$LINENO"
9176then :
9177  eval $cacheid=yes
9178else $as_nop
9179  eval $cacheid=no
9180fi
9181rm -f core conftest.err conftest.$ac_objext conftest.beam \
9182    conftest$ac_exeext conftest.$ac_ext
9183fi
9184
9185
9186		CFLAGS="$xorg_testset_save_CFLAGS"
9187
9188		eval supported=\$$cacheid
9189		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9190printf "%s\n" "$supported" >&6; }
9191		if test "$supported" = "yes" ; then
9192			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9193			found="yes"
9194		fi
9195	fi
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211xorg_testset_save_CFLAGS="$CFLAGS"
9212
9213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9214	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9215	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9216printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9217if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9218then :
9219  printf %s "(cached) " >&6
9220else $as_nop
9221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9222/* end confdefs.h.  */
9223int i;
9224_ACEOF
9225if ac_fn_c_try_compile "$LINENO"
9226then :
9227  xorg_cv_cc_flag_unknown_warning_option=yes
9228else $as_nop
9229  xorg_cv_cc_flag_unknown_warning_option=no
9230fi
9231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9232fi
9233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9234printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9235	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9236	CFLAGS="$xorg_testset_save_CFLAGS"
9237fi
9238
9239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9240	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9241		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9242	fi
9243	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9244	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9245printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9246if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9247then :
9248  printf %s "(cached) " >&6
9249else $as_nop
9250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9251/* end confdefs.h.  */
9252int i;
9253_ACEOF
9254if ac_fn_c_try_compile "$LINENO"
9255then :
9256  xorg_cv_cc_flag_unused_command_line_argument=yes
9257else $as_nop
9258  xorg_cv_cc_flag_unused_command_line_argument=no
9259fi
9260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9261fi
9262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9263printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9264	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9265	CFLAGS="$xorg_testset_save_CFLAGS"
9266fi
9267
9268found="no"
9269
9270	if test $found = "no" ; then
9271		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9272			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9273		fi
9274
9275		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9276			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9277		fi
9278
9279		CFLAGS="$CFLAGS -Winit-self"
9280
9281		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9282printf %s "checking if $CC supports -Winit-self... " >&6; }
9283		cacheid=xorg_cv_cc_flag__Winit_self
9284		if eval test \${$cacheid+y}
9285then :
9286  printf %s "(cached) " >&6
9287else $as_nop
9288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289/* end confdefs.h.  */
9290int i;
9291int
9292main (void)
9293{
9294
9295  ;
9296  return 0;
9297}
9298_ACEOF
9299if ac_fn_c_try_link "$LINENO"
9300then :
9301  eval $cacheid=yes
9302else $as_nop
9303  eval $cacheid=no
9304fi
9305rm -f core conftest.err conftest.$ac_objext conftest.beam \
9306    conftest$ac_exeext conftest.$ac_ext
9307fi
9308
9309
9310		CFLAGS="$xorg_testset_save_CFLAGS"
9311
9312		eval supported=\$$cacheid
9313		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9314printf "%s\n" "$supported" >&6; }
9315		if test "$supported" = "yes" ; then
9316			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9317			found="yes"
9318		fi
9319	fi
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335xorg_testset_save_CFLAGS="$CFLAGS"
9336
9337if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9338	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9339	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9340printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9341if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9342then :
9343  printf %s "(cached) " >&6
9344else $as_nop
9345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9346/* end confdefs.h.  */
9347int i;
9348_ACEOF
9349if ac_fn_c_try_compile "$LINENO"
9350then :
9351  xorg_cv_cc_flag_unknown_warning_option=yes
9352else $as_nop
9353  xorg_cv_cc_flag_unknown_warning_option=no
9354fi
9355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9356fi
9357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9358printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9359	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9360	CFLAGS="$xorg_testset_save_CFLAGS"
9361fi
9362
9363if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9364	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9365		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9366	fi
9367	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9368	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9369printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9370if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9371then :
9372  printf %s "(cached) " >&6
9373else $as_nop
9374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9375/* end confdefs.h.  */
9376int i;
9377_ACEOF
9378if ac_fn_c_try_compile "$LINENO"
9379then :
9380  xorg_cv_cc_flag_unused_command_line_argument=yes
9381else $as_nop
9382  xorg_cv_cc_flag_unused_command_line_argument=no
9383fi
9384rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9385fi
9386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9387printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9388	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9389	CFLAGS="$xorg_testset_save_CFLAGS"
9390fi
9391
9392found="no"
9393
9394	if test $found = "no" ; then
9395		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9396			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9397		fi
9398
9399		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9400			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9401		fi
9402
9403		CFLAGS="$CFLAGS -Wmain"
9404
9405		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9406printf %s "checking if $CC supports -Wmain... " >&6; }
9407		cacheid=xorg_cv_cc_flag__Wmain
9408		if eval test \${$cacheid+y}
9409then :
9410  printf %s "(cached) " >&6
9411else $as_nop
9412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9413/* end confdefs.h.  */
9414int i;
9415int
9416main (void)
9417{
9418
9419  ;
9420  return 0;
9421}
9422_ACEOF
9423if ac_fn_c_try_link "$LINENO"
9424then :
9425  eval $cacheid=yes
9426else $as_nop
9427  eval $cacheid=no
9428fi
9429rm -f core conftest.err conftest.$ac_objext conftest.beam \
9430    conftest$ac_exeext conftest.$ac_ext
9431fi
9432
9433
9434		CFLAGS="$xorg_testset_save_CFLAGS"
9435
9436		eval supported=\$$cacheid
9437		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9438printf "%s\n" "$supported" >&6; }
9439		if test "$supported" = "yes" ; then
9440			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9441			found="yes"
9442		fi
9443	fi
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459xorg_testset_save_CFLAGS="$CFLAGS"
9460
9461if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9462	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9463	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9464printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9465if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9466then :
9467  printf %s "(cached) " >&6
9468else $as_nop
9469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470/* end confdefs.h.  */
9471int i;
9472_ACEOF
9473if ac_fn_c_try_compile "$LINENO"
9474then :
9475  xorg_cv_cc_flag_unknown_warning_option=yes
9476else $as_nop
9477  xorg_cv_cc_flag_unknown_warning_option=no
9478fi
9479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9480fi
9481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9482printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9483	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9484	CFLAGS="$xorg_testset_save_CFLAGS"
9485fi
9486
9487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9488	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9489		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9490	fi
9491	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9492	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9493printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9494if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9495then :
9496  printf %s "(cached) " >&6
9497else $as_nop
9498  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499/* end confdefs.h.  */
9500int i;
9501_ACEOF
9502if ac_fn_c_try_compile "$LINENO"
9503then :
9504  xorg_cv_cc_flag_unused_command_line_argument=yes
9505else $as_nop
9506  xorg_cv_cc_flag_unused_command_line_argument=no
9507fi
9508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9509fi
9510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9511printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9512	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9513	CFLAGS="$xorg_testset_save_CFLAGS"
9514fi
9515
9516found="no"
9517
9518	if test $found = "no" ; then
9519		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9520			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9521		fi
9522
9523		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9524			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9525		fi
9526
9527		CFLAGS="$CFLAGS -Wmissing-braces"
9528
9529		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9530printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9531		cacheid=xorg_cv_cc_flag__Wmissing_braces
9532		if eval test \${$cacheid+y}
9533then :
9534  printf %s "(cached) " >&6
9535else $as_nop
9536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9537/* end confdefs.h.  */
9538int i;
9539int
9540main (void)
9541{
9542
9543  ;
9544  return 0;
9545}
9546_ACEOF
9547if ac_fn_c_try_link "$LINENO"
9548then :
9549  eval $cacheid=yes
9550else $as_nop
9551  eval $cacheid=no
9552fi
9553rm -f core conftest.err conftest.$ac_objext conftest.beam \
9554    conftest$ac_exeext conftest.$ac_ext
9555fi
9556
9557
9558		CFLAGS="$xorg_testset_save_CFLAGS"
9559
9560		eval supported=\$$cacheid
9561		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9562printf "%s\n" "$supported" >&6; }
9563		if test "$supported" = "yes" ; then
9564			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9565			found="yes"
9566		fi
9567	fi
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583xorg_testset_save_CFLAGS="$CFLAGS"
9584
9585if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9586	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9587	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9588printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9589if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9590then :
9591  printf %s "(cached) " >&6
9592else $as_nop
9593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9594/* end confdefs.h.  */
9595int i;
9596_ACEOF
9597if ac_fn_c_try_compile "$LINENO"
9598then :
9599  xorg_cv_cc_flag_unknown_warning_option=yes
9600else $as_nop
9601  xorg_cv_cc_flag_unknown_warning_option=no
9602fi
9603rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9604fi
9605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9606printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9607	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9608	CFLAGS="$xorg_testset_save_CFLAGS"
9609fi
9610
9611if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9612	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9613		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9614	fi
9615	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9616	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9617printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9618if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9619then :
9620  printf %s "(cached) " >&6
9621else $as_nop
9622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9623/* end confdefs.h.  */
9624int i;
9625_ACEOF
9626if ac_fn_c_try_compile "$LINENO"
9627then :
9628  xorg_cv_cc_flag_unused_command_line_argument=yes
9629else $as_nop
9630  xorg_cv_cc_flag_unused_command_line_argument=no
9631fi
9632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9633fi
9634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9635printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9636	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9637	CFLAGS="$xorg_testset_save_CFLAGS"
9638fi
9639
9640found="no"
9641
9642	if test $found = "no" ; then
9643		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9644			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9645		fi
9646
9647		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9648			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9649		fi
9650
9651		CFLAGS="$CFLAGS -Wsequence-point"
9652
9653		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9654printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9655		cacheid=xorg_cv_cc_flag__Wsequence_point
9656		if eval test \${$cacheid+y}
9657then :
9658  printf %s "(cached) " >&6
9659else $as_nop
9660  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661/* end confdefs.h.  */
9662int i;
9663int
9664main (void)
9665{
9666
9667  ;
9668  return 0;
9669}
9670_ACEOF
9671if ac_fn_c_try_link "$LINENO"
9672then :
9673  eval $cacheid=yes
9674else $as_nop
9675  eval $cacheid=no
9676fi
9677rm -f core conftest.err conftest.$ac_objext conftest.beam \
9678    conftest$ac_exeext conftest.$ac_ext
9679fi
9680
9681
9682		CFLAGS="$xorg_testset_save_CFLAGS"
9683
9684		eval supported=\$$cacheid
9685		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9686printf "%s\n" "$supported" >&6; }
9687		if test "$supported" = "yes" ; then
9688			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9689			found="yes"
9690		fi
9691	fi
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707xorg_testset_save_CFLAGS="$CFLAGS"
9708
9709if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9710	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9711	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9712printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9713if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9714then :
9715  printf %s "(cached) " >&6
9716else $as_nop
9717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718/* end confdefs.h.  */
9719int i;
9720_ACEOF
9721if ac_fn_c_try_compile "$LINENO"
9722then :
9723  xorg_cv_cc_flag_unknown_warning_option=yes
9724else $as_nop
9725  xorg_cv_cc_flag_unknown_warning_option=no
9726fi
9727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9728fi
9729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9730printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9731	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9732	CFLAGS="$xorg_testset_save_CFLAGS"
9733fi
9734
9735if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9736	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9737		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9738	fi
9739	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9740	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9741printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9742if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9743then :
9744  printf %s "(cached) " >&6
9745else $as_nop
9746  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9747/* end confdefs.h.  */
9748int i;
9749_ACEOF
9750if ac_fn_c_try_compile "$LINENO"
9751then :
9752  xorg_cv_cc_flag_unused_command_line_argument=yes
9753else $as_nop
9754  xorg_cv_cc_flag_unused_command_line_argument=no
9755fi
9756rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9757fi
9758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9759printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9760	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9761	CFLAGS="$xorg_testset_save_CFLAGS"
9762fi
9763
9764found="no"
9765
9766	if test $found = "no" ; then
9767		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9768			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9769		fi
9770
9771		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9772			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9773		fi
9774
9775		CFLAGS="$CFLAGS -Wreturn-type"
9776
9777		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9778printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9779		cacheid=xorg_cv_cc_flag__Wreturn_type
9780		if eval test \${$cacheid+y}
9781then :
9782  printf %s "(cached) " >&6
9783else $as_nop
9784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785/* end confdefs.h.  */
9786int i;
9787int
9788main (void)
9789{
9790
9791  ;
9792  return 0;
9793}
9794_ACEOF
9795if ac_fn_c_try_link "$LINENO"
9796then :
9797  eval $cacheid=yes
9798else $as_nop
9799  eval $cacheid=no
9800fi
9801rm -f core conftest.err conftest.$ac_objext conftest.beam \
9802    conftest$ac_exeext conftest.$ac_ext
9803fi
9804
9805
9806		CFLAGS="$xorg_testset_save_CFLAGS"
9807
9808		eval supported=\$$cacheid
9809		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9810printf "%s\n" "$supported" >&6; }
9811		if test "$supported" = "yes" ; then
9812			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9813			found="yes"
9814		fi
9815	fi
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831xorg_testset_save_CFLAGS="$CFLAGS"
9832
9833if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9834	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9835	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9836printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9837if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9838then :
9839  printf %s "(cached) " >&6
9840else $as_nop
9841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9842/* end confdefs.h.  */
9843int i;
9844_ACEOF
9845if ac_fn_c_try_compile "$LINENO"
9846then :
9847  xorg_cv_cc_flag_unknown_warning_option=yes
9848else $as_nop
9849  xorg_cv_cc_flag_unknown_warning_option=no
9850fi
9851rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9852fi
9853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9854printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9855	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9856	CFLAGS="$xorg_testset_save_CFLAGS"
9857fi
9858
9859if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9860	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9861		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9862	fi
9863	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9864	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9865printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9866if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9867then :
9868  printf %s "(cached) " >&6
9869else $as_nop
9870  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9871/* end confdefs.h.  */
9872int i;
9873_ACEOF
9874if ac_fn_c_try_compile "$LINENO"
9875then :
9876  xorg_cv_cc_flag_unused_command_line_argument=yes
9877else $as_nop
9878  xorg_cv_cc_flag_unused_command_line_argument=no
9879fi
9880rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9881fi
9882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9883printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9884	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9885	CFLAGS="$xorg_testset_save_CFLAGS"
9886fi
9887
9888found="no"
9889
9890	if test $found = "no" ; then
9891		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9892			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9893		fi
9894
9895		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9896			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9897		fi
9898
9899		CFLAGS="$CFLAGS -Wtrigraphs"
9900
9901		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9902printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9903		cacheid=xorg_cv_cc_flag__Wtrigraphs
9904		if eval test \${$cacheid+y}
9905then :
9906  printf %s "(cached) " >&6
9907else $as_nop
9908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9909/* end confdefs.h.  */
9910int i;
9911int
9912main (void)
9913{
9914
9915  ;
9916  return 0;
9917}
9918_ACEOF
9919if ac_fn_c_try_link "$LINENO"
9920then :
9921  eval $cacheid=yes
9922else $as_nop
9923  eval $cacheid=no
9924fi
9925rm -f core conftest.err conftest.$ac_objext conftest.beam \
9926    conftest$ac_exeext conftest.$ac_ext
9927fi
9928
9929
9930		CFLAGS="$xorg_testset_save_CFLAGS"
9931
9932		eval supported=\$$cacheid
9933		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9934printf "%s\n" "$supported" >&6; }
9935		if test "$supported" = "yes" ; then
9936			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9937			found="yes"
9938		fi
9939	fi
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955xorg_testset_save_CFLAGS="$CFLAGS"
9956
9957if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9958	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9959	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9960printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9961if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9962then :
9963  printf %s "(cached) " >&6
9964else $as_nop
9965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966/* end confdefs.h.  */
9967int i;
9968_ACEOF
9969if ac_fn_c_try_compile "$LINENO"
9970then :
9971  xorg_cv_cc_flag_unknown_warning_option=yes
9972else $as_nop
9973  xorg_cv_cc_flag_unknown_warning_option=no
9974fi
9975rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9976fi
9977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9978printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9979	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9980	CFLAGS="$xorg_testset_save_CFLAGS"
9981fi
9982
9983if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9984	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9985		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9986	fi
9987	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9988	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9989printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9990if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9991then :
9992  printf %s "(cached) " >&6
9993else $as_nop
9994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9995/* end confdefs.h.  */
9996int i;
9997_ACEOF
9998if ac_fn_c_try_compile "$LINENO"
9999then :
10000  xorg_cv_cc_flag_unused_command_line_argument=yes
10001else $as_nop
10002  xorg_cv_cc_flag_unused_command_line_argument=no
10003fi
10004rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10005fi
10006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10007printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10008	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10009	CFLAGS="$xorg_testset_save_CFLAGS"
10010fi
10011
10012found="no"
10013
10014	if test $found = "no" ; then
10015		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10016			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10017		fi
10018
10019		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10020			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10021		fi
10022
10023		CFLAGS="$CFLAGS -Warray-bounds"
10024
10025		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10026printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10027		cacheid=xorg_cv_cc_flag__Warray_bounds
10028		if eval test \${$cacheid+y}
10029then :
10030  printf %s "(cached) " >&6
10031else $as_nop
10032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10033/* end confdefs.h.  */
10034int i;
10035int
10036main (void)
10037{
10038
10039  ;
10040  return 0;
10041}
10042_ACEOF
10043if ac_fn_c_try_link "$LINENO"
10044then :
10045  eval $cacheid=yes
10046else $as_nop
10047  eval $cacheid=no
10048fi
10049rm -f core conftest.err conftest.$ac_objext conftest.beam \
10050    conftest$ac_exeext conftest.$ac_ext
10051fi
10052
10053
10054		CFLAGS="$xorg_testset_save_CFLAGS"
10055
10056		eval supported=\$$cacheid
10057		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10058printf "%s\n" "$supported" >&6; }
10059		if test "$supported" = "yes" ; then
10060			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10061			found="yes"
10062		fi
10063	fi
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079xorg_testset_save_CFLAGS="$CFLAGS"
10080
10081if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10082	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10083	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10084printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10085if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10086then :
10087  printf %s "(cached) " >&6
10088else $as_nop
10089  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090/* end confdefs.h.  */
10091int i;
10092_ACEOF
10093if ac_fn_c_try_compile "$LINENO"
10094then :
10095  xorg_cv_cc_flag_unknown_warning_option=yes
10096else $as_nop
10097  xorg_cv_cc_flag_unknown_warning_option=no
10098fi
10099rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10100fi
10101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10102printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10103	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10104	CFLAGS="$xorg_testset_save_CFLAGS"
10105fi
10106
10107if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10108	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10109		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10110	fi
10111	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10112	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10113printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10114if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10115then :
10116  printf %s "(cached) " >&6
10117else $as_nop
10118  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119/* end confdefs.h.  */
10120int i;
10121_ACEOF
10122if ac_fn_c_try_compile "$LINENO"
10123then :
10124  xorg_cv_cc_flag_unused_command_line_argument=yes
10125else $as_nop
10126  xorg_cv_cc_flag_unused_command_line_argument=no
10127fi
10128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10129fi
10130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10131printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10132	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10133	CFLAGS="$xorg_testset_save_CFLAGS"
10134fi
10135
10136found="no"
10137
10138	if test $found = "no" ; then
10139		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10140			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10141		fi
10142
10143		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10144			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10145		fi
10146
10147		CFLAGS="$CFLAGS -Wwrite-strings"
10148
10149		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10150printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10151		cacheid=xorg_cv_cc_flag__Wwrite_strings
10152		if eval test \${$cacheid+y}
10153then :
10154  printf %s "(cached) " >&6
10155else $as_nop
10156  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157/* end confdefs.h.  */
10158int i;
10159int
10160main (void)
10161{
10162
10163  ;
10164  return 0;
10165}
10166_ACEOF
10167if ac_fn_c_try_link "$LINENO"
10168then :
10169  eval $cacheid=yes
10170else $as_nop
10171  eval $cacheid=no
10172fi
10173rm -f core conftest.err conftest.$ac_objext conftest.beam \
10174    conftest$ac_exeext conftest.$ac_ext
10175fi
10176
10177
10178		CFLAGS="$xorg_testset_save_CFLAGS"
10179
10180		eval supported=\$$cacheid
10181		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10182printf "%s\n" "$supported" >&6; }
10183		if test "$supported" = "yes" ; then
10184			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10185			found="yes"
10186		fi
10187	fi
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203xorg_testset_save_CFLAGS="$CFLAGS"
10204
10205if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10206	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10207	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10208printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10209if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10210then :
10211  printf %s "(cached) " >&6
10212else $as_nop
10213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10214/* end confdefs.h.  */
10215int i;
10216_ACEOF
10217if ac_fn_c_try_compile "$LINENO"
10218then :
10219  xorg_cv_cc_flag_unknown_warning_option=yes
10220else $as_nop
10221  xorg_cv_cc_flag_unknown_warning_option=no
10222fi
10223rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10224fi
10225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10226printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10227	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10228	CFLAGS="$xorg_testset_save_CFLAGS"
10229fi
10230
10231if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10232	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10233		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10234	fi
10235	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10236	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10237printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10238if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10239then :
10240  printf %s "(cached) " >&6
10241else $as_nop
10242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243/* end confdefs.h.  */
10244int i;
10245_ACEOF
10246if ac_fn_c_try_compile "$LINENO"
10247then :
10248  xorg_cv_cc_flag_unused_command_line_argument=yes
10249else $as_nop
10250  xorg_cv_cc_flag_unused_command_line_argument=no
10251fi
10252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10253fi
10254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10255printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10256	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10257	CFLAGS="$xorg_testset_save_CFLAGS"
10258fi
10259
10260found="no"
10261
10262	if test $found = "no" ; then
10263		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10264			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10265		fi
10266
10267		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10268			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10269		fi
10270
10271		CFLAGS="$CFLAGS -Waddress"
10272
10273		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10274printf %s "checking if $CC supports -Waddress... " >&6; }
10275		cacheid=xorg_cv_cc_flag__Waddress
10276		if eval test \${$cacheid+y}
10277then :
10278  printf %s "(cached) " >&6
10279else $as_nop
10280  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281/* end confdefs.h.  */
10282int i;
10283int
10284main (void)
10285{
10286
10287  ;
10288  return 0;
10289}
10290_ACEOF
10291if ac_fn_c_try_link "$LINENO"
10292then :
10293  eval $cacheid=yes
10294else $as_nop
10295  eval $cacheid=no
10296fi
10297rm -f core conftest.err conftest.$ac_objext conftest.beam \
10298    conftest$ac_exeext conftest.$ac_ext
10299fi
10300
10301
10302		CFLAGS="$xorg_testset_save_CFLAGS"
10303
10304		eval supported=\$$cacheid
10305		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10306printf "%s\n" "$supported" >&6; }
10307		if test "$supported" = "yes" ; then
10308			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10309			found="yes"
10310		fi
10311	fi
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327xorg_testset_save_CFLAGS="$CFLAGS"
10328
10329if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10330	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10331	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10332printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10333if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10334then :
10335  printf %s "(cached) " >&6
10336else $as_nop
10337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338/* end confdefs.h.  */
10339int i;
10340_ACEOF
10341if ac_fn_c_try_compile "$LINENO"
10342then :
10343  xorg_cv_cc_flag_unknown_warning_option=yes
10344else $as_nop
10345  xorg_cv_cc_flag_unknown_warning_option=no
10346fi
10347rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10348fi
10349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10350printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10351	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10352	CFLAGS="$xorg_testset_save_CFLAGS"
10353fi
10354
10355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10356	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10357		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10358	fi
10359	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10360	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10361printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10362if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10363then :
10364  printf %s "(cached) " >&6
10365else $as_nop
10366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367/* end confdefs.h.  */
10368int i;
10369_ACEOF
10370if ac_fn_c_try_compile "$LINENO"
10371then :
10372  xorg_cv_cc_flag_unused_command_line_argument=yes
10373else $as_nop
10374  xorg_cv_cc_flag_unused_command_line_argument=no
10375fi
10376rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10377fi
10378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10379printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10380	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10381	CFLAGS="$xorg_testset_save_CFLAGS"
10382fi
10383
10384found="no"
10385
10386	if test $found = "no" ; then
10387		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10388			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10389		fi
10390
10391		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10392			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10393		fi
10394
10395		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10396
10397		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10398printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10399		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10400		if eval test \${$cacheid+y}
10401then :
10402  printf %s "(cached) " >&6
10403else $as_nop
10404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405/* end confdefs.h.  */
10406int i;
10407int
10408main (void)
10409{
10410
10411  ;
10412  return 0;
10413}
10414_ACEOF
10415if ac_fn_c_try_link "$LINENO"
10416then :
10417  eval $cacheid=yes
10418else $as_nop
10419  eval $cacheid=no
10420fi
10421rm -f core conftest.err conftest.$ac_objext conftest.beam \
10422    conftest$ac_exeext conftest.$ac_ext
10423fi
10424
10425
10426		CFLAGS="$xorg_testset_save_CFLAGS"
10427
10428		eval supported=\$$cacheid
10429		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10430printf "%s\n" "$supported" >&6; }
10431		if test "$supported" = "yes" ; then
10432			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10433			found="yes"
10434		fi
10435	fi
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451xorg_testset_save_CFLAGS="$CFLAGS"
10452
10453if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10454	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10455	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10456printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10457if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10458then :
10459  printf %s "(cached) " >&6
10460else $as_nop
10461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10462/* end confdefs.h.  */
10463int i;
10464_ACEOF
10465if ac_fn_c_try_compile "$LINENO"
10466then :
10467  xorg_cv_cc_flag_unknown_warning_option=yes
10468else $as_nop
10469  xorg_cv_cc_flag_unknown_warning_option=no
10470fi
10471rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10472fi
10473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10474printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10475	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10476	CFLAGS="$xorg_testset_save_CFLAGS"
10477fi
10478
10479if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10480	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10481		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10482	fi
10483	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10484	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10485printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10486if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10487then :
10488  printf %s "(cached) " >&6
10489else $as_nop
10490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10491/* end confdefs.h.  */
10492int i;
10493_ACEOF
10494if ac_fn_c_try_compile "$LINENO"
10495then :
10496  xorg_cv_cc_flag_unused_command_line_argument=yes
10497else $as_nop
10498  xorg_cv_cc_flag_unused_command_line_argument=no
10499fi
10500rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10501fi
10502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10503printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10504	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10505	CFLAGS="$xorg_testset_save_CFLAGS"
10506fi
10507
10508found="no"
10509
10510	if test $found = "no" ; then
10511		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10512			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10513		fi
10514
10515		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10516			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10517		fi
10518
10519		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10520
10521		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10522printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10523		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10524		if eval test \${$cacheid+y}
10525then :
10526  printf %s "(cached) " >&6
10527else $as_nop
10528  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529/* end confdefs.h.  */
10530int i;
10531int
10532main (void)
10533{
10534
10535  ;
10536  return 0;
10537}
10538_ACEOF
10539if ac_fn_c_try_link "$LINENO"
10540then :
10541  eval $cacheid=yes
10542else $as_nop
10543  eval $cacheid=no
10544fi
10545rm -f core conftest.err conftest.$ac_objext conftest.beam \
10546    conftest$ac_exeext conftest.$ac_ext
10547fi
10548
10549
10550		CFLAGS="$xorg_testset_save_CFLAGS"
10551
10552		eval supported=\$$cacheid
10553		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10554printf "%s\n" "$supported" >&6; }
10555		if test "$supported" = "yes" ; then
10556			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10557			found="yes"
10558		fi
10559	fi
10560
10561
10562fi
10563
10564
10565
10566
10567
10568
10569
10570		CWARNFLAGS="$BASE_CFLAGS"
10571		if  test "x$GCC" = xyes ; then
10572		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10573		fi
10574
10575
10576
10577
10578
10579
10580
10581
10582# Check whether --enable-strict-compilation was given.
10583if test ${enable_strict_compilation+y}
10584then :
10585  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10586else $as_nop
10587  STRICT_COMPILE=no
10588fi
10589
10590
10591
10592
10593
10594
10595STRICT_CFLAGS=""
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609xorg_testset_save_CFLAGS="$CFLAGS"
10610
10611if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10612	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10613	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10614printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10615if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10616then :
10617  printf %s "(cached) " >&6
10618else $as_nop
10619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10620/* end confdefs.h.  */
10621int i;
10622_ACEOF
10623if ac_fn_c_try_compile "$LINENO"
10624then :
10625  xorg_cv_cc_flag_unknown_warning_option=yes
10626else $as_nop
10627  xorg_cv_cc_flag_unknown_warning_option=no
10628fi
10629rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10630fi
10631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10632printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10633	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10634	CFLAGS="$xorg_testset_save_CFLAGS"
10635fi
10636
10637if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10638	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10639		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10640	fi
10641	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10642	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10643printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10644if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10645then :
10646  printf %s "(cached) " >&6
10647else $as_nop
10648  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649/* end confdefs.h.  */
10650int i;
10651_ACEOF
10652if ac_fn_c_try_compile "$LINENO"
10653then :
10654  xorg_cv_cc_flag_unused_command_line_argument=yes
10655else $as_nop
10656  xorg_cv_cc_flag_unused_command_line_argument=no
10657fi
10658rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10659fi
10660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10661printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10662	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10663	CFLAGS="$xorg_testset_save_CFLAGS"
10664fi
10665
10666found="no"
10667
10668	if test $found = "no" ; then
10669		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10670			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10671		fi
10672
10673		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10674			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10675		fi
10676
10677		CFLAGS="$CFLAGS -pedantic"
10678
10679		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10680printf %s "checking if $CC supports -pedantic... " >&6; }
10681		cacheid=xorg_cv_cc_flag__pedantic
10682		if eval test \${$cacheid+y}
10683then :
10684  printf %s "(cached) " >&6
10685else $as_nop
10686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687/* end confdefs.h.  */
10688int i;
10689int
10690main (void)
10691{
10692
10693  ;
10694  return 0;
10695}
10696_ACEOF
10697if ac_fn_c_try_link "$LINENO"
10698then :
10699  eval $cacheid=yes
10700else $as_nop
10701  eval $cacheid=no
10702fi
10703rm -f core conftest.err conftest.$ac_objext conftest.beam \
10704    conftest$ac_exeext conftest.$ac_ext
10705fi
10706
10707
10708		CFLAGS="$xorg_testset_save_CFLAGS"
10709
10710		eval supported=\$$cacheid
10711		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10712printf "%s\n" "$supported" >&6; }
10713		if test "$supported" = "yes" ; then
10714			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10715			found="yes"
10716		fi
10717	fi
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733xorg_testset_save_CFLAGS="$CFLAGS"
10734
10735if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10736	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10737	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10738printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10739if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10740then :
10741  printf %s "(cached) " >&6
10742else $as_nop
10743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744/* end confdefs.h.  */
10745int i;
10746_ACEOF
10747if ac_fn_c_try_compile "$LINENO"
10748then :
10749  xorg_cv_cc_flag_unknown_warning_option=yes
10750else $as_nop
10751  xorg_cv_cc_flag_unknown_warning_option=no
10752fi
10753rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10754fi
10755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10756printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10757	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10758	CFLAGS="$xorg_testset_save_CFLAGS"
10759fi
10760
10761if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10762	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10763		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10764	fi
10765	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10766	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10767printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10768if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10769then :
10770  printf %s "(cached) " >&6
10771else $as_nop
10772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10773/* end confdefs.h.  */
10774int i;
10775_ACEOF
10776if ac_fn_c_try_compile "$LINENO"
10777then :
10778  xorg_cv_cc_flag_unused_command_line_argument=yes
10779else $as_nop
10780  xorg_cv_cc_flag_unused_command_line_argument=no
10781fi
10782rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10783fi
10784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10785printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10786	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10787	CFLAGS="$xorg_testset_save_CFLAGS"
10788fi
10789
10790found="no"
10791
10792	if test $found = "no" ; then
10793		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10794			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10795		fi
10796
10797		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10798			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10799		fi
10800
10801		CFLAGS="$CFLAGS -Werror"
10802
10803		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10804printf %s "checking if $CC supports -Werror... " >&6; }
10805		cacheid=xorg_cv_cc_flag__Werror
10806		if eval test \${$cacheid+y}
10807then :
10808  printf %s "(cached) " >&6
10809else $as_nop
10810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811/* end confdefs.h.  */
10812int i;
10813int
10814main (void)
10815{
10816
10817  ;
10818  return 0;
10819}
10820_ACEOF
10821if ac_fn_c_try_link "$LINENO"
10822then :
10823  eval $cacheid=yes
10824else $as_nop
10825  eval $cacheid=no
10826fi
10827rm -f core conftest.err conftest.$ac_objext conftest.beam \
10828    conftest$ac_exeext conftest.$ac_ext
10829fi
10830
10831
10832		CFLAGS="$xorg_testset_save_CFLAGS"
10833
10834		eval supported=\$$cacheid
10835		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10836printf "%s\n" "$supported" >&6; }
10837		if test "$supported" = "yes" ; then
10838			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10839			found="yes"
10840		fi
10841	fi
10842
10843	if test $found = "no" ; then
10844		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10845			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10846		fi
10847
10848		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10849			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10850		fi
10851
10852		CFLAGS="$CFLAGS -errwarn"
10853
10854		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10855printf %s "checking if $CC supports -errwarn... " >&6; }
10856		cacheid=xorg_cv_cc_flag__errwarn
10857		if eval test \${$cacheid+y}
10858then :
10859  printf %s "(cached) " >&6
10860else $as_nop
10861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10862/* end confdefs.h.  */
10863int i;
10864int
10865main (void)
10866{
10867
10868  ;
10869  return 0;
10870}
10871_ACEOF
10872if ac_fn_c_try_link "$LINENO"
10873then :
10874  eval $cacheid=yes
10875else $as_nop
10876  eval $cacheid=no
10877fi
10878rm -f core conftest.err conftest.$ac_objext conftest.beam \
10879    conftest$ac_exeext conftest.$ac_ext
10880fi
10881
10882
10883		CFLAGS="$xorg_testset_save_CFLAGS"
10884
10885		eval supported=\$$cacheid
10886		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10887printf "%s\n" "$supported" >&6; }
10888		if test "$supported" = "yes" ; then
10889			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10890			found="yes"
10891		fi
10892	fi
10893
10894
10895
10896# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10897# activate it with -Werror, so we add it here explicitly.
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911xorg_testset_save_CFLAGS="$CFLAGS"
10912
10913if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10914	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10915	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10916printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10917if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10918then :
10919  printf %s "(cached) " >&6
10920else $as_nop
10921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10922/* end confdefs.h.  */
10923int i;
10924_ACEOF
10925if ac_fn_c_try_compile "$LINENO"
10926then :
10927  xorg_cv_cc_flag_unknown_warning_option=yes
10928else $as_nop
10929  xorg_cv_cc_flag_unknown_warning_option=no
10930fi
10931rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10932fi
10933{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10934printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10935	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10936	CFLAGS="$xorg_testset_save_CFLAGS"
10937fi
10938
10939if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10940	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10941		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10942	fi
10943	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10944	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10945printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10946if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10947then :
10948  printf %s "(cached) " >&6
10949else $as_nop
10950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951/* end confdefs.h.  */
10952int i;
10953_ACEOF
10954if ac_fn_c_try_compile "$LINENO"
10955then :
10956  xorg_cv_cc_flag_unused_command_line_argument=yes
10957else $as_nop
10958  xorg_cv_cc_flag_unused_command_line_argument=no
10959fi
10960rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10961fi
10962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10963printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10964	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10965	CFLAGS="$xorg_testset_save_CFLAGS"
10966fi
10967
10968found="no"
10969
10970	if test $found = "no" ; then
10971		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10972			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10973		fi
10974
10975		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10976			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10977		fi
10978
10979		CFLAGS="$CFLAGS -Werror=attributes"
10980
10981		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10982printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10983		cacheid=xorg_cv_cc_flag__Werror_attributes
10984		if eval test \${$cacheid+y}
10985then :
10986  printf %s "(cached) " >&6
10987else $as_nop
10988  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10989/* end confdefs.h.  */
10990int i;
10991int
10992main (void)
10993{
10994
10995  ;
10996  return 0;
10997}
10998_ACEOF
10999if ac_fn_c_try_link "$LINENO"
11000then :
11001  eval $cacheid=yes
11002else $as_nop
11003  eval $cacheid=no
11004fi
11005rm -f core conftest.err conftest.$ac_objext conftest.beam \
11006    conftest$ac_exeext conftest.$ac_ext
11007fi
11008
11009
11010		CFLAGS="$xorg_testset_save_CFLAGS"
11011
11012		eval supported=\$$cacheid
11013		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11014printf "%s\n" "$supported" >&6; }
11015		if test "$supported" = "yes" ; then
11016			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11017			found="yes"
11018		fi
11019	fi
11020
11021
11022
11023if test "x$STRICT_COMPILE" = "xyes"; then
11024    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11025    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11026fi
11027
11028
11029
11030
11031
11032
11033cat >>confdefs.h <<_ACEOF
11034#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11035_ACEOF
11036
11037	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11038	if test "x$PVM" = "x"; then
11039		PVM="0"
11040	fi
11041
11042printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11043
11044	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11045	if test "x$PVP" = "x"; then
11046		PVP="0"
11047	fi
11048
11049printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11050
11051
11052
11053CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11054mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11055|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11056touch \$(top_srcdir)/ChangeLog; \
11057echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11058
11059
11060
11061
11062macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11063INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11064mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11065|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11066touch \$(top_srcdir)/INSTALL; \
11067echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11068
11069
11070
11071
11072
11073
11074case $host_os in
11075    solaris*)
11076        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11077        # check for a man page file found in later versions that use
11078        # traditional section numbers instead
11079        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11080printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11081if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11082then :
11083  printf %s "(cached) " >&6
11084else $as_nop
11085  test "$cross_compiling" = yes &&
11086  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11087if test -r "/usr/share/man/man7/attributes.7"; then
11088  ac_cv_file__usr_share_man_man7_attributes_7=yes
11089else
11090  ac_cv_file__usr_share_man_man7_attributes_7=no
11091fi
11092fi
11093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11094printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11095if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11096then :
11097  SYSV_MAN_SECTIONS=false
11098else $as_nop
11099  SYSV_MAN_SECTIONS=true
11100fi
11101
11102        ;;
11103    *) SYSV_MAN_SECTIONS=false ;;
11104esac
11105
11106if test x$APP_MAN_SUFFIX = x    ; then
11107    APP_MAN_SUFFIX=1
11108fi
11109if test x$APP_MAN_DIR = x    ; then
11110    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11111fi
11112
11113if test x$LIB_MAN_SUFFIX = x    ; then
11114    LIB_MAN_SUFFIX=3
11115fi
11116if test x$LIB_MAN_DIR = x    ; then
11117    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11118fi
11119
11120if test x$FILE_MAN_SUFFIX = x    ; then
11121    case $SYSV_MAN_SECTIONS in
11122	true)				FILE_MAN_SUFFIX=4  ;;
11123	*)				FILE_MAN_SUFFIX=5  ;;
11124    esac
11125fi
11126if test x$FILE_MAN_DIR = x    ; then
11127    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11128fi
11129
11130if test x$MISC_MAN_SUFFIX = x    ; then
11131    case $SYSV_MAN_SECTIONS in
11132	true)				MISC_MAN_SUFFIX=5  ;;
11133	*)				MISC_MAN_SUFFIX=7  ;;
11134    esac
11135fi
11136if test x$MISC_MAN_DIR = x    ; then
11137    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11138fi
11139
11140if test x$DRIVER_MAN_SUFFIX = x    ; then
11141    case $SYSV_MAN_SECTIONS in
11142	true)				DRIVER_MAN_SUFFIX=7  ;;
11143	*)				DRIVER_MAN_SUFFIX=4  ;;
11144    esac
11145fi
11146if test x$DRIVER_MAN_DIR = x    ; then
11147    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11148fi
11149
11150if test x$ADMIN_MAN_SUFFIX = x    ; then
11151    case $SYSV_MAN_SECTIONS in
11152	true)				ADMIN_MAN_SUFFIX=1m ;;
11153	*)				ADMIN_MAN_SUFFIX=8  ;;
11154    esac
11155fi
11156if test x$ADMIN_MAN_DIR = x    ; then
11157    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11158fi
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174XORG_MAN_PAGE="X Version 11"
11175
11176MAN_SUBSTS="\
11177	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11178	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11179	-e 's|__xservername__|Xorg|g' \
11180	-e 's|__xconfigfile__|xorg.conf|g' \
11181	-e 's|__projectroot__|\$(prefix)|g' \
11182	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11183	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11184	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11185	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11186	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11187	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11188	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11189
11190
11191
11192# Check whether --enable-silent-rules was given.
11193if test ${enable_silent_rules+y}
11194then :
11195  enableval=$enable_silent_rules;
11196fi
11197
11198case $enable_silent_rules in # (((
11199  yes) AM_DEFAULT_VERBOSITY=0;;
11200   no) AM_DEFAULT_VERBOSITY=1;;
11201    *) AM_DEFAULT_VERBOSITY=0;;
11202esac
11203am_make=${MAKE-make}
11204{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11205printf %s "checking whether $am_make supports nested variables... " >&6; }
11206if test ${am_cv_make_support_nested_variables+y}
11207then :
11208  printf %s "(cached) " >&6
11209else $as_nop
11210  if printf "%s\n" 'TRUE=$(BAR$(V))
11211BAR0=false
11212BAR1=true
11213V=1
11214am__doit:
11215	@$(TRUE)
11216.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11217  am_cv_make_support_nested_variables=yes
11218else
11219  am_cv_make_support_nested_variables=no
11220fi
11221fi
11222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11223printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11224if test $am_cv_make_support_nested_variables = yes; then
11225    AM_V='$(V)'
11226  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11227else
11228  AM_V=$AM_DEFAULT_VERBOSITY
11229  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11230fi
11231AM_BACKSLASH='\'
11232
11233
11234
11235# Initialize libtool
11236# Check whether --enable-static was given.
11237if test ${enable_static+y}
11238then :
11239  enableval=$enable_static; p=${PACKAGE-default}
11240    case $enableval in
11241    yes) enable_static=yes ;;
11242    no) enable_static=no ;;
11243    *)
11244     enable_static=no
11245      # Look at the argument we got.  We use all the common list separators.
11246      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11247      for pkg in $enableval; do
11248	IFS=$lt_save_ifs
11249	if test "X$pkg" = "X$p"; then
11250	  enable_static=yes
11251	fi
11252      done
11253      IFS=$lt_save_ifs
11254      ;;
11255    esac
11256else $as_nop
11257  enable_static=no
11258fi
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268case `pwd` in
11269  *\ * | *\	*)
11270    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11271printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11272esac
11273
11274
11275
11276macro_version='2.4.7'
11277macro_revision='2.4.7'
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292ltmain=$ac_aux_dir/ltmain.sh
11293
11294# Backslashify metacharacters that are still active within
11295# double-quoted strings.
11296sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11297
11298# Same as above, but do not quote variable references.
11299double_quote_subst='s/\(["`\\]\)/\\\1/g'
11300
11301# Sed substitution to delay expansion of an escaped shell variable in a
11302# double_quote_subst'ed string.
11303delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11304
11305# Sed substitution to delay expansion of an escaped single quote.
11306delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11307
11308# Sed substitution to avoid accidental globbing in evaled expressions
11309no_glob_subst='s/\*/\\\*/g'
11310
11311ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11312ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11313ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11314
11315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11316printf %s "checking how to print strings... " >&6; }
11317# Test print first, because it will be a builtin if present.
11318if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11319   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11320  ECHO='print -r --'
11321elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11322  ECHO='printf %s\n'
11323else
11324  # Use this function as a fallback that always works.
11325  func_fallback_echo ()
11326  {
11327    eval 'cat <<_LTECHO_EOF
11328$1
11329_LTECHO_EOF'
11330  }
11331  ECHO='func_fallback_echo'
11332fi
11333
11334# func_echo_all arg...
11335# Invoke $ECHO with all args, space-separated.
11336func_echo_all ()
11337{
11338    $ECHO ""
11339}
11340
11341case $ECHO in
11342  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11343printf "%s\n" "printf" >&6; } ;;
11344  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11345printf "%s\n" "print -r" >&6; } ;;
11346  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11347printf "%s\n" "cat" >&6; } ;;
11348esac
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11364printf %s "checking for a sed that does not truncate output... " >&6; }
11365if test ${ac_cv_path_SED+y}
11366then :
11367  printf %s "(cached) " >&6
11368else $as_nop
11369            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11370     for ac_i in 1 2 3 4 5 6 7; do
11371       ac_script="$ac_script$as_nl$ac_script"
11372     done
11373     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11374     { ac_script=; unset ac_script;}
11375     if test -z "$SED"; then
11376  ac_path_SED_found=false
11377  # Loop through the user's path and test for each of PROGNAME-LIST
11378  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11379for as_dir in $PATH
11380do
11381  IFS=$as_save_IFS
11382  case $as_dir in #(((
11383    '') as_dir=./ ;;
11384    */) ;;
11385    *) as_dir=$as_dir/ ;;
11386  esac
11387    for ac_prog in sed gsed
11388   do
11389    for ac_exec_ext in '' $ac_executable_extensions; do
11390      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
11391      as_fn_executable_p "$ac_path_SED" || continue
11392# Check for GNU ac_path_SED and select it if it is found.
11393  # Check for GNU $ac_path_SED
11394case `"$ac_path_SED" --version 2>&1` in
11395*GNU*)
11396  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11397*)
11398  ac_count=0
11399  printf %s 0123456789 >"conftest.in"
11400  while :
11401  do
11402    cat "conftest.in" "conftest.in" >"conftest.tmp"
11403    mv "conftest.tmp" "conftest.in"
11404    cp "conftest.in" "conftest.nl"
11405    printf "%s\n" '' >> "conftest.nl"
11406    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11407    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11408    as_fn_arith $ac_count + 1 && ac_count=$as_val
11409    if test $ac_count -gt ${ac_path_SED_max-0}; then
11410      # Best one so far, save it but keep looking for a better one
11411      ac_cv_path_SED="$ac_path_SED"
11412      ac_path_SED_max=$ac_count
11413    fi
11414    # 10*(2^10) chars as input seems more than enough
11415    test $ac_count -gt 10 && break
11416  done
11417  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11418esac
11419
11420      $ac_path_SED_found && break 3
11421    done
11422  done
11423  done
11424IFS=$as_save_IFS
11425  if test -z "$ac_cv_path_SED"; then
11426    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11427  fi
11428else
11429  ac_cv_path_SED=$SED
11430fi
11431
11432fi
11433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11434printf "%s\n" "$ac_cv_path_SED" >&6; }
11435 SED="$ac_cv_path_SED"
11436  rm -f conftest.sed
11437
11438test -z "$SED" && SED=sed
11439Xsed="$SED -e 1s/^X//"
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11452printf %s "checking for grep that handles long lines and -e... " >&6; }
11453if test ${ac_cv_path_GREP+y}
11454then :
11455  printf %s "(cached) " >&6
11456else $as_nop
11457  if test -z "$GREP"; then
11458  ac_path_GREP_found=false
11459  # Loop through the user's path and test for each of PROGNAME-LIST
11460  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11461for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11462do
11463  IFS=$as_save_IFS
11464  case $as_dir in #(((
11465    '') as_dir=./ ;;
11466    */) ;;
11467    *) as_dir=$as_dir/ ;;
11468  esac
11469    for ac_prog in grep ggrep
11470   do
11471    for ac_exec_ext in '' $ac_executable_extensions; do
11472      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11473      as_fn_executable_p "$ac_path_GREP" || continue
11474# Check for GNU ac_path_GREP and select it if it is found.
11475  # Check for GNU $ac_path_GREP
11476case `"$ac_path_GREP" --version 2>&1` in
11477*GNU*)
11478  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11479*)
11480  ac_count=0
11481  printf %s 0123456789 >"conftest.in"
11482  while :
11483  do
11484    cat "conftest.in" "conftest.in" >"conftest.tmp"
11485    mv "conftest.tmp" "conftest.in"
11486    cp "conftest.in" "conftest.nl"
11487    printf "%s\n" 'GREP' >> "conftest.nl"
11488    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11489    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11490    as_fn_arith $ac_count + 1 && ac_count=$as_val
11491    if test $ac_count -gt ${ac_path_GREP_max-0}; then
11492      # Best one so far, save it but keep looking for a better one
11493      ac_cv_path_GREP="$ac_path_GREP"
11494      ac_path_GREP_max=$ac_count
11495    fi
11496    # 10*(2^10) chars as input seems more than enough
11497    test $ac_count -gt 10 && break
11498  done
11499  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11500esac
11501
11502      $ac_path_GREP_found && break 3
11503    done
11504  done
11505  done
11506IFS=$as_save_IFS
11507  if test -z "$ac_cv_path_GREP"; then
11508    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11509  fi
11510else
11511  ac_cv_path_GREP=$GREP
11512fi
11513
11514fi
11515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11516printf "%s\n" "$ac_cv_path_GREP" >&6; }
11517 GREP="$ac_cv_path_GREP"
11518
11519
11520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11521printf %s "checking for egrep... " >&6; }
11522if test ${ac_cv_path_EGREP+y}
11523then :
11524  printf %s "(cached) " >&6
11525else $as_nop
11526  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11527   then ac_cv_path_EGREP="$GREP -E"
11528   else
11529     if test -z "$EGREP"; then
11530  ac_path_EGREP_found=false
11531  # Loop through the user's path and test for each of PROGNAME-LIST
11532  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11533for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11534do
11535  IFS=$as_save_IFS
11536  case $as_dir in #(((
11537    '') as_dir=./ ;;
11538    */) ;;
11539    *) as_dir=$as_dir/ ;;
11540  esac
11541    for ac_prog in egrep
11542   do
11543    for ac_exec_ext in '' $ac_executable_extensions; do
11544      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11545      as_fn_executable_p "$ac_path_EGREP" || continue
11546# Check for GNU ac_path_EGREP and select it if it is found.
11547  # Check for GNU $ac_path_EGREP
11548case `"$ac_path_EGREP" --version 2>&1` in
11549*GNU*)
11550  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11551*)
11552  ac_count=0
11553  printf %s 0123456789 >"conftest.in"
11554  while :
11555  do
11556    cat "conftest.in" "conftest.in" >"conftest.tmp"
11557    mv "conftest.tmp" "conftest.in"
11558    cp "conftest.in" "conftest.nl"
11559    printf "%s\n" 'EGREP' >> "conftest.nl"
11560    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11561    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11562    as_fn_arith $ac_count + 1 && ac_count=$as_val
11563    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11564      # Best one so far, save it but keep looking for a better one
11565      ac_cv_path_EGREP="$ac_path_EGREP"
11566      ac_path_EGREP_max=$ac_count
11567    fi
11568    # 10*(2^10) chars as input seems more than enough
11569    test $ac_count -gt 10 && break
11570  done
11571  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11572esac
11573
11574      $ac_path_EGREP_found && break 3
11575    done
11576  done
11577  done
11578IFS=$as_save_IFS
11579  if test -z "$ac_cv_path_EGREP"; then
11580    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11581  fi
11582else
11583  ac_cv_path_EGREP=$EGREP
11584fi
11585
11586   fi
11587fi
11588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11589printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11590 EGREP="$ac_cv_path_EGREP"
11591
11592
11593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11594printf %s "checking for fgrep... " >&6; }
11595if test ${ac_cv_path_FGREP+y}
11596then :
11597  printf %s "(cached) " >&6
11598else $as_nop
11599  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11600   then ac_cv_path_FGREP="$GREP -F"
11601   else
11602     if test -z "$FGREP"; then
11603  ac_path_FGREP_found=false
11604  # Loop through the user's path and test for each of PROGNAME-LIST
11605  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11607do
11608  IFS=$as_save_IFS
11609  case $as_dir in #(((
11610    '') as_dir=./ ;;
11611    */) ;;
11612    *) as_dir=$as_dir/ ;;
11613  esac
11614    for ac_prog in fgrep
11615   do
11616    for ac_exec_ext in '' $ac_executable_extensions; do
11617      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
11618      as_fn_executable_p "$ac_path_FGREP" || continue
11619# Check for GNU ac_path_FGREP and select it if it is found.
11620  # Check for GNU $ac_path_FGREP
11621case `"$ac_path_FGREP" --version 2>&1` in
11622*GNU*)
11623  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11624*)
11625  ac_count=0
11626  printf %s 0123456789 >"conftest.in"
11627  while :
11628  do
11629    cat "conftest.in" "conftest.in" >"conftest.tmp"
11630    mv "conftest.tmp" "conftest.in"
11631    cp "conftest.in" "conftest.nl"
11632    printf "%s\n" 'FGREP' >> "conftest.nl"
11633    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11634    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11635    as_fn_arith $ac_count + 1 && ac_count=$as_val
11636    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11637      # Best one so far, save it but keep looking for a better one
11638      ac_cv_path_FGREP="$ac_path_FGREP"
11639      ac_path_FGREP_max=$ac_count
11640    fi
11641    # 10*(2^10) chars as input seems more than enough
11642    test $ac_count -gt 10 && break
11643  done
11644  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11645esac
11646
11647      $ac_path_FGREP_found && break 3
11648    done
11649  done
11650  done
11651IFS=$as_save_IFS
11652  if test -z "$ac_cv_path_FGREP"; then
11653    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11654  fi
11655else
11656  ac_cv_path_FGREP=$FGREP
11657fi
11658
11659   fi
11660fi
11661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11662printf "%s\n" "$ac_cv_path_FGREP" >&6; }
11663 FGREP="$ac_cv_path_FGREP"
11664
11665
11666test -z "$GREP" && GREP=grep
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686# Check whether --with-gnu-ld was given.
11687if test ${with_gnu_ld+y}
11688then :
11689  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11690else $as_nop
11691  with_gnu_ld=no
11692fi
11693
11694ac_prog=ld
11695if test yes = "$GCC"; then
11696  # Check if gcc -print-prog-name=ld gives a path.
11697  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11698printf %s "checking for ld used by $CC... " >&6; }
11699  case $host in
11700  *-*-mingw*)
11701    # gcc leaves a trailing carriage return, which upsets mingw
11702    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11703  *)
11704    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11705  esac
11706  case $ac_prog in
11707    # Accept absolute paths.
11708    [\\/]* | ?:[\\/]*)
11709      re_direlt='/[^/][^/]*/\.\./'
11710      # Canonicalize the pathname of ld
11711      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11712      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11713	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11714      done
11715      test -z "$LD" && LD=$ac_prog
11716      ;;
11717  "")
11718    # If it fails, then pretend we aren't using GCC.
11719    ac_prog=ld
11720    ;;
11721  *)
11722    # If it is relative, then search for the first ld in PATH.
11723    with_gnu_ld=unknown
11724    ;;
11725  esac
11726elif test yes = "$with_gnu_ld"; then
11727  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11728printf %s "checking for GNU ld... " >&6; }
11729else
11730  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11731printf %s "checking for non-GNU ld... " >&6; }
11732fi
11733if test ${lt_cv_path_LD+y}
11734then :
11735  printf %s "(cached) " >&6
11736else $as_nop
11737  if test -z "$LD"; then
11738  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11739  for ac_dir in $PATH; do
11740    IFS=$lt_save_ifs
11741    test -z "$ac_dir" && ac_dir=.
11742    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11743      lt_cv_path_LD=$ac_dir/$ac_prog
11744      # Check to see if the program is GNU ld.  I'd rather use --version,
11745      # but apparently some variants of GNU ld only accept -v.
11746      # Break only if it was the GNU/non-GNU ld that we prefer.
11747      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11748      *GNU* | *'with BFD'*)
11749	test no != "$with_gnu_ld" && break
11750	;;
11751      *)
11752	test yes != "$with_gnu_ld" && break
11753	;;
11754      esac
11755    fi
11756  done
11757  IFS=$lt_save_ifs
11758else
11759  lt_cv_path_LD=$LD # Let the user override the test with a path.
11760fi
11761fi
11762
11763LD=$lt_cv_path_LD
11764if test -n "$LD"; then
11765  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11766printf "%s\n" "$LD" >&6; }
11767else
11768  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769printf "%s\n" "no" >&6; }
11770fi
11771test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11773printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
11774if test ${lt_cv_prog_gnu_ld+y}
11775then :
11776  printf %s "(cached) " >&6
11777else $as_nop
11778  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11779case `$LD -v 2>&1 </dev/null` in
11780*GNU* | *'with BFD'*)
11781  lt_cv_prog_gnu_ld=yes
11782  ;;
11783*)
11784  lt_cv_prog_gnu_ld=no
11785  ;;
11786esac
11787fi
11788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11789printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
11790with_gnu_ld=$lt_cv_prog_gnu_ld
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11801printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11802if test ${lt_cv_path_NM+y}
11803then :
11804  printf %s "(cached) " >&6
11805else $as_nop
11806  if test -n "$NM"; then
11807  # Let the user override the test.
11808  lt_cv_path_NM=$NM
11809else
11810  lt_nm_to_check=${ac_tool_prefix}nm
11811  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11812    lt_nm_to_check="$lt_nm_to_check nm"
11813  fi
11814  for lt_tmp_nm in $lt_nm_to_check; do
11815    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11816    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11817      IFS=$lt_save_ifs
11818      test -z "$ac_dir" && ac_dir=.
11819      tmp_nm=$ac_dir/$lt_tmp_nm
11820      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11821	# Check to see if the nm accepts a BSD-compat flag.
11822	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11823	#   nm: unknown option "B" ignored
11824	# Tru64's nm complains that /dev/null is an invalid object file
11825	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11826	case $build_os in
11827	mingw*) lt_bad_file=conftest.nm/nofile ;;
11828	*) lt_bad_file=/dev/null ;;
11829	esac
11830	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
11831	*$lt_bad_file* | *'Invalid file or object type'*)
11832	  lt_cv_path_NM="$tmp_nm -B"
11833	  break 2
11834	  ;;
11835	*)
11836	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
11837	  */dev/null*)
11838	    lt_cv_path_NM="$tmp_nm -p"
11839	    break 2
11840	    ;;
11841	  *)
11842	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11843	    continue # so that we can try to find one that supports BSD flags
11844	    ;;
11845	  esac
11846	  ;;
11847	esac
11848      fi
11849    done
11850    IFS=$lt_save_ifs
11851  done
11852  : ${lt_cv_path_NM=no}
11853fi
11854fi
11855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11856printf "%s\n" "$lt_cv_path_NM" >&6; }
11857if test no != "$lt_cv_path_NM"; then
11858  NM=$lt_cv_path_NM
11859else
11860  # Didn't find any BSD compatible name lister, look for dumpbin.
11861  if test -n "$DUMPBIN"; then :
11862    # Let the user override the test.
11863  else
11864    if test -n "$ac_tool_prefix"; then
11865  for ac_prog in dumpbin "link -dump"
11866  do
11867    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11868set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11870printf %s "checking for $ac_word... " >&6; }
11871if test ${ac_cv_prog_DUMPBIN+y}
11872then :
11873  printf %s "(cached) " >&6
11874else $as_nop
11875  if test -n "$DUMPBIN"; then
11876  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11877else
11878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11879for as_dir in $PATH
11880do
11881  IFS=$as_save_IFS
11882  case $as_dir in #(((
11883    '') as_dir=./ ;;
11884    */) ;;
11885    *) as_dir=$as_dir/ ;;
11886  esac
11887    for ac_exec_ext in '' $ac_executable_extensions; do
11888  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11889    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11890    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11891    break 2
11892  fi
11893done
11894  done
11895IFS=$as_save_IFS
11896
11897fi
11898fi
11899DUMPBIN=$ac_cv_prog_DUMPBIN
11900if test -n "$DUMPBIN"; then
11901  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11902printf "%s\n" "$DUMPBIN" >&6; }
11903else
11904  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905printf "%s\n" "no" >&6; }
11906fi
11907
11908
11909    test -n "$DUMPBIN" && break
11910  done
11911fi
11912if test -z "$DUMPBIN"; then
11913  ac_ct_DUMPBIN=$DUMPBIN
11914  for ac_prog in dumpbin "link -dump"
11915do
11916  # Extract the first word of "$ac_prog", so it can be a program name with args.
11917set dummy $ac_prog; ac_word=$2
11918{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11919printf %s "checking for $ac_word... " >&6; }
11920if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
11921then :
11922  printf %s "(cached) " >&6
11923else $as_nop
11924  if test -n "$ac_ct_DUMPBIN"; then
11925  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11926else
11927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928for as_dir in $PATH
11929do
11930  IFS=$as_save_IFS
11931  case $as_dir in #(((
11932    '') as_dir=./ ;;
11933    */) ;;
11934    *) as_dir=$as_dir/ ;;
11935  esac
11936    for ac_exec_ext in '' $ac_executable_extensions; do
11937  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11938    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11939    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11940    break 2
11941  fi
11942done
11943  done
11944IFS=$as_save_IFS
11945
11946fi
11947fi
11948ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11949if test -n "$ac_ct_DUMPBIN"; then
11950  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11951printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
11952else
11953  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11954printf "%s\n" "no" >&6; }
11955fi
11956
11957
11958  test -n "$ac_ct_DUMPBIN" && break
11959done
11960
11961  if test "x$ac_ct_DUMPBIN" = x; then
11962    DUMPBIN=":"
11963  else
11964    case $cross_compiling:$ac_tool_warned in
11965yes:)
11966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11967printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11968ac_tool_warned=yes ;;
11969esac
11970    DUMPBIN=$ac_ct_DUMPBIN
11971  fi
11972fi
11973
11974    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
11975    *COFF*)
11976      DUMPBIN="$DUMPBIN -symbols -headers"
11977      ;;
11978    *)
11979      DUMPBIN=:
11980      ;;
11981    esac
11982  fi
11983
11984  if test : != "$DUMPBIN"; then
11985    NM=$DUMPBIN
11986  fi
11987fi
11988test -z "$NM" && NM=nm
11989
11990
11991
11992
11993
11994
11995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11996printf %s "checking the name lister ($NM) interface... " >&6; }
11997if test ${lt_cv_nm_interface+y}
11998then :
11999  printf %s "(cached) " >&6
12000else $as_nop
12001  lt_cv_nm_interface="BSD nm"
12002  echo "int some_variable = 0;" > conftest.$ac_ext
12003  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12004  (eval "$ac_compile" 2>conftest.err)
12005  cat conftest.err >&5
12006  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12007  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12008  cat conftest.err >&5
12009  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12010  cat conftest.out >&5
12011  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12012    lt_cv_nm_interface="MS dumpbin"
12013  fi
12014  rm -f conftest*
12015fi
12016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12017printf "%s\n" "$lt_cv_nm_interface" >&6; }
12018
12019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12020printf %s "checking whether ln -s works... " >&6; }
12021LN_S=$as_ln_s
12022if test "$LN_S" = "ln -s"; then
12023  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12024printf "%s\n" "yes" >&6; }
12025else
12026  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12027printf "%s\n" "no, using $LN_S" >&6; }
12028fi
12029
12030# find the maximum length of command line arguments
12031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12032printf %s "checking the maximum length of command line arguments... " >&6; }
12033if test ${lt_cv_sys_max_cmd_len+y}
12034then :
12035  printf %s "(cached) " >&6
12036else $as_nop
12037    i=0
12038  teststring=ABCD
12039
12040  case $build_os in
12041  msdosdjgpp*)
12042    # On DJGPP, this test can blow up pretty badly due to problems in libc
12043    # (any single argument exceeding 2000 bytes causes a buffer overrun
12044    # during glob expansion).  Even if it were fixed, the result of this
12045    # check would be larger than it should be.
12046    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12047    ;;
12048
12049  gnu*)
12050    # Under GNU Hurd, this test is not required because there is
12051    # no limit to the length of command line arguments.
12052    # Libtool will interpret -1 as no limit whatsoever
12053    lt_cv_sys_max_cmd_len=-1;
12054    ;;
12055
12056  cygwin* | mingw* | cegcc*)
12057    # On Win9x/ME, this test blows up -- it succeeds, but takes
12058    # about 5 minutes as the teststring grows exponentially.
12059    # Worse, since 9x/ME are not pre-emptively multitasking,
12060    # you end up with a "frozen" computer, even though with patience
12061    # the test eventually succeeds (with a max line length of 256k).
12062    # Instead, let's just punt: use the minimum linelength reported by
12063    # all of the supported platforms: 8192 (on NT/2K/XP).
12064    lt_cv_sys_max_cmd_len=8192;
12065    ;;
12066
12067  mint*)
12068    # On MiNT this can take a long time and run out of memory.
12069    lt_cv_sys_max_cmd_len=8192;
12070    ;;
12071
12072  amigaos*)
12073    # On AmigaOS with pdksh, this test takes hours, literally.
12074    # So we just punt and use a minimum line length of 8192.
12075    lt_cv_sys_max_cmd_len=8192;
12076    ;;
12077
12078  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12079    # This has been around since 386BSD, at least.  Likely further.
12080    if test -x /sbin/sysctl; then
12081      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12082    elif test -x /usr/sbin/sysctl; then
12083      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12084    else
12085      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
12086    fi
12087    # And add a safety zone
12088    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12089    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12090    ;;
12091
12092  interix*)
12093    # We know the value 262144 and hardcode it with a safety zone (like BSD)
12094    lt_cv_sys_max_cmd_len=196608
12095    ;;
12096
12097  os2*)
12098    # The test takes a long time on OS/2.
12099    lt_cv_sys_max_cmd_len=8192
12100    ;;
12101
12102  osf*)
12103    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12104    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12105    # nice to cause kernel panics so lets avoid the loop below.
12106    # First set a reasonable default.
12107    lt_cv_sys_max_cmd_len=16384
12108    #
12109    if test -x /sbin/sysconfig; then
12110      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12111        *1*) lt_cv_sys_max_cmd_len=-1 ;;
12112      esac
12113    fi
12114    ;;
12115  sco3.2v5*)
12116    lt_cv_sys_max_cmd_len=102400
12117    ;;
12118  sysv5* | sco5v6* | sysv4.2uw2*)
12119    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12120    if test -n "$kargmax"; then
12121      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
12122    else
12123      lt_cv_sys_max_cmd_len=32768
12124    fi
12125    ;;
12126  *)
12127    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12128    if test -n "$lt_cv_sys_max_cmd_len" && \
12129       test undefined != "$lt_cv_sys_max_cmd_len"; then
12130      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12131      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12132    else
12133      # Make teststring a little bigger before we do anything with it.
12134      # a 1K string should be a reasonable start.
12135      for i in 1 2 3 4 5 6 7 8; do
12136        teststring=$teststring$teststring
12137      done
12138      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12139      # If test is not a shell built-in, we'll probably end up computing a
12140      # maximum length that is only half of the actual maximum length, but
12141      # we can't tell.
12142      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12143	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12144	      test 17 != "$i" # 1/2 MB should be enough
12145      do
12146        i=`expr $i + 1`
12147        teststring=$teststring$teststring
12148      done
12149      # Only check the string length outside the loop.
12150      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12151      teststring=
12152      # Add a significant safety factor because C++ compilers can tack on
12153      # massive amounts of additional arguments before passing them to the
12154      # linker.  It appears as though 1/2 is a usable value.
12155      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12156    fi
12157    ;;
12158  esac
12159
12160fi
12161
12162if test -n "$lt_cv_sys_max_cmd_len"; then
12163  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12164printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12165else
12166  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12167printf "%s\n" "none" >&6; }
12168fi
12169max_cmd_len=$lt_cv_sys_max_cmd_len
12170
12171
12172
12173
12174
12175
12176: ${CP="cp -f"}
12177: ${MV="mv -f"}
12178: ${RM="rm -f"}
12179
12180if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12181  lt_unset=unset
12182else
12183  lt_unset=false
12184fi
12185
12186
12187
12188
12189
12190# test EBCDIC or ASCII
12191case `echo X|tr X '\101'` in
12192 A) # ASCII based system
12193    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12194  lt_SP2NL='tr \040 \012'
12195  lt_NL2SP='tr \015\012 \040\040'
12196  ;;
12197 *) # EBCDIC based system
12198  lt_SP2NL='tr \100 \n'
12199  lt_NL2SP='tr \r\n \100\100'
12200  ;;
12201esac
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12212printf %s "checking how to convert $build file names to $host format... " >&6; }
12213if test ${lt_cv_to_host_file_cmd+y}
12214then :
12215  printf %s "(cached) " >&6
12216else $as_nop
12217  case $host in
12218  *-*-mingw* )
12219    case $build in
12220      *-*-mingw* ) # actually msys
12221        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12222        ;;
12223      *-*-cygwin* )
12224        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12225        ;;
12226      * ) # otherwise, assume *nix
12227        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12228        ;;
12229    esac
12230    ;;
12231  *-*-cygwin* )
12232    case $build in
12233      *-*-mingw* ) # actually msys
12234        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12235        ;;
12236      *-*-cygwin* )
12237        lt_cv_to_host_file_cmd=func_convert_file_noop
12238        ;;
12239      * ) # otherwise, assume *nix
12240        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12241        ;;
12242    esac
12243    ;;
12244  * ) # unhandled hosts (and "normal" native builds)
12245    lt_cv_to_host_file_cmd=func_convert_file_noop
12246    ;;
12247esac
12248
12249fi
12250
12251to_host_file_cmd=$lt_cv_to_host_file_cmd
12252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12253printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12254
12255
12256
12257
12258
12259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12260printf %s "checking how to convert $build file names to toolchain format... " >&6; }
12261if test ${lt_cv_to_tool_file_cmd+y}
12262then :
12263  printf %s "(cached) " >&6
12264else $as_nop
12265  #assume ordinary cross tools, or native build.
12266lt_cv_to_tool_file_cmd=func_convert_file_noop
12267case $host in
12268  *-*-mingw* )
12269    case $build in
12270      *-*-mingw* ) # actually msys
12271        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12272        ;;
12273    esac
12274    ;;
12275esac
12276
12277fi
12278
12279to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12280{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12281printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
12282
12283
12284
12285
12286
12287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12288printf %s "checking for $LD option to reload object files... " >&6; }
12289if test ${lt_cv_ld_reload_flag+y}
12290then :
12291  printf %s "(cached) " >&6
12292else $as_nop
12293  lt_cv_ld_reload_flag='-r'
12294fi
12295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12296printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
12297reload_flag=$lt_cv_ld_reload_flag
12298case $reload_flag in
12299"" | " "*) ;;
12300*) reload_flag=" $reload_flag" ;;
12301esac
12302reload_cmds='$LD$reload_flag -o $output$reload_objs'
12303case $host_os in
12304  cygwin* | mingw* | pw32* | cegcc*)
12305    if test yes != "$GCC"; then
12306      reload_cmds=false
12307    fi
12308    ;;
12309  darwin*)
12310    if test yes = "$GCC"; then
12311      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12312    else
12313      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12314    fi
12315    ;;
12316esac
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326if test -n "$ac_tool_prefix"; then
12327  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
12328set dummy ${ac_tool_prefix}file; ac_word=$2
12329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12330printf %s "checking for $ac_word... " >&6; }
12331if test ${ac_cv_prog_FILECMD+y}
12332then :
12333  printf %s "(cached) " >&6
12334else $as_nop
12335  if test -n "$FILECMD"; then
12336  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
12337else
12338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12339for as_dir in $PATH
12340do
12341  IFS=$as_save_IFS
12342  case $as_dir in #(((
12343    '') as_dir=./ ;;
12344    */) ;;
12345    *) as_dir=$as_dir/ ;;
12346  esac
12347    for ac_exec_ext in '' $ac_executable_extensions; do
12348  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12349    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
12350    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12351    break 2
12352  fi
12353done
12354  done
12355IFS=$as_save_IFS
12356
12357fi
12358fi
12359FILECMD=$ac_cv_prog_FILECMD
12360if test -n "$FILECMD"; then
12361  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
12362printf "%s\n" "$FILECMD" >&6; }
12363else
12364  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12365printf "%s\n" "no" >&6; }
12366fi
12367
12368
12369fi
12370if test -z "$ac_cv_prog_FILECMD"; then
12371  ac_ct_FILECMD=$FILECMD
12372  # Extract the first word of "file", so it can be a program name with args.
12373set dummy file; ac_word=$2
12374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12375printf %s "checking for $ac_word... " >&6; }
12376if test ${ac_cv_prog_ac_ct_FILECMD+y}
12377then :
12378  printf %s "(cached) " >&6
12379else $as_nop
12380  if test -n "$ac_ct_FILECMD"; then
12381  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
12382else
12383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12384for as_dir in $PATH
12385do
12386  IFS=$as_save_IFS
12387  case $as_dir in #(((
12388    '') as_dir=./ ;;
12389    */) ;;
12390    *) as_dir=$as_dir/ ;;
12391  esac
12392    for ac_exec_ext in '' $ac_executable_extensions; do
12393  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12394    ac_cv_prog_ac_ct_FILECMD="file"
12395    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12396    break 2
12397  fi
12398done
12399  done
12400IFS=$as_save_IFS
12401
12402fi
12403fi
12404ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
12405if test -n "$ac_ct_FILECMD"; then
12406  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
12407printf "%s\n" "$ac_ct_FILECMD" >&6; }
12408else
12409  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12410printf "%s\n" "no" >&6; }
12411fi
12412
12413  if test "x$ac_ct_FILECMD" = x; then
12414    FILECMD=":"
12415  else
12416    case $cross_compiling:$ac_tool_warned in
12417yes:)
12418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12419printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12420ac_tool_warned=yes ;;
12421esac
12422    FILECMD=$ac_ct_FILECMD
12423  fi
12424else
12425  FILECMD="$ac_cv_prog_FILECMD"
12426fi
12427
12428
12429
12430
12431
12432
12433
12434if test -n "$ac_tool_prefix"; then
12435  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12436set dummy ${ac_tool_prefix}objdump; ac_word=$2
12437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12438printf %s "checking for $ac_word... " >&6; }
12439if test ${ac_cv_prog_OBJDUMP+y}
12440then :
12441  printf %s "(cached) " >&6
12442else $as_nop
12443  if test -n "$OBJDUMP"; then
12444  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12445else
12446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12447for as_dir in $PATH
12448do
12449  IFS=$as_save_IFS
12450  case $as_dir in #(((
12451    '') as_dir=./ ;;
12452    */) ;;
12453    *) as_dir=$as_dir/ ;;
12454  esac
12455    for ac_exec_ext in '' $ac_executable_extensions; do
12456  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12457    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12458    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12459    break 2
12460  fi
12461done
12462  done
12463IFS=$as_save_IFS
12464
12465fi
12466fi
12467OBJDUMP=$ac_cv_prog_OBJDUMP
12468if test -n "$OBJDUMP"; then
12469  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12470printf "%s\n" "$OBJDUMP" >&6; }
12471else
12472  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473printf "%s\n" "no" >&6; }
12474fi
12475
12476
12477fi
12478if test -z "$ac_cv_prog_OBJDUMP"; then
12479  ac_ct_OBJDUMP=$OBJDUMP
12480  # Extract the first word of "objdump", so it can be a program name with args.
12481set dummy objdump; ac_word=$2
12482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12483printf %s "checking for $ac_word... " >&6; }
12484if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12485then :
12486  printf %s "(cached) " >&6
12487else $as_nop
12488  if test -n "$ac_ct_OBJDUMP"; then
12489  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12490else
12491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12492for as_dir in $PATH
12493do
12494  IFS=$as_save_IFS
12495  case $as_dir in #(((
12496    '') as_dir=./ ;;
12497    */) ;;
12498    *) as_dir=$as_dir/ ;;
12499  esac
12500    for ac_exec_ext in '' $ac_executable_extensions; do
12501  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12502    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12503    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12504    break 2
12505  fi
12506done
12507  done
12508IFS=$as_save_IFS
12509
12510fi
12511fi
12512ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12513if test -n "$ac_ct_OBJDUMP"; then
12514  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12515printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12516else
12517  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12518printf "%s\n" "no" >&6; }
12519fi
12520
12521  if test "x$ac_ct_OBJDUMP" = x; then
12522    OBJDUMP="false"
12523  else
12524    case $cross_compiling:$ac_tool_warned in
12525yes:)
12526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12527printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12528ac_tool_warned=yes ;;
12529esac
12530    OBJDUMP=$ac_ct_OBJDUMP
12531  fi
12532else
12533  OBJDUMP="$ac_cv_prog_OBJDUMP"
12534fi
12535
12536test -z "$OBJDUMP" && OBJDUMP=objdump
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12547printf %s "checking how to recognize dependent libraries... " >&6; }
12548if test ${lt_cv_deplibs_check_method+y}
12549then :
12550  printf %s "(cached) " >&6
12551else $as_nop
12552  lt_cv_file_magic_cmd='$MAGIC_CMD'
12553lt_cv_file_magic_test_file=
12554lt_cv_deplibs_check_method='unknown'
12555# Need to set the preceding variable on all platforms that support
12556# interlibrary dependencies.
12557# 'none' -- dependencies not supported.
12558# 'unknown' -- same as none, but documents that we really don't know.
12559# 'pass_all' -- all dependencies passed with no checks.
12560# 'test_compile' -- check by making test program.
12561# 'file_magic [[regex]]' -- check by looking for files in library path
12562# that responds to the $file_magic_cmd with a given extended regex.
12563# If you have 'file' or equivalent on your system and you're not sure
12564# whether 'pass_all' will *always* work, you probably want this one.
12565
12566case $host_os in
12567aix[4-9]*)
12568  lt_cv_deplibs_check_method=pass_all
12569  ;;
12570
12571beos*)
12572  lt_cv_deplibs_check_method=pass_all
12573  ;;
12574
12575bsdi[45]*)
12576  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12577  lt_cv_file_magic_cmd='$FILECMD -L'
12578  lt_cv_file_magic_test_file=/shlib/libc.so
12579  ;;
12580
12581cygwin*)
12582  # func_win32_libid is a shell function defined in ltmain.sh
12583  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12584  lt_cv_file_magic_cmd='func_win32_libid'
12585  ;;
12586
12587mingw* | pw32*)
12588  # Base MSYS/MinGW do not provide the 'file' command needed by
12589  # func_win32_libid shell function, so use a weaker test based on 'objdump',
12590  # unless we find 'file', for example because we are cross-compiling.
12591  if ( file / ) >/dev/null 2>&1; then
12592    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12593    lt_cv_file_magic_cmd='func_win32_libid'
12594  else
12595    # Keep this pattern in sync with the one in func_win32_libid.
12596    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12597    lt_cv_file_magic_cmd='$OBJDUMP -f'
12598  fi
12599  ;;
12600
12601cegcc*)
12602  # use the weaker test based on 'objdump'. See mingw*.
12603  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12604  lt_cv_file_magic_cmd='$OBJDUMP -f'
12605  ;;
12606
12607darwin* | rhapsody*)
12608  lt_cv_deplibs_check_method=pass_all
12609  ;;
12610
12611freebsd* | dragonfly* | midnightbsd*)
12612  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12613    case $host_cpu in
12614    i*86 )
12615      # Not sure whether the presence of OpenBSD here was a mistake.
12616      # Let's accept both of them until this is cleared up.
12617      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12618      lt_cv_file_magic_cmd=$FILECMD
12619      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12620      ;;
12621    esac
12622  else
12623    lt_cv_deplibs_check_method=pass_all
12624  fi
12625  ;;
12626
12627haiku*)
12628  lt_cv_deplibs_check_method=pass_all
12629  ;;
12630
12631hpux10.20* | hpux11*)
12632  lt_cv_file_magic_cmd=$FILECMD
12633  case $host_cpu in
12634  ia64*)
12635    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12636    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12637    ;;
12638  hppa*64*)
12639    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]'
12640    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12641    ;;
12642  *)
12643    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12644    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12645    ;;
12646  esac
12647  ;;
12648
12649interix[3-9]*)
12650  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12651  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12652  ;;
12653
12654irix5* | irix6* | nonstopux*)
12655  case $LD in
12656  *-32|*"-32 ") libmagic=32-bit;;
12657  *-n32|*"-n32 ") libmagic=N32;;
12658  *-64|*"-64 ") libmagic=64-bit;;
12659  *) libmagic=never-match;;
12660  esac
12661  lt_cv_deplibs_check_method=pass_all
12662  ;;
12663
12664# This must be glibc/ELF.
12665linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12666  lt_cv_deplibs_check_method=pass_all
12667  ;;
12668
12669netbsd*)
12670  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12671    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12672  else
12673    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12674  fi
12675  ;;
12676
12677newos6*)
12678  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12679  lt_cv_file_magic_cmd=$FILECMD
12680  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12681  ;;
12682
12683*nto* | *qnx*)
12684  lt_cv_deplibs_check_method=pass_all
12685  ;;
12686
12687openbsd* | bitrig*)
12688  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12689    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12690  else
12691    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12692  fi
12693  ;;
12694
12695osf3* | osf4* | osf5*)
12696  lt_cv_deplibs_check_method=pass_all
12697  ;;
12698
12699rdos*)
12700  lt_cv_deplibs_check_method=pass_all
12701  ;;
12702
12703solaris*)
12704  lt_cv_deplibs_check_method=pass_all
12705  ;;
12706
12707sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12708  lt_cv_deplibs_check_method=pass_all
12709  ;;
12710
12711sysv4 | sysv4.3*)
12712  case $host_vendor in
12713  motorola)
12714    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]'
12715    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12716    ;;
12717  ncr)
12718    lt_cv_deplibs_check_method=pass_all
12719    ;;
12720  sequent)
12721    lt_cv_file_magic_cmd='/bin/file'
12722    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12723    ;;
12724  sni)
12725    lt_cv_file_magic_cmd='/bin/file'
12726    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12727    lt_cv_file_magic_test_file=/lib/libc.so
12728    ;;
12729  siemens)
12730    lt_cv_deplibs_check_method=pass_all
12731    ;;
12732  pc)
12733    lt_cv_deplibs_check_method=pass_all
12734    ;;
12735  esac
12736  ;;
12737
12738tpf*)
12739  lt_cv_deplibs_check_method=pass_all
12740  ;;
12741os2*)
12742  lt_cv_deplibs_check_method=pass_all
12743  ;;
12744esac
12745
12746fi
12747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12748printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
12749
12750file_magic_glob=
12751want_nocaseglob=no
12752if test "$build" = "$host"; then
12753  case $host_os in
12754  mingw* | pw32*)
12755    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12756      want_nocaseglob=yes
12757    else
12758      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12759    fi
12760    ;;
12761  esac
12762fi
12763
12764file_magic_cmd=$lt_cv_file_magic_cmd
12765deplibs_check_method=$lt_cv_deplibs_check_method
12766test -z "$deplibs_check_method" && deplibs_check_method=unknown
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789if test -n "$ac_tool_prefix"; then
12790  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12791set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12793printf %s "checking for $ac_word... " >&6; }
12794if test ${ac_cv_prog_DLLTOOL+y}
12795then :
12796  printf %s "(cached) " >&6
12797else $as_nop
12798  if test -n "$DLLTOOL"; then
12799  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12800else
12801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12802for as_dir in $PATH
12803do
12804  IFS=$as_save_IFS
12805  case $as_dir in #(((
12806    '') as_dir=./ ;;
12807    */) ;;
12808    *) as_dir=$as_dir/ ;;
12809  esac
12810    for ac_exec_ext in '' $ac_executable_extensions; do
12811  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12812    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12813    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12814    break 2
12815  fi
12816done
12817  done
12818IFS=$as_save_IFS
12819
12820fi
12821fi
12822DLLTOOL=$ac_cv_prog_DLLTOOL
12823if test -n "$DLLTOOL"; then
12824  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12825printf "%s\n" "$DLLTOOL" >&6; }
12826else
12827  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12828printf "%s\n" "no" >&6; }
12829fi
12830
12831
12832fi
12833if test -z "$ac_cv_prog_DLLTOOL"; then
12834  ac_ct_DLLTOOL=$DLLTOOL
12835  # Extract the first word of "dlltool", so it can be a program name with args.
12836set dummy dlltool; ac_word=$2
12837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12838printf %s "checking for $ac_word... " >&6; }
12839if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12840then :
12841  printf %s "(cached) " >&6
12842else $as_nop
12843  if test -n "$ac_ct_DLLTOOL"; then
12844  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12845else
12846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12847for as_dir in $PATH
12848do
12849  IFS=$as_save_IFS
12850  case $as_dir in #(((
12851    '') as_dir=./ ;;
12852    */) ;;
12853    *) as_dir=$as_dir/ ;;
12854  esac
12855    for ac_exec_ext in '' $ac_executable_extensions; do
12856  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12857    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12858    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12859    break 2
12860  fi
12861done
12862  done
12863IFS=$as_save_IFS
12864
12865fi
12866fi
12867ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12868if test -n "$ac_ct_DLLTOOL"; then
12869  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12870printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12871else
12872  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12873printf "%s\n" "no" >&6; }
12874fi
12875
12876  if test "x$ac_ct_DLLTOOL" = x; then
12877    DLLTOOL="false"
12878  else
12879    case $cross_compiling:$ac_tool_warned in
12880yes:)
12881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12882printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12883ac_tool_warned=yes ;;
12884esac
12885    DLLTOOL=$ac_ct_DLLTOOL
12886  fi
12887else
12888  DLLTOOL="$ac_cv_prog_DLLTOOL"
12889fi
12890
12891test -z "$DLLTOOL" && DLLTOOL=dlltool
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12903printf %s "checking how to associate runtime and link libraries... " >&6; }
12904if test ${lt_cv_sharedlib_from_linklib_cmd+y}
12905then :
12906  printf %s "(cached) " >&6
12907else $as_nop
12908  lt_cv_sharedlib_from_linklib_cmd='unknown'
12909
12910case $host_os in
12911cygwin* | mingw* | pw32* | cegcc*)
12912  # two different shell functions defined in ltmain.sh;
12913  # decide which one to use based on capabilities of $DLLTOOL
12914  case `$DLLTOOL --help 2>&1` in
12915  *--identify-strict*)
12916    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12917    ;;
12918  *)
12919    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12920    ;;
12921  esac
12922  ;;
12923*)
12924  # fallback: assume linklib IS sharedlib
12925  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12926  ;;
12927esac
12928
12929fi
12930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12931printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12932sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12933test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12934
12935
12936
12937
12938
12939
12940
12941if test -n "$ac_tool_prefix"; then
12942  for ac_prog in ar
12943  do
12944    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12945set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12947printf %s "checking for $ac_word... " >&6; }
12948if test ${ac_cv_prog_AR+y}
12949then :
12950  printf %s "(cached) " >&6
12951else $as_nop
12952  if test -n "$AR"; then
12953  ac_cv_prog_AR="$AR" # Let the user override the test.
12954else
12955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12956for as_dir in $PATH
12957do
12958  IFS=$as_save_IFS
12959  case $as_dir in #(((
12960    '') as_dir=./ ;;
12961    */) ;;
12962    *) as_dir=$as_dir/ ;;
12963  esac
12964    for ac_exec_ext in '' $ac_executable_extensions; do
12965  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12966    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12967    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12968    break 2
12969  fi
12970done
12971  done
12972IFS=$as_save_IFS
12973
12974fi
12975fi
12976AR=$ac_cv_prog_AR
12977if test -n "$AR"; then
12978  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12979printf "%s\n" "$AR" >&6; }
12980else
12981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12982printf "%s\n" "no" >&6; }
12983fi
12984
12985
12986    test -n "$AR" && break
12987  done
12988fi
12989if test -z "$AR"; then
12990  ac_ct_AR=$AR
12991  for ac_prog in ar
12992do
12993  # Extract the first word of "$ac_prog", so it can be a program name with args.
12994set dummy $ac_prog; ac_word=$2
12995{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12996printf %s "checking for $ac_word... " >&6; }
12997if test ${ac_cv_prog_ac_ct_AR+y}
12998then :
12999  printf %s "(cached) " >&6
13000else $as_nop
13001  if test -n "$ac_ct_AR"; then
13002  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13003else
13004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13005for as_dir in $PATH
13006do
13007  IFS=$as_save_IFS
13008  case $as_dir in #(((
13009    '') as_dir=./ ;;
13010    */) ;;
13011    *) as_dir=$as_dir/ ;;
13012  esac
13013    for ac_exec_ext in '' $ac_executable_extensions; do
13014  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13015    ac_cv_prog_ac_ct_AR="$ac_prog"
13016    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13017    break 2
13018  fi
13019done
13020  done
13021IFS=$as_save_IFS
13022
13023fi
13024fi
13025ac_ct_AR=$ac_cv_prog_ac_ct_AR
13026if test -n "$ac_ct_AR"; then
13027  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13028printf "%s\n" "$ac_ct_AR" >&6; }
13029else
13030  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13031printf "%s\n" "no" >&6; }
13032fi
13033
13034
13035  test -n "$ac_ct_AR" && break
13036done
13037
13038  if test "x$ac_ct_AR" = x; then
13039    AR="false"
13040  else
13041    case $cross_compiling:$ac_tool_warned in
13042yes:)
13043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13044printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13045ac_tool_warned=yes ;;
13046esac
13047    AR=$ac_ct_AR
13048  fi
13049fi
13050
13051: ${AR=ar}
13052
13053
13054
13055
13056
13057
13058# Use ARFLAGS variable as AR's operation code to sync the variable naming with
13059# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13060# higher priority because thats what people were doing historically (setting
13061# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
13062# variable obsoleted/removed.
13063
13064test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13065lt_ar_flags=$AR_FLAGS
13066
13067
13068
13069
13070
13071
13072# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
13073# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13074
13075
13076
13077
13078
13079
13080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13081printf %s "checking for archiver @FILE support... " >&6; }
13082if test ${lt_cv_ar_at_file+y}
13083then :
13084  printf %s "(cached) " >&6
13085else $as_nop
13086  lt_cv_ar_at_file=no
13087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088/* end confdefs.h.  */
13089
13090int
13091main (void)
13092{
13093
13094  ;
13095  return 0;
13096}
13097_ACEOF
13098if ac_fn_c_try_compile "$LINENO"
13099then :
13100  echo conftest.$ac_objext > conftest.lst
13101      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13102      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13103  (eval $lt_ar_try) 2>&5
13104  ac_status=$?
13105  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13106  test $ac_status = 0; }
13107      if test 0 -eq "$ac_status"; then
13108	# Ensure the archiver fails upon bogus file names.
13109	rm -f conftest.$ac_objext libconftest.a
13110	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13111  (eval $lt_ar_try) 2>&5
13112  ac_status=$?
13113  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13114  test $ac_status = 0; }
13115	if test 0 -ne "$ac_status"; then
13116          lt_cv_ar_at_file=@
13117        fi
13118      fi
13119      rm -f conftest.* libconftest.a
13120
13121fi
13122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13123
13124fi
13125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13126printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13127
13128if test no = "$lt_cv_ar_at_file"; then
13129  archiver_list_spec=
13130else
13131  archiver_list_spec=$lt_cv_ar_at_file
13132fi
13133
13134
13135
13136
13137
13138
13139
13140if test -n "$ac_tool_prefix"; then
13141  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13142set dummy ${ac_tool_prefix}strip; ac_word=$2
13143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13144printf %s "checking for $ac_word... " >&6; }
13145if test ${ac_cv_prog_STRIP+y}
13146then :
13147  printf %s "(cached) " >&6
13148else $as_nop
13149  if test -n "$STRIP"; then
13150  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13151else
13152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13153for as_dir in $PATH
13154do
13155  IFS=$as_save_IFS
13156  case $as_dir in #(((
13157    '') as_dir=./ ;;
13158    */) ;;
13159    *) as_dir=$as_dir/ ;;
13160  esac
13161    for ac_exec_ext in '' $ac_executable_extensions; do
13162  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13163    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13164    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13165    break 2
13166  fi
13167done
13168  done
13169IFS=$as_save_IFS
13170
13171fi
13172fi
13173STRIP=$ac_cv_prog_STRIP
13174if test -n "$STRIP"; then
13175  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13176printf "%s\n" "$STRIP" >&6; }
13177else
13178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13179printf "%s\n" "no" >&6; }
13180fi
13181
13182
13183fi
13184if test -z "$ac_cv_prog_STRIP"; then
13185  ac_ct_STRIP=$STRIP
13186  # Extract the first word of "strip", so it can be a program name with args.
13187set dummy strip; ac_word=$2
13188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13189printf %s "checking for $ac_word... " >&6; }
13190if test ${ac_cv_prog_ac_ct_STRIP+y}
13191then :
13192  printf %s "(cached) " >&6
13193else $as_nop
13194  if test -n "$ac_ct_STRIP"; then
13195  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13196else
13197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13198for as_dir in $PATH
13199do
13200  IFS=$as_save_IFS
13201  case $as_dir in #(((
13202    '') as_dir=./ ;;
13203    */) ;;
13204    *) as_dir=$as_dir/ ;;
13205  esac
13206    for ac_exec_ext in '' $ac_executable_extensions; do
13207  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13208    ac_cv_prog_ac_ct_STRIP="strip"
13209    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13210    break 2
13211  fi
13212done
13213  done
13214IFS=$as_save_IFS
13215
13216fi
13217fi
13218ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13219if test -n "$ac_ct_STRIP"; then
13220  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13221printf "%s\n" "$ac_ct_STRIP" >&6; }
13222else
13223  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224printf "%s\n" "no" >&6; }
13225fi
13226
13227  if test "x$ac_ct_STRIP" = x; then
13228    STRIP=":"
13229  else
13230    case $cross_compiling:$ac_tool_warned in
13231yes:)
13232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13233printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13234ac_tool_warned=yes ;;
13235esac
13236    STRIP=$ac_ct_STRIP
13237  fi
13238else
13239  STRIP="$ac_cv_prog_STRIP"
13240fi
13241
13242test -z "$STRIP" && STRIP=:
13243
13244
13245
13246
13247
13248
13249if test -n "$ac_tool_prefix"; then
13250  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13251set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13252{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13253printf %s "checking for $ac_word... " >&6; }
13254if test ${ac_cv_prog_RANLIB+y}
13255then :
13256  printf %s "(cached) " >&6
13257else $as_nop
13258  if test -n "$RANLIB"; then
13259  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13260else
13261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13262for as_dir in $PATH
13263do
13264  IFS=$as_save_IFS
13265  case $as_dir in #(((
13266    '') as_dir=./ ;;
13267    */) ;;
13268    *) as_dir=$as_dir/ ;;
13269  esac
13270    for ac_exec_ext in '' $ac_executable_extensions; do
13271  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13272    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13273    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13274    break 2
13275  fi
13276done
13277  done
13278IFS=$as_save_IFS
13279
13280fi
13281fi
13282RANLIB=$ac_cv_prog_RANLIB
13283if test -n "$RANLIB"; then
13284  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13285printf "%s\n" "$RANLIB" >&6; }
13286else
13287  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13288printf "%s\n" "no" >&6; }
13289fi
13290
13291
13292fi
13293if test -z "$ac_cv_prog_RANLIB"; then
13294  ac_ct_RANLIB=$RANLIB
13295  # Extract the first word of "ranlib", so it can be a program name with args.
13296set dummy ranlib; ac_word=$2
13297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13298printf %s "checking for $ac_word... " >&6; }
13299if test ${ac_cv_prog_ac_ct_RANLIB+y}
13300then :
13301  printf %s "(cached) " >&6
13302else $as_nop
13303  if test -n "$ac_ct_RANLIB"; then
13304  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13305else
13306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13307for as_dir in $PATH
13308do
13309  IFS=$as_save_IFS
13310  case $as_dir in #(((
13311    '') as_dir=./ ;;
13312    */) ;;
13313    *) as_dir=$as_dir/ ;;
13314  esac
13315    for ac_exec_ext in '' $ac_executable_extensions; do
13316  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13317    ac_cv_prog_ac_ct_RANLIB="ranlib"
13318    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13319    break 2
13320  fi
13321done
13322  done
13323IFS=$as_save_IFS
13324
13325fi
13326fi
13327ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13328if test -n "$ac_ct_RANLIB"; then
13329  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13330printf "%s\n" "$ac_ct_RANLIB" >&6; }
13331else
13332  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13333printf "%s\n" "no" >&6; }
13334fi
13335
13336  if test "x$ac_ct_RANLIB" = x; then
13337    RANLIB=":"
13338  else
13339    case $cross_compiling:$ac_tool_warned in
13340yes:)
13341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13342printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13343ac_tool_warned=yes ;;
13344esac
13345    RANLIB=$ac_ct_RANLIB
13346  fi
13347else
13348  RANLIB="$ac_cv_prog_RANLIB"
13349fi
13350
13351test -z "$RANLIB" && RANLIB=:
13352
13353
13354
13355
13356
13357
13358# Determine commands to create old-style static archives.
13359old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13360old_postinstall_cmds='chmod 644 $oldlib'
13361old_postuninstall_cmds=
13362
13363if test -n "$RANLIB"; then
13364  case $host_os in
13365  bitrig* | openbsd*)
13366    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13367    ;;
13368  *)
13369    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13370    ;;
13371  esac
13372  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13373fi
13374
13375case $host_os in
13376  darwin*)
13377    lock_old_archive_extraction=yes ;;
13378  *)
13379    lock_old_archive_extraction=no ;;
13380esac
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
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# If no C compiler was specified, use CC.
13421LTCC=${LTCC-"$CC"}
13422
13423# If no C compiler flags were specified, use CFLAGS.
13424LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13425
13426# Allow CC to be a program name with arguments.
13427compiler=$CC
13428
13429
13430# Check for command to grab the raw symbol name followed by C symbol from nm.
13431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13432printf %s "checking command to parse $NM output from $compiler object... " >&6; }
13433if test ${lt_cv_sys_global_symbol_pipe+y}
13434then :
13435  printf %s "(cached) " >&6
13436else $as_nop
13437
13438# These are sane defaults that work on at least a few old systems.
13439# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13440
13441# Character class describing NM global symbol codes.
13442symcode='[BCDEGRST]'
13443
13444# Regexp to match symbols that can be accessed directly from C.
13445sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13446
13447# Define system-specific variables.
13448case $host_os in
13449aix*)
13450  symcode='[BCDT]'
13451  ;;
13452cygwin* | mingw* | pw32* | cegcc*)
13453  symcode='[ABCDGISTW]'
13454  ;;
13455hpux*)
13456  if test ia64 = "$host_cpu"; then
13457    symcode='[ABCDEGRST]'
13458  fi
13459  ;;
13460irix* | nonstopux*)
13461  symcode='[BCDEGRST]'
13462  ;;
13463osf*)
13464  symcode='[BCDEGQRST]'
13465  ;;
13466solaris*)
13467  symcode='[BDRT]'
13468  ;;
13469sco3.2v5*)
13470  symcode='[DT]'
13471  ;;
13472sysv4.2uw2*)
13473  symcode='[DT]'
13474  ;;
13475sysv5* | sco5v6* | unixware* | OpenUNIX*)
13476  symcode='[ABDT]'
13477  ;;
13478sysv4)
13479  symcode='[DFNSTU]'
13480  ;;
13481esac
13482
13483# If we're using GNU nm, then use its standard symbol codes.
13484case `$NM -V 2>&1` in
13485*GNU* | *'with BFD'*)
13486  symcode='[ABCDGIRSTW]' ;;
13487esac
13488
13489if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13490  # Gets list of data symbols to import.
13491  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
13492  # Adjust the below global symbol transforms to fixup imported variables.
13493  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13494  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
13495  lt_c_name_lib_hook="\
13496  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
13497  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
13498else
13499  # Disable hooks by default.
13500  lt_cv_sys_global_symbol_to_import=
13501  lt_cdecl_hook=
13502  lt_c_name_hook=
13503  lt_c_name_lib_hook=
13504fi
13505
13506# Transform an extracted symbol line into a proper C declaration.
13507# Some systems (esp. on ia64) link data and code symbols differently,
13508# so use this general approach.
13509lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
13510$lt_cdecl_hook\
13511" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13512" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13513
13514# Transform an extracted symbol line into symbol name and symbol address
13515lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
13516$lt_c_name_hook\
13517" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13518" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
13519
13520# Transform an extracted symbol line into symbol name with lib prefix and
13521# symbol address.
13522lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
13523$lt_c_name_lib_hook\
13524" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13525" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
13526" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
13527
13528# Handle CRLF in mingw tool chain
13529opt_cr=
13530case $build_os in
13531mingw*)
13532  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13533  ;;
13534esac
13535
13536# Try without a prefix underscore, then with it.
13537for ac_symprfx in "" "_"; do
13538
13539  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13540  symxfrm="\\1 $ac_symprfx\\2 \\2"
13541
13542  # Write the raw and C identifiers.
13543  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13544    # Fake it for dumpbin and say T for any non-static function,
13545    # D for any global variable and I for any imported variable.
13546    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
13547    # which start with @ or ?.
13548    lt_cv_sys_global_symbol_pipe="$AWK '"\
13549"     {last_section=section; section=\$ 3};"\
13550"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13551"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13552"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13553"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13554"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13555"     \$ 0!~/External *\|/{next};"\
13556"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13557"     {if(hide[section]) next};"\
13558"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13559"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13560"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13561"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13562"     ' prfx=^$ac_symprfx"
13563  else
13564    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13565  fi
13566  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
13567
13568  # Check to see that the pipe works correctly.
13569  pipe_works=no
13570
13571  rm -f conftest*
13572  cat > conftest.$ac_ext <<_LT_EOF
13573#ifdef __cplusplus
13574extern "C" {
13575#endif
13576char nm_test_var;
13577void nm_test_func(void);
13578void nm_test_func(void){}
13579#ifdef __cplusplus
13580}
13581#endif
13582int main(){nm_test_var='a';nm_test_func();return(0);}
13583_LT_EOF
13584
13585  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13586  (eval $ac_compile) 2>&5
13587  ac_status=$?
13588  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13589  test $ac_status = 0; }; then
13590    # Now try to grab the symbols.
13591    nlist=conftest.nm
13592    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13593  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13594  ac_status=$?
13595  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13596  test $ac_status = 0; } && test -s "$nlist"; then
13597      # Try sorting and uniquifying the output.
13598      if sort "$nlist" | uniq > "$nlist"T; then
13599	mv -f "$nlist"T "$nlist"
13600      else
13601	rm -f "$nlist"T
13602      fi
13603
13604      # Make sure that we snagged all the symbols we need.
13605      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13606	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13607	  cat <<_LT_EOF > conftest.$ac_ext
13608/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
13609#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13610/* DATA imports from DLLs on WIN32 can't be const, because runtime
13611   relocations are performed -- see ld's documentation on pseudo-relocs.  */
13612# define LT_DLSYM_CONST
13613#elif defined __osf__
13614/* This system does not cope well with relocations in const data.  */
13615# define LT_DLSYM_CONST
13616#else
13617# define LT_DLSYM_CONST const
13618#endif
13619
13620#ifdef __cplusplus
13621extern "C" {
13622#endif
13623
13624_LT_EOF
13625	  # Now generate the symbol file.
13626	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13627
13628	  cat <<_LT_EOF >> conftest.$ac_ext
13629
13630/* The mapping between symbol names and symbols.  */
13631LT_DLSYM_CONST struct {
13632  const char *name;
13633  void       *address;
13634}
13635lt__PROGRAM__LTX_preloaded_symbols[] =
13636{
13637  { "@PROGRAM@", (void *) 0 },
13638_LT_EOF
13639	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13640	  cat <<\_LT_EOF >> conftest.$ac_ext
13641  {0, (void *) 0}
13642};
13643
13644/* This works around a problem in FreeBSD linker */
13645#ifdef FREEBSD_WORKAROUND
13646static const void *lt_preloaded_setup() {
13647  return lt__PROGRAM__LTX_preloaded_symbols;
13648}
13649#endif
13650
13651#ifdef __cplusplus
13652}
13653#endif
13654_LT_EOF
13655	  # Now try linking the two files.
13656	  mv conftest.$ac_objext conftstm.$ac_objext
13657	  lt_globsym_save_LIBS=$LIBS
13658	  lt_globsym_save_CFLAGS=$CFLAGS
13659	  LIBS=conftstm.$ac_objext
13660	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13661	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13662  (eval $ac_link) 2>&5
13663  ac_status=$?
13664  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13665  test $ac_status = 0; } && test -s conftest$ac_exeext; then
13666	    pipe_works=yes
13667	  fi
13668	  LIBS=$lt_globsym_save_LIBS
13669	  CFLAGS=$lt_globsym_save_CFLAGS
13670	else
13671	  echo "cannot find nm_test_func in $nlist" >&5
13672	fi
13673      else
13674	echo "cannot find nm_test_var in $nlist" >&5
13675      fi
13676    else
13677      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13678    fi
13679  else
13680    echo "$progname: failed program was:" >&5
13681    cat conftest.$ac_ext >&5
13682  fi
13683  rm -rf conftest* conftst*
13684
13685  # Do not use the global_symbol_pipe unless it works.
13686  if test yes = "$pipe_works"; then
13687    break
13688  else
13689    lt_cv_sys_global_symbol_pipe=
13690  fi
13691done
13692
13693fi
13694
13695if test -z "$lt_cv_sys_global_symbol_pipe"; then
13696  lt_cv_sys_global_symbol_to_cdecl=
13697fi
13698if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13699  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13700printf "%s\n" "failed" >&6; }
13701else
13702  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13703printf "%s\n" "ok" >&6; }
13704fi
13705
13706# Response file support.
13707if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13708  nm_file_list_spec='@'
13709elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13710  nm_file_list_spec='@'
13711fi
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13750printf %s "checking for sysroot... " >&6; }
13751
13752# Check whether --with-sysroot was given.
13753if test ${with_sysroot+y}
13754then :
13755  withval=$with_sysroot;
13756else $as_nop
13757  with_sysroot=no
13758fi
13759
13760
13761lt_sysroot=
13762case $with_sysroot in #(
13763 yes)
13764   if test yes = "$GCC"; then
13765     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13766   fi
13767   ;; #(
13768 /*)
13769   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
13770   ;; #(
13771 no|'')
13772   ;; #(
13773 *)
13774   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13775printf "%s\n" "$with_sysroot" >&6; }
13776   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13777   ;;
13778esac
13779
13780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13781printf "%s\n" "${lt_sysroot:-no}" >&6; }
13782
13783
13784
13785
13786
13787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13788printf %s "checking for a working dd... " >&6; }
13789if test ${ac_cv_path_lt_DD+y}
13790then :
13791  printf %s "(cached) " >&6
13792else $as_nop
13793  printf 0123456789abcdef0123456789abcdef >conftest.i
13794cat conftest.i conftest.i >conftest2.i
13795: ${lt_DD:=$DD}
13796if test -z "$lt_DD"; then
13797  ac_path_lt_DD_found=false
13798  # Loop through the user's path and test for each of PROGNAME-LIST
13799  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13800for as_dir in $PATH
13801do
13802  IFS=$as_save_IFS
13803  case $as_dir in #(((
13804    '') as_dir=./ ;;
13805    */) ;;
13806    *) as_dir=$as_dir/ ;;
13807  esac
13808    for ac_prog in dd
13809   do
13810    for ac_exec_ext in '' $ac_executable_extensions; do
13811      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
13812      as_fn_executable_p "$ac_path_lt_DD" || continue
13813if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13814  cmp -s conftest.i conftest.out \
13815  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13816fi
13817      $ac_path_lt_DD_found && break 3
13818    done
13819  done
13820  done
13821IFS=$as_save_IFS
13822  if test -z "$ac_cv_path_lt_DD"; then
13823    :
13824  fi
13825else
13826  ac_cv_path_lt_DD=$lt_DD
13827fi
13828
13829rm -f conftest.i conftest2.i conftest.out
13830fi
13831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13832printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
13833
13834
13835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13836printf %s "checking how to truncate binary pipes... " >&6; }
13837if test ${lt_cv_truncate_bin+y}
13838then :
13839  printf %s "(cached) " >&6
13840else $as_nop
13841  printf 0123456789abcdef0123456789abcdef >conftest.i
13842cat conftest.i conftest.i >conftest2.i
13843lt_cv_truncate_bin=
13844if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13845  cmp -s conftest.i conftest.out \
13846  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13847fi
13848rm -f conftest.i conftest2.i conftest.out
13849test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13850fi
13851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13852printf "%s\n" "$lt_cv_truncate_bin" >&6; }
13853
13854
13855
13856
13857
13858
13859
13860# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
13861func_cc_basename ()
13862{
13863    for cc_temp in $*""; do
13864      case $cc_temp in
13865        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13866        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13867        \-*) ;;
13868        *) break;;
13869      esac
13870    done
13871    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13872}
13873
13874# Check whether --enable-libtool-lock was given.
13875if test ${enable_libtool_lock+y}
13876then :
13877  enableval=$enable_libtool_lock;
13878fi
13879
13880test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13881
13882# Some flags need to be propagated to the compiler or linker for good
13883# libtool support.
13884case $host in
13885ia64-*-hpux*)
13886  # Find out what ABI is being produced by ac_compile, and set mode
13887  # options accordingly.
13888  echo 'int i;' > conftest.$ac_ext
13889  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13890  (eval $ac_compile) 2>&5
13891  ac_status=$?
13892  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13893  test $ac_status = 0; }; then
13894    case `$FILECMD conftest.$ac_objext` in
13895      *ELF-32*)
13896	HPUX_IA64_MODE=32
13897	;;
13898      *ELF-64*)
13899	HPUX_IA64_MODE=64
13900	;;
13901    esac
13902  fi
13903  rm -rf conftest*
13904  ;;
13905*-*-irix6*)
13906  # Find out what ABI is being produced by ac_compile, and set linker
13907  # options accordingly.
13908  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13909  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13910  (eval $ac_compile) 2>&5
13911  ac_status=$?
13912  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13913  test $ac_status = 0; }; then
13914    if test yes = "$lt_cv_prog_gnu_ld"; then
13915      case `$FILECMD conftest.$ac_objext` in
13916	*32-bit*)
13917	  LD="${LD-ld} -melf32bsmip"
13918	  ;;
13919	*N32*)
13920	  LD="${LD-ld} -melf32bmipn32"
13921	  ;;
13922	*64-bit*)
13923	  LD="${LD-ld} -melf64bmip"
13924	;;
13925      esac
13926    else
13927      case `$FILECMD conftest.$ac_objext` in
13928	*32-bit*)
13929	  LD="${LD-ld} -32"
13930	  ;;
13931	*N32*)
13932	  LD="${LD-ld} -n32"
13933	  ;;
13934	*64-bit*)
13935	  LD="${LD-ld} -64"
13936	  ;;
13937      esac
13938    fi
13939  fi
13940  rm -rf conftest*
13941  ;;
13942
13943mips64*-*linux*)
13944  # Find out what ABI is being produced by ac_compile, and set linker
13945  # options accordingly.
13946  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13947  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13948  (eval $ac_compile) 2>&5
13949  ac_status=$?
13950  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13951  test $ac_status = 0; }; then
13952    emul=elf
13953    case `$FILECMD conftest.$ac_objext` in
13954      *32-bit*)
13955	emul="${emul}32"
13956	;;
13957      *64-bit*)
13958	emul="${emul}64"
13959	;;
13960    esac
13961    case `$FILECMD conftest.$ac_objext` in
13962      *MSB*)
13963	emul="${emul}btsmip"
13964	;;
13965      *LSB*)
13966	emul="${emul}ltsmip"
13967	;;
13968    esac
13969    case `$FILECMD conftest.$ac_objext` in
13970      *N32*)
13971	emul="${emul}n32"
13972	;;
13973    esac
13974    LD="${LD-ld} -m $emul"
13975  fi
13976  rm -rf conftest*
13977  ;;
13978
13979x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13980s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13981  # Find out what ABI is being produced by ac_compile, and set linker
13982  # options accordingly.  Note that the listed cases only cover the
13983  # situations where additional linker options are needed (such as when
13984  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13985  # vice versa); the common cases where no linker options are needed do
13986  # not appear in the list.
13987  echo 'int i;' > conftest.$ac_ext
13988  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13989  (eval $ac_compile) 2>&5
13990  ac_status=$?
13991  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13992  test $ac_status = 0; }; then
13993    case `$FILECMD conftest.o` in
13994      *32-bit*)
13995	case $host in
13996	  x86_64-*kfreebsd*-gnu)
13997	    LD="${LD-ld} -m elf_i386_fbsd"
13998	    ;;
13999	  x86_64-*linux*)
14000	    case `$FILECMD conftest.o` in
14001	      *x86-64*)
14002		LD="${LD-ld} -m elf32_x86_64"
14003		;;
14004	      *)
14005		LD="${LD-ld} -m elf_i386"
14006		;;
14007	    esac
14008	    ;;
14009	  powerpc64le-*linux*)
14010	    LD="${LD-ld} -m elf32lppclinux"
14011	    ;;
14012	  powerpc64-*linux*)
14013	    LD="${LD-ld} -m elf32ppclinux"
14014	    ;;
14015	  s390x-*linux*)
14016	    LD="${LD-ld} -m elf_s390"
14017	    ;;
14018	  sparc64-*linux*)
14019	    LD="${LD-ld} -m elf32_sparc"
14020	    ;;
14021	esac
14022	;;
14023      *64-bit*)
14024	case $host in
14025	  x86_64-*kfreebsd*-gnu)
14026	    LD="${LD-ld} -m elf_x86_64_fbsd"
14027	    ;;
14028	  x86_64-*linux*)
14029	    LD="${LD-ld} -m elf_x86_64"
14030	    ;;
14031	  powerpcle-*linux*)
14032	    LD="${LD-ld} -m elf64lppc"
14033	    ;;
14034	  powerpc-*linux*)
14035	    LD="${LD-ld} -m elf64ppc"
14036	    ;;
14037	  s390*-*linux*|s390*-*tpf*)
14038	    LD="${LD-ld} -m elf64_s390"
14039	    ;;
14040	  sparc*-*linux*)
14041	    LD="${LD-ld} -m elf64_sparc"
14042	    ;;
14043	esac
14044	;;
14045    esac
14046  fi
14047  rm -rf conftest*
14048  ;;
14049
14050*-*-sco3.2v5*)
14051  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14052  SAVE_CFLAGS=$CFLAGS
14053  CFLAGS="$CFLAGS -belf"
14054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14055printf %s "checking whether the C compiler needs -belf... " >&6; }
14056if test ${lt_cv_cc_needs_belf+y}
14057then :
14058  printf %s "(cached) " >&6
14059else $as_nop
14060  ac_ext=c
14061ac_cpp='$CPP $CPPFLAGS'
14062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14064ac_compiler_gnu=$ac_cv_c_compiler_gnu
14065
14066     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14067/* end confdefs.h.  */
14068
14069int
14070main (void)
14071{
14072
14073  ;
14074  return 0;
14075}
14076_ACEOF
14077if ac_fn_c_try_link "$LINENO"
14078then :
14079  lt_cv_cc_needs_belf=yes
14080else $as_nop
14081  lt_cv_cc_needs_belf=no
14082fi
14083rm -f core conftest.err conftest.$ac_objext conftest.beam \
14084    conftest$ac_exeext conftest.$ac_ext
14085     ac_ext=c
14086ac_cpp='$CPP $CPPFLAGS'
14087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14089ac_compiler_gnu=$ac_cv_c_compiler_gnu
14090
14091fi
14092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14093printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14094  if test yes != "$lt_cv_cc_needs_belf"; then
14095    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14096    CFLAGS=$SAVE_CFLAGS
14097  fi
14098  ;;
14099*-*solaris*)
14100  # Find out what ABI is being produced by ac_compile, and set linker
14101  # options accordingly.
14102  echo 'int i;' > conftest.$ac_ext
14103  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14104  (eval $ac_compile) 2>&5
14105  ac_status=$?
14106  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14107  test $ac_status = 0; }; then
14108    case `$FILECMD conftest.o` in
14109    *64-bit*)
14110      case $lt_cv_prog_gnu_ld in
14111      yes*)
14112        case $host in
14113        i?86-*-solaris*|x86_64-*-solaris*)
14114          LD="${LD-ld} -m elf_x86_64"
14115          ;;
14116        sparc*-*-solaris*)
14117          LD="${LD-ld} -m elf64_sparc"
14118          ;;
14119        esac
14120        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
14121        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14122          LD=${LD-ld}_sol2
14123        fi
14124        ;;
14125      *)
14126	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14127	  LD="${LD-ld} -64"
14128	fi
14129	;;
14130      esac
14131      ;;
14132    esac
14133  fi
14134  rm -rf conftest*
14135  ;;
14136esac
14137
14138need_locks=$enable_libtool_lock
14139
14140if test -n "$ac_tool_prefix"; then
14141  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14142set dummy ${ac_tool_prefix}mt; ac_word=$2
14143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14144printf %s "checking for $ac_word... " >&6; }
14145if test ${ac_cv_prog_MANIFEST_TOOL+y}
14146then :
14147  printf %s "(cached) " >&6
14148else $as_nop
14149  if test -n "$MANIFEST_TOOL"; then
14150  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14151else
14152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14153for as_dir in $PATH
14154do
14155  IFS=$as_save_IFS
14156  case $as_dir in #(((
14157    '') as_dir=./ ;;
14158    */) ;;
14159    *) as_dir=$as_dir/ ;;
14160  esac
14161    for ac_exec_ext in '' $ac_executable_extensions; do
14162  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14163    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14164    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14165    break 2
14166  fi
14167done
14168  done
14169IFS=$as_save_IFS
14170
14171fi
14172fi
14173MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14174if test -n "$MANIFEST_TOOL"; then
14175  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14176printf "%s\n" "$MANIFEST_TOOL" >&6; }
14177else
14178  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14179printf "%s\n" "no" >&6; }
14180fi
14181
14182
14183fi
14184if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14185  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14186  # Extract the first word of "mt", so it can be a program name with args.
14187set dummy mt; ac_word=$2
14188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14189printf %s "checking for $ac_word... " >&6; }
14190if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14191then :
14192  printf %s "(cached) " >&6
14193else $as_nop
14194  if test -n "$ac_ct_MANIFEST_TOOL"; then
14195  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14196else
14197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14198for as_dir in $PATH
14199do
14200  IFS=$as_save_IFS
14201  case $as_dir in #(((
14202    '') as_dir=./ ;;
14203    */) ;;
14204    *) as_dir=$as_dir/ ;;
14205  esac
14206    for ac_exec_ext in '' $ac_executable_extensions; do
14207  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14208    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14209    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14210    break 2
14211  fi
14212done
14213  done
14214IFS=$as_save_IFS
14215
14216fi
14217fi
14218ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14219if test -n "$ac_ct_MANIFEST_TOOL"; then
14220  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14221printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14222else
14223  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14224printf "%s\n" "no" >&6; }
14225fi
14226
14227  if test "x$ac_ct_MANIFEST_TOOL" = x; then
14228    MANIFEST_TOOL=":"
14229  else
14230    case $cross_compiling:$ac_tool_warned in
14231yes:)
14232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14233printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14234ac_tool_warned=yes ;;
14235esac
14236    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14237  fi
14238else
14239  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14240fi
14241
14242test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14244printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14245if test ${lt_cv_path_mainfest_tool+y}
14246then :
14247  printf %s "(cached) " >&6
14248else $as_nop
14249  lt_cv_path_mainfest_tool=no
14250  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14251  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14252  cat conftest.err >&5
14253  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14254    lt_cv_path_mainfest_tool=yes
14255  fi
14256  rm -f conftest*
14257fi
14258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14259printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
14260if test yes != "$lt_cv_path_mainfest_tool"; then
14261  MANIFEST_TOOL=:
14262fi
14263
14264
14265
14266
14267
14268
14269  case $host_os in
14270    rhapsody* | darwin*)
14271    if test -n "$ac_tool_prefix"; then
14272  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14273set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14275printf %s "checking for $ac_word... " >&6; }
14276if test ${ac_cv_prog_DSYMUTIL+y}
14277then :
14278  printf %s "(cached) " >&6
14279else $as_nop
14280  if test -n "$DSYMUTIL"; then
14281  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14282else
14283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14284for as_dir in $PATH
14285do
14286  IFS=$as_save_IFS
14287  case $as_dir in #(((
14288    '') as_dir=./ ;;
14289    */) ;;
14290    *) as_dir=$as_dir/ ;;
14291  esac
14292    for ac_exec_ext in '' $ac_executable_extensions; do
14293  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14294    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14295    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14296    break 2
14297  fi
14298done
14299  done
14300IFS=$as_save_IFS
14301
14302fi
14303fi
14304DSYMUTIL=$ac_cv_prog_DSYMUTIL
14305if test -n "$DSYMUTIL"; then
14306  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14307printf "%s\n" "$DSYMUTIL" >&6; }
14308else
14309  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14310printf "%s\n" "no" >&6; }
14311fi
14312
14313
14314fi
14315if test -z "$ac_cv_prog_DSYMUTIL"; then
14316  ac_ct_DSYMUTIL=$DSYMUTIL
14317  # Extract the first word of "dsymutil", so it can be a program name with args.
14318set dummy dsymutil; ac_word=$2
14319{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14320printf %s "checking for $ac_word... " >&6; }
14321if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
14322then :
14323  printf %s "(cached) " >&6
14324else $as_nop
14325  if test -n "$ac_ct_DSYMUTIL"; then
14326  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14327else
14328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14329for as_dir in $PATH
14330do
14331  IFS=$as_save_IFS
14332  case $as_dir in #(((
14333    '') as_dir=./ ;;
14334    */) ;;
14335    *) as_dir=$as_dir/ ;;
14336  esac
14337    for ac_exec_ext in '' $ac_executable_extensions; do
14338  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14339    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14340    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14341    break 2
14342  fi
14343done
14344  done
14345IFS=$as_save_IFS
14346
14347fi
14348fi
14349ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14350if test -n "$ac_ct_DSYMUTIL"; then
14351  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14352printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14353else
14354  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14355printf "%s\n" "no" >&6; }
14356fi
14357
14358  if test "x$ac_ct_DSYMUTIL" = x; then
14359    DSYMUTIL=":"
14360  else
14361    case $cross_compiling:$ac_tool_warned in
14362yes:)
14363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14364printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14365ac_tool_warned=yes ;;
14366esac
14367    DSYMUTIL=$ac_ct_DSYMUTIL
14368  fi
14369else
14370  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14371fi
14372
14373    if test -n "$ac_tool_prefix"; then
14374  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14375set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14377printf %s "checking for $ac_word... " >&6; }
14378if test ${ac_cv_prog_NMEDIT+y}
14379then :
14380  printf %s "(cached) " >&6
14381else $as_nop
14382  if test -n "$NMEDIT"; then
14383  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14384else
14385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14386for as_dir in $PATH
14387do
14388  IFS=$as_save_IFS
14389  case $as_dir in #(((
14390    '') as_dir=./ ;;
14391    */) ;;
14392    *) as_dir=$as_dir/ ;;
14393  esac
14394    for ac_exec_ext in '' $ac_executable_extensions; do
14395  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14396    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14397    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14398    break 2
14399  fi
14400done
14401  done
14402IFS=$as_save_IFS
14403
14404fi
14405fi
14406NMEDIT=$ac_cv_prog_NMEDIT
14407if test -n "$NMEDIT"; then
14408  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14409printf "%s\n" "$NMEDIT" >&6; }
14410else
14411  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14412printf "%s\n" "no" >&6; }
14413fi
14414
14415
14416fi
14417if test -z "$ac_cv_prog_NMEDIT"; then
14418  ac_ct_NMEDIT=$NMEDIT
14419  # Extract the first word of "nmedit", so it can be a program name with args.
14420set dummy nmedit; ac_word=$2
14421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14422printf %s "checking for $ac_word... " >&6; }
14423if test ${ac_cv_prog_ac_ct_NMEDIT+y}
14424then :
14425  printf %s "(cached) " >&6
14426else $as_nop
14427  if test -n "$ac_ct_NMEDIT"; then
14428  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14429else
14430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14431for as_dir in $PATH
14432do
14433  IFS=$as_save_IFS
14434  case $as_dir in #(((
14435    '') as_dir=./ ;;
14436    */) ;;
14437    *) as_dir=$as_dir/ ;;
14438  esac
14439    for ac_exec_ext in '' $ac_executable_extensions; do
14440  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14441    ac_cv_prog_ac_ct_NMEDIT="nmedit"
14442    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14443    break 2
14444  fi
14445done
14446  done
14447IFS=$as_save_IFS
14448
14449fi
14450fi
14451ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14452if test -n "$ac_ct_NMEDIT"; then
14453  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14454printf "%s\n" "$ac_ct_NMEDIT" >&6; }
14455else
14456  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14457printf "%s\n" "no" >&6; }
14458fi
14459
14460  if test "x$ac_ct_NMEDIT" = x; then
14461    NMEDIT=":"
14462  else
14463    case $cross_compiling:$ac_tool_warned in
14464yes:)
14465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14466printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14467ac_tool_warned=yes ;;
14468esac
14469    NMEDIT=$ac_ct_NMEDIT
14470  fi
14471else
14472  NMEDIT="$ac_cv_prog_NMEDIT"
14473fi
14474
14475    if test -n "$ac_tool_prefix"; then
14476  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14477set dummy ${ac_tool_prefix}lipo; ac_word=$2
14478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14479printf %s "checking for $ac_word... " >&6; }
14480if test ${ac_cv_prog_LIPO+y}
14481then :
14482  printf %s "(cached) " >&6
14483else $as_nop
14484  if test -n "$LIPO"; then
14485  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14486else
14487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14488for as_dir in $PATH
14489do
14490  IFS=$as_save_IFS
14491  case $as_dir in #(((
14492    '') as_dir=./ ;;
14493    */) ;;
14494    *) as_dir=$as_dir/ ;;
14495  esac
14496    for ac_exec_ext in '' $ac_executable_extensions; do
14497  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14498    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14499    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14500    break 2
14501  fi
14502done
14503  done
14504IFS=$as_save_IFS
14505
14506fi
14507fi
14508LIPO=$ac_cv_prog_LIPO
14509if test -n "$LIPO"; then
14510  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14511printf "%s\n" "$LIPO" >&6; }
14512else
14513  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14514printf "%s\n" "no" >&6; }
14515fi
14516
14517
14518fi
14519if test -z "$ac_cv_prog_LIPO"; then
14520  ac_ct_LIPO=$LIPO
14521  # Extract the first word of "lipo", so it can be a program name with args.
14522set dummy lipo; ac_word=$2
14523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14524printf %s "checking for $ac_word... " >&6; }
14525if test ${ac_cv_prog_ac_ct_LIPO+y}
14526then :
14527  printf %s "(cached) " >&6
14528else $as_nop
14529  if test -n "$ac_ct_LIPO"; then
14530  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14531else
14532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14533for as_dir in $PATH
14534do
14535  IFS=$as_save_IFS
14536  case $as_dir in #(((
14537    '') as_dir=./ ;;
14538    */) ;;
14539    *) as_dir=$as_dir/ ;;
14540  esac
14541    for ac_exec_ext in '' $ac_executable_extensions; do
14542  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14543    ac_cv_prog_ac_ct_LIPO="lipo"
14544    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14545    break 2
14546  fi
14547done
14548  done
14549IFS=$as_save_IFS
14550
14551fi
14552fi
14553ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14554if test -n "$ac_ct_LIPO"; then
14555  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14556printf "%s\n" "$ac_ct_LIPO" >&6; }
14557else
14558  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14559printf "%s\n" "no" >&6; }
14560fi
14561
14562  if test "x$ac_ct_LIPO" = x; then
14563    LIPO=":"
14564  else
14565    case $cross_compiling:$ac_tool_warned in
14566yes:)
14567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14568printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14569ac_tool_warned=yes ;;
14570esac
14571    LIPO=$ac_ct_LIPO
14572  fi
14573else
14574  LIPO="$ac_cv_prog_LIPO"
14575fi
14576
14577    if test -n "$ac_tool_prefix"; then
14578  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14579set dummy ${ac_tool_prefix}otool; ac_word=$2
14580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14581printf %s "checking for $ac_word... " >&6; }
14582if test ${ac_cv_prog_OTOOL+y}
14583then :
14584  printf %s "(cached) " >&6
14585else $as_nop
14586  if test -n "$OTOOL"; then
14587  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14588else
14589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14590for as_dir in $PATH
14591do
14592  IFS=$as_save_IFS
14593  case $as_dir in #(((
14594    '') as_dir=./ ;;
14595    */) ;;
14596    *) as_dir=$as_dir/ ;;
14597  esac
14598    for ac_exec_ext in '' $ac_executable_extensions; do
14599  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14600    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14601    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14602    break 2
14603  fi
14604done
14605  done
14606IFS=$as_save_IFS
14607
14608fi
14609fi
14610OTOOL=$ac_cv_prog_OTOOL
14611if test -n "$OTOOL"; then
14612  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14613printf "%s\n" "$OTOOL" >&6; }
14614else
14615  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14616printf "%s\n" "no" >&6; }
14617fi
14618
14619
14620fi
14621if test -z "$ac_cv_prog_OTOOL"; then
14622  ac_ct_OTOOL=$OTOOL
14623  # Extract the first word of "otool", so it can be a program name with args.
14624set dummy otool; ac_word=$2
14625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14626printf %s "checking for $ac_word... " >&6; }
14627if test ${ac_cv_prog_ac_ct_OTOOL+y}
14628then :
14629  printf %s "(cached) " >&6
14630else $as_nop
14631  if test -n "$ac_ct_OTOOL"; then
14632  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14633else
14634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14635for as_dir in $PATH
14636do
14637  IFS=$as_save_IFS
14638  case $as_dir in #(((
14639    '') as_dir=./ ;;
14640    */) ;;
14641    *) as_dir=$as_dir/ ;;
14642  esac
14643    for ac_exec_ext in '' $ac_executable_extensions; do
14644  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14645    ac_cv_prog_ac_ct_OTOOL="otool"
14646    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14647    break 2
14648  fi
14649done
14650  done
14651IFS=$as_save_IFS
14652
14653fi
14654fi
14655ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14656if test -n "$ac_ct_OTOOL"; then
14657  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14658printf "%s\n" "$ac_ct_OTOOL" >&6; }
14659else
14660  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14661printf "%s\n" "no" >&6; }
14662fi
14663
14664  if test "x$ac_ct_OTOOL" = x; then
14665    OTOOL=":"
14666  else
14667    case $cross_compiling:$ac_tool_warned in
14668yes:)
14669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14670printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14671ac_tool_warned=yes ;;
14672esac
14673    OTOOL=$ac_ct_OTOOL
14674  fi
14675else
14676  OTOOL="$ac_cv_prog_OTOOL"
14677fi
14678
14679    if test -n "$ac_tool_prefix"; then
14680  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14681set dummy ${ac_tool_prefix}otool64; ac_word=$2
14682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14683printf %s "checking for $ac_word... " >&6; }
14684if test ${ac_cv_prog_OTOOL64+y}
14685then :
14686  printf %s "(cached) " >&6
14687else $as_nop
14688  if test -n "$OTOOL64"; then
14689  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14690else
14691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14692for as_dir in $PATH
14693do
14694  IFS=$as_save_IFS
14695  case $as_dir in #(((
14696    '') as_dir=./ ;;
14697    */) ;;
14698    *) as_dir=$as_dir/ ;;
14699  esac
14700    for ac_exec_ext in '' $ac_executable_extensions; do
14701  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14702    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14703    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14704    break 2
14705  fi
14706done
14707  done
14708IFS=$as_save_IFS
14709
14710fi
14711fi
14712OTOOL64=$ac_cv_prog_OTOOL64
14713if test -n "$OTOOL64"; then
14714  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14715printf "%s\n" "$OTOOL64" >&6; }
14716else
14717  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14718printf "%s\n" "no" >&6; }
14719fi
14720
14721
14722fi
14723if test -z "$ac_cv_prog_OTOOL64"; then
14724  ac_ct_OTOOL64=$OTOOL64
14725  # Extract the first word of "otool64", so it can be a program name with args.
14726set dummy otool64; ac_word=$2
14727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14728printf %s "checking for $ac_word... " >&6; }
14729if test ${ac_cv_prog_ac_ct_OTOOL64+y}
14730then :
14731  printf %s "(cached) " >&6
14732else $as_nop
14733  if test -n "$ac_ct_OTOOL64"; then
14734  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14735else
14736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14737for as_dir in $PATH
14738do
14739  IFS=$as_save_IFS
14740  case $as_dir in #(((
14741    '') as_dir=./ ;;
14742    */) ;;
14743    *) as_dir=$as_dir/ ;;
14744  esac
14745    for ac_exec_ext in '' $ac_executable_extensions; do
14746  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14747    ac_cv_prog_ac_ct_OTOOL64="otool64"
14748    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14749    break 2
14750  fi
14751done
14752  done
14753IFS=$as_save_IFS
14754
14755fi
14756fi
14757ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14758if test -n "$ac_ct_OTOOL64"; then
14759  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14760printf "%s\n" "$ac_ct_OTOOL64" >&6; }
14761else
14762  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14763printf "%s\n" "no" >&6; }
14764fi
14765
14766  if test "x$ac_ct_OTOOL64" = x; then
14767    OTOOL64=":"
14768  else
14769    case $cross_compiling:$ac_tool_warned in
14770yes:)
14771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14772printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14773ac_tool_warned=yes ;;
14774esac
14775    OTOOL64=$ac_ct_OTOOL64
14776  fi
14777else
14778  OTOOL64="$ac_cv_prog_OTOOL64"
14779fi
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14808printf %s "checking for -single_module linker flag... " >&6; }
14809if test ${lt_cv_apple_cc_single_mod+y}
14810then :
14811  printf %s "(cached) " >&6
14812else $as_nop
14813  lt_cv_apple_cc_single_mod=no
14814      if test -z "$LT_MULTI_MODULE"; then
14815	# By default we will add the -single_module flag. You can override
14816	# by either setting the environment variable LT_MULTI_MODULE
14817	# non-empty at configure time, or by adding -multi_module to the
14818	# link flags.
14819	rm -rf libconftest.dylib*
14820	echo "int foo(void){return 1;}" > conftest.c
14821	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14822-dynamiclib -Wl,-single_module conftest.c" >&5
14823	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14824	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14825        _lt_result=$?
14826	# If there is a non-empty error log, and "single_module"
14827	# appears in it, assume the flag caused a linker warning
14828        if test -s conftest.err && $GREP single_module conftest.err; then
14829	  cat conftest.err >&5
14830	# Otherwise, if the output was created with a 0 exit code from
14831	# the compiler, it worked.
14832	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14833	  lt_cv_apple_cc_single_mod=yes
14834	else
14835	  cat conftest.err >&5
14836	fi
14837	rm -rf libconftest.dylib*
14838	rm -f conftest.*
14839      fi
14840fi
14841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14842printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
14843
14844    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14845printf %s "checking for -exported_symbols_list linker flag... " >&6; }
14846if test ${lt_cv_ld_exported_symbols_list+y}
14847then :
14848  printf %s "(cached) " >&6
14849else $as_nop
14850  lt_cv_ld_exported_symbols_list=no
14851      save_LDFLAGS=$LDFLAGS
14852      echo "_main" > conftest.sym
14853      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14854      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14855/* end confdefs.h.  */
14856
14857int
14858main (void)
14859{
14860
14861  ;
14862  return 0;
14863}
14864_ACEOF
14865if ac_fn_c_try_link "$LINENO"
14866then :
14867  lt_cv_ld_exported_symbols_list=yes
14868else $as_nop
14869  lt_cv_ld_exported_symbols_list=no
14870fi
14871rm -f core conftest.err conftest.$ac_objext conftest.beam \
14872    conftest$ac_exeext conftest.$ac_ext
14873	LDFLAGS=$save_LDFLAGS
14874
14875fi
14876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14877printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
14878
14879    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14880printf %s "checking for -force_load linker flag... " >&6; }
14881if test ${lt_cv_ld_force_load+y}
14882then :
14883  printf %s "(cached) " >&6
14884else $as_nop
14885  lt_cv_ld_force_load=no
14886      cat > conftest.c << _LT_EOF
14887int forced_loaded() { return 2;}
14888_LT_EOF
14889      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14890      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14891      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
14892      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
14893      echo "$RANLIB libconftest.a" >&5
14894      $RANLIB libconftest.a 2>&5
14895      cat > conftest.c << _LT_EOF
14896int main() { return 0;}
14897_LT_EOF
14898      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14899      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14900      _lt_result=$?
14901      if test -s conftest.err && $GREP force_load conftest.err; then
14902	cat conftest.err >&5
14903      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14904	lt_cv_ld_force_load=yes
14905      else
14906	cat conftest.err >&5
14907      fi
14908        rm -f conftest.err libconftest.a conftest conftest.c
14909        rm -rf conftest.dSYM
14910
14911fi
14912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14913printf "%s\n" "$lt_cv_ld_force_load" >&6; }
14914    case $host_os in
14915    rhapsody* | darwin1.[012])
14916      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14917    darwin1.*)
14918      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14919    darwin*)
14920      case $MACOSX_DEPLOYMENT_TARGET,$host in
14921        10.[012],*|,*powerpc*-darwin[5-8]*)
14922          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14923        *)
14924          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14925      esac
14926    ;;
14927  esac
14928    if test yes = "$lt_cv_apple_cc_single_mod"; then
14929      _lt_dar_single_mod='$single_module'
14930    fi
14931    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14932      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14933    else
14934      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14935    fi
14936    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14937      _lt_dsymutil='~$DSYMUTIL $lib || :'
14938    else
14939      _lt_dsymutil=
14940    fi
14941    ;;
14942  esac
14943
14944# func_munge_path_list VARIABLE PATH
14945# -----------------------------------
14946# VARIABLE is name of variable containing _space_ separated list of
14947# directories to be munged by the contents of PATH, which is string
14948# having a format:
14949# "DIR[:DIR]:"
14950#       string "DIR[ DIR]" will be prepended to VARIABLE
14951# ":DIR[:DIR]"
14952#       string "DIR[ DIR]" will be appended to VARIABLE
14953# "DIRP[:DIRP]::[DIRA:]DIRA"
14954#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14955#       "DIRA[ DIRA]" will be appended to VARIABLE
14956# "DIR[:DIR]"
14957#       VARIABLE will be replaced by "DIR[ DIR]"
14958func_munge_path_list ()
14959{
14960    case x$2 in
14961    x)
14962        ;;
14963    *:)
14964        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14965        ;;
14966    x:*)
14967        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14968        ;;
14969    *::*)
14970        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14971        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14972        ;;
14973    *)
14974        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14975        ;;
14976    esac
14977}
14978
14979ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14980"
14981if test "x$ac_cv_header_dlfcn_h" = xyes
14982then :
14983  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
14984
14985fi
14986
14987
14988
14989
14990
14991# Set options
14992
14993
14994
14995        enable_dlopen=no
14996
14997
14998  enable_win32_dll=no
14999
15000
15001            # Check whether --enable-shared was given.
15002if test ${enable_shared+y}
15003then :
15004  enableval=$enable_shared; p=${PACKAGE-default}
15005    case $enableval in
15006    yes) enable_shared=yes ;;
15007    no) enable_shared=no ;;
15008    *)
15009      enable_shared=no
15010      # Look at the argument we got.  We use all the common list separators.
15011      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15012      for pkg in $enableval; do
15013	IFS=$lt_save_ifs
15014	if test "X$pkg" = "X$p"; then
15015	  enable_shared=yes
15016	fi
15017      done
15018      IFS=$lt_save_ifs
15019      ;;
15020    esac
15021else $as_nop
15022  enable_shared=yes
15023fi
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035# Check whether --with-pic was given.
15036if test ${with_pic+y}
15037then :
15038  withval=$with_pic; lt_p=${PACKAGE-default}
15039    case $withval in
15040    yes|no) pic_mode=$withval ;;
15041    *)
15042      pic_mode=default
15043      # Look at the argument we got.  We use all the common list separators.
15044      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15045      for lt_pkg in $withval; do
15046	IFS=$lt_save_ifs
15047	if test "X$lt_pkg" = "X$lt_p"; then
15048	  pic_mode=yes
15049	fi
15050      done
15051      IFS=$lt_save_ifs
15052      ;;
15053    esac
15054else $as_nop
15055  pic_mode=default
15056fi
15057
15058
15059
15060
15061
15062
15063
15064
15065  # Check whether --enable-fast-install was given.
15066if test ${enable_fast_install+y}
15067then :
15068  enableval=$enable_fast_install; p=${PACKAGE-default}
15069    case $enableval in
15070    yes) enable_fast_install=yes ;;
15071    no) enable_fast_install=no ;;
15072    *)
15073      enable_fast_install=no
15074      # Look at the argument we got.  We use all the common list separators.
15075      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15076      for pkg in $enableval; do
15077	IFS=$lt_save_ifs
15078	if test "X$pkg" = "X$p"; then
15079	  enable_fast_install=yes
15080	fi
15081      done
15082      IFS=$lt_save_ifs
15083      ;;
15084    esac
15085else $as_nop
15086  enable_fast_install=yes
15087fi
15088
15089
15090
15091
15092
15093
15094
15095
15096  shared_archive_member_spec=
15097case $host,$enable_shared in
15098power*-*-aix[5-9]*,yes)
15099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15100printf %s "checking which variant of shared library versioning to provide... " >&6; }
15101
15102# Check whether --with-aix-soname was given.
15103if test ${with_aix_soname+y}
15104then :
15105  withval=$with_aix_soname; case $withval in
15106    aix|svr4|both)
15107      ;;
15108    *)
15109      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15110      ;;
15111    esac
15112    lt_cv_with_aix_soname=$with_aix_soname
15113else $as_nop
15114  if test ${lt_cv_with_aix_soname+y}
15115then :
15116  printf %s "(cached) " >&6
15117else $as_nop
15118  lt_cv_with_aix_soname=aix
15119fi
15120
15121    with_aix_soname=$lt_cv_with_aix_soname
15122fi
15123
15124  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15125printf "%s\n" "$with_aix_soname" >&6; }
15126  if test aix != "$with_aix_soname"; then
15127    # For the AIX way of multilib, we name the shared archive member
15128    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15129    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15130    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15131    # the AIX toolchain works better with OBJECT_MODE set (default 32).
15132    if test 64 = "${OBJECT_MODE-32}"; then
15133      shared_archive_member_spec=shr_64
15134    else
15135      shared_archive_member_spec=shr
15136    fi
15137  fi
15138  ;;
15139*)
15140  with_aix_soname=aix
15141  ;;
15142esac
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153# This can be used to rebuild libtool when needed
15154LIBTOOL_DEPS=$ltmain
15155
15156# Always use our own libtool.
15157LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188test -z "$LN_S" && LN_S="ln -s"
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203if test -n "${ZSH_VERSION+set}"; then
15204   setopt NO_GLOB_SUBST
15205fi
15206
15207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15208printf %s "checking for objdir... " >&6; }
15209if test ${lt_cv_objdir+y}
15210then :
15211  printf %s "(cached) " >&6
15212else $as_nop
15213  rm -f .libs 2>/dev/null
15214mkdir .libs 2>/dev/null
15215if test -d .libs; then
15216  lt_cv_objdir=.libs
15217else
15218  # MS-DOS does not allow filenames that begin with a dot.
15219  lt_cv_objdir=_libs
15220fi
15221rmdir .libs 2>/dev/null
15222fi
15223{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15224printf "%s\n" "$lt_cv_objdir" >&6; }
15225objdir=$lt_cv_objdir
15226
15227
15228
15229
15230
15231printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
15232
15233
15234
15235
15236case $host_os in
15237aix3*)
15238  # AIX sometimes has problems with the GCC collect2 program.  For some
15239  # reason, if we set the COLLECT_NAMES environment variable, the problems
15240  # vanish in a puff of smoke.
15241  if test set != "${COLLECT_NAMES+set}"; then
15242    COLLECT_NAMES=
15243    export COLLECT_NAMES
15244  fi
15245  ;;
15246esac
15247
15248# Global variables:
15249ofile=libtool
15250can_build_shared=yes
15251
15252# All known linkers require a '.a' archive for static linking (except MSVC and
15253# ICC, which need '.lib').
15254libext=a
15255
15256with_gnu_ld=$lt_cv_prog_gnu_ld
15257
15258old_CC=$CC
15259old_CFLAGS=$CFLAGS
15260
15261# Set sane defaults for various variables
15262test -z "$CC" && CC=cc
15263test -z "$LTCC" && LTCC=$CC
15264test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15265test -z "$LD" && LD=ld
15266test -z "$ac_objext" && ac_objext=o
15267
15268func_cc_basename $compiler
15269cc_basename=$func_cc_basename_result
15270
15271
15272# Only perform the check for file, if the check method requires it
15273test -z "$MAGIC_CMD" && MAGIC_CMD=file
15274case $deplibs_check_method in
15275file_magic*)
15276  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15277    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15278printf %s "checking for ${ac_tool_prefix}file... " >&6; }
15279if test ${lt_cv_path_MAGIC_CMD+y}
15280then :
15281  printf %s "(cached) " >&6
15282else $as_nop
15283  case $MAGIC_CMD in
15284[\\/*] |  ?:[\\/]*)
15285  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15286  ;;
15287*)
15288  lt_save_MAGIC_CMD=$MAGIC_CMD
15289  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15290  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15291  for ac_dir in $ac_dummy; do
15292    IFS=$lt_save_ifs
15293    test -z "$ac_dir" && ac_dir=.
15294    if test -f "$ac_dir/${ac_tool_prefix}file"; then
15295      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15296      if test -n "$file_magic_test_file"; then
15297	case $deplibs_check_method in
15298	"file_magic "*)
15299	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15300	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15301	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15302	    $EGREP "$file_magic_regex" > /dev/null; then
15303	    :
15304	  else
15305	    cat <<_LT_EOF 1>&2
15306
15307*** Warning: the command libtool uses to detect shared libraries,
15308*** $file_magic_cmd, produces output that libtool cannot recognize.
15309*** The result is that libtool may fail to recognize shared libraries
15310*** as such.  This will affect the creation of libtool libraries that
15311*** depend on shared libraries, but programs linked with such libtool
15312*** libraries will work regardless of this problem.  Nevertheless, you
15313*** may want to report the problem to your system manager and/or to
15314*** bug-libtool@gnu.org
15315
15316_LT_EOF
15317	  fi ;;
15318	esac
15319      fi
15320      break
15321    fi
15322  done
15323  IFS=$lt_save_ifs
15324  MAGIC_CMD=$lt_save_MAGIC_CMD
15325  ;;
15326esac
15327fi
15328
15329MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15330if test -n "$MAGIC_CMD"; then
15331  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15332printf "%s\n" "$MAGIC_CMD" >&6; }
15333else
15334  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15335printf "%s\n" "no" >&6; }
15336fi
15337
15338
15339
15340
15341
15342if test -z "$lt_cv_path_MAGIC_CMD"; then
15343  if test -n "$ac_tool_prefix"; then
15344    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15345printf %s "checking for file... " >&6; }
15346if test ${lt_cv_path_MAGIC_CMD+y}
15347then :
15348  printf %s "(cached) " >&6
15349else $as_nop
15350  case $MAGIC_CMD in
15351[\\/*] |  ?:[\\/]*)
15352  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15353  ;;
15354*)
15355  lt_save_MAGIC_CMD=$MAGIC_CMD
15356  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15357  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15358  for ac_dir in $ac_dummy; do
15359    IFS=$lt_save_ifs
15360    test -z "$ac_dir" && ac_dir=.
15361    if test -f "$ac_dir/file"; then
15362      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15363      if test -n "$file_magic_test_file"; then
15364	case $deplibs_check_method in
15365	"file_magic "*)
15366	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15367	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15368	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15369	    $EGREP "$file_magic_regex" > /dev/null; then
15370	    :
15371	  else
15372	    cat <<_LT_EOF 1>&2
15373
15374*** Warning: the command libtool uses to detect shared libraries,
15375*** $file_magic_cmd, produces output that libtool cannot recognize.
15376*** The result is that libtool may fail to recognize shared libraries
15377*** as such.  This will affect the creation of libtool libraries that
15378*** depend on shared libraries, but programs linked with such libtool
15379*** libraries will work regardless of this problem.  Nevertheless, you
15380*** may want to report the problem to your system manager and/or to
15381*** bug-libtool@gnu.org
15382
15383_LT_EOF
15384	  fi ;;
15385	esac
15386      fi
15387      break
15388    fi
15389  done
15390  IFS=$lt_save_ifs
15391  MAGIC_CMD=$lt_save_MAGIC_CMD
15392  ;;
15393esac
15394fi
15395
15396MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15397if test -n "$MAGIC_CMD"; then
15398  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15399printf "%s\n" "$MAGIC_CMD" >&6; }
15400else
15401  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15402printf "%s\n" "no" >&6; }
15403fi
15404
15405
15406  else
15407    MAGIC_CMD=:
15408  fi
15409fi
15410
15411  fi
15412  ;;
15413esac
15414
15415# Use C for the default configuration in the libtool script
15416
15417lt_save_CC=$CC
15418ac_ext=c
15419ac_cpp='$CPP $CPPFLAGS'
15420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15422ac_compiler_gnu=$ac_cv_c_compiler_gnu
15423
15424
15425# Source file extension for C test sources.
15426ac_ext=c
15427
15428# Object file extension for compiled C test sources.
15429objext=o
15430objext=$objext
15431
15432# Code to be used in simple compile tests
15433lt_simple_compile_test_code="int some_variable = 0;"
15434
15435# Code to be used in simple link tests
15436lt_simple_link_test_code='int main(){return(0);}'
15437
15438
15439
15440
15441
15442
15443
15444# If no C compiler was specified, use CC.
15445LTCC=${LTCC-"$CC"}
15446
15447# If no C compiler flags were specified, use CFLAGS.
15448LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15449
15450# Allow CC to be a program name with arguments.
15451compiler=$CC
15452
15453# Save the default compiler, since it gets overwritten when the other
15454# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15455compiler_DEFAULT=$CC
15456
15457# save warnings/boilerplate of simple test code
15458ac_outfile=conftest.$ac_objext
15459echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15460eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15461_lt_compiler_boilerplate=`cat conftest.err`
15462$RM conftest*
15463
15464ac_outfile=conftest.$ac_objext
15465echo "$lt_simple_link_test_code" >conftest.$ac_ext
15466eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15467_lt_linker_boilerplate=`cat conftest.err`
15468$RM -r conftest*
15469
15470
15471if test -n "$compiler"; then
15472
15473lt_prog_compiler_no_builtin_flag=
15474
15475if test yes = "$GCC"; then
15476  case $cc_basename in
15477  nvcc*)
15478    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15479  *)
15480    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15481  esac
15482
15483  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15484printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15485if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15486then :
15487  printf %s "(cached) " >&6
15488else $as_nop
15489  lt_cv_prog_compiler_rtti_exceptions=no
15490   ac_outfile=conftest.$ac_objext
15491   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15492   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
15493   # Insert the option either (1) after the last *FLAGS variable, or
15494   # (2) before a word containing "conftest.", or (3) at the end.
15495   # Note that $ac_compile itself does not contain backslashes and begins
15496   # with a dollar sign (not a hyphen), so the echo should work correctly.
15497   # The option is referenced via a variable to avoid confusing sed.
15498   lt_compile=`echo "$ac_compile" | $SED \
15499   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15500   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15501   -e 's:$: $lt_compiler_flag:'`
15502   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15503   (eval "$lt_compile" 2>conftest.err)
15504   ac_status=$?
15505   cat conftest.err >&5
15506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507   if (exit $ac_status) && test -s "$ac_outfile"; then
15508     # The compiler can only warn and ignore the option if not recognized
15509     # So say no if there are warnings other than the usual output.
15510     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15511     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15512     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15513       lt_cv_prog_compiler_rtti_exceptions=yes
15514     fi
15515   fi
15516   $RM conftest*
15517
15518fi
15519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15520printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15521
15522if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15523    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15524else
15525    :
15526fi
15527
15528fi
15529
15530
15531
15532
15533
15534
15535  lt_prog_compiler_wl=
15536lt_prog_compiler_pic=
15537lt_prog_compiler_static=
15538
15539
15540  if test yes = "$GCC"; then
15541    lt_prog_compiler_wl='-Wl,'
15542    lt_prog_compiler_static='-static'
15543
15544    case $host_os in
15545      aix*)
15546      # All AIX code is PIC.
15547      if test ia64 = "$host_cpu"; then
15548	# AIX 5 now supports IA64 processor
15549	lt_prog_compiler_static='-Bstatic'
15550      fi
15551      lt_prog_compiler_pic='-fPIC'
15552      ;;
15553
15554    amigaos*)
15555      case $host_cpu in
15556      powerpc)
15557            # see comment about AmigaOS4 .so support
15558            lt_prog_compiler_pic='-fPIC'
15559        ;;
15560      m68k)
15561            # FIXME: we need at least 68020 code to build shared libraries, but
15562            # adding the '-m68020' flag to GCC prevents building anything better,
15563            # like '-m68040'.
15564            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15565        ;;
15566      esac
15567      ;;
15568
15569    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15570      # PIC is the default for these OSes.
15571      ;;
15572
15573    mingw* | cygwin* | pw32* | os2* | cegcc*)
15574      # This hack is so that the source file can tell whether it is being
15575      # built for inclusion in a dll (and should export symbols for example).
15576      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15577      # (--disable-auto-import) libraries
15578      lt_prog_compiler_pic='-DDLL_EXPORT'
15579      case $host_os in
15580      os2*)
15581	lt_prog_compiler_static='$wl-static'
15582	;;
15583      esac
15584      ;;
15585
15586    darwin* | rhapsody*)
15587      # PIC is the default on this platform
15588      # Common symbols not allowed in MH_DYLIB files
15589      lt_prog_compiler_pic='-fno-common'
15590      ;;
15591
15592    haiku*)
15593      # PIC is the default for Haiku.
15594      # The "-static" flag exists, but is broken.
15595      lt_prog_compiler_static=
15596      ;;
15597
15598    hpux*)
15599      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15600      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15601      # sets the default TLS model and affects inlining.
15602      case $host_cpu in
15603      hppa*64*)
15604	# +Z the default
15605	;;
15606      *)
15607	lt_prog_compiler_pic='-fPIC'
15608	;;
15609      esac
15610      ;;
15611
15612    interix[3-9]*)
15613      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15614      # Instead, we relocate shared libraries at runtime.
15615      ;;
15616
15617    msdosdjgpp*)
15618      # Just because we use GCC doesn't mean we suddenly get shared libraries
15619      # on systems that don't support them.
15620      lt_prog_compiler_can_build_shared=no
15621      enable_shared=no
15622      ;;
15623
15624    *nto* | *qnx*)
15625      # QNX uses GNU C++, but need to define -shared option too, otherwise
15626      # it will coredump.
15627      lt_prog_compiler_pic='-fPIC -shared'
15628      ;;
15629
15630    sysv4*MP*)
15631      if test -d /usr/nec; then
15632	lt_prog_compiler_pic=-Kconform_pic
15633      fi
15634      ;;
15635
15636    *)
15637      lt_prog_compiler_pic='-fPIC'
15638      ;;
15639    esac
15640
15641    case $cc_basename in
15642    nvcc*) # Cuda Compiler Driver 2.2
15643      lt_prog_compiler_wl='-Xlinker '
15644      if test -n "$lt_prog_compiler_pic"; then
15645        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15646      fi
15647      ;;
15648    esac
15649  else
15650    # PORTME Check for flag to pass linker flags through the system compiler.
15651    case $host_os in
15652    aix*)
15653      lt_prog_compiler_wl='-Wl,'
15654      if test ia64 = "$host_cpu"; then
15655	# AIX 5 now supports IA64 processor
15656	lt_prog_compiler_static='-Bstatic'
15657      else
15658	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15659      fi
15660      ;;
15661
15662    darwin* | rhapsody*)
15663      # PIC is the default on this platform
15664      # Common symbols not allowed in MH_DYLIB files
15665      lt_prog_compiler_pic='-fno-common'
15666      case $cc_basename in
15667      nagfor*)
15668        # NAG Fortran compiler
15669        lt_prog_compiler_wl='-Wl,-Wl,,'
15670        lt_prog_compiler_pic='-PIC'
15671        lt_prog_compiler_static='-Bstatic'
15672        ;;
15673      esac
15674      ;;
15675
15676    mingw* | cygwin* | pw32* | os2* | cegcc*)
15677      # This hack is so that the source file can tell whether it is being
15678      # built for inclusion in a dll (and should export symbols for example).
15679      lt_prog_compiler_pic='-DDLL_EXPORT'
15680      case $host_os in
15681      os2*)
15682	lt_prog_compiler_static='$wl-static'
15683	;;
15684      esac
15685      ;;
15686
15687    hpux9* | hpux10* | hpux11*)
15688      lt_prog_compiler_wl='-Wl,'
15689      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15690      # not for PA HP-UX.
15691      case $host_cpu in
15692      hppa*64*|ia64*)
15693	# +Z the default
15694	;;
15695      *)
15696	lt_prog_compiler_pic='+Z'
15697	;;
15698      esac
15699      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15700      lt_prog_compiler_static='$wl-a ${wl}archive'
15701      ;;
15702
15703    irix5* | irix6* | nonstopux*)
15704      lt_prog_compiler_wl='-Wl,'
15705      # PIC (with -KPIC) is the default.
15706      lt_prog_compiler_static='-non_shared'
15707      ;;
15708
15709    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15710      case $cc_basename in
15711      # old Intel for x86_64, which still supported -KPIC.
15712      ecc*)
15713	lt_prog_compiler_wl='-Wl,'
15714	lt_prog_compiler_pic='-KPIC'
15715	lt_prog_compiler_static='-static'
15716        ;;
15717      # icc used to be incompatible with GCC.
15718      # ICC 10 doesn't accept -KPIC any more.
15719      icc* | ifort*)
15720	lt_prog_compiler_wl='-Wl,'
15721	lt_prog_compiler_pic='-fPIC'
15722	lt_prog_compiler_static='-static'
15723        ;;
15724      # Lahey Fortran 8.1.
15725      lf95*)
15726	lt_prog_compiler_wl='-Wl,'
15727	lt_prog_compiler_pic='--shared'
15728	lt_prog_compiler_static='--static'
15729	;;
15730      nagfor*)
15731	# NAG Fortran compiler
15732	lt_prog_compiler_wl='-Wl,-Wl,,'
15733	lt_prog_compiler_pic='-PIC'
15734	lt_prog_compiler_static='-Bstatic'
15735	;;
15736      tcc*)
15737	# Fabrice Bellard et al's Tiny C Compiler
15738	lt_prog_compiler_wl='-Wl,'
15739	lt_prog_compiler_pic='-fPIC'
15740	lt_prog_compiler_static='-static'
15741	;;
15742      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15743        # Portland Group compilers (*not* the Pentium gcc compiler,
15744	# which looks to be a dead project)
15745	lt_prog_compiler_wl='-Wl,'
15746	lt_prog_compiler_pic='-fpic'
15747	lt_prog_compiler_static='-Bstatic'
15748        ;;
15749      ccc*)
15750        lt_prog_compiler_wl='-Wl,'
15751        # All Alpha code is PIC.
15752        lt_prog_compiler_static='-non_shared'
15753        ;;
15754      xl* | bgxl* | bgf* | mpixl*)
15755	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15756	lt_prog_compiler_wl='-Wl,'
15757	lt_prog_compiler_pic='-qpic'
15758	lt_prog_compiler_static='-qstaticlink'
15759	;;
15760      *)
15761	case `$CC -V 2>&1 | $SED 5q` in
15762	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15763	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15764	  lt_prog_compiler_pic='-KPIC'
15765	  lt_prog_compiler_static='-Bstatic'
15766	  lt_prog_compiler_wl=''
15767	  ;;
15768	*Sun\ F* | *Sun*Fortran*)
15769	  lt_prog_compiler_pic='-KPIC'
15770	  lt_prog_compiler_static='-Bstatic'
15771	  lt_prog_compiler_wl='-Qoption ld '
15772	  ;;
15773	*Sun\ C*)
15774	  # Sun C 5.9
15775	  lt_prog_compiler_pic='-KPIC'
15776	  lt_prog_compiler_static='-Bstatic'
15777	  lt_prog_compiler_wl='-Wl,'
15778	  ;;
15779        *Intel*\ [CF]*Compiler*)
15780	  lt_prog_compiler_wl='-Wl,'
15781	  lt_prog_compiler_pic='-fPIC'
15782	  lt_prog_compiler_static='-static'
15783	  ;;
15784	*Portland\ Group*)
15785	  lt_prog_compiler_wl='-Wl,'
15786	  lt_prog_compiler_pic='-fpic'
15787	  lt_prog_compiler_static='-Bstatic'
15788	  ;;
15789	esac
15790	;;
15791      esac
15792      ;;
15793
15794    newsos6)
15795      lt_prog_compiler_pic='-KPIC'
15796      lt_prog_compiler_static='-Bstatic'
15797      ;;
15798
15799    *nto* | *qnx*)
15800      # QNX uses GNU C++, but need to define -shared option too, otherwise
15801      # it will coredump.
15802      lt_prog_compiler_pic='-fPIC -shared'
15803      ;;
15804
15805    osf3* | osf4* | osf5*)
15806      lt_prog_compiler_wl='-Wl,'
15807      # All OSF/1 code is PIC.
15808      lt_prog_compiler_static='-non_shared'
15809      ;;
15810
15811    rdos*)
15812      lt_prog_compiler_static='-non_shared'
15813      ;;
15814
15815    solaris*)
15816      lt_prog_compiler_pic='-KPIC'
15817      lt_prog_compiler_static='-Bstatic'
15818      case $cc_basename in
15819      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15820	lt_prog_compiler_wl='-Qoption ld ';;
15821      *)
15822	lt_prog_compiler_wl='-Wl,';;
15823      esac
15824      ;;
15825
15826    sunos4*)
15827      lt_prog_compiler_wl='-Qoption ld '
15828      lt_prog_compiler_pic='-PIC'
15829      lt_prog_compiler_static='-Bstatic'
15830      ;;
15831
15832    sysv4 | sysv4.2uw2* | sysv4.3*)
15833      lt_prog_compiler_wl='-Wl,'
15834      lt_prog_compiler_pic='-KPIC'
15835      lt_prog_compiler_static='-Bstatic'
15836      ;;
15837
15838    sysv4*MP*)
15839      if test -d /usr/nec; then
15840	lt_prog_compiler_pic='-Kconform_pic'
15841	lt_prog_compiler_static='-Bstatic'
15842      fi
15843      ;;
15844
15845    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15846      lt_prog_compiler_wl='-Wl,'
15847      lt_prog_compiler_pic='-KPIC'
15848      lt_prog_compiler_static='-Bstatic'
15849      ;;
15850
15851    unicos*)
15852      lt_prog_compiler_wl='-Wl,'
15853      lt_prog_compiler_can_build_shared=no
15854      ;;
15855
15856    uts4*)
15857      lt_prog_compiler_pic='-pic'
15858      lt_prog_compiler_static='-Bstatic'
15859      ;;
15860
15861    *)
15862      lt_prog_compiler_can_build_shared=no
15863      ;;
15864    esac
15865  fi
15866
15867case $host_os in
15868  # For platforms that do not support PIC, -DPIC is meaningless:
15869  *djgpp*)
15870    lt_prog_compiler_pic=
15871    ;;
15872  *)
15873    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15874    ;;
15875esac
15876
15877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15878printf %s "checking for $compiler option to produce PIC... " >&6; }
15879if test ${lt_cv_prog_compiler_pic+y}
15880then :
15881  printf %s "(cached) " >&6
15882else $as_nop
15883  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15884fi
15885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15886printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15887lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15888
15889#
15890# Check to make sure the PIC flag actually works.
15891#
15892if test -n "$lt_prog_compiler_pic"; then
15893  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15894printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15895if test ${lt_cv_prog_compiler_pic_works+y}
15896then :
15897  printf %s "(cached) " >&6
15898else $as_nop
15899  lt_cv_prog_compiler_pic_works=no
15900   ac_outfile=conftest.$ac_objext
15901   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15902   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15903   # Insert the option either (1) after the last *FLAGS variable, or
15904   # (2) before a word containing "conftest.", or (3) at the end.
15905   # Note that $ac_compile itself does not contain backslashes and begins
15906   # with a dollar sign (not a hyphen), so the echo should work correctly.
15907   # The option is referenced via a variable to avoid confusing sed.
15908   lt_compile=`echo "$ac_compile" | $SED \
15909   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15910   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15911   -e 's:$: $lt_compiler_flag:'`
15912   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15913   (eval "$lt_compile" 2>conftest.err)
15914   ac_status=$?
15915   cat conftest.err >&5
15916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917   if (exit $ac_status) && test -s "$ac_outfile"; then
15918     # The compiler can only warn and ignore the option if not recognized
15919     # So say no if there are warnings other than the usual output.
15920     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15921     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15922     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15923       lt_cv_prog_compiler_pic_works=yes
15924     fi
15925   fi
15926   $RM conftest*
15927
15928fi
15929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15930printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15931
15932if test yes = "$lt_cv_prog_compiler_pic_works"; then
15933    case $lt_prog_compiler_pic in
15934     "" | " "*) ;;
15935     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15936     esac
15937else
15938    lt_prog_compiler_pic=
15939     lt_prog_compiler_can_build_shared=no
15940fi
15941
15942fi
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954#
15955# Check to make sure the static flag actually works.
15956#
15957wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15959printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15960if test ${lt_cv_prog_compiler_static_works+y}
15961then :
15962  printf %s "(cached) " >&6
15963else $as_nop
15964  lt_cv_prog_compiler_static_works=no
15965   save_LDFLAGS=$LDFLAGS
15966   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15967   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15968   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15969     # The linker can only warn and ignore the option if not recognized
15970     # So say no if there are warnings
15971     if test -s conftest.err; then
15972       # Append any errors to the config.log.
15973       cat conftest.err 1>&5
15974       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15975       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15976       if diff conftest.exp conftest.er2 >/dev/null; then
15977         lt_cv_prog_compiler_static_works=yes
15978       fi
15979     else
15980       lt_cv_prog_compiler_static_works=yes
15981     fi
15982   fi
15983   $RM -r conftest*
15984   LDFLAGS=$save_LDFLAGS
15985
15986fi
15987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15988printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
15989
15990if test yes = "$lt_cv_prog_compiler_static_works"; then
15991    :
15992else
15993    lt_prog_compiler_static=
15994fi
15995
15996
15997
15998
15999
16000
16001
16002  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16003printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16004if test ${lt_cv_prog_compiler_c_o+y}
16005then :
16006  printf %s "(cached) " >&6
16007else $as_nop
16008  lt_cv_prog_compiler_c_o=no
16009   $RM -r conftest 2>/dev/null
16010   mkdir conftest
16011   cd conftest
16012   mkdir out
16013   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16014
16015   lt_compiler_flag="-o out/conftest2.$ac_objext"
16016   # Insert the option either (1) after the last *FLAGS variable, or
16017   # (2) before a word containing "conftest.", or (3) at the end.
16018   # Note that $ac_compile itself does not contain backslashes and begins
16019   # with a dollar sign (not a hyphen), so the echo should work correctly.
16020   lt_compile=`echo "$ac_compile" | $SED \
16021   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16022   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16023   -e 's:$: $lt_compiler_flag:'`
16024   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16025   (eval "$lt_compile" 2>out/conftest.err)
16026   ac_status=$?
16027   cat out/conftest.err >&5
16028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16030   then
16031     # The compiler can only warn and ignore the option if not recognized
16032     # So say no if there are warnings
16033     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16034     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16035     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16036       lt_cv_prog_compiler_c_o=yes
16037     fi
16038   fi
16039   chmod u+w . 2>&5
16040   $RM conftest*
16041   # SGI C++ compiler will create directory out/ii_files/ for
16042   # template instantiation
16043   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16044   $RM out/* && rmdir out
16045   cd ..
16046   $RM -r conftest
16047   $RM conftest*
16048
16049fi
16050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16051printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16052
16053
16054
16055
16056
16057
16058  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16059printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16060if test ${lt_cv_prog_compiler_c_o+y}
16061then :
16062  printf %s "(cached) " >&6
16063else $as_nop
16064  lt_cv_prog_compiler_c_o=no
16065   $RM -r conftest 2>/dev/null
16066   mkdir conftest
16067   cd conftest
16068   mkdir out
16069   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16070
16071   lt_compiler_flag="-o out/conftest2.$ac_objext"
16072   # Insert the option either (1) after the last *FLAGS variable, or
16073   # (2) before a word containing "conftest.", or (3) at the end.
16074   # Note that $ac_compile itself does not contain backslashes and begins
16075   # with a dollar sign (not a hyphen), so the echo should work correctly.
16076   lt_compile=`echo "$ac_compile" | $SED \
16077   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16078   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16079   -e 's:$: $lt_compiler_flag:'`
16080   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16081   (eval "$lt_compile" 2>out/conftest.err)
16082   ac_status=$?
16083   cat out/conftest.err >&5
16084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16086   then
16087     # The compiler can only warn and ignore the option if not recognized
16088     # So say no if there are warnings
16089     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16090     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16091     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16092       lt_cv_prog_compiler_c_o=yes
16093     fi
16094   fi
16095   chmod u+w . 2>&5
16096   $RM conftest*
16097   # SGI C++ compiler will create directory out/ii_files/ for
16098   # template instantiation
16099   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16100   $RM out/* && rmdir out
16101   cd ..
16102   $RM -r conftest
16103   $RM conftest*
16104
16105fi
16106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16107printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16108
16109
16110
16111
16112hard_links=nottested
16113if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16114  # do not overwrite the value of need_locks provided by the user
16115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16116printf %s "checking if we can lock with hard links... " >&6; }
16117  hard_links=yes
16118  $RM conftest*
16119  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16120  touch conftest.a
16121  ln conftest.a conftest.b 2>&5 || hard_links=no
16122  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16123  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16124printf "%s\n" "$hard_links" >&6; }
16125  if test no = "$hard_links"; then
16126    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16127printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16128    need_locks=warn
16129  fi
16130else
16131  need_locks=no
16132fi
16133
16134
16135
16136
16137
16138
16139  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16140printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16141
16142  runpath_var=
16143  allow_undefined_flag=
16144  always_export_symbols=no
16145  archive_cmds=
16146  archive_expsym_cmds=
16147  compiler_needs_object=no
16148  enable_shared_with_static_runtimes=no
16149  export_dynamic_flag_spec=
16150  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16151  hardcode_automatic=no
16152  hardcode_direct=no
16153  hardcode_direct_absolute=no
16154  hardcode_libdir_flag_spec=
16155  hardcode_libdir_separator=
16156  hardcode_minus_L=no
16157  hardcode_shlibpath_var=unsupported
16158  inherit_rpath=no
16159  link_all_deplibs=unknown
16160  module_cmds=
16161  module_expsym_cmds=
16162  old_archive_from_new_cmds=
16163  old_archive_from_expsyms_cmds=
16164  thread_safe_flag_spec=
16165  whole_archive_flag_spec=
16166  # include_expsyms should be a list of space-separated symbols to be *always*
16167  # included in the symbol list
16168  include_expsyms=
16169  # exclude_expsyms can be an extended regexp of symbols to exclude
16170  # it will be wrapped by ' (' and ')$', so one must not match beginning or
16171  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16172  # as well as any symbol that contains 'd'.
16173  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16174  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16175  # platforms (ab)use it in PIC code, but their linkers get confused if
16176  # the symbol is explicitly referenced.  Since portable code cannot
16177  # rely on this symbol name, it's probably fine to never include it in
16178  # preloaded symbol tables.
16179  # Exclude shared library initialization/finalization symbols.
16180  extract_expsyms_cmds=
16181
16182  case $host_os in
16183  cygwin* | mingw* | pw32* | cegcc*)
16184    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16185    # When not using gcc, we currently assume that we are using
16186    # Microsoft Visual C++ or Intel C++ Compiler.
16187    if test yes != "$GCC"; then
16188      with_gnu_ld=no
16189    fi
16190    ;;
16191  interix*)
16192    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16193    with_gnu_ld=yes
16194    ;;
16195  openbsd* | bitrig*)
16196    with_gnu_ld=no
16197    ;;
16198  esac
16199
16200  ld_shlibs=yes
16201
16202  # On some targets, GNU ld is compatible enough with the native linker
16203  # that we're better off using the native interface for both.
16204  lt_use_gnu_ld_interface=no
16205  if test yes = "$with_gnu_ld"; then
16206    case $host_os in
16207      aix*)
16208	# The AIX port of GNU ld has always aspired to compatibility
16209	# with the native linker.  However, as the warning in the GNU ld
16210	# block says, versions before 2.19.5* couldn't really create working
16211	# shared libraries, regardless of the interface used.
16212	case `$LD -v 2>&1` in
16213	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16214	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16215	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16216	  *)
16217	    lt_use_gnu_ld_interface=yes
16218	    ;;
16219	esac
16220	;;
16221      *)
16222	lt_use_gnu_ld_interface=yes
16223	;;
16224    esac
16225  fi
16226
16227  if test yes = "$lt_use_gnu_ld_interface"; then
16228    # If archive_cmds runs LD, not CC, wlarc should be empty
16229    wlarc='$wl'
16230
16231    # Set some defaults for GNU ld with shared library support. These
16232    # are reset later if shared libraries are not supported. Putting them
16233    # here allows them to be overridden if necessary.
16234    runpath_var=LD_RUN_PATH
16235    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16236    export_dynamic_flag_spec='$wl--export-dynamic'
16237    # ancient GNU ld didn't support --whole-archive et. al.
16238    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16239      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16240    else
16241      whole_archive_flag_spec=
16242    fi
16243    supports_anon_versioning=no
16244    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16245      *GNU\ gold*) supports_anon_versioning=yes ;;
16246      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16247      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16248      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16249      *\ 2.11.*) ;; # other 2.11 versions
16250      *) supports_anon_versioning=yes ;;
16251    esac
16252
16253    # See if GNU ld supports shared libraries.
16254    case $host_os in
16255    aix[3-9]*)
16256      # On AIX/PPC, the GNU linker is very broken
16257      if test ia64 != "$host_cpu"; then
16258	ld_shlibs=no
16259	cat <<_LT_EOF 1>&2
16260
16261*** Warning: the GNU linker, at least up to release 2.19, is reported
16262*** to be unable to reliably create shared libraries on AIX.
16263*** Therefore, libtool is disabling shared libraries support.  If you
16264*** really care for shared libraries, you may want to install binutils
16265*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16266*** You will then need to restart the configuration process.
16267
16268_LT_EOF
16269      fi
16270      ;;
16271
16272    amigaos*)
16273      case $host_cpu in
16274      powerpc)
16275            # see comment about AmigaOS4 .so support
16276            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16277            archive_expsym_cmds=''
16278        ;;
16279      m68k)
16280            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)'
16281            hardcode_libdir_flag_spec='-L$libdir'
16282            hardcode_minus_L=yes
16283        ;;
16284      esac
16285      ;;
16286
16287    beos*)
16288      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16289	allow_undefined_flag=unsupported
16290	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16291	# support --undefined.  This deserves some investigation.  FIXME
16292	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16293      else
16294	ld_shlibs=no
16295      fi
16296      ;;
16297
16298    cygwin* | mingw* | pw32* | cegcc*)
16299      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16300      # as there is no search path for DLLs.
16301      hardcode_libdir_flag_spec='-L$libdir'
16302      export_dynamic_flag_spec='$wl--export-all-symbols'
16303      allow_undefined_flag=unsupported
16304      always_export_symbols=no
16305      enable_shared_with_static_runtimes=yes
16306      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'
16307      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16308
16309      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16310        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16311	# If the export-symbols file already is a .def file, use it as
16312	# is; otherwise, prepend EXPORTS...
16313	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16314          cp $export_symbols $output_objdir/$soname.def;
16315        else
16316          echo EXPORTS > $output_objdir/$soname.def;
16317          cat $export_symbols >> $output_objdir/$soname.def;
16318        fi~
16319        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16320      else
16321	ld_shlibs=no
16322      fi
16323      ;;
16324
16325    haiku*)
16326      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16327      link_all_deplibs=yes
16328      ;;
16329
16330    os2*)
16331      hardcode_libdir_flag_spec='-L$libdir'
16332      hardcode_minus_L=yes
16333      allow_undefined_flag=unsupported
16334      shrext_cmds=.dll
16335      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16336	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16337	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16338	$ECHO EXPORTS >> $output_objdir/$libname.def~
16339	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16340	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16341	emximp -o $lib $output_objdir/$libname.def'
16342      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16343	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16344	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16345	$ECHO EXPORTS >> $output_objdir/$libname.def~
16346	prefix_cmds="$SED"~
16347	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16348	  prefix_cmds="$prefix_cmds -e 1d";
16349	fi~
16350	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16351	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16352	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16353	emximp -o $lib $output_objdir/$libname.def'
16354      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16355      enable_shared_with_static_runtimes=yes
16356      file_list_spec='@'
16357      ;;
16358
16359    interix[3-9]*)
16360      hardcode_direct=no
16361      hardcode_shlibpath_var=no
16362      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16363      export_dynamic_flag_spec='$wl-E'
16364      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16365      # Instead, shared libraries are loaded at an image base (0x10000000 by
16366      # default) and relocated if they conflict, which is a slow very memory
16367      # consuming and fragmenting process.  To avoid this, we pick a random,
16368      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16369      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16370      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16371      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'
16372      ;;
16373
16374    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16375      tmp_diet=no
16376      if test linux-dietlibc = "$host_os"; then
16377	case $cc_basename in
16378	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
16379	esac
16380      fi
16381      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16382	 && test no = "$tmp_diet"
16383      then
16384	tmp_addflag=' $pic_flag'
16385	tmp_sharedflag='-shared'
16386	case $cc_basename,$host_cpu in
16387        pgcc*)				# Portland Group C compiler
16388	  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'
16389	  tmp_addflag=' $pic_flag'
16390	  ;;
16391	pgf77* | pgf90* | pgf95* | pgfortran*)
16392					# Portland Group f77 and f90 compilers
16393	  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'
16394	  tmp_addflag=' $pic_flag -Mnomain' ;;
16395	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
16396	  tmp_addflag=' -i_dynamic' ;;
16397	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16398	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16399	ifc* | ifort*)			# Intel Fortran compiler
16400	  tmp_addflag=' -nofor_main' ;;
16401	lf95*)				# Lahey Fortran 8.1
16402	  whole_archive_flag_spec=
16403	  tmp_sharedflag='--shared' ;;
16404        nagfor*)                        # NAGFOR 5.3
16405          tmp_sharedflag='-Wl,-shared' ;;
16406	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16407	  tmp_sharedflag='-qmkshrobj'
16408	  tmp_addflag= ;;
16409	nvcc*)	# Cuda Compiler Driver 2.2
16410	  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'
16411	  compiler_needs_object=yes
16412	  ;;
16413	esac
16414	case `$CC -V 2>&1 | $SED 5q` in
16415	*Sun\ C*)			# Sun C 5.9
16416	  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'
16417	  compiler_needs_object=yes
16418	  tmp_sharedflag='-G' ;;
16419	*Sun\ F*)			# Sun Fortran 8.3
16420	  tmp_sharedflag='-G' ;;
16421	esac
16422	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16423
16424        if test yes = "$supports_anon_versioning"; then
16425          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16426            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16427            echo "local: *; };" >> $output_objdir/$libname.ver~
16428            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16429        fi
16430
16431	case $cc_basename in
16432	tcc*)
16433	  export_dynamic_flag_spec='-rdynamic'
16434	  ;;
16435	xlf* | bgf* | bgxlf* | mpixlf*)
16436	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16437	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16438	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16439	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16440	  if test yes = "$supports_anon_versioning"; then
16441	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16442              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16443              echo "local: *; };" >> $output_objdir/$libname.ver~
16444              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16445	  fi
16446	  ;;
16447	esac
16448      else
16449        ld_shlibs=no
16450      fi
16451      ;;
16452
16453    netbsd*)
16454      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16455	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16456	wlarc=
16457      else
16458	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16459	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16460      fi
16461      ;;
16462
16463    solaris*)
16464      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16465	ld_shlibs=no
16466	cat <<_LT_EOF 1>&2
16467
16468*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16469*** create shared libraries on Solaris systems.  Therefore, libtool
16470*** is disabling shared libraries support.  We urge you to upgrade GNU
16471*** binutils to release 2.9.1 or newer.  Another option is to modify
16472*** your PATH or compiler configuration so that the native linker is
16473*** used, and then restart.
16474
16475_LT_EOF
16476      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16477	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16478	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16479      else
16480	ld_shlibs=no
16481      fi
16482      ;;
16483
16484    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16485      case `$LD -v 2>&1` in
16486        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16487	ld_shlibs=no
16488	cat <<_LT_EOF 1>&2
16489
16490*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16491*** reliably create shared libraries on SCO systems.  Therefore, libtool
16492*** is disabling shared libraries support.  We urge you to upgrade GNU
16493*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16494*** your PATH or compiler configuration so that the native linker is
16495*** used, and then restart.
16496
16497_LT_EOF
16498	;;
16499	*)
16500	  # For security reasons, it is highly recommended that you always
16501	  # use absolute paths for naming shared libraries, and exclude the
16502	  # DT_RUNPATH tag from executables and libraries.  But doing so
16503	  # requires that you compile everything twice, which is a pain.
16504	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16505	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16506	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16507	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16508	  else
16509	    ld_shlibs=no
16510	  fi
16511	;;
16512      esac
16513      ;;
16514
16515    sunos4*)
16516      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16517      wlarc=
16518      hardcode_direct=yes
16519      hardcode_shlibpath_var=no
16520      ;;
16521
16522    *)
16523      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16524	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16525	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16526      else
16527	ld_shlibs=no
16528      fi
16529      ;;
16530    esac
16531
16532    if test no = "$ld_shlibs"; then
16533      runpath_var=
16534      hardcode_libdir_flag_spec=
16535      export_dynamic_flag_spec=
16536      whole_archive_flag_spec=
16537    fi
16538  else
16539    # PORTME fill in a description of your system's linker (not GNU ld)
16540    case $host_os in
16541    aix3*)
16542      allow_undefined_flag=unsupported
16543      always_export_symbols=yes
16544      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'
16545      # Note: this linker hardcodes the directories in LIBPATH if there
16546      # are no directories specified by -L.
16547      hardcode_minus_L=yes
16548      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16549	# Neither direct hardcoding nor static linking is supported with a
16550	# broken collect2.
16551	hardcode_direct=unsupported
16552      fi
16553      ;;
16554
16555    aix[4-9]*)
16556      if test ia64 = "$host_cpu"; then
16557	# On IA64, the linker does run time linking by default, so we don't
16558	# have to do anything special.
16559	aix_use_runtimelinking=no
16560	exp_sym_flag='-Bexport'
16561	no_entry_flag=
16562      else
16563	# If we're using GNU nm, then we don't want the "-C" option.
16564	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
16565	# Without the "-l" option, or with the "-B" option, AIX nm treats
16566	# weak defined symbols like other global defined symbols, whereas
16567	# GNU nm marks them as "W".
16568	# While the 'weak' keyword is ignored in the Export File, we need
16569	# it in the Import File for the 'aix-soname' feature, so we have
16570	# to replace the "-B" option with "-P" for AIX nm.
16571	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16572	  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'
16573	else
16574	  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'
16575	fi
16576	aix_use_runtimelinking=no
16577
16578	# Test if we are trying to use run time linking or normal
16579	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16580	# have runtime linking enabled, and use it for executables.
16581	# For shared libraries, we enable/disable runtime linking
16582	# depending on the kind of the shared library created -
16583	# when "with_aix_soname,aix_use_runtimelinking" is:
16584	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
16585	# "aix,yes"  lib.so          shared, rtl:yes, for executables
16586	#            lib.a           static archive
16587	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
16588	#            lib.a(lib.so.V) shared, rtl:no,  for executables
16589	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16590	#            lib.a(lib.so.V) shared, rtl:no
16591	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
16592	#            lib.a           static archive
16593	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16594	  for ld_flag in $LDFLAGS; do
16595	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16596	    aix_use_runtimelinking=yes
16597	    break
16598	  fi
16599	  done
16600	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16601	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
16602	    # so we don't have lib.a shared libs to link our executables.
16603	    # We have to force runtime linking in this case.
16604	    aix_use_runtimelinking=yes
16605	    LDFLAGS="$LDFLAGS -Wl,-brtl"
16606	  fi
16607	  ;;
16608	esac
16609
16610	exp_sym_flag='-bexport'
16611	no_entry_flag='-bnoentry'
16612      fi
16613
16614      # When large executables or shared objects are built, AIX ld can
16615      # have problems creating the table of contents.  If linking a library
16616      # or program results in "error TOC overflow" add -mminimal-toc to
16617      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16618      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16619
16620      archive_cmds=''
16621      hardcode_direct=yes
16622      hardcode_direct_absolute=yes
16623      hardcode_libdir_separator=':'
16624      link_all_deplibs=yes
16625      file_list_spec='$wl-f,'
16626      case $with_aix_soname,$aix_use_runtimelinking in
16627      aix,*) ;; # traditional, no import file
16628      svr4,* | *,yes) # use import file
16629	# The Import File defines what to hardcode.
16630	hardcode_direct=no
16631	hardcode_direct_absolute=no
16632	;;
16633      esac
16634
16635      if test yes = "$GCC"; then
16636	case $host_os in aix4.[012]|aix4.[012].*)
16637	# We only want to do this on AIX 4.2 and lower, the check
16638	# below for broken collect2 doesn't work under 4.3+
16639	  collect2name=`$CC -print-prog-name=collect2`
16640	  if test -f "$collect2name" &&
16641	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16642	  then
16643	  # We have reworked collect2
16644	  :
16645	  else
16646	  # We have old collect2
16647	  hardcode_direct=unsupported
16648	  # It fails to find uninstalled libraries when the uninstalled
16649	  # path is not listed in the libpath.  Setting hardcode_minus_L
16650	  # to unsupported forces relinking
16651	  hardcode_minus_L=yes
16652	  hardcode_libdir_flag_spec='-L$libdir'
16653	  hardcode_libdir_separator=
16654	  fi
16655	  ;;
16656	esac
16657	shared_flag='-shared'
16658	if test yes = "$aix_use_runtimelinking"; then
16659	  shared_flag="$shared_flag "'$wl-G'
16660	fi
16661	# Need to ensure runtime linking is disabled for the traditional
16662	# shared library, or the linker may eventually find shared libraries
16663	# /with/ Import File - we do not want to mix them.
16664	shared_flag_aix='-shared'
16665	shared_flag_svr4='-shared $wl-G'
16666      else
16667	# not using gcc
16668	if test ia64 = "$host_cpu"; then
16669	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16670	# chokes on -Wl,-G. The following line is correct:
16671	  shared_flag='-G'
16672	else
16673	  if test yes = "$aix_use_runtimelinking"; then
16674	    shared_flag='$wl-G'
16675	  else
16676	    shared_flag='$wl-bM:SRE'
16677	  fi
16678	  shared_flag_aix='$wl-bM:SRE'
16679	  shared_flag_svr4='$wl-G'
16680	fi
16681      fi
16682
16683      export_dynamic_flag_spec='$wl-bexpall'
16684      # It seems that -bexpall does not export symbols beginning with
16685      # underscore (_), so it is better to generate a list of symbols to export.
16686      always_export_symbols=yes
16687      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16688	# Warning - without using the other runtime loading flags (-brtl),
16689	# -berok will link without error, but may produce a broken library.
16690	allow_undefined_flag='-berok'
16691        # Determine the default libpath from the value encoded in an
16692        # empty executable.
16693        if test set = "${lt_cv_aix_libpath+set}"; then
16694  aix_libpath=$lt_cv_aix_libpath
16695else
16696  if test ${lt_cv_aix_libpath_+y}
16697then :
16698  printf %s "(cached) " >&6
16699else $as_nop
16700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16701/* end confdefs.h.  */
16702
16703int
16704main (void)
16705{
16706
16707  ;
16708  return 0;
16709}
16710_ACEOF
16711if ac_fn_c_try_link "$LINENO"
16712then :
16713
16714  lt_aix_libpath_sed='
16715      /Import File Strings/,/^$/ {
16716	  /^0/ {
16717	      s/^0  *\([^ ]*\) *$/\1/
16718	      p
16719	  }
16720      }'
16721  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16722  # Check for a 64-bit object if we didn't find anything.
16723  if test -z "$lt_cv_aix_libpath_"; then
16724    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16725  fi
16726fi
16727rm -f core conftest.err conftest.$ac_objext conftest.beam \
16728    conftest$ac_exeext conftest.$ac_ext
16729  if test -z "$lt_cv_aix_libpath_"; then
16730    lt_cv_aix_libpath_=/usr/lib:/lib
16731  fi
16732
16733fi
16734
16735  aix_libpath=$lt_cv_aix_libpath_
16736fi
16737
16738        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16739        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
16740      else
16741	if test ia64 = "$host_cpu"; then
16742	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16743	  allow_undefined_flag="-z nodefs"
16744	  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"
16745	else
16746	 # Determine the default libpath from the value encoded in an
16747	 # empty executable.
16748	 if test set = "${lt_cv_aix_libpath+set}"; then
16749  aix_libpath=$lt_cv_aix_libpath
16750else
16751  if test ${lt_cv_aix_libpath_+y}
16752then :
16753  printf %s "(cached) " >&6
16754else $as_nop
16755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16756/* end confdefs.h.  */
16757
16758int
16759main (void)
16760{
16761
16762  ;
16763  return 0;
16764}
16765_ACEOF
16766if ac_fn_c_try_link "$LINENO"
16767then :
16768
16769  lt_aix_libpath_sed='
16770      /Import File Strings/,/^$/ {
16771	  /^0/ {
16772	      s/^0  *\([^ ]*\) *$/\1/
16773	      p
16774	  }
16775      }'
16776  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16777  # Check for a 64-bit object if we didn't find anything.
16778  if test -z "$lt_cv_aix_libpath_"; then
16779    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16780  fi
16781fi
16782rm -f core conftest.err conftest.$ac_objext conftest.beam \
16783    conftest$ac_exeext conftest.$ac_ext
16784  if test -z "$lt_cv_aix_libpath_"; then
16785    lt_cv_aix_libpath_=/usr/lib:/lib
16786  fi
16787
16788fi
16789
16790  aix_libpath=$lt_cv_aix_libpath_
16791fi
16792
16793	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16794	  # Warning - without using the other run time loading flags,
16795	  # -berok will link without error, but may produce a broken library.
16796	  no_undefined_flag=' $wl-bernotok'
16797	  allow_undefined_flag=' $wl-berok'
16798	  if test yes = "$with_gnu_ld"; then
16799	    # We only use this code for GNU lds that support --whole-archive.
16800	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16801	  else
16802	    # Exported symbols can be pulled into shared objects from archives
16803	    whole_archive_flag_spec='$convenience'
16804	  fi
16805	  archive_cmds_need_lc=yes
16806	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16807	  # -brtl affects multiple linker settings, -berok does not and is overridden later
16808	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16809	  if test svr4 != "$with_aix_soname"; then
16810	    # This is similar to how AIX traditionally builds its shared libraries.
16811	    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'
16812	  fi
16813	  if test aix != "$with_aix_soname"; then
16814	    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'
16815	  else
16816	    # used by -dlpreopen to get the symbols
16817	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16818	  fi
16819	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16820	fi
16821      fi
16822      ;;
16823
16824    amigaos*)
16825      case $host_cpu in
16826      powerpc)
16827            # see comment about AmigaOS4 .so support
16828            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16829            archive_expsym_cmds=''
16830        ;;
16831      m68k)
16832            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)'
16833            hardcode_libdir_flag_spec='-L$libdir'
16834            hardcode_minus_L=yes
16835        ;;
16836      esac
16837      ;;
16838
16839    bsdi[45]*)
16840      export_dynamic_flag_spec=-rdynamic
16841      ;;
16842
16843    cygwin* | mingw* | pw32* | cegcc*)
16844      # When not using gcc, we currently assume that we are using
16845      # Microsoft Visual C++ or Intel C++ Compiler.
16846      # hardcode_libdir_flag_spec is actually meaningless, as there is
16847      # no search path for DLLs.
16848      case $cc_basename in
16849      cl* | icl*)
16850	# Native MSVC or ICC
16851	hardcode_libdir_flag_spec=' '
16852	allow_undefined_flag=unsupported
16853	always_export_symbols=yes
16854	file_list_spec='@'
16855	# Tell ltmain to make .lib files, not .a files.
16856	libext=lib
16857	# Tell ltmain to make .dll files, not .so files.
16858	shrext_cmds=.dll
16859	# FIXME: Setting linknames here is a bad hack.
16860	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16861	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16862            cp "$export_symbols" "$output_objdir/$soname.def";
16863            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16864          else
16865            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16866          fi~
16867          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16868          linknames='
16869	# The linker will not automatically build a static lib if we build a DLL.
16870	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16871	enable_shared_with_static_runtimes=yes
16872	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16873	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16874	# Don't use ranlib
16875	old_postinstall_cmds='chmod 644 $oldlib'
16876	postlink_cmds='lt_outputfile="@OUTPUT@"~
16877          lt_tool_outputfile="@TOOL_OUTPUT@"~
16878          case $lt_outputfile in
16879            *.exe|*.EXE) ;;
16880            *)
16881              lt_outputfile=$lt_outputfile.exe
16882              lt_tool_outputfile=$lt_tool_outputfile.exe
16883              ;;
16884          esac~
16885          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16886            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16887            $RM "$lt_outputfile.manifest";
16888          fi'
16889	;;
16890      *)
16891	# Assume MSVC and ICC wrapper
16892	hardcode_libdir_flag_spec=' '
16893	allow_undefined_flag=unsupported
16894	# Tell ltmain to make .lib files, not .a files.
16895	libext=lib
16896	# Tell ltmain to make .dll files, not .so files.
16897	shrext_cmds=.dll
16898	# FIXME: Setting linknames here is a bad hack.
16899	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16900	# The linker will automatically build a .lib file if we build a DLL.
16901	old_archive_from_new_cmds='true'
16902	# FIXME: Should let the user specify the lib program.
16903	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16904	enable_shared_with_static_runtimes=yes
16905	;;
16906      esac
16907      ;;
16908
16909    darwin* | rhapsody*)
16910
16911
16912  archive_cmds_need_lc=no
16913  hardcode_direct=no
16914  hardcode_automatic=yes
16915  hardcode_shlibpath_var=unsupported
16916  if test yes = "$lt_cv_ld_force_load"; then
16917    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\"`'
16918
16919  else
16920    whole_archive_flag_spec=''
16921  fi
16922  link_all_deplibs=yes
16923  allow_undefined_flag=$_lt_dar_allow_undefined
16924  case $cc_basename in
16925     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16926     *) _lt_dar_can_shared=$GCC ;;
16927  esac
16928  if test yes = "$_lt_dar_can_shared"; then
16929    output_verbose_link_cmd=func_echo_all
16930    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16931    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16932    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"
16933    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"
16934
16935  else
16936  ld_shlibs=no
16937  fi
16938
16939      ;;
16940
16941    dgux*)
16942      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16943      hardcode_libdir_flag_spec='-L$libdir'
16944      hardcode_shlibpath_var=no
16945      ;;
16946
16947    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16948    # support.  Future versions do this automatically, but an explicit c++rt0.o
16949    # does not break anything, and helps significantly (at the cost of a little
16950    # extra space).
16951    freebsd2.2*)
16952      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16953      hardcode_libdir_flag_spec='-R$libdir'
16954      hardcode_direct=yes
16955      hardcode_shlibpath_var=no
16956      ;;
16957
16958    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16959    freebsd2.*)
16960      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16961      hardcode_direct=yes
16962      hardcode_minus_L=yes
16963      hardcode_shlibpath_var=no
16964      ;;
16965
16966    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16967    freebsd* | dragonfly* | midnightbsd*)
16968      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16969      hardcode_libdir_flag_spec='-R$libdir'
16970      hardcode_direct=yes
16971      hardcode_shlibpath_var=no
16972      ;;
16973
16974    hpux9*)
16975      if test yes = "$GCC"; then
16976	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'
16977      else
16978	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'
16979      fi
16980      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16981      hardcode_libdir_separator=:
16982      hardcode_direct=yes
16983
16984      # hardcode_minus_L: Not really in the search PATH,
16985      # but as the default location of the library.
16986      hardcode_minus_L=yes
16987      export_dynamic_flag_spec='$wl-E'
16988      ;;
16989
16990    hpux10*)
16991      if test yes,no = "$GCC,$with_gnu_ld"; then
16992	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16993      else
16994	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16995      fi
16996      if test no = "$with_gnu_ld"; then
16997	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16998	hardcode_libdir_separator=:
16999	hardcode_direct=yes
17000	hardcode_direct_absolute=yes
17001	export_dynamic_flag_spec='$wl-E'
17002	# hardcode_minus_L: Not really in the search PATH,
17003	# but as the default location of the library.
17004	hardcode_minus_L=yes
17005      fi
17006      ;;
17007
17008    hpux11*)
17009      if test yes,no = "$GCC,$with_gnu_ld"; then
17010	case $host_cpu in
17011	hppa*64*)
17012	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17013	  ;;
17014	ia64*)
17015	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17016	  ;;
17017	*)
17018	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17019	  ;;
17020	esac
17021      else
17022	case $host_cpu in
17023	hppa*64*)
17024	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17025	  ;;
17026	ia64*)
17027	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17028	  ;;
17029	*)
17030
17031	  # Older versions of the 11.00 compiler do not understand -b yet
17032	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17033	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17034printf %s "checking if $CC understands -b... " >&6; }
17035if test ${lt_cv_prog_compiler__b+y}
17036then :
17037  printf %s "(cached) " >&6
17038else $as_nop
17039  lt_cv_prog_compiler__b=no
17040   save_LDFLAGS=$LDFLAGS
17041   LDFLAGS="$LDFLAGS -b"
17042   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17043   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17044     # The linker can only warn and ignore the option if not recognized
17045     # So say no if there are warnings
17046     if test -s conftest.err; then
17047       # Append any errors to the config.log.
17048       cat conftest.err 1>&5
17049       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17050       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17051       if diff conftest.exp conftest.er2 >/dev/null; then
17052         lt_cv_prog_compiler__b=yes
17053       fi
17054     else
17055       lt_cv_prog_compiler__b=yes
17056     fi
17057   fi
17058   $RM -r conftest*
17059   LDFLAGS=$save_LDFLAGS
17060
17061fi
17062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17063printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17064
17065if test yes = "$lt_cv_prog_compiler__b"; then
17066    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17067else
17068    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17069fi
17070
17071	  ;;
17072	esac
17073      fi
17074      if test no = "$with_gnu_ld"; then
17075	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17076	hardcode_libdir_separator=:
17077
17078	case $host_cpu in
17079	hppa*64*|ia64*)
17080	  hardcode_direct=no
17081	  hardcode_shlibpath_var=no
17082	  ;;
17083	*)
17084	  hardcode_direct=yes
17085	  hardcode_direct_absolute=yes
17086	  export_dynamic_flag_spec='$wl-E'
17087
17088	  # hardcode_minus_L: Not really in the search PATH,
17089	  # but as the default location of the library.
17090	  hardcode_minus_L=yes
17091	  ;;
17092	esac
17093      fi
17094      ;;
17095
17096    irix5* | irix6* | nonstopux*)
17097      if test yes = "$GCC"; then
17098	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'
17099	# Try to use the -exported_symbol ld option, if it does not
17100	# work, assume that -exports_file does not work either and
17101	# implicitly export all symbols.
17102	# This should be the same for all languages, so no per-tag cache variable.
17103	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17104printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17105if test ${lt_cv_irix_exported_symbol+y}
17106then :
17107  printf %s "(cached) " >&6
17108else $as_nop
17109  save_LDFLAGS=$LDFLAGS
17110	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17111	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17112/* end confdefs.h.  */
17113int foo (void) { return 0; }
17114_ACEOF
17115if ac_fn_c_try_link "$LINENO"
17116then :
17117  lt_cv_irix_exported_symbol=yes
17118else $as_nop
17119  lt_cv_irix_exported_symbol=no
17120fi
17121rm -f core conftest.err conftest.$ac_objext conftest.beam \
17122    conftest$ac_exeext conftest.$ac_ext
17123           LDFLAGS=$save_LDFLAGS
17124fi
17125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17126printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17127	if test yes = "$lt_cv_irix_exported_symbol"; then
17128          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'
17129	fi
17130      else
17131	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'
17132	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'
17133      fi
17134      archive_cmds_need_lc='no'
17135      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17136      hardcode_libdir_separator=:
17137      inherit_rpath=yes
17138      link_all_deplibs=yes
17139      ;;
17140
17141    linux*)
17142      case $cc_basename in
17143      tcc*)
17144	# Fabrice Bellard et al's Tiny C Compiler
17145	ld_shlibs=yes
17146	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17147	;;
17148      esac
17149      ;;
17150
17151    netbsd*)
17152      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17153	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17154      else
17155	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17156      fi
17157      hardcode_libdir_flag_spec='-R$libdir'
17158      hardcode_direct=yes
17159      hardcode_shlibpath_var=no
17160      ;;
17161
17162    newsos6)
17163      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17164      hardcode_direct=yes
17165      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17166      hardcode_libdir_separator=:
17167      hardcode_shlibpath_var=no
17168      ;;
17169
17170    *nto* | *qnx*)
17171      ;;
17172
17173    openbsd* | bitrig*)
17174      if test -f /usr/libexec/ld.so; then
17175	hardcode_direct=yes
17176	hardcode_shlibpath_var=no
17177	hardcode_direct_absolute=yes
17178	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17179	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17180	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17181	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17182	  export_dynamic_flag_spec='$wl-E'
17183	else
17184	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17185	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17186	fi
17187      else
17188	ld_shlibs=no
17189      fi
17190      ;;
17191
17192    os2*)
17193      hardcode_libdir_flag_spec='-L$libdir'
17194      hardcode_minus_L=yes
17195      allow_undefined_flag=unsupported
17196      shrext_cmds=.dll
17197      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17198	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17199	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17200	$ECHO EXPORTS >> $output_objdir/$libname.def~
17201	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17202	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17203	emximp -o $lib $output_objdir/$libname.def'
17204      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17205	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17206	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17207	$ECHO EXPORTS >> $output_objdir/$libname.def~
17208	prefix_cmds="$SED"~
17209	if test EXPORTS = "`$SED 1q $export_symbols`"; then
17210	  prefix_cmds="$prefix_cmds -e 1d";
17211	fi~
17212	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17213	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17214	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17215	emximp -o $lib $output_objdir/$libname.def'
17216      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17217      enable_shared_with_static_runtimes=yes
17218      file_list_spec='@'
17219      ;;
17220
17221    osf3*)
17222      if test yes = "$GCC"; then
17223	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17224	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'
17225      else
17226	allow_undefined_flag=' -expect_unresolved \*'
17227	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'
17228      fi
17229      archive_cmds_need_lc='no'
17230      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17231      hardcode_libdir_separator=:
17232      ;;
17233
17234    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17235      if test yes = "$GCC"; then
17236	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17237	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'
17238	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17239      else
17240	allow_undefined_flag=' -expect_unresolved \*'
17241	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'
17242	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~
17243          $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'
17244
17245	# Both c and cxx compiler support -rpath directly
17246	hardcode_libdir_flag_spec='-rpath $libdir'
17247      fi
17248      archive_cmds_need_lc='no'
17249      hardcode_libdir_separator=:
17250      ;;
17251
17252    solaris*)
17253      no_undefined_flag=' -z defs'
17254      if test yes = "$GCC"; then
17255	wlarc='$wl'
17256	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17257	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17258          $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'
17259      else
17260	case `$CC -V 2>&1` in
17261	*"Compilers 5.0"*)
17262	  wlarc=''
17263	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17264	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17265            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17266	  ;;
17267	*)
17268	  wlarc='$wl'
17269	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17270	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17271            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17272	  ;;
17273	esac
17274      fi
17275      hardcode_libdir_flag_spec='-R$libdir'
17276      hardcode_shlibpath_var=no
17277      case $host_os in
17278      solaris2.[0-5] | solaris2.[0-5].*) ;;
17279      *)
17280	# The compiler driver will combine and reorder linker options,
17281	# but understands '-z linker_flag'.  GCC discards it without '$wl',
17282	# but is careful enough not to reorder.
17283	# Supported since Solaris 2.6 (maybe 2.5.1?)
17284	if test yes = "$GCC"; then
17285	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17286	else
17287	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17288	fi
17289	;;
17290      esac
17291      link_all_deplibs=yes
17292      ;;
17293
17294    sunos4*)
17295      if test sequent = "$host_vendor"; then
17296	# Use $CC to link under sequent, because it throws in some extra .o
17297	# files that make .init and .fini sections work.
17298	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17299      else
17300	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17301      fi
17302      hardcode_libdir_flag_spec='-L$libdir'
17303      hardcode_direct=yes
17304      hardcode_minus_L=yes
17305      hardcode_shlibpath_var=no
17306      ;;
17307
17308    sysv4)
17309      case $host_vendor in
17310	sni)
17311	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17312	  hardcode_direct=yes # is this really true???
17313	;;
17314	siemens)
17315	  ## LD is ld it makes a PLAMLIB
17316	  ## CC just makes a GrossModule.
17317	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17318	  reload_cmds='$CC -r -o $output$reload_objs'
17319	  hardcode_direct=no
17320        ;;
17321	motorola)
17322	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17323	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17324	;;
17325      esac
17326      runpath_var='LD_RUN_PATH'
17327      hardcode_shlibpath_var=no
17328      ;;
17329
17330    sysv4.3*)
17331      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17332      hardcode_shlibpath_var=no
17333      export_dynamic_flag_spec='-Bexport'
17334      ;;
17335
17336    sysv4*MP*)
17337      if test -d /usr/nec; then
17338	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17339	hardcode_shlibpath_var=no
17340	runpath_var=LD_RUN_PATH
17341	hardcode_runpath_var=yes
17342	ld_shlibs=yes
17343      fi
17344      ;;
17345
17346    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17347      no_undefined_flag='$wl-z,text'
17348      archive_cmds_need_lc=no
17349      hardcode_shlibpath_var=no
17350      runpath_var='LD_RUN_PATH'
17351
17352      if test yes = "$GCC"; then
17353	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17354	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17355      else
17356	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17357	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17358      fi
17359      ;;
17360
17361    sysv5* | sco3.2v5* | sco5v6*)
17362      # Note: We CANNOT use -z defs as we might desire, because we do not
17363      # link with -lc, and that would cause any symbols used from libc to
17364      # always be unresolved, which means just about no library would
17365      # ever link correctly.  If we're not using GNU ld we use -z text
17366      # though, which does catch some bad symbols but isn't as heavy-handed
17367      # as -z defs.
17368      no_undefined_flag='$wl-z,text'
17369      allow_undefined_flag='$wl-z,nodefs'
17370      archive_cmds_need_lc=no
17371      hardcode_shlibpath_var=no
17372      hardcode_libdir_flag_spec='$wl-R,$libdir'
17373      hardcode_libdir_separator=':'
17374      link_all_deplibs=yes
17375      export_dynamic_flag_spec='$wl-Bexport'
17376      runpath_var='LD_RUN_PATH'
17377
17378      if test yes = "$GCC"; then
17379	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17380	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17381      else
17382	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17383	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17384      fi
17385      ;;
17386
17387    uts4*)
17388      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17389      hardcode_libdir_flag_spec='-L$libdir'
17390      hardcode_shlibpath_var=no
17391      ;;
17392
17393    *)
17394      ld_shlibs=no
17395      ;;
17396    esac
17397
17398    if test sni = "$host_vendor"; then
17399      case $host in
17400      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17401	export_dynamic_flag_spec='$wl-Blargedynsym'
17402	;;
17403      esac
17404    fi
17405  fi
17406
17407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17408printf "%s\n" "$ld_shlibs" >&6; }
17409test no = "$ld_shlibs" && can_build_shared=no
17410
17411with_gnu_ld=$with_gnu_ld
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427#
17428# Do we need to explicitly link libc?
17429#
17430case "x$archive_cmds_need_lc" in
17431x|xyes)
17432  # Assume -lc should be added
17433  archive_cmds_need_lc=yes
17434
17435  if test yes,yes = "$GCC,$enable_shared"; then
17436    case $archive_cmds in
17437    *'~'*)
17438      # FIXME: we may have to deal with multi-command sequences.
17439      ;;
17440    '$CC '*)
17441      # Test whether the compiler implicitly links with -lc since on some
17442      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17443      # to ld, don't add -lc before -lgcc.
17444      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17445printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17446if test ${lt_cv_archive_cmds_need_lc+y}
17447then :
17448  printf %s "(cached) " >&6
17449else $as_nop
17450  $RM conftest*
17451	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17452
17453	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17454  (eval $ac_compile) 2>&5
17455  ac_status=$?
17456  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17457  test $ac_status = 0; } 2>conftest.err; then
17458	  soname=conftest
17459	  lib=conftest
17460	  libobjs=conftest.$ac_objext
17461	  deplibs=
17462	  wl=$lt_prog_compiler_wl
17463	  pic_flag=$lt_prog_compiler_pic
17464	  compiler_flags=-v
17465	  linker_flags=-v
17466	  verstring=
17467	  output_objdir=.
17468	  libname=conftest
17469	  lt_save_allow_undefined_flag=$allow_undefined_flag
17470	  allow_undefined_flag=
17471	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17472  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17473  ac_status=$?
17474  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17475  test $ac_status = 0; }
17476	  then
17477	    lt_cv_archive_cmds_need_lc=no
17478	  else
17479	    lt_cv_archive_cmds_need_lc=yes
17480	  fi
17481	  allow_undefined_flag=$lt_save_allow_undefined_flag
17482	else
17483	  cat conftest.err 1>&5
17484	fi
17485	$RM conftest*
17486
17487fi
17488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17489printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17490      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17491      ;;
17492    esac
17493  fi
17494  ;;
17495esac
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17649printf %s "checking dynamic linker characteristics... " >&6; }
17650
17651if test yes = "$GCC"; then
17652  case $host_os in
17653    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17654    *) lt_awk_arg='/^libraries:/' ;;
17655  esac
17656  case $host_os in
17657    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17658    *) lt_sed_strip_eq='s|=/|/|g' ;;
17659  esac
17660  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17661  case $lt_search_path_spec in
17662  *\;*)
17663    # if the path contains ";" then we assume it to be the separator
17664    # otherwise default to the standard path separator (i.e. ":") - it is
17665    # assumed that no part of a normal pathname contains ";" but that should
17666    # okay in the real world where ";" in dirpaths is itself problematic.
17667    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17668    ;;
17669  *)
17670    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17671    ;;
17672  esac
17673  # Ok, now we have the path, separated by spaces, we can step through it
17674  # and add multilib dir if necessary...
17675  lt_tmp_lt_search_path_spec=
17676  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17677  # ...but if some path component already ends with the multilib dir we assume
17678  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17679  case "$lt_multi_os_dir; $lt_search_path_spec " in
17680  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17681    lt_multi_os_dir=
17682    ;;
17683  esac
17684  for lt_sys_path in $lt_search_path_spec; do
17685    if test -d "$lt_sys_path$lt_multi_os_dir"; then
17686      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17687    elif test -n "$lt_multi_os_dir"; then
17688      test -d "$lt_sys_path" && \
17689	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17690    fi
17691  done
17692  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17693BEGIN {RS = " "; FS = "/|\n";} {
17694  lt_foo = "";
17695  lt_count = 0;
17696  for (lt_i = NF; lt_i > 0; lt_i--) {
17697    if ($lt_i != "" && $lt_i != ".") {
17698      if ($lt_i == "..") {
17699        lt_count++;
17700      } else {
17701        if (lt_count == 0) {
17702          lt_foo = "/" $lt_i lt_foo;
17703        } else {
17704          lt_count--;
17705        }
17706      }
17707    }
17708  }
17709  if (lt_foo != "") { lt_freq[lt_foo]++; }
17710  if (lt_freq[lt_foo] == 1) { print lt_foo; }
17711}'`
17712  # AWK program above erroneously prepends '/' to C:/dos/paths
17713  # for these hosts.
17714  case $host_os in
17715    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17716      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17717  esac
17718  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17719else
17720  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17721fi
17722library_names_spec=
17723libname_spec='lib$name'
17724soname_spec=
17725shrext_cmds=.so
17726postinstall_cmds=
17727postuninstall_cmds=
17728finish_cmds=
17729finish_eval=
17730shlibpath_var=
17731shlibpath_overrides_runpath=unknown
17732version_type=none
17733dynamic_linker="$host_os ld.so"
17734sys_lib_dlsearch_path_spec="/lib /usr/lib"
17735need_lib_prefix=unknown
17736hardcode_into_libs=no
17737
17738# when you set need_version to no, make sure it does not cause -set_version
17739# flags to be left without arguments
17740need_version=unknown
17741
17742
17743
17744case $host_os in
17745aix3*)
17746  version_type=linux # correct to gnu/linux during the next big refactor
17747  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17748  shlibpath_var=LIBPATH
17749
17750  # AIX 3 has no versioning support, so we append a major version to the name.
17751  soname_spec='$libname$release$shared_ext$major'
17752  ;;
17753
17754aix[4-9]*)
17755  version_type=linux # correct to gnu/linux during the next big refactor
17756  need_lib_prefix=no
17757  need_version=no
17758  hardcode_into_libs=yes
17759  if test ia64 = "$host_cpu"; then
17760    # AIX 5 supports IA64
17761    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17762    shlibpath_var=LD_LIBRARY_PATH
17763  else
17764    # With GCC up to 2.95.x, collect2 would create an import file
17765    # for dependence libraries.  The import file would start with
17766    # the line '#! .'.  This would cause the generated library to
17767    # depend on '.', always an invalid library.  This was fixed in
17768    # development snapshots of GCC prior to 3.0.
17769    case $host_os in
17770      aix4 | aix4.[01] | aix4.[01].*)
17771      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17772	   echo ' yes '
17773	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17774	:
17775      else
17776	can_build_shared=no
17777      fi
17778      ;;
17779    esac
17780    # Using Import Files as archive members, it is possible to support
17781    # filename-based versioning of shared library archives on AIX. While
17782    # this would work for both with and without runtime linking, it will
17783    # prevent static linking of such archives. So we do filename-based
17784    # shared library versioning with .so extension only, which is used
17785    # when both runtime linking and shared linking is enabled.
17786    # Unfortunately, runtime linking may impact performance, so we do
17787    # not want this to be the default eventually. Also, we use the
17788    # versioned .so libs for executables only if there is the -brtl
17789    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17790    # To allow for filename-based versioning support, we need to create
17791    # libNAME.so.V as an archive file, containing:
17792    # *) an Import File, referring to the versioned filename of the
17793    #    archive as well as the shared archive member, telling the
17794    #    bitwidth (32 or 64) of that shared object, and providing the
17795    #    list of exported symbols of that shared object, eventually
17796    #    decorated with the 'weak' keyword
17797    # *) the shared object with the F_LOADONLY flag set, to really avoid
17798    #    it being seen by the linker.
17799    # At run time we better use the real file rather than another symlink,
17800    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17801
17802    case $with_aix_soname,$aix_use_runtimelinking in
17803    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17804    # soname into executable. Probably we can add versioning support to
17805    # collect2, so additional links can be useful in future.
17806    aix,yes) # traditional libtool
17807      dynamic_linker='AIX unversionable lib.so'
17808      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17809      # instead of lib<name>.a to let people know that these are not
17810      # typical AIX shared libraries.
17811      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17812      ;;
17813    aix,no) # traditional AIX only
17814      dynamic_linker='AIX lib.a(lib.so.V)'
17815      # We preserve .a as extension for shared libraries through AIX4.2
17816      # and later when we are not doing run time linking.
17817      library_names_spec='$libname$release.a $libname.a'
17818      soname_spec='$libname$release$shared_ext$major'
17819      ;;
17820    svr4,*) # full svr4 only
17821      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17822      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17823      # We do not specify a path in Import Files, so LIBPATH fires.
17824      shlibpath_overrides_runpath=yes
17825      ;;
17826    *,yes) # both, prefer svr4
17827      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17828      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17829      # unpreferred sharedlib libNAME.a needs extra handling
17830      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"'
17831      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"'
17832      # We do not specify a path in Import Files, so LIBPATH fires.
17833      shlibpath_overrides_runpath=yes
17834      ;;
17835    *,no) # both, prefer aix
17836      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17837      library_names_spec='$libname$release.a $libname.a'
17838      soname_spec='$libname$release$shared_ext$major'
17839      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17840      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)'
17841      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"'
17842      ;;
17843    esac
17844    shlibpath_var=LIBPATH
17845  fi
17846  ;;
17847
17848amigaos*)
17849  case $host_cpu in
17850  powerpc)
17851    # Since July 2007 AmigaOS4 officially supports .so libraries.
17852    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17853    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17854    ;;
17855  m68k)
17856    library_names_spec='$libname.ixlibrary $libname.a'
17857    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17858    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'
17859    ;;
17860  esac
17861  ;;
17862
17863beos*)
17864  library_names_spec='$libname$shared_ext'
17865  dynamic_linker="$host_os ld.so"
17866  shlibpath_var=LIBRARY_PATH
17867  ;;
17868
17869bsdi[45]*)
17870  version_type=linux # correct to gnu/linux during the next big refactor
17871  need_version=no
17872  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17873  soname_spec='$libname$release$shared_ext$major'
17874  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17875  shlibpath_var=LD_LIBRARY_PATH
17876  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17877  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17878  # the default ld.so.conf also contains /usr/contrib/lib and
17879  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17880  # libtool to hard-code these into programs
17881  ;;
17882
17883cygwin* | mingw* | pw32* | cegcc*)
17884  version_type=windows
17885  shrext_cmds=.dll
17886  need_version=no
17887  need_lib_prefix=no
17888
17889  case $GCC,$cc_basename in
17890  yes,*)
17891    # gcc
17892    library_names_spec='$libname.dll.a'
17893    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17894    postinstall_cmds='base_file=`basename \$file`~
17895      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17896      dldir=$destdir/`dirname \$dlpath`~
17897      test -d \$dldir || mkdir -p \$dldir~
17898      $install_prog $dir/$dlname \$dldir/$dlname~
17899      chmod a+x \$dldir/$dlname~
17900      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17901        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17902      fi'
17903    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17904      dlpath=$dir/\$dldll~
17905       $RM \$dlpath'
17906    shlibpath_overrides_runpath=yes
17907
17908    case $host_os in
17909    cygwin*)
17910      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17911      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17912
17913      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17914      ;;
17915    mingw* | cegcc*)
17916      # MinGW DLLs use traditional 'lib' prefix
17917      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17918      ;;
17919    pw32*)
17920      # pw32 DLLs use 'pw' prefix rather than 'lib'
17921      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17922      ;;
17923    esac
17924    dynamic_linker='Win32 ld.exe'
17925    ;;
17926
17927  *,cl* | *,icl*)
17928    # Native MSVC or ICC
17929    libname_spec='$name'
17930    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17931    library_names_spec='$libname.dll.lib'
17932
17933    case $build_os in
17934    mingw*)
17935      sys_lib_search_path_spec=
17936      lt_save_ifs=$IFS
17937      IFS=';'
17938      for lt_path in $LIB
17939      do
17940        IFS=$lt_save_ifs
17941        # Let DOS variable expansion print the short 8.3 style file name.
17942        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17943        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17944      done
17945      IFS=$lt_save_ifs
17946      # Convert to MSYS style.
17947      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17948      ;;
17949    cygwin*)
17950      # Convert to unix form, then to dos form, then back to unix form
17951      # but this time dos style (no spaces!) so that the unix form looks
17952      # like /cygdrive/c/PROGRA~1:/cygdr...
17953      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17954      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17955      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17956      ;;
17957    *)
17958      sys_lib_search_path_spec=$LIB
17959      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17960        # It is most probably a Windows format PATH.
17961        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17962      else
17963        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17964      fi
17965      # FIXME: find the short name or the path components, as spaces are
17966      # common. (e.g. "Program Files" -> "PROGRA~1")
17967      ;;
17968    esac
17969
17970    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17971    postinstall_cmds='base_file=`basename \$file`~
17972      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17973      dldir=$destdir/`dirname \$dlpath`~
17974      test -d \$dldir || mkdir -p \$dldir~
17975      $install_prog $dir/$dlname \$dldir/$dlname'
17976    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17977      dlpath=$dir/\$dldll~
17978       $RM \$dlpath'
17979    shlibpath_overrides_runpath=yes
17980    dynamic_linker='Win32 link.exe'
17981    ;;
17982
17983  *)
17984    # Assume MSVC and ICC wrapper
17985    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17986    dynamic_linker='Win32 ld.exe'
17987    ;;
17988  esac
17989  # FIXME: first we should search . and the directory the executable is in
17990  shlibpath_var=PATH
17991  ;;
17992
17993darwin* | rhapsody*)
17994  dynamic_linker="$host_os dyld"
17995  version_type=darwin
17996  need_lib_prefix=no
17997  need_version=no
17998  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17999  soname_spec='$libname$release$major$shared_ext'
18000  shlibpath_overrides_runpath=yes
18001  shlibpath_var=DYLD_LIBRARY_PATH
18002  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18003
18004  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18005  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18006  ;;
18007
18008dgux*)
18009  version_type=linux # correct to gnu/linux during the next big refactor
18010  need_lib_prefix=no
18011  need_version=no
18012  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18013  soname_spec='$libname$release$shared_ext$major'
18014  shlibpath_var=LD_LIBRARY_PATH
18015  ;;
18016
18017freebsd* | dragonfly* | midnightbsd*)
18018  # DragonFly does not have aout.  When/if they implement a new
18019  # versioning mechanism, adjust this.
18020  if test -x /usr/bin/objformat; then
18021    objformat=`/usr/bin/objformat`
18022  else
18023    case $host_os in
18024    freebsd[23].*) objformat=aout ;;
18025    *) objformat=elf ;;
18026    esac
18027  fi
18028  version_type=freebsd-$objformat
18029  case $version_type in
18030    freebsd-elf*)
18031      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18032      soname_spec='$libname$release$shared_ext$major'
18033      need_version=no
18034      need_lib_prefix=no
18035      ;;
18036    freebsd-*)
18037      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18038      need_version=yes
18039      ;;
18040  esac
18041  shlibpath_var=LD_LIBRARY_PATH
18042  case $host_os in
18043  freebsd2.*)
18044    shlibpath_overrides_runpath=yes
18045    ;;
18046  freebsd3.[01]* | freebsdelf3.[01]*)
18047    shlibpath_overrides_runpath=yes
18048    hardcode_into_libs=yes
18049    ;;
18050  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18051  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18052    shlibpath_overrides_runpath=no
18053    hardcode_into_libs=yes
18054    ;;
18055  *) # from 4.6 on, and DragonFly
18056    shlibpath_overrides_runpath=yes
18057    hardcode_into_libs=yes
18058    ;;
18059  esac
18060  ;;
18061
18062haiku*)
18063  version_type=linux # correct to gnu/linux during the next big refactor
18064  need_lib_prefix=no
18065  need_version=no
18066  dynamic_linker="$host_os runtime_loader"
18067  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18068  soname_spec='$libname$release$shared_ext$major'
18069  shlibpath_var=LIBRARY_PATH
18070  shlibpath_overrides_runpath=no
18071  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18072  hardcode_into_libs=yes
18073  ;;
18074
18075hpux9* | hpux10* | hpux11*)
18076  # Give a soname corresponding to the major version so that dld.sl refuses to
18077  # link against other versions.
18078  version_type=sunos
18079  need_lib_prefix=no
18080  need_version=no
18081  case $host_cpu in
18082  ia64*)
18083    shrext_cmds='.so'
18084    hardcode_into_libs=yes
18085    dynamic_linker="$host_os dld.so"
18086    shlibpath_var=LD_LIBRARY_PATH
18087    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18088    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18089    soname_spec='$libname$release$shared_ext$major'
18090    if test 32 = "$HPUX_IA64_MODE"; then
18091      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18092      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18093    else
18094      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18095      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18096    fi
18097    ;;
18098  hppa*64*)
18099    shrext_cmds='.sl'
18100    hardcode_into_libs=yes
18101    dynamic_linker="$host_os dld.sl"
18102    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18103    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18104    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18105    soname_spec='$libname$release$shared_ext$major'
18106    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18107    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18108    ;;
18109  *)
18110    shrext_cmds='.sl'
18111    dynamic_linker="$host_os dld.sl"
18112    shlibpath_var=SHLIB_PATH
18113    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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    ;;
18117  esac
18118  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18119  postinstall_cmds='chmod 555 $lib'
18120  # or fails outright, so override atomically:
18121  install_override_mode=555
18122  ;;
18123
18124interix[3-9]*)
18125  version_type=linux # correct to gnu/linux during the next big refactor
18126  need_lib_prefix=no
18127  need_version=no
18128  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18129  soname_spec='$libname$release$shared_ext$major'
18130  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18131  shlibpath_var=LD_LIBRARY_PATH
18132  shlibpath_overrides_runpath=no
18133  hardcode_into_libs=yes
18134  ;;
18135
18136irix5* | irix6* | nonstopux*)
18137  case $host_os in
18138    nonstopux*) version_type=nonstopux ;;
18139    *)
18140	if test yes = "$lt_cv_prog_gnu_ld"; then
18141		version_type=linux # correct to gnu/linux during the next big refactor
18142	else
18143		version_type=irix
18144	fi ;;
18145  esac
18146  need_lib_prefix=no
18147  need_version=no
18148  soname_spec='$libname$release$shared_ext$major'
18149  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18150  case $host_os in
18151  irix5* | nonstopux*)
18152    libsuff= shlibsuff=
18153    ;;
18154  *)
18155    case $LD in # libtool.m4 will add one of these switches to LD
18156    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18157      libsuff= shlibsuff= libmagic=32-bit;;
18158    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18159      libsuff=32 shlibsuff=N32 libmagic=N32;;
18160    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18161      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18162    *) libsuff= shlibsuff= libmagic=never-match;;
18163    esac
18164    ;;
18165  esac
18166  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18167  shlibpath_overrides_runpath=no
18168  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18169  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18170  hardcode_into_libs=yes
18171  ;;
18172
18173# No shared lib support for Linux oldld, aout, or coff.
18174linux*oldld* | linux*aout* | linux*coff*)
18175  dynamic_linker=no
18176  ;;
18177
18178linux*android*)
18179  version_type=none # Android doesn't support versioned libraries.
18180  need_lib_prefix=no
18181  need_version=no
18182  library_names_spec='$libname$release$shared_ext'
18183  soname_spec='$libname$release$shared_ext'
18184  finish_cmds=
18185  shlibpath_var=LD_LIBRARY_PATH
18186  shlibpath_overrides_runpath=yes
18187
18188  # This implies no fast_install, which is unacceptable.
18189  # Some rework will be needed to allow for fast_install
18190  # before this can be enabled.
18191  hardcode_into_libs=yes
18192
18193  dynamic_linker='Android linker'
18194  # Don't embed -rpath directories since the linker doesn't support them.
18195  hardcode_libdir_flag_spec='-L$libdir'
18196  ;;
18197
18198# This must be glibc/ELF.
18199linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18200  version_type=linux # correct to gnu/linux during the next big refactor
18201  need_lib_prefix=no
18202  need_version=no
18203  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18204  soname_spec='$libname$release$shared_ext$major'
18205  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18206  shlibpath_var=LD_LIBRARY_PATH
18207  shlibpath_overrides_runpath=no
18208
18209  # Some binutils ld are patched to set DT_RUNPATH
18210  if test ${lt_cv_shlibpath_overrides_runpath+y}
18211then :
18212  printf %s "(cached) " >&6
18213else $as_nop
18214  lt_cv_shlibpath_overrides_runpath=no
18215    save_LDFLAGS=$LDFLAGS
18216    save_libdir=$libdir
18217    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18218	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18219    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18220/* end confdefs.h.  */
18221
18222int
18223main (void)
18224{
18225
18226  ;
18227  return 0;
18228}
18229_ACEOF
18230if ac_fn_c_try_link "$LINENO"
18231then :
18232  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18233then :
18234  lt_cv_shlibpath_overrides_runpath=yes
18235fi
18236fi
18237rm -f core conftest.err conftest.$ac_objext conftest.beam \
18238    conftest$ac_exeext conftest.$ac_ext
18239    LDFLAGS=$save_LDFLAGS
18240    libdir=$save_libdir
18241
18242fi
18243
18244  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18245
18246  # This implies no fast_install, which is unacceptable.
18247  # Some rework will be needed to allow for fast_install
18248  # before this can be enabled.
18249  hardcode_into_libs=yes
18250
18251  # Ideally, we could use ldconfig to report *all* directores which are
18252  # searched for libraries, however this is still not possible.  Aside from not
18253  # being certain /sbin/ldconfig is available, command
18254  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18255  # even though it is searched at run-time.  Try to do the best guess by
18256  # appending ld.so.conf contents (and includes) to the search path.
18257  if test -f /etc/ld.so.conf; then
18258    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' ' '`
18259    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18260  fi
18261
18262  # We used to test for /lib/ld.so.1 and disable shared libraries on
18263  # powerpc, because MkLinux only supported shared libraries with the
18264  # GNU dynamic linker.  Since this was broken with cross compilers,
18265  # most powerpc-linux boxes support dynamic linking these days and
18266  # people can always --disable-shared, the test was removed, and we
18267  # assume the GNU/Linux dynamic linker is in use.
18268  dynamic_linker='GNU/Linux ld.so'
18269  ;;
18270
18271netbsd*)
18272  version_type=sunos
18273  need_lib_prefix=no
18274  need_version=no
18275  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18276    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18277    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18278    dynamic_linker='NetBSD (a.out) ld.so'
18279  else
18280    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18281    soname_spec='$libname$release$shared_ext$major'
18282    dynamic_linker='NetBSD ld.elf_so'
18283  fi
18284  shlibpath_var=LD_LIBRARY_PATH
18285  shlibpath_overrides_runpath=yes
18286  hardcode_into_libs=yes
18287  ;;
18288
18289newsos6)
18290  version_type=linux # correct to gnu/linux during the next big refactor
18291  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18292  shlibpath_var=LD_LIBRARY_PATH
18293  shlibpath_overrides_runpath=yes
18294  ;;
18295
18296*nto* | *qnx*)
18297  version_type=qnx
18298  need_lib_prefix=no
18299  need_version=no
18300  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18301  soname_spec='$libname$release$shared_ext$major'
18302  shlibpath_var=LD_LIBRARY_PATH
18303  shlibpath_overrides_runpath=no
18304  hardcode_into_libs=yes
18305  dynamic_linker='ldqnx.so'
18306  ;;
18307
18308openbsd* | bitrig*)
18309  version_type=sunos
18310  sys_lib_dlsearch_path_spec=/usr/lib
18311  need_lib_prefix=no
18312  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18313    need_version=no
18314  else
18315    need_version=yes
18316  fi
18317  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18318  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18319  shlibpath_var=LD_LIBRARY_PATH
18320  shlibpath_overrides_runpath=yes
18321  ;;
18322
18323os2*)
18324  libname_spec='$name'
18325  version_type=windows
18326  shrext_cmds=.dll
18327  need_version=no
18328  need_lib_prefix=no
18329  # OS/2 can only load a DLL with a base name of 8 characters or less.
18330  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18331    v=$($ECHO $release$versuffix | tr -d .-);
18332    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18333    $ECHO $n$v`$shared_ext'
18334  library_names_spec='${libname}_dll.$libext'
18335  dynamic_linker='OS/2 ld.exe'
18336  shlibpath_var=BEGINLIBPATH
18337  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18338  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18339  postinstall_cmds='base_file=`basename \$file`~
18340    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18341    dldir=$destdir/`dirname \$dlpath`~
18342    test -d \$dldir || mkdir -p \$dldir~
18343    $install_prog $dir/$dlname \$dldir/$dlname~
18344    chmod a+x \$dldir/$dlname~
18345    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18346      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18347    fi'
18348  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18349    dlpath=$dir/\$dldll~
18350    $RM \$dlpath'
18351  ;;
18352
18353osf3* | osf4* | osf5*)
18354  version_type=osf
18355  need_lib_prefix=no
18356  need_version=no
18357  soname_spec='$libname$release$shared_ext$major'
18358  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18359  shlibpath_var=LD_LIBRARY_PATH
18360  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18361  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18362  ;;
18363
18364rdos*)
18365  dynamic_linker=no
18366  ;;
18367
18368solaris*)
18369  version_type=linux # correct to gnu/linux during the next big refactor
18370  need_lib_prefix=no
18371  need_version=no
18372  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18373  soname_spec='$libname$release$shared_ext$major'
18374  shlibpath_var=LD_LIBRARY_PATH
18375  shlibpath_overrides_runpath=yes
18376  hardcode_into_libs=yes
18377  # ldd complains unless libraries are executable
18378  postinstall_cmds='chmod +x $lib'
18379  ;;
18380
18381sunos4*)
18382  version_type=sunos
18383  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18384  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18385  shlibpath_var=LD_LIBRARY_PATH
18386  shlibpath_overrides_runpath=yes
18387  if test yes = "$with_gnu_ld"; then
18388    need_lib_prefix=no
18389  fi
18390  need_version=yes
18391  ;;
18392
18393sysv4 | sysv4.3*)
18394  version_type=linux # correct to gnu/linux during the next big refactor
18395  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18396  soname_spec='$libname$release$shared_ext$major'
18397  shlibpath_var=LD_LIBRARY_PATH
18398  case $host_vendor in
18399    sni)
18400      shlibpath_overrides_runpath=no
18401      need_lib_prefix=no
18402      runpath_var=LD_RUN_PATH
18403      ;;
18404    siemens)
18405      need_lib_prefix=no
18406      ;;
18407    motorola)
18408      need_lib_prefix=no
18409      need_version=no
18410      shlibpath_overrides_runpath=no
18411      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18412      ;;
18413  esac
18414  ;;
18415
18416sysv4*MP*)
18417  if test -d /usr/nec; then
18418    version_type=linux # correct to gnu/linux during the next big refactor
18419    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18420    soname_spec='$libname$shared_ext.$major'
18421    shlibpath_var=LD_LIBRARY_PATH
18422  fi
18423  ;;
18424
18425sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18426  version_type=sco
18427  need_lib_prefix=no
18428  need_version=no
18429  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18430  soname_spec='$libname$release$shared_ext$major'
18431  shlibpath_var=LD_LIBRARY_PATH
18432  shlibpath_overrides_runpath=yes
18433  hardcode_into_libs=yes
18434  if test yes = "$with_gnu_ld"; then
18435    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18436  else
18437    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18438    case $host_os in
18439      sco3.2v5*)
18440        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18441	;;
18442    esac
18443  fi
18444  sys_lib_dlsearch_path_spec='/usr/lib'
18445  ;;
18446
18447tpf*)
18448  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18449  version_type=linux # correct to gnu/linux during the next big refactor
18450  need_lib_prefix=no
18451  need_version=no
18452  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18453  shlibpath_var=LD_LIBRARY_PATH
18454  shlibpath_overrides_runpath=no
18455  hardcode_into_libs=yes
18456  ;;
18457
18458uts4*)
18459  version_type=linux # correct to gnu/linux during the next big refactor
18460  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18461  soname_spec='$libname$release$shared_ext$major'
18462  shlibpath_var=LD_LIBRARY_PATH
18463  ;;
18464
18465*)
18466  dynamic_linker=no
18467  ;;
18468esac
18469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18470printf "%s\n" "$dynamic_linker" >&6; }
18471test no = "$dynamic_linker" && can_build_shared=no
18472
18473variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18474if test yes = "$GCC"; then
18475  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18476fi
18477
18478if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18479  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18480fi
18481
18482if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18483  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18484fi
18485
18486# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18487configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18488
18489# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18490func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18491
18492# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18493configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18592printf %s "checking how to hardcode library paths into programs... " >&6; }
18593hardcode_action=
18594if test -n "$hardcode_libdir_flag_spec" ||
18595   test -n "$runpath_var" ||
18596   test yes = "$hardcode_automatic"; then
18597
18598  # We can hardcode non-existent directories.
18599  if test no != "$hardcode_direct" &&
18600     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18601     # have to relink, otherwise we might link with an installed library
18602     # when we should be linking with a yet-to-be-installed one
18603     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18604     test no != "$hardcode_minus_L"; then
18605    # Linking always hardcodes the temporary library directory.
18606    hardcode_action=relink
18607  else
18608    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18609    hardcode_action=immediate
18610  fi
18611else
18612  # We cannot hardcode anything, or else we can only hardcode existing
18613  # directories.
18614  hardcode_action=unsupported
18615fi
18616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18617printf "%s\n" "$hardcode_action" >&6; }
18618
18619if test relink = "$hardcode_action" ||
18620   test yes = "$inherit_rpath"; then
18621  # Fast installation is not supported
18622  enable_fast_install=no
18623elif test yes = "$shlibpath_overrides_runpath" ||
18624     test no = "$enable_shared"; then
18625  # Fast installation is not necessary
18626  enable_fast_install=needless
18627fi
18628
18629
18630
18631
18632
18633
18634  if test yes != "$enable_dlopen"; then
18635  enable_dlopen=unknown
18636  enable_dlopen_self=unknown
18637  enable_dlopen_self_static=unknown
18638else
18639  lt_cv_dlopen=no
18640  lt_cv_dlopen_libs=
18641
18642  case $host_os in
18643  beos*)
18644    lt_cv_dlopen=load_add_on
18645    lt_cv_dlopen_libs=
18646    lt_cv_dlopen_self=yes
18647    ;;
18648
18649  mingw* | pw32* | cegcc*)
18650    lt_cv_dlopen=LoadLibrary
18651    lt_cv_dlopen_libs=
18652    ;;
18653
18654  cygwin*)
18655    lt_cv_dlopen=dlopen
18656    lt_cv_dlopen_libs=
18657    ;;
18658
18659  darwin*)
18660    # if libdl is installed we need to link against it
18661    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18662printf %s "checking for dlopen in -ldl... " >&6; }
18663if test ${ac_cv_lib_dl_dlopen+y}
18664then :
18665  printf %s "(cached) " >&6
18666else $as_nop
18667  ac_check_lib_save_LIBS=$LIBS
18668LIBS="-ldl  $LIBS"
18669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18670/* end confdefs.h.  */
18671
18672/* Override any GCC internal prototype to avoid an error.
18673   Use char because int might match the return type of a GCC
18674   builtin and then its argument prototype would still apply.  */
18675char dlopen ();
18676int
18677main (void)
18678{
18679return dlopen ();
18680  ;
18681  return 0;
18682}
18683_ACEOF
18684if ac_fn_c_try_link "$LINENO"
18685then :
18686  ac_cv_lib_dl_dlopen=yes
18687else $as_nop
18688  ac_cv_lib_dl_dlopen=no
18689fi
18690rm -f core conftest.err conftest.$ac_objext conftest.beam \
18691    conftest$ac_exeext conftest.$ac_ext
18692LIBS=$ac_check_lib_save_LIBS
18693fi
18694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18695printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18696if test "x$ac_cv_lib_dl_dlopen" = xyes
18697then :
18698  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18699else $as_nop
18700
18701    lt_cv_dlopen=dyld
18702    lt_cv_dlopen_libs=
18703    lt_cv_dlopen_self=yes
18704
18705fi
18706
18707    ;;
18708
18709  tpf*)
18710    # Don't try to run any link tests for TPF.  We know it's impossible
18711    # because TPF is a cross-compiler, and we know how we open DSOs.
18712    lt_cv_dlopen=dlopen
18713    lt_cv_dlopen_libs=
18714    lt_cv_dlopen_self=no
18715    ;;
18716
18717  *)
18718    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18719if test "x$ac_cv_func_shl_load" = xyes
18720then :
18721  lt_cv_dlopen=shl_load
18722else $as_nop
18723  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18724printf %s "checking for shl_load in -ldld... " >&6; }
18725if test ${ac_cv_lib_dld_shl_load+y}
18726then :
18727  printf %s "(cached) " >&6
18728else $as_nop
18729  ac_check_lib_save_LIBS=$LIBS
18730LIBS="-ldld  $LIBS"
18731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18732/* end confdefs.h.  */
18733
18734/* Override any GCC internal prototype to avoid an error.
18735   Use char because int might match the return type of a GCC
18736   builtin and then its argument prototype would still apply.  */
18737char shl_load ();
18738int
18739main (void)
18740{
18741return shl_load ();
18742  ;
18743  return 0;
18744}
18745_ACEOF
18746if ac_fn_c_try_link "$LINENO"
18747then :
18748  ac_cv_lib_dld_shl_load=yes
18749else $as_nop
18750  ac_cv_lib_dld_shl_load=no
18751fi
18752rm -f core conftest.err conftest.$ac_objext conftest.beam \
18753    conftest$ac_exeext conftest.$ac_ext
18754LIBS=$ac_check_lib_save_LIBS
18755fi
18756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18757printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
18758if test "x$ac_cv_lib_dld_shl_load" = xyes
18759then :
18760  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18761else $as_nop
18762  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18763if test "x$ac_cv_func_dlopen" = xyes
18764then :
18765  lt_cv_dlopen=dlopen
18766else $as_nop
18767  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18768printf %s "checking for dlopen in -ldl... " >&6; }
18769if test ${ac_cv_lib_dl_dlopen+y}
18770then :
18771  printf %s "(cached) " >&6
18772else $as_nop
18773  ac_check_lib_save_LIBS=$LIBS
18774LIBS="-ldl  $LIBS"
18775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18776/* end confdefs.h.  */
18777
18778/* Override any GCC internal prototype to avoid an error.
18779   Use char because int might match the return type of a GCC
18780   builtin and then its argument prototype would still apply.  */
18781char dlopen ();
18782int
18783main (void)
18784{
18785return dlopen ();
18786  ;
18787  return 0;
18788}
18789_ACEOF
18790if ac_fn_c_try_link "$LINENO"
18791then :
18792  ac_cv_lib_dl_dlopen=yes
18793else $as_nop
18794  ac_cv_lib_dl_dlopen=no
18795fi
18796rm -f core conftest.err conftest.$ac_objext conftest.beam \
18797    conftest$ac_exeext conftest.$ac_ext
18798LIBS=$ac_check_lib_save_LIBS
18799fi
18800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18801printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18802if test "x$ac_cv_lib_dl_dlopen" = xyes
18803then :
18804  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18805else $as_nop
18806  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18807printf %s "checking for dlopen in -lsvld... " >&6; }
18808if test ${ac_cv_lib_svld_dlopen+y}
18809then :
18810  printf %s "(cached) " >&6
18811else $as_nop
18812  ac_check_lib_save_LIBS=$LIBS
18813LIBS="-lsvld  $LIBS"
18814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18815/* end confdefs.h.  */
18816
18817/* Override any GCC internal prototype to avoid an error.
18818   Use char because int might match the return type of a GCC
18819   builtin and then its argument prototype would still apply.  */
18820char dlopen ();
18821int
18822main (void)
18823{
18824return dlopen ();
18825  ;
18826  return 0;
18827}
18828_ACEOF
18829if ac_fn_c_try_link "$LINENO"
18830then :
18831  ac_cv_lib_svld_dlopen=yes
18832else $as_nop
18833  ac_cv_lib_svld_dlopen=no
18834fi
18835rm -f core conftest.err conftest.$ac_objext conftest.beam \
18836    conftest$ac_exeext conftest.$ac_ext
18837LIBS=$ac_check_lib_save_LIBS
18838fi
18839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18840printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
18841if test "x$ac_cv_lib_svld_dlopen" = xyes
18842then :
18843  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18844else $as_nop
18845  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18846printf %s "checking for dld_link in -ldld... " >&6; }
18847if test ${ac_cv_lib_dld_dld_link+y}
18848then :
18849  printf %s "(cached) " >&6
18850else $as_nop
18851  ac_check_lib_save_LIBS=$LIBS
18852LIBS="-ldld  $LIBS"
18853cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18854/* end confdefs.h.  */
18855
18856/* Override any GCC internal prototype to avoid an error.
18857   Use char because int might match the return type of a GCC
18858   builtin and then its argument prototype would still apply.  */
18859char dld_link ();
18860int
18861main (void)
18862{
18863return dld_link ();
18864  ;
18865  return 0;
18866}
18867_ACEOF
18868if ac_fn_c_try_link "$LINENO"
18869then :
18870  ac_cv_lib_dld_dld_link=yes
18871else $as_nop
18872  ac_cv_lib_dld_dld_link=no
18873fi
18874rm -f core conftest.err conftest.$ac_objext conftest.beam \
18875    conftest$ac_exeext conftest.$ac_ext
18876LIBS=$ac_check_lib_save_LIBS
18877fi
18878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18879printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
18880if test "x$ac_cv_lib_dld_dld_link" = xyes
18881then :
18882  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18883fi
18884
18885
18886fi
18887
18888
18889fi
18890
18891
18892fi
18893
18894
18895fi
18896
18897
18898fi
18899
18900    ;;
18901  esac
18902
18903  if test no = "$lt_cv_dlopen"; then
18904    enable_dlopen=no
18905  else
18906    enable_dlopen=yes
18907  fi
18908
18909  case $lt_cv_dlopen in
18910  dlopen)
18911    save_CPPFLAGS=$CPPFLAGS
18912    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18913
18914    save_LDFLAGS=$LDFLAGS
18915    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18916
18917    save_LIBS=$LIBS
18918    LIBS="$lt_cv_dlopen_libs $LIBS"
18919
18920    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18921printf %s "checking whether a program can dlopen itself... " >&6; }
18922if test ${lt_cv_dlopen_self+y}
18923then :
18924  printf %s "(cached) " >&6
18925else $as_nop
18926  	  if test yes = "$cross_compiling"; then :
18927  lt_cv_dlopen_self=cross
18928else
18929  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18930  lt_status=$lt_dlunknown
18931  cat > conftest.$ac_ext <<_LT_EOF
18932#line $LINENO "configure"
18933#include "confdefs.h"
18934
18935#if HAVE_DLFCN_H
18936#include <dlfcn.h>
18937#endif
18938
18939#include <stdio.h>
18940
18941#ifdef RTLD_GLOBAL
18942#  define LT_DLGLOBAL		RTLD_GLOBAL
18943#else
18944#  ifdef DL_GLOBAL
18945#    define LT_DLGLOBAL		DL_GLOBAL
18946#  else
18947#    define LT_DLGLOBAL		0
18948#  endif
18949#endif
18950
18951/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18952   find out it does not work in some platform. */
18953#ifndef LT_DLLAZY_OR_NOW
18954#  ifdef RTLD_LAZY
18955#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18956#  else
18957#    ifdef DL_LAZY
18958#      define LT_DLLAZY_OR_NOW		DL_LAZY
18959#    else
18960#      ifdef RTLD_NOW
18961#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18962#      else
18963#        ifdef DL_NOW
18964#          define LT_DLLAZY_OR_NOW	DL_NOW
18965#        else
18966#          define LT_DLLAZY_OR_NOW	0
18967#        endif
18968#      endif
18969#    endif
18970#  endif
18971#endif
18972
18973/* When -fvisibility=hidden is used, assume the code has been annotated
18974   correspondingly for the symbols needed.  */
18975#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18976int fnord () __attribute__((visibility("default")));
18977#endif
18978
18979int fnord () { return 42; }
18980int main ()
18981{
18982  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18983  int status = $lt_dlunknown;
18984
18985  if (self)
18986    {
18987      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18988      else
18989        {
18990	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18991          else puts (dlerror ());
18992	}
18993      /* dlclose (self); */
18994    }
18995  else
18996    puts (dlerror ());
18997
18998  return status;
18999}
19000_LT_EOF
19001  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19002  (eval $ac_link) 2>&5
19003  ac_status=$?
19004  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19005  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19006    (./conftest; exit; ) >&5 2>/dev/null
19007    lt_status=$?
19008    case x$lt_status in
19009      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19010      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19011      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19012    esac
19013  else :
19014    # compilation failed
19015    lt_cv_dlopen_self=no
19016  fi
19017fi
19018rm -fr conftest*
19019
19020
19021fi
19022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19023printf "%s\n" "$lt_cv_dlopen_self" >&6; }
19024
19025    if test yes = "$lt_cv_dlopen_self"; then
19026      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19027      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19028printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19029if test ${lt_cv_dlopen_self_static+y}
19030then :
19031  printf %s "(cached) " >&6
19032else $as_nop
19033  	  if test yes = "$cross_compiling"; then :
19034  lt_cv_dlopen_self_static=cross
19035else
19036  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19037  lt_status=$lt_dlunknown
19038  cat > conftest.$ac_ext <<_LT_EOF
19039#line $LINENO "configure"
19040#include "confdefs.h"
19041
19042#if HAVE_DLFCN_H
19043#include <dlfcn.h>
19044#endif
19045
19046#include <stdio.h>
19047
19048#ifdef RTLD_GLOBAL
19049#  define LT_DLGLOBAL		RTLD_GLOBAL
19050#else
19051#  ifdef DL_GLOBAL
19052#    define LT_DLGLOBAL		DL_GLOBAL
19053#  else
19054#    define LT_DLGLOBAL		0
19055#  endif
19056#endif
19057
19058/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19059   find out it does not work in some platform. */
19060#ifndef LT_DLLAZY_OR_NOW
19061#  ifdef RTLD_LAZY
19062#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19063#  else
19064#    ifdef DL_LAZY
19065#      define LT_DLLAZY_OR_NOW		DL_LAZY
19066#    else
19067#      ifdef RTLD_NOW
19068#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19069#      else
19070#        ifdef DL_NOW
19071#          define LT_DLLAZY_OR_NOW	DL_NOW
19072#        else
19073#          define LT_DLLAZY_OR_NOW	0
19074#        endif
19075#      endif
19076#    endif
19077#  endif
19078#endif
19079
19080/* When -fvisibility=hidden is used, assume the code has been annotated
19081   correspondingly for the symbols needed.  */
19082#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19083int fnord () __attribute__((visibility("default")));
19084#endif
19085
19086int fnord () { return 42; }
19087int main ()
19088{
19089  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19090  int status = $lt_dlunknown;
19091
19092  if (self)
19093    {
19094      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19095      else
19096        {
19097	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19098          else puts (dlerror ());
19099	}
19100      /* dlclose (self); */
19101    }
19102  else
19103    puts (dlerror ());
19104
19105  return status;
19106}
19107_LT_EOF
19108  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19109  (eval $ac_link) 2>&5
19110  ac_status=$?
19111  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19112  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19113    (./conftest; exit; ) >&5 2>/dev/null
19114    lt_status=$?
19115    case x$lt_status in
19116      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19117      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19118      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19119    esac
19120  else :
19121    # compilation failed
19122    lt_cv_dlopen_self_static=no
19123  fi
19124fi
19125rm -fr conftest*
19126
19127
19128fi
19129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19130printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19131    fi
19132
19133    CPPFLAGS=$save_CPPFLAGS
19134    LDFLAGS=$save_LDFLAGS
19135    LIBS=$save_LIBS
19136    ;;
19137  esac
19138
19139  case $lt_cv_dlopen_self in
19140  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19141  *) enable_dlopen_self=unknown ;;
19142  esac
19143
19144  case $lt_cv_dlopen_self_static in
19145  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19146  *) enable_dlopen_self_static=unknown ;;
19147  esac
19148fi
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166striplib=
19167old_striplib=
19168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19169printf %s "checking whether stripping libraries is possible... " >&6; }
19170if test -z "$STRIP"; then
19171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19172printf "%s\n" "no" >&6; }
19173else
19174  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19175    old_striplib="$STRIP --strip-debug"
19176    striplib="$STRIP --strip-unneeded"
19177    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19178printf "%s\n" "yes" >&6; }
19179  else
19180    case $host_os in
19181    darwin*)
19182      # FIXME - insert some real tests, host_os isn't really good enough
19183      striplib="$STRIP -x"
19184      old_striplib="$STRIP -S"
19185      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19186printf "%s\n" "yes" >&6; }
19187      ;;
19188    freebsd*)
19189      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
19190        old_striplib="$STRIP --strip-debug"
19191        striplib="$STRIP --strip-unneeded"
19192        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19193printf "%s\n" "yes" >&6; }
19194      else
19195        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19196printf "%s\n" "no" >&6; }
19197      fi
19198      ;;
19199    *)
19200      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19201printf "%s\n" "no" >&6; }
19202      ;;
19203    esac
19204  fi
19205fi
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218  # Report what library types will actually be built
19219  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19220printf %s "checking if libtool supports shared libraries... " >&6; }
19221  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19222printf "%s\n" "$can_build_shared" >&6; }
19223
19224  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19225printf %s "checking whether to build shared libraries... " >&6; }
19226  test no = "$can_build_shared" && enable_shared=no
19227
19228  # On AIX, shared libraries and static libraries use the same namespace, and
19229  # are all built from PIC.
19230  case $host_os in
19231  aix3*)
19232    test yes = "$enable_shared" && enable_static=no
19233    if test -n "$RANLIB"; then
19234      archive_cmds="$archive_cmds~\$RANLIB \$lib"
19235      postinstall_cmds='$RANLIB $lib'
19236    fi
19237    ;;
19238
19239  aix[4-9]*)
19240    if test ia64 != "$host_cpu"; then
19241      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19242      yes,aix,yes) ;;			# shared object as lib.so file only
19243      yes,svr4,*) ;;			# shared object as lib.so archive member only
19244      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
19245      esac
19246    fi
19247    ;;
19248  esac
19249  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19250printf "%s\n" "$enable_shared" >&6; }
19251
19252  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19253printf %s "checking whether to build static libraries... " >&6; }
19254  # Make sure either enable_shared or enable_static is yes.
19255  test yes = "$enable_shared" || enable_static=yes
19256  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19257printf "%s\n" "$enable_static" >&6; }
19258
19259
19260
19261
19262fi
19263ac_ext=c
19264ac_cpp='$CPP $CPPFLAGS'
19265ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19266ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19267ac_compiler_gnu=$ac_cv_c_compiler_gnu
19268
19269CC=$lt_save_CC
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282
19283
19284
19285        ac_config_commands="$ac_config_commands libtool"
19286
19287
19288
19289
19290# Only expand once:
19291
19292
19293
19294
19295
19296# Define a configure option for an alternate module directory
19297
19298# Check whether --with-xorg-module-dir was given.
19299if test ${with_xorg_module_dir+y}
19300then :
19301  withval=$with_xorg_module_dir; moduledir="$withval"
19302else $as_nop
19303  moduledir="$libdir/xorg/modules"
19304fi
19305
19306
19307# Store the list of server defined optional extensions in REQUIRED_MODULES
19308
19309
19310	SAVE_CFLAGS="$CFLAGS"
19311	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19312	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19313/* end confdefs.h.  */
19314
19315#include "xorg-server.h"
19316#if !defined RANDR
19317#error RANDR not defined
19318#endif
19319
19320int
19321main (void)
19322{
19323
19324  ;
19325  return 0;
19326}
19327_ACEOF
19328if ac_fn_c_try_compile "$LINENO"
19329then :
19330  _EXT_CHECK=yes
19331else $as_nop
19332  _EXT_CHECK=no
19333fi
19334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19335	CFLAGS="$SAVE_CFLAGS"
19336	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19337printf %s "checking if RANDR is defined... " >&6; }
19338	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19339printf "%s\n" "$_EXT_CHECK" >&6; }
19340	if test "$_EXT_CHECK" != no; then
19341		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19342	fi
19343
19344
19345
19346	SAVE_CFLAGS="$CFLAGS"
19347	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19348	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19349/* end confdefs.h.  */
19350
19351#include "xorg-server.h"
19352#if !defined RENDER
19353#error RENDER not defined
19354#endif
19355
19356int
19357main (void)
19358{
19359
19360  ;
19361  return 0;
19362}
19363_ACEOF
19364if ac_fn_c_try_compile "$LINENO"
19365then :
19366  _EXT_CHECK=yes
19367else $as_nop
19368  _EXT_CHECK=no
19369fi
19370rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19371	CFLAGS="$SAVE_CFLAGS"
19372	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
19373printf %s "checking if RENDER is defined... " >&6; }
19374	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19375printf "%s\n" "$_EXT_CHECK" >&6; }
19376	if test "$_EXT_CHECK" != no; then
19377		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19378	fi
19379
19380
19381
19382	SAVE_CFLAGS="$CFLAGS"
19383	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19384	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19385/* end confdefs.h.  */
19386
19387#include "xorg-server.h"
19388#if !defined XV
19389#error XV not defined
19390#endif
19391
19392int
19393main (void)
19394{
19395
19396  ;
19397  return 0;
19398}
19399_ACEOF
19400if ac_fn_c_try_compile "$LINENO"
19401then :
19402  _EXT_CHECK=yes
19403else $as_nop
19404  _EXT_CHECK=no
19405fi
19406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19407	CFLAGS="$SAVE_CFLAGS"
19408	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
19409printf %s "checking if XV is defined... " >&6; }
19410	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19411printf "%s\n" "$_EXT_CHECK" >&6; }
19412	if test "$_EXT_CHECK" != no; then
19413		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
19414	fi
19415
19416
19417
19418	SAVE_CFLAGS="$CFLAGS"
19419	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19420	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19421/* end confdefs.h.  */
19422
19423#include "xorg-server.h"
19424#if !defined DPMSExtension
19425#error DPMSExtension not defined
19426#endif
19427
19428int
19429main (void)
19430{
19431
19432  ;
19433  return 0;
19434}
19435_ACEOF
19436if ac_fn_c_try_compile "$LINENO"
19437then :
19438  _EXT_CHECK=yes
19439else $as_nop
19440  _EXT_CHECK=no
19441fi
19442rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19443	CFLAGS="$SAVE_CFLAGS"
19444	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
19445printf %s "checking if DPMSExtension is defined... " >&6; }
19446	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19447printf "%s\n" "$_EXT_CHECK" >&6; }
19448	if test "$_EXT_CHECK" != no; then
19449		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19450	fi
19451
19452
19453# Obtain compiler/linker options for the driver dependencies
19454
19455pkg_failed=no
19456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19457printf %s "checking for XORG... " >&6; }
19458
19459if test -n "$XORG_CFLAGS"; then
19460    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19461 elif test -n "$PKG_CONFIG"; then
19462    if test -n "$PKG_CONFIG" && \
19463    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19464  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES") 2>&5
19465  ac_status=$?
19466  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19467  test $ac_status = 0; }; then
19468  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19469		      test "x$?" != "x0" && pkg_failed=yes
19470else
19471  pkg_failed=yes
19472fi
19473 else
19474    pkg_failed=untried
19475fi
19476if test -n "$XORG_LIBS"; then
19477    pkg_cv_XORG_LIBS="$XORG_LIBS"
19478 elif test -n "$PKG_CONFIG"; then
19479    if test -n "$PKG_CONFIG" && \
19480    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.4 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19481  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES") 2>&5
19482  ac_status=$?
19483  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19484  test $ac_status = 0; }; then
19485  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19486		      test "x$?" != "x0" && pkg_failed=yes
19487else
19488  pkg_failed=yes
19489fi
19490 else
19491    pkg_failed=untried
19492fi
19493
19494
19495
19496if test $pkg_failed = yes; then
19497   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19498printf "%s\n" "no" >&6; }
19499
19500if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19501        _pkg_short_errors_supported=yes
19502else
19503        _pkg_short_errors_supported=no
19504fi
19505        if test $_pkg_short_errors_supported = yes; then
19506	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19507        else
19508	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19509        fi
19510	# Put the nasty error message in config.log where it belongs
19511	echo "$XORG_PKG_ERRORS" >&5
19512
19513	as_fn_error $? "Package requirements (xorg-server >= 1.4 xproto fontsproto $REQUIRED_MODULES) were not met:
19514
19515$XORG_PKG_ERRORS
19516
19517Consider adjusting the PKG_CONFIG_PATH environment variable if you
19518installed software in a non-standard prefix.
19519
19520Alternatively, you may set the environment variables XORG_CFLAGS
19521and XORG_LIBS to avoid the need to call pkg-config.
19522See the pkg-config man page for more details." "$LINENO" 5
19523elif test $pkg_failed = untried; then
19524     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19525printf "%s\n" "no" >&6; }
19526	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19527printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19528as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19529is in your PATH or set the PKG_CONFIG environment variable to the full
19530path to pkg-config.
19531
19532Alternatively, you may set the environment variables XORG_CFLAGS
19533and XORG_LIBS to avoid the need to call pkg-config.
19534See the pkg-config man page for more details.
19535
19536To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19537See \`config.log' for more details" "$LINENO" 5; }
19538else
19539	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19540	XORG_LIBS=$pkg_cv_XORG_LIBS
19541        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19542printf "%s\n" "yes" >&6; }
19543
19544fi
19545
19546# Checks for libraries.
19547SAVE_CPPFLAGS="$CPPFLAGS"
19548CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
19549ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
19550" "$ac_c_undeclared_builtin_options" "CFLAGS"
19551if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes
19552then :
19553  XSERVER_LIBPCIACCESS=yes
19554else $as_nop
19555  XSERVER_LIBPCIACCESS=no
19556fi
19557ac_fn_c_check_header_compile "$LINENO" "xf1bpp.h" "ac_cv_header_xf1bpp_h" "$ac_includes_default"
19558if test "x$ac_cv_header_xf1bpp_h" = xyes
19559then :
19560
19561printf "%s\n" "#define HAVE_XF1BPP 1" >>confdefs.h
19562
19563fi
19564
19565ac_fn_c_check_header_compile "$LINENO" "xf4bpp.h" "ac_cv_header_xf4bpp_h" "$ac_includes_default"
19566if test "x$ac_cv_header_xf4bpp_h" = xyes
19567then :
19568
19569printf "%s\n" "#define HAVE_XF4BPP 1" >>confdefs.h
19570
19571fi
19572
19573CPPFLAGS="$SAVE_CPPFLAGS"
19574
19575# Check whether --enable-xaa was given.
19576if test ${enable_xaa+y}
19577then :
19578  enableval=$enable_xaa; XAA="$enableval"
19579else $as_nop
19580  XAA=auto
19581fi
19582
19583if test "x$XAA" != xno; then
19584        save_CFLAGS=$CFLAGS
19585        save_CPPFLAGS=$CPPFLAGS
19586        CFLAGS=$XORG_CFLAGS
19587        CPPFLAGS="$XORG_CFLAGS"
19588               for ac_header in xaa.h
19589do :
19590  ac_fn_c_check_header_compile "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
19591if test "x$ac_cv_header_xaa_h" = xyes
19592then :
19593  printf "%s\n" "#define HAVE_XAA_H 1" >>confdefs.h
19594 XAA=yes
19595else $as_nop
19596  XAA=no
19597fi
19598
19599done
19600        CFLAGS=$save_CFLAGS
19601        CPPFLAGS=$save_CPPFLAGS
19602fi
19603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
19604printf %s "checking whether to include XAA support... " >&6; }
19605 if test "x$XAA" = xyes; then
19606  XAA_TRUE=
19607  XAA_FALSE='#'
19608else
19609  XAA_TRUE='#'
19610  XAA_FALSE=
19611fi
19612
19613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
19614printf "%s\n" "$XAA" >&6; }
19615
19616if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19617
19618pkg_failed=no
19619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19620printf %s "checking for PCIACCESS... " >&6; }
19621
19622if test -n "$PCIACCESS_CFLAGS"; then
19623    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19624 elif test -n "$PKG_CONFIG"; then
19625    if test -n "$PKG_CONFIG" && \
19626    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19627  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19628  ac_status=$?
19629  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19630  test $ac_status = 0; }; then
19631  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
19632		      test "x$?" != "x0" && pkg_failed=yes
19633else
19634  pkg_failed=yes
19635fi
19636 else
19637    pkg_failed=untried
19638fi
19639if test -n "$PCIACCESS_LIBS"; then
19640    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19641 elif test -n "$PKG_CONFIG"; then
19642    if test -n "$PKG_CONFIG" && \
19643    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
19644  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
19645  ac_status=$?
19646  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19647  test $ac_status = 0; }; then
19648  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
19649		      test "x$?" != "x0" && pkg_failed=yes
19650else
19651  pkg_failed=yes
19652fi
19653 else
19654    pkg_failed=untried
19655fi
19656
19657
19658
19659if test $pkg_failed = yes; then
19660   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19661printf "%s\n" "no" >&6; }
19662
19663if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19664        _pkg_short_errors_supported=yes
19665else
19666        _pkg_short_errors_supported=no
19667fi
19668        if test $_pkg_short_errors_supported = yes; then
19669	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19670        else
19671	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
19672        fi
19673	# Put the nasty error message in config.log where it belongs
19674	echo "$PCIACCESS_PKG_ERRORS" >&5
19675
19676	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
19677
19678$PCIACCESS_PKG_ERRORS
19679
19680Consider adjusting the PKG_CONFIG_PATH environment variable if you
19681installed software in a non-standard prefix.
19682
19683Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19684and PCIACCESS_LIBS to avoid the need to call pkg-config.
19685See the pkg-config man page for more details." "$LINENO" 5
19686elif test $pkg_failed = untried; then
19687     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19688printf "%s\n" "no" >&6; }
19689	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19690printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19691as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19692is in your PATH or set the PKG_CONFIG environment variable to the full
19693path to pkg-config.
19694
19695Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19696and PCIACCESS_LIBS to avoid the need to call pkg-config.
19697See the pkg-config man page for more details.
19698
19699To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19700See \`config.log' for more details" "$LINENO" 5; }
19701else
19702	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19703	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19704        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19705printf "%s\n" "yes" >&6; }
19706
19707fi
19708    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
19709fi
19710 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19711  XSERVER_LIBPCIACCESS_TRUE=
19712  XSERVER_LIBPCIACCESS_FALSE='#'
19713else
19714  XSERVER_LIBPCIACCESS_TRUE='#'
19715  XSERVER_LIBPCIACCESS_FALSE=
19716fi
19717
19718
19719
19720
19721
19722DRIVER_NAME=cirrus
19723
19724
19725ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
19726
19727cat >confcache <<\_ACEOF
19728# This file is a shell script that caches the results of configure
19729# tests run on this system so they can be shared between configure
19730# scripts and configure runs, see configure's option --config-cache.
19731# It is not useful on other systems.  If it contains results you don't
19732# want to keep, you may remove or edit it.
19733#
19734# config.status only pays attention to the cache file if you give it
19735# the --recheck option to rerun configure.
19736#
19737# `ac_cv_env_foo' variables (set or unset) will be overridden when
19738# loading this file, other *unset* `ac_cv_foo' will be assigned the
19739# following values.
19740
19741_ACEOF
19742
19743# The following way of writing the cache mishandles newlines in values,
19744# but we know of no workaround that is simple, portable, and efficient.
19745# So, we kill variables containing newlines.
19746# Ultrix sh set writes to stderr and can't be redirected directly,
19747# and sets the high bit in the cache file unless we assign to the vars.
19748(
19749  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19750    eval ac_val=\$$ac_var
19751    case $ac_val in #(
19752    *${as_nl}*)
19753      case $ac_var in #(
19754      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19755printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19756      esac
19757      case $ac_var in #(
19758      _ | IFS | as_nl) ;; #(
19759      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19760      *) { eval $ac_var=; unset $ac_var;} ;;
19761      esac ;;
19762    esac
19763  done
19764
19765  (set) 2>&1 |
19766    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19767    *${as_nl}ac_space=\ *)
19768      # `set' does not quote correctly, so add quotes: double-quote
19769      # substitution turns \\\\ into \\, and sed turns \\ into \.
19770      sed -n \
19771	"s/'/'\\\\''/g;
19772	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19773      ;; #(
19774    *)
19775      # `set' quotes correctly as required by POSIX, so do not add quotes.
19776      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19777      ;;
19778    esac |
19779    sort
19780) |
19781  sed '
19782     /^ac_cv_env_/b end
19783     t clear
19784     :clear
19785     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19786     t end
19787     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19788     :end' >>confcache
19789if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19790  if test -w "$cache_file"; then
19791    if test "x$cache_file" != "x/dev/null"; then
19792      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19793printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19794      if test ! -f "$cache_file" || test -h "$cache_file"; then
19795	cat confcache >"$cache_file"
19796      else
19797        case $cache_file in #(
19798        */* | ?:*)
19799	  mv -f confcache "$cache_file"$$ &&
19800	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19801        *)
19802	  mv -f confcache "$cache_file" ;;
19803	esac
19804      fi
19805    fi
19806  else
19807    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19808printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19809  fi
19810fi
19811rm -f confcache
19812
19813test "x$prefix" = xNONE && prefix=$ac_default_prefix
19814# Let make expand exec_prefix.
19815test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19816
19817DEFS=-DHAVE_CONFIG_H
19818
19819ac_libobjs=
19820ac_ltlibobjs=
19821U=
19822for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19823  # 1. Remove the extension, and $U if already installed.
19824  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19825  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19826  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19827  #    will be set to the directory where LIBOBJS objects are built.
19828  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19829  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19830done
19831LIBOBJS=$ac_libobjs
19832
19833LTLIBOBJS=$ac_ltlibobjs
19834
19835
19836{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19837printf %s "checking that generated files are newer than configure... " >&6; }
19838   if test -n "$am_sleep_pid"; then
19839     # Hide warnings about reused PIDs.
19840     wait $am_sleep_pid 2>/dev/null
19841   fi
19842   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19843printf "%s\n" "done" >&6; }
19844 if test -n "$EXEEXT"; then
19845  am__EXEEXT_TRUE=
19846  am__EXEEXT_FALSE='#'
19847else
19848  am__EXEEXT_TRUE='#'
19849  am__EXEEXT_FALSE=
19850fi
19851
19852if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19853  as_fn_error $? "conditional \"AMDEP\" was never defined.
19854Usually this means the macro was only invoked conditionally." "$LINENO" 5
19855fi
19856if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19857  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19858Usually this means the macro was only invoked conditionally." "$LINENO" 5
19859fi
19860if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19861  as_fn_error $? "conditional \"XAA\" was never defined.
19862Usually this means the macro was only invoked conditionally." "$LINENO" 5
19863fi
19864if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19865  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19866Usually this means the macro was only invoked conditionally." "$LINENO" 5
19867fi
19868
19869: "${CONFIG_STATUS=./config.status}"
19870ac_write_fail=0
19871ac_clean_files_save=$ac_clean_files
19872ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19874printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19875as_write_fail=0
19876cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19877#! $SHELL
19878# Generated by $as_me.
19879# Run this file to recreate the current configuration.
19880# Compiler output produced by configure, useful for debugging
19881# configure, is in config.log if it exists.
19882
19883debug=false
19884ac_cs_recheck=false
19885ac_cs_silent=false
19886
19887SHELL=\${CONFIG_SHELL-$SHELL}
19888export SHELL
19889_ASEOF
19890cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19891## -------------------- ##
19892## M4sh Initialization. ##
19893## -------------------- ##
19894
19895# Be more Bourne compatible
19896DUALCASE=1; export DUALCASE # for MKS sh
19897as_nop=:
19898if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19899then :
19900  emulate sh
19901  NULLCMD=:
19902  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19903  # is contrary to our usage.  Disable this feature.
19904  alias -g '${1+"$@"}'='"$@"'
19905  setopt NO_GLOB_SUBST
19906else $as_nop
19907  case `(set -o) 2>/dev/null` in #(
19908  *posix*) :
19909    set -o posix ;; #(
19910  *) :
19911     ;;
19912esac
19913fi
19914
19915
19916
19917# Reset variables that may have inherited troublesome values from
19918# the environment.
19919
19920# IFS needs to be set, to space, tab, and newline, in precisely that order.
19921# (If _AS_PATH_WALK were called with IFS unset, it would have the
19922# side effect of setting IFS to empty, thus disabling word splitting.)
19923# Quoting is to prevent editors from complaining about space-tab.
19924as_nl='
19925'
19926export as_nl
19927IFS=" ""	$as_nl"
19928
19929PS1='$ '
19930PS2='> '
19931PS4='+ '
19932
19933# Ensure predictable behavior from utilities with locale-dependent output.
19934LC_ALL=C
19935export LC_ALL
19936LANGUAGE=C
19937export LANGUAGE
19938
19939# We cannot yet rely on "unset" to work, but we need these variables
19940# to be unset--not just set to an empty or harmless value--now, to
19941# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
19942# also avoids known problems related to "unset" and subshell syntax
19943# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19944for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19945do eval test \${$as_var+y} \
19946  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19947done
19948
19949# Ensure that fds 0, 1, and 2 are open.
19950if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19951if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19952if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
19953
19954# The user is always right.
19955if ${PATH_SEPARATOR+false} :; then
19956  PATH_SEPARATOR=:
19957  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19958    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19959      PATH_SEPARATOR=';'
19960  }
19961fi
19962
19963
19964# Find who we are.  Look in the path if we contain no directory separator.
19965as_myself=
19966case $0 in #((
19967  *[\\/]* ) as_myself=$0 ;;
19968  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19969for as_dir in $PATH
19970do
19971  IFS=$as_save_IFS
19972  case $as_dir in #(((
19973    '') as_dir=./ ;;
19974    */) ;;
19975    *) as_dir=$as_dir/ ;;
19976  esac
19977    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19978  done
19979IFS=$as_save_IFS
19980
19981     ;;
19982esac
19983# We did not find ourselves, most probably we were run as `sh COMMAND'
19984# in which case we are not to be found in the path.
19985if test "x$as_myself" = x; then
19986  as_myself=$0
19987fi
19988if test ! -f "$as_myself"; then
19989  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19990  exit 1
19991fi
19992
19993
19994
19995# as_fn_error STATUS ERROR [LINENO LOG_FD]
19996# ----------------------------------------
19997# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19998# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19999# script with STATUS, using 1 if that was 0.
20000as_fn_error ()
20001{
20002  as_status=$1; test $as_status -eq 0 && as_status=1
20003  if test "$4"; then
20004    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20005    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20006  fi
20007  printf "%s\n" "$as_me: error: $2" >&2
20008  as_fn_exit $as_status
20009} # as_fn_error
20010
20011
20012
20013# as_fn_set_status STATUS
20014# -----------------------
20015# Set $? to STATUS, without forking.
20016as_fn_set_status ()
20017{
20018  return $1
20019} # as_fn_set_status
20020
20021# as_fn_exit STATUS
20022# -----------------
20023# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20024as_fn_exit ()
20025{
20026  set +e
20027  as_fn_set_status $1
20028  exit $1
20029} # as_fn_exit
20030
20031# as_fn_unset VAR
20032# ---------------
20033# Portably unset VAR.
20034as_fn_unset ()
20035{
20036  { eval $1=; unset $1;}
20037}
20038as_unset=as_fn_unset
20039
20040# as_fn_append VAR VALUE
20041# ----------------------
20042# Append the text in VALUE to the end of the definition contained in VAR. Take
20043# advantage of any shell optimizations that allow amortized linear growth over
20044# repeated appends, instead of the typical quadratic growth present in naive
20045# implementations.
20046if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20047then :
20048  eval 'as_fn_append ()
20049  {
20050    eval $1+=\$2
20051  }'
20052else $as_nop
20053  as_fn_append ()
20054  {
20055    eval $1=\$$1\$2
20056  }
20057fi # as_fn_append
20058
20059# as_fn_arith ARG...
20060# ------------------
20061# Perform arithmetic evaluation on the ARGs, and store the result in the
20062# global $as_val. Take advantage of shells that can avoid forks. The arguments
20063# must be portable across $(()) and expr.
20064if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20065then :
20066  eval 'as_fn_arith ()
20067  {
20068    as_val=$(( $* ))
20069  }'
20070else $as_nop
20071  as_fn_arith ()
20072  {
20073    as_val=`expr "$@" || test $? -eq 1`
20074  }
20075fi # as_fn_arith
20076
20077
20078if expr a : '\(a\)' >/dev/null 2>&1 &&
20079   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20080  as_expr=expr
20081else
20082  as_expr=false
20083fi
20084
20085if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20086  as_basename=basename
20087else
20088  as_basename=false
20089fi
20090
20091if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20092  as_dirname=dirname
20093else
20094  as_dirname=false
20095fi
20096
20097as_me=`$as_basename -- "$0" ||
20098$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20099	 X"$0" : 'X\(//\)$' \| \
20100	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20101printf "%s\n" X/"$0" |
20102    sed '/^.*\/\([^/][^/]*\)\/*$/{
20103	    s//\1/
20104	    q
20105	  }
20106	  /^X\/\(\/\/\)$/{
20107	    s//\1/
20108	    q
20109	  }
20110	  /^X\/\(\/\).*/{
20111	    s//\1/
20112	    q
20113	  }
20114	  s/.*/./; q'`
20115
20116# Avoid depending upon Character Ranges.
20117as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20118as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20119as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20120as_cr_digits='0123456789'
20121as_cr_alnum=$as_cr_Letters$as_cr_digits
20122
20123
20124# Determine whether it's possible to make 'echo' print without a newline.
20125# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20126# for compatibility with existing Makefiles.
20127ECHO_C= ECHO_N= ECHO_T=
20128case `echo -n x` in #(((((
20129-n*)
20130  case `echo 'xy\c'` in
20131  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20132  xy)  ECHO_C='\c';;
20133  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20134       ECHO_T='	';;
20135  esac;;
20136*)
20137  ECHO_N='-n';;
20138esac
20139
20140# For backward compatibility with old third-party macros, we provide
20141# the shell variables $as_echo and $as_echo_n.  New code should use
20142# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20143as_echo='printf %s\n'
20144as_echo_n='printf %s'
20145
20146rm -f conf$$ conf$$.exe conf$$.file
20147if test -d conf$$.dir; then
20148  rm -f conf$$.dir/conf$$.file
20149else
20150  rm -f conf$$.dir
20151  mkdir conf$$.dir 2>/dev/null
20152fi
20153if (echo >conf$$.file) 2>/dev/null; then
20154  if ln -s conf$$.file conf$$ 2>/dev/null; then
20155    as_ln_s='ln -s'
20156    # ... but there are two gotchas:
20157    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20158    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20159    # In both cases, we have to default to `cp -pR'.
20160    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20161      as_ln_s='cp -pR'
20162  elif ln conf$$.file conf$$ 2>/dev/null; then
20163    as_ln_s=ln
20164  else
20165    as_ln_s='cp -pR'
20166  fi
20167else
20168  as_ln_s='cp -pR'
20169fi
20170rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20171rmdir conf$$.dir 2>/dev/null
20172
20173
20174# as_fn_mkdir_p
20175# -------------
20176# Create "$as_dir" as a directory, including parents if necessary.
20177as_fn_mkdir_p ()
20178{
20179
20180  case $as_dir in #(
20181  -*) as_dir=./$as_dir;;
20182  esac
20183  test -d "$as_dir" || eval $as_mkdir_p || {
20184    as_dirs=
20185    while :; do
20186      case $as_dir in #(
20187      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20188      *) as_qdir=$as_dir;;
20189      esac
20190      as_dirs="'$as_qdir' $as_dirs"
20191      as_dir=`$as_dirname -- "$as_dir" ||
20192$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20193	 X"$as_dir" : 'X\(//\)[^/]' \| \
20194	 X"$as_dir" : 'X\(//\)$' \| \
20195	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20196printf "%s\n" X"$as_dir" |
20197    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20198	    s//\1/
20199	    q
20200	  }
20201	  /^X\(\/\/\)[^/].*/{
20202	    s//\1/
20203	    q
20204	  }
20205	  /^X\(\/\/\)$/{
20206	    s//\1/
20207	    q
20208	  }
20209	  /^X\(\/\).*/{
20210	    s//\1/
20211	    q
20212	  }
20213	  s/.*/./; q'`
20214      test -d "$as_dir" && break
20215    done
20216    test -z "$as_dirs" || eval "mkdir $as_dirs"
20217  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20218
20219
20220} # as_fn_mkdir_p
20221if mkdir -p . 2>/dev/null; then
20222  as_mkdir_p='mkdir -p "$as_dir"'
20223else
20224  test -d ./-p && rmdir ./-p
20225  as_mkdir_p=false
20226fi
20227
20228
20229# as_fn_executable_p FILE
20230# -----------------------
20231# Test if FILE is an executable regular file.
20232as_fn_executable_p ()
20233{
20234  test -f "$1" && test -x "$1"
20235} # as_fn_executable_p
20236as_test_x='test -x'
20237as_executable_p=as_fn_executable_p
20238
20239# Sed expression to map a string onto a valid CPP name.
20240as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20241
20242# Sed expression to map a string onto a valid variable name.
20243as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20244
20245
20246exec 6>&1
20247## ----------------------------------- ##
20248## Main body of $CONFIG_STATUS script. ##
20249## ----------------------------------- ##
20250_ASEOF
20251test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20252
20253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20254# Save the log message, to keep $0 and so on meaningful, and to
20255# report actual input values of CONFIG_FILES etc. instead of their
20256# values after options handling.
20257ac_log="
20258This file was extended by xf86-video-cirrus $as_me 1.6.0, which was
20259generated by GNU Autoconf 2.71.  Invocation command line was
20260
20261  CONFIG_FILES    = $CONFIG_FILES
20262  CONFIG_HEADERS  = $CONFIG_HEADERS
20263  CONFIG_LINKS    = $CONFIG_LINKS
20264  CONFIG_COMMANDS = $CONFIG_COMMANDS
20265  $ $0 $@
20266
20267on `(hostname || uname -n) 2>/dev/null | sed 1q`
20268"
20269
20270_ACEOF
20271
20272case $ac_config_files in *"
20273"*) set x $ac_config_files; shift; ac_config_files=$*;;
20274esac
20275
20276case $ac_config_headers in *"
20277"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20278esac
20279
20280
20281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20282# Files that config.status was made for.
20283config_files="$ac_config_files"
20284config_headers="$ac_config_headers"
20285config_commands="$ac_config_commands"
20286
20287_ACEOF
20288
20289cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20290ac_cs_usage="\
20291\`$as_me' instantiates files and other configuration actions
20292from templates according to the current configuration.  Unless the files
20293and actions are specified as TAGs, all are instantiated by default.
20294
20295Usage: $0 [OPTION]... [TAG]...
20296
20297  -h, --help       print this help, then exit
20298  -V, --version    print version number and configuration settings, then exit
20299      --config     print configuration, then exit
20300  -q, --quiet, --silent
20301                   do not print progress messages
20302  -d, --debug      don't remove temporary files
20303      --recheck    update $as_me by reconfiguring in the same conditions
20304      --file=FILE[:TEMPLATE]
20305                   instantiate the configuration file FILE
20306      --header=FILE[:TEMPLATE]
20307                   instantiate the configuration header FILE
20308
20309Configuration files:
20310$config_files
20311
20312Configuration headers:
20313$config_headers
20314
20315Configuration commands:
20316$config_commands
20317
20318Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-cirrus/issues>."
20319
20320_ACEOF
20321ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20322ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20324ac_cs_config='$ac_cs_config_escaped'
20325ac_cs_version="\\
20326xf86-video-cirrus config.status 1.6.0
20327configured by $0, generated by GNU Autoconf 2.71,
20328  with options \\"\$ac_cs_config\\"
20329
20330Copyright (C) 2021 Free Software Foundation, Inc.
20331This config.status script is free software; the Free Software Foundation
20332gives unlimited permission to copy, distribute and modify it."
20333
20334ac_pwd='$ac_pwd'
20335srcdir='$srcdir'
20336INSTALL='$INSTALL'
20337MKDIR_P='$MKDIR_P'
20338AWK='$AWK'
20339test -n "\$AWK" || AWK=awk
20340_ACEOF
20341
20342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20343# The default lists apply if the user does not specify any file.
20344ac_need_defaults=:
20345while test $# != 0
20346do
20347  case $1 in
20348  --*=?*)
20349    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20350    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20351    ac_shift=:
20352    ;;
20353  --*=)
20354    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20355    ac_optarg=
20356    ac_shift=:
20357    ;;
20358  *)
20359    ac_option=$1
20360    ac_optarg=$2
20361    ac_shift=shift
20362    ;;
20363  esac
20364
20365  case $ac_option in
20366  # Handling of the options.
20367  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20368    ac_cs_recheck=: ;;
20369  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20370    printf "%s\n" "$ac_cs_version"; exit ;;
20371  --config | --confi | --conf | --con | --co | --c )
20372    printf "%s\n" "$ac_cs_config"; exit ;;
20373  --debug | --debu | --deb | --de | --d | -d )
20374    debug=: ;;
20375  --file | --fil | --fi | --f )
20376    $ac_shift
20377    case $ac_optarg in
20378    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20379    '') as_fn_error $? "missing file argument" ;;
20380    esac
20381    as_fn_append CONFIG_FILES " '$ac_optarg'"
20382    ac_need_defaults=false;;
20383  --header | --heade | --head | --hea )
20384    $ac_shift
20385    case $ac_optarg in
20386    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20387    esac
20388    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20389    ac_need_defaults=false;;
20390  --he | --h)
20391    # Conflict between --help and --header
20392    as_fn_error $? "ambiguous option: \`$1'
20393Try \`$0 --help' for more information.";;
20394  --help | --hel | -h )
20395    printf "%s\n" "$ac_cs_usage"; exit ;;
20396  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20397  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20398    ac_cs_silent=: ;;
20399
20400  # This is an error.
20401  -*) as_fn_error $? "unrecognized option: \`$1'
20402Try \`$0 --help' for more information." ;;
20403
20404  *) as_fn_append ac_config_targets " $1"
20405     ac_need_defaults=false ;;
20406
20407  esac
20408  shift
20409done
20410
20411ac_configure_extra_args=
20412
20413if $ac_cs_silent; then
20414  exec 6>/dev/null
20415  ac_configure_extra_args="$ac_configure_extra_args --silent"
20416fi
20417
20418_ACEOF
20419cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20420if \$ac_cs_recheck; then
20421  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20422  shift
20423  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20424  CONFIG_SHELL='$SHELL'
20425  export CONFIG_SHELL
20426  exec "\$@"
20427fi
20428
20429_ACEOF
20430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20431exec 5>>config.log
20432{
20433  echo
20434  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20435## Running $as_me. ##
20436_ASBOX
20437  printf "%s\n" "$ac_log"
20438} >&5
20439
20440_ACEOF
20441cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20442#
20443# INIT-COMMANDS
20444#
20445AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20446
20447
20448# The HP-UX ksh and POSIX shell print the target directory to stdout
20449# if CDPATH is set.
20450(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20451
20452sed_quote_subst='$sed_quote_subst'
20453double_quote_subst='$double_quote_subst'
20454delay_variable_subst='$delay_variable_subst'
20455enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20456macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20457macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20458enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20459pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20460enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20461shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20462SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20463ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20464PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20465host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20466host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20467host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20468build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20469build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20470build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20471SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20472Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20473GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20474EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20475FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20476LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20477NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20478LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20479max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20480ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20481exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20482lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20483lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20484lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20485lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20486lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20487reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20488reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20489FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20490OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20491deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20492file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20493file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20494want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20495DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20496sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20497AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20498lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20499AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20500archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20501STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20502RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20503old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20504old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20505old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20506lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20507CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20508CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20509compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20510GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20511lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20512lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20513lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20514lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20515lt_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"`'
20516lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20517nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20518lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20519lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20520objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20521MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20522lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20523lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20524lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20525lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20526lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20527need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20528MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20529DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20530NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20531LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20532OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20533OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20534libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20535shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20536extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20537archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20538enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20539export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20540whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20541compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20542old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20543old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20544archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20545archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20546module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20547module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20548with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20549allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20550no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20551hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20552hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20553hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20554hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20555hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20556hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20557hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20558inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20559link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20560always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20561export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20562exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20563include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20564prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20565postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20566file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20567variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20568need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20569need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20570version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20571runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20572shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20573shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20574libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20575library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20576soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20577install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20578postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20579postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20580finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20581finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20582hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20583sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20584configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20585configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20586hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20587enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20588enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20589enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20590old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20591striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20592
20593LTCC='$LTCC'
20594LTCFLAGS='$LTCFLAGS'
20595compiler='$compiler_DEFAULT'
20596
20597# A function that is used when there is no print builtin or printf.
20598func_fallback_echo ()
20599{
20600  eval 'cat <<_LTECHO_EOF
20601\$1
20602_LTECHO_EOF'
20603}
20604
20605# Quote evaled strings.
20606for var in SHELL \
20607ECHO \
20608PATH_SEPARATOR \
20609SED \
20610GREP \
20611EGREP \
20612FGREP \
20613LD \
20614NM \
20615LN_S \
20616lt_SP2NL \
20617lt_NL2SP \
20618reload_flag \
20619FILECMD \
20620OBJDUMP \
20621deplibs_check_method \
20622file_magic_cmd \
20623file_magic_glob \
20624want_nocaseglob \
20625DLLTOOL \
20626sharedlib_from_linklib_cmd \
20627AR \
20628archiver_list_spec \
20629STRIP \
20630RANLIB \
20631CC \
20632CFLAGS \
20633compiler \
20634lt_cv_sys_global_symbol_pipe \
20635lt_cv_sys_global_symbol_to_cdecl \
20636lt_cv_sys_global_symbol_to_import \
20637lt_cv_sys_global_symbol_to_c_name_address \
20638lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20639lt_cv_nm_interface \
20640nm_file_list_spec \
20641lt_cv_truncate_bin \
20642lt_prog_compiler_no_builtin_flag \
20643lt_prog_compiler_pic \
20644lt_prog_compiler_wl \
20645lt_prog_compiler_static \
20646lt_cv_prog_compiler_c_o \
20647need_locks \
20648MANIFEST_TOOL \
20649DSYMUTIL \
20650NMEDIT \
20651LIPO \
20652OTOOL \
20653OTOOL64 \
20654shrext_cmds \
20655export_dynamic_flag_spec \
20656whole_archive_flag_spec \
20657compiler_needs_object \
20658with_gnu_ld \
20659allow_undefined_flag \
20660no_undefined_flag \
20661hardcode_libdir_flag_spec \
20662hardcode_libdir_separator \
20663exclude_expsyms \
20664include_expsyms \
20665file_list_spec \
20666variables_saved_for_relink \
20667libname_spec \
20668library_names_spec \
20669soname_spec \
20670install_override_mode \
20671finish_eval \
20672old_striplib \
20673striplib; do
20674    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20675    *[\\\\\\\`\\"\\\$]*)
20676      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20677      ;;
20678    *)
20679      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20680      ;;
20681    esac
20682done
20683
20684# Double-quote double-evaled strings.
20685for var in reload_cmds \
20686old_postinstall_cmds \
20687old_postuninstall_cmds \
20688old_archive_cmds \
20689extract_expsyms_cmds \
20690old_archive_from_new_cmds \
20691old_archive_from_expsyms_cmds \
20692archive_cmds \
20693archive_expsym_cmds \
20694module_cmds \
20695module_expsym_cmds \
20696export_symbols_cmds \
20697prelink_cmds \
20698postlink_cmds \
20699postinstall_cmds \
20700postuninstall_cmds \
20701finish_cmds \
20702sys_lib_search_path_spec \
20703configure_time_dlsearch_path \
20704configure_time_lt_sys_library_path; do
20705    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20706    *[\\\\\\\`\\"\\\$]*)
20707      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20708      ;;
20709    *)
20710      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20711      ;;
20712    esac
20713done
20714
20715ac_aux_dir='$ac_aux_dir'
20716
20717# See if we are running on zsh, and set the options that allow our
20718# commands through without removal of \ escapes INIT.
20719if test -n "\${ZSH_VERSION+set}"; then
20720   setopt NO_GLOB_SUBST
20721fi
20722
20723
20724    PACKAGE='$PACKAGE'
20725    VERSION='$VERSION'
20726    RM='$RM'
20727    ofile='$ofile'
20728
20729
20730
20731
20732_ACEOF
20733
20734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20735
20736# Handling of arguments.
20737for ac_config_target in $ac_config_targets
20738do
20739  case $ac_config_target in
20740    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20741    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20742    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20743    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20744    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20745    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20746
20747  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20748  esac
20749done
20750
20751
20752# If the user did not use the arguments to specify the items to instantiate,
20753# then the envvar interface is used.  Set only those that are not.
20754# We use the long form for the default assignment because of an extremely
20755# bizarre bug on SunOS 4.1.3.
20756if $ac_need_defaults; then
20757  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20758  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20759  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20760fi
20761
20762# Have a temporary directory for convenience.  Make it in the build tree
20763# simply because there is no reason against having it here, and in addition,
20764# creating and moving files from /tmp can sometimes cause problems.
20765# Hook for its removal unless debugging.
20766# Note that there is a small window in which the directory will not be cleaned:
20767# after its creation but before its name has been assigned to `$tmp'.
20768$debug ||
20769{
20770  tmp= ac_tmp=
20771  trap 'exit_status=$?
20772  : "${ac_tmp:=$tmp}"
20773  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20774' 0
20775  trap 'as_fn_exit 1' 1 2 13 15
20776}
20777# Create a (secure) tmp directory for tmp files.
20778
20779{
20780  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20781  test -d "$tmp"
20782}  ||
20783{
20784  tmp=./conf$$-$RANDOM
20785  (umask 077 && mkdir "$tmp")
20786} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20787ac_tmp=$tmp
20788
20789# Set up the scripts for CONFIG_FILES section.
20790# No need to generate them if there are no CONFIG_FILES.
20791# This happens for instance with `./config.status config.h'.
20792if test -n "$CONFIG_FILES"; then
20793
20794
20795ac_cr=`echo X | tr X '\015'`
20796# On cygwin, bash can eat \r inside `` if the user requested igncr.
20797# But we know of no other shell where ac_cr would be empty at this
20798# point, so we can use a bashism as a fallback.
20799if test "x$ac_cr" = x; then
20800  eval ac_cr=\$\'\\r\'
20801fi
20802ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20803if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20804  ac_cs_awk_cr='\\r'
20805else
20806  ac_cs_awk_cr=$ac_cr
20807fi
20808
20809echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20810_ACEOF
20811
20812
20813{
20814  echo "cat >conf$$subs.awk <<_ACEOF" &&
20815  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20816  echo "_ACEOF"
20817} >conf$$subs.sh ||
20818  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20819ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20820ac_delim='%!_!# '
20821for ac_last_try in false false false false false :; do
20822  . ./conf$$subs.sh ||
20823    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20824
20825  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20826  if test $ac_delim_n = $ac_delim_num; then
20827    break
20828  elif $ac_last_try; then
20829    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20830  else
20831    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20832  fi
20833done
20834rm -f conf$$subs.sh
20835
20836cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20837cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20838_ACEOF
20839sed -n '
20840h
20841s/^/S["/; s/!.*/"]=/
20842p
20843g
20844s/^[^!]*!//
20845:repl
20846t repl
20847s/'"$ac_delim"'$//
20848t delim
20849:nl
20850h
20851s/\(.\{148\}\)..*/\1/
20852t more1
20853s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20854p
20855n
20856b repl
20857:more1
20858s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20859p
20860g
20861s/.\{148\}//
20862t nl
20863:delim
20864h
20865s/\(.\{148\}\)..*/\1/
20866t more2
20867s/["\\]/\\&/g; s/^/"/; s/$/"/
20868p
20869b
20870:more2
20871s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20872p
20873g
20874s/.\{148\}//
20875t delim
20876' <conf$$subs.awk | sed '
20877/^[^""]/{
20878  N
20879  s/\n//
20880}
20881' >>$CONFIG_STATUS || ac_write_fail=1
20882rm -f conf$$subs.awk
20883cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20884_ACAWK
20885cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20886  for (key in S) S_is_set[key] = 1
20887  FS = ""
20888
20889}
20890{
20891  line = $ 0
20892  nfields = split(line, field, "@")
20893  substed = 0
20894  len = length(field[1])
20895  for (i = 2; i < nfields; i++) {
20896    key = field[i]
20897    keylen = length(key)
20898    if (S_is_set[key]) {
20899      value = S[key]
20900      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20901      len += length(value) + length(field[++i])
20902      substed = 1
20903    } else
20904      len += 1 + keylen
20905  }
20906
20907  print line
20908}
20909
20910_ACAWK
20911_ACEOF
20912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20913if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20914  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20915else
20916  cat
20917fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20918  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20919_ACEOF
20920
20921# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20922# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20923# trailing colons and then remove the whole line if VPATH becomes empty
20924# (actually we leave an empty line to preserve line numbers).
20925if test "x$srcdir" = x.; then
20926  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20927h
20928s///
20929s/^/:/
20930s/[	 ]*$/:/
20931s/:\$(srcdir):/:/g
20932s/:\${srcdir}:/:/g
20933s/:@srcdir@:/:/g
20934s/^:*//
20935s/:*$//
20936x
20937s/\(=[	 ]*\).*/\1/
20938G
20939s/\n//
20940s/^[^=]*=[	 ]*$//
20941}'
20942fi
20943
20944cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20945fi # test -n "$CONFIG_FILES"
20946
20947# Set up the scripts for CONFIG_HEADERS section.
20948# No need to generate them if there are no CONFIG_HEADERS.
20949# This happens for instance with `./config.status Makefile'.
20950if test -n "$CONFIG_HEADERS"; then
20951cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20952BEGIN {
20953_ACEOF
20954
20955# Transform confdefs.h into an awk script `defines.awk', embedded as
20956# here-document in config.status, that substitutes the proper values into
20957# config.h.in to produce config.h.
20958
20959# Create a delimiter string that does not exist in confdefs.h, to ease
20960# handling of long lines.
20961ac_delim='%!_!# '
20962for ac_last_try in false false :; do
20963  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20964  if test -z "$ac_tt"; then
20965    break
20966  elif $ac_last_try; then
20967    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20968  else
20969    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20970  fi
20971done
20972
20973# For the awk script, D is an array of macro values keyed by name,
20974# likewise P contains macro parameters if any.  Preserve backslash
20975# newline sequences.
20976
20977ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20978sed -n '
20979s/.\{148\}/&'"$ac_delim"'/g
20980t rset
20981:rset
20982s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20983t def
20984d
20985:def
20986s/\\$//
20987t bsnl
20988s/["\\]/\\&/g
20989s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20990D["\1"]=" \3"/p
20991s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20992d
20993:bsnl
20994s/["\\]/\\&/g
20995s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20996D["\1"]=" \3\\\\\\n"\\/p
20997t cont
20998s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20999t cont
21000d
21001:cont
21002n
21003s/.\{148\}/&'"$ac_delim"'/g
21004t clear
21005:clear
21006s/\\$//
21007t bsnlc
21008s/["\\]/\\&/g; s/^/"/; s/$/"/p
21009d
21010:bsnlc
21011s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21012b cont
21013' <confdefs.h | sed '
21014s/'"$ac_delim"'/"\\\
21015"/g' >>$CONFIG_STATUS || ac_write_fail=1
21016
21017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21018  for (key in D) D_is_set[key] = 1
21019  FS = ""
21020}
21021/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21022  line = \$ 0
21023  split(line, arg, " ")
21024  if (arg[1] == "#") {
21025    defundef = arg[2]
21026    mac1 = arg[3]
21027  } else {
21028    defundef = substr(arg[1], 2)
21029    mac1 = arg[2]
21030  }
21031  split(mac1, mac2, "(") #)
21032  macro = mac2[1]
21033  prefix = substr(line, 1, index(line, defundef) - 1)
21034  if (D_is_set[macro]) {
21035    # Preserve the white space surrounding the "#".
21036    print prefix "define", macro P[macro] D[macro]
21037    next
21038  } else {
21039    # Replace #undef with comments.  This is necessary, for example,
21040    # in the case of _POSIX_SOURCE, which is predefined and required
21041    # on some systems where configure will not decide to define it.
21042    if (defundef == "undef") {
21043      print "/*", prefix defundef, macro, "*/"
21044      next
21045    }
21046  }
21047}
21048{ print }
21049_ACAWK
21050_ACEOF
21051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21052  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21053fi # test -n "$CONFIG_HEADERS"
21054
21055
21056eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21057shift
21058for ac_tag
21059do
21060  case $ac_tag in
21061  :[FHLC]) ac_mode=$ac_tag; continue;;
21062  esac
21063  case $ac_mode$ac_tag in
21064  :[FHL]*:*);;
21065  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21066  :[FH]-) ac_tag=-:-;;
21067  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21068  esac
21069  ac_save_IFS=$IFS
21070  IFS=:
21071  set x $ac_tag
21072  IFS=$ac_save_IFS
21073  shift
21074  ac_file=$1
21075  shift
21076
21077  case $ac_mode in
21078  :L) ac_source=$1;;
21079  :[FH])
21080    ac_file_inputs=
21081    for ac_f
21082    do
21083      case $ac_f in
21084      -) ac_f="$ac_tmp/stdin";;
21085      *) # Look for the file first in the build tree, then in the source tree
21086	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21087	 # because $ac_f cannot contain `:'.
21088	 test -f "$ac_f" ||
21089	   case $ac_f in
21090	   [\\/$]*) false;;
21091	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21092	   esac ||
21093	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21094      esac
21095      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21096      as_fn_append ac_file_inputs " '$ac_f'"
21097    done
21098
21099    # Let's still pretend it is `configure' which instantiates (i.e., don't
21100    # use $as_me), people would be surprised to read:
21101    #    /* config.h.  Generated by config.status.  */
21102    configure_input='Generated from '`
21103	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21104	`' by configure.'
21105    if test x"$ac_file" != x-; then
21106      configure_input="$ac_file.  $configure_input"
21107      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21108printf "%s\n" "$as_me: creating $ac_file" >&6;}
21109    fi
21110    # Neutralize special characters interpreted by sed in replacement strings.
21111    case $configure_input in #(
21112    *\&* | *\|* | *\\* )
21113       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21114       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21115    *) ac_sed_conf_input=$configure_input;;
21116    esac
21117
21118    case $ac_tag in
21119    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21120      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21121    esac
21122    ;;
21123  esac
21124
21125  ac_dir=`$as_dirname -- "$ac_file" ||
21126$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21127	 X"$ac_file" : 'X\(//\)[^/]' \| \
21128	 X"$ac_file" : 'X\(//\)$' \| \
21129	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21130printf "%s\n" X"$ac_file" |
21131    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21132	    s//\1/
21133	    q
21134	  }
21135	  /^X\(\/\/\)[^/].*/{
21136	    s//\1/
21137	    q
21138	  }
21139	  /^X\(\/\/\)$/{
21140	    s//\1/
21141	    q
21142	  }
21143	  /^X\(\/\).*/{
21144	    s//\1/
21145	    q
21146	  }
21147	  s/.*/./; q'`
21148  as_dir="$ac_dir"; as_fn_mkdir_p
21149  ac_builddir=.
21150
21151case "$ac_dir" in
21152.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21153*)
21154  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21155  # A ".." for each directory in $ac_dir_suffix.
21156  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21157  case $ac_top_builddir_sub in
21158  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21159  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21160  esac ;;
21161esac
21162ac_abs_top_builddir=$ac_pwd
21163ac_abs_builddir=$ac_pwd$ac_dir_suffix
21164# for backward compatibility:
21165ac_top_builddir=$ac_top_build_prefix
21166
21167case $srcdir in
21168  .)  # We are building in place.
21169    ac_srcdir=.
21170    ac_top_srcdir=$ac_top_builddir_sub
21171    ac_abs_top_srcdir=$ac_pwd ;;
21172  [\\/]* | ?:[\\/]* )  # Absolute name.
21173    ac_srcdir=$srcdir$ac_dir_suffix;
21174    ac_top_srcdir=$srcdir
21175    ac_abs_top_srcdir=$srcdir ;;
21176  *) # Relative name.
21177    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21178    ac_top_srcdir=$ac_top_build_prefix$srcdir
21179    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21180esac
21181ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21182
21183
21184  case $ac_mode in
21185  :F)
21186  #
21187  # CONFIG_FILE
21188  #
21189
21190  case $INSTALL in
21191  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21192  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21193  esac
21194  ac_MKDIR_P=$MKDIR_P
21195  case $MKDIR_P in
21196  [\\/$]* | ?:[\\/]* ) ;;
21197  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21198  esac
21199_ACEOF
21200
21201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21202# If the template does not know about datarootdir, expand it.
21203# FIXME: This hack should be removed a few years after 2.60.
21204ac_datarootdir_hack=; ac_datarootdir_seen=
21205ac_sed_dataroot='
21206/datarootdir/ {
21207  p
21208  q
21209}
21210/@datadir@/p
21211/@docdir@/p
21212/@infodir@/p
21213/@localedir@/p
21214/@mandir@/p'
21215case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21216*datarootdir*) ac_datarootdir_seen=yes;;
21217*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21218  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21219printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21220_ACEOF
21221cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21222  ac_datarootdir_hack='
21223  s&@datadir@&$datadir&g
21224  s&@docdir@&$docdir&g
21225  s&@infodir@&$infodir&g
21226  s&@localedir@&$localedir&g
21227  s&@mandir@&$mandir&g
21228  s&\\\${datarootdir}&$datarootdir&g' ;;
21229esac
21230_ACEOF
21231
21232# Neutralize VPATH when `$srcdir' = `.'.
21233# Shell code in configure.ac might set extrasub.
21234# FIXME: do we really want to maintain this feature?
21235cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21236ac_sed_extra="$ac_vpsub
21237$extrasub
21238_ACEOF
21239cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21240:t
21241/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21242s|@configure_input@|$ac_sed_conf_input|;t t
21243s&@top_builddir@&$ac_top_builddir_sub&;t t
21244s&@top_build_prefix@&$ac_top_build_prefix&;t t
21245s&@srcdir@&$ac_srcdir&;t t
21246s&@abs_srcdir@&$ac_abs_srcdir&;t t
21247s&@top_srcdir@&$ac_top_srcdir&;t t
21248s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21249s&@builddir@&$ac_builddir&;t t
21250s&@abs_builddir@&$ac_abs_builddir&;t t
21251s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21252s&@INSTALL@&$ac_INSTALL&;t t
21253s&@MKDIR_P@&$ac_MKDIR_P&;t t
21254$ac_datarootdir_hack
21255"
21256eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21257  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21258
21259test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21260  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21261  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21262      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21263  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21264which seems to be undefined.  Please make sure it is defined" >&5
21265printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21266which seems to be undefined.  Please make sure it is defined" >&2;}
21267
21268  rm -f "$ac_tmp/stdin"
21269  case $ac_file in
21270  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21271  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21272  esac \
21273  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21274 ;;
21275  :H)
21276  #
21277  # CONFIG_HEADER
21278  #
21279  if test x"$ac_file" != x-; then
21280    {
21281      printf "%s\n" "/* $configure_input  */" >&1 \
21282      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21283    } >"$ac_tmp/config.h" \
21284      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21285    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21286      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21287printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21288    else
21289      rm -f "$ac_file"
21290      mv "$ac_tmp/config.h" "$ac_file" \
21291	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21292    fi
21293  else
21294    printf "%s\n" "/* $configure_input  */" >&1 \
21295      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21296      || as_fn_error $? "could not create -" "$LINENO" 5
21297  fi
21298# Compute "$ac_file"'s index in $config_headers.
21299_am_arg="$ac_file"
21300_am_stamp_count=1
21301for _am_header in $config_headers :; do
21302  case $_am_header in
21303    $_am_arg | $_am_arg:* )
21304      break ;;
21305    * )
21306      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21307  esac
21308done
21309echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21310$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21311	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21312	 X"$_am_arg" : 'X\(//\)$' \| \
21313	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21314printf "%s\n" X"$_am_arg" |
21315    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21316	    s//\1/
21317	    q
21318	  }
21319	  /^X\(\/\/\)[^/].*/{
21320	    s//\1/
21321	    q
21322	  }
21323	  /^X\(\/\/\)$/{
21324	    s//\1/
21325	    q
21326	  }
21327	  /^X\(\/\).*/{
21328	    s//\1/
21329	    q
21330	  }
21331	  s/.*/./; q'`/stamp-h$_am_stamp_count
21332 ;;
21333
21334  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21335printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21336 ;;
21337  esac
21338
21339
21340  case $ac_file$ac_mode in
21341    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21342  # Older Autoconf quotes --file arguments for eval, but not when files
21343  # are listed without --file.  Let's play safe and only enable the eval
21344  # if we detect the quoting.
21345  # TODO: see whether this extra hack can be removed once we start
21346  # requiring Autoconf 2.70 or later.
21347  case $CONFIG_FILES in #(
21348  *\'*) :
21349    eval set x "$CONFIG_FILES" ;; #(
21350  *) :
21351    set x $CONFIG_FILES ;; #(
21352  *) :
21353     ;;
21354esac
21355  shift
21356  # Used to flag and report bootstrapping failures.
21357  am_rc=0
21358  for am_mf
21359  do
21360    # Strip MF so we end up with the name of the file.
21361    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21362    # Check whether this is an Automake generated Makefile which includes
21363    # dependency-tracking related rules and includes.
21364    # Grep'ing the whole file directly is not great: AIX grep has a line
21365    # limit of 2048, but all sed's we know have understand at least 4000.
21366    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21367      || continue
21368    am_dirpart=`$as_dirname -- "$am_mf" ||
21369$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21370	 X"$am_mf" : 'X\(//\)[^/]' \| \
21371	 X"$am_mf" : 'X\(//\)$' \| \
21372	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21373printf "%s\n" X"$am_mf" |
21374    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21375	    s//\1/
21376	    q
21377	  }
21378	  /^X\(\/\/\)[^/].*/{
21379	    s//\1/
21380	    q
21381	  }
21382	  /^X\(\/\/\)$/{
21383	    s//\1/
21384	    q
21385	  }
21386	  /^X\(\/\).*/{
21387	    s//\1/
21388	    q
21389	  }
21390	  s/.*/./; q'`
21391    am_filepart=`$as_basename -- "$am_mf" ||
21392$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21393	 X"$am_mf" : 'X\(//\)$' \| \
21394	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21395printf "%s\n" X/"$am_mf" |
21396    sed '/^.*\/\([^/][^/]*\)\/*$/{
21397	    s//\1/
21398	    q
21399	  }
21400	  /^X\/\(\/\/\)$/{
21401	    s//\1/
21402	    q
21403	  }
21404	  /^X\/\(\/\).*/{
21405	    s//\1/
21406	    q
21407	  }
21408	  s/.*/./; q'`
21409    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21410      && sed -e '/# am--include-marker/d' "$am_filepart" \
21411        | $MAKE -f - am--depfiles" >&5
21412   (cd "$am_dirpart" \
21413      && sed -e '/# am--include-marker/d' "$am_filepart" \
21414        | $MAKE -f - am--depfiles) >&5 2>&5
21415   ac_status=$?
21416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417   (exit $ac_status); } || am_rc=$?
21418  done
21419  if test $am_rc -ne 0; then
21420    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21421printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21422as_fn_error $? "Something went wrong bootstrapping makefile fragments
21423    for automatic dependency tracking.  If GNU make was not used, consider
21424    re-running the configure script with MAKE=\"gmake\" (or whatever is
21425    necessary).  You can also try re-running configure with the
21426    '--disable-dependency-tracking' option to at least be able to build
21427    the package (albeit without support for automatic dependency tracking).
21428See \`config.log' for more details" "$LINENO" 5; }
21429  fi
21430  { am_dirpart=; unset am_dirpart;}
21431  { am_filepart=; unset am_filepart;}
21432  { am_mf=; unset am_mf;}
21433  { am_rc=; unset am_rc;}
21434  rm -f conftest-deps.mk
21435}
21436 ;;
21437    "libtool":C)
21438
21439    # See if we are running on zsh, and set the options that allow our
21440    # commands through without removal of \ escapes.
21441    if test -n "${ZSH_VERSION+set}"; then
21442      setopt NO_GLOB_SUBST
21443    fi
21444
21445    cfgfile=${ofile}T
21446    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21447    $RM "$cfgfile"
21448
21449    cat <<_LT_EOF >> "$cfgfile"
21450#! $SHELL
21451# Generated automatically by $as_me ($PACKAGE) $VERSION
21452# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21453# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21454
21455# Provide generalized library-building support services.
21456# Written by Gordon Matzigkeit, 1996
21457
21458# Copyright (C) 2014 Free Software Foundation, Inc.
21459# This is free software; see the source for copying conditions.  There is NO
21460# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21461
21462# GNU Libtool is free software; you can redistribute it and/or modify
21463# it under the terms of the GNU General Public License as published by
21464# the Free Software Foundation; either version 2 of of the License, or
21465# (at your option) any later version.
21466#
21467# As a special exception to the GNU General Public License, if you
21468# distribute this file as part of a program or library that is built
21469# using GNU Libtool, you may include this file under the  same
21470# distribution terms that you use for the rest of that program.
21471#
21472# GNU Libtool is distributed in the hope that it will be useful, but
21473# WITHOUT ANY WARRANTY; without even the implied warranty of
21474# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21475# GNU General Public License for more details.
21476#
21477# You should have received a copy of the GNU General Public License
21478# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21479
21480
21481# The names of the tagged configurations supported by this script.
21482available_tags=''
21483
21484# Configured defaults for sys_lib_dlsearch_path munging.
21485: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21486
21487# ### BEGIN LIBTOOL CONFIG
21488
21489# Whether or not to build static libraries.
21490build_old_libs=$enable_static
21491
21492# Which release of libtool.m4 was used?
21493macro_version=$macro_version
21494macro_revision=$macro_revision
21495
21496# Whether or not to build shared libraries.
21497build_libtool_libs=$enable_shared
21498
21499# What type of objects to build.
21500pic_mode=$pic_mode
21501
21502# Whether or not to optimize for fast installation.
21503fast_install=$enable_fast_install
21504
21505# Shared archive member basename,for filename based shared library versioning on AIX.
21506shared_archive_member_spec=$shared_archive_member_spec
21507
21508# Shell to use when invoking shell scripts.
21509SHELL=$lt_SHELL
21510
21511# An echo program that protects backslashes.
21512ECHO=$lt_ECHO
21513
21514# The PATH separator for the build system.
21515PATH_SEPARATOR=$lt_PATH_SEPARATOR
21516
21517# The host system.
21518host_alias=$host_alias
21519host=$host
21520host_os=$host_os
21521
21522# The build system.
21523build_alias=$build_alias
21524build=$build
21525build_os=$build_os
21526
21527# A sed program that does not truncate output.
21528SED=$lt_SED
21529
21530# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21531Xsed="\$SED -e 1s/^X//"
21532
21533# A grep program that handles long lines.
21534GREP=$lt_GREP
21535
21536# An ERE matcher.
21537EGREP=$lt_EGREP
21538
21539# A literal string matcher.
21540FGREP=$lt_FGREP
21541
21542# A BSD- or MS-compatible name lister.
21543NM=$lt_NM
21544
21545# Whether we need soft or hard links.
21546LN_S=$lt_LN_S
21547
21548# What is the maximum length of a command?
21549max_cmd_len=$max_cmd_len
21550
21551# Object file suffix (normally "o").
21552objext=$ac_objext
21553
21554# Executable file suffix (normally "").
21555exeext=$exeext
21556
21557# whether the shell understands "unset".
21558lt_unset=$lt_unset
21559
21560# turn spaces into newlines.
21561SP2NL=$lt_lt_SP2NL
21562
21563# turn newlines into spaces.
21564NL2SP=$lt_lt_NL2SP
21565
21566# convert \$build file names to \$host format.
21567to_host_file_cmd=$lt_cv_to_host_file_cmd
21568
21569# convert \$build files to toolchain format.
21570to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21571
21572# A file(cmd) program that detects file types.
21573FILECMD=$lt_FILECMD
21574
21575# An object symbol dumper.
21576OBJDUMP=$lt_OBJDUMP
21577
21578# Method to check whether dependent libraries are shared objects.
21579deplibs_check_method=$lt_deplibs_check_method
21580
21581# Command to use when deplibs_check_method = "file_magic".
21582file_magic_cmd=$lt_file_magic_cmd
21583
21584# How to find potential files when deplibs_check_method = "file_magic".
21585file_magic_glob=$lt_file_magic_glob
21586
21587# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21588want_nocaseglob=$lt_want_nocaseglob
21589
21590# DLL creation program.
21591DLLTOOL=$lt_DLLTOOL
21592
21593# Command to associate shared and link libraries.
21594sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21595
21596# The archiver.
21597AR=$lt_AR
21598
21599# Flags to create an archive (by configure).
21600lt_ar_flags=$lt_ar_flags
21601
21602# Flags to create an archive.
21603AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21604
21605# How to feed a file listing to the archiver.
21606archiver_list_spec=$lt_archiver_list_spec
21607
21608# A symbol stripping program.
21609STRIP=$lt_STRIP
21610
21611# Commands used to install an old-style archive.
21612RANLIB=$lt_RANLIB
21613old_postinstall_cmds=$lt_old_postinstall_cmds
21614old_postuninstall_cmds=$lt_old_postuninstall_cmds
21615
21616# Whether to use a lock for old archive extraction.
21617lock_old_archive_extraction=$lock_old_archive_extraction
21618
21619# A C compiler.
21620LTCC=$lt_CC
21621
21622# LTCC compiler flags.
21623LTCFLAGS=$lt_CFLAGS
21624
21625# Take the output of nm and produce a listing of raw symbols and C names.
21626global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21627
21628# Transform the output of nm in a proper C declaration.
21629global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21630
21631# Transform the output of nm into a list of symbols to manually relocate.
21632global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21633
21634# Transform the output of nm in a C name address pair.
21635global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21636
21637# Transform the output of nm in a C name address pair when lib prefix is needed.
21638global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21639
21640# The name lister interface.
21641nm_interface=$lt_lt_cv_nm_interface
21642
21643# Specify filename containing input files for \$NM.
21644nm_file_list_spec=$lt_nm_file_list_spec
21645
21646# The root where to search for dependent libraries,and where our libraries should be installed.
21647lt_sysroot=$lt_sysroot
21648
21649# Command to truncate a binary pipe.
21650lt_truncate_bin=$lt_lt_cv_truncate_bin
21651
21652# The name of the directory that contains temporary libtool files.
21653objdir=$objdir
21654
21655# Used to examine libraries when file_magic_cmd begins with "file".
21656MAGIC_CMD=$MAGIC_CMD
21657
21658# Must we lock files when doing compilation?
21659need_locks=$lt_need_locks
21660
21661# Manifest tool.
21662MANIFEST_TOOL=$lt_MANIFEST_TOOL
21663
21664# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21665DSYMUTIL=$lt_DSYMUTIL
21666
21667# Tool to change global to local symbols on Mac OS X.
21668NMEDIT=$lt_NMEDIT
21669
21670# Tool to manipulate fat objects and archives on Mac OS X.
21671LIPO=$lt_LIPO
21672
21673# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21674OTOOL=$lt_OTOOL
21675
21676# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21677OTOOL64=$lt_OTOOL64
21678
21679# Old archive suffix (normally "a").
21680libext=$libext
21681
21682# Shared library suffix (normally ".so").
21683shrext_cmds=$lt_shrext_cmds
21684
21685# The commands to extract the exported symbol list from a shared archive.
21686extract_expsyms_cmds=$lt_extract_expsyms_cmds
21687
21688# Variables whose values should be saved in libtool wrapper scripts and
21689# restored at link time.
21690variables_saved_for_relink=$lt_variables_saved_for_relink
21691
21692# Do we need the "lib" prefix for modules?
21693need_lib_prefix=$need_lib_prefix
21694
21695# Do we need a version for libraries?
21696need_version=$need_version
21697
21698# Library versioning type.
21699version_type=$version_type
21700
21701# Shared library runtime path variable.
21702runpath_var=$runpath_var
21703
21704# Shared library path variable.
21705shlibpath_var=$shlibpath_var
21706
21707# Is shlibpath searched before the hard-coded library search path?
21708shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21709
21710# Format of library name prefix.
21711libname_spec=$lt_libname_spec
21712
21713# List of archive names.  First name is the real one, the rest are links.
21714# The last name is the one that the linker finds with -lNAME
21715library_names_spec=$lt_library_names_spec
21716
21717# The coded name of the library, if different from the real name.
21718soname_spec=$lt_soname_spec
21719
21720# Permission mode override for installation of shared libraries.
21721install_override_mode=$lt_install_override_mode
21722
21723# Command to use after installation of a shared archive.
21724postinstall_cmds=$lt_postinstall_cmds
21725
21726# Command to use after uninstallation of a shared archive.
21727postuninstall_cmds=$lt_postuninstall_cmds
21728
21729# Commands used to finish a libtool library installation in a directory.
21730finish_cmds=$lt_finish_cmds
21731
21732# As "finish_cmds", except a single script fragment to be evaled but
21733# not shown.
21734finish_eval=$lt_finish_eval
21735
21736# Whether we should hardcode library paths into libraries.
21737hardcode_into_libs=$hardcode_into_libs
21738
21739# Compile-time system search path for libraries.
21740sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21741
21742# Detected run-time system search path for libraries.
21743sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21744
21745# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21746configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21747
21748# Whether dlopen is supported.
21749dlopen_support=$enable_dlopen
21750
21751# Whether dlopen of programs is supported.
21752dlopen_self=$enable_dlopen_self
21753
21754# Whether dlopen of statically linked programs is supported.
21755dlopen_self_static=$enable_dlopen_self_static
21756
21757# Commands to strip libraries.
21758old_striplib=$lt_old_striplib
21759striplib=$lt_striplib
21760
21761
21762# The linker used to build libraries.
21763LD=$lt_LD
21764
21765# How to create reloadable object files.
21766reload_flag=$lt_reload_flag
21767reload_cmds=$lt_reload_cmds
21768
21769# Commands used to build an old-style archive.
21770old_archive_cmds=$lt_old_archive_cmds
21771
21772# A language specific compiler.
21773CC=$lt_compiler
21774
21775# Is the compiler the GNU compiler?
21776with_gcc=$GCC
21777
21778# Compiler flag to turn off builtin functions.
21779no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21780
21781# Additional compiler flags for building library objects.
21782pic_flag=$lt_lt_prog_compiler_pic
21783
21784# How to pass a linker flag through the compiler.
21785wl=$lt_lt_prog_compiler_wl
21786
21787# Compiler flag to prevent dynamic linking.
21788link_static_flag=$lt_lt_prog_compiler_static
21789
21790# Does compiler simultaneously support -c and -o options?
21791compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21792
21793# Whether or not to add -lc for building shared libraries.
21794build_libtool_need_lc=$archive_cmds_need_lc
21795
21796# Whether or not to disallow shared libs when runtime libs are static.
21797allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21798
21799# Compiler flag to allow reflexive dlopens.
21800export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21801
21802# Compiler flag to generate shared objects directly from archives.
21803whole_archive_flag_spec=$lt_whole_archive_flag_spec
21804
21805# Whether the compiler copes with passing no objects directly.
21806compiler_needs_object=$lt_compiler_needs_object
21807
21808# Create an old-style archive from a shared archive.
21809old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21810
21811# Create a temporary old-style archive to link instead of a shared archive.
21812old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21813
21814# Commands used to build a shared archive.
21815archive_cmds=$lt_archive_cmds
21816archive_expsym_cmds=$lt_archive_expsym_cmds
21817
21818# Commands used to build a loadable module if different from building
21819# a shared archive.
21820module_cmds=$lt_module_cmds
21821module_expsym_cmds=$lt_module_expsym_cmds
21822
21823# Whether we are building with GNU ld or not.
21824with_gnu_ld=$lt_with_gnu_ld
21825
21826# Flag that allows shared libraries with undefined symbols to be built.
21827allow_undefined_flag=$lt_allow_undefined_flag
21828
21829# Flag that enforces no undefined symbols.
21830no_undefined_flag=$lt_no_undefined_flag
21831
21832# Flag to hardcode \$libdir into a binary during linking.
21833# This must work even if \$libdir does not exist
21834hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21835
21836# Whether we need a single "-rpath" flag with a separated argument.
21837hardcode_libdir_separator=$lt_hardcode_libdir_separator
21838
21839# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21840# DIR into the resulting binary.
21841hardcode_direct=$hardcode_direct
21842
21843# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21844# DIR into the resulting binary and the resulting library dependency is
21845# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21846# library is relocated.
21847hardcode_direct_absolute=$hardcode_direct_absolute
21848
21849# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21850# into the resulting binary.
21851hardcode_minus_L=$hardcode_minus_L
21852
21853# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21854# into the resulting binary.
21855hardcode_shlibpath_var=$hardcode_shlibpath_var
21856
21857# Set to "yes" if building a shared library automatically hardcodes DIR
21858# into the library and all subsequent libraries and executables linked
21859# against it.
21860hardcode_automatic=$hardcode_automatic
21861
21862# Set to yes if linker adds runtime paths of dependent libraries
21863# to runtime path list.
21864inherit_rpath=$inherit_rpath
21865
21866# Whether libtool must link a program against all its dependency libraries.
21867link_all_deplibs=$link_all_deplibs
21868
21869# Set to "yes" if exported symbols are required.
21870always_export_symbols=$always_export_symbols
21871
21872# The commands to list exported symbols.
21873export_symbols_cmds=$lt_export_symbols_cmds
21874
21875# Symbols that should not be listed in the preloaded symbols.
21876exclude_expsyms=$lt_exclude_expsyms
21877
21878# Symbols that must always be exported.
21879include_expsyms=$lt_include_expsyms
21880
21881# Commands necessary for linking programs (against libraries) with templates.
21882prelink_cmds=$lt_prelink_cmds
21883
21884# Commands necessary for finishing linking programs.
21885postlink_cmds=$lt_postlink_cmds
21886
21887# Specify filename containing input files.
21888file_list_spec=$lt_file_list_spec
21889
21890# How to hardcode a shared library path into an executable.
21891hardcode_action=$hardcode_action
21892
21893# ### END LIBTOOL CONFIG
21894
21895_LT_EOF
21896
21897    cat <<'_LT_EOF' >> "$cfgfile"
21898
21899# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21900
21901# func_munge_path_list VARIABLE PATH
21902# -----------------------------------
21903# VARIABLE is name of variable containing _space_ separated list of
21904# directories to be munged by the contents of PATH, which is string
21905# having a format:
21906# "DIR[:DIR]:"
21907#       string "DIR[ DIR]" will be prepended to VARIABLE
21908# ":DIR[:DIR]"
21909#       string "DIR[ DIR]" will be appended to VARIABLE
21910# "DIRP[:DIRP]::[DIRA:]DIRA"
21911#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21912#       "DIRA[ DIRA]" will be appended to VARIABLE
21913# "DIR[:DIR]"
21914#       VARIABLE will be replaced by "DIR[ DIR]"
21915func_munge_path_list ()
21916{
21917    case x$2 in
21918    x)
21919        ;;
21920    *:)
21921        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21922        ;;
21923    x:*)
21924        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21925        ;;
21926    *::*)
21927        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21928        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21929        ;;
21930    *)
21931        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21932        ;;
21933    esac
21934}
21935
21936
21937# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21938func_cc_basename ()
21939{
21940    for cc_temp in $*""; do
21941      case $cc_temp in
21942        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21943        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21944        \-*) ;;
21945        *) break;;
21946      esac
21947    done
21948    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21949}
21950
21951
21952# ### END FUNCTIONS SHARED WITH CONFIGURE
21953
21954_LT_EOF
21955
21956  case $host_os in
21957  aix3*)
21958    cat <<\_LT_EOF >> "$cfgfile"
21959# AIX sometimes has problems with the GCC collect2 program.  For some
21960# reason, if we set the COLLECT_NAMES environment variable, the problems
21961# vanish in a puff of smoke.
21962if test set != "${COLLECT_NAMES+set}"; then
21963  COLLECT_NAMES=
21964  export COLLECT_NAMES
21965fi
21966_LT_EOF
21967    ;;
21968  esac
21969
21970
21971
21972ltmain=$ac_aux_dir/ltmain.sh
21973
21974
21975  # We use sed instead of cat because bash on DJGPP gets confused if
21976  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21977  # text mode, it properly converts lines to CR/LF.  This bash problem
21978  # is reportedly fixed, but why not run on old versions too?
21979  $SED '$q' "$ltmain" >> "$cfgfile" \
21980     || (rm -f "$cfgfile"; exit 1)
21981
21982   mv -f "$cfgfile" "$ofile" ||
21983    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21984  chmod +x "$ofile"
21985
21986 ;;
21987
21988  esac
21989done # for ac_tag
21990
21991
21992as_fn_exit 0
21993_ACEOF
21994ac_clean_files=$ac_clean_files_save
21995
21996test $ac_write_fail = 0 ||
21997  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21998
21999
22000# configure is writing to config.log, and then calls config.status.
22001# config.status does its own redirection, appending to config.log.
22002# Unfortunately, on DOS this fails, as config.log is still kept open
22003# by configure, so config.status won't be able to write to it; its
22004# output is simply discarded.  So we exec the FD to /dev/null,
22005# effectively closing config.log, so it can be properly (re)opened and
22006# appended to by config.status.  When coming back to configure, we
22007# need to make the FD available again.
22008if test "$no_create" != yes; then
22009  ac_cs_success=:
22010  ac_config_status_args=
22011  test "$silent" = yes &&
22012    ac_config_status_args="$ac_config_status_args --quiet"
22013  exec 5>/dev/null
22014  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22015  exec 5>>config.log
22016  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22017  # would make configure fail if this is the last instruction.
22018  $ac_cs_success || as_fn_exit 1
22019fi
22020if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22021  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22022printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22023fi
22024
22025
22026