1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for xf86-video-vesa 2.6.0.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa/-/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-vesa/-/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-vesa'
624PACKAGE_TARNAME='xf86-video-vesa'
625PACKAGE_VERSION='2.6.0'
626PACKAGE_STRING='xf86-video-vesa 2.6.0'
627PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa/-/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
668PCIACCESS_LIBS
669PCIACCESS_CFLAGS
670XEXT_LIBS
671XEXT_CFLAGS
672XORG_LIBS
673XORG_CFLAGS
674moduledir
675LT_SYS_LIBRARY_PATH
676OTOOL64
677OTOOL
678LIPO
679NMEDIT
680DSYMUTIL
681MANIFEST_TOOL
682RANLIB
683ac_ct_AR
684AR
685DLLTOOL
686OBJDUMP
687FILECMD
688LN_S
689NM
690ac_ct_DUMPBIN
691DUMPBIN
692LD
693FGREP
694EGREP
695GREP
696LIBTOOL
697MAN_SUBSTS
698XORG_MAN_PAGE
699ADMIN_MAN_DIR
700DRIVER_MAN_DIR
701MISC_MAN_DIR
702FILE_MAN_DIR
703LIB_MAN_DIR
704APP_MAN_DIR
705ADMIN_MAN_SUFFIX
706DRIVER_MAN_SUFFIX
707MISC_MAN_SUFFIX
708FILE_MAN_SUFFIX
709LIB_MAN_SUFFIX
710APP_MAN_SUFFIX
711SED
712host_os
713host_vendor
714host_cpu
715host
716build_os
717build_vendor
718build_cpu
719build
720INSTALL_CMD
721PKG_CONFIG_LIBDIR
722PKG_CONFIG_PATH
723PKG_CONFIG
724CHANGELOG_CMD
725STRICT_CFLAGS
726CWARNFLAGS
727BASE_CFLAGS
728am__fastdepCC_FALSE
729am__fastdepCC_TRUE
730CCDEPMODE
731am__nodep
732AMDEPBACKSLASH
733AMDEP_FALSE
734AMDEP_TRUE
735am__include
736DEPDIR
737OBJEXT
738EXEEXT
739ac_ct_CC
740CPPFLAGS
741LDFLAGS
742CFLAGS
743CC
744AM_BACKSLASH
745AM_DEFAULT_VERBOSITY
746AM_DEFAULT_V
747AM_V
748CSCOPE
749ETAGS
750CTAGS
751am__untar
752am__tar
753AMTAR
754am__leading_dot
755SET_MAKE
756AWK
757mkdir_p
758MKDIR_P
759INSTALL_STRIP_PROGRAM
760STRIP
761install_sh
762MAKEINFO
763AUTOHEADER
764AUTOMAKE
765AUTOCONF
766ACLOCAL
767VERSION
768PACKAGE
769CYGPATH_W
770am__isrc
771INSTALL_DATA
772INSTALL_SCRIPT
773INSTALL_PROGRAM
774target_alias
775host_alias
776build_alias
777LIBS
778ECHO_T
779ECHO_N
780ECHO_C
781DEFS
782mandir
783localedir
784libdir
785psdir
786pdfdir
787dvidir
788htmldir
789infodir
790docdir
791oldincludedir
792includedir
793runstatedir
794localstatedir
795sharedstatedir
796sysconfdir
797datadir
798datarootdir
799libexecdir
800sbindir
801bindir
802program_transform_name
803prefix
804exec_prefix
805PACKAGE_URL
806PACKAGE_BUGREPORT
807PACKAGE_STRING
808PACKAGE_VERSION
809PACKAGE_TARNAME
810PACKAGE_NAME
811PATH_SEPARATOR
812SHELL
813am__quote'
814ac_subst_files=''
815ac_user_opts='
816enable_option_checking
817enable_silent_rules
818enable_dependency_tracking
819enable_selective_werror
820enable_strict_compilation
821enable_static
822enable_shared
823with_pic
824enable_fast_install
825with_aix_soname
826with_gnu_ld
827with_sysroot
828enable_libtool_lock
829with_xorg_module_dir
830'
831      ac_precious_vars='build_alias
832host_alias
833target_alias
834CC
835CFLAGS
836LDFLAGS
837LIBS
838CPPFLAGS
839PKG_CONFIG
840PKG_CONFIG_PATH
841PKG_CONFIG_LIBDIR
842LT_SYS_LIBRARY_PATH
843XORG_CFLAGS
844XORG_LIBS
845XEXT_CFLAGS
846XEXT_LIBS
847PCIACCESS_CFLAGS
848PCIACCESS_LIBS'
849
850
851# Initialize some variables set by options.
852ac_init_help=
853ac_init_version=false
854ac_unrecognized_opts=
855ac_unrecognized_sep=
856# The variables have the same names as the options, with
857# dashes changed to underlines.
858cache_file=/dev/null
859exec_prefix=NONE
860no_create=
861no_recursion=
862prefix=NONE
863program_prefix=NONE
864program_suffix=NONE
865program_transform_name=s,x,x,
866silent=
867site=
868srcdir=
869verbose=
870x_includes=NONE
871x_libraries=NONE
872
873# Installation directory options.
874# These are left unexpanded so users can "make install exec_prefix=/foo"
875# and all the variables that are supposed to be based on exec_prefix
876# by default will actually change.
877# Use braces instead of parens because sh, perl, etc. also accept them.
878# (The list follows the same order as the GNU Coding Standards.)
879bindir='${exec_prefix}/bin'
880sbindir='${exec_prefix}/sbin'
881libexecdir='${exec_prefix}/libexec'
882datarootdir='${prefix}/share'
883datadir='${datarootdir}'
884sysconfdir='${prefix}/etc'
885sharedstatedir='${prefix}/com'
886localstatedir='${prefix}/var'
887runstatedir='${localstatedir}/run'
888includedir='${prefix}/include'
889oldincludedir='/usr/include'
890docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
891infodir='${datarootdir}/info'
892htmldir='${docdir}'
893dvidir='${docdir}'
894pdfdir='${docdir}'
895psdir='${docdir}'
896libdir='${exec_prefix}/lib'
897localedir='${datarootdir}/locale'
898mandir='${datarootdir}/man'
899
900ac_prev=
901ac_dashdash=
902for ac_option
903do
904  # If the previous option needs an argument, assign it.
905  if test -n "$ac_prev"; then
906    eval $ac_prev=\$ac_option
907    ac_prev=
908    continue
909  fi
910
911  case $ac_option in
912  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913  *=)   ac_optarg= ;;
914  *)    ac_optarg=yes ;;
915  esac
916
917  case $ac_dashdash$ac_option in
918  --)
919    ac_dashdash=yes ;;
920
921  -bindir | --bindir | --bindi | --bind | --bin | --bi)
922    ac_prev=bindir ;;
923  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
924    bindir=$ac_optarg ;;
925
926  -build | --build | --buil | --bui | --bu)
927    ac_prev=build_alias ;;
928  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
929    build_alias=$ac_optarg ;;
930
931  -cache-file | --cache-file | --cache-fil | --cache-fi \
932  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
933    ac_prev=cache_file ;;
934  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
935  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
936    cache_file=$ac_optarg ;;
937
938  --config-cache | -C)
939    cache_file=config.cache ;;
940
941  -datadir | --datadir | --datadi | --datad)
942    ac_prev=datadir ;;
943  -datadir=* | --datadir=* | --datadi=* | --datad=*)
944    datadir=$ac_optarg ;;
945
946  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
947  | --dataroo | --dataro | --datar)
948    ac_prev=datarootdir ;;
949  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
950  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
951    datarootdir=$ac_optarg ;;
952
953  -disable-* | --disable-*)
954    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
955    # Reject names that are not valid shell variable names.
956    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957      as_fn_error $? "invalid feature name: \`$ac_useropt'"
958    ac_useropt_orig=$ac_useropt
959    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
960    case $ac_user_opts in
961      *"
962"enable_$ac_useropt"
963"*) ;;
964      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
965	 ac_unrecognized_sep=', ';;
966    esac
967    eval enable_$ac_useropt=no ;;
968
969  -docdir | --docdir | --docdi | --doc | --do)
970    ac_prev=docdir ;;
971  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972    docdir=$ac_optarg ;;
973
974  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975    ac_prev=dvidir ;;
976  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977    dvidir=$ac_optarg ;;
978
979  -enable-* | --enable-*)
980    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
981    # Reject names that are not valid shell variable names.
982    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983      as_fn_error $? "invalid feature name: \`$ac_useropt'"
984    ac_useropt_orig=$ac_useropt
985    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
986    case $ac_user_opts in
987      *"
988"enable_$ac_useropt"
989"*) ;;
990      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
991	 ac_unrecognized_sep=', ';;
992    esac
993    eval enable_$ac_useropt=\$ac_optarg ;;
994
995  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
996  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
997  | --exec | --exe | --ex)
998    ac_prev=exec_prefix ;;
999  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1000  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1001  | --exec=* | --exe=* | --ex=*)
1002    exec_prefix=$ac_optarg ;;
1003
1004  -gas | --gas | --ga | --g)
1005    # Obsolete; use --with-gas.
1006    with_gas=yes ;;
1007
1008  -help | --help | --hel | --he | -h)
1009    ac_init_help=long ;;
1010  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1011    ac_init_help=recursive ;;
1012  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1013    ac_init_help=short ;;
1014
1015  -host | --host | --hos | --ho)
1016    ac_prev=host_alias ;;
1017  -host=* | --host=* | --hos=* | --ho=*)
1018    host_alias=$ac_optarg ;;
1019
1020  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021    ac_prev=htmldir ;;
1022  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023  | --ht=*)
1024    htmldir=$ac_optarg ;;
1025
1026  -includedir | --includedir | --includedi | --included | --include \
1027  | --includ | --inclu | --incl | --inc)
1028    ac_prev=includedir ;;
1029  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1030  | --includ=* | --inclu=* | --incl=* | --inc=*)
1031    includedir=$ac_optarg ;;
1032
1033  -infodir | --infodir | --infodi | --infod | --info | --inf)
1034    ac_prev=infodir ;;
1035  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1036    infodir=$ac_optarg ;;
1037
1038  -libdir | --libdir | --libdi | --libd)
1039    ac_prev=libdir ;;
1040  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1041    libdir=$ac_optarg ;;
1042
1043  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1044  | --libexe | --libex | --libe)
1045    ac_prev=libexecdir ;;
1046  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1047  | --libexe=* | --libex=* | --libe=*)
1048    libexecdir=$ac_optarg ;;
1049
1050  -localedir | --localedir | --localedi | --localed | --locale)
1051    ac_prev=localedir ;;
1052  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1053    localedir=$ac_optarg ;;
1054
1055  -localstatedir | --localstatedir | --localstatedi | --localstated \
1056  | --localstate | --localstat | --localsta | --localst | --locals)
1057    ac_prev=localstatedir ;;
1058  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1059  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1060    localstatedir=$ac_optarg ;;
1061
1062  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063    ac_prev=mandir ;;
1064  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1065    mandir=$ac_optarg ;;
1066
1067  -nfp | --nfp | --nf)
1068    # Obsolete; use --without-fp.
1069    with_fp=no ;;
1070
1071  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1072  | --no-cr | --no-c | -n)
1073    no_create=yes ;;
1074
1075  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1076  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1077    no_recursion=yes ;;
1078
1079  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1080  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1081  | --oldin | --oldi | --old | --ol | --o)
1082    ac_prev=oldincludedir ;;
1083  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1084  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1085  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1086    oldincludedir=$ac_optarg ;;
1087
1088  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089    ac_prev=prefix ;;
1090  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1091    prefix=$ac_optarg ;;
1092
1093  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1094  | --program-pre | --program-pr | --program-p)
1095    ac_prev=program_prefix ;;
1096  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1097  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1098    program_prefix=$ac_optarg ;;
1099
1100  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1101  | --program-suf | --program-su | --program-s)
1102    ac_prev=program_suffix ;;
1103  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1104  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1105    program_suffix=$ac_optarg ;;
1106
1107  -program-transform-name | --program-transform-name \
1108  | --program-transform-nam | --program-transform-na \
1109  | --program-transform-n | --program-transform- \
1110  | --program-transform | --program-transfor \
1111  | --program-transfo | --program-transf \
1112  | --program-trans | --program-tran \
1113  | --progr-tra | --program-tr | --program-t)
1114    ac_prev=program_transform_name ;;
1115  -program-transform-name=* | --program-transform-name=* \
1116  | --program-transform-nam=* | --program-transform-na=* \
1117  | --program-transform-n=* | --program-transform-=* \
1118  | --program-transform=* | --program-transfor=* \
1119  | --program-transfo=* | --program-transf=* \
1120  | --program-trans=* | --program-tran=* \
1121  | --progr-tra=* | --program-tr=* | --program-t=*)
1122    program_transform_name=$ac_optarg ;;
1123
1124  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125    ac_prev=pdfdir ;;
1126  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1127    pdfdir=$ac_optarg ;;
1128
1129  -psdir | --psdir | --psdi | --psd | --ps)
1130    ac_prev=psdir ;;
1131  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1132    psdir=$ac_optarg ;;
1133
1134  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1135  | -silent | --silent | --silen | --sile | --sil)
1136    silent=yes ;;
1137
1138  -runstatedir | --runstatedir | --runstatedi | --runstated \
1139  | --runstate | --runstat | --runsta | --runst | --runs \
1140  | --run | --ru | --r)
1141    ac_prev=runstatedir ;;
1142  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1143  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1144  | --run=* | --ru=* | --r=*)
1145    runstatedir=$ac_optarg ;;
1146
1147  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148    ac_prev=sbindir ;;
1149  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150  | --sbi=* | --sb=*)
1151    sbindir=$ac_optarg ;;
1152
1153  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155  | --sharedst | --shareds | --shared | --share | --shar \
1156  | --sha | --sh)
1157    ac_prev=sharedstatedir ;;
1158  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161  | --sha=* | --sh=*)
1162    sharedstatedir=$ac_optarg ;;
1163
1164  -site | --site | --sit)
1165    ac_prev=site ;;
1166  -site=* | --site=* | --sit=*)
1167    site=$ac_optarg ;;
1168
1169  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170    ac_prev=srcdir ;;
1171  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1172    srcdir=$ac_optarg ;;
1173
1174  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175  | --syscon | --sysco | --sysc | --sys | --sy)
1176    ac_prev=sysconfdir ;;
1177  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1179    sysconfdir=$ac_optarg ;;
1180
1181  -target | --target | --targe | --targ | --tar | --ta | --t)
1182    ac_prev=target_alias ;;
1183  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1184    target_alias=$ac_optarg ;;
1185
1186  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187    verbose=yes ;;
1188
1189  -version | --version | --versio | --versi | --vers | -V)
1190    ac_init_version=: ;;
1191
1192  -with-* | --with-*)
1193    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194    # Reject names that are not valid shell variable names.
1195    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196      as_fn_error $? "invalid package name: \`$ac_useropt'"
1197    ac_useropt_orig=$ac_useropt
1198    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1199    case $ac_user_opts in
1200      *"
1201"with_$ac_useropt"
1202"*) ;;
1203      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204	 ac_unrecognized_sep=', ';;
1205    esac
1206    eval with_$ac_useropt=\$ac_optarg ;;
1207
1208  -without-* | --without-*)
1209    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210    # Reject names that are not valid shell variable names.
1211    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212      as_fn_error $? "invalid package name: \`$ac_useropt'"
1213    ac_useropt_orig=$ac_useropt
1214    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1215    case $ac_user_opts in
1216      *"
1217"with_$ac_useropt"
1218"*) ;;
1219      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220	 ac_unrecognized_sep=', ';;
1221    esac
1222    eval with_$ac_useropt=no ;;
1223
1224  --x)
1225    # Obsolete; use --with-x.
1226    with_x=yes ;;
1227
1228  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229  | --x-incl | --x-inc | --x-in | --x-i)
1230    ac_prev=x_includes ;;
1231  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233    x_includes=$ac_optarg ;;
1234
1235  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237    ac_prev=x_libraries ;;
1238  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240    x_libraries=$ac_optarg ;;
1241
1242  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243Try \`$0 --help' for more information"
1244    ;;
1245
1246  *=*)
1247    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248    # Reject names that are not valid shell variable names.
1249    case $ac_envvar in #(
1250      '' | [0-9]* | *[!_$as_cr_alnum]* )
1251      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1252    esac
1253    eval $ac_envvar=\$ac_optarg
1254    export $ac_envvar ;;
1255
1256  *)
1257    # FIXME: should be removed in autoconf 3.0.
1258    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1259    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1261    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262    ;;
1263
1264  esac
1265done
1266
1267if test -n "$ac_prev"; then
1268  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269  as_fn_error $? "missing argument to $ac_option"
1270fi
1271
1272if test -n "$ac_unrecognized_opts"; then
1273  case $enable_option_checking in
1274    no) ;;
1275    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1276    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277  esac
1278fi
1279
1280# Check all directory arguments for consistency.
1281for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282		datadir sysconfdir sharedstatedir localstatedir includedir \
1283		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284		libdir localedir mandir runstatedir
1285do
1286  eval ac_val=\$$ac_var
1287  # Remove trailing slashes.
1288  case $ac_val in
1289    */ )
1290      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291      eval $ac_var=\$ac_val;;
1292  esac
1293  # Be sure to have absolute directory names.
1294  case $ac_val in
1295    [\\/$]* | ?:[\\/]* )  continue;;
1296    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297  esac
1298  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1299done
1300
1301# There might be people who depend on the old broken behavior: `$host'
1302# used to hold the argument of --host etc.
1303# FIXME: To remove some day.
1304build=$build_alias
1305host=$host_alias
1306target=$target_alias
1307
1308# FIXME: To remove some day.
1309if test "x$host_alias" != x; then
1310  if test "x$build_alias" = x; then
1311    cross_compiling=maybe
1312  elif test "x$build_alias" != "x$host_alias"; then
1313    cross_compiling=yes
1314  fi
1315fi
1316
1317ac_tool_prefix=
1318test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320test "$silent" = yes && exec 6>/dev/null
1321
1322
1323ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324ac_ls_di=`ls -di .` &&
1325ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326  as_fn_error $? "working directory cannot be determined"
1327test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328  as_fn_error $? "pwd does not report name of working directory"
1329
1330
1331# Find the source files, if location was not specified.
1332if test -z "$srcdir"; then
1333  ac_srcdir_defaulted=yes
1334  # Try the directory containing this script, then the parent directory.
1335  ac_confdir=`$as_dirname -- "$as_myself" ||
1336$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337	 X"$as_myself" : 'X\(//\)[^/]' \| \
1338	 X"$as_myself" : 'X\(//\)$' \| \
1339	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340printf "%s\n" X"$as_myself" |
1341    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342	    s//\1/
1343	    q
1344	  }
1345	  /^X\(\/\/\)[^/].*/{
1346	    s//\1/
1347	    q
1348	  }
1349	  /^X\(\/\/\)$/{
1350	    s//\1/
1351	    q
1352	  }
1353	  /^X\(\/\).*/{
1354	    s//\1/
1355	    q
1356	  }
1357	  s/.*/./; q'`
1358  srcdir=$ac_confdir
1359  if test ! -r "$srcdir/$ac_unique_file"; then
1360    srcdir=..
1361  fi
1362else
1363  ac_srcdir_defaulted=no
1364fi
1365if test ! -r "$srcdir/$ac_unique_file"; then
1366  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1368fi
1369ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370ac_abs_confdir=`(
1371	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372	pwd)`
1373# When building in place, set srcdir=.
1374if test "$ac_abs_confdir" = "$ac_pwd"; then
1375  srcdir=.
1376fi
1377# Remove unnecessary trailing slashes from srcdir.
1378# Double slashes in file names in object file debugging info
1379# mess up M-x gdb in Emacs.
1380case $srcdir in
1381*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382esac
1383for ac_var in $ac_precious_vars; do
1384  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385  eval ac_env_${ac_var}_value=\$${ac_var}
1386  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388done
1389
1390#
1391# Report the --help message.
1392#
1393if test "$ac_init_help" = "long"; then
1394  # Omit some internal or obsolete options to make the list less imposing.
1395  # This message is too long to be a string in the A/UX 3.1 sh.
1396  cat <<_ACEOF
1397\`configure' configures xf86-video-vesa 2.6.0 to adapt to many kinds of systems.
1398
1399Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402VAR=VALUE.  See below for descriptions of some of the useful variables.
1403
1404Defaults for the options are specified in brackets.
1405
1406Configuration:
1407  -h, --help              display this help and exit
1408      --help=short        display options specific to this package
1409      --help=recursive    display the short help of all the included packages
1410  -V, --version           display version information and exit
1411  -q, --quiet, --silent   do not print \`checking ...' messages
1412      --cache-file=FILE   cache test results in FILE [disabled]
1413  -C, --config-cache      alias for \`--cache-file=config.cache'
1414  -n, --no-create         do not create output files
1415      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1416
1417Installation directories:
1418  --prefix=PREFIX         install architecture-independent files in PREFIX
1419                          [$ac_default_prefix]
1420  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1421                          [PREFIX]
1422
1423By default, \`make install' will install all the files in
1424\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1425an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426for instance \`--prefix=\$HOME'.
1427
1428For better control, use the options below.
1429
1430Fine tuning of the installation directories:
1431  --bindir=DIR            user executables [EPREFIX/bin]
1432  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1433  --libexecdir=DIR        program executables [EPREFIX/libexec]
1434  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1435  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1436  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1437  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1438  --libdir=DIR            object code libraries [EPREFIX/lib]
1439  --includedir=DIR        C header files [PREFIX/include]
1440  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1441  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1442  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1443  --infodir=DIR           info documentation [DATAROOTDIR/info]
1444  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1445  --mandir=DIR            man documentation [DATAROOTDIR/man]
1446  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-vesa]
1447  --htmldir=DIR           html documentation [DOCDIR]
1448  --dvidir=DIR            dvi documentation [DOCDIR]
1449  --pdfdir=DIR            pdf documentation [DOCDIR]
1450  --psdir=DIR             ps documentation [DOCDIR]
1451_ACEOF
1452
1453  cat <<\_ACEOF
1454
1455Program names:
1456  --program-prefix=PREFIX            prepend PREFIX to installed program names
1457  --program-suffix=SUFFIX            append SUFFIX to installed program names
1458  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1459
1460System types:
1461  --build=BUILD     configure for building on BUILD [guessed]
1462  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1463_ACEOF
1464fi
1465
1466if test -n "$ac_init_help"; then
1467  case $ac_init_help in
1468     short | recursive ) echo "Configuration of xf86-video-vesa 2.6.0:";;
1469   esac
1470  cat <<\_ACEOF
1471
1472Optional Features:
1473  --disable-option-checking  ignore unrecognized --enable/--with options
1474  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1475  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1476  --enable-silent-rules   less verbose build output (undo: "make V=1")
1477  --disable-silent-rules  verbose build output (undo: "make V=0")
1478  --enable-dependency-tracking
1479                          do not reject slow dependency extractors
1480  --disable-dependency-tracking
1481                          speeds up one-time build
1482  --disable-selective-werror
1483                          Turn off selective compiler errors. (default:
1484                          enabled)
1485  --enable-strict-compilation
1486                          Enable all warnings from compiler and make them
1487                          errors (default: disabled)
1488  --enable-static[=PKGS]  build static libraries [default=no]
1489  --enable-shared[=PKGS]  build shared libraries [default=yes]
1490  --enable-fast-install[=PKGS]
1491                          optimize for fast installation [default=yes]
1492  --disable-libtool-lock  avoid locking (might break parallel builds)
1493
1494Optional Packages:
1495  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1496  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1497  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1498                          both]
1499  --with-aix-soname=aix|svr4|both
1500                          shared library versioning (aka "SONAME") variant to
1501                          provide on AIX, [default=aix].
1502  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1503  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1504                          compiler's sysroot if not specified).
1505  --with-xorg-module-dir=DIR
1506
1507Some influential environment variables:
1508  CC          C compiler command
1509  CFLAGS      C compiler flags
1510  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1511              nonstandard directory <lib dir>
1512  LIBS        libraries to pass to the linker, e.g. -l<library>
1513  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1514              you have headers in a nonstandard directory <include dir>
1515  PKG_CONFIG  path to pkg-config utility
1516  PKG_CONFIG_PATH
1517              directories to add to pkg-config's search path
1518  PKG_CONFIG_LIBDIR
1519              path overriding pkg-config's built-in search path
1520  LT_SYS_LIBRARY_PATH
1521              User-defined run-time library search path.
1522  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1523  XORG_LIBS   linker flags for XORG, overriding pkg-config
1524  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1525  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1526  PCIACCESS_CFLAGS
1527              C compiler flags for PCIACCESS, overriding pkg-config
1528  PCIACCESS_LIBS
1529              linker flags for PCIACCESS, overriding pkg-config
1530
1531Use these variables to override the choices made by `configure' or to help
1532it to find libraries and programs with nonstandard names/locations.
1533
1534Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa/-/issues>.
1535_ACEOF
1536ac_status=$?
1537fi
1538
1539if test "$ac_init_help" = "recursive"; then
1540  # If there are subdirs, report their specific --help.
1541  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542    test -d "$ac_dir" ||
1543      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544      continue
1545    ac_builddir=.
1546
1547case "$ac_dir" in
1548.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549*)
1550  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1551  # A ".." for each directory in $ac_dir_suffix.
1552  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1553  case $ac_top_builddir_sub in
1554  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556  esac ;;
1557esac
1558ac_abs_top_builddir=$ac_pwd
1559ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560# for backward compatibility:
1561ac_top_builddir=$ac_top_build_prefix
1562
1563case $srcdir in
1564  .)  # We are building in place.
1565    ac_srcdir=.
1566    ac_top_srcdir=$ac_top_builddir_sub
1567    ac_abs_top_srcdir=$ac_pwd ;;
1568  [\\/]* | ?:[\\/]* )  # Absolute name.
1569    ac_srcdir=$srcdir$ac_dir_suffix;
1570    ac_top_srcdir=$srcdir
1571    ac_abs_top_srcdir=$srcdir ;;
1572  *) # Relative name.
1573    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574    ac_top_srcdir=$ac_top_build_prefix$srcdir
1575    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576esac
1577ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578
1579    cd "$ac_dir" || { ac_status=$?; continue; }
1580    # Check for configure.gnu first; this name is used for a wrapper for
1581    # Metaconfig's "Configure" on case-insensitive file systems.
1582    if test -f "$ac_srcdir/configure.gnu"; then
1583      echo &&
1584      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585    elif test -f "$ac_srcdir/configure"; then
1586      echo &&
1587      $SHELL "$ac_srcdir/configure" --help=recursive
1588    else
1589      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1590    fi || ac_status=$?
1591    cd "$ac_pwd" || { ac_status=$?; break; }
1592  done
1593fi
1594
1595test -n "$ac_init_help" && exit $ac_status
1596if $ac_init_version; then
1597  cat <<\_ACEOF
1598xf86-video-vesa configure 2.6.0
1599generated by GNU Autoconf 2.71
1600
1601Copyright (C) 2021 Free Software Foundation, Inc.
1602This configure script is free software; the Free Software Foundation
1603gives unlimited permission to copy, distribute and modify it.
1604_ACEOF
1605  exit
1606fi
1607
1608## ------------------------ ##
1609## Autoconf initialization. ##
1610## ------------------------ ##
1611
1612# ac_fn_c_try_compile LINENO
1613# --------------------------
1614# Try to compile conftest.$ac_ext, and return whether this succeeded.
1615ac_fn_c_try_compile ()
1616{
1617  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618  rm -f conftest.$ac_objext conftest.beam
1619  if { { ac_try="$ac_compile"
1620case "(($ac_try" in
1621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622  *) ac_try_echo=$ac_try;;
1623esac
1624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625printf "%s\n" "$ac_try_echo"; } >&5
1626  (eval "$ac_compile") 2>conftest.err
1627  ac_status=$?
1628  if test -s conftest.err; then
1629    grep -v '^ *+' conftest.err >conftest.er1
1630    cat conftest.er1 >&5
1631    mv -f conftest.er1 conftest.err
1632  fi
1633  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634  test $ac_status = 0; } && {
1635	 test -z "$ac_c_werror_flag" ||
1636	 test ! -s conftest.err
1637       } && test -s conftest.$ac_objext
1638then :
1639  ac_retval=0
1640else $as_nop
1641  printf "%s\n" "$as_me: failed program was:" >&5
1642sed 's/^/| /' conftest.$ac_ext >&5
1643
1644	ac_retval=1
1645fi
1646  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647  as_fn_set_status $ac_retval
1648
1649} # ac_fn_c_try_compile
1650
1651# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1652# ------------------------------------------------------------------
1653# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1654# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1655ac_fn_check_decl ()
1656{
1657  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658  as_decl_name=`echo $2|sed 's/ *(.*//'`
1659  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1660printf %s "checking whether $as_decl_name is declared... " >&6; }
1661if eval test \${$3+y}
1662then :
1663  printf %s "(cached) " >&6
1664else $as_nop
1665  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1666  eval ac_save_FLAGS=\$$6
1667  as_fn_append $6 " $5"
1668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669/* end confdefs.h.  */
1670$4
1671int
1672main (void)
1673{
1674#ifndef $as_decl_name
1675#ifdef __cplusplus
1676  (void) $as_decl_use;
1677#else
1678  (void) $as_decl_name;
1679#endif
1680#endif
1681
1682  ;
1683  return 0;
1684}
1685_ACEOF
1686if ac_fn_c_try_compile "$LINENO"
1687then :
1688  eval "$3=yes"
1689else $as_nop
1690  eval "$3=no"
1691fi
1692rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1693  eval $6=\$ac_save_FLAGS
1694
1695fi
1696eval ac_res=\$$3
1697	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698printf "%s\n" "$ac_res" >&6; }
1699  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700
1701} # ac_fn_check_decl
1702
1703# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1704# -------------------------------------------------------
1705# Tests whether HEADER exists and can be compiled using the include files in
1706# INCLUDES, setting the cache variable VAR accordingly.
1707ac_fn_c_check_header_compile ()
1708{
1709  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711printf %s "checking for $2... " >&6; }
1712if eval test \${$3+y}
1713then :
1714  printf %s "(cached) " >&6
1715else $as_nop
1716  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717/* end confdefs.h.  */
1718$4
1719#include <$2>
1720_ACEOF
1721if ac_fn_c_try_compile "$LINENO"
1722then :
1723  eval "$3=yes"
1724else $as_nop
1725  eval "$3=no"
1726fi
1727rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1728fi
1729eval ac_res=\$$3
1730	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731printf "%s\n" "$ac_res" >&6; }
1732  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733
1734} # ac_fn_c_check_header_compile
1735
1736# ac_fn_c_try_link LINENO
1737# -----------------------
1738# Try to link conftest.$ac_ext, and return whether this succeeded.
1739ac_fn_c_try_link ()
1740{
1741  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1743  if { { ac_try="$ac_link"
1744case "(($ac_try" in
1745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746  *) ac_try_echo=$ac_try;;
1747esac
1748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749printf "%s\n" "$ac_try_echo"; } >&5
1750  (eval "$ac_link") 2>conftest.err
1751  ac_status=$?
1752  if test -s conftest.err; then
1753    grep -v '^ *+' conftest.err >conftest.er1
1754    cat conftest.er1 >&5
1755    mv -f conftest.er1 conftest.err
1756  fi
1757  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758  test $ac_status = 0; } && {
1759	 test -z "$ac_c_werror_flag" ||
1760	 test ! -s conftest.err
1761       } && test -s conftest$ac_exeext && {
1762	 test "$cross_compiling" = yes ||
1763	 test -x conftest$ac_exeext
1764       }
1765then :
1766  ac_retval=0
1767else $as_nop
1768  printf "%s\n" "$as_me: failed program was:" >&5
1769sed 's/^/| /' conftest.$ac_ext >&5
1770
1771	ac_retval=1
1772fi
1773  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1774  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1775  # interfere with the next link command; also delete a directory that is
1776  # left behind by Apple's compiler.  We do this before executing the actions.
1777  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779  as_fn_set_status $ac_retval
1780
1781} # ac_fn_c_try_link
1782
1783# ac_fn_c_check_func LINENO FUNC VAR
1784# ----------------------------------
1785# Tests whether FUNC exists, setting the cache variable VAR accordingly
1786ac_fn_c_check_func ()
1787{
1788  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790printf %s "checking for $2... " >&6; }
1791if eval test \${$3+y}
1792then :
1793  printf %s "(cached) " >&6
1794else $as_nop
1795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796/* end confdefs.h.  */
1797/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1798   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1799#define $2 innocuous_$2
1800
1801/* System header to define __stub macros and hopefully few prototypes,
1802   which can conflict with char $2 (); below.  */
1803
1804#include <limits.h>
1805#undef $2
1806
1807/* Override any GCC internal prototype to avoid an error.
1808   Use char because int might match the return type of a GCC
1809   builtin and then its argument prototype would still apply.  */
1810#ifdef __cplusplus
1811extern "C"
1812#endif
1813char $2 ();
1814/* The GNU C library defines this for functions which it implements
1815    to always fail with ENOSYS.  Some functions are actually named
1816    something starting with __ and the normal name is an alias.  */
1817#if defined __stub_$2 || defined __stub___$2
1818choke me
1819#endif
1820
1821int
1822main (void)
1823{
1824return $2 ();
1825  ;
1826  return 0;
1827}
1828_ACEOF
1829if ac_fn_c_try_link "$LINENO"
1830then :
1831  eval "$3=yes"
1832else $as_nop
1833  eval "$3=no"
1834fi
1835rm -f core conftest.err conftest.$ac_objext conftest.beam \
1836    conftest$ac_exeext conftest.$ac_ext
1837fi
1838eval ac_res=\$$3
1839	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840printf "%s\n" "$ac_res" >&6; }
1841  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842
1843} # ac_fn_c_check_func
1844ac_configure_args_raw=
1845for ac_arg
1846do
1847  case $ac_arg in
1848  *\'*)
1849    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1850  esac
1851  as_fn_append ac_configure_args_raw " '$ac_arg'"
1852done
1853
1854case $ac_configure_args_raw in
1855  *$as_nl*)
1856    ac_safe_unquote= ;;
1857  *)
1858    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
1859    ac_unsafe_a="$ac_unsafe_z#~"
1860    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1861    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1862esac
1863
1864cat >config.log <<_ACEOF
1865This file contains any messages produced by compilers while
1866running configure, to aid debugging if configure makes a mistake.
1867
1868It was created by xf86-video-vesa $as_me 2.6.0, which was
1869generated by GNU Autoconf 2.71.  Invocation command line was
1870
1871  $ $0$ac_configure_args_raw
1872
1873_ACEOF
1874exec 5>>config.log
1875{
1876cat <<_ASUNAME
1877## --------- ##
1878## Platform. ##
1879## --------- ##
1880
1881hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1882uname -m = `(uname -m) 2>/dev/null || echo unknown`
1883uname -r = `(uname -r) 2>/dev/null || echo unknown`
1884uname -s = `(uname -s) 2>/dev/null || echo unknown`
1885uname -v = `(uname -v) 2>/dev/null || echo unknown`
1886
1887/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1888/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1889
1890/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1891/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1892/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1893/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1894/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1895/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1896/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1897
1898_ASUNAME
1899
1900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901for as_dir in $PATH
1902do
1903  IFS=$as_save_IFS
1904  case $as_dir in #(((
1905    '') as_dir=./ ;;
1906    */) ;;
1907    *) as_dir=$as_dir/ ;;
1908  esac
1909    printf "%s\n" "PATH: $as_dir"
1910  done
1911IFS=$as_save_IFS
1912
1913} >&5
1914
1915cat >&5 <<_ACEOF
1916
1917
1918## ----------- ##
1919## Core tests. ##
1920## ----------- ##
1921
1922_ACEOF
1923
1924
1925# Keep a trace of the command line.
1926# Strip out --no-create and --no-recursion so they do not pile up.
1927# Strip out --silent because we don't want to record it for future runs.
1928# Also quote any args containing shell meta-characters.
1929# Make two passes to allow for proper duplicate-argument suppression.
1930ac_configure_args=
1931ac_configure_args0=
1932ac_configure_args1=
1933ac_must_keep_next=false
1934for ac_pass in 1 2
1935do
1936  for ac_arg
1937  do
1938    case $ac_arg in
1939    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1940    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1941    | -silent | --silent | --silen | --sile | --sil)
1942      continue ;;
1943    *\'*)
1944      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1945    esac
1946    case $ac_pass in
1947    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1948    2)
1949      as_fn_append ac_configure_args1 " '$ac_arg'"
1950      if test $ac_must_keep_next = true; then
1951	ac_must_keep_next=false # Got value, back to normal.
1952      else
1953	case $ac_arg in
1954	  *=* | --config-cache | -C | -disable-* | --disable-* \
1955	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1956	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1957	  | -with-* | --with-* | -without-* | --without-* | --x)
1958	    case "$ac_configure_args0 " in
1959	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1960	    esac
1961	    ;;
1962	  -* ) ac_must_keep_next=true ;;
1963	esac
1964      fi
1965      as_fn_append ac_configure_args " '$ac_arg'"
1966      ;;
1967    esac
1968  done
1969done
1970{ ac_configure_args0=; unset ac_configure_args0;}
1971{ ac_configure_args1=; unset ac_configure_args1;}
1972
1973# When interrupted or exit'd, cleanup temporary files, and complete
1974# config.log.  We remove comments because anyway the quotes in there
1975# would cause problems or look ugly.
1976# WARNING: Use '\'' to represent an apostrophe within the trap.
1977# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1978trap 'exit_status=$?
1979  # Sanitize IFS.
1980  IFS=" ""	$as_nl"
1981  # Save into config.log some information that might help in debugging.
1982  {
1983    echo
1984
1985    printf "%s\n" "## ---------------- ##
1986## Cache variables. ##
1987## ---------------- ##"
1988    echo
1989    # The following way of writing the cache mishandles newlines in values,
1990(
1991  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1992    eval ac_val=\$$ac_var
1993    case $ac_val in #(
1994    *${as_nl}*)
1995      case $ac_var in #(
1996      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1997printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1998      esac
1999      case $ac_var in #(
2000      _ | IFS | as_nl) ;; #(
2001      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2002      *) { eval $ac_var=; unset $ac_var;} ;;
2003      esac ;;
2004    esac
2005  done
2006  (set) 2>&1 |
2007    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2008    *${as_nl}ac_space=\ *)
2009      sed -n \
2010	"s/'\''/'\''\\\\'\'''\''/g;
2011	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2012      ;; #(
2013    *)
2014      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2015      ;;
2016    esac |
2017    sort
2018)
2019    echo
2020
2021    printf "%s\n" "## ----------------- ##
2022## Output variables. ##
2023## ----------------- ##"
2024    echo
2025    for ac_var in $ac_subst_vars
2026    do
2027      eval ac_val=\$$ac_var
2028      case $ac_val in
2029      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2030      esac
2031      printf "%s\n" "$ac_var='\''$ac_val'\''"
2032    done | sort
2033    echo
2034
2035    if test -n "$ac_subst_files"; then
2036      printf "%s\n" "## ------------------- ##
2037## File substitutions. ##
2038## ------------------- ##"
2039      echo
2040      for ac_var in $ac_subst_files
2041      do
2042	eval ac_val=\$$ac_var
2043	case $ac_val in
2044	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2045	esac
2046	printf "%s\n" "$ac_var='\''$ac_val'\''"
2047      done | sort
2048      echo
2049    fi
2050
2051    if test -s confdefs.h; then
2052      printf "%s\n" "## ----------- ##
2053## confdefs.h. ##
2054## ----------- ##"
2055      echo
2056      cat confdefs.h
2057      echo
2058    fi
2059    test "$ac_signal" != 0 &&
2060      printf "%s\n" "$as_me: caught signal $ac_signal"
2061    printf "%s\n" "$as_me: exit $exit_status"
2062  } >&5
2063  rm -f core *.core core.conftest.* &&
2064    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2065    exit $exit_status
2066' 0
2067for ac_signal in 1 2 13 15; do
2068  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2069done
2070ac_signal=0
2071
2072# confdefs.h avoids OS command line length limits that DEFS can exceed.
2073rm -f -r conftest* confdefs.h
2074
2075printf "%s\n" "/* confdefs.h */" > confdefs.h
2076
2077# Predefined preprocessor variables.
2078
2079printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2080
2081printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2082
2083printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2084
2085printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2086
2087printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2088
2089printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2090
2091
2092# Let the site file select an alternate cache file if it wants to.
2093# Prefer an explicitly selected file to automatically selected ones.
2094if test -n "$CONFIG_SITE"; then
2095  ac_site_files="$CONFIG_SITE"
2096elif test "x$prefix" != xNONE; then
2097  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2098else
2099  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2100fi
2101
2102for ac_site_file in $ac_site_files
2103do
2104  case $ac_site_file in #(
2105  */*) :
2106     ;; #(
2107  *) :
2108    ac_site_file=./$ac_site_file ;;
2109esac
2110  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2111    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2112printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2113    sed 's/^/| /' "$ac_site_file" >&5
2114    . "$ac_site_file" \
2115      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2116printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2117as_fn_error $? "failed to load site script $ac_site_file
2118See \`config.log' for more details" "$LINENO" 5; }
2119  fi
2120done
2121
2122if test -r "$cache_file"; then
2123  # Some versions of bash will fail to source /dev/null (special files
2124  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2125  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2126    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2127printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2128    case $cache_file in
2129      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2130      *)                      . "./$cache_file";;
2131    esac
2132  fi
2133else
2134  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2135printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2136  >$cache_file
2137fi
2138
2139# Test code for whether the C compiler supports C89 (global declarations)
2140ac_c_conftest_c89_globals='
2141/* Does the compiler advertise C89 conformance?
2142   Do not test the value of __STDC__, because some compilers set it to 0
2143   while being otherwise adequately conformant. */
2144#if !defined __STDC__
2145# error "Compiler does not advertise C89 conformance"
2146#endif
2147
2148#include <stddef.h>
2149#include <stdarg.h>
2150struct stat;
2151/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2152struct buf { int x; };
2153struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2154static char *e (p, i)
2155     char **p;
2156     int i;
2157{
2158  return p[i];
2159}
2160static char *f (char * (*g) (char **, int), char **p, ...)
2161{
2162  char *s;
2163  va_list v;
2164  va_start (v,p);
2165  s = g (p, va_arg (v,int));
2166  va_end (v);
2167  return s;
2168}
2169
2170/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2171   function prototypes and stuff, but not \xHH hex character constants.
2172   These do not provoke an error unfortunately, instead are silently treated
2173   as an "x".  The following induces an error, until -std is added to get
2174   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2175   array size at least.  It is necessary to write \x00 == 0 to get something
2176   that is true only with -std.  */
2177int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2178
2179/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2180   inside strings and character constants.  */
2181#define FOO(x) '\''x'\''
2182int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2183
2184int test (int i, double x);
2185struct s1 {int (*f) (int a);};
2186struct s2 {int (*f) (double a);};
2187int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2188               int, int);'
2189
2190# Test code for whether the C compiler supports C89 (body of main).
2191ac_c_conftest_c89_main='
2192ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2193'
2194
2195# Test code for whether the C compiler supports C99 (global declarations)
2196ac_c_conftest_c99_globals='
2197// Does the compiler advertise C99 conformance?
2198#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2199# error "Compiler does not advertise C99 conformance"
2200#endif
2201
2202#include <stdbool.h>
2203extern int puts (const char *);
2204extern int printf (const char *, ...);
2205extern int dprintf (int, const char *, ...);
2206extern void *malloc (size_t);
2207
2208// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2209// dprintf is used instead of fprintf to avoid needing to declare
2210// FILE and stderr.
2211#define debug(...) dprintf (2, __VA_ARGS__)
2212#define showlist(...) puts (#__VA_ARGS__)
2213#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2214static void
2215test_varargs_macros (void)
2216{
2217  int x = 1234;
2218  int y = 5678;
2219  debug ("Flag");
2220  debug ("X = %d\n", x);
2221  showlist (The first, second, and third items.);
2222  report (x>y, "x is %d but y is %d", x, y);
2223}
2224
2225// Check long long types.
2226#define BIG64 18446744073709551615ull
2227#define BIG32 4294967295ul
2228#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2229#if !BIG_OK
2230  #error "your preprocessor is broken"
2231#endif
2232#if BIG_OK
2233#else
2234  #error "your preprocessor is broken"
2235#endif
2236static long long int bignum = -9223372036854775807LL;
2237static unsigned long long int ubignum = BIG64;
2238
2239struct incomplete_array
2240{
2241  int datasize;
2242  double data[];
2243};
2244
2245struct named_init {
2246  int number;
2247  const wchar_t *name;
2248  double average;
2249};
2250
2251typedef const char *ccp;
2252
2253static inline int
2254test_restrict (ccp restrict text)
2255{
2256  // See if C++-style comments work.
2257  // Iterate through items via the restricted pointer.
2258  // Also check for declarations in for loops.
2259  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2260    continue;
2261  return 0;
2262}
2263
2264// Check varargs and va_copy.
2265static bool
2266test_varargs (const char *format, ...)
2267{
2268  va_list args;
2269  va_start (args, format);
2270  va_list args_copy;
2271  va_copy (args_copy, args);
2272
2273  const char *str = "";
2274  int number = 0;
2275  float fnumber = 0;
2276
2277  while (*format)
2278    {
2279      switch (*format++)
2280	{
2281	case '\''s'\'': // string
2282	  str = va_arg (args_copy, const char *);
2283	  break;
2284	case '\''d'\'': // int
2285	  number = va_arg (args_copy, int);
2286	  break;
2287	case '\''f'\'': // float
2288	  fnumber = va_arg (args_copy, double);
2289	  break;
2290	default:
2291	  break;
2292	}
2293    }
2294  va_end (args_copy);
2295  va_end (args);
2296
2297  return *str && number && fnumber;
2298}
2299'
2300
2301# Test code for whether the C compiler supports C99 (body of main).
2302ac_c_conftest_c99_main='
2303  // Check bool.
2304  _Bool success = false;
2305  success |= (argc != 0);
2306
2307  // Check restrict.
2308  if (test_restrict ("String literal") == 0)
2309    success = true;
2310  char *restrict newvar = "Another string";
2311
2312  // Check varargs.
2313  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2314  test_varargs_macros ();
2315
2316  // Check flexible array members.
2317  struct incomplete_array *ia =
2318    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2319  ia->datasize = 10;
2320  for (int i = 0; i < ia->datasize; ++i)
2321    ia->data[i] = i * 1.234;
2322
2323  // Check named initializers.
2324  struct named_init ni = {
2325    .number = 34,
2326    .name = L"Test wide string",
2327    .average = 543.34343,
2328  };
2329
2330  ni.number = 58;
2331
2332  int dynamic_array[ni.number];
2333  dynamic_array[0] = argv[0][0];
2334  dynamic_array[ni.number - 1] = 543;
2335
2336  // work around unused variable warnings
2337  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2338	 || dynamic_array[ni.number - 1] != 543);
2339'
2340
2341# Test code for whether the C compiler supports C11 (global declarations)
2342ac_c_conftest_c11_globals='
2343// Does the compiler advertise C11 conformance?
2344#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2345# error "Compiler does not advertise C11 conformance"
2346#endif
2347
2348// Check _Alignas.
2349char _Alignas (double) aligned_as_double;
2350char _Alignas (0) no_special_alignment;
2351extern char aligned_as_int;
2352char _Alignas (0) _Alignas (int) aligned_as_int;
2353
2354// Check _Alignof.
2355enum
2356{
2357  int_alignment = _Alignof (int),
2358  int_array_alignment = _Alignof (int[100]),
2359  char_alignment = _Alignof (char)
2360};
2361_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2362
2363// Check _Noreturn.
2364int _Noreturn does_not_return (void) { for (;;) continue; }
2365
2366// Check _Static_assert.
2367struct test_static_assert
2368{
2369  int x;
2370  _Static_assert (sizeof (int) <= sizeof (long int),
2371                  "_Static_assert does not work in struct");
2372  long int y;
2373};
2374
2375// Check UTF-8 literals.
2376#define u8 syntax error!
2377char const utf8_literal[] = u8"happens to be ASCII" "another string";
2378
2379// Check duplicate typedefs.
2380typedef long *long_ptr;
2381typedef long int *long_ptr;
2382typedef long_ptr long_ptr;
2383
2384// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2385struct anonymous
2386{
2387  union {
2388    struct { int i; int j; };
2389    struct { int k; long int l; } w;
2390  };
2391  int m;
2392} v1;
2393'
2394
2395# Test code for whether the C compiler supports C11 (body of main).
2396ac_c_conftest_c11_main='
2397  _Static_assert ((offsetof (struct anonymous, i)
2398		   == offsetof (struct anonymous, w.k)),
2399		  "Anonymous union alignment botch");
2400  v1.i = 2;
2401  v1.w.k = 5;
2402  ok |= v1.i != 5;
2403'
2404
2405# Test code for whether the C compiler supports C11 (complete).
2406ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2407${ac_c_conftest_c99_globals}
2408${ac_c_conftest_c11_globals}
2409
2410int
2411main (int argc, char **argv)
2412{
2413  int ok = 0;
2414  ${ac_c_conftest_c89_main}
2415  ${ac_c_conftest_c99_main}
2416  ${ac_c_conftest_c11_main}
2417  return ok;
2418}
2419"
2420
2421# Test code for whether the C compiler supports C99 (complete).
2422ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2423${ac_c_conftest_c99_globals}
2424
2425int
2426main (int argc, char **argv)
2427{
2428  int ok = 0;
2429  ${ac_c_conftest_c89_main}
2430  ${ac_c_conftest_c99_main}
2431  return ok;
2432}
2433"
2434
2435# Test code for whether the C compiler supports C89 (complete).
2436ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2437
2438int
2439main (int argc, char **argv)
2440{
2441  int ok = 0;
2442  ${ac_c_conftest_c89_main}
2443  return ok;
2444}
2445"
2446
2447as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2448as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2449as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2450as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2451as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2452as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2453as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2454as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2455as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2456
2457# Auxiliary files required by this configure script.
2458ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2459
2460# Locations in which to look for auxiliary files.
2461ac_aux_dir_candidates="${srcdir}/."
2462
2463# Search for a directory containing all of the required auxiliary files,
2464# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2465# If we don't find one directory that contains all the files we need,
2466# we report the set of missing files from the *first* directory in
2467# $ac_aux_dir_candidates and give up.
2468ac_missing_aux_files=""
2469ac_first_candidate=:
2470printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472as_found=false
2473for as_dir in $ac_aux_dir_candidates
2474do
2475  IFS=$as_save_IFS
2476  case $as_dir in #(((
2477    '') as_dir=./ ;;
2478    */) ;;
2479    *) as_dir=$as_dir/ ;;
2480  esac
2481  as_found=:
2482
2483  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2484  ac_aux_dir_found=yes
2485  ac_install_sh=
2486  for ac_aux in $ac_aux_files
2487  do
2488    # As a special case, if "install-sh" is required, that requirement
2489    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2490    # and $ac_install_sh is set appropriately for whichever one is found.
2491    if test x"$ac_aux" = x"install-sh"
2492    then
2493      if test -f "${as_dir}install-sh"; then
2494        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2495        ac_install_sh="${as_dir}install-sh -c"
2496      elif test -f "${as_dir}install.sh"; then
2497        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2498        ac_install_sh="${as_dir}install.sh -c"
2499      elif test -f "${as_dir}shtool"; then
2500        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2501        ac_install_sh="${as_dir}shtool install -c"
2502      else
2503        ac_aux_dir_found=no
2504        if $ac_first_candidate; then
2505          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2506        else
2507          break
2508        fi
2509      fi
2510    else
2511      if test -f "${as_dir}${ac_aux}"; then
2512        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2513      else
2514        ac_aux_dir_found=no
2515        if $ac_first_candidate; then
2516          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2517        else
2518          break
2519        fi
2520      fi
2521    fi
2522  done
2523  if test "$ac_aux_dir_found" = yes; then
2524    ac_aux_dir="$as_dir"
2525    break
2526  fi
2527  ac_first_candidate=false
2528
2529  as_found=false
2530done
2531IFS=$as_save_IFS
2532if $as_found
2533then :
2534
2535else $as_nop
2536  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2537fi
2538
2539
2540# These three variables are undocumented and unsupported,
2541# and are intended to be withdrawn in a future Autoconf release.
2542# They can cause serious problems if a builder's source tree is in a directory
2543# whose full name contains unusual characters.
2544if test -f "${ac_aux_dir}config.guess"; then
2545  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2546fi
2547if test -f "${ac_aux_dir}config.sub"; then
2548  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2549fi
2550if test -f "$ac_aux_dir/configure"; then
2551  ac_configure="$SHELL ${ac_aux_dir}configure"
2552fi
2553
2554# Check that the precious variables saved in the cache have kept the same
2555# value.
2556ac_cache_corrupted=false
2557for ac_var in $ac_precious_vars; do
2558  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2559  eval ac_new_set=\$ac_env_${ac_var}_set
2560  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2561  eval ac_new_val=\$ac_env_${ac_var}_value
2562  case $ac_old_set,$ac_new_set in
2563    set,)
2564      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2565printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2566      ac_cache_corrupted=: ;;
2567    ,set)
2568      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2569printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2570      ac_cache_corrupted=: ;;
2571    ,);;
2572    *)
2573      if test "x$ac_old_val" != "x$ac_new_val"; then
2574	# differences in whitespace do not lead to failure.
2575	ac_old_val_w=`echo x $ac_old_val`
2576	ac_new_val_w=`echo x $ac_new_val`
2577	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2578	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2579printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2580	  ac_cache_corrupted=:
2581	else
2582	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2583printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2584	  eval $ac_var=\$ac_old_val
2585	fi
2586	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2587printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2588	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2589printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2590      fi;;
2591  esac
2592  # Pass precious variables to config.status.
2593  if test "$ac_new_set" = set; then
2594    case $ac_new_val in
2595    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2596    *) ac_arg=$ac_var=$ac_new_val ;;
2597    esac
2598    case " $ac_configure_args " in
2599      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2600      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2601    esac
2602  fi
2603done
2604if $ac_cache_corrupted; then
2605  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2606printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2607  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2608printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2609  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2610	    and start over" "$LINENO" 5
2611fi
2612## -------------------- ##
2613## Main body of script. ##
2614## -------------------- ##
2615
2616ac_ext=c
2617ac_cpp='$CPP $CPPFLAGS'
2618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2620ac_compiler_gnu=$ac_cv_c_compiler_gnu
2621
2622
2623
2624ac_config_headers="$ac_config_headers config.h"
2625
2626
2627
2628# Initialize Automake
2629am__api_version='1.16'
2630
2631
2632
2633  # Find a good install program.  We prefer a C program (faster),
2634# so one script is as good as another.  But avoid the broken or
2635# incompatible versions:
2636# SysV /etc/install, /usr/sbin/install
2637# SunOS /usr/etc/install
2638# IRIX /sbin/install
2639# AIX /bin/install
2640# AmigaOS /C/install, which installs bootblocks on floppy discs
2641# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2642# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2643# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2644# OS/2's system install, which has a completely different semantic
2645# ./install, which can be erroneously created by make from ./install.sh.
2646# Reject install programs that cannot install multiple files.
2647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2648printf %s "checking for a BSD-compatible install... " >&6; }
2649if test -z "$INSTALL"; then
2650if test ${ac_cv_path_install+y}
2651then :
2652  printf %s "(cached) " >&6
2653else $as_nop
2654  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655for as_dir in $PATH
2656do
2657  IFS=$as_save_IFS
2658  case $as_dir in #(((
2659    '') as_dir=./ ;;
2660    */) ;;
2661    *) as_dir=$as_dir/ ;;
2662  esac
2663    # Account for fact that we put trailing slashes in our PATH walk.
2664case $as_dir in #((
2665  ./ | /[cC]/* | \
2666  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2667  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2668  /usr/ucb/* ) ;;
2669  *)
2670    # OSF1 and SCO ODT 3.0 have their own names for install.
2671    # Don't use installbsd from OSF since it installs stuff as root
2672    # by default.
2673    for ac_prog in ginstall scoinst install; do
2674      for ac_exec_ext in '' $ac_executable_extensions; do
2675	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2676	  if test $ac_prog = install &&
2677	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2678	    # AIX install.  It has an incompatible calling convention.
2679	    :
2680	  elif test $ac_prog = install &&
2681	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2682	    # program-specific install script used by HP pwplus--don't use.
2683	    :
2684	  else
2685	    rm -rf conftest.one conftest.two conftest.dir
2686	    echo one > conftest.one
2687	    echo two > conftest.two
2688	    mkdir conftest.dir
2689	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2690	      test -s conftest.one && test -s conftest.two &&
2691	      test -s conftest.dir/conftest.one &&
2692	      test -s conftest.dir/conftest.two
2693	    then
2694	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2695	      break 3
2696	    fi
2697	  fi
2698	fi
2699      done
2700    done
2701    ;;
2702esac
2703
2704  done
2705IFS=$as_save_IFS
2706
2707rm -rf conftest.one conftest.two conftest.dir
2708
2709fi
2710  if test ${ac_cv_path_install+y}; then
2711    INSTALL=$ac_cv_path_install
2712  else
2713    # As a last resort, use the slow shell script.  Don't cache a
2714    # value for INSTALL within a source directory, because that will
2715    # break other packages using the cache if that directory is
2716    # removed, or if the value is a relative name.
2717    INSTALL=$ac_install_sh
2718  fi
2719fi
2720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2721printf "%s\n" "$INSTALL" >&6; }
2722
2723# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2724# It thinks the first close brace ends the variable substitution.
2725test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2726
2727test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2728
2729test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2730
2731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2732printf %s "checking whether build environment is sane... " >&6; }
2733# Reject unsafe characters in $srcdir or the absolute working directory
2734# name.  Accept space and tab only in the latter.
2735am_lf='
2736'
2737case `pwd` in
2738  *[\\\"\#\$\&\'\`$am_lf]*)
2739    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2740esac
2741case $srcdir in
2742  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2743    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2744esac
2745
2746# Do 'set' in a subshell so we don't clobber the current shell's
2747# arguments.  Must try -L first in case configure is actually a
2748# symlink; some systems play weird games with the mod time of symlinks
2749# (eg FreeBSD returns the mod time of the symlink's containing
2750# directory).
2751if (
2752   am_has_slept=no
2753   for am_try in 1 2; do
2754     echo "timestamp, slept: $am_has_slept" > conftest.file
2755     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2756     if test "$*" = "X"; then
2757	# -L didn't work.
2758	set X `ls -t "$srcdir/configure" conftest.file`
2759     fi
2760     if test "$*" != "X $srcdir/configure conftest.file" \
2761	&& test "$*" != "X conftest.file $srcdir/configure"; then
2762
2763	# If neither matched, then we have a broken ls.  This can happen
2764	# if, for instance, CONFIG_SHELL is bash and it inherits a
2765	# broken ls alias from the environment.  This has actually
2766	# happened.  Such a system could not be considered "sane".
2767	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2768  alias in your environment" "$LINENO" 5
2769     fi
2770     if test "$2" = conftest.file || test $am_try -eq 2; then
2771       break
2772     fi
2773     # Just in case.
2774     sleep 1
2775     am_has_slept=yes
2776   done
2777   test "$2" = conftest.file
2778   )
2779then
2780   # Ok.
2781   :
2782else
2783   as_fn_error $? "newly created file is older than distributed files!
2784Check your system clock" "$LINENO" 5
2785fi
2786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2787printf "%s\n" "yes" >&6; }
2788# If we didn't sleep, we still need to ensure time stamps of config.status and
2789# generated files are strictly newer.
2790am_sleep_pid=
2791if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2792  ( sleep 1 ) &
2793  am_sleep_pid=$!
2794fi
2795
2796rm -f conftest.file
2797
2798test "$program_prefix" != NONE &&
2799  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2800# Use a double $ so make ignores it.
2801test "$program_suffix" != NONE &&
2802  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2803# Double any \ or $.
2804# By default was `s,x,x', remove it if useless.
2805ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2806program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2807
2808
2809# Expand $ac_aux_dir to an absolute path.
2810am_aux_dir=`cd "$ac_aux_dir" && pwd`
2811
2812
2813  if test x"${MISSING+set}" != xset; then
2814  MISSING="\${SHELL} '$am_aux_dir/missing'"
2815fi
2816# Use eval to expand $SHELL
2817if eval "$MISSING --is-lightweight"; then
2818  am_missing_run="$MISSING "
2819else
2820  am_missing_run=
2821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2822printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2823fi
2824
2825if test x"${install_sh+set}" != xset; then
2826  case $am_aux_dir in
2827  *\ * | *\	*)
2828    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2829  *)
2830    install_sh="\${SHELL} $am_aux_dir/install-sh"
2831  esac
2832fi
2833
2834# Installed binaries are usually stripped using 'strip' when the user
2835# run "make install-strip".  However 'strip' might not be the right
2836# tool to use in cross-compilation environments, therefore Automake
2837# will honor the 'STRIP' environment variable to overrule this program.
2838if test "$cross_compiling" != no; then
2839  if test -n "$ac_tool_prefix"; then
2840  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2841set dummy ${ac_tool_prefix}strip; ac_word=$2
2842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843printf %s "checking for $ac_word... " >&6; }
2844if test ${ac_cv_prog_STRIP+y}
2845then :
2846  printf %s "(cached) " >&6
2847else $as_nop
2848  if test -n "$STRIP"; then
2849  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2850else
2851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852for as_dir in $PATH
2853do
2854  IFS=$as_save_IFS
2855  case $as_dir in #(((
2856    '') as_dir=./ ;;
2857    */) ;;
2858    *) as_dir=$as_dir/ ;;
2859  esac
2860    for ac_exec_ext in '' $ac_executable_extensions; do
2861  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2862    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2863    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2864    break 2
2865  fi
2866done
2867  done
2868IFS=$as_save_IFS
2869
2870fi
2871fi
2872STRIP=$ac_cv_prog_STRIP
2873if test -n "$STRIP"; then
2874  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2875printf "%s\n" "$STRIP" >&6; }
2876else
2877  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878printf "%s\n" "no" >&6; }
2879fi
2880
2881
2882fi
2883if test -z "$ac_cv_prog_STRIP"; then
2884  ac_ct_STRIP=$STRIP
2885  # Extract the first word of "strip", so it can be a program name with args.
2886set dummy strip; ac_word=$2
2887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888printf %s "checking for $ac_word... " >&6; }
2889if test ${ac_cv_prog_ac_ct_STRIP+y}
2890then :
2891  printf %s "(cached) " >&6
2892else $as_nop
2893  if test -n "$ac_ct_STRIP"; then
2894  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2895else
2896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897for as_dir in $PATH
2898do
2899  IFS=$as_save_IFS
2900  case $as_dir in #(((
2901    '') as_dir=./ ;;
2902    */) ;;
2903    *) as_dir=$as_dir/ ;;
2904  esac
2905    for ac_exec_ext in '' $ac_executable_extensions; do
2906  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2907    ac_cv_prog_ac_ct_STRIP="strip"
2908    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2909    break 2
2910  fi
2911done
2912  done
2913IFS=$as_save_IFS
2914
2915fi
2916fi
2917ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2918if test -n "$ac_ct_STRIP"; then
2919  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2920printf "%s\n" "$ac_ct_STRIP" >&6; }
2921else
2922  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2923printf "%s\n" "no" >&6; }
2924fi
2925
2926  if test "x$ac_ct_STRIP" = x; then
2927    STRIP=":"
2928  else
2929    case $cross_compiling:$ac_tool_warned in
2930yes:)
2931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2932printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2933ac_tool_warned=yes ;;
2934esac
2935    STRIP=$ac_ct_STRIP
2936  fi
2937else
2938  STRIP="$ac_cv_prog_STRIP"
2939fi
2940
2941fi
2942INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2943
2944
2945  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2946printf %s "checking for a race-free mkdir -p... " >&6; }
2947if test -z "$MKDIR_P"; then
2948  if test ${ac_cv_path_mkdir+y}
2949then :
2950  printf %s "(cached) " >&6
2951else $as_nop
2952  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2954do
2955  IFS=$as_save_IFS
2956  case $as_dir in #(((
2957    '') as_dir=./ ;;
2958    */) ;;
2959    *) as_dir=$as_dir/ ;;
2960  esac
2961    for ac_prog in mkdir gmkdir; do
2962	 for ac_exec_ext in '' $ac_executable_extensions; do
2963	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2964	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2965	     'mkdir ('*'coreutils) '* | \
2966	     'BusyBox '* | \
2967	     'mkdir (fileutils) '4.1*)
2968	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2969	       break 3;;
2970	   esac
2971	 done
2972       done
2973  done
2974IFS=$as_save_IFS
2975
2976fi
2977
2978  test -d ./--version && rmdir ./--version
2979  if test ${ac_cv_path_mkdir+y}; then
2980    MKDIR_P="$ac_cv_path_mkdir -p"
2981  else
2982    # As a last resort, use the slow shell script.  Don't cache a
2983    # value for MKDIR_P within a source directory, because that will
2984    # break other packages using the cache if that directory is
2985    # removed, or if the value is a relative name.
2986    MKDIR_P="$ac_install_sh -d"
2987  fi
2988fi
2989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2990printf "%s\n" "$MKDIR_P" >&6; }
2991
2992for ac_prog in gawk mawk nawk awk
2993do
2994  # Extract the first word of "$ac_prog", so it can be a program name with args.
2995set dummy $ac_prog; ac_word=$2
2996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997printf %s "checking for $ac_word... " >&6; }
2998if test ${ac_cv_prog_AWK+y}
2999then :
3000  printf %s "(cached) " >&6
3001else $as_nop
3002  if test -n "$AWK"; then
3003  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3004else
3005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006for as_dir in $PATH
3007do
3008  IFS=$as_save_IFS
3009  case $as_dir in #(((
3010    '') as_dir=./ ;;
3011    */) ;;
3012    *) as_dir=$as_dir/ ;;
3013  esac
3014    for ac_exec_ext in '' $ac_executable_extensions; do
3015  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3016    ac_cv_prog_AWK="$ac_prog"
3017    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3018    break 2
3019  fi
3020done
3021  done
3022IFS=$as_save_IFS
3023
3024fi
3025fi
3026AWK=$ac_cv_prog_AWK
3027if test -n "$AWK"; then
3028  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3029printf "%s\n" "$AWK" >&6; }
3030else
3031  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032printf "%s\n" "no" >&6; }
3033fi
3034
3035
3036  test -n "$AWK" && break
3037done
3038
3039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3040printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3041set x ${MAKE-make}
3042ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3043if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3044then :
3045  printf %s "(cached) " >&6
3046else $as_nop
3047  cat >conftest.make <<\_ACEOF
3048SHELL = /bin/sh
3049all:
3050	@echo '@@@%%%=$(MAKE)=@@@%%%'
3051_ACEOF
3052# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3053case `${MAKE-make} -f conftest.make 2>/dev/null` in
3054  *@@@%%%=?*=@@@%%%*)
3055    eval ac_cv_prog_make_${ac_make}_set=yes;;
3056  *)
3057    eval ac_cv_prog_make_${ac_make}_set=no;;
3058esac
3059rm -f conftest.make
3060fi
3061if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3062  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3063printf "%s\n" "yes" >&6; }
3064  SET_MAKE=
3065else
3066  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067printf "%s\n" "no" >&6; }
3068  SET_MAKE="MAKE=${MAKE-make}"
3069fi
3070
3071rm -rf .tst 2>/dev/null
3072mkdir .tst 2>/dev/null
3073if test -d .tst; then
3074  am__leading_dot=.
3075else
3076  am__leading_dot=_
3077fi
3078rmdir .tst 2>/dev/null
3079
3080# Check whether --enable-silent-rules was given.
3081if test ${enable_silent_rules+y}
3082then :
3083  enableval=$enable_silent_rules;
3084fi
3085
3086case $enable_silent_rules in # (((
3087  yes) AM_DEFAULT_VERBOSITY=0;;
3088   no) AM_DEFAULT_VERBOSITY=1;;
3089    *) AM_DEFAULT_VERBOSITY=1;;
3090esac
3091am_make=${MAKE-make}
3092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3093printf %s "checking whether $am_make supports nested variables... " >&6; }
3094if test ${am_cv_make_support_nested_variables+y}
3095then :
3096  printf %s "(cached) " >&6
3097else $as_nop
3098  if printf "%s\n" 'TRUE=$(BAR$(V))
3099BAR0=false
3100BAR1=true
3101V=1
3102am__doit:
3103	@$(TRUE)
3104.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3105  am_cv_make_support_nested_variables=yes
3106else
3107  am_cv_make_support_nested_variables=no
3108fi
3109fi
3110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3111printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3112if test $am_cv_make_support_nested_variables = yes; then
3113    AM_V='$(V)'
3114  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3115else
3116  AM_V=$AM_DEFAULT_VERBOSITY
3117  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3118fi
3119AM_BACKSLASH='\'
3120
3121if test "`cd $srcdir && pwd`" != "`pwd`"; then
3122  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3123  # is not polluted with repeated "-I."
3124  am__isrc=' -I$(srcdir)'
3125  # test to see if srcdir already configured
3126  if test -f $srcdir/config.status; then
3127    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3128  fi
3129fi
3130
3131# test whether we have cygpath
3132if test -z "$CYGPATH_W"; then
3133  if (cygpath --version) >/dev/null 2>/dev/null; then
3134    CYGPATH_W='cygpath -w'
3135  else
3136    CYGPATH_W=echo
3137  fi
3138fi
3139
3140
3141# Define the identity of the package.
3142 PACKAGE='xf86-video-vesa'
3143 VERSION='2.6.0'
3144
3145
3146printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3147
3148
3149printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3150
3151# Some tools Automake needs.
3152
3153ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3154
3155
3156AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3157
3158
3159AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3160
3161
3162AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3163
3164
3165MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3166
3167# For better backward compatibility.  To be removed once Automake 1.9.x
3168# dies out for good.  For more background, see:
3169# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3170# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3171mkdir_p='$(MKDIR_P)'
3172
3173# We need awk for the "check" target (and possibly the TAP driver).  The
3174# system "awk" is bad on some platforms.
3175# Always define AMTAR for backward compatibility.  Yes, it's still used
3176# in the wild :-(  We should find a proper way to deprecate it ...
3177AMTAR='$${TAR-tar}'
3178
3179
3180# We'll loop over all known methods to create a tar archive until one works.
3181_am_tools='gnutar  pax cpio none'
3182
3183am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3184
3185
3186
3187
3188
3189# Variables for tags utilities; see am/tags.am
3190if test -z "$CTAGS"; then
3191  CTAGS=ctags
3192fi
3193
3194if test -z "$ETAGS"; then
3195  ETAGS=etags
3196fi
3197
3198if test -z "$CSCOPE"; then
3199  CSCOPE=cscope
3200fi
3201
3202
3203
3204# POSIX will say in a future version that running "rm -f" with no argument
3205# is OK; and we want to be able to make that assumption in our Makefile
3206# recipes.  So use an aggressive probe to check that the usage we want is
3207# actually supported "in the wild" to an acceptable degree.
3208# See automake bug#10828.
3209# To make any issue more visible, cause the running configure to be aborted
3210# by default if the 'rm' program in use doesn't match our expectations; the
3211# user can still override this though.
3212if rm -f && rm -fr && rm -rf; then : OK; else
3213  cat >&2 <<'END'
3214Oops!
3215
3216Your 'rm' program seems unable to run without file operands specified
3217on the command line, even when the '-f' option is present.  This is contrary
3218to the behaviour of most rm programs out there, and not conforming with
3219the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3220
3221Please tell bug-automake@gnu.org about your system, including the value
3222of your $PATH and any error possibly output before this message.  This
3223can help us improve future automake versions.
3224
3225END
3226  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3227    echo 'Configuration will proceed anyway, since you have set the' >&2
3228    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3229    echo >&2
3230  else
3231    cat >&2 <<'END'
3232Aborting the configuration process, to ensure you take notice of the issue.
3233
3234You can download and install GNU coreutils to get an 'rm' implementation
3235that behaves properly: <https://www.gnu.org/software/coreutils/>.
3236
3237If you want to complete the configuration process using your problematic
3238'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3239to "yes", and re-run configure.
3240
3241END
3242    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3243  fi
3244fi
3245
3246
3247# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268DEPDIR="${am__leading_dot}deps"
3269
3270ac_config_commands="$ac_config_commands depfiles"
3271
3272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3273printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3274cat > confinc.mk << 'END'
3275am__doit:
3276	@echo this is the am__doit target >confinc.out
3277.PHONY: am__doit
3278END
3279am__include="#"
3280am__quote=
3281# BSD make does it like this.
3282echo '.include "confinc.mk" # ignored' > confmf.BSD
3283# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3284echo 'include confinc.mk # ignored' > confmf.GNU
3285_am_result=no
3286for s in GNU BSD; do
3287  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3288   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3289   ac_status=$?
3290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291   (exit $ac_status); }
3292  case $?:`cat confinc.out 2>/dev/null` in #(
3293  '0:this is the am__doit target') :
3294    case $s in #(
3295  BSD) :
3296    am__include='.include' am__quote='"' ;; #(
3297  *) :
3298    am__include='include' am__quote='' ;;
3299esac ;; #(
3300  *) :
3301     ;;
3302esac
3303  if test "$am__include" != "#"; then
3304    _am_result="yes ($s style)"
3305    break
3306  fi
3307done
3308rm -f confinc.* confmf.*
3309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3310printf "%s\n" "${_am_result}" >&6; }
3311
3312# Check whether --enable-dependency-tracking was given.
3313if test ${enable_dependency_tracking+y}
3314then :
3315  enableval=$enable_dependency_tracking;
3316fi
3317
3318if test "x$enable_dependency_tracking" != xno; then
3319  am_depcomp="$ac_aux_dir/depcomp"
3320  AMDEPBACKSLASH='\'
3321  am__nodep='_no'
3322fi
3323 if test "x$enable_dependency_tracking" != xno; then
3324  AMDEP_TRUE=
3325  AMDEP_FALSE='#'
3326else
3327  AMDEP_TRUE='#'
3328  AMDEP_FALSE=
3329fi
3330
3331
3332ac_ext=c
3333ac_cpp='$CPP $CPPFLAGS'
3334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3336ac_compiler_gnu=$ac_cv_c_compiler_gnu
3337if test -n "$ac_tool_prefix"; then
3338  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3339set dummy ${ac_tool_prefix}gcc; ac_word=$2
3340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341printf %s "checking for $ac_word... " >&6; }
3342if test ${ac_cv_prog_CC+y}
3343then :
3344  printf %s "(cached) " >&6
3345else $as_nop
3346  if test -n "$CC"; then
3347  ac_cv_prog_CC="$CC" # Let the user override the test.
3348else
3349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350for as_dir in $PATH
3351do
3352  IFS=$as_save_IFS
3353  case $as_dir in #(((
3354    '') as_dir=./ ;;
3355    */) ;;
3356    *) as_dir=$as_dir/ ;;
3357  esac
3358    for ac_exec_ext in '' $ac_executable_extensions; do
3359  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3360    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3361    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3362    break 2
3363  fi
3364done
3365  done
3366IFS=$as_save_IFS
3367
3368fi
3369fi
3370CC=$ac_cv_prog_CC
3371if test -n "$CC"; then
3372  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3373printf "%s\n" "$CC" >&6; }
3374else
3375  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376printf "%s\n" "no" >&6; }
3377fi
3378
3379
3380fi
3381if test -z "$ac_cv_prog_CC"; then
3382  ac_ct_CC=$CC
3383  # Extract the first word of "gcc", so it can be a program name with args.
3384set dummy gcc; ac_word=$2
3385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386printf %s "checking for $ac_word... " >&6; }
3387if test ${ac_cv_prog_ac_ct_CC+y}
3388then :
3389  printf %s "(cached) " >&6
3390else $as_nop
3391  if test -n "$ac_ct_CC"; then
3392  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3393else
3394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395for as_dir in $PATH
3396do
3397  IFS=$as_save_IFS
3398  case $as_dir in #(((
3399    '') as_dir=./ ;;
3400    */) ;;
3401    *) as_dir=$as_dir/ ;;
3402  esac
3403    for ac_exec_ext in '' $ac_executable_extensions; do
3404  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3405    ac_cv_prog_ac_ct_CC="gcc"
3406    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3407    break 2
3408  fi
3409done
3410  done
3411IFS=$as_save_IFS
3412
3413fi
3414fi
3415ac_ct_CC=$ac_cv_prog_ac_ct_CC
3416if test -n "$ac_ct_CC"; then
3417  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3418printf "%s\n" "$ac_ct_CC" >&6; }
3419else
3420  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421printf "%s\n" "no" >&6; }
3422fi
3423
3424  if test "x$ac_ct_CC" = x; then
3425    CC=""
3426  else
3427    case $cross_compiling:$ac_tool_warned in
3428yes:)
3429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3430printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3431ac_tool_warned=yes ;;
3432esac
3433    CC=$ac_ct_CC
3434  fi
3435else
3436  CC="$ac_cv_prog_CC"
3437fi
3438
3439if test -z "$CC"; then
3440          if test -n "$ac_tool_prefix"; then
3441    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3442set dummy ${ac_tool_prefix}cc; ac_word=$2
3443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3444printf %s "checking for $ac_word... " >&6; }
3445if test ${ac_cv_prog_CC+y}
3446then :
3447  printf %s "(cached) " >&6
3448else $as_nop
3449  if test -n "$CC"; then
3450  ac_cv_prog_CC="$CC" # Let the user override the test.
3451else
3452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453for as_dir in $PATH
3454do
3455  IFS=$as_save_IFS
3456  case $as_dir in #(((
3457    '') as_dir=./ ;;
3458    */) ;;
3459    *) as_dir=$as_dir/ ;;
3460  esac
3461    for ac_exec_ext in '' $ac_executable_extensions; do
3462  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3463    ac_cv_prog_CC="${ac_tool_prefix}cc"
3464    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3465    break 2
3466  fi
3467done
3468  done
3469IFS=$as_save_IFS
3470
3471fi
3472fi
3473CC=$ac_cv_prog_CC
3474if test -n "$CC"; then
3475  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3476printf "%s\n" "$CC" >&6; }
3477else
3478  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479printf "%s\n" "no" >&6; }
3480fi
3481
3482
3483  fi
3484fi
3485if test -z "$CC"; then
3486  # Extract the first word of "cc", so it can be a program name with args.
3487set dummy cc; ac_word=$2
3488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3489printf %s "checking for $ac_word... " >&6; }
3490if test ${ac_cv_prog_CC+y}
3491then :
3492  printf %s "(cached) " >&6
3493else $as_nop
3494  if test -n "$CC"; then
3495  ac_cv_prog_CC="$CC" # Let the user override the test.
3496else
3497  ac_prog_rejected=no
3498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499for as_dir in $PATH
3500do
3501  IFS=$as_save_IFS
3502  case $as_dir in #(((
3503    '') as_dir=./ ;;
3504    */) ;;
3505    *) as_dir=$as_dir/ ;;
3506  esac
3507    for ac_exec_ext in '' $ac_executable_extensions; do
3508  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3509    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3510       ac_prog_rejected=yes
3511       continue
3512     fi
3513    ac_cv_prog_CC="cc"
3514    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3515    break 2
3516  fi
3517done
3518  done
3519IFS=$as_save_IFS
3520
3521if test $ac_prog_rejected = yes; then
3522  # We found a bogon in the path, so make sure we never use it.
3523  set dummy $ac_cv_prog_CC
3524  shift
3525  if test $# != 0; then
3526    # We chose a different compiler from the bogus one.
3527    # However, it has the same basename, so the bogon will be chosen
3528    # first if we set CC to just the basename; use the full file name.
3529    shift
3530    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3531  fi
3532fi
3533fi
3534fi
3535CC=$ac_cv_prog_CC
3536if test -n "$CC"; then
3537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3538printf "%s\n" "$CC" >&6; }
3539else
3540  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541printf "%s\n" "no" >&6; }
3542fi
3543
3544
3545fi
3546if test -z "$CC"; then
3547  if test -n "$ac_tool_prefix"; then
3548  for ac_prog in cl.exe
3549  do
3550    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3551set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553printf %s "checking for $ac_word... " >&6; }
3554if test ${ac_cv_prog_CC+y}
3555then :
3556  printf %s "(cached) " >&6
3557else $as_nop
3558  if test -n "$CC"; then
3559  ac_cv_prog_CC="$CC" # Let the user override the test.
3560else
3561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562for as_dir in $PATH
3563do
3564  IFS=$as_save_IFS
3565  case $as_dir in #(((
3566    '') as_dir=./ ;;
3567    */) ;;
3568    *) as_dir=$as_dir/ ;;
3569  esac
3570    for ac_exec_ext in '' $ac_executable_extensions; do
3571  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3572    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3573    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3574    break 2
3575  fi
3576done
3577  done
3578IFS=$as_save_IFS
3579
3580fi
3581fi
3582CC=$ac_cv_prog_CC
3583if test -n "$CC"; then
3584  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3585printf "%s\n" "$CC" >&6; }
3586else
3587  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588printf "%s\n" "no" >&6; }
3589fi
3590
3591
3592    test -n "$CC" && break
3593  done
3594fi
3595if test -z "$CC"; then
3596  ac_ct_CC=$CC
3597  for ac_prog in cl.exe
3598do
3599  # Extract the first word of "$ac_prog", so it can be a program name with args.
3600set dummy $ac_prog; ac_word=$2
3601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602printf %s "checking for $ac_word... " >&6; }
3603if test ${ac_cv_prog_ac_ct_CC+y}
3604then :
3605  printf %s "(cached) " >&6
3606else $as_nop
3607  if test -n "$ac_ct_CC"; then
3608  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3609else
3610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611for as_dir in $PATH
3612do
3613  IFS=$as_save_IFS
3614  case $as_dir in #(((
3615    '') as_dir=./ ;;
3616    */) ;;
3617    *) as_dir=$as_dir/ ;;
3618  esac
3619    for ac_exec_ext in '' $ac_executable_extensions; do
3620  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3621    ac_cv_prog_ac_ct_CC="$ac_prog"
3622    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3623    break 2
3624  fi
3625done
3626  done
3627IFS=$as_save_IFS
3628
3629fi
3630fi
3631ac_ct_CC=$ac_cv_prog_ac_ct_CC
3632if test -n "$ac_ct_CC"; then
3633  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3634printf "%s\n" "$ac_ct_CC" >&6; }
3635else
3636  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637printf "%s\n" "no" >&6; }
3638fi
3639
3640
3641  test -n "$ac_ct_CC" && break
3642done
3643
3644  if test "x$ac_ct_CC" = x; then
3645    CC=""
3646  else
3647    case $cross_compiling:$ac_tool_warned in
3648yes:)
3649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3650printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3651ac_tool_warned=yes ;;
3652esac
3653    CC=$ac_ct_CC
3654  fi
3655fi
3656
3657fi
3658if test -z "$CC"; then
3659  if test -n "$ac_tool_prefix"; then
3660  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3661set dummy ${ac_tool_prefix}clang; ac_word=$2
3662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3663printf %s "checking for $ac_word... " >&6; }
3664if test ${ac_cv_prog_CC+y}
3665then :
3666  printf %s "(cached) " >&6
3667else $as_nop
3668  if test -n "$CC"; then
3669  ac_cv_prog_CC="$CC" # Let the user override the test.
3670else
3671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672for as_dir in $PATH
3673do
3674  IFS=$as_save_IFS
3675  case $as_dir in #(((
3676    '') as_dir=./ ;;
3677    */) ;;
3678    *) as_dir=$as_dir/ ;;
3679  esac
3680    for ac_exec_ext in '' $ac_executable_extensions; do
3681  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3682    ac_cv_prog_CC="${ac_tool_prefix}clang"
3683    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3684    break 2
3685  fi
3686done
3687  done
3688IFS=$as_save_IFS
3689
3690fi
3691fi
3692CC=$ac_cv_prog_CC
3693if test -n "$CC"; then
3694  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3695printf "%s\n" "$CC" >&6; }
3696else
3697  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698printf "%s\n" "no" >&6; }
3699fi
3700
3701
3702fi
3703if test -z "$ac_cv_prog_CC"; then
3704  ac_ct_CC=$CC
3705  # Extract the first word of "clang", so it can be a program name with args.
3706set dummy clang; ac_word=$2
3707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3708printf %s "checking for $ac_word... " >&6; }
3709if test ${ac_cv_prog_ac_ct_CC+y}
3710then :
3711  printf %s "(cached) " >&6
3712else $as_nop
3713  if test -n "$ac_ct_CC"; then
3714  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3715else
3716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717for as_dir in $PATH
3718do
3719  IFS=$as_save_IFS
3720  case $as_dir in #(((
3721    '') as_dir=./ ;;
3722    */) ;;
3723    *) as_dir=$as_dir/ ;;
3724  esac
3725    for ac_exec_ext in '' $ac_executable_extensions; do
3726  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3727    ac_cv_prog_ac_ct_CC="clang"
3728    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3729    break 2
3730  fi
3731done
3732  done
3733IFS=$as_save_IFS
3734
3735fi
3736fi
3737ac_ct_CC=$ac_cv_prog_ac_ct_CC
3738if test -n "$ac_ct_CC"; then
3739  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3740printf "%s\n" "$ac_ct_CC" >&6; }
3741else
3742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743printf "%s\n" "no" >&6; }
3744fi
3745
3746  if test "x$ac_ct_CC" = x; then
3747    CC=""
3748  else
3749    case $cross_compiling:$ac_tool_warned in
3750yes:)
3751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3752printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3753ac_tool_warned=yes ;;
3754esac
3755    CC=$ac_ct_CC
3756  fi
3757else
3758  CC="$ac_cv_prog_CC"
3759fi
3760
3761fi
3762
3763
3764test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3765printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3766as_fn_error $? "no acceptable C compiler found in \$PATH
3767See \`config.log' for more details" "$LINENO" 5; }
3768
3769# Provide some information about the compiler.
3770printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3771set X $ac_compile
3772ac_compiler=$2
3773for ac_option in --version -v -V -qversion -version; do
3774  { { ac_try="$ac_compiler $ac_option >&5"
3775case "(($ac_try" in
3776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777  *) ac_try_echo=$ac_try;;
3778esac
3779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780printf "%s\n" "$ac_try_echo"; } >&5
3781  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3782  ac_status=$?
3783  if test -s conftest.err; then
3784    sed '10a\
3785... rest of stderr output deleted ...
3786         10q' conftest.err >conftest.er1
3787    cat conftest.er1 >&5
3788  fi
3789  rm -f conftest.er1 conftest.err
3790  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3791  test $ac_status = 0; }
3792done
3793
3794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795/* end confdefs.h.  */
3796
3797int
3798main (void)
3799{
3800
3801  ;
3802  return 0;
3803}
3804_ACEOF
3805ac_clean_files_save=$ac_clean_files
3806ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3807# Try to create an executable without -o first, disregard a.out.
3808# It will help us diagnose broken compilers, and finding out an intuition
3809# of exeext.
3810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3811printf %s "checking whether the C compiler works... " >&6; }
3812ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3813
3814# The possible output files:
3815ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3816
3817ac_rmfiles=
3818for ac_file in $ac_files
3819do
3820  case $ac_file in
3821    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3822    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3823  esac
3824done
3825rm -f $ac_rmfiles
3826
3827if { { ac_try="$ac_link_default"
3828case "(($ac_try" in
3829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830  *) ac_try_echo=$ac_try;;
3831esac
3832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3833printf "%s\n" "$ac_try_echo"; } >&5
3834  (eval "$ac_link_default") 2>&5
3835  ac_status=$?
3836  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837  test $ac_status = 0; }
3838then :
3839  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3840# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3841# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3842# so that the user can short-circuit this test for compilers unknown to
3843# Autoconf.
3844for ac_file in $ac_files ''
3845do
3846  test -f "$ac_file" || continue
3847  case $ac_file in
3848    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3849	;;
3850    [ab].out )
3851	# We found the default executable, but exeext='' is most
3852	# certainly right.
3853	break;;
3854    *.* )
3855	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3856	then :; else
3857	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3858	fi
3859	# We set ac_cv_exeext here because the later test for it is not
3860	# safe: cross compilers may not add the suffix if given an `-o'
3861	# argument, so we may need to know it at that point already.
3862	# Even if this section looks crufty: it has the advantage of
3863	# actually working.
3864	break;;
3865    * )
3866	break;;
3867  esac
3868done
3869test "$ac_cv_exeext" = no && ac_cv_exeext=
3870
3871else $as_nop
3872  ac_file=''
3873fi
3874if test -z "$ac_file"
3875then :
3876  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877printf "%s\n" "no" >&6; }
3878printf "%s\n" "$as_me: failed program was:" >&5
3879sed 's/^/| /' conftest.$ac_ext >&5
3880
3881{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3882printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3883as_fn_error 77 "C compiler cannot create executables
3884See \`config.log' for more details" "$LINENO" 5; }
3885else $as_nop
3886  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3887printf "%s\n" "yes" >&6; }
3888fi
3889{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3890printf %s "checking for C compiler default output file name... " >&6; }
3891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3892printf "%s\n" "$ac_file" >&6; }
3893ac_exeext=$ac_cv_exeext
3894
3895rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3896ac_clean_files=$ac_clean_files_save
3897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3898printf %s "checking for suffix of executables... " >&6; }
3899if { { ac_try="$ac_link"
3900case "(($ac_try" in
3901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902  *) ac_try_echo=$ac_try;;
3903esac
3904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3905printf "%s\n" "$ac_try_echo"; } >&5
3906  (eval "$ac_link") 2>&5
3907  ac_status=$?
3908  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3909  test $ac_status = 0; }
3910then :
3911  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3912# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3913# work properly (i.e., refer to `conftest.exe'), while it won't with
3914# `rm'.
3915for ac_file in conftest.exe conftest conftest.*; do
3916  test -f "$ac_file" || continue
3917  case $ac_file in
3918    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3919    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3920	  break;;
3921    * ) break;;
3922  esac
3923done
3924else $as_nop
3925  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3927as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3928See \`config.log' for more details" "$LINENO" 5; }
3929fi
3930rm -f conftest conftest$ac_cv_exeext
3931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3932printf "%s\n" "$ac_cv_exeext" >&6; }
3933
3934rm -f conftest.$ac_ext
3935EXEEXT=$ac_cv_exeext
3936ac_exeext=$EXEEXT
3937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3938/* end confdefs.h.  */
3939#include <stdio.h>
3940int
3941main (void)
3942{
3943FILE *f = fopen ("conftest.out", "w");
3944 return ferror (f) || fclose (f) != 0;
3945
3946  ;
3947  return 0;
3948}
3949_ACEOF
3950ac_clean_files="$ac_clean_files conftest.out"
3951# Check that the compiler produces executables we can run.  If not, either
3952# the compiler is broken, or we cross compile.
3953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3954printf %s "checking whether we are cross compiling... " >&6; }
3955if test "$cross_compiling" != yes; then
3956  { { ac_try="$ac_link"
3957case "(($ac_try" in
3958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959  *) ac_try_echo=$ac_try;;
3960esac
3961eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962printf "%s\n" "$ac_try_echo"; } >&5
3963  (eval "$ac_link") 2>&5
3964  ac_status=$?
3965  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3966  test $ac_status = 0; }
3967  if { ac_try='./conftest$ac_cv_exeext'
3968  { { case "(($ac_try" in
3969  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970  *) ac_try_echo=$ac_try;;
3971esac
3972eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3973printf "%s\n" "$ac_try_echo"; } >&5
3974  (eval "$ac_try") 2>&5
3975  ac_status=$?
3976  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3977  test $ac_status = 0; }; }; then
3978    cross_compiling=no
3979  else
3980    if test "$cross_compiling" = maybe; then
3981	cross_compiling=yes
3982    else
3983	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3984printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3985as_fn_error 77 "cannot run C compiled programs.
3986If you meant to cross compile, use \`--host'.
3987See \`config.log' for more details" "$LINENO" 5; }
3988    fi
3989  fi
3990fi
3991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3992printf "%s\n" "$cross_compiling" >&6; }
3993
3994rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3995ac_clean_files=$ac_clean_files_save
3996{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3997printf %s "checking for suffix of object files... " >&6; }
3998if test ${ac_cv_objext+y}
3999then :
4000  printf %s "(cached) " >&6
4001else $as_nop
4002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003/* end confdefs.h.  */
4004
4005int
4006main (void)
4007{
4008
4009  ;
4010  return 0;
4011}
4012_ACEOF
4013rm -f conftest.o conftest.obj
4014if { { ac_try="$ac_compile"
4015case "(($ac_try" in
4016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017  *) ac_try_echo=$ac_try;;
4018esac
4019eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4020printf "%s\n" "$ac_try_echo"; } >&5
4021  (eval "$ac_compile") 2>&5
4022  ac_status=$?
4023  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4024  test $ac_status = 0; }
4025then :
4026  for ac_file in conftest.o conftest.obj conftest.*; do
4027  test -f "$ac_file" || continue;
4028  case $ac_file in
4029    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4030    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4031       break;;
4032  esac
4033done
4034else $as_nop
4035  printf "%s\n" "$as_me: failed program was:" >&5
4036sed 's/^/| /' conftest.$ac_ext >&5
4037
4038{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4039printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4040as_fn_error $? "cannot compute suffix of object files: cannot compile
4041See \`config.log' for more details" "$LINENO" 5; }
4042fi
4043rm -f conftest.$ac_cv_objext conftest.$ac_ext
4044fi
4045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4046printf "%s\n" "$ac_cv_objext" >&6; }
4047OBJEXT=$ac_cv_objext
4048ac_objext=$OBJEXT
4049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4050printf %s "checking whether the compiler supports GNU C... " >&6; }
4051if test ${ac_cv_c_compiler_gnu+y}
4052then :
4053  printf %s "(cached) " >&6
4054else $as_nop
4055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056/* end confdefs.h.  */
4057
4058int
4059main (void)
4060{
4061#ifndef __GNUC__
4062       choke me
4063#endif
4064
4065  ;
4066  return 0;
4067}
4068_ACEOF
4069if ac_fn_c_try_compile "$LINENO"
4070then :
4071  ac_compiler_gnu=yes
4072else $as_nop
4073  ac_compiler_gnu=no
4074fi
4075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4076ac_cv_c_compiler_gnu=$ac_compiler_gnu
4077
4078fi
4079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4080printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4081ac_compiler_gnu=$ac_cv_c_compiler_gnu
4082
4083if test $ac_compiler_gnu = yes; then
4084  GCC=yes
4085else
4086  GCC=
4087fi
4088ac_test_CFLAGS=${CFLAGS+y}
4089ac_save_CFLAGS=$CFLAGS
4090{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4091printf %s "checking whether $CC accepts -g... " >&6; }
4092if test ${ac_cv_prog_cc_g+y}
4093then :
4094  printf %s "(cached) " >&6
4095else $as_nop
4096  ac_save_c_werror_flag=$ac_c_werror_flag
4097   ac_c_werror_flag=yes
4098   ac_cv_prog_cc_g=no
4099   CFLAGS="-g"
4100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101/* end confdefs.h.  */
4102
4103int
4104main (void)
4105{
4106
4107  ;
4108  return 0;
4109}
4110_ACEOF
4111if ac_fn_c_try_compile "$LINENO"
4112then :
4113  ac_cv_prog_cc_g=yes
4114else $as_nop
4115  CFLAGS=""
4116      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117/* end confdefs.h.  */
4118
4119int
4120main (void)
4121{
4122
4123  ;
4124  return 0;
4125}
4126_ACEOF
4127if ac_fn_c_try_compile "$LINENO"
4128then :
4129
4130else $as_nop
4131  ac_c_werror_flag=$ac_save_c_werror_flag
4132	 CFLAGS="-g"
4133	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134/* end confdefs.h.  */
4135
4136int
4137main (void)
4138{
4139
4140  ;
4141  return 0;
4142}
4143_ACEOF
4144if ac_fn_c_try_compile "$LINENO"
4145then :
4146  ac_cv_prog_cc_g=yes
4147fi
4148rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4149fi
4150rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4151fi
4152rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4153   ac_c_werror_flag=$ac_save_c_werror_flag
4154fi
4155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4156printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4157if test $ac_test_CFLAGS; then
4158  CFLAGS=$ac_save_CFLAGS
4159elif test $ac_cv_prog_cc_g = yes; then
4160  if test "$GCC" = yes; then
4161    CFLAGS="-g -O2"
4162  else
4163    CFLAGS="-g"
4164  fi
4165else
4166  if test "$GCC" = yes; then
4167    CFLAGS="-O2"
4168  else
4169    CFLAGS=
4170  fi
4171fi
4172ac_prog_cc_stdc=no
4173if test x$ac_prog_cc_stdc = xno
4174then :
4175  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4176printf %s "checking for $CC option to enable C11 features... " >&6; }
4177if test ${ac_cv_prog_cc_c11+y}
4178then :
4179  printf %s "(cached) " >&6
4180else $as_nop
4181  ac_cv_prog_cc_c11=no
4182ac_save_CC=$CC
4183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184/* end confdefs.h.  */
4185$ac_c_conftest_c11_program
4186_ACEOF
4187for ac_arg in '' -std=gnu11
4188do
4189  CC="$ac_save_CC $ac_arg"
4190  if ac_fn_c_try_compile "$LINENO"
4191then :
4192  ac_cv_prog_cc_c11=$ac_arg
4193fi
4194rm -f core conftest.err conftest.$ac_objext conftest.beam
4195  test "x$ac_cv_prog_cc_c11" != "xno" && break
4196done
4197rm -f conftest.$ac_ext
4198CC=$ac_save_CC
4199fi
4200
4201if test "x$ac_cv_prog_cc_c11" = xno
4202then :
4203  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4204printf "%s\n" "unsupported" >&6; }
4205else $as_nop
4206  if test "x$ac_cv_prog_cc_c11" = x
4207then :
4208  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4209printf "%s\n" "none needed" >&6; }
4210else $as_nop
4211  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4212printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4213     CC="$CC $ac_cv_prog_cc_c11"
4214fi
4215  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4216  ac_prog_cc_stdc=c11
4217fi
4218fi
4219if test x$ac_prog_cc_stdc = xno
4220then :
4221  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4222printf %s "checking for $CC option to enable C99 features... " >&6; }
4223if test ${ac_cv_prog_cc_c99+y}
4224then :
4225  printf %s "(cached) " >&6
4226else $as_nop
4227  ac_cv_prog_cc_c99=no
4228ac_save_CC=$CC
4229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230/* end confdefs.h.  */
4231$ac_c_conftest_c99_program
4232_ACEOF
4233for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4234do
4235  CC="$ac_save_CC $ac_arg"
4236  if ac_fn_c_try_compile "$LINENO"
4237then :
4238  ac_cv_prog_cc_c99=$ac_arg
4239fi
4240rm -f core conftest.err conftest.$ac_objext conftest.beam
4241  test "x$ac_cv_prog_cc_c99" != "xno" && break
4242done
4243rm -f conftest.$ac_ext
4244CC=$ac_save_CC
4245fi
4246
4247if test "x$ac_cv_prog_cc_c99" = xno
4248then :
4249  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4250printf "%s\n" "unsupported" >&6; }
4251else $as_nop
4252  if test "x$ac_cv_prog_cc_c99" = x
4253then :
4254  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4255printf "%s\n" "none needed" >&6; }
4256else $as_nop
4257  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4258printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4259     CC="$CC $ac_cv_prog_cc_c99"
4260fi
4261  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4262  ac_prog_cc_stdc=c99
4263fi
4264fi
4265if test x$ac_prog_cc_stdc = xno
4266then :
4267  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4268printf %s "checking for $CC option to enable C89 features... " >&6; }
4269if test ${ac_cv_prog_cc_c89+y}
4270then :
4271  printf %s "(cached) " >&6
4272else $as_nop
4273  ac_cv_prog_cc_c89=no
4274ac_save_CC=$CC
4275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276/* end confdefs.h.  */
4277$ac_c_conftest_c89_program
4278_ACEOF
4279for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4280do
4281  CC="$ac_save_CC $ac_arg"
4282  if ac_fn_c_try_compile "$LINENO"
4283then :
4284  ac_cv_prog_cc_c89=$ac_arg
4285fi
4286rm -f core conftest.err conftest.$ac_objext conftest.beam
4287  test "x$ac_cv_prog_cc_c89" != "xno" && break
4288done
4289rm -f conftest.$ac_ext
4290CC=$ac_save_CC
4291fi
4292
4293if test "x$ac_cv_prog_cc_c89" = xno
4294then :
4295  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4296printf "%s\n" "unsupported" >&6; }
4297else $as_nop
4298  if test "x$ac_cv_prog_cc_c89" = x
4299then :
4300  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4301printf "%s\n" "none needed" >&6; }
4302else $as_nop
4303  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4304printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4305     CC="$CC $ac_cv_prog_cc_c89"
4306fi
4307  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4308  ac_prog_cc_stdc=c89
4309fi
4310fi
4311
4312ac_ext=c
4313ac_cpp='$CPP $CPPFLAGS'
4314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317
4318
4319  ac_ext=c
4320ac_cpp='$CPP $CPPFLAGS'
4321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4325printf %s "checking whether $CC understands -c and -o together... " >&6; }
4326if test ${am_cv_prog_cc_c_o+y}
4327then :
4328  printf %s "(cached) " >&6
4329else $as_nop
4330  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331/* end confdefs.h.  */
4332
4333int
4334main (void)
4335{
4336
4337  ;
4338  return 0;
4339}
4340_ACEOF
4341  # Make sure it works both with $CC and with simple cc.
4342  # Following AC_PROG_CC_C_O, we do the test twice because some
4343  # compilers refuse to overwrite an existing .o file with -o,
4344  # though they will create one.
4345  am_cv_prog_cc_c_o=yes
4346  for am_i in 1 2; do
4347    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4348   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4349   ac_status=$?
4350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351   (exit $ac_status); } \
4352         && test -f conftest2.$ac_objext; then
4353      : OK
4354    else
4355      am_cv_prog_cc_c_o=no
4356      break
4357    fi
4358  done
4359  rm -f core conftest*
4360  unset am_i
4361fi
4362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4363printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4364if test "$am_cv_prog_cc_c_o" != yes; then
4365   # Losing compiler, so override with the script.
4366   # FIXME: It is wrong to rewrite CC.
4367   # But if we don't then we get into trouble of one sort or another.
4368   # A longer-term fix would be to have automake use am__CC in this case,
4369   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4370   CC="$am_aux_dir/compile $CC"
4371fi
4372ac_ext=c
4373ac_cpp='$CPP $CPPFLAGS'
4374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4376ac_compiler_gnu=$ac_cv_c_compiler_gnu
4377
4378
4379depcc="$CC"   am_compiler_list=
4380
4381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4382printf %s "checking dependency style of $depcc... " >&6; }
4383if test ${am_cv_CC_dependencies_compiler_type+y}
4384then :
4385  printf %s "(cached) " >&6
4386else $as_nop
4387  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4388  # We make a subdir and do the tests there.  Otherwise we can end up
4389  # making bogus files that we don't know about and never remove.  For
4390  # instance it was reported that on HP-UX the gcc test will end up
4391  # making a dummy file named 'D' -- because '-MD' means "put the output
4392  # in D".
4393  rm -rf conftest.dir
4394  mkdir conftest.dir
4395  # Copy depcomp to subdir because otherwise we won't find it if we're
4396  # using a relative directory.
4397  cp "$am_depcomp" conftest.dir
4398  cd conftest.dir
4399  # We will build objects and dependencies in a subdirectory because
4400  # it helps to detect inapplicable dependency modes.  For instance
4401  # both Tru64's cc and ICC support -MD to output dependencies as a
4402  # side effect of compilation, but ICC will put the dependencies in
4403  # the current directory while Tru64 will put them in the object
4404  # directory.
4405  mkdir sub
4406
4407  am_cv_CC_dependencies_compiler_type=none
4408  if test "$am_compiler_list" = ""; then
4409     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4410  fi
4411  am__universal=false
4412  case " $depcc " in #(
4413     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4414     esac
4415
4416  for depmode in $am_compiler_list; do
4417    # Setup a source with many dependencies, because some compilers
4418    # like to wrap large dependency lists on column 80 (with \), and
4419    # we should not choose a depcomp mode which is confused by this.
4420    #
4421    # We need to recreate these files for each test, as the compiler may
4422    # overwrite some of them when testing with obscure command lines.
4423    # This happens at least with the AIX C compiler.
4424    : > sub/conftest.c
4425    for i in 1 2 3 4 5 6; do
4426      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4427      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4428      # Solaris 10 /bin/sh.
4429      echo '/* dummy */' > sub/conftst$i.h
4430    done
4431    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4432
4433    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4434    # mode.  It turns out that the SunPro C++ compiler does not properly
4435    # handle '-M -o', and we need to detect this.  Also, some Intel
4436    # versions had trouble with output in subdirs.
4437    am__obj=sub/conftest.${OBJEXT-o}
4438    am__minus_obj="-o $am__obj"
4439    case $depmode in
4440    gcc)
4441      # This depmode causes a compiler race in universal mode.
4442      test "$am__universal" = false || continue
4443      ;;
4444    nosideeffect)
4445      # After this tag, mechanisms are not by side-effect, so they'll
4446      # only be used when explicitly requested.
4447      if test "x$enable_dependency_tracking" = xyes; then
4448	continue
4449      else
4450	break
4451      fi
4452      ;;
4453    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4454      # This compiler won't grok '-c -o', but also, the minuso test has
4455      # not run yet.  These depmodes are late enough in the game, and
4456      # so weak that their functioning should not be impacted.
4457      am__obj=conftest.${OBJEXT-o}
4458      am__minus_obj=
4459      ;;
4460    none) break ;;
4461    esac
4462    if depmode=$depmode \
4463       source=sub/conftest.c object=$am__obj \
4464       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4465       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4466         >/dev/null 2>conftest.err &&
4467       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4468       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4469       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4470       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4471      # icc doesn't choke on unknown options, it will just issue warnings
4472      # or remarks (even with -Werror).  So we grep stderr for any message
4473      # that says an option was ignored or not supported.
4474      # When given -MP, icc 7.0 and 7.1 complain thusly:
4475      #   icc: Command line warning: ignoring option '-M'; no argument required
4476      # The diagnosis changed in icc 8.0:
4477      #   icc: Command line remark: option '-MP' not supported
4478      if (grep 'ignoring option' conftest.err ||
4479          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4480        am_cv_CC_dependencies_compiler_type=$depmode
4481        break
4482      fi
4483    fi
4484  done
4485
4486  cd ..
4487  rm -rf conftest.dir
4488else
4489  am_cv_CC_dependencies_compiler_type=none
4490fi
4491
4492fi
4493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4494printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4495CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4496
4497 if
4498  test "x$enable_dependency_tracking" != xno \
4499  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4500  am__fastdepCC_TRUE=
4501  am__fastdepCC_FALSE='#'
4502else
4503  am__fastdepCC_TRUE='#'
4504  am__fastdepCC_FALSE=
4505fi
4506
4507
4508
4509
4510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4511printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4512if test ${ac_cv_c_undeclared_builtin_options+y}
4513then :
4514  printf %s "(cached) " >&6
4515else $as_nop
4516  ac_save_CFLAGS=$CFLAGS
4517   ac_cv_c_undeclared_builtin_options='cannot detect'
4518   for ac_arg in '' -fno-builtin; do
4519     CFLAGS="$ac_save_CFLAGS $ac_arg"
4520     # This test program should *not* compile successfully.
4521     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522/* end confdefs.h.  */
4523
4524int
4525main (void)
4526{
4527(void) strchr;
4528  ;
4529  return 0;
4530}
4531_ACEOF
4532if ac_fn_c_try_compile "$LINENO"
4533then :
4534
4535else $as_nop
4536  # This test program should compile successfully.
4537        # No library function is consistently available on
4538        # freestanding implementations, so test against a dummy
4539        # declaration.  Include always-available headers on the
4540        # off chance that they somehow elicit warnings.
4541        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542/* end confdefs.h.  */
4543#include <float.h>
4544#include <limits.h>
4545#include <stdarg.h>
4546#include <stddef.h>
4547extern void ac_decl (int, char *);
4548
4549int
4550main (void)
4551{
4552(void) ac_decl (0, (char *) 0);
4553  (void) ac_decl;
4554
4555  ;
4556  return 0;
4557}
4558_ACEOF
4559if ac_fn_c_try_compile "$LINENO"
4560then :
4561  if test x"$ac_arg" = x
4562then :
4563  ac_cv_c_undeclared_builtin_options='none needed'
4564else $as_nop
4565  ac_cv_c_undeclared_builtin_options=$ac_arg
4566fi
4567          break
4568fi
4569rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4570fi
4571rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4572    done
4573    CFLAGS=$ac_save_CFLAGS
4574
4575fi
4576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4577printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4578  case $ac_cv_c_undeclared_builtin_options in #(
4579  'cannot detect') :
4580    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4581printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4582as_fn_error $? "cannot make $CC report undeclared builtins
4583See \`config.log' for more details" "$LINENO" 5; } ;; #(
4584  'none needed') :
4585    ac_c_undeclared_builtin_options='' ;; #(
4586  *) :
4587    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4588esac
4589
4590ac_header= ac_cache=
4591for ac_item in $ac_header_c_list
4592do
4593  if test $ac_cache; then
4594    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4595    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4596      printf "%s\n" "#define $ac_item 1" >> confdefs.h
4597    fi
4598    ac_header= ac_cache=
4599  elif test $ac_header; then
4600    ac_cache=$ac_item
4601  else
4602    ac_header=$ac_item
4603  fi
4604done
4605
4606
4607
4608
4609
4610
4611
4612
4613if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4614then :
4615
4616printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4617
4618fi
4619
4620
4621
4622
4623ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4624if test "x$ac_cv_have_decl___clang__" = xyes
4625then :
4626  CLANGCC="yes"
4627else $as_nop
4628  CLANGCC="no"
4629fi
4630ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4631if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4632then :
4633  INTELCC="yes"
4634else $as_nop
4635  INTELCC="no"
4636fi
4637ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4638if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4639then :
4640  SUNCC="yes"
4641else $as_nop
4642  SUNCC="no"
4643fi
4644
4645
4646
4647
4648
4649
4650
4651
4652if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4653	if test -n "$ac_tool_prefix"; then
4654  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4655set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4657printf %s "checking for $ac_word... " >&6; }
4658if test ${ac_cv_path_PKG_CONFIG+y}
4659then :
4660  printf %s "(cached) " >&6
4661else $as_nop
4662  case $PKG_CONFIG in
4663  [\\/]* | ?:[\\/]*)
4664  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4665  ;;
4666  *)
4667  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668for as_dir in $PATH
4669do
4670  IFS=$as_save_IFS
4671  case $as_dir in #(((
4672    '') as_dir=./ ;;
4673    */) ;;
4674    *) as_dir=$as_dir/ ;;
4675  esac
4676    for ac_exec_ext in '' $ac_executable_extensions; do
4677  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4678    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4679    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4680    break 2
4681  fi
4682done
4683  done
4684IFS=$as_save_IFS
4685
4686  ;;
4687esac
4688fi
4689PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4690if test -n "$PKG_CONFIG"; then
4691  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4692printf "%s\n" "$PKG_CONFIG" >&6; }
4693else
4694  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695printf "%s\n" "no" >&6; }
4696fi
4697
4698
4699fi
4700if test -z "$ac_cv_path_PKG_CONFIG"; then
4701  ac_pt_PKG_CONFIG=$PKG_CONFIG
4702  # Extract the first word of "pkg-config", so it can be a program name with args.
4703set dummy pkg-config; ac_word=$2
4704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4705printf %s "checking for $ac_word... " >&6; }
4706if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4707then :
4708  printf %s "(cached) " >&6
4709else $as_nop
4710  case $ac_pt_PKG_CONFIG in
4711  [\\/]* | ?:[\\/]*)
4712  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4713  ;;
4714  *)
4715  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716for as_dir in $PATH
4717do
4718  IFS=$as_save_IFS
4719  case $as_dir in #(((
4720    '') as_dir=./ ;;
4721    */) ;;
4722    *) as_dir=$as_dir/ ;;
4723  esac
4724    for ac_exec_ext in '' $ac_executable_extensions; do
4725  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4726    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4727    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4728    break 2
4729  fi
4730done
4731  done
4732IFS=$as_save_IFS
4733
4734  ;;
4735esac
4736fi
4737ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4738if test -n "$ac_pt_PKG_CONFIG"; then
4739  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4740printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4741else
4742  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4743printf "%s\n" "no" >&6; }
4744fi
4745
4746  if test "x$ac_pt_PKG_CONFIG" = x; then
4747    PKG_CONFIG=""
4748  else
4749    case $cross_compiling:$ac_tool_warned in
4750yes:)
4751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4752printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4753ac_tool_warned=yes ;;
4754esac
4755    PKG_CONFIG=$ac_pt_PKG_CONFIG
4756  fi
4757else
4758  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4759fi
4760
4761fi
4762if test -n "$PKG_CONFIG"; then
4763	_pkg_min_version=0.9.0
4764	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4765printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4766	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4767		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4768printf "%s\n" "yes" >&6; }
4769	else
4770		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4771printf "%s\n" "no" >&6; }
4772		PKG_CONFIG=""
4773	fi
4774fi
4775
4776
4777  # Make sure we can run config.sub.
4778$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4779  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4780
4781{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4782printf %s "checking build system type... " >&6; }
4783if test ${ac_cv_build+y}
4784then :
4785  printf %s "(cached) " >&6
4786else $as_nop
4787  ac_build_alias=$build_alias
4788test "x$ac_build_alias" = x &&
4789  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4790test "x$ac_build_alias" = x &&
4791  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4792ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4793  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4794
4795fi
4796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4797printf "%s\n" "$ac_cv_build" >&6; }
4798case $ac_cv_build in
4799*-*-*) ;;
4800*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4801esac
4802build=$ac_cv_build
4803ac_save_IFS=$IFS; IFS='-'
4804set x $ac_cv_build
4805shift
4806build_cpu=$1
4807build_vendor=$2
4808shift; shift
4809# Remember, the first character of IFS is used to create $*,
4810# except with old shells:
4811build_os=$*
4812IFS=$ac_save_IFS
4813case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4814
4815
4816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4817printf %s "checking host system type... " >&6; }
4818if test ${ac_cv_host+y}
4819then :
4820  printf %s "(cached) " >&6
4821else $as_nop
4822  if test "x$host_alias" = x; then
4823  ac_cv_host=$ac_cv_build
4824else
4825  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4826    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4827fi
4828
4829fi
4830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4831printf "%s\n" "$ac_cv_host" >&6; }
4832case $ac_cv_host in
4833*-*-*) ;;
4834*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4835esac
4836host=$ac_cv_host
4837ac_save_IFS=$IFS; IFS='-'
4838set x $ac_cv_host
4839shift
4840host_cpu=$1
4841host_vendor=$2
4842shift; shift
4843# Remember, the first character of IFS is used to create $*,
4844# except with old shells:
4845host_os=$*
4846IFS=$ac_save_IFS
4847case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4848
4849
4850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4851printf %s "checking for a sed that does not truncate output... " >&6; }
4852if test ${ac_cv_path_SED+y}
4853then :
4854  printf %s "(cached) " >&6
4855else $as_nop
4856            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4857     for ac_i in 1 2 3 4 5 6 7; do
4858       ac_script="$ac_script$as_nl$ac_script"
4859     done
4860     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4861     { ac_script=; unset ac_script;}
4862     if test -z "$SED"; then
4863  ac_path_SED_found=false
4864  # Loop through the user's path and test for each of PROGNAME-LIST
4865  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866for as_dir in $PATH
4867do
4868  IFS=$as_save_IFS
4869  case $as_dir in #(((
4870    '') as_dir=./ ;;
4871    */) ;;
4872    *) as_dir=$as_dir/ ;;
4873  esac
4874    for ac_prog in sed gsed
4875   do
4876    for ac_exec_ext in '' $ac_executable_extensions; do
4877      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4878      as_fn_executable_p "$ac_path_SED" || continue
4879# Check for GNU ac_path_SED and select it if it is found.
4880  # Check for GNU $ac_path_SED
4881case `"$ac_path_SED" --version 2>&1` in
4882*GNU*)
4883  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4884*)
4885  ac_count=0
4886  printf %s 0123456789 >"conftest.in"
4887  while :
4888  do
4889    cat "conftest.in" "conftest.in" >"conftest.tmp"
4890    mv "conftest.tmp" "conftest.in"
4891    cp "conftest.in" "conftest.nl"
4892    printf "%s\n" '' >> "conftest.nl"
4893    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4894    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4895    as_fn_arith $ac_count + 1 && ac_count=$as_val
4896    if test $ac_count -gt ${ac_path_SED_max-0}; then
4897      # Best one so far, save it but keep looking for a better one
4898      ac_cv_path_SED="$ac_path_SED"
4899      ac_path_SED_max=$ac_count
4900    fi
4901    # 10*(2^10) chars as input seems more than enough
4902    test $ac_count -gt 10 && break
4903  done
4904  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4905esac
4906
4907      $ac_path_SED_found && break 3
4908    done
4909  done
4910  done
4911IFS=$as_save_IFS
4912  if test -z "$ac_cv_path_SED"; then
4913    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4914  fi
4915else
4916  ac_cv_path_SED=$SED
4917fi
4918
4919fi
4920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4921printf "%s\n" "$ac_cv_path_SED" >&6; }
4922 SED="$ac_cv_path_SED"
4923  rm -f conftest.sed
4924
4925
4926
4927
4928
4929
4930# Check whether --enable-selective-werror was given.
4931if test ${enable_selective_werror+y}
4932then :
4933  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4934else $as_nop
4935  SELECTIVE_WERROR=yes
4936fi
4937
4938
4939
4940
4941
4942# -v is too short to test reliably with XORG_TESTSET_CFLAG
4943if test "x$SUNCC" = "xyes"; then
4944    BASE_CFLAGS="-v"
4945else
4946    BASE_CFLAGS=""
4947fi
4948
4949# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963xorg_testset_save_CFLAGS="$CFLAGS"
4964
4965if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4966	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4967	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4968printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4969if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4970then :
4971  printf %s "(cached) " >&6
4972else $as_nop
4973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974/* end confdefs.h.  */
4975int i;
4976_ACEOF
4977if ac_fn_c_try_compile "$LINENO"
4978then :
4979  xorg_cv_cc_flag_unknown_warning_option=yes
4980else $as_nop
4981  xorg_cv_cc_flag_unknown_warning_option=no
4982fi
4983rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4984fi
4985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4986printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4987	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4988	CFLAGS="$xorg_testset_save_CFLAGS"
4989fi
4990
4991if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4992	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4993		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4994	fi
4995	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4996	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4997printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4998if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4999then :
5000  printf %s "(cached) " >&6
5001else $as_nop
5002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003/* end confdefs.h.  */
5004int i;
5005_ACEOF
5006if ac_fn_c_try_compile "$LINENO"
5007then :
5008  xorg_cv_cc_flag_unused_command_line_argument=yes
5009else $as_nop
5010  xorg_cv_cc_flag_unused_command_line_argument=no
5011fi
5012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5013fi
5014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5015printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5016	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5017	CFLAGS="$xorg_testset_save_CFLAGS"
5018fi
5019
5020found="no"
5021
5022	if test $found = "no" ; then
5023		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5024			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5025		fi
5026
5027		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5028			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5029		fi
5030
5031		CFLAGS="$CFLAGS -Wall"
5032
5033		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5034printf %s "checking if $CC supports -Wall... " >&6; }
5035		cacheid=xorg_cv_cc_flag__Wall
5036		if eval test \${$cacheid+y}
5037then :
5038  printf %s "(cached) " >&6
5039else $as_nop
5040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041/* end confdefs.h.  */
5042int i;
5043int
5044main (void)
5045{
5046
5047  ;
5048  return 0;
5049}
5050_ACEOF
5051if ac_fn_c_try_link "$LINENO"
5052then :
5053  eval $cacheid=yes
5054else $as_nop
5055  eval $cacheid=no
5056fi
5057rm -f core conftest.err conftest.$ac_objext conftest.beam \
5058    conftest$ac_exeext conftest.$ac_ext
5059fi
5060
5061
5062		CFLAGS="$xorg_testset_save_CFLAGS"
5063
5064		eval supported=\$$cacheid
5065		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5066printf "%s\n" "$supported" >&6; }
5067		if test "$supported" = "yes" ; then
5068			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5069			found="yes"
5070		fi
5071	fi
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087xorg_testset_save_CFLAGS="$CFLAGS"
5088
5089if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5090	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5091	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5092printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5093if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5094then :
5095  printf %s "(cached) " >&6
5096else $as_nop
5097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098/* end confdefs.h.  */
5099int i;
5100_ACEOF
5101if ac_fn_c_try_compile "$LINENO"
5102then :
5103  xorg_cv_cc_flag_unknown_warning_option=yes
5104else $as_nop
5105  xorg_cv_cc_flag_unknown_warning_option=no
5106fi
5107rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5108fi
5109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5110printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5111	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5112	CFLAGS="$xorg_testset_save_CFLAGS"
5113fi
5114
5115if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5116	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5117		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5118	fi
5119	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5120	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5121printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5122if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5123then :
5124  printf %s "(cached) " >&6
5125else $as_nop
5126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127/* end confdefs.h.  */
5128int i;
5129_ACEOF
5130if ac_fn_c_try_compile "$LINENO"
5131then :
5132  xorg_cv_cc_flag_unused_command_line_argument=yes
5133else $as_nop
5134  xorg_cv_cc_flag_unused_command_line_argument=no
5135fi
5136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5137fi
5138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5139printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5140	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5141	CFLAGS="$xorg_testset_save_CFLAGS"
5142fi
5143
5144found="no"
5145
5146	if test $found = "no" ; then
5147		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5148			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5149		fi
5150
5151		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5152			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5153		fi
5154
5155		CFLAGS="$CFLAGS -Wpointer-arith"
5156
5157		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5158printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5159		cacheid=xorg_cv_cc_flag__Wpointer_arith
5160		if eval test \${$cacheid+y}
5161then :
5162  printf %s "(cached) " >&6
5163else $as_nop
5164  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5165/* end confdefs.h.  */
5166int i;
5167int
5168main (void)
5169{
5170
5171  ;
5172  return 0;
5173}
5174_ACEOF
5175if ac_fn_c_try_link "$LINENO"
5176then :
5177  eval $cacheid=yes
5178else $as_nop
5179  eval $cacheid=no
5180fi
5181rm -f core conftest.err conftest.$ac_objext conftest.beam \
5182    conftest$ac_exeext conftest.$ac_ext
5183fi
5184
5185
5186		CFLAGS="$xorg_testset_save_CFLAGS"
5187
5188		eval supported=\$$cacheid
5189		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5190printf "%s\n" "$supported" >&6; }
5191		if test "$supported" = "yes" ; then
5192			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5193			found="yes"
5194		fi
5195	fi
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211xorg_testset_save_CFLAGS="$CFLAGS"
5212
5213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5214	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5215	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5216printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5217if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5218then :
5219  printf %s "(cached) " >&6
5220else $as_nop
5221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5222/* end confdefs.h.  */
5223int i;
5224_ACEOF
5225if ac_fn_c_try_compile "$LINENO"
5226then :
5227  xorg_cv_cc_flag_unknown_warning_option=yes
5228else $as_nop
5229  xorg_cv_cc_flag_unknown_warning_option=no
5230fi
5231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5232fi
5233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5234printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5235	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5236	CFLAGS="$xorg_testset_save_CFLAGS"
5237fi
5238
5239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5240	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5241		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5242	fi
5243	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5244	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5245printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5246if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5247then :
5248  printf %s "(cached) " >&6
5249else $as_nop
5250  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251/* end confdefs.h.  */
5252int i;
5253_ACEOF
5254if ac_fn_c_try_compile "$LINENO"
5255then :
5256  xorg_cv_cc_flag_unused_command_line_argument=yes
5257else $as_nop
5258  xorg_cv_cc_flag_unused_command_line_argument=no
5259fi
5260rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5261fi
5262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5263printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5264	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5265	CFLAGS="$xorg_testset_save_CFLAGS"
5266fi
5267
5268found="no"
5269
5270	if test $found = "no" ; then
5271		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5272			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5273		fi
5274
5275		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5276			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5277		fi
5278
5279		CFLAGS="$CFLAGS -Wmissing-declarations"
5280
5281		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5282printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5283		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5284		if eval test \${$cacheid+y}
5285then :
5286  printf %s "(cached) " >&6
5287else $as_nop
5288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289/* end confdefs.h.  */
5290int i;
5291int
5292main (void)
5293{
5294
5295  ;
5296  return 0;
5297}
5298_ACEOF
5299if ac_fn_c_try_link "$LINENO"
5300then :
5301  eval $cacheid=yes
5302else $as_nop
5303  eval $cacheid=no
5304fi
5305rm -f core conftest.err conftest.$ac_objext conftest.beam \
5306    conftest$ac_exeext conftest.$ac_ext
5307fi
5308
5309
5310		CFLAGS="$xorg_testset_save_CFLAGS"
5311
5312		eval supported=\$$cacheid
5313		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5314printf "%s\n" "$supported" >&6; }
5315		if test "$supported" = "yes" ; then
5316			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5317			found="yes"
5318		fi
5319	fi
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335xorg_testset_save_CFLAGS="$CFLAGS"
5336
5337if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5338	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5339	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5340printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5341if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5342then :
5343  printf %s "(cached) " >&6
5344else $as_nop
5345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346/* end confdefs.h.  */
5347int i;
5348_ACEOF
5349if ac_fn_c_try_compile "$LINENO"
5350then :
5351  xorg_cv_cc_flag_unknown_warning_option=yes
5352else $as_nop
5353  xorg_cv_cc_flag_unknown_warning_option=no
5354fi
5355rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5356fi
5357{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5358printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5359	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5360	CFLAGS="$xorg_testset_save_CFLAGS"
5361fi
5362
5363if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5364	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5365		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5366	fi
5367	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5368	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5369printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5370if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5371then :
5372  printf %s "(cached) " >&6
5373else $as_nop
5374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375/* end confdefs.h.  */
5376int i;
5377_ACEOF
5378if ac_fn_c_try_compile "$LINENO"
5379then :
5380  xorg_cv_cc_flag_unused_command_line_argument=yes
5381else $as_nop
5382  xorg_cv_cc_flag_unused_command_line_argument=no
5383fi
5384rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5385fi
5386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5387printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5388	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5389	CFLAGS="$xorg_testset_save_CFLAGS"
5390fi
5391
5392found="no"
5393
5394	if test $found = "no" ; then
5395		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5396			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5397		fi
5398
5399		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5400			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5401		fi
5402
5403		CFLAGS="$CFLAGS -Wformat=2"
5404
5405		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5406printf %s "checking if $CC supports -Wformat=2... " >&6; }
5407		cacheid=xorg_cv_cc_flag__Wformat_2
5408		if eval test \${$cacheid+y}
5409then :
5410  printf %s "(cached) " >&6
5411else $as_nop
5412  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413/* end confdefs.h.  */
5414int i;
5415int
5416main (void)
5417{
5418
5419  ;
5420  return 0;
5421}
5422_ACEOF
5423if ac_fn_c_try_link "$LINENO"
5424then :
5425  eval $cacheid=yes
5426else $as_nop
5427  eval $cacheid=no
5428fi
5429rm -f core conftest.err conftest.$ac_objext conftest.beam \
5430    conftest$ac_exeext conftest.$ac_ext
5431fi
5432
5433
5434		CFLAGS="$xorg_testset_save_CFLAGS"
5435
5436		eval supported=\$$cacheid
5437		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5438printf "%s\n" "$supported" >&6; }
5439		if test "$supported" = "yes" ; then
5440			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5441			found="yes"
5442		fi
5443	fi
5444
5445	if test $found = "no" ; then
5446		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5447			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5448		fi
5449
5450		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5451			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5452		fi
5453
5454		CFLAGS="$CFLAGS -Wformat"
5455
5456		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5457printf %s "checking if $CC supports -Wformat... " >&6; }
5458		cacheid=xorg_cv_cc_flag__Wformat
5459		if eval test \${$cacheid+y}
5460then :
5461  printf %s "(cached) " >&6
5462else $as_nop
5463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464/* end confdefs.h.  */
5465int i;
5466int
5467main (void)
5468{
5469
5470  ;
5471  return 0;
5472}
5473_ACEOF
5474if ac_fn_c_try_link "$LINENO"
5475then :
5476  eval $cacheid=yes
5477else $as_nop
5478  eval $cacheid=no
5479fi
5480rm -f core conftest.err conftest.$ac_objext conftest.beam \
5481    conftest$ac_exeext conftest.$ac_ext
5482fi
5483
5484
5485		CFLAGS="$xorg_testset_save_CFLAGS"
5486
5487		eval supported=\$$cacheid
5488		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5489printf "%s\n" "$supported" >&6; }
5490		if test "$supported" = "yes" ; then
5491			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5492			found="yes"
5493		fi
5494	fi
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512xorg_testset_save_CFLAGS="$CFLAGS"
5513
5514if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5515	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5516	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5517printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5518if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5519then :
5520  printf %s "(cached) " >&6
5521else $as_nop
5522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523/* end confdefs.h.  */
5524int i;
5525_ACEOF
5526if ac_fn_c_try_compile "$LINENO"
5527then :
5528  xorg_cv_cc_flag_unknown_warning_option=yes
5529else $as_nop
5530  xorg_cv_cc_flag_unknown_warning_option=no
5531fi
5532rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5533fi
5534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5535printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5536	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5537	CFLAGS="$xorg_testset_save_CFLAGS"
5538fi
5539
5540if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5541	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5542		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5543	fi
5544	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5545	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5546printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5547if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5548then :
5549  printf %s "(cached) " >&6
5550else $as_nop
5551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552/* end confdefs.h.  */
5553int i;
5554_ACEOF
5555if ac_fn_c_try_compile "$LINENO"
5556then :
5557  xorg_cv_cc_flag_unused_command_line_argument=yes
5558else $as_nop
5559  xorg_cv_cc_flag_unused_command_line_argument=no
5560fi
5561rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5562fi
5563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5564printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5565	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5566	CFLAGS="$xorg_testset_save_CFLAGS"
5567fi
5568
5569found="no"
5570
5571	if test $found = "no" ; then
5572		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5573			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5574		fi
5575
5576		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5577			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5578		fi
5579
5580		CFLAGS="$CFLAGS -Wstrict-prototypes"
5581
5582		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5583printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5584		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5585		if eval test \${$cacheid+y}
5586then :
5587  printf %s "(cached) " >&6
5588else $as_nop
5589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590/* end confdefs.h.  */
5591int i;
5592int
5593main (void)
5594{
5595
5596  ;
5597  return 0;
5598}
5599_ACEOF
5600if ac_fn_c_try_link "$LINENO"
5601then :
5602  eval $cacheid=yes
5603else $as_nop
5604  eval $cacheid=no
5605fi
5606rm -f core conftest.err conftest.$ac_objext conftest.beam \
5607    conftest$ac_exeext conftest.$ac_ext
5608fi
5609
5610
5611		CFLAGS="$xorg_testset_save_CFLAGS"
5612
5613		eval supported=\$$cacheid
5614		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5615printf "%s\n" "$supported" >&6; }
5616		if test "$supported" = "yes" ; then
5617			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5618			found="yes"
5619		fi
5620	fi
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636xorg_testset_save_CFLAGS="$CFLAGS"
5637
5638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5639	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5640	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5641printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5642if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5643then :
5644  printf %s "(cached) " >&6
5645else $as_nop
5646  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647/* end confdefs.h.  */
5648int i;
5649_ACEOF
5650if ac_fn_c_try_compile "$LINENO"
5651then :
5652  xorg_cv_cc_flag_unknown_warning_option=yes
5653else $as_nop
5654  xorg_cv_cc_flag_unknown_warning_option=no
5655fi
5656rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5657fi
5658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5659printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5660	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5661	CFLAGS="$xorg_testset_save_CFLAGS"
5662fi
5663
5664if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5665	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5666		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5667	fi
5668	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5669	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5670printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5671if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5672then :
5673  printf %s "(cached) " >&6
5674else $as_nop
5675  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676/* end confdefs.h.  */
5677int i;
5678_ACEOF
5679if ac_fn_c_try_compile "$LINENO"
5680then :
5681  xorg_cv_cc_flag_unused_command_line_argument=yes
5682else $as_nop
5683  xorg_cv_cc_flag_unused_command_line_argument=no
5684fi
5685rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5686fi
5687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5688printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5689	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5690	CFLAGS="$xorg_testset_save_CFLAGS"
5691fi
5692
5693found="no"
5694
5695	if test $found = "no" ; then
5696		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5697			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5698		fi
5699
5700		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5701			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5702		fi
5703
5704		CFLAGS="$CFLAGS -Wmissing-prototypes"
5705
5706		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5707printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5708		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5709		if eval test \${$cacheid+y}
5710then :
5711  printf %s "(cached) " >&6
5712else $as_nop
5713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714/* end confdefs.h.  */
5715int i;
5716int
5717main (void)
5718{
5719
5720  ;
5721  return 0;
5722}
5723_ACEOF
5724if ac_fn_c_try_link "$LINENO"
5725then :
5726  eval $cacheid=yes
5727else $as_nop
5728  eval $cacheid=no
5729fi
5730rm -f core conftest.err conftest.$ac_objext conftest.beam \
5731    conftest$ac_exeext conftest.$ac_ext
5732fi
5733
5734
5735		CFLAGS="$xorg_testset_save_CFLAGS"
5736
5737		eval supported=\$$cacheid
5738		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5739printf "%s\n" "$supported" >&6; }
5740		if test "$supported" = "yes" ; then
5741			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5742			found="yes"
5743		fi
5744	fi
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760xorg_testset_save_CFLAGS="$CFLAGS"
5761
5762if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5763	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5764	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5765printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5766if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5767then :
5768  printf %s "(cached) " >&6
5769else $as_nop
5770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771/* end confdefs.h.  */
5772int i;
5773_ACEOF
5774if ac_fn_c_try_compile "$LINENO"
5775then :
5776  xorg_cv_cc_flag_unknown_warning_option=yes
5777else $as_nop
5778  xorg_cv_cc_flag_unknown_warning_option=no
5779fi
5780rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5781fi
5782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5783printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5784	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5785	CFLAGS="$xorg_testset_save_CFLAGS"
5786fi
5787
5788if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5789	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5790		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5791	fi
5792	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5793	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5794printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5795if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5796then :
5797  printf %s "(cached) " >&6
5798else $as_nop
5799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5800/* end confdefs.h.  */
5801int i;
5802_ACEOF
5803if ac_fn_c_try_compile "$LINENO"
5804then :
5805  xorg_cv_cc_flag_unused_command_line_argument=yes
5806else $as_nop
5807  xorg_cv_cc_flag_unused_command_line_argument=no
5808fi
5809rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5810fi
5811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5812printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5813	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5814	CFLAGS="$xorg_testset_save_CFLAGS"
5815fi
5816
5817found="no"
5818
5819	if test $found = "no" ; then
5820		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5821			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5822		fi
5823
5824		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5825			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5826		fi
5827
5828		CFLAGS="$CFLAGS -Wnested-externs"
5829
5830		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5831printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5832		cacheid=xorg_cv_cc_flag__Wnested_externs
5833		if eval test \${$cacheid+y}
5834then :
5835  printf %s "(cached) " >&6
5836else $as_nop
5837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838/* end confdefs.h.  */
5839int i;
5840int
5841main (void)
5842{
5843
5844  ;
5845  return 0;
5846}
5847_ACEOF
5848if ac_fn_c_try_link "$LINENO"
5849then :
5850  eval $cacheid=yes
5851else $as_nop
5852  eval $cacheid=no
5853fi
5854rm -f core conftest.err conftest.$ac_objext conftest.beam \
5855    conftest$ac_exeext conftest.$ac_ext
5856fi
5857
5858
5859		CFLAGS="$xorg_testset_save_CFLAGS"
5860
5861		eval supported=\$$cacheid
5862		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5863printf "%s\n" "$supported" >&6; }
5864		if test "$supported" = "yes" ; then
5865			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5866			found="yes"
5867		fi
5868	fi
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884xorg_testset_save_CFLAGS="$CFLAGS"
5885
5886if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5887	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5888	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5889printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5890if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5891then :
5892  printf %s "(cached) " >&6
5893else $as_nop
5894  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895/* end confdefs.h.  */
5896int i;
5897_ACEOF
5898if ac_fn_c_try_compile "$LINENO"
5899then :
5900  xorg_cv_cc_flag_unknown_warning_option=yes
5901else $as_nop
5902  xorg_cv_cc_flag_unknown_warning_option=no
5903fi
5904rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5905fi
5906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5907printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5908	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5909	CFLAGS="$xorg_testset_save_CFLAGS"
5910fi
5911
5912if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5913	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5914		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5915	fi
5916	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5917	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5918printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5919if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5920then :
5921  printf %s "(cached) " >&6
5922else $as_nop
5923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5924/* end confdefs.h.  */
5925int i;
5926_ACEOF
5927if ac_fn_c_try_compile "$LINENO"
5928then :
5929  xorg_cv_cc_flag_unused_command_line_argument=yes
5930else $as_nop
5931  xorg_cv_cc_flag_unused_command_line_argument=no
5932fi
5933rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5934fi
5935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5936printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5937	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5938	CFLAGS="$xorg_testset_save_CFLAGS"
5939fi
5940
5941found="no"
5942
5943	if test $found = "no" ; then
5944		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5945			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5946		fi
5947
5948		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5949			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5950		fi
5951
5952		CFLAGS="$CFLAGS -Wbad-function-cast"
5953
5954		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5955printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5956		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5957		if eval test \${$cacheid+y}
5958then :
5959  printf %s "(cached) " >&6
5960else $as_nop
5961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962/* end confdefs.h.  */
5963int i;
5964int
5965main (void)
5966{
5967
5968  ;
5969  return 0;
5970}
5971_ACEOF
5972if ac_fn_c_try_link "$LINENO"
5973then :
5974  eval $cacheid=yes
5975else $as_nop
5976  eval $cacheid=no
5977fi
5978rm -f core conftest.err conftest.$ac_objext conftest.beam \
5979    conftest$ac_exeext conftest.$ac_ext
5980fi
5981
5982
5983		CFLAGS="$xorg_testset_save_CFLAGS"
5984
5985		eval supported=\$$cacheid
5986		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5987printf "%s\n" "$supported" >&6; }
5988		if test "$supported" = "yes" ; then
5989			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5990			found="yes"
5991		fi
5992	fi
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008xorg_testset_save_CFLAGS="$CFLAGS"
6009
6010if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6011	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6012	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6013printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6014if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6015then :
6016  printf %s "(cached) " >&6
6017else $as_nop
6018  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019/* end confdefs.h.  */
6020int i;
6021_ACEOF
6022if ac_fn_c_try_compile "$LINENO"
6023then :
6024  xorg_cv_cc_flag_unknown_warning_option=yes
6025else $as_nop
6026  xorg_cv_cc_flag_unknown_warning_option=no
6027fi
6028rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6029fi
6030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6031printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6032	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6033	CFLAGS="$xorg_testset_save_CFLAGS"
6034fi
6035
6036if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6037	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6038		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6039	fi
6040	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6041	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6042printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6043if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6044then :
6045  printf %s "(cached) " >&6
6046else $as_nop
6047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048/* end confdefs.h.  */
6049int i;
6050_ACEOF
6051if ac_fn_c_try_compile "$LINENO"
6052then :
6053  xorg_cv_cc_flag_unused_command_line_argument=yes
6054else $as_nop
6055  xorg_cv_cc_flag_unused_command_line_argument=no
6056fi
6057rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6058fi
6059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6060printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6061	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6062	CFLAGS="$xorg_testset_save_CFLAGS"
6063fi
6064
6065found="no"
6066
6067	if test $found = "no" ; then
6068		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6069			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6070		fi
6071
6072		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6073			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6074		fi
6075
6076		CFLAGS="$CFLAGS -Wold-style-definition"
6077
6078		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6079printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6080		cacheid=xorg_cv_cc_flag__Wold_style_definition
6081		if eval test \${$cacheid+y}
6082then :
6083  printf %s "(cached) " >&6
6084else $as_nop
6085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086/* end confdefs.h.  */
6087int i;
6088int
6089main (void)
6090{
6091
6092  ;
6093  return 0;
6094}
6095_ACEOF
6096if ac_fn_c_try_link "$LINENO"
6097then :
6098  eval $cacheid=yes
6099else $as_nop
6100  eval $cacheid=no
6101fi
6102rm -f core conftest.err conftest.$ac_objext conftest.beam \
6103    conftest$ac_exeext conftest.$ac_ext
6104fi
6105
6106
6107		CFLAGS="$xorg_testset_save_CFLAGS"
6108
6109		eval supported=\$$cacheid
6110		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6111printf "%s\n" "$supported" >&6; }
6112		if test "$supported" = "yes" ; then
6113			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6114			found="yes"
6115		fi
6116	fi
6117
6118	if test $found = "no" ; then
6119		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6120			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6121		fi
6122
6123		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6124			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6125		fi
6126
6127		CFLAGS="$CFLAGS -fd"
6128
6129		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6130printf %s "checking if $CC supports -fd... " >&6; }
6131		cacheid=xorg_cv_cc_flag__fd
6132		if eval test \${$cacheid+y}
6133then :
6134  printf %s "(cached) " >&6
6135else $as_nop
6136  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137/* end confdefs.h.  */
6138int i;
6139int
6140main (void)
6141{
6142
6143  ;
6144  return 0;
6145}
6146_ACEOF
6147if ac_fn_c_try_link "$LINENO"
6148then :
6149  eval $cacheid=yes
6150else $as_nop
6151  eval $cacheid=no
6152fi
6153rm -f core conftest.err conftest.$ac_objext conftest.beam \
6154    conftest$ac_exeext conftest.$ac_ext
6155fi
6156
6157
6158		CFLAGS="$xorg_testset_save_CFLAGS"
6159
6160		eval supported=\$$cacheid
6161		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6162printf "%s\n" "$supported" >&6; }
6163		if test "$supported" = "yes" ; then
6164			BASE_CFLAGS="$BASE_CFLAGS -fd"
6165			found="yes"
6166		fi
6167	fi
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183xorg_testset_save_CFLAGS="$CFLAGS"
6184
6185if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6186	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6187	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6188printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6189if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6190then :
6191  printf %s "(cached) " >&6
6192else $as_nop
6193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6194/* end confdefs.h.  */
6195int i;
6196_ACEOF
6197if ac_fn_c_try_compile "$LINENO"
6198then :
6199  xorg_cv_cc_flag_unknown_warning_option=yes
6200else $as_nop
6201  xorg_cv_cc_flag_unknown_warning_option=no
6202fi
6203rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6204fi
6205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6206printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6207	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6208	CFLAGS="$xorg_testset_save_CFLAGS"
6209fi
6210
6211if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6212	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6213		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6214	fi
6215	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6216	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6217printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6218if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6219then :
6220  printf %s "(cached) " >&6
6221else $as_nop
6222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223/* end confdefs.h.  */
6224int i;
6225_ACEOF
6226if ac_fn_c_try_compile "$LINENO"
6227then :
6228  xorg_cv_cc_flag_unused_command_line_argument=yes
6229else $as_nop
6230  xorg_cv_cc_flag_unused_command_line_argument=no
6231fi
6232rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6233fi
6234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6235printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6236	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6237	CFLAGS="$xorg_testset_save_CFLAGS"
6238fi
6239
6240found="no"
6241
6242	if test $found = "no" ; then
6243		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6244			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6245		fi
6246
6247		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6248			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6249		fi
6250
6251		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6252
6253		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6254printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6255		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6256		if eval test \${$cacheid+y}
6257then :
6258  printf %s "(cached) " >&6
6259else $as_nop
6260  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261/* end confdefs.h.  */
6262int i;
6263int
6264main (void)
6265{
6266
6267  ;
6268  return 0;
6269}
6270_ACEOF
6271if ac_fn_c_try_link "$LINENO"
6272then :
6273  eval $cacheid=yes
6274else $as_nop
6275  eval $cacheid=no
6276fi
6277rm -f core conftest.err conftest.$ac_objext conftest.beam \
6278    conftest$ac_exeext conftest.$ac_ext
6279fi
6280
6281
6282		CFLAGS="$xorg_testset_save_CFLAGS"
6283
6284		eval supported=\$$cacheid
6285		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6286printf "%s\n" "$supported" >&6; }
6287		if test "$supported" = "yes" ; then
6288			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6289			found="yes"
6290		fi
6291	fi
6292
6293
6294
6295
6296
6297# This chunk adds additional warnings that could catch undesired effects.
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311xorg_testset_save_CFLAGS="$CFLAGS"
6312
6313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6314	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6315	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6316printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6317if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6318then :
6319  printf %s "(cached) " >&6
6320else $as_nop
6321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6322/* end confdefs.h.  */
6323int i;
6324_ACEOF
6325if ac_fn_c_try_compile "$LINENO"
6326then :
6327  xorg_cv_cc_flag_unknown_warning_option=yes
6328else $as_nop
6329  xorg_cv_cc_flag_unknown_warning_option=no
6330fi
6331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6332fi
6333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6334printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6335	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6336	CFLAGS="$xorg_testset_save_CFLAGS"
6337fi
6338
6339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6340	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6341		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6342	fi
6343	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6344	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6345printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6346if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6347then :
6348  printf %s "(cached) " >&6
6349else $as_nop
6350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351/* end confdefs.h.  */
6352int i;
6353_ACEOF
6354if ac_fn_c_try_compile "$LINENO"
6355then :
6356  xorg_cv_cc_flag_unused_command_line_argument=yes
6357else $as_nop
6358  xorg_cv_cc_flag_unused_command_line_argument=no
6359fi
6360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6361fi
6362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6363printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6364	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6365	CFLAGS="$xorg_testset_save_CFLAGS"
6366fi
6367
6368found="no"
6369
6370	if test $found = "no" ; then
6371		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6372			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6373		fi
6374
6375		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6376			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6377		fi
6378
6379		CFLAGS="$CFLAGS -Wunused"
6380
6381		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6382printf %s "checking if $CC supports -Wunused... " >&6; }
6383		cacheid=xorg_cv_cc_flag__Wunused
6384		if eval test \${$cacheid+y}
6385then :
6386  printf %s "(cached) " >&6
6387else $as_nop
6388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6389/* end confdefs.h.  */
6390int i;
6391int
6392main (void)
6393{
6394
6395  ;
6396  return 0;
6397}
6398_ACEOF
6399if ac_fn_c_try_link "$LINENO"
6400then :
6401  eval $cacheid=yes
6402else $as_nop
6403  eval $cacheid=no
6404fi
6405rm -f core conftest.err conftest.$ac_objext conftest.beam \
6406    conftest$ac_exeext conftest.$ac_ext
6407fi
6408
6409
6410		CFLAGS="$xorg_testset_save_CFLAGS"
6411
6412		eval supported=\$$cacheid
6413		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6414printf "%s\n" "$supported" >&6; }
6415		if test "$supported" = "yes" ; then
6416			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6417			found="yes"
6418		fi
6419	fi
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435xorg_testset_save_CFLAGS="$CFLAGS"
6436
6437if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6438	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6439	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6440printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6441if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6442then :
6443  printf %s "(cached) " >&6
6444else $as_nop
6445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446/* end confdefs.h.  */
6447int i;
6448_ACEOF
6449if ac_fn_c_try_compile "$LINENO"
6450then :
6451  xorg_cv_cc_flag_unknown_warning_option=yes
6452else $as_nop
6453  xorg_cv_cc_flag_unknown_warning_option=no
6454fi
6455rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6456fi
6457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6458printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6459	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6460	CFLAGS="$xorg_testset_save_CFLAGS"
6461fi
6462
6463if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6464	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6465		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6466	fi
6467	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6468	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6469printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6470if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6471then :
6472  printf %s "(cached) " >&6
6473else $as_nop
6474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475/* end confdefs.h.  */
6476int i;
6477_ACEOF
6478if ac_fn_c_try_compile "$LINENO"
6479then :
6480  xorg_cv_cc_flag_unused_command_line_argument=yes
6481else $as_nop
6482  xorg_cv_cc_flag_unused_command_line_argument=no
6483fi
6484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6485fi
6486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6487printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6488	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6489	CFLAGS="$xorg_testset_save_CFLAGS"
6490fi
6491
6492found="no"
6493
6494	if test $found = "no" ; then
6495		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6496			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6497		fi
6498
6499		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6500			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6501		fi
6502
6503		CFLAGS="$CFLAGS -Wuninitialized"
6504
6505		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6506printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6507		cacheid=xorg_cv_cc_flag__Wuninitialized
6508		if eval test \${$cacheid+y}
6509then :
6510  printf %s "(cached) " >&6
6511else $as_nop
6512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513/* end confdefs.h.  */
6514int i;
6515int
6516main (void)
6517{
6518
6519  ;
6520  return 0;
6521}
6522_ACEOF
6523if ac_fn_c_try_link "$LINENO"
6524then :
6525  eval $cacheid=yes
6526else $as_nop
6527  eval $cacheid=no
6528fi
6529rm -f core conftest.err conftest.$ac_objext conftest.beam \
6530    conftest$ac_exeext conftest.$ac_ext
6531fi
6532
6533
6534		CFLAGS="$xorg_testset_save_CFLAGS"
6535
6536		eval supported=\$$cacheid
6537		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6538printf "%s\n" "$supported" >&6; }
6539		if test "$supported" = "yes" ; then
6540			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6541			found="yes"
6542		fi
6543	fi
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559xorg_testset_save_CFLAGS="$CFLAGS"
6560
6561if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6562	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6563	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6564printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6565if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6566then :
6567  printf %s "(cached) " >&6
6568else $as_nop
6569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570/* end confdefs.h.  */
6571int i;
6572_ACEOF
6573if ac_fn_c_try_compile "$LINENO"
6574then :
6575  xorg_cv_cc_flag_unknown_warning_option=yes
6576else $as_nop
6577  xorg_cv_cc_flag_unknown_warning_option=no
6578fi
6579rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6580fi
6581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6582printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6583	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6584	CFLAGS="$xorg_testset_save_CFLAGS"
6585fi
6586
6587if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6588	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6589		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6590	fi
6591	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6592	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6593printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6594if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6595then :
6596  printf %s "(cached) " >&6
6597else $as_nop
6598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599/* end confdefs.h.  */
6600int i;
6601_ACEOF
6602if ac_fn_c_try_compile "$LINENO"
6603then :
6604  xorg_cv_cc_flag_unused_command_line_argument=yes
6605else $as_nop
6606  xorg_cv_cc_flag_unused_command_line_argument=no
6607fi
6608rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6609fi
6610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6611printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6612	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6613	CFLAGS="$xorg_testset_save_CFLAGS"
6614fi
6615
6616found="no"
6617
6618	if test $found = "no" ; then
6619		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6620			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6621		fi
6622
6623		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6624			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6625		fi
6626
6627		CFLAGS="$CFLAGS -Wshadow"
6628
6629		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6630printf %s "checking if $CC supports -Wshadow... " >&6; }
6631		cacheid=xorg_cv_cc_flag__Wshadow
6632		if eval test \${$cacheid+y}
6633then :
6634  printf %s "(cached) " >&6
6635else $as_nop
6636  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637/* end confdefs.h.  */
6638int i;
6639int
6640main (void)
6641{
6642
6643  ;
6644  return 0;
6645}
6646_ACEOF
6647if ac_fn_c_try_link "$LINENO"
6648then :
6649  eval $cacheid=yes
6650else $as_nop
6651  eval $cacheid=no
6652fi
6653rm -f core conftest.err conftest.$ac_objext conftest.beam \
6654    conftest$ac_exeext conftest.$ac_ext
6655fi
6656
6657
6658		CFLAGS="$xorg_testset_save_CFLAGS"
6659
6660		eval supported=\$$cacheid
6661		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6662printf "%s\n" "$supported" >&6; }
6663		if test "$supported" = "yes" ; then
6664			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6665			found="yes"
6666		fi
6667	fi
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683xorg_testset_save_CFLAGS="$CFLAGS"
6684
6685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6686	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6687	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6688printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6689if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6690then :
6691  printf %s "(cached) " >&6
6692else $as_nop
6693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694/* end confdefs.h.  */
6695int i;
6696_ACEOF
6697if ac_fn_c_try_compile "$LINENO"
6698then :
6699  xorg_cv_cc_flag_unknown_warning_option=yes
6700else $as_nop
6701  xorg_cv_cc_flag_unknown_warning_option=no
6702fi
6703rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6704fi
6705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6706printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6707	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6708	CFLAGS="$xorg_testset_save_CFLAGS"
6709fi
6710
6711if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6712	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6713		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6714	fi
6715	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6716	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6717printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6718if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6719then :
6720  printf %s "(cached) " >&6
6721else $as_nop
6722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6723/* end confdefs.h.  */
6724int i;
6725_ACEOF
6726if ac_fn_c_try_compile "$LINENO"
6727then :
6728  xorg_cv_cc_flag_unused_command_line_argument=yes
6729else $as_nop
6730  xorg_cv_cc_flag_unused_command_line_argument=no
6731fi
6732rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6733fi
6734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6735printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6736	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6737	CFLAGS="$xorg_testset_save_CFLAGS"
6738fi
6739
6740found="no"
6741
6742	if test $found = "no" ; then
6743		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6744			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6745		fi
6746
6747		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6748			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6749		fi
6750
6751		CFLAGS="$CFLAGS -Wmissing-noreturn"
6752
6753		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6754printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6755		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6756		if eval test \${$cacheid+y}
6757then :
6758  printf %s "(cached) " >&6
6759else $as_nop
6760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761/* end confdefs.h.  */
6762int i;
6763int
6764main (void)
6765{
6766
6767  ;
6768  return 0;
6769}
6770_ACEOF
6771if ac_fn_c_try_link "$LINENO"
6772then :
6773  eval $cacheid=yes
6774else $as_nop
6775  eval $cacheid=no
6776fi
6777rm -f core conftest.err conftest.$ac_objext conftest.beam \
6778    conftest$ac_exeext conftest.$ac_ext
6779fi
6780
6781
6782		CFLAGS="$xorg_testset_save_CFLAGS"
6783
6784		eval supported=\$$cacheid
6785		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6786printf "%s\n" "$supported" >&6; }
6787		if test "$supported" = "yes" ; then
6788			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6789			found="yes"
6790		fi
6791	fi
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807xorg_testset_save_CFLAGS="$CFLAGS"
6808
6809if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6810	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6811	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6812printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6813if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6814then :
6815  printf %s "(cached) " >&6
6816else $as_nop
6817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6818/* end confdefs.h.  */
6819int i;
6820_ACEOF
6821if ac_fn_c_try_compile "$LINENO"
6822then :
6823  xorg_cv_cc_flag_unknown_warning_option=yes
6824else $as_nop
6825  xorg_cv_cc_flag_unknown_warning_option=no
6826fi
6827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6828fi
6829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6830printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6831	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6832	CFLAGS="$xorg_testset_save_CFLAGS"
6833fi
6834
6835if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6836	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6837		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6838	fi
6839	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6840	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6841printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6842if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6843then :
6844  printf %s "(cached) " >&6
6845else $as_nop
6846  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847/* end confdefs.h.  */
6848int i;
6849_ACEOF
6850if ac_fn_c_try_compile "$LINENO"
6851then :
6852  xorg_cv_cc_flag_unused_command_line_argument=yes
6853else $as_nop
6854  xorg_cv_cc_flag_unused_command_line_argument=no
6855fi
6856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6857fi
6858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6859printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6860	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6861	CFLAGS="$xorg_testset_save_CFLAGS"
6862fi
6863
6864found="no"
6865
6866	if test $found = "no" ; then
6867		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6868			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6869		fi
6870
6871		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6872			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6873		fi
6874
6875		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6876
6877		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6878printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6879		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6880		if eval test \${$cacheid+y}
6881then :
6882  printf %s "(cached) " >&6
6883else $as_nop
6884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6885/* end confdefs.h.  */
6886int i;
6887int
6888main (void)
6889{
6890
6891  ;
6892  return 0;
6893}
6894_ACEOF
6895if ac_fn_c_try_link "$LINENO"
6896then :
6897  eval $cacheid=yes
6898else $as_nop
6899  eval $cacheid=no
6900fi
6901rm -f core conftest.err conftest.$ac_objext conftest.beam \
6902    conftest$ac_exeext conftest.$ac_ext
6903fi
6904
6905
6906		CFLAGS="$xorg_testset_save_CFLAGS"
6907
6908		eval supported=\$$cacheid
6909		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6910printf "%s\n" "$supported" >&6; }
6911		if test "$supported" = "yes" ; then
6912			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6913			found="yes"
6914		fi
6915	fi
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931xorg_testset_save_CFLAGS="$CFLAGS"
6932
6933if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6934	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6935	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6936printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6937if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6938then :
6939  printf %s "(cached) " >&6
6940else $as_nop
6941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6942/* end confdefs.h.  */
6943int i;
6944_ACEOF
6945if ac_fn_c_try_compile "$LINENO"
6946then :
6947  xorg_cv_cc_flag_unknown_warning_option=yes
6948else $as_nop
6949  xorg_cv_cc_flag_unknown_warning_option=no
6950fi
6951rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6952fi
6953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6954printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6955	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6956	CFLAGS="$xorg_testset_save_CFLAGS"
6957fi
6958
6959if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6960	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6961		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6962	fi
6963	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6964	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6965printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6966if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6967then :
6968  printf %s "(cached) " >&6
6969else $as_nop
6970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6971/* end confdefs.h.  */
6972int i;
6973_ACEOF
6974if ac_fn_c_try_compile "$LINENO"
6975then :
6976  xorg_cv_cc_flag_unused_command_line_argument=yes
6977else $as_nop
6978  xorg_cv_cc_flag_unused_command_line_argument=no
6979fi
6980rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6981fi
6982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6983printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6984	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6985	CFLAGS="$xorg_testset_save_CFLAGS"
6986fi
6987
6988found="no"
6989
6990	if test $found = "no" ; then
6991		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6992			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6993		fi
6994
6995		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6996			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6997		fi
6998
6999		CFLAGS="$CFLAGS -Wredundant-decls"
7000
7001		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7002printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7003		cacheid=xorg_cv_cc_flag__Wredundant_decls
7004		if eval test \${$cacheid+y}
7005then :
7006  printf %s "(cached) " >&6
7007else $as_nop
7008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009/* end confdefs.h.  */
7010int i;
7011int
7012main (void)
7013{
7014
7015  ;
7016  return 0;
7017}
7018_ACEOF
7019if ac_fn_c_try_link "$LINENO"
7020then :
7021  eval $cacheid=yes
7022else $as_nop
7023  eval $cacheid=no
7024fi
7025rm -f core conftest.err conftest.$ac_objext conftest.beam \
7026    conftest$ac_exeext conftest.$ac_ext
7027fi
7028
7029
7030		CFLAGS="$xorg_testset_save_CFLAGS"
7031
7032		eval supported=\$$cacheid
7033		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7034printf "%s\n" "$supported" >&6; }
7035		if test "$supported" = "yes" ; then
7036			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7037			found="yes"
7038		fi
7039	fi
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055xorg_testset_save_CFLAGS="$CFLAGS"
7056
7057if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7058	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7059	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7060printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7061if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7062then :
7063  printf %s "(cached) " >&6
7064else $as_nop
7065  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7066/* end confdefs.h.  */
7067int i;
7068_ACEOF
7069if ac_fn_c_try_compile "$LINENO"
7070then :
7071  xorg_cv_cc_flag_unknown_warning_option=yes
7072else $as_nop
7073  xorg_cv_cc_flag_unknown_warning_option=no
7074fi
7075rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7076fi
7077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7078printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7079	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7080	CFLAGS="$xorg_testset_save_CFLAGS"
7081fi
7082
7083if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7084	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7085		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7086	fi
7087	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7088	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7089printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7090if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7091then :
7092  printf %s "(cached) " >&6
7093else $as_nop
7094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095/* end confdefs.h.  */
7096int i;
7097_ACEOF
7098if ac_fn_c_try_compile "$LINENO"
7099then :
7100  xorg_cv_cc_flag_unused_command_line_argument=yes
7101else $as_nop
7102  xorg_cv_cc_flag_unused_command_line_argument=no
7103fi
7104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7105fi
7106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7107printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7108	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7109	CFLAGS="$xorg_testset_save_CFLAGS"
7110fi
7111
7112found="no"
7113
7114	if test $found = "no" ; then
7115		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7116			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7117		fi
7118
7119		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7120			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7121		fi
7122
7123		CFLAGS="$CFLAGS -Wlogical-op"
7124
7125		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7126printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7127		cacheid=xorg_cv_cc_flag__Wlogical_op
7128		if eval test \${$cacheid+y}
7129then :
7130  printf %s "(cached) " >&6
7131else $as_nop
7132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133/* end confdefs.h.  */
7134int i;
7135int
7136main (void)
7137{
7138
7139  ;
7140  return 0;
7141}
7142_ACEOF
7143if ac_fn_c_try_link "$LINENO"
7144then :
7145  eval $cacheid=yes
7146else $as_nop
7147  eval $cacheid=no
7148fi
7149rm -f core conftest.err conftest.$ac_objext conftest.beam \
7150    conftest$ac_exeext conftest.$ac_ext
7151fi
7152
7153
7154		CFLAGS="$xorg_testset_save_CFLAGS"
7155
7156		eval supported=\$$cacheid
7157		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7158printf "%s\n" "$supported" >&6; }
7159		if test "$supported" = "yes" ; then
7160			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7161			found="yes"
7162		fi
7163	fi
7164
7165
7166
7167# These are currently disabled because they are noisy.  They will be enabled
7168# in the future once the codebase is sufficiently modernized to silence
7169# them.  For now, I don't want them to drown out the other warnings.
7170# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7171# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7172# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7173
7174# Turn some warnings into errors, so we don't accidently get successful builds
7175# when there are problems that should be fixed.
7176
7177if test "x$SELECTIVE_WERROR" = "xyes" ; then
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191xorg_testset_save_CFLAGS="$CFLAGS"
7192
7193if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7194	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7195	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7196printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7197if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7198then :
7199  printf %s "(cached) " >&6
7200else $as_nop
7201  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202/* end confdefs.h.  */
7203int i;
7204_ACEOF
7205if ac_fn_c_try_compile "$LINENO"
7206then :
7207  xorg_cv_cc_flag_unknown_warning_option=yes
7208else $as_nop
7209  xorg_cv_cc_flag_unknown_warning_option=no
7210fi
7211rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7212fi
7213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7214printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7215	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7216	CFLAGS="$xorg_testset_save_CFLAGS"
7217fi
7218
7219if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7220	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7221		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7222	fi
7223	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7224	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7225printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7226if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7227then :
7228  printf %s "(cached) " >&6
7229else $as_nop
7230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231/* end confdefs.h.  */
7232int i;
7233_ACEOF
7234if ac_fn_c_try_compile "$LINENO"
7235then :
7236  xorg_cv_cc_flag_unused_command_line_argument=yes
7237else $as_nop
7238  xorg_cv_cc_flag_unused_command_line_argument=no
7239fi
7240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7241fi
7242{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7243printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7244	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7245	CFLAGS="$xorg_testset_save_CFLAGS"
7246fi
7247
7248found="no"
7249
7250	if test $found = "no" ; then
7251		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7252			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7253		fi
7254
7255		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7256			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7257		fi
7258
7259		CFLAGS="$CFLAGS -Werror=implicit"
7260
7261		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7262printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7263		cacheid=xorg_cv_cc_flag__Werror_implicit
7264		if eval test \${$cacheid+y}
7265then :
7266  printf %s "(cached) " >&6
7267else $as_nop
7268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269/* end confdefs.h.  */
7270int i;
7271int
7272main (void)
7273{
7274
7275  ;
7276  return 0;
7277}
7278_ACEOF
7279if ac_fn_c_try_link "$LINENO"
7280then :
7281  eval $cacheid=yes
7282else $as_nop
7283  eval $cacheid=no
7284fi
7285rm -f core conftest.err conftest.$ac_objext conftest.beam \
7286    conftest$ac_exeext conftest.$ac_ext
7287fi
7288
7289
7290		CFLAGS="$xorg_testset_save_CFLAGS"
7291
7292		eval supported=\$$cacheid
7293		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7294printf "%s\n" "$supported" >&6; }
7295		if test "$supported" = "yes" ; then
7296			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7297			found="yes"
7298		fi
7299	fi
7300
7301	if test $found = "no" ; then
7302		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7303			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7304		fi
7305
7306		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7307			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7308		fi
7309
7310		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7311
7312		{ 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
7313printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7314		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7315		if eval test \${$cacheid+y}
7316then :
7317  printf %s "(cached) " >&6
7318else $as_nop
7319  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320/* end confdefs.h.  */
7321int i;
7322int
7323main (void)
7324{
7325
7326  ;
7327  return 0;
7328}
7329_ACEOF
7330if ac_fn_c_try_link "$LINENO"
7331then :
7332  eval $cacheid=yes
7333else $as_nop
7334  eval $cacheid=no
7335fi
7336rm -f core conftest.err conftest.$ac_objext conftest.beam \
7337    conftest$ac_exeext conftest.$ac_ext
7338fi
7339
7340
7341		CFLAGS="$xorg_testset_save_CFLAGS"
7342
7343		eval supported=\$$cacheid
7344		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7345printf "%s\n" "$supported" >&6; }
7346		if test "$supported" = "yes" ; then
7347			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7348			found="yes"
7349		fi
7350	fi
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366xorg_testset_save_CFLAGS="$CFLAGS"
7367
7368if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7369	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7370	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7371printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7372if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7373then :
7374  printf %s "(cached) " >&6
7375else $as_nop
7376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7377/* end confdefs.h.  */
7378int i;
7379_ACEOF
7380if ac_fn_c_try_compile "$LINENO"
7381then :
7382  xorg_cv_cc_flag_unknown_warning_option=yes
7383else $as_nop
7384  xorg_cv_cc_flag_unknown_warning_option=no
7385fi
7386rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7387fi
7388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7389printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7390	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7391	CFLAGS="$xorg_testset_save_CFLAGS"
7392fi
7393
7394if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7395	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7396		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7397	fi
7398	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7399	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7400printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7401if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7402then :
7403  printf %s "(cached) " >&6
7404else $as_nop
7405  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7406/* end confdefs.h.  */
7407int i;
7408_ACEOF
7409if ac_fn_c_try_compile "$LINENO"
7410then :
7411  xorg_cv_cc_flag_unused_command_line_argument=yes
7412else $as_nop
7413  xorg_cv_cc_flag_unused_command_line_argument=no
7414fi
7415rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7416fi
7417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7418printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7419	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7420	CFLAGS="$xorg_testset_save_CFLAGS"
7421fi
7422
7423found="no"
7424
7425	if test $found = "no" ; then
7426		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7427			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7428		fi
7429
7430		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7431			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7432		fi
7433
7434		CFLAGS="$CFLAGS -Werror=nonnull"
7435
7436		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7437printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7438		cacheid=xorg_cv_cc_flag__Werror_nonnull
7439		if eval test \${$cacheid+y}
7440then :
7441  printf %s "(cached) " >&6
7442else $as_nop
7443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444/* end confdefs.h.  */
7445int i;
7446int
7447main (void)
7448{
7449
7450  ;
7451  return 0;
7452}
7453_ACEOF
7454if ac_fn_c_try_link "$LINENO"
7455then :
7456  eval $cacheid=yes
7457else $as_nop
7458  eval $cacheid=no
7459fi
7460rm -f core conftest.err conftest.$ac_objext conftest.beam \
7461    conftest$ac_exeext conftest.$ac_ext
7462fi
7463
7464
7465		CFLAGS="$xorg_testset_save_CFLAGS"
7466
7467		eval supported=\$$cacheid
7468		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7469printf "%s\n" "$supported" >&6; }
7470		if test "$supported" = "yes" ; then
7471			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7472			found="yes"
7473		fi
7474	fi
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490xorg_testset_save_CFLAGS="$CFLAGS"
7491
7492if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7493	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7494	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7495printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7496if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7497then :
7498  printf %s "(cached) " >&6
7499else $as_nop
7500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7501/* end confdefs.h.  */
7502int i;
7503_ACEOF
7504if ac_fn_c_try_compile "$LINENO"
7505then :
7506  xorg_cv_cc_flag_unknown_warning_option=yes
7507else $as_nop
7508  xorg_cv_cc_flag_unknown_warning_option=no
7509fi
7510rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7511fi
7512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7513printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7514	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7515	CFLAGS="$xorg_testset_save_CFLAGS"
7516fi
7517
7518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7519	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7520		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7521	fi
7522	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7523	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7524printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7525if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7526then :
7527  printf %s "(cached) " >&6
7528else $as_nop
7529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530/* end confdefs.h.  */
7531int i;
7532_ACEOF
7533if ac_fn_c_try_compile "$LINENO"
7534then :
7535  xorg_cv_cc_flag_unused_command_line_argument=yes
7536else $as_nop
7537  xorg_cv_cc_flag_unused_command_line_argument=no
7538fi
7539rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7540fi
7541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7542printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7543	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7544	CFLAGS="$xorg_testset_save_CFLAGS"
7545fi
7546
7547found="no"
7548
7549	if test $found = "no" ; then
7550		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7551			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7552		fi
7553
7554		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7555			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7556		fi
7557
7558		CFLAGS="$CFLAGS -Werror=init-self"
7559
7560		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7561printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7562		cacheid=xorg_cv_cc_flag__Werror_init_self
7563		if eval test \${$cacheid+y}
7564then :
7565  printf %s "(cached) " >&6
7566else $as_nop
7567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568/* end confdefs.h.  */
7569int i;
7570int
7571main (void)
7572{
7573
7574  ;
7575  return 0;
7576}
7577_ACEOF
7578if ac_fn_c_try_link "$LINENO"
7579then :
7580  eval $cacheid=yes
7581else $as_nop
7582  eval $cacheid=no
7583fi
7584rm -f core conftest.err conftest.$ac_objext conftest.beam \
7585    conftest$ac_exeext conftest.$ac_ext
7586fi
7587
7588
7589		CFLAGS="$xorg_testset_save_CFLAGS"
7590
7591		eval supported=\$$cacheid
7592		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7593printf "%s\n" "$supported" >&6; }
7594		if test "$supported" = "yes" ; then
7595			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7596			found="yes"
7597		fi
7598	fi
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614xorg_testset_save_CFLAGS="$CFLAGS"
7615
7616if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7617	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7618	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7619printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7620if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7621then :
7622  printf %s "(cached) " >&6
7623else $as_nop
7624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625/* end confdefs.h.  */
7626int i;
7627_ACEOF
7628if ac_fn_c_try_compile "$LINENO"
7629then :
7630  xorg_cv_cc_flag_unknown_warning_option=yes
7631else $as_nop
7632  xorg_cv_cc_flag_unknown_warning_option=no
7633fi
7634rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7635fi
7636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7637printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7638	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7639	CFLAGS="$xorg_testset_save_CFLAGS"
7640fi
7641
7642if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7643	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7644		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7645	fi
7646	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7647	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7648printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7649if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7650then :
7651  printf %s "(cached) " >&6
7652else $as_nop
7653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654/* end confdefs.h.  */
7655int i;
7656_ACEOF
7657if ac_fn_c_try_compile "$LINENO"
7658then :
7659  xorg_cv_cc_flag_unused_command_line_argument=yes
7660else $as_nop
7661  xorg_cv_cc_flag_unused_command_line_argument=no
7662fi
7663rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7664fi
7665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7666printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7667	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7668	CFLAGS="$xorg_testset_save_CFLAGS"
7669fi
7670
7671found="no"
7672
7673	if test $found = "no" ; then
7674		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7675			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7676		fi
7677
7678		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7679			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7680		fi
7681
7682		CFLAGS="$CFLAGS -Werror=main"
7683
7684		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7685printf %s "checking if $CC supports -Werror=main... " >&6; }
7686		cacheid=xorg_cv_cc_flag__Werror_main
7687		if eval test \${$cacheid+y}
7688then :
7689  printf %s "(cached) " >&6
7690else $as_nop
7691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692/* end confdefs.h.  */
7693int i;
7694int
7695main (void)
7696{
7697
7698  ;
7699  return 0;
7700}
7701_ACEOF
7702if ac_fn_c_try_link "$LINENO"
7703then :
7704  eval $cacheid=yes
7705else $as_nop
7706  eval $cacheid=no
7707fi
7708rm -f core conftest.err conftest.$ac_objext conftest.beam \
7709    conftest$ac_exeext conftest.$ac_ext
7710fi
7711
7712
7713		CFLAGS="$xorg_testset_save_CFLAGS"
7714
7715		eval supported=\$$cacheid
7716		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7717printf "%s\n" "$supported" >&6; }
7718		if test "$supported" = "yes" ; then
7719			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7720			found="yes"
7721		fi
7722	fi
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738xorg_testset_save_CFLAGS="$CFLAGS"
7739
7740if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7741	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7742	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7743printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7744if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7745then :
7746  printf %s "(cached) " >&6
7747else $as_nop
7748  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749/* end confdefs.h.  */
7750int i;
7751_ACEOF
7752if ac_fn_c_try_compile "$LINENO"
7753then :
7754  xorg_cv_cc_flag_unknown_warning_option=yes
7755else $as_nop
7756  xorg_cv_cc_flag_unknown_warning_option=no
7757fi
7758rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7759fi
7760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7761printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7762	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7763	CFLAGS="$xorg_testset_save_CFLAGS"
7764fi
7765
7766if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7767	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7768		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7769	fi
7770	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7771	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7772printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7773if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7774then :
7775  printf %s "(cached) " >&6
7776else $as_nop
7777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778/* end confdefs.h.  */
7779int i;
7780_ACEOF
7781if ac_fn_c_try_compile "$LINENO"
7782then :
7783  xorg_cv_cc_flag_unused_command_line_argument=yes
7784else $as_nop
7785  xorg_cv_cc_flag_unused_command_line_argument=no
7786fi
7787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7788fi
7789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7790printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7791	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7792	CFLAGS="$xorg_testset_save_CFLAGS"
7793fi
7794
7795found="no"
7796
7797	if test $found = "no" ; then
7798		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7799			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7800		fi
7801
7802		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7803			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7804		fi
7805
7806		CFLAGS="$CFLAGS -Werror=missing-braces"
7807
7808		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7809printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7810		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7811		if eval test \${$cacheid+y}
7812then :
7813  printf %s "(cached) " >&6
7814else $as_nop
7815  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816/* end confdefs.h.  */
7817int i;
7818int
7819main (void)
7820{
7821
7822  ;
7823  return 0;
7824}
7825_ACEOF
7826if ac_fn_c_try_link "$LINENO"
7827then :
7828  eval $cacheid=yes
7829else $as_nop
7830  eval $cacheid=no
7831fi
7832rm -f core conftest.err conftest.$ac_objext conftest.beam \
7833    conftest$ac_exeext conftest.$ac_ext
7834fi
7835
7836
7837		CFLAGS="$xorg_testset_save_CFLAGS"
7838
7839		eval supported=\$$cacheid
7840		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7841printf "%s\n" "$supported" >&6; }
7842		if test "$supported" = "yes" ; then
7843			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7844			found="yes"
7845		fi
7846	fi
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862xorg_testset_save_CFLAGS="$CFLAGS"
7863
7864if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7865	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7866	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7867printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7868if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7869then :
7870  printf %s "(cached) " >&6
7871else $as_nop
7872  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873/* end confdefs.h.  */
7874int i;
7875_ACEOF
7876if ac_fn_c_try_compile "$LINENO"
7877then :
7878  xorg_cv_cc_flag_unknown_warning_option=yes
7879else $as_nop
7880  xorg_cv_cc_flag_unknown_warning_option=no
7881fi
7882rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7883fi
7884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7885printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7886	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7887	CFLAGS="$xorg_testset_save_CFLAGS"
7888fi
7889
7890if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7891	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7892		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7893	fi
7894	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7895	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7896printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7897if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7898then :
7899  printf %s "(cached) " >&6
7900else $as_nop
7901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902/* end confdefs.h.  */
7903int i;
7904_ACEOF
7905if ac_fn_c_try_compile "$LINENO"
7906then :
7907  xorg_cv_cc_flag_unused_command_line_argument=yes
7908else $as_nop
7909  xorg_cv_cc_flag_unused_command_line_argument=no
7910fi
7911rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7912fi
7913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7914printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7915	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7916	CFLAGS="$xorg_testset_save_CFLAGS"
7917fi
7918
7919found="no"
7920
7921	if test $found = "no" ; then
7922		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7923			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7924		fi
7925
7926		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7927			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7928		fi
7929
7930		CFLAGS="$CFLAGS -Werror=sequence-point"
7931
7932		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7933printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7934		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7935		if eval test \${$cacheid+y}
7936then :
7937  printf %s "(cached) " >&6
7938else $as_nop
7939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940/* end confdefs.h.  */
7941int i;
7942int
7943main (void)
7944{
7945
7946  ;
7947  return 0;
7948}
7949_ACEOF
7950if ac_fn_c_try_link "$LINENO"
7951then :
7952  eval $cacheid=yes
7953else $as_nop
7954  eval $cacheid=no
7955fi
7956rm -f core conftest.err conftest.$ac_objext conftest.beam \
7957    conftest$ac_exeext conftest.$ac_ext
7958fi
7959
7960
7961		CFLAGS="$xorg_testset_save_CFLAGS"
7962
7963		eval supported=\$$cacheid
7964		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7965printf "%s\n" "$supported" >&6; }
7966		if test "$supported" = "yes" ; then
7967			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7968			found="yes"
7969		fi
7970	fi
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986xorg_testset_save_CFLAGS="$CFLAGS"
7987
7988if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7989	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7990	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7991printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7992if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7993then :
7994  printf %s "(cached) " >&6
7995else $as_nop
7996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997/* end confdefs.h.  */
7998int i;
7999_ACEOF
8000if ac_fn_c_try_compile "$LINENO"
8001then :
8002  xorg_cv_cc_flag_unknown_warning_option=yes
8003else $as_nop
8004  xorg_cv_cc_flag_unknown_warning_option=no
8005fi
8006rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8007fi
8008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8009printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8010	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8011	CFLAGS="$xorg_testset_save_CFLAGS"
8012fi
8013
8014if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8015	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8016		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8017	fi
8018	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8019	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8020printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8021if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8022then :
8023  printf %s "(cached) " >&6
8024else $as_nop
8025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026/* end confdefs.h.  */
8027int i;
8028_ACEOF
8029if ac_fn_c_try_compile "$LINENO"
8030then :
8031  xorg_cv_cc_flag_unused_command_line_argument=yes
8032else $as_nop
8033  xorg_cv_cc_flag_unused_command_line_argument=no
8034fi
8035rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8036fi
8037{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8038printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8039	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8040	CFLAGS="$xorg_testset_save_CFLAGS"
8041fi
8042
8043found="no"
8044
8045	if test $found = "no" ; then
8046		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8047			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8048		fi
8049
8050		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8051			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8052		fi
8053
8054		CFLAGS="$CFLAGS -Werror=return-type"
8055
8056		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8057printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8058		cacheid=xorg_cv_cc_flag__Werror_return_type
8059		if eval test \${$cacheid+y}
8060then :
8061  printf %s "(cached) " >&6
8062else $as_nop
8063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064/* end confdefs.h.  */
8065int i;
8066int
8067main (void)
8068{
8069
8070  ;
8071  return 0;
8072}
8073_ACEOF
8074if ac_fn_c_try_link "$LINENO"
8075then :
8076  eval $cacheid=yes
8077else $as_nop
8078  eval $cacheid=no
8079fi
8080rm -f core conftest.err conftest.$ac_objext conftest.beam \
8081    conftest$ac_exeext conftest.$ac_ext
8082fi
8083
8084
8085		CFLAGS="$xorg_testset_save_CFLAGS"
8086
8087		eval supported=\$$cacheid
8088		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8089printf "%s\n" "$supported" >&6; }
8090		if test "$supported" = "yes" ; then
8091			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8092			found="yes"
8093		fi
8094	fi
8095
8096	if test $found = "no" ; then
8097		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8098			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8099		fi
8100
8101		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8102			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8103		fi
8104
8105		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8106
8107		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8108printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8109		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8110		if eval test \${$cacheid+y}
8111then :
8112  printf %s "(cached) " >&6
8113else $as_nop
8114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115/* end confdefs.h.  */
8116int i;
8117int
8118main (void)
8119{
8120
8121  ;
8122  return 0;
8123}
8124_ACEOF
8125if ac_fn_c_try_link "$LINENO"
8126then :
8127  eval $cacheid=yes
8128else $as_nop
8129  eval $cacheid=no
8130fi
8131rm -f core conftest.err conftest.$ac_objext conftest.beam \
8132    conftest$ac_exeext conftest.$ac_ext
8133fi
8134
8135
8136		CFLAGS="$xorg_testset_save_CFLAGS"
8137
8138		eval supported=\$$cacheid
8139		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8140printf "%s\n" "$supported" >&6; }
8141		if test "$supported" = "yes" ; then
8142			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8143			found="yes"
8144		fi
8145	fi
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161xorg_testset_save_CFLAGS="$CFLAGS"
8162
8163if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8164	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8165	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8166printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8167if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8168then :
8169  printf %s "(cached) " >&6
8170else $as_nop
8171  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172/* end confdefs.h.  */
8173int i;
8174_ACEOF
8175if ac_fn_c_try_compile "$LINENO"
8176then :
8177  xorg_cv_cc_flag_unknown_warning_option=yes
8178else $as_nop
8179  xorg_cv_cc_flag_unknown_warning_option=no
8180fi
8181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8182fi
8183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8184printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8185	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8186	CFLAGS="$xorg_testset_save_CFLAGS"
8187fi
8188
8189if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8190	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8191		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8192	fi
8193	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8194	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8195printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8196if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8197then :
8198  printf %s "(cached) " >&6
8199else $as_nop
8200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201/* end confdefs.h.  */
8202int i;
8203_ACEOF
8204if ac_fn_c_try_compile "$LINENO"
8205then :
8206  xorg_cv_cc_flag_unused_command_line_argument=yes
8207else $as_nop
8208  xorg_cv_cc_flag_unused_command_line_argument=no
8209fi
8210rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8211fi
8212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8213printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8214	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8215	CFLAGS="$xorg_testset_save_CFLAGS"
8216fi
8217
8218found="no"
8219
8220	if test $found = "no" ; then
8221		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8222			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8223		fi
8224
8225		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8226			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8227		fi
8228
8229		CFLAGS="$CFLAGS -Werror=trigraphs"
8230
8231		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8232printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8233		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8234		if eval test \${$cacheid+y}
8235then :
8236  printf %s "(cached) " >&6
8237else $as_nop
8238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239/* end confdefs.h.  */
8240int i;
8241int
8242main (void)
8243{
8244
8245  ;
8246  return 0;
8247}
8248_ACEOF
8249if ac_fn_c_try_link "$LINENO"
8250then :
8251  eval $cacheid=yes
8252else $as_nop
8253  eval $cacheid=no
8254fi
8255rm -f core conftest.err conftest.$ac_objext conftest.beam \
8256    conftest$ac_exeext conftest.$ac_ext
8257fi
8258
8259
8260		CFLAGS="$xorg_testset_save_CFLAGS"
8261
8262		eval supported=\$$cacheid
8263		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8264printf "%s\n" "$supported" >&6; }
8265		if test "$supported" = "yes" ; then
8266			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8267			found="yes"
8268		fi
8269	fi
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285xorg_testset_save_CFLAGS="$CFLAGS"
8286
8287if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8288	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8289	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8290printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8291if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8292then :
8293  printf %s "(cached) " >&6
8294else $as_nop
8295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8296/* end confdefs.h.  */
8297int i;
8298_ACEOF
8299if ac_fn_c_try_compile "$LINENO"
8300then :
8301  xorg_cv_cc_flag_unknown_warning_option=yes
8302else $as_nop
8303  xorg_cv_cc_flag_unknown_warning_option=no
8304fi
8305rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8306fi
8307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8308printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8309	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8310	CFLAGS="$xorg_testset_save_CFLAGS"
8311fi
8312
8313if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8314	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8315		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8316	fi
8317	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8318	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8319printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8320if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8321then :
8322  printf %s "(cached) " >&6
8323else $as_nop
8324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8325/* end confdefs.h.  */
8326int i;
8327_ACEOF
8328if ac_fn_c_try_compile "$LINENO"
8329then :
8330  xorg_cv_cc_flag_unused_command_line_argument=yes
8331else $as_nop
8332  xorg_cv_cc_flag_unused_command_line_argument=no
8333fi
8334rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8335fi
8336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8337printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8338	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8339	CFLAGS="$xorg_testset_save_CFLAGS"
8340fi
8341
8342found="no"
8343
8344	if test $found = "no" ; then
8345		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8346			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8347		fi
8348
8349		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8350			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8351		fi
8352
8353		CFLAGS="$CFLAGS -Werror=array-bounds"
8354
8355		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8356printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8357		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8358		if eval test \${$cacheid+y}
8359then :
8360  printf %s "(cached) " >&6
8361else $as_nop
8362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363/* end confdefs.h.  */
8364int i;
8365int
8366main (void)
8367{
8368
8369  ;
8370  return 0;
8371}
8372_ACEOF
8373if ac_fn_c_try_link "$LINENO"
8374then :
8375  eval $cacheid=yes
8376else $as_nop
8377  eval $cacheid=no
8378fi
8379rm -f core conftest.err conftest.$ac_objext conftest.beam \
8380    conftest$ac_exeext conftest.$ac_ext
8381fi
8382
8383
8384		CFLAGS="$xorg_testset_save_CFLAGS"
8385
8386		eval supported=\$$cacheid
8387		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8388printf "%s\n" "$supported" >&6; }
8389		if test "$supported" = "yes" ; then
8390			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8391			found="yes"
8392		fi
8393	fi
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409xorg_testset_save_CFLAGS="$CFLAGS"
8410
8411if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8412	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8413	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8414printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8415if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8416then :
8417  printf %s "(cached) " >&6
8418else $as_nop
8419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420/* end confdefs.h.  */
8421int i;
8422_ACEOF
8423if ac_fn_c_try_compile "$LINENO"
8424then :
8425  xorg_cv_cc_flag_unknown_warning_option=yes
8426else $as_nop
8427  xorg_cv_cc_flag_unknown_warning_option=no
8428fi
8429rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8430fi
8431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8432printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8433	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8434	CFLAGS="$xorg_testset_save_CFLAGS"
8435fi
8436
8437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8438	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8439		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8440	fi
8441	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8442	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8443printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8444if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8445then :
8446  printf %s "(cached) " >&6
8447else $as_nop
8448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8449/* end confdefs.h.  */
8450int i;
8451_ACEOF
8452if ac_fn_c_try_compile "$LINENO"
8453then :
8454  xorg_cv_cc_flag_unused_command_line_argument=yes
8455else $as_nop
8456  xorg_cv_cc_flag_unused_command_line_argument=no
8457fi
8458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8459fi
8460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8461printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8462	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8463	CFLAGS="$xorg_testset_save_CFLAGS"
8464fi
8465
8466found="no"
8467
8468	if test $found = "no" ; then
8469		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8470			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8471		fi
8472
8473		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8474			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8475		fi
8476
8477		CFLAGS="$CFLAGS -Werror=write-strings"
8478
8479		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8480printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8481		cacheid=xorg_cv_cc_flag__Werror_write_strings
8482		if eval test \${$cacheid+y}
8483then :
8484  printf %s "(cached) " >&6
8485else $as_nop
8486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487/* end confdefs.h.  */
8488int i;
8489int
8490main (void)
8491{
8492
8493  ;
8494  return 0;
8495}
8496_ACEOF
8497if ac_fn_c_try_link "$LINENO"
8498then :
8499  eval $cacheid=yes
8500else $as_nop
8501  eval $cacheid=no
8502fi
8503rm -f core conftest.err conftest.$ac_objext conftest.beam \
8504    conftest$ac_exeext conftest.$ac_ext
8505fi
8506
8507
8508		CFLAGS="$xorg_testset_save_CFLAGS"
8509
8510		eval supported=\$$cacheid
8511		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8512printf "%s\n" "$supported" >&6; }
8513		if test "$supported" = "yes" ; then
8514			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8515			found="yes"
8516		fi
8517	fi
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533xorg_testset_save_CFLAGS="$CFLAGS"
8534
8535if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8536	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8537	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8538printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8539if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8540then :
8541  printf %s "(cached) " >&6
8542else $as_nop
8543  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544/* end confdefs.h.  */
8545int i;
8546_ACEOF
8547if ac_fn_c_try_compile "$LINENO"
8548then :
8549  xorg_cv_cc_flag_unknown_warning_option=yes
8550else $as_nop
8551  xorg_cv_cc_flag_unknown_warning_option=no
8552fi
8553rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8554fi
8555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8556printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8557	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8558	CFLAGS="$xorg_testset_save_CFLAGS"
8559fi
8560
8561if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8562	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8563		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8564	fi
8565	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8566	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8567printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8568if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8569then :
8570  printf %s "(cached) " >&6
8571else $as_nop
8572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8573/* end confdefs.h.  */
8574int i;
8575_ACEOF
8576if ac_fn_c_try_compile "$LINENO"
8577then :
8578  xorg_cv_cc_flag_unused_command_line_argument=yes
8579else $as_nop
8580  xorg_cv_cc_flag_unused_command_line_argument=no
8581fi
8582rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8583fi
8584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8585printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8586	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8587	CFLAGS="$xorg_testset_save_CFLAGS"
8588fi
8589
8590found="no"
8591
8592	if test $found = "no" ; then
8593		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8594			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8595		fi
8596
8597		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8598			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8599		fi
8600
8601		CFLAGS="$CFLAGS -Werror=address"
8602
8603		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8604printf %s "checking if $CC supports -Werror=address... " >&6; }
8605		cacheid=xorg_cv_cc_flag__Werror_address
8606		if eval test \${$cacheid+y}
8607then :
8608  printf %s "(cached) " >&6
8609else $as_nop
8610  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611/* end confdefs.h.  */
8612int i;
8613int
8614main (void)
8615{
8616
8617  ;
8618  return 0;
8619}
8620_ACEOF
8621if ac_fn_c_try_link "$LINENO"
8622then :
8623  eval $cacheid=yes
8624else $as_nop
8625  eval $cacheid=no
8626fi
8627rm -f core conftest.err conftest.$ac_objext conftest.beam \
8628    conftest$ac_exeext conftest.$ac_ext
8629fi
8630
8631
8632		CFLAGS="$xorg_testset_save_CFLAGS"
8633
8634		eval supported=\$$cacheid
8635		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8636printf "%s\n" "$supported" >&6; }
8637		if test "$supported" = "yes" ; then
8638			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8639			found="yes"
8640		fi
8641	fi
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657xorg_testset_save_CFLAGS="$CFLAGS"
8658
8659if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8660	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8661	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8662printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8663if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8664then :
8665  printf %s "(cached) " >&6
8666else $as_nop
8667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8668/* end confdefs.h.  */
8669int i;
8670_ACEOF
8671if ac_fn_c_try_compile "$LINENO"
8672then :
8673  xorg_cv_cc_flag_unknown_warning_option=yes
8674else $as_nop
8675  xorg_cv_cc_flag_unknown_warning_option=no
8676fi
8677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8678fi
8679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8680printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8681	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8682	CFLAGS="$xorg_testset_save_CFLAGS"
8683fi
8684
8685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8686	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8687		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8688	fi
8689	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8690	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8691printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8692if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8693then :
8694  printf %s "(cached) " >&6
8695else $as_nop
8696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8697/* end confdefs.h.  */
8698int i;
8699_ACEOF
8700if ac_fn_c_try_compile "$LINENO"
8701then :
8702  xorg_cv_cc_flag_unused_command_line_argument=yes
8703else $as_nop
8704  xorg_cv_cc_flag_unused_command_line_argument=no
8705fi
8706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8707fi
8708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8709printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8710	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8711	CFLAGS="$xorg_testset_save_CFLAGS"
8712fi
8713
8714found="no"
8715
8716	if test $found = "no" ; then
8717		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8718			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8719		fi
8720
8721		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8722			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8723		fi
8724
8725		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8726
8727		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8728printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8729		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8730		if eval test \${$cacheid+y}
8731then :
8732  printf %s "(cached) " >&6
8733else $as_nop
8734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735/* end confdefs.h.  */
8736int i;
8737int
8738main (void)
8739{
8740
8741  ;
8742  return 0;
8743}
8744_ACEOF
8745if ac_fn_c_try_link "$LINENO"
8746then :
8747  eval $cacheid=yes
8748else $as_nop
8749  eval $cacheid=no
8750fi
8751rm -f core conftest.err conftest.$ac_objext conftest.beam \
8752    conftest$ac_exeext conftest.$ac_ext
8753fi
8754
8755
8756		CFLAGS="$xorg_testset_save_CFLAGS"
8757
8758		eval supported=\$$cacheid
8759		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8760printf "%s\n" "$supported" >&6; }
8761		if test "$supported" = "yes" ; then
8762			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8763			found="yes"
8764		fi
8765	fi
8766
8767	if test $found = "no" ; then
8768		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8769			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8770		fi
8771
8772		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8773			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8774		fi
8775
8776		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8777
8778		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8779printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8780		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8781		if eval test \${$cacheid+y}
8782then :
8783  printf %s "(cached) " >&6
8784else $as_nop
8785  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786/* end confdefs.h.  */
8787int i;
8788int
8789main (void)
8790{
8791
8792  ;
8793  return 0;
8794}
8795_ACEOF
8796if ac_fn_c_try_link "$LINENO"
8797then :
8798  eval $cacheid=yes
8799else $as_nop
8800  eval $cacheid=no
8801fi
8802rm -f core conftest.err conftest.$ac_objext conftest.beam \
8803    conftest$ac_exeext conftest.$ac_ext
8804fi
8805
8806
8807		CFLAGS="$xorg_testset_save_CFLAGS"
8808
8809		eval supported=\$$cacheid
8810		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8811printf "%s\n" "$supported" >&6; }
8812		if test "$supported" = "yes" ; then
8813			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8814			found="yes"
8815		fi
8816	fi
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832xorg_testset_save_CFLAGS="$CFLAGS"
8833
8834if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8835	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8836	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8837printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8838if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8839then :
8840  printf %s "(cached) " >&6
8841else $as_nop
8842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8843/* end confdefs.h.  */
8844int i;
8845_ACEOF
8846if ac_fn_c_try_compile "$LINENO"
8847then :
8848  xorg_cv_cc_flag_unknown_warning_option=yes
8849else $as_nop
8850  xorg_cv_cc_flag_unknown_warning_option=no
8851fi
8852rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8853fi
8854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8855printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8856	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8857	CFLAGS="$xorg_testset_save_CFLAGS"
8858fi
8859
8860if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8861	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8862		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8863	fi
8864	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8865	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8866printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8867if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8868then :
8869  printf %s "(cached) " >&6
8870else $as_nop
8871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872/* end confdefs.h.  */
8873int i;
8874_ACEOF
8875if ac_fn_c_try_compile "$LINENO"
8876then :
8877  xorg_cv_cc_flag_unused_command_line_argument=yes
8878else $as_nop
8879  xorg_cv_cc_flag_unused_command_line_argument=no
8880fi
8881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8882fi
8883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8884printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8885	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8886	CFLAGS="$xorg_testset_save_CFLAGS"
8887fi
8888
8889found="no"
8890
8891	if test $found = "no" ; then
8892		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8893			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8894		fi
8895
8896		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8897			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8898		fi
8899
8900		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8901
8902		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8903printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8904		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8905		if eval test \${$cacheid+y}
8906then :
8907  printf %s "(cached) " >&6
8908else $as_nop
8909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910/* end confdefs.h.  */
8911int i;
8912int
8913main (void)
8914{
8915
8916  ;
8917  return 0;
8918}
8919_ACEOF
8920if ac_fn_c_try_link "$LINENO"
8921then :
8922  eval $cacheid=yes
8923else $as_nop
8924  eval $cacheid=no
8925fi
8926rm -f core conftest.err conftest.$ac_objext conftest.beam \
8927    conftest$ac_exeext conftest.$ac_ext
8928fi
8929
8930
8931		CFLAGS="$xorg_testset_save_CFLAGS"
8932
8933		eval supported=\$$cacheid
8934		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8935printf "%s\n" "$supported" >&6; }
8936		if test "$supported" = "yes" ; then
8937			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8938			found="yes"
8939		fi
8940	fi
8941
8942 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8943else
8944{ 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
8945printf "%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;}
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959xorg_testset_save_CFLAGS="$CFLAGS"
8960
8961if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8962	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8963	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8964printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8965if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8966then :
8967  printf %s "(cached) " >&6
8968else $as_nop
8969  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970/* end confdefs.h.  */
8971int i;
8972_ACEOF
8973if ac_fn_c_try_compile "$LINENO"
8974then :
8975  xorg_cv_cc_flag_unknown_warning_option=yes
8976else $as_nop
8977  xorg_cv_cc_flag_unknown_warning_option=no
8978fi
8979rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8980fi
8981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8982printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8983	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8984	CFLAGS="$xorg_testset_save_CFLAGS"
8985fi
8986
8987if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8988	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8989		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8990	fi
8991	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8992	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8993printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8994if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8995then :
8996  printf %s "(cached) " >&6
8997else $as_nop
8998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999/* end confdefs.h.  */
9000int i;
9001_ACEOF
9002if ac_fn_c_try_compile "$LINENO"
9003then :
9004  xorg_cv_cc_flag_unused_command_line_argument=yes
9005else $as_nop
9006  xorg_cv_cc_flag_unused_command_line_argument=no
9007fi
9008rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9009fi
9010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9011printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9012	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9013	CFLAGS="$xorg_testset_save_CFLAGS"
9014fi
9015
9016found="no"
9017
9018	if test $found = "no" ; then
9019		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9020			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9021		fi
9022
9023		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9024			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9025		fi
9026
9027		CFLAGS="$CFLAGS -Wimplicit"
9028
9029		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9030printf %s "checking if $CC supports -Wimplicit... " >&6; }
9031		cacheid=xorg_cv_cc_flag__Wimplicit
9032		if eval test \${$cacheid+y}
9033then :
9034  printf %s "(cached) " >&6
9035else $as_nop
9036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037/* end confdefs.h.  */
9038int i;
9039int
9040main (void)
9041{
9042
9043  ;
9044  return 0;
9045}
9046_ACEOF
9047if ac_fn_c_try_link "$LINENO"
9048then :
9049  eval $cacheid=yes
9050else $as_nop
9051  eval $cacheid=no
9052fi
9053rm -f core conftest.err conftest.$ac_objext conftest.beam \
9054    conftest$ac_exeext conftest.$ac_ext
9055fi
9056
9057
9058		CFLAGS="$xorg_testset_save_CFLAGS"
9059
9060		eval supported=\$$cacheid
9061		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9062printf "%s\n" "$supported" >&6; }
9063		if test "$supported" = "yes" ; then
9064			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9065			found="yes"
9066		fi
9067	fi
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083xorg_testset_save_CFLAGS="$CFLAGS"
9084
9085if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9086	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9087	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9088printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9089if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9090then :
9091  printf %s "(cached) " >&6
9092else $as_nop
9093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9094/* end confdefs.h.  */
9095int i;
9096_ACEOF
9097if ac_fn_c_try_compile "$LINENO"
9098then :
9099  xorg_cv_cc_flag_unknown_warning_option=yes
9100else $as_nop
9101  xorg_cv_cc_flag_unknown_warning_option=no
9102fi
9103rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9104fi
9105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9106printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9107	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9108	CFLAGS="$xorg_testset_save_CFLAGS"
9109fi
9110
9111if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9112	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9113		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9114	fi
9115	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9116	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9117printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9118if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9119then :
9120  printf %s "(cached) " >&6
9121else $as_nop
9122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9123/* end confdefs.h.  */
9124int i;
9125_ACEOF
9126if ac_fn_c_try_compile "$LINENO"
9127then :
9128  xorg_cv_cc_flag_unused_command_line_argument=yes
9129else $as_nop
9130  xorg_cv_cc_flag_unused_command_line_argument=no
9131fi
9132rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9133fi
9134{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9135printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9136	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9137	CFLAGS="$xorg_testset_save_CFLAGS"
9138fi
9139
9140found="no"
9141
9142	if test $found = "no" ; then
9143		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9144			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9145		fi
9146
9147		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9148			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9149		fi
9150
9151		CFLAGS="$CFLAGS -Wnonnull"
9152
9153		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9154printf %s "checking if $CC supports -Wnonnull... " >&6; }
9155		cacheid=xorg_cv_cc_flag__Wnonnull
9156		if eval test \${$cacheid+y}
9157then :
9158  printf %s "(cached) " >&6
9159else $as_nop
9160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161/* end confdefs.h.  */
9162int i;
9163int
9164main (void)
9165{
9166
9167  ;
9168  return 0;
9169}
9170_ACEOF
9171if ac_fn_c_try_link "$LINENO"
9172then :
9173  eval $cacheid=yes
9174else $as_nop
9175  eval $cacheid=no
9176fi
9177rm -f core conftest.err conftest.$ac_objext conftest.beam \
9178    conftest$ac_exeext conftest.$ac_ext
9179fi
9180
9181
9182		CFLAGS="$xorg_testset_save_CFLAGS"
9183
9184		eval supported=\$$cacheid
9185		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9186printf "%s\n" "$supported" >&6; }
9187		if test "$supported" = "yes" ; then
9188			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9189			found="yes"
9190		fi
9191	fi
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207xorg_testset_save_CFLAGS="$CFLAGS"
9208
9209if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9210	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9211	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9212printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9213if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9214then :
9215  printf %s "(cached) " >&6
9216else $as_nop
9217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218/* end confdefs.h.  */
9219int i;
9220_ACEOF
9221if ac_fn_c_try_compile "$LINENO"
9222then :
9223  xorg_cv_cc_flag_unknown_warning_option=yes
9224else $as_nop
9225  xorg_cv_cc_flag_unknown_warning_option=no
9226fi
9227rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9228fi
9229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9230printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9231	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9232	CFLAGS="$xorg_testset_save_CFLAGS"
9233fi
9234
9235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9236	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9237		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9238	fi
9239	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9240	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9241printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9242if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9243then :
9244  printf %s "(cached) " >&6
9245else $as_nop
9246  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247/* end confdefs.h.  */
9248int i;
9249_ACEOF
9250if ac_fn_c_try_compile "$LINENO"
9251then :
9252  xorg_cv_cc_flag_unused_command_line_argument=yes
9253else $as_nop
9254  xorg_cv_cc_flag_unused_command_line_argument=no
9255fi
9256rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9257fi
9258{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9259printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9260	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9261	CFLAGS="$xorg_testset_save_CFLAGS"
9262fi
9263
9264found="no"
9265
9266	if test $found = "no" ; then
9267		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9268			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9269		fi
9270
9271		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9272			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9273		fi
9274
9275		CFLAGS="$CFLAGS -Winit-self"
9276
9277		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9278printf %s "checking if $CC supports -Winit-self... " >&6; }
9279		cacheid=xorg_cv_cc_flag__Winit_self
9280		if eval test \${$cacheid+y}
9281then :
9282  printf %s "(cached) " >&6
9283else $as_nop
9284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9285/* end confdefs.h.  */
9286int i;
9287int
9288main (void)
9289{
9290
9291  ;
9292  return 0;
9293}
9294_ACEOF
9295if ac_fn_c_try_link "$LINENO"
9296then :
9297  eval $cacheid=yes
9298else $as_nop
9299  eval $cacheid=no
9300fi
9301rm -f core conftest.err conftest.$ac_objext conftest.beam \
9302    conftest$ac_exeext conftest.$ac_ext
9303fi
9304
9305
9306		CFLAGS="$xorg_testset_save_CFLAGS"
9307
9308		eval supported=\$$cacheid
9309		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9310printf "%s\n" "$supported" >&6; }
9311		if test "$supported" = "yes" ; then
9312			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9313			found="yes"
9314		fi
9315	fi
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331xorg_testset_save_CFLAGS="$CFLAGS"
9332
9333if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9334	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9335	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9336printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9337if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9338then :
9339  printf %s "(cached) " >&6
9340else $as_nop
9341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9342/* end confdefs.h.  */
9343int i;
9344_ACEOF
9345if ac_fn_c_try_compile "$LINENO"
9346then :
9347  xorg_cv_cc_flag_unknown_warning_option=yes
9348else $as_nop
9349  xorg_cv_cc_flag_unknown_warning_option=no
9350fi
9351rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9352fi
9353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9354printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9355	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9356	CFLAGS="$xorg_testset_save_CFLAGS"
9357fi
9358
9359if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9360	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9361		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9362	fi
9363	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9364	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9365printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9366if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9367then :
9368  printf %s "(cached) " >&6
9369else $as_nop
9370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9371/* end confdefs.h.  */
9372int i;
9373_ACEOF
9374if ac_fn_c_try_compile "$LINENO"
9375then :
9376  xorg_cv_cc_flag_unused_command_line_argument=yes
9377else $as_nop
9378  xorg_cv_cc_flag_unused_command_line_argument=no
9379fi
9380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9381fi
9382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9383printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9384	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9385	CFLAGS="$xorg_testset_save_CFLAGS"
9386fi
9387
9388found="no"
9389
9390	if test $found = "no" ; then
9391		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9392			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9393		fi
9394
9395		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9396			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9397		fi
9398
9399		CFLAGS="$CFLAGS -Wmain"
9400
9401		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9402printf %s "checking if $CC supports -Wmain... " >&6; }
9403		cacheid=xorg_cv_cc_flag__Wmain
9404		if eval test \${$cacheid+y}
9405then :
9406  printf %s "(cached) " >&6
9407else $as_nop
9408  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409/* end confdefs.h.  */
9410int i;
9411int
9412main (void)
9413{
9414
9415  ;
9416  return 0;
9417}
9418_ACEOF
9419if ac_fn_c_try_link "$LINENO"
9420then :
9421  eval $cacheid=yes
9422else $as_nop
9423  eval $cacheid=no
9424fi
9425rm -f core conftest.err conftest.$ac_objext conftest.beam \
9426    conftest$ac_exeext conftest.$ac_ext
9427fi
9428
9429
9430		CFLAGS="$xorg_testset_save_CFLAGS"
9431
9432		eval supported=\$$cacheid
9433		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9434printf "%s\n" "$supported" >&6; }
9435		if test "$supported" = "yes" ; then
9436			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9437			found="yes"
9438		fi
9439	fi
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455xorg_testset_save_CFLAGS="$CFLAGS"
9456
9457if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9458	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9459	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9460printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9461if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9462then :
9463  printf %s "(cached) " >&6
9464else $as_nop
9465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9466/* end confdefs.h.  */
9467int i;
9468_ACEOF
9469if ac_fn_c_try_compile "$LINENO"
9470then :
9471  xorg_cv_cc_flag_unknown_warning_option=yes
9472else $as_nop
9473  xorg_cv_cc_flag_unknown_warning_option=no
9474fi
9475rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9476fi
9477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9478printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9479	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9480	CFLAGS="$xorg_testset_save_CFLAGS"
9481fi
9482
9483if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9484	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9485		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9486	fi
9487	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9488	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9489printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9490if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9491then :
9492  printf %s "(cached) " >&6
9493else $as_nop
9494  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9495/* end confdefs.h.  */
9496int i;
9497_ACEOF
9498if ac_fn_c_try_compile "$LINENO"
9499then :
9500  xorg_cv_cc_flag_unused_command_line_argument=yes
9501else $as_nop
9502  xorg_cv_cc_flag_unused_command_line_argument=no
9503fi
9504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9505fi
9506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9507printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9508	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9509	CFLAGS="$xorg_testset_save_CFLAGS"
9510fi
9511
9512found="no"
9513
9514	if test $found = "no" ; then
9515		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9516			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9517		fi
9518
9519		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9520			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9521		fi
9522
9523		CFLAGS="$CFLAGS -Wmissing-braces"
9524
9525		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9526printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9527		cacheid=xorg_cv_cc_flag__Wmissing_braces
9528		if eval test \${$cacheid+y}
9529then :
9530  printf %s "(cached) " >&6
9531else $as_nop
9532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533/* end confdefs.h.  */
9534int i;
9535int
9536main (void)
9537{
9538
9539  ;
9540  return 0;
9541}
9542_ACEOF
9543if ac_fn_c_try_link "$LINENO"
9544then :
9545  eval $cacheid=yes
9546else $as_nop
9547  eval $cacheid=no
9548fi
9549rm -f core conftest.err conftest.$ac_objext conftest.beam \
9550    conftest$ac_exeext conftest.$ac_ext
9551fi
9552
9553
9554		CFLAGS="$xorg_testset_save_CFLAGS"
9555
9556		eval supported=\$$cacheid
9557		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9558printf "%s\n" "$supported" >&6; }
9559		if test "$supported" = "yes" ; then
9560			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9561			found="yes"
9562		fi
9563	fi
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579xorg_testset_save_CFLAGS="$CFLAGS"
9580
9581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9582	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9583	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9584printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9585if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9586then :
9587  printf %s "(cached) " >&6
9588else $as_nop
9589  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9590/* end confdefs.h.  */
9591int i;
9592_ACEOF
9593if ac_fn_c_try_compile "$LINENO"
9594then :
9595  xorg_cv_cc_flag_unknown_warning_option=yes
9596else $as_nop
9597  xorg_cv_cc_flag_unknown_warning_option=no
9598fi
9599rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9600fi
9601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9602printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9603	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9604	CFLAGS="$xorg_testset_save_CFLAGS"
9605fi
9606
9607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9608	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9609		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9610	fi
9611	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9612	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9613printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9614if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9615then :
9616  printf %s "(cached) " >&6
9617else $as_nop
9618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9619/* end confdefs.h.  */
9620int i;
9621_ACEOF
9622if ac_fn_c_try_compile "$LINENO"
9623then :
9624  xorg_cv_cc_flag_unused_command_line_argument=yes
9625else $as_nop
9626  xorg_cv_cc_flag_unused_command_line_argument=no
9627fi
9628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9629fi
9630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9631printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9632	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9633	CFLAGS="$xorg_testset_save_CFLAGS"
9634fi
9635
9636found="no"
9637
9638	if test $found = "no" ; then
9639		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9640			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9641		fi
9642
9643		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9644			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9645		fi
9646
9647		CFLAGS="$CFLAGS -Wsequence-point"
9648
9649		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9650printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9651		cacheid=xorg_cv_cc_flag__Wsequence_point
9652		if eval test \${$cacheid+y}
9653then :
9654  printf %s "(cached) " >&6
9655else $as_nop
9656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657/* end confdefs.h.  */
9658int i;
9659int
9660main (void)
9661{
9662
9663  ;
9664  return 0;
9665}
9666_ACEOF
9667if ac_fn_c_try_link "$LINENO"
9668then :
9669  eval $cacheid=yes
9670else $as_nop
9671  eval $cacheid=no
9672fi
9673rm -f core conftest.err conftest.$ac_objext conftest.beam \
9674    conftest$ac_exeext conftest.$ac_ext
9675fi
9676
9677
9678		CFLAGS="$xorg_testset_save_CFLAGS"
9679
9680		eval supported=\$$cacheid
9681		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9682printf "%s\n" "$supported" >&6; }
9683		if test "$supported" = "yes" ; then
9684			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9685			found="yes"
9686		fi
9687	fi
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703xorg_testset_save_CFLAGS="$CFLAGS"
9704
9705if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9706	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9707	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9708printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9709if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9710then :
9711  printf %s "(cached) " >&6
9712else $as_nop
9713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714/* end confdefs.h.  */
9715int i;
9716_ACEOF
9717if ac_fn_c_try_compile "$LINENO"
9718then :
9719  xorg_cv_cc_flag_unknown_warning_option=yes
9720else $as_nop
9721  xorg_cv_cc_flag_unknown_warning_option=no
9722fi
9723rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9724fi
9725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9726printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9727	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9728	CFLAGS="$xorg_testset_save_CFLAGS"
9729fi
9730
9731if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9732	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9733		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9734	fi
9735	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9736	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9737printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9738if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9739then :
9740  printf %s "(cached) " >&6
9741else $as_nop
9742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9743/* end confdefs.h.  */
9744int i;
9745_ACEOF
9746if ac_fn_c_try_compile "$LINENO"
9747then :
9748  xorg_cv_cc_flag_unused_command_line_argument=yes
9749else $as_nop
9750  xorg_cv_cc_flag_unused_command_line_argument=no
9751fi
9752rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9753fi
9754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9755printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9756	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9757	CFLAGS="$xorg_testset_save_CFLAGS"
9758fi
9759
9760found="no"
9761
9762	if test $found = "no" ; then
9763		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9764			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9765		fi
9766
9767		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9768			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9769		fi
9770
9771		CFLAGS="$CFLAGS -Wreturn-type"
9772
9773		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9774printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9775		cacheid=xorg_cv_cc_flag__Wreturn_type
9776		if eval test \${$cacheid+y}
9777then :
9778  printf %s "(cached) " >&6
9779else $as_nop
9780  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9781/* end confdefs.h.  */
9782int i;
9783int
9784main (void)
9785{
9786
9787  ;
9788  return 0;
9789}
9790_ACEOF
9791if ac_fn_c_try_link "$LINENO"
9792then :
9793  eval $cacheid=yes
9794else $as_nop
9795  eval $cacheid=no
9796fi
9797rm -f core conftest.err conftest.$ac_objext conftest.beam \
9798    conftest$ac_exeext conftest.$ac_ext
9799fi
9800
9801
9802		CFLAGS="$xorg_testset_save_CFLAGS"
9803
9804		eval supported=\$$cacheid
9805		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9806printf "%s\n" "$supported" >&6; }
9807		if test "$supported" = "yes" ; then
9808			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9809			found="yes"
9810		fi
9811	fi
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827xorg_testset_save_CFLAGS="$CFLAGS"
9828
9829if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9830	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9831	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9832printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9833if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9834then :
9835  printf %s "(cached) " >&6
9836else $as_nop
9837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838/* end confdefs.h.  */
9839int i;
9840_ACEOF
9841if ac_fn_c_try_compile "$LINENO"
9842then :
9843  xorg_cv_cc_flag_unknown_warning_option=yes
9844else $as_nop
9845  xorg_cv_cc_flag_unknown_warning_option=no
9846fi
9847rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9848fi
9849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9850printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9851	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9852	CFLAGS="$xorg_testset_save_CFLAGS"
9853fi
9854
9855if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9856	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9857		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9858	fi
9859	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9860	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9861printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9862if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9863then :
9864  printf %s "(cached) " >&6
9865else $as_nop
9866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867/* end confdefs.h.  */
9868int i;
9869_ACEOF
9870if ac_fn_c_try_compile "$LINENO"
9871then :
9872  xorg_cv_cc_flag_unused_command_line_argument=yes
9873else $as_nop
9874  xorg_cv_cc_flag_unused_command_line_argument=no
9875fi
9876rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9877fi
9878{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9879printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9880	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9881	CFLAGS="$xorg_testset_save_CFLAGS"
9882fi
9883
9884found="no"
9885
9886	if test $found = "no" ; then
9887		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9888			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9889		fi
9890
9891		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9892			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9893		fi
9894
9895		CFLAGS="$CFLAGS -Wtrigraphs"
9896
9897		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9898printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9899		cacheid=xorg_cv_cc_flag__Wtrigraphs
9900		if eval test \${$cacheid+y}
9901then :
9902  printf %s "(cached) " >&6
9903else $as_nop
9904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9905/* end confdefs.h.  */
9906int i;
9907int
9908main (void)
9909{
9910
9911  ;
9912  return 0;
9913}
9914_ACEOF
9915if ac_fn_c_try_link "$LINENO"
9916then :
9917  eval $cacheid=yes
9918else $as_nop
9919  eval $cacheid=no
9920fi
9921rm -f core conftest.err conftest.$ac_objext conftest.beam \
9922    conftest$ac_exeext conftest.$ac_ext
9923fi
9924
9925
9926		CFLAGS="$xorg_testset_save_CFLAGS"
9927
9928		eval supported=\$$cacheid
9929		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9930printf "%s\n" "$supported" >&6; }
9931		if test "$supported" = "yes" ; then
9932			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9933			found="yes"
9934		fi
9935	fi
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951xorg_testset_save_CFLAGS="$CFLAGS"
9952
9953if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9954	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9955	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9956printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9957if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9958then :
9959  printf %s "(cached) " >&6
9960else $as_nop
9961  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962/* end confdefs.h.  */
9963int i;
9964_ACEOF
9965if ac_fn_c_try_compile "$LINENO"
9966then :
9967  xorg_cv_cc_flag_unknown_warning_option=yes
9968else $as_nop
9969  xorg_cv_cc_flag_unknown_warning_option=no
9970fi
9971rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9972fi
9973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9974printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9975	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9976	CFLAGS="$xorg_testset_save_CFLAGS"
9977fi
9978
9979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9980	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9981		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9982	fi
9983	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9984	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9985printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9986if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9987then :
9988  printf %s "(cached) " >&6
9989else $as_nop
9990  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9991/* end confdefs.h.  */
9992int i;
9993_ACEOF
9994if ac_fn_c_try_compile "$LINENO"
9995then :
9996  xorg_cv_cc_flag_unused_command_line_argument=yes
9997else $as_nop
9998  xorg_cv_cc_flag_unused_command_line_argument=no
9999fi
10000rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10001fi
10002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10003printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10004	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10005	CFLAGS="$xorg_testset_save_CFLAGS"
10006fi
10007
10008found="no"
10009
10010	if test $found = "no" ; then
10011		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10012			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10013		fi
10014
10015		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10016			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10017		fi
10018
10019		CFLAGS="$CFLAGS -Warray-bounds"
10020
10021		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10022printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10023		cacheid=xorg_cv_cc_flag__Warray_bounds
10024		if eval test \${$cacheid+y}
10025then :
10026  printf %s "(cached) " >&6
10027else $as_nop
10028  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10029/* end confdefs.h.  */
10030int i;
10031int
10032main (void)
10033{
10034
10035  ;
10036  return 0;
10037}
10038_ACEOF
10039if ac_fn_c_try_link "$LINENO"
10040then :
10041  eval $cacheid=yes
10042else $as_nop
10043  eval $cacheid=no
10044fi
10045rm -f core conftest.err conftest.$ac_objext conftest.beam \
10046    conftest$ac_exeext conftest.$ac_ext
10047fi
10048
10049
10050		CFLAGS="$xorg_testset_save_CFLAGS"
10051
10052		eval supported=\$$cacheid
10053		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10054printf "%s\n" "$supported" >&6; }
10055		if test "$supported" = "yes" ; then
10056			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10057			found="yes"
10058		fi
10059	fi
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075xorg_testset_save_CFLAGS="$CFLAGS"
10076
10077if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10078	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10079	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10080printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10081if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10082then :
10083  printf %s "(cached) " >&6
10084else $as_nop
10085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10086/* end confdefs.h.  */
10087int i;
10088_ACEOF
10089if ac_fn_c_try_compile "$LINENO"
10090then :
10091  xorg_cv_cc_flag_unknown_warning_option=yes
10092else $as_nop
10093  xorg_cv_cc_flag_unknown_warning_option=no
10094fi
10095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10096fi
10097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10098printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10099	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10100	CFLAGS="$xorg_testset_save_CFLAGS"
10101fi
10102
10103if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10104	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10105		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10106	fi
10107	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10108	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10109printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10110if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10111then :
10112  printf %s "(cached) " >&6
10113else $as_nop
10114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10115/* end confdefs.h.  */
10116int i;
10117_ACEOF
10118if ac_fn_c_try_compile "$LINENO"
10119then :
10120  xorg_cv_cc_flag_unused_command_line_argument=yes
10121else $as_nop
10122  xorg_cv_cc_flag_unused_command_line_argument=no
10123fi
10124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10125fi
10126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10127printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10128	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10129	CFLAGS="$xorg_testset_save_CFLAGS"
10130fi
10131
10132found="no"
10133
10134	if test $found = "no" ; then
10135		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10136			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10137		fi
10138
10139		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10140			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10141		fi
10142
10143		CFLAGS="$CFLAGS -Wwrite-strings"
10144
10145		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10146printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10147		cacheid=xorg_cv_cc_flag__Wwrite_strings
10148		if eval test \${$cacheid+y}
10149then :
10150  printf %s "(cached) " >&6
10151else $as_nop
10152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153/* end confdefs.h.  */
10154int i;
10155int
10156main (void)
10157{
10158
10159  ;
10160  return 0;
10161}
10162_ACEOF
10163if ac_fn_c_try_link "$LINENO"
10164then :
10165  eval $cacheid=yes
10166else $as_nop
10167  eval $cacheid=no
10168fi
10169rm -f core conftest.err conftest.$ac_objext conftest.beam \
10170    conftest$ac_exeext conftest.$ac_ext
10171fi
10172
10173
10174		CFLAGS="$xorg_testset_save_CFLAGS"
10175
10176		eval supported=\$$cacheid
10177		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10178printf "%s\n" "$supported" >&6; }
10179		if test "$supported" = "yes" ; then
10180			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10181			found="yes"
10182		fi
10183	fi
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199xorg_testset_save_CFLAGS="$CFLAGS"
10200
10201if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10202	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10203	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10204printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10205if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10206then :
10207  printf %s "(cached) " >&6
10208else $as_nop
10209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10210/* end confdefs.h.  */
10211int i;
10212_ACEOF
10213if ac_fn_c_try_compile "$LINENO"
10214then :
10215  xorg_cv_cc_flag_unknown_warning_option=yes
10216else $as_nop
10217  xorg_cv_cc_flag_unknown_warning_option=no
10218fi
10219rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10220fi
10221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10222printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10223	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10224	CFLAGS="$xorg_testset_save_CFLAGS"
10225fi
10226
10227if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10228	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10229		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10230	fi
10231	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10232	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10233printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10234if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10235then :
10236  printf %s "(cached) " >&6
10237else $as_nop
10238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239/* end confdefs.h.  */
10240int i;
10241_ACEOF
10242if ac_fn_c_try_compile "$LINENO"
10243then :
10244  xorg_cv_cc_flag_unused_command_line_argument=yes
10245else $as_nop
10246  xorg_cv_cc_flag_unused_command_line_argument=no
10247fi
10248rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10249fi
10250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10251printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10252	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10253	CFLAGS="$xorg_testset_save_CFLAGS"
10254fi
10255
10256found="no"
10257
10258	if test $found = "no" ; then
10259		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10260			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10261		fi
10262
10263		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10264			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10265		fi
10266
10267		CFLAGS="$CFLAGS -Waddress"
10268
10269		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10270printf %s "checking if $CC supports -Waddress... " >&6; }
10271		cacheid=xorg_cv_cc_flag__Waddress
10272		if eval test \${$cacheid+y}
10273then :
10274  printf %s "(cached) " >&6
10275else $as_nop
10276  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10277/* end confdefs.h.  */
10278int i;
10279int
10280main (void)
10281{
10282
10283  ;
10284  return 0;
10285}
10286_ACEOF
10287if ac_fn_c_try_link "$LINENO"
10288then :
10289  eval $cacheid=yes
10290else $as_nop
10291  eval $cacheid=no
10292fi
10293rm -f core conftest.err conftest.$ac_objext conftest.beam \
10294    conftest$ac_exeext conftest.$ac_ext
10295fi
10296
10297
10298		CFLAGS="$xorg_testset_save_CFLAGS"
10299
10300		eval supported=\$$cacheid
10301		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10302printf "%s\n" "$supported" >&6; }
10303		if test "$supported" = "yes" ; then
10304			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10305			found="yes"
10306		fi
10307	fi
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323xorg_testset_save_CFLAGS="$CFLAGS"
10324
10325if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10326	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10327	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10328printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10329if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10330then :
10331  printf %s "(cached) " >&6
10332else $as_nop
10333  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10334/* end confdefs.h.  */
10335int i;
10336_ACEOF
10337if ac_fn_c_try_compile "$LINENO"
10338then :
10339  xorg_cv_cc_flag_unknown_warning_option=yes
10340else $as_nop
10341  xorg_cv_cc_flag_unknown_warning_option=no
10342fi
10343rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10344fi
10345{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10346printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10347	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10348	CFLAGS="$xorg_testset_save_CFLAGS"
10349fi
10350
10351if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10352	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10353		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10354	fi
10355	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10356	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10357printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10358if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10359then :
10360  printf %s "(cached) " >&6
10361else $as_nop
10362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363/* end confdefs.h.  */
10364int i;
10365_ACEOF
10366if ac_fn_c_try_compile "$LINENO"
10367then :
10368  xorg_cv_cc_flag_unused_command_line_argument=yes
10369else $as_nop
10370  xorg_cv_cc_flag_unused_command_line_argument=no
10371fi
10372rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10373fi
10374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10375printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10376	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10377	CFLAGS="$xorg_testset_save_CFLAGS"
10378fi
10379
10380found="no"
10381
10382	if test $found = "no" ; then
10383		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10384			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10385		fi
10386
10387		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10388			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10389		fi
10390
10391		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10392
10393		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10394printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10395		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10396		if eval test \${$cacheid+y}
10397then :
10398  printf %s "(cached) " >&6
10399else $as_nop
10400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401/* end confdefs.h.  */
10402int i;
10403int
10404main (void)
10405{
10406
10407  ;
10408  return 0;
10409}
10410_ACEOF
10411if ac_fn_c_try_link "$LINENO"
10412then :
10413  eval $cacheid=yes
10414else $as_nop
10415  eval $cacheid=no
10416fi
10417rm -f core conftest.err conftest.$ac_objext conftest.beam \
10418    conftest$ac_exeext conftest.$ac_ext
10419fi
10420
10421
10422		CFLAGS="$xorg_testset_save_CFLAGS"
10423
10424		eval supported=\$$cacheid
10425		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10426printf "%s\n" "$supported" >&6; }
10427		if test "$supported" = "yes" ; then
10428			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10429			found="yes"
10430		fi
10431	fi
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447xorg_testset_save_CFLAGS="$CFLAGS"
10448
10449if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10450	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10451	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10452printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10453if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10454then :
10455  printf %s "(cached) " >&6
10456else $as_nop
10457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10458/* end confdefs.h.  */
10459int i;
10460_ACEOF
10461if ac_fn_c_try_compile "$LINENO"
10462then :
10463  xorg_cv_cc_flag_unknown_warning_option=yes
10464else $as_nop
10465  xorg_cv_cc_flag_unknown_warning_option=no
10466fi
10467rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10468fi
10469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10470printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10471	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10472	CFLAGS="$xorg_testset_save_CFLAGS"
10473fi
10474
10475if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10476	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10477		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10478	fi
10479	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10480	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10481printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10482if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10483then :
10484  printf %s "(cached) " >&6
10485else $as_nop
10486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10487/* end confdefs.h.  */
10488int i;
10489_ACEOF
10490if ac_fn_c_try_compile "$LINENO"
10491then :
10492  xorg_cv_cc_flag_unused_command_line_argument=yes
10493else $as_nop
10494  xorg_cv_cc_flag_unused_command_line_argument=no
10495fi
10496rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10497fi
10498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10499printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10500	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10501	CFLAGS="$xorg_testset_save_CFLAGS"
10502fi
10503
10504found="no"
10505
10506	if test $found = "no" ; then
10507		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10508			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10509		fi
10510
10511		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10512			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10513		fi
10514
10515		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10516
10517		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10518printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10519		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10520		if eval test \${$cacheid+y}
10521then :
10522  printf %s "(cached) " >&6
10523else $as_nop
10524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525/* end confdefs.h.  */
10526int i;
10527int
10528main (void)
10529{
10530
10531  ;
10532  return 0;
10533}
10534_ACEOF
10535if ac_fn_c_try_link "$LINENO"
10536then :
10537  eval $cacheid=yes
10538else $as_nop
10539  eval $cacheid=no
10540fi
10541rm -f core conftest.err conftest.$ac_objext conftest.beam \
10542    conftest$ac_exeext conftest.$ac_ext
10543fi
10544
10545
10546		CFLAGS="$xorg_testset_save_CFLAGS"
10547
10548		eval supported=\$$cacheid
10549		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10550printf "%s\n" "$supported" >&6; }
10551		if test "$supported" = "yes" ; then
10552			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10553			found="yes"
10554		fi
10555	fi
10556
10557
10558fi
10559
10560
10561
10562
10563
10564
10565
10566		CWARNFLAGS="$BASE_CFLAGS"
10567		if  test "x$GCC" = xyes ; then
10568		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10569		fi
10570
10571
10572
10573
10574
10575
10576
10577
10578# Check whether --enable-strict-compilation was given.
10579if test ${enable_strict_compilation+y}
10580then :
10581  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10582else $as_nop
10583  STRICT_COMPILE=no
10584fi
10585
10586
10587
10588
10589
10590
10591STRICT_CFLAGS=""
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605xorg_testset_save_CFLAGS="$CFLAGS"
10606
10607if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10608	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10609	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10610printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10611if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10612then :
10613  printf %s "(cached) " >&6
10614else $as_nop
10615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10616/* end confdefs.h.  */
10617int i;
10618_ACEOF
10619if ac_fn_c_try_compile "$LINENO"
10620then :
10621  xorg_cv_cc_flag_unknown_warning_option=yes
10622else $as_nop
10623  xorg_cv_cc_flag_unknown_warning_option=no
10624fi
10625rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10626fi
10627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10628printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10629	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10630	CFLAGS="$xorg_testset_save_CFLAGS"
10631fi
10632
10633if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10634	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10635		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10636	fi
10637	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10638	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10639printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10640if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10641then :
10642  printf %s "(cached) " >&6
10643else $as_nop
10644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10645/* end confdefs.h.  */
10646int i;
10647_ACEOF
10648if ac_fn_c_try_compile "$LINENO"
10649then :
10650  xorg_cv_cc_flag_unused_command_line_argument=yes
10651else $as_nop
10652  xorg_cv_cc_flag_unused_command_line_argument=no
10653fi
10654rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10655fi
10656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10657printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10658	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10659	CFLAGS="$xorg_testset_save_CFLAGS"
10660fi
10661
10662found="no"
10663
10664	if test $found = "no" ; then
10665		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10666			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10667		fi
10668
10669		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10670			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10671		fi
10672
10673		CFLAGS="$CFLAGS -pedantic"
10674
10675		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10676printf %s "checking if $CC supports -pedantic... " >&6; }
10677		cacheid=xorg_cv_cc_flag__pedantic
10678		if eval test \${$cacheid+y}
10679then :
10680  printf %s "(cached) " >&6
10681else $as_nop
10682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683/* end confdefs.h.  */
10684int i;
10685int
10686main (void)
10687{
10688
10689  ;
10690  return 0;
10691}
10692_ACEOF
10693if ac_fn_c_try_link "$LINENO"
10694then :
10695  eval $cacheid=yes
10696else $as_nop
10697  eval $cacheid=no
10698fi
10699rm -f core conftest.err conftest.$ac_objext conftest.beam \
10700    conftest$ac_exeext conftest.$ac_ext
10701fi
10702
10703
10704		CFLAGS="$xorg_testset_save_CFLAGS"
10705
10706		eval supported=\$$cacheid
10707		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10708printf "%s\n" "$supported" >&6; }
10709		if test "$supported" = "yes" ; then
10710			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10711			found="yes"
10712		fi
10713	fi
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729xorg_testset_save_CFLAGS="$CFLAGS"
10730
10731if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10732	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10733	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10734printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10735if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10736then :
10737  printf %s "(cached) " >&6
10738else $as_nop
10739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10740/* end confdefs.h.  */
10741int i;
10742_ACEOF
10743if ac_fn_c_try_compile "$LINENO"
10744then :
10745  xorg_cv_cc_flag_unknown_warning_option=yes
10746else $as_nop
10747  xorg_cv_cc_flag_unknown_warning_option=no
10748fi
10749rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10750fi
10751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10752printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10753	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10754	CFLAGS="$xorg_testset_save_CFLAGS"
10755fi
10756
10757if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10758	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10759		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10760	fi
10761	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10762	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10763printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10764if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10765then :
10766  printf %s "(cached) " >&6
10767else $as_nop
10768  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10769/* end confdefs.h.  */
10770int i;
10771_ACEOF
10772if ac_fn_c_try_compile "$LINENO"
10773then :
10774  xorg_cv_cc_flag_unused_command_line_argument=yes
10775else $as_nop
10776  xorg_cv_cc_flag_unused_command_line_argument=no
10777fi
10778rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10779fi
10780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10781printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10782	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10783	CFLAGS="$xorg_testset_save_CFLAGS"
10784fi
10785
10786found="no"
10787
10788	if test $found = "no" ; then
10789		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10790			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10791		fi
10792
10793		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10794			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10795		fi
10796
10797		CFLAGS="$CFLAGS -Werror"
10798
10799		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10800printf %s "checking if $CC supports -Werror... " >&6; }
10801		cacheid=xorg_cv_cc_flag__Werror
10802		if eval test \${$cacheid+y}
10803then :
10804  printf %s "(cached) " >&6
10805else $as_nop
10806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10807/* end confdefs.h.  */
10808int i;
10809int
10810main (void)
10811{
10812
10813  ;
10814  return 0;
10815}
10816_ACEOF
10817if ac_fn_c_try_link "$LINENO"
10818then :
10819  eval $cacheid=yes
10820else $as_nop
10821  eval $cacheid=no
10822fi
10823rm -f core conftest.err conftest.$ac_objext conftest.beam \
10824    conftest$ac_exeext conftest.$ac_ext
10825fi
10826
10827
10828		CFLAGS="$xorg_testset_save_CFLAGS"
10829
10830		eval supported=\$$cacheid
10831		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10832printf "%s\n" "$supported" >&6; }
10833		if test "$supported" = "yes" ; then
10834			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10835			found="yes"
10836		fi
10837	fi
10838
10839	if test $found = "no" ; then
10840		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10841			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10842		fi
10843
10844		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10845			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10846		fi
10847
10848		CFLAGS="$CFLAGS -errwarn"
10849
10850		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10851printf %s "checking if $CC supports -errwarn... " >&6; }
10852		cacheid=xorg_cv_cc_flag__errwarn
10853		if eval test \${$cacheid+y}
10854then :
10855  printf %s "(cached) " >&6
10856else $as_nop
10857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858/* end confdefs.h.  */
10859int i;
10860int
10861main (void)
10862{
10863
10864  ;
10865  return 0;
10866}
10867_ACEOF
10868if ac_fn_c_try_link "$LINENO"
10869then :
10870  eval $cacheid=yes
10871else $as_nop
10872  eval $cacheid=no
10873fi
10874rm -f core conftest.err conftest.$ac_objext conftest.beam \
10875    conftest$ac_exeext conftest.$ac_ext
10876fi
10877
10878
10879		CFLAGS="$xorg_testset_save_CFLAGS"
10880
10881		eval supported=\$$cacheid
10882		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10883printf "%s\n" "$supported" >&6; }
10884		if test "$supported" = "yes" ; then
10885			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10886			found="yes"
10887		fi
10888	fi
10889
10890
10891
10892# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10893# activate it with -Werror, so we add it here explicitly.
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907xorg_testset_save_CFLAGS="$CFLAGS"
10908
10909if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10910	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10911	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10912printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10913if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10914then :
10915  printf %s "(cached) " >&6
10916else $as_nop
10917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918/* end confdefs.h.  */
10919int i;
10920_ACEOF
10921if ac_fn_c_try_compile "$LINENO"
10922then :
10923  xorg_cv_cc_flag_unknown_warning_option=yes
10924else $as_nop
10925  xorg_cv_cc_flag_unknown_warning_option=no
10926fi
10927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10928fi
10929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10930printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10931	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10932	CFLAGS="$xorg_testset_save_CFLAGS"
10933fi
10934
10935if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10936	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10937		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10938	fi
10939	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10940	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10941printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10942if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10943then :
10944  printf %s "(cached) " >&6
10945else $as_nop
10946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947/* end confdefs.h.  */
10948int i;
10949_ACEOF
10950if ac_fn_c_try_compile "$LINENO"
10951then :
10952  xorg_cv_cc_flag_unused_command_line_argument=yes
10953else $as_nop
10954  xorg_cv_cc_flag_unused_command_line_argument=no
10955fi
10956rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10957fi
10958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10959printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10960	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10961	CFLAGS="$xorg_testset_save_CFLAGS"
10962fi
10963
10964found="no"
10965
10966	if test $found = "no" ; then
10967		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10968			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10969		fi
10970
10971		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10972			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10973		fi
10974
10975		CFLAGS="$CFLAGS -Werror=attributes"
10976
10977		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10978printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10979		cacheid=xorg_cv_cc_flag__Werror_attributes
10980		if eval test \${$cacheid+y}
10981then :
10982  printf %s "(cached) " >&6
10983else $as_nop
10984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985/* end confdefs.h.  */
10986int i;
10987int
10988main (void)
10989{
10990
10991  ;
10992  return 0;
10993}
10994_ACEOF
10995if ac_fn_c_try_link "$LINENO"
10996then :
10997  eval $cacheid=yes
10998else $as_nop
10999  eval $cacheid=no
11000fi
11001rm -f core conftest.err conftest.$ac_objext conftest.beam \
11002    conftest$ac_exeext conftest.$ac_ext
11003fi
11004
11005
11006		CFLAGS="$xorg_testset_save_CFLAGS"
11007
11008		eval supported=\$$cacheid
11009		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11010printf "%s\n" "$supported" >&6; }
11011		if test "$supported" = "yes" ; then
11012			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11013			found="yes"
11014		fi
11015	fi
11016
11017
11018
11019if test "x$STRICT_COMPILE" = "xyes"; then
11020    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11021    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11022fi
11023
11024
11025
11026
11027
11028
11029cat >>confdefs.h <<_ACEOF
11030#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11031_ACEOF
11032
11033	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11034	if test "x$PVM" = "x"; then
11035		PVM="0"
11036	fi
11037
11038printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11039
11040	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11041	if test "x$PVP" = "x"; then
11042		PVP="0"
11043	fi
11044
11045printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11046
11047
11048
11049CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11050mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11051|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11052touch \$(top_srcdir)/ChangeLog; \
11053echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11054
11055
11056
11057
11058macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11059INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11060mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11061|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11062touch \$(top_srcdir)/INSTALL; \
11063echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11064
11065
11066
11067
11068
11069
11070case $host_os in
11071    solaris*)
11072        # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11073        # check for a man page file found in later versions that use
11074        # traditional section numbers instead
11075        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11076printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11077if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11078then :
11079  printf %s "(cached) " >&6
11080else $as_nop
11081  test "$cross_compiling" = yes &&
11082  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11083if test -r "/usr/share/man/man7/attributes.7"; then
11084  ac_cv_file__usr_share_man_man7_attributes_7=yes
11085else
11086  ac_cv_file__usr_share_man_man7_attributes_7=no
11087fi
11088fi
11089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11090printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11091if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11092then :
11093  SYSV_MAN_SECTIONS=false
11094else $as_nop
11095  SYSV_MAN_SECTIONS=true
11096fi
11097
11098        ;;
11099    *) SYSV_MAN_SECTIONS=false ;;
11100esac
11101
11102if test x$APP_MAN_SUFFIX = x    ; then
11103    APP_MAN_SUFFIX=1
11104fi
11105if test x$APP_MAN_DIR = x    ; then
11106    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11107fi
11108
11109if test x$LIB_MAN_SUFFIX = x    ; then
11110    LIB_MAN_SUFFIX=3
11111fi
11112if test x$LIB_MAN_DIR = x    ; then
11113    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11114fi
11115
11116if test x$FILE_MAN_SUFFIX = x    ; then
11117    case $SYSV_MAN_SECTIONS in
11118	true)				FILE_MAN_SUFFIX=4  ;;
11119	*)				FILE_MAN_SUFFIX=5  ;;
11120    esac
11121fi
11122if test x$FILE_MAN_DIR = x    ; then
11123    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11124fi
11125
11126if test x$MISC_MAN_SUFFIX = x    ; then
11127    case $SYSV_MAN_SECTIONS in
11128	true)				MISC_MAN_SUFFIX=5  ;;
11129	*)				MISC_MAN_SUFFIX=7  ;;
11130    esac
11131fi
11132if test x$MISC_MAN_DIR = x    ; then
11133    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11134fi
11135
11136if test x$DRIVER_MAN_SUFFIX = x    ; then
11137    case $SYSV_MAN_SECTIONS in
11138	true)				DRIVER_MAN_SUFFIX=7  ;;
11139	*)				DRIVER_MAN_SUFFIX=4  ;;
11140    esac
11141fi
11142if test x$DRIVER_MAN_DIR = x    ; then
11143    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11144fi
11145
11146if test x$ADMIN_MAN_SUFFIX = x    ; then
11147    case $SYSV_MAN_SECTIONS in
11148	true)				ADMIN_MAN_SUFFIX=1m ;;
11149	*)				ADMIN_MAN_SUFFIX=8  ;;
11150    esac
11151fi
11152if test x$ADMIN_MAN_DIR = x    ; then
11153    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11154fi
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170XORG_MAN_PAGE="X Version 11"
11171
11172MAN_SUBSTS="\
11173	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11174	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11175	-e 's|__xservername__|Xorg|g' \
11176	-e 's|__xconfigfile__|xorg.conf|g' \
11177	-e 's|__projectroot__|\$(prefix)|g' \
11178	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
11179	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11180	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11181	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11182	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11183	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11184	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11185
11186
11187
11188# Check whether --enable-silent-rules was given.
11189if test ${enable_silent_rules+y}
11190then :
11191  enableval=$enable_silent_rules;
11192fi
11193
11194case $enable_silent_rules in # (((
11195  yes) AM_DEFAULT_VERBOSITY=0;;
11196   no) AM_DEFAULT_VERBOSITY=1;;
11197    *) AM_DEFAULT_VERBOSITY=0;;
11198esac
11199am_make=${MAKE-make}
11200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11201printf %s "checking whether $am_make supports nested variables... " >&6; }
11202if test ${am_cv_make_support_nested_variables+y}
11203then :
11204  printf %s "(cached) " >&6
11205else $as_nop
11206  if printf "%s\n" 'TRUE=$(BAR$(V))
11207BAR0=false
11208BAR1=true
11209V=1
11210am__doit:
11211	@$(TRUE)
11212.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11213  am_cv_make_support_nested_variables=yes
11214else
11215  am_cv_make_support_nested_variables=no
11216fi
11217fi
11218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11219printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11220if test $am_cv_make_support_nested_variables = yes; then
11221    AM_V='$(V)'
11222  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11223else
11224  AM_V=$AM_DEFAULT_VERBOSITY
11225  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11226fi
11227AM_BACKSLASH='\'
11228
11229
11230
11231# Initialize libtool
11232# Check whether --enable-static was given.
11233if test ${enable_static+y}
11234then :
11235  enableval=$enable_static; p=${PACKAGE-default}
11236    case $enableval in
11237    yes) enable_static=yes ;;
11238    no) enable_static=no ;;
11239    *)
11240     enable_static=no
11241      # Look at the argument we got.  We use all the common list separators.
11242      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11243      for pkg in $enableval; do
11244	IFS=$lt_save_ifs
11245	if test "X$pkg" = "X$p"; then
11246	  enable_static=yes
11247	fi
11248      done
11249      IFS=$lt_save_ifs
11250      ;;
11251    esac
11252else $as_nop
11253  enable_static=no
11254fi
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264case `pwd` in
11265  *\ * | *\	*)
11266    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11267printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11268esac
11269
11270
11271
11272macro_version='2.4.7'
11273macro_revision='2.4.7'
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288ltmain=$ac_aux_dir/ltmain.sh
11289
11290# Backslashify metacharacters that are still active within
11291# double-quoted strings.
11292sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11293
11294# Same as above, but do not quote variable references.
11295double_quote_subst='s/\(["`\\]\)/\\\1/g'
11296
11297# Sed substitution to delay expansion of an escaped shell variable in a
11298# double_quote_subst'ed string.
11299delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11300
11301# Sed substitution to delay expansion of an escaped single quote.
11302delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11303
11304# Sed substitution to avoid accidental globbing in evaled expressions
11305no_glob_subst='s/\*/\\\*/g'
11306
11307ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11308ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11309ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11310
11311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11312printf %s "checking how to print strings... " >&6; }
11313# Test print first, because it will be a builtin if present.
11314if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
11315   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11316  ECHO='print -r --'
11317elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11318  ECHO='printf %s\n'
11319else
11320  # Use this function as a fallback that always works.
11321  func_fallback_echo ()
11322  {
11323    eval 'cat <<_LTECHO_EOF
11324$1
11325_LTECHO_EOF'
11326  }
11327  ECHO='func_fallback_echo'
11328fi
11329
11330# func_echo_all arg...
11331# Invoke $ECHO with all args, space-separated.
11332func_echo_all ()
11333{
11334    $ECHO ""
11335}
11336
11337case $ECHO in
11338  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11339printf "%s\n" "printf" >&6; } ;;
11340  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11341printf "%s\n" "print -r" >&6; } ;;
11342  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11343printf "%s\n" "cat" >&6; } ;;
11344esac
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11360printf %s "checking for a sed that does not truncate output... " >&6; }
11361if test ${ac_cv_path_SED+y}
11362then :
11363  printf %s "(cached) " >&6
11364else $as_nop
11365            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11366     for ac_i in 1 2 3 4 5 6 7; do
11367       ac_script="$ac_script$as_nl$ac_script"
11368     done
11369     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11370     { ac_script=; unset ac_script;}
11371     if test -z "$SED"; then
11372  ac_path_SED_found=false
11373  # Loop through the user's path and test for each of PROGNAME-LIST
11374  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11375for as_dir in $PATH
11376do
11377  IFS=$as_save_IFS
11378  case $as_dir in #(((
11379    '') as_dir=./ ;;
11380    */) ;;
11381    *) as_dir=$as_dir/ ;;
11382  esac
11383    for ac_prog in sed gsed
11384   do
11385    for ac_exec_ext in '' $ac_executable_extensions; do
11386      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
11387      as_fn_executable_p "$ac_path_SED" || continue
11388# Check for GNU ac_path_SED and select it if it is found.
11389  # Check for GNU $ac_path_SED
11390case `"$ac_path_SED" --version 2>&1` in
11391*GNU*)
11392  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11393*)
11394  ac_count=0
11395  printf %s 0123456789 >"conftest.in"
11396  while :
11397  do
11398    cat "conftest.in" "conftest.in" >"conftest.tmp"
11399    mv "conftest.tmp" "conftest.in"
11400    cp "conftest.in" "conftest.nl"
11401    printf "%s\n" '' >> "conftest.nl"
11402    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11403    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11404    as_fn_arith $ac_count + 1 && ac_count=$as_val
11405    if test $ac_count -gt ${ac_path_SED_max-0}; then
11406      # Best one so far, save it but keep looking for a better one
11407      ac_cv_path_SED="$ac_path_SED"
11408      ac_path_SED_max=$ac_count
11409    fi
11410    # 10*(2^10) chars as input seems more than enough
11411    test $ac_count -gt 10 && break
11412  done
11413  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11414esac
11415
11416      $ac_path_SED_found && break 3
11417    done
11418  done
11419  done
11420IFS=$as_save_IFS
11421  if test -z "$ac_cv_path_SED"; then
11422    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11423  fi
11424else
11425  ac_cv_path_SED=$SED
11426fi
11427
11428fi
11429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11430printf "%s\n" "$ac_cv_path_SED" >&6; }
11431 SED="$ac_cv_path_SED"
11432  rm -f conftest.sed
11433
11434test -z "$SED" && SED=sed
11435Xsed="$SED -e 1s/^X//"
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11448printf %s "checking for grep that handles long lines and -e... " >&6; }
11449if test ${ac_cv_path_GREP+y}
11450then :
11451  printf %s "(cached) " >&6
11452else $as_nop
11453  if test -z "$GREP"; then
11454  ac_path_GREP_found=false
11455  # Loop through the user's path and test for each of PROGNAME-LIST
11456  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11457for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11458do
11459  IFS=$as_save_IFS
11460  case $as_dir in #(((
11461    '') as_dir=./ ;;
11462    */) ;;
11463    *) as_dir=$as_dir/ ;;
11464  esac
11465    for ac_prog in grep ggrep
11466   do
11467    for ac_exec_ext in '' $ac_executable_extensions; do
11468      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
11469      as_fn_executable_p "$ac_path_GREP" || continue
11470# Check for GNU ac_path_GREP and select it if it is found.
11471  # Check for GNU $ac_path_GREP
11472case `"$ac_path_GREP" --version 2>&1` in
11473*GNU*)
11474  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11475*)
11476  ac_count=0
11477  printf %s 0123456789 >"conftest.in"
11478  while :
11479  do
11480    cat "conftest.in" "conftest.in" >"conftest.tmp"
11481    mv "conftest.tmp" "conftest.in"
11482    cp "conftest.in" "conftest.nl"
11483    printf "%s\n" 'GREP' >> "conftest.nl"
11484    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11485    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11486    as_fn_arith $ac_count + 1 && ac_count=$as_val
11487    if test $ac_count -gt ${ac_path_GREP_max-0}; then
11488      # Best one so far, save it but keep looking for a better one
11489      ac_cv_path_GREP="$ac_path_GREP"
11490      ac_path_GREP_max=$ac_count
11491    fi
11492    # 10*(2^10) chars as input seems more than enough
11493    test $ac_count -gt 10 && break
11494  done
11495  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11496esac
11497
11498      $ac_path_GREP_found && break 3
11499    done
11500  done
11501  done
11502IFS=$as_save_IFS
11503  if test -z "$ac_cv_path_GREP"; then
11504    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11505  fi
11506else
11507  ac_cv_path_GREP=$GREP
11508fi
11509
11510fi
11511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11512printf "%s\n" "$ac_cv_path_GREP" >&6; }
11513 GREP="$ac_cv_path_GREP"
11514
11515
11516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11517printf %s "checking for egrep... " >&6; }
11518if test ${ac_cv_path_EGREP+y}
11519then :
11520  printf %s "(cached) " >&6
11521else $as_nop
11522  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11523   then ac_cv_path_EGREP="$GREP -E"
11524   else
11525     if test -z "$EGREP"; then
11526  ac_path_EGREP_found=false
11527  # Loop through the user's path and test for each of PROGNAME-LIST
11528  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11529for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11530do
11531  IFS=$as_save_IFS
11532  case $as_dir in #(((
11533    '') as_dir=./ ;;
11534    */) ;;
11535    *) as_dir=$as_dir/ ;;
11536  esac
11537    for ac_prog in egrep
11538   do
11539    for ac_exec_ext in '' $ac_executable_extensions; do
11540      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
11541      as_fn_executable_p "$ac_path_EGREP" || continue
11542# Check for GNU ac_path_EGREP and select it if it is found.
11543  # Check for GNU $ac_path_EGREP
11544case `"$ac_path_EGREP" --version 2>&1` in
11545*GNU*)
11546  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11547*)
11548  ac_count=0
11549  printf %s 0123456789 >"conftest.in"
11550  while :
11551  do
11552    cat "conftest.in" "conftest.in" >"conftest.tmp"
11553    mv "conftest.tmp" "conftest.in"
11554    cp "conftest.in" "conftest.nl"
11555    printf "%s\n" 'EGREP' >> "conftest.nl"
11556    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11557    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11558    as_fn_arith $ac_count + 1 && ac_count=$as_val
11559    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11560      # Best one so far, save it but keep looking for a better one
11561      ac_cv_path_EGREP="$ac_path_EGREP"
11562      ac_path_EGREP_max=$ac_count
11563    fi
11564    # 10*(2^10) chars as input seems more than enough
11565    test $ac_count -gt 10 && break
11566  done
11567  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11568esac
11569
11570      $ac_path_EGREP_found && break 3
11571    done
11572  done
11573  done
11574IFS=$as_save_IFS
11575  if test -z "$ac_cv_path_EGREP"; then
11576    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11577  fi
11578else
11579  ac_cv_path_EGREP=$EGREP
11580fi
11581
11582   fi
11583fi
11584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11585printf "%s\n" "$ac_cv_path_EGREP" >&6; }
11586 EGREP="$ac_cv_path_EGREP"
11587
11588
11589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11590printf %s "checking for fgrep... " >&6; }
11591if test ${ac_cv_path_FGREP+y}
11592then :
11593  printf %s "(cached) " >&6
11594else $as_nop
11595  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11596   then ac_cv_path_FGREP="$GREP -F"
11597   else
11598     if test -z "$FGREP"; then
11599  ac_path_FGREP_found=false
11600  # Loop through the user's path and test for each of PROGNAME-LIST
11601  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11602for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11603do
11604  IFS=$as_save_IFS
11605  case $as_dir in #(((
11606    '') as_dir=./ ;;
11607    */) ;;
11608    *) as_dir=$as_dir/ ;;
11609  esac
11610    for ac_prog in fgrep
11611   do
11612    for ac_exec_ext in '' $ac_executable_extensions; do
11613      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
11614      as_fn_executable_p "$ac_path_FGREP" || continue
11615# Check for GNU ac_path_FGREP and select it if it is found.
11616  # Check for GNU $ac_path_FGREP
11617case `"$ac_path_FGREP" --version 2>&1` in
11618*GNU*)
11619  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11620*)
11621  ac_count=0
11622  printf %s 0123456789 >"conftest.in"
11623  while :
11624  do
11625    cat "conftest.in" "conftest.in" >"conftest.tmp"
11626    mv "conftest.tmp" "conftest.in"
11627    cp "conftest.in" "conftest.nl"
11628    printf "%s\n" 'FGREP' >> "conftest.nl"
11629    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11630    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11631    as_fn_arith $ac_count + 1 && ac_count=$as_val
11632    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11633      # Best one so far, save it but keep looking for a better one
11634      ac_cv_path_FGREP="$ac_path_FGREP"
11635      ac_path_FGREP_max=$ac_count
11636    fi
11637    # 10*(2^10) chars as input seems more than enough
11638    test $ac_count -gt 10 && break
11639  done
11640  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11641esac
11642
11643      $ac_path_FGREP_found && break 3
11644    done
11645  done
11646  done
11647IFS=$as_save_IFS
11648  if test -z "$ac_cv_path_FGREP"; then
11649    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11650  fi
11651else
11652  ac_cv_path_FGREP=$FGREP
11653fi
11654
11655   fi
11656fi
11657{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11658printf "%s\n" "$ac_cv_path_FGREP" >&6; }
11659 FGREP="$ac_cv_path_FGREP"
11660
11661
11662test -z "$GREP" && GREP=grep
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682# Check whether --with-gnu-ld was given.
11683if test ${with_gnu_ld+y}
11684then :
11685  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11686else $as_nop
11687  with_gnu_ld=no
11688fi
11689
11690ac_prog=ld
11691if test yes = "$GCC"; then
11692  # Check if gcc -print-prog-name=ld gives a path.
11693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11694printf %s "checking for ld used by $CC... " >&6; }
11695  case $host in
11696  *-*-mingw*)
11697    # gcc leaves a trailing carriage return, which upsets mingw
11698    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11699  *)
11700    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11701  esac
11702  case $ac_prog in
11703    # Accept absolute paths.
11704    [\\/]* | ?:[\\/]*)
11705      re_direlt='/[^/][^/]*/\.\./'
11706      # Canonicalize the pathname of ld
11707      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11708      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11709	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11710      done
11711      test -z "$LD" && LD=$ac_prog
11712      ;;
11713  "")
11714    # If it fails, then pretend we aren't using GCC.
11715    ac_prog=ld
11716    ;;
11717  *)
11718    # If it is relative, then search for the first ld in PATH.
11719    with_gnu_ld=unknown
11720    ;;
11721  esac
11722elif test yes = "$with_gnu_ld"; then
11723  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11724printf %s "checking for GNU ld... " >&6; }
11725else
11726  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11727printf %s "checking for non-GNU ld... " >&6; }
11728fi
11729if test ${lt_cv_path_LD+y}
11730then :
11731  printf %s "(cached) " >&6
11732else $as_nop
11733  if test -z "$LD"; then
11734  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11735  for ac_dir in $PATH; do
11736    IFS=$lt_save_ifs
11737    test -z "$ac_dir" && ac_dir=.
11738    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11739      lt_cv_path_LD=$ac_dir/$ac_prog
11740      # Check to see if the program is GNU ld.  I'd rather use --version,
11741      # but apparently some variants of GNU ld only accept -v.
11742      # Break only if it was the GNU/non-GNU ld that we prefer.
11743      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11744      *GNU* | *'with BFD'*)
11745	test no != "$with_gnu_ld" && break
11746	;;
11747      *)
11748	test yes != "$with_gnu_ld" && break
11749	;;
11750      esac
11751    fi
11752  done
11753  IFS=$lt_save_ifs
11754else
11755  lt_cv_path_LD=$LD # Let the user override the test with a path.
11756fi
11757fi
11758
11759LD=$lt_cv_path_LD
11760if test -n "$LD"; then
11761  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11762printf "%s\n" "$LD" >&6; }
11763else
11764  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765printf "%s\n" "no" >&6; }
11766fi
11767test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11769printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
11770if test ${lt_cv_prog_gnu_ld+y}
11771then :
11772  printf %s "(cached) " >&6
11773else $as_nop
11774  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11775case `$LD -v 2>&1 </dev/null` in
11776*GNU* | *'with BFD'*)
11777  lt_cv_prog_gnu_ld=yes
11778  ;;
11779*)
11780  lt_cv_prog_gnu_ld=no
11781  ;;
11782esac
11783fi
11784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11785printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
11786with_gnu_ld=$lt_cv_prog_gnu_ld
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11797printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11798if test ${lt_cv_path_NM+y}
11799then :
11800  printf %s "(cached) " >&6
11801else $as_nop
11802  if test -n "$NM"; then
11803  # Let the user override the test.
11804  lt_cv_path_NM=$NM
11805else
11806  lt_nm_to_check=${ac_tool_prefix}nm
11807  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11808    lt_nm_to_check="$lt_nm_to_check nm"
11809  fi
11810  for lt_tmp_nm in $lt_nm_to_check; do
11811    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11812    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11813      IFS=$lt_save_ifs
11814      test -z "$ac_dir" && ac_dir=.
11815      tmp_nm=$ac_dir/$lt_tmp_nm
11816      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11817	# Check to see if the nm accepts a BSD-compat flag.
11818	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11819	#   nm: unknown option "B" ignored
11820	# Tru64's nm complains that /dev/null is an invalid object file
11821	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11822	case $build_os in
11823	mingw*) lt_bad_file=conftest.nm/nofile ;;
11824	*) lt_bad_file=/dev/null ;;
11825	esac
11826	case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
11827	*$lt_bad_file* | *'Invalid file or object type'*)
11828	  lt_cv_path_NM="$tmp_nm -B"
11829	  break 2
11830	  ;;
11831	*)
11832	  case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
11833	  */dev/null*)
11834	    lt_cv_path_NM="$tmp_nm -p"
11835	    break 2
11836	    ;;
11837	  *)
11838	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11839	    continue # so that we can try to find one that supports BSD flags
11840	    ;;
11841	  esac
11842	  ;;
11843	esac
11844      fi
11845    done
11846    IFS=$lt_save_ifs
11847  done
11848  : ${lt_cv_path_NM=no}
11849fi
11850fi
11851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11852printf "%s\n" "$lt_cv_path_NM" >&6; }
11853if test no != "$lt_cv_path_NM"; then
11854  NM=$lt_cv_path_NM
11855else
11856  # Didn't find any BSD compatible name lister, look for dumpbin.
11857  if test -n "$DUMPBIN"; then :
11858    # Let the user override the test.
11859  else
11860    if test -n "$ac_tool_prefix"; then
11861  for ac_prog in dumpbin "link -dump"
11862  do
11863    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11864set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11866printf %s "checking for $ac_word... " >&6; }
11867if test ${ac_cv_prog_DUMPBIN+y}
11868then :
11869  printf %s "(cached) " >&6
11870else $as_nop
11871  if test -n "$DUMPBIN"; then
11872  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11873else
11874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875for as_dir in $PATH
11876do
11877  IFS=$as_save_IFS
11878  case $as_dir in #(((
11879    '') as_dir=./ ;;
11880    */) ;;
11881    *) as_dir=$as_dir/ ;;
11882  esac
11883    for ac_exec_ext in '' $ac_executable_extensions; do
11884  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11885    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11886    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11887    break 2
11888  fi
11889done
11890  done
11891IFS=$as_save_IFS
11892
11893fi
11894fi
11895DUMPBIN=$ac_cv_prog_DUMPBIN
11896if test -n "$DUMPBIN"; then
11897  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11898printf "%s\n" "$DUMPBIN" >&6; }
11899else
11900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11901printf "%s\n" "no" >&6; }
11902fi
11903
11904
11905    test -n "$DUMPBIN" && break
11906  done
11907fi
11908if test -z "$DUMPBIN"; then
11909  ac_ct_DUMPBIN=$DUMPBIN
11910  for ac_prog in dumpbin "link -dump"
11911do
11912  # Extract the first word of "$ac_prog", so it can be a program name with args.
11913set dummy $ac_prog; ac_word=$2
11914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11915printf %s "checking for $ac_word... " >&6; }
11916if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
11917then :
11918  printf %s "(cached) " >&6
11919else $as_nop
11920  if test -n "$ac_ct_DUMPBIN"; then
11921  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11922else
11923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11924for as_dir in $PATH
11925do
11926  IFS=$as_save_IFS
11927  case $as_dir in #(((
11928    '') as_dir=./ ;;
11929    */) ;;
11930    *) as_dir=$as_dir/ ;;
11931  esac
11932    for ac_exec_ext in '' $ac_executable_extensions; do
11933  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11934    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11935    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11936    break 2
11937  fi
11938done
11939  done
11940IFS=$as_save_IFS
11941
11942fi
11943fi
11944ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11945if test -n "$ac_ct_DUMPBIN"; then
11946  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11947printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
11948else
11949  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11950printf "%s\n" "no" >&6; }
11951fi
11952
11953
11954  test -n "$ac_ct_DUMPBIN" && break
11955done
11956
11957  if test "x$ac_ct_DUMPBIN" = x; then
11958    DUMPBIN=":"
11959  else
11960    case $cross_compiling:$ac_tool_warned in
11961yes:)
11962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11963printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11964ac_tool_warned=yes ;;
11965esac
11966    DUMPBIN=$ac_ct_DUMPBIN
11967  fi
11968fi
11969
11970    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
11971    *COFF*)
11972      DUMPBIN="$DUMPBIN -symbols -headers"
11973      ;;
11974    *)
11975      DUMPBIN=:
11976      ;;
11977    esac
11978  fi
11979
11980  if test : != "$DUMPBIN"; then
11981    NM=$DUMPBIN
11982  fi
11983fi
11984test -z "$NM" && NM=nm
11985
11986
11987
11988
11989
11990
11991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11992printf %s "checking the name lister ($NM) interface... " >&6; }
11993if test ${lt_cv_nm_interface+y}
11994then :
11995  printf %s "(cached) " >&6
11996else $as_nop
11997  lt_cv_nm_interface="BSD nm"
11998  echo "int some_variable = 0;" > conftest.$ac_ext
11999  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12000  (eval "$ac_compile" 2>conftest.err)
12001  cat conftest.err >&5
12002  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12003  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12004  cat conftest.err >&5
12005  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12006  cat conftest.out >&5
12007  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12008    lt_cv_nm_interface="MS dumpbin"
12009  fi
12010  rm -f conftest*
12011fi
12012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12013printf "%s\n" "$lt_cv_nm_interface" >&6; }
12014
12015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12016printf %s "checking whether ln -s works... " >&6; }
12017LN_S=$as_ln_s
12018if test "$LN_S" = "ln -s"; then
12019  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12020printf "%s\n" "yes" >&6; }
12021else
12022  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12023printf "%s\n" "no, using $LN_S" >&6; }
12024fi
12025
12026# find the maximum length of command line arguments
12027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12028printf %s "checking the maximum length of command line arguments... " >&6; }
12029if test ${lt_cv_sys_max_cmd_len+y}
12030then :
12031  printf %s "(cached) " >&6
12032else $as_nop
12033    i=0
12034  teststring=ABCD
12035
12036  case $build_os in
12037  msdosdjgpp*)
12038    # On DJGPP, this test can blow up pretty badly due to problems in libc
12039    # (any single argument exceeding 2000 bytes causes a buffer overrun
12040    # during glob expansion).  Even if it were fixed, the result of this
12041    # check would be larger than it should be.
12042    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12043    ;;
12044
12045  gnu*)
12046    # Under GNU Hurd, this test is not required because there is
12047    # no limit to the length of command line arguments.
12048    # Libtool will interpret -1 as no limit whatsoever
12049    lt_cv_sys_max_cmd_len=-1;
12050    ;;
12051
12052  cygwin* | mingw* | cegcc*)
12053    # On Win9x/ME, this test blows up -- it succeeds, but takes
12054    # about 5 minutes as the teststring grows exponentially.
12055    # Worse, since 9x/ME are not pre-emptively multitasking,
12056    # you end up with a "frozen" computer, even though with patience
12057    # the test eventually succeeds (with a max line length of 256k).
12058    # Instead, let's just punt: use the minimum linelength reported by
12059    # all of the supported platforms: 8192 (on NT/2K/XP).
12060    lt_cv_sys_max_cmd_len=8192;
12061    ;;
12062
12063  mint*)
12064    # On MiNT this can take a long time and run out of memory.
12065    lt_cv_sys_max_cmd_len=8192;
12066    ;;
12067
12068  amigaos*)
12069    # On AmigaOS with pdksh, this test takes hours, literally.
12070    # So we just punt and use a minimum line length of 8192.
12071    lt_cv_sys_max_cmd_len=8192;
12072    ;;
12073
12074  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
12075    # This has been around since 386BSD, at least.  Likely further.
12076    if test -x /sbin/sysctl; then
12077      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12078    elif test -x /usr/sbin/sysctl; then
12079      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12080    else
12081      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
12082    fi
12083    # And add a safety zone
12084    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12085    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12086    ;;
12087
12088  interix*)
12089    # We know the value 262144 and hardcode it with a safety zone (like BSD)
12090    lt_cv_sys_max_cmd_len=196608
12091    ;;
12092
12093  os2*)
12094    # The test takes a long time on OS/2.
12095    lt_cv_sys_max_cmd_len=8192
12096    ;;
12097
12098  osf*)
12099    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12100    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12101    # nice to cause kernel panics so lets avoid the loop below.
12102    # First set a reasonable default.
12103    lt_cv_sys_max_cmd_len=16384
12104    #
12105    if test -x /sbin/sysconfig; then
12106      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12107        *1*) lt_cv_sys_max_cmd_len=-1 ;;
12108      esac
12109    fi
12110    ;;
12111  sco3.2v5*)
12112    lt_cv_sys_max_cmd_len=102400
12113    ;;
12114  sysv5* | sco5v6* | sysv4.2uw2*)
12115    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12116    if test -n "$kargmax"; then
12117      lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[	 ]//'`
12118    else
12119      lt_cv_sys_max_cmd_len=32768
12120    fi
12121    ;;
12122  *)
12123    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12124    if test -n "$lt_cv_sys_max_cmd_len" && \
12125       test undefined != "$lt_cv_sys_max_cmd_len"; then
12126      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12127      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12128    else
12129      # Make teststring a little bigger before we do anything with it.
12130      # a 1K string should be a reasonable start.
12131      for i in 1 2 3 4 5 6 7 8; do
12132        teststring=$teststring$teststring
12133      done
12134      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12135      # If test is not a shell built-in, we'll probably end up computing a
12136      # maximum length that is only half of the actual maximum length, but
12137      # we can't tell.
12138      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12139	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12140	      test 17 != "$i" # 1/2 MB should be enough
12141      do
12142        i=`expr $i + 1`
12143        teststring=$teststring$teststring
12144      done
12145      # Only check the string length outside the loop.
12146      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12147      teststring=
12148      # Add a significant safety factor because C++ compilers can tack on
12149      # massive amounts of additional arguments before passing them to the
12150      # linker.  It appears as though 1/2 is a usable value.
12151      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12152    fi
12153    ;;
12154  esac
12155
12156fi
12157
12158if test -n "$lt_cv_sys_max_cmd_len"; then
12159  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12160printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
12161else
12162  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
12163printf "%s\n" "none" >&6; }
12164fi
12165max_cmd_len=$lt_cv_sys_max_cmd_len
12166
12167
12168
12169
12170
12171
12172: ${CP="cp -f"}
12173: ${MV="mv -f"}
12174: ${RM="rm -f"}
12175
12176if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12177  lt_unset=unset
12178else
12179  lt_unset=false
12180fi
12181
12182
12183
12184
12185
12186# test EBCDIC or ASCII
12187case `echo X|tr X '\101'` in
12188 A) # ASCII based system
12189    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12190  lt_SP2NL='tr \040 \012'
12191  lt_NL2SP='tr \015\012 \040\040'
12192  ;;
12193 *) # EBCDIC based system
12194  lt_SP2NL='tr \100 \n'
12195  lt_NL2SP='tr \r\n \100\100'
12196  ;;
12197esac
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12208printf %s "checking how to convert $build file names to $host format... " >&6; }
12209if test ${lt_cv_to_host_file_cmd+y}
12210then :
12211  printf %s "(cached) " >&6
12212else $as_nop
12213  case $host in
12214  *-*-mingw* )
12215    case $build in
12216      *-*-mingw* ) # actually msys
12217        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12218        ;;
12219      *-*-cygwin* )
12220        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12221        ;;
12222      * ) # otherwise, assume *nix
12223        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12224        ;;
12225    esac
12226    ;;
12227  *-*-cygwin* )
12228    case $build in
12229      *-*-mingw* ) # actually msys
12230        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12231        ;;
12232      *-*-cygwin* )
12233        lt_cv_to_host_file_cmd=func_convert_file_noop
12234        ;;
12235      * ) # otherwise, assume *nix
12236        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12237        ;;
12238    esac
12239    ;;
12240  * ) # unhandled hosts (and "normal" native builds)
12241    lt_cv_to_host_file_cmd=func_convert_file_noop
12242    ;;
12243esac
12244
12245fi
12246
12247to_host_file_cmd=$lt_cv_to_host_file_cmd
12248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12249printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
12250
12251
12252
12253
12254
12255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12256printf %s "checking how to convert $build file names to toolchain format... " >&6; }
12257if test ${lt_cv_to_tool_file_cmd+y}
12258then :
12259  printf %s "(cached) " >&6
12260else $as_nop
12261  #assume ordinary cross tools, or native build.
12262lt_cv_to_tool_file_cmd=func_convert_file_noop
12263case $host in
12264  *-*-mingw* )
12265    case $build in
12266      *-*-mingw* ) # actually msys
12267        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12268        ;;
12269    esac
12270    ;;
12271esac
12272
12273fi
12274
12275to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12277printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
12278
12279
12280
12281
12282
12283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12284printf %s "checking for $LD option to reload object files... " >&6; }
12285if test ${lt_cv_ld_reload_flag+y}
12286then :
12287  printf %s "(cached) " >&6
12288else $as_nop
12289  lt_cv_ld_reload_flag='-r'
12290fi
12291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12292printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
12293reload_flag=$lt_cv_ld_reload_flag
12294case $reload_flag in
12295"" | " "*) ;;
12296*) reload_flag=" $reload_flag" ;;
12297esac
12298reload_cmds='$LD$reload_flag -o $output$reload_objs'
12299case $host_os in
12300  cygwin* | mingw* | pw32* | cegcc*)
12301    if test yes != "$GCC"; then
12302      reload_cmds=false
12303    fi
12304    ;;
12305  darwin*)
12306    if test yes = "$GCC"; then
12307      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12308    else
12309      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12310    fi
12311    ;;
12312esac
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322if test -n "$ac_tool_prefix"; then
12323  # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
12324set dummy ${ac_tool_prefix}file; ac_word=$2
12325{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12326printf %s "checking for $ac_word... " >&6; }
12327if test ${ac_cv_prog_FILECMD+y}
12328then :
12329  printf %s "(cached) " >&6
12330else $as_nop
12331  if test -n "$FILECMD"; then
12332  ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
12333else
12334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12335for as_dir in $PATH
12336do
12337  IFS=$as_save_IFS
12338  case $as_dir in #(((
12339    '') as_dir=./ ;;
12340    */) ;;
12341    *) as_dir=$as_dir/ ;;
12342  esac
12343    for ac_exec_ext in '' $ac_executable_extensions; do
12344  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12345    ac_cv_prog_FILECMD="${ac_tool_prefix}file"
12346    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12347    break 2
12348  fi
12349done
12350  done
12351IFS=$as_save_IFS
12352
12353fi
12354fi
12355FILECMD=$ac_cv_prog_FILECMD
12356if test -n "$FILECMD"; then
12357  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
12358printf "%s\n" "$FILECMD" >&6; }
12359else
12360  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361printf "%s\n" "no" >&6; }
12362fi
12363
12364
12365fi
12366if test -z "$ac_cv_prog_FILECMD"; then
12367  ac_ct_FILECMD=$FILECMD
12368  # Extract the first word of "file", so it can be a program name with args.
12369set dummy file; ac_word=$2
12370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12371printf %s "checking for $ac_word... " >&6; }
12372if test ${ac_cv_prog_ac_ct_FILECMD+y}
12373then :
12374  printf %s "(cached) " >&6
12375else $as_nop
12376  if test -n "$ac_ct_FILECMD"; then
12377  ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
12378else
12379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12380for as_dir in $PATH
12381do
12382  IFS=$as_save_IFS
12383  case $as_dir in #(((
12384    '') as_dir=./ ;;
12385    */) ;;
12386    *) as_dir=$as_dir/ ;;
12387  esac
12388    for ac_exec_ext in '' $ac_executable_extensions; do
12389  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12390    ac_cv_prog_ac_ct_FILECMD="file"
12391    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12392    break 2
12393  fi
12394done
12395  done
12396IFS=$as_save_IFS
12397
12398fi
12399fi
12400ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
12401if test -n "$ac_ct_FILECMD"; then
12402  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
12403printf "%s\n" "$ac_ct_FILECMD" >&6; }
12404else
12405  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12406printf "%s\n" "no" >&6; }
12407fi
12408
12409  if test "x$ac_ct_FILECMD" = x; then
12410    FILECMD=":"
12411  else
12412    case $cross_compiling:$ac_tool_warned in
12413yes:)
12414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12415printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12416ac_tool_warned=yes ;;
12417esac
12418    FILECMD=$ac_ct_FILECMD
12419  fi
12420else
12421  FILECMD="$ac_cv_prog_FILECMD"
12422fi
12423
12424
12425
12426
12427
12428
12429
12430if test -n "$ac_tool_prefix"; then
12431  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12432set dummy ${ac_tool_prefix}objdump; ac_word=$2
12433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12434printf %s "checking for $ac_word... " >&6; }
12435if test ${ac_cv_prog_OBJDUMP+y}
12436then :
12437  printf %s "(cached) " >&6
12438else $as_nop
12439  if test -n "$OBJDUMP"; then
12440  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12441else
12442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12443for as_dir in $PATH
12444do
12445  IFS=$as_save_IFS
12446  case $as_dir in #(((
12447    '') as_dir=./ ;;
12448    */) ;;
12449    *) as_dir=$as_dir/ ;;
12450  esac
12451    for ac_exec_ext in '' $ac_executable_extensions; do
12452  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12453    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12454    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12455    break 2
12456  fi
12457done
12458  done
12459IFS=$as_save_IFS
12460
12461fi
12462fi
12463OBJDUMP=$ac_cv_prog_OBJDUMP
12464if test -n "$OBJDUMP"; then
12465  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12466printf "%s\n" "$OBJDUMP" >&6; }
12467else
12468  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12469printf "%s\n" "no" >&6; }
12470fi
12471
12472
12473fi
12474if test -z "$ac_cv_prog_OBJDUMP"; then
12475  ac_ct_OBJDUMP=$OBJDUMP
12476  # Extract the first word of "objdump", so it can be a program name with args.
12477set dummy objdump; ac_word=$2
12478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12479printf %s "checking for $ac_word... " >&6; }
12480if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12481then :
12482  printf %s "(cached) " >&6
12483else $as_nop
12484  if test -n "$ac_ct_OBJDUMP"; then
12485  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12486else
12487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12488for as_dir in $PATH
12489do
12490  IFS=$as_save_IFS
12491  case $as_dir in #(((
12492    '') as_dir=./ ;;
12493    */) ;;
12494    *) as_dir=$as_dir/ ;;
12495  esac
12496    for ac_exec_ext in '' $ac_executable_extensions; do
12497  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12498    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12499    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12500    break 2
12501  fi
12502done
12503  done
12504IFS=$as_save_IFS
12505
12506fi
12507fi
12508ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12509if test -n "$ac_ct_OBJDUMP"; then
12510  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12511printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12512else
12513  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12514printf "%s\n" "no" >&6; }
12515fi
12516
12517  if test "x$ac_ct_OBJDUMP" = x; then
12518    OBJDUMP="false"
12519  else
12520    case $cross_compiling:$ac_tool_warned in
12521yes:)
12522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12523printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12524ac_tool_warned=yes ;;
12525esac
12526    OBJDUMP=$ac_ct_OBJDUMP
12527  fi
12528else
12529  OBJDUMP="$ac_cv_prog_OBJDUMP"
12530fi
12531
12532test -z "$OBJDUMP" && OBJDUMP=objdump
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12543printf %s "checking how to recognize dependent libraries... " >&6; }
12544if test ${lt_cv_deplibs_check_method+y}
12545then :
12546  printf %s "(cached) " >&6
12547else $as_nop
12548  lt_cv_file_magic_cmd='$MAGIC_CMD'
12549lt_cv_file_magic_test_file=
12550lt_cv_deplibs_check_method='unknown'
12551# Need to set the preceding variable on all platforms that support
12552# interlibrary dependencies.
12553# 'none' -- dependencies not supported.
12554# 'unknown' -- same as none, but documents that we really don't know.
12555# 'pass_all' -- all dependencies passed with no checks.
12556# 'test_compile' -- check by making test program.
12557# 'file_magic [[regex]]' -- check by looking for files in library path
12558# that responds to the $file_magic_cmd with a given extended regex.
12559# If you have 'file' or equivalent on your system and you're not sure
12560# whether 'pass_all' will *always* work, you probably want this one.
12561
12562case $host_os in
12563aix[4-9]*)
12564  lt_cv_deplibs_check_method=pass_all
12565  ;;
12566
12567beos*)
12568  lt_cv_deplibs_check_method=pass_all
12569  ;;
12570
12571bsdi[45]*)
12572  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12573  lt_cv_file_magic_cmd='$FILECMD -L'
12574  lt_cv_file_magic_test_file=/shlib/libc.so
12575  ;;
12576
12577cygwin*)
12578  # func_win32_libid is a shell function defined in ltmain.sh
12579  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12580  lt_cv_file_magic_cmd='func_win32_libid'
12581  ;;
12582
12583mingw* | pw32*)
12584  # Base MSYS/MinGW do not provide the 'file' command needed by
12585  # func_win32_libid shell function, so use a weaker test based on 'objdump',
12586  # unless we find 'file', for example because we are cross-compiling.
12587  if ( file / ) >/dev/null 2>&1; then
12588    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12589    lt_cv_file_magic_cmd='func_win32_libid'
12590  else
12591    # Keep this pattern in sync with the one in func_win32_libid.
12592    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12593    lt_cv_file_magic_cmd='$OBJDUMP -f'
12594  fi
12595  ;;
12596
12597cegcc*)
12598  # use the weaker test based on 'objdump'. See mingw*.
12599  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12600  lt_cv_file_magic_cmd='$OBJDUMP -f'
12601  ;;
12602
12603darwin* | rhapsody*)
12604  lt_cv_deplibs_check_method=pass_all
12605  ;;
12606
12607freebsd* | dragonfly* | midnightbsd*)
12608  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12609    case $host_cpu in
12610    i*86 )
12611      # Not sure whether the presence of OpenBSD here was a mistake.
12612      # Let's accept both of them until this is cleared up.
12613      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12614      lt_cv_file_magic_cmd=$FILECMD
12615      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12616      ;;
12617    esac
12618  else
12619    lt_cv_deplibs_check_method=pass_all
12620  fi
12621  ;;
12622
12623haiku*)
12624  lt_cv_deplibs_check_method=pass_all
12625  ;;
12626
12627hpux10.20* | hpux11*)
12628  lt_cv_file_magic_cmd=$FILECMD
12629  case $host_cpu in
12630  ia64*)
12631    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12632    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12633    ;;
12634  hppa*64*)
12635    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]'
12636    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12637    ;;
12638  *)
12639    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12640    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12641    ;;
12642  esac
12643  ;;
12644
12645interix[3-9]*)
12646  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12647  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12648  ;;
12649
12650irix5* | irix6* | nonstopux*)
12651  case $LD in
12652  *-32|*"-32 ") libmagic=32-bit;;
12653  *-n32|*"-n32 ") libmagic=N32;;
12654  *-64|*"-64 ") libmagic=64-bit;;
12655  *) libmagic=never-match;;
12656  esac
12657  lt_cv_deplibs_check_method=pass_all
12658  ;;
12659
12660# This must be glibc/ELF.
12661linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12662  lt_cv_deplibs_check_method=pass_all
12663  ;;
12664
12665netbsd*)
12666  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12667    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12668  else
12669    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12670  fi
12671  ;;
12672
12673newos6*)
12674  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12675  lt_cv_file_magic_cmd=$FILECMD
12676  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12677  ;;
12678
12679*nto* | *qnx*)
12680  lt_cv_deplibs_check_method=pass_all
12681  ;;
12682
12683openbsd* | bitrig*)
12684  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12685    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12686  else
12687    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12688  fi
12689  ;;
12690
12691osf3* | osf4* | osf5*)
12692  lt_cv_deplibs_check_method=pass_all
12693  ;;
12694
12695rdos*)
12696  lt_cv_deplibs_check_method=pass_all
12697  ;;
12698
12699solaris*)
12700  lt_cv_deplibs_check_method=pass_all
12701  ;;
12702
12703sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12704  lt_cv_deplibs_check_method=pass_all
12705  ;;
12706
12707sysv4 | sysv4.3*)
12708  case $host_vendor in
12709  motorola)
12710    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]'
12711    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12712    ;;
12713  ncr)
12714    lt_cv_deplibs_check_method=pass_all
12715    ;;
12716  sequent)
12717    lt_cv_file_magic_cmd='/bin/file'
12718    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12719    ;;
12720  sni)
12721    lt_cv_file_magic_cmd='/bin/file'
12722    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12723    lt_cv_file_magic_test_file=/lib/libc.so
12724    ;;
12725  siemens)
12726    lt_cv_deplibs_check_method=pass_all
12727    ;;
12728  pc)
12729    lt_cv_deplibs_check_method=pass_all
12730    ;;
12731  esac
12732  ;;
12733
12734tpf*)
12735  lt_cv_deplibs_check_method=pass_all
12736  ;;
12737os2*)
12738  lt_cv_deplibs_check_method=pass_all
12739  ;;
12740esac
12741
12742fi
12743{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12744printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
12745
12746file_magic_glob=
12747want_nocaseglob=no
12748if test "$build" = "$host"; then
12749  case $host_os in
12750  mingw* | pw32*)
12751    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12752      want_nocaseglob=yes
12753    else
12754      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12755    fi
12756    ;;
12757  esac
12758fi
12759
12760file_magic_cmd=$lt_cv_file_magic_cmd
12761deplibs_check_method=$lt_cv_deplibs_check_method
12762test -z "$deplibs_check_method" && deplibs_check_method=unknown
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785if test -n "$ac_tool_prefix"; then
12786  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12787set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12789printf %s "checking for $ac_word... " >&6; }
12790if test ${ac_cv_prog_DLLTOOL+y}
12791then :
12792  printf %s "(cached) " >&6
12793else $as_nop
12794  if test -n "$DLLTOOL"; then
12795  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12796else
12797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12798for as_dir in $PATH
12799do
12800  IFS=$as_save_IFS
12801  case $as_dir in #(((
12802    '') as_dir=./ ;;
12803    */) ;;
12804    *) as_dir=$as_dir/ ;;
12805  esac
12806    for ac_exec_ext in '' $ac_executable_extensions; do
12807  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12808    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12809    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12810    break 2
12811  fi
12812done
12813  done
12814IFS=$as_save_IFS
12815
12816fi
12817fi
12818DLLTOOL=$ac_cv_prog_DLLTOOL
12819if test -n "$DLLTOOL"; then
12820  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12821printf "%s\n" "$DLLTOOL" >&6; }
12822else
12823  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12824printf "%s\n" "no" >&6; }
12825fi
12826
12827
12828fi
12829if test -z "$ac_cv_prog_DLLTOOL"; then
12830  ac_ct_DLLTOOL=$DLLTOOL
12831  # Extract the first word of "dlltool", so it can be a program name with args.
12832set dummy dlltool; ac_word=$2
12833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12834printf %s "checking for $ac_word... " >&6; }
12835if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
12836then :
12837  printf %s "(cached) " >&6
12838else $as_nop
12839  if test -n "$ac_ct_DLLTOOL"; then
12840  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12841else
12842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843for as_dir in $PATH
12844do
12845  IFS=$as_save_IFS
12846  case $as_dir in #(((
12847    '') as_dir=./ ;;
12848    */) ;;
12849    *) as_dir=$as_dir/ ;;
12850  esac
12851    for ac_exec_ext in '' $ac_executable_extensions; do
12852  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12853    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12854    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12855    break 2
12856  fi
12857done
12858  done
12859IFS=$as_save_IFS
12860
12861fi
12862fi
12863ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12864if test -n "$ac_ct_DLLTOOL"; then
12865  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12866printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
12867else
12868  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12869printf "%s\n" "no" >&6; }
12870fi
12871
12872  if test "x$ac_ct_DLLTOOL" = x; then
12873    DLLTOOL="false"
12874  else
12875    case $cross_compiling:$ac_tool_warned in
12876yes:)
12877{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12878printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12879ac_tool_warned=yes ;;
12880esac
12881    DLLTOOL=$ac_ct_DLLTOOL
12882  fi
12883else
12884  DLLTOOL="$ac_cv_prog_DLLTOOL"
12885fi
12886
12887test -z "$DLLTOOL" && DLLTOOL=dlltool
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12899printf %s "checking how to associate runtime and link libraries... " >&6; }
12900if test ${lt_cv_sharedlib_from_linklib_cmd+y}
12901then :
12902  printf %s "(cached) " >&6
12903else $as_nop
12904  lt_cv_sharedlib_from_linklib_cmd='unknown'
12905
12906case $host_os in
12907cygwin* | mingw* | pw32* | cegcc*)
12908  # two different shell functions defined in ltmain.sh;
12909  # decide which one to use based on capabilities of $DLLTOOL
12910  case `$DLLTOOL --help 2>&1` in
12911  *--identify-strict*)
12912    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12913    ;;
12914  *)
12915    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12916    ;;
12917  esac
12918  ;;
12919*)
12920  # fallback: assume linklib IS sharedlib
12921  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12922  ;;
12923esac
12924
12925fi
12926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12927printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12928sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12929test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12930
12931
12932
12933
12934
12935
12936
12937if test -n "$ac_tool_prefix"; then
12938  for ac_prog in ar
12939  do
12940    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12941set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12942{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12943printf %s "checking for $ac_word... " >&6; }
12944if test ${ac_cv_prog_AR+y}
12945then :
12946  printf %s "(cached) " >&6
12947else $as_nop
12948  if test -n "$AR"; then
12949  ac_cv_prog_AR="$AR" # Let the user override the test.
12950else
12951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12952for as_dir in $PATH
12953do
12954  IFS=$as_save_IFS
12955  case $as_dir in #(((
12956    '') as_dir=./ ;;
12957    */) ;;
12958    *) as_dir=$as_dir/ ;;
12959  esac
12960    for ac_exec_ext in '' $ac_executable_extensions; do
12961  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12962    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12963    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12964    break 2
12965  fi
12966done
12967  done
12968IFS=$as_save_IFS
12969
12970fi
12971fi
12972AR=$ac_cv_prog_AR
12973if test -n "$AR"; then
12974  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12975printf "%s\n" "$AR" >&6; }
12976else
12977  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12978printf "%s\n" "no" >&6; }
12979fi
12980
12981
12982    test -n "$AR" && break
12983  done
12984fi
12985if test -z "$AR"; then
12986  ac_ct_AR=$AR
12987  for ac_prog in ar
12988do
12989  # Extract the first word of "$ac_prog", so it can be a program name with args.
12990set dummy $ac_prog; ac_word=$2
12991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12992printf %s "checking for $ac_word... " >&6; }
12993if test ${ac_cv_prog_ac_ct_AR+y}
12994then :
12995  printf %s "(cached) " >&6
12996else $as_nop
12997  if test -n "$ac_ct_AR"; then
12998  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12999else
13000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13001for as_dir in $PATH
13002do
13003  IFS=$as_save_IFS
13004  case $as_dir in #(((
13005    '') as_dir=./ ;;
13006    */) ;;
13007    *) as_dir=$as_dir/ ;;
13008  esac
13009    for ac_exec_ext in '' $ac_executable_extensions; do
13010  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13011    ac_cv_prog_ac_ct_AR="$ac_prog"
13012    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13013    break 2
13014  fi
13015done
13016  done
13017IFS=$as_save_IFS
13018
13019fi
13020fi
13021ac_ct_AR=$ac_cv_prog_ac_ct_AR
13022if test -n "$ac_ct_AR"; then
13023  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13024printf "%s\n" "$ac_ct_AR" >&6; }
13025else
13026  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13027printf "%s\n" "no" >&6; }
13028fi
13029
13030
13031  test -n "$ac_ct_AR" && break
13032done
13033
13034  if test "x$ac_ct_AR" = x; then
13035    AR="false"
13036  else
13037    case $cross_compiling:$ac_tool_warned in
13038yes:)
13039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13040printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13041ac_tool_warned=yes ;;
13042esac
13043    AR=$ac_ct_AR
13044  fi
13045fi
13046
13047: ${AR=ar}
13048
13049
13050
13051
13052
13053
13054# Use ARFLAGS variable as AR's operation code to sync the variable naming with
13055# Automake.  If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
13056# higher priority because thats what people were doing historically (setting
13057# ARFLAGS for automake and AR_FLAGS for libtool).  FIXME: Make the AR_FLAGS
13058# variable obsoleted/removed.
13059
13060test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
13061lt_ar_flags=$AR_FLAGS
13062
13063
13064
13065
13066
13067
13068# Make AR_FLAGS overridable by 'make ARFLAGS='.  Don't try to run-time override
13069# by AR_FLAGS because that was never working and AR_FLAGS is about to die.
13070
13071
13072
13073
13074
13075
13076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13077printf %s "checking for archiver @FILE support... " >&6; }
13078if test ${lt_cv_ar_at_file+y}
13079then :
13080  printf %s "(cached) " >&6
13081else $as_nop
13082  lt_cv_ar_at_file=no
13083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13084/* end confdefs.h.  */
13085
13086int
13087main (void)
13088{
13089
13090  ;
13091  return 0;
13092}
13093_ACEOF
13094if ac_fn_c_try_compile "$LINENO"
13095then :
13096  echo conftest.$ac_objext > conftest.lst
13097      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13098      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13099  (eval $lt_ar_try) 2>&5
13100  ac_status=$?
13101  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13102  test $ac_status = 0; }
13103      if test 0 -eq "$ac_status"; then
13104	# Ensure the archiver fails upon bogus file names.
13105	rm -f conftest.$ac_objext libconftest.a
13106	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13107  (eval $lt_ar_try) 2>&5
13108  ac_status=$?
13109  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13110  test $ac_status = 0; }
13111	if test 0 -ne "$ac_status"; then
13112          lt_cv_ar_at_file=@
13113        fi
13114      fi
13115      rm -f conftest.* libconftest.a
13116
13117fi
13118rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13119
13120fi
13121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13122printf "%s\n" "$lt_cv_ar_at_file" >&6; }
13123
13124if test no = "$lt_cv_ar_at_file"; then
13125  archiver_list_spec=
13126else
13127  archiver_list_spec=$lt_cv_ar_at_file
13128fi
13129
13130
13131
13132
13133
13134
13135
13136if test -n "$ac_tool_prefix"; then
13137  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13138set dummy ${ac_tool_prefix}strip; ac_word=$2
13139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13140printf %s "checking for $ac_word... " >&6; }
13141if test ${ac_cv_prog_STRIP+y}
13142then :
13143  printf %s "(cached) " >&6
13144else $as_nop
13145  if test -n "$STRIP"; then
13146  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13147else
13148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13149for as_dir in $PATH
13150do
13151  IFS=$as_save_IFS
13152  case $as_dir in #(((
13153    '') as_dir=./ ;;
13154    */) ;;
13155    *) as_dir=$as_dir/ ;;
13156  esac
13157    for ac_exec_ext in '' $ac_executable_extensions; do
13158  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13159    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13160    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13161    break 2
13162  fi
13163done
13164  done
13165IFS=$as_save_IFS
13166
13167fi
13168fi
13169STRIP=$ac_cv_prog_STRIP
13170if test -n "$STRIP"; then
13171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13172printf "%s\n" "$STRIP" >&6; }
13173else
13174  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13175printf "%s\n" "no" >&6; }
13176fi
13177
13178
13179fi
13180if test -z "$ac_cv_prog_STRIP"; then
13181  ac_ct_STRIP=$STRIP
13182  # Extract the first word of "strip", so it can be a program name with args.
13183set dummy strip; ac_word=$2
13184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13185printf %s "checking for $ac_word... " >&6; }
13186if test ${ac_cv_prog_ac_ct_STRIP+y}
13187then :
13188  printf %s "(cached) " >&6
13189else $as_nop
13190  if test -n "$ac_ct_STRIP"; then
13191  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13192else
13193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13194for as_dir in $PATH
13195do
13196  IFS=$as_save_IFS
13197  case $as_dir in #(((
13198    '') as_dir=./ ;;
13199    */) ;;
13200    *) as_dir=$as_dir/ ;;
13201  esac
13202    for ac_exec_ext in '' $ac_executable_extensions; do
13203  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13204    ac_cv_prog_ac_ct_STRIP="strip"
13205    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13206    break 2
13207  fi
13208done
13209  done
13210IFS=$as_save_IFS
13211
13212fi
13213fi
13214ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13215if test -n "$ac_ct_STRIP"; then
13216  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13217printf "%s\n" "$ac_ct_STRIP" >&6; }
13218else
13219  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13220printf "%s\n" "no" >&6; }
13221fi
13222
13223  if test "x$ac_ct_STRIP" = x; then
13224    STRIP=":"
13225  else
13226    case $cross_compiling:$ac_tool_warned in
13227yes:)
13228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13229printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13230ac_tool_warned=yes ;;
13231esac
13232    STRIP=$ac_ct_STRIP
13233  fi
13234else
13235  STRIP="$ac_cv_prog_STRIP"
13236fi
13237
13238test -z "$STRIP" && STRIP=:
13239
13240
13241
13242
13243
13244
13245if test -n "$ac_tool_prefix"; then
13246  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13247set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13249printf %s "checking for $ac_word... " >&6; }
13250if test ${ac_cv_prog_RANLIB+y}
13251then :
13252  printf %s "(cached) " >&6
13253else $as_nop
13254  if test -n "$RANLIB"; then
13255  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13256else
13257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13258for as_dir in $PATH
13259do
13260  IFS=$as_save_IFS
13261  case $as_dir in #(((
13262    '') as_dir=./ ;;
13263    */) ;;
13264    *) as_dir=$as_dir/ ;;
13265  esac
13266    for ac_exec_ext in '' $ac_executable_extensions; do
13267  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13268    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13269    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13270    break 2
13271  fi
13272done
13273  done
13274IFS=$as_save_IFS
13275
13276fi
13277fi
13278RANLIB=$ac_cv_prog_RANLIB
13279if test -n "$RANLIB"; then
13280  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13281printf "%s\n" "$RANLIB" >&6; }
13282else
13283  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13284printf "%s\n" "no" >&6; }
13285fi
13286
13287
13288fi
13289if test -z "$ac_cv_prog_RANLIB"; then
13290  ac_ct_RANLIB=$RANLIB
13291  # Extract the first word of "ranlib", so it can be a program name with args.
13292set dummy ranlib; ac_word=$2
13293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13294printf %s "checking for $ac_word... " >&6; }
13295if test ${ac_cv_prog_ac_ct_RANLIB+y}
13296then :
13297  printf %s "(cached) " >&6
13298else $as_nop
13299  if test -n "$ac_ct_RANLIB"; then
13300  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13301else
13302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13303for as_dir in $PATH
13304do
13305  IFS=$as_save_IFS
13306  case $as_dir in #(((
13307    '') as_dir=./ ;;
13308    */) ;;
13309    *) as_dir=$as_dir/ ;;
13310  esac
13311    for ac_exec_ext in '' $ac_executable_extensions; do
13312  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13313    ac_cv_prog_ac_ct_RANLIB="ranlib"
13314    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13315    break 2
13316  fi
13317done
13318  done
13319IFS=$as_save_IFS
13320
13321fi
13322fi
13323ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13324if test -n "$ac_ct_RANLIB"; then
13325  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13326printf "%s\n" "$ac_ct_RANLIB" >&6; }
13327else
13328  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13329printf "%s\n" "no" >&6; }
13330fi
13331
13332  if test "x$ac_ct_RANLIB" = x; then
13333    RANLIB=":"
13334  else
13335    case $cross_compiling:$ac_tool_warned in
13336yes:)
13337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13338printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13339ac_tool_warned=yes ;;
13340esac
13341    RANLIB=$ac_ct_RANLIB
13342  fi
13343else
13344  RANLIB="$ac_cv_prog_RANLIB"
13345fi
13346
13347test -z "$RANLIB" && RANLIB=:
13348
13349
13350
13351
13352
13353
13354# Determine commands to create old-style static archives.
13355old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13356old_postinstall_cmds='chmod 644 $oldlib'
13357old_postuninstall_cmds=
13358
13359if test -n "$RANLIB"; then
13360  case $host_os in
13361  bitrig* | openbsd*)
13362    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13363    ;;
13364  *)
13365    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13366    ;;
13367  esac
13368  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13369fi
13370
13371case $host_os in
13372  darwin*)
13373    lock_old_archive_extraction=yes ;;
13374  *)
13375    lock_old_archive_extraction=no ;;
13376esac
13377
13378
13379
13380
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# If no C compiler was specified, use CC.
13417LTCC=${LTCC-"$CC"}
13418
13419# If no C compiler flags were specified, use CFLAGS.
13420LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13421
13422# Allow CC to be a program name with arguments.
13423compiler=$CC
13424
13425
13426# Check for command to grab the raw symbol name followed by C symbol from nm.
13427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13428printf %s "checking command to parse $NM output from $compiler object... " >&6; }
13429if test ${lt_cv_sys_global_symbol_pipe+y}
13430then :
13431  printf %s "(cached) " >&6
13432else $as_nop
13433
13434# These are sane defaults that work on at least a few old systems.
13435# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13436
13437# Character class describing NM global symbol codes.
13438symcode='[BCDEGRST]'
13439
13440# Regexp to match symbols that can be accessed directly from C.
13441sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13442
13443# Define system-specific variables.
13444case $host_os in
13445aix*)
13446  symcode='[BCDT]'
13447  ;;
13448cygwin* | mingw* | pw32* | cegcc*)
13449  symcode='[ABCDGISTW]'
13450  ;;
13451hpux*)
13452  if test ia64 = "$host_cpu"; then
13453    symcode='[ABCDEGRST]'
13454  fi
13455  ;;
13456irix* | nonstopux*)
13457  symcode='[BCDEGRST]'
13458  ;;
13459osf*)
13460  symcode='[BCDEGQRST]'
13461  ;;
13462solaris*)
13463  symcode='[BDRT]'
13464  ;;
13465sco3.2v5*)
13466  symcode='[DT]'
13467  ;;
13468sysv4.2uw2*)
13469  symcode='[DT]'
13470  ;;
13471sysv5* | sco5v6* | unixware* | OpenUNIX*)
13472  symcode='[ABDT]'
13473  ;;
13474sysv4)
13475  symcode='[DFNSTU]'
13476  ;;
13477esac
13478
13479# If we're using GNU nm, then use its standard symbol codes.
13480case `$NM -V 2>&1` in
13481*GNU* | *'with BFD'*)
13482  symcode='[ABCDGIRSTW]' ;;
13483esac
13484
13485if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13486  # Gets list of data symbols to import.
13487  lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
13488  # Adjust the below global symbol transforms to fixup imported variables.
13489  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13490  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
13491  lt_c_name_lib_hook="\
13492  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
13493  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
13494else
13495  # Disable hooks by default.
13496  lt_cv_sys_global_symbol_to_import=
13497  lt_cdecl_hook=
13498  lt_c_name_hook=
13499  lt_c_name_lib_hook=
13500fi
13501
13502# Transform an extracted symbol line into a proper C declaration.
13503# Some systems (esp. on ia64) link data and code symbols differently,
13504# so use this general approach.
13505lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
13506$lt_cdecl_hook\
13507" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13508" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13509
13510# Transform an extracted symbol line into symbol name and symbol address
13511lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
13512$lt_c_name_hook\
13513" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13514" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
13515
13516# Transform an extracted symbol line into symbol name with lib prefix and
13517# symbol address.
13518lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
13519$lt_c_name_lib_hook\
13520" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13521" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
13522" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
13523
13524# Handle CRLF in mingw tool chain
13525opt_cr=
13526case $build_os in
13527mingw*)
13528  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13529  ;;
13530esac
13531
13532# Try without a prefix underscore, then with it.
13533for ac_symprfx in "" "_"; do
13534
13535  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13536  symxfrm="\\1 $ac_symprfx\\2 \\2"
13537
13538  # Write the raw and C identifiers.
13539  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13540    # Fake it for dumpbin and say T for any non-static function,
13541    # D for any global variable and I for any imported variable.
13542    # Also find C++ and __fastcall symbols from MSVC++ or ICC,
13543    # which start with @ or ?.
13544    lt_cv_sys_global_symbol_pipe="$AWK '"\
13545"     {last_section=section; section=\$ 3};"\
13546"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13547"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13548"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13549"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13550"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13551"     \$ 0!~/External *\|/{next};"\
13552"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13553"     {if(hide[section]) next};"\
13554"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13555"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13556"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13557"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13558"     ' prfx=^$ac_symprfx"
13559  else
13560    lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13561  fi
13562  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
13563
13564  # Check to see that the pipe works correctly.
13565  pipe_works=no
13566
13567  rm -f conftest*
13568  cat > conftest.$ac_ext <<_LT_EOF
13569#ifdef __cplusplus
13570extern "C" {
13571#endif
13572char nm_test_var;
13573void nm_test_func(void);
13574void nm_test_func(void){}
13575#ifdef __cplusplus
13576}
13577#endif
13578int main(){nm_test_var='a';nm_test_func();return(0);}
13579_LT_EOF
13580
13581  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13582  (eval $ac_compile) 2>&5
13583  ac_status=$?
13584  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13585  test $ac_status = 0; }; then
13586    # Now try to grab the symbols.
13587    nlist=conftest.nm
13588    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13589  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13590  ac_status=$?
13591  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13592  test $ac_status = 0; } && test -s "$nlist"; then
13593      # Try sorting and uniquifying the output.
13594      if sort "$nlist" | uniq > "$nlist"T; then
13595	mv -f "$nlist"T "$nlist"
13596      else
13597	rm -f "$nlist"T
13598      fi
13599
13600      # Make sure that we snagged all the symbols we need.
13601      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13602	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13603	  cat <<_LT_EOF > conftest.$ac_ext
13604/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
13605#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13606/* DATA imports from DLLs on WIN32 can't be const, because runtime
13607   relocations are performed -- see ld's documentation on pseudo-relocs.  */
13608# define LT_DLSYM_CONST
13609#elif defined __osf__
13610/* This system does not cope well with relocations in const data.  */
13611# define LT_DLSYM_CONST
13612#else
13613# define LT_DLSYM_CONST const
13614#endif
13615
13616#ifdef __cplusplus
13617extern "C" {
13618#endif
13619
13620_LT_EOF
13621	  # Now generate the symbol file.
13622	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13623
13624	  cat <<_LT_EOF >> conftest.$ac_ext
13625
13626/* The mapping between symbol names and symbols.  */
13627LT_DLSYM_CONST struct {
13628  const char *name;
13629  void       *address;
13630}
13631lt__PROGRAM__LTX_preloaded_symbols[] =
13632{
13633  { "@PROGRAM@", (void *) 0 },
13634_LT_EOF
13635	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13636	  cat <<\_LT_EOF >> conftest.$ac_ext
13637  {0, (void *) 0}
13638};
13639
13640/* This works around a problem in FreeBSD linker */
13641#ifdef FREEBSD_WORKAROUND
13642static const void *lt_preloaded_setup() {
13643  return lt__PROGRAM__LTX_preloaded_symbols;
13644}
13645#endif
13646
13647#ifdef __cplusplus
13648}
13649#endif
13650_LT_EOF
13651	  # Now try linking the two files.
13652	  mv conftest.$ac_objext conftstm.$ac_objext
13653	  lt_globsym_save_LIBS=$LIBS
13654	  lt_globsym_save_CFLAGS=$CFLAGS
13655	  LIBS=conftstm.$ac_objext
13656	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13657	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13658  (eval $ac_link) 2>&5
13659  ac_status=$?
13660  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13661  test $ac_status = 0; } && test -s conftest$ac_exeext; then
13662	    pipe_works=yes
13663	  fi
13664	  LIBS=$lt_globsym_save_LIBS
13665	  CFLAGS=$lt_globsym_save_CFLAGS
13666	else
13667	  echo "cannot find nm_test_func in $nlist" >&5
13668	fi
13669      else
13670	echo "cannot find nm_test_var in $nlist" >&5
13671      fi
13672    else
13673      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13674    fi
13675  else
13676    echo "$progname: failed program was:" >&5
13677    cat conftest.$ac_ext >&5
13678  fi
13679  rm -rf conftest* conftst*
13680
13681  # Do not use the global_symbol_pipe unless it works.
13682  if test yes = "$pipe_works"; then
13683    break
13684  else
13685    lt_cv_sys_global_symbol_pipe=
13686  fi
13687done
13688
13689fi
13690
13691if test -z "$lt_cv_sys_global_symbol_pipe"; then
13692  lt_cv_sys_global_symbol_to_cdecl=
13693fi
13694if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13696printf "%s\n" "failed" >&6; }
13697else
13698  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13699printf "%s\n" "ok" >&6; }
13700fi
13701
13702# Response file support.
13703if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13704  nm_file_list_spec='@'
13705elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13706  nm_file_list_spec='@'
13707fi
13708
13709
13710
13711
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{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13746printf %s "checking for sysroot... " >&6; }
13747
13748# Check whether --with-sysroot was given.
13749if test ${with_sysroot+y}
13750then :
13751  withval=$with_sysroot;
13752else $as_nop
13753  with_sysroot=no
13754fi
13755
13756
13757lt_sysroot=
13758case $with_sysroot in #(
13759 yes)
13760   if test yes = "$GCC"; then
13761     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13762   fi
13763   ;; #(
13764 /*)
13765   lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
13766   ;; #(
13767 no|'')
13768   ;; #(
13769 *)
13770   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13771printf "%s\n" "$with_sysroot" >&6; }
13772   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13773   ;;
13774esac
13775
13776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13777printf "%s\n" "${lt_sysroot:-no}" >&6; }
13778
13779
13780
13781
13782
13783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13784printf %s "checking for a working dd... " >&6; }
13785if test ${ac_cv_path_lt_DD+y}
13786then :
13787  printf %s "(cached) " >&6
13788else $as_nop
13789  printf 0123456789abcdef0123456789abcdef >conftest.i
13790cat conftest.i conftest.i >conftest2.i
13791: ${lt_DD:=$DD}
13792if test -z "$lt_DD"; then
13793  ac_path_lt_DD_found=false
13794  # Loop through the user's path and test for each of PROGNAME-LIST
13795  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13796for as_dir in $PATH
13797do
13798  IFS=$as_save_IFS
13799  case $as_dir in #(((
13800    '') as_dir=./ ;;
13801    */) ;;
13802    *) as_dir=$as_dir/ ;;
13803  esac
13804    for ac_prog in dd
13805   do
13806    for ac_exec_ext in '' $ac_executable_extensions; do
13807      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
13808      as_fn_executable_p "$ac_path_lt_DD" || continue
13809if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13810  cmp -s conftest.i conftest.out \
13811  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13812fi
13813      $ac_path_lt_DD_found && break 3
13814    done
13815  done
13816  done
13817IFS=$as_save_IFS
13818  if test -z "$ac_cv_path_lt_DD"; then
13819    :
13820  fi
13821else
13822  ac_cv_path_lt_DD=$lt_DD
13823fi
13824
13825rm -f conftest.i conftest2.i conftest.out
13826fi
13827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13828printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
13829
13830
13831{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13832printf %s "checking how to truncate binary pipes... " >&6; }
13833if test ${lt_cv_truncate_bin+y}
13834then :
13835  printf %s "(cached) " >&6
13836else $as_nop
13837  printf 0123456789abcdef0123456789abcdef >conftest.i
13838cat conftest.i conftest.i >conftest2.i
13839lt_cv_truncate_bin=
13840if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13841  cmp -s conftest.i conftest.out \
13842  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13843fi
13844rm -f conftest.i conftest2.i conftest.out
13845test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13846fi
13847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13848printf "%s\n" "$lt_cv_truncate_bin" >&6; }
13849
13850
13851
13852
13853
13854
13855
13856# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
13857func_cc_basename ()
13858{
13859    for cc_temp in $*""; do
13860      case $cc_temp in
13861        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13862        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13863        \-*) ;;
13864        *) break;;
13865      esac
13866    done
13867    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13868}
13869
13870# Check whether --enable-libtool-lock was given.
13871if test ${enable_libtool_lock+y}
13872then :
13873  enableval=$enable_libtool_lock;
13874fi
13875
13876test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13877
13878# Some flags need to be propagated to the compiler or linker for good
13879# libtool support.
13880case $host in
13881ia64-*-hpux*)
13882  # Find out what ABI is being produced by ac_compile, and set mode
13883  # options accordingly.
13884  echo 'int i;' > conftest.$ac_ext
13885  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13886  (eval $ac_compile) 2>&5
13887  ac_status=$?
13888  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13889  test $ac_status = 0; }; then
13890    case `$FILECMD conftest.$ac_objext` in
13891      *ELF-32*)
13892	HPUX_IA64_MODE=32
13893	;;
13894      *ELF-64*)
13895	HPUX_IA64_MODE=64
13896	;;
13897    esac
13898  fi
13899  rm -rf conftest*
13900  ;;
13901*-*-irix6*)
13902  # Find out what ABI is being produced by ac_compile, and set linker
13903  # options accordingly.
13904  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13905  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13906  (eval $ac_compile) 2>&5
13907  ac_status=$?
13908  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13909  test $ac_status = 0; }; then
13910    if test yes = "$lt_cv_prog_gnu_ld"; then
13911      case `$FILECMD conftest.$ac_objext` in
13912	*32-bit*)
13913	  LD="${LD-ld} -melf32bsmip"
13914	  ;;
13915	*N32*)
13916	  LD="${LD-ld} -melf32bmipn32"
13917	  ;;
13918	*64-bit*)
13919	  LD="${LD-ld} -melf64bmip"
13920	;;
13921      esac
13922    else
13923      case `$FILECMD conftest.$ac_objext` in
13924	*32-bit*)
13925	  LD="${LD-ld} -32"
13926	  ;;
13927	*N32*)
13928	  LD="${LD-ld} -n32"
13929	  ;;
13930	*64-bit*)
13931	  LD="${LD-ld} -64"
13932	  ;;
13933      esac
13934    fi
13935  fi
13936  rm -rf conftest*
13937  ;;
13938
13939mips64*-*linux*)
13940  # Find out what ABI is being produced by ac_compile, and set linker
13941  # options accordingly.
13942  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13943  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13944  (eval $ac_compile) 2>&5
13945  ac_status=$?
13946  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13947  test $ac_status = 0; }; then
13948    emul=elf
13949    case `$FILECMD conftest.$ac_objext` in
13950      *32-bit*)
13951	emul="${emul}32"
13952	;;
13953      *64-bit*)
13954	emul="${emul}64"
13955	;;
13956    esac
13957    case `$FILECMD conftest.$ac_objext` in
13958      *MSB*)
13959	emul="${emul}btsmip"
13960	;;
13961      *LSB*)
13962	emul="${emul}ltsmip"
13963	;;
13964    esac
13965    case `$FILECMD conftest.$ac_objext` in
13966      *N32*)
13967	emul="${emul}n32"
13968	;;
13969    esac
13970    LD="${LD-ld} -m $emul"
13971  fi
13972  rm -rf conftest*
13973  ;;
13974
13975x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13976s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13977  # Find out what ABI is being produced by ac_compile, and set linker
13978  # options accordingly.  Note that the listed cases only cover the
13979  # situations where additional linker options are needed (such as when
13980  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13981  # vice versa); the common cases where no linker options are needed do
13982  # not appear in the list.
13983  echo 'int i;' > conftest.$ac_ext
13984  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13985  (eval $ac_compile) 2>&5
13986  ac_status=$?
13987  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13988  test $ac_status = 0; }; then
13989    case `$FILECMD conftest.o` in
13990      *32-bit*)
13991	case $host in
13992	  x86_64-*kfreebsd*-gnu)
13993	    LD="${LD-ld} -m elf_i386_fbsd"
13994	    ;;
13995	  x86_64-*linux*)
13996	    case `$FILECMD conftest.o` in
13997	      *x86-64*)
13998		LD="${LD-ld} -m elf32_x86_64"
13999		;;
14000	      *)
14001		LD="${LD-ld} -m elf_i386"
14002		;;
14003	    esac
14004	    ;;
14005	  powerpc64le-*linux*)
14006	    LD="${LD-ld} -m elf32lppclinux"
14007	    ;;
14008	  powerpc64-*linux*)
14009	    LD="${LD-ld} -m elf32ppclinux"
14010	    ;;
14011	  s390x-*linux*)
14012	    LD="${LD-ld} -m elf_s390"
14013	    ;;
14014	  sparc64-*linux*)
14015	    LD="${LD-ld} -m elf32_sparc"
14016	    ;;
14017	esac
14018	;;
14019      *64-bit*)
14020	case $host in
14021	  x86_64-*kfreebsd*-gnu)
14022	    LD="${LD-ld} -m elf_x86_64_fbsd"
14023	    ;;
14024	  x86_64-*linux*)
14025	    LD="${LD-ld} -m elf_x86_64"
14026	    ;;
14027	  powerpcle-*linux*)
14028	    LD="${LD-ld} -m elf64lppc"
14029	    ;;
14030	  powerpc-*linux*)
14031	    LD="${LD-ld} -m elf64ppc"
14032	    ;;
14033	  s390*-*linux*|s390*-*tpf*)
14034	    LD="${LD-ld} -m elf64_s390"
14035	    ;;
14036	  sparc*-*linux*)
14037	    LD="${LD-ld} -m elf64_sparc"
14038	    ;;
14039	esac
14040	;;
14041    esac
14042  fi
14043  rm -rf conftest*
14044  ;;
14045
14046*-*-sco3.2v5*)
14047  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14048  SAVE_CFLAGS=$CFLAGS
14049  CFLAGS="$CFLAGS -belf"
14050  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14051printf %s "checking whether the C compiler needs -belf... " >&6; }
14052if test ${lt_cv_cc_needs_belf+y}
14053then :
14054  printf %s "(cached) " >&6
14055else $as_nop
14056  ac_ext=c
14057ac_cpp='$CPP $CPPFLAGS'
14058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14060ac_compiler_gnu=$ac_cv_c_compiler_gnu
14061
14062     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14063/* end confdefs.h.  */
14064
14065int
14066main (void)
14067{
14068
14069  ;
14070  return 0;
14071}
14072_ACEOF
14073if ac_fn_c_try_link "$LINENO"
14074then :
14075  lt_cv_cc_needs_belf=yes
14076else $as_nop
14077  lt_cv_cc_needs_belf=no
14078fi
14079rm -f core conftest.err conftest.$ac_objext conftest.beam \
14080    conftest$ac_exeext conftest.$ac_ext
14081     ac_ext=c
14082ac_cpp='$CPP $CPPFLAGS'
14083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14085ac_compiler_gnu=$ac_cv_c_compiler_gnu
14086
14087fi
14088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14089printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
14090  if test yes != "$lt_cv_cc_needs_belf"; then
14091    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14092    CFLAGS=$SAVE_CFLAGS
14093  fi
14094  ;;
14095*-*solaris*)
14096  # Find out what ABI is being produced by ac_compile, and set linker
14097  # options accordingly.
14098  echo 'int i;' > conftest.$ac_ext
14099  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14100  (eval $ac_compile) 2>&5
14101  ac_status=$?
14102  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14103  test $ac_status = 0; }; then
14104    case `$FILECMD conftest.o` in
14105    *64-bit*)
14106      case $lt_cv_prog_gnu_ld in
14107      yes*)
14108        case $host in
14109        i?86-*-solaris*|x86_64-*-solaris*)
14110          LD="${LD-ld} -m elf_x86_64"
14111          ;;
14112        sparc*-*-solaris*)
14113          LD="${LD-ld} -m elf64_sparc"
14114          ;;
14115        esac
14116        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
14117        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14118          LD=${LD-ld}_sol2
14119        fi
14120        ;;
14121      *)
14122	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14123	  LD="${LD-ld} -64"
14124	fi
14125	;;
14126      esac
14127      ;;
14128    esac
14129  fi
14130  rm -rf conftest*
14131  ;;
14132esac
14133
14134need_locks=$enable_libtool_lock
14135
14136if test -n "$ac_tool_prefix"; then
14137  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14138set dummy ${ac_tool_prefix}mt; ac_word=$2
14139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14140printf %s "checking for $ac_word... " >&6; }
14141if test ${ac_cv_prog_MANIFEST_TOOL+y}
14142then :
14143  printf %s "(cached) " >&6
14144else $as_nop
14145  if test -n "$MANIFEST_TOOL"; then
14146  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14147else
14148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14149for as_dir in $PATH
14150do
14151  IFS=$as_save_IFS
14152  case $as_dir in #(((
14153    '') as_dir=./ ;;
14154    */) ;;
14155    *) as_dir=$as_dir/ ;;
14156  esac
14157    for ac_exec_ext in '' $ac_executable_extensions; do
14158  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14159    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14160    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14161    break 2
14162  fi
14163done
14164  done
14165IFS=$as_save_IFS
14166
14167fi
14168fi
14169MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14170if test -n "$MANIFEST_TOOL"; then
14171  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14172printf "%s\n" "$MANIFEST_TOOL" >&6; }
14173else
14174  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14175printf "%s\n" "no" >&6; }
14176fi
14177
14178
14179fi
14180if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14181  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14182  # Extract the first word of "mt", so it can be a program name with args.
14183set dummy mt; ac_word=$2
14184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14185printf %s "checking for $ac_word... " >&6; }
14186if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
14187then :
14188  printf %s "(cached) " >&6
14189else $as_nop
14190  if test -n "$ac_ct_MANIFEST_TOOL"; then
14191  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
14192else
14193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14194for as_dir in $PATH
14195do
14196  IFS=$as_save_IFS
14197  case $as_dir in #(((
14198    '') as_dir=./ ;;
14199    */) ;;
14200    *) as_dir=$as_dir/ ;;
14201  esac
14202    for ac_exec_ext in '' $ac_executable_extensions; do
14203  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14204    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
14205    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14206    break 2
14207  fi
14208done
14209  done
14210IFS=$as_save_IFS
14211
14212fi
14213fi
14214ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14215if test -n "$ac_ct_MANIFEST_TOOL"; then
14216  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14217printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
14218else
14219  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14220printf "%s\n" "no" >&6; }
14221fi
14222
14223  if test "x$ac_ct_MANIFEST_TOOL" = x; then
14224    MANIFEST_TOOL=":"
14225  else
14226    case $cross_compiling:$ac_tool_warned in
14227yes:)
14228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14229printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14230ac_tool_warned=yes ;;
14231esac
14232    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14233  fi
14234else
14235  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14236fi
14237
14238test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14240printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14241if test ${lt_cv_path_mainfest_tool+y}
14242then :
14243  printf %s "(cached) " >&6
14244else $as_nop
14245  lt_cv_path_mainfest_tool=no
14246  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14247  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14248  cat conftest.err >&5
14249  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14250    lt_cv_path_mainfest_tool=yes
14251  fi
14252  rm -f conftest*
14253fi
14254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14255printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
14256if test yes != "$lt_cv_path_mainfest_tool"; then
14257  MANIFEST_TOOL=:
14258fi
14259
14260
14261
14262
14263
14264
14265  case $host_os in
14266    rhapsody* | darwin*)
14267    if test -n "$ac_tool_prefix"; then
14268  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14269set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14271printf %s "checking for $ac_word... " >&6; }
14272if test ${ac_cv_prog_DSYMUTIL+y}
14273then :
14274  printf %s "(cached) " >&6
14275else $as_nop
14276  if test -n "$DSYMUTIL"; then
14277  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14278else
14279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14280for as_dir in $PATH
14281do
14282  IFS=$as_save_IFS
14283  case $as_dir in #(((
14284    '') as_dir=./ ;;
14285    */) ;;
14286    *) as_dir=$as_dir/ ;;
14287  esac
14288    for ac_exec_ext in '' $ac_executable_extensions; do
14289  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14290    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14291    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14292    break 2
14293  fi
14294done
14295  done
14296IFS=$as_save_IFS
14297
14298fi
14299fi
14300DSYMUTIL=$ac_cv_prog_DSYMUTIL
14301if test -n "$DSYMUTIL"; then
14302  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14303printf "%s\n" "$DSYMUTIL" >&6; }
14304else
14305  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14306printf "%s\n" "no" >&6; }
14307fi
14308
14309
14310fi
14311if test -z "$ac_cv_prog_DSYMUTIL"; then
14312  ac_ct_DSYMUTIL=$DSYMUTIL
14313  # Extract the first word of "dsymutil", so it can be a program name with args.
14314set dummy dsymutil; ac_word=$2
14315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14316printf %s "checking for $ac_word... " >&6; }
14317if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
14318then :
14319  printf %s "(cached) " >&6
14320else $as_nop
14321  if test -n "$ac_ct_DSYMUTIL"; then
14322  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14323else
14324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14325for as_dir in $PATH
14326do
14327  IFS=$as_save_IFS
14328  case $as_dir in #(((
14329    '') as_dir=./ ;;
14330    */) ;;
14331    *) as_dir=$as_dir/ ;;
14332  esac
14333    for ac_exec_ext in '' $ac_executable_extensions; do
14334  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14335    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14336    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14337    break 2
14338  fi
14339done
14340  done
14341IFS=$as_save_IFS
14342
14343fi
14344fi
14345ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14346if test -n "$ac_ct_DSYMUTIL"; then
14347  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14348printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
14349else
14350  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351printf "%s\n" "no" >&6; }
14352fi
14353
14354  if test "x$ac_ct_DSYMUTIL" = x; then
14355    DSYMUTIL=":"
14356  else
14357    case $cross_compiling:$ac_tool_warned in
14358yes:)
14359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14360printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14361ac_tool_warned=yes ;;
14362esac
14363    DSYMUTIL=$ac_ct_DSYMUTIL
14364  fi
14365else
14366  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14367fi
14368
14369    if test -n "$ac_tool_prefix"; then
14370  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14371set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14373printf %s "checking for $ac_word... " >&6; }
14374if test ${ac_cv_prog_NMEDIT+y}
14375then :
14376  printf %s "(cached) " >&6
14377else $as_nop
14378  if test -n "$NMEDIT"; then
14379  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14380else
14381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14382for as_dir in $PATH
14383do
14384  IFS=$as_save_IFS
14385  case $as_dir in #(((
14386    '') as_dir=./ ;;
14387    */) ;;
14388    *) as_dir=$as_dir/ ;;
14389  esac
14390    for ac_exec_ext in '' $ac_executable_extensions; do
14391  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14392    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14393    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14394    break 2
14395  fi
14396done
14397  done
14398IFS=$as_save_IFS
14399
14400fi
14401fi
14402NMEDIT=$ac_cv_prog_NMEDIT
14403if test -n "$NMEDIT"; then
14404  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14405printf "%s\n" "$NMEDIT" >&6; }
14406else
14407  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14408printf "%s\n" "no" >&6; }
14409fi
14410
14411
14412fi
14413if test -z "$ac_cv_prog_NMEDIT"; then
14414  ac_ct_NMEDIT=$NMEDIT
14415  # Extract the first word of "nmedit", so it can be a program name with args.
14416set dummy nmedit; ac_word=$2
14417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14418printf %s "checking for $ac_word... " >&6; }
14419if test ${ac_cv_prog_ac_ct_NMEDIT+y}
14420then :
14421  printf %s "(cached) " >&6
14422else $as_nop
14423  if test -n "$ac_ct_NMEDIT"; then
14424  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14425else
14426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14427for as_dir in $PATH
14428do
14429  IFS=$as_save_IFS
14430  case $as_dir in #(((
14431    '') as_dir=./ ;;
14432    */) ;;
14433    *) as_dir=$as_dir/ ;;
14434  esac
14435    for ac_exec_ext in '' $ac_executable_extensions; do
14436  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14437    ac_cv_prog_ac_ct_NMEDIT="nmedit"
14438    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14439    break 2
14440  fi
14441done
14442  done
14443IFS=$as_save_IFS
14444
14445fi
14446fi
14447ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14448if test -n "$ac_ct_NMEDIT"; then
14449  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14450printf "%s\n" "$ac_ct_NMEDIT" >&6; }
14451else
14452  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14453printf "%s\n" "no" >&6; }
14454fi
14455
14456  if test "x$ac_ct_NMEDIT" = x; then
14457    NMEDIT=":"
14458  else
14459    case $cross_compiling:$ac_tool_warned in
14460yes:)
14461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14462printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14463ac_tool_warned=yes ;;
14464esac
14465    NMEDIT=$ac_ct_NMEDIT
14466  fi
14467else
14468  NMEDIT="$ac_cv_prog_NMEDIT"
14469fi
14470
14471    if test -n "$ac_tool_prefix"; then
14472  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14473set dummy ${ac_tool_prefix}lipo; ac_word=$2
14474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14475printf %s "checking for $ac_word... " >&6; }
14476if test ${ac_cv_prog_LIPO+y}
14477then :
14478  printf %s "(cached) " >&6
14479else $as_nop
14480  if test -n "$LIPO"; then
14481  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14482else
14483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14484for as_dir in $PATH
14485do
14486  IFS=$as_save_IFS
14487  case $as_dir in #(((
14488    '') as_dir=./ ;;
14489    */) ;;
14490    *) as_dir=$as_dir/ ;;
14491  esac
14492    for ac_exec_ext in '' $ac_executable_extensions; do
14493  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14494    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14495    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14496    break 2
14497  fi
14498done
14499  done
14500IFS=$as_save_IFS
14501
14502fi
14503fi
14504LIPO=$ac_cv_prog_LIPO
14505if test -n "$LIPO"; then
14506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14507printf "%s\n" "$LIPO" >&6; }
14508else
14509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14510printf "%s\n" "no" >&6; }
14511fi
14512
14513
14514fi
14515if test -z "$ac_cv_prog_LIPO"; then
14516  ac_ct_LIPO=$LIPO
14517  # Extract the first word of "lipo", so it can be a program name with args.
14518set dummy lipo; ac_word=$2
14519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14520printf %s "checking for $ac_word... " >&6; }
14521if test ${ac_cv_prog_ac_ct_LIPO+y}
14522then :
14523  printf %s "(cached) " >&6
14524else $as_nop
14525  if test -n "$ac_ct_LIPO"; then
14526  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14527else
14528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14529for as_dir in $PATH
14530do
14531  IFS=$as_save_IFS
14532  case $as_dir in #(((
14533    '') as_dir=./ ;;
14534    */) ;;
14535    *) as_dir=$as_dir/ ;;
14536  esac
14537    for ac_exec_ext in '' $ac_executable_extensions; do
14538  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14539    ac_cv_prog_ac_ct_LIPO="lipo"
14540    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14541    break 2
14542  fi
14543done
14544  done
14545IFS=$as_save_IFS
14546
14547fi
14548fi
14549ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14550if test -n "$ac_ct_LIPO"; then
14551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14552printf "%s\n" "$ac_ct_LIPO" >&6; }
14553else
14554  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14555printf "%s\n" "no" >&6; }
14556fi
14557
14558  if test "x$ac_ct_LIPO" = x; then
14559    LIPO=":"
14560  else
14561    case $cross_compiling:$ac_tool_warned in
14562yes:)
14563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14564printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14565ac_tool_warned=yes ;;
14566esac
14567    LIPO=$ac_ct_LIPO
14568  fi
14569else
14570  LIPO="$ac_cv_prog_LIPO"
14571fi
14572
14573    if test -n "$ac_tool_prefix"; then
14574  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14575set dummy ${ac_tool_prefix}otool; ac_word=$2
14576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14577printf %s "checking for $ac_word... " >&6; }
14578if test ${ac_cv_prog_OTOOL+y}
14579then :
14580  printf %s "(cached) " >&6
14581else $as_nop
14582  if test -n "$OTOOL"; then
14583  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14584else
14585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14586for as_dir in $PATH
14587do
14588  IFS=$as_save_IFS
14589  case $as_dir in #(((
14590    '') as_dir=./ ;;
14591    */) ;;
14592    *) as_dir=$as_dir/ ;;
14593  esac
14594    for ac_exec_ext in '' $ac_executable_extensions; do
14595  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14596    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14597    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14598    break 2
14599  fi
14600done
14601  done
14602IFS=$as_save_IFS
14603
14604fi
14605fi
14606OTOOL=$ac_cv_prog_OTOOL
14607if test -n "$OTOOL"; then
14608  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14609printf "%s\n" "$OTOOL" >&6; }
14610else
14611  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14612printf "%s\n" "no" >&6; }
14613fi
14614
14615
14616fi
14617if test -z "$ac_cv_prog_OTOOL"; then
14618  ac_ct_OTOOL=$OTOOL
14619  # Extract the first word of "otool", so it can be a program name with args.
14620set dummy otool; ac_word=$2
14621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14622printf %s "checking for $ac_word... " >&6; }
14623if test ${ac_cv_prog_ac_ct_OTOOL+y}
14624then :
14625  printf %s "(cached) " >&6
14626else $as_nop
14627  if test -n "$ac_ct_OTOOL"; then
14628  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14629else
14630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14631for as_dir in $PATH
14632do
14633  IFS=$as_save_IFS
14634  case $as_dir in #(((
14635    '') as_dir=./ ;;
14636    */) ;;
14637    *) as_dir=$as_dir/ ;;
14638  esac
14639    for ac_exec_ext in '' $ac_executable_extensions; do
14640  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14641    ac_cv_prog_ac_ct_OTOOL="otool"
14642    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14643    break 2
14644  fi
14645done
14646  done
14647IFS=$as_save_IFS
14648
14649fi
14650fi
14651ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14652if test -n "$ac_ct_OTOOL"; then
14653  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14654printf "%s\n" "$ac_ct_OTOOL" >&6; }
14655else
14656  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14657printf "%s\n" "no" >&6; }
14658fi
14659
14660  if test "x$ac_ct_OTOOL" = x; then
14661    OTOOL=":"
14662  else
14663    case $cross_compiling:$ac_tool_warned in
14664yes:)
14665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14666printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14667ac_tool_warned=yes ;;
14668esac
14669    OTOOL=$ac_ct_OTOOL
14670  fi
14671else
14672  OTOOL="$ac_cv_prog_OTOOL"
14673fi
14674
14675    if test -n "$ac_tool_prefix"; then
14676  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14677set dummy ${ac_tool_prefix}otool64; ac_word=$2
14678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14679printf %s "checking for $ac_word... " >&6; }
14680if test ${ac_cv_prog_OTOOL64+y}
14681then :
14682  printf %s "(cached) " >&6
14683else $as_nop
14684  if test -n "$OTOOL64"; then
14685  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14686else
14687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14688for as_dir in $PATH
14689do
14690  IFS=$as_save_IFS
14691  case $as_dir in #(((
14692    '') as_dir=./ ;;
14693    */) ;;
14694    *) as_dir=$as_dir/ ;;
14695  esac
14696    for ac_exec_ext in '' $ac_executable_extensions; do
14697  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14698    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14699    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14700    break 2
14701  fi
14702done
14703  done
14704IFS=$as_save_IFS
14705
14706fi
14707fi
14708OTOOL64=$ac_cv_prog_OTOOL64
14709if test -n "$OTOOL64"; then
14710  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14711printf "%s\n" "$OTOOL64" >&6; }
14712else
14713  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14714printf "%s\n" "no" >&6; }
14715fi
14716
14717
14718fi
14719if test -z "$ac_cv_prog_OTOOL64"; then
14720  ac_ct_OTOOL64=$OTOOL64
14721  # Extract the first word of "otool64", so it can be a program name with args.
14722set dummy otool64; ac_word=$2
14723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14724printf %s "checking for $ac_word... " >&6; }
14725if test ${ac_cv_prog_ac_ct_OTOOL64+y}
14726then :
14727  printf %s "(cached) " >&6
14728else $as_nop
14729  if test -n "$ac_ct_OTOOL64"; then
14730  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14731else
14732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14733for as_dir in $PATH
14734do
14735  IFS=$as_save_IFS
14736  case $as_dir in #(((
14737    '') as_dir=./ ;;
14738    */) ;;
14739    *) as_dir=$as_dir/ ;;
14740  esac
14741    for ac_exec_ext in '' $ac_executable_extensions; do
14742  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14743    ac_cv_prog_ac_ct_OTOOL64="otool64"
14744    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14745    break 2
14746  fi
14747done
14748  done
14749IFS=$as_save_IFS
14750
14751fi
14752fi
14753ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14754if test -n "$ac_ct_OTOOL64"; then
14755  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14756printf "%s\n" "$ac_ct_OTOOL64" >&6; }
14757else
14758  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14759printf "%s\n" "no" >&6; }
14760fi
14761
14762  if test "x$ac_ct_OTOOL64" = x; then
14763    OTOOL64=":"
14764  else
14765    case $cross_compiling:$ac_tool_warned in
14766yes:)
14767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14768printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14769ac_tool_warned=yes ;;
14770esac
14771    OTOOL64=$ac_ct_OTOOL64
14772  fi
14773else
14774  OTOOL64="$ac_cv_prog_OTOOL64"
14775fi
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14804printf %s "checking for -single_module linker flag... " >&6; }
14805if test ${lt_cv_apple_cc_single_mod+y}
14806then :
14807  printf %s "(cached) " >&6
14808else $as_nop
14809  lt_cv_apple_cc_single_mod=no
14810      if test -z "$LT_MULTI_MODULE"; then
14811	# By default we will add the -single_module flag. You can override
14812	# by either setting the environment variable LT_MULTI_MODULE
14813	# non-empty at configure time, or by adding -multi_module to the
14814	# link flags.
14815	rm -rf libconftest.dylib*
14816	echo "int foo(void){return 1;}" > conftest.c
14817	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14818-dynamiclib -Wl,-single_module conftest.c" >&5
14819	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14820	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14821        _lt_result=$?
14822	# If there is a non-empty error log, and "single_module"
14823	# appears in it, assume the flag caused a linker warning
14824        if test -s conftest.err && $GREP single_module conftest.err; then
14825	  cat conftest.err >&5
14826	# Otherwise, if the output was created with a 0 exit code from
14827	# the compiler, it worked.
14828	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14829	  lt_cv_apple_cc_single_mod=yes
14830	else
14831	  cat conftest.err >&5
14832	fi
14833	rm -rf libconftest.dylib*
14834	rm -f conftest.*
14835      fi
14836fi
14837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14838printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
14839
14840    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14841printf %s "checking for -exported_symbols_list linker flag... " >&6; }
14842if test ${lt_cv_ld_exported_symbols_list+y}
14843then :
14844  printf %s "(cached) " >&6
14845else $as_nop
14846  lt_cv_ld_exported_symbols_list=no
14847      save_LDFLAGS=$LDFLAGS
14848      echo "_main" > conftest.sym
14849      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14850      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14851/* end confdefs.h.  */
14852
14853int
14854main (void)
14855{
14856
14857  ;
14858  return 0;
14859}
14860_ACEOF
14861if ac_fn_c_try_link "$LINENO"
14862then :
14863  lt_cv_ld_exported_symbols_list=yes
14864else $as_nop
14865  lt_cv_ld_exported_symbols_list=no
14866fi
14867rm -f core conftest.err conftest.$ac_objext conftest.beam \
14868    conftest$ac_exeext conftest.$ac_ext
14869	LDFLAGS=$save_LDFLAGS
14870
14871fi
14872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14873printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
14874
14875    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14876printf %s "checking for -force_load linker flag... " >&6; }
14877if test ${lt_cv_ld_force_load+y}
14878then :
14879  printf %s "(cached) " >&6
14880else $as_nop
14881  lt_cv_ld_force_load=no
14882      cat > conftest.c << _LT_EOF
14883int forced_loaded() { return 2;}
14884_LT_EOF
14885      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14886      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14887      echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
14888      $AR $AR_FLAGS libconftest.a conftest.o 2>&5
14889      echo "$RANLIB libconftest.a" >&5
14890      $RANLIB libconftest.a 2>&5
14891      cat > conftest.c << _LT_EOF
14892int main() { return 0;}
14893_LT_EOF
14894      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14895      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14896      _lt_result=$?
14897      if test -s conftest.err && $GREP force_load conftest.err; then
14898	cat conftest.err >&5
14899      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14900	lt_cv_ld_force_load=yes
14901      else
14902	cat conftest.err >&5
14903      fi
14904        rm -f conftest.err libconftest.a conftest conftest.c
14905        rm -rf conftest.dSYM
14906
14907fi
14908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14909printf "%s\n" "$lt_cv_ld_force_load" >&6; }
14910    case $host_os in
14911    rhapsody* | darwin1.[012])
14912      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14913    darwin1.*)
14914      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14915    darwin*)
14916      case $MACOSX_DEPLOYMENT_TARGET,$host in
14917        10.[012],*|,*powerpc*-darwin[5-8]*)
14918          _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14919        *)
14920          _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14921      esac
14922    ;;
14923  esac
14924    if test yes = "$lt_cv_apple_cc_single_mod"; then
14925      _lt_dar_single_mod='$single_module'
14926    fi
14927    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14928      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14929    else
14930      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14931    fi
14932    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14933      _lt_dsymutil='~$DSYMUTIL $lib || :'
14934    else
14935      _lt_dsymutil=
14936    fi
14937    ;;
14938  esac
14939
14940# func_munge_path_list VARIABLE PATH
14941# -----------------------------------
14942# VARIABLE is name of variable containing _space_ separated list of
14943# directories to be munged by the contents of PATH, which is string
14944# having a format:
14945# "DIR[:DIR]:"
14946#       string "DIR[ DIR]" will be prepended to VARIABLE
14947# ":DIR[:DIR]"
14948#       string "DIR[ DIR]" will be appended to VARIABLE
14949# "DIRP[:DIRP]::[DIRA:]DIRA"
14950#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14951#       "DIRA[ DIRA]" will be appended to VARIABLE
14952# "DIR[:DIR]"
14953#       VARIABLE will be replaced by "DIR[ DIR]"
14954func_munge_path_list ()
14955{
14956    case x$2 in
14957    x)
14958        ;;
14959    *:)
14960        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14961        ;;
14962    x:*)
14963        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14964        ;;
14965    *::*)
14966        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14967        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14968        ;;
14969    *)
14970        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14971        ;;
14972    esac
14973}
14974
14975ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14976"
14977if test "x$ac_cv_header_dlfcn_h" = xyes
14978then :
14979  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
14980
14981fi
14982
14983
14984
14985
14986
14987# Set options
14988
14989
14990
14991        enable_dlopen=no
14992
14993
14994  enable_win32_dll=no
14995
14996
14997            # Check whether --enable-shared was given.
14998if test ${enable_shared+y}
14999then :
15000  enableval=$enable_shared; p=${PACKAGE-default}
15001    case $enableval in
15002    yes) enable_shared=yes ;;
15003    no) enable_shared=no ;;
15004    *)
15005      enable_shared=no
15006      # Look at the argument we got.  We use all the common list separators.
15007      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15008      for pkg in $enableval; do
15009	IFS=$lt_save_ifs
15010	if test "X$pkg" = "X$p"; then
15011	  enable_shared=yes
15012	fi
15013      done
15014      IFS=$lt_save_ifs
15015      ;;
15016    esac
15017else $as_nop
15018  enable_shared=yes
15019fi
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031# Check whether --with-pic was given.
15032if test ${with_pic+y}
15033then :
15034  withval=$with_pic; lt_p=${PACKAGE-default}
15035    case $withval in
15036    yes|no) pic_mode=$withval ;;
15037    *)
15038      pic_mode=default
15039      # Look at the argument we got.  We use all the common list separators.
15040      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15041      for lt_pkg in $withval; do
15042	IFS=$lt_save_ifs
15043	if test "X$lt_pkg" = "X$lt_p"; then
15044	  pic_mode=yes
15045	fi
15046      done
15047      IFS=$lt_save_ifs
15048      ;;
15049    esac
15050else $as_nop
15051  pic_mode=default
15052fi
15053
15054
15055
15056
15057
15058
15059
15060
15061  # Check whether --enable-fast-install was given.
15062if test ${enable_fast_install+y}
15063then :
15064  enableval=$enable_fast_install; p=${PACKAGE-default}
15065    case $enableval in
15066    yes) enable_fast_install=yes ;;
15067    no) enable_fast_install=no ;;
15068    *)
15069      enable_fast_install=no
15070      # Look at the argument we got.  We use all the common list separators.
15071      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15072      for pkg in $enableval; do
15073	IFS=$lt_save_ifs
15074	if test "X$pkg" = "X$p"; then
15075	  enable_fast_install=yes
15076	fi
15077      done
15078      IFS=$lt_save_ifs
15079      ;;
15080    esac
15081else $as_nop
15082  enable_fast_install=yes
15083fi
15084
15085
15086
15087
15088
15089
15090
15091
15092  shared_archive_member_spec=
15093case $host,$enable_shared in
15094power*-*-aix[5-9]*,yes)
15095  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15096printf %s "checking which variant of shared library versioning to provide... " >&6; }
15097
15098# Check whether --with-aix-soname was given.
15099if test ${with_aix_soname+y}
15100then :
15101  withval=$with_aix_soname; case $withval in
15102    aix|svr4|both)
15103      ;;
15104    *)
15105      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15106      ;;
15107    esac
15108    lt_cv_with_aix_soname=$with_aix_soname
15109else $as_nop
15110  if test ${lt_cv_with_aix_soname+y}
15111then :
15112  printf %s "(cached) " >&6
15113else $as_nop
15114  lt_cv_with_aix_soname=aix
15115fi
15116
15117    with_aix_soname=$lt_cv_with_aix_soname
15118fi
15119
15120  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15121printf "%s\n" "$with_aix_soname" >&6; }
15122  if test aix != "$with_aix_soname"; then
15123    # For the AIX way of multilib, we name the shared archive member
15124    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15125    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15126    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15127    # the AIX toolchain works better with OBJECT_MODE set (default 32).
15128    if test 64 = "${OBJECT_MODE-32}"; then
15129      shared_archive_member_spec=shr_64
15130    else
15131      shared_archive_member_spec=shr
15132    fi
15133  fi
15134  ;;
15135*)
15136  with_aix_soname=aix
15137  ;;
15138esac
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149# This can be used to rebuild libtool when needed
15150LIBTOOL_DEPS=$ltmain
15151
15152# Always use our own libtool.
15153LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15154
15155
15156
15157
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
15184test -z "$LN_S" && LN_S="ln -s"
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199if test -n "${ZSH_VERSION+set}"; then
15200   setopt NO_GLOB_SUBST
15201fi
15202
15203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15204printf %s "checking for objdir... " >&6; }
15205if test ${lt_cv_objdir+y}
15206then :
15207  printf %s "(cached) " >&6
15208else $as_nop
15209  rm -f .libs 2>/dev/null
15210mkdir .libs 2>/dev/null
15211if test -d .libs; then
15212  lt_cv_objdir=.libs
15213else
15214  # MS-DOS does not allow filenames that begin with a dot.
15215  lt_cv_objdir=_libs
15216fi
15217rmdir .libs 2>/dev/null
15218fi
15219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15220printf "%s\n" "$lt_cv_objdir" >&6; }
15221objdir=$lt_cv_objdir
15222
15223
15224
15225
15226
15227printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
15228
15229
15230
15231
15232case $host_os in
15233aix3*)
15234  # AIX sometimes has problems with the GCC collect2 program.  For some
15235  # reason, if we set the COLLECT_NAMES environment variable, the problems
15236  # vanish in a puff of smoke.
15237  if test set != "${COLLECT_NAMES+set}"; then
15238    COLLECT_NAMES=
15239    export COLLECT_NAMES
15240  fi
15241  ;;
15242esac
15243
15244# Global variables:
15245ofile=libtool
15246can_build_shared=yes
15247
15248# All known linkers require a '.a' archive for static linking (except MSVC and
15249# ICC, which need '.lib').
15250libext=a
15251
15252with_gnu_ld=$lt_cv_prog_gnu_ld
15253
15254old_CC=$CC
15255old_CFLAGS=$CFLAGS
15256
15257# Set sane defaults for various variables
15258test -z "$CC" && CC=cc
15259test -z "$LTCC" && LTCC=$CC
15260test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15261test -z "$LD" && LD=ld
15262test -z "$ac_objext" && ac_objext=o
15263
15264func_cc_basename $compiler
15265cc_basename=$func_cc_basename_result
15266
15267
15268# Only perform the check for file, if the check method requires it
15269test -z "$MAGIC_CMD" && MAGIC_CMD=file
15270case $deplibs_check_method in
15271file_magic*)
15272  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15273    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15274printf %s "checking for ${ac_tool_prefix}file... " >&6; }
15275if test ${lt_cv_path_MAGIC_CMD+y}
15276then :
15277  printf %s "(cached) " >&6
15278else $as_nop
15279  case $MAGIC_CMD in
15280[\\/*] |  ?:[\\/]*)
15281  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15282  ;;
15283*)
15284  lt_save_MAGIC_CMD=$MAGIC_CMD
15285  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15286  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15287  for ac_dir in $ac_dummy; do
15288    IFS=$lt_save_ifs
15289    test -z "$ac_dir" && ac_dir=.
15290    if test -f "$ac_dir/${ac_tool_prefix}file"; then
15291      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15292      if test -n "$file_magic_test_file"; then
15293	case $deplibs_check_method in
15294	"file_magic "*)
15295	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15296	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15297	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15298	    $EGREP "$file_magic_regex" > /dev/null; then
15299	    :
15300	  else
15301	    cat <<_LT_EOF 1>&2
15302
15303*** Warning: the command libtool uses to detect shared libraries,
15304*** $file_magic_cmd, produces output that libtool cannot recognize.
15305*** The result is that libtool may fail to recognize shared libraries
15306*** as such.  This will affect the creation of libtool libraries that
15307*** depend on shared libraries, but programs linked with such libtool
15308*** libraries will work regardless of this problem.  Nevertheless, you
15309*** may want to report the problem to your system manager and/or to
15310*** bug-libtool@gnu.org
15311
15312_LT_EOF
15313	  fi ;;
15314	esac
15315      fi
15316      break
15317    fi
15318  done
15319  IFS=$lt_save_ifs
15320  MAGIC_CMD=$lt_save_MAGIC_CMD
15321  ;;
15322esac
15323fi
15324
15325MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15326if test -n "$MAGIC_CMD"; then
15327  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15328printf "%s\n" "$MAGIC_CMD" >&6; }
15329else
15330  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15331printf "%s\n" "no" >&6; }
15332fi
15333
15334
15335
15336
15337
15338if test -z "$lt_cv_path_MAGIC_CMD"; then
15339  if test -n "$ac_tool_prefix"; then
15340    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15341printf %s "checking for file... " >&6; }
15342if test ${lt_cv_path_MAGIC_CMD+y}
15343then :
15344  printf %s "(cached) " >&6
15345else $as_nop
15346  case $MAGIC_CMD in
15347[\\/*] |  ?:[\\/]*)
15348  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15349  ;;
15350*)
15351  lt_save_MAGIC_CMD=$MAGIC_CMD
15352  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15353  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15354  for ac_dir in $ac_dummy; do
15355    IFS=$lt_save_ifs
15356    test -z "$ac_dir" && ac_dir=.
15357    if test -f "$ac_dir/file"; then
15358      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15359      if test -n "$file_magic_test_file"; then
15360	case $deplibs_check_method in
15361	"file_magic "*)
15362	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15363	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15364	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15365	    $EGREP "$file_magic_regex" > /dev/null; then
15366	    :
15367	  else
15368	    cat <<_LT_EOF 1>&2
15369
15370*** Warning: the command libtool uses to detect shared libraries,
15371*** $file_magic_cmd, produces output that libtool cannot recognize.
15372*** The result is that libtool may fail to recognize shared libraries
15373*** as such.  This will affect the creation of libtool libraries that
15374*** depend on shared libraries, but programs linked with such libtool
15375*** libraries will work regardless of this problem.  Nevertheless, you
15376*** may want to report the problem to your system manager and/or to
15377*** bug-libtool@gnu.org
15378
15379_LT_EOF
15380	  fi ;;
15381	esac
15382      fi
15383      break
15384    fi
15385  done
15386  IFS=$lt_save_ifs
15387  MAGIC_CMD=$lt_save_MAGIC_CMD
15388  ;;
15389esac
15390fi
15391
15392MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15393if test -n "$MAGIC_CMD"; then
15394  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15395printf "%s\n" "$MAGIC_CMD" >&6; }
15396else
15397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15398printf "%s\n" "no" >&6; }
15399fi
15400
15401
15402  else
15403    MAGIC_CMD=:
15404  fi
15405fi
15406
15407  fi
15408  ;;
15409esac
15410
15411# Use C for the default configuration in the libtool script
15412
15413lt_save_CC=$CC
15414ac_ext=c
15415ac_cpp='$CPP $CPPFLAGS'
15416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15418ac_compiler_gnu=$ac_cv_c_compiler_gnu
15419
15420
15421# Source file extension for C test sources.
15422ac_ext=c
15423
15424# Object file extension for compiled C test sources.
15425objext=o
15426objext=$objext
15427
15428# Code to be used in simple compile tests
15429lt_simple_compile_test_code="int some_variable = 0;"
15430
15431# Code to be used in simple link tests
15432lt_simple_link_test_code='int main(){return(0);}'
15433
15434
15435
15436
15437
15438
15439
15440# If no C compiler was specified, use CC.
15441LTCC=${LTCC-"$CC"}
15442
15443# If no C compiler flags were specified, use CFLAGS.
15444LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15445
15446# Allow CC to be a program name with arguments.
15447compiler=$CC
15448
15449# Save the default compiler, since it gets overwritten when the other
15450# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15451compiler_DEFAULT=$CC
15452
15453# save warnings/boilerplate of simple test code
15454ac_outfile=conftest.$ac_objext
15455echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15456eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15457_lt_compiler_boilerplate=`cat conftest.err`
15458$RM conftest*
15459
15460ac_outfile=conftest.$ac_objext
15461echo "$lt_simple_link_test_code" >conftest.$ac_ext
15462eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15463_lt_linker_boilerplate=`cat conftest.err`
15464$RM -r conftest*
15465
15466
15467if test -n "$compiler"; then
15468
15469lt_prog_compiler_no_builtin_flag=
15470
15471if test yes = "$GCC"; then
15472  case $cc_basename in
15473  nvcc*)
15474    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15475  *)
15476    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15477  esac
15478
15479  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15480printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15481if test ${lt_cv_prog_compiler_rtti_exceptions+y}
15482then :
15483  printf %s "(cached) " >&6
15484else $as_nop
15485  lt_cv_prog_compiler_rtti_exceptions=no
15486   ac_outfile=conftest.$ac_objext
15487   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15488   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
15489   # Insert the option either (1) after the last *FLAGS variable, or
15490   # (2) before a word containing "conftest.", or (3) at the end.
15491   # Note that $ac_compile itself does not contain backslashes and begins
15492   # with a dollar sign (not a hyphen), so the echo should work correctly.
15493   # The option is referenced via a variable to avoid confusing sed.
15494   lt_compile=`echo "$ac_compile" | $SED \
15495   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15496   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15497   -e 's:$: $lt_compiler_flag:'`
15498   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15499   (eval "$lt_compile" 2>conftest.err)
15500   ac_status=$?
15501   cat conftest.err >&5
15502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503   if (exit $ac_status) && test -s "$ac_outfile"; then
15504     # The compiler can only warn and ignore the option if not recognized
15505     # So say no if there are warnings other than the usual output.
15506     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15507     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15508     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15509       lt_cv_prog_compiler_rtti_exceptions=yes
15510     fi
15511   fi
15512   $RM conftest*
15513
15514fi
15515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15516printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15517
15518if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15519    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15520else
15521    :
15522fi
15523
15524fi
15525
15526
15527
15528
15529
15530
15531  lt_prog_compiler_wl=
15532lt_prog_compiler_pic=
15533lt_prog_compiler_static=
15534
15535
15536  if test yes = "$GCC"; then
15537    lt_prog_compiler_wl='-Wl,'
15538    lt_prog_compiler_static='-static'
15539
15540    case $host_os in
15541      aix*)
15542      # All AIX code is PIC.
15543      if test ia64 = "$host_cpu"; then
15544	# AIX 5 now supports IA64 processor
15545	lt_prog_compiler_static='-Bstatic'
15546      fi
15547      lt_prog_compiler_pic='-fPIC'
15548      ;;
15549
15550    amigaos*)
15551      case $host_cpu in
15552      powerpc)
15553            # see comment about AmigaOS4 .so support
15554            lt_prog_compiler_pic='-fPIC'
15555        ;;
15556      m68k)
15557            # FIXME: we need at least 68020 code to build shared libraries, but
15558            # adding the '-m68020' flag to GCC prevents building anything better,
15559            # like '-m68040'.
15560            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15561        ;;
15562      esac
15563      ;;
15564
15565    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15566      # PIC is the default for these OSes.
15567      ;;
15568
15569    mingw* | cygwin* | pw32* | os2* | cegcc*)
15570      # This hack is so that the source file can tell whether it is being
15571      # built for inclusion in a dll (and should export symbols for example).
15572      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15573      # (--disable-auto-import) libraries
15574      lt_prog_compiler_pic='-DDLL_EXPORT'
15575      case $host_os in
15576      os2*)
15577	lt_prog_compiler_static='$wl-static'
15578	;;
15579      esac
15580      ;;
15581
15582    darwin* | rhapsody*)
15583      # PIC is the default on this platform
15584      # Common symbols not allowed in MH_DYLIB files
15585      lt_prog_compiler_pic='-fno-common'
15586      ;;
15587
15588    haiku*)
15589      # PIC is the default for Haiku.
15590      # The "-static" flag exists, but is broken.
15591      lt_prog_compiler_static=
15592      ;;
15593
15594    hpux*)
15595      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15596      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15597      # sets the default TLS model and affects inlining.
15598      case $host_cpu in
15599      hppa*64*)
15600	# +Z the default
15601	;;
15602      *)
15603	lt_prog_compiler_pic='-fPIC'
15604	;;
15605      esac
15606      ;;
15607
15608    interix[3-9]*)
15609      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15610      # Instead, we relocate shared libraries at runtime.
15611      ;;
15612
15613    msdosdjgpp*)
15614      # Just because we use GCC doesn't mean we suddenly get shared libraries
15615      # on systems that don't support them.
15616      lt_prog_compiler_can_build_shared=no
15617      enable_shared=no
15618      ;;
15619
15620    *nto* | *qnx*)
15621      # QNX uses GNU C++, but need to define -shared option too, otherwise
15622      # it will coredump.
15623      lt_prog_compiler_pic='-fPIC -shared'
15624      ;;
15625
15626    sysv4*MP*)
15627      if test -d /usr/nec; then
15628	lt_prog_compiler_pic=-Kconform_pic
15629      fi
15630      ;;
15631
15632    *)
15633      lt_prog_compiler_pic='-fPIC'
15634      ;;
15635    esac
15636
15637    case $cc_basename in
15638    nvcc*) # Cuda Compiler Driver 2.2
15639      lt_prog_compiler_wl='-Xlinker '
15640      if test -n "$lt_prog_compiler_pic"; then
15641        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15642      fi
15643      ;;
15644    esac
15645  else
15646    # PORTME Check for flag to pass linker flags through the system compiler.
15647    case $host_os in
15648    aix*)
15649      lt_prog_compiler_wl='-Wl,'
15650      if test ia64 = "$host_cpu"; then
15651	# AIX 5 now supports IA64 processor
15652	lt_prog_compiler_static='-Bstatic'
15653      else
15654	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15655      fi
15656      ;;
15657
15658    darwin* | rhapsody*)
15659      # PIC is the default on this platform
15660      # Common symbols not allowed in MH_DYLIB files
15661      lt_prog_compiler_pic='-fno-common'
15662      case $cc_basename in
15663      nagfor*)
15664        # NAG Fortran compiler
15665        lt_prog_compiler_wl='-Wl,-Wl,,'
15666        lt_prog_compiler_pic='-PIC'
15667        lt_prog_compiler_static='-Bstatic'
15668        ;;
15669      esac
15670      ;;
15671
15672    mingw* | cygwin* | pw32* | os2* | cegcc*)
15673      # This hack is so that the source file can tell whether it is being
15674      # built for inclusion in a dll (and should export symbols for example).
15675      lt_prog_compiler_pic='-DDLL_EXPORT'
15676      case $host_os in
15677      os2*)
15678	lt_prog_compiler_static='$wl-static'
15679	;;
15680      esac
15681      ;;
15682
15683    hpux9* | hpux10* | hpux11*)
15684      lt_prog_compiler_wl='-Wl,'
15685      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15686      # not for PA HP-UX.
15687      case $host_cpu in
15688      hppa*64*|ia64*)
15689	# +Z the default
15690	;;
15691      *)
15692	lt_prog_compiler_pic='+Z'
15693	;;
15694      esac
15695      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15696      lt_prog_compiler_static='$wl-a ${wl}archive'
15697      ;;
15698
15699    irix5* | irix6* | nonstopux*)
15700      lt_prog_compiler_wl='-Wl,'
15701      # PIC (with -KPIC) is the default.
15702      lt_prog_compiler_static='-non_shared'
15703      ;;
15704
15705    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15706      case $cc_basename in
15707      # old Intel for x86_64, which still supported -KPIC.
15708      ecc*)
15709	lt_prog_compiler_wl='-Wl,'
15710	lt_prog_compiler_pic='-KPIC'
15711	lt_prog_compiler_static='-static'
15712        ;;
15713      # icc used to be incompatible with GCC.
15714      # ICC 10 doesn't accept -KPIC any more.
15715      icc* | ifort*)
15716	lt_prog_compiler_wl='-Wl,'
15717	lt_prog_compiler_pic='-fPIC'
15718	lt_prog_compiler_static='-static'
15719        ;;
15720      # Lahey Fortran 8.1.
15721      lf95*)
15722	lt_prog_compiler_wl='-Wl,'
15723	lt_prog_compiler_pic='--shared'
15724	lt_prog_compiler_static='--static'
15725	;;
15726      nagfor*)
15727	# NAG Fortran compiler
15728	lt_prog_compiler_wl='-Wl,-Wl,,'
15729	lt_prog_compiler_pic='-PIC'
15730	lt_prog_compiler_static='-Bstatic'
15731	;;
15732      tcc*)
15733	# Fabrice Bellard et al's Tiny C Compiler
15734	lt_prog_compiler_wl='-Wl,'
15735	lt_prog_compiler_pic='-fPIC'
15736	lt_prog_compiler_static='-static'
15737	;;
15738      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15739        # Portland Group compilers (*not* the Pentium gcc compiler,
15740	# which looks to be a dead project)
15741	lt_prog_compiler_wl='-Wl,'
15742	lt_prog_compiler_pic='-fpic'
15743	lt_prog_compiler_static='-Bstatic'
15744        ;;
15745      ccc*)
15746        lt_prog_compiler_wl='-Wl,'
15747        # All Alpha code is PIC.
15748        lt_prog_compiler_static='-non_shared'
15749        ;;
15750      xl* | bgxl* | bgf* | mpixl*)
15751	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15752	lt_prog_compiler_wl='-Wl,'
15753	lt_prog_compiler_pic='-qpic'
15754	lt_prog_compiler_static='-qstaticlink'
15755	;;
15756      *)
15757	case `$CC -V 2>&1 | $SED 5q` in
15758	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15759	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15760	  lt_prog_compiler_pic='-KPIC'
15761	  lt_prog_compiler_static='-Bstatic'
15762	  lt_prog_compiler_wl=''
15763	  ;;
15764	*Sun\ F* | *Sun*Fortran*)
15765	  lt_prog_compiler_pic='-KPIC'
15766	  lt_prog_compiler_static='-Bstatic'
15767	  lt_prog_compiler_wl='-Qoption ld '
15768	  ;;
15769	*Sun\ C*)
15770	  # Sun C 5.9
15771	  lt_prog_compiler_pic='-KPIC'
15772	  lt_prog_compiler_static='-Bstatic'
15773	  lt_prog_compiler_wl='-Wl,'
15774	  ;;
15775        *Intel*\ [CF]*Compiler*)
15776	  lt_prog_compiler_wl='-Wl,'
15777	  lt_prog_compiler_pic='-fPIC'
15778	  lt_prog_compiler_static='-static'
15779	  ;;
15780	*Portland\ Group*)
15781	  lt_prog_compiler_wl='-Wl,'
15782	  lt_prog_compiler_pic='-fpic'
15783	  lt_prog_compiler_static='-Bstatic'
15784	  ;;
15785	esac
15786	;;
15787      esac
15788      ;;
15789
15790    newsos6)
15791      lt_prog_compiler_pic='-KPIC'
15792      lt_prog_compiler_static='-Bstatic'
15793      ;;
15794
15795    *nto* | *qnx*)
15796      # QNX uses GNU C++, but need to define -shared option too, otherwise
15797      # it will coredump.
15798      lt_prog_compiler_pic='-fPIC -shared'
15799      ;;
15800
15801    osf3* | osf4* | osf5*)
15802      lt_prog_compiler_wl='-Wl,'
15803      # All OSF/1 code is PIC.
15804      lt_prog_compiler_static='-non_shared'
15805      ;;
15806
15807    rdos*)
15808      lt_prog_compiler_static='-non_shared'
15809      ;;
15810
15811    solaris*)
15812      lt_prog_compiler_pic='-KPIC'
15813      lt_prog_compiler_static='-Bstatic'
15814      case $cc_basename in
15815      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15816	lt_prog_compiler_wl='-Qoption ld ';;
15817      *)
15818	lt_prog_compiler_wl='-Wl,';;
15819      esac
15820      ;;
15821
15822    sunos4*)
15823      lt_prog_compiler_wl='-Qoption ld '
15824      lt_prog_compiler_pic='-PIC'
15825      lt_prog_compiler_static='-Bstatic'
15826      ;;
15827
15828    sysv4 | sysv4.2uw2* | sysv4.3*)
15829      lt_prog_compiler_wl='-Wl,'
15830      lt_prog_compiler_pic='-KPIC'
15831      lt_prog_compiler_static='-Bstatic'
15832      ;;
15833
15834    sysv4*MP*)
15835      if test -d /usr/nec; then
15836	lt_prog_compiler_pic='-Kconform_pic'
15837	lt_prog_compiler_static='-Bstatic'
15838      fi
15839      ;;
15840
15841    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15842      lt_prog_compiler_wl='-Wl,'
15843      lt_prog_compiler_pic='-KPIC'
15844      lt_prog_compiler_static='-Bstatic'
15845      ;;
15846
15847    unicos*)
15848      lt_prog_compiler_wl='-Wl,'
15849      lt_prog_compiler_can_build_shared=no
15850      ;;
15851
15852    uts4*)
15853      lt_prog_compiler_pic='-pic'
15854      lt_prog_compiler_static='-Bstatic'
15855      ;;
15856
15857    *)
15858      lt_prog_compiler_can_build_shared=no
15859      ;;
15860    esac
15861  fi
15862
15863case $host_os in
15864  # For platforms that do not support PIC, -DPIC is meaningless:
15865  *djgpp*)
15866    lt_prog_compiler_pic=
15867    ;;
15868  *)
15869    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15870    ;;
15871esac
15872
15873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15874printf %s "checking for $compiler option to produce PIC... " >&6; }
15875if test ${lt_cv_prog_compiler_pic+y}
15876then :
15877  printf %s "(cached) " >&6
15878else $as_nop
15879  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15880fi
15881{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15882printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15883lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15884
15885#
15886# Check to make sure the PIC flag actually works.
15887#
15888if test -n "$lt_prog_compiler_pic"; then
15889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15890printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15891if test ${lt_cv_prog_compiler_pic_works+y}
15892then :
15893  printf %s "(cached) " >&6
15894else $as_nop
15895  lt_cv_prog_compiler_pic_works=no
15896   ac_outfile=conftest.$ac_objext
15897   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15898   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15899   # Insert the option either (1) after the last *FLAGS variable, or
15900   # (2) before a word containing "conftest.", or (3) at the end.
15901   # Note that $ac_compile itself does not contain backslashes and begins
15902   # with a dollar sign (not a hyphen), so the echo should work correctly.
15903   # The option is referenced via a variable to avoid confusing sed.
15904   lt_compile=`echo "$ac_compile" | $SED \
15905   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15906   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15907   -e 's:$: $lt_compiler_flag:'`
15908   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15909   (eval "$lt_compile" 2>conftest.err)
15910   ac_status=$?
15911   cat conftest.err >&5
15912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913   if (exit $ac_status) && test -s "$ac_outfile"; then
15914     # The compiler can only warn and ignore the option if not recognized
15915     # So say no if there are warnings other than the usual output.
15916     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15917     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15918     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15919       lt_cv_prog_compiler_pic_works=yes
15920     fi
15921   fi
15922   $RM conftest*
15923
15924fi
15925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15926printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15927
15928if test yes = "$lt_cv_prog_compiler_pic_works"; then
15929    case $lt_prog_compiler_pic in
15930     "" | " "*) ;;
15931     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15932     esac
15933else
15934    lt_prog_compiler_pic=
15935     lt_prog_compiler_can_build_shared=no
15936fi
15937
15938fi
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950#
15951# Check to make sure the static flag actually works.
15952#
15953wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15955printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15956if test ${lt_cv_prog_compiler_static_works+y}
15957then :
15958  printf %s "(cached) " >&6
15959else $as_nop
15960  lt_cv_prog_compiler_static_works=no
15961   save_LDFLAGS=$LDFLAGS
15962   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15963   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15964   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15965     # The linker can only warn and ignore the option if not recognized
15966     # So say no if there are warnings
15967     if test -s conftest.err; then
15968       # Append any errors to the config.log.
15969       cat conftest.err 1>&5
15970       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15971       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15972       if diff conftest.exp conftest.er2 >/dev/null; then
15973         lt_cv_prog_compiler_static_works=yes
15974       fi
15975     else
15976       lt_cv_prog_compiler_static_works=yes
15977     fi
15978   fi
15979   $RM -r conftest*
15980   LDFLAGS=$save_LDFLAGS
15981
15982fi
15983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15984printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
15985
15986if test yes = "$lt_cv_prog_compiler_static_works"; then
15987    :
15988else
15989    lt_prog_compiler_static=
15990fi
15991
15992
15993
15994
15995
15996
15997
15998  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15999printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16000if test ${lt_cv_prog_compiler_c_o+y}
16001then :
16002  printf %s "(cached) " >&6
16003else $as_nop
16004  lt_cv_prog_compiler_c_o=no
16005   $RM -r conftest 2>/dev/null
16006   mkdir conftest
16007   cd conftest
16008   mkdir out
16009   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16010
16011   lt_compiler_flag="-o out/conftest2.$ac_objext"
16012   # Insert the option either (1) after the last *FLAGS variable, or
16013   # (2) before a word containing "conftest.", or (3) at the end.
16014   # Note that $ac_compile itself does not contain backslashes and begins
16015   # with a dollar sign (not a hyphen), so the echo should work correctly.
16016   lt_compile=`echo "$ac_compile" | $SED \
16017   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16018   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16019   -e 's:$: $lt_compiler_flag:'`
16020   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16021   (eval "$lt_compile" 2>out/conftest.err)
16022   ac_status=$?
16023   cat out/conftest.err >&5
16024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16026   then
16027     # The compiler can only warn and ignore the option if not recognized
16028     # So say no if there are warnings
16029     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16030     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16031     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16032       lt_cv_prog_compiler_c_o=yes
16033     fi
16034   fi
16035   chmod u+w . 2>&5
16036   $RM conftest*
16037   # SGI C++ compiler will create directory out/ii_files/ for
16038   # template instantiation
16039   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16040   $RM out/* && rmdir out
16041   cd ..
16042   $RM -r conftest
16043   $RM conftest*
16044
16045fi
16046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16047printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16048
16049
16050
16051
16052
16053
16054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16055printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16056if test ${lt_cv_prog_compiler_c_o+y}
16057then :
16058  printf %s "(cached) " >&6
16059else $as_nop
16060  lt_cv_prog_compiler_c_o=no
16061   $RM -r conftest 2>/dev/null
16062   mkdir conftest
16063   cd conftest
16064   mkdir out
16065   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16066
16067   lt_compiler_flag="-o out/conftest2.$ac_objext"
16068   # Insert the option either (1) after the last *FLAGS variable, or
16069   # (2) before a word containing "conftest.", or (3) at the end.
16070   # Note that $ac_compile itself does not contain backslashes and begins
16071   # with a dollar sign (not a hyphen), so the echo should work correctly.
16072   lt_compile=`echo "$ac_compile" | $SED \
16073   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16074   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16075   -e 's:$: $lt_compiler_flag:'`
16076   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16077   (eval "$lt_compile" 2>out/conftest.err)
16078   ac_status=$?
16079   cat out/conftest.err >&5
16080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16082   then
16083     # The compiler can only warn and ignore the option if not recognized
16084     # So say no if there are warnings
16085     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16086     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16087     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16088       lt_cv_prog_compiler_c_o=yes
16089     fi
16090   fi
16091   chmod u+w . 2>&5
16092   $RM conftest*
16093   # SGI C++ compiler will create directory out/ii_files/ for
16094   # template instantiation
16095   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16096   $RM out/* && rmdir out
16097   cd ..
16098   $RM -r conftest
16099   $RM conftest*
16100
16101fi
16102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16103printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
16104
16105
16106
16107
16108hard_links=nottested
16109if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16110  # do not overwrite the value of need_locks provided by the user
16111  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16112printf %s "checking if we can lock with hard links... " >&6; }
16113  hard_links=yes
16114  $RM conftest*
16115  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16116  touch conftest.a
16117  ln conftest.a conftest.b 2>&5 || hard_links=no
16118  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16119  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16120printf "%s\n" "$hard_links" >&6; }
16121  if test no = "$hard_links"; then
16122    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16123printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16124    need_locks=warn
16125  fi
16126else
16127  need_locks=no
16128fi
16129
16130
16131
16132
16133
16134
16135  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16136printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16137
16138  runpath_var=
16139  allow_undefined_flag=
16140  always_export_symbols=no
16141  archive_cmds=
16142  archive_expsym_cmds=
16143  compiler_needs_object=no
16144  enable_shared_with_static_runtimes=no
16145  export_dynamic_flag_spec=
16146  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16147  hardcode_automatic=no
16148  hardcode_direct=no
16149  hardcode_direct_absolute=no
16150  hardcode_libdir_flag_spec=
16151  hardcode_libdir_separator=
16152  hardcode_minus_L=no
16153  hardcode_shlibpath_var=unsupported
16154  inherit_rpath=no
16155  link_all_deplibs=unknown
16156  module_cmds=
16157  module_expsym_cmds=
16158  old_archive_from_new_cmds=
16159  old_archive_from_expsyms_cmds=
16160  thread_safe_flag_spec=
16161  whole_archive_flag_spec=
16162  # include_expsyms should be a list of space-separated symbols to be *always*
16163  # included in the symbol list
16164  include_expsyms=
16165  # exclude_expsyms can be an extended regexp of symbols to exclude
16166  # it will be wrapped by ' (' and ')$', so one must not match beginning or
16167  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16168  # as well as any symbol that contains 'd'.
16169  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16170  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16171  # platforms (ab)use it in PIC code, but their linkers get confused if
16172  # the symbol is explicitly referenced.  Since portable code cannot
16173  # rely on this symbol name, it's probably fine to never include it in
16174  # preloaded symbol tables.
16175  # Exclude shared library initialization/finalization symbols.
16176  extract_expsyms_cmds=
16177
16178  case $host_os in
16179  cygwin* | mingw* | pw32* | cegcc*)
16180    # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
16181    # When not using gcc, we currently assume that we are using
16182    # Microsoft Visual C++ or Intel C++ Compiler.
16183    if test yes != "$GCC"; then
16184      with_gnu_ld=no
16185    fi
16186    ;;
16187  interix*)
16188    # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
16189    with_gnu_ld=yes
16190    ;;
16191  openbsd* | bitrig*)
16192    with_gnu_ld=no
16193    ;;
16194  esac
16195
16196  ld_shlibs=yes
16197
16198  # On some targets, GNU ld is compatible enough with the native linker
16199  # that we're better off using the native interface for both.
16200  lt_use_gnu_ld_interface=no
16201  if test yes = "$with_gnu_ld"; then
16202    case $host_os in
16203      aix*)
16204	# The AIX port of GNU ld has always aspired to compatibility
16205	# with the native linker.  However, as the warning in the GNU ld
16206	# block says, versions before 2.19.5* couldn't really create working
16207	# shared libraries, regardless of the interface used.
16208	case `$LD -v 2>&1` in
16209	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16210	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16211	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16212	  *)
16213	    lt_use_gnu_ld_interface=yes
16214	    ;;
16215	esac
16216	;;
16217      *)
16218	lt_use_gnu_ld_interface=yes
16219	;;
16220    esac
16221  fi
16222
16223  if test yes = "$lt_use_gnu_ld_interface"; then
16224    # If archive_cmds runs LD, not CC, wlarc should be empty
16225    wlarc='$wl'
16226
16227    # Set some defaults for GNU ld with shared library support. These
16228    # are reset later if shared libraries are not supported. Putting them
16229    # here allows them to be overridden if necessary.
16230    runpath_var=LD_RUN_PATH
16231    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16232    export_dynamic_flag_spec='$wl--export-dynamic'
16233    # ancient GNU ld didn't support --whole-archive et. al.
16234    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16235      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16236    else
16237      whole_archive_flag_spec=
16238    fi
16239    supports_anon_versioning=no
16240    case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
16241      *GNU\ gold*) supports_anon_versioning=yes ;;
16242      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16243      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16244      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16245      *\ 2.11.*) ;; # other 2.11 versions
16246      *) supports_anon_versioning=yes ;;
16247    esac
16248
16249    # See if GNU ld supports shared libraries.
16250    case $host_os in
16251    aix[3-9]*)
16252      # On AIX/PPC, the GNU linker is very broken
16253      if test ia64 != "$host_cpu"; then
16254	ld_shlibs=no
16255	cat <<_LT_EOF 1>&2
16256
16257*** Warning: the GNU linker, at least up to release 2.19, is reported
16258*** to be unable to reliably create shared libraries on AIX.
16259*** Therefore, libtool is disabling shared libraries support.  If you
16260*** really care for shared libraries, you may want to install binutils
16261*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16262*** You will then need to restart the configuration process.
16263
16264_LT_EOF
16265      fi
16266      ;;
16267
16268    amigaos*)
16269      case $host_cpu in
16270      powerpc)
16271            # see comment about AmigaOS4 .so support
16272            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16273            archive_expsym_cmds=''
16274        ;;
16275      m68k)
16276            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)'
16277            hardcode_libdir_flag_spec='-L$libdir'
16278            hardcode_minus_L=yes
16279        ;;
16280      esac
16281      ;;
16282
16283    beos*)
16284      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16285	allow_undefined_flag=unsupported
16286	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16287	# support --undefined.  This deserves some investigation.  FIXME
16288	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16289      else
16290	ld_shlibs=no
16291      fi
16292      ;;
16293
16294    cygwin* | mingw* | pw32* | cegcc*)
16295      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16296      # as there is no search path for DLLs.
16297      hardcode_libdir_flag_spec='-L$libdir'
16298      export_dynamic_flag_spec='$wl--export-all-symbols'
16299      allow_undefined_flag=unsupported
16300      always_export_symbols=no
16301      enable_shared_with_static_runtimes=yes
16302      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'
16303      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16304
16305      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16306        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16307	# If the export-symbols file already is a .def file, use it as
16308	# is; otherwise, prepend EXPORTS...
16309	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16310          cp $export_symbols $output_objdir/$soname.def;
16311        else
16312          echo EXPORTS > $output_objdir/$soname.def;
16313          cat $export_symbols >> $output_objdir/$soname.def;
16314        fi~
16315        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16316      else
16317	ld_shlibs=no
16318      fi
16319      ;;
16320
16321    haiku*)
16322      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16323      link_all_deplibs=yes
16324      ;;
16325
16326    os2*)
16327      hardcode_libdir_flag_spec='-L$libdir'
16328      hardcode_minus_L=yes
16329      allow_undefined_flag=unsupported
16330      shrext_cmds=.dll
16331      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16332	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16333	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16334	$ECHO EXPORTS >> $output_objdir/$libname.def~
16335	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16336	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16337	emximp -o $lib $output_objdir/$libname.def'
16338      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16339	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16340	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16341	$ECHO EXPORTS >> $output_objdir/$libname.def~
16342	prefix_cmds="$SED"~
16343	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16344	  prefix_cmds="$prefix_cmds -e 1d";
16345	fi~
16346	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16347	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16348	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16349	emximp -o $lib $output_objdir/$libname.def'
16350      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16351      enable_shared_with_static_runtimes=yes
16352      file_list_spec='@'
16353      ;;
16354
16355    interix[3-9]*)
16356      hardcode_direct=no
16357      hardcode_shlibpath_var=no
16358      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16359      export_dynamic_flag_spec='$wl-E'
16360      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16361      # Instead, shared libraries are loaded at an image base (0x10000000 by
16362      # default) and relocated if they conflict, which is a slow very memory
16363      # consuming and fragmenting process.  To avoid this, we pick a random,
16364      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16365      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16366      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16367      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'
16368      ;;
16369
16370    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16371      tmp_diet=no
16372      if test linux-dietlibc = "$host_os"; then
16373	case $cc_basename in
16374	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
16375	esac
16376      fi
16377      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16378	 && test no = "$tmp_diet"
16379      then
16380	tmp_addflag=' $pic_flag'
16381	tmp_sharedflag='-shared'
16382	case $cc_basename,$host_cpu in
16383        pgcc*)				# Portland Group C compiler
16384	  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'
16385	  tmp_addflag=' $pic_flag'
16386	  ;;
16387	pgf77* | pgf90* | pgf95* | pgfortran*)
16388					# Portland Group f77 and f90 compilers
16389	  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'
16390	  tmp_addflag=' $pic_flag -Mnomain' ;;
16391	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
16392	  tmp_addflag=' -i_dynamic' ;;
16393	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16394	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16395	ifc* | ifort*)			# Intel Fortran compiler
16396	  tmp_addflag=' -nofor_main' ;;
16397	lf95*)				# Lahey Fortran 8.1
16398	  whole_archive_flag_spec=
16399	  tmp_sharedflag='--shared' ;;
16400        nagfor*)                        # NAGFOR 5.3
16401          tmp_sharedflag='-Wl,-shared' ;;
16402	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16403	  tmp_sharedflag='-qmkshrobj'
16404	  tmp_addflag= ;;
16405	nvcc*)	# Cuda Compiler Driver 2.2
16406	  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'
16407	  compiler_needs_object=yes
16408	  ;;
16409	esac
16410	case `$CC -V 2>&1 | $SED 5q` in
16411	*Sun\ C*)			# Sun C 5.9
16412	  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'
16413	  compiler_needs_object=yes
16414	  tmp_sharedflag='-G' ;;
16415	*Sun\ F*)			# Sun Fortran 8.3
16416	  tmp_sharedflag='-G' ;;
16417	esac
16418	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16419
16420        if test yes = "$supports_anon_versioning"; then
16421          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16422            cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16423            echo "local: *; };" >> $output_objdir/$libname.ver~
16424            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16425        fi
16426
16427	case $cc_basename in
16428	tcc*)
16429	  export_dynamic_flag_spec='-rdynamic'
16430	  ;;
16431	xlf* | bgf* | bgxlf* | mpixlf*)
16432	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16433	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16434	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16435	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16436	  if test yes = "$supports_anon_versioning"; then
16437	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16438              cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16439              echo "local: *; };" >> $output_objdir/$libname.ver~
16440              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16441	  fi
16442	  ;;
16443	esac
16444      else
16445        ld_shlibs=no
16446      fi
16447      ;;
16448
16449    netbsd*)
16450      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16451	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16452	wlarc=
16453      else
16454	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16455	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16456      fi
16457      ;;
16458
16459    solaris*)
16460      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16461	ld_shlibs=no
16462	cat <<_LT_EOF 1>&2
16463
16464*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16465*** create shared libraries on Solaris systems.  Therefore, libtool
16466*** is disabling shared libraries support.  We urge you to upgrade GNU
16467*** binutils to release 2.9.1 or newer.  Another option is to modify
16468*** your PATH or compiler configuration so that the native linker is
16469*** used, and then restart.
16470
16471_LT_EOF
16472      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16473	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16474	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16475      else
16476	ld_shlibs=no
16477      fi
16478      ;;
16479
16480    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16481      case `$LD -v 2>&1` in
16482        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16483	ld_shlibs=no
16484	cat <<_LT_EOF 1>&2
16485
16486*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16487*** reliably create shared libraries on SCO systems.  Therefore, libtool
16488*** is disabling shared libraries support.  We urge you to upgrade GNU
16489*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16490*** your PATH or compiler configuration so that the native linker is
16491*** used, and then restart.
16492
16493_LT_EOF
16494	;;
16495	*)
16496	  # For security reasons, it is highly recommended that you always
16497	  # use absolute paths for naming shared libraries, and exclude the
16498	  # DT_RUNPATH tag from executables and libraries.  But doing so
16499	  # requires that you compile everything twice, which is a pain.
16500	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16501	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16502	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16503	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16504	  else
16505	    ld_shlibs=no
16506	  fi
16507	;;
16508      esac
16509      ;;
16510
16511    sunos4*)
16512      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16513      wlarc=
16514      hardcode_direct=yes
16515      hardcode_shlibpath_var=no
16516      ;;
16517
16518    *)
16519      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16520	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16521	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16522      else
16523	ld_shlibs=no
16524      fi
16525      ;;
16526    esac
16527
16528    if test no = "$ld_shlibs"; then
16529      runpath_var=
16530      hardcode_libdir_flag_spec=
16531      export_dynamic_flag_spec=
16532      whole_archive_flag_spec=
16533    fi
16534  else
16535    # PORTME fill in a description of your system's linker (not GNU ld)
16536    case $host_os in
16537    aix3*)
16538      allow_undefined_flag=unsupported
16539      always_export_symbols=yes
16540      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'
16541      # Note: this linker hardcodes the directories in LIBPATH if there
16542      # are no directories specified by -L.
16543      hardcode_minus_L=yes
16544      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16545	# Neither direct hardcoding nor static linking is supported with a
16546	# broken collect2.
16547	hardcode_direct=unsupported
16548      fi
16549      ;;
16550
16551    aix[4-9]*)
16552      if test ia64 = "$host_cpu"; then
16553	# On IA64, the linker does run time linking by default, so we don't
16554	# have to do anything special.
16555	aix_use_runtimelinking=no
16556	exp_sym_flag='-Bexport'
16557	no_entry_flag=
16558      else
16559	# If we're using GNU nm, then we don't want the "-C" option.
16560	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
16561	# Without the "-l" option, or with the "-B" option, AIX nm treats
16562	# weak defined symbols like other global defined symbols, whereas
16563	# GNU nm marks them as "W".
16564	# While the 'weak' keyword is ignored in the Export File, we need
16565	# it in the Import File for the 'aix-soname' feature, so we have
16566	# to replace the "-B" option with "-P" for AIX nm.
16567	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16568	  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'
16569	else
16570	  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'
16571	fi
16572	aix_use_runtimelinking=no
16573
16574	# Test if we are trying to use run time linking or normal
16575	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16576	# have runtime linking enabled, and use it for executables.
16577	# For shared libraries, we enable/disable runtime linking
16578	# depending on the kind of the shared library created -
16579	# when "with_aix_soname,aix_use_runtimelinking" is:
16580	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
16581	# "aix,yes"  lib.so          shared, rtl:yes, for executables
16582	#            lib.a           static archive
16583	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
16584	#            lib.a(lib.so.V) shared, rtl:no,  for executables
16585	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16586	#            lib.a(lib.so.V) shared, rtl:no
16587	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
16588	#            lib.a           static archive
16589	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16590	  for ld_flag in $LDFLAGS; do
16591	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16592	    aix_use_runtimelinking=yes
16593	    break
16594	  fi
16595	  done
16596	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16597	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
16598	    # so we don't have lib.a shared libs to link our executables.
16599	    # We have to force runtime linking in this case.
16600	    aix_use_runtimelinking=yes
16601	    LDFLAGS="$LDFLAGS -Wl,-brtl"
16602	  fi
16603	  ;;
16604	esac
16605
16606	exp_sym_flag='-bexport'
16607	no_entry_flag='-bnoentry'
16608      fi
16609
16610      # When large executables or shared objects are built, AIX ld can
16611      # have problems creating the table of contents.  If linking a library
16612      # or program results in "error TOC overflow" add -mminimal-toc to
16613      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16614      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16615
16616      archive_cmds=''
16617      hardcode_direct=yes
16618      hardcode_direct_absolute=yes
16619      hardcode_libdir_separator=':'
16620      link_all_deplibs=yes
16621      file_list_spec='$wl-f,'
16622      case $with_aix_soname,$aix_use_runtimelinking in
16623      aix,*) ;; # traditional, no import file
16624      svr4,* | *,yes) # use import file
16625	# The Import File defines what to hardcode.
16626	hardcode_direct=no
16627	hardcode_direct_absolute=no
16628	;;
16629      esac
16630
16631      if test yes = "$GCC"; then
16632	case $host_os in aix4.[012]|aix4.[012].*)
16633	# We only want to do this on AIX 4.2 and lower, the check
16634	# below for broken collect2 doesn't work under 4.3+
16635	  collect2name=`$CC -print-prog-name=collect2`
16636	  if test -f "$collect2name" &&
16637	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16638	  then
16639	  # We have reworked collect2
16640	  :
16641	  else
16642	  # We have old collect2
16643	  hardcode_direct=unsupported
16644	  # It fails to find uninstalled libraries when the uninstalled
16645	  # path is not listed in the libpath.  Setting hardcode_minus_L
16646	  # to unsupported forces relinking
16647	  hardcode_minus_L=yes
16648	  hardcode_libdir_flag_spec='-L$libdir'
16649	  hardcode_libdir_separator=
16650	  fi
16651	  ;;
16652	esac
16653	shared_flag='-shared'
16654	if test yes = "$aix_use_runtimelinking"; then
16655	  shared_flag="$shared_flag "'$wl-G'
16656	fi
16657	# Need to ensure runtime linking is disabled for the traditional
16658	# shared library, or the linker may eventually find shared libraries
16659	# /with/ Import File - we do not want to mix them.
16660	shared_flag_aix='-shared'
16661	shared_flag_svr4='-shared $wl-G'
16662      else
16663	# not using gcc
16664	if test ia64 = "$host_cpu"; then
16665	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16666	# chokes on -Wl,-G. The following line is correct:
16667	  shared_flag='-G'
16668	else
16669	  if test yes = "$aix_use_runtimelinking"; then
16670	    shared_flag='$wl-G'
16671	  else
16672	    shared_flag='$wl-bM:SRE'
16673	  fi
16674	  shared_flag_aix='$wl-bM:SRE'
16675	  shared_flag_svr4='$wl-G'
16676	fi
16677      fi
16678
16679      export_dynamic_flag_spec='$wl-bexpall'
16680      # It seems that -bexpall does not export symbols beginning with
16681      # underscore (_), so it is better to generate a list of symbols to export.
16682      always_export_symbols=yes
16683      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16684	# Warning - without using the other runtime loading flags (-brtl),
16685	# -berok will link without error, but may produce a broken library.
16686	allow_undefined_flag='-berok'
16687        # Determine the default libpath from the value encoded in an
16688        # empty executable.
16689        if test set = "${lt_cv_aix_libpath+set}"; then
16690  aix_libpath=$lt_cv_aix_libpath
16691else
16692  if test ${lt_cv_aix_libpath_+y}
16693then :
16694  printf %s "(cached) " >&6
16695else $as_nop
16696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16697/* end confdefs.h.  */
16698
16699int
16700main (void)
16701{
16702
16703  ;
16704  return 0;
16705}
16706_ACEOF
16707if ac_fn_c_try_link "$LINENO"
16708then :
16709
16710  lt_aix_libpath_sed='
16711      /Import File Strings/,/^$/ {
16712	  /^0/ {
16713	      s/^0  *\([^ ]*\) *$/\1/
16714	      p
16715	  }
16716      }'
16717  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16718  # Check for a 64-bit object if we didn't find anything.
16719  if test -z "$lt_cv_aix_libpath_"; then
16720    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16721  fi
16722fi
16723rm -f core conftest.err conftest.$ac_objext conftest.beam \
16724    conftest$ac_exeext conftest.$ac_ext
16725  if test -z "$lt_cv_aix_libpath_"; then
16726    lt_cv_aix_libpath_=/usr/lib:/lib
16727  fi
16728
16729fi
16730
16731  aix_libpath=$lt_cv_aix_libpath_
16732fi
16733
16734        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16735        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
16736      else
16737	if test ia64 = "$host_cpu"; then
16738	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16739	  allow_undefined_flag="-z nodefs"
16740	  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"
16741	else
16742	 # Determine the default libpath from the value encoded in an
16743	 # empty executable.
16744	 if test set = "${lt_cv_aix_libpath+set}"; then
16745  aix_libpath=$lt_cv_aix_libpath
16746else
16747  if test ${lt_cv_aix_libpath_+y}
16748then :
16749  printf %s "(cached) " >&6
16750else $as_nop
16751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16752/* end confdefs.h.  */
16753
16754int
16755main (void)
16756{
16757
16758  ;
16759  return 0;
16760}
16761_ACEOF
16762if ac_fn_c_try_link "$LINENO"
16763then :
16764
16765  lt_aix_libpath_sed='
16766      /Import File Strings/,/^$/ {
16767	  /^0/ {
16768	      s/^0  *\([^ ]*\) *$/\1/
16769	      p
16770	  }
16771      }'
16772  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16773  # Check for a 64-bit object if we didn't find anything.
16774  if test -z "$lt_cv_aix_libpath_"; then
16775    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16776  fi
16777fi
16778rm -f core conftest.err conftest.$ac_objext conftest.beam \
16779    conftest$ac_exeext conftest.$ac_ext
16780  if test -z "$lt_cv_aix_libpath_"; then
16781    lt_cv_aix_libpath_=/usr/lib:/lib
16782  fi
16783
16784fi
16785
16786  aix_libpath=$lt_cv_aix_libpath_
16787fi
16788
16789	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16790	  # Warning - without using the other run time loading flags,
16791	  # -berok will link without error, but may produce a broken library.
16792	  no_undefined_flag=' $wl-bernotok'
16793	  allow_undefined_flag=' $wl-berok'
16794	  if test yes = "$with_gnu_ld"; then
16795	    # We only use this code for GNU lds that support --whole-archive.
16796	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16797	  else
16798	    # Exported symbols can be pulled into shared objects from archives
16799	    whole_archive_flag_spec='$convenience'
16800	  fi
16801	  archive_cmds_need_lc=yes
16802	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16803	  # -brtl affects multiple linker settings, -berok does not and is overridden later
16804	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16805	  if test svr4 != "$with_aix_soname"; then
16806	    # This is similar to how AIX traditionally builds its shared libraries.
16807	    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'
16808	  fi
16809	  if test aix != "$with_aix_soname"; then
16810	    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'
16811	  else
16812	    # used by -dlpreopen to get the symbols
16813	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16814	  fi
16815	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16816	fi
16817      fi
16818      ;;
16819
16820    amigaos*)
16821      case $host_cpu in
16822      powerpc)
16823            # see comment about AmigaOS4 .so support
16824            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16825            archive_expsym_cmds=''
16826        ;;
16827      m68k)
16828            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)'
16829            hardcode_libdir_flag_spec='-L$libdir'
16830            hardcode_minus_L=yes
16831        ;;
16832      esac
16833      ;;
16834
16835    bsdi[45]*)
16836      export_dynamic_flag_spec=-rdynamic
16837      ;;
16838
16839    cygwin* | mingw* | pw32* | cegcc*)
16840      # When not using gcc, we currently assume that we are using
16841      # Microsoft Visual C++ or Intel C++ Compiler.
16842      # hardcode_libdir_flag_spec is actually meaningless, as there is
16843      # no search path for DLLs.
16844      case $cc_basename in
16845      cl* | icl*)
16846	# Native MSVC or ICC
16847	hardcode_libdir_flag_spec=' '
16848	allow_undefined_flag=unsupported
16849	always_export_symbols=yes
16850	file_list_spec='@'
16851	# Tell ltmain to make .lib files, not .a files.
16852	libext=lib
16853	# Tell ltmain to make .dll files, not .so files.
16854	shrext_cmds=.dll
16855	# FIXME: Setting linknames here is a bad hack.
16856	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16857	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16858            cp "$export_symbols" "$output_objdir/$soname.def";
16859            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16860          else
16861            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16862          fi~
16863          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16864          linknames='
16865	# The linker will not automatically build a static lib if we build a DLL.
16866	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16867	enable_shared_with_static_runtimes=yes
16868	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16869	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16870	# Don't use ranlib
16871	old_postinstall_cmds='chmod 644 $oldlib'
16872	postlink_cmds='lt_outputfile="@OUTPUT@"~
16873          lt_tool_outputfile="@TOOL_OUTPUT@"~
16874          case $lt_outputfile in
16875            *.exe|*.EXE) ;;
16876            *)
16877              lt_outputfile=$lt_outputfile.exe
16878              lt_tool_outputfile=$lt_tool_outputfile.exe
16879              ;;
16880          esac~
16881          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16882            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16883            $RM "$lt_outputfile.manifest";
16884          fi'
16885	;;
16886      *)
16887	# Assume MSVC and ICC wrapper
16888	hardcode_libdir_flag_spec=' '
16889	allow_undefined_flag=unsupported
16890	# Tell ltmain to make .lib files, not .a files.
16891	libext=lib
16892	# Tell ltmain to make .dll files, not .so files.
16893	shrext_cmds=.dll
16894	# FIXME: Setting linknames here is a bad hack.
16895	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16896	# The linker will automatically build a .lib file if we build a DLL.
16897	old_archive_from_new_cmds='true'
16898	# FIXME: Should let the user specify the lib program.
16899	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16900	enable_shared_with_static_runtimes=yes
16901	;;
16902      esac
16903      ;;
16904
16905    darwin* | rhapsody*)
16906
16907
16908  archive_cmds_need_lc=no
16909  hardcode_direct=no
16910  hardcode_automatic=yes
16911  hardcode_shlibpath_var=unsupported
16912  if test yes = "$lt_cv_ld_force_load"; then
16913    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\"`'
16914
16915  else
16916    whole_archive_flag_spec=''
16917  fi
16918  link_all_deplibs=yes
16919  allow_undefined_flag=$_lt_dar_allow_undefined
16920  case $cc_basename in
16921     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16922     *) _lt_dar_can_shared=$GCC ;;
16923  esac
16924  if test yes = "$_lt_dar_can_shared"; then
16925    output_verbose_link_cmd=func_echo_all
16926    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16927    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16928    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"
16929    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"
16930
16931  else
16932  ld_shlibs=no
16933  fi
16934
16935      ;;
16936
16937    dgux*)
16938      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16939      hardcode_libdir_flag_spec='-L$libdir'
16940      hardcode_shlibpath_var=no
16941      ;;
16942
16943    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16944    # support.  Future versions do this automatically, but an explicit c++rt0.o
16945    # does not break anything, and helps significantly (at the cost of a little
16946    # extra space).
16947    freebsd2.2*)
16948      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16949      hardcode_libdir_flag_spec='-R$libdir'
16950      hardcode_direct=yes
16951      hardcode_shlibpath_var=no
16952      ;;
16953
16954    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16955    freebsd2.*)
16956      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16957      hardcode_direct=yes
16958      hardcode_minus_L=yes
16959      hardcode_shlibpath_var=no
16960      ;;
16961
16962    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16963    freebsd* | dragonfly* | midnightbsd*)
16964      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16965      hardcode_libdir_flag_spec='-R$libdir'
16966      hardcode_direct=yes
16967      hardcode_shlibpath_var=no
16968      ;;
16969
16970    hpux9*)
16971      if test yes = "$GCC"; then
16972	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'
16973      else
16974	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'
16975      fi
16976      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16977      hardcode_libdir_separator=:
16978      hardcode_direct=yes
16979
16980      # hardcode_minus_L: Not really in the search PATH,
16981      # but as the default location of the library.
16982      hardcode_minus_L=yes
16983      export_dynamic_flag_spec='$wl-E'
16984      ;;
16985
16986    hpux10*)
16987      if test yes,no = "$GCC,$with_gnu_ld"; then
16988	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16989      else
16990	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16991      fi
16992      if test no = "$with_gnu_ld"; then
16993	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16994	hardcode_libdir_separator=:
16995	hardcode_direct=yes
16996	hardcode_direct_absolute=yes
16997	export_dynamic_flag_spec='$wl-E'
16998	# hardcode_minus_L: Not really in the search PATH,
16999	# but as the default location of the library.
17000	hardcode_minus_L=yes
17001      fi
17002      ;;
17003
17004    hpux11*)
17005      if test yes,no = "$GCC,$with_gnu_ld"; then
17006	case $host_cpu in
17007	hppa*64*)
17008	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17009	  ;;
17010	ia64*)
17011	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17012	  ;;
17013	*)
17014	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17015	  ;;
17016	esac
17017      else
17018	case $host_cpu in
17019	hppa*64*)
17020	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17021	  ;;
17022	ia64*)
17023	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17024	  ;;
17025	*)
17026
17027	  # Older versions of the 11.00 compiler do not understand -b yet
17028	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17029	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17030printf %s "checking if $CC understands -b... " >&6; }
17031if test ${lt_cv_prog_compiler__b+y}
17032then :
17033  printf %s "(cached) " >&6
17034else $as_nop
17035  lt_cv_prog_compiler__b=no
17036   save_LDFLAGS=$LDFLAGS
17037   LDFLAGS="$LDFLAGS -b"
17038   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17039   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17040     # The linker can only warn and ignore the option if not recognized
17041     # So say no if there are warnings
17042     if test -s conftest.err; then
17043       # Append any errors to the config.log.
17044       cat conftest.err 1>&5
17045       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17046       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17047       if diff conftest.exp conftest.er2 >/dev/null; then
17048         lt_cv_prog_compiler__b=yes
17049       fi
17050     else
17051       lt_cv_prog_compiler__b=yes
17052     fi
17053   fi
17054   $RM -r conftest*
17055   LDFLAGS=$save_LDFLAGS
17056
17057fi
17058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17059printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
17060
17061if test yes = "$lt_cv_prog_compiler__b"; then
17062    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17063else
17064    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17065fi
17066
17067	  ;;
17068	esac
17069      fi
17070      if test no = "$with_gnu_ld"; then
17071	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17072	hardcode_libdir_separator=:
17073
17074	case $host_cpu in
17075	hppa*64*|ia64*)
17076	  hardcode_direct=no
17077	  hardcode_shlibpath_var=no
17078	  ;;
17079	*)
17080	  hardcode_direct=yes
17081	  hardcode_direct_absolute=yes
17082	  export_dynamic_flag_spec='$wl-E'
17083
17084	  # hardcode_minus_L: Not really in the search PATH,
17085	  # but as the default location of the library.
17086	  hardcode_minus_L=yes
17087	  ;;
17088	esac
17089      fi
17090      ;;
17091
17092    irix5* | irix6* | nonstopux*)
17093      if test yes = "$GCC"; then
17094	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'
17095	# Try to use the -exported_symbol ld option, if it does not
17096	# work, assume that -exports_file does not work either and
17097	# implicitly export all symbols.
17098	# This should be the same for all languages, so no per-tag cache variable.
17099	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17100printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17101if test ${lt_cv_irix_exported_symbol+y}
17102then :
17103  printf %s "(cached) " >&6
17104else $as_nop
17105  save_LDFLAGS=$LDFLAGS
17106	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17107	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17108/* end confdefs.h.  */
17109int foo (void) { return 0; }
17110_ACEOF
17111if ac_fn_c_try_link "$LINENO"
17112then :
17113  lt_cv_irix_exported_symbol=yes
17114else $as_nop
17115  lt_cv_irix_exported_symbol=no
17116fi
17117rm -f core conftest.err conftest.$ac_objext conftest.beam \
17118    conftest$ac_exeext conftest.$ac_ext
17119           LDFLAGS=$save_LDFLAGS
17120fi
17121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17122printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
17123	if test yes = "$lt_cv_irix_exported_symbol"; then
17124          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'
17125	fi
17126      else
17127	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'
17128	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'
17129      fi
17130      archive_cmds_need_lc='no'
17131      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17132      hardcode_libdir_separator=:
17133      inherit_rpath=yes
17134      link_all_deplibs=yes
17135      ;;
17136
17137    linux*)
17138      case $cc_basename in
17139      tcc*)
17140	# Fabrice Bellard et al's Tiny C Compiler
17141	ld_shlibs=yes
17142	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17143	;;
17144      esac
17145      ;;
17146
17147    netbsd*)
17148      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17149	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17150      else
17151	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17152      fi
17153      hardcode_libdir_flag_spec='-R$libdir'
17154      hardcode_direct=yes
17155      hardcode_shlibpath_var=no
17156      ;;
17157
17158    newsos6)
17159      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17160      hardcode_direct=yes
17161      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17162      hardcode_libdir_separator=:
17163      hardcode_shlibpath_var=no
17164      ;;
17165
17166    *nto* | *qnx*)
17167      ;;
17168
17169    openbsd* | bitrig*)
17170      if test -f /usr/libexec/ld.so; then
17171	hardcode_direct=yes
17172	hardcode_shlibpath_var=no
17173	hardcode_direct_absolute=yes
17174	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17175	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17176	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17177	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17178	  export_dynamic_flag_spec='$wl-E'
17179	else
17180	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17181	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17182	fi
17183      else
17184	ld_shlibs=no
17185      fi
17186      ;;
17187
17188    os2*)
17189      hardcode_libdir_flag_spec='-L$libdir'
17190      hardcode_minus_L=yes
17191      allow_undefined_flag=unsupported
17192      shrext_cmds=.dll
17193      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17194	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17195	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17196	$ECHO EXPORTS >> $output_objdir/$libname.def~
17197	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17198	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17199	emximp -o $lib $output_objdir/$libname.def'
17200      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17201	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17202	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17203	$ECHO EXPORTS >> $output_objdir/$libname.def~
17204	prefix_cmds="$SED"~
17205	if test EXPORTS = "`$SED 1q $export_symbols`"; then
17206	  prefix_cmds="$prefix_cmds -e 1d";
17207	fi~
17208	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17209	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17210	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17211	emximp -o $lib $output_objdir/$libname.def'
17212      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17213      enable_shared_with_static_runtimes=yes
17214      file_list_spec='@'
17215      ;;
17216
17217    osf3*)
17218      if test yes = "$GCC"; then
17219	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17220	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'
17221      else
17222	allow_undefined_flag=' -expect_unresolved \*'
17223	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'
17224      fi
17225      archive_cmds_need_lc='no'
17226      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17227      hardcode_libdir_separator=:
17228      ;;
17229
17230    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17231      if test yes = "$GCC"; then
17232	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17233	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'
17234	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17235      else
17236	allow_undefined_flag=' -expect_unresolved \*'
17237	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'
17238	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~
17239          $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'
17240
17241	# Both c and cxx compiler support -rpath directly
17242	hardcode_libdir_flag_spec='-rpath $libdir'
17243      fi
17244      archive_cmds_need_lc='no'
17245      hardcode_libdir_separator=:
17246      ;;
17247
17248    solaris*)
17249      no_undefined_flag=' -z defs'
17250      if test yes = "$GCC"; then
17251	wlarc='$wl'
17252	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17253	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17254          $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'
17255      else
17256	case `$CC -V 2>&1` in
17257	*"Compilers 5.0"*)
17258	  wlarc=''
17259	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17260	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17261            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17262	  ;;
17263	*)
17264	  wlarc='$wl'
17265	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17266	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17267            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17268	  ;;
17269	esac
17270      fi
17271      hardcode_libdir_flag_spec='-R$libdir'
17272      hardcode_shlibpath_var=no
17273      case $host_os in
17274      solaris2.[0-5] | solaris2.[0-5].*) ;;
17275      *)
17276	# The compiler driver will combine and reorder linker options,
17277	# but understands '-z linker_flag'.  GCC discards it without '$wl',
17278	# but is careful enough not to reorder.
17279	# Supported since Solaris 2.6 (maybe 2.5.1?)
17280	if test yes = "$GCC"; then
17281	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17282	else
17283	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17284	fi
17285	;;
17286      esac
17287      link_all_deplibs=yes
17288      ;;
17289
17290    sunos4*)
17291      if test sequent = "$host_vendor"; then
17292	# Use $CC to link under sequent, because it throws in some extra .o
17293	# files that make .init and .fini sections work.
17294	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17295      else
17296	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17297      fi
17298      hardcode_libdir_flag_spec='-L$libdir'
17299      hardcode_direct=yes
17300      hardcode_minus_L=yes
17301      hardcode_shlibpath_var=no
17302      ;;
17303
17304    sysv4)
17305      case $host_vendor in
17306	sni)
17307	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17308	  hardcode_direct=yes # is this really true???
17309	;;
17310	siemens)
17311	  ## LD is ld it makes a PLAMLIB
17312	  ## CC just makes a GrossModule.
17313	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17314	  reload_cmds='$CC -r -o $output$reload_objs'
17315	  hardcode_direct=no
17316        ;;
17317	motorola)
17318	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17319	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17320	;;
17321      esac
17322      runpath_var='LD_RUN_PATH'
17323      hardcode_shlibpath_var=no
17324      ;;
17325
17326    sysv4.3*)
17327      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17328      hardcode_shlibpath_var=no
17329      export_dynamic_flag_spec='-Bexport'
17330      ;;
17331
17332    sysv4*MP*)
17333      if test -d /usr/nec; then
17334	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17335	hardcode_shlibpath_var=no
17336	runpath_var=LD_RUN_PATH
17337	hardcode_runpath_var=yes
17338	ld_shlibs=yes
17339      fi
17340      ;;
17341
17342    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17343      no_undefined_flag='$wl-z,text'
17344      archive_cmds_need_lc=no
17345      hardcode_shlibpath_var=no
17346      runpath_var='LD_RUN_PATH'
17347
17348      if test yes = "$GCC"; then
17349	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17350	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17351      else
17352	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17353	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17354      fi
17355      ;;
17356
17357    sysv5* | sco3.2v5* | sco5v6*)
17358      # Note: We CANNOT use -z defs as we might desire, because we do not
17359      # link with -lc, and that would cause any symbols used from libc to
17360      # always be unresolved, which means just about no library would
17361      # ever link correctly.  If we're not using GNU ld we use -z text
17362      # though, which does catch some bad symbols but isn't as heavy-handed
17363      # as -z defs.
17364      no_undefined_flag='$wl-z,text'
17365      allow_undefined_flag='$wl-z,nodefs'
17366      archive_cmds_need_lc=no
17367      hardcode_shlibpath_var=no
17368      hardcode_libdir_flag_spec='$wl-R,$libdir'
17369      hardcode_libdir_separator=':'
17370      link_all_deplibs=yes
17371      export_dynamic_flag_spec='$wl-Bexport'
17372      runpath_var='LD_RUN_PATH'
17373
17374      if test yes = "$GCC"; then
17375	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17376	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17377      else
17378	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17379	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17380      fi
17381      ;;
17382
17383    uts4*)
17384      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17385      hardcode_libdir_flag_spec='-L$libdir'
17386      hardcode_shlibpath_var=no
17387      ;;
17388
17389    *)
17390      ld_shlibs=no
17391      ;;
17392    esac
17393
17394    if test sni = "$host_vendor"; then
17395      case $host in
17396      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17397	export_dynamic_flag_spec='$wl-Blargedynsym'
17398	;;
17399      esac
17400    fi
17401  fi
17402
17403{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17404printf "%s\n" "$ld_shlibs" >&6; }
17405test no = "$ld_shlibs" && can_build_shared=no
17406
17407with_gnu_ld=$with_gnu_ld
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419
17420
17421
17422
17423#
17424# Do we need to explicitly link libc?
17425#
17426case "x$archive_cmds_need_lc" in
17427x|xyes)
17428  # Assume -lc should be added
17429  archive_cmds_need_lc=yes
17430
17431  if test yes,yes = "$GCC,$enable_shared"; then
17432    case $archive_cmds in
17433    *'~'*)
17434      # FIXME: we may have to deal with multi-command sequences.
17435      ;;
17436    '$CC '*)
17437      # Test whether the compiler implicitly links with -lc since on some
17438      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17439      # to ld, don't add -lc before -lgcc.
17440      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17441printf %s "checking whether -lc should be explicitly linked in... " >&6; }
17442if test ${lt_cv_archive_cmds_need_lc+y}
17443then :
17444  printf %s "(cached) " >&6
17445else $as_nop
17446  $RM conftest*
17447	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17448
17449	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17450  (eval $ac_compile) 2>&5
17451  ac_status=$?
17452  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17453  test $ac_status = 0; } 2>conftest.err; then
17454	  soname=conftest
17455	  lib=conftest
17456	  libobjs=conftest.$ac_objext
17457	  deplibs=
17458	  wl=$lt_prog_compiler_wl
17459	  pic_flag=$lt_prog_compiler_pic
17460	  compiler_flags=-v
17461	  linker_flags=-v
17462	  verstring=
17463	  output_objdir=.
17464	  libname=conftest
17465	  lt_save_allow_undefined_flag=$allow_undefined_flag
17466	  allow_undefined_flag=
17467	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17468  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17469  ac_status=$?
17470  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17471  test $ac_status = 0; }
17472	  then
17473	    lt_cv_archive_cmds_need_lc=no
17474	  else
17475	    lt_cv_archive_cmds_need_lc=yes
17476	  fi
17477	  allow_undefined_flag=$lt_save_allow_undefined_flag
17478	else
17479	  cat conftest.err 1>&5
17480	fi
17481	$RM conftest*
17482
17483fi
17484{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17485printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
17486      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17487      ;;
17488    esac
17489  fi
17490  ;;
17491esac
17492
17493
17494
17495
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17645printf %s "checking dynamic linker characteristics... " >&6; }
17646
17647if test yes = "$GCC"; then
17648  case $host_os in
17649    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17650    *) lt_awk_arg='/^libraries:/' ;;
17651  esac
17652  case $host_os in
17653    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17654    *) lt_sed_strip_eq='s|=/|/|g' ;;
17655  esac
17656  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17657  case $lt_search_path_spec in
17658  *\;*)
17659    # if the path contains ";" then we assume it to be the separator
17660    # otherwise default to the standard path separator (i.e. ":") - it is
17661    # assumed that no part of a normal pathname contains ";" but that should
17662    # okay in the real world where ";" in dirpaths is itself problematic.
17663    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17664    ;;
17665  *)
17666    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17667    ;;
17668  esac
17669  # Ok, now we have the path, separated by spaces, we can step through it
17670  # and add multilib dir if necessary...
17671  lt_tmp_lt_search_path_spec=
17672  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17673  # ...but if some path component already ends with the multilib dir we assume
17674  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17675  case "$lt_multi_os_dir; $lt_search_path_spec " in
17676  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17677    lt_multi_os_dir=
17678    ;;
17679  esac
17680  for lt_sys_path in $lt_search_path_spec; do
17681    if test -d "$lt_sys_path$lt_multi_os_dir"; then
17682      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17683    elif test -n "$lt_multi_os_dir"; then
17684      test -d "$lt_sys_path" && \
17685	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17686    fi
17687  done
17688  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17689BEGIN {RS = " "; FS = "/|\n";} {
17690  lt_foo = "";
17691  lt_count = 0;
17692  for (lt_i = NF; lt_i > 0; lt_i--) {
17693    if ($lt_i != "" && $lt_i != ".") {
17694      if ($lt_i == "..") {
17695        lt_count++;
17696      } else {
17697        if (lt_count == 0) {
17698          lt_foo = "/" $lt_i lt_foo;
17699        } else {
17700          lt_count--;
17701        }
17702      }
17703    }
17704  }
17705  if (lt_foo != "") { lt_freq[lt_foo]++; }
17706  if (lt_freq[lt_foo] == 1) { print lt_foo; }
17707}'`
17708  # AWK program above erroneously prepends '/' to C:/dos/paths
17709  # for these hosts.
17710  case $host_os in
17711    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17712      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17713  esac
17714  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17715else
17716  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17717fi
17718library_names_spec=
17719libname_spec='lib$name'
17720soname_spec=
17721shrext_cmds=.so
17722postinstall_cmds=
17723postuninstall_cmds=
17724finish_cmds=
17725finish_eval=
17726shlibpath_var=
17727shlibpath_overrides_runpath=unknown
17728version_type=none
17729dynamic_linker="$host_os ld.so"
17730sys_lib_dlsearch_path_spec="/lib /usr/lib"
17731need_lib_prefix=unknown
17732hardcode_into_libs=no
17733
17734# when you set need_version to no, make sure it does not cause -set_version
17735# flags to be left without arguments
17736need_version=unknown
17737
17738
17739
17740case $host_os in
17741aix3*)
17742  version_type=linux # correct to gnu/linux during the next big refactor
17743  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17744  shlibpath_var=LIBPATH
17745
17746  # AIX 3 has no versioning support, so we append a major version to the name.
17747  soname_spec='$libname$release$shared_ext$major'
17748  ;;
17749
17750aix[4-9]*)
17751  version_type=linux # correct to gnu/linux during the next big refactor
17752  need_lib_prefix=no
17753  need_version=no
17754  hardcode_into_libs=yes
17755  if test ia64 = "$host_cpu"; then
17756    # AIX 5 supports IA64
17757    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17758    shlibpath_var=LD_LIBRARY_PATH
17759  else
17760    # With GCC up to 2.95.x, collect2 would create an import file
17761    # for dependence libraries.  The import file would start with
17762    # the line '#! .'.  This would cause the generated library to
17763    # depend on '.', always an invalid library.  This was fixed in
17764    # development snapshots of GCC prior to 3.0.
17765    case $host_os in
17766      aix4 | aix4.[01] | aix4.[01].*)
17767      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17768	   echo ' yes '
17769	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17770	:
17771      else
17772	can_build_shared=no
17773      fi
17774      ;;
17775    esac
17776    # Using Import Files as archive members, it is possible to support
17777    # filename-based versioning of shared library archives on AIX. While
17778    # this would work for both with and without runtime linking, it will
17779    # prevent static linking of such archives. So we do filename-based
17780    # shared library versioning with .so extension only, which is used
17781    # when both runtime linking and shared linking is enabled.
17782    # Unfortunately, runtime linking may impact performance, so we do
17783    # not want this to be the default eventually. Also, we use the
17784    # versioned .so libs for executables only if there is the -brtl
17785    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17786    # To allow for filename-based versioning support, we need to create
17787    # libNAME.so.V as an archive file, containing:
17788    # *) an Import File, referring to the versioned filename of the
17789    #    archive as well as the shared archive member, telling the
17790    #    bitwidth (32 or 64) of that shared object, and providing the
17791    #    list of exported symbols of that shared object, eventually
17792    #    decorated with the 'weak' keyword
17793    # *) the shared object with the F_LOADONLY flag set, to really avoid
17794    #    it being seen by the linker.
17795    # At run time we better use the real file rather than another symlink,
17796    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17797
17798    case $with_aix_soname,$aix_use_runtimelinking in
17799    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17800    # soname into executable. Probably we can add versioning support to
17801    # collect2, so additional links can be useful in future.
17802    aix,yes) # traditional libtool
17803      dynamic_linker='AIX unversionable lib.so'
17804      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17805      # instead of lib<name>.a to let people know that these are not
17806      # typical AIX shared libraries.
17807      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17808      ;;
17809    aix,no) # traditional AIX only
17810      dynamic_linker='AIX lib.a(lib.so.V)'
17811      # We preserve .a as extension for shared libraries through AIX4.2
17812      # and later when we are not doing run time linking.
17813      library_names_spec='$libname$release.a $libname.a'
17814      soname_spec='$libname$release$shared_ext$major'
17815      ;;
17816    svr4,*) # full svr4 only
17817      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17818      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17819      # We do not specify a path in Import Files, so LIBPATH fires.
17820      shlibpath_overrides_runpath=yes
17821      ;;
17822    *,yes) # both, prefer svr4
17823      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17824      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17825      # unpreferred sharedlib libNAME.a needs extra handling
17826      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"'
17827      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"'
17828      # We do not specify a path in Import Files, so LIBPATH fires.
17829      shlibpath_overrides_runpath=yes
17830      ;;
17831    *,no) # both, prefer aix
17832      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17833      library_names_spec='$libname$release.a $libname.a'
17834      soname_spec='$libname$release$shared_ext$major'
17835      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17836      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)'
17837      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"'
17838      ;;
17839    esac
17840    shlibpath_var=LIBPATH
17841  fi
17842  ;;
17843
17844amigaos*)
17845  case $host_cpu in
17846  powerpc)
17847    # Since July 2007 AmigaOS4 officially supports .so libraries.
17848    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17849    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17850    ;;
17851  m68k)
17852    library_names_spec='$libname.ixlibrary $libname.a'
17853    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17854    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'
17855    ;;
17856  esac
17857  ;;
17858
17859beos*)
17860  library_names_spec='$libname$shared_ext'
17861  dynamic_linker="$host_os ld.so"
17862  shlibpath_var=LIBRARY_PATH
17863  ;;
17864
17865bsdi[45]*)
17866  version_type=linux # correct to gnu/linux during the next big refactor
17867  need_version=no
17868  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17869  soname_spec='$libname$release$shared_ext$major'
17870  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17871  shlibpath_var=LD_LIBRARY_PATH
17872  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17873  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17874  # the default ld.so.conf also contains /usr/contrib/lib and
17875  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17876  # libtool to hard-code these into programs
17877  ;;
17878
17879cygwin* | mingw* | pw32* | cegcc*)
17880  version_type=windows
17881  shrext_cmds=.dll
17882  need_version=no
17883  need_lib_prefix=no
17884
17885  case $GCC,$cc_basename in
17886  yes,*)
17887    # gcc
17888    library_names_spec='$libname.dll.a'
17889    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17890    postinstall_cmds='base_file=`basename \$file`~
17891      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17892      dldir=$destdir/`dirname \$dlpath`~
17893      test -d \$dldir || mkdir -p \$dldir~
17894      $install_prog $dir/$dlname \$dldir/$dlname~
17895      chmod a+x \$dldir/$dlname~
17896      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17897        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17898      fi'
17899    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17900      dlpath=$dir/\$dldll~
17901       $RM \$dlpath'
17902    shlibpath_overrides_runpath=yes
17903
17904    case $host_os in
17905    cygwin*)
17906      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17907      soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17908
17909      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17910      ;;
17911    mingw* | cegcc*)
17912      # MinGW DLLs use traditional 'lib' prefix
17913      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17914      ;;
17915    pw32*)
17916      # pw32 DLLs use 'pw' prefix rather than 'lib'
17917      library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17918      ;;
17919    esac
17920    dynamic_linker='Win32 ld.exe'
17921    ;;
17922
17923  *,cl* | *,icl*)
17924    # Native MSVC or ICC
17925    libname_spec='$name'
17926    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17927    library_names_spec='$libname.dll.lib'
17928
17929    case $build_os in
17930    mingw*)
17931      sys_lib_search_path_spec=
17932      lt_save_ifs=$IFS
17933      IFS=';'
17934      for lt_path in $LIB
17935      do
17936        IFS=$lt_save_ifs
17937        # Let DOS variable expansion print the short 8.3 style file name.
17938        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17939        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17940      done
17941      IFS=$lt_save_ifs
17942      # Convert to MSYS style.
17943      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17944      ;;
17945    cygwin*)
17946      # Convert to unix form, then to dos form, then back to unix form
17947      # but this time dos style (no spaces!) so that the unix form looks
17948      # like /cygdrive/c/PROGRA~1:/cygdr...
17949      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17950      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17951      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17952      ;;
17953    *)
17954      sys_lib_search_path_spec=$LIB
17955      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17956        # It is most probably a Windows format PATH.
17957        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17958      else
17959        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17960      fi
17961      # FIXME: find the short name or the path components, as spaces are
17962      # common. (e.g. "Program Files" -> "PROGRA~1")
17963      ;;
17964    esac
17965
17966    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17967    postinstall_cmds='base_file=`basename \$file`~
17968      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17969      dldir=$destdir/`dirname \$dlpath`~
17970      test -d \$dldir || mkdir -p \$dldir~
17971      $install_prog $dir/$dlname \$dldir/$dlname'
17972    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17973      dlpath=$dir/\$dldll~
17974       $RM \$dlpath'
17975    shlibpath_overrides_runpath=yes
17976    dynamic_linker='Win32 link.exe'
17977    ;;
17978
17979  *)
17980    # Assume MSVC and ICC wrapper
17981    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17982    dynamic_linker='Win32 ld.exe'
17983    ;;
17984  esac
17985  # FIXME: first we should search . and the directory the executable is in
17986  shlibpath_var=PATH
17987  ;;
17988
17989darwin* | rhapsody*)
17990  dynamic_linker="$host_os dyld"
17991  version_type=darwin
17992  need_lib_prefix=no
17993  need_version=no
17994  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17995  soname_spec='$libname$release$major$shared_ext'
17996  shlibpath_overrides_runpath=yes
17997  shlibpath_var=DYLD_LIBRARY_PATH
17998  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17999
18000  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18001  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18002  ;;
18003
18004dgux*)
18005  version_type=linux # correct to gnu/linux during the next big refactor
18006  need_lib_prefix=no
18007  need_version=no
18008  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18009  soname_spec='$libname$release$shared_ext$major'
18010  shlibpath_var=LD_LIBRARY_PATH
18011  ;;
18012
18013freebsd* | dragonfly* | midnightbsd*)
18014  # DragonFly does not have aout.  When/if they implement a new
18015  # versioning mechanism, adjust this.
18016  if test -x /usr/bin/objformat; then
18017    objformat=`/usr/bin/objformat`
18018  else
18019    case $host_os in
18020    freebsd[23].*) objformat=aout ;;
18021    *) objformat=elf ;;
18022    esac
18023  fi
18024  version_type=freebsd-$objformat
18025  case $version_type in
18026    freebsd-elf*)
18027      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18028      soname_spec='$libname$release$shared_ext$major'
18029      need_version=no
18030      need_lib_prefix=no
18031      ;;
18032    freebsd-*)
18033      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18034      need_version=yes
18035      ;;
18036  esac
18037  shlibpath_var=LD_LIBRARY_PATH
18038  case $host_os in
18039  freebsd2.*)
18040    shlibpath_overrides_runpath=yes
18041    ;;
18042  freebsd3.[01]* | freebsdelf3.[01]*)
18043    shlibpath_overrides_runpath=yes
18044    hardcode_into_libs=yes
18045    ;;
18046  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18047  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18048    shlibpath_overrides_runpath=no
18049    hardcode_into_libs=yes
18050    ;;
18051  *) # from 4.6 on, and DragonFly
18052    shlibpath_overrides_runpath=yes
18053    hardcode_into_libs=yes
18054    ;;
18055  esac
18056  ;;
18057
18058haiku*)
18059  version_type=linux # correct to gnu/linux during the next big refactor
18060  need_lib_prefix=no
18061  need_version=no
18062  dynamic_linker="$host_os runtime_loader"
18063  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18064  soname_spec='$libname$release$shared_ext$major'
18065  shlibpath_var=LIBRARY_PATH
18066  shlibpath_overrides_runpath=no
18067  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18068  hardcode_into_libs=yes
18069  ;;
18070
18071hpux9* | hpux10* | hpux11*)
18072  # Give a soname corresponding to the major version so that dld.sl refuses to
18073  # link against other versions.
18074  version_type=sunos
18075  need_lib_prefix=no
18076  need_version=no
18077  case $host_cpu in
18078  ia64*)
18079    shrext_cmds='.so'
18080    hardcode_into_libs=yes
18081    dynamic_linker="$host_os dld.so"
18082    shlibpath_var=LD_LIBRARY_PATH
18083    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18084    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18085    soname_spec='$libname$release$shared_ext$major'
18086    if test 32 = "$HPUX_IA64_MODE"; then
18087      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18088      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18089    else
18090      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18091      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18092    fi
18093    ;;
18094  hppa*64*)
18095    shrext_cmds='.sl'
18096    hardcode_into_libs=yes
18097    dynamic_linker="$host_os dld.sl"
18098    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18099    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18100    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18101    soname_spec='$libname$release$shared_ext$major'
18102    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18103    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18104    ;;
18105  *)
18106    shrext_cmds='.sl'
18107    dynamic_linker="$host_os dld.sl"
18108    shlibpath_var=SHLIB_PATH
18109    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18110    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18111    soname_spec='$libname$release$shared_ext$major'
18112    ;;
18113  esac
18114  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18115  postinstall_cmds='chmod 555 $lib'
18116  # or fails outright, so override atomically:
18117  install_override_mode=555
18118  ;;
18119
18120interix[3-9]*)
18121  version_type=linux # correct to gnu/linux during the next big refactor
18122  need_lib_prefix=no
18123  need_version=no
18124  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18125  soname_spec='$libname$release$shared_ext$major'
18126  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18127  shlibpath_var=LD_LIBRARY_PATH
18128  shlibpath_overrides_runpath=no
18129  hardcode_into_libs=yes
18130  ;;
18131
18132irix5* | irix6* | nonstopux*)
18133  case $host_os in
18134    nonstopux*) version_type=nonstopux ;;
18135    *)
18136	if test yes = "$lt_cv_prog_gnu_ld"; then
18137		version_type=linux # correct to gnu/linux during the next big refactor
18138	else
18139		version_type=irix
18140	fi ;;
18141  esac
18142  need_lib_prefix=no
18143  need_version=no
18144  soname_spec='$libname$release$shared_ext$major'
18145  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18146  case $host_os in
18147  irix5* | nonstopux*)
18148    libsuff= shlibsuff=
18149    ;;
18150  *)
18151    case $LD in # libtool.m4 will add one of these switches to LD
18152    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18153      libsuff= shlibsuff= libmagic=32-bit;;
18154    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18155      libsuff=32 shlibsuff=N32 libmagic=N32;;
18156    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18157      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18158    *) libsuff= shlibsuff= libmagic=never-match;;
18159    esac
18160    ;;
18161  esac
18162  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18163  shlibpath_overrides_runpath=no
18164  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18165  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18166  hardcode_into_libs=yes
18167  ;;
18168
18169# No shared lib support for Linux oldld, aout, or coff.
18170linux*oldld* | linux*aout* | linux*coff*)
18171  dynamic_linker=no
18172  ;;
18173
18174linux*android*)
18175  version_type=none # Android doesn't support versioned libraries.
18176  need_lib_prefix=no
18177  need_version=no
18178  library_names_spec='$libname$release$shared_ext'
18179  soname_spec='$libname$release$shared_ext'
18180  finish_cmds=
18181  shlibpath_var=LD_LIBRARY_PATH
18182  shlibpath_overrides_runpath=yes
18183
18184  # This implies no fast_install, which is unacceptable.
18185  # Some rework will be needed to allow for fast_install
18186  # before this can be enabled.
18187  hardcode_into_libs=yes
18188
18189  dynamic_linker='Android linker'
18190  # Don't embed -rpath directories since the linker doesn't support them.
18191  hardcode_libdir_flag_spec='-L$libdir'
18192  ;;
18193
18194# This must be glibc/ELF.
18195linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18196  version_type=linux # correct to gnu/linux during the next big refactor
18197  need_lib_prefix=no
18198  need_version=no
18199  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18200  soname_spec='$libname$release$shared_ext$major'
18201  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18202  shlibpath_var=LD_LIBRARY_PATH
18203  shlibpath_overrides_runpath=no
18204
18205  # Some binutils ld are patched to set DT_RUNPATH
18206  if test ${lt_cv_shlibpath_overrides_runpath+y}
18207then :
18208  printf %s "(cached) " >&6
18209else $as_nop
18210  lt_cv_shlibpath_overrides_runpath=no
18211    save_LDFLAGS=$LDFLAGS
18212    save_libdir=$libdir
18213    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18214	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18215    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18216/* end confdefs.h.  */
18217
18218int
18219main (void)
18220{
18221
18222  ;
18223  return 0;
18224}
18225_ACEOF
18226if ac_fn_c_try_link "$LINENO"
18227then :
18228  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18229then :
18230  lt_cv_shlibpath_overrides_runpath=yes
18231fi
18232fi
18233rm -f core conftest.err conftest.$ac_objext conftest.beam \
18234    conftest$ac_exeext conftest.$ac_ext
18235    LDFLAGS=$save_LDFLAGS
18236    libdir=$save_libdir
18237
18238fi
18239
18240  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18241
18242  # This implies no fast_install, which is unacceptable.
18243  # Some rework will be needed to allow for fast_install
18244  # before this can be enabled.
18245  hardcode_into_libs=yes
18246
18247  # Ideally, we could use ldconfig to report *all* directores which are
18248  # searched for libraries, however this is still not possible.  Aside from not
18249  # being certain /sbin/ldconfig is available, command
18250  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18251  # even though it is searched at run-time.  Try to do the best guess by
18252  # appending ld.so.conf contents (and includes) to the search path.
18253  if test -f /etc/ld.so.conf; then
18254    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' ' '`
18255    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18256  fi
18257
18258  # We used to test for /lib/ld.so.1 and disable shared libraries on
18259  # powerpc, because MkLinux only supported shared libraries with the
18260  # GNU dynamic linker.  Since this was broken with cross compilers,
18261  # most powerpc-linux boxes support dynamic linking these days and
18262  # people can always --disable-shared, the test was removed, and we
18263  # assume the GNU/Linux dynamic linker is in use.
18264  dynamic_linker='GNU/Linux ld.so'
18265  ;;
18266
18267netbsd*)
18268  version_type=sunos
18269  need_lib_prefix=no
18270  need_version=no
18271  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18272    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18273    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18274    dynamic_linker='NetBSD (a.out) ld.so'
18275  else
18276    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18277    soname_spec='$libname$release$shared_ext$major'
18278    dynamic_linker='NetBSD ld.elf_so'
18279  fi
18280  shlibpath_var=LD_LIBRARY_PATH
18281  shlibpath_overrides_runpath=yes
18282  hardcode_into_libs=yes
18283  ;;
18284
18285newsos6)
18286  version_type=linux # correct to gnu/linux during the next big refactor
18287  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18288  shlibpath_var=LD_LIBRARY_PATH
18289  shlibpath_overrides_runpath=yes
18290  ;;
18291
18292*nto* | *qnx*)
18293  version_type=qnx
18294  need_lib_prefix=no
18295  need_version=no
18296  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18297  soname_spec='$libname$release$shared_ext$major'
18298  shlibpath_var=LD_LIBRARY_PATH
18299  shlibpath_overrides_runpath=no
18300  hardcode_into_libs=yes
18301  dynamic_linker='ldqnx.so'
18302  ;;
18303
18304openbsd* | bitrig*)
18305  version_type=sunos
18306  sys_lib_dlsearch_path_spec=/usr/lib
18307  need_lib_prefix=no
18308  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18309    need_version=no
18310  else
18311    need_version=yes
18312  fi
18313  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18314  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18315  shlibpath_var=LD_LIBRARY_PATH
18316  shlibpath_overrides_runpath=yes
18317  ;;
18318
18319os2*)
18320  libname_spec='$name'
18321  version_type=windows
18322  shrext_cmds=.dll
18323  need_version=no
18324  need_lib_prefix=no
18325  # OS/2 can only load a DLL with a base name of 8 characters or less.
18326  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18327    v=$($ECHO $release$versuffix | tr -d .-);
18328    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18329    $ECHO $n$v`$shared_ext'
18330  library_names_spec='${libname}_dll.$libext'
18331  dynamic_linker='OS/2 ld.exe'
18332  shlibpath_var=BEGINLIBPATH
18333  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18334  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18335  postinstall_cmds='base_file=`basename \$file`~
18336    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18337    dldir=$destdir/`dirname \$dlpath`~
18338    test -d \$dldir || mkdir -p \$dldir~
18339    $install_prog $dir/$dlname \$dldir/$dlname~
18340    chmod a+x \$dldir/$dlname~
18341    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18342      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18343    fi'
18344  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18345    dlpath=$dir/\$dldll~
18346    $RM \$dlpath'
18347  ;;
18348
18349osf3* | osf4* | osf5*)
18350  version_type=osf
18351  need_lib_prefix=no
18352  need_version=no
18353  soname_spec='$libname$release$shared_ext$major'
18354  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18355  shlibpath_var=LD_LIBRARY_PATH
18356  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18357  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18358  ;;
18359
18360rdos*)
18361  dynamic_linker=no
18362  ;;
18363
18364solaris*)
18365  version_type=linux # correct to gnu/linux during the next big refactor
18366  need_lib_prefix=no
18367  need_version=no
18368  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18369  soname_spec='$libname$release$shared_ext$major'
18370  shlibpath_var=LD_LIBRARY_PATH
18371  shlibpath_overrides_runpath=yes
18372  hardcode_into_libs=yes
18373  # ldd complains unless libraries are executable
18374  postinstall_cmds='chmod +x $lib'
18375  ;;
18376
18377sunos4*)
18378  version_type=sunos
18379  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18380  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18381  shlibpath_var=LD_LIBRARY_PATH
18382  shlibpath_overrides_runpath=yes
18383  if test yes = "$with_gnu_ld"; then
18384    need_lib_prefix=no
18385  fi
18386  need_version=yes
18387  ;;
18388
18389sysv4 | sysv4.3*)
18390  version_type=linux # correct to gnu/linux during the next big refactor
18391  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18392  soname_spec='$libname$release$shared_ext$major'
18393  shlibpath_var=LD_LIBRARY_PATH
18394  case $host_vendor in
18395    sni)
18396      shlibpath_overrides_runpath=no
18397      need_lib_prefix=no
18398      runpath_var=LD_RUN_PATH
18399      ;;
18400    siemens)
18401      need_lib_prefix=no
18402      ;;
18403    motorola)
18404      need_lib_prefix=no
18405      need_version=no
18406      shlibpath_overrides_runpath=no
18407      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18408      ;;
18409  esac
18410  ;;
18411
18412sysv4*MP*)
18413  if test -d /usr/nec; then
18414    version_type=linux # correct to gnu/linux during the next big refactor
18415    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18416    soname_spec='$libname$shared_ext.$major'
18417    shlibpath_var=LD_LIBRARY_PATH
18418  fi
18419  ;;
18420
18421sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18422  version_type=sco
18423  need_lib_prefix=no
18424  need_version=no
18425  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18426  soname_spec='$libname$release$shared_ext$major'
18427  shlibpath_var=LD_LIBRARY_PATH
18428  shlibpath_overrides_runpath=yes
18429  hardcode_into_libs=yes
18430  if test yes = "$with_gnu_ld"; then
18431    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18432  else
18433    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18434    case $host_os in
18435      sco3.2v5*)
18436        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18437	;;
18438    esac
18439  fi
18440  sys_lib_dlsearch_path_spec='/usr/lib'
18441  ;;
18442
18443tpf*)
18444  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18445  version_type=linux # correct to gnu/linux during the next big refactor
18446  need_lib_prefix=no
18447  need_version=no
18448  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18449  shlibpath_var=LD_LIBRARY_PATH
18450  shlibpath_overrides_runpath=no
18451  hardcode_into_libs=yes
18452  ;;
18453
18454uts4*)
18455  version_type=linux # correct to gnu/linux during the next big refactor
18456  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18457  soname_spec='$libname$release$shared_ext$major'
18458  shlibpath_var=LD_LIBRARY_PATH
18459  ;;
18460
18461*)
18462  dynamic_linker=no
18463  ;;
18464esac
18465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18466printf "%s\n" "$dynamic_linker" >&6; }
18467test no = "$dynamic_linker" && can_build_shared=no
18468
18469variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18470if test yes = "$GCC"; then
18471  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18472fi
18473
18474if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18475  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18476fi
18477
18478if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18479  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18480fi
18481
18482# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18483configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18484
18485# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18486func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18487
18488# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18489configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18490
18491
18492
18493
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  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18588printf %s "checking how to hardcode library paths into programs... " >&6; }
18589hardcode_action=
18590if test -n "$hardcode_libdir_flag_spec" ||
18591   test -n "$runpath_var" ||
18592   test yes = "$hardcode_automatic"; then
18593
18594  # We can hardcode non-existent directories.
18595  if test no != "$hardcode_direct" &&
18596     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18597     # have to relink, otherwise we might link with an installed library
18598     # when we should be linking with a yet-to-be-installed one
18599     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18600     test no != "$hardcode_minus_L"; then
18601    # Linking always hardcodes the temporary library directory.
18602    hardcode_action=relink
18603  else
18604    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18605    hardcode_action=immediate
18606  fi
18607else
18608  # We cannot hardcode anything, or else we can only hardcode existing
18609  # directories.
18610  hardcode_action=unsupported
18611fi
18612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18613printf "%s\n" "$hardcode_action" >&6; }
18614
18615if test relink = "$hardcode_action" ||
18616   test yes = "$inherit_rpath"; then
18617  # Fast installation is not supported
18618  enable_fast_install=no
18619elif test yes = "$shlibpath_overrides_runpath" ||
18620     test no = "$enable_shared"; then
18621  # Fast installation is not necessary
18622  enable_fast_install=needless
18623fi
18624
18625
18626
18627
18628
18629
18630  if test yes != "$enable_dlopen"; then
18631  enable_dlopen=unknown
18632  enable_dlopen_self=unknown
18633  enable_dlopen_self_static=unknown
18634else
18635  lt_cv_dlopen=no
18636  lt_cv_dlopen_libs=
18637
18638  case $host_os in
18639  beos*)
18640    lt_cv_dlopen=load_add_on
18641    lt_cv_dlopen_libs=
18642    lt_cv_dlopen_self=yes
18643    ;;
18644
18645  mingw* | pw32* | cegcc*)
18646    lt_cv_dlopen=LoadLibrary
18647    lt_cv_dlopen_libs=
18648    ;;
18649
18650  cygwin*)
18651    lt_cv_dlopen=dlopen
18652    lt_cv_dlopen_libs=
18653    ;;
18654
18655  darwin*)
18656    # if libdl is installed we need to link against it
18657    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18658printf %s "checking for dlopen in -ldl... " >&6; }
18659if test ${ac_cv_lib_dl_dlopen+y}
18660then :
18661  printf %s "(cached) " >&6
18662else $as_nop
18663  ac_check_lib_save_LIBS=$LIBS
18664LIBS="-ldl  $LIBS"
18665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18666/* end confdefs.h.  */
18667
18668/* Override any GCC internal prototype to avoid an error.
18669   Use char because int might match the return type of a GCC
18670   builtin and then its argument prototype would still apply.  */
18671char dlopen ();
18672int
18673main (void)
18674{
18675return dlopen ();
18676  ;
18677  return 0;
18678}
18679_ACEOF
18680if ac_fn_c_try_link "$LINENO"
18681then :
18682  ac_cv_lib_dl_dlopen=yes
18683else $as_nop
18684  ac_cv_lib_dl_dlopen=no
18685fi
18686rm -f core conftest.err conftest.$ac_objext conftest.beam \
18687    conftest$ac_exeext conftest.$ac_ext
18688LIBS=$ac_check_lib_save_LIBS
18689fi
18690{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18691printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18692if test "x$ac_cv_lib_dl_dlopen" = xyes
18693then :
18694  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18695else $as_nop
18696
18697    lt_cv_dlopen=dyld
18698    lt_cv_dlopen_libs=
18699    lt_cv_dlopen_self=yes
18700
18701fi
18702
18703    ;;
18704
18705  tpf*)
18706    # Don't try to run any link tests for TPF.  We know it's impossible
18707    # because TPF is a cross-compiler, and we know how we open DSOs.
18708    lt_cv_dlopen=dlopen
18709    lt_cv_dlopen_libs=
18710    lt_cv_dlopen_self=no
18711    ;;
18712
18713  *)
18714    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18715if test "x$ac_cv_func_shl_load" = xyes
18716then :
18717  lt_cv_dlopen=shl_load
18718else $as_nop
18719  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18720printf %s "checking for shl_load in -ldld... " >&6; }
18721if test ${ac_cv_lib_dld_shl_load+y}
18722then :
18723  printf %s "(cached) " >&6
18724else $as_nop
18725  ac_check_lib_save_LIBS=$LIBS
18726LIBS="-ldld  $LIBS"
18727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18728/* end confdefs.h.  */
18729
18730/* Override any GCC internal prototype to avoid an error.
18731   Use char because int might match the return type of a GCC
18732   builtin and then its argument prototype would still apply.  */
18733char shl_load ();
18734int
18735main (void)
18736{
18737return shl_load ();
18738  ;
18739  return 0;
18740}
18741_ACEOF
18742if ac_fn_c_try_link "$LINENO"
18743then :
18744  ac_cv_lib_dld_shl_load=yes
18745else $as_nop
18746  ac_cv_lib_dld_shl_load=no
18747fi
18748rm -f core conftest.err conftest.$ac_objext conftest.beam \
18749    conftest$ac_exeext conftest.$ac_ext
18750LIBS=$ac_check_lib_save_LIBS
18751fi
18752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18753printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
18754if test "x$ac_cv_lib_dld_shl_load" = xyes
18755then :
18756  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18757else $as_nop
18758  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18759if test "x$ac_cv_func_dlopen" = xyes
18760then :
18761  lt_cv_dlopen=dlopen
18762else $as_nop
18763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18764printf %s "checking for dlopen in -ldl... " >&6; }
18765if test ${ac_cv_lib_dl_dlopen+y}
18766then :
18767  printf %s "(cached) " >&6
18768else $as_nop
18769  ac_check_lib_save_LIBS=$LIBS
18770LIBS="-ldl  $LIBS"
18771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18772/* end confdefs.h.  */
18773
18774/* Override any GCC internal prototype to avoid an error.
18775   Use char because int might match the return type of a GCC
18776   builtin and then its argument prototype would still apply.  */
18777char dlopen ();
18778int
18779main (void)
18780{
18781return dlopen ();
18782  ;
18783  return 0;
18784}
18785_ACEOF
18786if ac_fn_c_try_link "$LINENO"
18787then :
18788  ac_cv_lib_dl_dlopen=yes
18789else $as_nop
18790  ac_cv_lib_dl_dlopen=no
18791fi
18792rm -f core conftest.err conftest.$ac_objext conftest.beam \
18793    conftest$ac_exeext conftest.$ac_ext
18794LIBS=$ac_check_lib_save_LIBS
18795fi
18796{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18797printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
18798if test "x$ac_cv_lib_dl_dlopen" = xyes
18799then :
18800  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18801else $as_nop
18802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18803printf %s "checking for dlopen in -lsvld... " >&6; }
18804if test ${ac_cv_lib_svld_dlopen+y}
18805then :
18806  printf %s "(cached) " >&6
18807else $as_nop
18808  ac_check_lib_save_LIBS=$LIBS
18809LIBS="-lsvld  $LIBS"
18810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18811/* end confdefs.h.  */
18812
18813/* Override any GCC internal prototype to avoid an error.
18814   Use char because int might match the return type of a GCC
18815   builtin and then its argument prototype would still apply.  */
18816char dlopen ();
18817int
18818main (void)
18819{
18820return dlopen ();
18821  ;
18822  return 0;
18823}
18824_ACEOF
18825if ac_fn_c_try_link "$LINENO"
18826then :
18827  ac_cv_lib_svld_dlopen=yes
18828else $as_nop
18829  ac_cv_lib_svld_dlopen=no
18830fi
18831rm -f core conftest.err conftest.$ac_objext conftest.beam \
18832    conftest$ac_exeext conftest.$ac_ext
18833LIBS=$ac_check_lib_save_LIBS
18834fi
18835{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18836printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
18837if test "x$ac_cv_lib_svld_dlopen" = xyes
18838then :
18839  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18840else $as_nop
18841  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18842printf %s "checking for dld_link in -ldld... " >&6; }
18843if test ${ac_cv_lib_dld_dld_link+y}
18844then :
18845  printf %s "(cached) " >&6
18846else $as_nop
18847  ac_check_lib_save_LIBS=$LIBS
18848LIBS="-ldld  $LIBS"
18849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18850/* end confdefs.h.  */
18851
18852/* Override any GCC internal prototype to avoid an error.
18853   Use char because int might match the return type of a GCC
18854   builtin and then its argument prototype would still apply.  */
18855char dld_link ();
18856int
18857main (void)
18858{
18859return dld_link ();
18860  ;
18861  return 0;
18862}
18863_ACEOF
18864if ac_fn_c_try_link "$LINENO"
18865then :
18866  ac_cv_lib_dld_dld_link=yes
18867else $as_nop
18868  ac_cv_lib_dld_dld_link=no
18869fi
18870rm -f core conftest.err conftest.$ac_objext conftest.beam \
18871    conftest$ac_exeext conftest.$ac_ext
18872LIBS=$ac_check_lib_save_LIBS
18873fi
18874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18875printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
18876if test "x$ac_cv_lib_dld_dld_link" = xyes
18877then :
18878  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18879fi
18880
18881
18882fi
18883
18884
18885fi
18886
18887
18888fi
18889
18890
18891fi
18892
18893
18894fi
18895
18896    ;;
18897  esac
18898
18899  if test no = "$lt_cv_dlopen"; then
18900    enable_dlopen=no
18901  else
18902    enable_dlopen=yes
18903  fi
18904
18905  case $lt_cv_dlopen in
18906  dlopen)
18907    save_CPPFLAGS=$CPPFLAGS
18908    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18909
18910    save_LDFLAGS=$LDFLAGS
18911    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18912
18913    save_LIBS=$LIBS
18914    LIBS="$lt_cv_dlopen_libs $LIBS"
18915
18916    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18917printf %s "checking whether a program can dlopen itself... " >&6; }
18918if test ${lt_cv_dlopen_self+y}
18919then :
18920  printf %s "(cached) " >&6
18921else $as_nop
18922  	  if test yes = "$cross_compiling"; then :
18923  lt_cv_dlopen_self=cross
18924else
18925  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18926  lt_status=$lt_dlunknown
18927  cat > conftest.$ac_ext <<_LT_EOF
18928#line $LINENO "configure"
18929#include "confdefs.h"
18930
18931#if HAVE_DLFCN_H
18932#include <dlfcn.h>
18933#endif
18934
18935#include <stdio.h>
18936
18937#ifdef RTLD_GLOBAL
18938#  define LT_DLGLOBAL		RTLD_GLOBAL
18939#else
18940#  ifdef DL_GLOBAL
18941#    define LT_DLGLOBAL		DL_GLOBAL
18942#  else
18943#    define LT_DLGLOBAL		0
18944#  endif
18945#endif
18946
18947/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18948   find out it does not work in some platform. */
18949#ifndef LT_DLLAZY_OR_NOW
18950#  ifdef RTLD_LAZY
18951#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18952#  else
18953#    ifdef DL_LAZY
18954#      define LT_DLLAZY_OR_NOW		DL_LAZY
18955#    else
18956#      ifdef RTLD_NOW
18957#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18958#      else
18959#        ifdef DL_NOW
18960#          define LT_DLLAZY_OR_NOW	DL_NOW
18961#        else
18962#          define LT_DLLAZY_OR_NOW	0
18963#        endif
18964#      endif
18965#    endif
18966#  endif
18967#endif
18968
18969/* When -fvisibility=hidden is used, assume the code has been annotated
18970   correspondingly for the symbols needed.  */
18971#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18972int fnord () __attribute__((visibility("default")));
18973#endif
18974
18975int fnord () { return 42; }
18976int main ()
18977{
18978  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18979  int status = $lt_dlunknown;
18980
18981  if (self)
18982    {
18983      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18984      else
18985        {
18986	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18987          else puts (dlerror ());
18988	}
18989      /* dlclose (self); */
18990    }
18991  else
18992    puts (dlerror ());
18993
18994  return status;
18995}
18996_LT_EOF
18997  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18998  (eval $ac_link) 2>&5
18999  ac_status=$?
19000  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19001  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19002    (./conftest; exit; ) >&5 2>/dev/null
19003    lt_status=$?
19004    case x$lt_status in
19005      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19006      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19007      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19008    esac
19009  else :
19010    # compilation failed
19011    lt_cv_dlopen_self=no
19012  fi
19013fi
19014rm -fr conftest*
19015
19016
19017fi
19018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19019printf "%s\n" "$lt_cv_dlopen_self" >&6; }
19020
19021    if test yes = "$lt_cv_dlopen_self"; then
19022      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19023      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19024printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
19025if test ${lt_cv_dlopen_self_static+y}
19026then :
19027  printf %s "(cached) " >&6
19028else $as_nop
19029  	  if test yes = "$cross_compiling"; then :
19030  lt_cv_dlopen_self_static=cross
19031else
19032  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19033  lt_status=$lt_dlunknown
19034  cat > conftest.$ac_ext <<_LT_EOF
19035#line $LINENO "configure"
19036#include "confdefs.h"
19037
19038#if HAVE_DLFCN_H
19039#include <dlfcn.h>
19040#endif
19041
19042#include <stdio.h>
19043
19044#ifdef RTLD_GLOBAL
19045#  define LT_DLGLOBAL		RTLD_GLOBAL
19046#else
19047#  ifdef DL_GLOBAL
19048#    define LT_DLGLOBAL		DL_GLOBAL
19049#  else
19050#    define LT_DLGLOBAL		0
19051#  endif
19052#endif
19053
19054/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19055   find out it does not work in some platform. */
19056#ifndef LT_DLLAZY_OR_NOW
19057#  ifdef RTLD_LAZY
19058#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19059#  else
19060#    ifdef DL_LAZY
19061#      define LT_DLLAZY_OR_NOW		DL_LAZY
19062#    else
19063#      ifdef RTLD_NOW
19064#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19065#      else
19066#        ifdef DL_NOW
19067#          define LT_DLLAZY_OR_NOW	DL_NOW
19068#        else
19069#          define LT_DLLAZY_OR_NOW	0
19070#        endif
19071#      endif
19072#    endif
19073#  endif
19074#endif
19075
19076/* When -fvisibility=hidden is used, assume the code has been annotated
19077   correspondingly for the symbols needed.  */
19078#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19079int fnord () __attribute__((visibility("default")));
19080#endif
19081
19082int fnord () { return 42; }
19083int main ()
19084{
19085  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19086  int status = $lt_dlunknown;
19087
19088  if (self)
19089    {
19090      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19091      else
19092        {
19093	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19094          else puts (dlerror ());
19095	}
19096      /* dlclose (self); */
19097    }
19098  else
19099    puts (dlerror ());
19100
19101  return status;
19102}
19103_LT_EOF
19104  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19105  (eval $ac_link) 2>&5
19106  ac_status=$?
19107  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19108  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19109    (./conftest; exit; ) >&5 2>/dev/null
19110    lt_status=$?
19111    case x$lt_status in
19112      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19113      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19114      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19115    esac
19116  else :
19117    # compilation failed
19118    lt_cv_dlopen_self_static=no
19119  fi
19120fi
19121rm -fr conftest*
19122
19123
19124fi
19125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19126printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
19127    fi
19128
19129    CPPFLAGS=$save_CPPFLAGS
19130    LDFLAGS=$save_LDFLAGS
19131    LIBS=$save_LIBS
19132    ;;
19133  esac
19134
19135  case $lt_cv_dlopen_self in
19136  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19137  *) enable_dlopen_self=unknown ;;
19138  esac
19139
19140  case $lt_cv_dlopen_self_static in
19141  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19142  *) enable_dlopen_self_static=unknown ;;
19143  esac
19144fi
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162striplib=
19163old_striplib=
19164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19165printf %s "checking whether stripping libraries is possible... " >&6; }
19166if test -z "$STRIP"; then
19167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19168printf "%s\n" "no" >&6; }
19169else
19170  if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19171    old_striplib="$STRIP --strip-debug"
19172    striplib="$STRIP --strip-unneeded"
19173    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19174printf "%s\n" "yes" >&6; }
19175  else
19176    case $host_os in
19177    darwin*)
19178      # FIXME - insert some real tests, host_os isn't really good enough
19179      striplib="$STRIP -x"
19180      old_striplib="$STRIP -S"
19181      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19182printf "%s\n" "yes" >&6; }
19183      ;;
19184    freebsd*)
19185      if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
19186        old_striplib="$STRIP --strip-debug"
19187        striplib="$STRIP --strip-unneeded"
19188        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19189printf "%s\n" "yes" >&6; }
19190      else
19191        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19192printf "%s\n" "no" >&6; }
19193      fi
19194      ;;
19195    *)
19196      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19197printf "%s\n" "no" >&6; }
19198      ;;
19199    esac
19200  fi
19201fi
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214  # Report what library types will actually be built
19215  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19216printf %s "checking if libtool supports shared libraries... " >&6; }
19217  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19218printf "%s\n" "$can_build_shared" >&6; }
19219
19220  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19221printf %s "checking whether to build shared libraries... " >&6; }
19222  test no = "$can_build_shared" && enable_shared=no
19223
19224  # On AIX, shared libraries and static libraries use the same namespace, and
19225  # are all built from PIC.
19226  case $host_os in
19227  aix3*)
19228    test yes = "$enable_shared" && enable_static=no
19229    if test -n "$RANLIB"; then
19230      archive_cmds="$archive_cmds~\$RANLIB \$lib"
19231      postinstall_cmds='$RANLIB $lib'
19232    fi
19233    ;;
19234
19235  aix[4-9]*)
19236    if test ia64 != "$host_cpu"; then
19237      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19238      yes,aix,yes) ;;			# shared object as lib.so file only
19239      yes,svr4,*) ;;			# shared object as lib.so archive member only
19240      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
19241      esac
19242    fi
19243    ;;
19244  esac
19245  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19246printf "%s\n" "$enable_shared" >&6; }
19247
19248  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19249printf %s "checking whether to build static libraries... " >&6; }
19250  # Make sure either enable_shared or enable_static is yes.
19251  test yes = "$enable_shared" || enable_static=yes
19252  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19253printf "%s\n" "$enable_static" >&6; }
19254
19255
19256
19257
19258fi
19259ac_ext=c
19260ac_cpp='$CPP $CPPFLAGS'
19261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19263ac_compiler_gnu=$ac_cv_c_compiler_gnu
19264
19265CC=$lt_save_CC
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281        ac_config_commands="$ac_config_commands libtool"
19282
19283
19284
19285
19286# Only expand once:
19287
19288
19289
19290
19291
19292# Define a configure option for an alternate module directory
19293
19294# Check whether --with-xorg-module-dir was given.
19295if test ${with_xorg_module_dir+y}
19296then :
19297  withval=$with_xorg_module_dir;  moduledir="$withval"
19298else $as_nop
19299   moduledir="$libdir/xorg/modules"
19300fi
19301
19302
19303
19304# Store the list of server defined optional extensions in REQUIRED_MODULES
19305
19306
19307	SAVE_CFLAGS="$CFLAGS"
19308	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19309	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19310/* end confdefs.h.  */
19311
19312#include "xorg-server.h"
19313#if !defined RANDR
19314#error RANDR not defined
19315#endif
19316
19317int
19318main (void)
19319{
19320
19321  ;
19322  return 0;
19323}
19324_ACEOF
19325if ac_fn_c_try_compile "$LINENO"
19326then :
19327  _EXT_CHECK=yes
19328else $as_nop
19329  _EXT_CHECK=no
19330fi
19331rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19332	CFLAGS="$SAVE_CFLAGS"
19333	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
19334printf %s "checking if RANDR is defined... " >&6; }
19335	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19336printf "%s\n" "$_EXT_CHECK" >&6; }
19337	if test "$_EXT_CHECK" != no; then
19338		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19339	fi
19340
19341
19342
19343	SAVE_CFLAGS="$CFLAGS"
19344	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19345	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19346/* end confdefs.h.  */
19347
19348#include "xorg-server.h"
19349#if !defined RENDER
19350#error RENDER not defined
19351#endif
19352
19353int
19354main (void)
19355{
19356
19357  ;
19358  return 0;
19359}
19360_ACEOF
19361if ac_fn_c_try_compile "$LINENO"
19362then :
19363  _EXT_CHECK=yes
19364else $as_nop
19365  _EXT_CHECK=no
19366fi
19367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19368	CFLAGS="$SAVE_CFLAGS"
19369	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
19370printf %s "checking if RENDER is defined... " >&6; }
19371	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19372printf "%s\n" "$_EXT_CHECK" >&6; }
19373	if test "$_EXT_CHECK" != no; then
19374		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19375	fi
19376
19377
19378
19379	SAVE_CFLAGS="$CFLAGS"
19380	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
19381	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19382/* end confdefs.h.  */
19383
19384#include "xorg-server.h"
19385#if !defined DPMSExtension
19386#error DPMSExtension not defined
19387#endif
19388
19389int
19390main (void)
19391{
19392
19393  ;
19394  return 0;
19395}
19396_ACEOF
19397if ac_fn_c_try_compile "$LINENO"
19398then :
19399  _EXT_CHECK=yes
19400else $as_nop
19401  _EXT_CHECK=no
19402fi
19403rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19404	CFLAGS="$SAVE_CFLAGS"
19405	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
19406printf %s "checking if DPMSExtension is defined... " >&6; }
19407	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
19408printf "%s\n" "$_EXT_CHECK" >&6; }
19409	if test "$_EXT_CHECK" != no; then
19410		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19411	fi
19412
19413
19414# Obtain compiler/linker options for the driver dependencies
19415
19416pkg_failed=no
19417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
19418printf %s "checking for XORG... " >&6; }
19419
19420if test -n "$XORG_CFLAGS"; then
19421    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19422 elif test -n "$PKG_CONFIG"; then
19423    if test -n "$PKG_CONFIG" && \
19424    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19425  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES") 2>&5
19426  ac_status=$?
19427  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19428  test $ac_status = 0; }; then
19429  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19430		      test "x$?" != "x0" && pkg_failed=yes
19431else
19432  pkg_failed=yes
19433fi
19434 else
19435    pkg_failed=untried
19436fi
19437if test -n "$XORG_LIBS"; then
19438    pkg_cv_XORG_LIBS="$XORG_LIBS"
19439 elif test -n "$PKG_CONFIG"; then
19440    if test -n "$PKG_CONFIG" && \
19441    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.6 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
19442  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES") 2>&5
19443  ac_status=$?
19444  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19445  test $ac_status = 0; }; then
19446  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19447		      test "x$?" != "x0" && pkg_failed=yes
19448else
19449  pkg_failed=yes
19450fi
19451 else
19452    pkg_failed=untried
19453fi
19454
19455
19456
19457if test $pkg_failed = yes; then
19458   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19459printf "%s\n" "no" >&6; }
19460
19461if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19462        _pkg_short_errors_supported=yes
19463else
19464        _pkg_short_errors_supported=no
19465fi
19466        if test $_pkg_short_errors_supported = yes; then
19467	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19468        else
19469	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES" 2>&1`
19470        fi
19471	# Put the nasty error message in config.log where it belongs
19472	echo "$XORG_PKG_ERRORS" >&5
19473
19474	as_fn_error $? "Package requirements (xorg-server >= 1.6 xproto fontsproto $REQUIRED_MODULES) were not met:
19475
19476$XORG_PKG_ERRORS
19477
19478Consider adjusting the PKG_CONFIG_PATH environment variable if you
19479installed software in a non-standard prefix.
19480
19481Alternatively, you may set the environment variables XORG_CFLAGS
19482and XORG_LIBS to avoid the need to call pkg-config.
19483See the pkg-config man page for more details." "$LINENO" 5
19484elif test $pkg_failed = untried; then
19485     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19486printf "%s\n" "no" >&6; }
19487	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19488printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19489as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19490is in your PATH or set the PKG_CONFIG environment variable to the full
19491path to pkg-config.
19492
19493Alternatively, you may set the environment variables XORG_CFLAGS
19494and XORG_LIBS to avoid the need to call pkg-config.
19495See the pkg-config man page for more details.
19496
19497To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19498See \`config.log' for more details" "$LINENO" 5; }
19499else
19500	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
19501	XORG_LIBS=$pkg_cv_XORG_LIBS
19502        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19503printf "%s\n" "yes" >&6; }
19504
19505fi
19506
19507pkg_failed=no
19508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
19509printf %s "checking for XEXT... " >&6; }
19510
19511if test -n "$XEXT_CFLAGS"; then
19512    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
19513 elif test -n "$PKG_CONFIG"; then
19514    if test -n "$PKG_CONFIG" && \
19515    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19516  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19517  ac_status=$?
19518  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19519  test $ac_status = 0; }; then
19520  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
19521		      test "x$?" != "x0" && pkg_failed=yes
19522else
19523  pkg_failed=yes
19524fi
19525 else
19526    pkg_failed=untried
19527fi
19528if test -n "$XEXT_LIBS"; then
19529    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
19530 elif test -n "$PKG_CONFIG"; then
19531    if test -n "$PKG_CONFIG" && \
19532    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
19533  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
19534  ac_status=$?
19535  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19536  test $ac_status = 0; }; then
19537  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
19538		      test "x$?" != "x0" && pkg_failed=yes
19539else
19540  pkg_failed=yes
19541fi
19542 else
19543    pkg_failed=untried
19544fi
19545
19546
19547
19548if test $pkg_failed = yes; then
19549   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19550printf "%s\n" "no" >&6; }
19551
19552if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19553        _pkg_short_errors_supported=yes
19554else
19555        _pkg_short_errors_supported=no
19556fi
19557        if test $_pkg_short_errors_supported = yes; then
19558	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19559        else
19560	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
19561        fi
19562	# Put the nasty error message in config.log where it belongs
19563	echo "$XEXT_PKG_ERRORS" >&5
19564
19565	HAVE_XEXTPROTO_71="no"
19566elif test $pkg_failed = untried; then
19567     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19568printf "%s\n" "no" >&6; }
19569	HAVE_XEXTPROTO_71="no"
19570else
19571	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
19572	XEXT_LIBS=$pkg_cv_XEXT_LIBS
19573        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19574printf "%s\n" "yes" >&6; }
19575	HAVE_XEXTPROTO_71="yes"
19576fi
19577
19578if test "x$HAVE_XEXTPROTO_71" = xyes; then
19579
19580printf "%s\n" "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
19581
19582fi
19583
19584save_CFLAGS="$CFLAGS"
19585CFLAGS="$XORG_CFLAGS"
19586ac_fn_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\"
19587" "$ac_c_undeclared_builtin_options" "CFLAGS"
19588if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes
19589then :
19590
19591printf "%s\n" "#define HAVE_ISA 1" >>confdefs.h
19592
19593fi
19594CFLAGS="$save_CFLAGS"
19595
19596save_CFLAGS="$CFLAGS"
19597CFLAGS="$XORG_CFLAGS"
19598ac_fn_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
19599" "$ac_c_undeclared_builtin_options" "CFLAGS"
19600if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes
19601then :
19602  XSERVER_LIBPCIACCESS=yes
19603else $as_nop
19604  XSERVER_LIBPCIACCESS=no
19605fi
19606CFLAGS="$save_CFLAGS"
19607
19608if test "x$XSERVER_LIBPCIACCESS" = xyes; then
19609
19610pkg_failed=no
19611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
19612printf %s "checking for PCIACCESS... " >&6; }
19613
19614if test -n "$PCIACCESS_CFLAGS"; then
19615    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
19616 elif test -n "$PKG_CONFIG"; then
19617    if test -n "$PKG_CONFIG" && \
19618    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
19619  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
19620  ac_status=$?
19621  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19622  test $ac_status = 0; }; then
19623  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.12.901" 2>/dev/null`
19624		      test "x$?" != "x0" && pkg_failed=yes
19625else
19626  pkg_failed=yes
19627fi
19628 else
19629    pkg_failed=untried
19630fi
19631if test -n "$PCIACCESS_LIBS"; then
19632    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
19633 elif test -n "$PKG_CONFIG"; then
19634    if test -n "$PKG_CONFIG" && \
19635    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.12.901\""; } >&5
19636  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.12.901") 2>&5
19637  ac_status=$?
19638  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19639  test $ac_status = 0; }; then
19640  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.12.901" 2>/dev/null`
19641		      test "x$?" != "x0" && pkg_failed=yes
19642else
19643  pkg_failed=yes
19644fi
19645 else
19646    pkg_failed=untried
19647fi
19648
19649
19650
19651if test $pkg_failed = yes; then
19652   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19653printf "%s\n" "no" >&6; }
19654
19655if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19656        _pkg_short_errors_supported=yes
19657else
19658        _pkg_short_errors_supported=no
19659fi
19660        if test $_pkg_short_errors_supported = yes; then
19661	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
19662        else
19663	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.12.901" 2>&1`
19664        fi
19665	# Put the nasty error message in config.log where it belongs
19666	echo "$PCIACCESS_PKG_ERRORS" >&5
19667
19668	as_fn_error $? "Package requirements (pciaccess >= 0.12.901) were not met:
19669
19670$PCIACCESS_PKG_ERRORS
19671
19672Consider adjusting the PKG_CONFIG_PATH environment variable if you
19673installed software in a non-standard prefix.
19674
19675Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19676and PCIACCESS_LIBS to avoid the need to call pkg-config.
19677See the pkg-config man page for more details." "$LINENO" 5
19678elif test $pkg_failed = untried; then
19679     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19680printf "%s\n" "no" >&6; }
19681	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19682printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19683as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19684is in your PATH or set the PKG_CONFIG environment variable to the full
19685path to pkg-config.
19686
19687Alternatively, you may set the environment variables PCIACCESS_CFLAGS
19688and PCIACCESS_LIBS to avoid the need to call pkg-config.
19689See the pkg-config man page for more details.
19690
19691To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19692See \`config.log' for more details" "$LINENO" 5; }
19693else
19694	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
19695	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
19696        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19697printf "%s\n" "yes" >&6; }
19698
19699fi
19700fi
19701
19702# Checks for libraries.
19703
19704DRIVER_NAME=vesa
19705
19706
19707ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
19708
19709cat >confcache <<\_ACEOF
19710# This file is a shell script that caches the results of configure
19711# tests run on this system so they can be shared between configure
19712# scripts and configure runs, see configure's option --config-cache.
19713# It is not useful on other systems.  If it contains results you don't
19714# want to keep, you may remove or edit it.
19715#
19716# config.status only pays attention to the cache file if you give it
19717# the --recheck option to rerun configure.
19718#
19719# `ac_cv_env_foo' variables (set or unset) will be overridden when
19720# loading this file, other *unset* `ac_cv_foo' will be assigned the
19721# following values.
19722
19723_ACEOF
19724
19725# The following way of writing the cache mishandles newlines in values,
19726# but we know of no workaround that is simple, portable, and efficient.
19727# So, we kill variables containing newlines.
19728# Ultrix sh set writes to stderr and can't be redirected directly,
19729# and sets the high bit in the cache file unless we assign to the vars.
19730(
19731  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19732    eval ac_val=\$$ac_var
19733    case $ac_val in #(
19734    *${as_nl}*)
19735      case $ac_var in #(
19736      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19737printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19738      esac
19739      case $ac_var in #(
19740      _ | IFS | as_nl) ;; #(
19741      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19742      *) { eval $ac_var=; unset $ac_var;} ;;
19743      esac ;;
19744    esac
19745  done
19746
19747  (set) 2>&1 |
19748    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19749    *${as_nl}ac_space=\ *)
19750      # `set' does not quote correctly, so add quotes: double-quote
19751      # substitution turns \\\\ into \\, and sed turns \\ into \.
19752      sed -n \
19753	"s/'/'\\\\''/g;
19754	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19755      ;; #(
19756    *)
19757      # `set' quotes correctly as required by POSIX, so do not add quotes.
19758      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19759      ;;
19760    esac |
19761    sort
19762) |
19763  sed '
19764     /^ac_cv_env_/b end
19765     t clear
19766     :clear
19767     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
19768     t end
19769     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19770     :end' >>confcache
19771if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19772  if test -w "$cache_file"; then
19773    if test "x$cache_file" != "x/dev/null"; then
19774      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19775printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
19776      if test ! -f "$cache_file" || test -h "$cache_file"; then
19777	cat confcache >"$cache_file"
19778      else
19779        case $cache_file in #(
19780        */* | ?:*)
19781	  mv -f confcache "$cache_file"$$ &&
19782	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19783        *)
19784	  mv -f confcache "$cache_file" ;;
19785	esac
19786      fi
19787    fi
19788  else
19789    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19790printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
19791  fi
19792fi
19793rm -f confcache
19794
19795test "x$prefix" = xNONE && prefix=$ac_default_prefix
19796# Let make expand exec_prefix.
19797test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19798
19799DEFS=-DHAVE_CONFIG_H
19800
19801ac_libobjs=
19802ac_ltlibobjs=
19803U=
19804for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19805  # 1. Remove the extension, and $U if already installed.
19806  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19807  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
19808  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19809  #    will be set to the directory where LIBOBJS objects are built.
19810  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19811  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19812done
19813LIBOBJS=$ac_libobjs
19814
19815LTLIBOBJS=$ac_ltlibobjs
19816
19817
19818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19819printf %s "checking that generated files are newer than configure... " >&6; }
19820   if test -n "$am_sleep_pid"; then
19821     # Hide warnings about reused PIDs.
19822     wait $am_sleep_pid 2>/dev/null
19823   fi
19824   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19825printf "%s\n" "done" >&6; }
19826 if test -n "$EXEEXT"; then
19827  am__EXEEXT_TRUE=
19828  am__EXEEXT_FALSE='#'
19829else
19830  am__EXEEXT_TRUE='#'
19831  am__EXEEXT_FALSE=
19832fi
19833
19834if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19835  as_fn_error $? "conditional \"AMDEP\" was never defined.
19836Usually this means the macro was only invoked conditionally." "$LINENO" 5
19837fi
19838if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19839  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19840Usually this means the macro was only invoked conditionally." "$LINENO" 5
19841fi
19842
19843: "${CONFIG_STATUS=./config.status}"
19844ac_write_fail=0
19845ac_clean_files_save=$ac_clean_files
19846ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19847{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19848printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19849as_write_fail=0
19850cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19851#! $SHELL
19852# Generated by $as_me.
19853# Run this file to recreate the current configuration.
19854# Compiler output produced by configure, useful for debugging
19855# configure, is in config.log if it exists.
19856
19857debug=false
19858ac_cs_recheck=false
19859ac_cs_silent=false
19860
19861SHELL=\${CONFIG_SHELL-$SHELL}
19862export SHELL
19863_ASEOF
19864cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19865## -------------------- ##
19866## M4sh Initialization. ##
19867## -------------------- ##
19868
19869# Be more Bourne compatible
19870DUALCASE=1; export DUALCASE # for MKS sh
19871as_nop=:
19872if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19873then :
19874  emulate sh
19875  NULLCMD=:
19876  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19877  # is contrary to our usage.  Disable this feature.
19878  alias -g '${1+"$@"}'='"$@"'
19879  setopt NO_GLOB_SUBST
19880else $as_nop
19881  case `(set -o) 2>/dev/null` in #(
19882  *posix*) :
19883    set -o posix ;; #(
19884  *) :
19885     ;;
19886esac
19887fi
19888
19889
19890
19891# Reset variables that may have inherited troublesome values from
19892# the environment.
19893
19894# IFS needs to be set, to space, tab, and newline, in precisely that order.
19895# (If _AS_PATH_WALK were called with IFS unset, it would have the
19896# side effect of setting IFS to empty, thus disabling word splitting.)
19897# Quoting is to prevent editors from complaining about space-tab.
19898as_nl='
19899'
19900export as_nl
19901IFS=" ""	$as_nl"
19902
19903PS1='$ '
19904PS2='> '
19905PS4='+ '
19906
19907# Ensure predictable behavior from utilities with locale-dependent output.
19908LC_ALL=C
19909export LC_ALL
19910LANGUAGE=C
19911export LANGUAGE
19912
19913# We cannot yet rely on "unset" to work, but we need these variables
19914# to be unset--not just set to an empty or harmless value--now, to
19915# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
19916# also avoids known problems related to "unset" and subshell syntax
19917# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19918for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19919do eval test \${$as_var+y} \
19920  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19921done
19922
19923# Ensure that fds 0, 1, and 2 are open.
19924if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19925if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19926if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
19927
19928# The user is always right.
19929if ${PATH_SEPARATOR+false} :; then
19930  PATH_SEPARATOR=:
19931  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19932    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19933      PATH_SEPARATOR=';'
19934  }
19935fi
19936
19937
19938# Find who we are.  Look in the path if we contain no directory separator.
19939as_myself=
19940case $0 in #((
19941  *[\\/]* ) as_myself=$0 ;;
19942  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19943for as_dir in $PATH
19944do
19945  IFS=$as_save_IFS
19946  case $as_dir in #(((
19947    '') as_dir=./ ;;
19948    */) ;;
19949    *) as_dir=$as_dir/ ;;
19950  esac
19951    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19952  done
19953IFS=$as_save_IFS
19954
19955     ;;
19956esac
19957# We did not find ourselves, most probably we were run as `sh COMMAND'
19958# in which case we are not to be found in the path.
19959if test "x$as_myself" = x; then
19960  as_myself=$0
19961fi
19962if test ! -f "$as_myself"; then
19963  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19964  exit 1
19965fi
19966
19967
19968
19969# as_fn_error STATUS ERROR [LINENO LOG_FD]
19970# ----------------------------------------
19971# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19972# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19973# script with STATUS, using 1 if that was 0.
19974as_fn_error ()
19975{
19976  as_status=$1; test $as_status -eq 0 && as_status=1
19977  if test "$4"; then
19978    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19979    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19980  fi
19981  printf "%s\n" "$as_me: error: $2" >&2
19982  as_fn_exit $as_status
19983} # as_fn_error
19984
19985
19986
19987# as_fn_set_status STATUS
19988# -----------------------
19989# Set $? to STATUS, without forking.
19990as_fn_set_status ()
19991{
19992  return $1
19993} # as_fn_set_status
19994
19995# as_fn_exit STATUS
19996# -----------------
19997# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19998as_fn_exit ()
19999{
20000  set +e
20001  as_fn_set_status $1
20002  exit $1
20003} # as_fn_exit
20004
20005# as_fn_unset VAR
20006# ---------------
20007# Portably unset VAR.
20008as_fn_unset ()
20009{
20010  { eval $1=; unset $1;}
20011}
20012as_unset=as_fn_unset
20013
20014# as_fn_append VAR VALUE
20015# ----------------------
20016# Append the text in VALUE to the end of the definition contained in VAR. Take
20017# advantage of any shell optimizations that allow amortized linear growth over
20018# repeated appends, instead of the typical quadratic growth present in naive
20019# implementations.
20020if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20021then :
20022  eval 'as_fn_append ()
20023  {
20024    eval $1+=\$2
20025  }'
20026else $as_nop
20027  as_fn_append ()
20028  {
20029    eval $1=\$$1\$2
20030  }
20031fi # as_fn_append
20032
20033# as_fn_arith ARG...
20034# ------------------
20035# Perform arithmetic evaluation on the ARGs, and store the result in the
20036# global $as_val. Take advantage of shells that can avoid forks. The arguments
20037# must be portable across $(()) and expr.
20038if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20039then :
20040  eval 'as_fn_arith ()
20041  {
20042    as_val=$(( $* ))
20043  }'
20044else $as_nop
20045  as_fn_arith ()
20046  {
20047    as_val=`expr "$@" || test $? -eq 1`
20048  }
20049fi # as_fn_arith
20050
20051
20052if expr a : '\(a\)' >/dev/null 2>&1 &&
20053   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20054  as_expr=expr
20055else
20056  as_expr=false
20057fi
20058
20059if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20060  as_basename=basename
20061else
20062  as_basename=false
20063fi
20064
20065if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20066  as_dirname=dirname
20067else
20068  as_dirname=false
20069fi
20070
20071as_me=`$as_basename -- "$0" ||
20072$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20073	 X"$0" : 'X\(//\)$' \| \
20074	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20075printf "%s\n" X/"$0" |
20076    sed '/^.*\/\([^/][^/]*\)\/*$/{
20077	    s//\1/
20078	    q
20079	  }
20080	  /^X\/\(\/\/\)$/{
20081	    s//\1/
20082	    q
20083	  }
20084	  /^X\/\(\/\).*/{
20085	    s//\1/
20086	    q
20087	  }
20088	  s/.*/./; q'`
20089
20090# Avoid depending upon Character Ranges.
20091as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20092as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20093as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20094as_cr_digits='0123456789'
20095as_cr_alnum=$as_cr_Letters$as_cr_digits
20096
20097
20098# Determine whether it's possible to make 'echo' print without a newline.
20099# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20100# for compatibility with existing Makefiles.
20101ECHO_C= ECHO_N= ECHO_T=
20102case `echo -n x` in #(((((
20103-n*)
20104  case `echo 'xy\c'` in
20105  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20106  xy)  ECHO_C='\c';;
20107  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20108       ECHO_T='	';;
20109  esac;;
20110*)
20111  ECHO_N='-n';;
20112esac
20113
20114# For backward compatibility with old third-party macros, we provide
20115# the shell variables $as_echo and $as_echo_n.  New code should use
20116# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20117as_echo='printf %s\n'
20118as_echo_n='printf %s'
20119
20120rm -f conf$$ conf$$.exe conf$$.file
20121if test -d conf$$.dir; then
20122  rm -f conf$$.dir/conf$$.file
20123else
20124  rm -f conf$$.dir
20125  mkdir conf$$.dir 2>/dev/null
20126fi
20127if (echo >conf$$.file) 2>/dev/null; then
20128  if ln -s conf$$.file conf$$ 2>/dev/null; then
20129    as_ln_s='ln -s'
20130    # ... but there are two gotchas:
20131    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20132    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20133    # In both cases, we have to default to `cp -pR'.
20134    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20135      as_ln_s='cp -pR'
20136  elif ln conf$$.file conf$$ 2>/dev/null; then
20137    as_ln_s=ln
20138  else
20139    as_ln_s='cp -pR'
20140  fi
20141else
20142  as_ln_s='cp -pR'
20143fi
20144rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20145rmdir conf$$.dir 2>/dev/null
20146
20147
20148# as_fn_mkdir_p
20149# -------------
20150# Create "$as_dir" as a directory, including parents if necessary.
20151as_fn_mkdir_p ()
20152{
20153
20154  case $as_dir in #(
20155  -*) as_dir=./$as_dir;;
20156  esac
20157  test -d "$as_dir" || eval $as_mkdir_p || {
20158    as_dirs=
20159    while :; do
20160      case $as_dir in #(
20161      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20162      *) as_qdir=$as_dir;;
20163      esac
20164      as_dirs="'$as_qdir' $as_dirs"
20165      as_dir=`$as_dirname -- "$as_dir" ||
20166$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20167	 X"$as_dir" : 'X\(//\)[^/]' \| \
20168	 X"$as_dir" : 'X\(//\)$' \| \
20169	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20170printf "%s\n" X"$as_dir" |
20171    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20172	    s//\1/
20173	    q
20174	  }
20175	  /^X\(\/\/\)[^/].*/{
20176	    s//\1/
20177	    q
20178	  }
20179	  /^X\(\/\/\)$/{
20180	    s//\1/
20181	    q
20182	  }
20183	  /^X\(\/\).*/{
20184	    s//\1/
20185	    q
20186	  }
20187	  s/.*/./; q'`
20188      test -d "$as_dir" && break
20189    done
20190    test -z "$as_dirs" || eval "mkdir $as_dirs"
20191  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20192
20193
20194} # as_fn_mkdir_p
20195if mkdir -p . 2>/dev/null; then
20196  as_mkdir_p='mkdir -p "$as_dir"'
20197else
20198  test -d ./-p && rmdir ./-p
20199  as_mkdir_p=false
20200fi
20201
20202
20203# as_fn_executable_p FILE
20204# -----------------------
20205# Test if FILE is an executable regular file.
20206as_fn_executable_p ()
20207{
20208  test -f "$1" && test -x "$1"
20209} # as_fn_executable_p
20210as_test_x='test -x'
20211as_executable_p=as_fn_executable_p
20212
20213# Sed expression to map a string onto a valid CPP name.
20214as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20215
20216# Sed expression to map a string onto a valid variable name.
20217as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20218
20219
20220exec 6>&1
20221## ----------------------------------- ##
20222## Main body of $CONFIG_STATUS script. ##
20223## ----------------------------------- ##
20224_ASEOF
20225test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20226
20227cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20228# Save the log message, to keep $0 and so on meaningful, and to
20229# report actual input values of CONFIG_FILES etc. instead of their
20230# values after options handling.
20231ac_log="
20232This file was extended by xf86-video-vesa $as_me 2.6.0, which was
20233generated by GNU Autoconf 2.71.  Invocation command line was
20234
20235  CONFIG_FILES    = $CONFIG_FILES
20236  CONFIG_HEADERS  = $CONFIG_HEADERS
20237  CONFIG_LINKS    = $CONFIG_LINKS
20238  CONFIG_COMMANDS = $CONFIG_COMMANDS
20239  $ $0 $@
20240
20241on `(hostname || uname -n) 2>/dev/null | sed 1q`
20242"
20243
20244_ACEOF
20245
20246case $ac_config_files in *"
20247"*) set x $ac_config_files; shift; ac_config_files=$*;;
20248esac
20249
20250case $ac_config_headers in *"
20251"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20252esac
20253
20254
20255cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20256# Files that config.status was made for.
20257config_files="$ac_config_files"
20258config_headers="$ac_config_headers"
20259config_commands="$ac_config_commands"
20260
20261_ACEOF
20262
20263cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20264ac_cs_usage="\
20265\`$as_me' instantiates files and other configuration actions
20266from templates according to the current configuration.  Unless the files
20267and actions are specified as TAGs, all are instantiated by default.
20268
20269Usage: $0 [OPTION]... [TAG]...
20270
20271  -h, --help       print this help, then exit
20272  -V, --version    print version number and configuration settings, then exit
20273      --config     print configuration, then exit
20274  -q, --quiet, --silent
20275                   do not print progress messages
20276  -d, --debug      don't remove temporary files
20277      --recheck    update $as_me by reconfiguring in the same conditions
20278      --file=FILE[:TEMPLATE]
20279                   instantiate the configuration file FILE
20280      --header=FILE[:TEMPLATE]
20281                   instantiate the configuration header FILE
20282
20283Configuration files:
20284$config_files
20285
20286Configuration headers:
20287$config_headers
20288
20289Configuration commands:
20290$config_commands
20291
20292Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-vesa/-/issues>."
20293
20294_ACEOF
20295ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20296ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20298ac_cs_config='$ac_cs_config_escaped'
20299ac_cs_version="\\
20300xf86-video-vesa config.status 2.6.0
20301configured by $0, generated by GNU Autoconf 2.71,
20302  with options \\"\$ac_cs_config\\"
20303
20304Copyright (C) 2021 Free Software Foundation, Inc.
20305This config.status script is free software; the Free Software Foundation
20306gives unlimited permission to copy, distribute and modify it."
20307
20308ac_pwd='$ac_pwd'
20309srcdir='$srcdir'
20310INSTALL='$INSTALL'
20311MKDIR_P='$MKDIR_P'
20312AWK='$AWK'
20313test -n "\$AWK" || AWK=awk
20314_ACEOF
20315
20316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20317# The default lists apply if the user does not specify any file.
20318ac_need_defaults=:
20319while test $# != 0
20320do
20321  case $1 in
20322  --*=?*)
20323    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20324    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20325    ac_shift=:
20326    ;;
20327  --*=)
20328    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20329    ac_optarg=
20330    ac_shift=:
20331    ;;
20332  *)
20333    ac_option=$1
20334    ac_optarg=$2
20335    ac_shift=shift
20336    ;;
20337  esac
20338
20339  case $ac_option in
20340  # Handling of the options.
20341  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20342    ac_cs_recheck=: ;;
20343  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20344    printf "%s\n" "$ac_cs_version"; exit ;;
20345  --config | --confi | --conf | --con | --co | --c )
20346    printf "%s\n" "$ac_cs_config"; exit ;;
20347  --debug | --debu | --deb | --de | --d | -d )
20348    debug=: ;;
20349  --file | --fil | --fi | --f )
20350    $ac_shift
20351    case $ac_optarg in
20352    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20353    '') as_fn_error $? "missing file argument" ;;
20354    esac
20355    as_fn_append CONFIG_FILES " '$ac_optarg'"
20356    ac_need_defaults=false;;
20357  --header | --heade | --head | --hea )
20358    $ac_shift
20359    case $ac_optarg in
20360    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20361    esac
20362    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20363    ac_need_defaults=false;;
20364  --he | --h)
20365    # Conflict between --help and --header
20366    as_fn_error $? "ambiguous option: \`$1'
20367Try \`$0 --help' for more information.";;
20368  --help | --hel | -h )
20369    printf "%s\n" "$ac_cs_usage"; exit ;;
20370  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20371  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20372    ac_cs_silent=: ;;
20373
20374  # This is an error.
20375  -*) as_fn_error $? "unrecognized option: \`$1'
20376Try \`$0 --help' for more information." ;;
20377
20378  *) as_fn_append ac_config_targets " $1"
20379     ac_need_defaults=false ;;
20380
20381  esac
20382  shift
20383done
20384
20385ac_configure_extra_args=
20386
20387if $ac_cs_silent; then
20388  exec 6>/dev/null
20389  ac_configure_extra_args="$ac_configure_extra_args --silent"
20390fi
20391
20392_ACEOF
20393cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20394if \$ac_cs_recheck; then
20395  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20396  shift
20397  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20398  CONFIG_SHELL='$SHELL'
20399  export CONFIG_SHELL
20400  exec "\$@"
20401fi
20402
20403_ACEOF
20404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20405exec 5>>config.log
20406{
20407  echo
20408  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20409## Running $as_me. ##
20410_ASBOX
20411  printf "%s\n" "$ac_log"
20412} >&5
20413
20414_ACEOF
20415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20416#
20417# INIT-COMMANDS
20418#
20419AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20420
20421
20422# The HP-UX ksh and POSIX shell print the target directory to stdout
20423# if CDPATH is set.
20424(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20425
20426sed_quote_subst='$sed_quote_subst'
20427double_quote_subst='$double_quote_subst'
20428delay_variable_subst='$delay_variable_subst'
20429enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20430macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20431macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20432enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20433pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20434enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20435shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20436SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20437ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20438PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20439host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20440host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20441host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20442build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20443build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20444build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20445SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20446Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20447GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20448EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20449FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20450LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20451NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20452LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20453max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20454ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20455exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20456lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20457lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20458lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20459lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20460lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20461reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20462reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20463FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20464OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20465deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20466file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20467file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20468want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20469DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20470sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20471AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20472lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20473AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20474archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20475STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20476RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20477old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20478old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20479old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20480lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20481CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20482CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20483compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20484GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20485lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20486lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20487lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20488lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20489lt_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"`'
20490lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20491nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20492lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20493lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20494objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20495MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20496lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20497lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20498lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20499lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20500lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20501need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20502MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20503DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20504NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20505LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20506OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20507OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20508libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20509shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20510extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20511archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20512enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20513export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20514whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20515compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20516old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20517old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20518archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20519archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20520module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20521module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20522with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20523allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20524no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20525hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20526hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20527hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20528hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20529hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20530hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20531hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20532inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20533link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20534always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20535export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20536exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20537include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20538prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20539postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20540file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20541variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20542need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20543need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20544version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20545runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20546shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20547shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20548libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20549library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20550soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20551install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20552postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20553postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20554finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20555finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20556hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20557sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20558configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20559configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20560hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20561enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20562enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20563enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20564old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20565striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20566
20567LTCC='$LTCC'
20568LTCFLAGS='$LTCFLAGS'
20569compiler='$compiler_DEFAULT'
20570
20571# A function that is used when there is no print builtin or printf.
20572func_fallback_echo ()
20573{
20574  eval 'cat <<_LTECHO_EOF
20575\$1
20576_LTECHO_EOF'
20577}
20578
20579# Quote evaled strings.
20580for var in SHELL \
20581ECHO \
20582PATH_SEPARATOR \
20583SED \
20584GREP \
20585EGREP \
20586FGREP \
20587LD \
20588NM \
20589LN_S \
20590lt_SP2NL \
20591lt_NL2SP \
20592reload_flag \
20593FILECMD \
20594OBJDUMP \
20595deplibs_check_method \
20596file_magic_cmd \
20597file_magic_glob \
20598want_nocaseglob \
20599DLLTOOL \
20600sharedlib_from_linklib_cmd \
20601AR \
20602archiver_list_spec \
20603STRIP \
20604RANLIB \
20605CC \
20606CFLAGS \
20607compiler \
20608lt_cv_sys_global_symbol_pipe \
20609lt_cv_sys_global_symbol_to_cdecl \
20610lt_cv_sys_global_symbol_to_import \
20611lt_cv_sys_global_symbol_to_c_name_address \
20612lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20613lt_cv_nm_interface \
20614nm_file_list_spec \
20615lt_cv_truncate_bin \
20616lt_prog_compiler_no_builtin_flag \
20617lt_prog_compiler_pic \
20618lt_prog_compiler_wl \
20619lt_prog_compiler_static \
20620lt_cv_prog_compiler_c_o \
20621need_locks \
20622MANIFEST_TOOL \
20623DSYMUTIL \
20624NMEDIT \
20625LIPO \
20626OTOOL \
20627OTOOL64 \
20628shrext_cmds \
20629export_dynamic_flag_spec \
20630whole_archive_flag_spec \
20631compiler_needs_object \
20632with_gnu_ld \
20633allow_undefined_flag \
20634no_undefined_flag \
20635hardcode_libdir_flag_spec \
20636hardcode_libdir_separator \
20637exclude_expsyms \
20638include_expsyms \
20639file_list_spec \
20640variables_saved_for_relink \
20641libname_spec \
20642library_names_spec \
20643soname_spec \
20644install_override_mode \
20645finish_eval \
20646old_striplib \
20647striplib; do
20648    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20649    *[\\\\\\\`\\"\\\$]*)
20650      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20651      ;;
20652    *)
20653      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20654      ;;
20655    esac
20656done
20657
20658# Double-quote double-evaled strings.
20659for var in reload_cmds \
20660old_postinstall_cmds \
20661old_postuninstall_cmds \
20662old_archive_cmds \
20663extract_expsyms_cmds \
20664old_archive_from_new_cmds \
20665old_archive_from_expsyms_cmds \
20666archive_cmds \
20667archive_expsym_cmds \
20668module_cmds \
20669module_expsym_cmds \
20670export_symbols_cmds \
20671prelink_cmds \
20672postlink_cmds \
20673postinstall_cmds \
20674postuninstall_cmds \
20675finish_cmds \
20676sys_lib_search_path_spec \
20677configure_time_dlsearch_path \
20678configure_time_lt_sys_library_path; do
20679    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20680    *[\\\\\\\`\\"\\\$]*)
20681      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20682      ;;
20683    *)
20684      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20685      ;;
20686    esac
20687done
20688
20689ac_aux_dir='$ac_aux_dir'
20690
20691# See if we are running on zsh, and set the options that allow our
20692# commands through without removal of \ escapes INIT.
20693if test -n "\${ZSH_VERSION+set}"; then
20694   setopt NO_GLOB_SUBST
20695fi
20696
20697
20698    PACKAGE='$PACKAGE'
20699    VERSION='$VERSION'
20700    RM='$RM'
20701    ofile='$ofile'
20702
20703
20704
20705
20706_ACEOF
20707
20708cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20709
20710# Handling of arguments.
20711for ac_config_target in $ac_config_targets
20712do
20713  case $ac_config_target in
20714    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20715    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20716    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20717    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20718    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20719    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20720
20721  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20722  esac
20723done
20724
20725
20726# If the user did not use the arguments to specify the items to instantiate,
20727# then the envvar interface is used.  Set only those that are not.
20728# We use the long form for the default assignment because of an extremely
20729# bizarre bug on SunOS 4.1.3.
20730if $ac_need_defaults; then
20731  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20732  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20733  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20734fi
20735
20736# Have a temporary directory for convenience.  Make it in the build tree
20737# simply because there is no reason against having it here, and in addition,
20738# creating and moving files from /tmp can sometimes cause problems.
20739# Hook for its removal unless debugging.
20740# Note that there is a small window in which the directory will not be cleaned:
20741# after its creation but before its name has been assigned to `$tmp'.
20742$debug ||
20743{
20744  tmp= ac_tmp=
20745  trap 'exit_status=$?
20746  : "${ac_tmp:=$tmp}"
20747  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20748' 0
20749  trap 'as_fn_exit 1' 1 2 13 15
20750}
20751# Create a (secure) tmp directory for tmp files.
20752
20753{
20754  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20755  test -d "$tmp"
20756}  ||
20757{
20758  tmp=./conf$$-$RANDOM
20759  (umask 077 && mkdir "$tmp")
20760} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20761ac_tmp=$tmp
20762
20763# Set up the scripts for CONFIG_FILES section.
20764# No need to generate them if there are no CONFIG_FILES.
20765# This happens for instance with `./config.status config.h'.
20766if test -n "$CONFIG_FILES"; then
20767
20768
20769ac_cr=`echo X | tr X '\015'`
20770# On cygwin, bash can eat \r inside `` if the user requested igncr.
20771# But we know of no other shell where ac_cr would be empty at this
20772# point, so we can use a bashism as a fallback.
20773if test "x$ac_cr" = x; then
20774  eval ac_cr=\$\'\\r\'
20775fi
20776ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20777if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20778  ac_cs_awk_cr='\\r'
20779else
20780  ac_cs_awk_cr=$ac_cr
20781fi
20782
20783echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20784_ACEOF
20785
20786
20787{
20788  echo "cat >conf$$subs.awk <<_ACEOF" &&
20789  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20790  echo "_ACEOF"
20791} >conf$$subs.sh ||
20792  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20793ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20794ac_delim='%!_!# '
20795for ac_last_try in false false false false false :; do
20796  . ./conf$$subs.sh ||
20797    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20798
20799  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20800  if test $ac_delim_n = $ac_delim_num; then
20801    break
20802  elif $ac_last_try; then
20803    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20804  else
20805    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20806  fi
20807done
20808rm -f conf$$subs.sh
20809
20810cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20811cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20812_ACEOF
20813sed -n '
20814h
20815s/^/S["/; s/!.*/"]=/
20816p
20817g
20818s/^[^!]*!//
20819:repl
20820t repl
20821s/'"$ac_delim"'$//
20822t delim
20823:nl
20824h
20825s/\(.\{148\}\)..*/\1/
20826t more1
20827s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20828p
20829n
20830b repl
20831:more1
20832s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20833p
20834g
20835s/.\{148\}//
20836t nl
20837:delim
20838h
20839s/\(.\{148\}\)..*/\1/
20840t more2
20841s/["\\]/\\&/g; s/^/"/; s/$/"/
20842p
20843b
20844:more2
20845s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20846p
20847g
20848s/.\{148\}//
20849t delim
20850' <conf$$subs.awk | sed '
20851/^[^""]/{
20852  N
20853  s/\n//
20854}
20855' >>$CONFIG_STATUS || ac_write_fail=1
20856rm -f conf$$subs.awk
20857cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20858_ACAWK
20859cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20860  for (key in S) S_is_set[key] = 1
20861  FS = ""
20862
20863}
20864{
20865  line = $ 0
20866  nfields = split(line, field, "@")
20867  substed = 0
20868  len = length(field[1])
20869  for (i = 2; i < nfields; i++) {
20870    key = field[i]
20871    keylen = length(key)
20872    if (S_is_set[key]) {
20873      value = S[key]
20874      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20875      len += length(value) + length(field[++i])
20876      substed = 1
20877    } else
20878      len += 1 + keylen
20879  }
20880
20881  print line
20882}
20883
20884_ACAWK
20885_ACEOF
20886cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20887if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20888  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20889else
20890  cat
20891fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20892  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20893_ACEOF
20894
20895# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20896# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20897# trailing colons and then remove the whole line if VPATH becomes empty
20898# (actually we leave an empty line to preserve line numbers).
20899if test "x$srcdir" = x.; then
20900  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20901h
20902s///
20903s/^/:/
20904s/[	 ]*$/:/
20905s/:\$(srcdir):/:/g
20906s/:\${srcdir}:/:/g
20907s/:@srcdir@:/:/g
20908s/^:*//
20909s/:*$//
20910x
20911s/\(=[	 ]*\).*/\1/
20912G
20913s/\n//
20914s/^[^=]*=[	 ]*$//
20915}'
20916fi
20917
20918cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20919fi # test -n "$CONFIG_FILES"
20920
20921# Set up the scripts for CONFIG_HEADERS section.
20922# No need to generate them if there are no CONFIG_HEADERS.
20923# This happens for instance with `./config.status Makefile'.
20924if test -n "$CONFIG_HEADERS"; then
20925cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20926BEGIN {
20927_ACEOF
20928
20929# Transform confdefs.h into an awk script `defines.awk', embedded as
20930# here-document in config.status, that substitutes the proper values into
20931# config.h.in to produce config.h.
20932
20933# Create a delimiter string that does not exist in confdefs.h, to ease
20934# handling of long lines.
20935ac_delim='%!_!# '
20936for ac_last_try in false false :; do
20937  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20938  if test -z "$ac_tt"; then
20939    break
20940  elif $ac_last_try; then
20941    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20942  else
20943    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20944  fi
20945done
20946
20947# For the awk script, D is an array of macro values keyed by name,
20948# likewise P contains macro parameters if any.  Preserve backslash
20949# newline sequences.
20950
20951ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20952sed -n '
20953s/.\{148\}/&'"$ac_delim"'/g
20954t rset
20955:rset
20956s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20957t def
20958d
20959:def
20960s/\\$//
20961t bsnl
20962s/["\\]/\\&/g
20963s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20964D["\1"]=" \3"/p
20965s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20966d
20967:bsnl
20968s/["\\]/\\&/g
20969s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20970D["\1"]=" \3\\\\\\n"\\/p
20971t cont
20972s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20973t cont
20974d
20975:cont
20976n
20977s/.\{148\}/&'"$ac_delim"'/g
20978t clear
20979:clear
20980s/\\$//
20981t bsnlc
20982s/["\\]/\\&/g; s/^/"/; s/$/"/p
20983d
20984:bsnlc
20985s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20986b cont
20987' <confdefs.h | sed '
20988s/'"$ac_delim"'/"\\\
20989"/g' >>$CONFIG_STATUS || ac_write_fail=1
20990
20991cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20992  for (key in D) D_is_set[key] = 1
20993  FS = ""
20994}
20995/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20996  line = \$ 0
20997  split(line, arg, " ")
20998  if (arg[1] == "#") {
20999    defundef = arg[2]
21000    mac1 = arg[3]
21001  } else {
21002    defundef = substr(arg[1], 2)
21003    mac1 = arg[2]
21004  }
21005  split(mac1, mac2, "(") #)
21006  macro = mac2[1]
21007  prefix = substr(line, 1, index(line, defundef) - 1)
21008  if (D_is_set[macro]) {
21009    # Preserve the white space surrounding the "#".
21010    print prefix "define", macro P[macro] D[macro]
21011    next
21012  } else {
21013    # Replace #undef with comments.  This is necessary, for example,
21014    # in the case of _POSIX_SOURCE, which is predefined and required
21015    # on some systems where configure will not decide to define it.
21016    if (defundef == "undef") {
21017      print "/*", prefix defundef, macro, "*/"
21018      next
21019    }
21020  }
21021}
21022{ print }
21023_ACAWK
21024_ACEOF
21025cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21026  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21027fi # test -n "$CONFIG_HEADERS"
21028
21029
21030eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21031shift
21032for ac_tag
21033do
21034  case $ac_tag in
21035  :[FHLC]) ac_mode=$ac_tag; continue;;
21036  esac
21037  case $ac_mode$ac_tag in
21038  :[FHL]*:*);;
21039  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21040  :[FH]-) ac_tag=-:-;;
21041  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21042  esac
21043  ac_save_IFS=$IFS
21044  IFS=:
21045  set x $ac_tag
21046  IFS=$ac_save_IFS
21047  shift
21048  ac_file=$1
21049  shift
21050
21051  case $ac_mode in
21052  :L) ac_source=$1;;
21053  :[FH])
21054    ac_file_inputs=
21055    for ac_f
21056    do
21057      case $ac_f in
21058      -) ac_f="$ac_tmp/stdin";;
21059      *) # Look for the file first in the build tree, then in the source tree
21060	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21061	 # because $ac_f cannot contain `:'.
21062	 test -f "$ac_f" ||
21063	   case $ac_f in
21064	   [\\/$]*) false;;
21065	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21066	   esac ||
21067	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21068      esac
21069      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21070      as_fn_append ac_file_inputs " '$ac_f'"
21071    done
21072
21073    # Let's still pretend it is `configure' which instantiates (i.e., don't
21074    # use $as_me), people would be surprised to read:
21075    #    /* config.h.  Generated by config.status.  */
21076    configure_input='Generated from '`
21077	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21078	`' by configure.'
21079    if test x"$ac_file" != x-; then
21080      configure_input="$ac_file.  $configure_input"
21081      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21082printf "%s\n" "$as_me: creating $ac_file" >&6;}
21083    fi
21084    # Neutralize special characters interpreted by sed in replacement strings.
21085    case $configure_input in #(
21086    *\&* | *\|* | *\\* )
21087       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21088       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21089    *) ac_sed_conf_input=$configure_input;;
21090    esac
21091
21092    case $ac_tag in
21093    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21094      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21095    esac
21096    ;;
21097  esac
21098
21099  ac_dir=`$as_dirname -- "$ac_file" ||
21100$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21101	 X"$ac_file" : 'X\(//\)[^/]' \| \
21102	 X"$ac_file" : 'X\(//\)$' \| \
21103	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21104printf "%s\n" X"$ac_file" |
21105    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21106	    s//\1/
21107	    q
21108	  }
21109	  /^X\(\/\/\)[^/].*/{
21110	    s//\1/
21111	    q
21112	  }
21113	  /^X\(\/\/\)$/{
21114	    s//\1/
21115	    q
21116	  }
21117	  /^X\(\/\).*/{
21118	    s//\1/
21119	    q
21120	  }
21121	  s/.*/./; q'`
21122  as_dir="$ac_dir"; as_fn_mkdir_p
21123  ac_builddir=.
21124
21125case "$ac_dir" in
21126.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21127*)
21128  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21129  # A ".." for each directory in $ac_dir_suffix.
21130  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21131  case $ac_top_builddir_sub in
21132  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21133  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21134  esac ;;
21135esac
21136ac_abs_top_builddir=$ac_pwd
21137ac_abs_builddir=$ac_pwd$ac_dir_suffix
21138# for backward compatibility:
21139ac_top_builddir=$ac_top_build_prefix
21140
21141case $srcdir in
21142  .)  # We are building in place.
21143    ac_srcdir=.
21144    ac_top_srcdir=$ac_top_builddir_sub
21145    ac_abs_top_srcdir=$ac_pwd ;;
21146  [\\/]* | ?:[\\/]* )  # Absolute name.
21147    ac_srcdir=$srcdir$ac_dir_suffix;
21148    ac_top_srcdir=$srcdir
21149    ac_abs_top_srcdir=$srcdir ;;
21150  *) # Relative name.
21151    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21152    ac_top_srcdir=$ac_top_build_prefix$srcdir
21153    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21154esac
21155ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21156
21157
21158  case $ac_mode in
21159  :F)
21160  #
21161  # CONFIG_FILE
21162  #
21163
21164  case $INSTALL in
21165  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21166  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21167  esac
21168  ac_MKDIR_P=$MKDIR_P
21169  case $MKDIR_P in
21170  [\\/$]* | ?:[\\/]* ) ;;
21171  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21172  esac
21173_ACEOF
21174
21175cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21176# If the template does not know about datarootdir, expand it.
21177# FIXME: This hack should be removed a few years after 2.60.
21178ac_datarootdir_hack=; ac_datarootdir_seen=
21179ac_sed_dataroot='
21180/datarootdir/ {
21181  p
21182  q
21183}
21184/@datadir@/p
21185/@docdir@/p
21186/@infodir@/p
21187/@localedir@/p
21188/@mandir@/p'
21189case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21190*datarootdir*) ac_datarootdir_seen=yes;;
21191*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21192  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21193printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21194_ACEOF
21195cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21196  ac_datarootdir_hack='
21197  s&@datadir@&$datadir&g
21198  s&@docdir@&$docdir&g
21199  s&@infodir@&$infodir&g
21200  s&@localedir@&$localedir&g
21201  s&@mandir@&$mandir&g
21202  s&\\\${datarootdir}&$datarootdir&g' ;;
21203esac
21204_ACEOF
21205
21206# Neutralize VPATH when `$srcdir' = `.'.
21207# Shell code in configure.ac might set extrasub.
21208# FIXME: do we really want to maintain this feature?
21209cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21210ac_sed_extra="$ac_vpsub
21211$extrasub
21212_ACEOF
21213cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21214:t
21215/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21216s|@configure_input@|$ac_sed_conf_input|;t t
21217s&@top_builddir@&$ac_top_builddir_sub&;t t
21218s&@top_build_prefix@&$ac_top_build_prefix&;t t
21219s&@srcdir@&$ac_srcdir&;t t
21220s&@abs_srcdir@&$ac_abs_srcdir&;t t
21221s&@top_srcdir@&$ac_top_srcdir&;t t
21222s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21223s&@builddir@&$ac_builddir&;t t
21224s&@abs_builddir@&$ac_abs_builddir&;t t
21225s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21226s&@INSTALL@&$ac_INSTALL&;t t
21227s&@MKDIR_P@&$ac_MKDIR_P&;t t
21228$ac_datarootdir_hack
21229"
21230eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21231  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21232
21233test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21234  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21235  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21236      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21237  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21238which seems to be undefined.  Please make sure it is defined" >&5
21239printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21240which seems to be undefined.  Please make sure it is defined" >&2;}
21241
21242  rm -f "$ac_tmp/stdin"
21243  case $ac_file in
21244  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21245  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21246  esac \
21247  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21248 ;;
21249  :H)
21250  #
21251  # CONFIG_HEADER
21252  #
21253  if test x"$ac_file" != x-; then
21254    {
21255      printf "%s\n" "/* $configure_input  */" >&1 \
21256      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21257    } >"$ac_tmp/config.h" \
21258      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21259    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21260      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21261printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21262    else
21263      rm -f "$ac_file"
21264      mv "$ac_tmp/config.h" "$ac_file" \
21265	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21266    fi
21267  else
21268    printf "%s\n" "/* $configure_input  */" >&1 \
21269      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21270      || as_fn_error $? "could not create -" "$LINENO" 5
21271  fi
21272# Compute "$ac_file"'s index in $config_headers.
21273_am_arg="$ac_file"
21274_am_stamp_count=1
21275for _am_header in $config_headers :; do
21276  case $_am_header in
21277    $_am_arg | $_am_arg:* )
21278      break ;;
21279    * )
21280      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21281  esac
21282done
21283echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21284$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21285	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21286	 X"$_am_arg" : 'X\(//\)$' \| \
21287	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21288printf "%s\n" X"$_am_arg" |
21289    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21290	    s//\1/
21291	    q
21292	  }
21293	  /^X\(\/\/\)[^/].*/{
21294	    s//\1/
21295	    q
21296	  }
21297	  /^X\(\/\/\)$/{
21298	    s//\1/
21299	    q
21300	  }
21301	  /^X\(\/\).*/{
21302	    s//\1/
21303	    q
21304	  }
21305	  s/.*/./; q'`/stamp-h$_am_stamp_count
21306 ;;
21307
21308  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21309printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21310 ;;
21311  esac
21312
21313
21314  case $ac_file$ac_mode in
21315    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21316  # Older Autoconf quotes --file arguments for eval, but not when files
21317  # are listed without --file.  Let's play safe and only enable the eval
21318  # if we detect the quoting.
21319  # TODO: see whether this extra hack can be removed once we start
21320  # requiring Autoconf 2.70 or later.
21321  case $CONFIG_FILES in #(
21322  *\'*) :
21323    eval set x "$CONFIG_FILES" ;; #(
21324  *) :
21325    set x $CONFIG_FILES ;; #(
21326  *) :
21327     ;;
21328esac
21329  shift
21330  # Used to flag and report bootstrapping failures.
21331  am_rc=0
21332  for am_mf
21333  do
21334    # Strip MF so we end up with the name of the file.
21335    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21336    # Check whether this is an Automake generated Makefile which includes
21337    # dependency-tracking related rules and includes.
21338    # Grep'ing the whole file directly is not great: AIX grep has a line
21339    # limit of 2048, but all sed's we know have understand at least 4000.
21340    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21341      || continue
21342    am_dirpart=`$as_dirname -- "$am_mf" ||
21343$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21344	 X"$am_mf" : 'X\(//\)[^/]' \| \
21345	 X"$am_mf" : 'X\(//\)$' \| \
21346	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21347printf "%s\n" X"$am_mf" |
21348    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21349	    s//\1/
21350	    q
21351	  }
21352	  /^X\(\/\/\)[^/].*/{
21353	    s//\1/
21354	    q
21355	  }
21356	  /^X\(\/\/\)$/{
21357	    s//\1/
21358	    q
21359	  }
21360	  /^X\(\/\).*/{
21361	    s//\1/
21362	    q
21363	  }
21364	  s/.*/./; q'`
21365    am_filepart=`$as_basename -- "$am_mf" ||
21366$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21367	 X"$am_mf" : 'X\(//\)$' \| \
21368	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21369printf "%s\n" X/"$am_mf" |
21370    sed '/^.*\/\([^/][^/]*\)\/*$/{
21371	    s//\1/
21372	    q
21373	  }
21374	  /^X\/\(\/\/\)$/{
21375	    s//\1/
21376	    q
21377	  }
21378	  /^X\/\(\/\).*/{
21379	    s//\1/
21380	    q
21381	  }
21382	  s/.*/./; q'`
21383    { echo "$as_me:$LINENO: cd "$am_dirpart" \
21384      && sed -e '/# am--include-marker/d' "$am_filepart" \
21385        | $MAKE -f - am--depfiles" >&5
21386   (cd "$am_dirpart" \
21387      && sed -e '/# am--include-marker/d' "$am_filepart" \
21388        | $MAKE -f - am--depfiles) >&5 2>&5
21389   ac_status=$?
21390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391   (exit $ac_status); } || am_rc=$?
21392  done
21393  if test $am_rc -ne 0; then
21394    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21395printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21396as_fn_error $? "Something went wrong bootstrapping makefile fragments
21397    for automatic dependency tracking.  If GNU make was not used, consider
21398    re-running the configure script with MAKE=\"gmake\" (or whatever is
21399    necessary).  You can also try re-running configure with the
21400    '--disable-dependency-tracking' option to at least be able to build
21401    the package (albeit without support for automatic dependency tracking).
21402See \`config.log' for more details" "$LINENO" 5; }
21403  fi
21404  { am_dirpart=; unset am_dirpart;}
21405  { am_filepart=; unset am_filepart;}
21406  { am_mf=; unset am_mf;}
21407  { am_rc=; unset am_rc;}
21408  rm -f conftest-deps.mk
21409}
21410 ;;
21411    "libtool":C)
21412
21413    # See if we are running on zsh, and set the options that allow our
21414    # commands through without removal of \ escapes.
21415    if test -n "${ZSH_VERSION+set}"; then
21416      setopt NO_GLOB_SUBST
21417    fi
21418
21419    cfgfile=${ofile}T
21420    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21421    $RM "$cfgfile"
21422
21423    cat <<_LT_EOF >> "$cfgfile"
21424#! $SHELL
21425# Generated automatically by $as_me ($PACKAGE) $VERSION
21426# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21427# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21428
21429# Provide generalized library-building support services.
21430# Written by Gordon Matzigkeit, 1996
21431
21432# Copyright (C) 2014 Free Software Foundation, Inc.
21433# This is free software; see the source for copying conditions.  There is NO
21434# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21435
21436# GNU Libtool is free software; you can redistribute it and/or modify
21437# it under the terms of the GNU General Public License as published by
21438# the Free Software Foundation; either version 2 of of the License, or
21439# (at your option) any later version.
21440#
21441# As a special exception to the GNU General Public License, if you
21442# distribute this file as part of a program or library that is built
21443# using GNU Libtool, you may include this file under the  same
21444# distribution terms that you use for the rest of that program.
21445#
21446# GNU Libtool is distributed in the hope that it will be useful, but
21447# WITHOUT ANY WARRANTY; without even the implied warranty of
21448# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21449# GNU General Public License for more details.
21450#
21451# You should have received a copy of the GNU General Public License
21452# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21453
21454
21455# The names of the tagged configurations supported by this script.
21456available_tags=''
21457
21458# Configured defaults for sys_lib_dlsearch_path munging.
21459: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21460
21461# ### BEGIN LIBTOOL CONFIG
21462
21463# Whether or not to build static libraries.
21464build_old_libs=$enable_static
21465
21466# Which release of libtool.m4 was used?
21467macro_version=$macro_version
21468macro_revision=$macro_revision
21469
21470# Whether or not to build shared libraries.
21471build_libtool_libs=$enable_shared
21472
21473# What type of objects to build.
21474pic_mode=$pic_mode
21475
21476# Whether or not to optimize for fast installation.
21477fast_install=$enable_fast_install
21478
21479# Shared archive member basename,for filename based shared library versioning on AIX.
21480shared_archive_member_spec=$shared_archive_member_spec
21481
21482# Shell to use when invoking shell scripts.
21483SHELL=$lt_SHELL
21484
21485# An echo program that protects backslashes.
21486ECHO=$lt_ECHO
21487
21488# The PATH separator for the build system.
21489PATH_SEPARATOR=$lt_PATH_SEPARATOR
21490
21491# The host system.
21492host_alias=$host_alias
21493host=$host
21494host_os=$host_os
21495
21496# The build system.
21497build_alias=$build_alias
21498build=$build
21499build_os=$build_os
21500
21501# A sed program that does not truncate output.
21502SED=$lt_SED
21503
21504# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21505Xsed="\$SED -e 1s/^X//"
21506
21507# A grep program that handles long lines.
21508GREP=$lt_GREP
21509
21510# An ERE matcher.
21511EGREP=$lt_EGREP
21512
21513# A literal string matcher.
21514FGREP=$lt_FGREP
21515
21516# A BSD- or MS-compatible name lister.
21517NM=$lt_NM
21518
21519# Whether we need soft or hard links.
21520LN_S=$lt_LN_S
21521
21522# What is the maximum length of a command?
21523max_cmd_len=$max_cmd_len
21524
21525# Object file suffix (normally "o").
21526objext=$ac_objext
21527
21528# Executable file suffix (normally "").
21529exeext=$exeext
21530
21531# whether the shell understands "unset".
21532lt_unset=$lt_unset
21533
21534# turn spaces into newlines.
21535SP2NL=$lt_lt_SP2NL
21536
21537# turn newlines into spaces.
21538NL2SP=$lt_lt_NL2SP
21539
21540# convert \$build file names to \$host format.
21541to_host_file_cmd=$lt_cv_to_host_file_cmd
21542
21543# convert \$build files to toolchain format.
21544to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21545
21546# A file(cmd) program that detects file types.
21547FILECMD=$lt_FILECMD
21548
21549# An object symbol dumper.
21550OBJDUMP=$lt_OBJDUMP
21551
21552# Method to check whether dependent libraries are shared objects.
21553deplibs_check_method=$lt_deplibs_check_method
21554
21555# Command to use when deplibs_check_method = "file_magic".
21556file_magic_cmd=$lt_file_magic_cmd
21557
21558# How to find potential files when deplibs_check_method = "file_magic".
21559file_magic_glob=$lt_file_magic_glob
21560
21561# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21562want_nocaseglob=$lt_want_nocaseglob
21563
21564# DLL creation program.
21565DLLTOOL=$lt_DLLTOOL
21566
21567# Command to associate shared and link libraries.
21568sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21569
21570# The archiver.
21571AR=$lt_AR
21572
21573# Flags to create an archive (by configure).
21574lt_ar_flags=$lt_ar_flags
21575
21576# Flags to create an archive.
21577AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21578
21579# How to feed a file listing to the archiver.
21580archiver_list_spec=$lt_archiver_list_spec
21581
21582# A symbol stripping program.
21583STRIP=$lt_STRIP
21584
21585# Commands used to install an old-style archive.
21586RANLIB=$lt_RANLIB
21587old_postinstall_cmds=$lt_old_postinstall_cmds
21588old_postuninstall_cmds=$lt_old_postuninstall_cmds
21589
21590# Whether to use a lock for old archive extraction.
21591lock_old_archive_extraction=$lock_old_archive_extraction
21592
21593# A C compiler.
21594LTCC=$lt_CC
21595
21596# LTCC compiler flags.
21597LTCFLAGS=$lt_CFLAGS
21598
21599# Take the output of nm and produce a listing of raw symbols and C names.
21600global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21601
21602# Transform the output of nm in a proper C declaration.
21603global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21604
21605# Transform the output of nm into a list of symbols to manually relocate.
21606global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21607
21608# Transform the output of nm in a C name address pair.
21609global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21610
21611# Transform the output of nm in a C name address pair when lib prefix is needed.
21612global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21613
21614# The name lister interface.
21615nm_interface=$lt_lt_cv_nm_interface
21616
21617# Specify filename containing input files for \$NM.
21618nm_file_list_spec=$lt_nm_file_list_spec
21619
21620# The root where to search for dependent libraries,and where our libraries should be installed.
21621lt_sysroot=$lt_sysroot
21622
21623# Command to truncate a binary pipe.
21624lt_truncate_bin=$lt_lt_cv_truncate_bin
21625
21626# The name of the directory that contains temporary libtool files.
21627objdir=$objdir
21628
21629# Used to examine libraries when file_magic_cmd begins with "file".
21630MAGIC_CMD=$MAGIC_CMD
21631
21632# Must we lock files when doing compilation?
21633need_locks=$lt_need_locks
21634
21635# Manifest tool.
21636MANIFEST_TOOL=$lt_MANIFEST_TOOL
21637
21638# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21639DSYMUTIL=$lt_DSYMUTIL
21640
21641# Tool to change global to local symbols on Mac OS X.
21642NMEDIT=$lt_NMEDIT
21643
21644# Tool to manipulate fat objects and archives on Mac OS X.
21645LIPO=$lt_LIPO
21646
21647# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21648OTOOL=$lt_OTOOL
21649
21650# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21651OTOOL64=$lt_OTOOL64
21652
21653# Old archive suffix (normally "a").
21654libext=$libext
21655
21656# Shared library suffix (normally ".so").
21657shrext_cmds=$lt_shrext_cmds
21658
21659# The commands to extract the exported symbol list from a shared archive.
21660extract_expsyms_cmds=$lt_extract_expsyms_cmds
21661
21662# Variables whose values should be saved in libtool wrapper scripts and
21663# restored at link time.
21664variables_saved_for_relink=$lt_variables_saved_for_relink
21665
21666# Do we need the "lib" prefix for modules?
21667need_lib_prefix=$need_lib_prefix
21668
21669# Do we need a version for libraries?
21670need_version=$need_version
21671
21672# Library versioning type.
21673version_type=$version_type
21674
21675# Shared library runtime path variable.
21676runpath_var=$runpath_var
21677
21678# Shared library path variable.
21679shlibpath_var=$shlibpath_var
21680
21681# Is shlibpath searched before the hard-coded library search path?
21682shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21683
21684# Format of library name prefix.
21685libname_spec=$lt_libname_spec
21686
21687# List of archive names.  First name is the real one, the rest are links.
21688# The last name is the one that the linker finds with -lNAME
21689library_names_spec=$lt_library_names_spec
21690
21691# The coded name of the library, if different from the real name.
21692soname_spec=$lt_soname_spec
21693
21694# Permission mode override for installation of shared libraries.
21695install_override_mode=$lt_install_override_mode
21696
21697# Command to use after installation of a shared archive.
21698postinstall_cmds=$lt_postinstall_cmds
21699
21700# Command to use after uninstallation of a shared archive.
21701postuninstall_cmds=$lt_postuninstall_cmds
21702
21703# Commands used to finish a libtool library installation in a directory.
21704finish_cmds=$lt_finish_cmds
21705
21706# As "finish_cmds", except a single script fragment to be evaled but
21707# not shown.
21708finish_eval=$lt_finish_eval
21709
21710# Whether we should hardcode library paths into libraries.
21711hardcode_into_libs=$hardcode_into_libs
21712
21713# Compile-time system search path for libraries.
21714sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21715
21716# Detected run-time system search path for libraries.
21717sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21718
21719# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21720configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21721
21722# Whether dlopen is supported.
21723dlopen_support=$enable_dlopen
21724
21725# Whether dlopen of programs is supported.
21726dlopen_self=$enable_dlopen_self
21727
21728# Whether dlopen of statically linked programs is supported.
21729dlopen_self_static=$enable_dlopen_self_static
21730
21731# Commands to strip libraries.
21732old_striplib=$lt_old_striplib
21733striplib=$lt_striplib
21734
21735
21736# The linker used to build libraries.
21737LD=$lt_LD
21738
21739# How to create reloadable object files.
21740reload_flag=$lt_reload_flag
21741reload_cmds=$lt_reload_cmds
21742
21743# Commands used to build an old-style archive.
21744old_archive_cmds=$lt_old_archive_cmds
21745
21746# A language specific compiler.
21747CC=$lt_compiler
21748
21749# Is the compiler the GNU compiler?
21750with_gcc=$GCC
21751
21752# Compiler flag to turn off builtin functions.
21753no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21754
21755# Additional compiler flags for building library objects.
21756pic_flag=$lt_lt_prog_compiler_pic
21757
21758# How to pass a linker flag through the compiler.
21759wl=$lt_lt_prog_compiler_wl
21760
21761# Compiler flag to prevent dynamic linking.
21762link_static_flag=$lt_lt_prog_compiler_static
21763
21764# Does compiler simultaneously support -c and -o options?
21765compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21766
21767# Whether or not to add -lc for building shared libraries.
21768build_libtool_need_lc=$archive_cmds_need_lc
21769
21770# Whether or not to disallow shared libs when runtime libs are static.
21771allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21772
21773# Compiler flag to allow reflexive dlopens.
21774export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21775
21776# Compiler flag to generate shared objects directly from archives.
21777whole_archive_flag_spec=$lt_whole_archive_flag_spec
21778
21779# Whether the compiler copes with passing no objects directly.
21780compiler_needs_object=$lt_compiler_needs_object
21781
21782# Create an old-style archive from a shared archive.
21783old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21784
21785# Create a temporary old-style archive to link instead of a shared archive.
21786old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21787
21788# Commands used to build a shared archive.
21789archive_cmds=$lt_archive_cmds
21790archive_expsym_cmds=$lt_archive_expsym_cmds
21791
21792# Commands used to build a loadable module if different from building
21793# a shared archive.
21794module_cmds=$lt_module_cmds
21795module_expsym_cmds=$lt_module_expsym_cmds
21796
21797# Whether we are building with GNU ld or not.
21798with_gnu_ld=$lt_with_gnu_ld
21799
21800# Flag that allows shared libraries with undefined symbols to be built.
21801allow_undefined_flag=$lt_allow_undefined_flag
21802
21803# Flag that enforces no undefined symbols.
21804no_undefined_flag=$lt_no_undefined_flag
21805
21806# Flag to hardcode \$libdir into a binary during linking.
21807# This must work even if \$libdir does not exist
21808hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21809
21810# Whether we need a single "-rpath" flag with a separated argument.
21811hardcode_libdir_separator=$lt_hardcode_libdir_separator
21812
21813# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21814# DIR into the resulting binary.
21815hardcode_direct=$hardcode_direct
21816
21817# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21818# DIR into the resulting binary and the resulting library dependency is
21819# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21820# library is relocated.
21821hardcode_direct_absolute=$hardcode_direct_absolute
21822
21823# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21824# into the resulting binary.
21825hardcode_minus_L=$hardcode_minus_L
21826
21827# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21828# into the resulting binary.
21829hardcode_shlibpath_var=$hardcode_shlibpath_var
21830
21831# Set to "yes" if building a shared library automatically hardcodes DIR
21832# into the library and all subsequent libraries and executables linked
21833# against it.
21834hardcode_automatic=$hardcode_automatic
21835
21836# Set to yes if linker adds runtime paths of dependent libraries
21837# to runtime path list.
21838inherit_rpath=$inherit_rpath
21839
21840# Whether libtool must link a program against all its dependency libraries.
21841link_all_deplibs=$link_all_deplibs
21842
21843# Set to "yes" if exported symbols are required.
21844always_export_symbols=$always_export_symbols
21845
21846# The commands to list exported symbols.
21847export_symbols_cmds=$lt_export_symbols_cmds
21848
21849# Symbols that should not be listed in the preloaded symbols.
21850exclude_expsyms=$lt_exclude_expsyms
21851
21852# Symbols that must always be exported.
21853include_expsyms=$lt_include_expsyms
21854
21855# Commands necessary for linking programs (against libraries) with templates.
21856prelink_cmds=$lt_prelink_cmds
21857
21858# Commands necessary for finishing linking programs.
21859postlink_cmds=$lt_postlink_cmds
21860
21861# Specify filename containing input files.
21862file_list_spec=$lt_file_list_spec
21863
21864# How to hardcode a shared library path into an executable.
21865hardcode_action=$hardcode_action
21866
21867# ### END LIBTOOL CONFIG
21868
21869_LT_EOF
21870
21871    cat <<'_LT_EOF' >> "$cfgfile"
21872
21873# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21874
21875# func_munge_path_list VARIABLE PATH
21876# -----------------------------------
21877# VARIABLE is name of variable containing _space_ separated list of
21878# directories to be munged by the contents of PATH, which is string
21879# having a format:
21880# "DIR[:DIR]:"
21881#       string "DIR[ DIR]" will be prepended to VARIABLE
21882# ":DIR[:DIR]"
21883#       string "DIR[ DIR]" will be appended to VARIABLE
21884# "DIRP[:DIRP]::[DIRA:]DIRA"
21885#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21886#       "DIRA[ DIRA]" will be appended to VARIABLE
21887# "DIR[:DIR]"
21888#       VARIABLE will be replaced by "DIR[ DIR]"
21889func_munge_path_list ()
21890{
21891    case x$2 in
21892    x)
21893        ;;
21894    *:)
21895        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21896        ;;
21897    x:*)
21898        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21899        ;;
21900    *::*)
21901        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21902        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21903        ;;
21904    *)
21905        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21906        ;;
21907    esac
21908}
21909
21910
21911# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21912func_cc_basename ()
21913{
21914    for cc_temp in $*""; do
21915      case $cc_temp in
21916        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21917        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21918        \-*) ;;
21919        *) break;;
21920      esac
21921    done
21922    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21923}
21924
21925
21926# ### END FUNCTIONS SHARED WITH CONFIGURE
21927
21928_LT_EOF
21929
21930  case $host_os in
21931  aix3*)
21932    cat <<\_LT_EOF >> "$cfgfile"
21933# AIX sometimes has problems with the GCC collect2 program.  For some
21934# reason, if we set the COLLECT_NAMES environment variable, the problems
21935# vanish in a puff of smoke.
21936if test set != "${COLLECT_NAMES+set}"; then
21937  COLLECT_NAMES=
21938  export COLLECT_NAMES
21939fi
21940_LT_EOF
21941    ;;
21942  esac
21943
21944
21945
21946ltmain=$ac_aux_dir/ltmain.sh
21947
21948
21949  # We use sed instead of cat because bash on DJGPP gets confused if
21950  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21951  # text mode, it properly converts lines to CR/LF.  This bash problem
21952  # is reportedly fixed, but why not run on old versions too?
21953  $SED '$q' "$ltmain" >> "$cfgfile" \
21954     || (rm -f "$cfgfile"; exit 1)
21955
21956   mv -f "$cfgfile" "$ofile" ||
21957    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21958  chmod +x "$ofile"
21959
21960 ;;
21961
21962  esac
21963done # for ac_tag
21964
21965
21966as_fn_exit 0
21967_ACEOF
21968ac_clean_files=$ac_clean_files_save
21969
21970test $ac_write_fail = 0 ||
21971  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21972
21973
21974# configure is writing to config.log, and then calls config.status.
21975# config.status does its own redirection, appending to config.log.
21976# Unfortunately, on DOS this fails, as config.log is still kept open
21977# by configure, so config.status won't be able to write to it; its
21978# output is simply discarded.  So we exec the FD to /dev/null,
21979# effectively closing config.log, so it can be properly (re)opened and
21980# appended to by config.status.  When coming back to configure, we
21981# need to make the FD available again.
21982if test "$no_create" != yes; then
21983  ac_cs_success=:
21984  ac_config_status_args=
21985  test "$silent" = yes &&
21986    ac_config_status_args="$ac_config_status_args --quiet"
21987  exec 5>/dev/null
21988  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21989  exec 5>>config.log
21990  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21991  # would make configure fail if this is the last instruction.
21992  $ac_cs_success || as_fn_exit 1
21993fi
21994if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21995  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21996printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21997fi
21998
21999
22000