configure revision e2463426
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-video-tdfx 1.4.6.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
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  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
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'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='xf86-video-tdfx'
593PACKAGE_TARNAME='xf86-video-tdfx'
594PACKAGE_VERSION='1.4.6'
595PACKAGE_STRING='xf86-video-tdfx 1.4.6'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597PACKAGE_URL=''
598
599ac_unique_file="Makefile.am"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640DRIVER_NAME
641moduledir
642XAA_FALSE
643XAA_TRUE
644XSERVER_LIBPCIACCESS_FALSE
645XSERVER_LIBPCIACCESS_TRUE
646PCIACCESS_LIBS
647PCIACCESS_CFLAGS
648DRI_LIBS
649DRI_CFLAGS
650DRI_FALSE
651DRI_TRUE
652XORG_LIBS
653XORG_CFLAGS
654OTOOL64
655OTOOL
656LIPO
657NMEDIT
658DSYMUTIL
659MANIFEST_TOOL
660RANLIB
661ac_ct_AR
662AR
663DLLTOOL
664OBJDUMP
665LN_S
666NM
667ac_ct_DUMPBIN
668DUMPBIN
669LD
670FGREP
671LIBTOOL
672MAN_SUBSTS
673XORG_MAN_PAGE
674ADMIN_MAN_DIR
675DRIVER_MAN_DIR
676MISC_MAN_DIR
677FILE_MAN_DIR
678LIB_MAN_DIR
679APP_MAN_DIR
680ADMIN_MAN_SUFFIX
681DRIVER_MAN_SUFFIX
682MISC_MAN_SUFFIX
683FILE_MAN_SUFFIX
684LIB_MAN_SUFFIX
685APP_MAN_SUFFIX
686SED
687host_os
688host_vendor
689host_cpu
690host
691build_os
692build_vendor
693build_cpu
694build
695INSTALL_CMD
696PKG_CONFIG_LIBDIR
697PKG_CONFIG_PATH
698PKG_CONFIG
699CHANGELOG_CMD
700STRICT_CFLAGS
701CWARNFLAGS
702BASE_CFLAGS
703EGREP
704GREP
705CPP
706am__fastdepCC_FALSE
707am__fastdepCC_TRUE
708CCDEPMODE
709am__nodep
710AMDEPBACKSLASH
711AMDEP_FALSE
712AMDEP_TRUE
713am__quote
714am__include
715DEPDIR
716OBJEXT
717EXEEXT
718ac_ct_CC
719CPPFLAGS
720LDFLAGS
721CFLAGS
722CC
723MAINT
724MAINTAINER_MODE_FALSE
725MAINTAINER_MODE_TRUE
726AM_BACKSLASH
727AM_DEFAULT_VERBOSITY
728AM_DEFAULT_V
729AM_V
730am__untar
731am__tar
732AMTAR
733am__leading_dot
734SET_MAKE
735AWK
736mkdir_p
737MKDIR_P
738INSTALL_STRIP_PROGRAM
739STRIP
740install_sh
741MAKEINFO
742AUTOHEADER
743AUTOMAKE
744AUTOCONF
745ACLOCAL
746VERSION
747PACKAGE
748CYGPATH_W
749am__isrc
750INSTALL_DATA
751INSTALL_SCRIPT
752INSTALL_PROGRAM
753target_alias
754host_alias
755build_alias
756LIBS
757ECHO_T
758ECHO_N
759ECHO_C
760DEFS
761mandir
762localedir
763libdir
764psdir
765pdfdir
766dvidir
767htmldir
768infodir
769docdir
770oldincludedir
771includedir
772localstatedir
773sharedstatedir
774sysconfdir
775datadir
776datarootdir
777libexecdir
778sbindir
779bindir
780program_transform_name
781prefix
782exec_prefix
783PACKAGE_URL
784PACKAGE_BUGREPORT
785PACKAGE_STRING
786PACKAGE_VERSION
787PACKAGE_TARNAME
788PACKAGE_NAME
789PATH_SEPARATOR
790SHELL'
791ac_subst_files=''
792ac_user_opts='
793enable_option_checking
794enable_silent_rules
795enable_maintainer_mode
796enable_dependency_tracking
797enable_selective_werror
798enable_strict_compilation
799enable_static
800enable_shared
801with_pic
802enable_fast_install
803with_aix_soname
804with_gnu_ld
805with_sysroot
806enable_libtool_lock
807with_xorg_module_dir
808enable_dri
809enable_xaa
810'
811      ac_precious_vars='build_alias
812host_alias
813target_alias
814CC
815CFLAGS
816LDFLAGS
817LIBS
818CPPFLAGS
819CPP
820PKG_CONFIG
821PKG_CONFIG_PATH
822PKG_CONFIG_LIBDIR
823XORG_CFLAGS
824XORG_LIBS
825DRI_CFLAGS
826DRI_LIBS
827PCIACCESS_CFLAGS
828PCIACCESS_LIBS'
829
830
831# Initialize some variables set by options.
832ac_init_help=
833ac_init_version=false
834ac_unrecognized_opts=
835ac_unrecognized_sep=
836# The variables have the same names as the options, with
837# dashes changed to underlines.
838cache_file=/dev/null
839exec_prefix=NONE
840no_create=
841no_recursion=
842prefix=NONE
843program_prefix=NONE
844program_suffix=NONE
845program_transform_name=s,x,x,
846silent=
847site=
848srcdir=
849verbose=
850x_includes=NONE
851x_libraries=NONE
852
853# Installation directory options.
854# These are left unexpanded so users can "make install exec_prefix=/foo"
855# and all the variables that are supposed to be based on exec_prefix
856# by default will actually change.
857# Use braces instead of parens because sh, perl, etc. also accept them.
858# (The list follows the same order as the GNU Coding Standards.)
859bindir='${exec_prefix}/bin'
860sbindir='${exec_prefix}/sbin'
861libexecdir='${exec_prefix}/libexec'
862datarootdir='${prefix}/share'
863datadir='${datarootdir}'
864sysconfdir='${prefix}/etc'
865sharedstatedir='${prefix}/com'
866localstatedir='${prefix}/var'
867includedir='${prefix}/include'
868oldincludedir='/usr/include'
869docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870infodir='${datarootdir}/info'
871htmldir='${docdir}'
872dvidir='${docdir}'
873pdfdir='${docdir}'
874psdir='${docdir}'
875libdir='${exec_prefix}/lib'
876localedir='${datarootdir}/locale'
877mandir='${datarootdir}/man'
878
879ac_prev=
880ac_dashdash=
881for ac_option
882do
883  # If the previous option needs an argument, assign it.
884  if test -n "$ac_prev"; then
885    eval $ac_prev=\$ac_option
886    ac_prev=
887    continue
888  fi
889
890  case $ac_option in
891  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892  *=)   ac_optarg= ;;
893  *)    ac_optarg=yes ;;
894  esac
895
896  # Accept the important Cygnus configure options, so we can diagnose typos.
897
898  case $ac_dashdash$ac_option in
899  --)
900    ac_dashdash=yes ;;
901
902  -bindir | --bindir | --bindi | --bind | --bin | --bi)
903    ac_prev=bindir ;;
904  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905    bindir=$ac_optarg ;;
906
907  -build | --build | --buil | --bui | --bu)
908    ac_prev=build_alias ;;
909  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910    build_alias=$ac_optarg ;;
911
912  -cache-file | --cache-file | --cache-fil | --cache-fi \
913  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914    ac_prev=cache_file ;;
915  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917    cache_file=$ac_optarg ;;
918
919  --config-cache | -C)
920    cache_file=config.cache ;;
921
922  -datadir | --datadir | --datadi | --datad)
923    ac_prev=datadir ;;
924  -datadir=* | --datadir=* | --datadi=* | --datad=*)
925    datadir=$ac_optarg ;;
926
927  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928  | --dataroo | --dataro | --datar)
929    ac_prev=datarootdir ;;
930  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932    datarootdir=$ac_optarg ;;
933
934  -disable-* | --disable-*)
935    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936    # Reject names that are not valid shell variable names.
937    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938      as_fn_error $? "invalid feature name: $ac_useropt"
939    ac_useropt_orig=$ac_useropt
940    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941    case $ac_user_opts in
942      *"
943"enable_$ac_useropt"
944"*) ;;
945      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946	 ac_unrecognized_sep=', ';;
947    esac
948    eval enable_$ac_useropt=no ;;
949
950  -docdir | --docdir | --docdi | --doc | --do)
951    ac_prev=docdir ;;
952  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953    docdir=$ac_optarg ;;
954
955  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956    ac_prev=dvidir ;;
957  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958    dvidir=$ac_optarg ;;
959
960  -enable-* | --enable-*)
961    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962    # Reject names that are not valid shell variable names.
963    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964      as_fn_error $? "invalid feature name: $ac_useropt"
965    ac_useropt_orig=$ac_useropt
966    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967    case $ac_user_opts in
968      *"
969"enable_$ac_useropt"
970"*) ;;
971      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972	 ac_unrecognized_sep=', ';;
973    esac
974    eval enable_$ac_useropt=\$ac_optarg ;;
975
976  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978  | --exec | --exe | --ex)
979    ac_prev=exec_prefix ;;
980  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982  | --exec=* | --exe=* | --ex=*)
983    exec_prefix=$ac_optarg ;;
984
985  -gas | --gas | --ga | --g)
986    # Obsolete; use --with-gas.
987    with_gas=yes ;;
988
989  -help | --help | --hel | --he | -h)
990    ac_init_help=long ;;
991  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992    ac_init_help=recursive ;;
993  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994    ac_init_help=short ;;
995
996  -host | --host | --hos | --ho)
997    ac_prev=host_alias ;;
998  -host=* | --host=* | --hos=* | --ho=*)
999    host_alias=$ac_optarg ;;
1000
1001  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002    ac_prev=htmldir ;;
1003  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004  | --ht=*)
1005    htmldir=$ac_optarg ;;
1006
1007  -includedir | --includedir | --includedi | --included | --include \
1008  | --includ | --inclu | --incl | --inc)
1009    ac_prev=includedir ;;
1010  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011  | --includ=* | --inclu=* | --incl=* | --inc=*)
1012    includedir=$ac_optarg ;;
1013
1014  -infodir | --infodir | --infodi | --infod | --info | --inf)
1015    ac_prev=infodir ;;
1016  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017    infodir=$ac_optarg ;;
1018
1019  -libdir | --libdir | --libdi | --libd)
1020    ac_prev=libdir ;;
1021  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022    libdir=$ac_optarg ;;
1023
1024  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025  | --libexe | --libex | --libe)
1026    ac_prev=libexecdir ;;
1027  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028  | --libexe=* | --libex=* | --libe=*)
1029    libexecdir=$ac_optarg ;;
1030
1031  -localedir | --localedir | --localedi | --localed | --locale)
1032    ac_prev=localedir ;;
1033  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034    localedir=$ac_optarg ;;
1035
1036  -localstatedir | --localstatedir | --localstatedi | --localstated \
1037  | --localstate | --localstat | --localsta | --localst | --locals)
1038    ac_prev=localstatedir ;;
1039  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041    localstatedir=$ac_optarg ;;
1042
1043  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044    ac_prev=mandir ;;
1045  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046    mandir=$ac_optarg ;;
1047
1048  -nfp | --nfp | --nf)
1049    # Obsolete; use --without-fp.
1050    with_fp=no ;;
1051
1052  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053  | --no-cr | --no-c | -n)
1054    no_create=yes ;;
1055
1056  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058    no_recursion=yes ;;
1059
1060  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062  | --oldin | --oldi | --old | --ol | --o)
1063    ac_prev=oldincludedir ;;
1064  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067    oldincludedir=$ac_optarg ;;
1068
1069  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070    ac_prev=prefix ;;
1071  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072    prefix=$ac_optarg ;;
1073
1074  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075  | --program-pre | --program-pr | --program-p)
1076    ac_prev=program_prefix ;;
1077  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079    program_prefix=$ac_optarg ;;
1080
1081  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082  | --program-suf | --program-su | --program-s)
1083    ac_prev=program_suffix ;;
1084  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086    program_suffix=$ac_optarg ;;
1087
1088  -program-transform-name | --program-transform-name \
1089  | --program-transform-nam | --program-transform-na \
1090  | --program-transform-n | --program-transform- \
1091  | --program-transform | --program-transfor \
1092  | --program-transfo | --program-transf \
1093  | --program-trans | --program-tran \
1094  | --progr-tra | --program-tr | --program-t)
1095    ac_prev=program_transform_name ;;
1096  -program-transform-name=* | --program-transform-name=* \
1097  | --program-transform-nam=* | --program-transform-na=* \
1098  | --program-transform-n=* | --program-transform-=* \
1099  | --program-transform=* | --program-transfor=* \
1100  | --program-transfo=* | --program-transf=* \
1101  | --program-trans=* | --program-tran=* \
1102  | --progr-tra=* | --program-tr=* | --program-t=*)
1103    program_transform_name=$ac_optarg ;;
1104
1105  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106    ac_prev=pdfdir ;;
1107  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108    pdfdir=$ac_optarg ;;
1109
1110  -psdir | --psdir | --psdi | --psd | --ps)
1111    ac_prev=psdir ;;
1112  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113    psdir=$ac_optarg ;;
1114
1115  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116  | -silent | --silent | --silen | --sile | --sil)
1117    silent=yes ;;
1118
1119  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120    ac_prev=sbindir ;;
1121  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122  | --sbi=* | --sb=*)
1123    sbindir=$ac_optarg ;;
1124
1125  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127  | --sharedst | --shareds | --shared | --share | --shar \
1128  | --sha | --sh)
1129    ac_prev=sharedstatedir ;;
1130  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133  | --sha=* | --sh=*)
1134    sharedstatedir=$ac_optarg ;;
1135
1136  -site | --site | --sit)
1137    ac_prev=site ;;
1138  -site=* | --site=* | --sit=*)
1139    site=$ac_optarg ;;
1140
1141  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142    ac_prev=srcdir ;;
1143  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144    srcdir=$ac_optarg ;;
1145
1146  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147  | --syscon | --sysco | --sysc | --sys | --sy)
1148    ac_prev=sysconfdir ;;
1149  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151    sysconfdir=$ac_optarg ;;
1152
1153  -target | --target | --targe | --targ | --tar | --ta | --t)
1154    ac_prev=target_alias ;;
1155  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156    target_alias=$ac_optarg ;;
1157
1158  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159    verbose=yes ;;
1160
1161  -version | --version | --versio | --versi | --vers | -V)
1162    ac_init_version=: ;;
1163
1164  -with-* | --with-*)
1165    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166    # Reject names that are not valid shell variable names.
1167    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168      as_fn_error $? "invalid package name: $ac_useropt"
1169    ac_useropt_orig=$ac_useropt
1170    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171    case $ac_user_opts in
1172      *"
1173"with_$ac_useropt"
1174"*) ;;
1175      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176	 ac_unrecognized_sep=', ';;
1177    esac
1178    eval with_$ac_useropt=\$ac_optarg ;;
1179
1180  -without-* | --without-*)
1181    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182    # Reject names that are not valid shell variable names.
1183    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184      as_fn_error $? "invalid package name: $ac_useropt"
1185    ac_useropt_orig=$ac_useropt
1186    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187    case $ac_user_opts in
1188      *"
1189"with_$ac_useropt"
1190"*) ;;
1191      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192	 ac_unrecognized_sep=', ';;
1193    esac
1194    eval with_$ac_useropt=no ;;
1195
1196  --x)
1197    # Obsolete; use --with-x.
1198    with_x=yes ;;
1199
1200  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201  | --x-incl | --x-inc | --x-in | --x-i)
1202    ac_prev=x_includes ;;
1203  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205    x_includes=$ac_optarg ;;
1206
1207  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209    ac_prev=x_libraries ;;
1210  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212    x_libraries=$ac_optarg ;;
1213
1214  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1215Try \`$0 --help' for more information"
1216    ;;
1217
1218  *=*)
1219    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220    # Reject names that are not valid shell variable names.
1221    case $ac_envvar in #(
1222      '' | [0-9]* | *[!_$as_cr_alnum]* )
1223      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1224    esac
1225    eval $ac_envvar=\$ac_optarg
1226    export $ac_envvar ;;
1227
1228  *)
1229    # FIXME: should be removed in autoconf 3.0.
1230    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1234    ;;
1235
1236  esac
1237done
1238
1239if test -n "$ac_prev"; then
1240  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241  as_fn_error $? "missing argument to $ac_option"
1242fi
1243
1244if test -n "$ac_unrecognized_opts"; then
1245  case $enable_option_checking in
1246    no) ;;
1247    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1248    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249  esac
1250fi
1251
1252# Check all directory arguments for consistency.
1253for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254		datadir sysconfdir sharedstatedir localstatedir includedir \
1255		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256		libdir localedir mandir
1257do
1258  eval ac_val=\$$ac_var
1259  # Remove trailing slashes.
1260  case $ac_val in
1261    */ )
1262      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263      eval $ac_var=\$ac_val;;
1264  esac
1265  # Be sure to have absolute directory names.
1266  case $ac_val in
1267    [\\/$]* | ?:[\\/]* )  continue;;
1268    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269  esac
1270  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1271done
1272
1273# There might be people who depend on the old broken behavior: `$host'
1274# used to hold the argument of --host etc.
1275# FIXME: To remove some day.
1276build=$build_alias
1277host=$host_alias
1278target=$target_alias
1279
1280# FIXME: To remove some day.
1281if test "x$host_alias" != x; then
1282  if test "x$build_alias" = x; then
1283    cross_compiling=maybe
1284  elif test "x$build_alias" != "x$host_alias"; then
1285    cross_compiling=yes
1286  fi
1287fi
1288
1289ac_tool_prefix=
1290test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291
1292test "$silent" = yes && exec 6>/dev/null
1293
1294
1295ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296ac_ls_di=`ls -di .` &&
1297ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298  as_fn_error $? "working directory cannot be determined"
1299test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300  as_fn_error $? "pwd does not report name of working directory"
1301
1302
1303# Find the source files, if location was not specified.
1304if test -z "$srcdir"; then
1305  ac_srcdir_defaulted=yes
1306  # Try the directory containing this script, then the parent directory.
1307  ac_confdir=`$as_dirname -- "$as_myself" ||
1308$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309	 X"$as_myself" : 'X\(//\)[^/]' \| \
1310	 X"$as_myself" : 'X\(//\)$' \| \
1311	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312$as_echo X"$as_myself" |
1313    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314	    s//\1/
1315	    q
1316	  }
1317	  /^X\(\/\/\)[^/].*/{
1318	    s//\1/
1319	    q
1320	  }
1321	  /^X\(\/\/\)$/{
1322	    s//\1/
1323	    q
1324	  }
1325	  /^X\(\/\).*/{
1326	    s//\1/
1327	    q
1328	  }
1329	  s/.*/./; q'`
1330  srcdir=$ac_confdir
1331  if test ! -r "$srcdir/$ac_unique_file"; then
1332    srcdir=..
1333  fi
1334else
1335  ac_srcdir_defaulted=no
1336fi
1337if test ! -r "$srcdir/$ac_unique_file"; then
1338  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1340fi
1341ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342ac_abs_confdir=`(
1343	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1344	pwd)`
1345# When building in place, set srcdir=.
1346if test "$ac_abs_confdir" = "$ac_pwd"; then
1347  srcdir=.
1348fi
1349# Remove unnecessary trailing slashes from srcdir.
1350# Double slashes in file names in object file debugging info
1351# mess up M-x gdb in Emacs.
1352case $srcdir in
1353*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354esac
1355for ac_var in $ac_precious_vars; do
1356  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357  eval ac_env_${ac_var}_value=\$${ac_var}
1358  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360done
1361
1362#
1363# Report the --help message.
1364#
1365if test "$ac_init_help" = "long"; then
1366  # Omit some internal or obsolete options to make the list less imposing.
1367  # This message is too long to be a string in the A/UX 3.1 sh.
1368  cat <<_ACEOF
1369\`configure' configures xf86-video-tdfx 1.4.6 to adapt to many kinds of systems.
1370
1371Usage: $0 [OPTION]... [VAR=VALUE]...
1372
1373To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374VAR=VALUE.  See below for descriptions of some of the useful variables.
1375
1376Defaults for the options are specified in brackets.
1377
1378Configuration:
1379  -h, --help              display this help and exit
1380      --help=short        display options specific to this package
1381      --help=recursive    display the short help of all the included packages
1382  -V, --version           display version information and exit
1383  -q, --quiet, --silent   do not print \`checking ...' messages
1384      --cache-file=FILE   cache test results in FILE [disabled]
1385  -C, --config-cache      alias for \`--cache-file=config.cache'
1386  -n, --no-create         do not create output files
1387      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1388
1389Installation directories:
1390  --prefix=PREFIX         install architecture-independent files in PREFIX
1391                          [$ac_default_prefix]
1392  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1393                          [PREFIX]
1394
1395By default, \`make install' will install all the files in
1396\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1397an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398for instance \`--prefix=\$HOME'.
1399
1400For better control, use the options below.
1401
1402Fine tuning of the installation directories:
1403  --bindir=DIR            user executables [EPREFIX/bin]
1404  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1405  --libexecdir=DIR        program executables [EPREFIX/libexec]
1406  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1407  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1408  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1409  --libdir=DIR            object code libraries [EPREFIX/lib]
1410  --includedir=DIR        C header files [PREFIX/include]
1411  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1412  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1413  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1414  --infodir=DIR           info documentation [DATAROOTDIR/info]
1415  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1416  --mandir=DIR            man documentation [DATAROOTDIR/man]
1417  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-tdfx]
1418  --htmldir=DIR           html documentation [DOCDIR]
1419  --dvidir=DIR            dvi documentation [DOCDIR]
1420  --pdfdir=DIR            pdf documentation [DOCDIR]
1421  --psdir=DIR             ps documentation [DOCDIR]
1422_ACEOF
1423
1424  cat <<\_ACEOF
1425
1426Program names:
1427  --program-prefix=PREFIX            prepend PREFIX to installed program names
1428  --program-suffix=SUFFIX            append SUFFIX to installed program names
1429  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1430
1431System types:
1432  --build=BUILD     configure for building on BUILD [guessed]
1433  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1434_ACEOF
1435fi
1436
1437if test -n "$ac_init_help"; then
1438  case $ac_init_help in
1439     short | recursive ) echo "Configuration of xf86-video-tdfx 1.4.6:";;
1440   esac
1441  cat <<\_ACEOF
1442
1443Optional Features:
1444  --disable-option-checking  ignore unrecognized --enable/--with options
1445  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1446  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1447  --enable-silent-rules   less verbose build output (undo: "make V=1")
1448  --disable-silent-rules  verbose build output (undo: "make V=0")
1449  --enable-maintainer-mode
1450                          enable make rules and dependencies not useful (and
1451                          sometimes confusing) to the casual installer
1452  --enable-dependency-tracking
1453                          do not reject slow dependency extractors
1454  --disable-dependency-tracking
1455                          speeds up one-time build
1456  --disable-selective-werror
1457                          Turn off selective compiler errors. (default:
1458                          enabled)
1459  --enable-strict-compilation
1460                          Enable all warnings from compiler and make them
1461                          errors (default: disabled)
1462  --enable-static[=PKGS]  build static libraries [default=no]
1463  --enable-shared[=PKGS]  build shared libraries [default=yes]
1464  --enable-fast-install[=PKGS]
1465                          optimize for fast installation [default=yes]
1466  --disable-libtool-lock  avoid locking (might break parallel builds)
1467  --disable-dri           Disable DRI support [[default=auto]]
1468  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1469                          [default=auto]
1470
1471Optional Packages:
1472  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1473  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1474  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1475                          both]
1476  --with-aix-soname=aix|svr4|both
1477                          shared library versioning (aka "SONAME") variant to
1478                          provide on AIX, [default=aix].
1479  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1480  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1481                          compiler's sysroot if not specified).
1482  --with-xorg-module-dir=DIR
1483                          Default xorg module directory
1484                          [[default=$libdir/xorg/modules]]
1485
1486Some influential environment variables:
1487  CC          C compiler command
1488  CFLAGS      C compiler flags
1489  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1490              nonstandard directory <lib dir>
1491  LIBS        libraries to pass to the linker, e.g. -l<library>
1492  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1493              you have headers in a nonstandard directory <include dir>
1494  CPP         C preprocessor
1495  PKG_CONFIG  path to pkg-config utility
1496  PKG_CONFIG_PATH
1497              directories to add to pkg-config's search path
1498  PKG_CONFIG_LIBDIR
1499              path overriding pkg-config's built-in search path
1500  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1501  XORG_LIBS   linker flags for XORG, overriding pkg-config
1502  DRI_CFLAGS  C compiler flags for DRI, overriding pkg-config
1503  DRI_LIBS    linker flags for DRI, overriding pkg-config
1504  PCIACCESS_CFLAGS
1505              C compiler flags for PCIACCESS, overriding pkg-config
1506  PCIACCESS_LIBS
1507              linker flags for PCIACCESS, overriding pkg-config
1508
1509Use these variables to override the choices made by `configure' or to help
1510it to find libraries and programs with nonstandard names/locations.
1511
1512Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1513_ACEOF
1514ac_status=$?
1515fi
1516
1517if test "$ac_init_help" = "recursive"; then
1518  # If there are subdirs, report their specific --help.
1519  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1520    test -d "$ac_dir" ||
1521      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1522      continue
1523    ac_builddir=.
1524
1525case "$ac_dir" in
1526.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527*)
1528  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1529  # A ".." for each directory in $ac_dir_suffix.
1530  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1531  case $ac_top_builddir_sub in
1532  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1534  esac ;;
1535esac
1536ac_abs_top_builddir=$ac_pwd
1537ac_abs_builddir=$ac_pwd$ac_dir_suffix
1538# for backward compatibility:
1539ac_top_builddir=$ac_top_build_prefix
1540
1541case $srcdir in
1542  .)  # We are building in place.
1543    ac_srcdir=.
1544    ac_top_srcdir=$ac_top_builddir_sub
1545    ac_abs_top_srcdir=$ac_pwd ;;
1546  [\\/]* | ?:[\\/]* )  # Absolute name.
1547    ac_srcdir=$srcdir$ac_dir_suffix;
1548    ac_top_srcdir=$srcdir
1549    ac_abs_top_srcdir=$srcdir ;;
1550  *) # Relative name.
1551    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1552    ac_top_srcdir=$ac_top_build_prefix$srcdir
1553    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554esac
1555ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1556
1557    cd "$ac_dir" || { ac_status=$?; continue; }
1558    # Check for guested configure.
1559    if test -f "$ac_srcdir/configure.gnu"; then
1560      echo &&
1561      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1562    elif test -f "$ac_srcdir/configure"; then
1563      echo &&
1564      $SHELL "$ac_srcdir/configure" --help=recursive
1565    else
1566      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1567    fi || ac_status=$?
1568    cd "$ac_pwd" || { ac_status=$?; break; }
1569  done
1570fi
1571
1572test -n "$ac_init_help" && exit $ac_status
1573if $ac_init_version; then
1574  cat <<\_ACEOF
1575xf86-video-tdfx configure 1.4.6
1576generated by GNU Autoconf 2.69
1577
1578Copyright (C) 2012 Free Software Foundation, Inc.
1579This configure script is free software; the Free Software Foundation
1580gives unlimited permission to copy, distribute and modify it.
1581_ACEOF
1582  exit
1583fi
1584
1585## ------------------------ ##
1586## Autoconf initialization. ##
1587## ------------------------ ##
1588
1589# ac_fn_c_try_compile LINENO
1590# --------------------------
1591# Try to compile conftest.$ac_ext, and return whether this succeeded.
1592ac_fn_c_try_compile ()
1593{
1594  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595  rm -f conftest.$ac_objext
1596  if { { ac_try="$ac_compile"
1597case "(($ac_try" in
1598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599  *) ac_try_echo=$ac_try;;
1600esac
1601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602$as_echo "$ac_try_echo"; } >&5
1603  (eval "$ac_compile") 2>conftest.err
1604  ac_status=$?
1605  if test -s conftest.err; then
1606    grep -v '^ *+' conftest.err >conftest.er1
1607    cat conftest.er1 >&5
1608    mv -f conftest.er1 conftest.err
1609  fi
1610  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1611  test $ac_status = 0; } && {
1612	 test -z "$ac_c_werror_flag" ||
1613	 test ! -s conftest.err
1614       } && test -s conftest.$ac_objext; then :
1615  ac_retval=0
1616else
1617  $as_echo "$as_me: failed program was:" >&5
1618sed 's/^/| /' conftest.$ac_ext >&5
1619
1620	ac_retval=1
1621fi
1622  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623  as_fn_set_status $ac_retval
1624
1625} # ac_fn_c_try_compile
1626
1627# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1628# ---------------------------------------------
1629# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1630# accordingly.
1631ac_fn_c_check_decl ()
1632{
1633  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634  as_decl_name=`echo $2|sed 's/ *(.*//'`
1635  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1636  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1637$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1638if eval \${$3+:} false; then :
1639  $as_echo_n "(cached) " >&6
1640else
1641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642/* end confdefs.h.  */
1643$4
1644int
1645main ()
1646{
1647#ifndef $as_decl_name
1648#ifdef __cplusplus
1649  (void) $as_decl_use;
1650#else
1651  (void) $as_decl_name;
1652#endif
1653#endif
1654
1655  ;
1656  return 0;
1657}
1658_ACEOF
1659if ac_fn_c_try_compile "$LINENO"; then :
1660  eval "$3=yes"
1661else
1662  eval "$3=no"
1663fi
1664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665fi
1666eval ac_res=\$$3
1667	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668$as_echo "$ac_res" >&6; }
1669  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670
1671} # ac_fn_c_check_decl
1672
1673# ac_fn_c_try_cpp LINENO
1674# ----------------------
1675# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1676ac_fn_c_try_cpp ()
1677{
1678  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679  if { { ac_try="$ac_cpp conftest.$ac_ext"
1680case "(($ac_try" in
1681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682  *) ac_try_echo=$ac_try;;
1683esac
1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685$as_echo "$ac_try_echo"; } >&5
1686  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1687  ac_status=$?
1688  if test -s conftest.err; then
1689    grep -v '^ *+' conftest.err >conftest.er1
1690    cat conftest.er1 >&5
1691    mv -f conftest.er1 conftest.err
1692  fi
1693  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694  test $ac_status = 0; } > conftest.i && {
1695	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1696	 test ! -s conftest.err
1697       }; then :
1698  ac_retval=0
1699else
1700  $as_echo "$as_me: failed program was:" >&5
1701sed 's/^/| /' conftest.$ac_ext >&5
1702
1703    ac_retval=1
1704fi
1705  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706  as_fn_set_status $ac_retval
1707
1708} # ac_fn_c_try_cpp
1709
1710# ac_fn_c_try_run LINENO
1711# ----------------------
1712# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1713# that executables *can* be run.
1714ac_fn_c_try_run ()
1715{
1716  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717  if { { ac_try="$ac_link"
1718case "(($ac_try" in
1719  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720  *) ac_try_echo=$ac_try;;
1721esac
1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723$as_echo "$ac_try_echo"; } >&5
1724  (eval "$ac_link") 2>&5
1725  ac_status=$?
1726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1728  { { case "(($ac_try" in
1729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730  *) ac_try_echo=$ac_try;;
1731esac
1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733$as_echo "$ac_try_echo"; } >&5
1734  (eval "$ac_try") 2>&5
1735  ac_status=$?
1736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737  test $ac_status = 0; }; }; then :
1738  ac_retval=0
1739else
1740  $as_echo "$as_me: program exited with status $ac_status" >&5
1741       $as_echo "$as_me: failed program was:" >&5
1742sed 's/^/| /' conftest.$ac_ext >&5
1743
1744       ac_retval=$ac_status
1745fi
1746  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748  as_fn_set_status $ac_retval
1749
1750} # ac_fn_c_try_run
1751
1752# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1753# -------------------------------------------------------
1754# Tests whether HEADER exists and can be compiled using the include files in
1755# INCLUDES, setting the cache variable VAR accordingly.
1756ac_fn_c_check_header_compile ()
1757{
1758  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760$as_echo_n "checking for $2... " >&6; }
1761if eval \${$3+:} false; then :
1762  $as_echo_n "(cached) " >&6
1763else
1764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765/* end confdefs.h.  */
1766$4
1767#include <$2>
1768_ACEOF
1769if ac_fn_c_try_compile "$LINENO"; then :
1770  eval "$3=yes"
1771else
1772  eval "$3=no"
1773fi
1774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775fi
1776eval ac_res=\$$3
1777	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778$as_echo "$ac_res" >&6; }
1779  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781} # ac_fn_c_check_header_compile
1782
1783# ac_fn_c_try_link LINENO
1784# -----------------------
1785# Try to link conftest.$ac_ext, and return whether this succeeded.
1786ac_fn_c_try_link ()
1787{
1788  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789  rm -f conftest.$ac_objext conftest$ac_exeext
1790  if { { ac_try="$ac_link"
1791case "(($ac_try" in
1792  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793  *) ac_try_echo=$ac_try;;
1794esac
1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796$as_echo "$ac_try_echo"; } >&5
1797  (eval "$ac_link") 2>conftest.err
1798  ac_status=$?
1799  if test -s conftest.err; then
1800    grep -v '^ *+' conftest.err >conftest.er1
1801    cat conftest.er1 >&5
1802    mv -f conftest.er1 conftest.err
1803  fi
1804  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805  test $ac_status = 0; } && {
1806	 test -z "$ac_c_werror_flag" ||
1807	 test ! -s conftest.err
1808       } && test -s conftest$ac_exeext && {
1809	 test "$cross_compiling" = yes ||
1810	 test -x conftest$ac_exeext
1811       }; then :
1812  ac_retval=0
1813else
1814  $as_echo "$as_me: failed program was:" >&5
1815sed 's/^/| /' conftest.$ac_ext >&5
1816
1817	ac_retval=1
1818fi
1819  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1820  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1821  # interfere with the next link command; also delete a directory that is
1822  # left behind by Apple's compiler.  We do this before executing the actions.
1823  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825  as_fn_set_status $ac_retval
1826
1827} # ac_fn_c_try_link
1828
1829# ac_fn_c_check_func LINENO FUNC VAR
1830# ----------------------------------
1831# Tests whether FUNC exists, setting the cache variable VAR accordingly
1832ac_fn_c_check_func ()
1833{
1834  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1836$as_echo_n "checking for $2... " >&6; }
1837if eval \${$3+:} false; then :
1838  $as_echo_n "(cached) " >&6
1839else
1840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841/* end confdefs.h.  */
1842/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1843   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1844#define $2 innocuous_$2
1845
1846/* System header to define __stub macros and hopefully few prototypes,
1847    which can conflict with char $2 (); below.
1848    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1849    <limits.h> exists even on freestanding compilers.  */
1850
1851#ifdef __STDC__
1852# include <limits.h>
1853#else
1854# include <assert.h>
1855#endif
1856
1857#undef $2
1858
1859/* Override any GCC internal prototype to avoid an error.
1860   Use char because int might match the return type of a GCC
1861   builtin and then its argument prototype would still apply.  */
1862#ifdef __cplusplus
1863extern "C"
1864#endif
1865char $2 ();
1866/* The GNU C library defines this for functions which it implements
1867    to always fail with ENOSYS.  Some functions are actually named
1868    something starting with __ and the normal name is an alias.  */
1869#if defined __stub_$2 || defined __stub___$2
1870choke me
1871#endif
1872
1873int
1874main ()
1875{
1876return $2 ();
1877  ;
1878  return 0;
1879}
1880_ACEOF
1881if ac_fn_c_try_link "$LINENO"; then :
1882  eval "$3=yes"
1883else
1884  eval "$3=no"
1885fi
1886rm -f core conftest.err conftest.$ac_objext \
1887    conftest$ac_exeext conftest.$ac_ext
1888fi
1889eval ac_res=\$$3
1890	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891$as_echo "$ac_res" >&6; }
1892  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893
1894} # ac_fn_c_check_func
1895
1896# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1897# -------------------------------------------------------
1898# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1899# the include files in INCLUDES and setting the cache variable VAR
1900# accordingly.
1901ac_fn_c_check_header_mongrel ()
1902{
1903  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904  if eval \${$3+:} false; then :
1905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906$as_echo_n "checking for $2... " >&6; }
1907if eval \${$3+:} false; then :
1908  $as_echo_n "(cached) " >&6
1909fi
1910eval ac_res=\$$3
1911	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912$as_echo "$ac_res" >&6; }
1913else
1914  # Is the header compilable?
1915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1916$as_echo_n "checking $2 usability... " >&6; }
1917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918/* end confdefs.h.  */
1919$4
1920#include <$2>
1921_ACEOF
1922if ac_fn_c_try_compile "$LINENO"; then :
1923  ac_header_compiler=yes
1924else
1925  ac_header_compiler=no
1926fi
1927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1929$as_echo "$ac_header_compiler" >&6; }
1930
1931# Is the header present?
1932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1933$as_echo_n "checking $2 presence... " >&6; }
1934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935/* end confdefs.h.  */
1936#include <$2>
1937_ACEOF
1938if ac_fn_c_try_cpp "$LINENO"; then :
1939  ac_header_preproc=yes
1940else
1941  ac_header_preproc=no
1942fi
1943rm -f conftest.err conftest.i conftest.$ac_ext
1944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1945$as_echo "$ac_header_preproc" >&6; }
1946
1947# So?  What about this header?
1948case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1949  yes:no: )
1950    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1951$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1952    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1953$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1954    ;;
1955  no:yes:* )
1956    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1957$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1958    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1959$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1960    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1961$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1962    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1963$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1964    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1965$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1966( $as_echo "## ---------------------------------------------------------------------- ##
1967## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1968## ---------------------------------------------------------------------- ##"
1969     ) | sed "s/^/$as_me: WARNING:     /" >&2
1970    ;;
1971esac
1972  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973$as_echo_n "checking for $2... " >&6; }
1974if eval \${$3+:} false; then :
1975  $as_echo_n "(cached) " >&6
1976else
1977  eval "$3=\$ac_header_compiler"
1978fi
1979eval ac_res=\$$3
1980	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981$as_echo "$ac_res" >&6; }
1982fi
1983  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984
1985} # ac_fn_c_check_header_mongrel
1986cat >config.log <<_ACEOF
1987This file contains any messages produced by compilers while
1988running configure, to aid debugging if configure makes a mistake.
1989
1990It was created by xf86-video-tdfx $as_me 1.4.6, which was
1991generated by GNU Autoconf 2.69.  Invocation command line was
1992
1993  $ $0 $@
1994
1995_ACEOF
1996exec 5>>config.log
1997{
1998cat <<_ASUNAME
1999## --------- ##
2000## Platform. ##
2001## --------- ##
2002
2003hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2004uname -m = `(uname -m) 2>/dev/null || echo unknown`
2005uname -r = `(uname -r) 2>/dev/null || echo unknown`
2006uname -s = `(uname -s) 2>/dev/null || echo unknown`
2007uname -v = `(uname -v) 2>/dev/null || echo unknown`
2008
2009/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2010/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2011
2012/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2013/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2014/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2015/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2016/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2017/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2018/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2019
2020_ASUNAME
2021
2022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023for as_dir in $PATH
2024do
2025  IFS=$as_save_IFS
2026  test -z "$as_dir" && as_dir=.
2027    $as_echo "PATH: $as_dir"
2028  done
2029IFS=$as_save_IFS
2030
2031} >&5
2032
2033cat >&5 <<_ACEOF
2034
2035
2036## ----------- ##
2037## Core tests. ##
2038## ----------- ##
2039
2040_ACEOF
2041
2042
2043# Keep a trace of the command line.
2044# Strip out --no-create and --no-recursion so they do not pile up.
2045# Strip out --silent because we don't want to record it for future runs.
2046# Also quote any args containing shell meta-characters.
2047# Make two passes to allow for proper duplicate-argument suppression.
2048ac_configure_args=
2049ac_configure_args0=
2050ac_configure_args1=
2051ac_must_keep_next=false
2052for ac_pass in 1 2
2053do
2054  for ac_arg
2055  do
2056    case $ac_arg in
2057    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2058    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2059    | -silent | --silent | --silen | --sile | --sil)
2060      continue ;;
2061    *\'*)
2062      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2063    esac
2064    case $ac_pass in
2065    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2066    2)
2067      as_fn_append ac_configure_args1 " '$ac_arg'"
2068      if test $ac_must_keep_next = true; then
2069	ac_must_keep_next=false # Got value, back to normal.
2070      else
2071	case $ac_arg in
2072	  *=* | --config-cache | -C | -disable-* | --disable-* \
2073	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2074	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2075	  | -with-* | --with-* | -without-* | --without-* | --x)
2076	    case "$ac_configure_args0 " in
2077	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2078	    esac
2079	    ;;
2080	  -* ) ac_must_keep_next=true ;;
2081	esac
2082      fi
2083      as_fn_append ac_configure_args " '$ac_arg'"
2084      ;;
2085    esac
2086  done
2087done
2088{ ac_configure_args0=; unset ac_configure_args0;}
2089{ ac_configure_args1=; unset ac_configure_args1;}
2090
2091# When interrupted or exit'd, cleanup temporary files, and complete
2092# config.log.  We remove comments because anyway the quotes in there
2093# would cause problems or look ugly.
2094# WARNING: Use '\'' to represent an apostrophe within the trap.
2095# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2096trap 'exit_status=$?
2097  # Save into config.log some information that might help in debugging.
2098  {
2099    echo
2100
2101    $as_echo "## ---------------- ##
2102## Cache variables. ##
2103## ---------------- ##"
2104    echo
2105    # The following way of writing the cache mishandles newlines in values,
2106(
2107  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2108    eval ac_val=\$$ac_var
2109    case $ac_val in #(
2110    *${as_nl}*)
2111      case $ac_var in #(
2112      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2113$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2114      esac
2115      case $ac_var in #(
2116      _ | IFS | as_nl) ;; #(
2117      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2118      *) { eval $ac_var=; unset $ac_var;} ;;
2119      esac ;;
2120    esac
2121  done
2122  (set) 2>&1 |
2123    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2124    *${as_nl}ac_space=\ *)
2125      sed -n \
2126	"s/'\''/'\''\\\\'\'''\''/g;
2127	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2128      ;; #(
2129    *)
2130      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2131      ;;
2132    esac |
2133    sort
2134)
2135    echo
2136
2137    $as_echo "## ----------------- ##
2138## Output variables. ##
2139## ----------------- ##"
2140    echo
2141    for ac_var in $ac_subst_vars
2142    do
2143      eval ac_val=\$$ac_var
2144      case $ac_val in
2145      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146      esac
2147      $as_echo "$ac_var='\''$ac_val'\''"
2148    done | sort
2149    echo
2150
2151    if test -n "$ac_subst_files"; then
2152      $as_echo "## ------------------- ##
2153## File substitutions. ##
2154## ------------------- ##"
2155      echo
2156      for ac_var in $ac_subst_files
2157      do
2158	eval ac_val=\$$ac_var
2159	case $ac_val in
2160	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2161	esac
2162	$as_echo "$ac_var='\''$ac_val'\''"
2163      done | sort
2164      echo
2165    fi
2166
2167    if test -s confdefs.h; then
2168      $as_echo "## ----------- ##
2169## confdefs.h. ##
2170## ----------- ##"
2171      echo
2172      cat confdefs.h
2173      echo
2174    fi
2175    test "$ac_signal" != 0 &&
2176      $as_echo "$as_me: caught signal $ac_signal"
2177    $as_echo "$as_me: exit $exit_status"
2178  } >&5
2179  rm -f core *.core core.conftest.* &&
2180    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2181    exit $exit_status
2182' 0
2183for ac_signal in 1 2 13 15; do
2184  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2185done
2186ac_signal=0
2187
2188# confdefs.h avoids OS command line length limits that DEFS can exceed.
2189rm -f -r conftest* confdefs.h
2190
2191$as_echo "/* confdefs.h */" > confdefs.h
2192
2193# Predefined preprocessor variables.
2194
2195cat >>confdefs.h <<_ACEOF
2196#define PACKAGE_NAME "$PACKAGE_NAME"
2197_ACEOF
2198
2199cat >>confdefs.h <<_ACEOF
2200#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2201_ACEOF
2202
2203cat >>confdefs.h <<_ACEOF
2204#define PACKAGE_VERSION "$PACKAGE_VERSION"
2205_ACEOF
2206
2207cat >>confdefs.h <<_ACEOF
2208#define PACKAGE_STRING "$PACKAGE_STRING"
2209_ACEOF
2210
2211cat >>confdefs.h <<_ACEOF
2212#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2213_ACEOF
2214
2215cat >>confdefs.h <<_ACEOF
2216#define PACKAGE_URL "$PACKAGE_URL"
2217_ACEOF
2218
2219
2220# Let the site file select an alternate cache file if it wants to.
2221# Prefer an explicitly selected file to automatically selected ones.
2222ac_site_file1=NONE
2223ac_site_file2=NONE
2224if test -n "$CONFIG_SITE"; then
2225  # We do not want a PATH search for config.site.
2226  case $CONFIG_SITE in #((
2227    -*)  ac_site_file1=./$CONFIG_SITE;;
2228    */*) ac_site_file1=$CONFIG_SITE;;
2229    *)   ac_site_file1=./$CONFIG_SITE;;
2230  esac
2231elif test "x$prefix" != xNONE; then
2232  ac_site_file1=$prefix/share/config.site
2233  ac_site_file2=$prefix/etc/config.site
2234else
2235  ac_site_file1=$ac_default_prefix/share/config.site
2236  ac_site_file2=$ac_default_prefix/etc/config.site
2237fi
2238for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2239do
2240  test "x$ac_site_file" = xNONE && continue
2241  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2242    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2243$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2244    sed 's/^/| /' "$ac_site_file" >&5
2245    . "$ac_site_file" \
2246      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2248as_fn_error $? "failed to load site script $ac_site_file
2249See \`config.log' for more details" "$LINENO" 5; }
2250  fi
2251done
2252
2253if test -r "$cache_file"; then
2254  # Some versions of bash will fail to source /dev/null (special files
2255  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2256  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2257    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2258$as_echo "$as_me: loading cache $cache_file" >&6;}
2259    case $cache_file in
2260      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2261      *)                      . "./$cache_file";;
2262    esac
2263  fi
2264else
2265  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2266$as_echo "$as_me: creating cache $cache_file" >&6;}
2267  >$cache_file
2268fi
2269
2270# Check that the precious variables saved in the cache have kept the same
2271# value.
2272ac_cache_corrupted=false
2273for ac_var in $ac_precious_vars; do
2274  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2275  eval ac_new_set=\$ac_env_${ac_var}_set
2276  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2277  eval ac_new_val=\$ac_env_${ac_var}_value
2278  case $ac_old_set,$ac_new_set in
2279    set,)
2280      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2281$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2282      ac_cache_corrupted=: ;;
2283    ,set)
2284      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2285$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2286      ac_cache_corrupted=: ;;
2287    ,);;
2288    *)
2289      if test "x$ac_old_val" != "x$ac_new_val"; then
2290	# differences in whitespace do not lead to failure.
2291	ac_old_val_w=`echo x $ac_old_val`
2292	ac_new_val_w=`echo x $ac_new_val`
2293	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2294	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2295$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2296	  ac_cache_corrupted=:
2297	else
2298	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2299$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2300	  eval $ac_var=\$ac_old_val
2301	fi
2302	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2303$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2304	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2305$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2306      fi;;
2307  esac
2308  # Pass precious variables to config.status.
2309  if test "$ac_new_set" = set; then
2310    case $ac_new_val in
2311    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2312    *) ac_arg=$ac_var=$ac_new_val ;;
2313    esac
2314    case " $ac_configure_args " in
2315      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2316      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2317    esac
2318  fi
2319done
2320if $ac_cache_corrupted; then
2321  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2322$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2323  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2324$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2325  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2326fi
2327## -------------------- ##
2328## Main body of script. ##
2329## -------------------- ##
2330
2331ac_ext=c
2332ac_cpp='$CPP $CPPFLAGS'
2333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336
2337
2338
2339ac_config_headers="$ac_config_headers config.h"
2340
2341ac_aux_dir=
2342for ac_dir in . "$srcdir"/.; do
2343  if test -f "$ac_dir/install-sh"; then
2344    ac_aux_dir=$ac_dir
2345    ac_install_sh="$ac_aux_dir/install-sh -c"
2346    break
2347  elif test -f "$ac_dir/install.sh"; then
2348    ac_aux_dir=$ac_dir
2349    ac_install_sh="$ac_aux_dir/install.sh -c"
2350    break
2351  elif test -f "$ac_dir/shtool"; then
2352    ac_aux_dir=$ac_dir
2353    ac_install_sh="$ac_aux_dir/shtool install -c"
2354    break
2355  fi
2356done
2357if test -z "$ac_aux_dir"; then
2358  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2359fi
2360
2361# These three variables are undocumented and unsupported,
2362# and are intended to be withdrawn in a future Autoconf release.
2363# They can cause serious problems if a builder's source tree is in a directory
2364# whose full name contains unusual characters.
2365ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2366ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2367ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2368
2369
2370
2371# Initialize Automake
2372am__api_version='1.13'
2373
2374# Find a good install program.  We prefer a C program (faster),
2375# so one script is as good as another.  But avoid the broken or
2376# incompatible versions:
2377# SysV /etc/install, /usr/sbin/install
2378# SunOS /usr/etc/install
2379# IRIX /sbin/install
2380# AIX /bin/install
2381# AmigaOS /C/install, which installs bootblocks on floppy discs
2382# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2383# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2384# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2385# OS/2's system install, which has a completely different semantic
2386# ./install, which can be erroneously created by make from ./install.sh.
2387# Reject install programs that cannot install multiple files.
2388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2389$as_echo_n "checking for a BSD-compatible install... " >&6; }
2390if test -z "$INSTALL"; then
2391if ${ac_cv_path_install+:} false; then :
2392  $as_echo_n "(cached) " >&6
2393else
2394  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395for as_dir in $PATH
2396do
2397  IFS=$as_save_IFS
2398  test -z "$as_dir" && as_dir=.
2399    # Account for people who put trailing slashes in PATH elements.
2400case $as_dir/ in #((
2401  ./ | .// | /[cC]/* | \
2402  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2403  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2404  /usr/ucb/* ) ;;
2405  *)
2406    # OSF1 and SCO ODT 3.0 have their own names for install.
2407    # Don't use installbsd from OSF since it installs stuff as root
2408    # by default.
2409    for ac_prog in ginstall scoinst install; do
2410      for ac_exec_ext in '' $ac_executable_extensions; do
2411	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2412	  if test $ac_prog = install &&
2413	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2414	    # AIX install.  It has an incompatible calling convention.
2415	    :
2416	  elif test $ac_prog = install &&
2417	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2418	    # program-specific install script used by HP pwplus--don't use.
2419	    :
2420	  else
2421	    rm -rf conftest.one conftest.two conftest.dir
2422	    echo one > conftest.one
2423	    echo two > conftest.two
2424	    mkdir conftest.dir
2425	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2426	      test -s conftest.one && test -s conftest.two &&
2427	      test -s conftest.dir/conftest.one &&
2428	      test -s conftest.dir/conftest.two
2429	    then
2430	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2431	      break 3
2432	    fi
2433	  fi
2434	fi
2435      done
2436    done
2437    ;;
2438esac
2439
2440  done
2441IFS=$as_save_IFS
2442
2443rm -rf conftest.one conftest.two conftest.dir
2444
2445fi
2446  if test "${ac_cv_path_install+set}" = set; then
2447    INSTALL=$ac_cv_path_install
2448  else
2449    # As a last resort, use the slow shell script.  Don't cache a
2450    # value for INSTALL within a source directory, because that will
2451    # break other packages using the cache if that directory is
2452    # removed, or if the value is a relative name.
2453    INSTALL=$ac_install_sh
2454  fi
2455fi
2456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2457$as_echo "$INSTALL" >&6; }
2458
2459# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2460# It thinks the first close brace ends the variable substitution.
2461test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2462
2463test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2464
2465test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2466
2467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2468$as_echo_n "checking whether build environment is sane... " >&6; }
2469# Reject unsafe characters in $srcdir or the absolute working directory
2470# name.  Accept space and tab only in the latter.
2471am_lf='
2472'
2473case `pwd` in
2474  *[\\\"\#\$\&\'\`$am_lf]*)
2475    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2476esac
2477case $srcdir in
2478  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2479    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2480esac
2481
2482# Do 'set' in a subshell so we don't clobber the current shell's
2483# arguments.  Must try -L first in case configure is actually a
2484# symlink; some systems play weird games with the mod time of symlinks
2485# (eg FreeBSD returns the mod time of the symlink's containing
2486# directory).
2487if (
2488   am_has_slept=no
2489   for am_try in 1 2; do
2490     echo "timestamp, slept: $am_has_slept" > conftest.file
2491     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2492     if test "$*" = "X"; then
2493	# -L didn't work.
2494	set X `ls -t "$srcdir/configure" conftest.file`
2495     fi
2496     if test "$*" != "X $srcdir/configure conftest.file" \
2497	&& test "$*" != "X conftest.file $srcdir/configure"; then
2498
2499	# If neither matched, then we have a broken ls.  This can happen
2500	# if, for instance, CONFIG_SHELL is bash and it inherits a
2501	# broken ls alias from the environment.  This has actually
2502	# happened.  Such a system could not be considered "sane".
2503	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2504  alias in your environment" "$LINENO" 5
2505     fi
2506     if test "$2" = conftest.file || test $am_try -eq 2; then
2507       break
2508     fi
2509     # Just in case.
2510     sleep 1
2511     am_has_slept=yes
2512   done
2513   test "$2" = conftest.file
2514   )
2515then
2516   # Ok.
2517   :
2518else
2519   as_fn_error $? "newly created file is older than distributed files!
2520Check your system clock" "$LINENO" 5
2521fi
2522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2523$as_echo "yes" >&6; }
2524# If we didn't sleep, we still need to ensure time stamps of config.status and
2525# generated files are strictly newer.
2526am_sleep_pid=
2527if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2528  ( sleep 1 ) &
2529  am_sleep_pid=$!
2530fi
2531
2532rm -f conftest.file
2533
2534test "$program_prefix" != NONE &&
2535  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2536# Use a double $ so make ignores it.
2537test "$program_suffix" != NONE &&
2538  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2539# Double any \ or $.
2540# By default was `s,x,x', remove it if useless.
2541ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2542program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2543
2544# expand $ac_aux_dir to an absolute path
2545am_aux_dir=`cd $ac_aux_dir && pwd`
2546
2547if test x"${MISSING+set}" != xset; then
2548  case $am_aux_dir in
2549  *\ * | *\	*)
2550    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2551  *)
2552    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2553  esac
2554fi
2555# Use eval to expand $SHELL
2556if eval "$MISSING --is-lightweight"; then
2557  am_missing_run="$MISSING "
2558else
2559  am_missing_run=
2560  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2561$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2562fi
2563
2564if test x"${install_sh}" != xset; then
2565  case $am_aux_dir in
2566  *\ * | *\	*)
2567    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2568  *)
2569    install_sh="\${SHELL} $am_aux_dir/install-sh"
2570  esac
2571fi
2572
2573# Installed binaries are usually stripped using 'strip' when the user
2574# run "make install-strip".  However 'strip' might not be the right
2575# tool to use in cross-compilation environments, therefore Automake
2576# will honor the 'STRIP' environment variable to overrule this program.
2577if test "$cross_compiling" != no; then
2578  if test -n "$ac_tool_prefix"; then
2579  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2580set dummy ${ac_tool_prefix}strip; ac_word=$2
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2582$as_echo_n "checking for $ac_word... " >&6; }
2583if ${ac_cv_prog_STRIP+:} false; then :
2584  $as_echo_n "(cached) " >&6
2585else
2586  if test -n "$STRIP"; then
2587  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2588else
2589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590for as_dir in $PATH
2591do
2592  IFS=$as_save_IFS
2593  test -z "$as_dir" && as_dir=.
2594    for ac_exec_ext in '' $ac_executable_extensions; do
2595  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2596    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2598    break 2
2599  fi
2600done
2601  done
2602IFS=$as_save_IFS
2603
2604fi
2605fi
2606STRIP=$ac_cv_prog_STRIP
2607if test -n "$STRIP"; then
2608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2609$as_echo "$STRIP" >&6; }
2610else
2611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2612$as_echo "no" >&6; }
2613fi
2614
2615
2616fi
2617if test -z "$ac_cv_prog_STRIP"; then
2618  ac_ct_STRIP=$STRIP
2619  # Extract the first word of "strip", so it can be a program name with args.
2620set dummy strip; ac_word=$2
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2622$as_echo_n "checking for $ac_word... " >&6; }
2623if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2624  $as_echo_n "(cached) " >&6
2625else
2626  if test -n "$ac_ct_STRIP"; then
2627  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2628else
2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630for as_dir in $PATH
2631do
2632  IFS=$as_save_IFS
2633  test -z "$as_dir" && as_dir=.
2634    for ac_exec_ext in '' $ac_executable_extensions; do
2635  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636    ac_cv_prog_ac_ct_STRIP="strip"
2637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2638    break 2
2639  fi
2640done
2641  done
2642IFS=$as_save_IFS
2643
2644fi
2645fi
2646ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2647if test -n "$ac_ct_STRIP"; then
2648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2649$as_echo "$ac_ct_STRIP" >&6; }
2650else
2651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652$as_echo "no" >&6; }
2653fi
2654
2655  if test "x$ac_ct_STRIP" = x; then
2656    STRIP=":"
2657  else
2658    case $cross_compiling:$ac_tool_warned in
2659yes:)
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2661$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2662ac_tool_warned=yes ;;
2663esac
2664    STRIP=$ac_ct_STRIP
2665  fi
2666else
2667  STRIP="$ac_cv_prog_STRIP"
2668fi
2669
2670fi
2671INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2672
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2674$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2675if test -z "$MKDIR_P"; then
2676  if ${ac_cv_path_mkdir+:} false; then :
2677  $as_echo_n "(cached) " >&6
2678else
2679  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2681do
2682  IFS=$as_save_IFS
2683  test -z "$as_dir" && as_dir=.
2684    for ac_prog in mkdir gmkdir; do
2685	 for ac_exec_ext in '' $ac_executable_extensions; do
2686	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2687	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2688	     'mkdir (GNU coreutils) '* | \
2689	     'mkdir (coreutils) '* | \
2690	     'mkdir (fileutils) '4.1*)
2691	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2692	       break 3;;
2693	   esac
2694	 done
2695       done
2696  done
2697IFS=$as_save_IFS
2698
2699fi
2700
2701  test -d ./--version && rmdir ./--version
2702  if test "${ac_cv_path_mkdir+set}" = set; then
2703    MKDIR_P="$ac_cv_path_mkdir -p"
2704  else
2705    # As a last resort, use the slow shell script.  Don't cache a
2706    # value for MKDIR_P within a source directory, because that will
2707    # break other packages using the cache if that directory is
2708    # removed, or if the value is a relative name.
2709    MKDIR_P="$ac_install_sh -d"
2710  fi
2711fi
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2713$as_echo "$MKDIR_P" >&6; }
2714
2715for ac_prog in gawk mawk nawk awk
2716do
2717  # Extract the first word of "$ac_prog", so it can be a program name with args.
2718set dummy $ac_prog; ac_word=$2
2719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720$as_echo_n "checking for $ac_word... " >&6; }
2721if ${ac_cv_prog_AWK+:} false; then :
2722  $as_echo_n "(cached) " >&6
2723else
2724  if test -n "$AWK"; then
2725  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2726else
2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728for as_dir in $PATH
2729do
2730  IFS=$as_save_IFS
2731  test -z "$as_dir" && as_dir=.
2732    for ac_exec_ext in '' $ac_executable_extensions; do
2733  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2734    ac_cv_prog_AWK="$ac_prog"
2735    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736    break 2
2737  fi
2738done
2739  done
2740IFS=$as_save_IFS
2741
2742fi
2743fi
2744AWK=$ac_cv_prog_AWK
2745if test -n "$AWK"; then
2746  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2747$as_echo "$AWK" >&6; }
2748else
2749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750$as_echo "no" >&6; }
2751fi
2752
2753
2754  test -n "$AWK" && break
2755done
2756
2757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2758$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2759set x ${MAKE-make}
2760ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2761if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2762  $as_echo_n "(cached) " >&6
2763else
2764  cat >conftest.make <<\_ACEOF
2765SHELL = /bin/sh
2766all:
2767	@echo '@@@%%%=$(MAKE)=@@@%%%'
2768_ACEOF
2769# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2770case `${MAKE-make} -f conftest.make 2>/dev/null` in
2771  *@@@%%%=?*=@@@%%%*)
2772    eval ac_cv_prog_make_${ac_make}_set=yes;;
2773  *)
2774    eval ac_cv_prog_make_${ac_make}_set=no;;
2775esac
2776rm -f conftest.make
2777fi
2778if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2780$as_echo "yes" >&6; }
2781  SET_MAKE=
2782else
2783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784$as_echo "no" >&6; }
2785  SET_MAKE="MAKE=${MAKE-make}"
2786fi
2787
2788rm -rf .tst 2>/dev/null
2789mkdir .tst 2>/dev/null
2790if test -d .tst; then
2791  am__leading_dot=.
2792else
2793  am__leading_dot=_
2794fi
2795rmdir .tst 2>/dev/null
2796
2797# Check whether --enable-silent-rules was given.
2798if test "${enable_silent_rules+set}" = set; then :
2799  enableval=$enable_silent_rules;
2800fi
2801
2802case $enable_silent_rules in # (((
2803  yes) AM_DEFAULT_VERBOSITY=0;;
2804   no) AM_DEFAULT_VERBOSITY=1;;
2805    *) AM_DEFAULT_VERBOSITY=1;;
2806esac
2807am_make=${MAKE-make}
2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2809$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2810if ${am_cv_make_support_nested_variables+:} false; then :
2811  $as_echo_n "(cached) " >&6
2812else
2813  if $as_echo 'TRUE=$(BAR$(V))
2814BAR0=false
2815BAR1=true
2816V=1
2817am__doit:
2818	@$(TRUE)
2819.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2820  am_cv_make_support_nested_variables=yes
2821else
2822  am_cv_make_support_nested_variables=no
2823fi
2824fi
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2826$as_echo "$am_cv_make_support_nested_variables" >&6; }
2827if test $am_cv_make_support_nested_variables = yes; then
2828    AM_V='$(V)'
2829  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2830else
2831  AM_V=$AM_DEFAULT_VERBOSITY
2832  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2833fi
2834AM_BACKSLASH='\'
2835
2836if test "`cd $srcdir && pwd`" != "`pwd`"; then
2837  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2838  # is not polluted with repeated "-I."
2839  am__isrc=' -I$(srcdir)'
2840  # test to see if srcdir already configured
2841  if test -f $srcdir/config.status; then
2842    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2843  fi
2844fi
2845
2846# test whether we have cygpath
2847if test -z "$CYGPATH_W"; then
2848  if (cygpath --version) >/dev/null 2>/dev/null; then
2849    CYGPATH_W='cygpath -w'
2850  else
2851    CYGPATH_W=echo
2852  fi
2853fi
2854
2855
2856# Define the identity of the package.
2857 PACKAGE='xf86-video-tdfx'
2858 VERSION='1.4.6'
2859
2860
2861cat >>confdefs.h <<_ACEOF
2862#define PACKAGE "$PACKAGE"
2863_ACEOF
2864
2865
2866cat >>confdefs.h <<_ACEOF
2867#define VERSION "$VERSION"
2868_ACEOF
2869
2870# Some tools Automake needs.
2871
2872ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2873
2874
2875AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2876
2877
2878AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2879
2880
2881AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2882
2883
2884MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2885
2886# For better backward compatibility.  To be removed once Automake 1.9.x
2887# dies out for good.  For more background, see:
2888# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2889# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2890mkdir_p='$(MKDIR_P)'
2891
2892# We need awk for the "check" target.  The system "awk" is bad on
2893# some platforms.
2894# Always define AMTAR for backward compatibility.  Yes, it's still used
2895# in the wild :-(  We should find a proper way to deprecate it ...
2896AMTAR='$${TAR-tar}'
2897
2898
2899# We'll loop over all known methods to create a tar archive until one works.
2900_am_tools='gnutar  pax cpio none'
2901
2902am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2903
2904
2905
2906
2907
2908
2909
2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2911$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2912    # Check whether --enable-maintainer-mode was given.
2913if test "${enable_maintainer_mode+set}" = set; then :
2914  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2915else
2916  USE_MAINTAINER_MODE=no
2917fi
2918
2919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2920$as_echo "$USE_MAINTAINER_MODE" >&6; }
2921   if test $USE_MAINTAINER_MODE = yes; then
2922  MAINTAINER_MODE_TRUE=
2923  MAINTAINER_MODE_FALSE='#'
2924else
2925  MAINTAINER_MODE_TRUE='#'
2926  MAINTAINER_MODE_FALSE=
2927fi
2928
2929  MAINT=$MAINTAINER_MODE_TRUE
2930
2931
2932
2933# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945DEPDIR="${am__leading_dot}deps"
2946
2947ac_config_commands="$ac_config_commands depfiles"
2948
2949
2950am_make=${MAKE-make}
2951cat > confinc << 'END'
2952am__doit:
2953	@echo this is the am__doit target
2954.PHONY: am__doit
2955END
2956# If we don't find an include directive, just comment out the code.
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2958$as_echo_n "checking for style of include used by $am_make... " >&6; }
2959am__include="#"
2960am__quote=
2961_am_result=none
2962# First try GNU make style include.
2963echo "include confinc" > confmf
2964# Ignore all kinds of additional output from 'make'.
2965case `$am_make -s -f confmf 2> /dev/null` in #(
2966*the\ am__doit\ target*)
2967  am__include=include
2968  am__quote=
2969  _am_result=GNU
2970  ;;
2971esac
2972# Now try BSD make style include.
2973if test "$am__include" = "#"; then
2974   echo '.include "confinc"' > confmf
2975   case `$am_make -s -f confmf 2> /dev/null` in #(
2976   *the\ am__doit\ target*)
2977     am__include=.include
2978     am__quote="\""
2979     _am_result=BSD
2980     ;;
2981   esac
2982fi
2983
2984
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2986$as_echo "$_am_result" >&6; }
2987rm -f confinc confmf
2988
2989# Check whether --enable-dependency-tracking was given.
2990if test "${enable_dependency_tracking+set}" = set; then :
2991  enableval=$enable_dependency_tracking;
2992fi
2993
2994if test "x$enable_dependency_tracking" != xno; then
2995  am_depcomp="$ac_aux_dir/depcomp"
2996  AMDEPBACKSLASH='\'
2997  am__nodep='_no'
2998fi
2999 if test "x$enable_dependency_tracking" != xno; then
3000  AMDEP_TRUE=
3001  AMDEP_FALSE='#'
3002else
3003  AMDEP_TRUE='#'
3004  AMDEP_FALSE=
3005fi
3006
3007
3008ac_ext=c
3009ac_cpp='$CPP $CPPFLAGS'
3010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013if test -n "$ac_tool_prefix"; then
3014  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3015set dummy ${ac_tool_prefix}gcc; ac_word=$2
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3017$as_echo_n "checking for $ac_word... " >&6; }
3018if ${ac_cv_prog_CC+:} false; then :
3019  $as_echo_n "(cached) " >&6
3020else
3021  if test -n "$CC"; then
3022  ac_cv_prog_CC="$CC" # Let the user override the test.
3023else
3024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025for as_dir in $PATH
3026do
3027  IFS=$as_save_IFS
3028  test -z "$as_dir" && as_dir=.
3029    for ac_exec_ext in '' $ac_executable_extensions; do
3030  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3031    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3032    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3033    break 2
3034  fi
3035done
3036  done
3037IFS=$as_save_IFS
3038
3039fi
3040fi
3041CC=$ac_cv_prog_CC
3042if test -n "$CC"; then
3043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3044$as_echo "$CC" >&6; }
3045else
3046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047$as_echo "no" >&6; }
3048fi
3049
3050
3051fi
3052if test -z "$ac_cv_prog_CC"; then
3053  ac_ct_CC=$CC
3054  # Extract the first word of "gcc", so it can be a program name with args.
3055set dummy gcc; ac_word=$2
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3057$as_echo_n "checking for $ac_word... " >&6; }
3058if ${ac_cv_prog_ac_ct_CC+:} false; then :
3059  $as_echo_n "(cached) " >&6
3060else
3061  if test -n "$ac_ct_CC"; then
3062  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3063else
3064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065for as_dir in $PATH
3066do
3067  IFS=$as_save_IFS
3068  test -z "$as_dir" && as_dir=.
3069    for ac_exec_ext in '' $ac_executable_extensions; do
3070  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3071    ac_cv_prog_ac_ct_CC="gcc"
3072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073    break 2
3074  fi
3075done
3076  done
3077IFS=$as_save_IFS
3078
3079fi
3080fi
3081ac_ct_CC=$ac_cv_prog_ac_ct_CC
3082if test -n "$ac_ct_CC"; then
3083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3084$as_echo "$ac_ct_CC" >&6; }
3085else
3086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3087$as_echo "no" >&6; }
3088fi
3089
3090  if test "x$ac_ct_CC" = x; then
3091    CC=""
3092  else
3093    case $cross_compiling:$ac_tool_warned in
3094yes:)
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3096$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3097ac_tool_warned=yes ;;
3098esac
3099    CC=$ac_ct_CC
3100  fi
3101else
3102  CC="$ac_cv_prog_CC"
3103fi
3104
3105if test -z "$CC"; then
3106          if test -n "$ac_tool_prefix"; then
3107    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3108set dummy ${ac_tool_prefix}cc; ac_word=$2
3109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3110$as_echo_n "checking for $ac_word... " >&6; }
3111if ${ac_cv_prog_CC+:} false; then :
3112  $as_echo_n "(cached) " >&6
3113else
3114  if test -n "$CC"; then
3115  ac_cv_prog_CC="$CC" # Let the user override the test.
3116else
3117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118for as_dir in $PATH
3119do
3120  IFS=$as_save_IFS
3121  test -z "$as_dir" && as_dir=.
3122    for ac_exec_ext in '' $ac_executable_extensions; do
3123  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3124    ac_cv_prog_CC="${ac_tool_prefix}cc"
3125    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126    break 2
3127  fi
3128done
3129  done
3130IFS=$as_save_IFS
3131
3132fi
3133fi
3134CC=$ac_cv_prog_CC
3135if test -n "$CC"; then
3136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3137$as_echo "$CC" >&6; }
3138else
3139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140$as_echo "no" >&6; }
3141fi
3142
3143
3144  fi
3145fi
3146if test -z "$CC"; then
3147  # Extract the first word of "cc", so it can be a program name with args.
3148set dummy cc; ac_word=$2
3149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150$as_echo_n "checking for $ac_word... " >&6; }
3151if ${ac_cv_prog_CC+:} false; then :
3152  $as_echo_n "(cached) " >&6
3153else
3154  if test -n "$CC"; then
3155  ac_cv_prog_CC="$CC" # Let the user override the test.
3156else
3157  ac_prog_rejected=no
3158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159for as_dir in $PATH
3160do
3161  IFS=$as_save_IFS
3162  test -z "$as_dir" && as_dir=.
3163    for ac_exec_ext in '' $ac_executable_extensions; do
3164  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3165    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3166       ac_prog_rejected=yes
3167       continue
3168     fi
3169    ac_cv_prog_CC="cc"
3170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171    break 2
3172  fi
3173done
3174  done
3175IFS=$as_save_IFS
3176
3177if test $ac_prog_rejected = yes; then
3178  # We found a bogon in the path, so make sure we never use it.
3179  set dummy $ac_cv_prog_CC
3180  shift
3181  if test $# != 0; then
3182    # We chose a different compiler from the bogus one.
3183    # However, it has the same basename, so the bogon will be chosen
3184    # first if we set CC to just the basename; use the full file name.
3185    shift
3186    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3187  fi
3188fi
3189fi
3190fi
3191CC=$ac_cv_prog_CC
3192if test -n "$CC"; then
3193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3194$as_echo "$CC" >&6; }
3195else
3196  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197$as_echo "no" >&6; }
3198fi
3199
3200
3201fi
3202if test -z "$CC"; then
3203  if test -n "$ac_tool_prefix"; then
3204  for ac_prog in cl.exe
3205  do
3206    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3207set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3209$as_echo_n "checking for $ac_word... " >&6; }
3210if ${ac_cv_prog_CC+:} false; then :
3211  $as_echo_n "(cached) " >&6
3212else
3213  if test -n "$CC"; then
3214  ac_cv_prog_CC="$CC" # Let the user override the test.
3215else
3216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217for as_dir in $PATH
3218do
3219  IFS=$as_save_IFS
3220  test -z "$as_dir" && as_dir=.
3221    for ac_exec_ext in '' $ac_executable_extensions; do
3222  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3223    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3224    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3225    break 2
3226  fi
3227done
3228  done
3229IFS=$as_save_IFS
3230
3231fi
3232fi
3233CC=$ac_cv_prog_CC
3234if test -n "$CC"; then
3235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3236$as_echo "$CC" >&6; }
3237else
3238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3239$as_echo "no" >&6; }
3240fi
3241
3242
3243    test -n "$CC" && break
3244  done
3245fi
3246if test -z "$CC"; then
3247  ac_ct_CC=$CC
3248  for ac_prog in cl.exe
3249do
3250  # Extract the first word of "$ac_prog", so it can be a program name with args.
3251set dummy $ac_prog; ac_word=$2
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3253$as_echo_n "checking for $ac_word... " >&6; }
3254if ${ac_cv_prog_ac_ct_CC+:} false; then :
3255  $as_echo_n "(cached) " >&6
3256else
3257  if test -n "$ac_ct_CC"; then
3258  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3259else
3260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261for as_dir in $PATH
3262do
3263  IFS=$as_save_IFS
3264  test -z "$as_dir" && as_dir=.
3265    for ac_exec_ext in '' $ac_executable_extensions; do
3266  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3267    ac_cv_prog_ac_ct_CC="$ac_prog"
3268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3269    break 2
3270  fi
3271done
3272  done
3273IFS=$as_save_IFS
3274
3275fi
3276fi
3277ac_ct_CC=$ac_cv_prog_ac_ct_CC
3278if test -n "$ac_ct_CC"; then
3279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3280$as_echo "$ac_ct_CC" >&6; }
3281else
3282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283$as_echo "no" >&6; }
3284fi
3285
3286
3287  test -n "$ac_ct_CC" && break
3288done
3289
3290  if test "x$ac_ct_CC" = x; then
3291    CC=""
3292  else
3293    case $cross_compiling:$ac_tool_warned in
3294yes:)
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3296$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3297ac_tool_warned=yes ;;
3298esac
3299    CC=$ac_ct_CC
3300  fi
3301fi
3302
3303fi
3304
3305
3306test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3308as_fn_error $? "no acceptable C compiler found in \$PATH
3309See \`config.log' for more details" "$LINENO" 5; }
3310
3311# Provide some information about the compiler.
3312$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3313set X $ac_compile
3314ac_compiler=$2
3315for ac_option in --version -v -V -qversion; do
3316  { { ac_try="$ac_compiler $ac_option >&5"
3317case "(($ac_try" in
3318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319  *) ac_try_echo=$ac_try;;
3320esac
3321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322$as_echo "$ac_try_echo"; } >&5
3323  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3324  ac_status=$?
3325  if test -s conftest.err; then
3326    sed '10a\
3327... rest of stderr output deleted ...
3328         10q' conftest.err >conftest.er1
3329    cat conftest.er1 >&5
3330  fi
3331  rm -f conftest.er1 conftest.err
3332  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333  test $ac_status = 0; }
3334done
3335
3336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337/* end confdefs.h.  */
3338
3339int
3340main ()
3341{
3342
3343  ;
3344  return 0;
3345}
3346_ACEOF
3347ac_clean_files_save=$ac_clean_files
3348ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3349# Try to create an executable without -o first, disregard a.out.
3350# It will help us diagnose broken compilers, and finding out an intuition
3351# of exeext.
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3353$as_echo_n "checking whether the C compiler works... " >&6; }
3354ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3355
3356# The possible output files:
3357ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3358
3359ac_rmfiles=
3360for ac_file in $ac_files
3361do
3362  case $ac_file in
3363    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3364    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3365  esac
3366done
3367rm -f $ac_rmfiles
3368
3369if { { ac_try="$ac_link_default"
3370case "(($ac_try" in
3371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372  *) ac_try_echo=$ac_try;;
3373esac
3374eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3375$as_echo "$ac_try_echo"; } >&5
3376  (eval "$ac_link_default") 2>&5
3377  ac_status=$?
3378  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3379  test $ac_status = 0; }; then :
3380  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3381# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3382# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3383# so that the user can short-circuit this test for compilers unknown to
3384# Autoconf.
3385for ac_file in $ac_files ''
3386do
3387  test -f "$ac_file" || continue
3388  case $ac_file in
3389    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3390	;;
3391    [ab].out )
3392	# We found the default executable, but exeext='' is most
3393	# certainly right.
3394	break;;
3395    *.* )
3396	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3397	then :; else
3398	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3399	fi
3400	# We set ac_cv_exeext here because the later test for it is not
3401	# safe: cross compilers may not add the suffix if given an `-o'
3402	# argument, so we may need to know it at that point already.
3403	# Even if this section looks crufty: it has the advantage of
3404	# actually working.
3405	break;;
3406    * )
3407	break;;
3408  esac
3409done
3410test "$ac_cv_exeext" = no && ac_cv_exeext=
3411
3412else
3413  ac_file=''
3414fi
3415if test -z "$ac_file"; then :
3416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417$as_echo "no" >&6; }
3418$as_echo "$as_me: failed program was:" >&5
3419sed 's/^/| /' conftest.$ac_ext >&5
3420
3421{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423as_fn_error 77 "C compiler cannot create executables
3424See \`config.log' for more details" "$LINENO" 5; }
3425else
3426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3427$as_echo "yes" >&6; }
3428fi
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3430$as_echo_n "checking for C compiler default output file name... " >&6; }
3431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3432$as_echo "$ac_file" >&6; }
3433ac_exeext=$ac_cv_exeext
3434
3435rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3436ac_clean_files=$ac_clean_files_save
3437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3438$as_echo_n "checking for suffix of executables... " >&6; }
3439if { { ac_try="$ac_link"
3440case "(($ac_try" in
3441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442  *) ac_try_echo=$ac_try;;
3443esac
3444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445$as_echo "$ac_try_echo"; } >&5
3446  (eval "$ac_link") 2>&5
3447  ac_status=$?
3448  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3449  test $ac_status = 0; }; then :
3450  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3451# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3452# work properly (i.e., refer to `conftest.exe'), while it won't with
3453# `rm'.
3454for ac_file in conftest.exe conftest conftest.*; do
3455  test -f "$ac_file" || continue
3456  case $ac_file in
3457    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3458    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3459	  break;;
3460    * ) break;;
3461  esac
3462done
3463else
3464  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3467See \`config.log' for more details" "$LINENO" 5; }
3468fi
3469rm -f conftest conftest$ac_cv_exeext
3470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3471$as_echo "$ac_cv_exeext" >&6; }
3472
3473rm -f conftest.$ac_ext
3474EXEEXT=$ac_cv_exeext
3475ac_exeext=$EXEEXT
3476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477/* end confdefs.h.  */
3478#include <stdio.h>
3479int
3480main ()
3481{
3482FILE *f = fopen ("conftest.out", "w");
3483 return ferror (f) || fclose (f) != 0;
3484
3485  ;
3486  return 0;
3487}
3488_ACEOF
3489ac_clean_files="$ac_clean_files conftest.out"
3490# Check that the compiler produces executables we can run.  If not, either
3491# the compiler is broken, or we cross compile.
3492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3493$as_echo_n "checking whether we are cross compiling... " >&6; }
3494if test "$cross_compiling" != yes; then
3495  { { ac_try="$ac_link"
3496case "(($ac_try" in
3497  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498  *) ac_try_echo=$ac_try;;
3499esac
3500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3501$as_echo "$ac_try_echo"; } >&5
3502  (eval "$ac_link") 2>&5
3503  ac_status=$?
3504  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3505  test $ac_status = 0; }
3506  if { ac_try='./conftest$ac_cv_exeext'
3507  { { case "(($ac_try" in
3508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509  *) ac_try_echo=$ac_try;;
3510esac
3511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512$as_echo "$ac_try_echo"; } >&5
3513  (eval "$ac_try") 2>&5
3514  ac_status=$?
3515  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516  test $ac_status = 0; }; }; then
3517    cross_compiling=no
3518  else
3519    if test "$cross_compiling" = maybe; then
3520	cross_compiling=yes
3521    else
3522	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3523$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3524as_fn_error $? "cannot run C compiled programs.
3525If you meant to cross compile, use \`--host'.
3526See \`config.log' for more details" "$LINENO" 5; }
3527    fi
3528  fi
3529fi
3530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3531$as_echo "$cross_compiling" >&6; }
3532
3533rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3534ac_clean_files=$ac_clean_files_save
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3536$as_echo_n "checking for suffix of object files... " >&6; }
3537if ${ac_cv_objext+:} false; then :
3538  $as_echo_n "(cached) " >&6
3539else
3540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541/* end confdefs.h.  */
3542
3543int
3544main ()
3545{
3546
3547  ;
3548  return 0;
3549}
3550_ACEOF
3551rm -f conftest.o conftest.obj
3552if { { ac_try="$ac_compile"
3553case "(($ac_try" in
3554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555  *) ac_try_echo=$ac_try;;
3556esac
3557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3558$as_echo "$ac_try_echo"; } >&5
3559  (eval "$ac_compile") 2>&5
3560  ac_status=$?
3561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3562  test $ac_status = 0; }; then :
3563  for ac_file in conftest.o conftest.obj conftest.*; do
3564  test -f "$ac_file" || continue;
3565  case $ac_file in
3566    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3567    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3568       break;;
3569  esac
3570done
3571else
3572  $as_echo "$as_me: failed program was:" >&5
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
3575{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3576$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3577as_fn_error $? "cannot compute suffix of object files: cannot compile
3578See \`config.log' for more details" "$LINENO" 5; }
3579fi
3580rm -f conftest.$ac_cv_objext conftest.$ac_ext
3581fi
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3583$as_echo "$ac_cv_objext" >&6; }
3584OBJEXT=$ac_cv_objext
3585ac_objext=$OBJEXT
3586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3587$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3588if ${ac_cv_c_compiler_gnu+:} false; then :
3589  $as_echo_n "(cached) " >&6
3590else
3591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592/* end confdefs.h.  */
3593
3594int
3595main ()
3596{
3597#ifndef __GNUC__
3598       choke me
3599#endif
3600
3601  ;
3602  return 0;
3603}
3604_ACEOF
3605if ac_fn_c_try_compile "$LINENO"; then :
3606  ac_compiler_gnu=yes
3607else
3608  ac_compiler_gnu=no
3609fi
3610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611ac_cv_c_compiler_gnu=$ac_compiler_gnu
3612
3613fi
3614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3615$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3616if test $ac_compiler_gnu = yes; then
3617  GCC=yes
3618else
3619  GCC=
3620fi
3621ac_test_CFLAGS=${CFLAGS+set}
3622ac_save_CFLAGS=$CFLAGS
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3624$as_echo_n "checking whether $CC accepts -g... " >&6; }
3625if ${ac_cv_prog_cc_g+:} false; then :
3626  $as_echo_n "(cached) " >&6
3627else
3628  ac_save_c_werror_flag=$ac_c_werror_flag
3629   ac_c_werror_flag=yes
3630   ac_cv_prog_cc_g=no
3631   CFLAGS="-g"
3632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633/* end confdefs.h.  */
3634
3635int
3636main ()
3637{
3638
3639  ;
3640  return 0;
3641}
3642_ACEOF
3643if ac_fn_c_try_compile "$LINENO"; then :
3644  ac_cv_prog_cc_g=yes
3645else
3646  CFLAGS=""
3647      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648/* end confdefs.h.  */
3649
3650int
3651main ()
3652{
3653
3654  ;
3655  return 0;
3656}
3657_ACEOF
3658if ac_fn_c_try_compile "$LINENO"; then :
3659
3660else
3661  ac_c_werror_flag=$ac_save_c_werror_flag
3662	 CFLAGS="-g"
3663	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664/* end confdefs.h.  */
3665
3666int
3667main ()
3668{
3669
3670  ;
3671  return 0;
3672}
3673_ACEOF
3674if ac_fn_c_try_compile "$LINENO"; then :
3675  ac_cv_prog_cc_g=yes
3676fi
3677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678fi
3679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3680fi
3681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3682   ac_c_werror_flag=$ac_save_c_werror_flag
3683fi
3684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3685$as_echo "$ac_cv_prog_cc_g" >&6; }
3686if test "$ac_test_CFLAGS" = set; then
3687  CFLAGS=$ac_save_CFLAGS
3688elif test $ac_cv_prog_cc_g = yes; then
3689  if test "$GCC" = yes; then
3690    CFLAGS="-g -O2"
3691  else
3692    CFLAGS="-g"
3693  fi
3694else
3695  if test "$GCC" = yes; then
3696    CFLAGS="-O2"
3697  else
3698    CFLAGS=
3699  fi
3700fi
3701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3702$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3703if ${ac_cv_prog_cc_c89+:} false; then :
3704  $as_echo_n "(cached) " >&6
3705else
3706  ac_cv_prog_cc_c89=no
3707ac_save_CC=$CC
3708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709/* end confdefs.h.  */
3710#include <stdarg.h>
3711#include <stdio.h>
3712struct stat;
3713/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3714struct buf { int x; };
3715FILE * (*rcsopen) (struct buf *, struct stat *, int);
3716static char *e (p, i)
3717     char **p;
3718     int i;
3719{
3720  return p[i];
3721}
3722static char *f (char * (*g) (char **, int), char **p, ...)
3723{
3724  char *s;
3725  va_list v;
3726  va_start (v,p);
3727  s = g (p, va_arg (v,int));
3728  va_end (v);
3729  return s;
3730}
3731
3732/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3733   function prototypes and stuff, but not '\xHH' hex character constants.
3734   These don't provoke an error unfortunately, instead are silently treated
3735   as 'x'.  The following induces an error, until -std is added to get
3736   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3737   array size at least.  It's necessary to write '\x00'==0 to get something
3738   that's true only with -std.  */
3739int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3740
3741/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3742   inside strings and character constants.  */
3743#define FOO(x) 'x'
3744int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3745
3746int test (int i, double x);
3747struct s1 {int (*f) (int a);};
3748struct s2 {int (*f) (double a);};
3749int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3750int argc;
3751char **argv;
3752int
3753main ()
3754{
3755return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3756  ;
3757  return 0;
3758}
3759_ACEOF
3760for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3761	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3762do
3763  CC="$ac_save_CC $ac_arg"
3764  if ac_fn_c_try_compile "$LINENO"; then :
3765  ac_cv_prog_cc_c89=$ac_arg
3766fi
3767rm -f core conftest.err conftest.$ac_objext
3768  test "x$ac_cv_prog_cc_c89" != "xno" && break
3769done
3770rm -f conftest.$ac_ext
3771CC=$ac_save_CC
3772
3773fi
3774# AC_CACHE_VAL
3775case "x$ac_cv_prog_cc_c89" in
3776  x)
3777    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3778$as_echo "none needed" >&6; } ;;
3779  xno)
3780    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3781$as_echo "unsupported" >&6; } ;;
3782  *)
3783    CC="$CC $ac_cv_prog_cc_c89"
3784    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3785$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3786esac
3787if test "x$ac_cv_prog_cc_c89" != xno; then :
3788
3789fi
3790
3791ac_ext=c
3792ac_cpp='$CPP $CPPFLAGS'
3793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795ac_compiler_gnu=$ac_cv_c_compiler_gnu
3796
3797depcc="$CC"   am_compiler_list=
3798
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3800$as_echo_n "checking dependency style of $depcc... " >&6; }
3801if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3802  $as_echo_n "(cached) " >&6
3803else
3804  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3805  # We make a subdir and do the tests there.  Otherwise we can end up
3806  # making bogus files that we don't know about and never remove.  For
3807  # instance it was reported that on HP-UX the gcc test will end up
3808  # making a dummy file named 'D' -- because '-MD' means "put the output
3809  # in D".
3810  rm -rf conftest.dir
3811  mkdir conftest.dir
3812  # Copy depcomp to subdir because otherwise we won't find it if we're
3813  # using a relative directory.
3814  cp "$am_depcomp" conftest.dir
3815  cd conftest.dir
3816  # We will build objects and dependencies in a subdirectory because
3817  # it helps to detect inapplicable dependency modes.  For instance
3818  # both Tru64's cc and ICC support -MD to output dependencies as a
3819  # side effect of compilation, but ICC will put the dependencies in
3820  # the current directory while Tru64 will put them in the object
3821  # directory.
3822  mkdir sub
3823
3824  am_cv_CC_dependencies_compiler_type=none
3825  if test "$am_compiler_list" = ""; then
3826     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3827  fi
3828  am__universal=false
3829  case " $depcc " in #(
3830     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3831     esac
3832
3833  for depmode in $am_compiler_list; do
3834    # Setup a source with many dependencies, because some compilers
3835    # like to wrap large dependency lists on column 80 (with \), and
3836    # we should not choose a depcomp mode which is confused by this.
3837    #
3838    # We need to recreate these files for each test, as the compiler may
3839    # overwrite some of them when testing with obscure command lines.
3840    # This happens at least with the AIX C compiler.
3841    : > sub/conftest.c
3842    for i in 1 2 3 4 5 6; do
3843      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3844      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3845      # Solaris 10 /bin/sh.
3846      echo '/* dummy */' > sub/conftst$i.h
3847    done
3848    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3849
3850    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3851    # mode.  It turns out that the SunPro C++ compiler does not properly
3852    # handle '-M -o', and we need to detect this.  Also, some Intel
3853    # versions had trouble with output in subdirs.
3854    am__obj=sub/conftest.${OBJEXT-o}
3855    am__minus_obj="-o $am__obj"
3856    case $depmode in
3857    gcc)
3858      # This depmode causes a compiler race in universal mode.
3859      test "$am__universal" = false || continue
3860      ;;
3861    nosideeffect)
3862      # After this tag, mechanisms are not by side-effect, so they'll
3863      # only be used when explicitly requested.
3864      if test "x$enable_dependency_tracking" = xyes; then
3865	continue
3866      else
3867	break
3868      fi
3869      ;;
3870    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3871      # This compiler won't grok '-c -o', but also, the minuso test has
3872      # not run yet.  These depmodes are late enough in the game, and
3873      # so weak that their functioning should not be impacted.
3874      am__obj=conftest.${OBJEXT-o}
3875      am__minus_obj=
3876      ;;
3877    none) break ;;
3878    esac
3879    if depmode=$depmode \
3880       source=sub/conftest.c object=$am__obj \
3881       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3882       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3883         >/dev/null 2>conftest.err &&
3884       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3885       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3886       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3887       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3888      # icc doesn't choke on unknown options, it will just issue warnings
3889      # or remarks (even with -Werror).  So we grep stderr for any message
3890      # that says an option was ignored or not supported.
3891      # When given -MP, icc 7.0 and 7.1 complain thusly:
3892      #   icc: Command line warning: ignoring option '-M'; no argument required
3893      # The diagnosis changed in icc 8.0:
3894      #   icc: Command line remark: option '-MP' not supported
3895      if (grep 'ignoring option' conftest.err ||
3896          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3897        am_cv_CC_dependencies_compiler_type=$depmode
3898        break
3899      fi
3900    fi
3901  done
3902
3903  cd ..
3904  rm -rf conftest.dir
3905else
3906  am_cv_CC_dependencies_compiler_type=none
3907fi
3908
3909fi
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3911$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3912CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3913
3914 if
3915  test "x$enable_dependency_tracking" != xno \
3916  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3917  am__fastdepCC_TRUE=
3918  am__fastdepCC_FALSE='#'
3919else
3920  am__fastdepCC_TRUE='#'
3921  am__fastdepCC_FALSE=
3922fi
3923
3924
3925   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3926$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3927if ${ac_cv_prog_cc_c99+:} false; then :
3928  $as_echo_n "(cached) " >&6
3929else
3930  ac_cv_prog_cc_c99=no
3931ac_save_CC=$CC
3932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933/* end confdefs.h.  */
3934#include <stdarg.h>
3935#include <stdbool.h>
3936#include <stdlib.h>
3937#include <wchar.h>
3938#include <stdio.h>
3939
3940// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3941#define debug(...) fprintf (stderr, __VA_ARGS__)
3942#define showlist(...) puts (#__VA_ARGS__)
3943#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3944static void
3945test_varargs_macros (void)
3946{
3947  int x = 1234;
3948  int y = 5678;
3949  debug ("Flag");
3950  debug ("X = %d\n", x);
3951  showlist (The first, second, and third items.);
3952  report (x>y, "x is %d but y is %d", x, y);
3953}
3954
3955// Check long long types.
3956#define BIG64 18446744073709551615ull
3957#define BIG32 4294967295ul
3958#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3959#if !BIG_OK
3960  your preprocessor is broken;
3961#endif
3962#if BIG_OK
3963#else
3964  your preprocessor is broken;
3965#endif
3966static long long int bignum = -9223372036854775807LL;
3967static unsigned long long int ubignum = BIG64;
3968
3969struct incomplete_array
3970{
3971  int datasize;
3972  double data[];
3973};
3974
3975struct named_init {
3976  int number;
3977  const wchar_t *name;
3978  double average;
3979};
3980
3981typedef const char *ccp;
3982
3983static inline int
3984test_restrict (ccp restrict text)
3985{
3986  // See if C++-style comments work.
3987  // Iterate through items via the restricted pointer.
3988  // Also check for declarations in for loops.
3989  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3990    continue;
3991  return 0;
3992}
3993
3994// Check varargs and va_copy.
3995static void
3996test_varargs (const char *format, ...)
3997{
3998  va_list args;
3999  va_start (args, format);
4000  va_list args_copy;
4001  va_copy (args_copy, args);
4002
4003  const char *str;
4004  int number;
4005  float fnumber;
4006
4007  while (*format)
4008    {
4009      switch (*format++)
4010	{
4011	case 's': // string
4012	  str = va_arg (args_copy, const char *);
4013	  break;
4014	case 'd': // int
4015	  number = va_arg (args_copy, int);
4016	  break;
4017	case 'f': // float
4018	  fnumber = va_arg (args_copy, double);
4019	  break;
4020	default:
4021	  break;
4022	}
4023    }
4024  va_end (args_copy);
4025  va_end (args);
4026}
4027
4028int
4029main ()
4030{
4031
4032  // Check bool.
4033  _Bool success = false;
4034
4035  // Check restrict.
4036  if (test_restrict ("String literal") == 0)
4037    success = true;
4038  char *restrict newvar = "Another string";
4039
4040  // Check varargs.
4041  test_varargs ("s, d' f .", "string", 65, 34.234);
4042  test_varargs_macros ();
4043
4044  // Check flexible array members.
4045  struct incomplete_array *ia =
4046    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4047  ia->datasize = 10;
4048  for (int i = 0; i < ia->datasize; ++i)
4049    ia->data[i] = i * 1.234;
4050
4051  // Check named initializers.
4052  struct named_init ni = {
4053    .number = 34,
4054    .name = L"Test wide string",
4055    .average = 543.34343,
4056  };
4057
4058  ni.number = 58;
4059
4060  int dynamic_array[ni.number];
4061  dynamic_array[ni.number - 1] = 543;
4062
4063  // work around unused variable warnings
4064  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4065	  || dynamic_array[ni.number - 1] != 543);
4066
4067  ;
4068  return 0;
4069}
4070_ACEOF
4071for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4072do
4073  CC="$ac_save_CC $ac_arg"
4074  if ac_fn_c_try_compile "$LINENO"; then :
4075  ac_cv_prog_cc_c99=$ac_arg
4076fi
4077rm -f core conftest.err conftest.$ac_objext
4078  test "x$ac_cv_prog_cc_c99" != "xno" && break
4079done
4080rm -f conftest.$ac_ext
4081CC=$ac_save_CC
4082
4083fi
4084# AC_CACHE_VAL
4085case "x$ac_cv_prog_cc_c99" in
4086  x)
4087    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4088$as_echo "none needed" >&6; } ;;
4089  xno)
4090    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4091$as_echo "unsupported" >&6; } ;;
4092  *)
4093    CC="$CC $ac_cv_prog_cc_c99"
4094    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4095$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4096esac
4097if test "x$ac_cv_prog_cc_c99" != xno; then :
4098
4099fi
4100
4101
4102
4103ac_ext=c
4104ac_cpp='$CPP $CPPFLAGS'
4105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4109$as_echo_n "checking how to run the C preprocessor... " >&6; }
4110# On Suns, sometimes $CPP names a directory.
4111if test -n "$CPP" && test -d "$CPP"; then
4112  CPP=
4113fi
4114if test -z "$CPP"; then
4115  if ${ac_cv_prog_CPP+:} false; then :
4116  $as_echo_n "(cached) " >&6
4117else
4118      # Double quotes because CPP needs to be expanded
4119    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4120    do
4121      ac_preproc_ok=false
4122for ac_c_preproc_warn_flag in '' yes
4123do
4124  # Use a header file that comes with gcc, so configuring glibc
4125  # with a fresh cross-compiler works.
4126  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4127  # <limits.h> exists even on freestanding compilers.
4128  # On the NeXT, cc -E runs the code through the compiler's parser,
4129  # not just through cpp. "Syntax error" is here to catch this case.
4130  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131/* end confdefs.h.  */
4132#ifdef __STDC__
4133# include <limits.h>
4134#else
4135# include <assert.h>
4136#endif
4137		     Syntax error
4138_ACEOF
4139if ac_fn_c_try_cpp "$LINENO"; then :
4140
4141else
4142  # Broken: fails on valid input.
4143continue
4144fi
4145rm -f conftest.err conftest.i conftest.$ac_ext
4146
4147  # OK, works on sane cases.  Now check whether nonexistent headers
4148  # can be detected and how.
4149  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150/* end confdefs.h.  */
4151#include <ac_nonexistent.h>
4152_ACEOF
4153if ac_fn_c_try_cpp "$LINENO"; then :
4154  # Broken: success on invalid input.
4155continue
4156else
4157  # Passes both tests.
4158ac_preproc_ok=:
4159break
4160fi
4161rm -f conftest.err conftest.i conftest.$ac_ext
4162
4163done
4164# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4165rm -f conftest.i conftest.err conftest.$ac_ext
4166if $ac_preproc_ok; then :
4167  break
4168fi
4169
4170    done
4171    ac_cv_prog_CPP=$CPP
4172
4173fi
4174  CPP=$ac_cv_prog_CPP
4175else
4176  ac_cv_prog_CPP=$CPP
4177fi
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4179$as_echo "$CPP" >&6; }
4180ac_preproc_ok=false
4181for ac_c_preproc_warn_flag in '' yes
4182do
4183  # Use a header file that comes with gcc, so configuring glibc
4184  # with a fresh cross-compiler works.
4185  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4186  # <limits.h> exists even on freestanding compilers.
4187  # On the NeXT, cc -E runs the code through the compiler's parser,
4188  # not just through cpp. "Syntax error" is here to catch this case.
4189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190/* end confdefs.h.  */
4191#ifdef __STDC__
4192# include <limits.h>
4193#else
4194# include <assert.h>
4195#endif
4196		     Syntax error
4197_ACEOF
4198if ac_fn_c_try_cpp "$LINENO"; then :
4199
4200else
4201  # Broken: fails on valid input.
4202continue
4203fi
4204rm -f conftest.err conftest.i conftest.$ac_ext
4205
4206  # OK, works on sane cases.  Now check whether nonexistent headers
4207  # can be detected and how.
4208  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209/* end confdefs.h.  */
4210#include <ac_nonexistent.h>
4211_ACEOF
4212if ac_fn_c_try_cpp "$LINENO"; then :
4213  # Broken: success on invalid input.
4214continue
4215else
4216  # Passes both tests.
4217ac_preproc_ok=:
4218break
4219fi
4220rm -f conftest.err conftest.i conftest.$ac_ext
4221
4222done
4223# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4224rm -f conftest.i conftest.err conftest.$ac_ext
4225if $ac_preproc_ok; then :
4226
4227else
4228  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4230as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4231See \`config.log' for more details" "$LINENO" 5; }
4232fi
4233
4234ac_ext=c
4235ac_cpp='$CPP $CPPFLAGS'
4236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239
4240
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4242$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4243if ${ac_cv_path_GREP+:} false; then :
4244  $as_echo_n "(cached) " >&6
4245else
4246  if test -z "$GREP"; then
4247  ac_path_GREP_found=false
4248  # Loop through the user's path and test for each of PROGNAME-LIST
4249  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4251do
4252  IFS=$as_save_IFS
4253  test -z "$as_dir" && as_dir=.
4254    for ac_prog in grep ggrep; do
4255    for ac_exec_ext in '' $ac_executable_extensions; do
4256      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4257      as_fn_executable_p "$ac_path_GREP" || continue
4258# Check for GNU ac_path_GREP and select it if it is found.
4259  # Check for GNU $ac_path_GREP
4260case `"$ac_path_GREP" --version 2>&1` in
4261*GNU*)
4262  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4263*)
4264  ac_count=0
4265  $as_echo_n 0123456789 >"conftest.in"
4266  while :
4267  do
4268    cat "conftest.in" "conftest.in" >"conftest.tmp"
4269    mv "conftest.tmp" "conftest.in"
4270    cp "conftest.in" "conftest.nl"
4271    $as_echo 'GREP' >> "conftest.nl"
4272    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4273    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4274    as_fn_arith $ac_count + 1 && ac_count=$as_val
4275    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4276      # Best one so far, save it but keep looking for a better one
4277      ac_cv_path_GREP="$ac_path_GREP"
4278      ac_path_GREP_max=$ac_count
4279    fi
4280    # 10*(2^10) chars as input seems more than enough
4281    test $ac_count -gt 10 && break
4282  done
4283  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4284esac
4285
4286      $ac_path_GREP_found && break 3
4287    done
4288  done
4289  done
4290IFS=$as_save_IFS
4291  if test -z "$ac_cv_path_GREP"; then
4292    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4293  fi
4294else
4295  ac_cv_path_GREP=$GREP
4296fi
4297
4298fi
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4300$as_echo "$ac_cv_path_GREP" >&6; }
4301 GREP="$ac_cv_path_GREP"
4302
4303
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4305$as_echo_n "checking for egrep... " >&6; }
4306if ${ac_cv_path_EGREP+:} false; then :
4307  $as_echo_n "(cached) " >&6
4308else
4309  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4310   then ac_cv_path_EGREP="$GREP -E"
4311   else
4312     if test -z "$EGREP"; then
4313  ac_path_EGREP_found=false
4314  # Loop through the user's path and test for each of PROGNAME-LIST
4315  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4317do
4318  IFS=$as_save_IFS
4319  test -z "$as_dir" && as_dir=.
4320    for ac_prog in egrep; do
4321    for ac_exec_ext in '' $ac_executable_extensions; do
4322      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4323      as_fn_executable_p "$ac_path_EGREP" || continue
4324# Check for GNU ac_path_EGREP and select it if it is found.
4325  # Check for GNU $ac_path_EGREP
4326case `"$ac_path_EGREP" --version 2>&1` in
4327*GNU*)
4328  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4329*)
4330  ac_count=0
4331  $as_echo_n 0123456789 >"conftest.in"
4332  while :
4333  do
4334    cat "conftest.in" "conftest.in" >"conftest.tmp"
4335    mv "conftest.tmp" "conftest.in"
4336    cp "conftest.in" "conftest.nl"
4337    $as_echo 'EGREP' >> "conftest.nl"
4338    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4339    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4340    as_fn_arith $ac_count + 1 && ac_count=$as_val
4341    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4342      # Best one so far, save it but keep looking for a better one
4343      ac_cv_path_EGREP="$ac_path_EGREP"
4344      ac_path_EGREP_max=$ac_count
4345    fi
4346    # 10*(2^10) chars as input seems more than enough
4347    test $ac_count -gt 10 && break
4348  done
4349  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4350esac
4351
4352      $ac_path_EGREP_found && break 3
4353    done
4354  done
4355  done
4356IFS=$as_save_IFS
4357  if test -z "$ac_cv_path_EGREP"; then
4358    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4359  fi
4360else
4361  ac_cv_path_EGREP=$EGREP
4362fi
4363
4364   fi
4365fi
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4367$as_echo "$ac_cv_path_EGREP" >&6; }
4368 EGREP="$ac_cv_path_EGREP"
4369
4370
4371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4372$as_echo_n "checking for ANSI C header files... " >&6; }
4373if ${ac_cv_header_stdc+:} false; then :
4374  $as_echo_n "(cached) " >&6
4375else
4376  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377/* end confdefs.h.  */
4378#include <stdlib.h>
4379#include <stdarg.h>
4380#include <string.h>
4381#include <float.h>
4382
4383int
4384main ()
4385{
4386
4387  ;
4388  return 0;
4389}
4390_ACEOF
4391if ac_fn_c_try_compile "$LINENO"; then :
4392  ac_cv_header_stdc=yes
4393else
4394  ac_cv_header_stdc=no
4395fi
4396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397
4398if test $ac_cv_header_stdc = yes; then
4399  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4400  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4401/* end confdefs.h.  */
4402#include <string.h>
4403
4404_ACEOF
4405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4406  $EGREP "memchr" >/dev/null 2>&1; then :
4407
4408else
4409  ac_cv_header_stdc=no
4410fi
4411rm -f conftest*
4412
4413fi
4414
4415if test $ac_cv_header_stdc = yes; then
4416  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418/* end confdefs.h.  */
4419#include <stdlib.h>
4420
4421_ACEOF
4422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4423  $EGREP "free" >/dev/null 2>&1; then :
4424
4425else
4426  ac_cv_header_stdc=no
4427fi
4428rm -f conftest*
4429
4430fi
4431
4432if test $ac_cv_header_stdc = yes; then
4433  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4434  if test "$cross_compiling" = yes; then :
4435  :
4436else
4437  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438/* end confdefs.h.  */
4439#include <ctype.h>
4440#include <stdlib.h>
4441#if ((' ' & 0x0FF) == 0x020)
4442# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4443# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4444#else
4445# define ISLOWER(c) \
4446		   (('a' <= (c) && (c) <= 'i') \
4447		     || ('j' <= (c) && (c) <= 'r') \
4448		     || ('s' <= (c) && (c) <= 'z'))
4449# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4450#endif
4451
4452#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4453int
4454main ()
4455{
4456  int i;
4457  for (i = 0; i < 256; i++)
4458    if (XOR (islower (i), ISLOWER (i))
4459	|| toupper (i) != TOUPPER (i))
4460      return 2;
4461  return 0;
4462}
4463_ACEOF
4464if ac_fn_c_try_run "$LINENO"; then :
4465
4466else
4467  ac_cv_header_stdc=no
4468fi
4469rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4470  conftest.$ac_objext conftest.beam conftest.$ac_ext
4471fi
4472
4473fi
4474fi
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4476$as_echo "$ac_cv_header_stdc" >&6; }
4477if test $ac_cv_header_stdc = yes; then
4478
4479$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4480
4481fi
4482
4483# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4484for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4485		  inttypes.h stdint.h unistd.h
4486do :
4487  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4488ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4489"
4490if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4491  cat >>confdefs.h <<_ACEOF
4492#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4493_ACEOF
4494
4495fi
4496
4497done
4498
4499
4500
4501
4502
4503
4504ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4505if test "x$ac_cv_have_decl___clang__" = xyes; then :
4506  CLANGCC="yes"
4507else
4508  CLANGCC="no"
4509fi
4510
4511ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4512if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4513  INTELCC="yes"
4514else
4515  INTELCC="no"
4516fi
4517
4518ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4519if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4520  SUNCC="yes"
4521else
4522  SUNCC="no"
4523fi
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4534	if test -n "$ac_tool_prefix"; then
4535  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4536set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538$as_echo_n "checking for $ac_word... " >&6; }
4539if ${ac_cv_path_PKG_CONFIG+:} false; then :
4540  $as_echo_n "(cached) " >&6
4541else
4542  case $PKG_CONFIG in
4543  [\\/]* | ?:[\\/]*)
4544  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4545  ;;
4546  *)
4547  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548for as_dir in $PATH
4549do
4550  IFS=$as_save_IFS
4551  test -z "$as_dir" && as_dir=.
4552    for ac_exec_ext in '' $ac_executable_extensions; do
4553  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4554    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4556    break 2
4557  fi
4558done
4559  done
4560IFS=$as_save_IFS
4561
4562  ;;
4563esac
4564fi
4565PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4566if test -n "$PKG_CONFIG"; then
4567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4568$as_echo "$PKG_CONFIG" >&6; }
4569else
4570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571$as_echo "no" >&6; }
4572fi
4573
4574
4575fi
4576if test -z "$ac_cv_path_PKG_CONFIG"; then
4577  ac_pt_PKG_CONFIG=$PKG_CONFIG
4578  # Extract the first word of "pkg-config", so it can be a program name with args.
4579set dummy pkg-config; ac_word=$2
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4581$as_echo_n "checking for $ac_word... " >&6; }
4582if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4583  $as_echo_n "(cached) " >&6
4584else
4585  case $ac_pt_PKG_CONFIG in
4586  [\\/]* | ?:[\\/]*)
4587  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4588  ;;
4589  *)
4590  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591for as_dir in $PATH
4592do
4593  IFS=$as_save_IFS
4594  test -z "$as_dir" && as_dir=.
4595    for ac_exec_ext in '' $ac_executable_extensions; do
4596  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599    break 2
4600  fi
4601done
4602  done
4603IFS=$as_save_IFS
4604
4605  ;;
4606esac
4607fi
4608ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4609if test -n "$ac_pt_PKG_CONFIG"; then
4610  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4611$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4612else
4613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614$as_echo "no" >&6; }
4615fi
4616
4617  if test "x$ac_pt_PKG_CONFIG" = x; then
4618    PKG_CONFIG=""
4619  else
4620    case $cross_compiling:$ac_tool_warned in
4621yes:)
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4624ac_tool_warned=yes ;;
4625esac
4626    PKG_CONFIG=$ac_pt_PKG_CONFIG
4627  fi
4628else
4629  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4630fi
4631
4632fi
4633if test -n "$PKG_CONFIG"; then
4634	_pkg_min_version=0.9.0
4635	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4636$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4637	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4638		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4639$as_echo "yes" >&6; }
4640	else
4641		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642$as_echo "no" >&6; }
4643		PKG_CONFIG=""
4644	fi
4645fi
4646# Make sure we can run config.sub.
4647$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4648  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4649
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4651$as_echo_n "checking build system type... " >&6; }
4652if ${ac_cv_build+:} false; then :
4653  $as_echo_n "(cached) " >&6
4654else
4655  ac_build_alias=$build_alias
4656test "x$ac_build_alias" = x &&
4657  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4658test "x$ac_build_alias" = x &&
4659  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4660ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4661  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4662
4663fi
4664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4665$as_echo "$ac_cv_build" >&6; }
4666case $ac_cv_build in
4667*-*-*) ;;
4668*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4669esac
4670build=$ac_cv_build
4671ac_save_IFS=$IFS; IFS='-'
4672set x $ac_cv_build
4673shift
4674build_cpu=$1
4675build_vendor=$2
4676shift; shift
4677# Remember, the first character of IFS is used to create $*,
4678# except with old shells:
4679build_os=$*
4680IFS=$ac_save_IFS
4681case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4682
4683
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4685$as_echo_n "checking host system type... " >&6; }
4686if ${ac_cv_host+:} false; then :
4687  $as_echo_n "(cached) " >&6
4688else
4689  if test "x$host_alias" = x; then
4690  ac_cv_host=$ac_cv_build
4691else
4692  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4693    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4694fi
4695
4696fi
4697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4698$as_echo "$ac_cv_host" >&6; }
4699case $ac_cv_host in
4700*-*-*) ;;
4701*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4702esac
4703host=$ac_cv_host
4704ac_save_IFS=$IFS; IFS='-'
4705set x $ac_cv_host
4706shift
4707host_cpu=$1
4708host_vendor=$2
4709shift; shift
4710# Remember, the first character of IFS is used to create $*,
4711# except with old shells:
4712host_os=$*
4713IFS=$ac_save_IFS
4714case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4715
4716
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4718$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4719if ${ac_cv_path_SED+:} false; then :
4720  $as_echo_n "(cached) " >&6
4721else
4722            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4723     for ac_i in 1 2 3 4 5 6 7; do
4724       ac_script="$ac_script$as_nl$ac_script"
4725     done
4726     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4727     { ac_script=; unset ac_script;}
4728     if test -z "$SED"; then
4729  ac_path_SED_found=false
4730  # Loop through the user's path and test for each of PROGNAME-LIST
4731  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732for as_dir in $PATH
4733do
4734  IFS=$as_save_IFS
4735  test -z "$as_dir" && as_dir=.
4736    for ac_prog in sed gsed; do
4737    for ac_exec_ext in '' $ac_executable_extensions; do
4738      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4739      as_fn_executable_p "$ac_path_SED" || continue
4740# Check for GNU ac_path_SED and select it if it is found.
4741  # Check for GNU $ac_path_SED
4742case `"$ac_path_SED" --version 2>&1` in
4743*GNU*)
4744  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4745*)
4746  ac_count=0
4747  $as_echo_n 0123456789 >"conftest.in"
4748  while :
4749  do
4750    cat "conftest.in" "conftest.in" >"conftest.tmp"
4751    mv "conftest.tmp" "conftest.in"
4752    cp "conftest.in" "conftest.nl"
4753    $as_echo '' >> "conftest.nl"
4754    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4755    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4756    as_fn_arith $ac_count + 1 && ac_count=$as_val
4757    if test $ac_count -gt ${ac_path_SED_max-0}; then
4758      # Best one so far, save it but keep looking for a better one
4759      ac_cv_path_SED="$ac_path_SED"
4760      ac_path_SED_max=$ac_count
4761    fi
4762    # 10*(2^10) chars as input seems more than enough
4763    test $ac_count -gt 10 && break
4764  done
4765  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4766esac
4767
4768      $ac_path_SED_found && break 3
4769    done
4770  done
4771  done
4772IFS=$as_save_IFS
4773  if test -z "$ac_cv_path_SED"; then
4774    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4775  fi
4776else
4777  ac_cv_path_SED=$SED
4778fi
4779
4780fi
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4782$as_echo "$ac_cv_path_SED" >&6; }
4783 SED="$ac_cv_path_SED"
4784  rm -f conftest.sed
4785
4786
4787
4788
4789
4790
4791# Check whether --enable-selective-werror was given.
4792if test "${enable_selective_werror+set}" = set; then :
4793  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4794else
4795  SELECTIVE_WERROR=yes
4796fi
4797
4798
4799
4800
4801
4802# -v is too short to test reliably with XORG_TESTSET_CFLAG
4803if test "x$SUNCC" = "xyes"; then
4804    BASE_CFLAGS="-v"
4805else
4806    BASE_CFLAGS=""
4807fi
4808
4809# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823xorg_testset_save_CFLAGS="$CFLAGS"
4824
4825if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4826	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4827	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4828$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4829if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4830  $as_echo_n "(cached) " >&6
4831else
4832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833/* end confdefs.h.  */
4834int i;
4835_ACEOF
4836if ac_fn_c_try_compile "$LINENO"; then :
4837  xorg_cv_cc_flag_unknown_warning_option=yes
4838else
4839  xorg_cv_cc_flag_unknown_warning_option=no
4840fi
4841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4842fi
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4844$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4845	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4846	CFLAGS="$xorg_testset_save_CFLAGS"
4847fi
4848
4849if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4850	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4851		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4852	fi
4853	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4854	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4855$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4856if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4857  $as_echo_n "(cached) " >&6
4858else
4859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860/* end confdefs.h.  */
4861int i;
4862_ACEOF
4863if ac_fn_c_try_compile "$LINENO"; then :
4864  xorg_cv_cc_flag_unused_command_line_argument=yes
4865else
4866  xorg_cv_cc_flag_unused_command_line_argument=no
4867fi
4868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869fi
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4871$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4872	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4873	CFLAGS="$xorg_testset_save_CFLAGS"
4874fi
4875
4876found="no"
4877
4878	if test $found = "no" ; then
4879		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4880			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4881		fi
4882
4883		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4884			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4885		fi
4886
4887		CFLAGS="$CFLAGS -Wall"
4888
4889		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4890$as_echo_n "checking if $CC supports -Wall... " >&6; }
4891		cacheid=xorg_cv_cc_flag__Wall
4892		if eval \${$cacheid+:} false; then :
4893  $as_echo_n "(cached) " >&6
4894else
4895  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896/* end confdefs.h.  */
4897int i;
4898int
4899main ()
4900{
4901
4902  ;
4903  return 0;
4904}
4905_ACEOF
4906if ac_fn_c_try_link "$LINENO"; then :
4907  eval $cacheid=yes
4908else
4909  eval $cacheid=no
4910fi
4911rm -f core conftest.err conftest.$ac_objext \
4912    conftest$ac_exeext conftest.$ac_ext
4913fi
4914
4915
4916		CFLAGS="$xorg_testset_save_CFLAGS"
4917
4918		eval supported=\$$cacheid
4919		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4920$as_echo "$supported" >&6; }
4921		if test "$supported" = "yes" ; then
4922			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4923			found="yes"
4924		fi
4925	fi
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941xorg_testset_save_CFLAGS="$CFLAGS"
4942
4943if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4944	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4945	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4946$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4947if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4948  $as_echo_n "(cached) " >&6
4949else
4950  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951/* end confdefs.h.  */
4952int i;
4953_ACEOF
4954if ac_fn_c_try_compile "$LINENO"; then :
4955  xorg_cv_cc_flag_unknown_warning_option=yes
4956else
4957  xorg_cv_cc_flag_unknown_warning_option=no
4958fi
4959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960fi
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4962$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4963	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4964	CFLAGS="$xorg_testset_save_CFLAGS"
4965fi
4966
4967if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4968	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4969		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4970	fi
4971	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4972	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4973$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4974if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4975  $as_echo_n "(cached) " >&6
4976else
4977  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978/* end confdefs.h.  */
4979int i;
4980_ACEOF
4981if ac_fn_c_try_compile "$LINENO"; then :
4982  xorg_cv_cc_flag_unused_command_line_argument=yes
4983else
4984  xorg_cv_cc_flag_unused_command_line_argument=no
4985fi
4986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987fi
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4989$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4990	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4991	CFLAGS="$xorg_testset_save_CFLAGS"
4992fi
4993
4994found="no"
4995
4996	if test $found = "no" ; then
4997		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4998			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4999		fi
5000
5001		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5002			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5003		fi
5004
5005		CFLAGS="$CFLAGS -Wpointer-arith"
5006
5007		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5008$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5009		cacheid=xorg_cv_cc_flag__Wpointer_arith
5010		if eval \${$cacheid+:} false; then :
5011  $as_echo_n "(cached) " >&6
5012else
5013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014/* end confdefs.h.  */
5015int i;
5016int
5017main ()
5018{
5019
5020  ;
5021  return 0;
5022}
5023_ACEOF
5024if ac_fn_c_try_link "$LINENO"; then :
5025  eval $cacheid=yes
5026else
5027  eval $cacheid=no
5028fi
5029rm -f core conftest.err conftest.$ac_objext \
5030    conftest$ac_exeext conftest.$ac_ext
5031fi
5032
5033
5034		CFLAGS="$xorg_testset_save_CFLAGS"
5035
5036		eval supported=\$$cacheid
5037		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5038$as_echo "$supported" >&6; }
5039		if test "$supported" = "yes" ; then
5040			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5041			found="yes"
5042		fi
5043	fi
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059xorg_testset_save_CFLAGS="$CFLAGS"
5060
5061if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5062	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5063	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5064$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5065if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5066  $as_echo_n "(cached) " >&6
5067else
5068  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5069/* end confdefs.h.  */
5070int i;
5071_ACEOF
5072if ac_fn_c_try_compile "$LINENO"; then :
5073  xorg_cv_cc_flag_unknown_warning_option=yes
5074else
5075  xorg_cv_cc_flag_unknown_warning_option=no
5076fi
5077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078fi
5079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5080$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5081	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5082	CFLAGS="$xorg_testset_save_CFLAGS"
5083fi
5084
5085if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5086	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5087		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5088	fi
5089	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5090	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5091$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5092if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5093  $as_echo_n "(cached) " >&6
5094else
5095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096/* end confdefs.h.  */
5097int i;
5098_ACEOF
5099if ac_fn_c_try_compile "$LINENO"; then :
5100  xorg_cv_cc_flag_unused_command_line_argument=yes
5101else
5102  xorg_cv_cc_flag_unused_command_line_argument=no
5103fi
5104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105fi
5106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5107$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5108	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5109	CFLAGS="$xorg_testset_save_CFLAGS"
5110fi
5111
5112found="no"
5113
5114	if test $found = "no" ; then
5115		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5116			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5117		fi
5118
5119		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5120			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5121		fi
5122
5123		CFLAGS="$CFLAGS -Wmissing-declarations"
5124
5125		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5126$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5127		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5128		if eval \${$cacheid+:} false; then :
5129  $as_echo_n "(cached) " >&6
5130else
5131  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132/* end confdefs.h.  */
5133int i;
5134int
5135main ()
5136{
5137
5138  ;
5139  return 0;
5140}
5141_ACEOF
5142if ac_fn_c_try_link "$LINENO"; then :
5143  eval $cacheid=yes
5144else
5145  eval $cacheid=no
5146fi
5147rm -f core conftest.err conftest.$ac_objext \
5148    conftest$ac_exeext conftest.$ac_ext
5149fi
5150
5151
5152		CFLAGS="$xorg_testset_save_CFLAGS"
5153
5154		eval supported=\$$cacheid
5155		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5156$as_echo "$supported" >&6; }
5157		if test "$supported" = "yes" ; then
5158			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5159			found="yes"
5160		fi
5161	fi
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177xorg_testset_save_CFLAGS="$CFLAGS"
5178
5179if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5180	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5181	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5182$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5183if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5184  $as_echo_n "(cached) " >&6
5185else
5186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187/* end confdefs.h.  */
5188int i;
5189_ACEOF
5190if ac_fn_c_try_compile "$LINENO"; then :
5191  xorg_cv_cc_flag_unknown_warning_option=yes
5192else
5193  xorg_cv_cc_flag_unknown_warning_option=no
5194fi
5195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5196fi
5197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5198$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5199	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5200	CFLAGS="$xorg_testset_save_CFLAGS"
5201fi
5202
5203if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5204	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5205		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5206	fi
5207	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5208	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5209$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5210if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5211  $as_echo_n "(cached) " >&6
5212else
5213  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214/* end confdefs.h.  */
5215int i;
5216_ACEOF
5217if ac_fn_c_try_compile "$LINENO"; then :
5218  xorg_cv_cc_flag_unused_command_line_argument=yes
5219else
5220  xorg_cv_cc_flag_unused_command_line_argument=no
5221fi
5222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223fi
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5225$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5226	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5227	CFLAGS="$xorg_testset_save_CFLAGS"
5228fi
5229
5230found="no"
5231
5232	if test $found = "no" ; then
5233		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5234			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5235		fi
5236
5237		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5238			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5239		fi
5240
5241		CFLAGS="$CFLAGS -Wformat=2"
5242
5243		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5244$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5245		cacheid=xorg_cv_cc_flag__Wformat_2
5246		if eval \${$cacheid+:} false; then :
5247  $as_echo_n "(cached) " >&6
5248else
5249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250/* end confdefs.h.  */
5251int i;
5252int
5253main ()
5254{
5255
5256  ;
5257  return 0;
5258}
5259_ACEOF
5260if ac_fn_c_try_link "$LINENO"; then :
5261  eval $cacheid=yes
5262else
5263  eval $cacheid=no
5264fi
5265rm -f core conftest.err conftest.$ac_objext \
5266    conftest$ac_exeext conftest.$ac_ext
5267fi
5268
5269
5270		CFLAGS="$xorg_testset_save_CFLAGS"
5271
5272		eval supported=\$$cacheid
5273		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5274$as_echo "$supported" >&6; }
5275		if test "$supported" = "yes" ; then
5276			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5277			found="yes"
5278		fi
5279	fi
5280
5281	if test $found = "no" ; then
5282		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5283			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5284		fi
5285
5286		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5287			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5288		fi
5289
5290		CFLAGS="$CFLAGS -Wformat"
5291
5292		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5293$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5294		cacheid=xorg_cv_cc_flag__Wformat
5295		if eval \${$cacheid+:} false; then :
5296  $as_echo_n "(cached) " >&6
5297else
5298  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299/* end confdefs.h.  */
5300int i;
5301int
5302main ()
5303{
5304
5305  ;
5306  return 0;
5307}
5308_ACEOF
5309if ac_fn_c_try_link "$LINENO"; then :
5310  eval $cacheid=yes
5311else
5312  eval $cacheid=no
5313fi
5314rm -f core conftest.err conftest.$ac_objext \
5315    conftest$ac_exeext conftest.$ac_ext
5316fi
5317
5318
5319		CFLAGS="$xorg_testset_save_CFLAGS"
5320
5321		eval supported=\$$cacheid
5322		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5323$as_echo "$supported" >&6; }
5324		if test "$supported" = "yes" ; then
5325			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5326			found="yes"
5327		fi
5328	fi
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346xorg_testset_save_CFLAGS="$CFLAGS"
5347
5348if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5349	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5350	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5351$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5352if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5353  $as_echo_n "(cached) " >&6
5354else
5355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356/* end confdefs.h.  */
5357int i;
5358_ACEOF
5359if ac_fn_c_try_compile "$LINENO"; then :
5360  xorg_cv_cc_flag_unknown_warning_option=yes
5361else
5362  xorg_cv_cc_flag_unknown_warning_option=no
5363fi
5364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5365fi
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5367$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5368	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5369	CFLAGS="$xorg_testset_save_CFLAGS"
5370fi
5371
5372if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5373	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5374		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5375	fi
5376	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5377	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5378$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5379if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5380  $as_echo_n "(cached) " >&6
5381else
5382  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5383/* end confdefs.h.  */
5384int i;
5385_ACEOF
5386if ac_fn_c_try_compile "$LINENO"; then :
5387  xorg_cv_cc_flag_unused_command_line_argument=yes
5388else
5389  xorg_cv_cc_flag_unused_command_line_argument=no
5390fi
5391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392fi
5393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5394$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5395	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5396	CFLAGS="$xorg_testset_save_CFLAGS"
5397fi
5398
5399found="no"
5400
5401	if test $found = "no" ; then
5402		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5403			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5404		fi
5405
5406		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5407			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5408		fi
5409
5410		CFLAGS="$CFLAGS -Wstrict-prototypes"
5411
5412		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5413$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5414		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5415		if eval \${$cacheid+:} false; then :
5416  $as_echo_n "(cached) " >&6
5417else
5418  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5419/* end confdefs.h.  */
5420int i;
5421int
5422main ()
5423{
5424
5425  ;
5426  return 0;
5427}
5428_ACEOF
5429if ac_fn_c_try_link "$LINENO"; then :
5430  eval $cacheid=yes
5431else
5432  eval $cacheid=no
5433fi
5434rm -f core conftest.err conftest.$ac_objext \
5435    conftest$ac_exeext conftest.$ac_ext
5436fi
5437
5438
5439		CFLAGS="$xorg_testset_save_CFLAGS"
5440
5441		eval supported=\$$cacheid
5442		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5443$as_echo "$supported" >&6; }
5444		if test "$supported" = "yes" ; then
5445			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5446			found="yes"
5447		fi
5448	fi
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464xorg_testset_save_CFLAGS="$CFLAGS"
5465
5466if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5467	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5468	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5469$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5470if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5471  $as_echo_n "(cached) " >&6
5472else
5473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474/* end confdefs.h.  */
5475int i;
5476_ACEOF
5477if ac_fn_c_try_compile "$LINENO"; then :
5478  xorg_cv_cc_flag_unknown_warning_option=yes
5479else
5480  xorg_cv_cc_flag_unknown_warning_option=no
5481fi
5482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5483fi
5484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5485$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5486	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5487	CFLAGS="$xorg_testset_save_CFLAGS"
5488fi
5489
5490if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5491	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5492		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5493	fi
5494	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5495	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5496$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5497if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5498  $as_echo_n "(cached) " >&6
5499else
5500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5501/* end confdefs.h.  */
5502int i;
5503_ACEOF
5504if ac_fn_c_try_compile "$LINENO"; then :
5505  xorg_cv_cc_flag_unused_command_line_argument=yes
5506else
5507  xorg_cv_cc_flag_unused_command_line_argument=no
5508fi
5509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5510fi
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5512$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5513	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5514	CFLAGS="$xorg_testset_save_CFLAGS"
5515fi
5516
5517found="no"
5518
5519	if test $found = "no" ; then
5520		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5521			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5522		fi
5523
5524		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5525			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5526		fi
5527
5528		CFLAGS="$CFLAGS -Wmissing-prototypes"
5529
5530		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5531$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5532		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5533		if eval \${$cacheid+:} false; then :
5534  $as_echo_n "(cached) " >&6
5535else
5536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537/* end confdefs.h.  */
5538int i;
5539int
5540main ()
5541{
5542
5543  ;
5544  return 0;
5545}
5546_ACEOF
5547if ac_fn_c_try_link "$LINENO"; then :
5548  eval $cacheid=yes
5549else
5550  eval $cacheid=no
5551fi
5552rm -f core conftest.err conftest.$ac_objext \
5553    conftest$ac_exeext conftest.$ac_ext
5554fi
5555
5556
5557		CFLAGS="$xorg_testset_save_CFLAGS"
5558
5559		eval supported=\$$cacheid
5560		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5561$as_echo "$supported" >&6; }
5562		if test "$supported" = "yes" ; then
5563			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5564			found="yes"
5565		fi
5566	fi
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582xorg_testset_save_CFLAGS="$CFLAGS"
5583
5584if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5585	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5586	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5587$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5588if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5589  $as_echo_n "(cached) " >&6
5590else
5591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592/* end confdefs.h.  */
5593int i;
5594_ACEOF
5595if ac_fn_c_try_compile "$LINENO"; then :
5596  xorg_cv_cc_flag_unknown_warning_option=yes
5597else
5598  xorg_cv_cc_flag_unknown_warning_option=no
5599fi
5600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5601fi
5602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5603$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5604	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5605	CFLAGS="$xorg_testset_save_CFLAGS"
5606fi
5607
5608if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5609	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5610		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5611	fi
5612	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5613	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5614$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5615if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5616  $as_echo_n "(cached) " >&6
5617else
5618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619/* end confdefs.h.  */
5620int i;
5621_ACEOF
5622if ac_fn_c_try_compile "$LINENO"; then :
5623  xorg_cv_cc_flag_unused_command_line_argument=yes
5624else
5625  xorg_cv_cc_flag_unused_command_line_argument=no
5626fi
5627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5628fi
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5630$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5631	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5632	CFLAGS="$xorg_testset_save_CFLAGS"
5633fi
5634
5635found="no"
5636
5637	if test $found = "no" ; then
5638		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5639			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5640		fi
5641
5642		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5643			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5644		fi
5645
5646		CFLAGS="$CFLAGS -Wnested-externs"
5647
5648		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5649$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5650		cacheid=xorg_cv_cc_flag__Wnested_externs
5651		if eval \${$cacheid+:} false; then :
5652  $as_echo_n "(cached) " >&6
5653else
5654  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655/* end confdefs.h.  */
5656int i;
5657int
5658main ()
5659{
5660
5661  ;
5662  return 0;
5663}
5664_ACEOF
5665if ac_fn_c_try_link "$LINENO"; then :
5666  eval $cacheid=yes
5667else
5668  eval $cacheid=no
5669fi
5670rm -f core conftest.err conftest.$ac_objext \
5671    conftest$ac_exeext conftest.$ac_ext
5672fi
5673
5674
5675		CFLAGS="$xorg_testset_save_CFLAGS"
5676
5677		eval supported=\$$cacheid
5678		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5679$as_echo "$supported" >&6; }
5680		if test "$supported" = "yes" ; then
5681			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5682			found="yes"
5683		fi
5684	fi
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700xorg_testset_save_CFLAGS="$CFLAGS"
5701
5702if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5703	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5704	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5705$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5706if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5707  $as_echo_n "(cached) " >&6
5708else
5709  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710/* end confdefs.h.  */
5711int i;
5712_ACEOF
5713if ac_fn_c_try_compile "$LINENO"; then :
5714  xorg_cv_cc_flag_unknown_warning_option=yes
5715else
5716  xorg_cv_cc_flag_unknown_warning_option=no
5717fi
5718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719fi
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5721$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5722	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5723	CFLAGS="$xorg_testset_save_CFLAGS"
5724fi
5725
5726if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5727	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5728		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5729	fi
5730	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5731	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5732$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5733if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5734  $as_echo_n "(cached) " >&6
5735else
5736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5737/* end confdefs.h.  */
5738int i;
5739_ACEOF
5740if ac_fn_c_try_compile "$LINENO"; then :
5741  xorg_cv_cc_flag_unused_command_line_argument=yes
5742else
5743  xorg_cv_cc_flag_unused_command_line_argument=no
5744fi
5745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746fi
5747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5748$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5749	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5750	CFLAGS="$xorg_testset_save_CFLAGS"
5751fi
5752
5753found="no"
5754
5755	if test $found = "no" ; then
5756		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5757			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5758		fi
5759
5760		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5761			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5762		fi
5763
5764		CFLAGS="$CFLAGS -Wbad-function-cast"
5765
5766		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5767$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5768		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5769		if eval \${$cacheid+:} false; then :
5770  $as_echo_n "(cached) " >&6
5771else
5772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773/* end confdefs.h.  */
5774int i;
5775int
5776main ()
5777{
5778
5779  ;
5780  return 0;
5781}
5782_ACEOF
5783if ac_fn_c_try_link "$LINENO"; then :
5784  eval $cacheid=yes
5785else
5786  eval $cacheid=no
5787fi
5788rm -f core conftest.err conftest.$ac_objext \
5789    conftest$ac_exeext conftest.$ac_ext
5790fi
5791
5792
5793		CFLAGS="$xorg_testset_save_CFLAGS"
5794
5795		eval supported=\$$cacheid
5796		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5797$as_echo "$supported" >&6; }
5798		if test "$supported" = "yes" ; then
5799			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5800			found="yes"
5801		fi
5802	fi
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818xorg_testset_save_CFLAGS="$CFLAGS"
5819
5820if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5821	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5822	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5823$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5824if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5825  $as_echo_n "(cached) " >&6
5826else
5827  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828/* end confdefs.h.  */
5829int i;
5830_ACEOF
5831if ac_fn_c_try_compile "$LINENO"; then :
5832  xorg_cv_cc_flag_unknown_warning_option=yes
5833else
5834  xorg_cv_cc_flag_unknown_warning_option=no
5835fi
5836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5837fi
5838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5839$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5840	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5841	CFLAGS="$xorg_testset_save_CFLAGS"
5842fi
5843
5844if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5845	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5846		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5847	fi
5848	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5849	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5850$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5851if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5852  $as_echo_n "(cached) " >&6
5853else
5854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855/* end confdefs.h.  */
5856int i;
5857_ACEOF
5858if ac_fn_c_try_compile "$LINENO"; then :
5859  xorg_cv_cc_flag_unused_command_line_argument=yes
5860else
5861  xorg_cv_cc_flag_unused_command_line_argument=no
5862fi
5863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5864fi
5865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5866$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5867	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5868	CFLAGS="$xorg_testset_save_CFLAGS"
5869fi
5870
5871found="no"
5872
5873	if test $found = "no" ; then
5874		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5875			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5876		fi
5877
5878		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5879			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5880		fi
5881
5882		CFLAGS="$CFLAGS -Wold-style-definition"
5883
5884		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5885$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5886		cacheid=xorg_cv_cc_flag__Wold_style_definition
5887		if eval \${$cacheid+:} false; then :
5888  $as_echo_n "(cached) " >&6
5889else
5890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891/* end confdefs.h.  */
5892int i;
5893int
5894main ()
5895{
5896
5897  ;
5898  return 0;
5899}
5900_ACEOF
5901if ac_fn_c_try_link "$LINENO"; then :
5902  eval $cacheid=yes
5903else
5904  eval $cacheid=no
5905fi
5906rm -f core conftest.err conftest.$ac_objext \
5907    conftest$ac_exeext conftest.$ac_ext
5908fi
5909
5910
5911		CFLAGS="$xorg_testset_save_CFLAGS"
5912
5913		eval supported=\$$cacheid
5914		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5915$as_echo "$supported" >&6; }
5916		if test "$supported" = "yes" ; then
5917			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5918			found="yes"
5919		fi
5920	fi
5921
5922	if test $found = "no" ; then
5923		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5924			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5925		fi
5926
5927		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5928			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5929		fi
5930
5931		CFLAGS="$CFLAGS -fd"
5932
5933		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5934$as_echo_n "checking if $CC supports -fd... " >&6; }
5935		cacheid=xorg_cv_cc_flag__fd
5936		if eval \${$cacheid+:} false; then :
5937  $as_echo_n "(cached) " >&6
5938else
5939  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5940/* end confdefs.h.  */
5941int i;
5942int
5943main ()
5944{
5945
5946  ;
5947  return 0;
5948}
5949_ACEOF
5950if ac_fn_c_try_link "$LINENO"; then :
5951  eval $cacheid=yes
5952else
5953  eval $cacheid=no
5954fi
5955rm -f core conftest.err conftest.$ac_objext \
5956    conftest$ac_exeext conftest.$ac_ext
5957fi
5958
5959
5960		CFLAGS="$xorg_testset_save_CFLAGS"
5961
5962		eval supported=\$$cacheid
5963		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5964$as_echo "$supported" >&6; }
5965		if test "$supported" = "yes" ; then
5966			BASE_CFLAGS="$BASE_CFLAGS -fd"
5967			found="yes"
5968		fi
5969	fi
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985xorg_testset_save_CFLAGS="$CFLAGS"
5986
5987if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5988	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5989	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5990$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5991if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5992  $as_echo_n "(cached) " >&6
5993else
5994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995/* end confdefs.h.  */
5996int i;
5997_ACEOF
5998if ac_fn_c_try_compile "$LINENO"; then :
5999  xorg_cv_cc_flag_unknown_warning_option=yes
6000else
6001  xorg_cv_cc_flag_unknown_warning_option=no
6002fi
6003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6004fi
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6006$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6007	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6008	CFLAGS="$xorg_testset_save_CFLAGS"
6009fi
6010
6011if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6012	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6013		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6014	fi
6015	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6016	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6017$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6018if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6019  $as_echo_n "(cached) " >&6
6020else
6021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022/* end confdefs.h.  */
6023int i;
6024_ACEOF
6025if ac_fn_c_try_compile "$LINENO"; then :
6026  xorg_cv_cc_flag_unused_command_line_argument=yes
6027else
6028  xorg_cv_cc_flag_unused_command_line_argument=no
6029fi
6030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031fi
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6033$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6034	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6035	CFLAGS="$xorg_testset_save_CFLAGS"
6036fi
6037
6038found="no"
6039
6040	if test $found = "no" ; then
6041		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6042			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6043		fi
6044
6045		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6046			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6047		fi
6048
6049		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6050
6051		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6052$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6053		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6054		if eval \${$cacheid+:} false; then :
6055  $as_echo_n "(cached) " >&6
6056else
6057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058/* end confdefs.h.  */
6059int i;
6060int
6061main ()
6062{
6063
6064  ;
6065  return 0;
6066}
6067_ACEOF
6068if ac_fn_c_try_link "$LINENO"; then :
6069  eval $cacheid=yes
6070else
6071  eval $cacheid=no
6072fi
6073rm -f core conftest.err conftest.$ac_objext \
6074    conftest$ac_exeext conftest.$ac_ext
6075fi
6076
6077
6078		CFLAGS="$xorg_testset_save_CFLAGS"
6079
6080		eval supported=\$$cacheid
6081		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6082$as_echo "$supported" >&6; }
6083		if test "$supported" = "yes" ; then
6084			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6085			found="yes"
6086		fi
6087	fi
6088
6089
6090
6091
6092
6093# This chunk adds additional warnings that could catch undesired effects.
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107xorg_testset_save_CFLAGS="$CFLAGS"
6108
6109if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6110	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6111	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6112$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6113if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6114  $as_echo_n "(cached) " >&6
6115else
6116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6117/* end confdefs.h.  */
6118int i;
6119_ACEOF
6120if ac_fn_c_try_compile "$LINENO"; then :
6121  xorg_cv_cc_flag_unknown_warning_option=yes
6122else
6123  xorg_cv_cc_flag_unknown_warning_option=no
6124fi
6125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126fi
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6128$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6129	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6130	CFLAGS="$xorg_testset_save_CFLAGS"
6131fi
6132
6133if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6134	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6135		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6136	fi
6137	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6138	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6139$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6140if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6141  $as_echo_n "(cached) " >&6
6142else
6143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144/* end confdefs.h.  */
6145int i;
6146_ACEOF
6147if ac_fn_c_try_compile "$LINENO"; then :
6148  xorg_cv_cc_flag_unused_command_line_argument=yes
6149else
6150  xorg_cv_cc_flag_unused_command_line_argument=no
6151fi
6152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153fi
6154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6155$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6156	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6157	CFLAGS="$xorg_testset_save_CFLAGS"
6158fi
6159
6160found="no"
6161
6162	if test $found = "no" ; then
6163		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6164			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6165		fi
6166
6167		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6168			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6169		fi
6170
6171		CFLAGS="$CFLAGS -Wunused"
6172
6173		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6174$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6175		cacheid=xorg_cv_cc_flag__Wunused
6176		if eval \${$cacheid+:} false; then :
6177  $as_echo_n "(cached) " >&6
6178else
6179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180/* end confdefs.h.  */
6181int i;
6182int
6183main ()
6184{
6185
6186  ;
6187  return 0;
6188}
6189_ACEOF
6190if ac_fn_c_try_link "$LINENO"; then :
6191  eval $cacheid=yes
6192else
6193  eval $cacheid=no
6194fi
6195rm -f core conftest.err conftest.$ac_objext \
6196    conftest$ac_exeext conftest.$ac_ext
6197fi
6198
6199
6200		CFLAGS="$xorg_testset_save_CFLAGS"
6201
6202		eval supported=\$$cacheid
6203		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6204$as_echo "$supported" >&6; }
6205		if test "$supported" = "yes" ; then
6206			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6207			found="yes"
6208		fi
6209	fi
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225xorg_testset_save_CFLAGS="$CFLAGS"
6226
6227if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6228	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6229	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6230$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6231if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6232  $as_echo_n "(cached) " >&6
6233else
6234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235/* end confdefs.h.  */
6236int i;
6237_ACEOF
6238if ac_fn_c_try_compile "$LINENO"; then :
6239  xorg_cv_cc_flag_unknown_warning_option=yes
6240else
6241  xorg_cv_cc_flag_unknown_warning_option=no
6242fi
6243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244fi
6245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6246$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6247	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6248	CFLAGS="$xorg_testset_save_CFLAGS"
6249fi
6250
6251if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6252	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6253		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6254	fi
6255	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6256	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6257$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6258if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6259  $as_echo_n "(cached) " >&6
6260else
6261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6262/* end confdefs.h.  */
6263int i;
6264_ACEOF
6265if ac_fn_c_try_compile "$LINENO"; then :
6266  xorg_cv_cc_flag_unused_command_line_argument=yes
6267else
6268  xorg_cv_cc_flag_unused_command_line_argument=no
6269fi
6270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6271fi
6272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6273$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6274	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6275	CFLAGS="$xorg_testset_save_CFLAGS"
6276fi
6277
6278found="no"
6279
6280	if test $found = "no" ; then
6281		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6282			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6283		fi
6284
6285		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6286			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6287		fi
6288
6289		CFLAGS="$CFLAGS -Wuninitialized"
6290
6291		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6292$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6293		cacheid=xorg_cv_cc_flag__Wuninitialized
6294		if eval \${$cacheid+:} false; then :
6295  $as_echo_n "(cached) " >&6
6296else
6297  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298/* end confdefs.h.  */
6299int i;
6300int
6301main ()
6302{
6303
6304  ;
6305  return 0;
6306}
6307_ACEOF
6308if ac_fn_c_try_link "$LINENO"; then :
6309  eval $cacheid=yes
6310else
6311  eval $cacheid=no
6312fi
6313rm -f core conftest.err conftest.$ac_objext \
6314    conftest$ac_exeext conftest.$ac_ext
6315fi
6316
6317
6318		CFLAGS="$xorg_testset_save_CFLAGS"
6319
6320		eval supported=\$$cacheid
6321		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6322$as_echo "$supported" >&6; }
6323		if test "$supported" = "yes" ; then
6324			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6325			found="yes"
6326		fi
6327	fi
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343xorg_testset_save_CFLAGS="$CFLAGS"
6344
6345if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6346	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6347	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6348$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6349if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6350  $as_echo_n "(cached) " >&6
6351else
6352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353/* end confdefs.h.  */
6354int i;
6355_ACEOF
6356if ac_fn_c_try_compile "$LINENO"; then :
6357  xorg_cv_cc_flag_unknown_warning_option=yes
6358else
6359  xorg_cv_cc_flag_unknown_warning_option=no
6360fi
6361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362fi
6363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6364$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6365	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6366	CFLAGS="$xorg_testset_save_CFLAGS"
6367fi
6368
6369if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6370	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6371		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6372	fi
6373	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6374	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6375$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6376if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6377  $as_echo_n "(cached) " >&6
6378else
6379  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6380/* end confdefs.h.  */
6381int i;
6382_ACEOF
6383if ac_fn_c_try_compile "$LINENO"; then :
6384  xorg_cv_cc_flag_unused_command_line_argument=yes
6385else
6386  xorg_cv_cc_flag_unused_command_line_argument=no
6387fi
6388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6389fi
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6391$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6392	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6393	CFLAGS="$xorg_testset_save_CFLAGS"
6394fi
6395
6396found="no"
6397
6398	if test $found = "no" ; then
6399		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6400			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6401		fi
6402
6403		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6404			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6405		fi
6406
6407		CFLAGS="$CFLAGS -Wshadow"
6408
6409		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6410$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6411		cacheid=xorg_cv_cc_flag__Wshadow
6412		if eval \${$cacheid+:} false; then :
6413  $as_echo_n "(cached) " >&6
6414else
6415  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416/* end confdefs.h.  */
6417int i;
6418int
6419main ()
6420{
6421
6422  ;
6423  return 0;
6424}
6425_ACEOF
6426if ac_fn_c_try_link "$LINENO"; then :
6427  eval $cacheid=yes
6428else
6429  eval $cacheid=no
6430fi
6431rm -f core conftest.err conftest.$ac_objext \
6432    conftest$ac_exeext conftest.$ac_ext
6433fi
6434
6435
6436		CFLAGS="$xorg_testset_save_CFLAGS"
6437
6438		eval supported=\$$cacheid
6439		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6440$as_echo "$supported" >&6; }
6441		if test "$supported" = "yes" ; then
6442			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6443			found="yes"
6444		fi
6445	fi
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461xorg_testset_save_CFLAGS="$CFLAGS"
6462
6463if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6464	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6465	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6466$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6467if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6468  $as_echo_n "(cached) " >&6
6469else
6470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6471/* end confdefs.h.  */
6472int i;
6473_ACEOF
6474if ac_fn_c_try_compile "$LINENO"; then :
6475  xorg_cv_cc_flag_unknown_warning_option=yes
6476else
6477  xorg_cv_cc_flag_unknown_warning_option=no
6478fi
6479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6480fi
6481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6482$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6483	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6484	CFLAGS="$xorg_testset_save_CFLAGS"
6485fi
6486
6487if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6488	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6489		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6490	fi
6491	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6492	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6493$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6494if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6495  $as_echo_n "(cached) " >&6
6496else
6497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498/* end confdefs.h.  */
6499int i;
6500_ACEOF
6501if ac_fn_c_try_compile "$LINENO"; then :
6502  xorg_cv_cc_flag_unused_command_line_argument=yes
6503else
6504  xorg_cv_cc_flag_unused_command_line_argument=no
6505fi
6506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6507fi
6508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6509$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6510	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6511	CFLAGS="$xorg_testset_save_CFLAGS"
6512fi
6513
6514found="no"
6515
6516	if test $found = "no" ; then
6517		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6518			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6519		fi
6520
6521		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6522			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6523		fi
6524
6525		CFLAGS="$CFLAGS -Wmissing-noreturn"
6526
6527		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6528$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6529		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6530		if eval \${$cacheid+:} false; then :
6531  $as_echo_n "(cached) " >&6
6532else
6533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534/* end confdefs.h.  */
6535int i;
6536int
6537main ()
6538{
6539
6540  ;
6541  return 0;
6542}
6543_ACEOF
6544if ac_fn_c_try_link "$LINENO"; then :
6545  eval $cacheid=yes
6546else
6547  eval $cacheid=no
6548fi
6549rm -f core conftest.err conftest.$ac_objext \
6550    conftest$ac_exeext conftest.$ac_ext
6551fi
6552
6553
6554		CFLAGS="$xorg_testset_save_CFLAGS"
6555
6556		eval supported=\$$cacheid
6557		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6558$as_echo "$supported" >&6; }
6559		if test "$supported" = "yes" ; then
6560			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6561			found="yes"
6562		fi
6563	fi
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579xorg_testset_save_CFLAGS="$CFLAGS"
6580
6581if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6582	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6583	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6584$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6585if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6586  $as_echo_n "(cached) " >&6
6587else
6588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6589/* end confdefs.h.  */
6590int i;
6591_ACEOF
6592if ac_fn_c_try_compile "$LINENO"; then :
6593  xorg_cv_cc_flag_unknown_warning_option=yes
6594else
6595  xorg_cv_cc_flag_unknown_warning_option=no
6596fi
6597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6598fi
6599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6600$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6601	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6602	CFLAGS="$xorg_testset_save_CFLAGS"
6603fi
6604
6605if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6606	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6607		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6608	fi
6609	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6610	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6611$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6612if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6613  $as_echo_n "(cached) " >&6
6614else
6615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6616/* end confdefs.h.  */
6617int i;
6618_ACEOF
6619if ac_fn_c_try_compile "$LINENO"; then :
6620  xorg_cv_cc_flag_unused_command_line_argument=yes
6621else
6622  xorg_cv_cc_flag_unused_command_line_argument=no
6623fi
6624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6625fi
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6627$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6628	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6629	CFLAGS="$xorg_testset_save_CFLAGS"
6630fi
6631
6632found="no"
6633
6634	if test $found = "no" ; then
6635		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6636			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6637		fi
6638
6639		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6640			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6641		fi
6642
6643		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6644
6645		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6646$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6647		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6648		if eval \${$cacheid+:} false; then :
6649  $as_echo_n "(cached) " >&6
6650else
6651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652/* end confdefs.h.  */
6653int i;
6654int
6655main ()
6656{
6657
6658  ;
6659  return 0;
6660}
6661_ACEOF
6662if ac_fn_c_try_link "$LINENO"; then :
6663  eval $cacheid=yes
6664else
6665  eval $cacheid=no
6666fi
6667rm -f core conftest.err conftest.$ac_objext \
6668    conftest$ac_exeext conftest.$ac_ext
6669fi
6670
6671
6672		CFLAGS="$xorg_testset_save_CFLAGS"
6673
6674		eval supported=\$$cacheid
6675		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6676$as_echo "$supported" >&6; }
6677		if test "$supported" = "yes" ; then
6678			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6679			found="yes"
6680		fi
6681	fi
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697xorg_testset_save_CFLAGS="$CFLAGS"
6698
6699if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6700	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6701	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6702$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6703if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6704  $as_echo_n "(cached) " >&6
6705else
6706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707/* end confdefs.h.  */
6708int i;
6709_ACEOF
6710if ac_fn_c_try_compile "$LINENO"; then :
6711  xorg_cv_cc_flag_unknown_warning_option=yes
6712else
6713  xorg_cv_cc_flag_unknown_warning_option=no
6714fi
6715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716fi
6717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6718$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6719	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6720	CFLAGS="$xorg_testset_save_CFLAGS"
6721fi
6722
6723if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6724	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6725		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6726	fi
6727	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6728	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6729$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6730if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6731  $as_echo_n "(cached) " >&6
6732else
6733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734/* end confdefs.h.  */
6735int i;
6736_ACEOF
6737if ac_fn_c_try_compile "$LINENO"; then :
6738  xorg_cv_cc_flag_unused_command_line_argument=yes
6739else
6740  xorg_cv_cc_flag_unused_command_line_argument=no
6741fi
6742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6743fi
6744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6745$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6746	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6747	CFLAGS="$xorg_testset_save_CFLAGS"
6748fi
6749
6750found="no"
6751
6752	if test $found = "no" ; then
6753		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6754			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6755		fi
6756
6757		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6758			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6759		fi
6760
6761		CFLAGS="$CFLAGS -Wredundant-decls"
6762
6763		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6764$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6765		cacheid=xorg_cv_cc_flag__Wredundant_decls
6766		if eval \${$cacheid+:} false; then :
6767  $as_echo_n "(cached) " >&6
6768else
6769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6770/* end confdefs.h.  */
6771int i;
6772int
6773main ()
6774{
6775
6776  ;
6777  return 0;
6778}
6779_ACEOF
6780if ac_fn_c_try_link "$LINENO"; then :
6781  eval $cacheid=yes
6782else
6783  eval $cacheid=no
6784fi
6785rm -f core conftest.err conftest.$ac_objext \
6786    conftest$ac_exeext conftest.$ac_ext
6787fi
6788
6789
6790		CFLAGS="$xorg_testset_save_CFLAGS"
6791
6792		eval supported=\$$cacheid
6793		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6794$as_echo "$supported" >&6; }
6795		if test "$supported" = "yes" ; then
6796			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6797			found="yes"
6798		fi
6799	fi
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815xorg_testset_save_CFLAGS="$CFLAGS"
6816
6817if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6818	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6819	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6820$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6821if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6822  $as_echo_n "(cached) " >&6
6823else
6824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825/* end confdefs.h.  */
6826int i;
6827_ACEOF
6828if ac_fn_c_try_compile "$LINENO"; then :
6829  xorg_cv_cc_flag_unknown_warning_option=yes
6830else
6831  xorg_cv_cc_flag_unknown_warning_option=no
6832fi
6833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6834fi
6835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6836$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6837	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6838	CFLAGS="$xorg_testset_save_CFLAGS"
6839fi
6840
6841if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6842	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6843		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6844	fi
6845	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6846	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6847$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6848if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6849  $as_echo_n "(cached) " >&6
6850else
6851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852/* end confdefs.h.  */
6853int i;
6854_ACEOF
6855if ac_fn_c_try_compile "$LINENO"; then :
6856  xorg_cv_cc_flag_unused_command_line_argument=yes
6857else
6858  xorg_cv_cc_flag_unused_command_line_argument=no
6859fi
6860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6861fi
6862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6863$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6864	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6865	CFLAGS="$xorg_testset_save_CFLAGS"
6866fi
6867
6868found="no"
6869
6870	if test $found = "no" ; then
6871		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6872			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6873		fi
6874
6875		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6876			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6877		fi
6878
6879		CFLAGS="$CFLAGS -Wlogical-op"
6880
6881		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6882$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6883		cacheid=xorg_cv_cc_flag__Wlogical_op
6884		if eval \${$cacheid+:} false; then :
6885  $as_echo_n "(cached) " >&6
6886else
6887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888/* end confdefs.h.  */
6889int i;
6890int
6891main ()
6892{
6893
6894  ;
6895  return 0;
6896}
6897_ACEOF
6898if ac_fn_c_try_link "$LINENO"; then :
6899  eval $cacheid=yes
6900else
6901  eval $cacheid=no
6902fi
6903rm -f core conftest.err conftest.$ac_objext \
6904    conftest$ac_exeext conftest.$ac_ext
6905fi
6906
6907
6908		CFLAGS="$xorg_testset_save_CFLAGS"
6909
6910		eval supported=\$$cacheid
6911		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6912$as_echo "$supported" >&6; }
6913		if test "$supported" = "yes" ; then
6914			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6915			found="yes"
6916		fi
6917	fi
6918
6919
6920
6921# These are currently disabled because they are noisy.  They will be enabled
6922# in the future once the codebase is sufficiently modernized to silence
6923# them.  For now, I don't want them to drown out the other warnings.
6924# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6925# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6926# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6927
6928# Turn some warnings into errors, so we don't accidently get successful builds
6929# when there are problems that should be fixed.
6930
6931if test "x$SELECTIVE_WERROR" = "xyes" ; then
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945xorg_testset_save_CFLAGS="$CFLAGS"
6946
6947if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6948	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6949	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6950$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6951if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6952  $as_echo_n "(cached) " >&6
6953else
6954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955/* end confdefs.h.  */
6956int i;
6957_ACEOF
6958if ac_fn_c_try_compile "$LINENO"; then :
6959  xorg_cv_cc_flag_unknown_warning_option=yes
6960else
6961  xorg_cv_cc_flag_unknown_warning_option=no
6962fi
6963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6964fi
6965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6966$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6967	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6968	CFLAGS="$xorg_testset_save_CFLAGS"
6969fi
6970
6971if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6972	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6973		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6974	fi
6975	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6976	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6977$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6978if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6979  $as_echo_n "(cached) " >&6
6980else
6981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982/* end confdefs.h.  */
6983int i;
6984_ACEOF
6985if ac_fn_c_try_compile "$LINENO"; then :
6986  xorg_cv_cc_flag_unused_command_line_argument=yes
6987else
6988  xorg_cv_cc_flag_unused_command_line_argument=no
6989fi
6990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6991fi
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6993$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6994	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6995	CFLAGS="$xorg_testset_save_CFLAGS"
6996fi
6997
6998found="no"
6999
7000	if test $found = "no" ; then
7001		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7002			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7003		fi
7004
7005		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7006			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7007		fi
7008
7009		CFLAGS="$CFLAGS -Werror=implicit"
7010
7011		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7012$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7013		cacheid=xorg_cv_cc_flag__Werror_implicit
7014		if eval \${$cacheid+:} false; then :
7015  $as_echo_n "(cached) " >&6
7016else
7017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018/* end confdefs.h.  */
7019int i;
7020int
7021main ()
7022{
7023
7024  ;
7025  return 0;
7026}
7027_ACEOF
7028if ac_fn_c_try_link "$LINENO"; then :
7029  eval $cacheid=yes
7030else
7031  eval $cacheid=no
7032fi
7033rm -f core conftest.err conftest.$ac_objext \
7034    conftest$ac_exeext conftest.$ac_ext
7035fi
7036
7037
7038		CFLAGS="$xorg_testset_save_CFLAGS"
7039
7040		eval supported=\$$cacheid
7041		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7042$as_echo "$supported" >&6; }
7043		if test "$supported" = "yes" ; then
7044			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7045			found="yes"
7046		fi
7047	fi
7048
7049	if test $found = "no" ; then
7050		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7051			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7052		fi
7053
7054		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7055			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7056		fi
7057
7058		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7059
7060		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7061$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7062		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7063		if eval \${$cacheid+:} false; then :
7064  $as_echo_n "(cached) " >&6
7065else
7066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067/* end confdefs.h.  */
7068int i;
7069int
7070main ()
7071{
7072
7073  ;
7074  return 0;
7075}
7076_ACEOF
7077if ac_fn_c_try_link "$LINENO"; then :
7078  eval $cacheid=yes
7079else
7080  eval $cacheid=no
7081fi
7082rm -f core conftest.err conftest.$ac_objext \
7083    conftest$ac_exeext conftest.$ac_ext
7084fi
7085
7086
7087		CFLAGS="$xorg_testset_save_CFLAGS"
7088
7089		eval supported=\$$cacheid
7090		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7091$as_echo "$supported" >&6; }
7092		if test "$supported" = "yes" ; then
7093			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7094			found="yes"
7095		fi
7096	fi
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112xorg_testset_save_CFLAGS="$CFLAGS"
7113
7114if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7115	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7116	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7117$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7118if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7119  $as_echo_n "(cached) " >&6
7120else
7121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122/* end confdefs.h.  */
7123int i;
7124_ACEOF
7125if ac_fn_c_try_compile "$LINENO"; then :
7126  xorg_cv_cc_flag_unknown_warning_option=yes
7127else
7128  xorg_cv_cc_flag_unknown_warning_option=no
7129fi
7130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7131fi
7132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7133$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7134	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7135	CFLAGS="$xorg_testset_save_CFLAGS"
7136fi
7137
7138if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7139	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7140		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7141	fi
7142	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7143	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7144$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7145if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7146  $as_echo_n "(cached) " >&6
7147else
7148  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149/* end confdefs.h.  */
7150int i;
7151_ACEOF
7152if ac_fn_c_try_compile "$LINENO"; then :
7153  xorg_cv_cc_flag_unused_command_line_argument=yes
7154else
7155  xorg_cv_cc_flag_unused_command_line_argument=no
7156fi
7157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7158fi
7159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7160$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7161	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7162	CFLAGS="$xorg_testset_save_CFLAGS"
7163fi
7164
7165found="no"
7166
7167	if test $found = "no" ; then
7168		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7169			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7170		fi
7171
7172		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7173			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7174		fi
7175
7176		CFLAGS="$CFLAGS -Werror=nonnull"
7177
7178		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7179$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7180		cacheid=xorg_cv_cc_flag__Werror_nonnull
7181		if eval \${$cacheid+:} false; then :
7182  $as_echo_n "(cached) " >&6
7183else
7184  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185/* end confdefs.h.  */
7186int i;
7187int
7188main ()
7189{
7190
7191  ;
7192  return 0;
7193}
7194_ACEOF
7195if ac_fn_c_try_link "$LINENO"; then :
7196  eval $cacheid=yes
7197else
7198  eval $cacheid=no
7199fi
7200rm -f core conftest.err conftest.$ac_objext \
7201    conftest$ac_exeext conftest.$ac_ext
7202fi
7203
7204
7205		CFLAGS="$xorg_testset_save_CFLAGS"
7206
7207		eval supported=\$$cacheid
7208		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7209$as_echo "$supported" >&6; }
7210		if test "$supported" = "yes" ; then
7211			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7212			found="yes"
7213		fi
7214	fi
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230xorg_testset_save_CFLAGS="$CFLAGS"
7231
7232if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7233	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7234	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7235$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7236if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7237  $as_echo_n "(cached) " >&6
7238else
7239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240/* end confdefs.h.  */
7241int i;
7242_ACEOF
7243if ac_fn_c_try_compile "$LINENO"; then :
7244  xorg_cv_cc_flag_unknown_warning_option=yes
7245else
7246  xorg_cv_cc_flag_unknown_warning_option=no
7247fi
7248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7249fi
7250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7251$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7252	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7253	CFLAGS="$xorg_testset_save_CFLAGS"
7254fi
7255
7256if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7257	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7258		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7259	fi
7260	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7261	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7262$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7263if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7264  $as_echo_n "(cached) " >&6
7265else
7266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7267/* end confdefs.h.  */
7268int i;
7269_ACEOF
7270if ac_fn_c_try_compile "$LINENO"; then :
7271  xorg_cv_cc_flag_unused_command_line_argument=yes
7272else
7273  xorg_cv_cc_flag_unused_command_line_argument=no
7274fi
7275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7276fi
7277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7278$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7279	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7280	CFLAGS="$xorg_testset_save_CFLAGS"
7281fi
7282
7283found="no"
7284
7285	if test $found = "no" ; then
7286		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7287			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7288		fi
7289
7290		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7291			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7292		fi
7293
7294		CFLAGS="$CFLAGS -Werror=init-self"
7295
7296		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7297$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7298		cacheid=xorg_cv_cc_flag__Werror_init_self
7299		if eval \${$cacheid+:} false; then :
7300  $as_echo_n "(cached) " >&6
7301else
7302  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303/* end confdefs.h.  */
7304int i;
7305int
7306main ()
7307{
7308
7309  ;
7310  return 0;
7311}
7312_ACEOF
7313if ac_fn_c_try_link "$LINENO"; then :
7314  eval $cacheid=yes
7315else
7316  eval $cacheid=no
7317fi
7318rm -f core conftest.err conftest.$ac_objext \
7319    conftest$ac_exeext conftest.$ac_ext
7320fi
7321
7322
7323		CFLAGS="$xorg_testset_save_CFLAGS"
7324
7325		eval supported=\$$cacheid
7326		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7327$as_echo "$supported" >&6; }
7328		if test "$supported" = "yes" ; then
7329			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7330			found="yes"
7331		fi
7332	fi
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348xorg_testset_save_CFLAGS="$CFLAGS"
7349
7350if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7351	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7352	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7353$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7354if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7355  $as_echo_n "(cached) " >&6
7356else
7357  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7358/* end confdefs.h.  */
7359int i;
7360_ACEOF
7361if ac_fn_c_try_compile "$LINENO"; then :
7362  xorg_cv_cc_flag_unknown_warning_option=yes
7363else
7364  xorg_cv_cc_flag_unknown_warning_option=no
7365fi
7366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7367fi
7368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7369$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7370	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7371	CFLAGS="$xorg_testset_save_CFLAGS"
7372fi
7373
7374if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7375	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7376		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7377	fi
7378	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7379	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7380$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7381if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7382  $as_echo_n "(cached) " >&6
7383else
7384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385/* end confdefs.h.  */
7386int i;
7387_ACEOF
7388if ac_fn_c_try_compile "$LINENO"; then :
7389  xorg_cv_cc_flag_unused_command_line_argument=yes
7390else
7391  xorg_cv_cc_flag_unused_command_line_argument=no
7392fi
7393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7394fi
7395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7396$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7397	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7398	CFLAGS="$xorg_testset_save_CFLAGS"
7399fi
7400
7401found="no"
7402
7403	if test $found = "no" ; then
7404		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7405			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7406		fi
7407
7408		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7409			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7410		fi
7411
7412		CFLAGS="$CFLAGS -Werror=main"
7413
7414		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7415$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7416		cacheid=xorg_cv_cc_flag__Werror_main
7417		if eval \${$cacheid+:} false; then :
7418  $as_echo_n "(cached) " >&6
7419else
7420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421/* end confdefs.h.  */
7422int i;
7423int
7424main ()
7425{
7426
7427  ;
7428  return 0;
7429}
7430_ACEOF
7431if ac_fn_c_try_link "$LINENO"; then :
7432  eval $cacheid=yes
7433else
7434  eval $cacheid=no
7435fi
7436rm -f core conftest.err conftest.$ac_objext \
7437    conftest$ac_exeext conftest.$ac_ext
7438fi
7439
7440
7441		CFLAGS="$xorg_testset_save_CFLAGS"
7442
7443		eval supported=\$$cacheid
7444		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7445$as_echo "$supported" >&6; }
7446		if test "$supported" = "yes" ; then
7447			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7448			found="yes"
7449		fi
7450	fi
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466xorg_testset_save_CFLAGS="$CFLAGS"
7467
7468if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7469	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7470	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7471$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7472if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7473  $as_echo_n "(cached) " >&6
7474else
7475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476/* end confdefs.h.  */
7477int i;
7478_ACEOF
7479if ac_fn_c_try_compile "$LINENO"; then :
7480  xorg_cv_cc_flag_unknown_warning_option=yes
7481else
7482  xorg_cv_cc_flag_unknown_warning_option=no
7483fi
7484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7485fi
7486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7487$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7488	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7489	CFLAGS="$xorg_testset_save_CFLAGS"
7490fi
7491
7492if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7493	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7494		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7495	fi
7496	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7497	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7498$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7499if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7500  $as_echo_n "(cached) " >&6
7501else
7502  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503/* end confdefs.h.  */
7504int i;
7505_ACEOF
7506if ac_fn_c_try_compile "$LINENO"; then :
7507  xorg_cv_cc_flag_unused_command_line_argument=yes
7508else
7509  xorg_cv_cc_flag_unused_command_line_argument=no
7510fi
7511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7512fi
7513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7514$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7515	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7516	CFLAGS="$xorg_testset_save_CFLAGS"
7517fi
7518
7519found="no"
7520
7521	if test $found = "no" ; then
7522		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7523			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7524		fi
7525
7526		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7527			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7528		fi
7529
7530		CFLAGS="$CFLAGS -Werror=missing-braces"
7531
7532		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7533$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7534		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7535		if eval \${$cacheid+:} false; then :
7536  $as_echo_n "(cached) " >&6
7537else
7538  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539/* end confdefs.h.  */
7540int i;
7541int
7542main ()
7543{
7544
7545  ;
7546  return 0;
7547}
7548_ACEOF
7549if ac_fn_c_try_link "$LINENO"; then :
7550  eval $cacheid=yes
7551else
7552  eval $cacheid=no
7553fi
7554rm -f core conftest.err conftest.$ac_objext \
7555    conftest$ac_exeext conftest.$ac_ext
7556fi
7557
7558
7559		CFLAGS="$xorg_testset_save_CFLAGS"
7560
7561		eval supported=\$$cacheid
7562		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7563$as_echo "$supported" >&6; }
7564		if test "$supported" = "yes" ; then
7565			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7566			found="yes"
7567		fi
7568	fi
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584xorg_testset_save_CFLAGS="$CFLAGS"
7585
7586if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7587	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7588	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7589$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7590if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7591  $as_echo_n "(cached) " >&6
7592else
7593  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7594/* end confdefs.h.  */
7595int i;
7596_ACEOF
7597if ac_fn_c_try_compile "$LINENO"; then :
7598  xorg_cv_cc_flag_unknown_warning_option=yes
7599else
7600  xorg_cv_cc_flag_unknown_warning_option=no
7601fi
7602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7603fi
7604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7605$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7606	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7607	CFLAGS="$xorg_testset_save_CFLAGS"
7608fi
7609
7610if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7611	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7612		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7613	fi
7614	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7615	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7616$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7617if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7618  $as_echo_n "(cached) " >&6
7619else
7620  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621/* end confdefs.h.  */
7622int i;
7623_ACEOF
7624if ac_fn_c_try_compile "$LINENO"; then :
7625  xorg_cv_cc_flag_unused_command_line_argument=yes
7626else
7627  xorg_cv_cc_flag_unused_command_line_argument=no
7628fi
7629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7630fi
7631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7632$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7633	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7634	CFLAGS="$xorg_testset_save_CFLAGS"
7635fi
7636
7637found="no"
7638
7639	if test $found = "no" ; then
7640		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7641			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7642		fi
7643
7644		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7645			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7646		fi
7647
7648		CFLAGS="$CFLAGS -Werror=sequence-point"
7649
7650		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7651$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7652		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7653		if eval \${$cacheid+:} false; then :
7654  $as_echo_n "(cached) " >&6
7655else
7656  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7657/* end confdefs.h.  */
7658int i;
7659int
7660main ()
7661{
7662
7663  ;
7664  return 0;
7665}
7666_ACEOF
7667if ac_fn_c_try_link "$LINENO"; then :
7668  eval $cacheid=yes
7669else
7670  eval $cacheid=no
7671fi
7672rm -f core conftest.err conftest.$ac_objext \
7673    conftest$ac_exeext conftest.$ac_ext
7674fi
7675
7676
7677		CFLAGS="$xorg_testset_save_CFLAGS"
7678
7679		eval supported=\$$cacheid
7680		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7681$as_echo "$supported" >&6; }
7682		if test "$supported" = "yes" ; then
7683			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7684			found="yes"
7685		fi
7686	fi
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702xorg_testset_save_CFLAGS="$CFLAGS"
7703
7704if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7705	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7706	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7707$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7708if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7709  $as_echo_n "(cached) " >&6
7710else
7711  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7712/* end confdefs.h.  */
7713int i;
7714_ACEOF
7715if ac_fn_c_try_compile "$LINENO"; then :
7716  xorg_cv_cc_flag_unknown_warning_option=yes
7717else
7718  xorg_cv_cc_flag_unknown_warning_option=no
7719fi
7720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7721fi
7722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7723$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7724	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7725	CFLAGS="$xorg_testset_save_CFLAGS"
7726fi
7727
7728if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7729	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7730		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7731	fi
7732	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7733	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7734$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7735if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7736  $as_echo_n "(cached) " >&6
7737else
7738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739/* end confdefs.h.  */
7740int i;
7741_ACEOF
7742if ac_fn_c_try_compile "$LINENO"; then :
7743  xorg_cv_cc_flag_unused_command_line_argument=yes
7744else
7745  xorg_cv_cc_flag_unused_command_line_argument=no
7746fi
7747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7748fi
7749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7750$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7751	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7752	CFLAGS="$xorg_testset_save_CFLAGS"
7753fi
7754
7755found="no"
7756
7757	if test $found = "no" ; then
7758		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7759			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7760		fi
7761
7762		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7763			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7764		fi
7765
7766		CFLAGS="$CFLAGS -Werror=return-type"
7767
7768		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7769$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7770		cacheid=xorg_cv_cc_flag__Werror_return_type
7771		if eval \${$cacheid+:} false; then :
7772  $as_echo_n "(cached) " >&6
7773else
7774  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775/* end confdefs.h.  */
7776int i;
7777int
7778main ()
7779{
7780
7781  ;
7782  return 0;
7783}
7784_ACEOF
7785if ac_fn_c_try_link "$LINENO"; then :
7786  eval $cacheid=yes
7787else
7788  eval $cacheid=no
7789fi
7790rm -f core conftest.err conftest.$ac_objext \
7791    conftest$ac_exeext conftest.$ac_ext
7792fi
7793
7794
7795		CFLAGS="$xorg_testset_save_CFLAGS"
7796
7797		eval supported=\$$cacheid
7798		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7799$as_echo "$supported" >&6; }
7800		if test "$supported" = "yes" ; then
7801			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7802			found="yes"
7803		fi
7804	fi
7805
7806	if test $found = "no" ; then
7807		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7808			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7809		fi
7810
7811		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7812			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7813		fi
7814
7815		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7816
7817		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7818$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7819		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7820		if eval \${$cacheid+:} false; then :
7821  $as_echo_n "(cached) " >&6
7822else
7823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824/* end confdefs.h.  */
7825int i;
7826int
7827main ()
7828{
7829
7830  ;
7831  return 0;
7832}
7833_ACEOF
7834if ac_fn_c_try_link "$LINENO"; then :
7835  eval $cacheid=yes
7836else
7837  eval $cacheid=no
7838fi
7839rm -f core conftest.err conftest.$ac_objext \
7840    conftest$ac_exeext conftest.$ac_ext
7841fi
7842
7843
7844		CFLAGS="$xorg_testset_save_CFLAGS"
7845
7846		eval supported=\$$cacheid
7847		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7848$as_echo "$supported" >&6; }
7849		if test "$supported" = "yes" ; then
7850			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7851			found="yes"
7852		fi
7853	fi
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869xorg_testset_save_CFLAGS="$CFLAGS"
7870
7871if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7872	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7873	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7874$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7875if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7876  $as_echo_n "(cached) " >&6
7877else
7878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879/* end confdefs.h.  */
7880int i;
7881_ACEOF
7882if ac_fn_c_try_compile "$LINENO"; then :
7883  xorg_cv_cc_flag_unknown_warning_option=yes
7884else
7885  xorg_cv_cc_flag_unknown_warning_option=no
7886fi
7887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7888fi
7889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7890$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7891	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7892	CFLAGS="$xorg_testset_save_CFLAGS"
7893fi
7894
7895if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7896	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7897		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7898	fi
7899	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7900	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7901$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7902if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7903  $as_echo_n "(cached) " >&6
7904else
7905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906/* end confdefs.h.  */
7907int i;
7908_ACEOF
7909if ac_fn_c_try_compile "$LINENO"; then :
7910  xorg_cv_cc_flag_unused_command_line_argument=yes
7911else
7912  xorg_cv_cc_flag_unused_command_line_argument=no
7913fi
7914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7915fi
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7917$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7918	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7919	CFLAGS="$xorg_testset_save_CFLAGS"
7920fi
7921
7922found="no"
7923
7924	if test $found = "no" ; then
7925		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7926			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7927		fi
7928
7929		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7930			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7931		fi
7932
7933		CFLAGS="$CFLAGS -Werror=trigraphs"
7934
7935		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7936$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7937		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7938		if eval \${$cacheid+:} false; then :
7939  $as_echo_n "(cached) " >&6
7940else
7941  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942/* end confdefs.h.  */
7943int i;
7944int
7945main ()
7946{
7947
7948  ;
7949  return 0;
7950}
7951_ACEOF
7952if ac_fn_c_try_link "$LINENO"; then :
7953  eval $cacheid=yes
7954else
7955  eval $cacheid=no
7956fi
7957rm -f core conftest.err conftest.$ac_objext \
7958    conftest$ac_exeext conftest.$ac_ext
7959fi
7960
7961
7962		CFLAGS="$xorg_testset_save_CFLAGS"
7963
7964		eval supported=\$$cacheid
7965		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7966$as_echo "$supported" >&6; }
7967		if test "$supported" = "yes" ; then
7968			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7969			found="yes"
7970		fi
7971	fi
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987xorg_testset_save_CFLAGS="$CFLAGS"
7988
7989if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7990	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7991	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7992$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7993if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7994  $as_echo_n "(cached) " >&6
7995else
7996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997/* end confdefs.h.  */
7998int i;
7999_ACEOF
8000if ac_fn_c_try_compile "$LINENO"; then :
8001  xorg_cv_cc_flag_unknown_warning_option=yes
8002else
8003  xorg_cv_cc_flag_unknown_warning_option=no
8004fi
8005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8006fi
8007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8008$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8009	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8010	CFLAGS="$xorg_testset_save_CFLAGS"
8011fi
8012
8013if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8014	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8015		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8016	fi
8017	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8018	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8019$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8020if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8021  $as_echo_n "(cached) " >&6
8022else
8023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8024/* end confdefs.h.  */
8025int i;
8026_ACEOF
8027if ac_fn_c_try_compile "$LINENO"; then :
8028  xorg_cv_cc_flag_unused_command_line_argument=yes
8029else
8030  xorg_cv_cc_flag_unused_command_line_argument=no
8031fi
8032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8033fi
8034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8035$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8036	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8037	CFLAGS="$xorg_testset_save_CFLAGS"
8038fi
8039
8040found="no"
8041
8042	if test $found = "no" ; then
8043		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8044			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8045		fi
8046
8047		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8048			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8049		fi
8050
8051		CFLAGS="$CFLAGS -Werror=array-bounds"
8052
8053		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8054$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8055		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8056		if eval \${$cacheid+:} false; then :
8057  $as_echo_n "(cached) " >&6
8058else
8059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060/* end confdefs.h.  */
8061int i;
8062int
8063main ()
8064{
8065
8066  ;
8067  return 0;
8068}
8069_ACEOF
8070if ac_fn_c_try_link "$LINENO"; then :
8071  eval $cacheid=yes
8072else
8073  eval $cacheid=no
8074fi
8075rm -f core conftest.err conftest.$ac_objext \
8076    conftest$ac_exeext conftest.$ac_ext
8077fi
8078
8079
8080		CFLAGS="$xorg_testset_save_CFLAGS"
8081
8082		eval supported=\$$cacheid
8083		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8084$as_echo "$supported" >&6; }
8085		if test "$supported" = "yes" ; then
8086			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8087			found="yes"
8088		fi
8089	fi
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105xorg_testset_save_CFLAGS="$CFLAGS"
8106
8107if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8108	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8109	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8110$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8111if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8112  $as_echo_n "(cached) " >&6
8113else
8114  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115/* end confdefs.h.  */
8116int i;
8117_ACEOF
8118if ac_fn_c_try_compile "$LINENO"; then :
8119  xorg_cv_cc_flag_unknown_warning_option=yes
8120else
8121  xorg_cv_cc_flag_unknown_warning_option=no
8122fi
8123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8124fi
8125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8126$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8127	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8128	CFLAGS="$xorg_testset_save_CFLAGS"
8129fi
8130
8131if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8132	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8133		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8134	fi
8135	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8136	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8137$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8138if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8139  $as_echo_n "(cached) " >&6
8140else
8141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142/* end confdefs.h.  */
8143int i;
8144_ACEOF
8145if ac_fn_c_try_compile "$LINENO"; then :
8146  xorg_cv_cc_flag_unused_command_line_argument=yes
8147else
8148  xorg_cv_cc_flag_unused_command_line_argument=no
8149fi
8150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8151fi
8152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8153$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8154	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8155	CFLAGS="$xorg_testset_save_CFLAGS"
8156fi
8157
8158found="no"
8159
8160	if test $found = "no" ; then
8161		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8162			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8163		fi
8164
8165		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8166			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8167		fi
8168
8169		CFLAGS="$CFLAGS -Werror=write-strings"
8170
8171		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8172$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8173		cacheid=xorg_cv_cc_flag__Werror_write_strings
8174		if eval \${$cacheid+:} false; then :
8175  $as_echo_n "(cached) " >&6
8176else
8177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178/* end confdefs.h.  */
8179int i;
8180int
8181main ()
8182{
8183
8184  ;
8185  return 0;
8186}
8187_ACEOF
8188if ac_fn_c_try_link "$LINENO"; then :
8189  eval $cacheid=yes
8190else
8191  eval $cacheid=no
8192fi
8193rm -f core conftest.err conftest.$ac_objext \
8194    conftest$ac_exeext conftest.$ac_ext
8195fi
8196
8197
8198		CFLAGS="$xorg_testset_save_CFLAGS"
8199
8200		eval supported=\$$cacheid
8201		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8202$as_echo "$supported" >&6; }
8203		if test "$supported" = "yes" ; then
8204			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8205			found="yes"
8206		fi
8207	fi
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223xorg_testset_save_CFLAGS="$CFLAGS"
8224
8225if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8226	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8227	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8228$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8229if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8230  $as_echo_n "(cached) " >&6
8231else
8232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233/* end confdefs.h.  */
8234int i;
8235_ACEOF
8236if ac_fn_c_try_compile "$LINENO"; then :
8237  xorg_cv_cc_flag_unknown_warning_option=yes
8238else
8239  xorg_cv_cc_flag_unknown_warning_option=no
8240fi
8241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8242fi
8243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8244$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8245	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8246	CFLAGS="$xorg_testset_save_CFLAGS"
8247fi
8248
8249if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8250	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8251		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8252	fi
8253	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8254	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8255$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8256if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8257  $as_echo_n "(cached) " >&6
8258else
8259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260/* end confdefs.h.  */
8261int i;
8262_ACEOF
8263if ac_fn_c_try_compile "$LINENO"; then :
8264  xorg_cv_cc_flag_unused_command_line_argument=yes
8265else
8266  xorg_cv_cc_flag_unused_command_line_argument=no
8267fi
8268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8269fi
8270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8271$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8272	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8273	CFLAGS="$xorg_testset_save_CFLAGS"
8274fi
8275
8276found="no"
8277
8278	if test $found = "no" ; then
8279		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8280			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8281		fi
8282
8283		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8284			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8285		fi
8286
8287		CFLAGS="$CFLAGS -Werror=address"
8288
8289		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8290$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8291		cacheid=xorg_cv_cc_flag__Werror_address
8292		if eval \${$cacheid+:} false; then :
8293  $as_echo_n "(cached) " >&6
8294else
8295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8296/* end confdefs.h.  */
8297int i;
8298int
8299main ()
8300{
8301
8302  ;
8303  return 0;
8304}
8305_ACEOF
8306if ac_fn_c_try_link "$LINENO"; then :
8307  eval $cacheid=yes
8308else
8309  eval $cacheid=no
8310fi
8311rm -f core conftest.err conftest.$ac_objext \
8312    conftest$ac_exeext conftest.$ac_ext
8313fi
8314
8315
8316		CFLAGS="$xorg_testset_save_CFLAGS"
8317
8318		eval supported=\$$cacheid
8319		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8320$as_echo "$supported" >&6; }
8321		if test "$supported" = "yes" ; then
8322			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8323			found="yes"
8324		fi
8325	fi
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341xorg_testset_save_CFLAGS="$CFLAGS"
8342
8343if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8344	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8345	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8346$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8347if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8348  $as_echo_n "(cached) " >&6
8349else
8350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351/* end confdefs.h.  */
8352int i;
8353_ACEOF
8354if ac_fn_c_try_compile "$LINENO"; then :
8355  xorg_cv_cc_flag_unknown_warning_option=yes
8356else
8357  xorg_cv_cc_flag_unknown_warning_option=no
8358fi
8359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8360fi
8361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8362$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8363	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8364	CFLAGS="$xorg_testset_save_CFLAGS"
8365fi
8366
8367if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8368	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8369		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8370	fi
8371	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8372	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8373$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8374if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8375  $as_echo_n "(cached) " >&6
8376else
8377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378/* end confdefs.h.  */
8379int i;
8380_ACEOF
8381if ac_fn_c_try_compile "$LINENO"; then :
8382  xorg_cv_cc_flag_unused_command_line_argument=yes
8383else
8384  xorg_cv_cc_flag_unused_command_line_argument=no
8385fi
8386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387fi
8388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8389$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8390	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8391	CFLAGS="$xorg_testset_save_CFLAGS"
8392fi
8393
8394found="no"
8395
8396	if test $found = "no" ; then
8397		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8398			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8399		fi
8400
8401		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8402			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8403		fi
8404
8405		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8406
8407		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8408$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8409		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8410		if eval \${$cacheid+:} false; then :
8411  $as_echo_n "(cached) " >&6
8412else
8413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414/* end confdefs.h.  */
8415int i;
8416int
8417main ()
8418{
8419
8420  ;
8421  return 0;
8422}
8423_ACEOF
8424if ac_fn_c_try_link "$LINENO"; then :
8425  eval $cacheid=yes
8426else
8427  eval $cacheid=no
8428fi
8429rm -f core conftest.err conftest.$ac_objext \
8430    conftest$ac_exeext conftest.$ac_ext
8431fi
8432
8433
8434		CFLAGS="$xorg_testset_save_CFLAGS"
8435
8436		eval supported=\$$cacheid
8437		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8438$as_echo "$supported" >&6; }
8439		if test "$supported" = "yes" ; then
8440			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8441			found="yes"
8442		fi
8443	fi
8444
8445	if test $found = "no" ; then
8446		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8447			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8448		fi
8449
8450		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8451			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8452		fi
8453
8454		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8455
8456		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8457$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8458		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8459		if eval \${$cacheid+:} false; then :
8460  $as_echo_n "(cached) " >&6
8461else
8462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8463/* end confdefs.h.  */
8464int i;
8465int
8466main ()
8467{
8468
8469  ;
8470  return 0;
8471}
8472_ACEOF
8473if ac_fn_c_try_link "$LINENO"; then :
8474  eval $cacheid=yes
8475else
8476  eval $cacheid=no
8477fi
8478rm -f core conftest.err conftest.$ac_objext \
8479    conftest$ac_exeext conftest.$ac_ext
8480fi
8481
8482
8483		CFLAGS="$xorg_testset_save_CFLAGS"
8484
8485		eval supported=\$$cacheid
8486		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8487$as_echo "$supported" >&6; }
8488		if test "$supported" = "yes" ; then
8489			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8490			found="yes"
8491		fi
8492	fi
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508xorg_testset_save_CFLAGS="$CFLAGS"
8509
8510if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8511	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8512	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8513$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8514if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8515  $as_echo_n "(cached) " >&6
8516else
8517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518/* end confdefs.h.  */
8519int i;
8520_ACEOF
8521if ac_fn_c_try_compile "$LINENO"; then :
8522  xorg_cv_cc_flag_unknown_warning_option=yes
8523else
8524  xorg_cv_cc_flag_unknown_warning_option=no
8525fi
8526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8527fi
8528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8529$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8530	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8531	CFLAGS="$xorg_testset_save_CFLAGS"
8532fi
8533
8534if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8535	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8536		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8537	fi
8538	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8539	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8540$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8541if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8542  $as_echo_n "(cached) " >&6
8543else
8544  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545/* end confdefs.h.  */
8546int i;
8547_ACEOF
8548if ac_fn_c_try_compile "$LINENO"; then :
8549  xorg_cv_cc_flag_unused_command_line_argument=yes
8550else
8551  xorg_cv_cc_flag_unused_command_line_argument=no
8552fi
8553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8554fi
8555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8556$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8557	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8558	CFLAGS="$xorg_testset_save_CFLAGS"
8559fi
8560
8561found="no"
8562
8563	if test $found = "no" ; then
8564		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8565			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8566		fi
8567
8568		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8569			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8570		fi
8571
8572		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8573
8574		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8575$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8576		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8577		if eval \${$cacheid+:} false; then :
8578  $as_echo_n "(cached) " >&6
8579else
8580  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581/* end confdefs.h.  */
8582int i;
8583int
8584main ()
8585{
8586
8587  ;
8588  return 0;
8589}
8590_ACEOF
8591if ac_fn_c_try_link "$LINENO"; then :
8592  eval $cacheid=yes
8593else
8594  eval $cacheid=no
8595fi
8596rm -f core conftest.err conftest.$ac_objext \
8597    conftest$ac_exeext conftest.$ac_ext
8598fi
8599
8600
8601		CFLAGS="$xorg_testset_save_CFLAGS"
8602
8603		eval supported=\$$cacheid
8604		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8605$as_echo "$supported" >&6; }
8606		if test "$supported" = "yes" ; then
8607			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8608			found="yes"
8609		fi
8610	fi
8611
8612 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8613else
8614{ $as_echo "$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
8615$as_echo "$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;}
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629xorg_testset_save_CFLAGS="$CFLAGS"
8630
8631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8632	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8633	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8634$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8635if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8636  $as_echo_n "(cached) " >&6
8637else
8638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8639/* end confdefs.h.  */
8640int i;
8641_ACEOF
8642if ac_fn_c_try_compile "$LINENO"; then :
8643  xorg_cv_cc_flag_unknown_warning_option=yes
8644else
8645  xorg_cv_cc_flag_unknown_warning_option=no
8646fi
8647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8648fi
8649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8650$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8651	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8652	CFLAGS="$xorg_testset_save_CFLAGS"
8653fi
8654
8655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8656	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8657		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8658	fi
8659	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8660	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8661$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8662if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8663  $as_echo_n "(cached) " >&6
8664else
8665  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666/* end confdefs.h.  */
8667int i;
8668_ACEOF
8669if ac_fn_c_try_compile "$LINENO"; then :
8670  xorg_cv_cc_flag_unused_command_line_argument=yes
8671else
8672  xorg_cv_cc_flag_unused_command_line_argument=no
8673fi
8674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675fi
8676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8677$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8678	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8679	CFLAGS="$xorg_testset_save_CFLAGS"
8680fi
8681
8682found="no"
8683
8684	if test $found = "no" ; then
8685		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8686			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8687		fi
8688
8689		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8690			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8691		fi
8692
8693		CFLAGS="$CFLAGS -Wimplicit"
8694
8695		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8696$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8697		cacheid=xorg_cv_cc_flag__Wimplicit
8698		if eval \${$cacheid+:} false; then :
8699  $as_echo_n "(cached) " >&6
8700else
8701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8702/* end confdefs.h.  */
8703int i;
8704int
8705main ()
8706{
8707
8708  ;
8709  return 0;
8710}
8711_ACEOF
8712if ac_fn_c_try_link "$LINENO"; then :
8713  eval $cacheid=yes
8714else
8715  eval $cacheid=no
8716fi
8717rm -f core conftest.err conftest.$ac_objext \
8718    conftest$ac_exeext conftest.$ac_ext
8719fi
8720
8721
8722		CFLAGS="$xorg_testset_save_CFLAGS"
8723
8724		eval supported=\$$cacheid
8725		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8726$as_echo "$supported" >&6; }
8727		if test "$supported" = "yes" ; then
8728			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8729			found="yes"
8730		fi
8731	fi
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747xorg_testset_save_CFLAGS="$CFLAGS"
8748
8749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8750	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8751	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8752$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8753if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8754  $as_echo_n "(cached) " >&6
8755else
8756  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757/* end confdefs.h.  */
8758int i;
8759_ACEOF
8760if ac_fn_c_try_compile "$LINENO"; then :
8761  xorg_cv_cc_flag_unknown_warning_option=yes
8762else
8763  xorg_cv_cc_flag_unknown_warning_option=no
8764fi
8765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8766fi
8767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8768$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8769	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8770	CFLAGS="$xorg_testset_save_CFLAGS"
8771fi
8772
8773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8774	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8775		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8776	fi
8777	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8778	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8779$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8780if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8781  $as_echo_n "(cached) " >&6
8782else
8783  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8784/* end confdefs.h.  */
8785int i;
8786_ACEOF
8787if ac_fn_c_try_compile "$LINENO"; then :
8788  xorg_cv_cc_flag_unused_command_line_argument=yes
8789else
8790  xorg_cv_cc_flag_unused_command_line_argument=no
8791fi
8792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8793fi
8794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8795$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8796	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8797	CFLAGS="$xorg_testset_save_CFLAGS"
8798fi
8799
8800found="no"
8801
8802	if test $found = "no" ; then
8803		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8804			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8805		fi
8806
8807		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8808			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8809		fi
8810
8811		CFLAGS="$CFLAGS -Wnonnull"
8812
8813		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8814$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8815		cacheid=xorg_cv_cc_flag__Wnonnull
8816		if eval \${$cacheid+:} false; then :
8817  $as_echo_n "(cached) " >&6
8818else
8819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8820/* end confdefs.h.  */
8821int i;
8822int
8823main ()
8824{
8825
8826  ;
8827  return 0;
8828}
8829_ACEOF
8830if ac_fn_c_try_link "$LINENO"; then :
8831  eval $cacheid=yes
8832else
8833  eval $cacheid=no
8834fi
8835rm -f core conftest.err conftest.$ac_objext \
8836    conftest$ac_exeext conftest.$ac_ext
8837fi
8838
8839
8840		CFLAGS="$xorg_testset_save_CFLAGS"
8841
8842		eval supported=\$$cacheid
8843		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8844$as_echo "$supported" >&6; }
8845		if test "$supported" = "yes" ; then
8846			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8847			found="yes"
8848		fi
8849	fi
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865xorg_testset_save_CFLAGS="$CFLAGS"
8866
8867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8868	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8869	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8870$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8871if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8872  $as_echo_n "(cached) " >&6
8873else
8874  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875/* end confdefs.h.  */
8876int i;
8877_ACEOF
8878if ac_fn_c_try_compile "$LINENO"; then :
8879  xorg_cv_cc_flag_unknown_warning_option=yes
8880else
8881  xorg_cv_cc_flag_unknown_warning_option=no
8882fi
8883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8884fi
8885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8886$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8887	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8888	CFLAGS="$xorg_testset_save_CFLAGS"
8889fi
8890
8891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8892	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8893		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8894	fi
8895	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8896	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8897$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8898if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8899  $as_echo_n "(cached) " >&6
8900else
8901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902/* end confdefs.h.  */
8903int i;
8904_ACEOF
8905if ac_fn_c_try_compile "$LINENO"; then :
8906  xorg_cv_cc_flag_unused_command_line_argument=yes
8907else
8908  xorg_cv_cc_flag_unused_command_line_argument=no
8909fi
8910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8911fi
8912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8913$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8914	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8915	CFLAGS="$xorg_testset_save_CFLAGS"
8916fi
8917
8918found="no"
8919
8920	if test $found = "no" ; then
8921		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8922			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8923		fi
8924
8925		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8926			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8927		fi
8928
8929		CFLAGS="$CFLAGS -Winit-self"
8930
8931		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8932$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8933		cacheid=xorg_cv_cc_flag__Winit_self
8934		if eval \${$cacheid+:} false; then :
8935  $as_echo_n "(cached) " >&6
8936else
8937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8938/* end confdefs.h.  */
8939int i;
8940int
8941main ()
8942{
8943
8944  ;
8945  return 0;
8946}
8947_ACEOF
8948if ac_fn_c_try_link "$LINENO"; then :
8949  eval $cacheid=yes
8950else
8951  eval $cacheid=no
8952fi
8953rm -f core conftest.err conftest.$ac_objext \
8954    conftest$ac_exeext conftest.$ac_ext
8955fi
8956
8957
8958		CFLAGS="$xorg_testset_save_CFLAGS"
8959
8960		eval supported=\$$cacheid
8961		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8962$as_echo "$supported" >&6; }
8963		if test "$supported" = "yes" ; then
8964			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8965			found="yes"
8966		fi
8967	fi
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983xorg_testset_save_CFLAGS="$CFLAGS"
8984
8985if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8986	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8987	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8988$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8989if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8990  $as_echo_n "(cached) " >&6
8991else
8992  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8993/* end confdefs.h.  */
8994int i;
8995_ACEOF
8996if ac_fn_c_try_compile "$LINENO"; then :
8997  xorg_cv_cc_flag_unknown_warning_option=yes
8998else
8999  xorg_cv_cc_flag_unknown_warning_option=no
9000fi
9001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9002fi
9003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9004$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9005	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9006	CFLAGS="$xorg_testset_save_CFLAGS"
9007fi
9008
9009if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9010	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9011		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9012	fi
9013	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9014	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9015$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9016if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9017  $as_echo_n "(cached) " >&6
9018else
9019  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020/* end confdefs.h.  */
9021int i;
9022_ACEOF
9023if ac_fn_c_try_compile "$LINENO"; then :
9024  xorg_cv_cc_flag_unused_command_line_argument=yes
9025else
9026  xorg_cv_cc_flag_unused_command_line_argument=no
9027fi
9028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9029fi
9030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9031$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9032	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9033	CFLAGS="$xorg_testset_save_CFLAGS"
9034fi
9035
9036found="no"
9037
9038	if test $found = "no" ; then
9039		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9040			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9041		fi
9042
9043		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9044			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9045		fi
9046
9047		CFLAGS="$CFLAGS -Wmain"
9048
9049		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9050$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9051		cacheid=xorg_cv_cc_flag__Wmain
9052		if eval \${$cacheid+:} false; then :
9053  $as_echo_n "(cached) " >&6
9054else
9055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056/* end confdefs.h.  */
9057int i;
9058int
9059main ()
9060{
9061
9062  ;
9063  return 0;
9064}
9065_ACEOF
9066if ac_fn_c_try_link "$LINENO"; then :
9067  eval $cacheid=yes
9068else
9069  eval $cacheid=no
9070fi
9071rm -f core conftest.err conftest.$ac_objext \
9072    conftest$ac_exeext conftest.$ac_ext
9073fi
9074
9075
9076		CFLAGS="$xorg_testset_save_CFLAGS"
9077
9078		eval supported=\$$cacheid
9079		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9080$as_echo "$supported" >&6; }
9081		if test "$supported" = "yes" ; then
9082			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9083			found="yes"
9084		fi
9085	fi
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101xorg_testset_save_CFLAGS="$CFLAGS"
9102
9103if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9104	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9105	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9106$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9107if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9108  $as_echo_n "(cached) " >&6
9109else
9110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111/* end confdefs.h.  */
9112int i;
9113_ACEOF
9114if ac_fn_c_try_compile "$LINENO"; then :
9115  xorg_cv_cc_flag_unknown_warning_option=yes
9116else
9117  xorg_cv_cc_flag_unknown_warning_option=no
9118fi
9119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9120fi
9121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9122$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9123	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9124	CFLAGS="$xorg_testset_save_CFLAGS"
9125fi
9126
9127if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9128	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9129		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9130	fi
9131	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9132	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9133$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9134if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9135  $as_echo_n "(cached) " >&6
9136else
9137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9138/* end confdefs.h.  */
9139int i;
9140_ACEOF
9141if ac_fn_c_try_compile "$LINENO"; then :
9142  xorg_cv_cc_flag_unused_command_line_argument=yes
9143else
9144  xorg_cv_cc_flag_unused_command_line_argument=no
9145fi
9146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9147fi
9148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9149$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9150	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9151	CFLAGS="$xorg_testset_save_CFLAGS"
9152fi
9153
9154found="no"
9155
9156	if test $found = "no" ; then
9157		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9158			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9159		fi
9160
9161		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9162			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9163		fi
9164
9165		CFLAGS="$CFLAGS -Wmissing-braces"
9166
9167		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9168$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9169		cacheid=xorg_cv_cc_flag__Wmissing_braces
9170		if eval \${$cacheid+:} false; then :
9171  $as_echo_n "(cached) " >&6
9172else
9173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9174/* end confdefs.h.  */
9175int i;
9176int
9177main ()
9178{
9179
9180  ;
9181  return 0;
9182}
9183_ACEOF
9184if ac_fn_c_try_link "$LINENO"; then :
9185  eval $cacheid=yes
9186else
9187  eval $cacheid=no
9188fi
9189rm -f core conftest.err conftest.$ac_objext \
9190    conftest$ac_exeext conftest.$ac_ext
9191fi
9192
9193
9194		CFLAGS="$xorg_testset_save_CFLAGS"
9195
9196		eval supported=\$$cacheid
9197		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9198$as_echo "$supported" >&6; }
9199		if test "$supported" = "yes" ; then
9200			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9201			found="yes"
9202		fi
9203	fi
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219xorg_testset_save_CFLAGS="$CFLAGS"
9220
9221if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9222	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9223	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9224$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9225if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9226  $as_echo_n "(cached) " >&6
9227else
9228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229/* end confdefs.h.  */
9230int i;
9231_ACEOF
9232if ac_fn_c_try_compile "$LINENO"; then :
9233  xorg_cv_cc_flag_unknown_warning_option=yes
9234else
9235  xorg_cv_cc_flag_unknown_warning_option=no
9236fi
9237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9238fi
9239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9240$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9241	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9242	CFLAGS="$xorg_testset_save_CFLAGS"
9243fi
9244
9245if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9246	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9247		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9248	fi
9249	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9250	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9251$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9252if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9253  $as_echo_n "(cached) " >&6
9254else
9255  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9256/* end confdefs.h.  */
9257int i;
9258_ACEOF
9259if ac_fn_c_try_compile "$LINENO"; then :
9260  xorg_cv_cc_flag_unused_command_line_argument=yes
9261else
9262  xorg_cv_cc_flag_unused_command_line_argument=no
9263fi
9264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9265fi
9266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9267$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9268	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9269	CFLAGS="$xorg_testset_save_CFLAGS"
9270fi
9271
9272found="no"
9273
9274	if test $found = "no" ; then
9275		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9276			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9277		fi
9278
9279		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9280			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9281		fi
9282
9283		CFLAGS="$CFLAGS -Wsequence-point"
9284
9285		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9286$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9287		cacheid=xorg_cv_cc_flag__Wsequence_point
9288		if eval \${$cacheid+:} false; then :
9289  $as_echo_n "(cached) " >&6
9290else
9291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9292/* end confdefs.h.  */
9293int i;
9294int
9295main ()
9296{
9297
9298  ;
9299  return 0;
9300}
9301_ACEOF
9302if ac_fn_c_try_link "$LINENO"; then :
9303  eval $cacheid=yes
9304else
9305  eval $cacheid=no
9306fi
9307rm -f core conftest.err conftest.$ac_objext \
9308    conftest$ac_exeext conftest.$ac_ext
9309fi
9310
9311
9312		CFLAGS="$xorg_testset_save_CFLAGS"
9313
9314		eval supported=\$$cacheid
9315		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9316$as_echo "$supported" >&6; }
9317		if test "$supported" = "yes" ; then
9318			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9319			found="yes"
9320		fi
9321	fi
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337xorg_testset_save_CFLAGS="$CFLAGS"
9338
9339if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9340	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9341	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9342$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9343if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9344  $as_echo_n "(cached) " >&6
9345else
9346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347/* end confdefs.h.  */
9348int i;
9349_ACEOF
9350if ac_fn_c_try_compile "$LINENO"; then :
9351  xorg_cv_cc_flag_unknown_warning_option=yes
9352else
9353  xorg_cv_cc_flag_unknown_warning_option=no
9354fi
9355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9356fi
9357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9358$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9359	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9360	CFLAGS="$xorg_testset_save_CFLAGS"
9361fi
9362
9363if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9364	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9365		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9366	fi
9367	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9368	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9369$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9370if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9371  $as_echo_n "(cached) " >&6
9372else
9373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9374/* end confdefs.h.  */
9375int i;
9376_ACEOF
9377if ac_fn_c_try_compile "$LINENO"; then :
9378  xorg_cv_cc_flag_unused_command_line_argument=yes
9379else
9380  xorg_cv_cc_flag_unused_command_line_argument=no
9381fi
9382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9383fi
9384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9385$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9386	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9387	CFLAGS="$xorg_testset_save_CFLAGS"
9388fi
9389
9390found="no"
9391
9392	if test $found = "no" ; then
9393		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9394			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9395		fi
9396
9397		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9398			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9399		fi
9400
9401		CFLAGS="$CFLAGS -Wreturn-type"
9402
9403		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9404$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9405		cacheid=xorg_cv_cc_flag__Wreturn_type
9406		if eval \${$cacheid+:} false; then :
9407  $as_echo_n "(cached) " >&6
9408else
9409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410/* end confdefs.h.  */
9411int i;
9412int
9413main ()
9414{
9415
9416  ;
9417  return 0;
9418}
9419_ACEOF
9420if ac_fn_c_try_link "$LINENO"; then :
9421  eval $cacheid=yes
9422else
9423  eval $cacheid=no
9424fi
9425rm -f core conftest.err conftest.$ac_objext \
9426    conftest$ac_exeext conftest.$ac_ext
9427fi
9428
9429
9430		CFLAGS="$xorg_testset_save_CFLAGS"
9431
9432		eval supported=\$$cacheid
9433		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9434$as_echo "$supported" >&6; }
9435		if test "$supported" = "yes" ; then
9436			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
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	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9460$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9461if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9462  $as_echo_n "(cached) " >&6
9463else
9464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465/* end confdefs.h.  */
9466int i;
9467_ACEOF
9468if ac_fn_c_try_compile "$LINENO"; then :
9469  xorg_cv_cc_flag_unknown_warning_option=yes
9470else
9471  xorg_cv_cc_flag_unknown_warning_option=no
9472fi
9473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9474fi
9475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9476$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9477	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9478	CFLAGS="$xorg_testset_save_CFLAGS"
9479fi
9480
9481if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9482	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9483		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9484	fi
9485	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9486	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9487$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9488if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9489  $as_echo_n "(cached) " >&6
9490else
9491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9492/* end confdefs.h.  */
9493int i;
9494_ACEOF
9495if ac_fn_c_try_compile "$LINENO"; then :
9496  xorg_cv_cc_flag_unused_command_line_argument=yes
9497else
9498  xorg_cv_cc_flag_unused_command_line_argument=no
9499fi
9500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9501fi
9502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9503$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9504	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9505	CFLAGS="$xorg_testset_save_CFLAGS"
9506fi
9507
9508found="no"
9509
9510	if test $found = "no" ; then
9511		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9512			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9513		fi
9514
9515		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9516			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9517		fi
9518
9519		CFLAGS="$CFLAGS -Wtrigraphs"
9520
9521		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9522$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9523		cacheid=xorg_cv_cc_flag__Wtrigraphs
9524		if eval \${$cacheid+:} false; then :
9525  $as_echo_n "(cached) " >&6
9526else
9527  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528/* end confdefs.h.  */
9529int i;
9530int
9531main ()
9532{
9533
9534  ;
9535  return 0;
9536}
9537_ACEOF
9538if ac_fn_c_try_link "$LINENO"; then :
9539  eval $cacheid=yes
9540else
9541  eval $cacheid=no
9542fi
9543rm -f core conftest.err conftest.$ac_objext \
9544    conftest$ac_exeext conftest.$ac_ext
9545fi
9546
9547
9548		CFLAGS="$xorg_testset_save_CFLAGS"
9549
9550		eval supported=\$$cacheid
9551		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9552$as_echo "$supported" >&6; }
9553		if test "$supported" = "yes" ; then
9554			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9555			found="yes"
9556		fi
9557	fi
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573xorg_testset_save_CFLAGS="$CFLAGS"
9574
9575if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9576	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9577	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9578$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9579if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9580  $as_echo_n "(cached) " >&6
9581else
9582  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583/* end confdefs.h.  */
9584int i;
9585_ACEOF
9586if ac_fn_c_try_compile "$LINENO"; then :
9587  xorg_cv_cc_flag_unknown_warning_option=yes
9588else
9589  xorg_cv_cc_flag_unknown_warning_option=no
9590fi
9591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9592fi
9593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9594$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9595	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9596	CFLAGS="$xorg_testset_save_CFLAGS"
9597fi
9598
9599if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9600	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9601		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9602	fi
9603	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9604	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9605$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9606if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9607  $as_echo_n "(cached) " >&6
9608else
9609  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9610/* end confdefs.h.  */
9611int i;
9612_ACEOF
9613if ac_fn_c_try_compile "$LINENO"; then :
9614  xorg_cv_cc_flag_unused_command_line_argument=yes
9615else
9616  xorg_cv_cc_flag_unused_command_line_argument=no
9617fi
9618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9619fi
9620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9621$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9622	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9623	CFLAGS="$xorg_testset_save_CFLAGS"
9624fi
9625
9626found="no"
9627
9628	if test $found = "no" ; then
9629		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9630			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9631		fi
9632
9633		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9634			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9635		fi
9636
9637		CFLAGS="$CFLAGS -Warray-bounds"
9638
9639		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9640$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9641		cacheid=xorg_cv_cc_flag__Warray_bounds
9642		if eval \${$cacheid+:} false; then :
9643  $as_echo_n "(cached) " >&6
9644else
9645  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646/* end confdefs.h.  */
9647int i;
9648int
9649main ()
9650{
9651
9652  ;
9653  return 0;
9654}
9655_ACEOF
9656if ac_fn_c_try_link "$LINENO"; then :
9657  eval $cacheid=yes
9658else
9659  eval $cacheid=no
9660fi
9661rm -f core conftest.err conftest.$ac_objext \
9662    conftest$ac_exeext conftest.$ac_ext
9663fi
9664
9665
9666		CFLAGS="$xorg_testset_save_CFLAGS"
9667
9668		eval supported=\$$cacheid
9669		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9670$as_echo "$supported" >&6; }
9671		if test "$supported" = "yes" ; then
9672			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9673			found="yes"
9674		fi
9675	fi
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691xorg_testset_save_CFLAGS="$CFLAGS"
9692
9693if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9694	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9695	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9696$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9697if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9698  $as_echo_n "(cached) " >&6
9699else
9700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701/* end confdefs.h.  */
9702int i;
9703_ACEOF
9704if ac_fn_c_try_compile "$LINENO"; then :
9705  xorg_cv_cc_flag_unknown_warning_option=yes
9706else
9707  xorg_cv_cc_flag_unknown_warning_option=no
9708fi
9709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9710fi
9711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9712$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9713	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9714	CFLAGS="$xorg_testset_save_CFLAGS"
9715fi
9716
9717if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9718	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9719		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9720	fi
9721	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9722	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9723$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9724if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9725  $as_echo_n "(cached) " >&6
9726else
9727  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728/* end confdefs.h.  */
9729int i;
9730_ACEOF
9731if ac_fn_c_try_compile "$LINENO"; then :
9732  xorg_cv_cc_flag_unused_command_line_argument=yes
9733else
9734  xorg_cv_cc_flag_unused_command_line_argument=no
9735fi
9736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9737fi
9738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9739$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9740	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9741	CFLAGS="$xorg_testset_save_CFLAGS"
9742fi
9743
9744found="no"
9745
9746	if test $found = "no" ; then
9747		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9748			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9749		fi
9750
9751		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9752			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9753		fi
9754
9755		CFLAGS="$CFLAGS -Wwrite-strings"
9756
9757		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9758$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9759		cacheid=xorg_cv_cc_flag__Wwrite_strings
9760		if eval \${$cacheid+:} false; then :
9761  $as_echo_n "(cached) " >&6
9762else
9763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764/* end confdefs.h.  */
9765int i;
9766int
9767main ()
9768{
9769
9770  ;
9771  return 0;
9772}
9773_ACEOF
9774if ac_fn_c_try_link "$LINENO"; then :
9775  eval $cacheid=yes
9776else
9777  eval $cacheid=no
9778fi
9779rm -f core conftest.err conftest.$ac_objext \
9780    conftest$ac_exeext conftest.$ac_ext
9781fi
9782
9783
9784		CFLAGS="$xorg_testset_save_CFLAGS"
9785
9786		eval supported=\$$cacheid
9787		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9788$as_echo "$supported" >&6; }
9789		if test "$supported" = "yes" ; then
9790			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9791			found="yes"
9792		fi
9793	fi
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809xorg_testset_save_CFLAGS="$CFLAGS"
9810
9811if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9812	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9813	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9814$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9815if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9816  $as_echo_n "(cached) " >&6
9817else
9818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9819/* end confdefs.h.  */
9820int i;
9821_ACEOF
9822if ac_fn_c_try_compile "$LINENO"; then :
9823  xorg_cv_cc_flag_unknown_warning_option=yes
9824else
9825  xorg_cv_cc_flag_unknown_warning_option=no
9826fi
9827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9828fi
9829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9830$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9831	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9832	CFLAGS="$xorg_testset_save_CFLAGS"
9833fi
9834
9835if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9836	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9837		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9838	fi
9839	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9840	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9841$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9842if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9843  $as_echo_n "(cached) " >&6
9844else
9845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9846/* end confdefs.h.  */
9847int i;
9848_ACEOF
9849if ac_fn_c_try_compile "$LINENO"; then :
9850  xorg_cv_cc_flag_unused_command_line_argument=yes
9851else
9852  xorg_cv_cc_flag_unused_command_line_argument=no
9853fi
9854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9855fi
9856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9857$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9858	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9859	CFLAGS="$xorg_testset_save_CFLAGS"
9860fi
9861
9862found="no"
9863
9864	if test $found = "no" ; then
9865		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9866			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9867		fi
9868
9869		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9870			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9871		fi
9872
9873		CFLAGS="$CFLAGS -Waddress"
9874
9875		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9876$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9877		cacheid=xorg_cv_cc_flag__Waddress
9878		if eval \${$cacheid+:} false; then :
9879  $as_echo_n "(cached) " >&6
9880else
9881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882/* end confdefs.h.  */
9883int i;
9884int
9885main ()
9886{
9887
9888  ;
9889  return 0;
9890}
9891_ACEOF
9892if ac_fn_c_try_link "$LINENO"; then :
9893  eval $cacheid=yes
9894else
9895  eval $cacheid=no
9896fi
9897rm -f core conftest.err conftest.$ac_objext \
9898    conftest$ac_exeext conftest.$ac_ext
9899fi
9900
9901
9902		CFLAGS="$xorg_testset_save_CFLAGS"
9903
9904		eval supported=\$$cacheid
9905		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9906$as_echo "$supported" >&6; }
9907		if test "$supported" = "yes" ; then
9908			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9909			found="yes"
9910		fi
9911	fi
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927xorg_testset_save_CFLAGS="$CFLAGS"
9928
9929if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9930	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9931	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9932$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9933if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9934  $as_echo_n "(cached) " >&6
9935else
9936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9937/* end confdefs.h.  */
9938int i;
9939_ACEOF
9940if ac_fn_c_try_compile "$LINENO"; then :
9941  xorg_cv_cc_flag_unknown_warning_option=yes
9942else
9943  xorg_cv_cc_flag_unknown_warning_option=no
9944fi
9945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9946fi
9947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9948$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9949	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9950	CFLAGS="$xorg_testset_save_CFLAGS"
9951fi
9952
9953if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9954	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9955		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9956	fi
9957	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9958	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9959$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9960if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9961  $as_echo_n "(cached) " >&6
9962else
9963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964/* end confdefs.h.  */
9965int i;
9966_ACEOF
9967if ac_fn_c_try_compile "$LINENO"; then :
9968  xorg_cv_cc_flag_unused_command_line_argument=yes
9969else
9970  xorg_cv_cc_flag_unused_command_line_argument=no
9971fi
9972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9973fi
9974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9975$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9976	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9977	CFLAGS="$xorg_testset_save_CFLAGS"
9978fi
9979
9980found="no"
9981
9982	if test $found = "no" ; then
9983		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9984			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9985		fi
9986
9987		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9988			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9989		fi
9990
9991		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9992
9993		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9994$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9995		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9996		if eval \${$cacheid+:} false; then :
9997  $as_echo_n "(cached) " >&6
9998else
9999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10000/* end confdefs.h.  */
10001int i;
10002int
10003main ()
10004{
10005
10006  ;
10007  return 0;
10008}
10009_ACEOF
10010if ac_fn_c_try_link "$LINENO"; then :
10011  eval $cacheid=yes
10012else
10013  eval $cacheid=no
10014fi
10015rm -f core conftest.err conftest.$ac_objext \
10016    conftest$ac_exeext conftest.$ac_ext
10017fi
10018
10019
10020		CFLAGS="$xorg_testset_save_CFLAGS"
10021
10022		eval supported=\$$cacheid
10023		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10024$as_echo "$supported" >&6; }
10025		if test "$supported" = "yes" ; then
10026			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10027			found="yes"
10028		fi
10029	fi
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045xorg_testset_save_CFLAGS="$CFLAGS"
10046
10047if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10048	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10049	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10050$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10051if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10052  $as_echo_n "(cached) " >&6
10053else
10054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055/* end confdefs.h.  */
10056int i;
10057_ACEOF
10058if ac_fn_c_try_compile "$LINENO"; then :
10059  xorg_cv_cc_flag_unknown_warning_option=yes
10060else
10061  xorg_cv_cc_flag_unknown_warning_option=no
10062fi
10063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10064fi
10065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10066$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10067	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10068	CFLAGS="$xorg_testset_save_CFLAGS"
10069fi
10070
10071if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10072	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10073		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10074	fi
10075	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10076	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10077$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10078if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10079  $as_echo_n "(cached) " >&6
10080else
10081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082/* end confdefs.h.  */
10083int i;
10084_ACEOF
10085if ac_fn_c_try_compile "$LINENO"; then :
10086  xorg_cv_cc_flag_unused_command_line_argument=yes
10087else
10088  xorg_cv_cc_flag_unused_command_line_argument=no
10089fi
10090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10091fi
10092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10093$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10094	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10095	CFLAGS="$xorg_testset_save_CFLAGS"
10096fi
10097
10098found="no"
10099
10100	if test $found = "no" ; then
10101		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10102			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10103		fi
10104
10105		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10106			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10107		fi
10108
10109		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10110
10111		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10112$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10113		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10114		if eval \${$cacheid+:} false; then :
10115  $as_echo_n "(cached) " >&6
10116else
10117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118/* end confdefs.h.  */
10119int i;
10120int
10121main ()
10122{
10123
10124  ;
10125  return 0;
10126}
10127_ACEOF
10128if ac_fn_c_try_link "$LINENO"; then :
10129  eval $cacheid=yes
10130else
10131  eval $cacheid=no
10132fi
10133rm -f core conftest.err conftest.$ac_objext \
10134    conftest$ac_exeext conftest.$ac_ext
10135fi
10136
10137
10138		CFLAGS="$xorg_testset_save_CFLAGS"
10139
10140		eval supported=\$$cacheid
10141		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10142$as_echo "$supported" >&6; }
10143		if test "$supported" = "yes" ; then
10144			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10145			found="yes"
10146		fi
10147	fi
10148
10149
10150fi
10151
10152
10153
10154
10155
10156
10157
10158		CWARNFLAGS="$BASE_CFLAGS"
10159		if  test "x$GCC" = xyes ; then
10160		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10161		fi
10162
10163
10164
10165
10166
10167
10168
10169
10170# Check whether --enable-strict-compilation was given.
10171if test "${enable_strict_compilation+set}" = set; then :
10172  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10173else
10174  STRICT_COMPILE=no
10175fi
10176
10177
10178
10179
10180
10181
10182STRICT_CFLAGS=""
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196xorg_testset_save_CFLAGS="$CFLAGS"
10197
10198if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10199	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10200	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10201$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10202if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10203  $as_echo_n "(cached) " >&6
10204else
10205  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10206/* end confdefs.h.  */
10207int i;
10208_ACEOF
10209if ac_fn_c_try_compile "$LINENO"; then :
10210  xorg_cv_cc_flag_unknown_warning_option=yes
10211else
10212  xorg_cv_cc_flag_unknown_warning_option=no
10213fi
10214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10215fi
10216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10217$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10218	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10219	CFLAGS="$xorg_testset_save_CFLAGS"
10220fi
10221
10222if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10223	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10224		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10225	fi
10226	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10227	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10228$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10229if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10230  $as_echo_n "(cached) " >&6
10231else
10232  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10233/* end confdefs.h.  */
10234int i;
10235_ACEOF
10236if ac_fn_c_try_compile "$LINENO"; then :
10237  xorg_cv_cc_flag_unused_command_line_argument=yes
10238else
10239  xorg_cv_cc_flag_unused_command_line_argument=no
10240fi
10241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10242fi
10243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10244$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10245	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10246	CFLAGS="$xorg_testset_save_CFLAGS"
10247fi
10248
10249found="no"
10250
10251	if test $found = "no" ; then
10252		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10253			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10254		fi
10255
10256		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10257			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10258		fi
10259
10260		CFLAGS="$CFLAGS -pedantic"
10261
10262		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10263$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10264		cacheid=xorg_cv_cc_flag__pedantic
10265		if eval \${$cacheid+:} false; then :
10266  $as_echo_n "(cached) " >&6
10267else
10268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10269/* end confdefs.h.  */
10270int i;
10271int
10272main ()
10273{
10274
10275  ;
10276  return 0;
10277}
10278_ACEOF
10279if ac_fn_c_try_link "$LINENO"; then :
10280  eval $cacheid=yes
10281else
10282  eval $cacheid=no
10283fi
10284rm -f core conftest.err conftest.$ac_objext \
10285    conftest$ac_exeext conftest.$ac_ext
10286fi
10287
10288
10289		CFLAGS="$xorg_testset_save_CFLAGS"
10290
10291		eval supported=\$$cacheid
10292		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10293$as_echo "$supported" >&6; }
10294		if test "$supported" = "yes" ; then
10295			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10296			found="yes"
10297		fi
10298	fi
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314xorg_testset_save_CFLAGS="$CFLAGS"
10315
10316if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10317	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10318	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10319$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10320if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10321  $as_echo_n "(cached) " >&6
10322else
10323  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324/* end confdefs.h.  */
10325int i;
10326_ACEOF
10327if ac_fn_c_try_compile "$LINENO"; then :
10328  xorg_cv_cc_flag_unknown_warning_option=yes
10329else
10330  xorg_cv_cc_flag_unknown_warning_option=no
10331fi
10332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10333fi
10334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10335$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10336	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10337	CFLAGS="$xorg_testset_save_CFLAGS"
10338fi
10339
10340if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10341	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10342		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10343	fi
10344	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10345	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10346$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10347if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10348  $as_echo_n "(cached) " >&6
10349else
10350  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351/* end confdefs.h.  */
10352int i;
10353_ACEOF
10354if ac_fn_c_try_compile "$LINENO"; then :
10355  xorg_cv_cc_flag_unused_command_line_argument=yes
10356else
10357  xorg_cv_cc_flag_unused_command_line_argument=no
10358fi
10359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10360fi
10361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10362$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10363	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10364	CFLAGS="$xorg_testset_save_CFLAGS"
10365fi
10366
10367found="no"
10368
10369	if test $found = "no" ; then
10370		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10371			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10372		fi
10373
10374		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10375			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10376		fi
10377
10378		CFLAGS="$CFLAGS -Werror"
10379
10380		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10381$as_echo_n "checking if $CC supports -Werror... " >&6; }
10382		cacheid=xorg_cv_cc_flag__Werror
10383		if eval \${$cacheid+:} false; then :
10384  $as_echo_n "(cached) " >&6
10385else
10386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387/* end confdefs.h.  */
10388int i;
10389int
10390main ()
10391{
10392
10393  ;
10394  return 0;
10395}
10396_ACEOF
10397if ac_fn_c_try_link "$LINENO"; then :
10398  eval $cacheid=yes
10399else
10400  eval $cacheid=no
10401fi
10402rm -f core conftest.err conftest.$ac_objext \
10403    conftest$ac_exeext conftest.$ac_ext
10404fi
10405
10406
10407		CFLAGS="$xorg_testset_save_CFLAGS"
10408
10409		eval supported=\$$cacheid
10410		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10411$as_echo "$supported" >&6; }
10412		if test "$supported" = "yes" ; then
10413			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10414			found="yes"
10415		fi
10416	fi
10417
10418	if test $found = "no" ; then
10419		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10420			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10421		fi
10422
10423		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10424			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10425		fi
10426
10427		CFLAGS="$CFLAGS -errwarn"
10428
10429		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10430$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10431		cacheid=xorg_cv_cc_flag__errwarn
10432		if eval \${$cacheid+:} false; then :
10433  $as_echo_n "(cached) " >&6
10434else
10435  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436/* end confdefs.h.  */
10437int i;
10438int
10439main ()
10440{
10441
10442  ;
10443  return 0;
10444}
10445_ACEOF
10446if ac_fn_c_try_link "$LINENO"; then :
10447  eval $cacheid=yes
10448else
10449  eval $cacheid=no
10450fi
10451rm -f core conftest.err conftest.$ac_objext \
10452    conftest$ac_exeext conftest.$ac_ext
10453fi
10454
10455
10456		CFLAGS="$xorg_testset_save_CFLAGS"
10457
10458		eval supported=\$$cacheid
10459		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10460$as_echo "$supported" >&6; }
10461		if test "$supported" = "yes" ; then
10462			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10463			found="yes"
10464		fi
10465	fi
10466
10467
10468
10469# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10470# activate it with -Werror, so we add it here explicitly.
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484xorg_testset_save_CFLAGS="$CFLAGS"
10485
10486if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10487	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10488	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10489$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10490if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10491  $as_echo_n "(cached) " >&6
10492else
10493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494/* end confdefs.h.  */
10495int i;
10496_ACEOF
10497if ac_fn_c_try_compile "$LINENO"; then :
10498  xorg_cv_cc_flag_unknown_warning_option=yes
10499else
10500  xorg_cv_cc_flag_unknown_warning_option=no
10501fi
10502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10503fi
10504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10505$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10506	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10507	CFLAGS="$xorg_testset_save_CFLAGS"
10508fi
10509
10510if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10511	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10512		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10513	fi
10514	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10515	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10516$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10517if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10518  $as_echo_n "(cached) " >&6
10519else
10520  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10521/* end confdefs.h.  */
10522int i;
10523_ACEOF
10524if ac_fn_c_try_compile "$LINENO"; then :
10525  xorg_cv_cc_flag_unused_command_line_argument=yes
10526else
10527  xorg_cv_cc_flag_unused_command_line_argument=no
10528fi
10529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10530fi
10531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10532$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10533	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10534	CFLAGS="$xorg_testset_save_CFLAGS"
10535fi
10536
10537found="no"
10538
10539	if test $found = "no" ; then
10540		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10541			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10542		fi
10543
10544		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10545			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10546		fi
10547
10548		CFLAGS="$CFLAGS -Werror=attributes"
10549
10550		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10551$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10552		cacheid=xorg_cv_cc_flag__Werror_attributes
10553		if eval \${$cacheid+:} false; then :
10554  $as_echo_n "(cached) " >&6
10555else
10556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557/* end confdefs.h.  */
10558int i;
10559int
10560main ()
10561{
10562
10563  ;
10564  return 0;
10565}
10566_ACEOF
10567if ac_fn_c_try_link "$LINENO"; then :
10568  eval $cacheid=yes
10569else
10570  eval $cacheid=no
10571fi
10572rm -f core conftest.err conftest.$ac_objext \
10573    conftest$ac_exeext conftest.$ac_ext
10574fi
10575
10576
10577		CFLAGS="$xorg_testset_save_CFLAGS"
10578
10579		eval supported=\$$cacheid
10580		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10581$as_echo "$supported" >&6; }
10582		if test "$supported" = "yes" ; then
10583			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10584			found="yes"
10585		fi
10586	fi
10587
10588
10589
10590if test "x$STRICT_COMPILE" = "xyes"; then
10591    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10592    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10593fi
10594
10595
10596
10597
10598
10599
10600cat >>confdefs.h <<_ACEOF
10601#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10602_ACEOF
10603
10604	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10605	if test "x$PVM" = "x"; then
10606		PVM="0"
10607	fi
10608
10609cat >>confdefs.h <<_ACEOF
10610#define PACKAGE_VERSION_MINOR $PVM
10611_ACEOF
10612
10613	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10614	if test "x$PVP" = "x"; then
10615		PVP="0"
10616	fi
10617
10618cat >>confdefs.h <<_ACEOF
10619#define PACKAGE_VERSION_PATCHLEVEL $PVP
10620_ACEOF
10621
10622
10623
10624CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10625mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10626|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10627echo 'git directory not found: installing possibly empty changelog.' >&2)"
10628
10629
10630
10631
10632macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10633INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10634mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10635|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10636echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10637
10638
10639
10640
10641
10642
10643if test x$APP_MAN_SUFFIX = x    ; then
10644    APP_MAN_SUFFIX=1
10645fi
10646if test x$APP_MAN_DIR = x    ; then
10647    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10648fi
10649
10650if test x$LIB_MAN_SUFFIX = x    ; then
10651    LIB_MAN_SUFFIX=3
10652fi
10653if test x$LIB_MAN_DIR = x    ; then
10654    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10655fi
10656
10657if test x$FILE_MAN_SUFFIX = x    ; then
10658    case $host_os in
10659	solaris*)	FILE_MAN_SUFFIX=4  ;;
10660	*)		FILE_MAN_SUFFIX=5  ;;
10661    esac
10662fi
10663if test x$FILE_MAN_DIR = x    ; then
10664    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10665fi
10666
10667if test x$MISC_MAN_SUFFIX = x    ; then
10668    case $host_os in
10669	solaris*)	MISC_MAN_SUFFIX=5  ;;
10670	*)		MISC_MAN_SUFFIX=7  ;;
10671    esac
10672fi
10673if test x$MISC_MAN_DIR = x    ; then
10674    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10675fi
10676
10677if test x$DRIVER_MAN_SUFFIX = x    ; then
10678    case $host_os in
10679	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10680	*)		DRIVER_MAN_SUFFIX=4  ;;
10681    esac
10682fi
10683if test x$DRIVER_MAN_DIR = x    ; then
10684    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10685fi
10686
10687if test x$ADMIN_MAN_SUFFIX = x    ; then
10688    case $host_os in
10689	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10690	*)		ADMIN_MAN_SUFFIX=8  ;;
10691    esac
10692fi
10693if test x$ADMIN_MAN_DIR = x    ; then
10694    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10695fi
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711XORG_MAN_PAGE="X Version 11"
10712
10713MAN_SUBSTS="\
10714	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10715	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10716	-e 's|__xservername__|Xorg|g' \
10717	-e 's|__xconfigfile__|xorg.conf|g' \
10718	-e 's|__projectroot__|\$(prefix)|g' \
10719	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10720	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10721	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10722	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10723	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10724	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10725	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10726
10727
10728
10729# Check whether --enable-silent-rules was given.
10730if test "${enable_silent_rules+set}" = set; then :
10731  enableval=$enable_silent_rules;
10732fi
10733
10734case $enable_silent_rules in # (((
10735  yes) AM_DEFAULT_VERBOSITY=0;;
10736   no) AM_DEFAULT_VERBOSITY=1;;
10737    *) AM_DEFAULT_VERBOSITY=0;;
10738esac
10739am_make=${MAKE-make}
10740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10741$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10742if ${am_cv_make_support_nested_variables+:} false; then :
10743  $as_echo_n "(cached) " >&6
10744else
10745  if $as_echo 'TRUE=$(BAR$(V))
10746BAR0=false
10747BAR1=true
10748V=1
10749am__doit:
10750	@$(TRUE)
10751.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10752  am_cv_make_support_nested_variables=yes
10753else
10754  am_cv_make_support_nested_variables=no
10755fi
10756fi
10757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10758$as_echo "$am_cv_make_support_nested_variables" >&6; }
10759if test $am_cv_make_support_nested_variables = yes; then
10760    AM_V='$(V)'
10761  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10762else
10763  AM_V=$AM_DEFAULT_VERBOSITY
10764  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10765fi
10766AM_BACKSLASH='\'
10767
10768
10769
10770# Initialize libtool
10771# Check whether --enable-static was given.
10772if test "${enable_static+set}" = set; then :
10773  enableval=$enable_static; p=${PACKAGE-default}
10774    case $enableval in
10775    yes) enable_static=yes ;;
10776    no) enable_static=no ;;
10777    *)
10778     enable_static=no
10779      # Look at the argument we got.  We use all the common list separators.
10780      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10781      for pkg in $enableval; do
10782	IFS=$lt_save_ifs
10783	if test "X$pkg" = "X$p"; then
10784	  enable_static=yes
10785	fi
10786      done
10787      IFS=$lt_save_ifs
10788      ;;
10789    esac
10790else
10791  enable_static=no
10792fi
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802case `pwd` in
10803  *\ * | *\	*)
10804    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10805$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10806esac
10807
10808
10809
10810macro_version='2.4.4'
10811macro_revision='2.4.4'
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825ltmain=$ac_aux_dir/ltmain.sh
10826
10827# Backslashify metacharacters that are still active within
10828# double-quoted strings.
10829sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10830
10831# Same as above, but do not quote variable references.
10832double_quote_subst='s/\(["`\\]\)/\\\1/g'
10833
10834# Sed substitution to delay expansion of an escaped shell variable in a
10835# double_quote_subst'ed string.
10836delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10837
10838# Sed substitution to delay expansion of an escaped single quote.
10839delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10840
10841# Sed substitution to avoid accidental globbing in evaled expressions
10842no_glob_subst='s/\*/\\\*/g'
10843
10844ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10845ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10846ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10847
10848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10849$as_echo_n "checking how to print strings... " >&6; }
10850# Test print first, because it will be a builtin if present.
10851if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10852   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10853  ECHO='print -r --'
10854elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10855  ECHO='printf %s\n'
10856else
10857  # Use this function as a fallback that always works.
10858  func_fallback_echo ()
10859  {
10860    eval 'cat <<_LTECHO_EOF
10861$1
10862_LTECHO_EOF'
10863  }
10864  ECHO='func_fallback_echo'
10865fi
10866
10867# func_echo_all arg...
10868# Invoke $ECHO with all args, space-separated.
10869func_echo_all ()
10870{
10871    $ECHO ""
10872}
10873
10874case $ECHO in
10875  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10876$as_echo "printf" >&6; } ;;
10877  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10878$as_echo "print -r" >&6; } ;;
10879  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10880$as_echo "cat" >&6; } ;;
10881esac
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10897$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10898if ${ac_cv_path_SED+:} false; then :
10899  $as_echo_n "(cached) " >&6
10900else
10901            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10902     for ac_i in 1 2 3 4 5 6 7; do
10903       ac_script="$ac_script$as_nl$ac_script"
10904     done
10905     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10906     { ac_script=; unset ac_script;}
10907     if test -z "$SED"; then
10908  ac_path_SED_found=false
10909  # Loop through the user's path and test for each of PROGNAME-LIST
10910  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10911for as_dir in $PATH
10912do
10913  IFS=$as_save_IFS
10914  test -z "$as_dir" && as_dir=.
10915    for ac_prog in sed gsed; do
10916    for ac_exec_ext in '' $ac_executable_extensions; do
10917      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10918      as_fn_executable_p "$ac_path_SED" || continue
10919# Check for GNU ac_path_SED and select it if it is found.
10920  # Check for GNU $ac_path_SED
10921case `"$ac_path_SED" --version 2>&1` in
10922*GNU*)
10923  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10924*)
10925  ac_count=0
10926  $as_echo_n 0123456789 >"conftest.in"
10927  while :
10928  do
10929    cat "conftest.in" "conftest.in" >"conftest.tmp"
10930    mv "conftest.tmp" "conftest.in"
10931    cp "conftest.in" "conftest.nl"
10932    $as_echo '' >> "conftest.nl"
10933    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10934    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10935    as_fn_arith $ac_count + 1 && ac_count=$as_val
10936    if test $ac_count -gt ${ac_path_SED_max-0}; then
10937      # Best one so far, save it but keep looking for a better one
10938      ac_cv_path_SED="$ac_path_SED"
10939      ac_path_SED_max=$ac_count
10940    fi
10941    # 10*(2^10) chars as input seems more than enough
10942    test $ac_count -gt 10 && break
10943  done
10944  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10945esac
10946
10947      $ac_path_SED_found && break 3
10948    done
10949  done
10950  done
10951IFS=$as_save_IFS
10952  if test -z "$ac_cv_path_SED"; then
10953    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10954  fi
10955else
10956  ac_cv_path_SED=$SED
10957fi
10958
10959fi
10960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10961$as_echo "$ac_cv_path_SED" >&6; }
10962 SED="$ac_cv_path_SED"
10963  rm -f conftest.sed
10964
10965test -z "$SED" && SED=sed
10966Xsed="$SED -e 1s/^X//"
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10979$as_echo_n "checking for fgrep... " >&6; }
10980if ${ac_cv_path_FGREP+:} false; then :
10981  $as_echo_n "(cached) " >&6
10982else
10983  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10984   then ac_cv_path_FGREP="$GREP -F"
10985   else
10986     if test -z "$FGREP"; then
10987  ac_path_FGREP_found=false
10988  # Loop through the user's path and test for each of PROGNAME-LIST
10989  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10990for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10991do
10992  IFS=$as_save_IFS
10993  test -z "$as_dir" && as_dir=.
10994    for ac_prog in fgrep; do
10995    for ac_exec_ext in '' $ac_executable_extensions; do
10996      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10997      as_fn_executable_p "$ac_path_FGREP" || continue
10998# Check for GNU ac_path_FGREP and select it if it is found.
10999  # Check for GNU $ac_path_FGREP
11000case `"$ac_path_FGREP" --version 2>&1` in
11001*GNU*)
11002  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11003*)
11004  ac_count=0
11005  $as_echo_n 0123456789 >"conftest.in"
11006  while :
11007  do
11008    cat "conftest.in" "conftest.in" >"conftest.tmp"
11009    mv "conftest.tmp" "conftest.in"
11010    cp "conftest.in" "conftest.nl"
11011    $as_echo 'FGREP' >> "conftest.nl"
11012    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11013    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11014    as_fn_arith $ac_count + 1 && ac_count=$as_val
11015    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11016      # Best one so far, save it but keep looking for a better one
11017      ac_cv_path_FGREP="$ac_path_FGREP"
11018      ac_path_FGREP_max=$ac_count
11019    fi
11020    # 10*(2^10) chars as input seems more than enough
11021    test $ac_count -gt 10 && break
11022  done
11023  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11024esac
11025
11026      $ac_path_FGREP_found && break 3
11027    done
11028  done
11029  done
11030IFS=$as_save_IFS
11031  if test -z "$ac_cv_path_FGREP"; then
11032    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11033  fi
11034else
11035  ac_cv_path_FGREP=$FGREP
11036fi
11037
11038   fi
11039fi
11040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11041$as_echo "$ac_cv_path_FGREP" >&6; }
11042 FGREP="$ac_cv_path_FGREP"
11043
11044
11045test -z "$GREP" && GREP=grep
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065# Check whether --with-gnu-ld was given.
11066if test "${with_gnu_ld+set}" = set; then :
11067  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11068else
11069  with_gnu_ld=no
11070fi
11071
11072ac_prog=ld
11073if test yes = "$GCC"; then
11074  # Check if gcc -print-prog-name=ld gives a path.
11075  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11076$as_echo_n "checking for ld used by $CC... " >&6; }
11077  case $host in
11078  *-*-mingw*)
11079    # gcc leaves a trailing carriage return, which upsets mingw
11080    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11081  *)
11082    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11083  esac
11084  case $ac_prog in
11085    # Accept absolute paths.
11086    [\\/]* | ?:[\\/]*)
11087      re_direlt='/[^/][^/]*/\.\./'
11088      # Canonicalize the pathname of ld
11089      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11090      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11091	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11092      done
11093      test -z "$LD" && LD=$ac_prog
11094      ;;
11095  "")
11096    # If it fails, then pretend we aren't using GCC.
11097    ac_prog=ld
11098    ;;
11099  *)
11100    # If it is relative, then search for the first ld in PATH.
11101    with_gnu_ld=unknown
11102    ;;
11103  esac
11104elif test yes = "$with_gnu_ld"; then
11105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11106$as_echo_n "checking for GNU ld... " >&6; }
11107else
11108  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11109$as_echo_n "checking for non-GNU ld... " >&6; }
11110fi
11111if ${lt_cv_path_LD+:} false; then :
11112  $as_echo_n "(cached) " >&6
11113else
11114  if test -z "$LD"; then
11115  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11116  for ac_dir in $PATH; do
11117    IFS=$lt_save_ifs
11118    test -z "$ac_dir" && ac_dir=.
11119    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11120      lt_cv_path_LD=$ac_dir/$ac_prog
11121      # Check to see if the program is GNU ld.  I'd rather use --version,
11122      # but apparently some variants of GNU ld only accept -v.
11123      # Break only if it was the GNU/non-GNU ld that we prefer.
11124      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11125      *GNU* | *'with BFD'*)
11126	test no != "$with_gnu_ld" && break
11127	;;
11128      *)
11129	test yes != "$with_gnu_ld" && break
11130	;;
11131      esac
11132    fi
11133  done
11134  IFS=$lt_save_ifs
11135else
11136  lt_cv_path_LD=$LD # Let the user override the test with a path.
11137fi
11138fi
11139
11140LD=$lt_cv_path_LD
11141if test -n "$LD"; then
11142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11143$as_echo "$LD" >&6; }
11144else
11145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146$as_echo "no" >&6; }
11147fi
11148test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11150$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11151if ${lt_cv_prog_gnu_ld+:} false; then :
11152  $as_echo_n "(cached) " >&6
11153else
11154  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11155case `$LD -v 2>&1 </dev/null` in
11156*GNU* | *'with BFD'*)
11157  lt_cv_prog_gnu_ld=yes
11158  ;;
11159*)
11160  lt_cv_prog_gnu_ld=no
11161  ;;
11162esac
11163fi
11164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11165$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11166with_gnu_ld=$lt_cv_prog_gnu_ld
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11177$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11178if ${lt_cv_path_NM+:} false; then :
11179  $as_echo_n "(cached) " >&6
11180else
11181  if test -n "$NM"; then
11182  # Let the user override the test.
11183  lt_cv_path_NM=$NM
11184else
11185  lt_nm_to_check=${ac_tool_prefix}nm
11186  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11187    lt_nm_to_check="$lt_nm_to_check nm"
11188  fi
11189  for lt_tmp_nm in $lt_nm_to_check; do
11190    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11191    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11192      IFS=$lt_save_ifs
11193      test -z "$ac_dir" && ac_dir=.
11194      tmp_nm=$ac_dir/$lt_tmp_nm
11195      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11196	# Check to see if the nm accepts a BSD-compat flag.
11197	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11198	#   nm: unknown option "B" ignored
11199	# Tru64's nm complains that /dev/null is an invalid object file
11200	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11201	case $build_os in
11202	mingw*) lt_bad_file=conftest.nm/nofile ;;
11203	*) lt_bad_file=/dev/null ;;
11204	esac
11205	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11206	*$lt_bad_file* | *'Invalid file or object type'*)
11207	  lt_cv_path_NM="$tmp_nm -B"
11208	  break 2
11209	  ;;
11210	*)
11211	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11212	  */dev/null*)
11213	    lt_cv_path_NM="$tmp_nm -p"
11214	    break 2
11215	    ;;
11216	  *)
11217	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11218	    continue # so that we can try to find one that supports BSD flags
11219	    ;;
11220	  esac
11221	  ;;
11222	esac
11223      fi
11224    done
11225    IFS=$lt_save_ifs
11226  done
11227  : ${lt_cv_path_NM=no}
11228fi
11229fi
11230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11231$as_echo "$lt_cv_path_NM" >&6; }
11232if test no != "$lt_cv_path_NM"; then
11233  NM=$lt_cv_path_NM
11234else
11235  # Didn't find any BSD compatible name lister, look for dumpbin.
11236  if test -n "$DUMPBIN"; then :
11237    # Let the user override the test.
11238  else
11239    if test -n "$ac_tool_prefix"; then
11240  for ac_prog in dumpbin "link -dump"
11241  do
11242    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11243set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11245$as_echo_n "checking for $ac_word... " >&6; }
11246if ${ac_cv_prog_DUMPBIN+:} false; then :
11247  $as_echo_n "(cached) " >&6
11248else
11249  if test -n "$DUMPBIN"; then
11250  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11251else
11252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11253for as_dir in $PATH
11254do
11255  IFS=$as_save_IFS
11256  test -z "$as_dir" && as_dir=.
11257    for ac_exec_ext in '' $ac_executable_extensions; do
11258  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11259    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11261    break 2
11262  fi
11263done
11264  done
11265IFS=$as_save_IFS
11266
11267fi
11268fi
11269DUMPBIN=$ac_cv_prog_DUMPBIN
11270if test -n "$DUMPBIN"; then
11271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11272$as_echo "$DUMPBIN" >&6; }
11273else
11274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11275$as_echo "no" >&6; }
11276fi
11277
11278
11279    test -n "$DUMPBIN" && break
11280  done
11281fi
11282if test -z "$DUMPBIN"; then
11283  ac_ct_DUMPBIN=$DUMPBIN
11284  for ac_prog in dumpbin "link -dump"
11285do
11286  # Extract the first word of "$ac_prog", so it can be a program name with args.
11287set dummy $ac_prog; ac_word=$2
11288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11289$as_echo_n "checking for $ac_word... " >&6; }
11290if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11291  $as_echo_n "(cached) " >&6
11292else
11293  if test -n "$ac_ct_DUMPBIN"; then
11294  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11295else
11296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11297for as_dir in $PATH
11298do
11299  IFS=$as_save_IFS
11300  test -z "$as_dir" && as_dir=.
11301    for ac_exec_ext in '' $ac_executable_extensions; do
11302  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11303    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11305    break 2
11306  fi
11307done
11308  done
11309IFS=$as_save_IFS
11310
11311fi
11312fi
11313ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11314if test -n "$ac_ct_DUMPBIN"; then
11315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11316$as_echo "$ac_ct_DUMPBIN" >&6; }
11317else
11318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11319$as_echo "no" >&6; }
11320fi
11321
11322
11323  test -n "$ac_ct_DUMPBIN" && break
11324done
11325
11326  if test "x$ac_ct_DUMPBIN" = x; then
11327    DUMPBIN=":"
11328  else
11329    case $cross_compiling:$ac_tool_warned in
11330yes:)
11331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11333ac_tool_warned=yes ;;
11334esac
11335    DUMPBIN=$ac_ct_DUMPBIN
11336  fi
11337fi
11338
11339    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11340    *COFF*)
11341      DUMPBIN="$DUMPBIN -symbols -headers"
11342      ;;
11343    *)
11344      DUMPBIN=:
11345      ;;
11346    esac
11347  fi
11348
11349  if test : != "$DUMPBIN"; then
11350    NM=$DUMPBIN
11351  fi
11352fi
11353test -z "$NM" && NM=nm
11354
11355
11356
11357
11358
11359
11360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11361$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11362if ${lt_cv_nm_interface+:} false; then :
11363  $as_echo_n "(cached) " >&6
11364else
11365  lt_cv_nm_interface="BSD nm"
11366  echo "int some_variable = 0;" > conftest.$ac_ext
11367  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11368  (eval "$ac_compile" 2>conftest.err)
11369  cat conftest.err >&5
11370  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11371  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11372  cat conftest.err >&5
11373  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11374  cat conftest.out >&5
11375  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11376    lt_cv_nm_interface="MS dumpbin"
11377  fi
11378  rm -f conftest*
11379fi
11380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11381$as_echo "$lt_cv_nm_interface" >&6; }
11382
11383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11384$as_echo_n "checking whether ln -s works... " >&6; }
11385LN_S=$as_ln_s
11386if test "$LN_S" = "ln -s"; then
11387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11388$as_echo "yes" >&6; }
11389else
11390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11391$as_echo "no, using $LN_S" >&6; }
11392fi
11393
11394# find the maximum length of command line arguments
11395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11396$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11397if ${lt_cv_sys_max_cmd_len+:} false; then :
11398  $as_echo_n "(cached) " >&6
11399else
11400    i=0
11401  teststring=ABCD
11402
11403  case $build_os in
11404  msdosdjgpp*)
11405    # On DJGPP, this test can blow up pretty badly due to problems in libc
11406    # (any single argument exceeding 2000 bytes causes a buffer overrun
11407    # during glob expansion).  Even if it were fixed, the result of this
11408    # check would be larger than it should be.
11409    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11410    ;;
11411
11412  gnu*)
11413    # Under GNU Hurd, this test is not required because there is
11414    # no limit to the length of command line arguments.
11415    # Libtool will interpret -1 as no limit whatsoever
11416    lt_cv_sys_max_cmd_len=-1;
11417    ;;
11418
11419  cygwin* | mingw* | cegcc*)
11420    # On Win9x/ME, this test blows up -- it succeeds, but takes
11421    # about 5 minutes as the teststring grows exponentially.
11422    # Worse, since 9x/ME are not pre-emptively multitasking,
11423    # you end up with a "frozen" computer, even though with patience
11424    # the test eventually succeeds (with a max line length of 256k).
11425    # Instead, let's just punt: use the minimum linelength reported by
11426    # all of the supported platforms: 8192 (on NT/2K/XP).
11427    lt_cv_sys_max_cmd_len=8192;
11428    ;;
11429
11430  mint*)
11431    # On MiNT this can take a long time and run out of memory.
11432    lt_cv_sys_max_cmd_len=8192;
11433    ;;
11434
11435  amigaos*)
11436    # On AmigaOS with pdksh, this test takes hours, literally.
11437    # So we just punt and use a minimum line length of 8192.
11438    lt_cv_sys_max_cmd_len=8192;
11439    ;;
11440
11441  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11442    # This has been around since 386BSD, at least.  Likely further.
11443    if test -x /sbin/sysctl; then
11444      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11445    elif test -x /usr/sbin/sysctl; then
11446      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11447    else
11448      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11449    fi
11450    # And add a safety zone
11451    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11452    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11453    ;;
11454
11455  interix*)
11456    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11457    lt_cv_sys_max_cmd_len=196608
11458    ;;
11459
11460  os2*)
11461    # The test takes a long time on OS/2.
11462    lt_cv_sys_max_cmd_len=8192
11463    ;;
11464
11465  osf*)
11466    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11467    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11468    # nice to cause kernel panics so lets avoid the loop below.
11469    # First set a reasonable default.
11470    lt_cv_sys_max_cmd_len=16384
11471    #
11472    if test -x /sbin/sysconfig; then
11473      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11474        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11475      esac
11476    fi
11477    ;;
11478  sco3.2v5*)
11479    lt_cv_sys_max_cmd_len=102400
11480    ;;
11481  sysv5* | sco5v6* | sysv4.2uw2*)
11482    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11483    if test -n "$kargmax"; then
11484      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11485    else
11486      lt_cv_sys_max_cmd_len=32768
11487    fi
11488    ;;
11489  *)
11490    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11491    if test -n "$lt_cv_sys_max_cmd_len" && \
11492       test undefined != "$lt_cv_sys_max_cmd_len"; then
11493      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11494      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11495    else
11496      # Make teststring a little bigger before we do anything with it.
11497      # a 1K string should be a reasonable start.
11498      for i in 1 2 3 4 5 6 7 8; do
11499        teststring=$teststring$teststring
11500      done
11501      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11502      # If test is not a shell built-in, we'll probably end up computing a
11503      # maximum length that is only half of the actual maximum length, but
11504      # we can't tell.
11505      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11506	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11507	      test 17 != "$i" # 1/2 MB should be enough
11508      do
11509        i=`expr $i + 1`
11510        teststring=$teststring$teststring
11511      done
11512      # Only check the string length outside the loop.
11513      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11514      teststring=
11515      # Add a significant safety factor because C++ compilers can tack on
11516      # massive amounts of additional arguments before passing them to the
11517      # linker.  It appears as though 1/2 is a usable value.
11518      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11519    fi
11520    ;;
11521  esac
11522
11523fi
11524
11525if test -n "$lt_cv_sys_max_cmd_len"; then
11526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11527$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11528else
11529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11530$as_echo "none" >&6; }
11531fi
11532max_cmd_len=$lt_cv_sys_max_cmd_len
11533
11534
11535
11536
11537
11538
11539: ${CP="cp -f"}
11540: ${MV="mv -f"}
11541: ${RM="rm -f"}
11542
11543if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11544  lt_unset=unset
11545else
11546  lt_unset=false
11547fi
11548
11549
11550
11551
11552
11553# test EBCDIC or ASCII
11554case `echo X|tr X '\101'` in
11555 A) # ASCII based system
11556    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11557  lt_SP2NL='tr \040 \012'
11558  lt_NL2SP='tr \015\012 \040\040'
11559  ;;
11560 *) # EBCDIC based system
11561  lt_SP2NL='tr \100 \n'
11562  lt_NL2SP='tr \r\n \100\100'
11563  ;;
11564esac
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11575$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11576if ${lt_cv_to_host_file_cmd+:} false; then :
11577  $as_echo_n "(cached) " >&6
11578else
11579  case $host in
11580  *-*-mingw* )
11581    case $build in
11582      *-*-mingw* ) # actually msys
11583        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11584        ;;
11585      *-*-cygwin* )
11586        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11587        ;;
11588      * ) # otherwise, assume *nix
11589        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11590        ;;
11591    esac
11592    ;;
11593  *-*-cygwin* )
11594    case $build in
11595      *-*-mingw* ) # actually msys
11596        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11597        ;;
11598      *-*-cygwin* )
11599        lt_cv_to_host_file_cmd=func_convert_file_noop
11600        ;;
11601      * ) # otherwise, assume *nix
11602        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11603        ;;
11604    esac
11605    ;;
11606  * ) # unhandled hosts (and "normal" native builds)
11607    lt_cv_to_host_file_cmd=func_convert_file_noop
11608    ;;
11609esac
11610
11611fi
11612
11613to_host_file_cmd=$lt_cv_to_host_file_cmd
11614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11615$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11616
11617
11618
11619
11620
11621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11622$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11623if ${lt_cv_to_tool_file_cmd+:} false; then :
11624  $as_echo_n "(cached) " >&6
11625else
11626  #assume ordinary cross tools, or native build.
11627lt_cv_to_tool_file_cmd=func_convert_file_noop
11628case $host in
11629  *-*-mingw* )
11630    case $build in
11631      *-*-mingw* ) # actually msys
11632        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11633        ;;
11634    esac
11635    ;;
11636esac
11637
11638fi
11639
11640to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11642$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11643
11644
11645
11646
11647
11648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11649$as_echo_n "checking for $LD option to reload object files... " >&6; }
11650if ${lt_cv_ld_reload_flag+:} false; then :
11651  $as_echo_n "(cached) " >&6
11652else
11653  lt_cv_ld_reload_flag='-r'
11654fi
11655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11656$as_echo "$lt_cv_ld_reload_flag" >&6; }
11657reload_flag=$lt_cv_ld_reload_flag
11658case $reload_flag in
11659"" | " "*) ;;
11660*) reload_flag=" $reload_flag" ;;
11661esac
11662reload_cmds='$LD$reload_flag -o $output$reload_objs'
11663case $host_os in
11664  cygwin* | mingw* | pw32* | cegcc*)
11665    if test yes != "$GCC"; then
11666      reload_cmds=false
11667    fi
11668    ;;
11669  darwin*)
11670    if test yes = "$GCC"; then
11671      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11672    else
11673      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11674    fi
11675    ;;
11676esac
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686if test -n "$ac_tool_prefix"; then
11687  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11688set dummy ${ac_tool_prefix}objdump; ac_word=$2
11689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11690$as_echo_n "checking for $ac_word... " >&6; }
11691if ${ac_cv_prog_OBJDUMP+:} false; then :
11692  $as_echo_n "(cached) " >&6
11693else
11694  if test -n "$OBJDUMP"; then
11695  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11696else
11697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698for as_dir in $PATH
11699do
11700  IFS=$as_save_IFS
11701  test -z "$as_dir" && as_dir=.
11702    for ac_exec_ext in '' $ac_executable_extensions; do
11703  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11704    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11706    break 2
11707  fi
11708done
11709  done
11710IFS=$as_save_IFS
11711
11712fi
11713fi
11714OBJDUMP=$ac_cv_prog_OBJDUMP
11715if test -n "$OBJDUMP"; then
11716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11717$as_echo "$OBJDUMP" >&6; }
11718else
11719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11720$as_echo "no" >&6; }
11721fi
11722
11723
11724fi
11725if test -z "$ac_cv_prog_OBJDUMP"; then
11726  ac_ct_OBJDUMP=$OBJDUMP
11727  # Extract the first word of "objdump", so it can be a program name with args.
11728set dummy objdump; ac_word=$2
11729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11730$as_echo_n "checking for $ac_word... " >&6; }
11731if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11732  $as_echo_n "(cached) " >&6
11733else
11734  if test -n "$ac_ct_OBJDUMP"; then
11735  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11736else
11737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11738for as_dir in $PATH
11739do
11740  IFS=$as_save_IFS
11741  test -z "$as_dir" && as_dir=.
11742    for ac_exec_ext in '' $ac_executable_extensions; do
11743  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11744    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11746    break 2
11747  fi
11748done
11749  done
11750IFS=$as_save_IFS
11751
11752fi
11753fi
11754ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11755if test -n "$ac_ct_OBJDUMP"; then
11756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11757$as_echo "$ac_ct_OBJDUMP" >&6; }
11758else
11759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11760$as_echo "no" >&6; }
11761fi
11762
11763  if test "x$ac_ct_OBJDUMP" = x; then
11764    OBJDUMP="false"
11765  else
11766    case $cross_compiling:$ac_tool_warned in
11767yes:)
11768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11770ac_tool_warned=yes ;;
11771esac
11772    OBJDUMP=$ac_ct_OBJDUMP
11773  fi
11774else
11775  OBJDUMP="$ac_cv_prog_OBJDUMP"
11776fi
11777
11778test -z "$OBJDUMP" && OBJDUMP=objdump
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11789$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11790if ${lt_cv_deplibs_check_method+:} false; then :
11791  $as_echo_n "(cached) " >&6
11792else
11793  lt_cv_file_magic_cmd='$MAGIC_CMD'
11794lt_cv_file_magic_test_file=
11795lt_cv_deplibs_check_method='unknown'
11796# Need to set the preceding variable on all platforms that support
11797# interlibrary dependencies.
11798# 'none' -- dependencies not supported.
11799# 'unknown' -- same as none, but documents that we really don't know.
11800# 'pass_all' -- all dependencies passed with no checks.
11801# 'test_compile' -- check by making test program.
11802# 'file_magic [[regex]]' -- check by looking for files in library path
11803# that responds to the $file_magic_cmd with a given extended regex.
11804# If you have 'file' or equivalent on your system and you're not sure
11805# whether 'pass_all' will *always* work, you probably want this one.
11806
11807case $host_os in
11808aix[4-9]*)
11809  lt_cv_deplibs_check_method=pass_all
11810  ;;
11811
11812beos*)
11813  lt_cv_deplibs_check_method=pass_all
11814  ;;
11815
11816bsdi[45]*)
11817  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11818  lt_cv_file_magic_cmd='/usr/bin/file -L'
11819  lt_cv_file_magic_test_file=/shlib/libc.so
11820  ;;
11821
11822cygwin*)
11823  # func_win32_libid is a shell function defined in ltmain.sh
11824  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11825  lt_cv_file_magic_cmd='func_win32_libid'
11826  ;;
11827
11828mingw* | pw32*)
11829  # Base MSYS/MinGW do not provide the 'file' command needed by
11830  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11831  # unless we find 'file', for example because we are cross-compiling.
11832  if ( file / ) >/dev/null 2>&1; then
11833    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11834    lt_cv_file_magic_cmd='func_win32_libid'
11835  else
11836    # Keep this pattern in sync with the one in func_win32_libid.
11837    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11838    lt_cv_file_magic_cmd='$OBJDUMP -f'
11839  fi
11840  ;;
11841
11842cegcc*)
11843  # use the weaker test based on 'objdump'. See mingw*.
11844  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11845  lt_cv_file_magic_cmd='$OBJDUMP -f'
11846  ;;
11847
11848darwin* | rhapsody*)
11849  lt_cv_deplibs_check_method=pass_all
11850  ;;
11851
11852freebsd* | dragonfly*)
11853  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11854    case $host_cpu in
11855    i*86 )
11856      # Not sure whether the presence of OpenBSD here was a mistake.
11857      # Let's accept both of them until this is cleared up.
11858      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11859      lt_cv_file_magic_cmd=/usr/bin/file
11860      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11861      ;;
11862    esac
11863  else
11864    lt_cv_deplibs_check_method=pass_all
11865  fi
11866  ;;
11867
11868haiku*)
11869  lt_cv_deplibs_check_method=pass_all
11870  ;;
11871
11872hpux10.20* | hpux11*)
11873  lt_cv_file_magic_cmd=/usr/bin/file
11874  case $host_cpu in
11875  ia64*)
11876    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11877    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11878    ;;
11879  hppa*64*)
11880    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]'
11881    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11882    ;;
11883  *)
11884    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11885    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11886    ;;
11887  esac
11888  ;;
11889
11890interix[3-9]*)
11891  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11892  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11893  ;;
11894
11895irix5* | irix6* | nonstopux*)
11896  case $LD in
11897  *-32|*"-32 ") libmagic=32-bit;;
11898  *-n32|*"-n32 ") libmagic=N32;;
11899  *-64|*"-64 ") libmagic=64-bit;;
11900  *) libmagic=never-match;;
11901  esac
11902  lt_cv_deplibs_check_method=pass_all
11903  ;;
11904
11905# This must be glibc/ELF.
11906linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11907  lt_cv_deplibs_check_method=pass_all
11908  ;;
11909
11910netbsd*)
11911  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11912    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11913  else
11914    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11915  fi
11916  ;;
11917
11918newos6*)
11919  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11920  lt_cv_file_magic_cmd=/usr/bin/file
11921  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11922  ;;
11923
11924*nto* | *qnx*)
11925  lt_cv_deplibs_check_method=pass_all
11926  ;;
11927
11928openbsd* | bitrig*)
11929  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11930    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11931  else
11932    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11933  fi
11934  ;;
11935
11936osf3* | osf4* | osf5*)
11937  lt_cv_deplibs_check_method=pass_all
11938  ;;
11939
11940rdos*)
11941  lt_cv_deplibs_check_method=pass_all
11942  ;;
11943
11944solaris*)
11945  lt_cv_deplibs_check_method=pass_all
11946  ;;
11947
11948sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11949  lt_cv_deplibs_check_method=pass_all
11950  ;;
11951
11952sysv4 | sysv4.3*)
11953  case $host_vendor in
11954  motorola)
11955    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]'
11956    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11957    ;;
11958  ncr)
11959    lt_cv_deplibs_check_method=pass_all
11960    ;;
11961  sequent)
11962    lt_cv_file_magic_cmd='/bin/file'
11963    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11964    ;;
11965  sni)
11966    lt_cv_file_magic_cmd='/bin/file'
11967    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11968    lt_cv_file_magic_test_file=/lib/libc.so
11969    ;;
11970  siemens)
11971    lt_cv_deplibs_check_method=pass_all
11972    ;;
11973  pc)
11974    lt_cv_deplibs_check_method=pass_all
11975    ;;
11976  esac
11977  ;;
11978
11979tpf*)
11980  lt_cv_deplibs_check_method=pass_all
11981  ;;
11982os2*)
11983  lt_cv_deplibs_check_method=pass_all
11984  ;;
11985esac
11986
11987fi
11988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11989$as_echo "$lt_cv_deplibs_check_method" >&6; }
11990
11991file_magic_glob=
11992want_nocaseglob=no
11993if test "$build" = "$host"; then
11994  case $host_os in
11995  mingw* | pw32*)
11996    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11997      want_nocaseglob=yes
11998    else
11999      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12000    fi
12001    ;;
12002  esac
12003fi
12004
12005file_magic_cmd=$lt_cv_file_magic_cmd
12006deplibs_check_method=$lt_cv_deplibs_check_method
12007test -z "$deplibs_check_method" && deplibs_check_method=unknown
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030if test -n "$ac_tool_prefix"; then
12031  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12032set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12034$as_echo_n "checking for $ac_word... " >&6; }
12035if ${ac_cv_prog_DLLTOOL+:} false; then :
12036  $as_echo_n "(cached) " >&6
12037else
12038  if test -n "$DLLTOOL"; then
12039  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12040else
12041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042for as_dir in $PATH
12043do
12044  IFS=$as_save_IFS
12045  test -z "$as_dir" && as_dir=.
12046    for ac_exec_ext in '' $ac_executable_extensions; do
12047  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12048    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12049    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12050    break 2
12051  fi
12052done
12053  done
12054IFS=$as_save_IFS
12055
12056fi
12057fi
12058DLLTOOL=$ac_cv_prog_DLLTOOL
12059if test -n "$DLLTOOL"; then
12060  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12061$as_echo "$DLLTOOL" >&6; }
12062else
12063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12064$as_echo "no" >&6; }
12065fi
12066
12067
12068fi
12069if test -z "$ac_cv_prog_DLLTOOL"; then
12070  ac_ct_DLLTOOL=$DLLTOOL
12071  # Extract the first word of "dlltool", so it can be a program name with args.
12072set dummy dlltool; ac_word=$2
12073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12074$as_echo_n "checking for $ac_word... " >&6; }
12075if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12076  $as_echo_n "(cached) " >&6
12077else
12078  if test -n "$ac_ct_DLLTOOL"; then
12079  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12080else
12081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082for as_dir in $PATH
12083do
12084  IFS=$as_save_IFS
12085  test -z "$as_dir" && as_dir=.
12086    for ac_exec_ext in '' $ac_executable_extensions; do
12087  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12088    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12089    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12090    break 2
12091  fi
12092done
12093  done
12094IFS=$as_save_IFS
12095
12096fi
12097fi
12098ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12099if test -n "$ac_ct_DLLTOOL"; then
12100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12101$as_echo "$ac_ct_DLLTOOL" >&6; }
12102else
12103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104$as_echo "no" >&6; }
12105fi
12106
12107  if test "x$ac_ct_DLLTOOL" = x; then
12108    DLLTOOL="false"
12109  else
12110    case $cross_compiling:$ac_tool_warned in
12111yes:)
12112{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12114ac_tool_warned=yes ;;
12115esac
12116    DLLTOOL=$ac_ct_DLLTOOL
12117  fi
12118else
12119  DLLTOOL="$ac_cv_prog_DLLTOOL"
12120fi
12121
12122test -z "$DLLTOOL" && DLLTOOL=dlltool
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12134$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12135if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12136  $as_echo_n "(cached) " >&6
12137else
12138  lt_cv_sharedlib_from_linklib_cmd='unknown'
12139
12140case $host_os in
12141cygwin* | mingw* | pw32* | cegcc*)
12142  # two different shell functions defined in ltmain.sh;
12143  # decide which one to use based on capabilities of $DLLTOOL
12144  case `$DLLTOOL --help 2>&1` in
12145  *--identify-strict*)
12146    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12147    ;;
12148  *)
12149    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12150    ;;
12151  esac
12152  ;;
12153*)
12154  # fallback: assume linklib IS sharedlib
12155  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12156  ;;
12157esac
12158
12159fi
12160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12161$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12162sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12163test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12164
12165
12166
12167
12168
12169
12170
12171if test -n "$ac_tool_prefix"; then
12172  for ac_prog in ar
12173  do
12174    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12175set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12177$as_echo_n "checking for $ac_word... " >&6; }
12178if ${ac_cv_prog_AR+:} false; then :
12179  $as_echo_n "(cached) " >&6
12180else
12181  if test -n "$AR"; then
12182  ac_cv_prog_AR="$AR" # Let the user override the test.
12183else
12184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12185for as_dir in $PATH
12186do
12187  IFS=$as_save_IFS
12188  test -z "$as_dir" && as_dir=.
12189    for ac_exec_ext in '' $ac_executable_extensions; do
12190  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12191    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12192    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12193    break 2
12194  fi
12195done
12196  done
12197IFS=$as_save_IFS
12198
12199fi
12200fi
12201AR=$ac_cv_prog_AR
12202if test -n "$AR"; then
12203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12204$as_echo "$AR" >&6; }
12205else
12206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12207$as_echo "no" >&6; }
12208fi
12209
12210
12211    test -n "$AR" && break
12212  done
12213fi
12214if test -z "$AR"; then
12215  ac_ct_AR=$AR
12216  for ac_prog in ar
12217do
12218  # Extract the first word of "$ac_prog", so it can be a program name with args.
12219set dummy $ac_prog; ac_word=$2
12220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12221$as_echo_n "checking for $ac_word... " >&6; }
12222if ${ac_cv_prog_ac_ct_AR+:} false; then :
12223  $as_echo_n "(cached) " >&6
12224else
12225  if test -n "$ac_ct_AR"; then
12226  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12227else
12228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229for as_dir in $PATH
12230do
12231  IFS=$as_save_IFS
12232  test -z "$as_dir" && as_dir=.
12233    for ac_exec_ext in '' $ac_executable_extensions; do
12234  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12235    ac_cv_prog_ac_ct_AR="$ac_prog"
12236    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12237    break 2
12238  fi
12239done
12240  done
12241IFS=$as_save_IFS
12242
12243fi
12244fi
12245ac_ct_AR=$ac_cv_prog_ac_ct_AR
12246if test -n "$ac_ct_AR"; then
12247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12248$as_echo "$ac_ct_AR" >&6; }
12249else
12250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251$as_echo "no" >&6; }
12252fi
12253
12254
12255  test -n "$ac_ct_AR" && break
12256done
12257
12258  if test "x$ac_ct_AR" = x; then
12259    AR="false"
12260  else
12261    case $cross_compiling:$ac_tool_warned in
12262yes:)
12263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12265ac_tool_warned=yes ;;
12266esac
12267    AR=$ac_ct_AR
12268  fi
12269fi
12270
12271: ${AR=ar}
12272: ${AR_FLAGS=cru}
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12285$as_echo_n "checking for archiver @FILE support... " >&6; }
12286if ${lt_cv_ar_at_file+:} false; then :
12287  $as_echo_n "(cached) " >&6
12288else
12289  lt_cv_ar_at_file=no
12290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12291/* end confdefs.h.  */
12292
12293int
12294main ()
12295{
12296
12297  ;
12298  return 0;
12299}
12300_ACEOF
12301if ac_fn_c_try_compile "$LINENO"; then :
12302  echo conftest.$ac_objext > conftest.lst
12303      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12304      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12305  (eval $lt_ar_try) 2>&5
12306  ac_status=$?
12307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12308  test $ac_status = 0; }
12309      if test 0 -eq "$ac_status"; then
12310	# Ensure the archiver fails upon bogus file names.
12311	rm -f conftest.$ac_objext libconftest.a
12312	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12313  (eval $lt_ar_try) 2>&5
12314  ac_status=$?
12315  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12316  test $ac_status = 0; }
12317	if test 0 -ne "$ac_status"; then
12318          lt_cv_ar_at_file=@
12319        fi
12320      fi
12321      rm -f conftest.* libconftest.a
12322
12323fi
12324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12325
12326fi
12327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12328$as_echo "$lt_cv_ar_at_file" >&6; }
12329
12330if test no = "$lt_cv_ar_at_file"; then
12331  archiver_list_spec=
12332else
12333  archiver_list_spec=$lt_cv_ar_at_file
12334fi
12335
12336
12337
12338
12339
12340
12341
12342if test -n "$ac_tool_prefix"; then
12343  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12344set dummy ${ac_tool_prefix}strip; ac_word=$2
12345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12346$as_echo_n "checking for $ac_word... " >&6; }
12347if ${ac_cv_prog_STRIP+:} false; then :
12348  $as_echo_n "(cached) " >&6
12349else
12350  if test -n "$STRIP"; then
12351  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12352else
12353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12354for as_dir in $PATH
12355do
12356  IFS=$as_save_IFS
12357  test -z "$as_dir" && as_dir=.
12358    for ac_exec_ext in '' $ac_executable_extensions; do
12359  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12360    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12362    break 2
12363  fi
12364done
12365  done
12366IFS=$as_save_IFS
12367
12368fi
12369fi
12370STRIP=$ac_cv_prog_STRIP
12371if test -n "$STRIP"; then
12372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12373$as_echo "$STRIP" >&6; }
12374else
12375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12376$as_echo "no" >&6; }
12377fi
12378
12379
12380fi
12381if test -z "$ac_cv_prog_STRIP"; then
12382  ac_ct_STRIP=$STRIP
12383  # Extract the first word of "strip", so it can be a program name with args.
12384set dummy strip; ac_word=$2
12385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12386$as_echo_n "checking for $ac_word... " >&6; }
12387if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12388  $as_echo_n "(cached) " >&6
12389else
12390  if test -n "$ac_ct_STRIP"; then
12391  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12392else
12393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12394for as_dir in $PATH
12395do
12396  IFS=$as_save_IFS
12397  test -z "$as_dir" && as_dir=.
12398    for ac_exec_ext in '' $ac_executable_extensions; do
12399  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12400    ac_cv_prog_ac_ct_STRIP="strip"
12401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12402    break 2
12403  fi
12404done
12405  done
12406IFS=$as_save_IFS
12407
12408fi
12409fi
12410ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12411if test -n "$ac_ct_STRIP"; then
12412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12413$as_echo "$ac_ct_STRIP" >&6; }
12414else
12415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12416$as_echo "no" >&6; }
12417fi
12418
12419  if test "x$ac_ct_STRIP" = x; then
12420    STRIP=":"
12421  else
12422    case $cross_compiling:$ac_tool_warned in
12423yes:)
12424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12426ac_tool_warned=yes ;;
12427esac
12428    STRIP=$ac_ct_STRIP
12429  fi
12430else
12431  STRIP="$ac_cv_prog_STRIP"
12432fi
12433
12434test -z "$STRIP" && STRIP=:
12435
12436
12437
12438
12439
12440
12441if test -n "$ac_tool_prefix"; then
12442  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12443set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12445$as_echo_n "checking for $ac_word... " >&6; }
12446if ${ac_cv_prog_RANLIB+:} false; then :
12447  $as_echo_n "(cached) " >&6
12448else
12449  if test -n "$RANLIB"; then
12450  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12451else
12452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12453for as_dir in $PATH
12454do
12455  IFS=$as_save_IFS
12456  test -z "$as_dir" && as_dir=.
12457    for ac_exec_ext in '' $ac_executable_extensions; do
12458  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12459    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12460    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12461    break 2
12462  fi
12463done
12464  done
12465IFS=$as_save_IFS
12466
12467fi
12468fi
12469RANLIB=$ac_cv_prog_RANLIB
12470if test -n "$RANLIB"; then
12471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12472$as_echo "$RANLIB" >&6; }
12473else
12474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12475$as_echo "no" >&6; }
12476fi
12477
12478
12479fi
12480if test -z "$ac_cv_prog_RANLIB"; then
12481  ac_ct_RANLIB=$RANLIB
12482  # Extract the first word of "ranlib", so it can be a program name with args.
12483set dummy ranlib; ac_word=$2
12484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12485$as_echo_n "checking for $ac_word... " >&6; }
12486if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12487  $as_echo_n "(cached) " >&6
12488else
12489  if test -n "$ac_ct_RANLIB"; then
12490  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12491else
12492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493for as_dir in $PATH
12494do
12495  IFS=$as_save_IFS
12496  test -z "$as_dir" && as_dir=.
12497    for ac_exec_ext in '' $ac_executable_extensions; do
12498  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12499    ac_cv_prog_ac_ct_RANLIB="ranlib"
12500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12501    break 2
12502  fi
12503done
12504  done
12505IFS=$as_save_IFS
12506
12507fi
12508fi
12509ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12510if test -n "$ac_ct_RANLIB"; then
12511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12512$as_echo "$ac_ct_RANLIB" >&6; }
12513else
12514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515$as_echo "no" >&6; }
12516fi
12517
12518  if test "x$ac_ct_RANLIB" = x; then
12519    RANLIB=":"
12520  else
12521    case $cross_compiling:$ac_tool_warned in
12522yes:)
12523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12525ac_tool_warned=yes ;;
12526esac
12527    RANLIB=$ac_ct_RANLIB
12528  fi
12529else
12530  RANLIB="$ac_cv_prog_RANLIB"
12531fi
12532
12533test -z "$RANLIB" && RANLIB=:
12534
12535
12536
12537
12538
12539
12540# Determine commands to create old-style static archives.
12541old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12542old_postinstall_cmds='chmod 644 $oldlib'
12543old_postuninstall_cmds=
12544
12545if test -n "$RANLIB"; then
12546  case $host_os in
12547  bitrig* | openbsd*)
12548    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12549    ;;
12550  *)
12551    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12552    ;;
12553  esac
12554  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12555fi
12556
12557case $host_os in
12558  darwin*)
12559    lock_old_archive_extraction=yes ;;
12560  *)
12561    lock_old_archive_extraction=no ;;
12562esac
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602# If no C compiler was specified, use CC.
12603LTCC=${LTCC-"$CC"}
12604
12605# If no C compiler flags were specified, use CFLAGS.
12606LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12607
12608# Allow CC to be a program name with arguments.
12609compiler=$CC
12610
12611
12612# Check for command to grab the raw symbol name followed by C symbol from nm.
12613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12614$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12615if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12616  $as_echo_n "(cached) " >&6
12617else
12618
12619# These are sane defaults that work on at least a few old systems.
12620# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12621
12622# Character class describing NM global symbol codes.
12623symcode='[BCDEGRST]'
12624
12625# Regexp to match symbols that can be accessed directly from C.
12626sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12627
12628# Define system-specific variables.
12629case $host_os in
12630aix*)
12631  symcode='[BCDT]'
12632  ;;
12633cygwin* | mingw* | pw32* | cegcc*)
12634  symcode='[ABCDGISTW]'
12635  ;;
12636hpux*)
12637  if test ia64 = "$host_cpu"; then
12638    symcode='[ABCDEGRST]'
12639  fi
12640  ;;
12641irix* | nonstopux*)
12642  symcode='[BCDEGRST]'
12643  ;;
12644osf*)
12645  symcode='[BCDEGQRST]'
12646  ;;
12647solaris*)
12648  symcode='[BDRT]'
12649  ;;
12650sco3.2v5*)
12651  symcode='[DT]'
12652  ;;
12653sysv4.2uw2*)
12654  symcode='[DT]'
12655  ;;
12656sysv5* | sco5v6* | unixware* | OpenUNIX*)
12657  symcode='[ABDT]'
12658  ;;
12659sysv4)
12660  symcode='[DFNSTU]'
12661  ;;
12662esac
12663
12664# If we're using GNU nm, then use its standard symbol codes.
12665case `$NM -V 2>&1` in
12666*GNU* | *'with BFD'*)
12667  symcode='[ABCDGIRSTW]' ;;
12668esac
12669
12670if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12671  # Gets list of data symbols to import.
12672  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12673  # Adjust the below global symbol transforms to fixup imported variables.
12674  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12675  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
12676  lt_c_name_lib_hook="\
12677  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
12678  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
12679else
12680  # Disable hooks by default.
12681  lt_cv_sys_global_symbol_to_import=
12682  lt_cdecl_hook=
12683  lt_c_name_hook=
12684  lt_c_name_lib_hook=
12685fi
12686
12687# Transform an extracted symbol line into a proper C declaration.
12688# Some systems (esp. on ia64) link data and code symbols differently,
12689# so use this general approach.
12690lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12691$lt_cdecl_hook\
12692" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12693" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12694
12695# Transform an extracted symbol line into symbol name and symbol address
12696lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12697$lt_c_name_hook\
12698" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12699" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
12700
12701# Transform an extracted symbol line into symbol name with lib prefix and
12702# symbol address.
12703lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12704$lt_c_name_lib_hook\
12705" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12706" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
12707" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
12708
12709# Handle CRLF in mingw tool chain
12710opt_cr=
12711case $build_os in
12712mingw*)
12713  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12714  ;;
12715esac
12716
12717# Try without a prefix underscore, then with it.
12718for ac_symprfx in "" "_"; do
12719
12720  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12721  symxfrm="\\1 $ac_symprfx\\2 \\2"
12722
12723  # Write the raw and C identifiers.
12724  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12725    # Fake it for dumpbin and say T for any non-static function,
12726    # D for any global variable and I for any imported variable.
12727    # Also find C++ and __fastcall symbols from MSVC++,
12728    # which start with @ or ?.
12729    lt_cv_sys_global_symbol_pipe="$AWK '"\
12730"     {last_section=section; section=\$ 3};"\
12731"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12732"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12733"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12734"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12735"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12736"     \$ 0!~/External *\|/{next};"\
12737"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12738"     {if(hide[section]) next};"\
12739"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12740"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12741"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12742"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12743"     ' prfx=^$ac_symprfx"
12744  else
12745    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12746  fi
12747  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12748
12749  # Check to see that the pipe works correctly.
12750  pipe_works=no
12751
12752  rm -f conftest*
12753  cat > conftest.$ac_ext <<_LT_EOF
12754#ifdef __cplusplus
12755extern "C" {
12756#endif
12757char nm_test_var;
12758void nm_test_func(void);
12759void nm_test_func(void){}
12760#ifdef __cplusplus
12761}
12762#endif
12763int main(){nm_test_var='a';nm_test_func();return(0);}
12764_LT_EOF
12765
12766  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12767  (eval $ac_compile) 2>&5
12768  ac_status=$?
12769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12770  test $ac_status = 0; }; then
12771    # Now try to grab the symbols.
12772    nlist=conftest.nm
12773    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12774  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12775  ac_status=$?
12776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12777  test $ac_status = 0; } && test -s "$nlist"; then
12778      # Try sorting and uniquifying the output.
12779      if sort "$nlist" | uniq > "$nlist"T; then
12780	mv -f "$nlist"T "$nlist"
12781      else
12782	rm -f "$nlist"T
12783      fi
12784
12785      # Make sure that we snagged all the symbols we need.
12786      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12787	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12788	  cat <<_LT_EOF > conftest.$ac_ext
12789/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12790#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12791/* DATA imports from DLLs on WIN32 can't be const, because runtime
12792   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12793# define LT_DLSYM_CONST
12794#elif defined __osf__
12795/* This system does not cope well with relocations in const data.  */
12796# define LT_DLSYM_CONST
12797#else
12798# define LT_DLSYM_CONST const
12799#endif
12800
12801#ifdef __cplusplus
12802extern "C" {
12803#endif
12804
12805_LT_EOF
12806	  # Now generate the symbol file.
12807	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12808
12809	  cat <<_LT_EOF >> conftest.$ac_ext
12810
12811/* The mapping between symbol names and symbols.  */
12812LT_DLSYM_CONST struct {
12813  const char *name;
12814  void       *address;
12815}
12816lt__PROGRAM__LTX_preloaded_symbols[] =
12817{
12818  { "@PROGRAM@", (void *) 0 },
12819_LT_EOF
12820	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12821	  cat <<\_LT_EOF >> conftest.$ac_ext
12822  {0, (void *) 0}
12823};
12824
12825/* This works around a problem in FreeBSD linker */
12826#ifdef FREEBSD_WORKAROUND
12827static const void *lt_preloaded_setup() {
12828  return lt__PROGRAM__LTX_preloaded_symbols;
12829}
12830#endif
12831
12832#ifdef __cplusplus
12833}
12834#endif
12835_LT_EOF
12836	  # Now try linking the two files.
12837	  mv conftest.$ac_objext conftstm.$ac_objext
12838	  lt_globsym_save_LIBS=$LIBS
12839	  lt_globsym_save_CFLAGS=$CFLAGS
12840	  LIBS=conftstm.$ac_objext
12841	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12842	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12843  (eval $ac_link) 2>&5
12844  ac_status=$?
12845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12846  test $ac_status = 0; } && test -s conftest$ac_exeext; then
12847	    pipe_works=yes
12848	  fi
12849	  LIBS=$lt_globsym_save_LIBS
12850	  CFLAGS=$lt_globsym_save_CFLAGS
12851	else
12852	  echo "cannot find nm_test_func in $nlist" >&5
12853	fi
12854      else
12855	echo "cannot find nm_test_var in $nlist" >&5
12856      fi
12857    else
12858      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12859    fi
12860  else
12861    echo "$progname: failed program was:" >&5
12862    cat conftest.$ac_ext >&5
12863  fi
12864  rm -rf conftest* conftst*
12865
12866  # Do not use the global_symbol_pipe unless it works.
12867  if test yes = "$pipe_works"; then
12868    break
12869  else
12870    lt_cv_sys_global_symbol_pipe=
12871  fi
12872done
12873
12874fi
12875
12876if test -z "$lt_cv_sys_global_symbol_pipe"; then
12877  lt_cv_sys_global_symbol_to_cdecl=
12878fi
12879if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12881$as_echo "failed" >&6; }
12882else
12883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12884$as_echo "ok" >&6; }
12885fi
12886
12887# Response file support.
12888if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12889  nm_file_list_spec='@'
12890elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12891  nm_file_list_spec='@'
12892fi
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907
12908
12909
12910
12911
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12931$as_echo_n "checking for sysroot... " >&6; }
12932
12933# Check whether --with-sysroot was given.
12934if test "${with_sysroot+set}" = set; then :
12935  withval=$with_sysroot;
12936else
12937  with_sysroot=no
12938fi
12939
12940
12941lt_sysroot=
12942case $with_sysroot in #(
12943 yes)
12944   if test yes = "$GCC"; then
12945     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12946   fi
12947   ;; #(
12948 /*)
12949   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12950   ;; #(
12951 no|'')
12952   ;; #(
12953 *)
12954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
12955$as_echo "$with_sysroot" >&6; }
12956   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12957   ;;
12958esac
12959
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12961$as_echo "${lt_sysroot:-no}" >&6; }
12962
12963
12964
12965
12966
12967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
12968$as_echo_n "checking for a working dd... " >&6; }
12969if ${ac_cv_path_lt_DD+:} false; then :
12970  $as_echo_n "(cached) " >&6
12971else
12972  printf 0123456789abcdef0123456789abcdef >conftest.i
12973cat conftest.i conftest.i >conftest2.i
12974: ${lt_DD:=$DD}
12975if test -z "$lt_DD"; then
12976  ac_path_lt_DD_found=false
12977  # Loop through the user's path and test for each of PROGNAME-LIST
12978  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12979for as_dir in $PATH
12980do
12981  IFS=$as_save_IFS
12982  test -z "$as_dir" && as_dir=.
12983    for ac_prog in dd; do
12984    for ac_exec_ext in '' $ac_executable_extensions; do
12985      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
12986      as_fn_executable_p "$ac_path_lt_DD" || continue
12987if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
12988  cmp -s conftest.i conftest.out \
12989  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
12990fi
12991      $ac_path_lt_DD_found && break 3
12992    done
12993  done
12994  done
12995IFS=$as_save_IFS
12996  if test -z "$ac_cv_path_lt_DD"; then
12997    :
12998  fi
12999else
13000  ac_cv_path_lt_DD=$lt_DD
13001fi
13002
13003rm -f conftest.i conftest2.i conftest.out
13004fi
13005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13006$as_echo "$ac_cv_path_lt_DD" >&6; }
13007
13008
13009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13010$as_echo_n "checking how to truncate binary pipes... " >&6; }
13011if ${lt_cv_truncate_bin+:} false; then :
13012  $as_echo_n "(cached) " >&6
13013else
13014  printf 0123456789abcdef0123456789abcdef >conftest.i
13015cat conftest.i conftest.i >conftest2.i
13016lt_cv_truncate_bin=
13017if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13018  cmp -s conftest.i conftest.out \
13019  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13020fi
13021rm -f conftest.i conftest2.i conftest.out
13022test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13023fi
13024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13025$as_echo "$lt_cv_truncate_bin" >&6; }
13026
13027
13028
13029
13030
13031
13032# Check whether --enable-libtool-lock was given.
13033if test "${enable_libtool_lock+set}" = set; then :
13034  enableval=$enable_libtool_lock;
13035fi
13036
13037test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13038
13039# Some flags need to be propagated to the compiler or linker for good
13040# libtool support.
13041case $host in
13042ia64-*-hpux*)
13043  # Find out what ABI is being produced by ac_compile, and set mode
13044  # options accordingly.
13045  echo 'int i;' > conftest.$ac_ext
13046  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13047  (eval $ac_compile) 2>&5
13048  ac_status=$?
13049  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13050  test $ac_status = 0; }; then
13051    case `/usr/bin/file conftest.$ac_objext` in
13052      *ELF-32*)
13053	HPUX_IA64_MODE=32
13054	;;
13055      *ELF-64*)
13056	HPUX_IA64_MODE=64
13057	;;
13058    esac
13059  fi
13060  rm -rf conftest*
13061  ;;
13062*-*-irix6*)
13063  # Find out what ABI is being produced by ac_compile, and set linker
13064  # options accordingly.
13065  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13066  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13067  (eval $ac_compile) 2>&5
13068  ac_status=$?
13069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13070  test $ac_status = 0; }; then
13071    if test yes = "$lt_cv_prog_gnu_ld"; then
13072      case `/usr/bin/file conftest.$ac_objext` in
13073	*32-bit*)
13074	  LD="${LD-ld} -melf32bsmip"
13075	  ;;
13076	*N32*)
13077	  LD="${LD-ld} -melf32bmipn32"
13078	  ;;
13079	*64-bit*)
13080	  LD="${LD-ld} -melf64bmip"
13081	;;
13082      esac
13083    else
13084      case `/usr/bin/file conftest.$ac_objext` in
13085	*32-bit*)
13086	  LD="${LD-ld} -32"
13087	  ;;
13088	*N32*)
13089	  LD="${LD-ld} -n32"
13090	  ;;
13091	*64-bit*)
13092	  LD="${LD-ld} -64"
13093	  ;;
13094      esac
13095    fi
13096  fi
13097  rm -rf conftest*
13098  ;;
13099
13100mips64*-*linux*)
13101  # Find out what ABI is being produced by ac_compile, and set linker
13102  # options accordingly.
13103  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13104  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13105  (eval $ac_compile) 2>&5
13106  ac_status=$?
13107  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13108  test $ac_status = 0; }; then
13109    emul=elf
13110    case `/usr/bin/file conftest.$ac_objext` in
13111      *32-bit*)
13112	emul="${emul}32"
13113	;;
13114      *64-bit*)
13115	emul="${emul}64"
13116	;;
13117    esac
13118    case `/usr/bin/file conftest.$ac_objext` in
13119      *MSB*)
13120	emul="${emul}btsmip"
13121	;;
13122      *LSB*)
13123	emul="${emul}ltsmip"
13124	;;
13125    esac
13126    case `/usr/bin/file conftest.$ac_objext` in
13127      *N32*)
13128	emul="${emul}n32"
13129	;;
13130    esac
13131    LD="${LD-ld} -m $emul"
13132  fi
13133  rm -rf conftest*
13134  ;;
13135
13136x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13137s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13138  # Find out what ABI is being produced by ac_compile, and set linker
13139  # options accordingly.  Note that the listed cases only cover the
13140  # situations where additional linker options are needed (such as when
13141  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13142  # vice versa); the common cases where no linker options are needed do
13143  # not appear in the list.
13144  echo 'int i;' > conftest.$ac_ext
13145  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13146  (eval $ac_compile) 2>&5
13147  ac_status=$?
13148  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13149  test $ac_status = 0; }; then
13150    case `/usr/bin/file conftest.o` in
13151      *32-bit*)
13152	case $host in
13153	  x86_64-*kfreebsd*-gnu)
13154	    LD="${LD-ld} -m elf_i386_fbsd"
13155	    ;;
13156	  x86_64-*linux*)
13157	    case `/usr/bin/file conftest.o` in
13158	      *x86-64*)
13159		LD="${LD-ld} -m elf32_x86_64"
13160		;;
13161	      *)
13162		LD="${LD-ld} -m elf_i386"
13163		;;
13164	    esac
13165	    ;;
13166	  powerpc64le-*linux*)
13167	    LD="${LD-ld} -m elf32lppclinux"
13168	    ;;
13169	  powerpc64-*linux*)
13170	    LD="${LD-ld} -m elf32ppclinux"
13171	    ;;
13172	  s390x-*linux*)
13173	    LD="${LD-ld} -m elf_s390"
13174	    ;;
13175	  sparc64-*linux*)
13176	    LD="${LD-ld} -m elf32_sparc"
13177	    ;;
13178	esac
13179	;;
13180      *64-bit*)
13181	case $host in
13182	  x86_64-*kfreebsd*-gnu)
13183	    LD="${LD-ld} -m elf_x86_64_fbsd"
13184	    ;;
13185	  x86_64-*linux*)
13186	    LD="${LD-ld} -m elf_x86_64"
13187	    ;;
13188	  powerpcle-*linux*)
13189	    LD="${LD-ld} -m elf64lppc"
13190	    ;;
13191	  powerpc-*linux*)
13192	    LD="${LD-ld} -m elf64ppc"
13193	    ;;
13194	  s390*-*linux*|s390*-*tpf*)
13195	    LD="${LD-ld} -m elf64_s390"
13196	    ;;
13197	  sparc*-*linux*)
13198	    LD="${LD-ld} -m elf64_sparc"
13199	    ;;
13200	esac
13201	;;
13202    esac
13203  fi
13204  rm -rf conftest*
13205  ;;
13206
13207*-*-sco3.2v5*)
13208  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13209  SAVE_CFLAGS=$CFLAGS
13210  CFLAGS="$CFLAGS -belf"
13211  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13212$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13213if ${lt_cv_cc_needs_belf+:} false; then :
13214  $as_echo_n "(cached) " >&6
13215else
13216  ac_ext=c
13217ac_cpp='$CPP $CPPFLAGS'
13218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13220ac_compiler_gnu=$ac_cv_c_compiler_gnu
13221
13222     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13223/* end confdefs.h.  */
13224
13225int
13226main ()
13227{
13228
13229  ;
13230  return 0;
13231}
13232_ACEOF
13233if ac_fn_c_try_link "$LINENO"; then :
13234  lt_cv_cc_needs_belf=yes
13235else
13236  lt_cv_cc_needs_belf=no
13237fi
13238rm -f core conftest.err conftest.$ac_objext \
13239    conftest$ac_exeext conftest.$ac_ext
13240     ac_ext=c
13241ac_cpp='$CPP $CPPFLAGS'
13242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13244ac_compiler_gnu=$ac_cv_c_compiler_gnu
13245
13246fi
13247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13248$as_echo "$lt_cv_cc_needs_belf" >&6; }
13249  if test yes != "$lt_cv_cc_needs_belf"; then
13250    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13251    CFLAGS=$SAVE_CFLAGS
13252  fi
13253  ;;
13254*-*solaris*)
13255  # Find out what ABI is being produced by ac_compile, and set linker
13256  # options accordingly.
13257  echo 'int i;' > conftest.$ac_ext
13258  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13259  (eval $ac_compile) 2>&5
13260  ac_status=$?
13261  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13262  test $ac_status = 0; }; then
13263    case `/usr/bin/file conftest.o` in
13264    *64-bit*)
13265      case $lt_cv_prog_gnu_ld in
13266      yes*)
13267        case $host in
13268        i?86-*-solaris*|x86_64-*-solaris*)
13269          LD="${LD-ld} -m elf_x86_64"
13270          ;;
13271        sparc*-*-solaris*)
13272          LD="${LD-ld} -m elf64_sparc"
13273          ;;
13274        esac
13275        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13276        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13277          LD=${LD-ld}_sol2
13278        fi
13279        ;;
13280      *)
13281	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13282	  LD="${LD-ld} -64"
13283	fi
13284	;;
13285      esac
13286      ;;
13287    esac
13288  fi
13289  rm -rf conftest*
13290  ;;
13291esac
13292
13293need_locks=$enable_libtool_lock
13294
13295if test -n "$ac_tool_prefix"; then
13296  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13297set dummy ${ac_tool_prefix}mt; ac_word=$2
13298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13299$as_echo_n "checking for $ac_word... " >&6; }
13300if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13301  $as_echo_n "(cached) " >&6
13302else
13303  if test -n "$MANIFEST_TOOL"; then
13304  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13305else
13306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13307for as_dir in $PATH
13308do
13309  IFS=$as_save_IFS
13310  test -z "$as_dir" && as_dir=.
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_MANIFEST_TOOL="${ac_tool_prefix}mt"
13314    $as_echo "$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
13323MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13324if test -n "$MANIFEST_TOOL"; then
13325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13326$as_echo "$MANIFEST_TOOL" >&6; }
13327else
13328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13329$as_echo "no" >&6; }
13330fi
13331
13332
13333fi
13334if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13335  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13336  # Extract the first word of "mt", so it can be a program name with args.
13337set dummy mt; ac_word=$2
13338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13339$as_echo_n "checking for $ac_word... " >&6; }
13340if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13341  $as_echo_n "(cached) " >&6
13342else
13343  if test -n "$ac_ct_MANIFEST_TOOL"; then
13344  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13345else
13346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13347for as_dir in $PATH
13348do
13349  IFS=$as_save_IFS
13350  test -z "$as_dir" && as_dir=.
13351    for ac_exec_ext in '' $ac_executable_extensions; do
13352  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13353    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13354    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13355    break 2
13356  fi
13357done
13358  done
13359IFS=$as_save_IFS
13360
13361fi
13362fi
13363ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13364if test -n "$ac_ct_MANIFEST_TOOL"; then
13365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13366$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13367else
13368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13369$as_echo "no" >&6; }
13370fi
13371
13372  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13373    MANIFEST_TOOL=":"
13374  else
13375    case $cross_compiling:$ac_tool_warned in
13376yes:)
13377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13379ac_tool_warned=yes ;;
13380esac
13381    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13382  fi
13383else
13384  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13385fi
13386
13387test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13389$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13390if ${lt_cv_path_mainfest_tool+:} false; then :
13391  $as_echo_n "(cached) " >&6
13392else
13393  lt_cv_path_mainfest_tool=no
13394  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13395  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13396  cat conftest.err >&5
13397  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13398    lt_cv_path_mainfest_tool=yes
13399  fi
13400  rm -f conftest*
13401fi
13402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13403$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13404if test yes != "$lt_cv_path_mainfest_tool"; then
13405  MANIFEST_TOOL=:
13406fi
13407
13408
13409
13410
13411
13412
13413  case $host_os in
13414    rhapsody* | darwin*)
13415    if test -n "$ac_tool_prefix"; then
13416  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13417set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13419$as_echo_n "checking for $ac_word... " >&6; }
13420if ${ac_cv_prog_DSYMUTIL+:} false; then :
13421  $as_echo_n "(cached) " >&6
13422else
13423  if test -n "$DSYMUTIL"; then
13424  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13425else
13426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13427for as_dir in $PATH
13428do
13429  IFS=$as_save_IFS
13430  test -z "$as_dir" && as_dir=.
13431    for ac_exec_ext in '' $ac_executable_extensions; do
13432  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13433    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13434    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13435    break 2
13436  fi
13437done
13438  done
13439IFS=$as_save_IFS
13440
13441fi
13442fi
13443DSYMUTIL=$ac_cv_prog_DSYMUTIL
13444if test -n "$DSYMUTIL"; then
13445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13446$as_echo "$DSYMUTIL" >&6; }
13447else
13448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13449$as_echo "no" >&6; }
13450fi
13451
13452
13453fi
13454if test -z "$ac_cv_prog_DSYMUTIL"; then
13455  ac_ct_DSYMUTIL=$DSYMUTIL
13456  # Extract the first word of "dsymutil", so it can be a program name with args.
13457set dummy dsymutil; ac_word=$2
13458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13459$as_echo_n "checking for $ac_word... " >&6; }
13460if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13461  $as_echo_n "(cached) " >&6
13462else
13463  if test -n "$ac_ct_DSYMUTIL"; then
13464  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13465else
13466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13467for as_dir in $PATH
13468do
13469  IFS=$as_save_IFS
13470  test -z "$as_dir" && as_dir=.
13471    for ac_exec_ext in '' $ac_executable_extensions; do
13472  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13473    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13474    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13475    break 2
13476  fi
13477done
13478  done
13479IFS=$as_save_IFS
13480
13481fi
13482fi
13483ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13484if test -n "$ac_ct_DSYMUTIL"; then
13485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13486$as_echo "$ac_ct_DSYMUTIL" >&6; }
13487else
13488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13489$as_echo "no" >&6; }
13490fi
13491
13492  if test "x$ac_ct_DSYMUTIL" = x; then
13493    DSYMUTIL=":"
13494  else
13495    case $cross_compiling:$ac_tool_warned in
13496yes:)
13497{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13498$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13499ac_tool_warned=yes ;;
13500esac
13501    DSYMUTIL=$ac_ct_DSYMUTIL
13502  fi
13503else
13504  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13505fi
13506
13507    if test -n "$ac_tool_prefix"; then
13508  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13509set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13511$as_echo_n "checking for $ac_word... " >&6; }
13512if ${ac_cv_prog_NMEDIT+:} false; then :
13513  $as_echo_n "(cached) " >&6
13514else
13515  if test -n "$NMEDIT"; then
13516  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13517else
13518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13519for as_dir in $PATH
13520do
13521  IFS=$as_save_IFS
13522  test -z "$as_dir" && as_dir=.
13523    for ac_exec_ext in '' $ac_executable_extensions; do
13524  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13525    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13526    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13527    break 2
13528  fi
13529done
13530  done
13531IFS=$as_save_IFS
13532
13533fi
13534fi
13535NMEDIT=$ac_cv_prog_NMEDIT
13536if test -n "$NMEDIT"; then
13537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13538$as_echo "$NMEDIT" >&6; }
13539else
13540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13541$as_echo "no" >&6; }
13542fi
13543
13544
13545fi
13546if test -z "$ac_cv_prog_NMEDIT"; then
13547  ac_ct_NMEDIT=$NMEDIT
13548  # Extract the first word of "nmedit", so it can be a program name with args.
13549set dummy nmedit; ac_word=$2
13550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13551$as_echo_n "checking for $ac_word... " >&6; }
13552if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13553  $as_echo_n "(cached) " >&6
13554else
13555  if test -n "$ac_ct_NMEDIT"; then
13556  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13557else
13558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13559for as_dir in $PATH
13560do
13561  IFS=$as_save_IFS
13562  test -z "$as_dir" && as_dir=.
13563    for ac_exec_ext in '' $ac_executable_extensions; do
13564  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13565    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13566    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13567    break 2
13568  fi
13569done
13570  done
13571IFS=$as_save_IFS
13572
13573fi
13574fi
13575ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13576if test -n "$ac_ct_NMEDIT"; then
13577  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13578$as_echo "$ac_ct_NMEDIT" >&6; }
13579else
13580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13581$as_echo "no" >&6; }
13582fi
13583
13584  if test "x$ac_ct_NMEDIT" = x; then
13585    NMEDIT=":"
13586  else
13587    case $cross_compiling:$ac_tool_warned in
13588yes:)
13589{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13590$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13591ac_tool_warned=yes ;;
13592esac
13593    NMEDIT=$ac_ct_NMEDIT
13594  fi
13595else
13596  NMEDIT="$ac_cv_prog_NMEDIT"
13597fi
13598
13599    if test -n "$ac_tool_prefix"; then
13600  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13601set dummy ${ac_tool_prefix}lipo; ac_word=$2
13602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13603$as_echo_n "checking for $ac_word... " >&6; }
13604if ${ac_cv_prog_LIPO+:} false; then :
13605  $as_echo_n "(cached) " >&6
13606else
13607  if test -n "$LIPO"; then
13608  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13609else
13610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13611for as_dir in $PATH
13612do
13613  IFS=$as_save_IFS
13614  test -z "$as_dir" && as_dir=.
13615    for ac_exec_ext in '' $ac_executable_extensions; do
13616  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13617    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13619    break 2
13620  fi
13621done
13622  done
13623IFS=$as_save_IFS
13624
13625fi
13626fi
13627LIPO=$ac_cv_prog_LIPO
13628if test -n "$LIPO"; then
13629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13630$as_echo "$LIPO" >&6; }
13631else
13632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13633$as_echo "no" >&6; }
13634fi
13635
13636
13637fi
13638if test -z "$ac_cv_prog_LIPO"; then
13639  ac_ct_LIPO=$LIPO
13640  # Extract the first word of "lipo", so it can be a program name with args.
13641set dummy lipo; ac_word=$2
13642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13643$as_echo_n "checking for $ac_word... " >&6; }
13644if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13645  $as_echo_n "(cached) " >&6
13646else
13647  if test -n "$ac_ct_LIPO"; then
13648  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13649else
13650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13651for as_dir in $PATH
13652do
13653  IFS=$as_save_IFS
13654  test -z "$as_dir" && as_dir=.
13655    for ac_exec_ext in '' $ac_executable_extensions; do
13656  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13657    ac_cv_prog_ac_ct_LIPO="lipo"
13658    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13659    break 2
13660  fi
13661done
13662  done
13663IFS=$as_save_IFS
13664
13665fi
13666fi
13667ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13668if test -n "$ac_ct_LIPO"; then
13669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13670$as_echo "$ac_ct_LIPO" >&6; }
13671else
13672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13673$as_echo "no" >&6; }
13674fi
13675
13676  if test "x$ac_ct_LIPO" = x; then
13677    LIPO=":"
13678  else
13679    case $cross_compiling:$ac_tool_warned in
13680yes:)
13681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13683ac_tool_warned=yes ;;
13684esac
13685    LIPO=$ac_ct_LIPO
13686  fi
13687else
13688  LIPO="$ac_cv_prog_LIPO"
13689fi
13690
13691    if test -n "$ac_tool_prefix"; then
13692  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13693set dummy ${ac_tool_prefix}otool; ac_word=$2
13694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13695$as_echo_n "checking for $ac_word... " >&6; }
13696if ${ac_cv_prog_OTOOL+:} false; then :
13697  $as_echo_n "(cached) " >&6
13698else
13699  if test -n "$OTOOL"; then
13700  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13701else
13702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13703for as_dir in $PATH
13704do
13705  IFS=$as_save_IFS
13706  test -z "$as_dir" && as_dir=.
13707    for ac_exec_ext in '' $ac_executable_extensions; do
13708  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13709    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13710    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13711    break 2
13712  fi
13713done
13714  done
13715IFS=$as_save_IFS
13716
13717fi
13718fi
13719OTOOL=$ac_cv_prog_OTOOL
13720if test -n "$OTOOL"; then
13721  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13722$as_echo "$OTOOL" >&6; }
13723else
13724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13725$as_echo "no" >&6; }
13726fi
13727
13728
13729fi
13730if test -z "$ac_cv_prog_OTOOL"; then
13731  ac_ct_OTOOL=$OTOOL
13732  # Extract the first word of "otool", so it can be a program name with args.
13733set dummy otool; ac_word=$2
13734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13735$as_echo_n "checking for $ac_word... " >&6; }
13736if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13737  $as_echo_n "(cached) " >&6
13738else
13739  if test -n "$ac_ct_OTOOL"; then
13740  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13741else
13742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13743for as_dir in $PATH
13744do
13745  IFS=$as_save_IFS
13746  test -z "$as_dir" && as_dir=.
13747    for ac_exec_ext in '' $ac_executable_extensions; do
13748  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13749    ac_cv_prog_ac_ct_OTOOL="otool"
13750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13751    break 2
13752  fi
13753done
13754  done
13755IFS=$as_save_IFS
13756
13757fi
13758fi
13759ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13760if test -n "$ac_ct_OTOOL"; then
13761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13762$as_echo "$ac_ct_OTOOL" >&6; }
13763else
13764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13765$as_echo "no" >&6; }
13766fi
13767
13768  if test "x$ac_ct_OTOOL" = x; then
13769    OTOOL=":"
13770  else
13771    case $cross_compiling:$ac_tool_warned in
13772yes:)
13773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13775ac_tool_warned=yes ;;
13776esac
13777    OTOOL=$ac_ct_OTOOL
13778  fi
13779else
13780  OTOOL="$ac_cv_prog_OTOOL"
13781fi
13782
13783    if test -n "$ac_tool_prefix"; then
13784  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13785set dummy ${ac_tool_prefix}otool64; ac_word=$2
13786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13787$as_echo_n "checking for $ac_word... " >&6; }
13788if ${ac_cv_prog_OTOOL64+:} false; then :
13789  $as_echo_n "(cached) " >&6
13790else
13791  if test -n "$OTOOL64"; then
13792  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13793else
13794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13795for as_dir in $PATH
13796do
13797  IFS=$as_save_IFS
13798  test -z "$as_dir" && as_dir=.
13799    for ac_exec_ext in '' $ac_executable_extensions; do
13800  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13801    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13802    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13803    break 2
13804  fi
13805done
13806  done
13807IFS=$as_save_IFS
13808
13809fi
13810fi
13811OTOOL64=$ac_cv_prog_OTOOL64
13812if test -n "$OTOOL64"; then
13813  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13814$as_echo "$OTOOL64" >&6; }
13815else
13816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13817$as_echo "no" >&6; }
13818fi
13819
13820
13821fi
13822if test -z "$ac_cv_prog_OTOOL64"; then
13823  ac_ct_OTOOL64=$OTOOL64
13824  # Extract the first word of "otool64", so it can be a program name with args.
13825set dummy otool64; ac_word=$2
13826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13827$as_echo_n "checking for $ac_word... " >&6; }
13828if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13829  $as_echo_n "(cached) " >&6
13830else
13831  if test -n "$ac_ct_OTOOL64"; then
13832  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13833else
13834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13835for as_dir in $PATH
13836do
13837  IFS=$as_save_IFS
13838  test -z "$as_dir" && as_dir=.
13839    for ac_exec_ext in '' $ac_executable_extensions; do
13840  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13841    ac_cv_prog_ac_ct_OTOOL64="otool64"
13842    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13843    break 2
13844  fi
13845done
13846  done
13847IFS=$as_save_IFS
13848
13849fi
13850fi
13851ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13852if test -n "$ac_ct_OTOOL64"; then
13853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13854$as_echo "$ac_ct_OTOOL64" >&6; }
13855else
13856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13857$as_echo "no" >&6; }
13858fi
13859
13860  if test "x$ac_ct_OTOOL64" = x; then
13861    OTOOL64=":"
13862  else
13863    case $cross_compiling:$ac_tool_warned in
13864yes:)
13865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13867ac_tool_warned=yes ;;
13868esac
13869    OTOOL64=$ac_ct_OTOOL64
13870  fi
13871else
13872  OTOOL64="$ac_cv_prog_OTOOL64"
13873fi
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13902$as_echo_n "checking for -single_module linker flag... " >&6; }
13903if ${lt_cv_apple_cc_single_mod+:} false; then :
13904  $as_echo_n "(cached) " >&6
13905else
13906  lt_cv_apple_cc_single_mod=no
13907      if test -z "$LT_MULTI_MODULE"; then
13908	# By default we will add the -single_module flag. You can override
13909	# by either setting the environment variable LT_MULTI_MODULE
13910	# non-empty at configure time, or by adding -multi_module to the
13911	# link flags.
13912	rm -rf libconftest.dylib*
13913	echo "int foo(void){return 1;}" > conftest.c
13914	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13915-dynamiclib -Wl,-single_module conftest.c" >&5
13916	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13917	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13918        _lt_result=$?
13919	# If there is a non-empty error log, and "single_module"
13920	# appears in it, assume the flag caused a linker warning
13921        if test -s conftest.err && $GREP single_module conftest.err; then
13922	  cat conftest.err >&5
13923	# Otherwise, if the output was created with a 0 exit code from
13924	# the compiler, it worked.
13925	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
13926	  lt_cv_apple_cc_single_mod=yes
13927	else
13928	  cat conftest.err >&5
13929	fi
13930	rm -rf libconftest.dylib*
13931	rm -f conftest.*
13932      fi
13933fi
13934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13935$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13936
13937    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13938$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13939if ${lt_cv_ld_exported_symbols_list+:} false; then :
13940  $as_echo_n "(cached) " >&6
13941else
13942  lt_cv_ld_exported_symbols_list=no
13943      save_LDFLAGS=$LDFLAGS
13944      echo "_main" > conftest.sym
13945      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13946      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13947/* end confdefs.h.  */
13948
13949int
13950main ()
13951{
13952
13953  ;
13954  return 0;
13955}
13956_ACEOF
13957if ac_fn_c_try_link "$LINENO"; then :
13958  lt_cv_ld_exported_symbols_list=yes
13959else
13960  lt_cv_ld_exported_symbols_list=no
13961fi
13962rm -f core conftest.err conftest.$ac_objext \
13963    conftest$ac_exeext conftest.$ac_ext
13964	LDFLAGS=$save_LDFLAGS
13965
13966fi
13967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13968$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13969
13970    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13971$as_echo_n "checking for -force_load linker flag... " >&6; }
13972if ${lt_cv_ld_force_load+:} false; then :
13973  $as_echo_n "(cached) " >&6
13974else
13975  lt_cv_ld_force_load=no
13976      cat > conftest.c << _LT_EOF
13977int forced_loaded() { return 2;}
13978_LT_EOF
13979      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13980      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13981      echo "$AR cru libconftest.a conftest.o" >&5
13982      $AR cru libconftest.a conftest.o 2>&5
13983      echo "$RANLIB libconftest.a" >&5
13984      $RANLIB libconftest.a 2>&5
13985      cat > conftest.c << _LT_EOF
13986int main() { return 0;}
13987_LT_EOF
13988      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13989      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13990      _lt_result=$?
13991      if test -s conftest.err && $GREP force_load conftest.err; then
13992	cat conftest.err >&5
13993      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
13994	lt_cv_ld_force_load=yes
13995      else
13996	cat conftest.err >&5
13997      fi
13998        rm -f conftest.err libconftest.a conftest conftest.c
13999        rm -rf conftest.dSYM
14000
14001fi
14002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14003$as_echo "$lt_cv_ld_force_load" >&6; }
14004    case $host_os in
14005    rhapsody* | darwin1.[012])
14006      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14007    darwin1.*)
14008      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14009    darwin*) # darwin 5.x on
14010      # if running on 10.5 or later, the deployment target defaults
14011      # to the OS version, if on x86, and 10.4, the deployment
14012      # target defaults to 10.4. Don't you love it?
14013      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14014	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14015	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14016	10.[012][,.]*)
14017	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14018	10.*)
14019	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14020      esac
14021    ;;
14022  esac
14023    if test yes = "$lt_cv_apple_cc_single_mod"; then
14024      _lt_dar_single_mod='$single_module'
14025    fi
14026    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14027      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14028    else
14029      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14030    fi
14031    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14032      _lt_dsymutil='~$DSYMUTIL $lib || :'
14033    else
14034      _lt_dsymutil=
14035    fi
14036    ;;
14037  esac
14038
14039for ac_header in dlfcn.h
14040do :
14041  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14042"
14043if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14044  cat >>confdefs.h <<_ACEOF
14045#define HAVE_DLFCN_H 1
14046_ACEOF
14047
14048fi
14049
14050done
14051
14052
14053
14054
14055
14056# Set options
14057
14058
14059
14060        enable_dlopen=no
14061
14062
14063  enable_win32_dll=no
14064
14065
14066            # Check whether --enable-shared was given.
14067if test "${enable_shared+set}" = set; then :
14068  enableval=$enable_shared; p=${PACKAGE-default}
14069    case $enableval in
14070    yes) enable_shared=yes ;;
14071    no) enable_shared=no ;;
14072    *)
14073      enable_shared=no
14074      # Look at the argument we got.  We use all the common list separators.
14075      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14076      for pkg in $enableval; do
14077	IFS=$lt_save_ifs
14078	if test "X$pkg" = "X$p"; then
14079	  enable_shared=yes
14080	fi
14081      done
14082      IFS=$lt_save_ifs
14083      ;;
14084    esac
14085else
14086  enable_shared=yes
14087fi
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099# Check whether --with-pic was given.
14100if test "${with_pic+set}" = set; then :
14101  withval=$with_pic; lt_p=${PACKAGE-default}
14102    case $withval in
14103    yes|no) pic_mode=$withval ;;
14104    *)
14105      pic_mode=default
14106      # Look at the argument we got.  We use all the common list separators.
14107      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14108      for lt_pkg in $withval; do
14109	IFS=$lt_save_ifs
14110	if test "X$lt_pkg" = "X$lt_p"; then
14111	  pic_mode=yes
14112	fi
14113      done
14114      IFS=$lt_save_ifs
14115      ;;
14116    esac
14117else
14118  pic_mode=default
14119fi
14120
14121
14122
14123
14124
14125
14126
14127
14128  # Check whether --enable-fast-install was given.
14129if test "${enable_fast_install+set}" = set; then :
14130  enableval=$enable_fast_install; p=${PACKAGE-default}
14131    case $enableval in
14132    yes) enable_fast_install=yes ;;
14133    no) enable_fast_install=no ;;
14134    *)
14135      enable_fast_install=no
14136      # Look at the argument we got.  We use all the common list separators.
14137      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14138      for pkg in $enableval; do
14139	IFS=$lt_save_ifs
14140	if test "X$pkg" = "X$p"; then
14141	  enable_fast_install=yes
14142	fi
14143      done
14144      IFS=$lt_save_ifs
14145      ;;
14146    esac
14147else
14148  enable_fast_install=yes
14149fi
14150
14151
14152
14153
14154
14155
14156
14157
14158  shared_archive_member_spec=
14159case $host,$enable_shared in
14160power*-*-aix[5-9]*,yes)
14161  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14162$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14163
14164# Check whether --with-aix-soname was given.
14165if test "${with_aix_soname+set}" = set; then :
14166  withval=$with_aix_soname; case $withval in
14167    aix|svr4|both)
14168      ;;
14169    *)
14170      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14171      ;;
14172    esac
14173    lt_cv_with_aix_soname=$with_aix_soname
14174else
14175  if ${lt_cv_with_aix_soname+:} false; then :
14176  $as_echo_n "(cached) " >&6
14177else
14178  lt_cv_with_aix_soname=aix
14179fi
14180
14181    with_aix_soname=$lt_cv_with_aix_soname
14182fi
14183
14184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14185$as_echo "$with_aix_soname" >&6; }
14186  if test aix != "$with_aix_soname"; then
14187    # For the AIX way of multilib, we name the shared archive member
14188    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14189    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14190    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14191    # the AIX toolchain works better with OBJECT_MODE set (default 32).
14192    if test 64 = "${OBJECT_MODE-32}"; then
14193      shared_archive_member_spec=shr_64
14194    else
14195      shared_archive_member_spec=shr
14196    fi
14197  fi
14198  ;;
14199*)
14200  with_aix_soname=aix
14201  ;;
14202esac
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213# This can be used to rebuild libtool when needed
14214LIBTOOL_DEPS=$ltmain
14215
14216# Always use our own libtool.
14217LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248test -z "$LN_S" && LN_S="ln -s"
14249
14250
14251
14252
14253
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263if test -n "${ZSH_VERSION+set}"; then
14264   setopt NO_GLOB_SUBST
14265fi
14266
14267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14268$as_echo_n "checking for objdir... " >&6; }
14269if ${lt_cv_objdir+:} false; then :
14270  $as_echo_n "(cached) " >&6
14271else
14272  rm -f .libs 2>/dev/null
14273mkdir .libs 2>/dev/null
14274if test -d .libs; then
14275  lt_cv_objdir=.libs
14276else
14277  # MS-DOS does not allow filenames that begin with a dot.
14278  lt_cv_objdir=_libs
14279fi
14280rmdir .libs 2>/dev/null
14281fi
14282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14283$as_echo "$lt_cv_objdir" >&6; }
14284objdir=$lt_cv_objdir
14285
14286
14287
14288
14289
14290cat >>confdefs.h <<_ACEOF
14291#define LT_OBJDIR "$lt_cv_objdir/"
14292_ACEOF
14293
14294
14295
14296
14297case $host_os in
14298aix3*)
14299  # AIX sometimes has problems with the GCC collect2 program.  For some
14300  # reason, if we set the COLLECT_NAMES environment variable, the problems
14301  # vanish in a puff of smoke.
14302  if test set != "${COLLECT_NAMES+set}"; then
14303    COLLECT_NAMES=
14304    export COLLECT_NAMES
14305  fi
14306  ;;
14307esac
14308
14309# Global variables:
14310ofile=libtool
14311can_build_shared=yes
14312
14313# All known linkers require a '.a' archive for static linking (except MSVC,
14314# which needs '.lib').
14315libext=a
14316
14317with_gnu_ld=$lt_cv_prog_gnu_ld
14318
14319old_CC=$CC
14320old_CFLAGS=$CFLAGS
14321
14322# Set sane defaults for various variables
14323test -z "$CC" && CC=cc
14324test -z "$LTCC" && LTCC=$CC
14325test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14326test -z "$LD" && LD=ld
14327test -z "$ac_objext" && ac_objext=o
14328
14329for cc_temp in $compiler""; do
14330  case $cc_temp in
14331    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14332    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14333    \-*) ;;
14334    *) break;;
14335  esac
14336done
14337cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14338
14339
14340# Only perform the check for file, if the check method requires it
14341test -z "$MAGIC_CMD" && MAGIC_CMD=file
14342case $deplibs_check_method in
14343file_magic*)
14344  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14345    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14346$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14347if ${lt_cv_path_MAGIC_CMD+:} false; then :
14348  $as_echo_n "(cached) " >&6
14349else
14350  case $MAGIC_CMD in
14351[\\/*] |  ?:[\\/]*)
14352  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14353  ;;
14354*)
14355  lt_save_MAGIC_CMD=$MAGIC_CMD
14356  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14357  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14358  for ac_dir in $ac_dummy; do
14359    IFS=$lt_save_ifs
14360    test -z "$ac_dir" && ac_dir=.
14361    if test -f "$ac_dir/${ac_tool_prefix}file"; then
14362      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14363      if test -n "$file_magic_test_file"; then
14364	case $deplibs_check_method in
14365	"file_magic "*)
14366	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14367	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14368	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14369	    $EGREP "$file_magic_regex" > /dev/null; then
14370	    :
14371	  else
14372	    cat <<_LT_EOF 1>&2
14373
14374*** Warning: the command libtool uses to detect shared libraries,
14375*** $file_magic_cmd, produces output that libtool cannot recognize.
14376*** The result is that libtool may fail to recognize shared libraries
14377*** as such.  This will affect the creation of libtool libraries that
14378*** depend on shared libraries, but programs linked with such libtool
14379*** libraries will work regardless of this problem.  Nevertheless, you
14380*** may want to report the problem to your system manager and/or to
14381*** bug-libtool@gnu.org
14382
14383_LT_EOF
14384	  fi ;;
14385	esac
14386      fi
14387      break
14388    fi
14389  done
14390  IFS=$lt_save_ifs
14391  MAGIC_CMD=$lt_save_MAGIC_CMD
14392  ;;
14393esac
14394fi
14395
14396MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14397if test -n "$MAGIC_CMD"; then
14398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14399$as_echo "$MAGIC_CMD" >&6; }
14400else
14401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14402$as_echo "no" >&6; }
14403fi
14404
14405
14406
14407
14408
14409if test -z "$lt_cv_path_MAGIC_CMD"; then
14410  if test -n "$ac_tool_prefix"; then
14411    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14412$as_echo_n "checking for file... " >&6; }
14413if ${lt_cv_path_MAGIC_CMD+:} false; then :
14414  $as_echo_n "(cached) " >&6
14415else
14416  case $MAGIC_CMD in
14417[\\/*] |  ?:[\\/]*)
14418  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14419  ;;
14420*)
14421  lt_save_MAGIC_CMD=$MAGIC_CMD
14422  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14423  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14424  for ac_dir in $ac_dummy; do
14425    IFS=$lt_save_ifs
14426    test -z "$ac_dir" && ac_dir=.
14427    if test -f "$ac_dir/file"; then
14428      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14429      if test -n "$file_magic_test_file"; then
14430	case $deplibs_check_method in
14431	"file_magic "*)
14432	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14433	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14434	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14435	    $EGREP "$file_magic_regex" > /dev/null; then
14436	    :
14437	  else
14438	    cat <<_LT_EOF 1>&2
14439
14440*** Warning: the command libtool uses to detect shared libraries,
14441*** $file_magic_cmd, produces output that libtool cannot recognize.
14442*** The result is that libtool may fail to recognize shared libraries
14443*** as such.  This will affect the creation of libtool libraries that
14444*** depend on shared libraries, but programs linked with such libtool
14445*** libraries will work regardless of this problem.  Nevertheless, you
14446*** may want to report the problem to your system manager and/or to
14447*** bug-libtool@gnu.org
14448
14449_LT_EOF
14450	  fi ;;
14451	esac
14452      fi
14453      break
14454    fi
14455  done
14456  IFS=$lt_save_ifs
14457  MAGIC_CMD=$lt_save_MAGIC_CMD
14458  ;;
14459esac
14460fi
14461
14462MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14463if test -n "$MAGIC_CMD"; then
14464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14465$as_echo "$MAGIC_CMD" >&6; }
14466else
14467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14468$as_echo "no" >&6; }
14469fi
14470
14471
14472  else
14473    MAGIC_CMD=:
14474  fi
14475fi
14476
14477  fi
14478  ;;
14479esac
14480
14481# Use C for the default configuration in the libtool script
14482
14483lt_save_CC=$CC
14484ac_ext=c
14485ac_cpp='$CPP $CPPFLAGS'
14486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14488ac_compiler_gnu=$ac_cv_c_compiler_gnu
14489
14490
14491# Source file extension for C test sources.
14492ac_ext=c
14493
14494# Object file extension for compiled C test sources.
14495objext=o
14496objext=$objext
14497
14498# Code to be used in simple compile tests
14499lt_simple_compile_test_code="int some_variable = 0;"
14500
14501# Code to be used in simple link tests
14502lt_simple_link_test_code='int main(){return(0);}'
14503
14504
14505
14506
14507
14508
14509
14510# If no C compiler was specified, use CC.
14511LTCC=${LTCC-"$CC"}
14512
14513# If no C compiler flags were specified, use CFLAGS.
14514LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14515
14516# Allow CC to be a program name with arguments.
14517compiler=$CC
14518
14519# Save the default compiler, since it gets overwritten when the other
14520# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14521compiler_DEFAULT=$CC
14522
14523# save warnings/boilerplate of simple test code
14524ac_outfile=conftest.$ac_objext
14525echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14526eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14527_lt_compiler_boilerplate=`cat conftest.err`
14528$RM conftest*
14529
14530ac_outfile=conftest.$ac_objext
14531echo "$lt_simple_link_test_code" >conftest.$ac_ext
14532eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14533_lt_linker_boilerplate=`cat conftest.err`
14534$RM -r conftest*
14535
14536
14537if test -n "$compiler"; then
14538
14539lt_prog_compiler_no_builtin_flag=
14540
14541if test yes = "$GCC"; then
14542  case $cc_basename in
14543  nvcc*)
14544    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14545  *)
14546    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14547  esac
14548
14549  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14550$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14551if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14552  $as_echo_n "(cached) " >&6
14553else
14554  lt_cv_prog_compiler_rtti_exceptions=no
14555   ac_outfile=conftest.$ac_objext
14556   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14557   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
14558   # Insert the option either (1) after the last *FLAGS variable, or
14559   # (2) before a word containing "conftest.", or (3) at the end.
14560   # Note that $ac_compile itself does not contain backslashes and begins
14561   # with a dollar sign (not a hyphen), so the echo should work correctly.
14562   # The option is referenced via a variable to avoid confusing sed.
14563   lt_compile=`echo "$ac_compile" | $SED \
14564   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14565   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14566   -e 's:$: $lt_compiler_flag:'`
14567   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14568   (eval "$lt_compile" 2>conftest.err)
14569   ac_status=$?
14570   cat conftest.err >&5
14571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572   if (exit $ac_status) && test -s "$ac_outfile"; then
14573     # The compiler can only warn and ignore the option if not recognized
14574     # So say no if there are warnings other than the usual output.
14575     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14576     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14577     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14578       lt_cv_prog_compiler_rtti_exceptions=yes
14579     fi
14580   fi
14581   $RM conftest*
14582
14583fi
14584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14585$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14586
14587if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14588    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14589else
14590    :
14591fi
14592
14593fi
14594
14595
14596
14597
14598
14599
14600  lt_prog_compiler_wl=
14601lt_prog_compiler_pic=
14602lt_prog_compiler_static=
14603
14604
14605  if test yes = "$GCC"; then
14606    lt_prog_compiler_wl='-Wl,'
14607    lt_prog_compiler_static='-static'
14608
14609    case $host_os in
14610      aix*)
14611      # All AIX code is PIC.
14612      if test ia64 = "$host_cpu"; then
14613	# AIX 5 now supports IA64 processor
14614	lt_prog_compiler_static='-Bstatic'
14615      fi
14616      lt_prog_compiler_pic='-fPIC'
14617      ;;
14618
14619    amigaos*)
14620      case $host_cpu in
14621      powerpc)
14622            # see comment about AmigaOS4 .so support
14623            lt_prog_compiler_pic='-fPIC'
14624        ;;
14625      m68k)
14626            # FIXME: we need at least 68020 code to build shared libraries, but
14627            # adding the '-m68020' flag to GCC prevents building anything better,
14628            # like '-m68040'.
14629            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14630        ;;
14631      esac
14632      ;;
14633
14634    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14635      # PIC is the default for these OSes.
14636      ;;
14637
14638    mingw* | cygwin* | pw32* | os2* | cegcc*)
14639      # This hack is so that the source file can tell whether it is being
14640      # built for inclusion in a dll (and should export symbols for example).
14641      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14642      # (--disable-auto-import) libraries
14643      lt_prog_compiler_pic='-DDLL_EXPORT'
14644      case $host_os in
14645      os2*)
14646	lt_prog_compiler_static='$wl-static'
14647	;;
14648      esac
14649      ;;
14650
14651    darwin* | rhapsody*)
14652      # PIC is the default on this platform
14653      # Common symbols not allowed in MH_DYLIB files
14654      lt_prog_compiler_pic='-fno-common'
14655      ;;
14656
14657    haiku*)
14658      # PIC is the default for Haiku.
14659      # The "-static" flag exists, but is broken.
14660      lt_prog_compiler_static=
14661      ;;
14662
14663    hpux*)
14664      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14665      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14666      # sets the default TLS model and affects inlining.
14667      case $host_cpu in
14668      hppa*64*)
14669	# +Z the default
14670	;;
14671      *)
14672	lt_prog_compiler_pic='-fPIC'
14673	;;
14674      esac
14675      ;;
14676
14677    interix[3-9]*)
14678      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14679      # Instead, we relocate shared libraries at runtime.
14680      ;;
14681
14682    msdosdjgpp*)
14683      # Just because we use GCC doesn't mean we suddenly get shared libraries
14684      # on systems that don't support them.
14685      lt_prog_compiler_can_build_shared=no
14686      enable_shared=no
14687      ;;
14688
14689    *nto* | *qnx*)
14690      # QNX uses GNU C++, but need to define -shared option too, otherwise
14691      # it will coredump.
14692      lt_prog_compiler_pic='-fPIC -shared'
14693      ;;
14694
14695    sysv4*MP*)
14696      if test -d /usr/nec; then
14697	lt_prog_compiler_pic=-Kconform_pic
14698      fi
14699      ;;
14700
14701    *)
14702      lt_prog_compiler_pic='-fPIC'
14703      ;;
14704    esac
14705
14706    case $cc_basename in
14707    nvcc*) # Cuda Compiler Driver 2.2
14708      lt_prog_compiler_wl='-Xlinker '
14709      if test -n "$lt_prog_compiler_pic"; then
14710        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14711      fi
14712      ;;
14713    esac
14714  else
14715    # PORTME Check for flag to pass linker flags through the system compiler.
14716    case $host_os in
14717    aix*)
14718      lt_prog_compiler_wl='-Wl,'
14719      if test ia64 = "$host_cpu"; then
14720	# AIX 5 now supports IA64 processor
14721	lt_prog_compiler_static='-Bstatic'
14722      else
14723	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14724      fi
14725      ;;
14726
14727    darwin* | rhapsody*)
14728      # PIC is the default on this platform
14729      # Common symbols not allowed in MH_DYLIB files
14730      lt_prog_compiler_pic='-fno-common'
14731      case $cc_basename in
14732      nagfor*)
14733        # NAG Fortran compiler
14734        lt_prog_compiler_wl='-Wl,-Wl,,'
14735        lt_prog_compiler_pic='-PIC'
14736        lt_prog_compiler_static='-Bstatic'
14737        ;;
14738      esac
14739      ;;
14740
14741    mingw* | cygwin* | pw32* | os2* | cegcc*)
14742      # This hack is so that the source file can tell whether it is being
14743      # built for inclusion in a dll (and should export symbols for example).
14744      lt_prog_compiler_pic='-DDLL_EXPORT'
14745      case $host_os in
14746      os2*)
14747	lt_prog_compiler_static='$wl-static'
14748	;;
14749      esac
14750      ;;
14751
14752    hpux9* | hpux10* | hpux11*)
14753      lt_prog_compiler_wl='-Wl,'
14754      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14755      # not for PA HP-UX.
14756      case $host_cpu in
14757      hppa*64*|ia64*)
14758	# +Z the default
14759	;;
14760      *)
14761	lt_prog_compiler_pic='+Z'
14762	;;
14763      esac
14764      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14765      lt_prog_compiler_static='$wl-a ${wl}archive'
14766      ;;
14767
14768    irix5* | irix6* | nonstopux*)
14769      lt_prog_compiler_wl='-Wl,'
14770      # PIC (with -KPIC) is the default.
14771      lt_prog_compiler_static='-non_shared'
14772      ;;
14773
14774    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14775      case $cc_basename in
14776      # old Intel for x86_64, which still supported -KPIC.
14777      ecc*)
14778	lt_prog_compiler_wl='-Wl,'
14779	lt_prog_compiler_pic='-KPIC'
14780	lt_prog_compiler_static='-static'
14781        ;;
14782      # icc used to be incompatible with GCC.
14783      # ICC 10 doesn't accept -KPIC any more.
14784      icc* | ifort*)
14785	lt_prog_compiler_wl='-Wl,'
14786	lt_prog_compiler_pic='-fPIC'
14787	lt_prog_compiler_static='-static'
14788        ;;
14789      # Lahey Fortran 8.1.
14790      lf95*)
14791	lt_prog_compiler_wl='-Wl,'
14792	lt_prog_compiler_pic='--shared'
14793	lt_prog_compiler_static='--static'
14794	;;
14795      nagfor*)
14796	# NAG Fortran compiler
14797	lt_prog_compiler_wl='-Wl,-Wl,,'
14798	lt_prog_compiler_pic='-PIC'
14799	lt_prog_compiler_static='-Bstatic'
14800	;;
14801      tcc*)
14802	# Fabrice Bellard et al's Tiny C Compiler
14803	lt_prog_compiler_wl='-Wl,'
14804	lt_prog_compiler_pic='-fPIC'
14805	lt_prog_compiler_static='-static'
14806	;;
14807      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14808        # Portland Group compilers (*not* the Pentium gcc compiler,
14809	# which looks to be a dead project)
14810	lt_prog_compiler_wl='-Wl,'
14811	lt_prog_compiler_pic='-fpic'
14812	lt_prog_compiler_static='-Bstatic'
14813        ;;
14814      ccc*)
14815        lt_prog_compiler_wl='-Wl,'
14816        # All Alpha code is PIC.
14817        lt_prog_compiler_static='-non_shared'
14818        ;;
14819      xl* | bgxl* | bgf* | mpixl*)
14820	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14821	lt_prog_compiler_wl='-Wl,'
14822	lt_prog_compiler_pic='-qpic'
14823	lt_prog_compiler_static='-qstaticlink'
14824	;;
14825      *)
14826	case `$CC -V 2>&1 | sed 5q` in
14827	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14828	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14829	  lt_prog_compiler_pic='-KPIC'
14830	  lt_prog_compiler_static='-Bstatic'
14831	  lt_prog_compiler_wl=''
14832	  ;;
14833	*Sun\ F* | *Sun*Fortran*)
14834	  lt_prog_compiler_pic='-KPIC'
14835	  lt_prog_compiler_static='-Bstatic'
14836	  lt_prog_compiler_wl='-Qoption ld '
14837	  ;;
14838	*Sun\ C*)
14839	  # Sun C 5.9
14840	  lt_prog_compiler_pic='-KPIC'
14841	  lt_prog_compiler_static='-Bstatic'
14842	  lt_prog_compiler_wl='-Wl,'
14843	  ;;
14844        *Intel*\ [CF]*Compiler*)
14845	  lt_prog_compiler_wl='-Wl,'
14846	  lt_prog_compiler_pic='-fPIC'
14847	  lt_prog_compiler_static='-static'
14848	  ;;
14849	*Portland\ Group*)
14850	  lt_prog_compiler_wl='-Wl,'
14851	  lt_prog_compiler_pic='-fpic'
14852	  lt_prog_compiler_static='-Bstatic'
14853	  ;;
14854	esac
14855	;;
14856      esac
14857      ;;
14858
14859    newsos6)
14860      lt_prog_compiler_pic='-KPIC'
14861      lt_prog_compiler_static='-Bstatic'
14862      ;;
14863
14864    *nto* | *qnx*)
14865      # QNX uses GNU C++, but need to define -shared option too, otherwise
14866      # it will coredump.
14867      lt_prog_compiler_pic='-fPIC -shared'
14868      ;;
14869
14870    osf3* | osf4* | osf5*)
14871      lt_prog_compiler_wl='-Wl,'
14872      # All OSF/1 code is PIC.
14873      lt_prog_compiler_static='-non_shared'
14874      ;;
14875
14876    rdos*)
14877      lt_prog_compiler_static='-non_shared'
14878      ;;
14879
14880    solaris*)
14881      lt_prog_compiler_pic='-KPIC'
14882      lt_prog_compiler_static='-Bstatic'
14883      case $cc_basename in
14884      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14885	lt_prog_compiler_wl='-Qoption ld ';;
14886      *)
14887	lt_prog_compiler_wl='-Wl,';;
14888      esac
14889      ;;
14890
14891    sunos4*)
14892      lt_prog_compiler_wl='-Qoption ld '
14893      lt_prog_compiler_pic='-PIC'
14894      lt_prog_compiler_static='-Bstatic'
14895      ;;
14896
14897    sysv4 | sysv4.2uw2* | sysv4.3*)
14898      lt_prog_compiler_wl='-Wl,'
14899      lt_prog_compiler_pic='-KPIC'
14900      lt_prog_compiler_static='-Bstatic'
14901      ;;
14902
14903    sysv4*MP*)
14904      if test -d /usr/nec; then
14905	lt_prog_compiler_pic='-Kconform_pic'
14906	lt_prog_compiler_static='-Bstatic'
14907      fi
14908      ;;
14909
14910    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14911      lt_prog_compiler_wl='-Wl,'
14912      lt_prog_compiler_pic='-KPIC'
14913      lt_prog_compiler_static='-Bstatic'
14914      ;;
14915
14916    unicos*)
14917      lt_prog_compiler_wl='-Wl,'
14918      lt_prog_compiler_can_build_shared=no
14919      ;;
14920
14921    uts4*)
14922      lt_prog_compiler_pic='-pic'
14923      lt_prog_compiler_static='-Bstatic'
14924      ;;
14925
14926    *)
14927      lt_prog_compiler_can_build_shared=no
14928      ;;
14929    esac
14930  fi
14931
14932case $host_os in
14933  # For platforms that do not support PIC, -DPIC is meaningless:
14934  *djgpp*)
14935    lt_prog_compiler_pic=
14936    ;;
14937  *)
14938    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14939    ;;
14940esac
14941
14942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14943$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14944if ${lt_cv_prog_compiler_pic+:} false; then :
14945  $as_echo_n "(cached) " >&6
14946else
14947  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14948fi
14949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14950$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14951lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14952
14953#
14954# Check to make sure the PIC flag actually works.
14955#
14956if test -n "$lt_prog_compiler_pic"; then
14957  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14958$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14959if ${lt_cv_prog_compiler_pic_works+:} false; then :
14960  $as_echo_n "(cached) " >&6
14961else
14962  lt_cv_prog_compiler_pic_works=no
14963   ac_outfile=conftest.$ac_objext
14964   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14965   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
14966   # Insert the option either (1) after the last *FLAGS variable, or
14967   # (2) before a word containing "conftest.", or (3) at the end.
14968   # Note that $ac_compile itself does not contain backslashes and begins
14969   # with a dollar sign (not a hyphen), so the echo should work correctly.
14970   # The option is referenced via a variable to avoid confusing sed.
14971   lt_compile=`echo "$ac_compile" | $SED \
14972   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14973   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14974   -e 's:$: $lt_compiler_flag:'`
14975   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14976   (eval "$lt_compile" 2>conftest.err)
14977   ac_status=$?
14978   cat conftest.err >&5
14979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980   if (exit $ac_status) && test -s "$ac_outfile"; then
14981     # The compiler can only warn and ignore the option if not recognized
14982     # So say no if there are warnings other than the usual output.
14983     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14984     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14985     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14986       lt_cv_prog_compiler_pic_works=yes
14987     fi
14988   fi
14989   $RM conftest*
14990
14991fi
14992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14993$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14994
14995if test yes = "$lt_cv_prog_compiler_pic_works"; then
14996    case $lt_prog_compiler_pic in
14997     "" | " "*) ;;
14998     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14999     esac
15000else
15001    lt_prog_compiler_pic=
15002     lt_prog_compiler_can_build_shared=no
15003fi
15004
15005fi
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017#
15018# Check to make sure the static flag actually works.
15019#
15020wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15022$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15023if ${lt_cv_prog_compiler_static_works+:} false; then :
15024  $as_echo_n "(cached) " >&6
15025else
15026  lt_cv_prog_compiler_static_works=no
15027   save_LDFLAGS=$LDFLAGS
15028   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15029   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15030   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15031     # The linker can only warn and ignore the option if not recognized
15032     # So say no if there are warnings
15033     if test -s conftest.err; then
15034       # Append any errors to the config.log.
15035       cat conftest.err 1>&5
15036       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15037       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15038       if diff conftest.exp conftest.er2 >/dev/null; then
15039         lt_cv_prog_compiler_static_works=yes
15040       fi
15041     else
15042       lt_cv_prog_compiler_static_works=yes
15043     fi
15044   fi
15045   $RM -r conftest*
15046   LDFLAGS=$save_LDFLAGS
15047
15048fi
15049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15050$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15051
15052if test yes = "$lt_cv_prog_compiler_static_works"; then
15053    :
15054else
15055    lt_prog_compiler_static=
15056fi
15057
15058
15059
15060
15061
15062
15063
15064  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15065$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15066if ${lt_cv_prog_compiler_c_o+:} false; then :
15067  $as_echo_n "(cached) " >&6
15068else
15069  lt_cv_prog_compiler_c_o=no
15070   $RM -r conftest 2>/dev/null
15071   mkdir conftest
15072   cd conftest
15073   mkdir out
15074   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15075
15076   lt_compiler_flag="-o out/conftest2.$ac_objext"
15077   # Insert the option either (1) after the last *FLAGS variable, or
15078   # (2) before a word containing "conftest.", or (3) at the end.
15079   # Note that $ac_compile itself does not contain backslashes and begins
15080   # with a dollar sign (not a hyphen), so the echo should work correctly.
15081   lt_compile=`echo "$ac_compile" | $SED \
15082   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15083   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15084   -e 's:$: $lt_compiler_flag:'`
15085   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15086   (eval "$lt_compile" 2>out/conftest.err)
15087   ac_status=$?
15088   cat out/conftest.err >&5
15089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15091   then
15092     # The compiler can only warn and ignore the option if not recognized
15093     # So say no if there are warnings
15094     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15095     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15096     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15097       lt_cv_prog_compiler_c_o=yes
15098     fi
15099   fi
15100   chmod u+w . 2>&5
15101   $RM conftest*
15102   # SGI C++ compiler will create directory out/ii_files/ for
15103   # template instantiation
15104   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15105   $RM out/* && rmdir out
15106   cd ..
15107   $RM -r conftest
15108   $RM conftest*
15109
15110fi
15111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15112$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15113
15114
15115
15116
15117
15118
15119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15120$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15121if ${lt_cv_prog_compiler_c_o+:} false; then :
15122  $as_echo_n "(cached) " >&6
15123else
15124  lt_cv_prog_compiler_c_o=no
15125   $RM -r conftest 2>/dev/null
15126   mkdir conftest
15127   cd conftest
15128   mkdir out
15129   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15130
15131   lt_compiler_flag="-o out/conftest2.$ac_objext"
15132   # Insert the option either (1) after the last *FLAGS variable, or
15133   # (2) before a word containing "conftest.", or (3) at the end.
15134   # Note that $ac_compile itself does not contain backslashes and begins
15135   # with a dollar sign (not a hyphen), so the echo should work correctly.
15136   lt_compile=`echo "$ac_compile" | $SED \
15137   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15138   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15139   -e 's:$: $lt_compiler_flag:'`
15140   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15141   (eval "$lt_compile" 2>out/conftest.err)
15142   ac_status=$?
15143   cat out/conftest.err >&5
15144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15146   then
15147     # The compiler can only warn and ignore the option if not recognized
15148     # So say no if there are warnings
15149     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15150     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15151     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15152       lt_cv_prog_compiler_c_o=yes
15153     fi
15154   fi
15155   chmod u+w . 2>&5
15156   $RM conftest*
15157   # SGI C++ compiler will create directory out/ii_files/ for
15158   # template instantiation
15159   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15160   $RM out/* && rmdir out
15161   cd ..
15162   $RM -r conftest
15163   $RM conftest*
15164
15165fi
15166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15167$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15168
15169
15170
15171
15172hard_links=nottested
15173if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15174  # do not overwrite the value of need_locks provided by the user
15175  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15176$as_echo_n "checking if we can lock with hard links... " >&6; }
15177  hard_links=yes
15178  $RM conftest*
15179  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15180  touch conftest.a
15181  ln conftest.a conftest.b 2>&5 || hard_links=no
15182  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15184$as_echo "$hard_links" >&6; }
15185  if test no = "$hard_links"; then
15186    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15187$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15188    need_locks=warn
15189  fi
15190else
15191  need_locks=no
15192fi
15193
15194
15195
15196
15197
15198
15199  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15200$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15201
15202  runpath_var=
15203  allow_undefined_flag=
15204  always_export_symbols=no
15205  archive_cmds=
15206  archive_expsym_cmds=
15207  compiler_needs_object=no
15208  enable_shared_with_static_runtimes=no
15209  export_dynamic_flag_spec=
15210  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15211  hardcode_automatic=no
15212  hardcode_direct=no
15213  hardcode_direct_absolute=no
15214  hardcode_libdir_flag_spec=
15215  hardcode_libdir_separator=
15216  hardcode_minus_L=no
15217  hardcode_shlibpath_var=unsupported
15218  inherit_rpath=no
15219  link_all_deplibs=unknown
15220  module_cmds=
15221  module_expsym_cmds=
15222  old_archive_from_new_cmds=
15223  old_archive_from_expsyms_cmds=
15224  thread_safe_flag_spec=
15225  whole_archive_flag_spec=
15226  # include_expsyms should be a list of space-separated symbols to be *always*
15227  # included in the symbol list
15228  include_expsyms=
15229  # exclude_expsyms can be an extended regexp of symbols to exclude
15230  # it will be wrapped by ' (' and ')$', so one must not match beginning or
15231  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15232  # as well as any symbol that contains 'd'.
15233  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15234  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15235  # platforms (ab)use it in PIC code, but their linkers get confused if
15236  # the symbol is explicitly referenced.  Since portable code cannot
15237  # rely on this symbol name, it's probably fine to never include it in
15238  # preloaded symbol tables.
15239  # Exclude shared library initialization/finalization symbols.
15240  extract_expsyms_cmds=
15241
15242  case $host_os in
15243  cygwin* | mingw* | pw32* | cegcc*)
15244    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15245    # When not using gcc, we currently assume that we are using
15246    # Microsoft Visual C++.
15247    if test yes != "$GCC"; then
15248      with_gnu_ld=no
15249    fi
15250    ;;
15251  interix*)
15252    # we just hope/assume this is gcc and not c89 (= MSVC++)
15253    with_gnu_ld=yes
15254    ;;
15255  openbsd* | bitrig*)
15256    with_gnu_ld=no
15257    ;;
15258  esac
15259
15260  ld_shlibs=yes
15261
15262  # On some targets, GNU ld is compatible enough with the native linker
15263  # that we're better off using the native interface for both.
15264  lt_use_gnu_ld_interface=no
15265  if test yes = "$with_gnu_ld"; then
15266    case $host_os in
15267      aix*)
15268	# The AIX port of GNU ld has always aspired to compatibility
15269	# with the native linker.  However, as the warning in the GNU ld
15270	# block says, versions before 2.19.5* couldn't really create working
15271	# shared libraries, regardless of the interface used.
15272	case `$LD -v 2>&1` in
15273	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15274	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15275	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15276	  *)
15277	    lt_use_gnu_ld_interface=yes
15278	    ;;
15279	esac
15280	;;
15281      *)
15282	lt_use_gnu_ld_interface=yes
15283	;;
15284    esac
15285  fi
15286
15287  if test yes = "$lt_use_gnu_ld_interface"; then
15288    # If archive_cmds runs LD, not CC, wlarc should be empty
15289    wlarc='$wl'
15290
15291    # Set some defaults for GNU ld with shared library support. These
15292    # are reset later if shared libraries are not supported. Putting them
15293    # here allows them to be overridden if necessary.
15294    runpath_var=LD_RUN_PATH
15295    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15296    export_dynamic_flag_spec='$wl--export-dynamic'
15297    # ancient GNU ld didn't support --whole-archive et. al.
15298    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15299      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15300    else
15301      whole_archive_flag_spec=
15302    fi
15303    supports_anon_versioning=no
15304    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15305      *GNU\ gold*) supports_anon_versioning=yes ;;
15306      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15307      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15308      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15309      *\ 2.11.*) ;; # other 2.11 versions
15310      *) supports_anon_versioning=yes ;;
15311    esac
15312
15313    # See if GNU ld supports shared libraries.
15314    case $host_os in
15315    aix[3-9]*)
15316      # On AIX/PPC, the GNU linker is very broken
15317      if test ia64 != "$host_cpu"; then
15318	ld_shlibs=no
15319	cat <<_LT_EOF 1>&2
15320
15321*** Warning: the GNU linker, at least up to release 2.19, is reported
15322*** to be unable to reliably create shared libraries on AIX.
15323*** Therefore, libtool is disabling shared libraries support.  If you
15324*** really care for shared libraries, you may want to install binutils
15325*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15326*** You will then need to restart the configuration process.
15327
15328_LT_EOF
15329      fi
15330      ;;
15331
15332    amigaos*)
15333      case $host_cpu in
15334      powerpc)
15335            # see comment about AmigaOS4 .so support
15336            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15337            archive_expsym_cmds=''
15338        ;;
15339      m68k)
15340            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)'
15341            hardcode_libdir_flag_spec='-L$libdir'
15342            hardcode_minus_L=yes
15343        ;;
15344      esac
15345      ;;
15346
15347    beos*)
15348      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15349	allow_undefined_flag=unsupported
15350	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15351	# support --undefined.  This deserves some investigation.  FIXME
15352	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15353      else
15354	ld_shlibs=no
15355      fi
15356      ;;
15357
15358    cygwin* | mingw* | pw32* | cegcc*)
15359      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15360      # as there is no search path for DLLs.
15361      hardcode_libdir_flag_spec='-L$libdir'
15362      export_dynamic_flag_spec='$wl--export-all-symbols'
15363      allow_undefined_flag=unsupported
15364      always_export_symbols=no
15365      enable_shared_with_static_runtimes=yes
15366      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'
15367      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15368
15369      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15370        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15371	# If the export-symbols file already is a .def file, use it as
15372	# is; otherwise, prepend EXPORTS...
15373	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15374          cp $export_symbols $output_objdir/$soname.def;
15375        else
15376          echo EXPORTS > $output_objdir/$soname.def;
15377          cat $export_symbols >> $output_objdir/$soname.def;
15378        fi~
15379        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15380      else
15381	ld_shlibs=no
15382      fi
15383      ;;
15384
15385    haiku*)
15386      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15387      link_all_deplibs=yes
15388      ;;
15389
15390    os2*)
15391      hardcode_libdir_flag_spec='-L$libdir'
15392      hardcode_minus_L=yes
15393      allow_undefined_flag=unsupported
15394      shrext_cmds=.dll
15395      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15396	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15397	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15398	$ECHO EXPORTS >> $output_objdir/$libname.def~
15399	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15400	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15401	emximp -o $lib $output_objdir/$libname.def'
15402      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15403	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15404	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15405	$ECHO EXPORTS >> $output_objdir/$libname.def~
15406	prefix_cmds="$SED"~
15407	if test EXPORTS = "`$SED 1q $export_symbols`"; then
15408	  prefix_cmds="$prefix_cmds -e 1d";
15409	fi~
15410	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15411	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15412	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15413	emximp -o $lib $output_objdir/$libname.def'
15414      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15415      enable_shared_with_static_runtimes=yes
15416      ;;
15417
15418    interix[3-9]*)
15419      hardcode_direct=no
15420      hardcode_shlibpath_var=no
15421      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15422      export_dynamic_flag_spec='$wl-E'
15423      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15424      # Instead, shared libraries are loaded at an image base (0x10000000 by
15425      # default) and relocated if they conflict, which is a slow very memory
15426      # consuming and fragmenting process.  To avoid this, we pick a random,
15427      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15428      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15429      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15430      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'
15431      ;;
15432
15433    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15434      tmp_diet=no
15435      if test linux-dietlibc = "$host_os"; then
15436	case $cc_basename in
15437	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15438	esac
15439      fi
15440      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15441	 && test no = "$tmp_diet"
15442      then
15443	tmp_addflag=' $pic_flag'
15444	tmp_sharedflag='-shared'
15445	case $cc_basename,$host_cpu in
15446        pgcc*)				# Portland Group C compiler
15447	  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'
15448	  tmp_addflag=' $pic_flag'
15449	  ;;
15450	pgf77* | pgf90* | pgf95* | pgfortran*)
15451					# Portland Group f77 and f90 compilers
15452	  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'
15453	  tmp_addflag=' $pic_flag -Mnomain' ;;
15454	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15455	  tmp_addflag=' -i_dynamic' ;;
15456	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15457	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15458	ifc* | ifort*)			# Intel Fortran compiler
15459	  tmp_addflag=' -nofor_main' ;;
15460	lf95*)				# Lahey Fortran 8.1
15461	  whole_archive_flag_spec=
15462	  tmp_sharedflag='--shared' ;;
15463        nagfor*)                        # NAGFOR 5.3
15464          tmp_sharedflag='-Wl,-shared' ;;
15465	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15466	  tmp_sharedflag='-qmkshrobj'
15467	  tmp_addflag= ;;
15468	nvcc*)	# Cuda Compiler Driver 2.2
15469	  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'
15470	  compiler_needs_object=yes
15471	  ;;
15472	esac
15473	case `$CC -V 2>&1 | sed 5q` in
15474	*Sun\ C*)			# Sun C 5.9
15475	  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'
15476	  compiler_needs_object=yes
15477	  tmp_sharedflag='-G' ;;
15478	*Sun\ F*)			# Sun Fortran 8.3
15479	  tmp_sharedflag='-G' ;;
15480	esac
15481	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15482
15483        if test yes = "$supports_anon_versioning"; then
15484          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15485            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15486            echo "local: *; };" >> $output_objdir/$libname.ver~
15487            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15488        fi
15489
15490	case $cc_basename in
15491	tcc*)
15492	  export_dynamic_flag_spec='-rdynamic'
15493	  ;;
15494	xlf* | bgf* | bgxlf* | mpixlf*)
15495	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15496	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15497	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15498	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15499	  if test yes = "$supports_anon_versioning"; then
15500	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15501              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15502              echo "local: *; };" >> $output_objdir/$libname.ver~
15503              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15504	  fi
15505	  ;;
15506	esac
15507      else
15508        ld_shlibs=no
15509      fi
15510      ;;
15511
15512    netbsd*)
15513      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15514	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15515	wlarc=
15516      else
15517	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15518	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15519      fi
15520      ;;
15521
15522    solaris*)
15523      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15524	ld_shlibs=no
15525	cat <<_LT_EOF 1>&2
15526
15527*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15528*** create shared libraries on Solaris systems.  Therefore, libtool
15529*** is disabling shared libraries support.  We urge you to upgrade GNU
15530*** binutils to release 2.9.1 or newer.  Another option is to modify
15531*** your PATH or compiler configuration so that the native linker is
15532*** used, and then restart.
15533
15534_LT_EOF
15535      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15536	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15537	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15538      else
15539	ld_shlibs=no
15540      fi
15541      ;;
15542
15543    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15544      case `$LD -v 2>&1` in
15545        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15546	ld_shlibs=no
15547	cat <<_LT_EOF 1>&2
15548
15549*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15550*** reliably create shared libraries on SCO systems.  Therefore, libtool
15551*** is disabling shared libraries support.  We urge you to upgrade GNU
15552*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15553*** your PATH or compiler configuration so that the native linker is
15554*** used, and then restart.
15555
15556_LT_EOF
15557	;;
15558	*)
15559	  # For security reasons, it is highly recommended that you always
15560	  # use absolute paths for naming shared libraries, and exclude the
15561	  # DT_RUNPATH tag from executables and libraries.  But doing so
15562	  # requires that you compile everything twice, which is a pain.
15563	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15564	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15565	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15566	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15567	  else
15568	    ld_shlibs=no
15569	  fi
15570	;;
15571      esac
15572      ;;
15573
15574    sunos4*)
15575      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15576      wlarc=
15577      hardcode_direct=yes
15578      hardcode_shlibpath_var=no
15579      ;;
15580
15581    *)
15582      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15583	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15584	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15585      else
15586	ld_shlibs=no
15587      fi
15588      ;;
15589    esac
15590
15591    if test no = "$ld_shlibs"; then
15592      runpath_var=
15593      hardcode_libdir_flag_spec=
15594      export_dynamic_flag_spec=
15595      whole_archive_flag_spec=
15596    fi
15597  else
15598    # PORTME fill in a description of your system's linker (not GNU ld)
15599    case $host_os in
15600    aix3*)
15601      allow_undefined_flag=unsupported
15602      always_export_symbols=yes
15603      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'
15604      # Note: this linker hardcodes the directories in LIBPATH if there
15605      # are no directories specified by -L.
15606      hardcode_minus_L=yes
15607      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15608	# Neither direct hardcoding nor static linking is supported with a
15609	# broken collect2.
15610	hardcode_direct=unsupported
15611      fi
15612      ;;
15613
15614    aix[4-9]*)
15615      if test ia64 = "$host_cpu"; then
15616	# On IA64, the linker does run time linking by default, so we don't
15617	# have to do anything special.
15618	aix_use_runtimelinking=no
15619	exp_sym_flag='-Bexport'
15620	no_entry_flag=
15621      else
15622	# If we're using GNU nm, then we don't want the "-C" option.
15623	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
15624	# Without the "-l" option, or with the "-B" option, AIX nm treats
15625	# weak defined symbols like other global defined symbols, whereas
15626	# GNU nm marks them as "W".
15627	# While the 'weak' keyword is ignored in the Export File, we need
15628	# it in the Import File for the 'aix-soname' feature, so we have
15629	# to replace the "-B" option with "-P" for AIX nm.
15630	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15631	  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'
15632	else
15633	  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 == "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'
15634	fi
15635	aix_use_runtimelinking=no
15636
15637	# Test if we are trying to use run time linking or normal
15638	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15639	# have runtime linking enabled, and use it for executables.
15640	# For shared libraries, we enable/disable runtime linking
15641	# depending on the kind of the shared library created -
15642	# when "with_aix_soname,aix_use_runtimelinking" is:
15643	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15644	# "aix,yes"  lib.so          shared, rtl:yes, for executables
15645	#            lib.a           static archive
15646	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
15647	#            lib.a(lib.so.V) shared, rtl:no,  for executables
15648	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15649	#            lib.a(lib.so.V) shared, rtl:no
15650	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15651	#            lib.a           static archive
15652	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15653	  for ld_flag in $LDFLAGS; do
15654	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15655	    aix_use_runtimelinking=yes
15656	    break
15657	  fi
15658	  done
15659	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15660	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
15661	    # so we don't have lib.a shared libs to link our executables.
15662	    # We have to force runtime linking in this case.
15663	    aix_use_runtimelinking=yes
15664	    LDFLAGS="$LDFLAGS -Wl,-brtl"
15665	  fi
15666	  ;;
15667	esac
15668
15669	exp_sym_flag='-bexport'
15670	no_entry_flag='-bnoentry'
15671      fi
15672
15673      # When large executables or shared objects are built, AIX ld can
15674      # have problems creating the table of contents.  If linking a library
15675      # or program results in "error TOC overflow" add -mminimal-toc to
15676      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15677      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15678
15679      archive_cmds=''
15680      hardcode_direct=yes
15681      hardcode_direct_absolute=yes
15682      hardcode_libdir_separator=':'
15683      link_all_deplibs=yes
15684      file_list_spec='$wl-f,'
15685      case $with_aix_soname,$aix_use_runtimelinking in
15686      aix,*) ;; # traditional, no import file
15687      svr4,* | *,yes) # use import file
15688	# The Import File defines what to hardcode.
15689	hardcode_direct=no
15690	hardcode_direct_absolute=no
15691	;;
15692      esac
15693
15694      if test yes = "$GCC"; then
15695	case $host_os in aix4.[012]|aix4.[012].*)
15696	# We only want to do this on AIX 4.2 and lower, the check
15697	# below for broken collect2 doesn't work under 4.3+
15698	  collect2name=`$CC -print-prog-name=collect2`
15699	  if test -f "$collect2name" &&
15700	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15701	  then
15702	  # We have reworked collect2
15703	  :
15704	  else
15705	  # We have old collect2
15706	  hardcode_direct=unsupported
15707	  # It fails to find uninstalled libraries when the uninstalled
15708	  # path is not listed in the libpath.  Setting hardcode_minus_L
15709	  # to unsupported forces relinking
15710	  hardcode_minus_L=yes
15711	  hardcode_libdir_flag_spec='-L$libdir'
15712	  hardcode_libdir_separator=
15713	  fi
15714	  ;;
15715	esac
15716	shared_flag='-shared'
15717	if test yes = "$aix_use_runtimelinking"; then
15718	  shared_flag="$shared_flag "'$wl-G'
15719	fi
15720	# Need to ensure runtime linking is disabled for the traditional
15721	# shared library, or the linker may eventually find shared libraries
15722	# /with/ Import File - we do not want to mix them.
15723	shared_flag_aix='-shared'
15724	shared_flag_svr4='-shared $wl-G'
15725      else
15726	# not using gcc
15727	if test ia64 = "$host_cpu"; then
15728	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15729	# chokes on -Wl,-G. The following line is correct:
15730	  shared_flag='-G'
15731	else
15732	  if test yes = "$aix_use_runtimelinking"; then
15733	    shared_flag='$wl-G'
15734	  else
15735	    shared_flag='$wl-bM:SRE'
15736	  fi
15737	  shared_flag_aix='$wl-bM:SRE'
15738	  shared_flag_svr4='$wl-G'
15739	fi
15740      fi
15741
15742      export_dynamic_flag_spec='$wl-bexpall'
15743      # It seems that -bexpall does not export symbols beginning with
15744      # underscore (_), so it is better to generate a list of symbols to export.
15745      always_export_symbols=yes
15746      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15747	# Warning - without using the other runtime loading flags (-brtl),
15748	# -berok will link without error, but may produce a broken library.
15749	allow_undefined_flag='-berok'
15750        # Determine the default libpath from the value encoded in an
15751        # empty executable.
15752        if test set = "${lt_cv_aix_libpath+set}"; then
15753  aix_libpath=$lt_cv_aix_libpath
15754else
15755  if ${lt_cv_aix_libpath_+:} false; then :
15756  $as_echo_n "(cached) " >&6
15757else
15758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15759/* end confdefs.h.  */
15760
15761int
15762main ()
15763{
15764
15765  ;
15766  return 0;
15767}
15768_ACEOF
15769if ac_fn_c_try_link "$LINENO"; then :
15770
15771  lt_aix_libpath_sed='
15772      /Import File Strings/,/^$/ {
15773	  /^0/ {
15774	      s/^0  *\([^ ]*\) *$/\1/
15775	      p
15776	  }
15777      }'
15778  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15779  # Check for a 64-bit object if we didn't find anything.
15780  if test -z "$lt_cv_aix_libpath_"; then
15781    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15782  fi
15783fi
15784rm -f core conftest.err conftest.$ac_objext \
15785    conftest$ac_exeext conftest.$ac_ext
15786  if test -z "$lt_cv_aix_libpath_"; then
15787    lt_cv_aix_libpath_=/usr/lib:/lib
15788  fi
15789
15790fi
15791
15792  aix_libpath=$lt_cv_aix_libpath_
15793fi
15794
15795        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15796        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
15797      else
15798	if test ia64 = "$host_cpu"; then
15799	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15800	  allow_undefined_flag="-z nodefs"
15801	  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"
15802	else
15803	 # Determine the default libpath from the value encoded in an
15804	 # empty executable.
15805	 if test set = "${lt_cv_aix_libpath+set}"; then
15806  aix_libpath=$lt_cv_aix_libpath
15807else
15808  if ${lt_cv_aix_libpath_+:} false; then :
15809  $as_echo_n "(cached) " >&6
15810else
15811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15812/* end confdefs.h.  */
15813
15814int
15815main ()
15816{
15817
15818  ;
15819  return 0;
15820}
15821_ACEOF
15822if ac_fn_c_try_link "$LINENO"; then :
15823
15824  lt_aix_libpath_sed='
15825      /Import File Strings/,/^$/ {
15826	  /^0/ {
15827	      s/^0  *\([^ ]*\) *$/\1/
15828	      p
15829	  }
15830      }'
15831  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15832  # Check for a 64-bit object if we didn't find anything.
15833  if test -z "$lt_cv_aix_libpath_"; then
15834    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15835  fi
15836fi
15837rm -f core conftest.err conftest.$ac_objext \
15838    conftest$ac_exeext conftest.$ac_ext
15839  if test -z "$lt_cv_aix_libpath_"; then
15840    lt_cv_aix_libpath_=/usr/lib:/lib
15841  fi
15842
15843fi
15844
15845  aix_libpath=$lt_cv_aix_libpath_
15846fi
15847
15848	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15849	  # Warning - without using the other run time loading flags,
15850	  # -berok will link without error, but may produce a broken library.
15851	  no_undefined_flag=' $wl-bernotok'
15852	  allow_undefined_flag=' $wl-berok'
15853	  if test yes = "$with_gnu_ld"; then
15854	    # We only use this code for GNU lds that support --whole-archive.
15855	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15856	  else
15857	    # Exported symbols can be pulled into shared objects from archives
15858	    whole_archive_flag_spec='$convenience'
15859	  fi
15860	  archive_cmds_need_lc=yes
15861	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15862	  # -brtl affects multiple linker settings, -berok does not and is overridden later
15863	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15864	  if test svr4 != "$with_aix_soname"; then
15865	    # This is similar to how AIX traditionally builds its shared libraries.
15866	    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'
15867	  fi
15868	  if test aix != "$with_aix_soname"; then
15869	    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'
15870	  else
15871	    # used by -dlpreopen to get the symbols
15872	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
15873	  fi
15874	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
15875	fi
15876      fi
15877      ;;
15878
15879    amigaos*)
15880      case $host_cpu in
15881      powerpc)
15882            # see comment about AmigaOS4 .so support
15883            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15884            archive_expsym_cmds=''
15885        ;;
15886      m68k)
15887            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)'
15888            hardcode_libdir_flag_spec='-L$libdir'
15889            hardcode_minus_L=yes
15890        ;;
15891      esac
15892      ;;
15893
15894    bsdi[45]*)
15895      export_dynamic_flag_spec=-rdynamic
15896      ;;
15897
15898    cygwin* | mingw* | pw32* | cegcc*)
15899      # When not using gcc, we currently assume that we are using
15900      # Microsoft Visual C++.
15901      # hardcode_libdir_flag_spec is actually meaningless, as there is
15902      # no search path for DLLs.
15903      case $cc_basename in
15904      cl*)
15905	# Native MSVC
15906	hardcode_libdir_flag_spec=' '
15907	allow_undefined_flag=unsupported
15908	always_export_symbols=yes
15909	file_list_spec='@'
15910	# Tell ltmain to make .lib files, not .a files.
15911	libext=lib
15912	# Tell ltmain to make .dll files, not .so files.
15913	shrext_cmds=.dll
15914	# FIXME: Setting linknames here is a bad hack.
15915	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15916	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15917            cp "$export_symbols" "$output_objdir/$soname.def";
15918            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15919          else
15920            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15921          fi~
15922          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15923          linknames='
15924	# The linker will not automatically build a static lib if we build a DLL.
15925	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15926	enable_shared_with_static_runtimes=yes
15927	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15928	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15929	# Don't use ranlib
15930	old_postinstall_cmds='chmod 644 $oldlib'
15931	postlink_cmds='lt_outputfile="@OUTPUT@"~
15932          lt_tool_outputfile="@TOOL_OUTPUT@"~
15933          case $lt_outputfile in
15934            *.exe|*.EXE) ;;
15935            *)
15936              lt_outputfile=$lt_outputfile.exe
15937              lt_tool_outputfile=$lt_tool_outputfile.exe
15938              ;;
15939          esac~
15940          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15941            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15942            $RM "$lt_outputfile.manifest";
15943          fi'
15944	;;
15945      *)
15946	# Assume MSVC wrapper
15947	hardcode_libdir_flag_spec=' '
15948	allow_undefined_flag=unsupported
15949	# Tell ltmain to make .lib files, not .a files.
15950	libext=lib
15951	# Tell ltmain to make .dll files, not .so files.
15952	shrext_cmds=.dll
15953	# FIXME: Setting linknames here is a bad hack.
15954	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15955	# The linker will automatically build a .lib file if we build a DLL.
15956	old_archive_from_new_cmds='true'
15957	# FIXME: Should let the user specify the lib program.
15958	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15959	enable_shared_with_static_runtimes=yes
15960	;;
15961      esac
15962      ;;
15963
15964    darwin* | rhapsody*)
15965
15966
15967  archive_cmds_need_lc=no
15968  hardcode_direct=no
15969  hardcode_automatic=yes
15970  hardcode_shlibpath_var=unsupported
15971  if test yes = "$lt_cv_ld_force_load"; then
15972    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\"`'
15973
15974  else
15975    whole_archive_flag_spec=''
15976  fi
15977  link_all_deplibs=yes
15978  allow_undefined_flag=$_lt_dar_allow_undefined
15979  case $cc_basename in
15980     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15981     *) _lt_dar_can_shared=$GCC ;;
15982  esac
15983  if test yes = "$_lt_dar_can_shared"; then
15984    output_verbose_link_cmd=func_echo_all
15985    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
15986    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15987    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"
15988    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"
15989
15990  else
15991  ld_shlibs=no
15992  fi
15993
15994      ;;
15995
15996    dgux*)
15997      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15998      hardcode_libdir_flag_spec='-L$libdir'
15999      hardcode_shlibpath_var=no
16000      ;;
16001
16002    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16003    # support.  Future versions do this automatically, but an explicit c++rt0.o
16004    # does not break anything, and helps significantly (at the cost of a little
16005    # extra space).
16006    freebsd2.2*)
16007      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16008      hardcode_libdir_flag_spec='-R$libdir'
16009      hardcode_direct=yes
16010      hardcode_shlibpath_var=no
16011      ;;
16012
16013    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16014    freebsd2.*)
16015      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16016      hardcode_direct=yes
16017      hardcode_minus_L=yes
16018      hardcode_shlibpath_var=no
16019      ;;
16020
16021    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16022    freebsd* | dragonfly*)
16023      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16024      hardcode_libdir_flag_spec='-R$libdir'
16025      hardcode_direct=yes
16026      hardcode_shlibpath_var=no
16027      ;;
16028
16029    hpux9*)
16030      if test yes = "$GCC"; then
16031	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'
16032      else
16033	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'
16034      fi
16035      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16036      hardcode_libdir_separator=:
16037      hardcode_direct=yes
16038
16039      # hardcode_minus_L: Not really in the search PATH,
16040      # but as the default location of the library.
16041      hardcode_minus_L=yes
16042      export_dynamic_flag_spec='$wl-E'
16043      ;;
16044
16045    hpux10*)
16046      if test yes,no = "$GCC,$with_gnu_ld"; then
16047	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16048      else
16049	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16050      fi
16051      if test no = "$with_gnu_ld"; then
16052	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16053	hardcode_libdir_separator=:
16054	hardcode_direct=yes
16055	hardcode_direct_absolute=yes
16056	export_dynamic_flag_spec='$wl-E'
16057	# hardcode_minus_L: Not really in the search PATH,
16058	# but as the default location of the library.
16059	hardcode_minus_L=yes
16060      fi
16061      ;;
16062
16063    hpux11*)
16064      if test yes,no = "$GCC,$with_gnu_ld"; then
16065	case $host_cpu in
16066	hppa*64*)
16067	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16068	  ;;
16069	ia64*)
16070	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16071	  ;;
16072	*)
16073	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16074	  ;;
16075	esac
16076      else
16077	case $host_cpu in
16078	hppa*64*)
16079	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16080	  ;;
16081	ia64*)
16082	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16083	  ;;
16084	*)
16085
16086	  # Older versions of the 11.00 compiler do not understand -b yet
16087	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16088	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16089$as_echo_n "checking if $CC understands -b... " >&6; }
16090if ${lt_cv_prog_compiler__b+:} false; then :
16091  $as_echo_n "(cached) " >&6
16092else
16093  lt_cv_prog_compiler__b=no
16094   save_LDFLAGS=$LDFLAGS
16095   LDFLAGS="$LDFLAGS -b"
16096   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16097   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16098     # The linker can only warn and ignore the option if not recognized
16099     # So say no if there are warnings
16100     if test -s conftest.err; then
16101       # Append any errors to the config.log.
16102       cat conftest.err 1>&5
16103       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16104       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16105       if diff conftest.exp conftest.er2 >/dev/null; then
16106         lt_cv_prog_compiler__b=yes
16107       fi
16108     else
16109       lt_cv_prog_compiler__b=yes
16110     fi
16111   fi
16112   $RM -r conftest*
16113   LDFLAGS=$save_LDFLAGS
16114
16115fi
16116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16117$as_echo "$lt_cv_prog_compiler__b" >&6; }
16118
16119if test yes = "$lt_cv_prog_compiler__b"; then
16120    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16121else
16122    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16123fi
16124
16125	  ;;
16126	esac
16127      fi
16128      if test no = "$with_gnu_ld"; then
16129	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16130	hardcode_libdir_separator=:
16131
16132	case $host_cpu in
16133	hppa*64*|ia64*)
16134	  hardcode_direct=no
16135	  hardcode_shlibpath_var=no
16136	  ;;
16137	*)
16138	  hardcode_direct=yes
16139	  hardcode_direct_absolute=yes
16140	  export_dynamic_flag_spec='$wl-E'
16141
16142	  # hardcode_minus_L: Not really in the search PATH,
16143	  # but as the default location of the library.
16144	  hardcode_minus_L=yes
16145	  ;;
16146	esac
16147      fi
16148      ;;
16149
16150    irix5* | irix6* | nonstopux*)
16151      if test yes = "$GCC"; then
16152	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'
16153	# Try to use the -exported_symbol ld option, if it does not
16154	# work, assume that -exports_file does not work either and
16155	# implicitly export all symbols.
16156	# This should be the same for all languages, so no per-tag cache variable.
16157	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16158$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16159if ${lt_cv_irix_exported_symbol+:} false; then :
16160  $as_echo_n "(cached) " >&6
16161else
16162  save_LDFLAGS=$LDFLAGS
16163	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16164	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16165/* end confdefs.h.  */
16166int foo (void) { return 0; }
16167_ACEOF
16168if ac_fn_c_try_link "$LINENO"; then :
16169  lt_cv_irix_exported_symbol=yes
16170else
16171  lt_cv_irix_exported_symbol=no
16172fi
16173rm -f core conftest.err conftest.$ac_objext \
16174    conftest$ac_exeext conftest.$ac_ext
16175           LDFLAGS=$save_LDFLAGS
16176fi
16177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16178$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16179	if test yes = "$lt_cv_irix_exported_symbol"; then
16180          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'
16181	fi
16182      else
16183	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'
16184	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'
16185      fi
16186      archive_cmds_need_lc='no'
16187      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16188      hardcode_libdir_separator=:
16189      inherit_rpath=yes
16190      link_all_deplibs=yes
16191      ;;
16192
16193    linux*)
16194      case $cc_basename in
16195      tcc*)
16196	# Fabrice Bellard et al's Tiny C Compiler
16197	ld_shlibs=yes
16198	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16199	;;
16200      esac
16201      ;;
16202
16203    netbsd*)
16204      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16205	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16206      else
16207	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16208      fi
16209      hardcode_libdir_flag_spec='-R$libdir'
16210      hardcode_direct=yes
16211      hardcode_shlibpath_var=no
16212      ;;
16213
16214    newsos6)
16215      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16216      hardcode_direct=yes
16217      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16218      hardcode_libdir_separator=:
16219      hardcode_shlibpath_var=no
16220      ;;
16221
16222    *nto* | *qnx*)
16223      ;;
16224
16225    openbsd* | bitrig*)
16226      if test -f /usr/libexec/ld.so; then
16227	hardcode_direct=yes
16228	hardcode_shlibpath_var=no
16229	hardcode_direct_absolute=yes
16230	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16231	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16232	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16233	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16234	  export_dynamic_flag_spec='$wl-E'
16235	else
16236	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16237	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16238	fi
16239      else
16240	ld_shlibs=no
16241      fi
16242      ;;
16243
16244    os2*)
16245      hardcode_libdir_flag_spec='-L$libdir'
16246      hardcode_minus_L=yes
16247      allow_undefined_flag=unsupported
16248      shrext_cmds=.dll
16249      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16250	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16251	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16252	$ECHO EXPORTS >> $output_objdir/$libname.def~
16253	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16254	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16255	emximp -o $lib $output_objdir/$libname.def'
16256      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16257	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16258	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16259	$ECHO EXPORTS >> $output_objdir/$libname.def~
16260	prefix_cmds="$SED"~
16261	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16262	  prefix_cmds="$prefix_cmds -e 1d";
16263	fi~
16264	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16265	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16266	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16267	emximp -o $lib $output_objdir/$libname.def'
16268      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16269      enable_shared_with_static_runtimes=yes
16270      ;;
16271
16272    osf3*)
16273      if test yes = "$GCC"; then
16274	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16275	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'
16276      else
16277	allow_undefined_flag=' -expect_unresolved \*'
16278	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'
16279      fi
16280      archive_cmds_need_lc='no'
16281      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16282      hardcode_libdir_separator=:
16283      ;;
16284
16285    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16286      if test yes = "$GCC"; then
16287	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16288	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'
16289	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16290      else
16291	allow_undefined_flag=' -expect_unresolved \*'
16292	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'
16293	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~
16294          $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'
16295
16296	# Both c and cxx compiler support -rpath directly
16297	hardcode_libdir_flag_spec='-rpath $libdir'
16298      fi
16299      archive_cmds_need_lc='no'
16300      hardcode_libdir_separator=:
16301      ;;
16302
16303    solaris*)
16304      no_undefined_flag=' -z defs'
16305      if test yes = "$GCC"; then
16306	wlarc='$wl'
16307	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16308	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16309          $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'
16310      else
16311	case `$CC -V 2>&1` in
16312	*"Compilers 5.0"*)
16313	  wlarc=''
16314	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16315	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16316            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16317	  ;;
16318	*)
16319	  wlarc='$wl'
16320	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16321	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16322            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16323	  ;;
16324	esac
16325      fi
16326      hardcode_libdir_flag_spec='-R$libdir'
16327      hardcode_shlibpath_var=no
16328      case $host_os in
16329      solaris2.[0-5] | solaris2.[0-5].*) ;;
16330      *)
16331	# The compiler driver will combine and reorder linker options,
16332	# but understands '-z linker_flag'.  GCC discards it without '$wl',
16333	# but is careful enough not to reorder.
16334	# Supported since Solaris 2.6 (maybe 2.5.1?)
16335	if test yes = "$GCC"; then
16336	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16337	else
16338	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16339	fi
16340	;;
16341      esac
16342      link_all_deplibs=yes
16343      ;;
16344
16345    sunos4*)
16346      if test sequent = "$host_vendor"; then
16347	# Use $CC to link under sequent, because it throws in some extra .o
16348	# files that make .init and .fini sections work.
16349	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16350      else
16351	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16352      fi
16353      hardcode_libdir_flag_spec='-L$libdir'
16354      hardcode_direct=yes
16355      hardcode_minus_L=yes
16356      hardcode_shlibpath_var=no
16357      ;;
16358
16359    sysv4)
16360      case $host_vendor in
16361	sni)
16362	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16363	  hardcode_direct=yes # is this really true???
16364	;;
16365	siemens)
16366	  ## LD is ld it makes a PLAMLIB
16367	  ## CC just makes a GrossModule.
16368	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16369	  reload_cmds='$CC -r -o $output$reload_objs'
16370	  hardcode_direct=no
16371        ;;
16372	motorola)
16373	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16374	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16375	;;
16376      esac
16377      runpath_var='LD_RUN_PATH'
16378      hardcode_shlibpath_var=no
16379      ;;
16380
16381    sysv4.3*)
16382      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16383      hardcode_shlibpath_var=no
16384      export_dynamic_flag_spec='-Bexport'
16385      ;;
16386
16387    sysv4*MP*)
16388      if test -d /usr/nec; then
16389	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16390	hardcode_shlibpath_var=no
16391	runpath_var=LD_RUN_PATH
16392	hardcode_runpath_var=yes
16393	ld_shlibs=yes
16394      fi
16395      ;;
16396
16397    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16398      no_undefined_flag='$wl-z,text'
16399      archive_cmds_need_lc=no
16400      hardcode_shlibpath_var=no
16401      runpath_var='LD_RUN_PATH'
16402
16403      if test yes = "$GCC"; then
16404	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16405	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16406      else
16407	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16408	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16409      fi
16410      ;;
16411
16412    sysv5* | sco3.2v5* | sco5v6*)
16413      # Note: We CANNOT use -z defs as we might desire, because we do not
16414      # link with -lc, and that would cause any symbols used from libc to
16415      # always be unresolved, which means just about no library would
16416      # ever link correctly.  If we're not using GNU ld we use -z text
16417      # though, which does catch some bad symbols but isn't as heavy-handed
16418      # as -z defs.
16419      no_undefined_flag='$wl-z,text'
16420      allow_undefined_flag='$wl-z,nodefs'
16421      archive_cmds_need_lc=no
16422      hardcode_shlibpath_var=no
16423      hardcode_libdir_flag_spec='$wl-R,$libdir'
16424      hardcode_libdir_separator=':'
16425      link_all_deplibs=yes
16426      export_dynamic_flag_spec='$wl-Bexport'
16427      runpath_var='LD_RUN_PATH'
16428
16429      if test yes = "$GCC"; then
16430	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16431	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16432      else
16433	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16434	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16435      fi
16436      ;;
16437
16438    uts4*)
16439      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16440      hardcode_libdir_flag_spec='-L$libdir'
16441      hardcode_shlibpath_var=no
16442      ;;
16443
16444    *)
16445      ld_shlibs=no
16446      ;;
16447    esac
16448
16449    if test sni = "$host_vendor"; then
16450      case $host in
16451      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16452	export_dynamic_flag_spec='$wl-Blargedynsym'
16453	;;
16454      esac
16455    fi
16456  fi
16457
16458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16459$as_echo "$ld_shlibs" >&6; }
16460test no = "$ld_shlibs" && can_build_shared=no
16461
16462with_gnu_ld=$with_gnu_ld
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478#
16479# Do we need to explicitly link libc?
16480#
16481case "x$archive_cmds_need_lc" in
16482x|xyes)
16483  # Assume -lc should be added
16484  archive_cmds_need_lc=yes
16485
16486  if test yes,yes = "$GCC,$enable_shared"; then
16487    case $archive_cmds in
16488    *'~'*)
16489      # FIXME: we may have to deal with multi-command sequences.
16490      ;;
16491    '$CC '*)
16492      # Test whether the compiler implicitly links with -lc since on some
16493      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16494      # to ld, don't add -lc before -lgcc.
16495      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16496$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16497if ${lt_cv_archive_cmds_need_lc+:} false; then :
16498  $as_echo_n "(cached) " >&6
16499else
16500  $RM conftest*
16501	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16502
16503	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16504  (eval $ac_compile) 2>&5
16505  ac_status=$?
16506  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16507  test $ac_status = 0; } 2>conftest.err; then
16508	  soname=conftest
16509	  lib=conftest
16510	  libobjs=conftest.$ac_objext
16511	  deplibs=
16512	  wl=$lt_prog_compiler_wl
16513	  pic_flag=$lt_prog_compiler_pic
16514	  compiler_flags=-v
16515	  linker_flags=-v
16516	  verstring=
16517	  output_objdir=.
16518	  libname=conftest
16519	  lt_save_allow_undefined_flag=$allow_undefined_flag
16520	  allow_undefined_flag=
16521	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16522  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16523  ac_status=$?
16524  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16525  test $ac_status = 0; }
16526	  then
16527	    lt_cv_archive_cmds_need_lc=no
16528	  else
16529	    lt_cv_archive_cmds_need_lc=yes
16530	  fi
16531	  allow_undefined_flag=$lt_save_allow_undefined_flag
16532	else
16533	  cat conftest.err 1>&5
16534	fi
16535	$RM conftest*
16536
16537fi
16538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16539$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16540      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16541      ;;
16542    esac
16543  fi
16544  ;;
16545esac
16546
16547
16548
16549
16550
16551
16552
16553
16554
16555
16556
16557
16558
16559
16560
16561
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16699$as_echo_n "checking dynamic linker characteristics... " >&6; }
16700
16701if test yes = "$GCC"; then
16702  case $host_os in
16703    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16704    *) lt_awk_arg='/^libraries:/' ;;
16705  esac
16706  case $host_os in
16707    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16708    *) lt_sed_strip_eq='s|=/|/|g' ;;
16709  esac
16710  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16711  case $lt_search_path_spec in
16712  *\;*)
16713    # if the path contains ";" then we assume it to be the separator
16714    # otherwise default to the standard path separator (i.e. ":") - it is
16715    # assumed that no part of a normal pathname contains ";" but that should
16716    # okay in the real world where ";" in dirpaths is itself problematic.
16717    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16718    ;;
16719  *)
16720    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16721    ;;
16722  esac
16723  # Ok, now we have the path, separated by spaces, we can step through it
16724  # and add multilib dir if necessary...
16725  lt_tmp_lt_search_path_spec=
16726  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16727  # ...but if some path component already ends with the multilib dir we assume
16728  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16729  case "$lt_multi_os_dir; $lt_search_path_spec " in
16730  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16731    lt_multi_os_dir=
16732    ;;
16733  esac
16734  for lt_sys_path in $lt_search_path_spec; do
16735    if test -d "$lt_sys_path$lt_multi_os_dir"; then
16736      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16737    elif test -n "$lt_multi_os_dir"; then
16738      test -d "$lt_sys_path" && \
16739	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16740    fi
16741  done
16742  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16743BEGIN {RS = " "; FS = "/|\n";} {
16744  lt_foo = "";
16745  lt_count = 0;
16746  for (lt_i = NF; lt_i > 0; lt_i--) {
16747    if ($lt_i != "" && $lt_i != ".") {
16748      if ($lt_i == "..") {
16749        lt_count++;
16750      } else {
16751        if (lt_count == 0) {
16752          lt_foo = "/" $lt_i lt_foo;
16753        } else {
16754          lt_count--;
16755        }
16756      }
16757    }
16758  }
16759  if (lt_foo != "") { lt_freq[lt_foo]++; }
16760  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16761}'`
16762  # AWK program above erroneously prepends '/' to C:/dos/paths
16763  # for these hosts.
16764  case $host_os in
16765    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16766      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16767  esac
16768  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16769else
16770  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16771fi
16772library_names_spec=
16773libname_spec='lib$name'
16774soname_spec=
16775shrext_cmds=.so
16776postinstall_cmds=
16777postuninstall_cmds=
16778finish_cmds=
16779finish_eval=
16780shlibpath_var=
16781shlibpath_overrides_runpath=unknown
16782version_type=none
16783dynamic_linker="$host_os ld.so"
16784sys_lib_dlsearch_path_spec="/lib /usr/lib"
16785need_lib_prefix=unknown
16786hardcode_into_libs=no
16787
16788# when you set need_version to no, make sure it does not cause -set_version
16789# flags to be left without arguments
16790need_version=unknown
16791
16792case $host_os in
16793aix3*)
16794  version_type=linux # correct to gnu/linux during the next big refactor
16795  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16796  shlibpath_var=LIBPATH
16797
16798  # AIX 3 has no versioning support, so we append a major version to the name.
16799  soname_spec='$libname$release$shared_ext$major'
16800  ;;
16801
16802aix[4-9]*)
16803  version_type=linux # correct to gnu/linux during the next big refactor
16804  need_lib_prefix=no
16805  need_version=no
16806  hardcode_into_libs=yes
16807  if test ia64 = "$host_cpu"; then
16808    # AIX 5 supports IA64
16809    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16810    shlibpath_var=LD_LIBRARY_PATH
16811  else
16812    # With GCC up to 2.95.x, collect2 would create an import file
16813    # for dependence libraries.  The import file would start with
16814    # the line '#! .'.  This would cause the generated library to
16815    # depend on '.', always an invalid library.  This was fixed in
16816    # development snapshots of GCC prior to 3.0.
16817    case $host_os in
16818      aix4 | aix4.[01] | aix4.[01].*)
16819      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16820	   echo ' yes '
16821	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16822	:
16823      else
16824	can_build_shared=no
16825      fi
16826      ;;
16827    esac
16828    # Using Import Files as archive members, it is possible to support
16829    # filename-based versioning of shared library archives on AIX. While
16830    # this would work for both with and without runtime linking, it will
16831    # prevent static linking of such archives. So we do filename-based
16832    # shared library versioning with .so extension only, which is used
16833    # when both runtime linking and shared linking is enabled.
16834    # Unfortunately, runtime linking may impact performance, so we do
16835    # not want this to be the default eventually. Also, we use the
16836    # versioned .so libs for executables only if there is the -brtl
16837    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16838    # To allow for filename-based versioning support, we need to create
16839    # libNAME.so.V as an archive file, containing:
16840    # *) an Import File, referring to the versioned filename of the
16841    #    archive as well as the shared archive member, telling the
16842    #    bitwidth (32 or 64) of that shared object, and providing the
16843    #    list of exported symbols of that shared object, eventually
16844    #    decorated with the 'weak' keyword
16845    # *) the shared object with the F_LOADONLY flag set, to really avoid
16846    #    it being seen by the linker.
16847    # At run time we better use the real file rather than another symlink,
16848    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16849
16850    case $with_aix_soname,$aix_use_runtimelinking in
16851    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16852    # soname into executable. Probably we can add versioning support to
16853    # collect2, so additional links can be useful in future.
16854    aix,yes) # traditional libtool
16855      dynamic_linker='AIX unversionable lib.so'
16856      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16857      # instead of lib<name>.a to let people know that these are not
16858      # typical AIX shared libraries.
16859      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16860      ;;
16861    aix,no) # traditional AIX only
16862      dynamic_linker='AIX lib.a(lib.so.V)'
16863      # We preserve .a as extension for shared libraries through AIX4.2
16864      # and later when we are not doing run time linking.
16865      library_names_spec='$libname$release.a $libname.a'
16866      soname_spec='$libname$release$shared_ext$major'
16867      ;;
16868    svr4,*) # full svr4 only
16869      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16870      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16871      # We do not specify a path in Import Files, so LIBPATH fires.
16872      shlibpath_overrides_runpath=yes
16873      ;;
16874    *,yes) # both, prefer svr4
16875      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16876      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16877      # unpreferred sharedlib libNAME.a needs extra handling
16878      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"'
16879      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"'
16880      # We do not specify a path in Import Files, so LIBPATH fires.
16881      shlibpath_overrides_runpath=yes
16882      ;;
16883    *,no) # both, prefer aix
16884      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16885      library_names_spec='$libname$release.a $libname.a'
16886      soname_spec='$libname$release$shared_ext$major'
16887      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16888      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)'
16889      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"'
16890      ;;
16891    esac
16892    shlibpath_var=LIBPATH
16893  fi
16894  ;;
16895
16896amigaos*)
16897  case $host_cpu in
16898  powerpc)
16899    # Since July 2007 AmigaOS4 officially supports .so libraries.
16900    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16901    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16902    ;;
16903  m68k)
16904    library_names_spec='$libname.ixlibrary $libname.a'
16905    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16906    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'
16907    ;;
16908  esac
16909  ;;
16910
16911beos*)
16912  library_names_spec='$libname$shared_ext'
16913  dynamic_linker="$host_os ld.so"
16914  shlibpath_var=LIBRARY_PATH
16915  ;;
16916
16917bsdi[45]*)
16918  version_type=linux # correct to gnu/linux during the next big refactor
16919  need_version=no
16920  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16921  soname_spec='$libname$release$shared_ext$major'
16922  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16923  shlibpath_var=LD_LIBRARY_PATH
16924  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16925  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16926  # the default ld.so.conf also contains /usr/contrib/lib and
16927  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16928  # libtool to hard-code these into programs
16929  ;;
16930
16931cygwin* | mingw* | pw32* | cegcc*)
16932  version_type=windows
16933  shrext_cmds=.dll
16934  need_version=no
16935  need_lib_prefix=no
16936
16937  case $GCC,$cc_basename in
16938  yes,*)
16939    # gcc
16940    library_names_spec='$libname.dll.a'
16941    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16942    postinstall_cmds='base_file=`basename \$file`~
16943      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16944      dldir=$destdir/`dirname \$dlpath`~
16945      test -d \$dldir || mkdir -p \$dldir~
16946      $install_prog $dir/$dlname \$dldir/$dlname~
16947      chmod a+x \$dldir/$dlname~
16948      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16949        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16950      fi'
16951    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16952      dlpath=$dir/\$dldll~
16953       $RM \$dlpath'
16954    shlibpath_overrides_runpath=yes
16955
16956    case $host_os in
16957    cygwin*)
16958      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16959      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16960
16961      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16962      ;;
16963    mingw* | cegcc*)
16964      # MinGW DLLs use traditional 'lib' prefix
16965      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16966      ;;
16967    pw32*)
16968      # pw32 DLLs use 'pw' prefix rather than 'lib'
16969      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16970      ;;
16971    esac
16972    dynamic_linker='Win32 ld.exe'
16973    ;;
16974
16975  *,cl*)
16976    # Native MSVC
16977    libname_spec='$name'
16978    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16979    library_names_spec='$libname.dll.lib'
16980
16981    case $build_os in
16982    mingw*)
16983      sys_lib_search_path_spec=
16984      lt_save_ifs=$IFS
16985      IFS=';'
16986      for lt_path in $LIB
16987      do
16988        IFS=$lt_save_ifs
16989        # Let DOS variable expansion print the short 8.3 style file name.
16990        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16991        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16992      done
16993      IFS=$lt_save_ifs
16994      # Convert to MSYS style.
16995      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16996      ;;
16997    cygwin*)
16998      # Convert to unix form, then to dos form, then back to unix form
16999      # but this time dos style (no spaces!) so that the unix form looks
17000      # like /cygdrive/c/PROGRA~1:/cygdr...
17001      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17002      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17003      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17004      ;;
17005    *)
17006      sys_lib_search_path_spec=$LIB
17007      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17008        # It is most probably a Windows format PATH.
17009        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17010      else
17011        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17012      fi
17013      # FIXME: find the short name or the path components, as spaces are
17014      # common. (e.g. "Program Files" -> "PROGRA~1")
17015      ;;
17016    esac
17017
17018    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17019    postinstall_cmds='base_file=`basename \$file`~
17020      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17021      dldir=$destdir/`dirname \$dlpath`~
17022      test -d \$dldir || mkdir -p \$dldir~
17023      $install_prog $dir/$dlname \$dldir/$dlname'
17024    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17025      dlpath=$dir/\$dldll~
17026       $RM \$dlpath'
17027    shlibpath_overrides_runpath=yes
17028    dynamic_linker='Win32 link.exe'
17029    ;;
17030
17031  *)
17032    # Assume MSVC wrapper
17033    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17034    dynamic_linker='Win32 ld.exe'
17035    ;;
17036  esac
17037  # FIXME: first we should search . and the directory the executable is in
17038  shlibpath_var=PATH
17039  ;;
17040
17041darwin* | rhapsody*)
17042  dynamic_linker="$host_os dyld"
17043  version_type=darwin
17044  need_lib_prefix=no
17045  need_version=no
17046  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17047  soname_spec='$libname$release$major$shared_ext'
17048  shlibpath_overrides_runpath=yes
17049  shlibpath_var=DYLD_LIBRARY_PATH
17050  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17051
17052  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17053  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17054  ;;
17055
17056dgux*)
17057  version_type=linux # correct to gnu/linux during the next big refactor
17058  need_lib_prefix=no
17059  need_version=no
17060  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17061  soname_spec='$libname$release$shared_ext$major'
17062  shlibpath_var=LD_LIBRARY_PATH
17063  ;;
17064
17065freebsd* | dragonfly*)
17066  # DragonFly does not have aout.  When/if they implement a new
17067  # versioning mechanism, adjust this.
17068  if test -x /usr/bin/objformat; then
17069    objformat=`/usr/bin/objformat`
17070  else
17071    case $host_os in
17072    freebsd[23].*) objformat=aout ;;
17073    *) objformat=elf ;;
17074    esac
17075  fi
17076  # Handle Gentoo/FreeBSD as it was Linux
17077  case $host_vendor in
17078    gentoo)
17079      version_type=linux ;;
17080    *)
17081      version_type=freebsd-$objformat ;;
17082  esac
17083
17084  case $version_type in
17085    freebsd-elf*)
17086      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17087      need_version=no
17088      need_lib_prefix=no
17089      ;;
17090    freebsd-*)
17091      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17092      need_version=yes
17093      ;;
17094    linux)
17095      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17096      soname_spec='${libname}${release}${shared_ext}$major'
17097      need_lib_prefix=no
17098      need_version=no
17099      ;;
17100  esac
17101  shlibpath_var=LD_LIBRARY_PATH
17102  case $host_os in
17103  freebsd2.*)
17104    shlibpath_overrides_runpath=yes
17105    ;;
17106  freebsd3.[01]* | freebsdelf3.[01]*)
17107    shlibpath_overrides_runpath=yes
17108    hardcode_into_libs=yes
17109    ;;
17110  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17111  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17112    shlibpath_overrides_runpath=no
17113    hardcode_into_libs=yes
17114    ;;
17115  *) # from 4.6 on, and DragonFly
17116    shlibpath_overrides_runpath=yes
17117    hardcode_into_libs=yes
17118    ;;
17119  esac
17120  ;;
17121
17122haiku*)
17123  version_type=linux # correct to gnu/linux during the next big refactor
17124  need_lib_prefix=no
17125  need_version=no
17126  dynamic_linker="$host_os runtime_loader"
17127  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17128  soname_spec='$libname$release$shared_ext$major'
17129  shlibpath_var=LIBRARY_PATH
17130  shlibpath_overrides_runpath=no
17131  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17132  hardcode_into_libs=yes
17133  ;;
17134
17135hpux9* | hpux10* | hpux11*)
17136  # Give a soname corresponding to the major version so that dld.sl refuses to
17137  # link against other versions.
17138  version_type=sunos
17139  need_lib_prefix=no
17140  need_version=no
17141  case $host_cpu in
17142  ia64*)
17143    shrext_cmds='.so'
17144    hardcode_into_libs=yes
17145    dynamic_linker="$host_os dld.so"
17146    shlibpath_var=LD_LIBRARY_PATH
17147    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17148    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17149    soname_spec='$libname$release$shared_ext$major'
17150    if test 32 = "$HPUX_IA64_MODE"; then
17151      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17152    else
17153      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17154    fi
17155    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17156    ;;
17157  hppa*64*)
17158    shrext_cmds='.sl'
17159    hardcode_into_libs=yes
17160    dynamic_linker="$host_os dld.sl"
17161    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17162    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17163    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17164    soname_spec='$libname$release$shared_ext$major'
17165    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17166    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17167    ;;
17168  *)
17169    shrext_cmds='.sl'
17170    dynamic_linker="$host_os dld.sl"
17171    shlibpath_var=SHLIB_PATH
17172    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17173    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17174    soname_spec='$libname$release$shared_ext$major'
17175    ;;
17176  esac
17177  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17178  postinstall_cmds='chmod 555 $lib'
17179  # or fails outright, so override atomically:
17180  install_override_mode=555
17181  ;;
17182
17183interix[3-9]*)
17184  version_type=linux # correct to gnu/linux during the next big refactor
17185  need_lib_prefix=no
17186  need_version=no
17187  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17188  soname_spec='$libname$release$shared_ext$major'
17189  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17190  shlibpath_var=LD_LIBRARY_PATH
17191  shlibpath_overrides_runpath=no
17192  hardcode_into_libs=yes
17193  ;;
17194
17195irix5* | irix6* | nonstopux*)
17196  case $host_os in
17197    nonstopux*) version_type=nonstopux ;;
17198    *)
17199	if test yes = "$lt_cv_prog_gnu_ld"; then
17200		version_type=linux # correct to gnu/linux during the next big refactor
17201	else
17202		version_type=irix
17203	fi ;;
17204  esac
17205  need_lib_prefix=no
17206  need_version=no
17207  soname_spec='$libname$release$shared_ext$major'
17208  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17209  case $host_os in
17210  irix5* | nonstopux*)
17211    libsuff= shlibsuff=
17212    ;;
17213  *)
17214    case $LD in # libtool.m4 will add one of these switches to LD
17215    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17216      libsuff= shlibsuff= libmagic=32-bit;;
17217    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17218      libsuff=32 shlibsuff=N32 libmagic=N32;;
17219    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17220      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17221    *) libsuff= shlibsuff= libmagic=never-match;;
17222    esac
17223    ;;
17224  esac
17225  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17226  shlibpath_overrides_runpath=no
17227  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17228  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17229  hardcode_into_libs=yes
17230  ;;
17231
17232# No shared lib support for Linux oldld, aout, or coff.
17233linux*oldld* | linux*aout* | linux*coff*)
17234  dynamic_linker=no
17235  ;;
17236
17237linux*android*)
17238  version_type=none # Android doesn't support versioned libraries.
17239  need_lib_prefix=no
17240  need_version=no
17241  library_names_spec='$libname$release$shared_ext'
17242  soname_spec='$libname$release$shared_ext'
17243  finish_cmds=
17244  shlibpath_var=LD_LIBRARY_PATH
17245  shlibpath_overrides_runpath=yes
17246
17247  # This implies no fast_install, which is unacceptable.
17248  # Some rework will be needed to allow for fast_install
17249  # before this can be enabled.
17250  hardcode_into_libs=yes
17251
17252  dynamic_linker='Android linker'
17253  # Don't embed -rpath directories since the linker doesn't support them.
17254  hardcode_libdir_flag_spec='-L$libdir'
17255  ;;
17256
17257# This must be glibc/ELF.
17258linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17259  version_type=linux # correct to gnu/linux during the next big refactor
17260  need_lib_prefix=no
17261  need_version=no
17262  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17263  soname_spec='$libname$release$shared_ext$major'
17264  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17265  shlibpath_var=LD_LIBRARY_PATH
17266  shlibpath_overrides_runpath=no
17267
17268  # Some binutils ld are patched to set DT_RUNPATH
17269  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17270  $as_echo_n "(cached) " >&6
17271else
17272  lt_cv_shlibpath_overrides_runpath=no
17273    save_LDFLAGS=$LDFLAGS
17274    save_libdir=$libdir
17275    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17276	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17277    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17278/* end confdefs.h.  */
17279
17280int
17281main ()
17282{
17283
17284  ;
17285  return 0;
17286}
17287_ACEOF
17288if ac_fn_c_try_link "$LINENO"; then :
17289  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17290  lt_cv_shlibpath_overrides_runpath=yes
17291fi
17292fi
17293rm -f core conftest.err conftest.$ac_objext \
17294    conftest$ac_exeext conftest.$ac_ext
17295    LDFLAGS=$save_LDFLAGS
17296    libdir=$save_libdir
17297
17298fi
17299
17300  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17301
17302  # This implies no fast_install, which is unacceptable.
17303  # Some rework will be needed to allow for fast_install
17304  # before this can be enabled.
17305  hardcode_into_libs=yes
17306
17307  # Append ld.so.conf contents to the search path
17308  if test -f /etc/ld.so.conf; then
17309    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' ' '`
17310    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17311  fi
17312
17313  # We used to test for /lib/ld.so.1 and disable shared libraries on
17314  # powerpc, because MkLinux only supported shared libraries with the
17315  # GNU dynamic linker.  Since this was broken with cross compilers,
17316  # most powerpc-linux boxes support dynamic linking these days and
17317  # people can always --disable-shared, the test was removed, and we
17318  # assume the GNU/Linux dynamic linker is in use.
17319  dynamic_linker='GNU/Linux ld.so'
17320  ;;
17321
17322netbsd*)
17323  version_type=sunos
17324  need_lib_prefix=no
17325  need_version=no
17326  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17327    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17328    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17329    dynamic_linker='NetBSD (a.out) ld.so'
17330  else
17331    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17332    soname_spec='$libname$release$shared_ext$major'
17333    dynamic_linker='NetBSD ld.elf_so'
17334  fi
17335  shlibpath_var=LD_LIBRARY_PATH
17336  shlibpath_overrides_runpath=yes
17337  hardcode_into_libs=yes
17338  ;;
17339
17340newsos6)
17341  version_type=linux # correct to gnu/linux during the next big refactor
17342  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17343  shlibpath_var=LD_LIBRARY_PATH
17344  shlibpath_overrides_runpath=yes
17345  ;;
17346
17347*nto* | *qnx*)
17348  version_type=qnx
17349  need_lib_prefix=no
17350  need_version=no
17351  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17352  soname_spec='$libname$release$shared_ext$major'
17353  shlibpath_var=LD_LIBRARY_PATH
17354  shlibpath_overrides_runpath=no
17355  hardcode_into_libs=yes
17356  dynamic_linker='ldqnx.so'
17357  ;;
17358
17359openbsd* | bitrig*)
17360  version_type=sunos
17361  sys_lib_dlsearch_path_spec=/usr/lib
17362  need_lib_prefix=no
17363  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17364    need_version=no
17365  else
17366    need_version=yes
17367  fi
17368  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17369  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17370  shlibpath_var=LD_LIBRARY_PATH
17371  shlibpath_overrides_runpath=yes
17372  ;;
17373
17374os2*)
17375  libname_spec='$name'
17376  version_type=windows
17377  shrext_cmds=.dll
17378  need_version=no
17379  need_lib_prefix=no
17380  # OS/2 can only load a DLL with a base name of 8 characters or less.
17381  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17382    v=$($ECHO $release$versuffix | tr -d .-);
17383    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17384    $ECHO $n$v`$shared_ext'
17385  library_names_spec='${libname}_dll.$libext'
17386  dynamic_linker='OS/2 ld.exe'
17387  shlibpath_var=BEGINLIBPATH
17388  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17389  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17390  postinstall_cmds='base_file=`basename \$file`~
17391    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17392    dldir=$destdir/`dirname \$dlpath`~
17393    test -d \$dldir || mkdir -p \$dldir~
17394    $install_prog $dir/$dlname \$dldir/$dlname~
17395    chmod a+x \$dldir/$dlname~
17396    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17397      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17398    fi'
17399  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17400    dlpath=$dir/\$dldll~
17401    $RM \$dlpath'
17402  ;;
17403
17404osf3* | osf4* | osf5*)
17405  version_type=osf
17406  need_lib_prefix=no
17407  need_version=no
17408  soname_spec='$libname$release$shared_ext$major'
17409  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17410  shlibpath_var=LD_LIBRARY_PATH
17411  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17412  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17413  ;;
17414
17415rdos*)
17416  dynamic_linker=no
17417  ;;
17418
17419solaris*)
17420  version_type=linux # correct to gnu/linux during the next big refactor
17421  need_lib_prefix=no
17422  need_version=no
17423  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17424  soname_spec='$libname$release$shared_ext$major'
17425  shlibpath_var=LD_LIBRARY_PATH
17426  shlibpath_overrides_runpath=yes
17427  hardcode_into_libs=yes
17428  # ldd complains unless libraries are executable
17429  postinstall_cmds='chmod +x $lib'
17430  ;;
17431
17432sunos4*)
17433  version_type=sunos
17434  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17435  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17436  shlibpath_var=LD_LIBRARY_PATH
17437  shlibpath_overrides_runpath=yes
17438  if test yes = "$with_gnu_ld"; then
17439    need_lib_prefix=no
17440  fi
17441  need_version=yes
17442  ;;
17443
17444sysv4 | sysv4.3*)
17445  version_type=linux # correct to gnu/linux during the next big refactor
17446  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17447  soname_spec='$libname$release$shared_ext$major'
17448  shlibpath_var=LD_LIBRARY_PATH
17449  case $host_vendor in
17450    sni)
17451      shlibpath_overrides_runpath=no
17452      need_lib_prefix=no
17453      runpath_var=LD_RUN_PATH
17454      ;;
17455    siemens)
17456      need_lib_prefix=no
17457      ;;
17458    motorola)
17459      need_lib_prefix=no
17460      need_version=no
17461      shlibpath_overrides_runpath=no
17462      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17463      ;;
17464  esac
17465  ;;
17466
17467sysv4*MP*)
17468  if test -d /usr/nec; then
17469    version_type=linux # correct to gnu/linux during the next big refactor
17470    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17471    soname_spec='$libname$shared_ext.$major'
17472    shlibpath_var=LD_LIBRARY_PATH
17473  fi
17474  ;;
17475
17476sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17477  version_type=sco
17478  need_lib_prefix=no
17479  need_version=no
17480  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17481  soname_spec='$libname$release$shared_ext$major'
17482  shlibpath_var=LD_LIBRARY_PATH
17483  shlibpath_overrides_runpath=yes
17484  hardcode_into_libs=yes
17485  if test yes = "$with_gnu_ld"; then
17486    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17487  else
17488    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17489    case $host_os in
17490      sco3.2v5*)
17491        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17492	;;
17493    esac
17494  fi
17495  sys_lib_dlsearch_path_spec='/usr/lib'
17496  ;;
17497
17498tpf*)
17499  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17500  version_type=linux # correct to gnu/linux during the next big refactor
17501  need_lib_prefix=no
17502  need_version=no
17503  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17504  shlibpath_var=LD_LIBRARY_PATH
17505  shlibpath_overrides_runpath=no
17506  hardcode_into_libs=yes
17507  ;;
17508
17509uts4*)
17510  version_type=linux # correct to gnu/linux during the next big refactor
17511  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17512  soname_spec='$libname$release$shared_ext$major'
17513  shlibpath_var=LD_LIBRARY_PATH
17514  ;;
17515
17516*)
17517  dynamic_linker=no
17518  ;;
17519esac
17520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17521$as_echo "$dynamic_linker" >&6; }
17522test no = "$dynamic_linker" && can_build_shared=no
17523
17524variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17525if test yes = "$GCC"; then
17526  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17527fi
17528
17529if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17530  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17531fi
17532if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17533  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17534fi
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17628$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17629hardcode_action=
17630if test -n "$hardcode_libdir_flag_spec" ||
17631   test -n "$runpath_var" ||
17632   test yes = "$hardcode_automatic"; then
17633
17634  # We can hardcode non-existent directories.
17635  if test no != "$hardcode_direct" &&
17636     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17637     # have to relink, otherwise we might link with an installed library
17638     # when we should be linking with a yet-to-be-installed one
17639     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17640     test no != "$hardcode_minus_L"; then
17641    # Linking always hardcodes the temporary library directory.
17642    hardcode_action=relink
17643  else
17644    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17645    hardcode_action=immediate
17646  fi
17647else
17648  # We cannot hardcode anything, or else we can only hardcode existing
17649  # directories.
17650  hardcode_action=unsupported
17651fi
17652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17653$as_echo "$hardcode_action" >&6; }
17654
17655if test relink = "$hardcode_action" ||
17656   test yes = "$inherit_rpath"; then
17657  # Fast installation is not supported
17658  enable_fast_install=no
17659elif test yes = "$shlibpath_overrides_runpath" ||
17660     test no = "$enable_shared"; then
17661  # Fast installation is not necessary
17662  enable_fast_install=needless
17663fi
17664
17665
17666
17667
17668
17669
17670  if test yes != "$enable_dlopen"; then
17671  enable_dlopen=unknown
17672  enable_dlopen_self=unknown
17673  enable_dlopen_self_static=unknown
17674else
17675  lt_cv_dlopen=no
17676  lt_cv_dlopen_libs=
17677
17678  case $host_os in
17679  beos*)
17680    lt_cv_dlopen=load_add_on
17681    lt_cv_dlopen_libs=
17682    lt_cv_dlopen_self=yes
17683    ;;
17684
17685  mingw* | pw32* | cegcc*)
17686    lt_cv_dlopen=LoadLibrary
17687    lt_cv_dlopen_libs=
17688    ;;
17689
17690  cygwin*)
17691    lt_cv_dlopen=dlopen
17692    lt_cv_dlopen_libs=
17693    ;;
17694
17695  darwin*)
17696    # if libdl is installed we need to link against it
17697    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17698$as_echo_n "checking for dlopen in -ldl... " >&6; }
17699if ${ac_cv_lib_dl_dlopen+:} false; then :
17700  $as_echo_n "(cached) " >&6
17701else
17702  ac_check_lib_save_LIBS=$LIBS
17703LIBS="-ldl  $LIBS"
17704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17705/* end confdefs.h.  */
17706
17707/* Override any GCC internal prototype to avoid an error.
17708   Use char because int might match the return type of a GCC
17709   builtin and then its argument prototype would still apply.  */
17710#ifdef __cplusplus
17711extern "C"
17712#endif
17713char dlopen ();
17714int
17715main ()
17716{
17717return dlopen ();
17718  ;
17719  return 0;
17720}
17721_ACEOF
17722if ac_fn_c_try_link "$LINENO"; then :
17723  ac_cv_lib_dl_dlopen=yes
17724else
17725  ac_cv_lib_dl_dlopen=no
17726fi
17727rm -f core conftest.err conftest.$ac_objext \
17728    conftest$ac_exeext conftest.$ac_ext
17729LIBS=$ac_check_lib_save_LIBS
17730fi
17731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17732$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17733if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17734  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17735else
17736
17737    lt_cv_dlopen=dyld
17738    lt_cv_dlopen_libs=
17739    lt_cv_dlopen_self=yes
17740
17741fi
17742
17743    ;;
17744
17745  tpf*)
17746    # Don't try to run any link tests for TPF.  We know it's impossible
17747    # because TPF is a cross-compiler, and we know how we open DSOs.
17748    lt_cv_dlopen=dlopen
17749    lt_cv_dlopen_libs=
17750    lt_cv_dlopen_self=no
17751    ;;
17752
17753  *)
17754    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17755if test "x$ac_cv_func_shl_load" = xyes; then :
17756  lt_cv_dlopen=shl_load
17757else
17758  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17759$as_echo_n "checking for shl_load in -ldld... " >&6; }
17760if ${ac_cv_lib_dld_shl_load+:} false; then :
17761  $as_echo_n "(cached) " >&6
17762else
17763  ac_check_lib_save_LIBS=$LIBS
17764LIBS="-ldld  $LIBS"
17765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17766/* end confdefs.h.  */
17767
17768/* Override any GCC internal prototype to avoid an error.
17769   Use char because int might match the return type of a GCC
17770   builtin and then its argument prototype would still apply.  */
17771#ifdef __cplusplus
17772extern "C"
17773#endif
17774char shl_load ();
17775int
17776main ()
17777{
17778return shl_load ();
17779  ;
17780  return 0;
17781}
17782_ACEOF
17783if ac_fn_c_try_link "$LINENO"; then :
17784  ac_cv_lib_dld_shl_load=yes
17785else
17786  ac_cv_lib_dld_shl_load=no
17787fi
17788rm -f core conftest.err conftest.$ac_objext \
17789    conftest$ac_exeext conftest.$ac_ext
17790LIBS=$ac_check_lib_save_LIBS
17791fi
17792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17793$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17794if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17795  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17796else
17797  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17798if test "x$ac_cv_func_dlopen" = xyes; then :
17799  lt_cv_dlopen=dlopen
17800else
17801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17802$as_echo_n "checking for dlopen in -ldl... " >&6; }
17803if ${ac_cv_lib_dl_dlopen+:} false; then :
17804  $as_echo_n "(cached) " >&6
17805else
17806  ac_check_lib_save_LIBS=$LIBS
17807LIBS="-ldl  $LIBS"
17808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17809/* end confdefs.h.  */
17810
17811/* Override any GCC internal prototype to avoid an error.
17812   Use char because int might match the return type of a GCC
17813   builtin and then its argument prototype would still apply.  */
17814#ifdef __cplusplus
17815extern "C"
17816#endif
17817char dlopen ();
17818int
17819main ()
17820{
17821return dlopen ();
17822  ;
17823  return 0;
17824}
17825_ACEOF
17826if ac_fn_c_try_link "$LINENO"; then :
17827  ac_cv_lib_dl_dlopen=yes
17828else
17829  ac_cv_lib_dl_dlopen=no
17830fi
17831rm -f core conftest.err conftest.$ac_objext \
17832    conftest$ac_exeext conftest.$ac_ext
17833LIBS=$ac_check_lib_save_LIBS
17834fi
17835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17836$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17837if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17838  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17839else
17840  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17841$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17842if ${ac_cv_lib_svld_dlopen+:} false; then :
17843  $as_echo_n "(cached) " >&6
17844else
17845  ac_check_lib_save_LIBS=$LIBS
17846LIBS="-lsvld  $LIBS"
17847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17848/* end confdefs.h.  */
17849
17850/* Override any GCC internal prototype to avoid an error.
17851   Use char because int might match the return type of a GCC
17852   builtin and then its argument prototype would still apply.  */
17853#ifdef __cplusplus
17854extern "C"
17855#endif
17856char dlopen ();
17857int
17858main ()
17859{
17860return dlopen ();
17861  ;
17862  return 0;
17863}
17864_ACEOF
17865if ac_fn_c_try_link "$LINENO"; then :
17866  ac_cv_lib_svld_dlopen=yes
17867else
17868  ac_cv_lib_svld_dlopen=no
17869fi
17870rm -f core conftest.err conftest.$ac_objext \
17871    conftest$ac_exeext conftest.$ac_ext
17872LIBS=$ac_check_lib_save_LIBS
17873fi
17874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17875$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17876if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17877  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
17878else
17879  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17880$as_echo_n "checking for dld_link in -ldld... " >&6; }
17881if ${ac_cv_lib_dld_dld_link+:} false; then :
17882  $as_echo_n "(cached) " >&6
17883else
17884  ac_check_lib_save_LIBS=$LIBS
17885LIBS="-ldld  $LIBS"
17886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17887/* end confdefs.h.  */
17888
17889/* Override any GCC internal prototype to avoid an error.
17890   Use char because int might match the return type of a GCC
17891   builtin and then its argument prototype would still apply.  */
17892#ifdef __cplusplus
17893extern "C"
17894#endif
17895char dld_link ();
17896int
17897main ()
17898{
17899return dld_link ();
17900  ;
17901  return 0;
17902}
17903_ACEOF
17904if ac_fn_c_try_link "$LINENO"; then :
17905  ac_cv_lib_dld_dld_link=yes
17906else
17907  ac_cv_lib_dld_dld_link=no
17908fi
17909rm -f core conftest.err conftest.$ac_objext \
17910    conftest$ac_exeext conftest.$ac_ext
17911LIBS=$ac_check_lib_save_LIBS
17912fi
17913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17914$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17915if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17916  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
17917fi
17918
17919
17920fi
17921
17922
17923fi
17924
17925
17926fi
17927
17928
17929fi
17930
17931
17932fi
17933
17934    ;;
17935  esac
17936
17937  if test no = "$lt_cv_dlopen"; then
17938    enable_dlopen=no
17939  else
17940    enable_dlopen=yes
17941  fi
17942
17943  case $lt_cv_dlopen in
17944  dlopen)
17945    save_CPPFLAGS=$CPPFLAGS
17946    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17947
17948    save_LDFLAGS=$LDFLAGS
17949    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17950
17951    save_LIBS=$LIBS
17952    LIBS="$lt_cv_dlopen_libs $LIBS"
17953
17954    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17955$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17956if ${lt_cv_dlopen_self+:} false; then :
17957  $as_echo_n "(cached) " >&6
17958else
17959  	  if test yes = "$cross_compiling"; then :
17960  lt_cv_dlopen_self=cross
17961else
17962  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17963  lt_status=$lt_dlunknown
17964  cat > conftest.$ac_ext <<_LT_EOF
17965#line $LINENO "configure"
17966#include "confdefs.h"
17967
17968#if HAVE_DLFCN_H
17969#include <dlfcn.h>
17970#endif
17971
17972#include <stdio.h>
17973
17974#ifdef RTLD_GLOBAL
17975#  define LT_DLGLOBAL		RTLD_GLOBAL
17976#else
17977#  ifdef DL_GLOBAL
17978#    define LT_DLGLOBAL		DL_GLOBAL
17979#  else
17980#    define LT_DLGLOBAL		0
17981#  endif
17982#endif
17983
17984/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17985   find out it does not work in some platform. */
17986#ifndef LT_DLLAZY_OR_NOW
17987#  ifdef RTLD_LAZY
17988#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17989#  else
17990#    ifdef DL_LAZY
17991#      define LT_DLLAZY_OR_NOW		DL_LAZY
17992#    else
17993#      ifdef RTLD_NOW
17994#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17995#      else
17996#        ifdef DL_NOW
17997#          define LT_DLLAZY_OR_NOW	DL_NOW
17998#        else
17999#          define LT_DLLAZY_OR_NOW	0
18000#        endif
18001#      endif
18002#    endif
18003#  endif
18004#endif
18005
18006/* When -fvisibility=hidden is used, assume the code has been annotated
18007   correspondingly for the symbols needed.  */
18008#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18009int fnord () __attribute__((visibility("default")));
18010#endif
18011
18012int fnord () { return 42; }
18013int main ()
18014{
18015  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18016  int status = $lt_dlunknown;
18017
18018  if (self)
18019    {
18020      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18021      else
18022        {
18023	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18024          else puts (dlerror ());
18025	}
18026      /* dlclose (self); */
18027    }
18028  else
18029    puts (dlerror ());
18030
18031  return status;
18032}
18033_LT_EOF
18034  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18035  (eval $ac_link) 2>&5
18036  ac_status=$?
18037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18038  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18039    (./conftest; exit; ) >&5 2>/dev/null
18040    lt_status=$?
18041    case x$lt_status in
18042      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18043      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18044      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18045    esac
18046  else :
18047    # compilation failed
18048    lt_cv_dlopen_self=no
18049  fi
18050fi
18051rm -fr conftest*
18052
18053
18054fi
18055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18056$as_echo "$lt_cv_dlopen_self" >&6; }
18057
18058    if test yes = "$lt_cv_dlopen_self"; then
18059      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18060      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18061$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18062if ${lt_cv_dlopen_self_static+:} false; then :
18063  $as_echo_n "(cached) " >&6
18064else
18065  	  if test yes = "$cross_compiling"; then :
18066  lt_cv_dlopen_self_static=cross
18067else
18068  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18069  lt_status=$lt_dlunknown
18070  cat > conftest.$ac_ext <<_LT_EOF
18071#line $LINENO "configure"
18072#include "confdefs.h"
18073
18074#if HAVE_DLFCN_H
18075#include <dlfcn.h>
18076#endif
18077
18078#include <stdio.h>
18079
18080#ifdef RTLD_GLOBAL
18081#  define LT_DLGLOBAL		RTLD_GLOBAL
18082#else
18083#  ifdef DL_GLOBAL
18084#    define LT_DLGLOBAL		DL_GLOBAL
18085#  else
18086#    define LT_DLGLOBAL		0
18087#  endif
18088#endif
18089
18090/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18091   find out it does not work in some platform. */
18092#ifndef LT_DLLAZY_OR_NOW
18093#  ifdef RTLD_LAZY
18094#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18095#  else
18096#    ifdef DL_LAZY
18097#      define LT_DLLAZY_OR_NOW		DL_LAZY
18098#    else
18099#      ifdef RTLD_NOW
18100#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18101#      else
18102#        ifdef DL_NOW
18103#          define LT_DLLAZY_OR_NOW	DL_NOW
18104#        else
18105#          define LT_DLLAZY_OR_NOW	0
18106#        endif
18107#      endif
18108#    endif
18109#  endif
18110#endif
18111
18112/* When -fvisibility=hidden is used, assume the code has been annotated
18113   correspondingly for the symbols needed.  */
18114#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18115int fnord () __attribute__((visibility("default")));
18116#endif
18117
18118int fnord () { return 42; }
18119int main ()
18120{
18121  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18122  int status = $lt_dlunknown;
18123
18124  if (self)
18125    {
18126      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18127      else
18128        {
18129	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18130          else puts (dlerror ());
18131	}
18132      /* dlclose (self); */
18133    }
18134  else
18135    puts (dlerror ());
18136
18137  return status;
18138}
18139_LT_EOF
18140  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18141  (eval $ac_link) 2>&5
18142  ac_status=$?
18143  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18144  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18145    (./conftest; exit; ) >&5 2>/dev/null
18146    lt_status=$?
18147    case x$lt_status in
18148      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18149      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18150      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18151    esac
18152  else :
18153    # compilation failed
18154    lt_cv_dlopen_self_static=no
18155  fi
18156fi
18157rm -fr conftest*
18158
18159
18160fi
18161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18162$as_echo "$lt_cv_dlopen_self_static" >&6; }
18163    fi
18164
18165    CPPFLAGS=$save_CPPFLAGS
18166    LDFLAGS=$save_LDFLAGS
18167    LIBS=$save_LIBS
18168    ;;
18169  esac
18170
18171  case $lt_cv_dlopen_self in
18172  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18173  *) enable_dlopen_self=unknown ;;
18174  esac
18175
18176  case $lt_cv_dlopen_self_static in
18177  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18178  *) enable_dlopen_self_static=unknown ;;
18179  esac
18180fi
18181
18182
18183
18184
18185
18186
18187
18188
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198striplib=
18199old_striplib=
18200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18201$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18202if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18203  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18204  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18206$as_echo "yes" >&6; }
18207else
18208# FIXME - insert some real tests, host_os isn't really good enough
18209  case $host_os in
18210  darwin*)
18211    if test -n "$STRIP"; then
18212      striplib="$STRIP -x"
18213      old_striplib="$STRIP -S"
18214      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18215$as_echo "yes" >&6; }
18216    else
18217      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18218$as_echo "no" >&6; }
18219    fi
18220    ;;
18221  *)
18222    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18223$as_echo "no" >&6; }
18224    ;;
18225  esac
18226fi
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239  # Report what library types will actually be built
18240  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18241$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18243$as_echo "$can_build_shared" >&6; }
18244
18245  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18246$as_echo_n "checking whether to build shared libraries... " >&6; }
18247  test no = "$can_build_shared" && enable_shared=no
18248
18249  # On AIX, shared libraries and static libraries use the same namespace, and
18250  # are all built from PIC.
18251  case $host_os in
18252  aix3*)
18253    test yes = "$enable_shared" && enable_static=no
18254    if test -n "$RANLIB"; then
18255      archive_cmds="$archive_cmds~\$RANLIB \$lib"
18256      postinstall_cmds='$RANLIB $lib'
18257    fi
18258    ;;
18259
18260  aix[4-9]*)
18261    if test ia64 != "$host_cpu"; then
18262      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18263      yes,aix,yes) ;;			# shared object as lib.so file only
18264      yes,svr4,*) ;;			# shared object as lib.so archive member only
18265      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
18266      esac
18267    fi
18268    ;;
18269  esac
18270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18271$as_echo "$enable_shared" >&6; }
18272
18273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18274$as_echo_n "checking whether to build static libraries... " >&6; }
18275  # Make sure either enable_shared or enable_static is yes.
18276  test yes = "$enable_shared" || enable_static=yes
18277  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18278$as_echo "$enable_static" >&6; }
18279
18280
18281
18282
18283fi
18284ac_ext=c
18285ac_cpp='$CPP $CPPFLAGS'
18286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18288ac_compiler_gnu=$ac_cv_c_compiler_gnu
18289
18290CC=$lt_save_CC
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306        ac_config_commands="$ac_config_commands libtool"
18307
18308
18309
18310
18311# Only expand once:
18312
18313
18314
18315
18316
18317# Define a configure option for an alternate module directory
18318
18319# Check whether --with-xorg-module-dir was given.
18320if test "${with_xorg_module_dir+set}" = set; then :
18321  withval=$with_xorg_module_dir; moduledir="$withval"
18322else
18323  moduledir="$libdir/xorg/modules"
18324fi
18325
18326
18327# Check whether --enable-dri was given.
18328if test "${enable_dri+set}" = set; then :
18329  enableval=$enable_dri; DRI="$enableval"
18330else
18331  DRI=auto
18332fi
18333
18334
18335# Store the list of server defined optional extensions in REQUIRED_MODULES
18336
18337
18338	SAVE_CFLAGS="$CFLAGS"
18339	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18340	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18341/* end confdefs.h.  */
18342
18343#include "xorg-server.h"
18344#if !defined RANDR
18345#error RANDR not defined
18346#endif
18347
18348int
18349main ()
18350{
18351
18352  ;
18353  return 0;
18354}
18355_ACEOF
18356if ac_fn_c_try_compile "$LINENO"; then :
18357  _EXT_CHECK=yes
18358else
18359  _EXT_CHECK=no
18360fi
18361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18362	CFLAGS="$SAVE_CFLAGS"
18363	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18364$as_echo_n "checking if RANDR is defined... " >&6; }
18365	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18366$as_echo "$_EXT_CHECK" >&6; }
18367	if test "$_EXT_CHECK" != no; then
18368		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18369	fi
18370
18371
18372
18373	SAVE_CFLAGS="$CFLAGS"
18374	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18375	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18376/* end confdefs.h.  */
18377
18378#include "xorg-server.h"
18379#if !defined RENDER
18380#error RENDER not defined
18381#endif
18382
18383int
18384main ()
18385{
18386
18387  ;
18388  return 0;
18389}
18390_ACEOF
18391if ac_fn_c_try_compile "$LINENO"; then :
18392  _EXT_CHECK=yes
18393else
18394  _EXT_CHECK=no
18395fi
18396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18397	CFLAGS="$SAVE_CFLAGS"
18398	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18399$as_echo_n "checking if RENDER is defined... " >&6; }
18400	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18401$as_echo "$_EXT_CHECK" >&6; }
18402	if test "$_EXT_CHECK" != no; then
18403		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18404	fi
18405
18406
18407
18408	SAVE_CFLAGS="$CFLAGS"
18409	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18410	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18411/* end confdefs.h.  */
18412
18413#include "xorg-server.h"
18414#if !defined XV
18415#error XV not defined
18416#endif
18417
18418int
18419main ()
18420{
18421
18422  ;
18423  return 0;
18424}
18425_ACEOF
18426if ac_fn_c_try_compile "$LINENO"; then :
18427  _EXT_CHECK=yes
18428else
18429  _EXT_CHECK=no
18430fi
18431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18432	CFLAGS="$SAVE_CFLAGS"
18433	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18434$as_echo_n "checking if XV is defined... " >&6; }
18435	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18436$as_echo "$_EXT_CHECK" >&6; }
18437	if test "$_EXT_CHECK" != no; then
18438		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18439	fi
18440
18441
18442
18443	SAVE_CFLAGS="$CFLAGS"
18444	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18445	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446/* end confdefs.h.  */
18447
18448#include "xorg-server.h"
18449#if !defined DPMSExtension
18450#error DPMSExtension not defined
18451#endif
18452
18453int
18454main ()
18455{
18456
18457  ;
18458  return 0;
18459}
18460_ACEOF
18461if ac_fn_c_try_compile "$LINENO"; then :
18462  _EXT_CHECK=yes
18463else
18464  _EXT_CHECK=no
18465fi
18466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18467	CFLAGS="$SAVE_CFLAGS"
18468	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18469$as_echo_n "checking if DPMSExtension is defined... " >&6; }
18470	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18471$as_echo "$_EXT_CHECK" >&6; }
18472	if test "$_EXT_CHECK" != no; then
18473		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18474	fi
18475
18476
18477# Obtain compiler/linker options for the driver dependencies
18478
18479pkg_failed=no
18480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18481$as_echo_n "checking for XORG... " >&6; }
18482
18483if test -n "$XORG_CFLAGS"; then
18484    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18485 elif test -n "$PKG_CONFIG"; then
18486    if test -n "$PKG_CONFIG" && \
18487    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18488  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18489  ac_status=$?
18490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18491  test $ac_status = 0; }; then
18492  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18493		      test "x$?" != "x0" && pkg_failed=yes
18494else
18495  pkg_failed=yes
18496fi
18497 else
18498    pkg_failed=untried
18499fi
18500if test -n "$XORG_LIBS"; then
18501    pkg_cv_XORG_LIBS="$XORG_LIBS"
18502 elif test -n "$PKG_CONFIG"; then
18503    if test -n "$PKG_CONFIG" && \
18504    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18505  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18506  ac_status=$?
18507  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18508  test $ac_status = 0; }; then
18509  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18510		      test "x$?" != "x0" && pkg_failed=yes
18511else
18512  pkg_failed=yes
18513fi
18514 else
18515    pkg_failed=untried
18516fi
18517
18518
18519
18520if test $pkg_failed = yes; then
18521   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18522$as_echo "no" >&6; }
18523
18524if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18525        _pkg_short_errors_supported=yes
18526else
18527        _pkg_short_errors_supported=no
18528fi
18529        if test $_pkg_short_errors_supported = yes; then
18530	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18531        else
18532	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18533        fi
18534	# Put the nasty error message in config.log where it belongs
18535	echo "$XORG_PKG_ERRORS" >&5
18536
18537	as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
18538
18539$XORG_PKG_ERRORS
18540
18541Consider adjusting the PKG_CONFIG_PATH environment variable if you
18542installed software in a non-standard prefix.
18543
18544Alternatively, you may set the environment variables XORG_CFLAGS
18545and XORG_LIBS to avoid the need to call pkg-config.
18546See the pkg-config man page for more details." "$LINENO" 5
18547elif test $pkg_failed = untried; then
18548     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18549$as_echo "no" >&6; }
18550	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18551$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18552as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18553is in your PATH or set the PKG_CONFIG environment variable to the full
18554path to pkg-config.
18555
18556Alternatively, you may set the environment variables XORG_CFLAGS
18557and XORG_LIBS to avoid the need to call pkg-config.
18558See the pkg-config man page for more details.
18559
18560To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18561See \`config.log' for more details" "$LINENO" 5; }
18562else
18563	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18564	XORG_LIBS=$pkg_cv_XORG_LIBS
18565        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18566$as_echo "yes" >&6; }
18567
18568fi
18569sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server`
18570
18571# Checks for libraries.
18572SAVE_CPPFLAGS="$CPPFLAGS"
18573CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18574ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18575"
18576if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18577  XSERVER_LIBPCIACCESS=yes
18578else
18579  XSERVER_LIBPCIACCESS=no
18580fi
18581
18582CPPFLAGS="$SAVE_CPPFLAGS"
18583
18584if test "$DRI" != no; then
18585        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dri.h" | $as_tr_sh`
18586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dri.h" >&5
18587$as_echo_n "checking for ${sdkdir}/dri.h... " >&6; }
18588if eval \${$as_ac_File+:} false; then :
18589  $as_echo_n "(cached) " >&6
18590else
18591  test "$cross_compiling" = yes &&
18592  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18593if test -r "${sdkdir}/dri.h"; then
18594  eval "$as_ac_File=yes"
18595else
18596  eval "$as_ac_File=no"
18597fi
18598fi
18599eval ac_res=\$$as_ac_File
18600	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18601$as_echo "$ac_res" >&6; }
18602if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18603  have_dri_h="yes"
18604else
18605  have_dri_h="no"
18606fi
18607
18608        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/sarea.h" | $as_tr_sh`
18609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/sarea.h" >&5
18610$as_echo_n "checking for ${sdkdir}/sarea.h... " >&6; }
18611if eval \${$as_ac_File+:} false; then :
18612  $as_echo_n "(cached) " >&6
18613else
18614  test "$cross_compiling" = yes &&
18615  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18616if test -r "${sdkdir}/sarea.h"; then
18617  eval "$as_ac_File=yes"
18618else
18619  eval "$as_ac_File=no"
18620fi
18621fi
18622eval ac_res=\$$as_ac_File
18623	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18624$as_echo "$ac_res" >&6; }
18625if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18626  have_sarea_h="yes"
18627else
18628  have_sarea_h="no"
18629fi
18630
18631        as_ac_File=`$as_echo "ac_cv_file_${sdkdir}/dristruct.h" | $as_tr_sh`
18632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${sdkdir}/dristruct.h" >&5
18633$as_echo_n "checking for ${sdkdir}/dristruct.h... " >&6; }
18634if eval \${$as_ac_File+:} false; then :
18635  $as_echo_n "(cached) " >&6
18636else
18637  test "$cross_compiling" = yes &&
18638  as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
18639if test -r "${sdkdir}/dristruct.h"; then
18640  eval "$as_ac_File=yes"
18641else
18642  eval "$as_ac_File=no"
18643fi
18644fi
18645eval ac_res=\$$as_ac_File
18646	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18647$as_echo "$ac_res" >&6; }
18648if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
18649  have_dristruct_h="yes"
18650else
18651  have_dristruct_h="no"
18652fi
18653
18654fi
18655
18656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DRI support" >&5
18657$as_echo_n "checking whether to include DRI support... " >&6; }
18658if test x$DRI = xauto; then
18659        if test "$have_dri_h" = yes -a \
18660                "$have_sarea_h" = yes -a \
18661                "$have_dristruct_h" = yes; then
18662                DRI="yes"
18663        else
18664                DRI="no"
18665        fi
18666fi
18667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DRI" >&5
18668$as_echo "$DRI" >&6; }
18669
18670 if test x$DRI = xyes; then
18671  DRI_TRUE=
18672  DRI_FALSE='#'
18673else
18674  DRI_TRUE='#'
18675  DRI_FALSE=
18676fi
18677
18678if test "$DRI" = yes; then
18679
18680pkg_failed=no
18681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DRI" >&5
18682$as_echo_n "checking for DRI... " >&6; }
18683
18684if test -n "$DRI_CFLAGS"; then
18685    pkg_cv_DRI_CFLAGS="$DRI_CFLAGS"
18686 elif test -n "$PKG_CONFIG"; then
18687    if test -n "$PKG_CONFIG" && \
18688    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
18689  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
18690  ac_status=$?
18691  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18692  test $ac_status = 0; }; then
18693  pkg_cv_DRI_CFLAGS=`$PKG_CONFIG --cflags "libdrm >= 2.0 xf86driproto" 2>/dev/null`
18694		      test "x$?" != "x0" && pkg_failed=yes
18695else
18696  pkg_failed=yes
18697fi
18698 else
18699    pkg_failed=untried
18700fi
18701if test -n "$DRI_LIBS"; then
18702    pkg_cv_DRI_LIBS="$DRI_LIBS"
18703 elif test -n "$PKG_CONFIG"; then
18704    if test -n "$PKG_CONFIG" && \
18705    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm >= 2.0 xf86driproto\""; } >&5
18706  ($PKG_CONFIG --exists --print-errors "libdrm >= 2.0 xf86driproto") 2>&5
18707  ac_status=$?
18708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18709  test $ac_status = 0; }; then
18710  pkg_cv_DRI_LIBS=`$PKG_CONFIG --libs "libdrm >= 2.0 xf86driproto" 2>/dev/null`
18711		      test "x$?" != "x0" && pkg_failed=yes
18712else
18713  pkg_failed=yes
18714fi
18715 else
18716    pkg_failed=untried
18717fi
18718
18719
18720
18721if test $pkg_failed = yes; then
18722   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18723$as_echo "no" >&6; }
18724
18725if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18726        _pkg_short_errors_supported=yes
18727else
18728        _pkg_short_errors_supported=no
18729fi
18730        if test $_pkg_short_errors_supported = yes; then
18731	        DRI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1`
18732        else
18733	        DRI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm >= 2.0 xf86driproto" 2>&1`
18734        fi
18735	# Put the nasty error message in config.log where it belongs
18736	echo "$DRI_PKG_ERRORS" >&5
18737
18738	as_fn_error $? "Package requirements (libdrm >= 2.0 xf86driproto) were not met:
18739
18740$DRI_PKG_ERRORS
18741
18742Consider adjusting the PKG_CONFIG_PATH environment variable if you
18743installed software in a non-standard prefix.
18744
18745Alternatively, you may set the environment variables DRI_CFLAGS
18746and DRI_LIBS to avoid the need to call pkg-config.
18747See the pkg-config man page for more details." "$LINENO" 5
18748elif test $pkg_failed = untried; then
18749     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18750$as_echo "no" >&6; }
18751	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18752$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18753as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18754is in your PATH or set the PKG_CONFIG environment variable to the full
18755path to pkg-config.
18756
18757Alternatively, you may set the environment variables DRI_CFLAGS
18758and DRI_LIBS to avoid the need to call pkg-config.
18759See the pkg-config man page for more details.
18760
18761To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18762See \`config.log' for more details" "$LINENO" 5; }
18763else
18764	DRI_CFLAGS=$pkg_cv_DRI_CFLAGS
18765	DRI_LIBS=$pkg_cv_DRI_LIBS
18766        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18767$as_echo "yes" >&6; }
18768
18769fi
18770
18771$as_echo "#define TDFXDRI 1" >>confdefs.h
18772
18773
18774$as_echo "#define TDFXDRI_DEVEL 1" >>confdefs.h
18775
18776fi
18777
18778if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18779
18780pkg_failed=no
18781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18782$as_echo_n "checking for PCIACCESS... " >&6; }
18783
18784if test -n "$PCIACCESS_CFLAGS"; then
18785    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18786 elif test -n "$PKG_CONFIG"; then
18787    if test -n "$PKG_CONFIG" && \
18788    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18789  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18790  ac_status=$?
18791  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18792  test $ac_status = 0; }; then
18793  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18794		      test "x$?" != "x0" && pkg_failed=yes
18795else
18796  pkg_failed=yes
18797fi
18798 else
18799    pkg_failed=untried
18800fi
18801if test -n "$PCIACCESS_LIBS"; then
18802    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18803 elif test -n "$PKG_CONFIG"; then
18804    if test -n "$PKG_CONFIG" && \
18805    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18806  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18807  ac_status=$?
18808  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18809  test $ac_status = 0; }; then
18810  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18811		      test "x$?" != "x0" && pkg_failed=yes
18812else
18813  pkg_failed=yes
18814fi
18815 else
18816    pkg_failed=untried
18817fi
18818
18819
18820
18821if test $pkg_failed = yes; then
18822   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18823$as_echo "no" >&6; }
18824
18825if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18826        _pkg_short_errors_supported=yes
18827else
18828        _pkg_short_errors_supported=no
18829fi
18830        if test $_pkg_short_errors_supported = yes; then
18831	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18832        else
18833	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18834        fi
18835	# Put the nasty error message in config.log where it belongs
18836	echo "$PCIACCESS_PKG_ERRORS" >&5
18837
18838	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18839
18840$PCIACCESS_PKG_ERRORS
18841
18842Consider adjusting the PKG_CONFIG_PATH environment variable if you
18843installed software in a non-standard prefix.
18844
18845Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18846and PCIACCESS_LIBS to avoid the need to call pkg-config.
18847See the pkg-config man page for more details." "$LINENO" 5
18848elif test $pkg_failed = untried; then
18849     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18850$as_echo "no" >&6; }
18851	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18853as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18854is in your PATH or set the PKG_CONFIG environment variable to the full
18855path to pkg-config.
18856
18857Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18858and PCIACCESS_LIBS to avoid the need to call pkg-config.
18859See the pkg-config man page for more details.
18860
18861To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18862See \`config.log' for more details" "$LINENO" 5; }
18863else
18864	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18865	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18866        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18867$as_echo "yes" >&6; }
18868
18869fi
18870    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18871fi
18872 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18873  XSERVER_LIBPCIACCESS_TRUE=
18874  XSERVER_LIBPCIACCESS_FALSE='#'
18875else
18876  XSERVER_LIBPCIACCESS_TRUE='#'
18877  XSERVER_LIBPCIACCESS_FALSE=
18878fi
18879
18880
18881# Check whether --enable-xaa was given.
18882if test "${enable_xaa+set}" = set; then :
18883  enableval=$enable_xaa; XAA="$enableval"
18884else
18885  XAA=auto
18886fi
18887
18888if test "x$XAA" != xno; then
18889        save_CFLAGS=$CFLAGS
18890        save_CPPFLAGS=$CPPFLAGS
18891        CFLAGS=$XORG_CFLAGS
18892        CPPFLAGS="$XORG_CFLAGS"
18893        for ac_header in xaa.h
18894do :
18895  ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18896if test "x$ac_cv_header_xaa_h" = xyes; then :
18897  cat >>confdefs.h <<_ACEOF
18898#define HAVE_XAA_H 1
18899_ACEOF
18900 XAA=yes
18901else
18902  XAA=no
18903fi
18904
18905done
18906
18907        CFLAGS=$save_CFLAGS
18908        CPPFLAGS=$save_CPPFLAGS
18909fi
18910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18911$as_echo_n "checking whether to include XAA support... " >&6; }
18912 if test "x$XAA" = xyes; then
18913  XAA_TRUE=
18914  XAA_FALSE='#'
18915else
18916  XAA_TRUE='#'
18917  XAA_FALSE=
18918fi
18919
18920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18921$as_echo "$XAA" >&6; }
18922
18923
18924
18925DRIVER_NAME=tdfx
18926
18927
18928ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18929
18930cat >confcache <<\_ACEOF
18931# This file is a shell script that caches the results of configure
18932# tests run on this system so they can be shared between configure
18933# scripts and configure runs, see configure's option --config-cache.
18934# It is not useful on other systems.  If it contains results you don't
18935# want to keep, you may remove or edit it.
18936#
18937# config.status only pays attention to the cache file if you give it
18938# the --recheck option to rerun configure.
18939#
18940# `ac_cv_env_foo' variables (set or unset) will be overridden when
18941# loading this file, other *unset* `ac_cv_foo' will be assigned the
18942# following values.
18943
18944_ACEOF
18945
18946# The following way of writing the cache mishandles newlines in values,
18947# but we know of no workaround that is simple, portable, and efficient.
18948# So, we kill variables containing newlines.
18949# Ultrix sh set writes to stderr and can't be redirected directly,
18950# and sets the high bit in the cache file unless we assign to the vars.
18951(
18952  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18953    eval ac_val=\$$ac_var
18954    case $ac_val in #(
18955    *${as_nl}*)
18956      case $ac_var in #(
18957      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18958$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18959      esac
18960      case $ac_var in #(
18961      _ | IFS | as_nl) ;; #(
18962      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18963      *) { eval $ac_var=; unset $ac_var;} ;;
18964      esac ;;
18965    esac
18966  done
18967
18968  (set) 2>&1 |
18969    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18970    *${as_nl}ac_space=\ *)
18971      # `set' does not quote correctly, so add quotes: double-quote
18972      # substitution turns \\\\ into \\, and sed turns \\ into \.
18973      sed -n \
18974	"s/'/'\\\\''/g;
18975	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18976      ;; #(
18977    *)
18978      # `set' quotes correctly as required by POSIX, so do not add quotes.
18979      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18980      ;;
18981    esac |
18982    sort
18983) |
18984  sed '
18985     /^ac_cv_env_/b end
18986     t clear
18987     :clear
18988     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18989     t end
18990     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18991     :end' >>confcache
18992if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18993  if test -w "$cache_file"; then
18994    if test "x$cache_file" != "x/dev/null"; then
18995      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18996$as_echo "$as_me: updating cache $cache_file" >&6;}
18997      if test ! -f "$cache_file" || test -h "$cache_file"; then
18998	cat confcache >"$cache_file"
18999      else
19000        case $cache_file in #(
19001        */* | ?:*)
19002	  mv -f confcache "$cache_file"$$ &&
19003	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19004        *)
19005	  mv -f confcache "$cache_file" ;;
19006	esac
19007      fi
19008    fi
19009  else
19010    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19011$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19012  fi
19013fi
19014rm -f confcache
19015
19016test "x$prefix" = xNONE && prefix=$ac_default_prefix
19017# Let make expand exec_prefix.
19018test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19019
19020DEFS=-DHAVE_CONFIG_H
19021
19022ac_libobjs=
19023ac_ltlibobjs=
19024U=
19025for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19026  # 1. Remove the extension, and $U if already installed.
19027  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19028  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19029  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19030  #    will be set to the directory where LIBOBJS objects are built.
19031  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19032  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19033done
19034LIBOBJS=$ac_libobjs
19035
19036LTLIBOBJS=$ac_ltlibobjs
19037
19038
19039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19040$as_echo_n "checking that generated files are newer than configure... " >&6; }
19041   if test -n "$am_sleep_pid"; then
19042     # Hide warnings about reused PIDs.
19043     wait $am_sleep_pid 2>/dev/null
19044   fi
19045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19046$as_echo "done" >&6; }
19047 if test -n "$EXEEXT"; then
19048  am__EXEEXT_TRUE=
19049  am__EXEEXT_FALSE='#'
19050else
19051  am__EXEEXT_TRUE='#'
19052  am__EXEEXT_FALSE=
19053fi
19054
19055if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19056  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19057Usually this means the macro was only invoked conditionally." "$LINENO" 5
19058fi
19059if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19060  as_fn_error $? "conditional \"AMDEP\" was never defined.
19061Usually this means the macro was only invoked conditionally." "$LINENO" 5
19062fi
19063if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19064  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19065Usually this means the macro was only invoked conditionally." "$LINENO" 5
19066fi
19067if test -z "${DRI_TRUE}" && test -z "${DRI_FALSE}"; then
19068  as_fn_error $? "conditional \"DRI\" was never defined.
19069Usually this means the macro was only invoked conditionally." "$LINENO" 5
19070fi
19071if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19072  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19073Usually this means the macro was only invoked conditionally." "$LINENO" 5
19074fi
19075if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19076  as_fn_error $? "conditional \"XAA\" was never defined.
19077Usually this means the macro was only invoked conditionally." "$LINENO" 5
19078fi
19079
19080: "${CONFIG_STATUS=./config.status}"
19081ac_write_fail=0
19082ac_clean_files_save=$ac_clean_files
19083ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19084{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19085$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19086as_write_fail=0
19087cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19088#! $SHELL
19089# Generated by $as_me.
19090# Run this file to recreate the current configuration.
19091# Compiler output produced by configure, useful for debugging
19092# configure, is in config.log if it exists.
19093
19094debug=false
19095ac_cs_recheck=false
19096ac_cs_silent=false
19097
19098SHELL=\${CONFIG_SHELL-$SHELL}
19099export SHELL
19100_ASEOF
19101cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19102## -------------------- ##
19103## M4sh Initialization. ##
19104## -------------------- ##
19105
19106# Be more Bourne compatible
19107DUALCASE=1; export DUALCASE # for MKS sh
19108if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19109  emulate sh
19110  NULLCMD=:
19111  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19112  # is contrary to our usage.  Disable this feature.
19113  alias -g '${1+"$@"}'='"$@"'
19114  setopt NO_GLOB_SUBST
19115else
19116  case `(set -o) 2>/dev/null` in #(
19117  *posix*) :
19118    set -o posix ;; #(
19119  *) :
19120     ;;
19121esac
19122fi
19123
19124
19125as_nl='
19126'
19127export as_nl
19128# Printing a long string crashes Solaris 7 /usr/bin/printf.
19129as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19130as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19131as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19132# Prefer a ksh shell builtin over an external printf program on Solaris,
19133# but without wasting forks for bash or zsh.
19134if test -z "$BASH_VERSION$ZSH_VERSION" \
19135    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19136  as_echo='print -r --'
19137  as_echo_n='print -rn --'
19138elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19139  as_echo='printf %s\n'
19140  as_echo_n='printf %s'
19141else
19142  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19143    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19144    as_echo_n='/usr/ucb/echo -n'
19145  else
19146    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19147    as_echo_n_body='eval
19148      arg=$1;
19149      case $arg in #(
19150      *"$as_nl"*)
19151	expr "X$arg" : "X\\(.*\\)$as_nl";
19152	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19153      esac;
19154      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19155    '
19156    export as_echo_n_body
19157    as_echo_n='sh -c $as_echo_n_body as_echo'
19158  fi
19159  export as_echo_body
19160  as_echo='sh -c $as_echo_body as_echo'
19161fi
19162
19163# The user is always right.
19164if test "${PATH_SEPARATOR+set}" != set; then
19165  PATH_SEPARATOR=:
19166  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19167    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19168      PATH_SEPARATOR=';'
19169  }
19170fi
19171
19172
19173# IFS
19174# We need space, tab and new line, in precisely that order.  Quoting is
19175# there to prevent editors from complaining about space-tab.
19176# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19177# splitting by setting IFS to empty value.)
19178IFS=" ""	$as_nl"
19179
19180# Find who we are.  Look in the path if we contain no directory separator.
19181as_myself=
19182case $0 in #((
19183  *[\\/]* ) as_myself=$0 ;;
19184  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19185for as_dir in $PATH
19186do
19187  IFS=$as_save_IFS
19188  test -z "$as_dir" && as_dir=.
19189    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19190  done
19191IFS=$as_save_IFS
19192
19193     ;;
19194esac
19195# We did not find ourselves, most probably we were run as `sh COMMAND'
19196# in which case we are not to be found in the path.
19197if test "x$as_myself" = x; then
19198  as_myself=$0
19199fi
19200if test ! -f "$as_myself"; then
19201  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19202  exit 1
19203fi
19204
19205# Unset variables that we do not need and which cause bugs (e.g. in
19206# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19207# suppresses any "Segmentation fault" message there.  '((' could
19208# trigger a bug in pdksh 5.2.14.
19209for as_var in BASH_ENV ENV MAIL MAILPATH
19210do eval test x\${$as_var+set} = xset \
19211  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19212done
19213PS1='$ '
19214PS2='> '
19215PS4='+ '
19216
19217# NLS nuisances.
19218LC_ALL=C
19219export LC_ALL
19220LANGUAGE=C
19221export LANGUAGE
19222
19223# CDPATH.
19224(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19225
19226
19227# as_fn_error STATUS ERROR [LINENO LOG_FD]
19228# ----------------------------------------
19229# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19230# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19231# script with STATUS, using 1 if that was 0.
19232as_fn_error ()
19233{
19234  as_status=$1; test $as_status -eq 0 && as_status=1
19235  if test "$4"; then
19236    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19237    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19238  fi
19239  $as_echo "$as_me: error: $2" >&2
19240  as_fn_exit $as_status
19241} # as_fn_error
19242
19243
19244# as_fn_set_status STATUS
19245# -----------------------
19246# Set $? to STATUS, without forking.
19247as_fn_set_status ()
19248{
19249  return $1
19250} # as_fn_set_status
19251
19252# as_fn_exit STATUS
19253# -----------------
19254# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19255as_fn_exit ()
19256{
19257  set +e
19258  as_fn_set_status $1
19259  exit $1
19260} # as_fn_exit
19261
19262# as_fn_unset VAR
19263# ---------------
19264# Portably unset VAR.
19265as_fn_unset ()
19266{
19267  { eval $1=; unset $1;}
19268}
19269as_unset=as_fn_unset
19270# as_fn_append VAR VALUE
19271# ----------------------
19272# Append the text in VALUE to the end of the definition contained in VAR. Take
19273# advantage of any shell optimizations that allow amortized linear growth over
19274# repeated appends, instead of the typical quadratic growth present in naive
19275# implementations.
19276if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19277  eval 'as_fn_append ()
19278  {
19279    eval $1+=\$2
19280  }'
19281else
19282  as_fn_append ()
19283  {
19284    eval $1=\$$1\$2
19285  }
19286fi # as_fn_append
19287
19288# as_fn_arith ARG...
19289# ------------------
19290# Perform arithmetic evaluation on the ARGs, and store the result in the
19291# global $as_val. Take advantage of shells that can avoid forks. The arguments
19292# must be portable across $(()) and expr.
19293if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19294  eval 'as_fn_arith ()
19295  {
19296    as_val=$(( $* ))
19297  }'
19298else
19299  as_fn_arith ()
19300  {
19301    as_val=`expr "$@" || test $? -eq 1`
19302  }
19303fi # as_fn_arith
19304
19305
19306if expr a : '\(a\)' >/dev/null 2>&1 &&
19307   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19308  as_expr=expr
19309else
19310  as_expr=false
19311fi
19312
19313if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19314  as_basename=basename
19315else
19316  as_basename=false
19317fi
19318
19319if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19320  as_dirname=dirname
19321else
19322  as_dirname=false
19323fi
19324
19325as_me=`$as_basename -- "$0" ||
19326$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19327	 X"$0" : 'X\(//\)$' \| \
19328	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19329$as_echo X/"$0" |
19330    sed '/^.*\/\([^/][^/]*\)\/*$/{
19331	    s//\1/
19332	    q
19333	  }
19334	  /^X\/\(\/\/\)$/{
19335	    s//\1/
19336	    q
19337	  }
19338	  /^X\/\(\/\).*/{
19339	    s//\1/
19340	    q
19341	  }
19342	  s/.*/./; q'`
19343
19344# Avoid depending upon Character Ranges.
19345as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19346as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19347as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19348as_cr_digits='0123456789'
19349as_cr_alnum=$as_cr_Letters$as_cr_digits
19350
19351ECHO_C= ECHO_N= ECHO_T=
19352case `echo -n x` in #(((((
19353-n*)
19354  case `echo 'xy\c'` in
19355  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19356  xy)  ECHO_C='\c';;
19357  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19358       ECHO_T='	';;
19359  esac;;
19360*)
19361  ECHO_N='-n';;
19362esac
19363
19364rm -f conf$$ conf$$.exe conf$$.file
19365if test -d conf$$.dir; then
19366  rm -f conf$$.dir/conf$$.file
19367else
19368  rm -f conf$$.dir
19369  mkdir conf$$.dir 2>/dev/null
19370fi
19371if (echo >conf$$.file) 2>/dev/null; then
19372  if ln -s conf$$.file conf$$ 2>/dev/null; then
19373    as_ln_s='ln -s'
19374    # ... but there are two gotchas:
19375    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19376    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19377    # In both cases, we have to default to `cp -pR'.
19378    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19379      as_ln_s='cp -pR'
19380  elif ln conf$$.file conf$$ 2>/dev/null; then
19381    as_ln_s=ln
19382  else
19383    as_ln_s='cp -pR'
19384  fi
19385else
19386  as_ln_s='cp -pR'
19387fi
19388rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19389rmdir conf$$.dir 2>/dev/null
19390
19391
19392# as_fn_mkdir_p
19393# -------------
19394# Create "$as_dir" as a directory, including parents if necessary.
19395as_fn_mkdir_p ()
19396{
19397
19398  case $as_dir in #(
19399  -*) as_dir=./$as_dir;;
19400  esac
19401  test -d "$as_dir" || eval $as_mkdir_p || {
19402    as_dirs=
19403    while :; do
19404      case $as_dir in #(
19405      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19406      *) as_qdir=$as_dir;;
19407      esac
19408      as_dirs="'$as_qdir' $as_dirs"
19409      as_dir=`$as_dirname -- "$as_dir" ||
19410$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19411	 X"$as_dir" : 'X\(//\)[^/]' \| \
19412	 X"$as_dir" : 'X\(//\)$' \| \
19413	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19414$as_echo X"$as_dir" |
19415    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19416	    s//\1/
19417	    q
19418	  }
19419	  /^X\(\/\/\)[^/].*/{
19420	    s//\1/
19421	    q
19422	  }
19423	  /^X\(\/\/\)$/{
19424	    s//\1/
19425	    q
19426	  }
19427	  /^X\(\/\).*/{
19428	    s//\1/
19429	    q
19430	  }
19431	  s/.*/./; q'`
19432      test -d "$as_dir" && break
19433    done
19434    test -z "$as_dirs" || eval "mkdir $as_dirs"
19435  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19436
19437
19438} # as_fn_mkdir_p
19439if mkdir -p . 2>/dev/null; then
19440  as_mkdir_p='mkdir -p "$as_dir"'
19441else
19442  test -d ./-p && rmdir ./-p
19443  as_mkdir_p=false
19444fi
19445
19446
19447# as_fn_executable_p FILE
19448# -----------------------
19449# Test if FILE is an executable regular file.
19450as_fn_executable_p ()
19451{
19452  test -f "$1" && test -x "$1"
19453} # as_fn_executable_p
19454as_test_x='test -x'
19455as_executable_p=as_fn_executable_p
19456
19457# Sed expression to map a string onto a valid CPP name.
19458as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19459
19460# Sed expression to map a string onto a valid variable name.
19461as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19462
19463
19464exec 6>&1
19465## ----------------------------------- ##
19466## Main body of $CONFIG_STATUS script. ##
19467## ----------------------------------- ##
19468_ASEOF
19469test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19470
19471cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19472# Save the log message, to keep $0 and so on meaningful, and to
19473# report actual input values of CONFIG_FILES etc. instead of their
19474# values after options handling.
19475ac_log="
19476This file was extended by xf86-video-tdfx $as_me 1.4.6, which was
19477generated by GNU Autoconf 2.69.  Invocation command line was
19478
19479  CONFIG_FILES    = $CONFIG_FILES
19480  CONFIG_HEADERS  = $CONFIG_HEADERS
19481  CONFIG_LINKS    = $CONFIG_LINKS
19482  CONFIG_COMMANDS = $CONFIG_COMMANDS
19483  $ $0 $@
19484
19485on `(hostname || uname -n) 2>/dev/null | sed 1q`
19486"
19487
19488_ACEOF
19489
19490case $ac_config_files in *"
19491"*) set x $ac_config_files; shift; ac_config_files=$*;;
19492esac
19493
19494case $ac_config_headers in *"
19495"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19496esac
19497
19498
19499cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19500# Files that config.status was made for.
19501config_files="$ac_config_files"
19502config_headers="$ac_config_headers"
19503config_commands="$ac_config_commands"
19504
19505_ACEOF
19506
19507cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19508ac_cs_usage="\
19509\`$as_me' instantiates files and other configuration actions
19510from templates according to the current configuration.  Unless the files
19511and actions are specified as TAGs, all are instantiated by default.
19512
19513Usage: $0 [OPTION]... [TAG]...
19514
19515  -h, --help       print this help, then exit
19516  -V, --version    print version number and configuration settings, then exit
19517      --config     print configuration, then exit
19518  -q, --quiet, --silent
19519                   do not print progress messages
19520  -d, --debug      don't remove temporary files
19521      --recheck    update $as_me by reconfiguring in the same conditions
19522      --file=FILE[:TEMPLATE]
19523                   instantiate the configuration file FILE
19524      --header=FILE[:TEMPLATE]
19525                   instantiate the configuration header FILE
19526
19527Configuration files:
19528$config_files
19529
19530Configuration headers:
19531$config_headers
19532
19533Configuration commands:
19534$config_commands
19535
19536Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
19537
19538_ACEOF
19539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19540ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19541ac_cs_version="\\
19542xf86-video-tdfx config.status 1.4.6
19543configured by $0, generated by GNU Autoconf 2.69,
19544  with options \\"\$ac_cs_config\\"
19545
19546Copyright (C) 2012 Free Software Foundation, Inc.
19547This config.status script is free software; the Free Software Foundation
19548gives unlimited permission to copy, distribute and modify it."
19549
19550ac_pwd='$ac_pwd'
19551srcdir='$srcdir'
19552INSTALL='$INSTALL'
19553MKDIR_P='$MKDIR_P'
19554AWK='$AWK'
19555test -n "\$AWK" || AWK=awk
19556_ACEOF
19557
19558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19559# The default lists apply if the user does not specify any file.
19560ac_need_defaults=:
19561while test $# != 0
19562do
19563  case $1 in
19564  --*=?*)
19565    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19566    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19567    ac_shift=:
19568    ;;
19569  --*=)
19570    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19571    ac_optarg=
19572    ac_shift=:
19573    ;;
19574  *)
19575    ac_option=$1
19576    ac_optarg=$2
19577    ac_shift=shift
19578    ;;
19579  esac
19580
19581  case $ac_option in
19582  # Handling of the options.
19583  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19584    ac_cs_recheck=: ;;
19585  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19586    $as_echo "$ac_cs_version"; exit ;;
19587  --config | --confi | --conf | --con | --co | --c )
19588    $as_echo "$ac_cs_config"; exit ;;
19589  --debug | --debu | --deb | --de | --d | -d )
19590    debug=: ;;
19591  --file | --fil | --fi | --f )
19592    $ac_shift
19593    case $ac_optarg in
19594    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19595    '') as_fn_error $? "missing file argument" ;;
19596    esac
19597    as_fn_append CONFIG_FILES " '$ac_optarg'"
19598    ac_need_defaults=false;;
19599  --header | --heade | --head | --hea )
19600    $ac_shift
19601    case $ac_optarg in
19602    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19603    esac
19604    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19605    ac_need_defaults=false;;
19606  --he | --h)
19607    # Conflict between --help and --header
19608    as_fn_error $? "ambiguous option: \`$1'
19609Try \`$0 --help' for more information.";;
19610  --help | --hel | -h )
19611    $as_echo "$ac_cs_usage"; exit ;;
19612  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19613  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19614    ac_cs_silent=: ;;
19615
19616  # This is an error.
19617  -*) as_fn_error $? "unrecognized option: \`$1'
19618Try \`$0 --help' for more information." ;;
19619
19620  *) as_fn_append ac_config_targets " $1"
19621     ac_need_defaults=false ;;
19622
19623  esac
19624  shift
19625done
19626
19627ac_configure_extra_args=
19628
19629if $ac_cs_silent; then
19630  exec 6>/dev/null
19631  ac_configure_extra_args="$ac_configure_extra_args --silent"
19632fi
19633
19634_ACEOF
19635cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19636if \$ac_cs_recheck; then
19637  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19638  shift
19639  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19640  CONFIG_SHELL='$SHELL'
19641  export CONFIG_SHELL
19642  exec "\$@"
19643fi
19644
19645_ACEOF
19646cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19647exec 5>>config.log
19648{
19649  echo
19650  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19651## Running $as_me. ##
19652_ASBOX
19653  $as_echo "$ac_log"
19654} >&5
19655
19656_ACEOF
19657cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19658#
19659# INIT-COMMANDS
19660#
19661AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19662
19663
19664# The HP-UX ksh and POSIX shell print the target directory to stdout
19665# if CDPATH is set.
19666(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19667
19668sed_quote_subst='$sed_quote_subst'
19669double_quote_subst='$double_quote_subst'
19670delay_variable_subst='$delay_variable_subst'
19671enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19672macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19673macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19674enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19675pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19676enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19677shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19678SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19679ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19680PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19681host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19682host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19683host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19684build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19685build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19686build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19687SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19688Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19689GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19690EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19691FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19692LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19693NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19694LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19695max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19696ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19697exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19698lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19699lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19700lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19701lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19702lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19703reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19704reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19705OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19706deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19707file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19708file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19709want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19710DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19711sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19712AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19713AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19714archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19715STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19716RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19717old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19718old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19719old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19720lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19721CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19722CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19723compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19724GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19725lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19726lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19727lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19728lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19729lt_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"`'
19730lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19731nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19732lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19733lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19734objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19735MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19736lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19737lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19738lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19739lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19740lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19741need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19742MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19743DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19744NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19745LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19746OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19747OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19748libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19749shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19750extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19751archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19752enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19753export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19754whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19755compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19756old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19757old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19758archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19759archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19760module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19761module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19762with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19763allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19764no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19765hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19766hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19767hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19768hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19769hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19770hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19771hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19772inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19773link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19774always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19775export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19776exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19777include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19778prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19779postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19780file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19781variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19782need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19783need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19784version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19785runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19786shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19787shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19788libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19789library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19790soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19791install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19792postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19793postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19794finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19795finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19796hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19797sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19798sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19799hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19800enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19801enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19802enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19803old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19804striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19805
19806LTCC='$LTCC'
19807LTCFLAGS='$LTCFLAGS'
19808compiler='$compiler_DEFAULT'
19809
19810# A function that is used when there is no print builtin or printf.
19811func_fallback_echo ()
19812{
19813  eval 'cat <<_LTECHO_EOF
19814\$1
19815_LTECHO_EOF'
19816}
19817
19818# Quote evaled strings.
19819for var in SHELL \
19820ECHO \
19821PATH_SEPARATOR \
19822SED \
19823GREP \
19824EGREP \
19825FGREP \
19826LD \
19827NM \
19828LN_S \
19829lt_SP2NL \
19830lt_NL2SP \
19831reload_flag \
19832OBJDUMP \
19833deplibs_check_method \
19834file_magic_cmd \
19835file_magic_glob \
19836want_nocaseglob \
19837DLLTOOL \
19838sharedlib_from_linklib_cmd \
19839AR \
19840AR_FLAGS \
19841archiver_list_spec \
19842STRIP \
19843RANLIB \
19844CC \
19845CFLAGS \
19846compiler \
19847lt_cv_sys_global_symbol_pipe \
19848lt_cv_sys_global_symbol_to_cdecl \
19849lt_cv_sys_global_symbol_to_import \
19850lt_cv_sys_global_symbol_to_c_name_address \
19851lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19852lt_cv_nm_interface \
19853nm_file_list_spec \
19854lt_cv_truncate_bin \
19855lt_prog_compiler_no_builtin_flag \
19856lt_prog_compiler_pic \
19857lt_prog_compiler_wl \
19858lt_prog_compiler_static \
19859lt_cv_prog_compiler_c_o \
19860need_locks \
19861MANIFEST_TOOL \
19862DSYMUTIL \
19863NMEDIT \
19864LIPO \
19865OTOOL \
19866OTOOL64 \
19867shrext_cmds \
19868export_dynamic_flag_spec \
19869whole_archive_flag_spec \
19870compiler_needs_object \
19871with_gnu_ld \
19872allow_undefined_flag \
19873no_undefined_flag \
19874hardcode_libdir_flag_spec \
19875hardcode_libdir_separator \
19876exclude_expsyms \
19877include_expsyms \
19878file_list_spec \
19879variables_saved_for_relink \
19880libname_spec \
19881library_names_spec \
19882soname_spec \
19883install_override_mode \
19884finish_eval \
19885old_striplib \
19886striplib; do
19887    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19888    *[\\\\\\\`\\"\\\$]*)
19889      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19890      ;;
19891    *)
19892      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19893      ;;
19894    esac
19895done
19896
19897# Double-quote double-evaled strings.
19898for var in reload_cmds \
19899old_postinstall_cmds \
19900old_postuninstall_cmds \
19901old_archive_cmds \
19902extract_expsyms_cmds \
19903old_archive_from_new_cmds \
19904old_archive_from_expsyms_cmds \
19905archive_cmds \
19906archive_expsym_cmds \
19907module_cmds \
19908module_expsym_cmds \
19909export_symbols_cmds \
19910prelink_cmds \
19911postlink_cmds \
19912postinstall_cmds \
19913postuninstall_cmds \
19914finish_cmds \
19915sys_lib_search_path_spec \
19916sys_lib_dlsearch_path_spec; do
19917    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19918    *[\\\\\\\`\\"\\\$]*)
19919      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19920      ;;
19921    *)
19922      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19923      ;;
19924    esac
19925done
19926
19927ac_aux_dir='$ac_aux_dir'
19928
19929# See if we are running on zsh, and set the options that allow our
19930# commands through without removal of \ escapes INIT.
19931if test -n "\${ZSH_VERSION+set}"; then
19932   setopt NO_GLOB_SUBST
19933fi
19934
19935
19936    PACKAGE='$PACKAGE'
19937    VERSION='$VERSION'
19938    RM='$RM'
19939    ofile='$ofile'
19940
19941
19942
19943
19944_ACEOF
19945
19946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19947
19948# Handling of arguments.
19949for ac_config_target in $ac_config_targets
19950do
19951  case $ac_config_target in
19952    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19953    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19954    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19955    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19956    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19957    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19958
19959  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19960  esac
19961done
19962
19963
19964# If the user did not use the arguments to specify the items to instantiate,
19965# then the envvar interface is used.  Set only those that are not.
19966# We use the long form for the default assignment because of an extremely
19967# bizarre bug on SunOS 4.1.3.
19968if $ac_need_defaults; then
19969  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19970  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19971  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19972fi
19973
19974# Have a temporary directory for convenience.  Make it in the build tree
19975# simply because there is no reason against having it here, and in addition,
19976# creating and moving files from /tmp can sometimes cause problems.
19977# Hook for its removal unless debugging.
19978# Note that there is a small window in which the directory will not be cleaned:
19979# after its creation but before its name has been assigned to `$tmp'.
19980$debug ||
19981{
19982  tmp= ac_tmp=
19983  trap 'exit_status=$?
19984  : "${ac_tmp:=$tmp}"
19985  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19986' 0
19987  trap 'as_fn_exit 1' 1 2 13 15
19988}
19989# Create a (secure) tmp directory for tmp files.
19990
19991{
19992  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19993  test -d "$tmp"
19994}  ||
19995{
19996  tmp=./conf$$-$RANDOM
19997  (umask 077 && mkdir "$tmp")
19998} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19999ac_tmp=$tmp
20000
20001# Set up the scripts for CONFIG_FILES section.
20002# No need to generate them if there are no CONFIG_FILES.
20003# This happens for instance with `./config.status config.h'.
20004if test -n "$CONFIG_FILES"; then
20005
20006
20007ac_cr=`echo X | tr X '\015'`
20008# On cygwin, bash can eat \r inside `` if the user requested igncr.
20009# But we know of no other shell where ac_cr would be empty at this
20010# point, so we can use a bashism as a fallback.
20011if test "x$ac_cr" = x; then
20012  eval ac_cr=\$\'\\r\'
20013fi
20014ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20015if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20016  ac_cs_awk_cr='\\r'
20017else
20018  ac_cs_awk_cr=$ac_cr
20019fi
20020
20021echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20022_ACEOF
20023
20024
20025{
20026  echo "cat >conf$$subs.awk <<_ACEOF" &&
20027  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20028  echo "_ACEOF"
20029} >conf$$subs.sh ||
20030  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20031ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20032ac_delim='%!_!# '
20033for ac_last_try in false false false false false :; do
20034  . ./conf$$subs.sh ||
20035    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20036
20037  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20038  if test $ac_delim_n = $ac_delim_num; then
20039    break
20040  elif $ac_last_try; then
20041    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20042  else
20043    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20044  fi
20045done
20046rm -f conf$$subs.sh
20047
20048cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20049cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20050_ACEOF
20051sed -n '
20052h
20053s/^/S["/; s/!.*/"]=/
20054p
20055g
20056s/^[^!]*!//
20057:repl
20058t repl
20059s/'"$ac_delim"'$//
20060t delim
20061:nl
20062h
20063s/\(.\{148\}\)..*/\1/
20064t more1
20065s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20066p
20067n
20068b repl
20069:more1
20070s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20071p
20072g
20073s/.\{148\}//
20074t nl
20075:delim
20076h
20077s/\(.\{148\}\)..*/\1/
20078t more2
20079s/["\\]/\\&/g; s/^/"/; s/$/"/
20080p
20081b
20082:more2
20083s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20084p
20085g
20086s/.\{148\}//
20087t delim
20088' <conf$$subs.awk | sed '
20089/^[^""]/{
20090  N
20091  s/\n//
20092}
20093' >>$CONFIG_STATUS || ac_write_fail=1
20094rm -f conf$$subs.awk
20095cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20096_ACAWK
20097cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20098  for (key in S) S_is_set[key] = 1
20099  FS = ""
20100
20101}
20102{
20103  line = $ 0
20104  nfields = split(line, field, "@")
20105  substed = 0
20106  len = length(field[1])
20107  for (i = 2; i < nfields; i++) {
20108    key = field[i]
20109    keylen = length(key)
20110    if (S_is_set[key]) {
20111      value = S[key]
20112      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20113      len += length(value) + length(field[++i])
20114      substed = 1
20115    } else
20116      len += 1 + keylen
20117  }
20118
20119  print line
20120}
20121
20122_ACAWK
20123_ACEOF
20124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20125if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20126  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20127else
20128  cat
20129fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20130  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20131_ACEOF
20132
20133# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20134# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20135# trailing colons and then remove the whole line if VPATH becomes empty
20136# (actually we leave an empty line to preserve line numbers).
20137if test "x$srcdir" = x.; then
20138  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20139h
20140s///
20141s/^/:/
20142s/[	 ]*$/:/
20143s/:\$(srcdir):/:/g
20144s/:\${srcdir}:/:/g
20145s/:@srcdir@:/:/g
20146s/^:*//
20147s/:*$//
20148x
20149s/\(=[	 ]*\).*/\1/
20150G
20151s/\n//
20152s/^[^=]*=[	 ]*$//
20153}'
20154fi
20155
20156cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20157fi # test -n "$CONFIG_FILES"
20158
20159# Set up the scripts for CONFIG_HEADERS section.
20160# No need to generate them if there are no CONFIG_HEADERS.
20161# This happens for instance with `./config.status Makefile'.
20162if test -n "$CONFIG_HEADERS"; then
20163cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20164BEGIN {
20165_ACEOF
20166
20167# Transform confdefs.h into an awk script `defines.awk', embedded as
20168# here-document in config.status, that substitutes the proper values into
20169# config.h.in to produce config.h.
20170
20171# Create a delimiter string that does not exist in confdefs.h, to ease
20172# handling of long lines.
20173ac_delim='%!_!# '
20174for ac_last_try in false false :; do
20175  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20176  if test -z "$ac_tt"; then
20177    break
20178  elif $ac_last_try; then
20179    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20180  else
20181    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20182  fi
20183done
20184
20185# For the awk script, D is an array of macro values keyed by name,
20186# likewise P contains macro parameters if any.  Preserve backslash
20187# newline sequences.
20188
20189ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20190sed -n '
20191s/.\{148\}/&'"$ac_delim"'/g
20192t rset
20193:rset
20194s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20195t def
20196d
20197:def
20198s/\\$//
20199t bsnl
20200s/["\\]/\\&/g
20201s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20202D["\1"]=" \3"/p
20203s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20204d
20205:bsnl
20206s/["\\]/\\&/g
20207s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20208D["\1"]=" \3\\\\\\n"\\/p
20209t cont
20210s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20211t cont
20212d
20213:cont
20214n
20215s/.\{148\}/&'"$ac_delim"'/g
20216t clear
20217:clear
20218s/\\$//
20219t bsnlc
20220s/["\\]/\\&/g; s/^/"/; s/$/"/p
20221d
20222:bsnlc
20223s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20224b cont
20225' <confdefs.h | sed '
20226s/'"$ac_delim"'/"\\\
20227"/g' >>$CONFIG_STATUS || ac_write_fail=1
20228
20229cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20230  for (key in D) D_is_set[key] = 1
20231  FS = ""
20232}
20233/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20234  line = \$ 0
20235  split(line, arg, " ")
20236  if (arg[1] == "#") {
20237    defundef = arg[2]
20238    mac1 = arg[3]
20239  } else {
20240    defundef = substr(arg[1], 2)
20241    mac1 = arg[2]
20242  }
20243  split(mac1, mac2, "(") #)
20244  macro = mac2[1]
20245  prefix = substr(line, 1, index(line, defundef) - 1)
20246  if (D_is_set[macro]) {
20247    # Preserve the white space surrounding the "#".
20248    print prefix "define", macro P[macro] D[macro]
20249    next
20250  } else {
20251    # Replace #undef with comments.  This is necessary, for example,
20252    # in the case of _POSIX_SOURCE, which is predefined and required
20253    # on some systems where configure will not decide to define it.
20254    if (defundef == "undef") {
20255      print "/*", prefix defundef, macro, "*/"
20256      next
20257    }
20258  }
20259}
20260{ print }
20261_ACAWK
20262_ACEOF
20263cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20264  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20265fi # test -n "$CONFIG_HEADERS"
20266
20267
20268eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20269shift
20270for ac_tag
20271do
20272  case $ac_tag in
20273  :[FHLC]) ac_mode=$ac_tag; continue;;
20274  esac
20275  case $ac_mode$ac_tag in
20276  :[FHL]*:*);;
20277  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20278  :[FH]-) ac_tag=-:-;;
20279  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20280  esac
20281  ac_save_IFS=$IFS
20282  IFS=:
20283  set x $ac_tag
20284  IFS=$ac_save_IFS
20285  shift
20286  ac_file=$1
20287  shift
20288
20289  case $ac_mode in
20290  :L) ac_source=$1;;
20291  :[FH])
20292    ac_file_inputs=
20293    for ac_f
20294    do
20295      case $ac_f in
20296      -) ac_f="$ac_tmp/stdin";;
20297      *) # Look for the file first in the build tree, then in the source tree
20298	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20299	 # because $ac_f cannot contain `:'.
20300	 test -f "$ac_f" ||
20301	   case $ac_f in
20302	   [\\/$]*) false;;
20303	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20304	   esac ||
20305	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20306      esac
20307      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20308      as_fn_append ac_file_inputs " '$ac_f'"
20309    done
20310
20311    # Let's still pretend it is `configure' which instantiates (i.e., don't
20312    # use $as_me), people would be surprised to read:
20313    #    /* config.h.  Generated by config.status.  */
20314    configure_input='Generated from '`
20315	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20316	`' by configure.'
20317    if test x"$ac_file" != x-; then
20318      configure_input="$ac_file.  $configure_input"
20319      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20320$as_echo "$as_me: creating $ac_file" >&6;}
20321    fi
20322    # Neutralize special characters interpreted by sed in replacement strings.
20323    case $configure_input in #(
20324    *\&* | *\|* | *\\* )
20325       ac_sed_conf_input=`$as_echo "$configure_input" |
20326       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20327    *) ac_sed_conf_input=$configure_input;;
20328    esac
20329
20330    case $ac_tag in
20331    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20332      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20333    esac
20334    ;;
20335  esac
20336
20337  ac_dir=`$as_dirname -- "$ac_file" ||
20338$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20339	 X"$ac_file" : 'X\(//\)[^/]' \| \
20340	 X"$ac_file" : 'X\(//\)$' \| \
20341	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20342$as_echo X"$ac_file" |
20343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20344	    s//\1/
20345	    q
20346	  }
20347	  /^X\(\/\/\)[^/].*/{
20348	    s//\1/
20349	    q
20350	  }
20351	  /^X\(\/\/\)$/{
20352	    s//\1/
20353	    q
20354	  }
20355	  /^X\(\/\).*/{
20356	    s//\1/
20357	    q
20358	  }
20359	  s/.*/./; q'`
20360  as_dir="$ac_dir"; as_fn_mkdir_p
20361  ac_builddir=.
20362
20363case "$ac_dir" in
20364.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20365*)
20366  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20367  # A ".." for each directory in $ac_dir_suffix.
20368  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20369  case $ac_top_builddir_sub in
20370  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20371  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20372  esac ;;
20373esac
20374ac_abs_top_builddir=$ac_pwd
20375ac_abs_builddir=$ac_pwd$ac_dir_suffix
20376# for backward compatibility:
20377ac_top_builddir=$ac_top_build_prefix
20378
20379case $srcdir in
20380  .)  # We are building in place.
20381    ac_srcdir=.
20382    ac_top_srcdir=$ac_top_builddir_sub
20383    ac_abs_top_srcdir=$ac_pwd ;;
20384  [\\/]* | ?:[\\/]* )  # Absolute name.
20385    ac_srcdir=$srcdir$ac_dir_suffix;
20386    ac_top_srcdir=$srcdir
20387    ac_abs_top_srcdir=$srcdir ;;
20388  *) # Relative name.
20389    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20390    ac_top_srcdir=$ac_top_build_prefix$srcdir
20391    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20392esac
20393ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20394
20395
20396  case $ac_mode in
20397  :F)
20398  #
20399  # CONFIG_FILE
20400  #
20401
20402  case $INSTALL in
20403  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20404  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20405  esac
20406  ac_MKDIR_P=$MKDIR_P
20407  case $MKDIR_P in
20408  [\\/$]* | ?:[\\/]* ) ;;
20409  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20410  esac
20411_ACEOF
20412
20413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20414# If the template does not know about datarootdir, expand it.
20415# FIXME: This hack should be removed a few years after 2.60.
20416ac_datarootdir_hack=; ac_datarootdir_seen=
20417ac_sed_dataroot='
20418/datarootdir/ {
20419  p
20420  q
20421}
20422/@datadir@/p
20423/@docdir@/p
20424/@infodir@/p
20425/@localedir@/p
20426/@mandir@/p'
20427case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20428*datarootdir*) ac_datarootdir_seen=yes;;
20429*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20430  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20431$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20432_ACEOF
20433cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20434  ac_datarootdir_hack='
20435  s&@datadir@&$datadir&g
20436  s&@docdir@&$docdir&g
20437  s&@infodir@&$infodir&g
20438  s&@localedir@&$localedir&g
20439  s&@mandir@&$mandir&g
20440  s&\\\${datarootdir}&$datarootdir&g' ;;
20441esac
20442_ACEOF
20443
20444# Neutralize VPATH when `$srcdir' = `.'.
20445# Shell code in configure.ac might set extrasub.
20446# FIXME: do we really want to maintain this feature?
20447cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20448ac_sed_extra="$ac_vpsub
20449$extrasub
20450_ACEOF
20451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20452:t
20453/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20454s|@configure_input@|$ac_sed_conf_input|;t t
20455s&@top_builddir@&$ac_top_builddir_sub&;t t
20456s&@top_build_prefix@&$ac_top_build_prefix&;t t
20457s&@srcdir@&$ac_srcdir&;t t
20458s&@abs_srcdir@&$ac_abs_srcdir&;t t
20459s&@top_srcdir@&$ac_top_srcdir&;t t
20460s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20461s&@builddir@&$ac_builddir&;t t
20462s&@abs_builddir@&$ac_abs_builddir&;t t
20463s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20464s&@INSTALL@&$ac_INSTALL&;t t
20465s&@MKDIR_P@&$ac_MKDIR_P&;t t
20466$ac_datarootdir_hack
20467"
20468eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20469  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20470
20471test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20472  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20473  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20474      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20475  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20476which seems to be undefined.  Please make sure it is defined" >&5
20477$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20478which seems to be undefined.  Please make sure it is defined" >&2;}
20479
20480  rm -f "$ac_tmp/stdin"
20481  case $ac_file in
20482  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20483  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20484  esac \
20485  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20486 ;;
20487  :H)
20488  #
20489  # CONFIG_HEADER
20490  #
20491  if test x"$ac_file" != x-; then
20492    {
20493      $as_echo "/* $configure_input  */" \
20494      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20495    } >"$ac_tmp/config.h" \
20496      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20497    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20498      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20499$as_echo "$as_me: $ac_file is unchanged" >&6;}
20500    else
20501      rm -f "$ac_file"
20502      mv "$ac_tmp/config.h" "$ac_file" \
20503	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20504    fi
20505  else
20506    $as_echo "/* $configure_input  */" \
20507      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20508      || as_fn_error $? "could not create -" "$LINENO" 5
20509  fi
20510# Compute "$ac_file"'s index in $config_headers.
20511_am_arg="$ac_file"
20512_am_stamp_count=1
20513for _am_header in $config_headers :; do
20514  case $_am_header in
20515    $_am_arg | $_am_arg:* )
20516      break ;;
20517    * )
20518      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20519  esac
20520done
20521echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20522$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20523	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20524	 X"$_am_arg" : 'X\(//\)$' \| \
20525	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20526$as_echo X"$_am_arg" |
20527    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20528	    s//\1/
20529	    q
20530	  }
20531	  /^X\(\/\/\)[^/].*/{
20532	    s//\1/
20533	    q
20534	  }
20535	  /^X\(\/\/\)$/{
20536	    s//\1/
20537	    q
20538	  }
20539	  /^X\(\/\).*/{
20540	    s//\1/
20541	    q
20542	  }
20543	  s/.*/./; q'`/stamp-h$_am_stamp_count
20544 ;;
20545
20546  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20547$as_echo "$as_me: executing $ac_file commands" >&6;}
20548 ;;
20549  esac
20550
20551
20552  case $ac_file$ac_mode in
20553    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20554  # Older Autoconf quotes --file arguments for eval, but not when files
20555  # are listed without --file.  Let's play safe and only enable the eval
20556  # if we detect the quoting.
20557  case $CONFIG_FILES in
20558  *\'*) eval set x "$CONFIG_FILES" ;;
20559  *)   set x $CONFIG_FILES ;;
20560  esac
20561  shift
20562  for mf
20563  do
20564    # Strip MF so we end up with the name of the file.
20565    mf=`echo "$mf" | sed -e 's/:.*$//'`
20566    # Check whether this is an Automake generated Makefile or not.
20567    # We used to match only the files named 'Makefile.in', but
20568    # some people rename them; so instead we look at the file content.
20569    # Grep'ing the first line is not enough: some people post-process
20570    # each Makefile.in and add a new line on top of each file to say so.
20571    # Grep'ing the whole file is not good either: AIX grep has a line
20572    # limit of 2048, but all sed's we know have understand at least 4000.
20573    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20574      dirpart=`$as_dirname -- "$mf" ||
20575$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20576	 X"$mf" : 'X\(//\)[^/]' \| \
20577	 X"$mf" : 'X\(//\)$' \| \
20578	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20579$as_echo X"$mf" |
20580    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20581	    s//\1/
20582	    q
20583	  }
20584	  /^X\(\/\/\)[^/].*/{
20585	    s//\1/
20586	    q
20587	  }
20588	  /^X\(\/\/\)$/{
20589	    s//\1/
20590	    q
20591	  }
20592	  /^X\(\/\).*/{
20593	    s//\1/
20594	    q
20595	  }
20596	  s/.*/./; q'`
20597    else
20598      continue
20599    fi
20600    # Extract the definition of DEPDIR, am__include, and am__quote
20601    # from the Makefile without running 'make'.
20602    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20603    test -z "$DEPDIR" && continue
20604    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20605    test -z "$am__include" && continue
20606    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20607    # Find all dependency output files, they are included files with
20608    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20609    # simplest approach to changing $(DEPDIR) to its actual value in the
20610    # expansion.
20611    for file in `sed -n "
20612      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20613	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20614      # Make sure the directory exists.
20615      test -f "$dirpart/$file" && continue
20616      fdir=`$as_dirname -- "$file" ||
20617$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20618	 X"$file" : 'X\(//\)[^/]' \| \
20619	 X"$file" : 'X\(//\)$' \| \
20620	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20621$as_echo X"$file" |
20622    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20623	    s//\1/
20624	    q
20625	  }
20626	  /^X\(\/\/\)[^/].*/{
20627	    s//\1/
20628	    q
20629	  }
20630	  /^X\(\/\/\)$/{
20631	    s//\1/
20632	    q
20633	  }
20634	  /^X\(\/\).*/{
20635	    s//\1/
20636	    q
20637	  }
20638	  s/.*/./; q'`
20639      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20640      # echo "creating $dirpart/$file"
20641      echo '# dummy' > "$dirpart/$file"
20642    done
20643  done
20644}
20645 ;;
20646    "libtool":C)
20647
20648    # See if we are running on zsh, and set the options that allow our
20649    # commands through without removal of \ escapes.
20650    if test -n "${ZSH_VERSION+set}"; then
20651      setopt NO_GLOB_SUBST
20652    fi
20653
20654    cfgfile=${ofile}T
20655    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20656    $RM "$cfgfile"
20657
20658    cat <<_LT_EOF >> "$cfgfile"
20659#! $SHELL
20660# Generated automatically by $as_me ($PACKAGE) $VERSION
20661# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20662# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20663
20664# Provide generalized library-building support services.
20665# Written by Gordon Matzigkeit, 1996
20666
20667# Copyright (C) 2014 Free Software Foundation, Inc.
20668# This is free software; see the source for copying conditions.  There is NO
20669# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20670
20671# GNU Libtool is free software; you can redistribute it and/or modify
20672# it under the terms of the GNU General Public License as published by
20673# the Free Software Foundation; either version 2 of of the License, or
20674# (at your option) any later version.
20675#
20676# As a special exception to the GNU General Public License, if you
20677# distribute this file as part of a program or library that is built
20678# using GNU Libtool, you may include this file under the  same
20679# distribution terms that you use for the rest of that program.
20680#
20681# GNU Libtool is distributed in the hope that it will be useful, but
20682# WITHOUT ANY WARRANTY; without even the implied warranty of
20683# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20684# GNU General Public License for more details.
20685#
20686# You should have received a copy of the GNU General Public License
20687# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20688
20689
20690# The names of the tagged configurations supported by this script.
20691available_tags=''
20692
20693# ### BEGIN LIBTOOL CONFIG
20694
20695# Whether or not to build static libraries.
20696build_old_libs=$enable_static
20697
20698# Which release of libtool.m4 was used?
20699macro_version=$macro_version
20700macro_revision=$macro_revision
20701
20702# Whether or not to build shared libraries.
20703build_libtool_libs=$enable_shared
20704
20705# What type of objects to build.
20706pic_mode=$pic_mode
20707
20708# Whether or not to optimize for fast installation.
20709fast_install=$enable_fast_install
20710
20711# Shared archive member basename,for filename based shared library versioning on AIX.
20712shared_archive_member_spec=$shared_archive_member_spec
20713
20714# Shell to use when invoking shell scripts.
20715SHELL=$lt_SHELL
20716
20717# An echo program that protects backslashes.
20718ECHO=$lt_ECHO
20719
20720# The PATH separator for the build system.
20721PATH_SEPARATOR=$lt_PATH_SEPARATOR
20722
20723# The host system.
20724host_alias=$host_alias
20725host=$host
20726host_os=$host_os
20727
20728# The build system.
20729build_alias=$build_alias
20730build=$build
20731build_os=$build_os
20732
20733# A sed program that does not truncate output.
20734SED=$lt_SED
20735
20736# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20737Xsed="\$SED -e 1s/^X//"
20738
20739# A grep program that handles long lines.
20740GREP=$lt_GREP
20741
20742# An ERE matcher.
20743EGREP=$lt_EGREP
20744
20745# A literal string matcher.
20746FGREP=$lt_FGREP
20747
20748# A BSD- or MS-compatible name lister.
20749NM=$lt_NM
20750
20751# Whether we need soft or hard links.
20752LN_S=$lt_LN_S
20753
20754# What is the maximum length of a command?
20755max_cmd_len=$max_cmd_len
20756
20757# Object file suffix (normally "o").
20758objext=$ac_objext
20759
20760# Executable file suffix (normally "").
20761exeext=$exeext
20762
20763# whether the shell understands "unset".
20764lt_unset=$lt_unset
20765
20766# turn spaces into newlines.
20767SP2NL=$lt_lt_SP2NL
20768
20769# turn newlines into spaces.
20770NL2SP=$lt_lt_NL2SP
20771
20772# convert \$build file names to \$host format.
20773to_host_file_cmd=$lt_cv_to_host_file_cmd
20774
20775# convert \$build files to toolchain format.
20776to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20777
20778# An object symbol dumper.
20779OBJDUMP=$lt_OBJDUMP
20780
20781# Method to check whether dependent libraries are shared objects.
20782deplibs_check_method=$lt_deplibs_check_method
20783
20784# Command to use when deplibs_check_method = "file_magic".
20785file_magic_cmd=$lt_file_magic_cmd
20786
20787# How to find potential files when deplibs_check_method = "file_magic".
20788file_magic_glob=$lt_file_magic_glob
20789
20790# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20791want_nocaseglob=$lt_want_nocaseglob
20792
20793# DLL creation program.
20794DLLTOOL=$lt_DLLTOOL
20795
20796# Command to associate shared and link libraries.
20797sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20798
20799# The archiver.
20800AR=$lt_AR
20801
20802# Flags to create an archive.
20803AR_FLAGS=$lt_AR_FLAGS
20804
20805# How to feed a file listing to the archiver.
20806archiver_list_spec=$lt_archiver_list_spec
20807
20808# A symbol stripping program.
20809STRIP=$lt_STRIP
20810
20811# Commands used to install an old-style archive.
20812RANLIB=$lt_RANLIB
20813old_postinstall_cmds=$lt_old_postinstall_cmds
20814old_postuninstall_cmds=$lt_old_postuninstall_cmds
20815
20816# Whether to use a lock for old archive extraction.
20817lock_old_archive_extraction=$lock_old_archive_extraction
20818
20819# A C compiler.
20820LTCC=$lt_CC
20821
20822# LTCC compiler flags.
20823LTCFLAGS=$lt_CFLAGS
20824
20825# Take the output of nm and produce a listing of raw symbols and C names.
20826global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20827
20828# Transform the output of nm in a proper C declaration.
20829global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20830
20831# Transform the output of nm into a list of symbols to manually relocate.
20832global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20833
20834# Transform the output of nm in a C name address pair.
20835global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20836
20837# Transform the output of nm in a C name address pair when lib prefix is needed.
20838global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20839
20840# The name lister interface.
20841nm_interface=$lt_lt_cv_nm_interface
20842
20843# Specify filename containing input files for \$NM.
20844nm_file_list_spec=$lt_nm_file_list_spec
20845
20846# The root where to search for dependent libraries,and where our libraries should be installed.
20847lt_sysroot=$lt_sysroot
20848
20849# Command to truncate a binary pipe.
20850lt_truncate_bin=$lt_lt_cv_truncate_bin
20851
20852# The name of the directory that contains temporary libtool files.
20853objdir=$objdir
20854
20855# Used to examine libraries when file_magic_cmd begins with "file".
20856MAGIC_CMD=$MAGIC_CMD
20857
20858# Must we lock files when doing compilation?
20859need_locks=$lt_need_locks
20860
20861# Manifest tool.
20862MANIFEST_TOOL=$lt_MANIFEST_TOOL
20863
20864# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20865DSYMUTIL=$lt_DSYMUTIL
20866
20867# Tool to change global to local symbols on Mac OS X.
20868NMEDIT=$lt_NMEDIT
20869
20870# Tool to manipulate fat objects and archives on Mac OS X.
20871LIPO=$lt_LIPO
20872
20873# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20874OTOOL=$lt_OTOOL
20875
20876# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20877OTOOL64=$lt_OTOOL64
20878
20879# Old archive suffix (normally "a").
20880libext=$libext
20881
20882# Shared library suffix (normally ".so").
20883shrext_cmds=$lt_shrext_cmds
20884
20885# The commands to extract the exported symbol list from a shared archive.
20886extract_expsyms_cmds=$lt_extract_expsyms_cmds
20887
20888# Variables whose values should be saved in libtool wrapper scripts and
20889# restored at link time.
20890variables_saved_for_relink=$lt_variables_saved_for_relink
20891
20892# Do we need the "lib" prefix for modules?
20893need_lib_prefix=$need_lib_prefix
20894
20895# Do we need a version for libraries?
20896need_version=$need_version
20897
20898# Library versioning type.
20899version_type=$version_type
20900
20901# Shared library runtime path variable.
20902runpath_var=$runpath_var
20903
20904# Shared library path variable.
20905shlibpath_var=$shlibpath_var
20906
20907# Is shlibpath searched before the hard-coded library search path?
20908shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20909
20910# Format of library name prefix.
20911libname_spec=$lt_libname_spec
20912
20913# List of archive names.  First name is the real one, the rest are links.
20914# The last name is the one that the linker finds with -lNAME
20915library_names_spec=$lt_library_names_spec
20916
20917# The coded name of the library, if different from the real name.
20918soname_spec=$lt_soname_spec
20919
20920# Permission mode override for installation of shared libraries.
20921install_override_mode=$lt_install_override_mode
20922
20923# Command to use after installation of a shared archive.
20924postinstall_cmds=$lt_postinstall_cmds
20925
20926# Command to use after uninstallation of a shared archive.
20927postuninstall_cmds=$lt_postuninstall_cmds
20928
20929# Commands used to finish a libtool library installation in a directory.
20930finish_cmds=$lt_finish_cmds
20931
20932# As "finish_cmds", except a single script fragment to be evaled but
20933# not shown.
20934finish_eval=$lt_finish_eval
20935
20936# Whether we should hardcode library paths into libraries.
20937hardcode_into_libs=$hardcode_into_libs
20938
20939# Compile-time system search path for libraries.
20940sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20941
20942# Run-time system search path for libraries.
20943sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20944
20945# Whether dlopen is supported.
20946dlopen_support=$enable_dlopen
20947
20948# Whether dlopen of programs is supported.
20949dlopen_self=$enable_dlopen_self
20950
20951# Whether dlopen of statically linked programs is supported.
20952dlopen_self_static=$enable_dlopen_self_static
20953
20954# Commands to strip libraries.
20955old_striplib=$lt_old_striplib
20956striplib=$lt_striplib
20957
20958
20959# The linker used to build libraries.
20960LD=$lt_LD
20961
20962# How to create reloadable object files.
20963reload_flag=$lt_reload_flag
20964reload_cmds=$lt_reload_cmds
20965
20966# Commands used to build an old-style archive.
20967old_archive_cmds=$lt_old_archive_cmds
20968
20969# A language specific compiler.
20970CC=$lt_compiler
20971
20972# Is the compiler the GNU compiler?
20973with_gcc=$GCC
20974
20975# Compiler flag to turn off builtin functions.
20976no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20977
20978# Additional compiler flags for building library objects.
20979pic_flag=$lt_lt_prog_compiler_pic
20980
20981# How to pass a linker flag through the compiler.
20982wl=$lt_lt_prog_compiler_wl
20983
20984# Compiler flag to prevent dynamic linking.
20985link_static_flag=$lt_lt_prog_compiler_static
20986
20987# Does compiler simultaneously support -c and -o options?
20988compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20989
20990# Whether or not to add -lc for building shared libraries.
20991build_libtool_need_lc=$archive_cmds_need_lc
20992
20993# Whether or not to disallow shared libs when runtime libs are static.
20994allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20995
20996# Compiler flag to allow reflexive dlopens.
20997export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20998
20999# Compiler flag to generate shared objects directly from archives.
21000whole_archive_flag_spec=$lt_whole_archive_flag_spec
21001
21002# Whether the compiler copes with passing no objects directly.
21003compiler_needs_object=$lt_compiler_needs_object
21004
21005# Create an old-style archive from a shared archive.
21006old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21007
21008# Create a temporary old-style archive to link instead of a shared archive.
21009old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21010
21011# Commands used to build a shared archive.
21012archive_cmds=$lt_archive_cmds
21013archive_expsym_cmds=$lt_archive_expsym_cmds
21014
21015# Commands used to build a loadable module if different from building
21016# a shared archive.
21017module_cmds=$lt_module_cmds
21018module_expsym_cmds=$lt_module_expsym_cmds
21019
21020# Whether we are building with GNU ld or not.
21021with_gnu_ld=$lt_with_gnu_ld
21022
21023# Flag that allows shared libraries with undefined symbols to be built.
21024allow_undefined_flag=$lt_allow_undefined_flag
21025
21026# Flag that enforces no undefined symbols.
21027no_undefined_flag=$lt_no_undefined_flag
21028
21029# Flag to hardcode \$libdir into a binary during linking.
21030# This must work even if \$libdir does not exist
21031hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21032
21033# Whether we need a single "-rpath" flag with a separated argument.
21034hardcode_libdir_separator=$lt_hardcode_libdir_separator
21035
21036# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21037# DIR into the resulting binary.
21038hardcode_direct=$hardcode_direct
21039
21040# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21041# DIR into the resulting binary and the resulting library dependency is
21042# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21043# library is relocated.
21044hardcode_direct_absolute=$hardcode_direct_absolute
21045
21046# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21047# into the resulting binary.
21048hardcode_minus_L=$hardcode_minus_L
21049
21050# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21051# into the resulting binary.
21052hardcode_shlibpath_var=$hardcode_shlibpath_var
21053
21054# Set to "yes" if building a shared library automatically hardcodes DIR
21055# into the library and all subsequent libraries and executables linked
21056# against it.
21057hardcode_automatic=$hardcode_automatic
21058
21059# Set to yes if linker adds runtime paths of dependent libraries
21060# to runtime path list.
21061inherit_rpath=$inherit_rpath
21062
21063# Whether libtool must link a program against all its dependency libraries.
21064link_all_deplibs=$link_all_deplibs
21065
21066# Set to "yes" if exported symbols are required.
21067always_export_symbols=$always_export_symbols
21068
21069# The commands to list exported symbols.
21070export_symbols_cmds=$lt_export_symbols_cmds
21071
21072# Symbols that should not be listed in the preloaded symbols.
21073exclude_expsyms=$lt_exclude_expsyms
21074
21075# Symbols that must always be exported.
21076include_expsyms=$lt_include_expsyms
21077
21078# Commands necessary for linking programs (against libraries) with templates.
21079prelink_cmds=$lt_prelink_cmds
21080
21081# Commands necessary for finishing linking programs.
21082postlink_cmds=$lt_postlink_cmds
21083
21084# Specify filename containing input files.
21085file_list_spec=$lt_file_list_spec
21086
21087# How to hardcode a shared library path into an executable.
21088hardcode_action=$hardcode_action
21089
21090# ### END LIBTOOL CONFIG
21091
21092_LT_EOF
21093
21094  case $host_os in
21095  aix3*)
21096    cat <<\_LT_EOF >> "$cfgfile"
21097# AIX sometimes has problems with the GCC collect2 program.  For some
21098# reason, if we set the COLLECT_NAMES environment variable, the problems
21099# vanish in a puff of smoke.
21100if test set != "${COLLECT_NAMES+set}"; then
21101  COLLECT_NAMES=
21102  export COLLECT_NAMES
21103fi
21104_LT_EOF
21105    ;;
21106  esac
21107
21108
21109ltmain=$ac_aux_dir/ltmain.sh
21110
21111
21112  # We use sed instead of cat because bash on DJGPP gets confused if
21113  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21114  # text mode, it properly converts lines to CR/LF.  This bash problem
21115  # is reportedly fixed, but why not run on old versions too?
21116  sed '$q' "$ltmain" >> "$cfgfile" \
21117     || (rm -f "$cfgfile"; exit 1)
21118
21119   mv -f "$cfgfile" "$ofile" ||
21120    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21121  chmod +x "$ofile"
21122
21123 ;;
21124
21125  esac
21126done # for ac_tag
21127
21128
21129as_fn_exit 0
21130_ACEOF
21131ac_clean_files=$ac_clean_files_save
21132
21133test $ac_write_fail = 0 ||
21134  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21135
21136
21137# configure is writing to config.log, and then calls config.status.
21138# config.status does its own redirection, appending to config.log.
21139# Unfortunately, on DOS this fails, as config.log is still kept open
21140# by configure, so config.status won't be able to write to it; its
21141# output is simply discarded.  So we exec the FD to /dev/null,
21142# effectively closing config.log, so it can be properly (re)opened and
21143# appended to by config.status.  When coming back to configure, we
21144# need to make the FD available again.
21145if test "$no_create" != yes; then
21146  ac_cs_success=:
21147  ac_config_status_args=
21148  test "$silent" = yes &&
21149    ac_config_status_args="$ac_config_status_args --quiet"
21150  exec 5>/dev/null
21151  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21152  exec 5>>config.log
21153  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21154  # would make configure fail if this is the last instruction.
21155  $ac_cs_success || as_fn_exit 1
21156fi
21157if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21158  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21159$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21160fi
21161
21162