configure revision 024581f2
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-video-s3virge 1.11.0.
4#
5# Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-s3virge/issues>.
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://gitlab.freedesktop.org/xorg/driver/xf86-video-s3virge/issues
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-s3virge'
593PACKAGE_TARNAME='xf86-video-s3virge'
594PACKAGE_VERSION='1.11.0'
595PACKAGE_STRING='xf86-video-s3virge 1.11.0'
596PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/driver/xf86-video-s3virge/issues'
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
648HAVE_XEXTPROTO_71_FALSE
649HAVE_XEXTPROTO_71_TRUE
650XEXT_LIBS
651XEXT_CFLAGS
652XORG_LIBS
653XORG_CFLAGS
654LT_SYS_LIBRARY_PATH
655OTOOL64
656OTOOL
657LIPO
658NMEDIT
659DSYMUTIL
660MANIFEST_TOOL
661RANLIB
662ac_ct_AR
663AR
664DLLTOOL
665OBJDUMP
666LN_S
667NM
668ac_ct_DUMPBIN
669DUMPBIN
670LD
671FGREP
672LIBTOOL
673MAN_SUBSTS
674XORG_MAN_PAGE
675ADMIN_MAN_DIR
676DRIVER_MAN_DIR
677MISC_MAN_DIR
678FILE_MAN_DIR
679LIB_MAN_DIR
680APP_MAN_DIR
681ADMIN_MAN_SUFFIX
682DRIVER_MAN_SUFFIX
683MISC_MAN_SUFFIX
684FILE_MAN_SUFFIX
685LIB_MAN_SUFFIX
686APP_MAN_SUFFIX
687SED
688host_os
689host_vendor
690host_cpu
691host
692build_os
693build_vendor
694build_cpu
695build
696INSTALL_CMD
697PKG_CONFIG_LIBDIR
698PKG_CONFIG_PATH
699PKG_CONFIG
700CHANGELOG_CMD
701STRICT_CFLAGS
702CWARNFLAGS
703BASE_CFLAGS
704EGREP
705GREP
706CPP
707am__fastdepCC_FALSE
708am__fastdepCC_TRUE
709CCDEPMODE
710am__nodep
711AMDEPBACKSLASH
712AMDEP_FALSE
713AMDEP_TRUE
714am__quote
715am__include
716DEPDIR
717OBJEXT
718EXEEXT
719ac_ct_CC
720CPPFLAGS
721LDFLAGS
722CFLAGS
723CC
724AM_BACKSLASH
725AM_DEFAULT_VERBOSITY
726AM_DEFAULT_V
727AM_V
728am__untar
729am__tar
730AMTAR
731am__leading_dot
732SET_MAKE
733AWK
734mkdir_p
735MKDIR_P
736INSTALL_STRIP_PROGRAM
737STRIP
738install_sh
739MAKEINFO
740AUTOHEADER
741AUTOMAKE
742AUTOCONF
743ACLOCAL
744VERSION
745PACKAGE
746CYGPATH_W
747am__isrc
748INSTALL_DATA
749INSTALL_SCRIPT
750INSTALL_PROGRAM
751target_alias
752host_alias
753build_alias
754LIBS
755ECHO_T
756ECHO_N
757ECHO_C
758DEFS
759mandir
760localedir
761libdir
762psdir
763pdfdir
764dvidir
765htmldir
766infodir
767docdir
768oldincludedir
769includedir
770runstatedir
771localstatedir
772sharedstatedir
773sysconfdir
774datadir
775datarootdir
776libexecdir
777sbindir
778bindir
779program_transform_name
780prefix
781exec_prefix
782PACKAGE_URL
783PACKAGE_BUGREPORT
784PACKAGE_STRING
785PACKAGE_VERSION
786PACKAGE_TARNAME
787PACKAGE_NAME
788PATH_SEPARATOR
789SHELL'
790ac_subst_files=''
791ac_user_opts='
792enable_option_checking
793enable_silent_rules
794enable_dependency_tracking
795enable_selective_werror
796enable_strict_compilation
797enable_static
798enable_shared
799with_pic
800enable_fast_install
801with_aix_soname
802with_gnu_ld
803with_sysroot
804enable_libtool_lock
805with_xorg_module_dir
806enable_xaa
807'
808      ac_precious_vars='build_alias
809host_alias
810target_alias
811CC
812CFLAGS
813LDFLAGS
814LIBS
815CPPFLAGS
816CPP
817PKG_CONFIG
818PKG_CONFIG_PATH
819PKG_CONFIG_LIBDIR
820LT_SYS_LIBRARY_PATH
821XORG_CFLAGS
822XORG_LIBS
823XEXT_CFLAGS
824XEXT_LIBS
825PCIACCESS_CFLAGS
826PCIACCESS_LIBS'
827
828
829# Initialize some variables set by options.
830ac_init_help=
831ac_init_version=false
832ac_unrecognized_opts=
833ac_unrecognized_sep=
834# The variables have the same names as the options, with
835# dashes changed to underlines.
836cache_file=/dev/null
837exec_prefix=NONE
838no_create=
839no_recursion=
840prefix=NONE
841program_prefix=NONE
842program_suffix=NONE
843program_transform_name=s,x,x,
844silent=
845site=
846srcdir=
847verbose=
848x_includes=NONE
849x_libraries=NONE
850
851# Installation directory options.
852# These are left unexpanded so users can "make install exec_prefix=/foo"
853# and all the variables that are supposed to be based on exec_prefix
854# by default will actually change.
855# Use braces instead of parens because sh, perl, etc. also accept them.
856# (The list follows the same order as the GNU Coding Standards.)
857bindir='${exec_prefix}/bin'
858sbindir='${exec_prefix}/sbin'
859libexecdir='${exec_prefix}/libexec'
860datarootdir='${prefix}/share'
861datadir='${datarootdir}'
862sysconfdir='${prefix}/etc'
863sharedstatedir='${prefix}/com'
864localstatedir='${prefix}/var'
865runstatedir='${localstatedir}/run'
866includedir='${prefix}/include'
867oldincludedir='/usr/include'
868docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869infodir='${datarootdir}/info'
870htmldir='${docdir}'
871dvidir='${docdir}'
872pdfdir='${docdir}'
873psdir='${docdir}'
874libdir='${exec_prefix}/lib'
875localedir='${datarootdir}/locale'
876mandir='${datarootdir}/man'
877
878ac_prev=
879ac_dashdash=
880for ac_option
881do
882  # If the previous option needs an argument, assign it.
883  if test -n "$ac_prev"; then
884    eval $ac_prev=\$ac_option
885    ac_prev=
886    continue
887  fi
888
889  case $ac_option in
890  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891  *=)   ac_optarg= ;;
892  *)    ac_optarg=yes ;;
893  esac
894
895  # Accept the important Cygnus configure options, so we can diagnose typos.
896
897  case $ac_dashdash$ac_option in
898  --)
899    ac_dashdash=yes ;;
900
901  -bindir | --bindir | --bindi | --bind | --bin | --bi)
902    ac_prev=bindir ;;
903  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904    bindir=$ac_optarg ;;
905
906  -build | --build | --buil | --bui | --bu)
907    ac_prev=build_alias ;;
908  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909    build_alias=$ac_optarg ;;
910
911  -cache-file | --cache-file | --cache-fil | --cache-fi \
912  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913    ac_prev=cache_file ;;
914  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916    cache_file=$ac_optarg ;;
917
918  --config-cache | -C)
919    cache_file=config.cache ;;
920
921  -datadir | --datadir | --datadi | --datad)
922    ac_prev=datadir ;;
923  -datadir=* | --datadir=* | --datadi=* | --datad=*)
924    datadir=$ac_optarg ;;
925
926  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927  | --dataroo | --dataro | --datar)
928    ac_prev=datarootdir ;;
929  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931    datarootdir=$ac_optarg ;;
932
933  -disable-* | --disable-*)
934    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935    # Reject names that are not valid shell variable names.
936    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937      as_fn_error $? "invalid feature name: $ac_useropt"
938    ac_useropt_orig=$ac_useropt
939    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940    case $ac_user_opts in
941      *"
942"enable_$ac_useropt"
943"*) ;;
944      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
945	 ac_unrecognized_sep=', ';;
946    esac
947    eval enable_$ac_useropt=no ;;
948
949  -docdir | --docdir | --docdi | --doc | --do)
950    ac_prev=docdir ;;
951  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952    docdir=$ac_optarg ;;
953
954  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
955    ac_prev=dvidir ;;
956  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957    dvidir=$ac_optarg ;;
958
959  -enable-* | --enable-*)
960    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
961    # Reject names that are not valid shell variable names.
962    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963      as_fn_error $? "invalid feature name: $ac_useropt"
964    ac_useropt_orig=$ac_useropt
965    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966    case $ac_user_opts in
967      *"
968"enable_$ac_useropt"
969"*) ;;
970      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
971	 ac_unrecognized_sep=', ';;
972    esac
973    eval enable_$ac_useropt=\$ac_optarg ;;
974
975  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
976  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
977  | --exec | --exe | --ex)
978    ac_prev=exec_prefix ;;
979  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
980  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
981  | --exec=* | --exe=* | --ex=*)
982    exec_prefix=$ac_optarg ;;
983
984  -gas | --gas | --ga | --g)
985    # Obsolete; use --with-gas.
986    with_gas=yes ;;
987
988  -help | --help | --hel | --he | -h)
989    ac_init_help=long ;;
990  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
991    ac_init_help=recursive ;;
992  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
993    ac_init_help=short ;;
994
995  -host | --host | --hos | --ho)
996    ac_prev=host_alias ;;
997  -host=* | --host=* | --hos=* | --ho=*)
998    host_alias=$ac_optarg ;;
999
1000  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1001    ac_prev=htmldir ;;
1002  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1003  | --ht=*)
1004    htmldir=$ac_optarg ;;
1005
1006  -includedir | --includedir | --includedi | --included | --include \
1007  | --includ | --inclu | --incl | --inc)
1008    ac_prev=includedir ;;
1009  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1010  | --includ=* | --inclu=* | --incl=* | --inc=*)
1011    includedir=$ac_optarg ;;
1012
1013  -infodir | --infodir | --infodi | --infod | --info | --inf)
1014    ac_prev=infodir ;;
1015  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1016    infodir=$ac_optarg ;;
1017
1018  -libdir | --libdir | --libdi | --libd)
1019    ac_prev=libdir ;;
1020  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1021    libdir=$ac_optarg ;;
1022
1023  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1024  | --libexe | --libex | --libe)
1025    ac_prev=libexecdir ;;
1026  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1027  | --libexe=* | --libex=* | --libe=*)
1028    libexecdir=$ac_optarg ;;
1029
1030  -localedir | --localedir | --localedi | --localed | --locale)
1031    ac_prev=localedir ;;
1032  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1033    localedir=$ac_optarg ;;
1034
1035  -localstatedir | --localstatedir | --localstatedi | --localstated \
1036  | --localstate | --localstat | --localsta | --localst | --locals)
1037    ac_prev=localstatedir ;;
1038  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1039  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1040    localstatedir=$ac_optarg ;;
1041
1042  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1043    ac_prev=mandir ;;
1044  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1045    mandir=$ac_optarg ;;
1046
1047  -nfp | --nfp | --nf)
1048    # Obsolete; use --without-fp.
1049    with_fp=no ;;
1050
1051  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1052  | --no-cr | --no-c | -n)
1053    no_create=yes ;;
1054
1055  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1056  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1057    no_recursion=yes ;;
1058
1059  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1060  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1061  | --oldin | --oldi | --old | --ol | --o)
1062    ac_prev=oldincludedir ;;
1063  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1064  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1065  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1066    oldincludedir=$ac_optarg ;;
1067
1068  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1069    ac_prev=prefix ;;
1070  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1071    prefix=$ac_optarg ;;
1072
1073  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1074  | --program-pre | --program-pr | --program-p)
1075    ac_prev=program_prefix ;;
1076  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1077  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1078    program_prefix=$ac_optarg ;;
1079
1080  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1081  | --program-suf | --program-su | --program-s)
1082    ac_prev=program_suffix ;;
1083  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1084  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1085    program_suffix=$ac_optarg ;;
1086
1087  -program-transform-name | --program-transform-name \
1088  | --program-transform-nam | --program-transform-na \
1089  | --program-transform-n | --program-transform- \
1090  | --program-transform | --program-transfor \
1091  | --program-transfo | --program-transf \
1092  | --program-trans | --program-tran \
1093  | --progr-tra | --program-tr | --program-t)
1094    ac_prev=program_transform_name ;;
1095  -program-transform-name=* | --program-transform-name=* \
1096  | --program-transform-nam=* | --program-transform-na=* \
1097  | --program-transform-n=* | --program-transform-=* \
1098  | --program-transform=* | --program-transfor=* \
1099  | --program-transfo=* | --program-transf=* \
1100  | --program-trans=* | --program-tran=* \
1101  | --progr-tra=* | --program-tr=* | --program-t=*)
1102    program_transform_name=$ac_optarg ;;
1103
1104  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1105    ac_prev=pdfdir ;;
1106  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1107    pdfdir=$ac_optarg ;;
1108
1109  -psdir | --psdir | --psdi | --psd | --ps)
1110    ac_prev=psdir ;;
1111  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1112    psdir=$ac_optarg ;;
1113
1114  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115  | -silent | --silent | --silen | --sile | --sil)
1116    silent=yes ;;
1117
1118  -runstatedir | --runstatedir | --runstatedi | --runstated \
1119  | --runstate | --runstat | --runsta | --runst | --runs \
1120  | --run | --ru | --r)
1121    ac_prev=runstatedir ;;
1122  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1123  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1124  | --run=* | --ru=* | --r=*)
1125    runstatedir=$ac_optarg ;;
1126
1127  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128    ac_prev=sbindir ;;
1129  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130  | --sbi=* | --sb=*)
1131    sbindir=$ac_optarg ;;
1132
1133  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135  | --sharedst | --shareds | --shared | --share | --shar \
1136  | --sha | --sh)
1137    ac_prev=sharedstatedir ;;
1138  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141  | --sha=* | --sh=*)
1142    sharedstatedir=$ac_optarg ;;
1143
1144  -site | --site | --sit)
1145    ac_prev=site ;;
1146  -site=* | --site=* | --sit=*)
1147    site=$ac_optarg ;;
1148
1149  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150    ac_prev=srcdir ;;
1151  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1152    srcdir=$ac_optarg ;;
1153
1154  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155  | --syscon | --sysco | --sysc | --sys | --sy)
1156    ac_prev=sysconfdir ;;
1157  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1159    sysconfdir=$ac_optarg ;;
1160
1161  -target | --target | --targe | --targ | --tar | --ta | --t)
1162    ac_prev=target_alias ;;
1163  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1164    target_alias=$ac_optarg ;;
1165
1166  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167    verbose=yes ;;
1168
1169  -version | --version | --versio | --versi | --vers | -V)
1170    ac_init_version=: ;;
1171
1172  -with-* | --with-*)
1173    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174    # Reject names that are not valid shell variable names.
1175    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176      as_fn_error $? "invalid package name: $ac_useropt"
1177    ac_useropt_orig=$ac_useropt
1178    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179    case $ac_user_opts in
1180      *"
1181"with_$ac_useropt"
1182"*) ;;
1183      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184	 ac_unrecognized_sep=', ';;
1185    esac
1186    eval with_$ac_useropt=\$ac_optarg ;;
1187
1188  -without-* | --without-*)
1189    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190    # Reject names that are not valid shell variable names.
1191    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192      as_fn_error $? "invalid package name: $ac_useropt"
1193    ac_useropt_orig=$ac_useropt
1194    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195    case $ac_user_opts in
1196      *"
1197"with_$ac_useropt"
1198"*) ;;
1199      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200	 ac_unrecognized_sep=', ';;
1201    esac
1202    eval with_$ac_useropt=no ;;
1203
1204  --x)
1205    # Obsolete; use --with-x.
1206    with_x=yes ;;
1207
1208  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209  | --x-incl | --x-inc | --x-in | --x-i)
1210    ac_prev=x_includes ;;
1211  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213    x_includes=$ac_optarg ;;
1214
1215  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217    ac_prev=x_libraries ;;
1218  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220    x_libraries=$ac_optarg ;;
1221
1222  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1223Try \`$0 --help' for more information"
1224    ;;
1225
1226  *=*)
1227    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228    # Reject names that are not valid shell variable names.
1229    case $ac_envvar in #(
1230      '' | [0-9]* | *[!_$as_cr_alnum]* )
1231      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1232    esac
1233    eval $ac_envvar=\$ac_optarg
1234    export $ac_envvar ;;
1235
1236  *)
1237    # FIXME: should be removed in autoconf 3.0.
1238    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1242    ;;
1243
1244  esac
1245done
1246
1247if test -n "$ac_prev"; then
1248  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249  as_fn_error $? "missing argument to $ac_option"
1250fi
1251
1252if test -n "$ac_unrecognized_opts"; then
1253  case $enable_option_checking in
1254    no) ;;
1255    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1256    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257  esac
1258fi
1259
1260# Check all directory arguments for consistency.
1261for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262		datadir sysconfdir sharedstatedir localstatedir includedir \
1263		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264		libdir localedir mandir runstatedir
1265do
1266  eval ac_val=\$$ac_var
1267  # Remove trailing slashes.
1268  case $ac_val in
1269    */ )
1270      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271      eval $ac_var=\$ac_val;;
1272  esac
1273  # Be sure to have absolute directory names.
1274  case $ac_val in
1275    [\\/$]* | ?:[\\/]* )  continue;;
1276    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1277  esac
1278  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1279done
1280
1281# There might be people who depend on the old broken behavior: `$host'
1282# used to hold the argument of --host etc.
1283# FIXME: To remove some day.
1284build=$build_alias
1285host=$host_alias
1286target=$target_alias
1287
1288# FIXME: To remove some day.
1289if test "x$host_alias" != x; then
1290  if test "x$build_alias" = x; then
1291    cross_compiling=maybe
1292  elif test "x$build_alias" != "x$host_alias"; then
1293    cross_compiling=yes
1294  fi
1295fi
1296
1297ac_tool_prefix=
1298test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299
1300test "$silent" = yes && exec 6>/dev/null
1301
1302
1303ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304ac_ls_di=`ls -di .` &&
1305ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306  as_fn_error $? "working directory cannot be determined"
1307test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308  as_fn_error $? "pwd does not report name of working directory"
1309
1310
1311# Find the source files, if location was not specified.
1312if test -z "$srcdir"; then
1313  ac_srcdir_defaulted=yes
1314  # Try the directory containing this script, then the parent directory.
1315  ac_confdir=`$as_dirname -- "$as_myself" ||
1316$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317	 X"$as_myself" : 'X\(//\)[^/]' \| \
1318	 X"$as_myself" : 'X\(//\)$' \| \
1319	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320$as_echo X"$as_myself" |
1321    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322	    s//\1/
1323	    q
1324	  }
1325	  /^X\(\/\/\)[^/].*/{
1326	    s//\1/
1327	    q
1328	  }
1329	  /^X\(\/\/\)$/{
1330	    s//\1/
1331	    q
1332	  }
1333	  /^X\(\/\).*/{
1334	    s//\1/
1335	    q
1336	  }
1337	  s/.*/./; q'`
1338  srcdir=$ac_confdir
1339  if test ! -r "$srcdir/$ac_unique_file"; then
1340    srcdir=..
1341  fi
1342else
1343  ac_srcdir_defaulted=no
1344fi
1345if test ! -r "$srcdir/$ac_unique_file"; then
1346  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1348fi
1349ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350ac_abs_confdir=`(
1351	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1352	pwd)`
1353# When building in place, set srcdir=.
1354if test "$ac_abs_confdir" = "$ac_pwd"; then
1355  srcdir=.
1356fi
1357# Remove unnecessary trailing slashes from srcdir.
1358# Double slashes in file names in object file debugging info
1359# mess up M-x gdb in Emacs.
1360case $srcdir in
1361*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362esac
1363for ac_var in $ac_precious_vars; do
1364  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365  eval ac_env_${ac_var}_value=\$${ac_var}
1366  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368done
1369
1370#
1371# Report the --help message.
1372#
1373if test "$ac_init_help" = "long"; then
1374  # Omit some internal or obsolete options to make the list less imposing.
1375  # This message is too long to be a string in the A/UX 3.1 sh.
1376  cat <<_ACEOF
1377\`configure' configures xf86-video-s3virge 1.11.0 to adapt to many kinds of systems.
1378
1379Usage: $0 [OPTION]... [VAR=VALUE]...
1380
1381To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382VAR=VALUE.  See below for descriptions of some of the useful variables.
1383
1384Defaults for the options are specified in brackets.
1385
1386Configuration:
1387  -h, --help              display this help and exit
1388      --help=short        display options specific to this package
1389      --help=recursive    display the short help of all the included packages
1390  -V, --version           display version information and exit
1391  -q, --quiet, --silent   do not print \`checking ...' messages
1392      --cache-file=FILE   cache test results in FILE [disabled]
1393  -C, --config-cache      alias for \`--cache-file=config.cache'
1394  -n, --no-create         do not create output files
1395      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1396
1397Installation directories:
1398  --prefix=PREFIX         install architecture-independent files in PREFIX
1399                          [$ac_default_prefix]
1400  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1401                          [PREFIX]
1402
1403By default, \`make install' will install all the files in
1404\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1405an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406for instance \`--prefix=\$HOME'.
1407
1408For better control, use the options below.
1409
1410Fine tuning of the installation directories:
1411  --bindir=DIR            user executables [EPREFIX/bin]
1412  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1413  --libexecdir=DIR        program executables [EPREFIX/libexec]
1414  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1415  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1416  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1417  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1418  --libdir=DIR            object code libraries [EPREFIX/lib]
1419  --includedir=DIR        C header files [PREFIX/include]
1420  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1421  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1422  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1423  --infodir=DIR           info documentation [DATAROOTDIR/info]
1424  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1425  --mandir=DIR            man documentation [DATAROOTDIR/man]
1426  --docdir=DIR            documentation root
1427                          [DATAROOTDIR/doc/xf86-video-s3virge]
1428  --htmldir=DIR           html documentation [DOCDIR]
1429  --dvidir=DIR            dvi documentation [DOCDIR]
1430  --pdfdir=DIR            pdf documentation [DOCDIR]
1431  --psdir=DIR             ps documentation [DOCDIR]
1432_ACEOF
1433
1434  cat <<\_ACEOF
1435
1436Program names:
1437  --program-prefix=PREFIX            prepend PREFIX to installed program names
1438  --program-suffix=SUFFIX            append SUFFIX to installed program names
1439  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1440
1441System types:
1442  --build=BUILD     configure for building on BUILD [guessed]
1443  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1444_ACEOF
1445fi
1446
1447if test -n "$ac_init_help"; then
1448  case $ac_init_help in
1449     short | recursive ) echo "Configuration of xf86-video-s3virge 1.11.0:";;
1450   esac
1451  cat <<\_ACEOF
1452
1453Optional Features:
1454  --disable-option-checking  ignore unrecognized --enable/--with options
1455  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1456  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1457  --enable-silent-rules   less verbose build output (undo: "make V=1")
1458  --disable-silent-rules  verbose build output (undo: "make V=0")
1459  --enable-dependency-tracking
1460                          do not reject slow dependency extractors
1461  --disable-dependency-tracking
1462                          speeds up one-time build
1463  --disable-selective-werror
1464                          Turn off selective compiler errors. (default:
1465                          enabled)
1466  --enable-strict-compilation
1467                          Enable all warnings from compiler and make them
1468                          errors (default: disabled)
1469  --enable-static[=PKGS]  build static libraries [default=no]
1470  --enable-shared[=PKGS]  build shared libraries [default=yes]
1471  --enable-fast-install[=PKGS]
1472                          optimize for fast installation [default=yes]
1473  --disable-libtool-lock  avoid locking (might break parallel builds)
1474  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1475                          [default=auto]
1476
1477Optional Packages:
1478  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1479  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1480  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1481                          both]
1482  --with-aix-soname=aix|svr4|both
1483                          shared library versioning (aka "SONAME") variant to
1484                          provide on AIX, [default=aix].
1485  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1486  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1487                          compiler's sysroot if not specified).
1488  --with-xorg-module-dir=DIR
1489                          Default xorg module directory
1490                          [[default=$libdir/xorg/modules]]
1491
1492Some influential environment variables:
1493  CC          C compiler command
1494  CFLAGS      C compiler flags
1495  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1496              nonstandard directory <lib dir>
1497  LIBS        libraries to pass to the linker, e.g. -l<library>
1498  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1499              you have headers in a nonstandard directory <include dir>
1500  CPP         C preprocessor
1501  PKG_CONFIG  path to pkg-config utility
1502  PKG_CONFIG_PATH
1503              directories to add to pkg-config's search path
1504  PKG_CONFIG_LIBDIR
1505              path overriding pkg-config's built-in search path
1506  LT_SYS_LIBRARY_PATH
1507              User-defined run-time library search path.
1508  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1509  XORG_LIBS   linker flags for XORG, overriding pkg-config
1510  XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config
1511  XEXT_LIBS   linker flags for XEXT, overriding pkg-config
1512  PCIACCESS_CFLAGS
1513              C compiler flags for PCIACCESS, overriding pkg-config
1514  PCIACCESS_LIBS
1515              linker flags for PCIACCESS, overriding pkg-config
1516
1517Use these variables to override the choices made by `configure' or to help
1518it to find libraries and programs with nonstandard names/locations.
1519
1520Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-s3virge/issues>.
1521_ACEOF
1522ac_status=$?
1523fi
1524
1525if test "$ac_init_help" = "recursive"; then
1526  # If there are subdirs, report their specific --help.
1527  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528    test -d "$ac_dir" ||
1529      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1530      continue
1531    ac_builddir=.
1532
1533case "$ac_dir" in
1534.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535*)
1536  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1537  # A ".." for each directory in $ac_dir_suffix.
1538  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1539  case $ac_top_builddir_sub in
1540  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542  esac ;;
1543esac
1544ac_abs_top_builddir=$ac_pwd
1545ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546# for backward compatibility:
1547ac_top_builddir=$ac_top_build_prefix
1548
1549case $srcdir in
1550  .)  # We are building in place.
1551    ac_srcdir=.
1552    ac_top_srcdir=$ac_top_builddir_sub
1553    ac_abs_top_srcdir=$ac_pwd ;;
1554  [\\/]* | ?:[\\/]* )  # Absolute name.
1555    ac_srcdir=$srcdir$ac_dir_suffix;
1556    ac_top_srcdir=$srcdir
1557    ac_abs_top_srcdir=$srcdir ;;
1558  *) # Relative name.
1559    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560    ac_top_srcdir=$ac_top_build_prefix$srcdir
1561    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562esac
1563ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564
1565    cd "$ac_dir" || { ac_status=$?; continue; }
1566    # Check for guested configure.
1567    if test -f "$ac_srcdir/configure.gnu"; then
1568      echo &&
1569      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570    elif test -f "$ac_srcdir/configure"; then
1571      echo &&
1572      $SHELL "$ac_srcdir/configure" --help=recursive
1573    else
1574      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575    fi || ac_status=$?
1576    cd "$ac_pwd" || { ac_status=$?; break; }
1577  done
1578fi
1579
1580test -n "$ac_init_help" && exit $ac_status
1581if $ac_init_version; then
1582  cat <<\_ACEOF
1583xf86-video-s3virge configure 1.11.0
1584generated by GNU Autoconf 2.69
1585
1586Copyright (C) 2012 Free Software Foundation, Inc.
1587This configure script is free software; the Free Software Foundation
1588gives unlimited permission to copy, distribute and modify it.
1589_ACEOF
1590  exit
1591fi
1592
1593## ------------------------ ##
1594## Autoconf initialization. ##
1595## ------------------------ ##
1596
1597# ac_fn_c_try_compile LINENO
1598# --------------------------
1599# Try to compile conftest.$ac_ext, and return whether this succeeded.
1600ac_fn_c_try_compile ()
1601{
1602  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1603  rm -f conftest.$ac_objext
1604  if { { ac_try="$ac_compile"
1605case "(($ac_try" in
1606  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1607  *) ac_try_echo=$ac_try;;
1608esac
1609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610$as_echo "$ac_try_echo"; } >&5
1611  (eval "$ac_compile") 2>conftest.err
1612  ac_status=$?
1613  if test -s conftest.err; then
1614    grep -v '^ *+' conftest.err >conftest.er1
1615    cat conftest.er1 >&5
1616    mv -f conftest.er1 conftest.err
1617  fi
1618  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619  test $ac_status = 0; } && {
1620	 test -z "$ac_c_werror_flag" ||
1621	 test ! -s conftest.err
1622       } && test -s conftest.$ac_objext; then :
1623  ac_retval=0
1624else
1625  $as_echo "$as_me: failed program was:" >&5
1626sed 's/^/| /' conftest.$ac_ext >&5
1627
1628	ac_retval=1
1629fi
1630  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631  as_fn_set_status $ac_retval
1632
1633} # ac_fn_c_try_compile
1634
1635# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1636# ---------------------------------------------
1637# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1638# accordingly.
1639ac_fn_c_check_decl ()
1640{
1641  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642  as_decl_name=`echo $2|sed 's/ *(.*//'`
1643  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1645$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1646if eval \${$3+:} false; then :
1647  $as_echo_n "(cached) " >&6
1648else
1649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650/* end confdefs.h.  */
1651$4
1652int
1653main ()
1654{
1655#ifndef $as_decl_name
1656#ifdef __cplusplus
1657  (void) $as_decl_use;
1658#else
1659  (void) $as_decl_name;
1660#endif
1661#endif
1662
1663  ;
1664  return 0;
1665}
1666_ACEOF
1667if ac_fn_c_try_compile "$LINENO"; then :
1668  eval "$3=yes"
1669else
1670  eval "$3=no"
1671fi
1672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1673fi
1674eval ac_res=\$$3
1675	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1676$as_echo "$ac_res" >&6; }
1677  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678
1679} # ac_fn_c_check_decl
1680
1681# ac_fn_c_try_cpp LINENO
1682# ----------------------
1683# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1684ac_fn_c_try_cpp ()
1685{
1686  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687  if { { ac_try="$ac_cpp conftest.$ac_ext"
1688case "(($ac_try" in
1689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690  *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693$as_echo "$ac_try_echo"; } >&5
1694  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1695  ac_status=$?
1696  if test -s conftest.err; then
1697    grep -v '^ *+' conftest.err >conftest.er1
1698    cat conftest.er1 >&5
1699    mv -f conftest.er1 conftest.err
1700  fi
1701  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702  test $ac_status = 0; } > conftest.i && {
1703	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1704	 test ! -s conftest.err
1705       }; then :
1706  ac_retval=0
1707else
1708  $as_echo "$as_me: failed program was:" >&5
1709sed 's/^/| /' conftest.$ac_ext >&5
1710
1711    ac_retval=1
1712fi
1713  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714  as_fn_set_status $ac_retval
1715
1716} # ac_fn_c_try_cpp
1717
1718# ac_fn_c_try_run LINENO
1719# ----------------------
1720# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1721# that executables *can* be run.
1722ac_fn_c_try_run ()
1723{
1724  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725  if { { ac_try="$ac_link"
1726case "(($ac_try" in
1727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728  *) ac_try_echo=$ac_try;;
1729esac
1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731$as_echo "$ac_try_echo"; } >&5
1732  (eval "$ac_link") 2>&5
1733  ac_status=$?
1734  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1736  { { case "(($ac_try" in
1737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738  *) ac_try_echo=$ac_try;;
1739esac
1740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741$as_echo "$ac_try_echo"; } >&5
1742  (eval "$ac_try") 2>&5
1743  ac_status=$?
1744  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745  test $ac_status = 0; }; }; then :
1746  ac_retval=0
1747else
1748  $as_echo "$as_me: program exited with status $ac_status" >&5
1749       $as_echo "$as_me: failed program was:" >&5
1750sed 's/^/| /' conftest.$ac_ext >&5
1751
1752       ac_retval=$ac_status
1753fi
1754  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1755  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756  as_fn_set_status $ac_retval
1757
1758} # ac_fn_c_try_run
1759
1760# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1761# -------------------------------------------------------
1762# Tests whether HEADER exists and can be compiled using the include files in
1763# INCLUDES, setting the cache variable VAR accordingly.
1764ac_fn_c_check_header_compile ()
1765{
1766  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768$as_echo_n "checking for $2... " >&6; }
1769if eval \${$3+:} false; then :
1770  $as_echo_n "(cached) " >&6
1771else
1772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773/* end confdefs.h.  */
1774$4
1775#include <$2>
1776_ACEOF
1777if ac_fn_c_try_compile "$LINENO"; then :
1778  eval "$3=yes"
1779else
1780  eval "$3=no"
1781fi
1782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783fi
1784eval ac_res=\$$3
1785	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786$as_echo "$ac_res" >&6; }
1787  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789} # ac_fn_c_check_header_compile
1790
1791# ac_fn_c_try_link LINENO
1792# -----------------------
1793# Try to link conftest.$ac_ext, and return whether this succeeded.
1794ac_fn_c_try_link ()
1795{
1796  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797  rm -f conftest.$ac_objext conftest$ac_exeext
1798  if { { ac_try="$ac_link"
1799case "(($ac_try" in
1800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801  *) ac_try_echo=$ac_try;;
1802esac
1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804$as_echo "$ac_try_echo"; } >&5
1805  (eval "$ac_link") 2>conftest.err
1806  ac_status=$?
1807  if test -s conftest.err; then
1808    grep -v '^ *+' conftest.err >conftest.er1
1809    cat conftest.er1 >&5
1810    mv -f conftest.er1 conftest.err
1811  fi
1812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813  test $ac_status = 0; } && {
1814	 test -z "$ac_c_werror_flag" ||
1815	 test ! -s conftest.err
1816       } && test -s conftest$ac_exeext && {
1817	 test "$cross_compiling" = yes ||
1818	 test -x conftest$ac_exeext
1819       }; then :
1820  ac_retval=0
1821else
1822  $as_echo "$as_me: failed program was:" >&5
1823sed 's/^/| /' conftest.$ac_ext >&5
1824
1825	ac_retval=1
1826fi
1827  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1828  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1829  # interfere with the next link command; also delete a directory that is
1830  # left behind by Apple's compiler.  We do this before executing the actions.
1831  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1832  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833  as_fn_set_status $ac_retval
1834
1835} # ac_fn_c_try_link
1836
1837# ac_fn_c_check_func LINENO FUNC VAR
1838# ----------------------------------
1839# Tests whether FUNC exists, setting the cache variable VAR accordingly
1840ac_fn_c_check_func ()
1841{
1842  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844$as_echo_n "checking for $2... " >&6; }
1845if eval \${$3+:} false; then :
1846  $as_echo_n "(cached) " >&6
1847else
1848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849/* end confdefs.h.  */
1850/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1851   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1852#define $2 innocuous_$2
1853
1854/* System header to define __stub macros and hopefully few prototypes,
1855    which can conflict with char $2 (); below.
1856    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1857    <limits.h> exists even on freestanding compilers.  */
1858
1859#ifdef __STDC__
1860# include <limits.h>
1861#else
1862# include <assert.h>
1863#endif
1864
1865#undef $2
1866
1867/* Override any GCC internal prototype to avoid an error.
1868   Use char because int might match the return type of a GCC
1869   builtin and then its argument prototype would still apply.  */
1870#ifdef __cplusplus
1871extern "C"
1872#endif
1873char $2 ();
1874/* The GNU C library defines this for functions which it implements
1875    to always fail with ENOSYS.  Some functions are actually named
1876    something starting with __ and the normal name is an alias.  */
1877#if defined __stub_$2 || defined __stub___$2
1878choke me
1879#endif
1880
1881int
1882main ()
1883{
1884return $2 ();
1885  ;
1886  return 0;
1887}
1888_ACEOF
1889if ac_fn_c_try_link "$LINENO"; then :
1890  eval "$3=yes"
1891else
1892  eval "$3=no"
1893fi
1894rm -f core conftest.err conftest.$ac_objext \
1895    conftest$ac_exeext conftest.$ac_ext
1896fi
1897eval ac_res=\$$3
1898	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899$as_echo "$ac_res" >&6; }
1900  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902} # ac_fn_c_check_func
1903
1904# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1905# -------------------------------------------------------
1906# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1907# the include files in INCLUDES and setting the cache variable VAR
1908# accordingly.
1909ac_fn_c_check_header_mongrel ()
1910{
1911  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912  if eval \${$3+:} false; then :
1913  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914$as_echo_n "checking for $2... " >&6; }
1915if eval \${$3+:} false; then :
1916  $as_echo_n "(cached) " >&6
1917fi
1918eval ac_res=\$$3
1919	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920$as_echo "$ac_res" >&6; }
1921else
1922  # Is the header compilable?
1923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1924$as_echo_n "checking $2 usability... " >&6; }
1925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926/* end confdefs.h.  */
1927$4
1928#include <$2>
1929_ACEOF
1930if ac_fn_c_try_compile "$LINENO"; then :
1931  ac_header_compiler=yes
1932else
1933  ac_header_compiler=no
1934fi
1935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1937$as_echo "$ac_header_compiler" >&6; }
1938
1939# Is the header present?
1940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1941$as_echo_n "checking $2 presence... " >&6; }
1942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h.  */
1944#include <$2>
1945_ACEOF
1946if ac_fn_c_try_cpp "$LINENO"; then :
1947  ac_header_preproc=yes
1948else
1949  ac_header_preproc=no
1950fi
1951rm -f conftest.err conftest.i conftest.$ac_ext
1952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1953$as_echo "$ac_header_preproc" >&6; }
1954
1955# So?  What about this header?
1956case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1957  yes:no: )
1958    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1959$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1960    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1961$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1962    ;;
1963  no:yes:* )
1964    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1965$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1966    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1967$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1968    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1969$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1970    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1971$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1972    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1973$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1974( $as_echo "## ----------------------------------------------------------------------------------- ##
1975## Report this to https://gitlab.freedesktop.org/xorg/driver/xf86-video-s3virge/issues ##
1976## ----------------------------------------------------------------------------------- ##"
1977     ) | sed "s/^/$as_me: WARNING:     /" >&2
1978    ;;
1979esac
1980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981$as_echo_n "checking for $2... " >&6; }
1982if eval \${$3+:} false; then :
1983  $as_echo_n "(cached) " >&6
1984else
1985  eval "$3=\$ac_header_compiler"
1986fi
1987eval ac_res=\$$3
1988	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989$as_echo "$ac_res" >&6; }
1990fi
1991  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1992
1993} # ac_fn_c_check_header_mongrel
1994cat >config.log <<_ACEOF
1995This file contains any messages produced by compilers while
1996running configure, to aid debugging if configure makes a mistake.
1997
1998It was created by xf86-video-s3virge $as_me 1.11.0, which was
1999generated by GNU Autoconf 2.69.  Invocation command line was
2000
2001  $ $0 $@
2002
2003_ACEOF
2004exec 5>>config.log
2005{
2006cat <<_ASUNAME
2007## --------- ##
2008## Platform. ##
2009## --------- ##
2010
2011hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2012uname -m = `(uname -m) 2>/dev/null || echo unknown`
2013uname -r = `(uname -r) 2>/dev/null || echo unknown`
2014uname -s = `(uname -s) 2>/dev/null || echo unknown`
2015uname -v = `(uname -v) 2>/dev/null || echo unknown`
2016
2017/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2018/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2019
2020/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2021/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2022/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2023/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2024/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2025/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2026/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2027
2028_ASUNAME
2029
2030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031for as_dir in $PATH
2032do
2033  IFS=$as_save_IFS
2034  test -z "$as_dir" && as_dir=.
2035    $as_echo "PATH: $as_dir"
2036  done
2037IFS=$as_save_IFS
2038
2039} >&5
2040
2041cat >&5 <<_ACEOF
2042
2043
2044## ----------- ##
2045## Core tests. ##
2046## ----------- ##
2047
2048_ACEOF
2049
2050
2051# Keep a trace of the command line.
2052# Strip out --no-create and --no-recursion so they do not pile up.
2053# Strip out --silent because we don't want to record it for future runs.
2054# Also quote any args containing shell meta-characters.
2055# Make two passes to allow for proper duplicate-argument suppression.
2056ac_configure_args=
2057ac_configure_args0=
2058ac_configure_args1=
2059ac_must_keep_next=false
2060for ac_pass in 1 2
2061do
2062  for ac_arg
2063  do
2064    case $ac_arg in
2065    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2066    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2067    | -silent | --silent | --silen | --sile | --sil)
2068      continue ;;
2069    *\'*)
2070      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2071    esac
2072    case $ac_pass in
2073    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2074    2)
2075      as_fn_append ac_configure_args1 " '$ac_arg'"
2076      if test $ac_must_keep_next = true; then
2077	ac_must_keep_next=false # Got value, back to normal.
2078      else
2079	case $ac_arg in
2080	  *=* | --config-cache | -C | -disable-* | --disable-* \
2081	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2082	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2083	  | -with-* | --with-* | -without-* | --without-* | --x)
2084	    case "$ac_configure_args0 " in
2085	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2086	    esac
2087	    ;;
2088	  -* ) ac_must_keep_next=true ;;
2089	esac
2090      fi
2091      as_fn_append ac_configure_args " '$ac_arg'"
2092      ;;
2093    esac
2094  done
2095done
2096{ ac_configure_args0=; unset ac_configure_args0;}
2097{ ac_configure_args1=; unset ac_configure_args1;}
2098
2099# When interrupted or exit'd, cleanup temporary files, and complete
2100# config.log.  We remove comments because anyway the quotes in there
2101# would cause problems or look ugly.
2102# WARNING: Use '\'' to represent an apostrophe within the trap.
2103# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2104trap 'exit_status=$?
2105  # Save into config.log some information that might help in debugging.
2106  {
2107    echo
2108
2109    $as_echo "## ---------------- ##
2110## Cache variables. ##
2111## ---------------- ##"
2112    echo
2113    # The following way of writing the cache mishandles newlines in values,
2114(
2115  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2116    eval ac_val=\$$ac_var
2117    case $ac_val in #(
2118    *${as_nl}*)
2119      case $ac_var in #(
2120      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2121$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2122      esac
2123      case $ac_var in #(
2124      _ | IFS | as_nl) ;; #(
2125      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2126      *) { eval $ac_var=; unset $ac_var;} ;;
2127      esac ;;
2128    esac
2129  done
2130  (set) 2>&1 |
2131    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2132    *${as_nl}ac_space=\ *)
2133      sed -n \
2134	"s/'\''/'\''\\\\'\'''\''/g;
2135	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2136      ;; #(
2137    *)
2138      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2139      ;;
2140    esac |
2141    sort
2142)
2143    echo
2144
2145    $as_echo "## ----------------- ##
2146## Output variables. ##
2147## ----------------- ##"
2148    echo
2149    for ac_var in $ac_subst_vars
2150    do
2151      eval ac_val=\$$ac_var
2152      case $ac_val in
2153      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2154      esac
2155      $as_echo "$ac_var='\''$ac_val'\''"
2156    done | sort
2157    echo
2158
2159    if test -n "$ac_subst_files"; then
2160      $as_echo "## ------------------- ##
2161## File substitutions. ##
2162## ------------------- ##"
2163      echo
2164      for ac_var in $ac_subst_files
2165      do
2166	eval ac_val=\$$ac_var
2167	case $ac_val in
2168	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2169	esac
2170	$as_echo "$ac_var='\''$ac_val'\''"
2171      done | sort
2172      echo
2173    fi
2174
2175    if test -s confdefs.h; then
2176      $as_echo "## ----------- ##
2177## confdefs.h. ##
2178## ----------- ##"
2179      echo
2180      cat confdefs.h
2181      echo
2182    fi
2183    test "$ac_signal" != 0 &&
2184      $as_echo "$as_me: caught signal $ac_signal"
2185    $as_echo "$as_me: exit $exit_status"
2186  } >&5
2187  rm -f core *.core core.conftest.* &&
2188    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2189    exit $exit_status
2190' 0
2191for ac_signal in 1 2 13 15; do
2192  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2193done
2194ac_signal=0
2195
2196# confdefs.h avoids OS command line length limits that DEFS can exceed.
2197rm -f -r conftest* confdefs.h
2198
2199$as_echo "/* confdefs.h */" > confdefs.h
2200
2201# Predefined preprocessor variables.
2202
2203cat >>confdefs.h <<_ACEOF
2204#define PACKAGE_NAME "$PACKAGE_NAME"
2205_ACEOF
2206
2207cat >>confdefs.h <<_ACEOF
2208#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2209_ACEOF
2210
2211cat >>confdefs.h <<_ACEOF
2212#define PACKAGE_VERSION "$PACKAGE_VERSION"
2213_ACEOF
2214
2215cat >>confdefs.h <<_ACEOF
2216#define PACKAGE_STRING "$PACKAGE_STRING"
2217_ACEOF
2218
2219cat >>confdefs.h <<_ACEOF
2220#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2221_ACEOF
2222
2223cat >>confdefs.h <<_ACEOF
2224#define PACKAGE_URL "$PACKAGE_URL"
2225_ACEOF
2226
2227
2228# Let the site file select an alternate cache file if it wants to.
2229# Prefer an explicitly selected file to automatically selected ones.
2230ac_site_file1=NONE
2231ac_site_file2=NONE
2232if test -n "$CONFIG_SITE"; then
2233  # We do not want a PATH search for config.site.
2234  case $CONFIG_SITE in #((
2235    -*)  ac_site_file1=./$CONFIG_SITE;;
2236    */*) ac_site_file1=$CONFIG_SITE;;
2237    *)   ac_site_file1=./$CONFIG_SITE;;
2238  esac
2239elif test "x$prefix" != xNONE; then
2240  ac_site_file1=$prefix/share/config.site
2241  ac_site_file2=$prefix/etc/config.site
2242else
2243  ac_site_file1=$ac_default_prefix/share/config.site
2244  ac_site_file2=$ac_default_prefix/etc/config.site
2245fi
2246for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2247do
2248  test "x$ac_site_file" = xNONE && continue
2249  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2250    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2251$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2252    sed 's/^/| /' "$ac_site_file" >&5
2253    . "$ac_site_file" \
2254      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2256as_fn_error $? "failed to load site script $ac_site_file
2257See \`config.log' for more details" "$LINENO" 5; }
2258  fi
2259done
2260
2261if test -r "$cache_file"; then
2262  # Some versions of bash will fail to source /dev/null (special files
2263  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2264  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2265    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2266$as_echo "$as_me: loading cache $cache_file" >&6;}
2267    case $cache_file in
2268      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2269      *)                      . "./$cache_file";;
2270    esac
2271  fi
2272else
2273  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2274$as_echo "$as_me: creating cache $cache_file" >&6;}
2275  >$cache_file
2276fi
2277
2278# Check that the precious variables saved in the cache have kept the same
2279# value.
2280ac_cache_corrupted=false
2281for ac_var in $ac_precious_vars; do
2282  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2283  eval ac_new_set=\$ac_env_${ac_var}_set
2284  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2285  eval ac_new_val=\$ac_env_${ac_var}_value
2286  case $ac_old_set,$ac_new_set in
2287    set,)
2288      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2289$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2290      ac_cache_corrupted=: ;;
2291    ,set)
2292      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2293$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2294      ac_cache_corrupted=: ;;
2295    ,);;
2296    *)
2297      if test "x$ac_old_val" != "x$ac_new_val"; then
2298	# differences in whitespace do not lead to failure.
2299	ac_old_val_w=`echo x $ac_old_val`
2300	ac_new_val_w=`echo x $ac_new_val`
2301	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2302	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2303$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2304	  ac_cache_corrupted=:
2305	else
2306	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2307$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2308	  eval $ac_var=\$ac_old_val
2309	fi
2310	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2311$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2312	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2313$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2314      fi;;
2315  esac
2316  # Pass precious variables to config.status.
2317  if test "$ac_new_set" = set; then
2318    case $ac_new_val in
2319    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2320    *) ac_arg=$ac_var=$ac_new_val ;;
2321    esac
2322    case " $ac_configure_args " in
2323      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2324      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2325    esac
2326  fi
2327done
2328if $ac_cache_corrupted; then
2329  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2331  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2332$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2333  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2334fi
2335## -------------------- ##
2336## Main body of script. ##
2337## -------------------- ##
2338
2339ac_ext=c
2340ac_cpp='$CPP $CPPFLAGS'
2341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2343ac_compiler_gnu=$ac_cv_c_compiler_gnu
2344
2345
2346
2347ac_config_headers="$ac_config_headers config.h"
2348
2349ac_aux_dir=
2350for ac_dir in . "$srcdir"/.; do
2351  if test -f "$ac_dir/install-sh"; then
2352    ac_aux_dir=$ac_dir
2353    ac_install_sh="$ac_aux_dir/install-sh -c"
2354    break
2355  elif test -f "$ac_dir/install.sh"; then
2356    ac_aux_dir=$ac_dir
2357    ac_install_sh="$ac_aux_dir/install.sh -c"
2358    break
2359  elif test -f "$ac_dir/shtool"; then
2360    ac_aux_dir=$ac_dir
2361    ac_install_sh="$ac_aux_dir/shtool install -c"
2362    break
2363  fi
2364done
2365if test -z "$ac_aux_dir"; then
2366  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2367fi
2368
2369# These three variables are undocumented and unsupported,
2370# and are intended to be withdrawn in a future Autoconf release.
2371# They can cause serious problems if a builder's source tree is in a directory
2372# whose full name contains unusual characters.
2373ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2374ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2375ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2376
2377
2378
2379# Initialize Automake
2380am__api_version='1.15'
2381
2382# Find a good install program.  We prefer a C program (faster),
2383# so one script is as good as another.  But avoid the broken or
2384# incompatible versions:
2385# SysV /etc/install, /usr/sbin/install
2386# SunOS /usr/etc/install
2387# IRIX /sbin/install
2388# AIX /bin/install
2389# AmigaOS /C/install, which installs bootblocks on floppy discs
2390# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2391# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2392# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2393# OS/2's system install, which has a completely different semantic
2394# ./install, which can be erroneously created by make from ./install.sh.
2395# Reject install programs that cannot install multiple files.
2396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2397$as_echo_n "checking for a BSD-compatible install... " >&6; }
2398if test -z "$INSTALL"; then
2399if ${ac_cv_path_install+:} false; then :
2400  $as_echo_n "(cached) " >&6
2401else
2402  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403for as_dir in $PATH
2404do
2405  IFS=$as_save_IFS
2406  test -z "$as_dir" && as_dir=.
2407    # Account for people who put trailing slashes in PATH elements.
2408case $as_dir/ in #((
2409  ./ | .// | /[cC]/* | \
2410  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2411  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2412  /usr/ucb/* ) ;;
2413  *)
2414    # OSF1 and SCO ODT 3.0 have their own names for install.
2415    # Don't use installbsd from OSF since it installs stuff as root
2416    # by default.
2417    for ac_prog in ginstall scoinst install; do
2418      for ac_exec_ext in '' $ac_executable_extensions; do
2419	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2420	  if test $ac_prog = install &&
2421	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2422	    # AIX install.  It has an incompatible calling convention.
2423	    :
2424	  elif test $ac_prog = install &&
2425	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2426	    # program-specific install script used by HP pwplus--don't use.
2427	    :
2428	  else
2429	    rm -rf conftest.one conftest.two conftest.dir
2430	    echo one > conftest.one
2431	    echo two > conftest.two
2432	    mkdir conftest.dir
2433	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2434	      test -s conftest.one && test -s conftest.two &&
2435	      test -s conftest.dir/conftest.one &&
2436	      test -s conftest.dir/conftest.two
2437	    then
2438	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2439	      break 3
2440	    fi
2441	  fi
2442	fi
2443      done
2444    done
2445    ;;
2446esac
2447
2448  done
2449IFS=$as_save_IFS
2450
2451rm -rf conftest.one conftest.two conftest.dir
2452
2453fi
2454  if test "${ac_cv_path_install+set}" = set; then
2455    INSTALL=$ac_cv_path_install
2456  else
2457    # As a last resort, use the slow shell script.  Don't cache a
2458    # value for INSTALL within a source directory, because that will
2459    # break other packages using the cache if that directory is
2460    # removed, or if the value is a relative name.
2461    INSTALL=$ac_install_sh
2462  fi
2463fi
2464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2465$as_echo "$INSTALL" >&6; }
2466
2467# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2468# It thinks the first close brace ends the variable substitution.
2469test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2470
2471test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2472
2473test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2474
2475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2476$as_echo_n "checking whether build environment is sane... " >&6; }
2477# Reject unsafe characters in $srcdir or the absolute working directory
2478# name.  Accept space and tab only in the latter.
2479am_lf='
2480'
2481case `pwd` in
2482  *[\\\"\#\$\&\'\`$am_lf]*)
2483    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2484esac
2485case $srcdir in
2486  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2487    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2488esac
2489
2490# Do 'set' in a subshell so we don't clobber the current shell's
2491# arguments.  Must try -L first in case configure is actually a
2492# symlink; some systems play weird games with the mod time of symlinks
2493# (eg FreeBSD returns the mod time of the symlink's containing
2494# directory).
2495if (
2496   am_has_slept=no
2497   for am_try in 1 2; do
2498     echo "timestamp, slept: $am_has_slept" > conftest.file
2499     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2500     if test "$*" = "X"; then
2501	# -L didn't work.
2502	set X `ls -t "$srcdir/configure" conftest.file`
2503     fi
2504     if test "$*" != "X $srcdir/configure conftest.file" \
2505	&& test "$*" != "X conftest.file $srcdir/configure"; then
2506
2507	# If neither matched, then we have a broken ls.  This can happen
2508	# if, for instance, CONFIG_SHELL is bash and it inherits a
2509	# broken ls alias from the environment.  This has actually
2510	# happened.  Such a system could not be considered "sane".
2511	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2512  alias in your environment" "$LINENO" 5
2513     fi
2514     if test "$2" = conftest.file || test $am_try -eq 2; then
2515       break
2516     fi
2517     # Just in case.
2518     sleep 1
2519     am_has_slept=yes
2520   done
2521   test "$2" = conftest.file
2522   )
2523then
2524   # Ok.
2525   :
2526else
2527   as_fn_error $? "newly created file is older than distributed files!
2528Check your system clock" "$LINENO" 5
2529fi
2530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2531$as_echo "yes" >&6; }
2532# If we didn't sleep, we still need to ensure time stamps of config.status and
2533# generated files are strictly newer.
2534am_sleep_pid=
2535if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2536  ( sleep 1 ) &
2537  am_sleep_pid=$!
2538fi
2539
2540rm -f conftest.file
2541
2542test "$program_prefix" != NONE &&
2543  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2544# Use a double $ so make ignores it.
2545test "$program_suffix" != NONE &&
2546  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2547# Double any \ or $.
2548# By default was `s,x,x', remove it if useless.
2549ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2550program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2551
2552# Expand $ac_aux_dir to an absolute path.
2553am_aux_dir=`cd "$ac_aux_dir" && pwd`
2554
2555if test x"${MISSING+set}" != xset; then
2556  case $am_aux_dir in
2557  *\ * | *\	*)
2558    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2559  *)
2560    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2561  esac
2562fi
2563# Use eval to expand $SHELL
2564if eval "$MISSING --is-lightweight"; then
2565  am_missing_run="$MISSING "
2566else
2567  am_missing_run=
2568  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2569$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2570fi
2571
2572if test x"${install_sh+set}" != xset; then
2573  case $am_aux_dir in
2574  *\ * | *\	*)
2575    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2576  *)
2577    install_sh="\${SHELL} $am_aux_dir/install-sh"
2578  esac
2579fi
2580
2581# Installed binaries are usually stripped using 'strip' when the user
2582# run "make install-strip".  However 'strip' might not be the right
2583# tool to use in cross-compilation environments, therefore Automake
2584# will honor the 'STRIP' environment variable to overrule this program.
2585if test "$cross_compiling" != no; then
2586  if test -n "$ac_tool_prefix"; then
2587  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2588set dummy ${ac_tool_prefix}strip; ac_word=$2
2589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2590$as_echo_n "checking for $ac_word... " >&6; }
2591if ${ac_cv_prog_STRIP+:} false; then :
2592  $as_echo_n "(cached) " >&6
2593else
2594  if test -n "$STRIP"; then
2595  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2596else
2597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598for as_dir in $PATH
2599do
2600  IFS=$as_save_IFS
2601  test -z "$as_dir" && as_dir=.
2602    for ac_exec_ext in '' $ac_executable_extensions; do
2603  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2604    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2605    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2606    break 2
2607  fi
2608done
2609  done
2610IFS=$as_save_IFS
2611
2612fi
2613fi
2614STRIP=$ac_cv_prog_STRIP
2615if test -n "$STRIP"; then
2616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2617$as_echo "$STRIP" >&6; }
2618else
2619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620$as_echo "no" >&6; }
2621fi
2622
2623
2624fi
2625if test -z "$ac_cv_prog_STRIP"; then
2626  ac_ct_STRIP=$STRIP
2627  # Extract the first word of "strip", so it can be a program name with args.
2628set dummy strip; ac_word=$2
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2630$as_echo_n "checking for $ac_word... " >&6; }
2631if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2632  $as_echo_n "(cached) " >&6
2633else
2634  if test -n "$ac_ct_STRIP"; then
2635  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2636else
2637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638for as_dir in $PATH
2639do
2640  IFS=$as_save_IFS
2641  test -z "$as_dir" && as_dir=.
2642    for ac_exec_ext in '' $ac_executable_extensions; do
2643  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2644    ac_cv_prog_ac_ct_STRIP="strip"
2645    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2646    break 2
2647  fi
2648done
2649  done
2650IFS=$as_save_IFS
2651
2652fi
2653fi
2654ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2655if test -n "$ac_ct_STRIP"; then
2656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2657$as_echo "$ac_ct_STRIP" >&6; }
2658else
2659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2660$as_echo "no" >&6; }
2661fi
2662
2663  if test "x$ac_ct_STRIP" = x; then
2664    STRIP=":"
2665  else
2666    case $cross_compiling:$ac_tool_warned in
2667yes:)
2668{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2670ac_tool_warned=yes ;;
2671esac
2672    STRIP=$ac_ct_STRIP
2673  fi
2674else
2675  STRIP="$ac_cv_prog_STRIP"
2676fi
2677
2678fi
2679INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2680
2681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2682$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2683if test -z "$MKDIR_P"; then
2684  if ${ac_cv_path_mkdir+:} false; then :
2685  $as_echo_n "(cached) " >&6
2686else
2687  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2689do
2690  IFS=$as_save_IFS
2691  test -z "$as_dir" && as_dir=.
2692    for ac_prog in mkdir gmkdir; do
2693	 for ac_exec_ext in '' $ac_executable_extensions; do
2694	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2695	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2696	     'mkdir (GNU coreutils) '* | \
2697	     'mkdir (coreutils) '* | \
2698	     'mkdir (fileutils) '4.1*)
2699	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2700	       break 3;;
2701	   esac
2702	 done
2703       done
2704  done
2705IFS=$as_save_IFS
2706
2707fi
2708
2709  test -d ./--version && rmdir ./--version
2710  if test "${ac_cv_path_mkdir+set}" = set; then
2711    MKDIR_P="$ac_cv_path_mkdir -p"
2712  else
2713    # As a last resort, use the slow shell script.  Don't cache a
2714    # value for MKDIR_P within a source directory, because that will
2715    # break other packages using the cache if that directory is
2716    # removed, or if the value is a relative name.
2717    MKDIR_P="$ac_install_sh -d"
2718  fi
2719fi
2720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2721$as_echo "$MKDIR_P" >&6; }
2722
2723for ac_prog in gawk mawk nawk awk
2724do
2725  # Extract the first word of "$ac_prog", so it can be a program name with args.
2726set dummy $ac_prog; ac_word=$2
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728$as_echo_n "checking for $ac_word... " >&6; }
2729if ${ac_cv_prog_AWK+:} false; then :
2730  $as_echo_n "(cached) " >&6
2731else
2732  if test -n "$AWK"; then
2733  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2734else
2735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736for as_dir in $PATH
2737do
2738  IFS=$as_save_IFS
2739  test -z "$as_dir" && as_dir=.
2740    for ac_exec_ext in '' $ac_executable_extensions; do
2741  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742    ac_cv_prog_AWK="$ac_prog"
2743    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744    break 2
2745  fi
2746done
2747  done
2748IFS=$as_save_IFS
2749
2750fi
2751fi
2752AWK=$ac_cv_prog_AWK
2753if test -n "$AWK"; then
2754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2755$as_echo "$AWK" >&6; }
2756else
2757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758$as_echo "no" >&6; }
2759fi
2760
2761
2762  test -n "$AWK" && break
2763done
2764
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2766$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2767set x ${MAKE-make}
2768ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2769if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2770  $as_echo_n "(cached) " >&6
2771else
2772  cat >conftest.make <<\_ACEOF
2773SHELL = /bin/sh
2774all:
2775	@echo '@@@%%%=$(MAKE)=@@@%%%'
2776_ACEOF
2777# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2778case `${MAKE-make} -f conftest.make 2>/dev/null` in
2779  *@@@%%%=?*=@@@%%%*)
2780    eval ac_cv_prog_make_${ac_make}_set=yes;;
2781  *)
2782    eval ac_cv_prog_make_${ac_make}_set=no;;
2783esac
2784rm -f conftest.make
2785fi
2786if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2788$as_echo "yes" >&6; }
2789  SET_MAKE=
2790else
2791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792$as_echo "no" >&6; }
2793  SET_MAKE="MAKE=${MAKE-make}"
2794fi
2795
2796rm -rf .tst 2>/dev/null
2797mkdir .tst 2>/dev/null
2798if test -d .tst; then
2799  am__leading_dot=.
2800else
2801  am__leading_dot=_
2802fi
2803rmdir .tst 2>/dev/null
2804
2805# Check whether --enable-silent-rules was given.
2806if test "${enable_silent_rules+set}" = set; then :
2807  enableval=$enable_silent_rules;
2808fi
2809
2810case $enable_silent_rules in # (((
2811  yes) AM_DEFAULT_VERBOSITY=0;;
2812   no) AM_DEFAULT_VERBOSITY=1;;
2813    *) AM_DEFAULT_VERBOSITY=1;;
2814esac
2815am_make=${MAKE-make}
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2817$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2818if ${am_cv_make_support_nested_variables+:} false; then :
2819  $as_echo_n "(cached) " >&6
2820else
2821  if $as_echo 'TRUE=$(BAR$(V))
2822BAR0=false
2823BAR1=true
2824V=1
2825am__doit:
2826	@$(TRUE)
2827.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2828  am_cv_make_support_nested_variables=yes
2829else
2830  am_cv_make_support_nested_variables=no
2831fi
2832fi
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2834$as_echo "$am_cv_make_support_nested_variables" >&6; }
2835if test $am_cv_make_support_nested_variables = yes; then
2836    AM_V='$(V)'
2837  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2838else
2839  AM_V=$AM_DEFAULT_VERBOSITY
2840  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2841fi
2842AM_BACKSLASH='\'
2843
2844if test "`cd $srcdir && pwd`" != "`pwd`"; then
2845  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2846  # is not polluted with repeated "-I."
2847  am__isrc=' -I$(srcdir)'
2848  # test to see if srcdir already configured
2849  if test -f $srcdir/config.status; then
2850    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2851  fi
2852fi
2853
2854# test whether we have cygpath
2855if test -z "$CYGPATH_W"; then
2856  if (cygpath --version) >/dev/null 2>/dev/null; then
2857    CYGPATH_W='cygpath -w'
2858  else
2859    CYGPATH_W=echo
2860  fi
2861fi
2862
2863
2864# Define the identity of the package.
2865 PACKAGE='xf86-video-s3virge'
2866 VERSION='1.11.0'
2867
2868
2869cat >>confdefs.h <<_ACEOF
2870#define PACKAGE "$PACKAGE"
2871_ACEOF
2872
2873
2874cat >>confdefs.h <<_ACEOF
2875#define VERSION "$VERSION"
2876_ACEOF
2877
2878# Some tools Automake needs.
2879
2880ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2881
2882
2883AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2884
2885
2886AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2887
2888
2889AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2890
2891
2892MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2893
2894# For better backward compatibility.  To be removed once Automake 1.9.x
2895# dies out for good.  For more background, see:
2896# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2897# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2898mkdir_p='$(MKDIR_P)'
2899
2900# We need awk for the "check" target (and possibly the TAP driver).  The
2901# system "awk" is bad on some platforms.
2902# Always define AMTAR for backward compatibility.  Yes, it's still used
2903# in the wild :-(  We should find a proper way to deprecate it ...
2904AMTAR='$${TAR-tar}'
2905
2906
2907# We'll loop over all known methods to create a tar archive until one works.
2908_am_tools='gnutar  pax cpio none'
2909
2910am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2911
2912
2913
2914
2915
2916
2917# POSIX will say in a future version that running "rm -f" with no argument
2918# is OK; and we want to be able to make that assumption in our Makefile
2919# recipes.  So use an aggressive probe to check that the usage we want is
2920# actually supported "in the wild" to an acceptable degree.
2921# See automake bug#10828.
2922# To make any issue more visible, cause the running configure to be aborted
2923# by default if the 'rm' program in use doesn't match our expectations; the
2924# user can still override this though.
2925if rm -f && rm -fr && rm -rf; then : OK; else
2926  cat >&2 <<'END'
2927Oops!
2928
2929Your 'rm' program seems unable to run without file operands specified
2930on the command line, even when the '-f' option is present.  This is contrary
2931to the behaviour of most rm programs out there, and not conforming with
2932the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2933
2934Please tell bug-automake@gnu.org about your system, including the value
2935of your $PATH and any error possibly output before this message.  This
2936can help us improve future automake versions.
2937
2938END
2939  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2940    echo 'Configuration will proceed anyway, since you have set the' >&2
2941    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2942    echo >&2
2943  else
2944    cat >&2 <<'END'
2945Aborting the configuration process, to ensure you take notice of the issue.
2946
2947You can download and install GNU coreutils to get an 'rm' implementation
2948that behaves properly: <http://www.gnu.org/software/coreutils/>.
2949
2950If you want to complete the configuration process using your problematic
2951'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2952to "yes", and re-run configure.
2953
2954END
2955    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2956  fi
2957fi
2958
2959
2960# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972DEPDIR="${am__leading_dot}deps"
2973
2974ac_config_commands="$ac_config_commands depfiles"
2975
2976
2977am_make=${MAKE-make}
2978cat > confinc << 'END'
2979am__doit:
2980	@echo this is the am__doit target
2981.PHONY: am__doit
2982END
2983# If we don't find an include directive, just comment out the code.
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2985$as_echo_n "checking for style of include used by $am_make... " >&6; }
2986am__include="#"
2987am__quote=
2988_am_result=none
2989# First try GNU make style include.
2990echo "include confinc" > confmf
2991# Ignore all kinds of additional output from 'make'.
2992case `$am_make -s -f confmf 2> /dev/null` in #(
2993*the\ am__doit\ target*)
2994  am__include=include
2995  am__quote=
2996  _am_result=GNU
2997  ;;
2998esac
2999# Now try BSD make style include.
3000if test "$am__include" = "#"; then
3001   echo '.include "confinc"' > confmf
3002   case `$am_make -s -f confmf 2> /dev/null` in #(
3003   *the\ am__doit\ target*)
3004     am__include=.include
3005     am__quote="\""
3006     _am_result=BSD
3007     ;;
3008   esac
3009fi
3010
3011
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3013$as_echo "$_am_result" >&6; }
3014rm -f confinc confmf
3015
3016# Check whether --enable-dependency-tracking was given.
3017if test "${enable_dependency_tracking+set}" = set; then :
3018  enableval=$enable_dependency_tracking;
3019fi
3020
3021if test "x$enable_dependency_tracking" != xno; then
3022  am_depcomp="$ac_aux_dir/depcomp"
3023  AMDEPBACKSLASH='\'
3024  am__nodep='_no'
3025fi
3026 if test "x$enable_dependency_tracking" != xno; then
3027  AMDEP_TRUE=
3028  AMDEP_FALSE='#'
3029else
3030  AMDEP_TRUE='#'
3031  AMDEP_FALSE=
3032fi
3033
3034
3035ac_ext=c
3036ac_cpp='$CPP $CPPFLAGS'
3037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3039ac_compiler_gnu=$ac_cv_c_compiler_gnu
3040if test -n "$ac_tool_prefix"; then
3041  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3042set dummy ${ac_tool_prefix}gcc; ac_word=$2
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044$as_echo_n "checking for $ac_word... " >&6; }
3045if ${ac_cv_prog_CC+:} false; then :
3046  $as_echo_n "(cached) " >&6
3047else
3048  if test -n "$CC"; then
3049  ac_cv_prog_CC="$CC" # Let the user override the test.
3050else
3051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052for as_dir in $PATH
3053do
3054  IFS=$as_save_IFS
3055  test -z "$as_dir" && as_dir=.
3056    for ac_exec_ext in '' $ac_executable_extensions; do
3057  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3058    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060    break 2
3061  fi
3062done
3063  done
3064IFS=$as_save_IFS
3065
3066fi
3067fi
3068CC=$ac_cv_prog_CC
3069if test -n "$CC"; then
3070  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3071$as_echo "$CC" >&6; }
3072else
3073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074$as_echo "no" >&6; }
3075fi
3076
3077
3078fi
3079if test -z "$ac_cv_prog_CC"; then
3080  ac_ct_CC=$CC
3081  # Extract the first word of "gcc", so it can be a program name with args.
3082set dummy gcc; ac_word=$2
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084$as_echo_n "checking for $ac_word... " >&6; }
3085if ${ac_cv_prog_ac_ct_CC+:} false; then :
3086  $as_echo_n "(cached) " >&6
3087else
3088  if test -n "$ac_ct_CC"; then
3089  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3090else
3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH
3093do
3094  IFS=$as_save_IFS
3095  test -z "$as_dir" && as_dir=.
3096    for ac_exec_ext in '' $ac_executable_extensions; do
3097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098    ac_cv_prog_ac_ct_CC="gcc"
3099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100    break 2
3101  fi
3102done
3103  done
3104IFS=$as_save_IFS
3105
3106fi
3107fi
3108ac_ct_CC=$ac_cv_prog_ac_ct_CC
3109if test -n "$ac_ct_CC"; then
3110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3111$as_echo "$ac_ct_CC" >&6; }
3112else
3113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114$as_echo "no" >&6; }
3115fi
3116
3117  if test "x$ac_ct_CC" = x; then
3118    CC=""
3119  else
3120    case $cross_compiling:$ac_tool_warned in
3121yes:)
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3124ac_tool_warned=yes ;;
3125esac
3126    CC=$ac_ct_CC
3127  fi
3128else
3129  CC="$ac_cv_prog_CC"
3130fi
3131
3132if test -z "$CC"; then
3133          if test -n "$ac_tool_prefix"; then
3134    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3135set dummy ${ac_tool_prefix}cc; ac_word=$2
3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137$as_echo_n "checking for $ac_word... " >&6; }
3138if ${ac_cv_prog_CC+:} false; then :
3139  $as_echo_n "(cached) " >&6
3140else
3141  if test -n "$CC"; then
3142  ac_cv_prog_CC="$CC" # Let the user override the test.
3143else
3144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145for as_dir in $PATH
3146do
3147  IFS=$as_save_IFS
3148  test -z "$as_dir" && as_dir=.
3149    for ac_exec_ext in '' $ac_executable_extensions; do
3150  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3151    ac_cv_prog_CC="${ac_tool_prefix}cc"
3152    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3153    break 2
3154  fi
3155done
3156  done
3157IFS=$as_save_IFS
3158
3159fi
3160fi
3161CC=$ac_cv_prog_CC
3162if test -n "$CC"; then
3163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3164$as_echo "$CC" >&6; }
3165else
3166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167$as_echo "no" >&6; }
3168fi
3169
3170
3171  fi
3172fi
3173if test -z "$CC"; then
3174  # Extract the first word of "cc", so it can be a program name with args.
3175set dummy cc; ac_word=$2
3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177$as_echo_n "checking for $ac_word... " >&6; }
3178if ${ac_cv_prog_CC+:} false; then :
3179  $as_echo_n "(cached) " >&6
3180else
3181  if test -n "$CC"; then
3182  ac_cv_prog_CC="$CC" # Let the user override the test.
3183else
3184  ac_prog_rejected=no
3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3186for as_dir in $PATH
3187do
3188  IFS=$as_save_IFS
3189  test -z "$as_dir" && as_dir=.
3190    for ac_exec_ext in '' $ac_executable_extensions; do
3191  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3193       ac_prog_rejected=yes
3194       continue
3195     fi
3196    ac_cv_prog_CC="cc"
3197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198    break 2
3199  fi
3200done
3201  done
3202IFS=$as_save_IFS
3203
3204if test $ac_prog_rejected = yes; then
3205  # We found a bogon in the path, so make sure we never use it.
3206  set dummy $ac_cv_prog_CC
3207  shift
3208  if test $# != 0; then
3209    # We chose a different compiler from the bogus one.
3210    # However, it has the same basename, so the bogon will be chosen
3211    # first if we set CC to just the basename; use the full file name.
3212    shift
3213    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3214  fi
3215fi
3216fi
3217fi
3218CC=$ac_cv_prog_CC
3219if test -n "$CC"; then
3220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3221$as_echo "$CC" >&6; }
3222else
3223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224$as_echo "no" >&6; }
3225fi
3226
3227
3228fi
3229if test -z "$CC"; then
3230  if test -n "$ac_tool_prefix"; then
3231  for ac_prog in cl.exe
3232  do
3233    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3234set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236$as_echo_n "checking for $ac_word... " >&6; }
3237if ${ac_cv_prog_CC+:} false; then :
3238  $as_echo_n "(cached) " >&6
3239else
3240  if test -n "$CC"; then
3241  ac_cv_prog_CC="$CC" # Let the user override the test.
3242else
3243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244for as_dir in $PATH
3245do
3246  IFS=$as_save_IFS
3247  test -z "$as_dir" && as_dir=.
3248    for ac_exec_ext in '' $ac_executable_extensions; do
3249  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3250    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3251    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3252    break 2
3253  fi
3254done
3255  done
3256IFS=$as_save_IFS
3257
3258fi
3259fi
3260CC=$ac_cv_prog_CC
3261if test -n "$CC"; then
3262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3263$as_echo "$CC" >&6; }
3264else
3265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266$as_echo "no" >&6; }
3267fi
3268
3269
3270    test -n "$CC" && break
3271  done
3272fi
3273if test -z "$CC"; then
3274  ac_ct_CC=$CC
3275  for ac_prog in cl.exe
3276do
3277  # Extract the first word of "$ac_prog", so it can be a program name with args.
3278set dummy $ac_prog; ac_word=$2
3279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3280$as_echo_n "checking for $ac_word... " >&6; }
3281if ${ac_cv_prog_ac_ct_CC+:} false; then :
3282  $as_echo_n "(cached) " >&6
3283else
3284  if test -n "$ac_ct_CC"; then
3285  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3286else
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
3290  IFS=$as_save_IFS
3291  test -z "$as_dir" && as_dir=.
3292    for ac_exec_ext in '' $ac_executable_extensions; do
3293  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3294    ac_cv_prog_ac_ct_CC="$ac_prog"
3295    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3296    break 2
3297  fi
3298done
3299  done
3300IFS=$as_save_IFS
3301
3302fi
3303fi
3304ac_ct_CC=$ac_cv_prog_ac_ct_CC
3305if test -n "$ac_ct_CC"; then
3306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3307$as_echo "$ac_ct_CC" >&6; }
3308else
3309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310$as_echo "no" >&6; }
3311fi
3312
3313
3314  test -n "$ac_ct_CC" && break
3315done
3316
3317  if test "x$ac_ct_CC" = x; then
3318    CC=""
3319  else
3320    case $cross_compiling:$ac_tool_warned in
3321yes:)
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3323$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3324ac_tool_warned=yes ;;
3325esac
3326    CC=$ac_ct_CC
3327  fi
3328fi
3329
3330fi
3331
3332
3333test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335as_fn_error $? "no acceptable C compiler found in \$PATH
3336See \`config.log' for more details" "$LINENO" 5; }
3337
3338# Provide some information about the compiler.
3339$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3340set X $ac_compile
3341ac_compiler=$2
3342for ac_option in --version -v -V -qversion; do
3343  { { ac_try="$ac_compiler $ac_option >&5"
3344case "(($ac_try" in
3345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346  *) ac_try_echo=$ac_try;;
3347esac
3348eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349$as_echo "$ac_try_echo"; } >&5
3350  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3351  ac_status=$?
3352  if test -s conftest.err; then
3353    sed '10a\
3354... rest of stderr output deleted ...
3355         10q' conftest.err >conftest.er1
3356    cat conftest.er1 >&5
3357  fi
3358  rm -f conftest.er1 conftest.err
3359  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360  test $ac_status = 0; }
3361done
3362
3363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364/* end confdefs.h.  */
3365
3366int
3367main ()
3368{
3369
3370  ;
3371  return 0;
3372}
3373_ACEOF
3374ac_clean_files_save=$ac_clean_files
3375ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3376# Try to create an executable without -o first, disregard a.out.
3377# It will help us diagnose broken compilers, and finding out an intuition
3378# of exeext.
3379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3380$as_echo_n "checking whether the C compiler works... " >&6; }
3381ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3382
3383# The possible output files:
3384ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3385
3386ac_rmfiles=
3387for ac_file in $ac_files
3388do
3389  case $ac_file in
3390    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3391    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3392  esac
3393done
3394rm -f $ac_rmfiles
3395
3396if { { ac_try="$ac_link_default"
3397case "(($ac_try" in
3398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399  *) ac_try_echo=$ac_try;;
3400esac
3401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402$as_echo "$ac_try_echo"; } >&5
3403  (eval "$ac_link_default") 2>&5
3404  ac_status=$?
3405  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406  test $ac_status = 0; }; then :
3407  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3408# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3409# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3410# so that the user can short-circuit this test for compilers unknown to
3411# Autoconf.
3412for ac_file in $ac_files ''
3413do
3414  test -f "$ac_file" || continue
3415  case $ac_file in
3416    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3417	;;
3418    [ab].out )
3419	# We found the default executable, but exeext='' is most
3420	# certainly right.
3421	break;;
3422    *.* )
3423	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3424	then :; else
3425	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3426	fi
3427	# We set ac_cv_exeext here because the later test for it is not
3428	# safe: cross compilers may not add the suffix if given an `-o'
3429	# argument, so we may need to know it at that point already.
3430	# Even if this section looks crufty: it has the advantage of
3431	# actually working.
3432	break;;
3433    * )
3434	break;;
3435  esac
3436done
3437test "$ac_cv_exeext" = no && ac_cv_exeext=
3438
3439else
3440  ac_file=''
3441fi
3442if test -z "$ac_file"; then :
3443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444$as_echo "no" >&6; }
3445$as_echo "$as_me: failed program was:" >&5
3446sed 's/^/| /' conftest.$ac_ext >&5
3447
3448{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450as_fn_error 77 "C compiler cannot create executables
3451See \`config.log' for more details" "$LINENO" 5; }
3452else
3453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3454$as_echo "yes" >&6; }
3455fi
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3457$as_echo_n "checking for C compiler default output file name... " >&6; }
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3459$as_echo "$ac_file" >&6; }
3460ac_exeext=$ac_cv_exeext
3461
3462rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3463ac_clean_files=$ac_clean_files_save
3464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3465$as_echo_n "checking for suffix of executables... " >&6; }
3466if { { ac_try="$ac_link"
3467case "(($ac_try" in
3468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469  *) ac_try_echo=$ac_try;;
3470esac
3471eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3472$as_echo "$ac_try_echo"; } >&5
3473  (eval "$ac_link") 2>&5
3474  ac_status=$?
3475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3476  test $ac_status = 0; }; then :
3477  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3478# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3479# work properly (i.e., refer to `conftest.exe'), while it won't with
3480# `rm'.
3481for ac_file in conftest.exe conftest conftest.*; do
3482  test -f "$ac_file" || continue
3483  case $ac_file in
3484    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3485    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3486	  break;;
3487    * ) break;;
3488  esac
3489done
3490else
3491  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3493as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3494See \`config.log' for more details" "$LINENO" 5; }
3495fi
3496rm -f conftest conftest$ac_cv_exeext
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3498$as_echo "$ac_cv_exeext" >&6; }
3499
3500rm -f conftest.$ac_ext
3501EXEEXT=$ac_cv_exeext
3502ac_exeext=$EXEEXT
3503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504/* end confdefs.h.  */
3505#include <stdio.h>
3506int
3507main ()
3508{
3509FILE *f = fopen ("conftest.out", "w");
3510 return ferror (f) || fclose (f) != 0;
3511
3512  ;
3513  return 0;
3514}
3515_ACEOF
3516ac_clean_files="$ac_clean_files conftest.out"
3517# Check that the compiler produces executables we can run.  If not, either
3518# the compiler is broken, or we cross compile.
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3520$as_echo_n "checking whether we are cross compiling... " >&6; }
3521if test "$cross_compiling" != yes; then
3522  { { ac_try="$ac_link"
3523case "(($ac_try" in
3524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525  *) ac_try_echo=$ac_try;;
3526esac
3527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3528$as_echo "$ac_try_echo"; } >&5
3529  (eval "$ac_link") 2>&5
3530  ac_status=$?
3531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3532  test $ac_status = 0; }
3533  if { ac_try='./conftest$ac_cv_exeext'
3534  { { case "(($ac_try" in
3535  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536  *) ac_try_echo=$ac_try;;
3537esac
3538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3539$as_echo "$ac_try_echo"; } >&5
3540  (eval "$ac_try") 2>&5
3541  ac_status=$?
3542  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3543  test $ac_status = 0; }; }; then
3544    cross_compiling=no
3545  else
3546    if test "$cross_compiling" = maybe; then
3547	cross_compiling=yes
3548    else
3549	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551as_fn_error $? "cannot run C compiled programs.
3552If you meant to cross compile, use \`--host'.
3553See \`config.log' for more details" "$LINENO" 5; }
3554    fi
3555  fi
3556fi
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3558$as_echo "$cross_compiling" >&6; }
3559
3560rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3561ac_clean_files=$ac_clean_files_save
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3563$as_echo_n "checking for suffix of object files... " >&6; }
3564if ${ac_cv_objext+:} false; then :
3565  $as_echo_n "(cached) " >&6
3566else
3567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568/* end confdefs.h.  */
3569
3570int
3571main ()
3572{
3573
3574  ;
3575  return 0;
3576}
3577_ACEOF
3578rm -f conftest.o conftest.obj
3579if { { ac_try="$ac_compile"
3580case "(($ac_try" in
3581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582  *) ac_try_echo=$ac_try;;
3583esac
3584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585$as_echo "$ac_try_echo"; } >&5
3586  (eval "$ac_compile") 2>&5
3587  ac_status=$?
3588  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589  test $ac_status = 0; }; then :
3590  for ac_file in conftest.o conftest.obj conftest.*; do
3591  test -f "$ac_file" || continue;
3592  case $ac_file in
3593    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3594    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3595       break;;
3596  esac
3597done
3598else
3599  $as_echo "$as_me: failed program was:" >&5
3600sed 's/^/| /' conftest.$ac_ext >&5
3601
3602{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3604as_fn_error $? "cannot compute suffix of object files: cannot compile
3605See \`config.log' for more details" "$LINENO" 5; }
3606fi
3607rm -f conftest.$ac_cv_objext conftest.$ac_ext
3608fi
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3610$as_echo "$ac_cv_objext" >&6; }
3611OBJEXT=$ac_cv_objext
3612ac_objext=$OBJEXT
3613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3614$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3615if ${ac_cv_c_compiler_gnu+:} false; then :
3616  $as_echo_n "(cached) " >&6
3617else
3618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619/* end confdefs.h.  */
3620
3621int
3622main ()
3623{
3624#ifndef __GNUC__
3625       choke me
3626#endif
3627
3628  ;
3629  return 0;
3630}
3631_ACEOF
3632if ac_fn_c_try_compile "$LINENO"; then :
3633  ac_compiler_gnu=yes
3634else
3635  ac_compiler_gnu=no
3636fi
3637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638ac_cv_c_compiler_gnu=$ac_compiler_gnu
3639
3640fi
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3642$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3643if test $ac_compiler_gnu = yes; then
3644  GCC=yes
3645else
3646  GCC=
3647fi
3648ac_test_CFLAGS=${CFLAGS+set}
3649ac_save_CFLAGS=$CFLAGS
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3651$as_echo_n "checking whether $CC accepts -g... " >&6; }
3652if ${ac_cv_prog_cc_g+:} false; then :
3653  $as_echo_n "(cached) " >&6
3654else
3655  ac_save_c_werror_flag=$ac_c_werror_flag
3656   ac_c_werror_flag=yes
3657   ac_cv_prog_cc_g=no
3658   CFLAGS="-g"
3659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660/* end confdefs.h.  */
3661
3662int
3663main ()
3664{
3665
3666  ;
3667  return 0;
3668}
3669_ACEOF
3670if ac_fn_c_try_compile "$LINENO"; then :
3671  ac_cv_prog_cc_g=yes
3672else
3673  CFLAGS=""
3674      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675/* end confdefs.h.  */
3676
3677int
3678main ()
3679{
3680
3681  ;
3682  return 0;
3683}
3684_ACEOF
3685if ac_fn_c_try_compile "$LINENO"; then :
3686
3687else
3688  ac_c_werror_flag=$ac_save_c_werror_flag
3689	 CFLAGS="-g"
3690	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691/* end confdefs.h.  */
3692
3693int
3694main ()
3695{
3696
3697  ;
3698  return 0;
3699}
3700_ACEOF
3701if ac_fn_c_try_compile "$LINENO"; then :
3702  ac_cv_prog_cc_g=yes
3703fi
3704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705fi
3706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707fi
3708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3709   ac_c_werror_flag=$ac_save_c_werror_flag
3710fi
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3712$as_echo "$ac_cv_prog_cc_g" >&6; }
3713if test "$ac_test_CFLAGS" = set; then
3714  CFLAGS=$ac_save_CFLAGS
3715elif test $ac_cv_prog_cc_g = yes; then
3716  if test "$GCC" = yes; then
3717    CFLAGS="-g -O2"
3718  else
3719    CFLAGS="-g"
3720  fi
3721else
3722  if test "$GCC" = yes; then
3723    CFLAGS="-O2"
3724  else
3725    CFLAGS=
3726  fi
3727fi
3728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3729$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3730if ${ac_cv_prog_cc_c89+:} false; then :
3731  $as_echo_n "(cached) " >&6
3732else
3733  ac_cv_prog_cc_c89=no
3734ac_save_CC=$CC
3735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736/* end confdefs.h.  */
3737#include <stdarg.h>
3738#include <stdio.h>
3739struct stat;
3740/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3741struct buf { int x; };
3742FILE * (*rcsopen) (struct buf *, struct stat *, int);
3743static char *e (p, i)
3744     char **p;
3745     int i;
3746{
3747  return p[i];
3748}
3749static char *f (char * (*g) (char **, int), char **p, ...)
3750{
3751  char *s;
3752  va_list v;
3753  va_start (v,p);
3754  s = g (p, va_arg (v,int));
3755  va_end (v);
3756  return s;
3757}
3758
3759/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3760   function prototypes and stuff, but not '\xHH' hex character constants.
3761   These don't provoke an error unfortunately, instead are silently treated
3762   as 'x'.  The following induces an error, until -std is added to get
3763   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3764   array size at least.  It's necessary to write '\x00'==0 to get something
3765   that's true only with -std.  */
3766int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3767
3768/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3769   inside strings and character constants.  */
3770#define FOO(x) 'x'
3771int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3772
3773int test (int i, double x);
3774struct s1 {int (*f) (int a);};
3775struct s2 {int (*f) (double a);};
3776int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3777int argc;
3778char **argv;
3779int
3780main ()
3781{
3782return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3783  ;
3784  return 0;
3785}
3786_ACEOF
3787for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3788	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3789do
3790  CC="$ac_save_CC $ac_arg"
3791  if ac_fn_c_try_compile "$LINENO"; then :
3792  ac_cv_prog_cc_c89=$ac_arg
3793fi
3794rm -f core conftest.err conftest.$ac_objext
3795  test "x$ac_cv_prog_cc_c89" != "xno" && break
3796done
3797rm -f conftest.$ac_ext
3798CC=$ac_save_CC
3799
3800fi
3801# AC_CACHE_VAL
3802case "x$ac_cv_prog_cc_c89" in
3803  x)
3804    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3805$as_echo "none needed" >&6; } ;;
3806  xno)
3807    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3808$as_echo "unsupported" >&6; } ;;
3809  *)
3810    CC="$CC $ac_cv_prog_cc_c89"
3811    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3812$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3813esac
3814if test "x$ac_cv_prog_cc_c89" != xno; then :
3815
3816fi
3817
3818ac_ext=c
3819ac_cpp='$CPP $CPPFLAGS'
3820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3822ac_compiler_gnu=$ac_cv_c_compiler_gnu
3823
3824ac_ext=c
3825ac_cpp='$CPP $CPPFLAGS'
3826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3828ac_compiler_gnu=$ac_cv_c_compiler_gnu
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3830$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3831if ${am_cv_prog_cc_c_o+:} false; then :
3832  $as_echo_n "(cached) " >&6
3833else
3834  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835/* end confdefs.h.  */
3836
3837int
3838main ()
3839{
3840
3841  ;
3842  return 0;
3843}
3844_ACEOF
3845  # Make sure it works both with $CC and with simple cc.
3846  # Following AC_PROG_CC_C_O, we do the test twice because some
3847  # compilers refuse to overwrite an existing .o file with -o,
3848  # though they will create one.
3849  am_cv_prog_cc_c_o=yes
3850  for am_i in 1 2; do
3851    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3852   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3853   ac_status=$?
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); } \
3856         && test -f conftest2.$ac_objext; then
3857      : OK
3858    else
3859      am_cv_prog_cc_c_o=no
3860      break
3861    fi
3862  done
3863  rm -f core conftest*
3864  unset am_i
3865fi
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3867$as_echo "$am_cv_prog_cc_c_o" >&6; }
3868if test "$am_cv_prog_cc_c_o" != yes; then
3869   # Losing compiler, so override with the script.
3870   # FIXME: It is wrong to rewrite CC.
3871   # But if we don't then we get into trouble of one sort or another.
3872   # A longer-term fix would be to have automake use am__CC in this case,
3873   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3874   CC="$am_aux_dir/compile $CC"
3875fi
3876ac_ext=c
3877ac_cpp='$CPP $CPPFLAGS'
3878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881
3882
3883depcc="$CC"   am_compiler_list=
3884
3885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3886$as_echo_n "checking dependency style of $depcc... " >&6; }
3887if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3888  $as_echo_n "(cached) " >&6
3889else
3890  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3891  # We make a subdir and do the tests there.  Otherwise we can end up
3892  # making bogus files that we don't know about and never remove.  For
3893  # instance it was reported that on HP-UX the gcc test will end up
3894  # making a dummy file named 'D' -- because '-MD' means "put the output
3895  # in D".
3896  rm -rf conftest.dir
3897  mkdir conftest.dir
3898  # Copy depcomp to subdir because otherwise we won't find it if we're
3899  # using a relative directory.
3900  cp "$am_depcomp" conftest.dir
3901  cd conftest.dir
3902  # We will build objects and dependencies in a subdirectory because
3903  # it helps to detect inapplicable dependency modes.  For instance
3904  # both Tru64's cc and ICC support -MD to output dependencies as a
3905  # side effect of compilation, but ICC will put the dependencies in
3906  # the current directory while Tru64 will put them in the object
3907  # directory.
3908  mkdir sub
3909
3910  am_cv_CC_dependencies_compiler_type=none
3911  if test "$am_compiler_list" = ""; then
3912     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3913  fi
3914  am__universal=false
3915  case " $depcc " in #(
3916     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3917     esac
3918
3919  for depmode in $am_compiler_list; do
3920    # Setup a source with many dependencies, because some compilers
3921    # like to wrap large dependency lists on column 80 (with \), and
3922    # we should not choose a depcomp mode which is confused by this.
3923    #
3924    # We need to recreate these files for each test, as the compiler may
3925    # overwrite some of them when testing with obscure command lines.
3926    # This happens at least with the AIX C compiler.
3927    : > sub/conftest.c
3928    for i in 1 2 3 4 5 6; do
3929      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3930      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3931      # Solaris 10 /bin/sh.
3932      echo '/* dummy */' > sub/conftst$i.h
3933    done
3934    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3935
3936    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3937    # mode.  It turns out that the SunPro C++ compiler does not properly
3938    # handle '-M -o', and we need to detect this.  Also, some Intel
3939    # versions had trouble with output in subdirs.
3940    am__obj=sub/conftest.${OBJEXT-o}
3941    am__minus_obj="-o $am__obj"
3942    case $depmode in
3943    gcc)
3944      # This depmode causes a compiler race in universal mode.
3945      test "$am__universal" = false || continue
3946      ;;
3947    nosideeffect)
3948      # After this tag, mechanisms are not by side-effect, so they'll
3949      # only be used when explicitly requested.
3950      if test "x$enable_dependency_tracking" = xyes; then
3951	continue
3952      else
3953	break
3954      fi
3955      ;;
3956    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3957      # This compiler won't grok '-c -o', but also, the minuso test has
3958      # not run yet.  These depmodes are late enough in the game, and
3959      # so weak that their functioning should not be impacted.
3960      am__obj=conftest.${OBJEXT-o}
3961      am__minus_obj=
3962      ;;
3963    none) break ;;
3964    esac
3965    if depmode=$depmode \
3966       source=sub/conftest.c object=$am__obj \
3967       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3968       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3969         >/dev/null 2>conftest.err &&
3970       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3971       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3972       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3973       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3974      # icc doesn't choke on unknown options, it will just issue warnings
3975      # or remarks (even with -Werror).  So we grep stderr for any message
3976      # that says an option was ignored or not supported.
3977      # When given -MP, icc 7.0 and 7.1 complain thusly:
3978      #   icc: Command line warning: ignoring option '-M'; no argument required
3979      # The diagnosis changed in icc 8.0:
3980      #   icc: Command line remark: option '-MP' not supported
3981      if (grep 'ignoring option' conftest.err ||
3982          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3983        am_cv_CC_dependencies_compiler_type=$depmode
3984        break
3985      fi
3986    fi
3987  done
3988
3989  cd ..
3990  rm -rf conftest.dir
3991else
3992  am_cv_CC_dependencies_compiler_type=none
3993fi
3994
3995fi
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3997$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3998CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3999
4000 if
4001  test "x$enable_dependency_tracking" != xno \
4002  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4003  am__fastdepCC_TRUE=
4004  am__fastdepCC_FALSE='#'
4005else
4006  am__fastdepCC_TRUE='#'
4007  am__fastdepCC_FALSE=
4008fi
4009
4010
4011   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4012$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4013if ${ac_cv_prog_cc_c99+:} false; then :
4014  $as_echo_n "(cached) " >&6
4015else
4016  ac_cv_prog_cc_c99=no
4017ac_save_CC=$CC
4018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019/* end confdefs.h.  */
4020#include <stdarg.h>
4021#include <stdbool.h>
4022#include <stdlib.h>
4023#include <wchar.h>
4024#include <stdio.h>
4025
4026// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4027#define debug(...) fprintf (stderr, __VA_ARGS__)
4028#define showlist(...) puts (#__VA_ARGS__)
4029#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4030static void
4031test_varargs_macros (void)
4032{
4033  int x = 1234;
4034  int y = 5678;
4035  debug ("Flag");
4036  debug ("X = %d\n", x);
4037  showlist (The first, second, and third items.);
4038  report (x>y, "x is %d but y is %d", x, y);
4039}
4040
4041// Check long long types.
4042#define BIG64 18446744073709551615ull
4043#define BIG32 4294967295ul
4044#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4045#if !BIG_OK
4046  your preprocessor is broken;
4047#endif
4048#if BIG_OK
4049#else
4050  your preprocessor is broken;
4051#endif
4052static long long int bignum = -9223372036854775807LL;
4053static unsigned long long int ubignum = BIG64;
4054
4055struct incomplete_array
4056{
4057  int datasize;
4058  double data[];
4059};
4060
4061struct named_init {
4062  int number;
4063  const wchar_t *name;
4064  double average;
4065};
4066
4067typedef const char *ccp;
4068
4069static inline int
4070test_restrict (ccp restrict text)
4071{
4072  // See if C++-style comments work.
4073  // Iterate through items via the restricted pointer.
4074  // Also check for declarations in for loops.
4075  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4076    continue;
4077  return 0;
4078}
4079
4080// Check varargs and va_copy.
4081static void
4082test_varargs (const char *format, ...)
4083{
4084  va_list args;
4085  va_start (args, format);
4086  va_list args_copy;
4087  va_copy (args_copy, args);
4088
4089  const char *str;
4090  int number;
4091  float fnumber;
4092
4093  while (*format)
4094    {
4095      switch (*format++)
4096	{
4097	case 's': // string
4098	  str = va_arg (args_copy, const char *);
4099	  break;
4100	case 'd': // int
4101	  number = va_arg (args_copy, int);
4102	  break;
4103	case 'f': // float
4104	  fnumber = va_arg (args_copy, double);
4105	  break;
4106	default:
4107	  break;
4108	}
4109    }
4110  va_end (args_copy);
4111  va_end (args);
4112}
4113
4114int
4115main ()
4116{
4117
4118  // Check bool.
4119  _Bool success = false;
4120
4121  // Check restrict.
4122  if (test_restrict ("String literal") == 0)
4123    success = true;
4124  char *restrict newvar = "Another string";
4125
4126  // Check varargs.
4127  test_varargs ("s, d' f .", "string", 65, 34.234);
4128  test_varargs_macros ();
4129
4130  // Check flexible array members.
4131  struct incomplete_array *ia =
4132    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4133  ia->datasize = 10;
4134  for (int i = 0; i < ia->datasize; ++i)
4135    ia->data[i] = i * 1.234;
4136
4137  // Check named initializers.
4138  struct named_init ni = {
4139    .number = 34,
4140    .name = L"Test wide string",
4141    .average = 543.34343,
4142  };
4143
4144  ni.number = 58;
4145
4146  int dynamic_array[ni.number];
4147  dynamic_array[ni.number - 1] = 543;
4148
4149  // work around unused variable warnings
4150  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4151	  || dynamic_array[ni.number - 1] != 543);
4152
4153  ;
4154  return 0;
4155}
4156_ACEOF
4157for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4158do
4159  CC="$ac_save_CC $ac_arg"
4160  if ac_fn_c_try_compile "$LINENO"; then :
4161  ac_cv_prog_cc_c99=$ac_arg
4162fi
4163rm -f core conftest.err conftest.$ac_objext
4164  test "x$ac_cv_prog_cc_c99" != "xno" && break
4165done
4166rm -f conftest.$ac_ext
4167CC=$ac_save_CC
4168
4169fi
4170# AC_CACHE_VAL
4171case "x$ac_cv_prog_cc_c99" in
4172  x)
4173    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4174$as_echo "none needed" >&6; } ;;
4175  xno)
4176    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4177$as_echo "unsupported" >&6; } ;;
4178  *)
4179    CC="$CC $ac_cv_prog_cc_c99"
4180    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4181$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4182esac
4183if test "x$ac_cv_prog_cc_c99" != xno; then :
4184
4185fi
4186
4187
4188
4189ac_ext=c
4190ac_cpp='$CPP $CPPFLAGS'
4191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4195$as_echo_n "checking how to run the C preprocessor... " >&6; }
4196# On Suns, sometimes $CPP names a directory.
4197if test -n "$CPP" && test -d "$CPP"; then
4198  CPP=
4199fi
4200if test -z "$CPP"; then
4201  if ${ac_cv_prog_CPP+:} false; then :
4202  $as_echo_n "(cached) " >&6
4203else
4204      # Double quotes because CPP needs to be expanded
4205    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4206    do
4207      ac_preproc_ok=false
4208for ac_c_preproc_warn_flag in '' yes
4209do
4210  # Use a header file that comes with gcc, so configuring glibc
4211  # with a fresh cross-compiler works.
4212  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4213  # <limits.h> exists even on freestanding compilers.
4214  # On the NeXT, cc -E runs the code through the compiler's parser,
4215  # not just through cpp. "Syntax error" is here to catch this case.
4216  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217/* end confdefs.h.  */
4218#ifdef __STDC__
4219# include <limits.h>
4220#else
4221# include <assert.h>
4222#endif
4223		     Syntax error
4224_ACEOF
4225if ac_fn_c_try_cpp "$LINENO"; then :
4226
4227else
4228  # Broken: fails on valid input.
4229continue
4230fi
4231rm -f conftest.err conftest.i conftest.$ac_ext
4232
4233  # OK, works on sane cases.  Now check whether nonexistent headers
4234  # can be detected and how.
4235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236/* end confdefs.h.  */
4237#include <ac_nonexistent.h>
4238_ACEOF
4239if ac_fn_c_try_cpp "$LINENO"; then :
4240  # Broken: success on invalid input.
4241continue
4242else
4243  # Passes both tests.
4244ac_preproc_ok=:
4245break
4246fi
4247rm -f conftest.err conftest.i conftest.$ac_ext
4248
4249done
4250# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4251rm -f conftest.i conftest.err conftest.$ac_ext
4252if $ac_preproc_ok; then :
4253  break
4254fi
4255
4256    done
4257    ac_cv_prog_CPP=$CPP
4258
4259fi
4260  CPP=$ac_cv_prog_CPP
4261else
4262  ac_cv_prog_CPP=$CPP
4263fi
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4265$as_echo "$CPP" >&6; }
4266ac_preproc_ok=false
4267for ac_c_preproc_warn_flag in '' yes
4268do
4269  # Use a header file that comes with gcc, so configuring glibc
4270  # with a fresh cross-compiler works.
4271  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4272  # <limits.h> exists even on freestanding compilers.
4273  # On the NeXT, cc -E runs the code through the compiler's parser,
4274  # not just through cpp. "Syntax error" is here to catch this case.
4275  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276/* end confdefs.h.  */
4277#ifdef __STDC__
4278# include <limits.h>
4279#else
4280# include <assert.h>
4281#endif
4282		     Syntax error
4283_ACEOF
4284if ac_fn_c_try_cpp "$LINENO"; then :
4285
4286else
4287  # Broken: fails on valid input.
4288continue
4289fi
4290rm -f conftest.err conftest.i conftest.$ac_ext
4291
4292  # OK, works on sane cases.  Now check whether nonexistent headers
4293  # can be detected and how.
4294  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295/* end confdefs.h.  */
4296#include <ac_nonexistent.h>
4297_ACEOF
4298if ac_fn_c_try_cpp "$LINENO"; then :
4299  # Broken: success on invalid input.
4300continue
4301else
4302  # Passes both tests.
4303ac_preproc_ok=:
4304break
4305fi
4306rm -f conftest.err conftest.i conftest.$ac_ext
4307
4308done
4309# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4310rm -f conftest.i conftest.err conftest.$ac_ext
4311if $ac_preproc_ok; then :
4312
4313else
4314  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4316as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4317See \`config.log' for more details" "$LINENO" 5; }
4318fi
4319
4320ac_ext=c
4321ac_cpp='$CPP $CPPFLAGS'
4322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325
4326
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4328$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4329if ${ac_cv_path_GREP+:} false; then :
4330  $as_echo_n "(cached) " >&6
4331else
4332  if test -z "$GREP"; then
4333  ac_path_GREP_found=false
4334  # Loop through the user's path and test for each of PROGNAME-LIST
4335  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4337do
4338  IFS=$as_save_IFS
4339  test -z "$as_dir" && as_dir=.
4340    for ac_prog in grep ggrep; do
4341    for ac_exec_ext in '' $ac_executable_extensions; do
4342      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4343      as_fn_executable_p "$ac_path_GREP" || continue
4344# Check for GNU ac_path_GREP and select it if it is found.
4345  # Check for GNU $ac_path_GREP
4346case `"$ac_path_GREP" --version 2>&1` in
4347*GNU*)
4348  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4349*)
4350  ac_count=0
4351  $as_echo_n 0123456789 >"conftest.in"
4352  while :
4353  do
4354    cat "conftest.in" "conftest.in" >"conftest.tmp"
4355    mv "conftest.tmp" "conftest.in"
4356    cp "conftest.in" "conftest.nl"
4357    $as_echo 'GREP' >> "conftest.nl"
4358    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4359    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4360    as_fn_arith $ac_count + 1 && ac_count=$as_val
4361    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4362      # Best one so far, save it but keep looking for a better one
4363      ac_cv_path_GREP="$ac_path_GREP"
4364      ac_path_GREP_max=$ac_count
4365    fi
4366    # 10*(2^10) chars as input seems more than enough
4367    test $ac_count -gt 10 && break
4368  done
4369  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4370esac
4371
4372      $ac_path_GREP_found && break 3
4373    done
4374  done
4375  done
4376IFS=$as_save_IFS
4377  if test -z "$ac_cv_path_GREP"; then
4378    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4379  fi
4380else
4381  ac_cv_path_GREP=$GREP
4382fi
4383
4384fi
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4386$as_echo "$ac_cv_path_GREP" >&6; }
4387 GREP="$ac_cv_path_GREP"
4388
4389
4390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4391$as_echo_n "checking for egrep... " >&6; }
4392if ${ac_cv_path_EGREP+:} false; then :
4393  $as_echo_n "(cached) " >&6
4394else
4395  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4396   then ac_cv_path_EGREP="$GREP -E"
4397   else
4398     if test -z "$EGREP"; then
4399  ac_path_EGREP_found=false
4400  # Loop through the user's path and test for each of PROGNAME-LIST
4401  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4403do
4404  IFS=$as_save_IFS
4405  test -z "$as_dir" && as_dir=.
4406    for ac_prog in egrep; do
4407    for ac_exec_ext in '' $ac_executable_extensions; do
4408      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4409      as_fn_executable_p "$ac_path_EGREP" || continue
4410# Check for GNU ac_path_EGREP and select it if it is found.
4411  # Check for GNU $ac_path_EGREP
4412case `"$ac_path_EGREP" --version 2>&1` in
4413*GNU*)
4414  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4415*)
4416  ac_count=0
4417  $as_echo_n 0123456789 >"conftest.in"
4418  while :
4419  do
4420    cat "conftest.in" "conftest.in" >"conftest.tmp"
4421    mv "conftest.tmp" "conftest.in"
4422    cp "conftest.in" "conftest.nl"
4423    $as_echo 'EGREP' >> "conftest.nl"
4424    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4425    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4426    as_fn_arith $ac_count + 1 && ac_count=$as_val
4427    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4428      # Best one so far, save it but keep looking for a better one
4429      ac_cv_path_EGREP="$ac_path_EGREP"
4430      ac_path_EGREP_max=$ac_count
4431    fi
4432    # 10*(2^10) chars as input seems more than enough
4433    test $ac_count -gt 10 && break
4434  done
4435  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4436esac
4437
4438      $ac_path_EGREP_found && break 3
4439    done
4440  done
4441  done
4442IFS=$as_save_IFS
4443  if test -z "$ac_cv_path_EGREP"; then
4444    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4445  fi
4446else
4447  ac_cv_path_EGREP=$EGREP
4448fi
4449
4450   fi
4451fi
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4453$as_echo "$ac_cv_path_EGREP" >&6; }
4454 EGREP="$ac_cv_path_EGREP"
4455
4456
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4458$as_echo_n "checking for ANSI C header files... " >&6; }
4459if ${ac_cv_header_stdc+:} false; then :
4460  $as_echo_n "(cached) " >&6
4461else
4462  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463/* end confdefs.h.  */
4464#include <stdlib.h>
4465#include <stdarg.h>
4466#include <string.h>
4467#include <float.h>
4468
4469int
4470main ()
4471{
4472
4473  ;
4474  return 0;
4475}
4476_ACEOF
4477if ac_fn_c_try_compile "$LINENO"; then :
4478  ac_cv_header_stdc=yes
4479else
4480  ac_cv_header_stdc=no
4481fi
4482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483
4484if test $ac_cv_header_stdc = yes; then
4485  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487/* end confdefs.h.  */
4488#include <string.h>
4489
4490_ACEOF
4491if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4492  $EGREP "memchr" >/dev/null 2>&1; then :
4493
4494else
4495  ac_cv_header_stdc=no
4496fi
4497rm -f conftest*
4498
4499fi
4500
4501if test $ac_cv_header_stdc = yes; then
4502  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504/* end confdefs.h.  */
4505#include <stdlib.h>
4506
4507_ACEOF
4508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4509  $EGREP "free" >/dev/null 2>&1; then :
4510
4511else
4512  ac_cv_header_stdc=no
4513fi
4514rm -f conftest*
4515
4516fi
4517
4518if test $ac_cv_header_stdc = yes; then
4519  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4520  if test "$cross_compiling" = yes; then :
4521  :
4522else
4523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524/* end confdefs.h.  */
4525#include <ctype.h>
4526#include <stdlib.h>
4527#if ((' ' & 0x0FF) == 0x020)
4528# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4529# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4530#else
4531# define ISLOWER(c) \
4532		   (('a' <= (c) && (c) <= 'i') \
4533		     || ('j' <= (c) && (c) <= 'r') \
4534		     || ('s' <= (c) && (c) <= 'z'))
4535# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4536#endif
4537
4538#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4539int
4540main ()
4541{
4542  int i;
4543  for (i = 0; i < 256; i++)
4544    if (XOR (islower (i), ISLOWER (i))
4545	|| toupper (i) != TOUPPER (i))
4546      return 2;
4547  return 0;
4548}
4549_ACEOF
4550if ac_fn_c_try_run "$LINENO"; then :
4551
4552else
4553  ac_cv_header_stdc=no
4554fi
4555rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4556  conftest.$ac_objext conftest.beam conftest.$ac_ext
4557fi
4558
4559fi
4560fi
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4562$as_echo "$ac_cv_header_stdc" >&6; }
4563if test $ac_cv_header_stdc = yes; then
4564
4565$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4566
4567fi
4568
4569# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4570for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4571		  inttypes.h stdint.h unistd.h
4572do :
4573  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4574ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4575"
4576if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4577  cat >>confdefs.h <<_ACEOF
4578#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4579_ACEOF
4580
4581fi
4582
4583done
4584
4585
4586
4587
4588
4589
4590ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4591if test "x$ac_cv_have_decl___clang__" = xyes; then :
4592  CLANGCC="yes"
4593else
4594  CLANGCC="no"
4595fi
4596
4597ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4598if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4599  INTELCC="yes"
4600else
4601  INTELCC="no"
4602fi
4603
4604ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4605if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4606  SUNCC="yes"
4607else
4608  SUNCC="no"
4609fi
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4620	if test -n "$ac_tool_prefix"; then
4621  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4622set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4624$as_echo_n "checking for $ac_word... " >&6; }
4625if ${ac_cv_path_PKG_CONFIG+:} false; then :
4626  $as_echo_n "(cached) " >&6
4627else
4628  case $PKG_CONFIG in
4629  [\\/]* | ?:[\\/]*)
4630  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4631  ;;
4632  *)
4633  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634for as_dir in $PATH
4635do
4636  IFS=$as_save_IFS
4637  test -z "$as_dir" && as_dir=.
4638    for ac_exec_ext in '' $ac_executable_extensions; do
4639  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4640    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4642    break 2
4643  fi
4644done
4645  done
4646IFS=$as_save_IFS
4647
4648  ;;
4649esac
4650fi
4651PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4652if test -n "$PKG_CONFIG"; then
4653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4654$as_echo "$PKG_CONFIG" >&6; }
4655else
4656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657$as_echo "no" >&6; }
4658fi
4659
4660
4661fi
4662if test -z "$ac_cv_path_PKG_CONFIG"; then
4663  ac_pt_PKG_CONFIG=$PKG_CONFIG
4664  # Extract the first word of "pkg-config", so it can be a program name with args.
4665set dummy pkg-config; ac_word=$2
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4667$as_echo_n "checking for $ac_word... " >&6; }
4668if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4669  $as_echo_n "(cached) " >&6
4670else
4671  case $ac_pt_PKG_CONFIG in
4672  [\\/]* | ?:[\\/]*)
4673  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4674  ;;
4675  *)
4676  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677for as_dir in $PATH
4678do
4679  IFS=$as_save_IFS
4680  test -z "$as_dir" && as_dir=.
4681    for ac_exec_ext in '' $ac_executable_extensions; do
4682  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4683    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4684    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4685    break 2
4686  fi
4687done
4688  done
4689IFS=$as_save_IFS
4690
4691  ;;
4692esac
4693fi
4694ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4695if test -n "$ac_pt_PKG_CONFIG"; then
4696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4697$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4698else
4699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4700$as_echo "no" >&6; }
4701fi
4702
4703  if test "x$ac_pt_PKG_CONFIG" = x; then
4704    PKG_CONFIG=""
4705  else
4706    case $cross_compiling:$ac_tool_warned in
4707yes:)
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4710ac_tool_warned=yes ;;
4711esac
4712    PKG_CONFIG=$ac_pt_PKG_CONFIG
4713  fi
4714else
4715  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4716fi
4717
4718fi
4719if test -n "$PKG_CONFIG"; then
4720	_pkg_min_version=0.9.0
4721	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4722$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4723	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4724		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4725$as_echo "yes" >&6; }
4726	else
4727		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728$as_echo "no" >&6; }
4729		PKG_CONFIG=""
4730	fi
4731fi
4732# Make sure we can run config.sub.
4733$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4734  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4735
4736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4737$as_echo_n "checking build system type... " >&6; }
4738if ${ac_cv_build+:} false; then :
4739  $as_echo_n "(cached) " >&6
4740else
4741  ac_build_alias=$build_alias
4742test "x$ac_build_alias" = x &&
4743  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4744test "x$ac_build_alias" = x &&
4745  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4746ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4747  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4748
4749fi
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4751$as_echo "$ac_cv_build" >&6; }
4752case $ac_cv_build in
4753*-*-*) ;;
4754*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4755esac
4756build=$ac_cv_build
4757ac_save_IFS=$IFS; IFS='-'
4758set x $ac_cv_build
4759shift
4760build_cpu=$1
4761build_vendor=$2
4762shift; shift
4763# Remember, the first character of IFS is used to create $*,
4764# except with old shells:
4765build_os=$*
4766IFS=$ac_save_IFS
4767case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4768
4769
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4771$as_echo_n "checking host system type... " >&6; }
4772if ${ac_cv_host+:} false; then :
4773  $as_echo_n "(cached) " >&6
4774else
4775  if test "x$host_alias" = x; then
4776  ac_cv_host=$ac_cv_build
4777else
4778  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4779    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4780fi
4781
4782fi
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4784$as_echo "$ac_cv_host" >&6; }
4785case $ac_cv_host in
4786*-*-*) ;;
4787*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4788esac
4789host=$ac_cv_host
4790ac_save_IFS=$IFS; IFS='-'
4791set x $ac_cv_host
4792shift
4793host_cpu=$1
4794host_vendor=$2
4795shift; shift
4796# Remember, the first character of IFS is used to create $*,
4797# except with old shells:
4798host_os=$*
4799IFS=$ac_save_IFS
4800case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4801
4802
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4804$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4805if ${ac_cv_path_SED+:} false; then :
4806  $as_echo_n "(cached) " >&6
4807else
4808            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4809     for ac_i in 1 2 3 4 5 6 7; do
4810       ac_script="$ac_script$as_nl$ac_script"
4811     done
4812     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4813     { ac_script=; unset ac_script;}
4814     if test -z "$SED"; then
4815  ac_path_SED_found=false
4816  # Loop through the user's path and test for each of PROGNAME-LIST
4817  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818for as_dir in $PATH
4819do
4820  IFS=$as_save_IFS
4821  test -z "$as_dir" && as_dir=.
4822    for ac_prog in sed gsed; do
4823    for ac_exec_ext in '' $ac_executable_extensions; do
4824      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4825      as_fn_executable_p "$ac_path_SED" || continue
4826# Check for GNU ac_path_SED and select it if it is found.
4827  # Check for GNU $ac_path_SED
4828case `"$ac_path_SED" --version 2>&1` in
4829*GNU*)
4830  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4831*)
4832  ac_count=0
4833  $as_echo_n 0123456789 >"conftest.in"
4834  while :
4835  do
4836    cat "conftest.in" "conftest.in" >"conftest.tmp"
4837    mv "conftest.tmp" "conftest.in"
4838    cp "conftest.in" "conftest.nl"
4839    $as_echo '' >> "conftest.nl"
4840    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4841    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4842    as_fn_arith $ac_count + 1 && ac_count=$as_val
4843    if test $ac_count -gt ${ac_path_SED_max-0}; then
4844      # Best one so far, save it but keep looking for a better one
4845      ac_cv_path_SED="$ac_path_SED"
4846      ac_path_SED_max=$ac_count
4847    fi
4848    # 10*(2^10) chars as input seems more than enough
4849    test $ac_count -gt 10 && break
4850  done
4851  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4852esac
4853
4854      $ac_path_SED_found && break 3
4855    done
4856  done
4857  done
4858IFS=$as_save_IFS
4859  if test -z "$ac_cv_path_SED"; then
4860    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4861  fi
4862else
4863  ac_cv_path_SED=$SED
4864fi
4865
4866fi
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4868$as_echo "$ac_cv_path_SED" >&6; }
4869 SED="$ac_cv_path_SED"
4870  rm -f conftest.sed
4871
4872
4873
4874
4875
4876
4877# Check whether --enable-selective-werror was given.
4878if test "${enable_selective_werror+set}" = set; then :
4879  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4880else
4881  SELECTIVE_WERROR=yes
4882fi
4883
4884
4885
4886
4887
4888# -v is too short to test reliably with XORG_TESTSET_CFLAG
4889if test "x$SUNCC" = "xyes"; then
4890    BASE_CFLAGS="-v"
4891else
4892    BASE_CFLAGS=""
4893fi
4894
4895# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909xorg_testset_save_CFLAGS="$CFLAGS"
4910
4911if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4912	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4913	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4914$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4915if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4916  $as_echo_n "(cached) " >&6
4917else
4918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4919/* end confdefs.h.  */
4920int i;
4921_ACEOF
4922if ac_fn_c_try_compile "$LINENO"; then :
4923  xorg_cv_cc_flag_unknown_warning_option=yes
4924else
4925  xorg_cv_cc_flag_unknown_warning_option=no
4926fi
4927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4928fi
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4930$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4931	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4932	CFLAGS="$xorg_testset_save_CFLAGS"
4933fi
4934
4935if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4936	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4937		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4938	fi
4939	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4940	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4941$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4942if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4943  $as_echo_n "(cached) " >&6
4944else
4945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946/* end confdefs.h.  */
4947int i;
4948_ACEOF
4949if ac_fn_c_try_compile "$LINENO"; then :
4950  xorg_cv_cc_flag_unused_command_line_argument=yes
4951else
4952  xorg_cv_cc_flag_unused_command_line_argument=no
4953fi
4954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955fi
4956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4957$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4958	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4959	CFLAGS="$xorg_testset_save_CFLAGS"
4960fi
4961
4962found="no"
4963
4964	if test $found = "no" ; then
4965		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4966			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4967		fi
4968
4969		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4970			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4971		fi
4972
4973		CFLAGS="$CFLAGS -Wall"
4974
4975		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4976$as_echo_n "checking if $CC supports -Wall... " >&6; }
4977		cacheid=xorg_cv_cc_flag__Wall
4978		if eval \${$cacheid+:} false; then :
4979  $as_echo_n "(cached) " >&6
4980else
4981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982/* end confdefs.h.  */
4983int i;
4984int
4985main ()
4986{
4987
4988  ;
4989  return 0;
4990}
4991_ACEOF
4992if ac_fn_c_try_link "$LINENO"; then :
4993  eval $cacheid=yes
4994else
4995  eval $cacheid=no
4996fi
4997rm -f core conftest.err conftest.$ac_objext \
4998    conftest$ac_exeext conftest.$ac_ext
4999fi
5000
5001
5002		CFLAGS="$xorg_testset_save_CFLAGS"
5003
5004		eval supported=\$$cacheid
5005		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5006$as_echo "$supported" >&6; }
5007		if test "$supported" = "yes" ; then
5008			BASE_CFLAGS="$BASE_CFLAGS -Wall"
5009			found="yes"
5010		fi
5011	fi
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027xorg_testset_save_CFLAGS="$CFLAGS"
5028
5029if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5030	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5031	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5032$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5033if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5034  $as_echo_n "(cached) " >&6
5035else
5036  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037/* end confdefs.h.  */
5038int i;
5039_ACEOF
5040if ac_fn_c_try_compile "$LINENO"; then :
5041  xorg_cv_cc_flag_unknown_warning_option=yes
5042else
5043  xorg_cv_cc_flag_unknown_warning_option=no
5044fi
5045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5046fi
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5048$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5049	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5050	CFLAGS="$xorg_testset_save_CFLAGS"
5051fi
5052
5053if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5054	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5055		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5056	fi
5057	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5058	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5059$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5060if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5061  $as_echo_n "(cached) " >&6
5062else
5063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5064/* end confdefs.h.  */
5065int i;
5066_ACEOF
5067if ac_fn_c_try_compile "$LINENO"; then :
5068  xorg_cv_cc_flag_unused_command_line_argument=yes
5069else
5070  xorg_cv_cc_flag_unused_command_line_argument=no
5071fi
5072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073fi
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5075$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5076	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5077	CFLAGS="$xorg_testset_save_CFLAGS"
5078fi
5079
5080found="no"
5081
5082	if test $found = "no" ; then
5083		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5084			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5085		fi
5086
5087		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5088			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5089		fi
5090
5091		CFLAGS="$CFLAGS -Wpointer-arith"
5092
5093		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5094$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
5095		cacheid=xorg_cv_cc_flag__Wpointer_arith
5096		if eval \${$cacheid+:} false; then :
5097  $as_echo_n "(cached) " >&6
5098else
5099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5100/* end confdefs.h.  */
5101int i;
5102int
5103main ()
5104{
5105
5106  ;
5107  return 0;
5108}
5109_ACEOF
5110if ac_fn_c_try_link "$LINENO"; then :
5111  eval $cacheid=yes
5112else
5113  eval $cacheid=no
5114fi
5115rm -f core conftest.err conftest.$ac_objext \
5116    conftest$ac_exeext conftest.$ac_ext
5117fi
5118
5119
5120		CFLAGS="$xorg_testset_save_CFLAGS"
5121
5122		eval supported=\$$cacheid
5123		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5124$as_echo "$supported" >&6; }
5125		if test "$supported" = "yes" ; then
5126			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5127			found="yes"
5128		fi
5129	fi
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145xorg_testset_save_CFLAGS="$CFLAGS"
5146
5147if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5148	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5149	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5150$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5151if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5152  $as_echo_n "(cached) " >&6
5153else
5154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155/* end confdefs.h.  */
5156int i;
5157_ACEOF
5158if ac_fn_c_try_compile "$LINENO"; then :
5159  xorg_cv_cc_flag_unknown_warning_option=yes
5160else
5161  xorg_cv_cc_flag_unknown_warning_option=no
5162fi
5163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5164fi
5165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5166$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5167	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5168	CFLAGS="$xorg_testset_save_CFLAGS"
5169fi
5170
5171if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5172	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5173		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5174	fi
5175	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5176	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5177$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5178if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5179  $as_echo_n "(cached) " >&6
5180else
5181  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5182/* end confdefs.h.  */
5183int i;
5184_ACEOF
5185if ac_fn_c_try_compile "$LINENO"; then :
5186  xorg_cv_cc_flag_unused_command_line_argument=yes
5187else
5188  xorg_cv_cc_flag_unused_command_line_argument=no
5189fi
5190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5191fi
5192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5193$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5194	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5195	CFLAGS="$xorg_testset_save_CFLAGS"
5196fi
5197
5198found="no"
5199
5200	if test $found = "no" ; then
5201		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5202			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5203		fi
5204
5205		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5206			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5207		fi
5208
5209		CFLAGS="$CFLAGS -Wmissing-declarations"
5210
5211		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5212$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5213		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5214		if eval \${$cacheid+:} false; then :
5215  $as_echo_n "(cached) " >&6
5216else
5217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218/* end confdefs.h.  */
5219int i;
5220int
5221main ()
5222{
5223
5224  ;
5225  return 0;
5226}
5227_ACEOF
5228if ac_fn_c_try_link "$LINENO"; then :
5229  eval $cacheid=yes
5230else
5231  eval $cacheid=no
5232fi
5233rm -f core conftest.err conftest.$ac_objext \
5234    conftest$ac_exeext conftest.$ac_ext
5235fi
5236
5237
5238		CFLAGS="$xorg_testset_save_CFLAGS"
5239
5240		eval supported=\$$cacheid
5241		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5242$as_echo "$supported" >&6; }
5243		if test "$supported" = "yes" ; then
5244			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5245			found="yes"
5246		fi
5247	fi
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263xorg_testset_save_CFLAGS="$CFLAGS"
5264
5265if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5266	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5267	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5268$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5269if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5270  $as_echo_n "(cached) " >&6
5271else
5272  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273/* end confdefs.h.  */
5274int i;
5275_ACEOF
5276if ac_fn_c_try_compile "$LINENO"; then :
5277  xorg_cv_cc_flag_unknown_warning_option=yes
5278else
5279  xorg_cv_cc_flag_unknown_warning_option=no
5280fi
5281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282fi
5283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5284$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5285	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5286	CFLAGS="$xorg_testset_save_CFLAGS"
5287fi
5288
5289if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5290	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5291		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5292	fi
5293	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5294	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5295$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5296if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5297  $as_echo_n "(cached) " >&6
5298else
5299  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300/* end confdefs.h.  */
5301int i;
5302_ACEOF
5303if ac_fn_c_try_compile "$LINENO"; then :
5304  xorg_cv_cc_flag_unused_command_line_argument=yes
5305else
5306  xorg_cv_cc_flag_unused_command_line_argument=no
5307fi
5308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5309fi
5310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5311$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5312	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5313	CFLAGS="$xorg_testset_save_CFLAGS"
5314fi
5315
5316found="no"
5317
5318	if test $found = "no" ; then
5319		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5320			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5321		fi
5322
5323		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5324			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5325		fi
5326
5327		CFLAGS="$CFLAGS -Wformat=2"
5328
5329		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5330$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5331		cacheid=xorg_cv_cc_flag__Wformat_2
5332		if eval \${$cacheid+:} false; then :
5333  $as_echo_n "(cached) " >&6
5334else
5335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336/* end confdefs.h.  */
5337int i;
5338int
5339main ()
5340{
5341
5342  ;
5343  return 0;
5344}
5345_ACEOF
5346if ac_fn_c_try_link "$LINENO"; then :
5347  eval $cacheid=yes
5348else
5349  eval $cacheid=no
5350fi
5351rm -f core conftest.err conftest.$ac_objext \
5352    conftest$ac_exeext conftest.$ac_ext
5353fi
5354
5355
5356		CFLAGS="$xorg_testset_save_CFLAGS"
5357
5358		eval supported=\$$cacheid
5359		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5360$as_echo "$supported" >&6; }
5361		if test "$supported" = "yes" ; then
5362			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5363			found="yes"
5364		fi
5365	fi
5366
5367	if test $found = "no" ; then
5368		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5369			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5370		fi
5371
5372		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5373			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5374		fi
5375
5376		CFLAGS="$CFLAGS -Wformat"
5377
5378		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5379$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5380		cacheid=xorg_cv_cc_flag__Wformat
5381		if eval \${$cacheid+:} false; then :
5382  $as_echo_n "(cached) " >&6
5383else
5384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385/* end confdefs.h.  */
5386int i;
5387int
5388main ()
5389{
5390
5391  ;
5392  return 0;
5393}
5394_ACEOF
5395if ac_fn_c_try_link "$LINENO"; then :
5396  eval $cacheid=yes
5397else
5398  eval $cacheid=no
5399fi
5400rm -f core conftest.err conftest.$ac_objext \
5401    conftest$ac_exeext conftest.$ac_ext
5402fi
5403
5404
5405		CFLAGS="$xorg_testset_save_CFLAGS"
5406
5407		eval supported=\$$cacheid
5408		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5409$as_echo "$supported" >&6; }
5410		if test "$supported" = "yes" ; then
5411			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5412			found="yes"
5413		fi
5414	fi
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432xorg_testset_save_CFLAGS="$CFLAGS"
5433
5434if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5435	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5436	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5437$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5438if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5439  $as_echo_n "(cached) " >&6
5440else
5441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5442/* end confdefs.h.  */
5443int i;
5444_ACEOF
5445if ac_fn_c_try_compile "$LINENO"; then :
5446  xorg_cv_cc_flag_unknown_warning_option=yes
5447else
5448  xorg_cv_cc_flag_unknown_warning_option=no
5449fi
5450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5451fi
5452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5453$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5454	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5455	CFLAGS="$xorg_testset_save_CFLAGS"
5456fi
5457
5458if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5459	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5460		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5461	fi
5462	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5463	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5464$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5465if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5466  $as_echo_n "(cached) " >&6
5467else
5468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469/* end confdefs.h.  */
5470int i;
5471_ACEOF
5472if ac_fn_c_try_compile "$LINENO"; then :
5473  xorg_cv_cc_flag_unused_command_line_argument=yes
5474else
5475  xorg_cv_cc_flag_unused_command_line_argument=no
5476fi
5477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5478fi
5479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5480$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5481	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5482	CFLAGS="$xorg_testset_save_CFLAGS"
5483fi
5484
5485found="no"
5486
5487	if test $found = "no" ; then
5488		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5489			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5490		fi
5491
5492		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5493			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5494		fi
5495
5496		CFLAGS="$CFLAGS -Wstrict-prototypes"
5497
5498		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5499$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5500		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5501		if eval \${$cacheid+:} false; then :
5502  $as_echo_n "(cached) " >&6
5503else
5504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505/* end confdefs.h.  */
5506int i;
5507int
5508main ()
5509{
5510
5511  ;
5512  return 0;
5513}
5514_ACEOF
5515if ac_fn_c_try_link "$LINENO"; then :
5516  eval $cacheid=yes
5517else
5518  eval $cacheid=no
5519fi
5520rm -f core conftest.err conftest.$ac_objext \
5521    conftest$ac_exeext conftest.$ac_ext
5522fi
5523
5524
5525		CFLAGS="$xorg_testset_save_CFLAGS"
5526
5527		eval supported=\$$cacheid
5528		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5529$as_echo "$supported" >&6; }
5530		if test "$supported" = "yes" ; then
5531			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5532			found="yes"
5533		fi
5534	fi
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550xorg_testset_save_CFLAGS="$CFLAGS"
5551
5552if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5553	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5554	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5555$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5556if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5557  $as_echo_n "(cached) " >&6
5558else
5559  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5560/* end confdefs.h.  */
5561int i;
5562_ACEOF
5563if ac_fn_c_try_compile "$LINENO"; then :
5564  xorg_cv_cc_flag_unknown_warning_option=yes
5565else
5566  xorg_cv_cc_flag_unknown_warning_option=no
5567fi
5568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5569fi
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5571$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5572	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5573	CFLAGS="$xorg_testset_save_CFLAGS"
5574fi
5575
5576if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5577	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5578		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5579	fi
5580	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5581	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5582$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5583if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5584  $as_echo_n "(cached) " >&6
5585else
5586  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587/* end confdefs.h.  */
5588int i;
5589_ACEOF
5590if ac_fn_c_try_compile "$LINENO"; then :
5591  xorg_cv_cc_flag_unused_command_line_argument=yes
5592else
5593  xorg_cv_cc_flag_unused_command_line_argument=no
5594fi
5595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596fi
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5598$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5599	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5600	CFLAGS="$xorg_testset_save_CFLAGS"
5601fi
5602
5603found="no"
5604
5605	if test $found = "no" ; then
5606		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5607			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5608		fi
5609
5610		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5611			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5612		fi
5613
5614		CFLAGS="$CFLAGS -Wmissing-prototypes"
5615
5616		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5617$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5618		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5619		if eval \${$cacheid+:} false; then :
5620  $as_echo_n "(cached) " >&6
5621else
5622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623/* end confdefs.h.  */
5624int i;
5625int
5626main ()
5627{
5628
5629  ;
5630  return 0;
5631}
5632_ACEOF
5633if ac_fn_c_try_link "$LINENO"; then :
5634  eval $cacheid=yes
5635else
5636  eval $cacheid=no
5637fi
5638rm -f core conftest.err conftest.$ac_objext \
5639    conftest$ac_exeext conftest.$ac_ext
5640fi
5641
5642
5643		CFLAGS="$xorg_testset_save_CFLAGS"
5644
5645		eval supported=\$$cacheid
5646		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5647$as_echo "$supported" >&6; }
5648		if test "$supported" = "yes" ; then
5649			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5650			found="yes"
5651		fi
5652	fi
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668xorg_testset_save_CFLAGS="$CFLAGS"
5669
5670if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5671	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5672	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5673$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5674if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5675  $as_echo_n "(cached) " >&6
5676else
5677  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678/* end confdefs.h.  */
5679int i;
5680_ACEOF
5681if ac_fn_c_try_compile "$LINENO"; then :
5682  xorg_cv_cc_flag_unknown_warning_option=yes
5683else
5684  xorg_cv_cc_flag_unknown_warning_option=no
5685fi
5686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5687fi
5688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5689$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5690	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5691	CFLAGS="$xorg_testset_save_CFLAGS"
5692fi
5693
5694if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5695	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5696		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5697	fi
5698	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5699	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5700$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5701if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5702  $as_echo_n "(cached) " >&6
5703else
5704  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705/* end confdefs.h.  */
5706int i;
5707_ACEOF
5708if ac_fn_c_try_compile "$LINENO"; then :
5709  xorg_cv_cc_flag_unused_command_line_argument=yes
5710else
5711  xorg_cv_cc_flag_unused_command_line_argument=no
5712fi
5713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714fi
5715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5716$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5717	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5718	CFLAGS="$xorg_testset_save_CFLAGS"
5719fi
5720
5721found="no"
5722
5723	if test $found = "no" ; then
5724		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5725			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5726		fi
5727
5728		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5729			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5730		fi
5731
5732		CFLAGS="$CFLAGS -Wnested-externs"
5733
5734		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5735$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5736		cacheid=xorg_cv_cc_flag__Wnested_externs
5737		if eval \${$cacheid+:} false; then :
5738  $as_echo_n "(cached) " >&6
5739else
5740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5741/* end confdefs.h.  */
5742int i;
5743int
5744main ()
5745{
5746
5747  ;
5748  return 0;
5749}
5750_ACEOF
5751if ac_fn_c_try_link "$LINENO"; then :
5752  eval $cacheid=yes
5753else
5754  eval $cacheid=no
5755fi
5756rm -f core conftest.err conftest.$ac_objext \
5757    conftest$ac_exeext conftest.$ac_ext
5758fi
5759
5760
5761		CFLAGS="$xorg_testset_save_CFLAGS"
5762
5763		eval supported=\$$cacheid
5764		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5765$as_echo "$supported" >&6; }
5766		if test "$supported" = "yes" ; then
5767			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5768			found="yes"
5769		fi
5770	fi
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786xorg_testset_save_CFLAGS="$CFLAGS"
5787
5788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5789	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5790	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5791$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5792if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5793  $as_echo_n "(cached) " >&6
5794else
5795  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796/* end confdefs.h.  */
5797int i;
5798_ACEOF
5799if ac_fn_c_try_compile "$LINENO"; then :
5800  xorg_cv_cc_flag_unknown_warning_option=yes
5801else
5802  xorg_cv_cc_flag_unknown_warning_option=no
5803fi
5804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5805fi
5806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5807$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5808	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5809	CFLAGS="$xorg_testset_save_CFLAGS"
5810fi
5811
5812if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5813	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5814		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5815	fi
5816	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5817	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5818$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5819if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5820  $as_echo_n "(cached) " >&6
5821else
5822  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5823/* end confdefs.h.  */
5824int i;
5825_ACEOF
5826if ac_fn_c_try_compile "$LINENO"; then :
5827  xorg_cv_cc_flag_unused_command_line_argument=yes
5828else
5829  xorg_cv_cc_flag_unused_command_line_argument=no
5830fi
5831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5832fi
5833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5834$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5835	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5836	CFLAGS="$xorg_testset_save_CFLAGS"
5837fi
5838
5839found="no"
5840
5841	if test $found = "no" ; then
5842		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5843			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5844		fi
5845
5846		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5847			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5848		fi
5849
5850		CFLAGS="$CFLAGS -Wbad-function-cast"
5851
5852		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5853$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5854		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5855		if eval \${$cacheid+:} false; then :
5856  $as_echo_n "(cached) " >&6
5857else
5858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859/* end confdefs.h.  */
5860int i;
5861int
5862main ()
5863{
5864
5865  ;
5866  return 0;
5867}
5868_ACEOF
5869if ac_fn_c_try_link "$LINENO"; then :
5870  eval $cacheid=yes
5871else
5872  eval $cacheid=no
5873fi
5874rm -f core conftest.err conftest.$ac_objext \
5875    conftest$ac_exeext conftest.$ac_ext
5876fi
5877
5878
5879		CFLAGS="$xorg_testset_save_CFLAGS"
5880
5881		eval supported=\$$cacheid
5882		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5883$as_echo "$supported" >&6; }
5884		if test "$supported" = "yes" ; then
5885			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5886			found="yes"
5887		fi
5888	fi
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904xorg_testset_save_CFLAGS="$CFLAGS"
5905
5906if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5907	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5908	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5909$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5910if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5911  $as_echo_n "(cached) " >&6
5912else
5913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914/* end confdefs.h.  */
5915int i;
5916_ACEOF
5917if ac_fn_c_try_compile "$LINENO"; then :
5918  xorg_cv_cc_flag_unknown_warning_option=yes
5919else
5920  xorg_cv_cc_flag_unknown_warning_option=no
5921fi
5922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5923fi
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5925$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5926	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5927	CFLAGS="$xorg_testset_save_CFLAGS"
5928fi
5929
5930if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5931	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5932		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5933	fi
5934	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5935	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5936$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5937if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5938  $as_echo_n "(cached) " >&6
5939else
5940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941/* end confdefs.h.  */
5942int i;
5943_ACEOF
5944if ac_fn_c_try_compile "$LINENO"; then :
5945  xorg_cv_cc_flag_unused_command_line_argument=yes
5946else
5947  xorg_cv_cc_flag_unused_command_line_argument=no
5948fi
5949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5950fi
5951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5952$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5953	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5954	CFLAGS="$xorg_testset_save_CFLAGS"
5955fi
5956
5957found="no"
5958
5959	if test $found = "no" ; then
5960		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5961			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5962		fi
5963
5964		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5965			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5966		fi
5967
5968		CFLAGS="$CFLAGS -Wold-style-definition"
5969
5970		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5971$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5972		cacheid=xorg_cv_cc_flag__Wold_style_definition
5973		if eval \${$cacheid+:} false; then :
5974  $as_echo_n "(cached) " >&6
5975else
5976  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977/* end confdefs.h.  */
5978int i;
5979int
5980main ()
5981{
5982
5983  ;
5984  return 0;
5985}
5986_ACEOF
5987if ac_fn_c_try_link "$LINENO"; then :
5988  eval $cacheid=yes
5989else
5990  eval $cacheid=no
5991fi
5992rm -f core conftest.err conftest.$ac_objext \
5993    conftest$ac_exeext conftest.$ac_ext
5994fi
5995
5996
5997		CFLAGS="$xorg_testset_save_CFLAGS"
5998
5999		eval supported=\$$cacheid
6000		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6001$as_echo "$supported" >&6; }
6002		if test "$supported" = "yes" ; then
6003			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6004			found="yes"
6005		fi
6006	fi
6007
6008	if test $found = "no" ; then
6009		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6010			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6011		fi
6012
6013		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6014			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6015		fi
6016
6017		CFLAGS="$CFLAGS -fd"
6018
6019		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6020$as_echo_n "checking if $CC supports -fd... " >&6; }
6021		cacheid=xorg_cv_cc_flag__fd
6022		if eval \${$cacheid+:} false; then :
6023  $as_echo_n "(cached) " >&6
6024else
6025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026/* end confdefs.h.  */
6027int i;
6028int
6029main ()
6030{
6031
6032  ;
6033  return 0;
6034}
6035_ACEOF
6036if ac_fn_c_try_link "$LINENO"; then :
6037  eval $cacheid=yes
6038else
6039  eval $cacheid=no
6040fi
6041rm -f core conftest.err conftest.$ac_objext \
6042    conftest$ac_exeext conftest.$ac_ext
6043fi
6044
6045
6046		CFLAGS="$xorg_testset_save_CFLAGS"
6047
6048		eval supported=\$$cacheid
6049		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6050$as_echo "$supported" >&6; }
6051		if test "$supported" = "yes" ; then
6052			BASE_CFLAGS="$BASE_CFLAGS -fd"
6053			found="yes"
6054		fi
6055	fi
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071xorg_testset_save_CFLAGS="$CFLAGS"
6072
6073if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6074	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6075	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6076$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6077if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6078  $as_echo_n "(cached) " >&6
6079else
6080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081/* end confdefs.h.  */
6082int i;
6083_ACEOF
6084if ac_fn_c_try_compile "$LINENO"; then :
6085  xorg_cv_cc_flag_unknown_warning_option=yes
6086else
6087  xorg_cv_cc_flag_unknown_warning_option=no
6088fi
6089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6090fi
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6092$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6093	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6094	CFLAGS="$xorg_testset_save_CFLAGS"
6095fi
6096
6097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6098	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6099		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6100	fi
6101	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6102	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6103$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6104if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6105  $as_echo_n "(cached) " >&6
6106else
6107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108/* end confdefs.h.  */
6109int i;
6110_ACEOF
6111if ac_fn_c_try_compile "$LINENO"; then :
6112  xorg_cv_cc_flag_unused_command_line_argument=yes
6113else
6114  xorg_cv_cc_flag_unused_command_line_argument=no
6115fi
6116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6117fi
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6119$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6120	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6121	CFLAGS="$xorg_testset_save_CFLAGS"
6122fi
6123
6124found="no"
6125
6126	if test $found = "no" ; then
6127		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6128			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6129		fi
6130
6131		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6132			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6133		fi
6134
6135		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6136
6137		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6138$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6139		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6140		if eval \${$cacheid+:} false; then :
6141  $as_echo_n "(cached) " >&6
6142else
6143  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144/* end confdefs.h.  */
6145int i;
6146int
6147main ()
6148{
6149
6150  ;
6151  return 0;
6152}
6153_ACEOF
6154if ac_fn_c_try_link "$LINENO"; then :
6155  eval $cacheid=yes
6156else
6157  eval $cacheid=no
6158fi
6159rm -f core conftest.err conftest.$ac_objext \
6160    conftest$ac_exeext conftest.$ac_ext
6161fi
6162
6163
6164		CFLAGS="$xorg_testset_save_CFLAGS"
6165
6166		eval supported=\$$cacheid
6167		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6168$as_echo "$supported" >&6; }
6169		if test "$supported" = "yes" ; then
6170			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6171			found="yes"
6172		fi
6173	fi
6174
6175
6176
6177
6178
6179# This chunk adds additional warnings that could catch undesired effects.
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193xorg_testset_save_CFLAGS="$CFLAGS"
6194
6195if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6196	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6197	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6198$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6199if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6200  $as_echo_n "(cached) " >&6
6201else
6202  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6203/* end confdefs.h.  */
6204int i;
6205_ACEOF
6206if ac_fn_c_try_compile "$LINENO"; then :
6207  xorg_cv_cc_flag_unknown_warning_option=yes
6208else
6209  xorg_cv_cc_flag_unknown_warning_option=no
6210fi
6211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6212fi
6213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6214$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6215	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6216	CFLAGS="$xorg_testset_save_CFLAGS"
6217fi
6218
6219if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6220	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6221		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6222	fi
6223	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6224	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6225$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6226if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6227  $as_echo_n "(cached) " >&6
6228else
6229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230/* end confdefs.h.  */
6231int i;
6232_ACEOF
6233if ac_fn_c_try_compile "$LINENO"; then :
6234  xorg_cv_cc_flag_unused_command_line_argument=yes
6235else
6236  xorg_cv_cc_flag_unused_command_line_argument=no
6237fi
6238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6239fi
6240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6241$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6242	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6243	CFLAGS="$xorg_testset_save_CFLAGS"
6244fi
6245
6246found="no"
6247
6248	if test $found = "no" ; then
6249		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6250			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6251		fi
6252
6253		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6254			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6255		fi
6256
6257		CFLAGS="$CFLAGS -Wunused"
6258
6259		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6260$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6261		cacheid=xorg_cv_cc_flag__Wunused
6262		if eval \${$cacheid+:} false; then :
6263  $as_echo_n "(cached) " >&6
6264else
6265  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6266/* end confdefs.h.  */
6267int i;
6268int
6269main ()
6270{
6271
6272  ;
6273  return 0;
6274}
6275_ACEOF
6276if ac_fn_c_try_link "$LINENO"; then :
6277  eval $cacheid=yes
6278else
6279  eval $cacheid=no
6280fi
6281rm -f core conftest.err conftest.$ac_objext \
6282    conftest$ac_exeext conftest.$ac_ext
6283fi
6284
6285
6286		CFLAGS="$xorg_testset_save_CFLAGS"
6287
6288		eval supported=\$$cacheid
6289		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6290$as_echo "$supported" >&6; }
6291		if test "$supported" = "yes" ; then
6292			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6293			found="yes"
6294		fi
6295	fi
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311xorg_testset_save_CFLAGS="$CFLAGS"
6312
6313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6314	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6315	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6316$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6317if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6318  $as_echo_n "(cached) " >&6
6319else
6320  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321/* end confdefs.h.  */
6322int i;
6323_ACEOF
6324if ac_fn_c_try_compile "$LINENO"; then :
6325  xorg_cv_cc_flag_unknown_warning_option=yes
6326else
6327  xorg_cv_cc_flag_unknown_warning_option=no
6328fi
6329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330fi
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6332$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6333	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6334	CFLAGS="$xorg_testset_save_CFLAGS"
6335fi
6336
6337if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6338	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6339		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6340	fi
6341	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6342	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6343$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6344if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6345  $as_echo_n "(cached) " >&6
6346else
6347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348/* end confdefs.h.  */
6349int i;
6350_ACEOF
6351if ac_fn_c_try_compile "$LINENO"; then :
6352  xorg_cv_cc_flag_unused_command_line_argument=yes
6353else
6354  xorg_cv_cc_flag_unused_command_line_argument=no
6355fi
6356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6357fi
6358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6359$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6360	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6361	CFLAGS="$xorg_testset_save_CFLAGS"
6362fi
6363
6364found="no"
6365
6366	if test $found = "no" ; then
6367		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6368			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6369		fi
6370
6371		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6372			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6373		fi
6374
6375		CFLAGS="$CFLAGS -Wuninitialized"
6376
6377		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6378$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6379		cacheid=xorg_cv_cc_flag__Wuninitialized
6380		if eval \${$cacheid+:} false; then :
6381  $as_echo_n "(cached) " >&6
6382else
6383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384/* end confdefs.h.  */
6385int i;
6386int
6387main ()
6388{
6389
6390  ;
6391  return 0;
6392}
6393_ACEOF
6394if ac_fn_c_try_link "$LINENO"; then :
6395  eval $cacheid=yes
6396else
6397  eval $cacheid=no
6398fi
6399rm -f core conftest.err conftest.$ac_objext \
6400    conftest$ac_exeext conftest.$ac_ext
6401fi
6402
6403
6404		CFLAGS="$xorg_testset_save_CFLAGS"
6405
6406		eval supported=\$$cacheid
6407		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6408$as_echo "$supported" >&6; }
6409		if test "$supported" = "yes" ; then
6410			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6411			found="yes"
6412		fi
6413	fi
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429xorg_testset_save_CFLAGS="$CFLAGS"
6430
6431if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6432	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6433	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6434$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6435if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6436  $as_echo_n "(cached) " >&6
6437else
6438  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439/* end confdefs.h.  */
6440int i;
6441_ACEOF
6442if ac_fn_c_try_compile "$LINENO"; then :
6443  xorg_cv_cc_flag_unknown_warning_option=yes
6444else
6445  xorg_cv_cc_flag_unknown_warning_option=no
6446fi
6447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448fi
6449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6450$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6451	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6452	CFLAGS="$xorg_testset_save_CFLAGS"
6453fi
6454
6455if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6456	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6457		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6458	fi
6459	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6460	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6461$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6462if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6463  $as_echo_n "(cached) " >&6
6464else
6465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466/* end confdefs.h.  */
6467int i;
6468_ACEOF
6469if ac_fn_c_try_compile "$LINENO"; then :
6470  xorg_cv_cc_flag_unused_command_line_argument=yes
6471else
6472  xorg_cv_cc_flag_unused_command_line_argument=no
6473fi
6474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6475fi
6476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6477$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6478	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6479	CFLAGS="$xorg_testset_save_CFLAGS"
6480fi
6481
6482found="no"
6483
6484	if test $found = "no" ; then
6485		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6486			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6487		fi
6488
6489		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6490			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6491		fi
6492
6493		CFLAGS="$CFLAGS -Wshadow"
6494
6495		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6496$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6497		cacheid=xorg_cv_cc_flag__Wshadow
6498		if eval \${$cacheid+:} false; then :
6499  $as_echo_n "(cached) " >&6
6500else
6501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502/* end confdefs.h.  */
6503int i;
6504int
6505main ()
6506{
6507
6508  ;
6509  return 0;
6510}
6511_ACEOF
6512if ac_fn_c_try_link "$LINENO"; then :
6513  eval $cacheid=yes
6514else
6515  eval $cacheid=no
6516fi
6517rm -f core conftest.err conftest.$ac_objext \
6518    conftest$ac_exeext conftest.$ac_ext
6519fi
6520
6521
6522		CFLAGS="$xorg_testset_save_CFLAGS"
6523
6524		eval supported=\$$cacheid
6525		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6526$as_echo "$supported" >&6; }
6527		if test "$supported" = "yes" ; then
6528			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6529			found="yes"
6530		fi
6531	fi
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547xorg_testset_save_CFLAGS="$CFLAGS"
6548
6549if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6550	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6551	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6552$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6553if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6554  $as_echo_n "(cached) " >&6
6555else
6556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557/* end confdefs.h.  */
6558int i;
6559_ACEOF
6560if ac_fn_c_try_compile "$LINENO"; then :
6561  xorg_cv_cc_flag_unknown_warning_option=yes
6562else
6563  xorg_cv_cc_flag_unknown_warning_option=no
6564fi
6565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6566fi
6567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6568$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6569	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6570	CFLAGS="$xorg_testset_save_CFLAGS"
6571fi
6572
6573if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6574	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6575		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6576	fi
6577	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6578	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6579$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6580if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6581  $as_echo_n "(cached) " >&6
6582else
6583  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584/* end confdefs.h.  */
6585int i;
6586_ACEOF
6587if ac_fn_c_try_compile "$LINENO"; then :
6588  xorg_cv_cc_flag_unused_command_line_argument=yes
6589else
6590  xorg_cv_cc_flag_unused_command_line_argument=no
6591fi
6592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6593fi
6594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6595$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6596	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6597	CFLAGS="$xorg_testset_save_CFLAGS"
6598fi
6599
6600found="no"
6601
6602	if test $found = "no" ; then
6603		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6604			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6605		fi
6606
6607		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6608			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6609		fi
6610
6611		CFLAGS="$CFLAGS -Wmissing-noreturn"
6612
6613		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6614$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6615		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6616		if eval \${$cacheid+:} false; then :
6617  $as_echo_n "(cached) " >&6
6618else
6619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620/* end confdefs.h.  */
6621int i;
6622int
6623main ()
6624{
6625
6626  ;
6627  return 0;
6628}
6629_ACEOF
6630if ac_fn_c_try_link "$LINENO"; then :
6631  eval $cacheid=yes
6632else
6633  eval $cacheid=no
6634fi
6635rm -f core conftest.err conftest.$ac_objext \
6636    conftest$ac_exeext conftest.$ac_ext
6637fi
6638
6639
6640		CFLAGS="$xorg_testset_save_CFLAGS"
6641
6642		eval supported=\$$cacheid
6643		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6644$as_echo "$supported" >&6; }
6645		if test "$supported" = "yes" ; then
6646			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6647			found="yes"
6648		fi
6649	fi
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665xorg_testset_save_CFLAGS="$CFLAGS"
6666
6667if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6668	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6669	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6670$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6671if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6672  $as_echo_n "(cached) " >&6
6673else
6674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6675/* end confdefs.h.  */
6676int i;
6677_ACEOF
6678if ac_fn_c_try_compile "$LINENO"; then :
6679  xorg_cv_cc_flag_unknown_warning_option=yes
6680else
6681  xorg_cv_cc_flag_unknown_warning_option=no
6682fi
6683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684fi
6685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6686$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6687	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6688	CFLAGS="$xorg_testset_save_CFLAGS"
6689fi
6690
6691if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6692	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6693		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6694	fi
6695	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6696	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6697$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6698if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6699  $as_echo_n "(cached) " >&6
6700else
6701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702/* end confdefs.h.  */
6703int i;
6704_ACEOF
6705if ac_fn_c_try_compile "$LINENO"; then :
6706  xorg_cv_cc_flag_unused_command_line_argument=yes
6707else
6708  xorg_cv_cc_flag_unused_command_line_argument=no
6709fi
6710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6711fi
6712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6713$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6714	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6715	CFLAGS="$xorg_testset_save_CFLAGS"
6716fi
6717
6718found="no"
6719
6720	if test $found = "no" ; then
6721		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6722			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6723		fi
6724
6725		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6726			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6727		fi
6728
6729		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6730
6731		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6732$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6733		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6734		if eval \${$cacheid+:} false; then :
6735  $as_echo_n "(cached) " >&6
6736else
6737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6738/* end confdefs.h.  */
6739int i;
6740int
6741main ()
6742{
6743
6744  ;
6745  return 0;
6746}
6747_ACEOF
6748if ac_fn_c_try_link "$LINENO"; then :
6749  eval $cacheid=yes
6750else
6751  eval $cacheid=no
6752fi
6753rm -f core conftest.err conftest.$ac_objext \
6754    conftest$ac_exeext conftest.$ac_ext
6755fi
6756
6757
6758		CFLAGS="$xorg_testset_save_CFLAGS"
6759
6760		eval supported=\$$cacheid
6761		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6762$as_echo "$supported" >&6; }
6763		if test "$supported" = "yes" ; then
6764			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6765			found="yes"
6766		fi
6767	fi
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783xorg_testset_save_CFLAGS="$CFLAGS"
6784
6785if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6786	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6787	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6788$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6789if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6790  $as_echo_n "(cached) " >&6
6791else
6792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6793/* end confdefs.h.  */
6794int i;
6795_ACEOF
6796if ac_fn_c_try_compile "$LINENO"; then :
6797  xorg_cv_cc_flag_unknown_warning_option=yes
6798else
6799  xorg_cv_cc_flag_unknown_warning_option=no
6800fi
6801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802fi
6803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6804$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6805	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6806	CFLAGS="$xorg_testset_save_CFLAGS"
6807fi
6808
6809if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6810	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6811		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6812	fi
6813	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6814	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6815$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6816if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6817  $as_echo_n "(cached) " >&6
6818else
6819  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820/* end confdefs.h.  */
6821int i;
6822_ACEOF
6823if ac_fn_c_try_compile "$LINENO"; then :
6824  xorg_cv_cc_flag_unused_command_line_argument=yes
6825else
6826  xorg_cv_cc_flag_unused_command_line_argument=no
6827fi
6828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6829fi
6830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6831$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6832	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6833	CFLAGS="$xorg_testset_save_CFLAGS"
6834fi
6835
6836found="no"
6837
6838	if test $found = "no" ; then
6839		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6840			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6841		fi
6842
6843		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6844			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6845		fi
6846
6847		CFLAGS="$CFLAGS -Wredundant-decls"
6848
6849		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6850$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6851		cacheid=xorg_cv_cc_flag__Wredundant_decls
6852		if eval \${$cacheid+:} false; then :
6853  $as_echo_n "(cached) " >&6
6854else
6855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856/* end confdefs.h.  */
6857int i;
6858int
6859main ()
6860{
6861
6862  ;
6863  return 0;
6864}
6865_ACEOF
6866if ac_fn_c_try_link "$LINENO"; then :
6867  eval $cacheid=yes
6868else
6869  eval $cacheid=no
6870fi
6871rm -f core conftest.err conftest.$ac_objext \
6872    conftest$ac_exeext conftest.$ac_ext
6873fi
6874
6875
6876		CFLAGS="$xorg_testset_save_CFLAGS"
6877
6878		eval supported=\$$cacheid
6879		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6880$as_echo "$supported" >&6; }
6881		if test "$supported" = "yes" ; then
6882			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6883			found="yes"
6884		fi
6885	fi
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901xorg_testset_save_CFLAGS="$CFLAGS"
6902
6903if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6904	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6905	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6906$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6907if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6908  $as_echo_n "(cached) " >&6
6909else
6910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6911/* end confdefs.h.  */
6912int i;
6913_ACEOF
6914if ac_fn_c_try_compile "$LINENO"; then :
6915  xorg_cv_cc_flag_unknown_warning_option=yes
6916else
6917  xorg_cv_cc_flag_unknown_warning_option=no
6918fi
6919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6920fi
6921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6922$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6923	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6924	CFLAGS="$xorg_testset_save_CFLAGS"
6925fi
6926
6927if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6928	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6929		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6930	fi
6931	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6932	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6933$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6934if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6935  $as_echo_n "(cached) " >&6
6936else
6937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938/* end confdefs.h.  */
6939int i;
6940_ACEOF
6941if ac_fn_c_try_compile "$LINENO"; then :
6942  xorg_cv_cc_flag_unused_command_line_argument=yes
6943else
6944  xorg_cv_cc_flag_unused_command_line_argument=no
6945fi
6946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6947fi
6948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6949$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6950	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6951	CFLAGS="$xorg_testset_save_CFLAGS"
6952fi
6953
6954found="no"
6955
6956	if test $found = "no" ; then
6957		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6958			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6959		fi
6960
6961		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6962			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6963		fi
6964
6965		CFLAGS="$CFLAGS -Wlogical-op"
6966
6967		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6968$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6969		cacheid=xorg_cv_cc_flag__Wlogical_op
6970		if eval \${$cacheid+:} false; then :
6971  $as_echo_n "(cached) " >&6
6972else
6973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974/* end confdefs.h.  */
6975int i;
6976int
6977main ()
6978{
6979
6980  ;
6981  return 0;
6982}
6983_ACEOF
6984if ac_fn_c_try_link "$LINENO"; then :
6985  eval $cacheid=yes
6986else
6987  eval $cacheid=no
6988fi
6989rm -f core conftest.err conftest.$ac_objext \
6990    conftest$ac_exeext conftest.$ac_ext
6991fi
6992
6993
6994		CFLAGS="$xorg_testset_save_CFLAGS"
6995
6996		eval supported=\$$cacheid
6997		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6998$as_echo "$supported" >&6; }
6999		if test "$supported" = "yes" ; then
7000			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7001			found="yes"
7002		fi
7003	fi
7004
7005
7006
7007# These are currently disabled because they are noisy.  They will be enabled
7008# in the future once the codebase is sufficiently modernized to silence
7009# them.  For now, I don't want them to drown out the other warnings.
7010# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7011# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7012# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7013
7014# Turn some warnings into errors, so we don't accidently get successful builds
7015# when there are problems that should be fixed.
7016
7017if test "x$SELECTIVE_WERROR" = "xyes" ; then
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031xorg_testset_save_CFLAGS="$CFLAGS"
7032
7033if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7034	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7035	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7036$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7037if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7038  $as_echo_n "(cached) " >&6
7039else
7040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7041/* end confdefs.h.  */
7042int i;
7043_ACEOF
7044if ac_fn_c_try_compile "$LINENO"; then :
7045  xorg_cv_cc_flag_unknown_warning_option=yes
7046else
7047  xorg_cv_cc_flag_unknown_warning_option=no
7048fi
7049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7050fi
7051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7052$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7053	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7054	CFLAGS="$xorg_testset_save_CFLAGS"
7055fi
7056
7057if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7058	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7059		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7060	fi
7061	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7062	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7063$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7064if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7065  $as_echo_n "(cached) " >&6
7066else
7067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068/* end confdefs.h.  */
7069int i;
7070_ACEOF
7071if ac_fn_c_try_compile "$LINENO"; then :
7072  xorg_cv_cc_flag_unused_command_line_argument=yes
7073else
7074  xorg_cv_cc_flag_unused_command_line_argument=no
7075fi
7076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7077fi
7078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7079$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7080	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7081	CFLAGS="$xorg_testset_save_CFLAGS"
7082fi
7083
7084found="no"
7085
7086	if test $found = "no" ; then
7087		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7088			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7089		fi
7090
7091		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7092			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7093		fi
7094
7095		CFLAGS="$CFLAGS -Werror=implicit"
7096
7097		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7098$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
7099		cacheid=xorg_cv_cc_flag__Werror_implicit
7100		if eval \${$cacheid+:} false; then :
7101  $as_echo_n "(cached) " >&6
7102else
7103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7104/* end confdefs.h.  */
7105int i;
7106int
7107main ()
7108{
7109
7110  ;
7111  return 0;
7112}
7113_ACEOF
7114if ac_fn_c_try_link "$LINENO"; then :
7115  eval $cacheid=yes
7116else
7117  eval $cacheid=no
7118fi
7119rm -f core conftest.err conftest.$ac_objext \
7120    conftest$ac_exeext conftest.$ac_ext
7121fi
7122
7123
7124		CFLAGS="$xorg_testset_save_CFLAGS"
7125
7126		eval supported=\$$cacheid
7127		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7128$as_echo "$supported" >&6; }
7129		if test "$supported" = "yes" ; then
7130			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7131			found="yes"
7132		fi
7133	fi
7134
7135	if test $found = "no" ; then
7136		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7137			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7138		fi
7139
7140		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7141			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7142		fi
7143
7144		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7145
7146		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7147$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7148		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7149		if eval \${$cacheid+:} false; then :
7150  $as_echo_n "(cached) " >&6
7151else
7152  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7153/* end confdefs.h.  */
7154int i;
7155int
7156main ()
7157{
7158
7159  ;
7160  return 0;
7161}
7162_ACEOF
7163if ac_fn_c_try_link "$LINENO"; then :
7164  eval $cacheid=yes
7165else
7166  eval $cacheid=no
7167fi
7168rm -f core conftest.err conftest.$ac_objext \
7169    conftest$ac_exeext conftest.$ac_ext
7170fi
7171
7172
7173		CFLAGS="$xorg_testset_save_CFLAGS"
7174
7175		eval supported=\$$cacheid
7176		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7177$as_echo "$supported" >&6; }
7178		if test "$supported" = "yes" ; then
7179			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7180			found="yes"
7181		fi
7182	fi
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198xorg_testset_save_CFLAGS="$CFLAGS"
7199
7200if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7201	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7202	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7203$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7204if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7205  $as_echo_n "(cached) " >&6
7206else
7207  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208/* end confdefs.h.  */
7209int i;
7210_ACEOF
7211if ac_fn_c_try_compile "$LINENO"; then :
7212  xorg_cv_cc_flag_unknown_warning_option=yes
7213else
7214  xorg_cv_cc_flag_unknown_warning_option=no
7215fi
7216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217fi
7218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7219$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7220	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7221	CFLAGS="$xorg_testset_save_CFLAGS"
7222fi
7223
7224if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7225	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7226		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7227	fi
7228	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7229	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7230$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7231if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7232  $as_echo_n "(cached) " >&6
7233else
7234  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235/* end confdefs.h.  */
7236int i;
7237_ACEOF
7238if ac_fn_c_try_compile "$LINENO"; then :
7239  xorg_cv_cc_flag_unused_command_line_argument=yes
7240else
7241  xorg_cv_cc_flag_unused_command_line_argument=no
7242fi
7243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7244fi
7245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7246$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7247	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7248	CFLAGS="$xorg_testset_save_CFLAGS"
7249fi
7250
7251found="no"
7252
7253	if test $found = "no" ; then
7254		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7255			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7256		fi
7257
7258		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7259			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7260		fi
7261
7262		CFLAGS="$CFLAGS -Werror=nonnull"
7263
7264		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7265$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7266		cacheid=xorg_cv_cc_flag__Werror_nonnull
7267		if eval \${$cacheid+:} false; then :
7268  $as_echo_n "(cached) " >&6
7269else
7270  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271/* end confdefs.h.  */
7272int i;
7273int
7274main ()
7275{
7276
7277  ;
7278  return 0;
7279}
7280_ACEOF
7281if ac_fn_c_try_link "$LINENO"; then :
7282  eval $cacheid=yes
7283else
7284  eval $cacheid=no
7285fi
7286rm -f core conftest.err conftest.$ac_objext \
7287    conftest$ac_exeext conftest.$ac_ext
7288fi
7289
7290
7291		CFLAGS="$xorg_testset_save_CFLAGS"
7292
7293		eval supported=\$$cacheid
7294		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7295$as_echo "$supported" >&6; }
7296		if test "$supported" = "yes" ; then
7297			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7298			found="yes"
7299		fi
7300	fi
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316xorg_testset_save_CFLAGS="$CFLAGS"
7317
7318if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7319	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7320	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7321$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7322if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7323  $as_echo_n "(cached) " >&6
7324else
7325  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326/* end confdefs.h.  */
7327int i;
7328_ACEOF
7329if ac_fn_c_try_compile "$LINENO"; then :
7330  xorg_cv_cc_flag_unknown_warning_option=yes
7331else
7332  xorg_cv_cc_flag_unknown_warning_option=no
7333fi
7334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7335fi
7336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7337$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7338	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7339	CFLAGS="$xorg_testset_save_CFLAGS"
7340fi
7341
7342if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7343	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7344		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7345	fi
7346	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7347	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7348$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7349if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7350  $as_echo_n "(cached) " >&6
7351else
7352  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353/* end confdefs.h.  */
7354int i;
7355_ACEOF
7356if ac_fn_c_try_compile "$LINENO"; then :
7357  xorg_cv_cc_flag_unused_command_line_argument=yes
7358else
7359  xorg_cv_cc_flag_unused_command_line_argument=no
7360fi
7361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7362fi
7363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7364$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7365	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7366	CFLAGS="$xorg_testset_save_CFLAGS"
7367fi
7368
7369found="no"
7370
7371	if test $found = "no" ; then
7372		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7373			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7374		fi
7375
7376		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7377			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7378		fi
7379
7380		CFLAGS="$CFLAGS -Werror=init-self"
7381
7382		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7383$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7384		cacheid=xorg_cv_cc_flag__Werror_init_self
7385		if eval \${$cacheid+:} false; then :
7386  $as_echo_n "(cached) " >&6
7387else
7388  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389/* end confdefs.h.  */
7390int i;
7391int
7392main ()
7393{
7394
7395  ;
7396  return 0;
7397}
7398_ACEOF
7399if ac_fn_c_try_link "$LINENO"; then :
7400  eval $cacheid=yes
7401else
7402  eval $cacheid=no
7403fi
7404rm -f core conftest.err conftest.$ac_objext \
7405    conftest$ac_exeext conftest.$ac_ext
7406fi
7407
7408
7409		CFLAGS="$xorg_testset_save_CFLAGS"
7410
7411		eval supported=\$$cacheid
7412		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7413$as_echo "$supported" >&6; }
7414		if test "$supported" = "yes" ; then
7415			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7416			found="yes"
7417		fi
7418	fi
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434xorg_testset_save_CFLAGS="$CFLAGS"
7435
7436if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7437	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7438	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7439$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7440if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7441  $as_echo_n "(cached) " >&6
7442else
7443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444/* end confdefs.h.  */
7445int i;
7446_ACEOF
7447if ac_fn_c_try_compile "$LINENO"; then :
7448  xorg_cv_cc_flag_unknown_warning_option=yes
7449else
7450  xorg_cv_cc_flag_unknown_warning_option=no
7451fi
7452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7453fi
7454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7455$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7456	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7457	CFLAGS="$xorg_testset_save_CFLAGS"
7458fi
7459
7460if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7461	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7462		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7463	fi
7464	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7465	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7466$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7467if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7468  $as_echo_n "(cached) " >&6
7469else
7470  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471/* end confdefs.h.  */
7472int i;
7473_ACEOF
7474if ac_fn_c_try_compile "$LINENO"; then :
7475  xorg_cv_cc_flag_unused_command_line_argument=yes
7476else
7477  xorg_cv_cc_flag_unused_command_line_argument=no
7478fi
7479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7480fi
7481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7482$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7483	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7484	CFLAGS="$xorg_testset_save_CFLAGS"
7485fi
7486
7487found="no"
7488
7489	if test $found = "no" ; then
7490		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7491			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7492		fi
7493
7494		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7495			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7496		fi
7497
7498		CFLAGS="$CFLAGS -Werror=main"
7499
7500		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7501$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7502		cacheid=xorg_cv_cc_flag__Werror_main
7503		if eval \${$cacheid+:} false; then :
7504  $as_echo_n "(cached) " >&6
7505else
7506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507/* end confdefs.h.  */
7508int i;
7509int
7510main ()
7511{
7512
7513  ;
7514  return 0;
7515}
7516_ACEOF
7517if ac_fn_c_try_link "$LINENO"; then :
7518  eval $cacheid=yes
7519else
7520  eval $cacheid=no
7521fi
7522rm -f core conftest.err conftest.$ac_objext \
7523    conftest$ac_exeext conftest.$ac_ext
7524fi
7525
7526
7527		CFLAGS="$xorg_testset_save_CFLAGS"
7528
7529		eval supported=\$$cacheid
7530		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7531$as_echo "$supported" >&6; }
7532		if test "$supported" = "yes" ; then
7533			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7534			found="yes"
7535		fi
7536	fi
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552xorg_testset_save_CFLAGS="$CFLAGS"
7553
7554if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7555	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7556	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7557$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7558if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7559  $as_echo_n "(cached) " >&6
7560else
7561  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562/* end confdefs.h.  */
7563int i;
7564_ACEOF
7565if ac_fn_c_try_compile "$LINENO"; then :
7566  xorg_cv_cc_flag_unknown_warning_option=yes
7567else
7568  xorg_cv_cc_flag_unknown_warning_option=no
7569fi
7570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7571fi
7572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7573$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7574	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7575	CFLAGS="$xorg_testset_save_CFLAGS"
7576fi
7577
7578if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7579	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7580		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7581	fi
7582	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7583	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7584$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7585if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7586  $as_echo_n "(cached) " >&6
7587else
7588  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589/* end confdefs.h.  */
7590int i;
7591_ACEOF
7592if ac_fn_c_try_compile "$LINENO"; then :
7593  xorg_cv_cc_flag_unused_command_line_argument=yes
7594else
7595  xorg_cv_cc_flag_unused_command_line_argument=no
7596fi
7597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7598fi
7599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7600$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7601	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7602	CFLAGS="$xorg_testset_save_CFLAGS"
7603fi
7604
7605found="no"
7606
7607	if test $found = "no" ; then
7608		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7609			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7610		fi
7611
7612		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7613			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7614		fi
7615
7616		CFLAGS="$CFLAGS -Werror=missing-braces"
7617
7618		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7619$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7620		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7621		if eval \${$cacheid+:} false; then :
7622  $as_echo_n "(cached) " >&6
7623else
7624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625/* end confdefs.h.  */
7626int i;
7627int
7628main ()
7629{
7630
7631  ;
7632  return 0;
7633}
7634_ACEOF
7635if ac_fn_c_try_link "$LINENO"; then :
7636  eval $cacheid=yes
7637else
7638  eval $cacheid=no
7639fi
7640rm -f core conftest.err conftest.$ac_objext \
7641    conftest$ac_exeext conftest.$ac_ext
7642fi
7643
7644
7645		CFLAGS="$xorg_testset_save_CFLAGS"
7646
7647		eval supported=\$$cacheid
7648		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7649$as_echo "$supported" >&6; }
7650		if test "$supported" = "yes" ; then
7651			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7652			found="yes"
7653		fi
7654	fi
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670xorg_testset_save_CFLAGS="$CFLAGS"
7671
7672if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7673	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7674	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7675$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7676if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7677  $as_echo_n "(cached) " >&6
7678else
7679  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680/* end confdefs.h.  */
7681int i;
7682_ACEOF
7683if ac_fn_c_try_compile "$LINENO"; then :
7684  xorg_cv_cc_flag_unknown_warning_option=yes
7685else
7686  xorg_cv_cc_flag_unknown_warning_option=no
7687fi
7688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7689fi
7690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7691$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7692	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7693	CFLAGS="$xorg_testset_save_CFLAGS"
7694fi
7695
7696if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7697	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7698		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7699	fi
7700	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7701	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7702$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7703if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7704  $as_echo_n "(cached) " >&6
7705else
7706  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707/* end confdefs.h.  */
7708int i;
7709_ACEOF
7710if ac_fn_c_try_compile "$LINENO"; then :
7711  xorg_cv_cc_flag_unused_command_line_argument=yes
7712else
7713  xorg_cv_cc_flag_unused_command_line_argument=no
7714fi
7715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7716fi
7717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7718$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7719	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7720	CFLAGS="$xorg_testset_save_CFLAGS"
7721fi
7722
7723found="no"
7724
7725	if test $found = "no" ; then
7726		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7727			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7728		fi
7729
7730		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7731			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7732		fi
7733
7734		CFLAGS="$CFLAGS -Werror=sequence-point"
7735
7736		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7737$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7738		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7739		if eval \${$cacheid+:} false; then :
7740  $as_echo_n "(cached) " >&6
7741else
7742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743/* end confdefs.h.  */
7744int i;
7745int
7746main ()
7747{
7748
7749  ;
7750  return 0;
7751}
7752_ACEOF
7753if ac_fn_c_try_link "$LINENO"; then :
7754  eval $cacheid=yes
7755else
7756  eval $cacheid=no
7757fi
7758rm -f core conftest.err conftest.$ac_objext \
7759    conftest$ac_exeext conftest.$ac_ext
7760fi
7761
7762
7763		CFLAGS="$xorg_testset_save_CFLAGS"
7764
7765		eval supported=\$$cacheid
7766		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7767$as_echo "$supported" >&6; }
7768		if test "$supported" = "yes" ; then
7769			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7770			found="yes"
7771		fi
7772	fi
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788xorg_testset_save_CFLAGS="$CFLAGS"
7789
7790if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7791	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7792	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7793$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7794if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7795  $as_echo_n "(cached) " >&6
7796else
7797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798/* end confdefs.h.  */
7799int i;
7800_ACEOF
7801if ac_fn_c_try_compile "$LINENO"; then :
7802  xorg_cv_cc_flag_unknown_warning_option=yes
7803else
7804  xorg_cv_cc_flag_unknown_warning_option=no
7805fi
7806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7807fi
7808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7809$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7810	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7811	CFLAGS="$xorg_testset_save_CFLAGS"
7812fi
7813
7814if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7815	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7816		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7817	fi
7818	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7819	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7820$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7821if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7822  $as_echo_n "(cached) " >&6
7823else
7824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825/* end confdefs.h.  */
7826int i;
7827_ACEOF
7828if ac_fn_c_try_compile "$LINENO"; then :
7829  xorg_cv_cc_flag_unused_command_line_argument=yes
7830else
7831  xorg_cv_cc_flag_unused_command_line_argument=no
7832fi
7833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7834fi
7835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7836$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7837	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7838	CFLAGS="$xorg_testset_save_CFLAGS"
7839fi
7840
7841found="no"
7842
7843	if test $found = "no" ; then
7844		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7845			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7846		fi
7847
7848		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7849			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7850		fi
7851
7852		CFLAGS="$CFLAGS -Werror=return-type"
7853
7854		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7855$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7856		cacheid=xorg_cv_cc_flag__Werror_return_type
7857		if eval \${$cacheid+:} false; then :
7858  $as_echo_n "(cached) " >&6
7859else
7860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861/* end confdefs.h.  */
7862int i;
7863int
7864main ()
7865{
7866
7867  ;
7868  return 0;
7869}
7870_ACEOF
7871if ac_fn_c_try_link "$LINENO"; then :
7872  eval $cacheid=yes
7873else
7874  eval $cacheid=no
7875fi
7876rm -f core conftest.err conftest.$ac_objext \
7877    conftest$ac_exeext conftest.$ac_ext
7878fi
7879
7880
7881		CFLAGS="$xorg_testset_save_CFLAGS"
7882
7883		eval supported=\$$cacheid
7884		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7885$as_echo "$supported" >&6; }
7886		if test "$supported" = "yes" ; then
7887			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7888			found="yes"
7889		fi
7890	fi
7891
7892	if test $found = "no" ; then
7893		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7894			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7895		fi
7896
7897		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7898			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7899		fi
7900
7901		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7902
7903		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7904$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7905		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7906		if eval \${$cacheid+:} false; then :
7907  $as_echo_n "(cached) " >&6
7908else
7909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7910/* end confdefs.h.  */
7911int i;
7912int
7913main ()
7914{
7915
7916  ;
7917  return 0;
7918}
7919_ACEOF
7920if ac_fn_c_try_link "$LINENO"; then :
7921  eval $cacheid=yes
7922else
7923  eval $cacheid=no
7924fi
7925rm -f core conftest.err conftest.$ac_objext \
7926    conftest$ac_exeext conftest.$ac_ext
7927fi
7928
7929
7930		CFLAGS="$xorg_testset_save_CFLAGS"
7931
7932		eval supported=\$$cacheid
7933		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7934$as_echo "$supported" >&6; }
7935		if test "$supported" = "yes" ; then
7936			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7937			found="yes"
7938		fi
7939	fi
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955xorg_testset_save_CFLAGS="$CFLAGS"
7956
7957if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7958	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7959	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7960$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7961if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7962  $as_echo_n "(cached) " >&6
7963else
7964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965/* end confdefs.h.  */
7966int i;
7967_ACEOF
7968if ac_fn_c_try_compile "$LINENO"; then :
7969  xorg_cv_cc_flag_unknown_warning_option=yes
7970else
7971  xorg_cv_cc_flag_unknown_warning_option=no
7972fi
7973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7974fi
7975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7976$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7977	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7978	CFLAGS="$xorg_testset_save_CFLAGS"
7979fi
7980
7981if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7982	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7983		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7984	fi
7985	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7986	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7987$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7988if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7989  $as_echo_n "(cached) " >&6
7990else
7991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992/* end confdefs.h.  */
7993int i;
7994_ACEOF
7995if ac_fn_c_try_compile "$LINENO"; then :
7996  xorg_cv_cc_flag_unused_command_line_argument=yes
7997else
7998  xorg_cv_cc_flag_unused_command_line_argument=no
7999fi
8000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8001fi
8002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8003$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8004	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8005	CFLAGS="$xorg_testset_save_CFLAGS"
8006fi
8007
8008found="no"
8009
8010	if test $found = "no" ; then
8011		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8012			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8013		fi
8014
8015		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8016			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8017		fi
8018
8019		CFLAGS="$CFLAGS -Werror=trigraphs"
8020
8021		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8022$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
8023		cacheid=xorg_cv_cc_flag__Werror_trigraphs
8024		if eval \${$cacheid+:} false; then :
8025  $as_echo_n "(cached) " >&6
8026else
8027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8028/* end confdefs.h.  */
8029int i;
8030int
8031main ()
8032{
8033
8034  ;
8035  return 0;
8036}
8037_ACEOF
8038if ac_fn_c_try_link "$LINENO"; then :
8039  eval $cacheid=yes
8040else
8041  eval $cacheid=no
8042fi
8043rm -f core conftest.err conftest.$ac_objext \
8044    conftest$ac_exeext conftest.$ac_ext
8045fi
8046
8047
8048		CFLAGS="$xorg_testset_save_CFLAGS"
8049
8050		eval supported=\$$cacheid
8051		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8052$as_echo "$supported" >&6; }
8053		if test "$supported" = "yes" ; then
8054			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8055			found="yes"
8056		fi
8057	fi
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073xorg_testset_save_CFLAGS="$CFLAGS"
8074
8075if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8076	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8077	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8078$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8079if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8080  $as_echo_n "(cached) " >&6
8081else
8082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083/* end confdefs.h.  */
8084int i;
8085_ACEOF
8086if ac_fn_c_try_compile "$LINENO"; then :
8087  xorg_cv_cc_flag_unknown_warning_option=yes
8088else
8089  xorg_cv_cc_flag_unknown_warning_option=no
8090fi
8091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092fi
8093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8094$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8095	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8096	CFLAGS="$xorg_testset_save_CFLAGS"
8097fi
8098
8099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8100	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8101		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8102	fi
8103	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8104	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8105$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8106if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8107  $as_echo_n "(cached) " >&6
8108else
8109  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8110/* end confdefs.h.  */
8111int i;
8112_ACEOF
8113if ac_fn_c_try_compile "$LINENO"; then :
8114  xorg_cv_cc_flag_unused_command_line_argument=yes
8115else
8116  xorg_cv_cc_flag_unused_command_line_argument=no
8117fi
8118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8119fi
8120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8121$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8122	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8123	CFLAGS="$xorg_testset_save_CFLAGS"
8124fi
8125
8126found="no"
8127
8128	if test $found = "no" ; then
8129		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8130			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8131		fi
8132
8133		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8134			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8135		fi
8136
8137		CFLAGS="$CFLAGS -Werror=array-bounds"
8138
8139		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8140$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8141		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8142		if eval \${$cacheid+:} false; then :
8143  $as_echo_n "(cached) " >&6
8144else
8145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146/* end confdefs.h.  */
8147int i;
8148int
8149main ()
8150{
8151
8152  ;
8153  return 0;
8154}
8155_ACEOF
8156if ac_fn_c_try_link "$LINENO"; then :
8157  eval $cacheid=yes
8158else
8159  eval $cacheid=no
8160fi
8161rm -f core conftest.err conftest.$ac_objext \
8162    conftest$ac_exeext conftest.$ac_ext
8163fi
8164
8165
8166		CFLAGS="$xorg_testset_save_CFLAGS"
8167
8168		eval supported=\$$cacheid
8169		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8170$as_echo "$supported" >&6; }
8171		if test "$supported" = "yes" ; then
8172			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8173			found="yes"
8174		fi
8175	fi
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191xorg_testset_save_CFLAGS="$CFLAGS"
8192
8193if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8194	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8195	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8196$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8197if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8198  $as_echo_n "(cached) " >&6
8199else
8200  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201/* end confdefs.h.  */
8202int i;
8203_ACEOF
8204if ac_fn_c_try_compile "$LINENO"; then :
8205  xorg_cv_cc_flag_unknown_warning_option=yes
8206else
8207  xorg_cv_cc_flag_unknown_warning_option=no
8208fi
8209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8210fi
8211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8212$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8213	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8214	CFLAGS="$xorg_testset_save_CFLAGS"
8215fi
8216
8217if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8218	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8219		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8220	fi
8221	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8222	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8223$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8224if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8225  $as_echo_n "(cached) " >&6
8226else
8227  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228/* end confdefs.h.  */
8229int i;
8230_ACEOF
8231if ac_fn_c_try_compile "$LINENO"; then :
8232  xorg_cv_cc_flag_unused_command_line_argument=yes
8233else
8234  xorg_cv_cc_flag_unused_command_line_argument=no
8235fi
8236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8237fi
8238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8239$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8240	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8241	CFLAGS="$xorg_testset_save_CFLAGS"
8242fi
8243
8244found="no"
8245
8246	if test $found = "no" ; then
8247		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8248			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8249		fi
8250
8251		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8252			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8253		fi
8254
8255		CFLAGS="$CFLAGS -Werror=write-strings"
8256
8257		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8258$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8259		cacheid=xorg_cv_cc_flag__Werror_write_strings
8260		if eval \${$cacheid+:} false; then :
8261  $as_echo_n "(cached) " >&6
8262else
8263  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8264/* end confdefs.h.  */
8265int i;
8266int
8267main ()
8268{
8269
8270  ;
8271  return 0;
8272}
8273_ACEOF
8274if ac_fn_c_try_link "$LINENO"; then :
8275  eval $cacheid=yes
8276else
8277  eval $cacheid=no
8278fi
8279rm -f core conftest.err conftest.$ac_objext \
8280    conftest$ac_exeext conftest.$ac_ext
8281fi
8282
8283
8284		CFLAGS="$xorg_testset_save_CFLAGS"
8285
8286		eval supported=\$$cacheid
8287		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8288$as_echo "$supported" >&6; }
8289		if test "$supported" = "yes" ; then
8290			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8291			found="yes"
8292		fi
8293	fi
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309xorg_testset_save_CFLAGS="$CFLAGS"
8310
8311if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8312	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8313	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8314$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8315if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8316  $as_echo_n "(cached) " >&6
8317else
8318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319/* end confdefs.h.  */
8320int i;
8321_ACEOF
8322if ac_fn_c_try_compile "$LINENO"; then :
8323  xorg_cv_cc_flag_unknown_warning_option=yes
8324else
8325  xorg_cv_cc_flag_unknown_warning_option=no
8326fi
8327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328fi
8329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8330$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8331	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8332	CFLAGS="$xorg_testset_save_CFLAGS"
8333fi
8334
8335if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8336	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8337		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8338	fi
8339	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8340	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8341$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8342if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8343  $as_echo_n "(cached) " >&6
8344else
8345  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346/* end confdefs.h.  */
8347int i;
8348_ACEOF
8349if ac_fn_c_try_compile "$LINENO"; then :
8350  xorg_cv_cc_flag_unused_command_line_argument=yes
8351else
8352  xorg_cv_cc_flag_unused_command_line_argument=no
8353fi
8354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8355fi
8356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8357$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8358	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8359	CFLAGS="$xorg_testset_save_CFLAGS"
8360fi
8361
8362found="no"
8363
8364	if test $found = "no" ; then
8365		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8366			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8367		fi
8368
8369		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8370			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8371		fi
8372
8373		CFLAGS="$CFLAGS -Werror=address"
8374
8375		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8376$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8377		cacheid=xorg_cv_cc_flag__Werror_address
8378		if eval \${$cacheid+:} false; then :
8379  $as_echo_n "(cached) " >&6
8380else
8381  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382/* end confdefs.h.  */
8383int i;
8384int
8385main ()
8386{
8387
8388  ;
8389  return 0;
8390}
8391_ACEOF
8392if ac_fn_c_try_link "$LINENO"; then :
8393  eval $cacheid=yes
8394else
8395  eval $cacheid=no
8396fi
8397rm -f core conftest.err conftest.$ac_objext \
8398    conftest$ac_exeext conftest.$ac_ext
8399fi
8400
8401
8402		CFLAGS="$xorg_testset_save_CFLAGS"
8403
8404		eval supported=\$$cacheid
8405		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8406$as_echo "$supported" >&6; }
8407		if test "$supported" = "yes" ; then
8408			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8409			found="yes"
8410		fi
8411	fi
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427xorg_testset_save_CFLAGS="$CFLAGS"
8428
8429if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8430	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8431	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8432$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8433if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8434  $as_echo_n "(cached) " >&6
8435else
8436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8437/* end confdefs.h.  */
8438int i;
8439_ACEOF
8440if ac_fn_c_try_compile "$LINENO"; then :
8441  xorg_cv_cc_flag_unknown_warning_option=yes
8442else
8443  xorg_cv_cc_flag_unknown_warning_option=no
8444fi
8445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8446fi
8447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8448$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8449	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8450	CFLAGS="$xorg_testset_save_CFLAGS"
8451fi
8452
8453if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8454	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8455		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8456	fi
8457	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8458	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8459$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8460if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8461  $as_echo_n "(cached) " >&6
8462else
8463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464/* end confdefs.h.  */
8465int i;
8466_ACEOF
8467if ac_fn_c_try_compile "$LINENO"; then :
8468  xorg_cv_cc_flag_unused_command_line_argument=yes
8469else
8470  xorg_cv_cc_flag_unused_command_line_argument=no
8471fi
8472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8473fi
8474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8475$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8476	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8477	CFLAGS="$xorg_testset_save_CFLAGS"
8478fi
8479
8480found="no"
8481
8482	if test $found = "no" ; then
8483		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8484			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8485		fi
8486
8487		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8488			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8489		fi
8490
8491		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8492
8493		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8494$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8495		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8496		if eval \${$cacheid+:} false; then :
8497  $as_echo_n "(cached) " >&6
8498else
8499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500/* end confdefs.h.  */
8501int i;
8502int
8503main ()
8504{
8505
8506  ;
8507  return 0;
8508}
8509_ACEOF
8510if ac_fn_c_try_link "$LINENO"; then :
8511  eval $cacheid=yes
8512else
8513  eval $cacheid=no
8514fi
8515rm -f core conftest.err conftest.$ac_objext \
8516    conftest$ac_exeext conftest.$ac_ext
8517fi
8518
8519
8520		CFLAGS="$xorg_testset_save_CFLAGS"
8521
8522		eval supported=\$$cacheid
8523		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8524$as_echo "$supported" >&6; }
8525		if test "$supported" = "yes" ; then
8526			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8527			found="yes"
8528		fi
8529	fi
8530
8531	if test $found = "no" ; then
8532		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8533			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8534		fi
8535
8536		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8537			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8538		fi
8539
8540		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8541
8542		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8543$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8544		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8545		if eval \${$cacheid+:} false; then :
8546  $as_echo_n "(cached) " >&6
8547else
8548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549/* end confdefs.h.  */
8550int i;
8551int
8552main ()
8553{
8554
8555  ;
8556  return 0;
8557}
8558_ACEOF
8559if ac_fn_c_try_link "$LINENO"; then :
8560  eval $cacheid=yes
8561else
8562  eval $cacheid=no
8563fi
8564rm -f core conftest.err conftest.$ac_objext \
8565    conftest$ac_exeext conftest.$ac_ext
8566fi
8567
8568
8569		CFLAGS="$xorg_testset_save_CFLAGS"
8570
8571		eval supported=\$$cacheid
8572		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8573$as_echo "$supported" >&6; }
8574		if test "$supported" = "yes" ; then
8575			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8576			found="yes"
8577		fi
8578	fi
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594xorg_testset_save_CFLAGS="$CFLAGS"
8595
8596if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8597	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8598	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8599$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8600if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8601  $as_echo_n "(cached) " >&6
8602else
8603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8604/* end confdefs.h.  */
8605int i;
8606_ACEOF
8607if ac_fn_c_try_compile "$LINENO"; then :
8608  xorg_cv_cc_flag_unknown_warning_option=yes
8609else
8610  xorg_cv_cc_flag_unknown_warning_option=no
8611fi
8612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8613fi
8614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8615$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8616	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8617	CFLAGS="$xorg_testset_save_CFLAGS"
8618fi
8619
8620if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8621	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8622		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8623	fi
8624	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8625	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8626$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8627if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8628  $as_echo_n "(cached) " >&6
8629else
8630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8631/* end confdefs.h.  */
8632int i;
8633_ACEOF
8634if ac_fn_c_try_compile "$LINENO"; then :
8635  xorg_cv_cc_flag_unused_command_line_argument=yes
8636else
8637  xorg_cv_cc_flag_unused_command_line_argument=no
8638fi
8639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8640fi
8641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8642$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8643	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8644	CFLAGS="$xorg_testset_save_CFLAGS"
8645fi
8646
8647found="no"
8648
8649	if test $found = "no" ; then
8650		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8651			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8652		fi
8653
8654		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8655			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8656		fi
8657
8658		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8659
8660		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8661$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8662		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8663		if eval \${$cacheid+:} false; then :
8664  $as_echo_n "(cached) " >&6
8665else
8666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8667/* end confdefs.h.  */
8668int i;
8669int
8670main ()
8671{
8672
8673  ;
8674  return 0;
8675}
8676_ACEOF
8677if ac_fn_c_try_link "$LINENO"; then :
8678  eval $cacheid=yes
8679else
8680  eval $cacheid=no
8681fi
8682rm -f core conftest.err conftest.$ac_objext \
8683    conftest$ac_exeext conftest.$ac_ext
8684fi
8685
8686
8687		CFLAGS="$xorg_testset_save_CFLAGS"
8688
8689		eval supported=\$$cacheid
8690		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8691$as_echo "$supported" >&6; }
8692		if test "$supported" = "yes" ; then
8693			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8694			found="yes"
8695		fi
8696	fi
8697
8698 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8699else
8700{ $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
8701$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;}
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715xorg_testset_save_CFLAGS="$CFLAGS"
8716
8717if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8718	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8719	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8720$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8721if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8722  $as_echo_n "(cached) " >&6
8723else
8724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725/* end confdefs.h.  */
8726int i;
8727_ACEOF
8728if ac_fn_c_try_compile "$LINENO"; then :
8729  xorg_cv_cc_flag_unknown_warning_option=yes
8730else
8731  xorg_cv_cc_flag_unknown_warning_option=no
8732fi
8733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8734fi
8735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8736$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8737	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8738	CFLAGS="$xorg_testset_save_CFLAGS"
8739fi
8740
8741if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8742	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8743		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8744	fi
8745	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8746	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8747$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8748if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8749  $as_echo_n "(cached) " >&6
8750else
8751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752/* end confdefs.h.  */
8753int i;
8754_ACEOF
8755if ac_fn_c_try_compile "$LINENO"; then :
8756  xorg_cv_cc_flag_unused_command_line_argument=yes
8757else
8758  xorg_cv_cc_flag_unused_command_line_argument=no
8759fi
8760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8761fi
8762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8763$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8764	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8765	CFLAGS="$xorg_testset_save_CFLAGS"
8766fi
8767
8768found="no"
8769
8770	if test $found = "no" ; then
8771		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8772			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8773		fi
8774
8775		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8776			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8777		fi
8778
8779		CFLAGS="$CFLAGS -Wimplicit"
8780
8781		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8782$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8783		cacheid=xorg_cv_cc_flag__Wimplicit
8784		if eval \${$cacheid+:} false; then :
8785  $as_echo_n "(cached) " >&6
8786else
8787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788/* end confdefs.h.  */
8789int i;
8790int
8791main ()
8792{
8793
8794  ;
8795  return 0;
8796}
8797_ACEOF
8798if ac_fn_c_try_link "$LINENO"; then :
8799  eval $cacheid=yes
8800else
8801  eval $cacheid=no
8802fi
8803rm -f core conftest.err conftest.$ac_objext \
8804    conftest$ac_exeext conftest.$ac_ext
8805fi
8806
8807
8808		CFLAGS="$xorg_testset_save_CFLAGS"
8809
8810		eval supported=\$$cacheid
8811		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8812$as_echo "$supported" >&6; }
8813		if test "$supported" = "yes" ; then
8814			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8815			found="yes"
8816		fi
8817	fi
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833xorg_testset_save_CFLAGS="$CFLAGS"
8834
8835if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8836	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8837	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8838$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8839if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8840  $as_echo_n "(cached) " >&6
8841else
8842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8843/* end confdefs.h.  */
8844int i;
8845_ACEOF
8846if ac_fn_c_try_compile "$LINENO"; then :
8847  xorg_cv_cc_flag_unknown_warning_option=yes
8848else
8849  xorg_cv_cc_flag_unknown_warning_option=no
8850fi
8851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8852fi
8853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8854$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8855	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8856	CFLAGS="$xorg_testset_save_CFLAGS"
8857fi
8858
8859if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8860	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8861		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8862	fi
8863	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8864	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8865$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8866if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8867  $as_echo_n "(cached) " >&6
8868else
8869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870/* end confdefs.h.  */
8871int i;
8872_ACEOF
8873if ac_fn_c_try_compile "$LINENO"; then :
8874  xorg_cv_cc_flag_unused_command_line_argument=yes
8875else
8876  xorg_cv_cc_flag_unused_command_line_argument=no
8877fi
8878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8879fi
8880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8881$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8882	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8883	CFLAGS="$xorg_testset_save_CFLAGS"
8884fi
8885
8886found="no"
8887
8888	if test $found = "no" ; then
8889		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8890			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8891		fi
8892
8893		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8894			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8895		fi
8896
8897		CFLAGS="$CFLAGS -Wnonnull"
8898
8899		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8900$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8901		cacheid=xorg_cv_cc_flag__Wnonnull
8902		if eval \${$cacheid+:} false; then :
8903  $as_echo_n "(cached) " >&6
8904else
8905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8906/* end confdefs.h.  */
8907int i;
8908int
8909main ()
8910{
8911
8912  ;
8913  return 0;
8914}
8915_ACEOF
8916if ac_fn_c_try_link "$LINENO"; then :
8917  eval $cacheid=yes
8918else
8919  eval $cacheid=no
8920fi
8921rm -f core conftest.err conftest.$ac_objext \
8922    conftest$ac_exeext conftest.$ac_ext
8923fi
8924
8925
8926		CFLAGS="$xorg_testset_save_CFLAGS"
8927
8928		eval supported=\$$cacheid
8929		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8930$as_echo "$supported" >&6; }
8931		if test "$supported" = "yes" ; then
8932			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8933			found="yes"
8934		fi
8935	fi
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951xorg_testset_save_CFLAGS="$CFLAGS"
8952
8953if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8954	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8955	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8956$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8957if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8958  $as_echo_n "(cached) " >&6
8959else
8960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8961/* end confdefs.h.  */
8962int i;
8963_ACEOF
8964if ac_fn_c_try_compile "$LINENO"; then :
8965  xorg_cv_cc_flag_unknown_warning_option=yes
8966else
8967  xorg_cv_cc_flag_unknown_warning_option=no
8968fi
8969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8970fi
8971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8972$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8973	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8974	CFLAGS="$xorg_testset_save_CFLAGS"
8975fi
8976
8977if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8978	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8979		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8980	fi
8981	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8982	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8983$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8984if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8985  $as_echo_n "(cached) " >&6
8986else
8987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988/* end confdefs.h.  */
8989int i;
8990_ACEOF
8991if ac_fn_c_try_compile "$LINENO"; then :
8992  xorg_cv_cc_flag_unused_command_line_argument=yes
8993else
8994  xorg_cv_cc_flag_unused_command_line_argument=no
8995fi
8996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8997fi
8998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8999$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9000	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9001	CFLAGS="$xorg_testset_save_CFLAGS"
9002fi
9003
9004found="no"
9005
9006	if test $found = "no" ; then
9007		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9008			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9009		fi
9010
9011		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9012			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9013		fi
9014
9015		CFLAGS="$CFLAGS -Winit-self"
9016
9017		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9018$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
9019		cacheid=xorg_cv_cc_flag__Winit_self
9020		if eval \${$cacheid+:} false; then :
9021  $as_echo_n "(cached) " >&6
9022else
9023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9024/* end confdefs.h.  */
9025int i;
9026int
9027main ()
9028{
9029
9030  ;
9031  return 0;
9032}
9033_ACEOF
9034if ac_fn_c_try_link "$LINENO"; then :
9035  eval $cacheid=yes
9036else
9037  eval $cacheid=no
9038fi
9039rm -f core conftest.err conftest.$ac_objext \
9040    conftest$ac_exeext conftest.$ac_ext
9041fi
9042
9043
9044		CFLAGS="$xorg_testset_save_CFLAGS"
9045
9046		eval supported=\$$cacheid
9047		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9048$as_echo "$supported" >&6; }
9049		if test "$supported" = "yes" ; then
9050			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9051			found="yes"
9052		fi
9053	fi
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069xorg_testset_save_CFLAGS="$CFLAGS"
9070
9071if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9072	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9073	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9074$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9075if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9076  $as_echo_n "(cached) " >&6
9077else
9078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079/* end confdefs.h.  */
9080int i;
9081_ACEOF
9082if ac_fn_c_try_compile "$LINENO"; then :
9083  xorg_cv_cc_flag_unknown_warning_option=yes
9084else
9085  xorg_cv_cc_flag_unknown_warning_option=no
9086fi
9087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9088fi
9089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9090$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9091	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9092	CFLAGS="$xorg_testset_save_CFLAGS"
9093fi
9094
9095if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9096	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9097		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9098	fi
9099	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9100	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9101$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9102if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9103  $as_echo_n "(cached) " >&6
9104else
9105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106/* end confdefs.h.  */
9107int i;
9108_ACEOF
9109if ac_fn_c_try_compile "$LINENO"; then :
9110  xorg_cv_cc_flag_unused_command_line_argument=yes
9111else
9112  xorg_cv_cc_flag_unused_command_line_argument=no
9113fi
9114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9115fi
9116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9117$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9118	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9119	CFLAGS="$xorg_testset_save_CFLAGS"
9120fi
9121
9122found="no"
9123
9124	if test $found = "no" ; then
9125		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9126			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9127		fi
9128
9129		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9130			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9131		fi
9132
9133		CFLAGS="$CFLAGS -Wmain"
9134
9135		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9136$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9137		cacheid=xorg_cv_cc_flag__Wmain
9138		if eval \${$cacheid+:} false; then :
9139  $as_echo_n "(cached) " >&6
9140else
9141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9142/* end confdefs.h.  */
9143int i;
9144int
9145main ()
9146{
9147
9148  ;
9149  return 0;
9150}
9151_ACEOF
9152if ac_fn_c_try_link "$LINENO"; then :
9153  eval $cacheid=yes
9154else
9155  eval $cacheid=no
9156fi
9157rm -f core conftest.err conftest.$ac_objext \
9158    conftest$ac_exeext conftest.$ac_ext
9159fi
9160
9161
9162		CFLAGS="$xorg_testset_save_CFLAGS"
9163
9164		eval supported=\$$cacheid
9165		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9166$as_echo "$supported" >&6; }
9167		if test "$supported" = "yes" ; then
9168			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9169			found="yes"
9170		fi
9171	fi
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187xorg_testset_save_CFLAGS="$CFLAGS"
9188
9189if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9190	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9191	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9192$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9193if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9194  $as_echo_n "(cached) " >&6
9195else
9196  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197/* end confdefs.h.  */
9198int i;
9199_ACEOF
9200if ac_fn_c_try_compile "$LINENO"; then :
9201  xorg_cv_cc_flag_unknown_warning_option=yes
9202else
9203  xorg_cv_cc_flag_unknown_warning_option=no
9204fi
9205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9206fi
9207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9208$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9209	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9210	CFLAGS="$xorg_testset_save_CFLAGS"
9211fi
9212
9213if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9214	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9215		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9216	fi
9217	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9218	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9219$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9220if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9221  $as_echo_n "(cached) " >&6
9222else
9223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224/* end confdefs.h.  */
9225int i;
9226_ACEOF
9227if ac_fn_c_try_compile "$LINENO"; then :
9228  xorg_cv_cc_flag_unused_command_line_argument=yes
9229else
9230  xorg_cv_cc_flag_unused_command_line_argument=no
9231fi
9232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9233fi
9234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9235$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9236	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9237	CFLAGS="$xorg_testset_save_CFLAGS"
9238fi
9239
9240found="no"
9241
9242	if test $found = "no" ; then
9243		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9244			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9245		fi
9246
9247		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9248			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9249		fi
9250
9251		CFLAGS="$CFLAGS -Wmissing-braces"
9252
9253		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9254$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9255		cacheid=xorg_cv_cc_flag__Wmissing_braces
9256		if eval \${$cacheid+:} false; then :
9257  $as_echo_n "(cached) " >&6
9258else
9259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260/* end confdefs.h.  */
9261int i;
9262int
9263main ()
9264{
9265
9266  ;
9267  return 0;
9268}
9269_ACEOF
9270if ac_fn_c_try_link "$LINENO"; then :
9271  eval $cacheid=yes
9272else
9273  eval $cacheid=no
9274fi
9275rm -f core conftest.err conftest.$ac_objext \
9276    conftest$ac_exeext conftest.$ac_ext
9277fi
9278
9279
9280		CFLAGS="$xorg_testset_save_CFLAGS"
9281
9282		eval supported=\$$cacheid
9283		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9284$as_echo "$supported" >&6; }
9285		if test "$supported" = "yes" ; then
9286			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9287			found="yes"
9288		fi
9289	fi
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305xorg_testset_save_CFLAGS="$CFLAGS"
9306
9307if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9308	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9309	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9310$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9311if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9312  $as_echo_n "(cached) " >&6
9313else
9314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9315/* end confdefs.h.  */
9316int i;
9317_ACEOF
9318if ac_fn_c_try_compile "$LINENO"; then :
9319  xorg_cv_cc_flag_unknown_warning_option=yes
9320else
9321  xorg_cv_cc_flag_unknown_warning_option=no
9322fi
9323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9324fi
9325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9326$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9327	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9328	CFLAGS="$xorg_testset_save_CFLAGS"
9329fi
9330
9331if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9332	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9333		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9334	fi
9335	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9336	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9337$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9338if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9339  $as_echo_n "(cached) " >&6
9340else
9341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9342/* end confdefs.h.  */
9343int i;
9344_ACEOF
9345if ac_fn_c_try_compile "$LINENO"; then :
9346  xorg_cv_cc_flag_unused_command_line_argument=yes
9347else
9348  xorg_cv_cc_flag_unused_command_line_argument=no
9349fi
9350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9351fi
9352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9353$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9354	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9355	CFLAGS="$xorg_testset_save_CFLAGS"
9356fi
9357
9358found="no"
9359
9360	if test $found = "no" ; then
9361		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9362			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9363		fi
9364
9365		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9366			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9367		fi
9368
9369		CFLAGS="$CFLAGS -Wsequence-point"
9370
9371		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9372$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9373		cacheid=xorg_cv_cc_flag__Wsequence_point
9374		if eval \${$cacheid+:} false; then :
9375  $as_echo_n "(cached) " >&6
9376else
9377  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9378/* end confdefs.h.  */
9379int i;
9380int
9381main ()
9382{
9383
9384  ;
9385  return 0;
9386}
9387_ACEOF
9388if ac_fn_c_try_link "$LINENO"; then :
9389  eval $cacheid=yes
9390else
9391  eval $cacheid=no
9392fi
9393rm -f core conftest.err conftest.$ac_objext \
9394    conftest$ac_exeext conftest.$ac_ext
9395fi
9396
9397
9398		CFLAGS="$xorg_testset_save_CFLAGS"
9399
9400		eval supported=\$$cacheid
9401		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9402$as_echo "$supported" >&6; }
9403		if test "$supported" = "yes" ; then
9404			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9405			found="yes"
9406		fi
9407	fi
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423xorg_testset_save_CFLAGS="$CFLAGS"
9424
9425if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9426	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9427	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9428$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9429if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9430  $as_echo_n "(cached) " >&6
9431else
9432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9433/* end confdefs.h.  */
9434int i;
9435_ACEOF
9436if ac_fn_c_try_compile "$LINENO"; then :
9437  xorg_cv_cc_flag_unknown_warning_option=yes
9438else
9439  xorg_cv_cc_flag_unknown_warning_option=no
9440fi
9441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9442fi
9443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9444$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9445	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9446	CFLAGS="$xorg_testset_save_CFLAGS"
9447fi
9448
9449if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9450	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9451		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9452	fi
9453	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9454	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9455$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9456if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9457  $as_echo_n "(cached) " >&6
9458else
9459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460/* end confdefs.h.  */
9461int i;
9462_ACEOF
9463if ac_fn_c_try_compile "$LINENO"; then :
9464  xorg_cv_cc_flag_unused_command_line_argument=yes
9465else
9466  xorg_cv_cc_flag_unused_command_line_argument=no
9467fi
9468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9469fi
9470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9471$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9472	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9473	CFLAGS="$xorg_testset_save_CFLAGS"
9474fi
9475
9476found="no"
9477
9478	if test $found = "no" ; then
9479		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9480			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9481		fi
9482
9483		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9484			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9485		fi
9486
9487		CFLAGS="$CFLAGS -Wreturn-type"
9488
9489		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9490$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9491		cacheid=xorg_cv_cc_flag__Wreturn_type
9492		if eval \${$cacheid+:} false; then :
9493  $as_echo_n "(cached) " >&6
9494else
9495  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496/* end confdefs.h.  */
9497int i;
9498int
9499main ()
9500{
9501
9502  ;
9503  return 0;
9504}
9505_ACEOF
9506if ac_fn_c_try_link "$LINENO"; then :
9507  eval $cacheid=yes
9508else
9509  eval $cacheid=no
9510fi
9511rm -f core conftest.err conftest.$ac_objext \
9512    conftest$ac_exeext conftest.$ac_ext
9513fi
9514
9515
9516		CFLAGS="$xorg_testset_save_CFLAGS"
9517
9518		eval supported=\$$cacheid
9519		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9520$as_echo "$supported" >&6; }
9521		if test "$supported" = "yes" ; then
9522			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9523			found="yes"
9524		fi
9525	fi
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541xorg_testset_save_CFLAGS="$CFLAGS"
9542
9543if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9544	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9545	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9546$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9547if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9548  $as_echo_n "(cached) " >&6
9549else
9550  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551/* end confdefs.h.  */
9552int i;
9553_ACEOF
9554if ac_fn_c_try_compile "$LINENO"; then :
9555  xorg_cv_cc_flag_unknown_warning_option=yes
9556else
9557  xorg_cv_cc_flag_unknown_warning_option=no
9558fi
9559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9560fi
9561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9562$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9563	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9564	CFLAGS="$xorg_testset_save_CFLAGS"
9565fi
9566
9567if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9568	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9569		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9570	fi
9571	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9572	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9573$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9574if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9575  $as_echo_n "(cached) " >&6
9576else
9577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578/* end confdefs.h.  */
9579int i;
9580_ACEOF
9581if ac_fn_c_try_compile "$LINENO"; then :
9582  xorg_cv_cc_flag_unused_command_line_argument=yes
9583else
9584  xorg_cv_cc_flag_unused_command_line_argument=no
9585fi
9586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9587fi
9588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9589$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9590	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9591	CFLAGS="$xorg_testset_save_CFLAGS"
9592fi
9593
9594found="no"
9595
9596	if test $found = "no" ; then
9597		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9598			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9599		fi
9600
9601		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9602			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9603		fi
9604
9605		CFLAGS="$CFLAGS -Wtrigraphs"
9606
9607		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9608$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9609		cacheid=xorg_cv_cc_flag__Wtrigraphs
9610		if eval \${$cacheid+:} false; then :
9611  $as_echo_n "(cached) " >&6
9612else
9613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9614/* end confdefs.h.  */
9615int i;
9616int
9617main ()
9618{
9619
9620  ;
9621  return 0;
9622}
9623_ACEOF
9624if ac_fn_c_try_link "$LINENO"; then :
9625  eval $cacheid=yes
9626else
9627  eval $cacheid=no
9628fi
9629rm -f core conftest.err conftest.$ac_objext \
9630    conftest$ac_exeext conftest.$ac_ext
9631fi
9632
9633
9634		CFLAGS="$xorg_testset_save_CFLAGS"
9635
9636		eval supported=\$$cacheid
9637		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9638$as_echo "$supported" >&6; }
9639		if test "$supported" = "yes" ; then
9640			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9641			found="yes"
9642		fi
9643	fi
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659xorg_testset_save_CFLAGS="$CFLAGS"
9660
9661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9662	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9663	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9664$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9665if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9666  $as_echo_n "(cached) " >&6
9667else
9668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9669/* end confdefs.h.  */
9670int i;
9671_ACEOF
9672if ac_fn_c_try_compile "$LINENO"; then :
9673  xorg_cv_cc_flag_unknown_warning_option=yes
9674else
9675  xorg_cv_cc_flag_unknown_warning_option=no
9676fi
9677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9678fi
9679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9680$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9681	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9682	CFLAGS="$xorg_testset_save_CFLAGS"
9683fi
9684
9685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9686	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9687		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9688	fi
9689	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9690	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9691$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9692if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9693  $as_echo_n "(cached) " >&6
9694else
9695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696/* end confdefs.h.  */
9697int i;
9698_ACEOF
9699if ac_fn_c_try_compile "$LINENO"; then :
9700  xorg_cv_cc_flag_unused_command_line_argument=yes
9701else
9702  xorg_cv_cc_flag_unused_command_line_argument=no
9703fi
9704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9705fi
9706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9707$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9708	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9709	CFLAGS="$xorg_testset_save_CFLAGS"
9710fi
9711
9712found="no"
9713
9714	if test $found = "no" ; then
9715		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9716			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9717		fi
9718
9719		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9720			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9721		fi
9722
9723		CFLAGS="$CFLAGS -Warray-bounds"
9724
9725		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9726$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9727		cacheid=xorg_cv_cc_flag__Warray_bounds
9728		if eval \${$cacheid+:} false; then :
9729  $as_echo_n "(cached) " >&6
9730else
9731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9732/* end confdefs.h.  */
9733int i;
9734int
9735main ()
9736{
9737
9738  ;
9739  return 0;
9740}
9741_ACEOF
9742if ac_fn_c_try_link "$LINENO"; then :
9743  eval $cacheid=yes
9744else
9745  eval $cacheid=no
9746fi
9747rm -f core conftest.err conftest.$ac_objext \
9748    conftest$ac_exeext conftest.$ac_ext
9749fi
9750
9751
9752		CFLAGS="$xorg_testset_save_CFLAGS"
9753
9754		eval supported=\$$cacheid
9755		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9756$as_echo "$supported" >&6; }
9757		if test "$supported" = "yes" ; then
9758			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9759			found="yes"
9760		fi
9761	fi
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777xorg_testset_save_CFLAGS="$CFLAGS"
9778
9779if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9780	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9781	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9782$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9783if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9784  $as_echo_n "(cached) " >&6
9785else
9786  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9787/* end confdefs.h.  */
9788int i;
9789_ACEOF
9790if ac_fn_c_try_compile "$LINENO"; then :
9791  xorg_cv_cc_flag_unknown_warning_option=yes
9792else
9793  xorg_cv_cc_flag_unknown_warning_option=no
9794fi
9795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9796fi
9797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9798$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9799	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9800	CFLAGS="$xorg_testset_save_CFLAGS"
9801fi
9802
9803if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9804	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9805		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9806	fi
9807	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9808	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9809$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9810if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9811  $as_echo_n "(cached) " >&6
9812else
9813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814/* end confdefs.h.  */
9815int i;
9816_ACEOF
9817if ac_fn_c_try_compile "$LINENO"; then :
9818  xorg_cv_cc_flag_unused_command_line_argument=yes
9819else
9820  xorg_cv_cc_flag_unused_command_line_argument=no
9821fi
9822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9823fi
9824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9825$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9826	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9827	CFLAGS="$xorg_testset_save_CFLAGS"
9828fi
9829
9830found="no"
9831
9832	if test $found = "no" ; then
9833		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9834			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9835		fi
9836
9837		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9838			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9839		fi
9840
9841		CFLAGS="$CFLAGS -Wwrite-strings"
9842
9843		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9844$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9845		cacheid=xorg_cv_cc_flag__Wwrite_strings
9846		if eval \${$cacheid+:} false; then :
9847  $as_echo_n "(cached) " >&6
9848else
9849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9850/* end confdefs.h.  */
9851int i;
9852int
9853main ()
9854{
9855
9856  ;
9857  return 0;
9858}
9859_ACEOF
9860if ac_fn_c_try_link "$LINENO"; then :
9861  eval $cacheid=yes
9862else
9863  eval $cacheid=no
9864fi
9865rm -f core conftest.err conftest.$ac_objext \
9866    conftest$ac_exeext conftest.$ac_ext
9867fi
9868
9869
9870		CFLAGS="$xorg_testset_save_CFLAGS"
9871
9872		eval supported=\$$cacheid
9873		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9874$as_echo "$supported" >&6; }
9875		if test "$supported" = "yes" ; then
9876			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9877			found="yes"
9878		fi
9879	fi
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895xorg_testset_save_CFLAGS="$CFLAGS"
9896
9897if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9898	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9899	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9900$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9901if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9902  $as_echo_n "(cached) " >&6
9903else
9904  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9905/* end confdefs.h.  */
9906int i;
9907_ACEOF
9908if ac_fn_c_try_compile "$LINENO"; then :
9909  xorg_cv_cc_flag_unknown_warning_option=yes
9910else
9911  xorg_cv_cc_flag_unknown_warning_option=no
9912fi
9913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9914fi
9915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9916$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9917	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9918	CFLAGS="$xorg_testset_save_CFLAGS"
9919fi
9920
9921if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9922	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9923		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9924	fi
9925	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9926	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9927$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9928if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9929  $as_echo_n "(cached) " >&6
9930else
9931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9932/* end confdefs.h.  */
9933int i;
9934_ACEOF
9935if ac_fn_c_try_compile "$LINENO"; then :
9936  xorg_cv_cc_flag_unused_command_line_argument=yes
9937else
9938  xorg_cv_cc_flag_unused_command_line_argument=no
9939fi
9940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9941fi
9942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9943$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9944	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9945	CFLAGS="$xorg_testset_save_CFLAGS"
9946fi
9947
9948found="no"
9949
9950	if test $found = "no" ; then
9951		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9952			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9953		fi
9954
9955		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9956			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9957		fi
9958
9959		CFLAGS="$CFLAGS -Waddress"
9960
9961		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9962$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9963		cacheid=xorg_cv_cc_flag__Waddress
9964		if eval \${$cacheid+:} false; then :
9965  $as_echo_n "(cached) " >&6
9966else
9967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968/* end confdefs.h.  */
9969int i;
9970int
9971main ()
9972{
9973
9974  ;
9975  return 0;
9976}
9977_ACEOF
9978if ac_fn_c_try_link "$LINENO"; then :
9979  eval $cacheid=yes
9980else
9981  eval $cacheid=no
9982fi
9983rm -f core conftest.err conftest.$ac_objext \
9984    conftest$ac_exeext conftest.$ac_ext
9985fi
9986
9987
9988		CFLAGS="$xorg_testset_save_CFLAGS"
9989
9990		eval supported=\$$cacheid
9991		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9992$as_echo "$supported" >&6; }
9993		if test "$supported" = "yes" ; then
9994			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9995			found="yes"
9996		fi
9997	fi
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013xorg_testset_save_CFLAGS="$CFLAGS"
10014
10015if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10016	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10017	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10018$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10019if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10020  $as_echo_n "(cached) " >&6
10021else
10022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10023/* end confdefs.h.  */
10024int i;
10025_ACEOF
10026if ac_fn_c_try_compile "$LINENO"; then :
10027  xorg_cv_cc_flag_unknown_warning_option=yes
10028else
10029  xorg_cv_cc_flag_unknown_warning_option=no
10030fi
10031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10032fi
10033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10034$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10035	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10036	CFLAGS="$xorg_testset_save_CFLAGS"
10037fi
10038
10039if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10040	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10041		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10042	fi
10043	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10044	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10045$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10046if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10047  $as_echo_n "(cached) " >&6
10048else
10049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10050/* end confdefs.h.  */
10051int i;
10052_ACEOF
10053if ac_fn_c_try_compile "$LINENO"; then :
10054  xorg_cv_cc_flag_unused_command_line_argument=yes
10055else
10056  xorg_cv_cc_flag_unused_command_line_argument=no
10057fi
10058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10059fi
10060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10061$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10062	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10063	CFLAGS="$xorg_testset_save_CFLAGS"
10064fi
10065
10066found="no"
10067
10068	if test $found = "no" ; then
10069		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10070			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10071		fi
10072
10073		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10074			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10075		fi
10076
10077		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10078
10079		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10080$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10081		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10082		if eval \${$cacheid+:} false; then :
10083  $as_echo_n "(cached) " >&6
10084else
10085  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10086/* end confdefs.h.  */
10087int i;
10088int
10089main ()
10090{
10091
10092  ;
10093  return 0;
10094}
10095_ACEOF
10096if ac_fn_c_try_link "$LINENO"; then :
10097  eval $cacheid=yes
10098else
10099  eval $cacheid=no
10100fi
10101rm -f core conftest.err conftest.$ac_objext \
10102    conftest$ac_exeext conftest.$ac_ext
10103fi
10104
10105
10106		CFLAGS="$xorg_testset_save_CFLAGS"
10107
10108		eval supported=\$$cacheid
10109		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10110$as_echo "$supported" >&6; }
10111		if test "$supported" = "yes" ; then
10112			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10113			found="yes"
10114		fi
10115	fi
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131xorg_testset_save_CFLAGS="$CFLAGS"
10132
10133if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10134	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10135	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10136$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10137if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10138  $as_echo_n "(cached) " >&6
10139else
10140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10141/* end confdefs.h.  */
10142int i;
10143_ACEOF
10144if ac_fn_c_try_compile "$LINENO"; then :
10145  xorg_cv_cc_flag_unknown_warning_option=yes
10146else
10147  xorg_cv_cc_flag_unknown_warning_option=no
10148fi
10149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10150fi
10151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10152$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10153	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10154	CFLAGS="$xorg_testset_save_CFLAGS"
10155fi
10156
10157if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10158	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10159		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10160	fi
10161	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10162	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10163$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10164if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10165  $as_echo_n "(cached) " >&6
10166else
10167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168/* end confdefs.h.  */
10169int i;
10170_ACEOF
10171if ac_fn_c_try_compile "$LINENO"; then :
10172  xorg_cv_cc_flag_unused_command_line_argument=yes
10173else
10174  xorg_cv_cc_flag_unused_command_line_argument=no
10175fi
10176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10177fi
10178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10179$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10180	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10181	CFLAGS="$xorg_testset_save_CFLAGS"
10182fi
10183
10184found="no"
10185
10186	if test $found = "no" ; then
10187		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10188			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10189		fi
10190
10191		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10192			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10193		fi
10194
10195		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10196
10197		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10198$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10199		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10200		if eval \${$cacheid+:} false; then :
10201  $as_echo_n "(cached) " >&6
10202else
10203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204/* end confdefs.h.  */
10205int i;
10206int
10207main ()
10208{
10209
10210  ;
10211  return 0;
10212}
10213_ACEOF
10214if ac_fn_c_try_link "$LINENO"; then :
10215  eval $cacheid=yes
10216else
10217  eval $cacheid=no
10218fi
10219rm -f core conftest.err conftest.$ac_objext \
10220    conftest$ac_exeext conftest.$ac_ext
10221fi
10222
10223
10224		CFLAGS="$xorg_testset_save_CFLAGS"
10225
10226		eval supported=\$$cacheid
10227		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10228$as_echo "$supported" >&6; }
10229		if test "$supported" = "yes" ; then
10230			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10231			found="yes"
10232		fi
10233	fi
10234
10235
10236fi
10237
10238
10239
10240
10241
10242
10243
10244		CWARNFLAGS="$BASE_CFLAGS"
10245		if  test "x$GCC" = xyes ; then
10246		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10247		fi
10248
10249
10250
10251
10252
10253
10254
10255
10256# Check whether --enable-strict-compilation was given.
10257if test "${enable_strict_compilation+set}" = set; then :
10258  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10259else
10260  STRICT_COMPILE=no
10261fi
10262
10263
10264
10265
10266
10267
10268STRICT_CFLAGS=""
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282xorg_testset_save_CFLAGS="$CFLAGS"
10283
10284if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10285	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10286	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10287$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10288if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10289  $as_echo_n "(cached) " >&6
10290else
10291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10292/* end confdefs.h.  */
10293int i;
10294_ACEOF
10295if ac_fn_c_try_compile "$LINENO"; then :
10296  xorg_cv_cc_flag_unknown_warning_option=yes
10297else
10298  xorg_cv_cc_flag_unknown_warning_option=no
10299fi
10300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10301fi
10302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10303$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10304	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10305	CFLAGS="$xorg_testset_save_CFLAGS"
10306fi
10307
10308if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10309	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10310		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10311	fi
10312	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10313	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10314$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10315if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10316  $as_echo_n "(cached) " >&6
10317else
10318  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10319/* end confdefs.h.  */
10320int i;
10321_ACEOF
10322if ac_fn_c_try_compile "$LINENO"; then :
10323  xorg_cv_cc_flag_unused_command_line_argument=yes
10324else
10325  xorg_cv_cc_flag_unused_command_line_argument=no
10326fi
10327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10328fi
10329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10330$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10331	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10332	CFLAGS="$xorg_testset_save_CFLAGS"
10333fi
10334
10335found="no"
10336
10337	if test $found = "no" ; then
10338		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10339			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10340		fi
10341
10342		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10343			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10344		fi
10345
10346		CFLAGS="$CFLAGS -pedantic"
10347
10348		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10349$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10350		cacheid=xorg_cv_cc_flag__pedantic
10351		if eval \${$cacheid+:} false; then :
10352  $as_echo_n "(cached) " >&6
10353else
10354  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10355/* end confdefs.h.  */
10356int i;
10357int
10358main ()
10359{
10360
10361  ;
10362  return 0;
10363}
10364_ACEOF
10365if ac_fn_c_try_link "$LINENO"; then :
10366  eval $cacheid=yes
10367else
10368  eval $cacheid=no
10369fi
10370rm -f core conftest.err conftest.$ac_objext \
10371    conftest$ac_exeext conftest.$ac_ext
10372fi
10373
10374
10375		CFLAGS="$xorg_testset_save_CFLAGS"
10376
10377		eval supported=\$$cacheid
10378		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10379$as_echo "$supported" >&6; }
10380		if test "$supported" = "yes" ; then
10381			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10382			found="yes"
10383		fi
10384	fi
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400xorg_testset_save_CFLAGS="$CFLAGS"
10401
10402if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10403	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10404	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10405$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10406if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10407  $as_echo_n "(cached) " >&6
10408else
10409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410/* end confdefs.h.  */
10411int i;
10412_ACEOF
10413if ac_fn_c_try_compile "$LINENO"; then :
10414  xorg_cv_cc_flag_unknown_warning_option=yes
10415else
10416  xorg_cv_cc_flag_unknown_warning_option=no
10417fi
10418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10419fi
10420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10421$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10422	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10423	CFLAGS="$xorg_testset_save_CFLAGS"
10424fi
10425
10426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10427	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10428		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10429	fi
10430	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10431	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10432$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10433if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10434  $as_echo_n "(cached) " >&6
10435else
10436  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10437/* end confdefs.h.  */
10438int i;
10439_ACEOF
10440if ac_fn_c_try_compile "$LINENO"; then :
10441  xorg_cv_cc_flag_unused_command_line_argument=yes
10442else
10443  xorg_cv_cc_flag_unused_command_line_argument=no
10444fi
10445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10446fi
10447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10448$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10449	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10450	CFLAGS="$xorg_testset_save_CFLAGS"
10451fi
10452
10453found="no"
10454
10455	if test $found = "no" ; then
10456		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10457			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10458		fi
10459
10460		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10461			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10462		fi
10463
10464		CFLAGS="$CFLAGS -Werror"
10465
10466		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10467$as_echo_n "checking if $CC supports -Werror... " >&6; }
10468		cacheid=xorg_cv_cc_flag__Werror
10469		if eval \${$cacheid+:} false; then :
10470  $as_echo_n "(cached) " >&6
10471else
10472  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10473/* end confdefs.h.  */
10474int i;
10475int
10476main ()
10477{
10478
10479  ;
10480  return 0;
10481}
10482_ACEOF
10483if ac_fn_c_try_link "$LINENO"; then :
10484  eval $cacheid=yes
10485else
10486  eval $cacheid=no
10487fi
10488rm -f core conftest.err conftest.$ac_objext \
10489    conftest$ac_exeext conftest.$ac_ext
10490fi
10491
10492
10493		CFLAGS="$xorg_testset_save_CFLAGS"
10494
10495		eval supported=\$$cacheid
10496		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10497$as_echo "$supported" >&6; }
10498		if test "$supported" = "yes" ; then
10499			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10500			found="yes"
10501		fi
10502	fi
10503
10504	if test $found = "no" ; then
10505		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10506			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10507		fi
10508
10509		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10510			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10511		fi
10512
10513		CFLAGS="$CFLAGS -errwarn"
10514
10515		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10516$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10517		cacheid=xorg_cv_cc_flag__errwarn
10518		if eval \${$cacheid+:} false; then :
10519  $as_echo_n "(cached) " >&6
10520else
10521  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522/* end confdefs.h.  */
10523int i;
10524int
10525main ()
10526{
10527
10528  ;
10529  return 0;
10530}
10531_ACEOF
10532if ac_fn_c_try_link "$LINENO"; then :
10533  eval $cacheid=yes
10534else
10535  eval $cacheid=no
10536fi
10537rm -f core conftest.err conftest.$ac_objext \
10538    conftest$ac_exeext conftest.$ac_ext
10539fi
10540
10541
10542		CFLAGS="$xorg_testset_save_CFLAGS"
10543
10544		eval supported=\$$cacheid
10545		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10546$as_echo "$supported" >&6; }
10547		if test "$supported" = "yes" ; then
10548			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10549			found="yes"
10550		fi
10551	fi
10552
10553
10554
10555# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10556# activate it with -Werror, so we add it here explicitly.
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570xorg_testset_save_CFLAGS="$CFLAGS"
10571
10572if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10573	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10574	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10575$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10576if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10577  $as_echo_n "(cached) " >&6
10578else
10579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10580/* end confdefs.h.  */
10581int i;
10582_ACEOF
10583if ac_fn_c_try_compile "$LINENO"; then :
10584  xorg_cv_cc_flag_unknown_warning_option=yes
10585else
10586  xorg_cv_cc_flag_unknown_warning_option=no
10587fi
10588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10589fi
10590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10591$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10592	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10593	CFLAGS="$xorg_testset_save_CFLAGS"
10594fi
10595
10596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10597	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10598		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10599	fi
10600	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10601	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10602$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10603if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10604  $as_echo_n "(cached) " >&6
10605else
10606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607/* end confdefs.h.  */
10608int i;
10609_ACEOF
10610if ac_fn_c_try_compile "$LINENO"; then :
10611  xorg_cv_cc_flag_unused_command_line_argument=yes
10612else
10613  xorg_cv_cc_flag_unused_command_line_argument=no
10614fi
10615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10616fi
10617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10618$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10619	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10620	CFLAGS="$xorg_testset_save_CFLAGS"
10621fi
10622
10623found="no"
10624
10625	if test $found = "no" ; then
10626		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10627			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10628		fi
10629
10630		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10631			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10632		fi
10633
10634		CFLAGS="$CFLAGS -Werror=attributes"
10635
10636		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10637$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10638		cacheid=xorg_cv_cc_flag__Werror_attributes
10639		if eval \${$cacheid+:} false; then :
10640  $as_echo_n "(cached) " >&6
10641else
10642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10643/* end confdefs.h.  */
10644int i;
10645int
10646main ()
10647{
10648
10649  ;
10650  return 0;
10651}
10652_ACEOF
10653if ac_fn_c_try_link "$LINENO"; then :
10654  eval $cacheid=yes
10655else
10656  eval $cacheid=no
10657fi
10658rm -f core conftest.err conftest.$ac_objext \
10659    conftest$ac_exeext conftest.$ac_ext
10660fi
10661
10662
10663		CFLAGS="$xorg_testset_save_CFLAGS"
10664
10665		eval supported=\$$cacheid
10666		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10667$as_echo "$supported" >&6; }
10668		if test "$supported" = "yes" ; then
10669			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10670			found="yes"
10671		fi
10672	fi
10673
10674
10675
10676if test "x$STRICT_COMPILE" = "xyes"; then
10677    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10678    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10679fi
10680
10681
10682
10683
10684
10685
10686cat >>confdefs.h <<_ACEOF
10687#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10688_ACEOF
10689
10690	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10691	if test "x$PVM" = "x"; then
10692		PVM="0"
10693	fi
10694
10695cat >>confdefs.h <<_ACEOF
10696#define PACKAGE_VERSION_MINOR $PVM
10697_ACEOF
10698
10699	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10700	if test "x$PVP" = "x"; then
10701		PVP="0"
10702	fi
10703
10704cat >>confdefs.h <<_ACEOF
10705#define PACKAGE_VERSION_PATCHLEVEL $PVP
10706_ACEOF
10707
10708
10709
10710CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10711mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10712|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10713echo 'git directory not found: installing possibly empty changelog.' >&2)"
10714
10715
10716
10717
10718macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10719INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10720mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10721|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10722echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10723
10724
10725
10726
10727
10728
10729if test x$APP_MAN_SUFFIX = x    ; then
10730    APP_MAN_SUFFIX=1
10731fi
10732if test x$APP_MAN_DIR = x    ; then
10733    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10734fi
10735
10736if test x$LIB_MAN_SUFFIX = x    ; then
10737    LIB_MAN_SUFFIX=3
10738fi
10739if test x$LIB_MAN_DIR = x    ; then
10740    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10741fi
10742
10743if test x$FILE_MAN_SUFFIX = x    ; then
10744    case $host_os in
10745	solaris*)	FILE_MAN_SUFFIX=4  ;;
10746	*)		FILE_MAN_SUFFIX=5  ;;
10747    esac
10748fi
10749if test x$FILE_MAN_DIR = x    ; then
10750    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10751fi
10752
10753if test x$MISC_MAN_SUFFIX = x    ; then
10754    case $host_os in
10755	solaris*)	MISC_MAN_SUFFIX=5  ;;
10756	*)		MISC_MAN_SUFFIX=7  ;;
10757    esac
10758fi
10759if test x$MISC_MAN_DIR = x    ; then
10760    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10761fi
10762
10763if test x$DRIVER_MAN_SUFFIX = x    ; then
10764    case $host_os in
10765	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10766	*)		DRIVER_MAN_SUFFIX=4  ;;
10767    esac
10768fi
10769if test x$DRIVER_MAN_DIR = x    ; then
10770    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10771fi
10772
10773if test x$ADMIN_MAN_SUFFIX = x    ; then
10774    case $host_os in
10775	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10776	*)		ADMIN_MAN_SUFFIX=8  ;;
10777    esac
10778fi
10779if test x$ADMIN_MAN_DIR = x    ; then
10780    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10781fi
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797XORG_MAN_PAGE="X Version 11"
10798
10799MAN_SUBSTS="\
10800	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10801	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10802	-e 's|__xservername__|Xorg|g' \
10803	-e 's|__xconfigfile__|xorg.conf|g' \
10804	-e 's|__projectroot__|\$(prefix)|g' \
10805	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10806	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10807	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10808	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10809	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10810	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10811	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10812
10813
10814
10815# Check whether --enable-silent-rules was given.
10816if test "${enable_silent_rules+set}" = set; then :
10817  enableval=$enable_silent_rules;
10818fi
10819
10820case $enable_silent_rules in # (((
10821  yes) AM_DEFAULT_VERBOSITY=0;;
10822   no) AM_DEFAULT_VERBOSITY=1;;
10823    *) AM_DEFAULT_VERBOSITY=0;;
10824esac
10825am_make=${MAKE-make}
10826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10827$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10828if ${am_cv_make_support_nested_variables+:} false; then :
10829  $as_echo_n "(cached) " >&6
10830else
10831  if $as_echo 'TRUE=$(BAR$(V))
10832BAR0=false
10833BAR1=true
10834V=1
10835am__doit:
10836	@$(TRUE)
10837.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10838  am_cv_make_support_nested_variables=yes
10839else
10840  am_cv_make_support_nested_variables=no
10841fi
10842fi
10843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10844$as_echo "$am_cv_make_support_nested_variables" >&6; }
10845if test $am_cv_make_support_nested_variables = yes; then
10846    AM_V='$(V)'
10847  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10848else
10849  AM_V=$AM_DEFAULT_VERBOSITY
10850  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10851fi
10852AM_BACKSLASH='\'
10853
10854
10855
10856# Initialize libtool
10857# Check whether --enable-static was given.
10858if test "${enable_static+set}" = set; then :
10859  enableval=$enable_static; p=${PACKAGE-default}
10860    case $enableval in
10861    yes) enable_static=yes ;;
10862    no) enable_static=no ;;
10863    *)
10864     enable_static=no
10865      # Look at the argument we got.  We use all the common list separators.
10866      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10867      for pkg in $enableval; do
10868	IFS=$lt_save_ifs
10869	if test "X$pkg" = "X$p"; then
10870	  enable_static=yes
10871	fi
10872      done
10873      IFS=$lt_save_ifs
10874      ;;
10875    esac
10876else
10877  enable_static=no
10878fi
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888case `pwd` in
10889  *\ * | *\	*)
10890    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10891$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10892esac
10893
10894
10895
10896macro_version='2.4.6'
10897macro_revision='2.4.6'
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911ltmain=$ac_aux_dir/ltmain.sh
10912
10913# Backslashify metacharacters that are still active within
10914# double-quoted strings.
10915sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10916
10917# Same as above, but do not quote variable references.
10918double_quote_subst='s/\(["`\\]\)/\\\1/g'
10919
10920# Sed substitution to delay expansion of an escaped shell variable in a
10921# double_quote_subst'ed string.
10922delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10923
10924# Sed substitution to delay expansion of an escaped single quote.
10925delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10926
10927# Sed substitution to avoid accidental globbing in evaled expressions
10928no_glob_subst='s/\*/\\\*/g'
10929
10930ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10931ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10932ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10933
10934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10935$as_echo_n "checking how to print strings... " >&6; }
10936# Test print first, because it will be a builtin if present.
10937if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10938   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10939  ECHO='print -r --'
10940elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10941  ECHO='printf %s\n'
10942else
10943  # Use this function as a fallback that always works.
10944  func_fallback_echo ()
10945  {
10946    eval 'cat <<_LTECHO_EOF
10947$1
10948_LTECHO_EOF'
10949  }
10950  ECHO='func_fallback_echo'
10951fi
10952
10953# func_echo_all arg...
10954# Invoke $ECHO with all args, space-separated.
10955func_echo_all ()
10956{
10957    $ECHO ""
10958}
10959
10960case $ECHO in
10961  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10962$as_echo "printf" >&6; } ;;
10963  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10964$as_echo "print -r" >&6; } ;;
10965  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10966$as_echo "cat" >&6; } ;;
10967esac
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10983$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10984if ${ac_cv_path_SED+:} false; then :
10985  $as_echo_n "(cached) " >&6
10986else
10987            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10988     for ac_i in 1 2 3 4 5 6 7; do
10989       ac_script="$ac_script$as_nl$ac_script"
10990     done
10991     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10992     { ac_script=; unset ac_script;}
10993     if test -z "$SED"; then
10994  ac_path_SED_found=false
10995  # Loop through the user's path and test for each of PROGNAME-LIST
10996  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10997for as_dir in $PATH
10998do
10999  IFS=$as_save_IFS
11000  test -z "$as_dir" && as_dir=.
11001    for ac_prog in sed gsed; do
11002    for ac_exec_ext in '' $ac_executable_extensions; do
11003      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11004      as_fn_executable_p "$ac_path_SED" || continue
11005# Check for GNU ac_path_SED and select it if it is found.
11006  # Check for GNU $ac_path_SED
11007case `"$ac_path_SED" --version 2>&1` in
11008*GNU*)
11009  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11010*)
11011  ac_count=0
11012  $as_echo_n 0123456789 >"conftest.in"
11013  while :
11014  do
11015    cat "conftest.in" "conftest.in" >"conftest.tmp"
11016    mv "conftest.tmp" "conftest.in"
11017    cp "conftest.in" "conftest.nl"
11018    $as_echo '' >> "conftest.nl"
11019    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11020    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11021    as_fn_arith $ac_count + 1 && ac_count=$as_val
11022    if test $ac_count -gt ${ac_path_SED_max-0}; then
11023      # Best one so far, save it but keep looking for a better one
11024      ac_cv_path_SED="$ac_path_SED"
11025      ac_path_SED_max=$ac_count
11026    fi
11027    # 10*(2^10) chars as input seems more than enough
11028    test $ac_count -gt 10 && break
11029  done
11030  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11031esac
11032
11033      $ac_path_SED_found && break 3
11034    done
11035  done
11036  done
11037IFS=$as_save_IFS
11038  if test -z "$ac_cv_path_SED"; then
11039    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
11040  fi
11041else
11042  ac_cv_path_SED=$SED
11043fi
11044
11045fi
11046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11047$as_echo "$ac_cv_path_SED" >&6; }
11048 SED="$ac_cv_path_SED"
11049  rm -f conftest.sed
11050
11051test -z "$SED" && SED=sed
11052Xsed="$SED -e 1s/^X//"
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11065$as_echo_n "checking for fgrep... " >&6; }
11066if ${ac_cv_path_FGREP+:} false; then :
11067  $as_echo_n "(cached) " >&6
11068else
11069  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11070   then ac_cv_path_FGREP="$GREP -F"
11071   else
11072     if test -z "$FGREP"; then
11073  ac_path_FGREP_found=false
11074  # Loop through the user's path and test for each of PROGNAME-LIST
11075  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11077do
11078  IFS=$as_save_IFS
11079  test -z "$as_dir" && as_dir=.
11080    for ac_prog in fgrep; do
11081    for ac_exec_ext in '' $ac_executable_extensions; do
11082      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11083      as_fn_executable_p "$ac_path_FGREP" || continue
11084# Check for GNU ac_path_FGREP and select it if it is found.
11085  # Check for GNU $ac_path_FGREP
11086case `"$ac_path_FGREP" --version 2>&1` in
11087*GNU*)
11088  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11089*)
11090  ac_count=0
11091  $as_echo_n 0123456789 >"conftest.in"
11092  while :
11093  do
11094    cat "conftest.in" "conftest.in" >"conftest.tmp"
11095    mv "conftest.tmp" "conftest.in"
11096    cp "conftest.in" "conftest.nl"
11097    $as_echo 'FGREP' >> "conftest.nl"
11098    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11099    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11100    as_fn_arith $ac_count + 1 && ac_count=$as_val
11101    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11102      # Best one so far, save it but keep looking for a better one
11103      ac_cv_path_FGREP="$ac_path_FGREP"
11104      ac_path_FGREP_max=$ac_count
11105    fi
11106    # 10*(2^10) chars as input seems more than enough
11107    test $ac_count -gt 10 && break
11108  done
11109  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11110esac
11111
11112      $ac_path_FGREP_found && break 3
11113    done
11114  done
11115  done
11116IFS=$as_save_IFS
11117  if test -z "$ac_cv_path_FGREP"; then
11118    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11119  fi
11120else
11121  ac_cv_path_FGREP=$FGREP
11122fi
11123
11124   fi
11125fi
11126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11127$as_echo "$ac_cv_path_FGREP" >&6; }
11128 FGREP="$ac_cv_path_FGREP"
11129
11130
11131test -z "$GREP" && GREP=grep
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151# Check whether --with-gnu-ld was given.
11152if test "${with_gnu_ld+set}" = set; then :
11153  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
11154else
11155  with_gnu_ld=no
11156fi
11157
11158ac_prog=ld
11159if test yes = "$GCC"; then
11160  # Check if gcc -print-prog-name=ld gives a path.
11161  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11162$as_echo_n "checking for ld used by $CC... " >&6; }
11163  case $host in
11164  *-*-mingw*)
11165    # gcc leaves a trailing carriage return, which upsets mingw
11166    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11167  *)
11168    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11169  esac
11170  case $ac_prog in
11171    # Accept absolute paths.
11172    [\\/]* | ?:[\\/]*)
11173      re_direlt='/[^/][^/]*/\.\./'
11174      # Canonicalize the pathname of ld
11175      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11176      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11177	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11178      done
11179      test -z "$LD" && LD=$ac_prog
11180      ;;
11181  "")
11182    # If it fails, then pretend we aren't using GCC.
11183    ac_prog=ld
11184    ;;
11185  *)
11186    # If it is relative, then search for the first ld in PATH.
11187    with_gnu_ld=unknown
11188    ;;
11189  esac
11190elif test yes = "$with_gnu_ld"; then
11191  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11192$as_echo_n "checking for GNU ld... " >&6; }
11193else
11194  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11195$as_echo_n "checking for non-GNU ld... " >&6; }
11196fi
11197if ${lt_cv_path_LD+:} false; then :
11198  $as_echo_n "(cached) " >&6
11199else
11200  if test -z "$LD"; then
11201  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11202  for ac_dir in $PATH; do
11203    IFS=$lt_save_ifs
11204    test -z "$ac_dir" && ac_dir=.
11205    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11206      lt_cv_path_LD=$ac_dir/$ac_prog
11207      # Check to see if the program is GNU ld.  I'd rather use --version,
11208      # but apparently some variants of GNU ld only accept -v.
11209      # Break only if it was the GNU/non-GNU ld that we prefer.
11210      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11211      *GNU* | *'with BFD'*)
11212	test no != "$with_gnu_ld" && break
11213	;;
11214      *)
11215	test yes != "$with_gnu_ld" && break
11216	;;
11217      esac
11218    fi
11219  done
11220  IFS=$lt_save_ifs
11221else
11222  lt_cv_path_LD=$LD # Let the user override the test with a path.
11223fi
11224fi
11225
11226LD=$lt_cv_path_LD
11227if test -n "$LD"; then
11228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11229$as_echo "$LD" >&6; }
11230else
11231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11232$as_echo "no" >&6; }
11233fi
11234test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11236$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11237if ${lt_cv_prog_gnu_ld+:} false; then :
11238  $as_echo_n "(cached) " >&6
11239else
11240  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11241case `$LD -v 2>&1 </dev/null` in
11242*GNU* | *'with BFD'*)
11243  lt_cv_prog_gnu_ld=yes
11244  ;;
11245*)
11246  lt_cv_prog_gnu_ld=no
11247  ;;
11248esac
11249fi
11250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11251$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11252with_gnu_ld=$lt_cv_prog_gnu_ld
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11263$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11264if ${lt_cv_path_NM+:} false; then :
11265  $as_echo_n "(cached) " >&6
11266else
11267  if test -n "$NM"; then
11268  # Let the user override the test.
11269  lt_cv_path_NM=$NM
11270else
11271  lt_nm_to_check=${ac_tool_prefix}nm
11272  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11273    lt_nm_to_check="$lt_nm_to_check nm"
11274  fi
11275  for lt_tmp_nm in $lt_nm_to_check; do
11276    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11277    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11278      IFS=$lt_save_ifs
11279      test -z "$ac_dir" && ac_dir=.
11280      tmp_nm=$ac_dir/$lt_tmp_nm
11281      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11282	# Check to see if the nm accepts a BSD-compat flag.
11283	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11284	#   nm: unknown option "B" ignored
11285	# Tru64's nm complains that /dev/null is an invalid object file
11286	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11287	case $build_os in
11288	mingw*) lt_bad_file=conftest.nm/nofile ;;
11289	*) lt_bad_file=/dev/null ;;
11290	esac
11291	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11292	*$lt_bad_file* | *'Invalid file or object type'*)
11293	  lt_cv_path_NM="$tmp_nm -B"
11294	  break 2
11295	  ;;
11296	*)
11297	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11298	  */dev/null*)
11299	    lt_cv_path_NM="$tmp_nm -p"
11300	    break 2
11301	    ;;
11302	  *)
11303	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11304	    continue # so that we can try to find one that supports BSD flags
11305	    ;;
11306	  esac
11307	  ;;
11308	esac
11309      fi
11310    done
11311    IFS=$lt_save_ifs
11312  done
11313  : ${lt_cv_path_NM=no}
11314fi
11315fi
11316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11317$as_echo "$lt_cv_path_NM" >&6; }
11318if test no != "$lt_cv_path_NM"; then
11319  NM=$lt_cv_path_NM
11320else
11321  # Didn't find any BSD compatible name lister, look for dumpbin.
11322  if test -n "$DUMPBIN"; then :
11323    # Let the user override the test.
11324  else
11325    if test -n "$ac_tool_prefix"; then
11326  for ac_prog in dumpbin "link -dump"
11327  do
11328    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11329set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11331$as_echo_n "checking for $ac_word... " >&6; }
11332if ${ac_cv_prog_DUMPBIN+:} false; then :
11333  $as_echo_n "(cached) " >&6
11334else
11335  if test -n "$DUMPBIN"; then
11336  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11337else
11338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11339for as_dir in $PATH
11340do
11341  IFS=$as_save_IFS
11342  test -z "$as_dir" && as_dir=.
11343    for ac_exec_ext in '' $ac_executable_extensions; do
11344  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11345    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11346    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11347    break 2
11348  fi
11349done
11350  done
11351IFS=$as_save_IFS
11352
11353fi
11354fi
11355DUMPBIN=$ac_cv_prog_DUMPBIN
11356if test -n "$DUMPBIN"; then
11357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11358$as_echo "$DUMPBIN" >&6; }
11359else
11360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11361$as_echo "no" >&6; }
11362fi
11363
11364
11365    test -n "$DUMPBIN" && break
11366  done
11367fi
11368if test -z "$DUMPBIN"; then
11369  ac_ct_DUMPBIN=$DUMPBIN
11370  for ac_prog in dumpbin "link -dump"
11371do
11372  # Extract the first word of "$ac_prog", so it can be a program name with args.
11373set dummy $ac_prog; ac_word=$2
11374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11375$as_echo_n "checking for $ac_word... " >&6; }
11376if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11377  $as_echo_n "(cached) " >&6
11378else
11379  if test -n "$ac_ct_DUMPBIN"; then
11380  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11381else
11382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11383for as_dir in $PATH
11384do
11385  IFS=$as_save_IFS
11386  test -z "$as_dir" && as_dir=.
11387    for ac_exec_ext in '' $ac_executable_extensions; do
11388  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11389    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11390    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11391    break 2
11392  fi
11393done
11394  done
11395IFS=$as_save_IFS
11396
11397fi
11398fi
11399ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11400if test -n "$ac_ct_DUMPBIN"; then
11401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11402$as_echo "$ac_ct_DUMPBIN" >&6; }
11403else
11404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405$as_echo "no" >&6; }
11406fi
11407
11408
11409  test -n "$ac_ct_DUMPBIN" && break
11410done
11411
11412  if test "x$ac_ct_DUMPBIN" = x; then
11413    DUMPBIN=":"
11414  else
11415    case $cross_compiling:$ac_tool_warned in
11416yes:)
11417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11419ac_tool_warned=yes ;;
11420esac
11421    DUMPBIN=$ac_ct_DUMPBIN
11422  fi
11423fi
11424
11425    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11426    *COFF*)
11427      DUMPBIN="$DUMPBIN -symbols -headers"
11428      ;;
11429    *)
11430      DUMPBIN=:
11431      ;;
11432    esac
11433  fi
11434
11435  if test : != "$DUMPBIN"; then
11436    NM=$DUMPBIN
11437  fi
11438fi
11439test -z "$NM" && NM=nm
11440
11441
11442
11443
11444
11445
11446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11447$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11448if ${lt_cv_nm_interface+:} false; then :
11449  $as_echo_n "(cached) " >&6
11450else
11451  lt_cv_nm_interface="BSD nm"
11452  echo "int some_variable = 0;" > conftest.$ac_ext
11453  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11454  (eval "$ac_compile" 2>conftest.err)
11455  cat conftest.err >&5
11456  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11457  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11458  cat conftest.err >&5
11459  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11460  cat conftest.out >&5
11461  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11462    lt_cv_nm_interface="MS dumpbin"
11463  fi
11464  rm -f conftest*
11465fi
11466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11467$as_echo "$lt_cv_nm_interface" >&6; }
11468
11469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11470$as_echo_n "checking whether ln -s works... " >&6; }
11471LN_S=$as_ln_s
11472if test "$LN_S" = "ln -s"; then
11473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11474$as_echo "yes" >&6; }
11475else
11476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11477$as_echo "no, using $LN_S" >&6; }
11478fi
11479
11480# find the maximum length of command line arguments
11481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11482$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11483if ${lt_cv_sys_max_cmd_len+:} false; then :
11484  $as_echo_n "(cached) " >&6
11485else
11486    i=0
11487  teststring=ABCD
11488
11489  case $build_os in
11490  msdosdjgpp*)
11491    # On DJGPP, this test can blow up pretty badly due to problems in libc
11492    # (any single argument exceeding 2000 bytes causes a buffer overrun
11493    # during glob expansion).  Even if it were fixed, the result of this
11494    # check would be larger than it should be.
11495    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11496    ;;
11497
11498  gnu*)
11499    # Under GNU Hurd, this test is not required because there is
11500    # no limit to the length of command line arguments.
11501    # Libtool will interpret -1 as no limit whatsoever
11502    lt_cv_sys_max_cmd_len=-1;
11503    ;;
11504
11505  cygwin* | mingw* | cegcc*)
11506    # On Win9x/ME, this test blows up -- it succeeds, but takes
11507    # about 5 minutes as the teststring grows exponentially.
11508    # Worse, since 9x/ME are not pre-emptively multitasking,
11509    # you end up with a "frozen" computer, even though with patience
11510    # the test eventually succeeds (with a max line length of 256k).
11511    # Instead, let's just punt: use the minimum linelength reported by
11512    # all of the supported platforms: 8192 (on NT/2K/XP).
11513    lt_cv_sys_max_cmd_len=8192;
11514    ;;
11515
11516  mint*)
11517    # On MiNT this can take a long time and run out of memory.
11518    lt_cv_sys_max_cmd_len=8192;
11519    ;;
11520
11521  amigaos*)
11522    # On AmigaOS with pdksh, this test takes hours, literally.
11523    # So we just punt and use a minimum line length of 8192.
11524    lt_cv_sys_max_cmd_len=8192;
11525    ;;
11526
11527  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
11528    # This has been around since 386BSD, at least.  Likely further.
11529    if test -x /sbin/sysctl; then
11530      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11531    elif test -x /usr/sbin/sysctl; then
11532      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11533    else
11534      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11535    fi
11536    # And add a safety zone
11537    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11538    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11539    ;;
11540
11541  interix*)
11542    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11543    lt_cv_sys_max_cmd_len=196608
11544    ;;
11545
11546  os2*)
11547    # The test takes a long time on OS/2.
11548    lt_cv_sys_max_cmd_len=8192
11549    ;;
11550
11551  osf*)
11552    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11553    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11554    # nice to cause kernel panics so lets avoid the loop below.
11555    # First set a reasonable default.
11556    lt_cv_sys_max_cmd_len=16384
11557    #
11558    if test -x /sbin/sysconfig; then
11559      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11560        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11561      esac
11562    fi
11563    ;;
11564  sco3.2v5*)
11565    lt_cv_sys_max_cmd_len=102400
11566    ;;
11567  sysv5* | sco5v6* | sysv4.2uw2*)
11568    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11569    if test -n "$kargmax"; then
11570      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11571    else
11572      lt_cv_sys_max_cmd_len=32768
11573    fi
11574    ;;
11575  *)
11576    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11577    if test -n "$lt_cv_sys_max_cmd_len" && \
11578       test undefined != "$lt_cv_sys_max_cmd_len"; then
11579      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11580      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11581    else
11582      # Make teststring a little bigger before we do anything with it.
11583      # a 1K string should be a reasonable start.
11584      for i in 1 2 3 4 5 6 7 8; do
11585        teststring=$teststring$teststring
11586      done
11587      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11588      # If test is not a shell built-in, we'll probably end up computing a
11589      # maximum length that is only half of the actual maximum length, but
11590      # we can't tell.
11591      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
11592	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11593	      test 17 != "$i" # 1/2 MB should be enough
11594      do
11595        i=`expr $i + 1`
11596        teststring=$teststring$teststring
11597      done
11598      # Only check the string length outside the loop.
11599      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11600      teststring=
11601      # Add a significant safety factor because C++ compilers can tack on
11602      # massive amounts of additional arguments before passing them to the
11603      # linker.  It appears as though 1/2 is a usable value.
11604      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11605    fi
11606    ;;
11607  esac
11608
11609fi
11610
11611if test -n "$lt_cv_sys_max_cmd_len"; then
11612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11613$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11614else
11615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11616$as_echo "none" >&6; }
11617fi
11618max_cmd_len=$lt_cv_sys_max_cmd_len
11619
11620
11621
11622
11623
11624
11625: ${CP="cp -f"}
11626: ${MV="mv -f"}
11627: ${RM="rm -f"}
11628
11629if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11630  lt_unset=unset
11631else
11632  lt_unset=false
11633fi
11634
11635
11636
11637
11638
11639# test EBCDIC or ASCII
11640case `echo X|tr X '\101'` in
11641 A) # ASCII based system
11642    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11643  lt_SP2NL='tr \040 \012'
11644  lt_NL2SP='tr \015\012 \040\040'
11645  ;;
11646 *) # EBCDIC based system
11647  lt_SP2NL='tr \100 \n'
11648  lt_NL2SP='tr \r\n \100\100'
11649  ;;
11650esac
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11661$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11662if ${lt_cv_to_host_file_cmd+:} false; then :
11663  $as_echo_n "(cached) " >&6
11664else
11665  case $host in
11666  *-*-mingw* )
11667    case $build in
11668      *-*-mingw* ) # actually msys
11669        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11670        ;;
11671      *-*-cygwin* )
11672        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11673        ;;
11674      * ) # otherwise, assume *nix
11675        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11676        ;;
11677    esac
11678    ;;
11679  *-*-cygwin* )
11680    case $build in
11681      *-*-mingw* ) # actually msys
11682        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11683        ;;
11684      *-*-cygwin* )
11685        lt_cv_to_host_file_cmd=func_convert_file_noop
11686        ;;
11687      * ) # otherwise, assume *nix
11688        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11689        ;;
11690    esac
11691    ;;
11692  * ) # unhandled hosts (and "normal" native builds)
11693    lt_cv_to_host_file_cmd=func_convert_file_noop
11694    ;;
11695esac
11696
11697fi
11698
11699to_host_file_cmd=$lt_cv_to_host_file_cmd
11700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11701$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11702
11703
11704
11705
11706
11707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11708$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11709if ${lt_cv_to_tool_file_cmd+:} false; then :
11710  $as_echo_n "(cached) " >&6
11711else
11712  #assume ordinary cross tools, or native build.
11713lt_cv_to_tool_file_cmd=func_convert_file_noop
11714case $host in
11715  *-*-mingw* )
11716    case $build in
11717      *-*-mingw* ) # actually msys
11718        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11719        ;;
11720    esac
11721    ;;
11722esac
11723
11724fi
11725
11726to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11728$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11729
11730
11731
11732
11733
11734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11735$as_echo_n "checking for $LD option to reload object files... " >&6; }
11736if ${lt_cv_ld_reload_flag+:} false; then :
11737  $as_echo_n "(cached) " >&6
11738else
11739  lt_cv_ld_reload_flag='-r'
11740fi
11741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11742$as_echo "$lt_cv_ld_reload_flag" >&6; }
11743reload_flag=$lt_cv_ld_reload_flag
11744case $reload_flag in
11745"" | " "*) ;;
11746*) reload_flag=" $reload_flag" ;;
11747esac
11748reload_cmds='$LD$reload_flag -o $output$reload_objs'
11749case $host_os in
11750  cygwin* | mingw* | pw32* | cegcc*)
11751    if test yes != "$GCC"; then
11752      reload_cmds=false
11753    fi
11754    ;;
11755  darwin*)
11756    if test yes = "$GCC"; then
11757      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
11758    else
11759      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11760    fi
11761    ;;
11762esac
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772if test -n "$ac_tool_prefix"; then
11773  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11774set dummy ${ac_tool_prefix}objdump; ac_word=$2
11775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11776$as_echo_n "checking for $ac_word... " >&6; }
11777if ${ac_cv_prog_OBJDUMP+:} false; then :
11778  $as_echo_n "(cached) " >&6
11779else
11780  if test -n "$OBJDUMP"; then
11781  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11782else
11783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784for as_dir in $PATH
11785do
11786  IFS=$as_save_IFS
11787  test -z "$as_dir" && as_dir=.
11788    for ac_exec_ext in '' $ac_executable_extensions; do
11789  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11790    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11791    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11792    break 2
11793  fi
11794done
11795  done
11796IFS=$as_save_IFS
11797
11798fi
11799fi
11800OBJDUMP=$ac_cv_prog_OBJDUMP
11801if test -n "$OBJDUMP"; then
11802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11803$as_echo "$OBJDUMP" >&6; }
11804else
11805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806$as_echo "no" >&6; }
11807fi
11808
11809
11810fi
11811if test -z "$ac_cv_prog_OBJDUMP"; then
11812  ac_ct_OBJDUMP=$OBJDUMP
11813  # Extract the first word of "objdump", so it can be a program name with args.
11814set dummy objdump; ac_word=$2
11815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11816$as_echo_n "checking for $ac_word... " >&6; }
11817if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11818  $as_echo_n "(cached) " >&6
11819else
11820  if test -n "$ac_ct_OBJDUMP"; then
11821  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11822else
11823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11824for as_dir in $PATH
11825do
11826  IFS=$as_save_IFS
11827  test -z "$as_dir" && as_dir=.
11828    for ac_exec_ext in '' $ac_executable_extensions; do
11829  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11830    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11831    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11832    break 2
11833  fi
11834done
11835  done
11836IFS=$as_save_IFS
11837
11838fi
11839fi
11840ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11841if test -n "$ac_ct_OBJDUMP"; then
11842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11843$as_echo "$ac_ct_OBJDUMP" >&6; }
11844else
11845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846$as_echo "no" >&6; }
11847fi
11848
11849  if test "x$ac_ct_OBJDUMP" = x; then
11850    OBJDUMP="false"
11851  else
11852    case $cross_compiling:$ac_tool_warned in
11853yes:)
11854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11856ac_tool_warned=yes ;;
11857esac
11858    OBJDUMP=$ac_ct_OBJDUMP
11859  fi
11860else
11861  OBJDUMP="$ac_cv_prog_OBJDUMP"
11862fi
11863
11864test -z "$OBJDUMP" && OBJDUMP=objdump
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11875$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11876if ${lt_cv_deplibs_check_method+:} false; then :
11877  $as_echo_n "(cached) " >&6
11878else
11879  lt_cv_file_magic_cmd='$MAGIC_CMD'
11880lt_cv_file_magic_test_file=
11881lt_cv_deplibs_check_method='unknown'
11882# Need to set the preceding variable on all platforms that support
11883# interlibrary dependencies.
11884# 'none' -- dependencies not supported.
11885# 'unknown' -- same as none, but documents that we really don't know.
11886# 'pass_all' -- all dependencies passed with no checks.
11887# 'test_compile' -- check by making test program.
11888# 'file_magic [[regex]]' -- check by looking for files in library path
11889# that responds to the $file_magic_cmd with a given extended regex.
11890# If you have 'file' or equivalent on your system and you're not sure
11891# whether 'pass_all' will *always* work, you probably want this one.
11892
11893case $host_os in
11894aix[4-9]*)
11895  lt_cv_deplibs_check_method=pass_all
11896  ;;
11897
11898beos*)
11899  lt_cv_deplibs_check_method=pass_all
11900  ;;
11901
11902bsdi[45]*)
11903  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11904  lt_cv_file_magic_cmd='/usr/bin/file -L'
11905  lt_cv_file_magic_test_file=/shlib/libc.so
11906  ;;
11907
11908cygwin*)
11909  # func_win32_libid is a shell function defined in ltmain.sh
11910  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11911  lt_cv_file_magic_cmd='func_win32_libid'
11912  ;;
11913
11914mingw* | pw32*)
11915  # Base MSYS/MinGW do not provide the 'file' command needed by
11916  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11917  # unless we find 'file', for example because we are cross-compiling.
11918  if ( file / ) >/dev/null 2>&1; then
11919    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11920    lt_cv_file_magic_cmd='func_win32_libid'
11921  else
11922    # Keep this pattern in sync with the one in func_win32_libid.
11923    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11924    lt_cv_file_magic_cmd='$OBJDUMP -f'
11925  fi
11926  ;;
11927
11928cegcc*)
11929  # use the weaker test based on 'objdump'. See mingw*.
11930  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11931  lt_cv_file_magic_cmd='$OBJDUMP -f'
11932  ;;
11933
11934darwin* | rhapsody*)
11935  lt_cv_deplibs_check_method=pass_all
11936  ;;
11937
11938freebsd* | dragonfly*)
11939  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11940    case $host_cpu in
11941    i*86 )
11942      # Not sure whether the presence of OpenBSD here was a mistake.
11943      # Let's accept both of them until this is cleared up.
11944      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11945      lt_cv_file_magic_cmd=/usr/bin/file
11946      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11947      ;;
11948    esac
11949  else
11950    lt_cv_deplibs_check_method=pass_all
11951  fi
11952  ;;
11953
11954haiku*)
11955  lt_cv_deplibs_check_method=pass_all
11956  ;;
11957
11958hpux10.20* | hpux11*)
11959  lt_cv_file_magic_cmd=/usr/bin/file
11960  case $host_cpu in
11961  ia64*)
11962    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11963    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11964    ;;
11965  hppa*64*)
11966    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]'
11967    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11968    ;;
11969  *)
11970    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11971    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11972    ;;
11973  esac
11974  ;;
11975
11976interix[3-9]*)
11977  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11978  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11979  ;;
11980
11981irix5* | irix6* | nonstopux*)
11982  case $LD in
11983  *-32|*"-32 ") libmagic=32-bit;;
11984  *-n32|*"-n32 ") libmagic=N32;;
11985  *-64|*"-64 ") libmagic=64-bit;;
11986  *) libmagic=never-match;;
11987  esac
11988  lt_cv_deplibs_check_method=pass_all
11989  ;;
11990
11991# This must be glibc/ELF.
11992linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11993  lt_cv_deplibs_check_method=pass_all
11994  ;;
11995
11996netbsd* | netbsdelf*-gnu)
11997  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11998    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11999  else
12000    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12001  fi
12002  ;;
12003
12004newos6*)
12005  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12006  lt_cv_file_magic_cmd=/usr/bin/file
12007  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12008  ;;
12009
12010*nto* | *qnx*)
12011  lt_cv_deplibs_check_method=pass_all
12012  ;;
12013
12014openbsd* | bitrig*)
12015  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12016    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12017  else
12018    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12019  fi
12020  ;;
12021
12022osf3* | osf4* | osf5*)
12023  lt_cv_deplibs_check_method=pass_all
12024  ;;
12025
12026rdos*)
12027  lt_cv_deplibs_check_method=pass_all
12028  ;;
12029
12030solaris*)
12031  lt_cv_deplibs_check_method=pass_all
12032  ;;
12033
12034sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12035  lt_cv_deplibs_check_method=pass_all
12036  ;;
12037
12038sysv4 | sysv4.3*)
12039  case $host_vendor in
12040  motorola)
12041    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]'
12042    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12043    ;;
12044  ncr)
12045    lt_cv_deplibs_check_method=pass_all
12046    ;;
12047  sequent)
12048    lt_cv_file_magic_cmd='/bin/file'
12049    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12050    ;;
12051  sni)
12052    lt_cv_file_magic_cmd='/bin/file'
12053    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12054    lt_cv_file_magic_test_file=/lib/libc.so
12055    ;;
12056  siemens)
12057    lt_cv_deplibs_check_method=pass_all
12058    ;;
12059  pc)
12060    lt_cv_deplibs_check_method=pass_all
12061    ;;
12062  esac
12063  ;;
12064
12065tpf*)
12066  lt_cv_deplibs_check_method=pass_all
12067  ;;
12068os2*)
12069  lt_cv_deplibs_check_method=pass_all
12070  ;;
12071esac
12072
12073fi
12074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12075$as_echo "$lt_cv_deplibs_check_method" >&6; }
12076
12077file_magic_glob=
12078want_nocaseglob=no
12079if test "$build" = "$host"; then
12080  case $host_os in
12081  mingw* | pw32*)
12082    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12083      want_nocaseglob=yes
12084    else
12085      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12086    fi
12087    ;;
12088  esac
12089fi
12090
12091file_magic_cmd=$lt_cv_file_magic_cmd
12092deplibs_check_method=$lt_cv_deplibs_check_method
12093test -z "$deplibs_check_method" && deplibs_check_method=unknown
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116if test -n "$ac_tool_prefix"; then
12117  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12118set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12120$as_echo_n "checking for $ac_word... " >&6; }
12121if ${ac_cv_prog_DLLTOOL+:} false; then :
12122  $as_echo_n "(cached) " >&6
12123else
12124  if test -n "$DLLTOOL"; then
12125  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12126else
12127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128for as_dir in $PATH
12129do
12130  IFS=$as_save_IFS
12131  test -z "$as_dir" && as_dir=.
12132    for ac_exec_ext in '' $ac_executable_extensions; do
12133  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12134    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12136    break 2
12137  fi
12138done
12139  done
12140IFS=$as_save_IFS
12141
12142fi
12143fi
12144DLLTOOL=$ac_cv_prog_DLLTOOL
12145if test -n "$DLLTOOL"; then
12146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12147$as_echo "$DLLTOOL" >&6; }
12148else
12149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150$as_echo "no" >&6; }
12151fi
12152
12153
12154fi
12155if test -z "$ac_cv_prog_DLLTOOL"; then
12156  ac_ct_DLLTOOL=$DLLTOOL
12157  # Extract the first word of "dlltool", so it can be a program name with args.
12158set dummy dlltool; ac_word=$2
12159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12160$as_echo_n "checking for $ac_word... " >&6; }
12161if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12162  $as_echo_n "(cached) " >&6
12163else
12164  if test -n "$ac_ct_DLLTOOL"; then
12165  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12166else
12167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12168for as_dir in $PATH
12169do
12170  IFS=$as_save_IFS
12171  test -z "$as_dir" && as_dir=.
12172    for ac_exec_ext in '' $ac_executable_extensions; do
12173  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12174    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12175    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12176    break 2
12177  fi
12178done
12179  done
12180IFS=$as_save_IFS
12181
12182fi
12183fi
12184ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12185if test -n "$ac_ct_DLLTOOL"; then
12186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12187$as_echo "$ac_ct_DLLTOOL" >&6; }
12188else
12189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12190$as_echo "no" >&6; }
12191fi
12192
12193  if test "x$ac_ct_DLLTOOL" = x; then
12194    DLLTOOL="false"
12195  else
12196    case $cross_compiling:$ac_tool_warned in
12197yes:)
12198{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12199$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12200ac_tool_warned=yes ;;
12201esac
12202    DLLTOOL=$ac_ct_DLLTOOL
12203  fi
12204else
12205  DLLTOOL="$ac_cv_prog_DLLTOOL"
12206fi
12207
12208test -z "$DLLTOOL" && DLLTOOL=dlltool
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12220$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12221if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12222  $as_echo_n "(cached) " >&6
12223else
12224  lt_cv_sharedlib_from_linklib_cmd='unknown'
12225
12226case $host_os in
12227cygwin* | mingw* | pw32* | cegcc*)
12228  # two different shell functions defined in ltmain.sh;
12229  # decide which one to use based on capabilities of $DLLTOOL
12230  case `$DLLTOOL --help 2>&1` in
12231  *--identify-strict*)
12232    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12233    ;;
12234  *)
12235    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12236    ;;
12237  esac
12238  ;;
12239*)
12240  # fallback: assume linklib IS sharedlib
12241  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12242  ;;
12243esac
12244
12245fi
12246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12247$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12248sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12249test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12250
12251
12252
12253
12254
12255
12256
12257if test -n "$ac_tool_prefix"; then
12258  for ac_prog in ar
12259  do
12260    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12261set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12263$as_echo_n "checking for $ac_word... " >&6; }
12264if ${ac_cv_prog_AR+:} false; then :
12265  $as_echo_n "(cached) " >&6
12266else
12267  if test -n "$AR"; then
12268  ac_cv_prog_AR="$AR" # Let the user override the test.
12269else
12270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12271for as_dir in $PATH
12272do
12273  IFS=$as_save_IFS
12274  test -z "$as_dir" && as_dir=.
12275    for ac_exec_ext in '' $ac_executable_extensions; do
12276  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12277    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12279    break 2
12280  fi
12281done
12282  done
12283IFS=$as_save_IFS
12284
12285fi
12286fi
12287AR=$ac_cv_prog_AR
12288if test -n "$AR"; then
12289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12290$as_echo "$AR" >&6; }
12291else
12292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293$as_echo "no" >&6; }
12294fi
12295
12296
12297    test -n "$AR" && break
12298  done
12299fi
12300if test -z "$AR"; then
12301  ac_ct_AR=$AR
12302  for ac_prog in ar
12303do
12304  # Extract the first word of "$ac_prog", so it can be a program name with args.
12305set dummy $ac_prog; ac_word=$2
12306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12307$as_echo_n "checking for $ac_word... " >&6; }
12308if ${ac_cv_prog_ac_ct_AR+:} false; then :
12309  $as_echo_n "(cached) " >&6
12310else
12311  if test -n "$ac_ct_AR"; then
12312  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12313else
12314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12315for as_dir in $PATH
12316do
12317  IFS=$as_save_IFS
12318  test -z "$as_dir" && as_dir=.
12319    for ac_exec_ext in '' $ac_executable_extensions; do
12320  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12321    ac_cv_prog_ac_ct_AR="$ac_prog"
12322    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12323    break 2
12324  fi
12325done
12326  done
12327IFS=$as_save_IFS
12328
12329fi
12330fi
12331ac_ct_AR=$ac_cv_prog_ac_ct_AR
12332if test -n "$ac_ct_AR"; then
12333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12334$as_echo "$ac_ct_AR" >&6; }
12335else
12336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337$as_echo "no" >&6; }
12338fi
12339
12340
12341  test -n "$ac_ct_AR" && break
12342done
12343
12344  if test "x$ac_ct_AR" = x; then
12345    AR="false"
12346  else
12347    case $cross_compiling:$ac_tool_warned in
12348yes:)
12349{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12350$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12351ac_tool_warned=yes ;;
12352esac
12353    AR=$ac_ct_AR
12354  fi
12355fi
12356
12357: ${AR=ar}
12358: ${AR_FLAGS=cru}
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12371$as_echo_n "checking for archiver @FILE support... " >&6; }
12372if ${lt_cv_ar_at_file+:} false; then :
12373  $as_echo_n "(cached) " >&6
12374else
12375  lt_cv_ar_at_file=no
12376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12377/* end confdefs.h.  */
12378
12379int
12380main ()
12381{
12382
12383  ;
12384  return 0;
12385}
12386_ACEOF
12387if ac_fn_c_try_compile "$LINENO"; then :
12388  echo conftest.$ac_objext > conftest.lst
12389      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12390      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12391  (eval $lt_ar_try) 2>&5
12392  ac_status=$?
12393  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12394  test $ac_status = 0; }
12395      if test 0 -eq "$ac_status"; then
12396	# Ensure the archiver fails upon bogus file names.
12397	rm -f conftest.$ac_objext libconftest.a
12398	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12399  (eval $lt_ar_try) 2>&5
12400  ac_status=$?
12401  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12402  test $ac_status = 0; }
12403	if test 0 -ne "$ac_status"; then
12404          lt_cv_ar_at_file=@
12405        fi
12406      fi
12407      rm -f conftest.* libconftest.a
12408
12409fi
12410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12411
12412fi
12413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12414$as_echo "$lt_cv_ar_at_file" >&6; }
12415
12416if test no = "$lt_cv_ar_at_file"; then
12417  archiver_list_spec=
12418else
12419  archiver_list_spec=$lt_cv_ar_at_file
12420fi
12421
12422
12423
12424
12425
12426
12427
12428if test -n "$ac_tool_prefix"; then
12429  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12430set dummy ${ac_tool_prefix}strip; ac_word=$2
12431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12432$as_echo_n "checking for $ac_word... " >&6; }
12433if ${ac_cv_prog_STRIP+:} false; then :
12434  $as_echo_n "(cached) " >&6
12435else
12436  if test -n "$STRIP"; then
12437  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12438else
12439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12440for as_dir in $PATH
12441do
12442  IFS=$as_save_IFS
12443  test -z "$as_dir" && as_dir=.
12444    for ac_exec_ext in '' $ac_executable_extensions; do
12445  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12446    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12447    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12448    break 2
12449  fi
12450done
12451  done
12452IFS=$as_save_IFS
12453
12454fi
12455fi
12456STRIP=$ac_cv_prog_STRIP
12457if test -n "$STRIP"; then
12458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12459$as_echo "$STRIP" >&6; }
12460else
12461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12462$as_echo "no" >&6; }
12463fi
12464
12465
12466fi
12467if test -z "$ac_cv_prog_STRIP"; then
12468  ac_ct_STRIP=$STRIP
12469  # Extract the first word of "strip", so it can be a program name with args.
12470set dummy strip; ac_word=$2
12471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12472$as_echo_n "checking for $ac_word... " >&6; }
12473if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12474  $as_echo_n "(cached) " >&6
12475else
12476  if test -n "$ac_ct_STRIP"; then
12477  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12478else
12479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12480for as_dir in $PATH
12481do
12482  IFS=$as_save_IFS
12483  test -z "$as_dir" && as_dir=.
12484    for ac_exec_ext in '' $ac_executable_extensions; do
12485  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12486    ac_cv_prog_ac_ct_STRIP="strip"
12487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12488    break 2
12489  fi
12490done
12491  done
12492IFS=$as_save_IFS
12493
12494fi
12495fi
12496ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12497if test -n "$ac_ct_STRIP"; then
12498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12499$as_echo "$ac_ct_STRIP" >&6; }
12500else
12501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12502$as_echo "no" >&6; }
12503fi
12504
12505  if test "x$ac_ct_STRIP" = x; then
12506    STRIP=":"
12507  else
12508    case $cross_compiling:$ac_tool_warned in
12509yes:)
12510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12512ac_tool_warned=yes ;;
12513esac
12514    STRIP=$ac_ct_STRIP
12515  fi
12516else
12517  STRIP="$ac_cv_prog_STRIP"
12518fi
12519
12520test -z "$STRIP" && STRIP=:
12521
12522
12523
12524
12525
12526
12527if test -n "$ac_tool_prefix"; then
12528  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12529set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12531$as_echo_n "checking for $ac_word... " >&6; }
12532if ${ac_cv_prog_RANLIB+:} false; then :
12533  $as_echo_n "(cached) " >&6
12534else
12535  if test -n "$RANLIB"; then
12536  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12537else
12538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12539for as_dir in $PATH
12540do
12541  IFS=$as_save_IFS
12542  test -z "$as_dir" && as_dir=.
12543    for ac_exec_ext in '' $ac_executable_extensions; do
12544  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12545    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12546    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12547    break 2
12548  fi
12549done
12550  done
12551IFS=$as_save_IFS
12552
12553fi
12554fi
12555RANLIB=$ac_cv_prog_RANLIB
12556if test -n "$RANLIB"; then
12557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12558$as_echo "$RANLIB" >&6; }
12559else
12560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12561$as_echo "no" >&6; }
12562fi
12563
12564
12565fi
12566if test -z "$ac_cv_prog_RANLIB"; then
12567  ac_ct_RANLIB=$RANLIB
12568  # Extract the first word of "ranlib", so it can be a program name with args.
12569set dummy ranlib; ac_word=$2
12570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12571$as_echo_n "checking for $ac_word... " >&6; }
12572if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12573  $as_echo_n "(cached) " >&6
12574else
12575  if test -n "$ac_ct_RANLIB"; then
12576  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12577else
12578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12579for as_dir in $PATH
12580do
12581  IFS=$as_save_IFS
12582  test -z "$as_dir" && as_dir=.
12583    for ac_exec_ext in '' $ac_executable_extensions; do
12584  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12585    ac_cv_prog_ac_ct_RANLIB="ranlib"
12586    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12587    break 2
12588  fi
12589done
12590  done
12591IFS=$as_save_IFS
12592
12593fi
12594fi
12595ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12596if test -n "$ac_ct_RANLIB"; then
12597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12598$as_echo "$ac_ct_RANLIB" >&6; }
12599else
12600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12601$as_echo "no" >&6; }
12602fi
12603
12604  if test "x$ac_ct_RANLIB" = x; then
12605    RANLIB=":"
12606  else
12607    case $cross_compiling:$ac_tool_warned in
12608yes:)
12609{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12610$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12611ac_tool_warned=yes ;;
12612esac
12613    RANLIB=$ac_ct_RANLIB
12614  fi
12615else
12616  RANLIB="$ac_cv_prog_RANLIB"
12617fi
12618
12619test -z "$RANLIB" && RANLIB=:
12620
12621
12622
12623
12624
12625
12626# Determine commands to create old-style static archives.
12627old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12628old_postinstall_cmds='chmod 644 $oldlib'
12629old_postuninstall_cmds=
12630
12631if test -n "$RANLIB"; then
12632  case $host_os in
12633  bitrig* | openbsd*)
12634    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12635    ;;
12636  *)
12637    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12638    ;;
12639  esac
12640  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12641fi
12642
12643case $host_os in
12644  darwin*)
12645    lock_old_archive_extraction=yes ;;
12646  *)
12647    lock_old_archive_extraction=no ;;
12648esac
12649
12650
12651
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679
12680
12681
12682
12683
12684
12685
12686
12687
12688# If no C compiler was specified, use CC.
12689LTCC=${LTCC-"$CC"}
12690
12691# If no C compiler flags were specified, use CFLAGS.
12692LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12693
12694# Allow CC to be a program name with arguments.
12695compiler=$CC
12696
12697
12698# Check for command to grab the raw symbol name followed by C symbol from nm.
12699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12700$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12701if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12702  $as_echo_n "(cached) " >&6
12703else
12704
12705# These are sane defaults that work on at least a few old systems.
12706# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12707
12708# Character class describing NM global symbol codes.
12709symcode='[BCDEGRST]'
12710
12711# Regexp to match symbols that can be accessed directly from C.
12712sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12713
12714# Define system-specific variables.
12715case $host_os in
12716aix*)
12717  symcode='[BCDT]'
12718  ;;
12719cygwin* | mingw* | pw32* | cegcc*)
12720  symcode='[ABCDGISTW]'
12721  ;;
12722hpux*)
12723  if test ia64 = "$host_cpu"; then
12724    symcode='[ABCDEGRST]'
12725  fi
12726  ;;
12727irix* | nonstopux*)
12728  symcode='[BCDEGRST]'
12729  ;;
12730osf*)
12731  symcode='[BCDEGQRST]'
12732  ;;
12733solaris*)
12734  symcode='[BDRT]'
12735  ;;
12736sco3.2v5*)
12737  symcode='[DT]'
12738  ;;
12739sysv4.2uw2*)
12740  symcode='[DT]'
12741  ;;
12742sysv5* | sco5v6* | unixware* | OpenUNIX*)
12743  symcode='[ABDT]'
12744  ;;
12745sysv4)
12746  symcode='[DFNSTU]'
12747  ;;
12748esac
12749
12750# If we're using GNU nm, then use its standard symbol codes.
12751case `$NM -V 2>&1` in
12752*GNU* | *'with BFD'*)
12753  symcode='[ABCDGIRSTW]' ;;
12754esac
12755
12756if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12757  # Gets list of data symbols to import.
12758  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12759  # Adjust the below global symbol transforms to fixup imported variables.
12760  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12761  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
12762  lt_c_name_lib_hook="\
12763  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
12764  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
12765else
12766  # Disable hooks by default.
12767  lt_cv_sys_global_symbol_to_import=
12768  lt_cdecl_hook=
12769  lt_c_name_hook=
12770  lt_c_name_lib_hook=
12771fi
12772
12773# Transform an extracted symbol line into a proper C declaration.
12774# Some systems (esp. on ia64) link data and code symbols differently,
12775# so use this general approach.
12776lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12777$lt_cdecl_hook\
12778" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12779" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
12780
12781# Transform an extracted symbol line into symbol name and symbol address
12782lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12783$lt_c_name_hook\
12784" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12785" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
12786
12787# Transform an extracted symbol line into symbol name with lib prefix and
12788# symbol address.
12789lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12790$lt_c_name_lib_hook\
12791" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
12792" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
12793" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
12794
12795# Handle CRLF in mingw tool chain
12796opt_cr=
12797case $build_os in
12798mingw*)
12799  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12800  ;;
12801esac
12802
12803# Try without a prefix underscore, then with it.
12804for ac_symprfx in "" "_"; do
12805
12806  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12807  symxfrm="\\1 $ac_symprfx\\2 \\2"
12808
12809  # Write the raw and C identifiers.
12810  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12811    # Fake it for dumpbin and say T for any non-static function,
12812    # D for any global variable and I for any imported variable.
12813    # Also find C++ and __fastcall symbols from MSVC++,
12814    # which start with @ or ?.
12815    lt_cv_sys_global_symbol_pipe="$AWK '"\
12816"     {last_section=section; section=\$ 3};"\
12817"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12818"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12819"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12820"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12821"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
12822"     \$ 0!~/External *\|/{next};"\
12823"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12824"     {if(hide[section]) next};"\
12825"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12826"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12827"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12828"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
12829"     ' prfx=^$ac_symprfx"
12830  else
12831    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12832  fi
12833  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12834
12835  # Check to see that the pipe works correctly.
12836  pipe_works=no
12837
12838  rm -f conftest*
12839  cat > conftest.$ac_ext <<_LT_EOF
12840#ifdef __cplusplus
12841extern "C" {
12842#endif
12843char nm_test_var;
12844void nm_test_func(void);
12845void nm_test_func(void){}
12846#ifdef __cplusplus
12847}
12848#endif
12849int main(){nm_test_var='a';nm_test_func();return(0);}
12850_LT_EOF
12851
12852  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12853  (eval $ac_compile) 2>&5
12854  ac_status=$?
12855  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12856  test $ac_status = 0; }; then
12857    # Now try to grab the symbols.
12858    nlist=conftest.nm
12859    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12860  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12861  ac_status=$?
12862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12863  test $ac_status = 0; } && test -s "$nlist"; then
12864      # Try sorting and uniquifying the output.
12865      if sort "$nlist" | uniq > "$nlist"T; then
12866	mv -f "$nlist"T "$nlist"
12867      else
12868	rm -f "$nlist"T
12869      fi
12870
12871      # Make sure that we snagged all the symbols we need.
12872      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12873	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12874	  cat <<_LT_EOF > conftest.$ac_ext
12875/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12876#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12877/* DATA imports from DLLs on WIN32 can't be const, because runtime
12878   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12879# define LT_DLSYM_CONST
12880#elif defined __osf__
12881/* This system does not cope well with relocations in const data.  */
12882# define LT_DLSYM_CONST
12883#else
12884# define LT_DLSYM_CONST const
12885#endif
12886
12887#ifdef __cplusplus
12888extern "C" {
12889#endif
12890
12891_LT_EOF
12892	  # Now generate the symbol file.
12893	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12894
12895	  cat <<_LT_EOF >> conftest.$ac_ext
12896
12897/* The mapping between symbol names and symbols.  */
12898LT_DLSYM_CONST struct {
12899  const char *name;
12900  void       *address;
12901}
12902lt__PROGRAM__LTX_preloaded_symbols[] =
12903{
12904  { "@PROGRAM@", (void *) 0 },
12905_LT_EOF
12906	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12907	  cat <<\_LT_EOF >> conftest.$ac_ext
12908  {0, (void *) 0}
12909};
12910
12911/* This works around a problem in FreeBSD linker */
12912#ifdef FREEBSD_WORKAROUND
12913static const void *lt_preloaded_setup() {
12914  return lt__PROGRAM__LTX_preloaded_symbols;
12915}
12916#endif
12917
12918#ifdef __cplusplus
12919}
12920#endif
12921_LT_EOF
12922	  # Now try linking the two files.
12923	  mv conftest.$ac_objext conftstm.$ac_objext
12924	  lt_globsym_save_LIBS=$LIBS
12925	  lt_globsym_save_CFLAGS=$CFLAGS
12926	  LIBS=conftstm.$ac_objext
12927	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12928	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12929  (eval $ac_link) 2>&5
12930  ac_status=$?
12931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12932  test $ac_status = 0; } && test -s conftest$ac_exeext; then
12933	    pipe_works=yes
12934	  fi
12935	  LIBS=$lt_globsym_save_LIBS
12936	  CFLAGS=$lt_globsym_save_CFLAGS
12937	else
12938	  echo "cannot find nm_test_func in $nlist" >&5
12939	fi
12940      else
12941	echo "cannot find nm_test_var in $nlist" >&5
12942      fi
12943    else
12944      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12945    fi
12946  else
12947    echo "$progname: failed program was:" >&5
12948    cat conftest.$ac_ext >&5
12949  fi
12950  rm -rf conftest* conftst*
12951
12952  # Do not use the global_symbol_pipe unless it works.
12953  if test yes = "$pipe_works"; then
12954    break
12955  else
12956    lt_cv_sys_global_symbol_pipe=
12957  fi
12958done
12959
12960fi
12961
12962if test -z "$lt_cv_sys_global_symbol_pipe"; then
12963  lt_cv_sys_global_symbol_to_cdecl=
12964fi
12965if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12967$as_echo "failed" >&6; }
12968else
12969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12970$as_echo "ok" >&6; }
12971fi
12972
12973# Response file support.
12974if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12975  nm_file_list_spec='@'
12976elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12977  nm_file_list_spec='@'
12978fi
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13017$as_echo_n "checking for sysroot... " >&6; }
13018
13019# Check whether --with-sysroot was given.
13020if test "${with_sysroot+set}" = set; then :
13021  withval=$with_sysroot;
13022else
13023  with_sysroot=no
13024fi
13025
13026
13027lt_sysroot=
13028case $with_sysroot in #(
13029 yes)
13030   if test yes = "$GCC"; then
13031     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13032   fi
13033   ;; #(
13034 /*)
13035   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13036   ;; #(
13037 no|'')
13038   ;; #(
13039 *)
13040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13041$as_echo "$with_sysroot" >&6; }
13042   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13043   ;;
13044esac
13045
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13047$as_echo "${lt_sysroot:-no}" >&6; }
13048
13049
13050
13051
13052
13053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13054$as_echo_n "checking for a working dd... " >&6; }
13055if ${ac_cv_path_lt_DD+:} false; then :
13056  $as_echo_n "(cached) " >&6
13057else
13058  printf 0123456789abcdef0123456789abcdef >conftest.i
13059cat conftest.i conftest.i >conftest2.i
13060: ${lt_DD:=$DD}
13061if test -z "$lt_DD"; then
13062  ac_path_lt_DD_found=false
13063  # Loop through the user's path and test for each of PROGNAME-LIST
13064  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13065for as_dir in $PATH
13066do
13067  IFS=$as_save_IFS
13068  test -z "$as_dir" && as_dir=.
13069    for ac_prog in dd; do
13070    for ac_exec_ext in '' $ac_executable_extensions; do
13071      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13072      as_fn_executable_p "$ac_path_lt_DD" || continue
13073if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13074  cmp -s conftest.i conftest.out \
13075  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13076fi
13077      $ac_path_lt_DD_found && break 3
13078    done
13079  done
13080  done
13081IFS=$as_save_IFS
13082  if test -z "$ac_cv_path_lt_DD"; then
13083    :
13084  fi
13085else
13086  ac_cv_path_lt_DD=$lt_DD
13087fi
13088
13089rm -f conftest.i conftest2.i conftest.out
13090fi
13091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13092$as_echo "$ac_cv_path_lt_DD" >&6; }
13093
13094
13095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13096$as_echo_n "checking how to truncate binary pipes... " >&6; }
13097if ${lt_cv_truncate_bin+:} false; then :
13098  $as_echo_n "(cached) " >&6
13099else
13100  printf 0123456789abcdef0123456789abcdef >conftest.i
13101cat conftest.i conftest.i >conftest2.i
13102lt_cv_truncate_bin=
13103if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13104  cmp -s conftest.i conftest.out \
13105  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13106fi
13107rm -f conftest.i conftest2.i conftest.out
13108test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13109fi
13110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13111$as_echo "$lt_cv_truncate_bin" >&6; }
13112
13113
13114
13115
13116
13117
13118
13119# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
13120func_cc_basename ()
13121{
13122    for cc_temp in $*""; do
13123      case $cc_temp in
13124        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13125        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13126        \-*) ;;
13127        *) break;;
13128      esac
13129    done
13130    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13131}
13132
13133# Check whether --enable-libtool-lock was given.
13134if test "${enable_libtool_lock+set}" = set; then :
13135  enableval=$enable_libtool_lock;
13136fi
13137
13138test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13139
13140# Some flags need to be propagated to the compiler or linker for good
13141# libtool support.
13142case $host in
13143ia64-*-hpux*)
13144  # Find out what ABI is being produced by ac_compile, and set mode
13145  # options accordingly.
13146  echo 'int i;' > conftest.$ac_ext
13147  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13148  (eval $ac_compile) 2>&5
13149  ac_status=$?
13150  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13151  test $ac_status = 0; }; then
13152    case `/usr/bin/file conftest.$ac_objext` in
13153      *ELF-32*)
13154	HPUX_IA64_MODE=32
13155	;;
13156      *ELF-64*)
13157	HPUX_IA64_MODE=64
13158	;;
13159    esac
13160  fi
13161  rm -rf conftest*
13162  ;;
13163*-*-irix6*)
13164  # Find out what ABI is being produced by ac_compile, and set linker
13165  # options accordingly.
13166  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13167  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13168  (eval $ac_compile) 2>&5
13169  ac_status=$?
13170  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13171  test $ac_status = 0; }; then
13172    if test yes = "$lt_cv_prog_gnu_ld"; then
13173      case `/usr/bin/file conftest.$ac_objext` in
13174	*32-bit*)
13175	  LD="${LD-ld} -melf32bsmip"
13176	  ;;
13177	*N32*)
13178	  LD="${LD-ld} -melf32bmipn32"
13179	  ;;
13180	*64-bit*)
13181	  LD="${LD-ld} -melf64bmip"
13182	;;
13183      esac
13184    else
13185      case `/usr/bin/file conftest.$ac_objext` in
13186	*32-bit*)
13187	  LD="${LD-ld} -32"
13188	  ;;
13189	*N32*)
13190	  LD="${LD-ld} -n32"
13191	  ;;
13192	*64-bit*)
13193	  LD="${LD-ld} -64"
13194	  ;;
13195      esac
13196    fi
13197  fi
13198  rm -rf conftest*
13199  ;;
13200
13201mips64*-*linux*)
13202  # Find out what ABI is being produced by ac_compile, and set linker
13203  # options accordingly.
13204  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13205  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13206  (eval $ac_compile) 2>&5
13207  ac_status=$?
13208  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13209  test $ac_status = 0; }; then
13210    emul=elf
13211    case `/usr/bin/file conftest.$ac_objext` in
13212      *32-bit*)
13213	emul="${emul}32"
13214	;;
13215      *64-bit*)
13216	emul="${emul}64"
13217	;;
13218    esac
13219    case `/usr/bin/file conftest.$ac_objext` in
13220      *MSB*)
13221	emul="${emul}btsmip"
13222	;;
13223      *LSB*)
13224	emul="${emul}ltsmip"
13225	;;
13226    esac
13227    case `/usr/bin/file conftest.$ac_objext` in
13228      *N32*)
13229	emul="${emul}n32"
13230	;;
13231    esac
13232    LD="${LD-ld} -m $emul"
13233  fi
13234  rm -rf conftest*
13235  ;;
13236
13237x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13238s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13239  # Find out what ABI is being produced by ac_compile, and set linker
13240  # options accordingly.  Note that the listed cases only cover the
13241  # situations where additional linker options are needed (such as when
13242  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13243  # vice versa); the common cases where no linker options are needed do
13244  # not appear in the list.
13245  echo 'int i;' > conftest.$ac_ext
13246  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13247  (eval $ac_compile) 2>&5
13248  ac_status=$?
13249  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13250  test $ac_status = 0; }; then
13251    case `/usr/bin/file conftest.o` in
13252      *32-bit*)
13253	case $host in
13254	  x86_64-*kfreebsd*-gnu)
13255	    LD="${LD-ld} -m elf_i386_fbsd"
13256	    ;;
13257	  x86_64-*linux*)
13258	    case `/usr/bin/file conftest.o` in
13259	      *x86-64*)
13260		LD="${LD-ld} -m elf32_x86_64"
13261		;;
13262	      *)
13263		LD="${LD-ld} -m elf_i386"
13264		;;
13265	    esac
13266	    ;;
13267	  powerpc64le-*linux*)
13268	    LD="${LD-ld} -m elf32lppclinux"
13269	    ;;
13270	  powerpc64-*linux*)
13271	    LD="${LD-ld} -m elf32ppclinux"
13272	    ;;
13273	  s390x-*linux*)
13274	    LD="${LD-ld} -m elf_s390"
13275	    ;;
13276	  sparc64-*linux*)
13277	    LD="${LD-ld} -m elf32_sparc"
13278	    ;;
13279	esac
13280	;;
13281      *64-bit*)
13282	case $host in
13283	  x86_64-*kfreebsd*-gnu)
13284	    LD="${LD-ld} -m elf_x86_64_fbsd"
13285	    ;;
13286	  x86_64-*linux*)
13287	    LD="${LD-ld} -m elf_x86_64"
13288	    ;;
13289	  powerpcle-*linux*)
13290	    LD="${LD-ld} -m elf64lppc"
13291	    ;;
13292	  powerpc-*linux*)
13293	    LD="${LD-ld} -m elf64ppc"
13294	    ;;
13295	  s390*-*linux*|s390*-*tpf*)
13296	    LD="${LD-ld} -m elf64_s390"
13297	    ;;
13298	  sparc*-*linux*)
13299	    LD="${LD-ld} -m elf64_sparc"
13300	    ;;
13301	esac
13302	;;
13303    esac
13304  fi
13305  rm -rf conftest*
13306  ;;
13307
13308*-*-sco3.2v5*)
13309  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13310  SAVE_CFLAGS=$CFLAGS
13311  CFLAGS="$CFLAGS -belf"
13312  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13313$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13314if ${lt_cv_cc_needs_belf+:} false; then :
13315  $as_echo_n "(cached) " >&6
13316else
13317  ac_ext=c
13318ac_cpp='$CPP $CPPFLAGS'
13319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13321ac_compiler_gnu=$ac_cv_c_compiler_gnu
13322
13323     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13324/* end confdefs.h.  */
13325
13326int
13327main ()
13328{
13329
13330  ;
13331  return 0;
13332}
13333_ACEOF
13334if ac_fn_c_try_link "$LINENO"; then :
13335  lt_cv_cc_needs_belf=yes
13336else
13337  lt_cv_cc_needs_belf=no
13338fi
13339rm -f core conftest.err conftest.$ac_objext \
13340    conftest$ac_exeext conftest.$ac_ext
13341     ac_ext=c
13342ac_cpp='$CPP $CPPFLAGS'
13343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13345ac_compiler_gnu=$ac_cv_c_compiler_gnu
13346
13347fi
13348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13349$as_echo "$lt_cv_cc_needs_belf" >&6; }
13350  if test yes != "$lt_cv_cc_needs_belf"; then
13351    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13352    CFLAGS=$SAVE_CFLAGS
13353  fi
13354  ;;
13355*-*solaris*)
13356  # Find out what ABI is being produced by ac_compile, and set linker
13357  # options accordingly.
13358  echo 'int i;' > conftest.$ac_ext
13359  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13360  (eval $ac_compile) 2>&5
13361  ac_status=$?
13362  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13363  test $ac_status = 0; }; then
13364    case `/usr/bin/file conftest.o` in
13365    *64-bit*)
13366      case $lt_cv_prog_gnu_ld in
13367      yes*)
13368        case $host in
13369        i?86-*-solaris*|x86_64-*-solaris*)
13370          LD="${LD-ld} -m elf_x86_64"
13371          ;;
13372        sparc*-*-solaris*)
13373          LD="${LD-ld} -m elf64_sparc"
13374          ;;
13375        esac
13376        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13377        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13378          LD=${LD-ld}_sol2
13379        fi
13380        ;;
13381      *)
13382	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13383	  LD="${LD-ld} -64"
13384	fi
13385	;;
13386      esac
13387      ;;
13388    esac
13389  fi
13390  rm -rf conftest*
13391  ;;
13392esac
13393
13394need_locks=$enable_libtool_lock
13395
13396if test -n "$ac_tool_prefix"; then
13397  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13398set dummy ${ac_tool_prefix}mt; ac_word=$2
13399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13400$as_echo_n "checking for $ac_word... " >&6; }
13401if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13402  $as_echo_n "(cached) " >&6
13403else
13404  if test -n "$MANIFEST_TOOL"; then
13405  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13406else
13407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13408for as_dir in $PATH
13409do
13410  IFS=$as_save_IFS
13411  test -z "$as_dir" && as_dir=.
13412    for ac_exec_ext in '' $ac_executable_extensions; do
13413  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13414    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13415    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13416    break 2
13417  fi
13418done
13419  done
13420IFS=$as_save_IFS
13421
13422fi
13423fi
13424MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13425if test -n "$MANIFEST_TOOL"; then
13426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13427$as_echo "$MANIFEST_TOOL" >&6; }
13428else
13429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13430$as_echo "no" >&6; }
13431fi
13432
13433
13434fi
13435if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13436  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13437  # Extract the first word of "mt", so it can be a program name with args.
13438set dummy mt; ac_word=$2
13439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13440$as_echo_n "checking for $ac_word... " >&6; }
13441if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13442  $as_echo_n "(cached) " >&6
13443else
13444  if test -n "$ac_ct_MANIFEST_TOOL"; then
13445  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13446else
13447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13448for as_dir in $PATH
13449do
13450  IFS=$as_save_IFS
13451  test -z "$as_dir" && as_dir=.
13452    for ac_exec_ext in '' $ac_executable_extensions; do
13453  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13454    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13455    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13456    break 2
13457  fi
13458done
13459  done
13460IFS=$as_save_IFS
13461
13462fi
13463fi
13464ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13465if test -n "$ac_ct_MANIFEST_TOOL"; then
13466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13467$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13468else
13469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13470$as_echo "no" >&6; }
13471fi
13472
13473  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13474    MANIFEST_TOOL=":"
13475  else
13476    case $cross_compiling:$ac_tool_warned in
13477yes:)
13478{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13479$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13480ac_tool_warned=yes ;;
13481esac
13482    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13483  fi
13484else
13485  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13486fi
13487
13488test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13490$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13491if ${lt_cv_path_mainfest_tool+:} false; then :
13492  $as_echo_n "(cached) " >&6
13493else
13494  lt_cv_path_mainfest_tool=no
13495  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13496  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13497  cat conftest.err >&5
13498  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13499    lt_cv_path_mainfest_tool=yes
13500  fi
13501  rm -f conftest*
13502fi
13503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13504$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13505if test yes != "$lt_cv_path_mainfest_tool"; then
13506  MANIFEST_TOOL=:
13507fi
13508
13509
13510
13511
13512
13513
13514  case $host_os in
13515    rhapsody* | darwin*)
13516    if test -n "$ac_tool_prefix"; then
13517  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13518set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13520$as_echo_n "checking for $ac_word... " >&6; }
13521if ${ac_cv_prog_DSYMUTIL+:} false; then :
13522  $as_echo_n "(cached) " >&6
13523else
13524  if test -n "$DSYMUTIL"; then
13525  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13526else
13527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13528for as_dir in $PATH
13529do
13530  IFS=$as_save_IFS
13531  test -z "$as_dir" && as_dir=.
13532    for ac_exec_ext in '' $ac_executable_extensions; do
13533  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13534    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13535    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13536    break 2
13537  fi
13538done
13539  done
13540IFS=$as_save_IFS
13541
13542fi
13543fi
13544DSYMUTIL=$ac_cv_prog_DSYMUTIL
13545if test -n "$DSYMUTIL"; then
13546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13547$as_echo "$DSYMUTIL" >&6; }
13548else
13549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13550$as_echo "no" >&6; }
13551fi
13552
13553
13554fi
13555if test -z "$ac_cv_prog_DSYMUTIL"; then
13556  ac_ct_DSYMUTIL=$DSYMUTIL
13557  # Extract the first word of "dsymutil", so it can be a program name with args.
13558set dummy dsymutil; ac_word=$2
13559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13560$as_echo_n "checking for $ac_word... " >&6; }
13561if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13562  $as_echo_n "(cached) " >&6
13563else
13564  if test -n "$ac_ct_DSYMUTIL"; then
13565  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13566else
13567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13568for as_dir in $PATH
13569do
13570  IFS=$as_save_IFS
13571  test -z "$as_dir" && as_dir=.
13572    for ac_exec_ext in '' $ac_executable_extensions; do
13573  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13574    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13575    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13576    break 2
13577  fi
13578done
13579  done
13580IFS=$as_save_IFS
13581
13582fi
13583fi
13584ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13585if test -n "$ac_ct_DSYMUTIL"; then
13586  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13587$as_echo "$ac_ct_DSYMUTIL" >&6; }
13588else
13589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13590$as_echo "no" >&6; }
13591fi
13592
13593  if test "x$ac_ct_DSYMUTIL" = x; then
13594    DSYMUTIL=":"
13595  else
13596    case $cross_compiling:$ac_tool_warned in
13597yes:)
13598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13600ac_tool_warned=yes ;;
13601esac
13602    DSYMUTIL=$ac_ct_DSYMUTIL
13603  fi
13604else
13605  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13606fi
13607
13608    if test -n "$ac_tool_prefix"; then
13609  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13610set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13612$as_echo_n "checking for $ac_word... " >&6; }
13613if ${ac_cv_prog_NMEDIT+:} false; then :
13614  $as_echo_n "(cached) " >&6
13615else
13616  if test -n "$NMEDIT"; then
13617  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13618else
13619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13620for as_dir in $PATH
13621do
13622  IFS=$as_save_IFS
13623  test -z "$as_dir" && as_dir=.
13624    for ac_exec_ext in '' $ac_executable_extensions; do
13625  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13626    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13627    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13628    break 2
13629  fi
13630done
13631  done
13632IFS=$as_save_IFS
13633
13634fi
13635fi
13636NMEDIT=$ac_cv_prog_NMEDIT
13637if test -n "$NMEDIT"; then
13638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13639$as_echo "$NMEDIT" >&6; }
13640else
13641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13642$as_echo "no" >&6; }
13643fi
13644
13645
13646fi
13647if test -z "$ac_cv_prog_NMEDIT"; then
13648  ac_ct_NMEDIT=$NMEDIT
13649  # Extract the first word of "nmedit", so it can be a program name with args.
13650set dummy nmedit; ac_word=$2
13651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13652$as_echo_n "checking for $ac_word... " >&6; }
13653if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13654  $as_echo_n "(cached) " >&6
13655else
13656  if test -n "$ac_ct_NMEDIT"; then
13657  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13658else
13659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13660for as_dir in $PATH
13661do
13662  IFS=$as_save_IFS
13663  test -z "$as_dir" && as_dir=.
13664    for ac_exec_ext in '' $ac_executable_extensions; do
13665  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13666    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13668    break 2
13669  fi
13670done
13671  done
13672IFS=$as_save_IFS
13673
13674fi
13675fi
13676ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13677if test -n "$ac_ct_NMEDIT"; then
13678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13679$as_echo "$ac_ct_NMEDIT" >&6; }
13680else
13681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13682$as_echo "no" >&6; }
13683fi
13684
13685  if test "x$ac_ct_NMEDIT" = x; then
13686    NMEDIT=":"
13687  else
13688    case $cross_compiling:$ac_tool_warned in
13689yes:)
13690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13692ac_tool_warned=yes ;;
13693esac
13694    NMEDIT=$ac_ct_NMEDIT
13695  fi
13696else
13697  NMEDIT="$ac_cv_prog_NMEDIT"
13698fi
13699
13700    if test -n "$ac_tool_prefix"; then
13701  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13702set dummy ${ac_tool_prefix}lipo; ac_word=$2
13703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13704$as_echo_n "checking for $ac_word... " >&6; }
13705if ${ac_cv_prog_LIPO+:} false; then :
13706  $as_echo_n "(cached) " >&6
13707else
13708  if test -n "$LIPO"; then
13709  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13710else
13711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13712for as_dir in $PATH
13713do
13714  IFS=$as_save_IFS
13715  test -z "$as_dir" && as_dir=.
13716    for ac_exec_ext in '' $ac_executable_extensions; do
13717  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13718    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13719    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13720    break 2
13721  fi
13722done
13723  done
13724IFS=$as_save_IFS
13725
13726fi
13727fi
13728LIPO=$ac_cv_prog_LIPO
13729if test -n "$LIPO"; then
13730  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13731$as_echo "$LIPO" >&6; }
13732else
13733  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13734$as_echo "no" >&6; }
13735fi
13736
13737
13738fi
13739if test -z "$ac_cv_prog_LIPO"; then
13740  ac_ct_LIPO=$LIPO
13741  # Extract the first word of "lipo", so it can be a program name with args.
13742set dummy lipo; ac_word=$2
13743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13744$as_echo_n "checking for $ac_word... " >&6; }
13745if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13746  $as_echo_n "(cached) " >&6
13747else
13748  if test -n "$ac_ct_LIPO"; then
13749  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13750else
13751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13752for as_dir in $PATH
13753do
13754  IFS=$as_save_IFS
13755  test -z "$as_dir" && as_dir=.
13756    for ac_exec_ext in '' $ac_executable_extensions; do
13757  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13758    ac_cv_prog_ac_ct_LIPO="lipo"
13759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13760    break 2
13761  fi
13762done
13763  done
13764IFS=$as_save_IFS
13765
13766fi
13767fi
13768ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13769if test -n "$ac_ct_LIPO"; then
13770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13771$as_echo "$ac_ct_LIPO" >&6; }
13772else
13773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13774$as_echo "no" >&6; }
13775fi
13776
13777  if test "x$ac_ct_LIPO" = x; then
13778    LIPO=":"
13779  else
13780    case $cross_compiling:$ac_tool_warned in
13781yes:)
13782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13784ac_tool_warned=yes ;;
13785esac
13786    LIPO=$ac_ct_LIPO
13787  fi
13788else
13789  LIPO="$ac_cv_prog_LIPO"
13790fi
13791
13792    if test -n "$ac_tool_prefix"; then
13793  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13794set dummy ${ac_tool_prefix}otool; ac_word=$2
13795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13796$as_echo_n "checking for $ac_word... " >&6; }
13797if ${ac_cv_prog_OTOOL+:} false; then :
13798  $as_echo_n "(cached) " >&6
13799else
13800  if test -n "$OTOOL"; then
13801  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13802else
13803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13804for as_dir in $PATH
13805do
13806  IFS=$as_save_IFS
13807  test -z "$as_dir" && as_dir=.
13808    for ac_exec_ext in '' $ac_executable_extensions; do
13809  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13810    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13811    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13812    break 2
13813  fi
13814done
13815  done
13816IFS=$as_save_IFS
13817
13818fi
13819fi
13820OTOOL=$ac_cv_prog_OTOOL
13821if test -n "$OTOOL"; then
13822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13823$as_echo "$OTOOL" >&6; }
13824else
13825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13826$as_echo "no" >&6; }
13827fi
13828
13829
13830fi
13831if test -z "$ac_cv_prog_OTOOL"; then
13832  ac_ct_OTOOL=$OTOOL
13833  # Extract the first word of "otool", so it can be a program name with args.
13834set dummy otool; ac_word=$2
13835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13836$as_echo_n "checking for $ac_word... " >&6; }
13837if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13838  $as_echo_n "(cached) " >&6
13839else
13840  if test -n "$ac_ct_OTOOL"; then
13841  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13842else
13843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13844for as_dir in $PATH
13845do
13846  IFS=$as_save_IFS
13847  test -z "$as_dir" && as_dir=.
13848    for ac_exec_ext in '' $ac_executable_extensions; do
13849  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13850    ac_cv_prog_ac_ct_OTOOL="otool"
13851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13852    break 2
13853  fi
13854done
13855  done
13856IFS=$as_save_IFS
13857
13858fi
13859fi
13860ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13861if test -n "$ac_ct_OTOOL"; then
13862  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13863$as_echo "$ac_ct_OTOOL" >&6; }
13864else
13865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13866$as_echo "no" >&6; }
13867fi
13868
13869  if test "x$ac_ct_OTOOL" = x; then
13870    OTOOL=":"
13871  else
13872    case $cross_compiling:$ac_tool_warned in
13873yes:)
13874{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13875$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13876ac_tool_warned=yes ;;
13877esac
13878    OTOOL=$ac_ct_OTOOL
13879  fi
13880else
13881  OTOOL="$ac_cv_prog_OTOOL"
13882fi
13883
13884    if test -n "$ac_tool_prefix"; then
13885  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13886set dummy ${ac_tool_prefix}otool64; ac_word=$2
13887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13888$as_echo_n "checking for $ac_word... " >&6; }
13889if ${ac_cv_prog_OTOOL64+:} false; then :
13890  $as_echo_n "(cached) " >&6
13891else
13892  if test -n "$OTOOL64"; then
13893  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13894else
13895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13896for as_dir in $PATH
13897do
13898  IFS=$as_save_IFS
13899  test -z "$as_dir" && as_dir=.
13900    for ac_exec_ext in '' $ac_executable_extensions; do
13901  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13902    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13904    break 2
13905  fi
13906done
13907  done
13908IFS=$as_save_IFS
13909
13910fi
13911fi
13912OTOOL64=$ac_cv_prog_OTOOL64
13913if test -n "$OTOOL64"; then
13914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13915$as_echo "$OTOOL64" >&6; }
13916else
13917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13918$as_echo "no" >&6; }
13919fi
13920
13921
13922fi
13923if test -z "$ac_cv_prog_OTOOL64"; then
13924  ac_ct_OTOOL64=$OTOOL64
13925  # Extract the first word of "otool64", so it can be a program name with args.
13926set dummy otool64; ac_word=$2
13927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13928$as_echo_n "checking for $ac_word... " >&6; }
13929if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13930  $as_echo_n "(cached) " >&6
13931else
13932  if test -n "$ac_ct_OTOOL64"; then
13933  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13934else
13935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13936for as_dir in $PATH
13937do
13938  IFS=$as_save_IFS
13939  test -z "$as_dir" && as_dir=.
13940    for ac_exec_ext in '' $ac_executable_extensions; do
13941  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13942    ac_cv_prog_ac_ct_OTOOL64="otool64"
13943    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13944    break 2
13945  fi
13946done
13947  done
13948IFS=$as_save_IFS
13949
13950fi
13951fi
13952ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13953if test -n "$ac_ct_OTOOL64"; then
13954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13955$as_echo "$ac_ct_OTOOL64" >&6; }
13956else
13957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13958$as_echo "no" >&6; }
13959fi
13960
13961  if test "x$ac_ct_OTOOL64" = x; then
13962    OTOOL64=":"
13963  else
13964    case $cross_compiling:$ac_tool_warned in
13965yes:)
13966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13968ac_tool_warned=yes ;;
13969esac
13970    OTOOL64=$ac_ct_OTOOL64
13971  fi
13972else
13973  OTOOL64="$ac_cv_prog_OTOOL64"
13974fi
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14003$as_echo_n "checking for -single_module linker flag... " >&6; }
14004if ${lt_cv_apple_cc_single_mod+:} false; then :
14005  $as_echo_n "(cached) " >&6
14006else
14007  lt_cv_apple_cc_single_mod=no
14008      if test -z "$LT_MULTI_MODULE"; then
14009	# By default we will add the -single_module flag. You can override
14010	# by either setting the environment variable LT_MULTI_MODULE
14011	# non-empty at configure time, or by adding -multi_module to the
14012	# link flags.
14013	rm -rf libconftest.dylib*
14014	echo "int foo(void){return 1;}" > conftest.c
14015	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14016-dynamiclib -Wl,-single_module conftest.c" >&5
14017	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14018	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14019        _lt_result=$?
14020	# If there is a non-empty error log, and "single_module"
14021	# appears in it, assume the flag caused a linker warning
14022        if test -s conftest.err && $GREP single_module conftest.err; then
14023	  cat conftest.err >&5
14024	# Otherwise, if the output was created with a 0 exit code from
14025	# the compiler, it worked.
14026	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14027	  lt_cv_apple_cc_single_mod=yes
14028	else
14029	  cat conftest.err >&5
14030	fi
14031	rm -rf libconftest.dylib*
14032	rm -f conftest.*
14033      fi
14034fi
14035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14036$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14037
14038    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14039$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14040if ${lt_cv_ld_exported_symbols_list+:} false; then :
14041  $as_echo_n "(cached) " >&6
14042else
14043  lt_cv_ld_exported_symbols_list=no
14044      save_LDFLAGS=$LDFLAGS
14045      echo "_main" > conftest.sym
14046      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14047      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14048/* end confdefs.h.  */
14049
14050int
14051main ()
14052{
14053
14054  ;
14055  return 0;
14056}
14057_ACEOF
14058if ac_fn_c_try_link "$LINENO"; then :
14059  lt_cv_ld_exported_symbols_list=yes
14060else
14061  lt_cv_ld_exported_symbols_list=no
14062fi
14063rm -f core conftest.err conftest.$ac_objext \
14064    conftest$ac_exeext conftest.$ac_ext
14065	LDFLAGS=$save_LDFLAGS
14066
14067fi
14068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14069$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14070
14071    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14072$as_echo_n "checking for -force_load linker flag... " >&6; }
14073if ${lt_cv_ld_force_load+:} false; then :
14074  $as_echo_n "(cached) " >&6
14075else
14076  lt_cv_ld_force_load=no
14077      cat > conftest.c << _LT_EOF
14078int forced_loaded() { return 2;}
14079_LT_EOF
14080      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14081      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14082      echo "$AR cru libconftest.a conftest.o" >&5
14083      $AR cru libconftest.a conftest.o 2>&5
14084      echo "$RANLIB libconftest.a" >&5
14085      $RANLIB libconftest.a 2>&5
14086      cat > conftest.c << _LT_EOF
14087int main() { return 0;}
14088_LT_EOF
14089      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14090      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14091      _lt_result=$?
14092      if test -s conftest.err && $GREP force_load conftest.err; then
14093	cat conftest.err >&5
14094      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14095	lt_cv_ld_force_load=yes
14096      else
14097	cat conftest.err >&5
14098      fi
14099        rm -f conftest.err libconftest.a conftest conftest.c
14100        rm -rf conftest.dSYM
14101
14102fi
14103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14104$as_echo "$lt_cv_ld_force_load" >&6; }
14105    case $host_os in
14106    rhapsody* | darwin1.[012])
14107      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14108    darwin1.*)
14109      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14110    darwin*) # darwin 5.x on
14111      # if running on 10.5 or later, the deployment target defaults
14112      # to the OS version, if on x86, and 10.4, the deployment
14113      # target defaults to 10.4. Don't you love it?
14114      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14115	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14116	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14117	10.[012][,.]*)
14118	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14119	10.*)
14120	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14121      esac
14122    ;;
14123  esac
14124    if test yes = "$lt_cv_apple_cc_single_mod"; then
14125      _lt_dar_single_mod='$single_module'
14126    fi
14127    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14128      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14129    else
14130      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14131    fi
14132    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14133      _lt_dsymutil='~$DSYMUTIL $lib || :'
14134    else
14135      _lt_dsymutil=
14136    fi
14137    ;;
14138  esac
14139
14140# func_munge_path_list VARIABLE PATH
14141# -----------------------------------
14142# VARIABLE is name of variable containing _space_ separated list of
14143# directories to be munged by the contents of PATH, which is string
14144# having a format:
14145# "DIR[:DIR]:"
14146#       string "DIR[ DIR]" will be prepended to VARIABLE
14147# ":DIR[:DIR]"
14148#       string "DIR[ DIR]" will be appended to VARIABLE
14149# "DIRP[:DIRP]::[DIRA:]DIRA"
14150#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14151#       "DIRA[ DIRA]" will be appended to VARIABLE
14152# "DIR[:DIR]"
14153#       VARIABLE will be replaced by "DIR[ DIR]"
14154func_munge_path_list ()
14155{
14156    case x$2 in
14157    x)
14158        ;;
14159    *:)
14160        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14161        ;;
14162    x:*)
14163        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14164        ;;
14165    *::*)
14166        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14167        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14168        ;;
14169    *)
14170        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14171        ;;
14172    esac
14173}
14174
14175for ac_header in dlfcn.h
14176do :
14177  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14178"
14179if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14180  cat >>confdefs.h <<_ACEOF
14181#define HAVE_DLFCN_H 1
14182_ACEOF
14183
14184fi
14185
14186done
14187
14188
14189
14190
14191
14192# Set options
14193
14194
14195
14196        enable_dlopen=no
14197
14198
14199  enable_win32_dll=no
14200
14201
14202            # Check whether --enable-shared was given.
14203if test "${enable_shared+set}" = set; then :
14204  enableval=$enable_shared; p=${PACKAGE-default}
14205    case $enableval in
14206    yes) enable_shared=yes ;;
14207    no) enable_shared=no ;;
14208    *)
14209      enable_shared=no
14210      # Look at the argument we got.  We use all the common list separators.
14211      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14212      for pkg in $enableval; do
14213	IFS=$lt_save_ifs
14214	if test "X$pkg" = "X$p"; then
14215	  enable_shared=yes
14216	fi
14217      done
14218      IFS=$lt_save_ifs
14219      ;;
14220    esac
14221else
14222  enable_shared=yes
14223fi
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235# Check whether --with-pic was given.
14236if test "${with_pic+set}" = set; then :
14237  withval=$with_pic; lt_p=${PACKAGE-default}
14238    case $withval in
14239    yes|no) pic_mode=$withval ;;
14240    *)
14241      pic_mode=default
14242      # Look at the argument we got.  We use all the common list separators.
14243      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14244      for lt_pkg in $withval; do
14245	IFS=$lt_save_ifs
14246	if test "X$lt_pkg" = "X$lt_p"; then
14247	  pic_mode=yes
14248	fi
14249      done
14250      IFS=$lt_save_ifs
14251      ;;
14252    esac
14253else
14254  pic_mode=default
14255fi
14256
14257
14258
14259
14260
14261
14262
14263
14264  # Check whether --enable-fast-install was given.
14265if test "${enable_fast_install+set}" = set; then :
14266  enableval=$enable_fast_install; p=${PACKAGE-default}
14267    case $enableval in
14268    yes) enable_fast_install=yes ;;
14269    no) enable_fast_install=no ;;
14270    *)
14271      enable_fast_install=no
14272      # Look at the argument we got.  We use all the common list separators.
14273      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
14274      for pkg in $enableval; do
14275	IFS=$lt_save_ifs
14276	if test "X$pkg" = "X$p"; then
14277	  enable_fast_install=yes
14278	fi
14279      done
14280      IFS=$lt_save_ifs
14281      ;;
14282    esac
14283else
14284  enable_fast_install=yes
14285fi
14286
14287
14288
14289
14290
14291
14292
14293
14294  shared_archive_member_spec=
14295case $host,$enable_shared in
14296power*-*-aix[5-9]*,yes)
14297  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14298$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14299
14300# Check whether --with-aix-soname was given.
14301if test "${with_aix_soname+set}" = set; then :
14302  withval=$with_aix_soname; case $withval in
14303    aix|svr4|both)
14304      ;;
14305    *)
14306      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14307      ;;
14308    esac
14309    lt_cv_with_aix_soname=$with_aix_soname
14310else
14311  if ${lt_cv_with_aix_soname+:} false; then :
14312  $as_echo_n "(cached) " >&6
14313else
14314  lt_cv_with_aix_soname=aix
14315fi
14316
14317    with_aix_soname=$lt_cv_with_aix_soname
14318fi
14319
14320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14321$as_echo "$with_aix_soname" >&6; }
14322  if test aix != "$with_aix_soname"; then
14323    # For the AIX way of multilib, we name the shared archive member
14324    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14325    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14326    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14327    # the AIX toolchain works better with OBJECT_MODE set (default 32).
14328    if test 64 = "${OBJECT_MODE-32}"; then
14329      shared_archive_member_spec=shr_64
14330    else
14331      shared_archive_member_spec=shr
14332    fi
14333  fi
14334  ;;
14335*)
14336  with_aix_soname=aix
14337  ;;
14338esac
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349# This can be used to rebuild libtool when needed
14350LIBTOOL_DEPS=$ltmain
14351
14352# Always use our own libtool.
14353LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384test -z "$LN_S" && LN_S="ln -s"
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399if test -n "${ZSH_VERSION+set}"; then
14400   setopt NO_GLOB_SUBST
14401fi
14402
14403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14404$as_echo_n "checking for objdir... " >&6; }
14405if ${lt_cv_objdir+:} false; then :
14406  $as_echo_n "(cached) " >&6
14407else
14408  rm -f .libs 2>/dev/null
14409mkdir .libs 2>/dev/null
14410if test -d .libs; then
14411  lt_cv_objdir=.libs
14412else
14413  # MS-DOS does not allow filenames that begin with a dot.
14414  lt_cv_objdir=_libs
14415fi
14416rmdir .libs 2>/dev/null
14417fi
14418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14419$as_echo "$lt_cv_objdir" >&6; }
14420objdir=$lt_cv_objdir
14421
14422
14423
14424
14425
14426cat >>confdefs.h <<_ACEOF
14427#define LT_OBJDIR "$lt_cv_objdir/"
14428_ACEOF
14429
14430
14431
14432
14433case $host_os in
14434aix3*)
14435  # AIX sometimes has problems with the GCC collect2 program.  For some
14436  # reason, if we set the COLLECT_NAMES environment variable, the problems
14437  # vanish in a puff of smoke.
14438  if test set != "${COLLECT_NAMES+set}"; then
14439    COLLECT_NAMES=
14440    export COLLECT_NAMES
14441  fi
14442  ;;
14443esac
14444
14445# Global variables:
14446ofile=libtool
14447can_build_shared=yes
14448
14449# All known linkers require a '.a' archive for static linking (except MSVC,
14450# which needs '.lib').
14451libext=a
14452
14453with_gnu_ld=$lt_cv_prog_gnu_ld
14454
14455old_CC=$CC
14456old_CFLAGS=$CFLAGS
14457
14458# Set sane defaults for various variables
14459test -z "$CC" && CC=cc
14460test -z "$LTCC" && LTCC=$CC
14461test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14462test -z "$LD" && LD=ld
14463test -z "$ac_objext" && ac_objext=o
14464
14465func_cc_basename $compiler
14466cc_basename=$func_cc_basename_result
14467
14468
14469# Only perform the check for file, if the check method requires it
14470test -z "$MAGIC_CMD" && MAGIC_CMD=file
14471case $deplibs_check_method in
14472file_magic*)
14473  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14474    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14475$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14476if ${lt_cv_path_MAGIC_CMD+:} false; then :
14477  $as_echo_n "(cached) " >&6
14478else
14479  case $MAGIC_CMD in
14480[\\/*] |  ?:[\\/]*)
14481  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14482  ;;
14483*)
14484  lt_save_MAGIC_CMD=$MAGIC_CMD
14485  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14486  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14487  for ac_dir in $ac_dummy; do
14488    IFS=$lt_save_ifs
14489    test -z "$ac_dir" && ac_dir=.
14490    if test -f "$ac_dir/${ac_tool_prefix}file"; then
14491      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
14492      if test -n "$file_magic_test_file"; then
14493	case $deplibs_check_method in
14494	"file_magic "*)
14495	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14496	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14497	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14498	    $EGREP "$file_magic_regex" > /dev/null; then
14499	    :
14500	  else
14501	    cat <<_LT_EOF 1>&2
14502
14503*** Warning: the command libtool uses to detect shared libraries,
14504*** $file_magic_cmd, produces output that libtool cannot recognize.
14505*** The result is that libtool may fail to recognize shared libraries
14506*** as such.  This will affect the creation of libtool libraries that
14507*** depend on shared libraries, but programs linked with such libtool
14508*** libraries will work regardless of this problem.  Nevertheless, you
14509*** may want to report the problem to your system manager and/or to
14510*** bug-libtool@gnu.org
14511
14512_LT_EOF
14513	  fi ;;
14514	esac
14515      fi
14516      break
14517    fi
14518  done
14519  IFS=$lt_save_ifs
14520  MAGIC_CMD=$lt_save_MAGIC_CMD
14521  ;;
14522esac
14523fi
14524
14525MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14526if test -n "$MAGIC_CMD"; then
14527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14528$as_echo "$MAGIC_CMD" >&6; }
14529else
14530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14531$as_echo "no" >&6; }
14532fi
14533
14534
14535
14536
14537
14538if test -z "$lt_cv_path_MAGIC_CMD"; then
14539  if test -n "$ac_tool_prefix"; then
14540    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14541$as_echo_n "checking for file... " >&6; }
14542if ${lt_cv_path_MAGIC_CMD+:} false; then :
14543  $as_echo_n "(cached) " >&6
14544else
14545  case $MAGIC_CMD in
14546[\\/*] |  ?:[\\/]*)
14547  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
14548  ;;
14549*)
14550  lt_save_MAGIC_CMD=$MAGIC_CMD
14551  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14552  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14553  for ac_dir in $ac_dummy; do
14554    IFS=$lt_save_ifs
14555    test -z "$ac_dir" && ac_dir=.
14556    if test -f "$ac_dir/file"; then
14557      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
14558      if test -n "$file_magic_test_file"; then
14559	case $deplibs_check_method in
14560	"file_magic "*)
14561	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14562	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14563	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14564	    $EGREP "$file_magic_regex" > /dev/null; then
14565	    :
14566	  else
14567	    cat <<_LT_EOF 1>&2
14568
14569*** Warning: the command libtool uses to detect shared libraries,
14570*** $file_magic_cmd, produces output that libtool cannot recognize.
14571*** The result is that libtool may fail to recognize shared libraries
14572*** as such.  This will affect the creation of libtool libraries that
14573*** depend on shared libraries, but programs linked with such libtool
14574*** libraries will work regardless of this problem.  Nevertheless, you
14575*** may want to report the problem to your system manager and/or to
14576*** bug-libtool@gnu.org
14577
14578_LT_EOF
14579	  fi ;;
14580	esac
14581      fi
14582      break
14583    fi
14584  done
14585  IFS=$lt_save_ifs
14586  MAGIC_CMD=$lt_save_MAGIC_CMD
14587  ;;
14588esac
14589fi
14590
14591MAGIC_CMD=$lt_cv_path_MAGIC_CMD
14592if test -n "$MAGIC_CMD"; then
14593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14594$as_echo "$MAGIC_CMD" >&6; }
14595else
14596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14597$as_echo "no" >&6; }
14598fi
14599
14600
14601  else
14602    MAGIC_CMD=:
14603  fi
14604fi
14605
14606  fi
14607  ;;
14608esac
14609
14610# Use C for the default configuration in the libtool script
14611
14612lt_save_CC=$CC
14613ac_ext=c
14614ac_cpp='$CPP $CPPFLAGS'
14615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14617ac_compiler_gnu=$ac_cv_c_compiler_gnu
14618
14619
14620# Source file extension for C test sources.
14621ac_ext=c
14622
14623# Object file extension for compiled C test sources.
14624objext=o
14625objext=$objext
14626
14627# Code to be used in simple compile tests
14628lt_simple_compile_test_code="int some_variable = 0;"
14629
14630# Code to be used in simple link tests
14631lt_simple_link_test_code='int main(){return(0);}'
14632
14633
14634
14635
14636
14637
14638
14639# If no C compiler was specified, use CC.
14640LTCC=${LTCC-"$CC"}
14641
14642# If no C compiler flags were specified, use CFLAGS.
14643LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14644
14645# Allow CC to be a program name with arguments.
14646compiler=$CC
14647
14648# Save the default compiler, since it gets overwritten when the other
14649# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14650compiler_DEFAULT=$CC
14651
14652# save warnings/boilerplate of simple test code
14653ac_outfile=conftest.$ac_objext
14654echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14655eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14656_lt_compiler_boilerplate=`cat conftest.err`
14657$RM conftest*
14658
14659ac_outfile=conftest.$ac_objext
14660echo "$lt_simple_link_test_code" >conftest.$ac_ext
14661eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14662_lt_linker_boilerplate=`cat conftest.err`
14663$RM -r conftest*
14664
14665
14666if test -n "$compiler"; then
14667
14668lt_prog_compiler_no_builtin_flag=
14669
14670if test yes = "$GCC"; then
14671  case $cc_basename in
14672  nvcc*)
14673    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14674  *)
14675    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14676  esac
14677
14678  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14679$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14680if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14681  $as_echo_n "(cached) " >&6
14682else
14683  lt_cv_prog_compiler_rtti_exceptions=no
14684   ac_outfile=conftest.$ac_objext
14685   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14686   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
14687   # Insert the option either (1) after the last *FLAGS variable, or
14688   # (2) before a word containing "conftest.", or (3) at the end.
14689   # Note that $ac_compile itself does not contain backslashes and begins
14690   # with a dollar sign (not a hyphen), so the echo should work correctly.
14691   # The option is referenced via a variable to avoid confusing sed.
14692   lt_compile=`echo "$ac_compile" | $SED \
14693   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14694   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14695   -e 's:$: $lt_compiler_flag:'`
14696   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14697   (eval "$lt_compile" 2>conftest.err)
14698   ac_status=$?
14699   cat conftest.err >&5
14700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701   if (exit $ac_status) && test -s "$ac_outfile"; then
14702     # The compiler can only warn and ignore the option if not recognized
14703     # So say no if there are warnings other than the usual output.
14704     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14705     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14706     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14707       lt_cv_prog_compiler_rtti_exceptions=yes
14708     fi
14709   fi
14710   $RM conftest*
14711
14712fi
14713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14714$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14715
14716if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
14717    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14718else
14719    :
14720fi
14721
14722fi
14723
14724
14725
14726
14727
14728
14729  lt_prog_compiler_wl=
14730lt_prog_compiler_pic=
14731lt_prog_compiler_static=
14732
14733
14734  if test yes = "$GCC"; then
14735    lt_prog_compiler_wl='-Wl,'
14736    lt_prog_compiler_static='-static'
14737
14738    case $host_os in
14739      aix*)
14740      # All AIX code is PIC.
14741      if test ia64 = "$host_cpu"; then
14742	# AIX 5 now supports IA64 processor
14743	lt_prog_compiler_static='-Bstatic'
14744      fi
14745      lt_prog_compiler_pic='-fPIC'
14746      ;;
14747
14748    amigaos*)
14749      case $host_cpu in
14750      powerpc)
14751            # see comment about AmigaOS4 .so support
14752            lt_prog_compiler_pic='-fPIC'
14753        ;;
14754      m68k)
14755            # FIXME: we need at least 68020 code to build shared libraries, but
14756            # adding the '-m68020' flag to GCC prevents building anything better,
14757            # like '-m68040'.
14758            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14759        ;;
14760      esac
14761      ;;
14762
14763    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14764      # PIC is the default for these OSes.
14765      ;;
14766
14767    mingw* | cygwin* | pw32* | os2* | cegcc*)
14768      # This hack is so that the source file can tell whether it is being
14769      # built for inclusion in a dll (and should export symbols for example).
14770      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14771      # (--disable-auto-import) libraries
14772      lt_prog_compiler_pic='-DDLL_EXPORT'
14773      case $host_os in
14774      os2*)
14775	lt_prog_compiler_static='$wl-static'
14776	;;
14777      esac
14778      ;;
14779
14780    darwin* | rhapsody*)
14781      # PIC is the default on this platform
14782      # Common symbols not allowed in MH_DYLIB files
14783      lt_prog_compiler_pic='-fno-common'
14784      ;;
14785
14786    haiku*)
14787      # PIC is the default for Haiku.
14788      # The "-static" flag exists, but is broken.
14789      lt_prog_compiler_static=
14790      ;;
14791
14792    hpux*)
14793      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14794      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14795      # sets the default TLS model and affects inlining.
14796      case $host_cpu in
14797      hppa*64*)
14798	# +Z the default
14799	;;
14800      *)
14801	lt_prog_compiler_pic='-fPIC'
14802	;;
14803      esac
14804      ;;
14805
14806    interix[3-9]*)
14807      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14808      # Instead, we relocate shared libraries at runtime.
14809      ;;
14810
14811    msdosdjgpp*)
14812      # Just because we use GCC doesn't mean we suddenly get shared libraries
14813      # on systems that don't support them.
14814      lt_prog_compiler_can_build_shared=no
14815      enable_shared=no
14816      ;;
14817
14818    *nto* | *qnx*)
14819      # QNX uses GNU C++, but need to define -shared option too, otherwise
14820      # it will coredump.
14821      lt_prog_compiler_pic='-fPIC -shared'
14822      ;;
14823
14824    sysv4*MP*)
14825      if test -d /usr/nec; then
14826	lt_prog_compiler_pic=-Kconform_pic
14827      fi
14828      ;;
14829
14830    *)
14831      lt_prog_compiler_pic='-fPIC'
14832      ;;
14833    esac
14834
14835    case $cc_basename in
14836    nvcc*) # Cuda Compiler Driver 2.2
14837      lt_prog_compiler_wl='-Xlinker '
14838      if test -n "$lt_prog_compiler_pic"; then
14839        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14840      fi
14841      ;;
14842    esac
14843  else
14844    # PORTME Check for flag to pass linker flags through the system compiler.
14845    case $host_os in
14846    aix*)
14847      lt_prog_compiler_wl='-Wl,'
14848      if test ia64 = "$host_cpu"; then
14849	# AIX 5 now supports IA64 processor
14850	lt_prog_compiler_static='-Bstatic'
14851      else
14852	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14853      fi
14854      ;;
14855
14856    darwin* | rhapsody*)
14857      # PIC is the default on this platform
14858      # Common symbols not allowed in MH_DYLIB files
14859      lt_prog_compiler_pic='-fno-common'
14860      case $cc_basename in
14861      nagfor*)
14862        # NAG Fortran compiler
14863        lt_prog_compiler_wl='-Wl,-Wl,,'
14864        lt_prog_compiler_pic='-PIC'
14865        lt_prog_compiler_static='-Bstatic'
14866        ;;
14867      esac
14868      ;;
14869
14870    mingw* | cygwin* | pw32* | os2* | cegcc*)
14871      # This hack is so that the source file can tell whether it is being
14872      # built for inclusion in a dll (and should export symbols for example).
14873      lt_prog_compiler_pic='-DDLL_EXPORT'
14874      case $host_os in
14875      os2*)
14876	lt_prog_compiler_static='$wl-static'
14877	;;
14878      esac
14879      ;;
14880
14881    hpux9* | hpux10* | hpux11*)
14882      lt_prog_compiler_wl='-Wl,'
14883      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14884      # not for PA HP-UX.
14885      case $host_cpu in
14886      hppa*64*|ia64*)
14887	# +Z the default
14888	;;
14889      *)
14890	lt_prog_compiler_pic='+Z'
14891	;;
14892      esac
14893      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14894      lt_prog_compiler_static='$wl-a ${wl}archive'
14895      ;;
14896
14897    irix5* | irix6* | nonstopux*)
14898      lt_prog_compiler_wl='-Wl,'
14899      # PIC (with -KPIC) is the default.
14900      lt_prog_compiler_static='-non_shared'
14901      ;;
14902
14903    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14904      case $cc_basename in
14905      # old Intel for x86_64, which still supported -KPIC.
14906      ecc*)
14907	lt_prog_compiler_wl='-Wl,'
14908	lt_prog_compiler_pic='-KPIC'
14909	lt_prog_compiler_static='-static'
14910        ;;
14911      # icc used to be incompatible with GCC.
14912      # ICC 10 doesn't accept -KPIC any more.
14913      icc* | ifort*)
14914	lt_prog_compiler_wl='-Wl,'
14915	lt_prog_compiler_pic='-fPIC'
14916	lt_prog_compiler_static='-static'
14917        ;;
14918      # Lahey Fortran 8.1.
14919      lf95*)
14920	lt_prog_compiler_wl='-Wl,'
14921	lt_prog_compiler_pic='--shared'
14922	lt_prog_compiler_static='--static'
14923	;;
14924      nagfor*)
14925	# NAG Fortran compiler
14926	lt_prog_compiler_wl='-Wl,-Wl,,'
14927	lt_prog_compiler_pic='-PIC'
14928	lt_prog_compiler_static='-Bstatic'
14929	;;
14930      tcc*)
14931	# Fabrice Bellard et al's Tiny C Compiler
14932	lt_prog_compiler_wl='-Wl,'
14933	lt_prog_compiler_pic='-fPIC'
14934	lt_prog_compiler_static='-static'
14935	;;
14936      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14937        # Portland Group compilers (*not* the Pentium gcc compiler,
14938	# which looks to be a dead project)
14939	lt_prog_compiler_wl='-Wl,'
14940	lt_prog_compiler_pic='-fpic'
14941	lt_prog_compiler_static='-Bstatic'
14942        ;;
14943      ccc*)
14944        lt_prog_compiler_wl='-Wl,'
14945        # All Alpha code is PIC.
14946        lt_prog_compiler_static='-non_shared'
14947        ;;
14948      xl* | bgxl* | bgf* | mpixl*)
14949	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14950	lt_prog_compiler_wl='-Wl,'
14951	lt_prog_compiler_pic='-qpic'
14952	lt_prog_compiler_static='-qstaticlink'
14953	;;
14954      *)
14955	case `$CC -V 2>&1 | sed 5q` in
14956	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14957	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14958	  lt_prog_compiler_pic='-KPIC'
14959	  lt_prog_compiler_static='-Bstatic'
14960	  lt_prog_compiler_wl=''
14961	  ;;
14962	*Sun\ F* | *Sun*Fortran*)
14963	  lt_prog_compiler_pic='-KPIC'
14964	  lt_prog_compiler_static='-Bstatic'
14965	  lt_prog_compiler_wl='-Qoption ld '
14966	  ;;
14967	*Sun\ C*)
14968	  # Sun C 5.9
14969	  lt_prog_compiler_pic='-KPIC'
14970	  lt_prog_compiler_static='-Bstatic'
14971	  lt_prog_compiler_wl='-Wl,'
14972	  ;;
14973        *Intel*\ [CF]*Compiler*)
14974	  lt_prog_compiler_wl='-Wl,'
14975	  lt_prog_compiler_pic='-fPIC'
14976	  lt_prog_compiler_static='-static'
14977	  ;;
14978	*Portland\ Group*)
14979	  lt_prog_compiler_wl='-Wl,'
14980	  lt_prog_compiler_pic='-fpic'
14981	  lt_prog_compiler_static='-Bstatic'
14982	  ;;
14983	esac
14984	;;
14985      esac
14986      ;;
14987
14988    newsos6)
14989      lt_prog_compiler_pic='-KPIC'
14990      lt_prog_compiler_static='-Bstatic'
14991      ;;
14992
14993    *nto* | *qnx*)
14994      # QNX uses GNU C++, but need to define -shared option too, otherwise
14995      # it will coredump.
14996      lt_prog_compiler_pic='-fPIC -shared'
14997      ;;
14998
14999    osf3* | osf4* | osf5*)
15000      lt_prog_compiler_wl='-Wl,'
15001      # All OSF/1 code is PIC.
15002      lt_prog_compiler_static='-non_shared'
15003      ;;
15004
15005    rdos*)
15006      lt_prog_compiler_static='-non_shared'
15007      ;;
15008
15009    solaris*)
15010      lt_prog_compiler_pic='-KPIC'
15011      lt_prog_compiler_static='-Bstatic'
15012      case $cc_basename in
15013      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15014	lt_prog_compiler_wl='-Qoption ld ';;
15015      *)
15016	lt_prog_compiler_wl='-Wl,';;
15017      esac
15018      ;;
15019
15020    sunos4*)
15021      lt_prog_compiler_wl='-Qoption ld '
15022      lt_prog_compiler_pic='-PIC'
15023      lt_prog_compiler_static='-Bstatic'
15024      ;;
15025
15026    sysv4 | sysv4.2uw2* | sysv4.3*)
15027      lt_prog_compiler_wl='-Wl,'
15028      lt_prog_compiler_pic='-KPIC'
15029      lt_prog_compiler_static='-Bstatic'
15030      ;;
15031
15032    sysv4*MP*)
15033      if test -d /usr/nec; then
15034	lt_prog_compiler_pic='-Kconform_pic'
15035	lt_prog_compiler_static='-Bstatic'
15036      fi
15037      ;;
15038
15039    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15040      lt_prog_compiler_wl='-Wl,'
15041      lt_prog_compiler_pic='-KPIC'
15042      lt_prog_compiler_static='-Bstatic'
15043      ;;
15044
15045    unicos*)
15046      lt_prog_compiler_wl='-Wl,'
15047      lt_prog_compiler_can_build_shared=no
15048      ;;
15049
15050    uts4*)
15051      lt_prog_compiler_pic='-pic'
15052      lt_prog_compiler_static='-Bstatic'
15053      ;;
15054
15055    *)
15056      lt_prog_compiler_can_build_shared=no
15057      ;;
15058    esac
15059  fi
15060
15061case $host_os in
15062  # For platforms that do not support PIC, -DPIC is meaningless:
15063  *djgpp*)
15064    lt_prog_compiler_pic=
15065    ;;
15066  *)
15067    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15068    ;;
15069esac
15070
15071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15072$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15073if ${lt_cv_prog_compiler_pic+:} false; then :
15074  $as_echo_n "(cached) " >&6
15075else
15076  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15077fi
15078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15079$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15080lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15081
15082#
15083# Check to make sure the PIC flag actually works.
15084#
15085if test -n "$lt_prog_compiler_pic"; then
15086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15087$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15088if ${lt_cv_prog_compiler_pic_works+:} false; then :
15089  $as_echo_n "(cached) " >&6
15090else
15091  lt_cv_prog_compiler_pic_works=no
15092   ac_outfile=conftest.$ac_objext
15093   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15094   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15095   # Insert the option either (1) after the last *FLAGS variable, or
15096   # (2) before a word containing "conftest.", or (3) at the end.
15097   # Note that $ac_compile itself does not contain backslashes and begins
15098   # with a dollar sign (not a hyphen), so the echo should work correctly.
15099   # The option is referenced via a variable to avoid confusing sed.
15100   lt_compile=`echo "$ac_compile" | $SED \
15101   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15102   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15103   -e 's:$: $lt_compiler_flag:'`
15104   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15105   (eval "$lt_compile" 2>conftest.err)
15106   ac_status=$?
15107   cat conftest.err >&5
15108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109   if (exit $ac_status) && test -s "$ac_outfile"; then
15110     # The compiler can only warn and ignore the option if not recognized
15111     # So say no if there are warnings other than the usual output.
15112     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15113     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15114     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15115       lt_cv_prog_compiler_pic_works=yes
15116     fi
15117   fi
15118   $RM conftest*
15119
15120fi
15121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15122$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15123
15124if test yes = "$lt_cv_prog_compiler_pic_works"; then
15125    case $lt_prog_compiler_pic in
15126     "" | " "*) ;;
15127     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15128     esac
15129else
15130    lt_prog_compiler_pic=
15131     lt_prog_compiler_can_build_shared=no
15132fi
15133
15134fi
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146#
15147# Check to make sure the static flag actually works.
15148#
15149wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15151$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15152if ${lt_cv_prog_compiler_static_works+:} false; then :
15153  $as_echo_n "(cached) " >&6
15154else
15155  lt_cv_prog_compiler_static_works=no
15156   save_LDFLAGS=$LDFLAGS
15157   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15158   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15159   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15160     # The linker can only warn and ignore the option if not recognized
15161     # So say no if there are warnings
15162     if test -s conftest.err; then
15163       # Append any errors to the config.log.
15164       cat conftest.err 1>&5
15165       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15166       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15167       if diff conftest.exp conftest.er2 >/dev/null; then
15168         lt_cv_prog_compiler_static_works=yes
15169       fi
15170     else
15171       lt_cv_prog_compiler_static_works=yes
15172     fi
15173   fi
15174   $RM -r conftest*
15175   LDFLAGS=$save_LDFLAGS
15176
15177fi
15178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15179$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15180
15181if test yes = "$lt_cv_prog_compiler_static_works"; then
15182    :
15183else
15184    lt_prog_compiler_static=
15185fi
15186
15187
15188
15189
15190
15191
15192
15193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15194$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15195if ${lt_cv_prog_compiler_c_o+:} false; then :
15196  $as_echo_n "(cached) " >&6
15197else
15198  lt_cv_prog_compiler_c_o=no
15199   $RM -r conftest 2>/dev/null
15200   mkdir conftest
15201   cd conftest
15202   mkdir out
15203   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15204
15205   lt_compiler_flag="-o out/conftest2.$ac_objext"
15206   # Insert the option either (1) after the last *FLAGS variable, or
15207   # (2) before a word containing "conftest.", or (3) at the end.
15208   # Note that $ac_compile itself does not contain backslashes and begins
15209   # with a dollar sign (not a hyphen), so the echo should work correctly.
15210   lt_compile=`echo "$ac_compile" | $SED \
15211   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15212   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15213   -e 's:$: $lt_compiler_flag:'`
15214   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15215   (eval "$lt_compile" 2>out/conftest.err)
15216   ac_status=$?
15217   cat out/conftest.err >&5
15218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15220   then
15221     # The compiler can only warn and ignore the option if not recognized
15222     # So say no if there are warnings
15223     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15224     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15225     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15226       lt_cv_prog_compiler_c_o=yes
15227     fi
15228   fi
15229   chmod u+w . 2>&5
15230   $RM conftest*
15231   # SGI C++ compiler will create directory out/ii_files/ for
15232   # template instantiation
15233   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15234   $RM out/* && rmdir out
15235   cd ..
15236   $RM -r conftest
15237   $RM conftest*
15238
15239fi
15240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15241$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15242
15243
15244
15245
15246
15247
15248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15249$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15250if ${lt_cv_prog_compiler_c_o+:} false; then :
15251  $as_echo_n "(cached) " >&6
15252else
15253  lt_cv_prog_compiler_c_o=no
15254   $RM -r conftest 2>/dev/null
15255   mkdir conftest
15256   cd conftest
15257   mkdir out
15258   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15259
15260   lt_compiler_flag="-o out/conftest2.$ac_objext"
15261   # Insert the option either (1) after the last *FLAGS variable, or
15262   # (2) before a word containing "conftest.", or (3) at the end.
15263   # Note that $ac_compile itself does not contain backslashes and begins
15264   # with a dollar sign (not a hyphen), so the echo should work correctly.
15265   lt_compile=`echo "$ac_compile" | $SED \
15266   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15267   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15268   -e 's:$: $lt_compiler_flag:'`
15269   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15270   (eval "$lt_compile" 2>out/conftest.err)
15271   ac_status=$?
15272   cat out/conftest.err >&5
15273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15275   then
15276     # The compiler can only warn and ignore the option if not recognized
15277     # So say no if there are warnings
15278     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15279     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15280     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15281       lt_cv_prog_compiler_c_o=yes
15282     fi
15283   fi
15284   chmod u+w . 2>&5
15285   $RM conftest*
15286   # SGI C++ compiler will create directory out/ii_files/ for
15287   # template instantiation
15288   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15289   $RM out/* && rmdir out
15290   cd ..
15291   $RM -r conftest
15292   $RM conftest*
15293
15294fi
15295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15296$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15297
15298
15299
15300
15301hard_links=nottested
15302if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
15303  # do not overwrite the value of need_locks provided by the user
15304  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15305$as_echo_n "checking if we can lock with hard links... " >&6; }
15306  hard_links=yes
15307  $RM conftest*
15308  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15309  touch conftest.a
15310  ln conftest.a conftest.b 2>&5 || hard_links=no
15311  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15313$as_echo "$hard_links" >&6; }
15314  if test no = "$hard_links"; then
15315    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15316$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15317    need_locks=warn
15318  fi
15319else
15320  need_locks=no
15321fi
15322
15323
15324
15325
15326
15327
15328  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15329$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15330
15331  runpath_var=
15332  allow_undefined_flag=
15333  always_export_symbols=no
15334  archive_cmds=
15335  archive_expsym_cmds=
15336  compiler_needs_object=no
15337  enable_shared_with_static_runtimes=no
15338  export_dynamic_flag_spec=
15339  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15340  hardcode_automatic=no
15341  hardcode_direct=no
15342  hardcode_direct_absolute=no
15343  hardcode_libdir_flag_spec=
15344  hardcode_libdir_separator=
15345  hardcode_minus_L=no
15346  hardcode_shlibpath_var=unsupported
15347  inherit_rpath=no
15348  link_all_deplibs=unknown
15349  module_cmds=
15350  module_expsym_cmds=
15351  old_archive_from_new_cmds=
15352  old_archive_from_expsyms_cmds=
15353  thread_safe_flag_spec=
15354  whole_archive_flag_spec=
15355  # include_expsyms should be a list of space-separated symbols to be *always*
15356  # included in the symbol list
15357  include_expsyms=
15358  # exclude_expsyms can be an extended regexp of symbols to exclude
15359  # it will be wrapped by ' (' and ')$', so one must not match beginning or
15360  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15361  # as well as any symbol that contains 'd'.
15362  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15363  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15364  # platforms (ab)use it in PIC code, but their linkers get confused if
15365  # the symbol is explicitly referenced.  Since portable code cannot
15366  # rely on this symbol name, it's probably fine to never include it in
15367  # preloaded symbol tables.
15368  # Exclude shared library initialization/finalization symbols.
15369  extract_expsyms_cmds=
15370
15371  case $host_os in
15372  cygwin* | mingw* | pw32* | cegcc*)
15373    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15374    # When not using gcc, we currently assume that we are using
15375    # Microsoft Visual C++.
15376    if test yes != "$GCC"; then
15377      with_gnu_ld=no
15378    fi
15379    ;;
15380  interix*)
15381    # we just hope/assume this is gcc and not c89 (= MSVC++)
15382    with_gnu_ld=yes
15383    ;;
15384  openbsd* | bitrig*)
15385    with_gnu_ld=no
15386    ;;
15387  linux* | k*bsd*-gnu | gnu*)
15388    link_all_deplibs=no
15389    ;;
15390  esac
15391
15392  ld_shlibs=yes
15393
15394  # On some targets, GNU ld is compatible enough with the native linker
15395  # that we're better off using the native interface for both.
15396  lt_use_gnu_ld_interface=no
15397  if test yes = "$with_gnu_ld"; then
15398    case $host_os in
15399      aix*)
15400	# The AIX port of GNU ld has always aspired to compatibility
15401	# with the native linker.  However, as the warning in the GNU ld
15402	# block says, versions before 2.19.5* couldn't really create working
15403	# shared libraries, regardless of the interface used.
15404	case `$LD -v 2>&1` in
15405	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15406	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15407	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15408	  *)
15409	    lt_use_gnu_ld_interface=yes
15410	    ;;
15411	esac
15412	;;
15413      *)
15414	lt_use_gnu_ld_interface=yes
15415	;;
15416    esac
15417  fi
15418
15419  if test yes = "$lt_use_gnu_ld_interface"; then
15420    # If archive_cmds runs LD, not CC, wlarc should be empty
15421    wlarc='$wl'
15422
15423    # Set some defaults for GNU ld with shared library support. These
15424    # are reset later if shared libraries are not supported. Putting them
15425    # here allows them to be overridden if necessary.
15426    runpath_var=LD_RUN_PATH
15427    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15428    export_dynamic_flag_spec='$wl--export-dynamic'
15429    # ancient GNU ld didn't support --whole-archive et. al.
15430    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15431      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15432    else
15433      whole_archive_flag_spec=
15434    fi
15435    supports_anon_versioning=no
15436    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
15437      *GNU\ gold*) supports_anon_versioning=yes ;;
15438      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15439      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15440      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15441      *\ 2.11.*) ;; # other 2.11 versions
15442      *) supports_anon_versioning=yes ;;
15443    esac
15444
15445    # See if GNU ld supports shared libraries.
15446    case $host_os in
15447    aix[3-9]*)
15448      # On AIX/PPC, the GNU linker is very broken
15449      if test ia64 != "$host_cpu"; then
15450	ld_shlibs=no
15451	cat <<_LT_EOF 1>&2
15452
15453*** Warning: the GNU linker, at least up to release 2.19, is reported
15454*** to be unable to reliably create shared libraries on AIX.
15455*** Therefore, libtool is disabling shared libraries support.  If you
15456*** really care for shared libraries, you may want to install binutils
15457*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15458*** You will then need to restart the configuration process.
15459
15460_LT_EOF
15461      fi
15462      ;;
15463
15464    amigaos*)
15465      case $host_cpu in
15466      powerpc)
15467            # see comment about AmigaOS4 .so support
15468            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15469            archive_expsym_cmds=''
15470        ;;
15471      m68k)
15472            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)'
15473            hardcode_libdir_flag_spec='-L$libdir'
15474            hardcode_minus_L=yes
15475        ;;
15476      esac
15477      ;;
15478
15479    beos*)
15480      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15481	allow_undefined_flag=unsupported
15482	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15483	# support --undefined.  This deserves some investigation.  FIXME
15484	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15485      else
15486	ld_shlibs=no
15487      fi
15488      ;;
15489
15490    cygwin* | mingw* | pw32* | cegcc*)
15491      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15492      # as there is no search path for DLLs.
15493      hardcode_libdir_flag_spec='-L$libdir'
15494      export_dynamic_flag_spec='$wl--export-all-symbols'
15495      allow_undefined_flag=unsupported
15496      always_export_symbols=no
15497      enable_shared_with_static_runtimes=yes
15498      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'
15499      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15500
15501      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15502        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15503	# If the export-symbols file already is a .def file, use it as
15504	# is; otherwise, prepend EXPORTS...
15505	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
15506          cp $export_symbols $output_objdir/$soname.def;
15507        else
15508          echo EXPORTS > $output_objdir/$soname.def;
15509          cat $export_symbols >> $output_objdir/$soname.def;
15510        fi~
15511        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15512      else
15513	ld_shlibs=no
15514      fi
15515      ;;
15516
15517    haiku*)
15518      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15519      link_all_deplibs=yes
15520      ;;
15521
15522    os2*)
15523      hardcode_libdir_flag_spec='-L$libdir'
15524      hardcode_minus_L=yes
15525      allow_undefined_flag=unsupported
15526      shrext_cmds=.dll
15527      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15528	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15529	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15530	$ECHO EXPORTS >> $output_objdir/$libname.def~
15531	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15532	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15533	emximp -o $lib $output_objdir/$libname.def'
15534      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15535	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15536	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15537	$ECHO EXPORTS >> $output_objdir/$libname.def~
15538	prefix_cmds="$SED"~
15539	if test EXPORTS = "`$SED 1q $export_symbols`"; then
15540	  prefix_cmds="$prefix_cmds -e 1d";
15541	fi~
15542	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15543	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15544	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15545	emximp -o $lib $output_objdir/$libname.def'
15546      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15547      enable_shared_with_static_runtimes=yes
15548      ;;
15549
15550    interix[3-9]*)
15551      hardcode_direct=no
15552      hardcode_shlibpath_var=no
15553      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15554      export_dynamic_flag_spec='$wl-E'
15555      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15556      # Instead, shared libraries are loaded at an image base (0x10000000 by
15557      # default) and relocated if they conflict, which is a slow very memory
15558      # consuming and fragmenting process.  To avoid this, we pick a random,
15559      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15560      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15561      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15562      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'
15563      ;;
15564
15565    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15566      tmp_diet=no
15567      if test linux-dietlibc = "$host_os"; then
15568	case $cc_basename in
15569	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15570	esac
15571      fi
15572      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15573	 && test no = "$tmp_diet"
15574      then
15575	tmp_addflag=' $pic_flag'
15576	tmp_sharedflag='-shared'
15577	case $cc_basename,$host_cpu in
15578        pgcc*)				# Portland Group C compiler
15579	  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'
15580	  tmp_addflag=' $pic_flag'
15581	  ;;
15582	pgf77* | pgf90* | pgf95* | pgfortran*)
15583					# Portland Group f77 and f90 compilers
15584	  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'
15585	  tmp_addflag=' $pic_flag -Mnomain' ;;
15586	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15587	  tmp_addflag=' -i_dynamic' ;;
15588	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15589	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15590	ifc* | ifort*)			# Intel Fortran compiler
15591	  tmp_addflag=' -nofor_main' ;;
15592	lf95*)				# Lahey Fortran 8.1
15593	  whole_archive_flag_spec=
15594	  tmp_sharedflag='--shared' ;;
15595        nagfor*)                        # NAGFOR 5.3
15596          tmp_sharedflag='-Wl,-shared' ;;
15597	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15598	  tmp_sharedflag='-qmkshrobj'
15599	  tmp_addflag= ;;
15600	nvcc*)	# Cuda Compiler Driver 2.2
15601	  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'
15602	  compiler_needs_object=yes
15603	  ;;
15604	esac
15605	case `$CC -V 2>&1 | sed 5q` in
15606	*Sun\ C*)			# Sun C 5.9
15607	  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'
15608	  compiler_needs_object=yes
15609	  tmp_sharedflag='-G' ;;
15610	*Sun\ F*)			# Sun Fortran 8.3
15611	  tmp_sharedflag='-G' ;;
15612	esac
15613	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15614
15615        if test yes = "$supports_anon_versioning"; then
15616          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15617            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15618            echo "local: *; };" >> $output_objdir/$libname.ver~
15619            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15620        fi
15621
15622	case $cc_basename in
15623	tcc*)
15624	  export_dynamic_flag_spec='-rdynamic'
15625	  ;;
15626	xlf* | bgf* | bgxlf* | mpixlf*)
15627	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15628	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15629	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15630	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15631	  if test yes = "$supports_anon_versioning"; then
15632	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15633              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15634              echo "local: *; };" >> $output_objdir/$libname.ver~
15635              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15636	  fi
15637	  ;;
15638	esac
15639      else
15640        ld_shlibs=no
15641      fi
15642      ;;
15643
15644    netbsd* | netbsdelf*-gnu)
15645      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15646	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15647	wlarc=
15648      else
15649	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15650	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15651      fi
15652      ;;
15653
15654    solaris*)
15655      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15656	ld_shlibs=no
15657	cat <<_LT_EOF 1>&2
15658
15659*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15660*** create shared libraries on Solaris systems.  Therefore, libtool
15661*** is disabling shared libraries support.  We urge you to upgrade GNU
15662*** binutils to release 2.9.1 or newer.  Another option is to modify
15663*** your PATH or compiler configuration so that the native linker is
15664*** used, and then restart.
15665
15666_LT_EOF
15667      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15668	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15669	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15670      else
15671	ld_shlibs=no
15672      fi
15673      ;;
15674
15675    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15676      case `$LD -v 2>&1` in
15677        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15678	ld_shlibs=no
15679	cat <<_LT_EOF 1>&2
15680
15681*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
15682*** reliably create shared libraries on SCO systems.  Therefore, libtool
15683*** is disabling shared libraries support.  We urge you to upgrade GNU
15684*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15685*** your PATH or compiler configuration so that the native linker is
15686*** used, and then restart.
15687
15688_LT_EOF
15689	;;
15690	*)
15691	  # For security reasons, it is highly recommended that you always
15692	  # use absolute paths for naming shared libraries, and exclude the
15693	  # DT_RUNPATH tag from executables and libraries.  But doing so
15694	  # requires that you compile everything twice, which is a pain.
15695	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15696	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15697	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15698	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15699	  else
15700	    ld_shlibs=no
15701	  fi
15702	;;
15703      esac
15704      ;;
15705
15706    sunos4*)
15707      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15708      wlarc=
15709      hardcode_direct=yes
15710      hardcode_shlibpath_var=no
15711      ;;
15712
15713    *)
15714      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15715	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15716	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15717      else
15718	ld_shlibs=no
15719      fi
15720      ;;
15721    esac
15722
15723    if test no = "$ld_shlibs"; then
15724      runpath_var=
15725      hardcode_libdir_flag_spec=
15726      export_dynamic_flag_spec=
15727      whole_archive_flag_spec=
15728    fi
15729  else
15730    # PORTME fill in a description of your system's linker (not GNU ld)
15731    case $host_os in
15732    aix3*)
15733      allow_undefined_flag=unsupported
15734      always_export_symbols=yes
15735      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'
15736      # Note: this linker hardcodes the directories in LIBPATH if there
15737      # are no directories specified by -L.
15738      hardcode_minus_L=yes
15739      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
15740	# Neither direct hardcoding nor static linking is supported with a
15741	# broken collect2.
15742	hardcode_direct=unsupported
15743      fi
15744      ;;
15745
15746    aix[4-9]*)
15747      if test ia64 = "$host_cpu"; then
15748	# On IA64, the linker does run time linking by default, so we don't
15749	# have to do anything special.
15750	aix_use_runtimelinking=no
15751	exp_sym_flag='-Bexport'
15752	no_entry_flag=
15753      else
15754	# If we're using GNU nm, then we don't want the "-C" option.
15755	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
15756	# Without the "-l" option, or with the "-B" option, AIX nm treats
15757	# weak defined symbols like other global defined symbols, whereas
15758	# GNU nm marks them as "W".
15759	# While the 'weak' keyword is ignored in the Export File, we need
15760	# it in the Import File for the 'aix-soname' feature, so we have
15761	# to replace the "-B" option with "-P" for AIX nm.
15762	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15763	  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'
15764	else
15765	  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'
15766	fi
15767	aix_use_runtimelinking=no
15768
15769	# Test if we are trying to use run time linking or normal
15770	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15771	# have runtime linking enabled, and use it for executables.
15772	# For shared libraries, we enable/disable runtime linking
15773	# depending on the kind of the shared library created -
15774	# when "with_aix_soname,aix_use_runtimelinking" is:
15775	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15776	# "aix,yes"  lib.so          shared, rtl:yes, for executables
15777	#            lib.a           static archive
15778	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
15779	#            lib.a(lib.so.V) shared, rtl:no,  for executables
15780	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15781	#            lib.a(lib.so.V) shared, rtl:no
15782	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15783	#            lib.a           static archive
15784	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15785	  for ld_flag in $LDFLAGS; do
15786	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
15787	    aix_use_runtimelinking=yes
15788	    break
15789	  fi
15790	  done
15791	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15792	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
15793	    # so we don't have lib.a shared libs to link our executables.
15794	    # We have to force runtime linking in this case.
15795	    aix_use_runtimelinking=yes
15796	    LDFLAGS="$LDFLAGS -Wl,-brtl"
15797	  fi
15798	  ;;
15799	esac
15800
15801	exp_sym_flag='-bexport'
15802	no_entry_flag='-bnoentry'
15803      fi
15804
15805      # When large executables or shared objects are built, AIX ld can
15806      # have problems creating the table of contents.  If linking a library
15807      # or program results in "error TOC overflow" add -mminimal-toc to
15808      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15809      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15810
15811      archive_cmds=''
15812      hardcode_direct=yes
15813      hardcode_direct_absolute=yes
15814      hardcode_libdir_separator=':'
15815      link_all_deplibs=yes
15816      file_list_spec='$wl-f,'
15817      case $with_aix_soname,$aix_use_runtimelinking in
15818      aix,*) ;; # traditional, no import file
15819      svr4,* | *,yes) # use import file
15820	# The Import File defines what to hardcode.
15821	hardcode_direct=no
15822	hardcode_direct_absolute=no
15823	;;
15824      esac
15825
15826      if test yes = "$GCC"; then
15827	case $host_os in aix4.[012]|aix4.[012].*)
15828	# We only want to do this on AIX 4.2 and lower, the check
15829	# below for broken collect2 doesn't work under 4.3+
15830	  collect2name=`$CC -print-prog-name=collect2`
15831	  if test -f "$collect2name" &&
15832	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15833	  then
15834	  # We have reworked collect2
15835	  :
15836	  else
15837	  # We have old collect2
15838	  hardcode_direct=unsupported
15839	  # It fails to find uninstalled libraries when the uninstalled
15840	  # path is not listed in the libpath.  Setting hardcode_minus_L
15841	  # to unsupported forces relinking
15842	  hardcode_minus_L=yes
15843	  hardcode_libdir_flag_spec='-L$libdir'
15844	  hardcode_libdir_separator=
15845	  fi
15846	  ;;
15847	esac
15848	shared_flag='-shared'
15849	if test yes = "$aix_use_runtimelinking"; then
15850	  shared_flag="$shared_flag "'$wl-G'
15851	fi
15852	# Need to ensure runtime linking is disabled for the traditional
15853	# shared library, or the linker may eventually find shared libraries
15854	# /with/ Import File - we do not want to mix them.
15855	shared_flag_aix='-shared'
15856	shared_flag_svr4='-shared $wl-G'
15857      else
15858	# not using gcc
15859	if test ia64 = "$host_cpu"; then
15860	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15861	# chokes on -Wl,-G. The following line is correct:
15862	  shared_flag='-G'
15863	else
15864	  if test yes = "$aix_use_runtimelinking"; then
15865	    shared_flag='$wl-G'
15866	  else
15867	    shared_flag='$wl-bM:SRE'
15868	  fi
15869	  shared_flag_aix='$wl-bM:SRE'
15870	  shared_flag_svr4='$wl-G'
15871	fi
15872      fi
15873
15874      export_dynamic_flag_spec='$wl-bexpall'
15875      # It seems that -bexpall does not export symbols beginning with
15876      # underscore (_), so it is better to generate a list of symbols to export.
15877      always_export_symbols=yes
15878      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15879	# Warning - without using the other runtime loading flags (-brtl),
15880	# -berok will link without error, but may produce a broken library.
15881	allow_undefined_flag='-berok'
15882        # Determine the default libpath from the value encoded in an
15883        # empty executable.
15884        if test set = "${lt_cv_aix_libpath+set}"; then
15885  aix_libpath=$lt_cv_aix_libpath
15886else
15887  if ${lt_cv_aix_libpath_+:} false; then :
15888  $as_echo_n "(cached) " >&6
15889else
15890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15891/* end confdefs.h.  */
15892
15893int
15894main ()
15895{
15896
15897  ;
15898  return 0;
15899}
15900_ACEOF
15901if ac_fn_c_try_link "$LINENO"; then :
15902
15903  lt_aix_libpath_sed='
15904      /Import File Strings/,/^$/ {
15905	  /^0/ {
15906	      s/^0  *\([^ ]*\) *$/\1/
15907	      p
15908	  }
15909      }'
15910  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15911  # Check for a 64-bit object if we didn't find anything.
15912  if test -z "$lt_cv_aix_libpath_"; then
15913    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15914  fi
15915fi
15916rm -f core conftest.err conftest.$ac_objext \
15917    conftest$ac_exeext conftest.$ac_ext
15918  if test -z "$lt_cv_aix_libpath_"; then
15919    lt_cv_aix_libpath_=/usr/lib:/lib
15920  fi
15921
15922fi
15923
15924  aix_libpath=$lt_cv_aix_libpath_
15925fi
15926
15927        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15928        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
15929      else
15930	if test ia64 = "$host_cpu"; then
15931	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
15932	  allow_undefined_flag="-z nodefs"
15933	  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"
15934	else
15935	 # Determine the default libpath from the value encoded in an
15936	 # empty executable.
15937	 if test set = "${lt_cv_aix_libpath+set}"; then
15938  aix_libpath=$lt_cv_aix_libpath
15939else
15940  if ${lt_cv_aix_libpath_+:} false; then :
15941  $as_echo_n "(cached) " >&6
15942else
15943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15944/* end confdefs.h.  */
15945
15946int
15947main ()
15948{
15949
15950  ;
15951  return 0;
15952}
15953_ACEOF
15954if ac_fn_c_try_link "$LINENO"; then :
15955
15956  lt_aix_libpath_sed='
15957      /Import File Strings/,/^$/ {
15958	  /^0/ {
15959	      s/^0  *\([^ ]*\) *$/\1/
15960	      p
15961	  }
15962      }'
15963  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15964  # Check for a 64-bit object if we didn't find anything.
15965  if test -z "$lt_cv_aix_libpath_"; then
15966    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15967  fi
15968fi
15969rm -f core conftest.err conftest.$ac_objext \
15970    conftest$ac_exeext conftest.$ac_ext
15971  if test -z "$lt_cv_aix_libpath_"; then
15972    lt_cv_aix_libpath_=/usr/lib:/lib
15973  fi
15974
15975fi
15976
15977  aix_libpath=$lt_cv_aix_libpath_
15978fi
15979
15980	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
15981	  # Warning - without using the other run time loading flags,
15982	  # -berok will link without error, but may produce a broken library.
15983	  no_undefined_flag=' $wl-bernotok'
15984	  allow_undefined_flag=' $wl-berok'
15985	  if test yes = "$with_gnu_ld"; then
15986	    # We only use this code for GNU lds that support --whole-archive.
15987	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
15988	  else
15989	    # Exported symbols can be pulled into shared objects from archives
15990	    whole_archive_flag_spec='$convenience'
15991	  fi
15992	  archive_cmds_need_lc=yes
15993	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15994	  # -brtl affects multiple linker settings, -berok does not and is overridden later
15995	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15996	  if test svr4 != "$with_aix_soname"; then
15997	    # This is similar to how AIX traditionally builds its shared libraries.
15998	    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'
15999	  fi
16000	  if test aix != "$with_aix_soname"; then
16001	    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'
16002	  else
16003	    # used by -dlpreopen to get the symbols
16004	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16005	  fi
16006	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16007	fi
16008      fi
16009      ;;
16010
16011    amigaos*)
16012      case $host_cpu in
16013      powerpc)
16014            # see comment about AmigaOS4 .so support
16015            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16016            archive_expsym_cmds=''
16017        ;;
16018      m68k)
16019            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)'
16020            hardcode_libdir_flag_spec='-L$libdir'
16021            hardcode_minus_L=yes
16022        ;;
16023      esac
16024      ;;
16025
16026    bsdi[45]*)
16027      export_dynamic_flag_spec=-rdynamic
16028      ;;
16029
16030    cygwin* | mingw* | pw32* | cegcc*)
16031      # When not using gcc, we currently assume that we are using
16032      # Microsoft Visual C++.
16033      # hardcode_libdir_flag_spec is actually meaningless, as there is
16034      # no search path for DLLs.
16035      case $cc_basename in
16036      cl*)
16037	# Native MSVC
16038	hardcode_libdir_flag_spec=' '
16039	allow_undefined_flag=unsupported
16040	always_export_symbols=yes
16041	file_list_spec='@'
16042	# Tell ltmain to make .lib files, not .a files.
16043	libext=lib
16044	# Tell ltmain to make .dll files, not .so files.
16045	shrext_cmds=.dll
16046	# FIXME: Setting linknames here is a bad hack.
16047	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16048	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16049            cp "$export_symbols" "$output_objdir/$soname.def";
16050            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16051          else
16052            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16053          fi~
16054          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16055          linknames='
16056	# The linker will not automatically build a static lib if we build a DLL.
16057	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16058	enable_shared_with_static_runtimes=yes
16059	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16060	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16061	# Don't use ranlib
16062	old_postinstall_cmds='chmod 644 $oldlib'
16063	postlink_cmds='lt_outputfile="@OUTPUT@"~
16064          lt_tool_outputfile="@TOOL_OUTPUT@"~
16065          case $lt_outputfile in
16066            *.exe|*.EXE) ;;
16067            *)
16068              lt_outputfile=$lt_outputfile.exe
16069              lt_tool_outputfile=$lt_tool_outputfile.exe
16070              ;;
16071          esac~
16072          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16073            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16074            $RM "$lt_outputfile.manifest";
16075          fi'
16076	;;
16077      *)
16078	# Assume MSVC wrapper
16079	hardcode_libdir_flag_spec=' '
16080	allow_undefined_flag=unsupported
16081	# Tell ltmain to make .lib files, not .a files.
16082	libext=lib
16083	# Tell ltmain to make .dll files, not .so files.
16084	shrext_cmds=.dll
16085	# FIXME: Setting linknames here is a bad hack.
16086	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16087	# The linker will automatically build a .lib file if we build a DLL.
16088	old_archive_from_new_cmds='true'
16089	# FIXME: Should let the user specify the lib program.
16090	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16091	enable_shared_with_static_runtimes=yes
16092	;;
16093      esac
16094      ;;
16095
16096    darwin* | rhapsody*)
16097
16098
16099  archive_cmds_need_lc=no
16100  hardcode_direct=no
16101  hardcode_automatic=yes
16102  hardcode_shlibpath_var=unsupported
16103  if test yes = "$lt_cv_ld_force_load"; then
16104    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\"`'
16105
16106  else
16107    whole_archive_flag_spec=''
16108  fi
16109  link_all_deplibs=yes
16110  allow_undefined_flag=$_lt_dar_allow_undefined
16111  case $cc_basename in
16112     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16113     *) _lt_dar_can_shared=$GCC ;;
16114  esac
16115  if test yes = "$_lt_dar_can_shared"; then
16116    output_verbose_link_cmd=func_echo_all
16117    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16118    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16119    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"
16120    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"
16121
16122  else
16123  ld_shlibs=no
16124  fi
16125
16126      ;;
16127
16128    dgux*)
16129      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16130      hardcode_libdir_flag_spec='-L$libdir'
16131      hardcode_shlibpath_var=no
16132      ;;
16133
16134    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16135    # support.  Future versions do this automatically, but an explicit c++rt0.o
16136    # does not break anything, and helps significantly (at the cost of a little
16137    # extra space).
16138    freebsd2.2*)
16139      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16140      hardcode_libdir_flag_spec='-R$libdir'
16141      hardcode_direct=yes
16142      hardcode_shlibpath_var=no
16143      ;;
16144
16145    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16146    freebsd2.*)
16147      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16148      hardcode_direct=yes
16149      hardcode_minus_L=yes
16150      hardcode_shlibpath_var=no
16151      ;;
16152
16153    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16154    freebsd* | dragonfly*)
16155      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16156      hardcode_libdir_flag_spec='-R$libdir'
16157      hardcode_direct=yes
16158      hardcode_shlibpath_var=no
16159      ;;
16160
16161    hpux9*)
16162      if test yes = "$GCC"; then
16163	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'
16164      else
16165	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'
16166      fi
16167      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16168      hardcode_libdir_separator=:
16169      hardcode_direct=yes
16170
16171      # hardcode_minus_L: Not really in the search PATH,
16172      # but as the default location of the library.
16173      hardcode_minus_L=yes
16174      export_dynamic_flag_spec='$wl-E'
16175      ;;
16176
16177    hpux10*)
16178      if test yes,no = "$GCC,$with_gnu_ld"; then
16179	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16180      else
16181	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16182      fi
16183      if test no = "$with_gnu_ld"; then
16184	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16185	hardcode_libdir_separator=:
16186	hardcode_direct=yes
16187	hardcode_direct_absolute=yes
16188	export_dynamic_flag_spec='$wl-E'
16189	# hardcode_minus_L: Not really in the search PATH,
16190	# but as the default location of the library.
16191	hardcode_minus_L=yes
16192      fi
16193      ;;
16194
16195    hpux11*)
16196      if test yes,no = "$GCC,$with_gnu_ld"; then
16197	case $host_cpu in
16198	hppa*64*)
16199	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16200	  ;;
16201	ia64*)
16202	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16203	  ;;
16204	*)
16205	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16206	  ;;
16207	esac
16208      else
16209	case $host_cpu in
16210	hppa*64*)
16211	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16212	  ;;
16213	ia64*)
16214	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16215	  ;;
16216	*)
16217
16218	  # Older versions of the 11.00 compiler do not understand -b yet
16219	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16220	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16221$as_echo_n "checking if $CC understands -b... " >&6; }
16222if ${lt_cv_prog_compiler__b+:} false; then :
16223  $as_echo_n "(cached) " >&6
16224else
16225  lt_cv_prog_compiler__b=no
16226   save_LDFLAGS=$LDFLAGS
16227   LDFLAGS="$LDFLAGS -b"
16228   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16229   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16230     # The linker can only warn and ignore the option if not recognized
16231     # So say no if there are warnings
16232     if test -s conftest.err; then
16233       # Append any errors to the config.log.
16234       cat conftest.err 1>&5
16235       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16236       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16237       if diff conftest.exp conftest.er2 >/dev/null; then
16238         lt_cv_prog_compiler__b=yes
16239       fi
16240     else
16241       lt_cv_prog_compiler__b=yes
16242     fi
16243   fi
16244   $RM -r conftest*
16245   LDFLAGS=$save_LDFLAGS
16246
16247fi
16248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16249$as_echo "$lt_cv_prog_compiler__b" >&6; }
16250
16251if test yes = "$lt_cv_prog_compiler__b"; then
16252    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16253else
16254    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16255fi
16256
16257	  ;;
16258	esac
16259      fi
16260      if test no = "$with_gnu_ld"; then
16261	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
16262	hardcode_libdir_separator=:
16263
16264	case $host_cpu in
16265	hppa*64*|ia64*)
16266	  hardcode_direct=no
16267	  hardcode_shlibpath_var=no
16268	  ;;
16269	*)
16270	  hardcode_direct=yes
16271	  hardcode_direct_absolute=yes
16272	  export_dynamic_flag_spec='$wl-E'
16273
16274	  # hardcode_minus_L: Not really in the search PATH,
16275	  # but as the default location of the library.
16276	  hardcode_minus_L=yes
16277	  ;;
16278	esac
16279      fi
16280      ;;
16281
16282    irix5* | irix6* | nonstopux*)
16283      if test yes = "$GCC"; then
16284	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'
16285	# Try to use the -exported_symbol ld option, if it does not
16286	# work, assume that -exports_file does not work either and
16287	# implicitly export all symbols.
16288	# This should be the same for all languages, so no per-tag cache variable.
16289	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16290$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16291if ${lt_cv_irix_exported_symbol+:} false; then :
16292  $as_echo_n "(cached) " >&6
16293else
16294  save_LDFLAGS=$LDFLAGS
16295	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
16296	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16297/* end confdefs.h.  */
16298int foo (void) { return 0; }
16299_ACEOF
16300if ac_fn_c_try_link "$LINENO"; then :
16301  lt_cv_irix_exported_symbol=yes
16302else
16303  lt_cv_irix_exported_symbol=no
16304fi
16305rm -f core conftest.err conftest.$ac_objext \
16306    conftest$ac_exeext conftest.$ac_ext
16307           LDFLAGS=$save_LDFLAGS
16308fi
16309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16310$as_echo "$lt_cv_irix_exported_symbol" >&6; }
16311	if test yes = "$lt_cv_irix_exported_symbol"; then
16312          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'
16313	fi
16314	link_all_deplibs=no
16315      else
16316	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'
16317	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'
16318      fi
16319      archive_cmds_need_lc='no'
16320      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16321      hardcode_libdir_separator=:
16322      inherit_rpath=yes
16323      link_all_deplibs=yes
16324      ;;
16325
16326    linux*)
16327      case $cc_basename in
16328      tcc*)
16329	# Fabrice Bellard et al's Tiny C Compiler
16330	ld_shlibs=yes
16331	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16332	;;
16333      esac
16334      ;;
16335
16336    netbsd* | netbsdelf*-gnu)
16337      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16338	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16339      else
16340	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16341      fi
16342      hardcode_libdir_flag_spec='-R$libdir'
16343      hardcode_direct=yes
16344      hardcode_shlibpath_var=no
16345      ;;
16346
16347    newsos6)
16348      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16349      hardcode_direct=yes
16350      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16351      hardcode_libdir_separator=:
16352      hardcode_shlibpath_var=no
16353      ;;
16354
16355    *nto* | *qnx*)
16356      ;;
16357
16358    openbsd* | bitrig*)
16359      if test -f /usr/libexec/ld.so; then
16360	hardcode_direct=yes
16361	hardcode_shlibpath_var=no
16362	hardcode_direct_absolute=yes
16363	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16364	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16365	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16366	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16367	  export_dynamic_flag_spec='$wl-E'
16368	else
16369	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16370	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16371	fi
16372      else
16373	ld_shlibs=no
16374      fi
16375      ;;
16376
16377    os2*)
16378      hardcode_libdir_flag_spec='-L$libdir'
16379      hardcode_minus_L=yes
16380      allow_undefined_flag=unsupported
16381      shrext_cmds=.dll
16382      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16383	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16384	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16385	$ECHO EXPORTS >> $output_objdir/$libname.def~
16386	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16387	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16388	emximp -o $lib $output_objdir/$libname.def'
16389      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16390	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16391	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16392	$ECHO EXPORTS >> $output_objdir/$libname.def~
16393	prefix_cmds="$SED"~
16394	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16395	  prefix_cmds="$prefix_cmds -e 1d";
16396	fi~
16397	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16398	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16399	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16400	emximp -o $lib $output_objdir/$libname.def'
16401      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16402      enable_shared_with_static_runtimes=yes
16403      ;;
16404
16405    osf3*)
16406      if test yes = "$GCC"; then
16407	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16408	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'
16409      else
16410	allow_undefined_flag=' -expect_unresolved \*'
16411	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'
16412      fi
16413      archive_cmds_need_lc='no'
16414      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16415      hardcode_libdir_separator=:
16416      ;;
16417
16418    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16419      if test yes = "$GCC"; then
16420	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16421	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'
16422	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16423      else
16424	allow_undefined_flag=' -expect_unresolved \*'
16425	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'
16426	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~
16427          $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'
16428
16429	# Both c and cxx compiler support -rpath directly
16430	hardcode_libdir_flag_spec='-rpath $libdir'
16431      fi
16432      archive_cmds_need_lc='no'
16433      hardcode_libdir_separator=:
16434      ;;
16435
16436    solaris*)
16437      no_undefined_flag=' -z defs'
16438      if test yes = "$GCC"; then
16439	wlarc='$wl'
16440	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
16441	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16442          $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'
16443      else
16444	case `$CC -V 2>&1` in
16445	*"Compilers 5.0"*)
16446	  wlarc=''
16447	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
16448	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16449            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16450	  ;;
16451	*)
16452	  wlarc='$wl'
16453	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16454	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16455            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16456	  ;;
16457	esac
16458      fi
16459      hardcode_libdir_flag_spec='-R$libdir'
16460      hardcode_shlibpath_var=no
16461      case $host_os in
16462      solaris2.[0-5] | solaris2.[0-5].*) ;;
16463      *)
16464	# The compiler driver will combine and reorder linker options,
16465	# but understands '-z linker_flag'.  GCC discards it without '$wl',
16466	# but is careful enough not to reorder.
16467	# Supported since Solaris 2.6 (maybe 2.5.1?)
16468	if test yes = "$GCC"; then
16469	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16470	else
16471	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16472	fi
16473	;;
16474      esac
16475      link_all_deplibs=yes
16476      ;;
16477
16478    sunos4*)
16479      if test sequent = "$host_vendor"; then
16480	# Use $CC to link under sequent, because it throws in some extra .o
16481	# files that make .init and .fini sections work.
16482	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16483      else
16484	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16485      fi
16486      hardcode_libdir_flag_spec='-L$libdir'
16487      hardcode_direct=yes
16488      hardcode_minus_L=yes
16489      hardcode_shlibpath_var=no
16490      ;;
16491
16492    sysv4)
16493      case $host_vendor in
16494	sni)
16495	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16496	  hardcode_direct=yes # is this really true???
16497	;;
16498	siemens)
16499	  ## LD is ld it makes a PLAMLIB
16500	  ## CC just makes a GrossModule.
16501	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16502	  reload_cmds='$CC -r -o $output$reload_objs'
16503	  hardcode_direct=no
16504        ;;
16505	motorola)
16506	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16507	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16508	;;
16509      esac
16510      runpath_var='LD_RUN_PATH'
16511      hardcode_shlibpath_var=no
16512      ;;
16513
16514    sysv4.3*)
16515      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16516      hardcode_shlibpath_var=no
16517      export_dynamic_flag_spec='-Bexport'
16518      ;;
16519
16520    sysv4*MP*)
16521      if test -d /usr/nec; then
16522	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16523	hardcode_shlibpath_var=no
16524	runpath_var=LD_RUN_PATH
16525	hardcode_runpath_var=yes
16526	ld_shlibs=yes
16527      fi
16528      ;;
16529
16530    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16531      no_undefined_flag='$wl-z,text'
16532      archive_cmds_need_lc=no
16533      hardcode_shlibpath_var=no
16534      runpath_var='LD_RUN_PATH'
16535
16536      if test yes = "$GCC"; then
16537	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16538	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16539      else
16540	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16541	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16542      fi
16543      ;;
16544
16545    sysv5* | sco3.2v5* | sco5v6*)
16546      # Note: We CANNOT use -z defs as we might desire, because we do not
16547      # link with -lc, and that would cause any symbols used from libc to
16548      # always be unresolved, which means just about no library would
16549      # ever link correctly.  If we're not using GNU ld we use -z text
16550      # though, which does catch some bad symbols but isn't as heavy-handed
16551      # as -z defs.
16552      no_undefined_flag='$wl-z,text'
16553      allow_undefined_flag='$wl-z,nodefs'
16554      archive_cmds_need_lc=no
16555      hardcode_shlibpath_var=no
16556      hardcode_libdir_flag_spec='$wl-R,$libdir'
16557      hardcode_libdir_separator=':'
16558      link_all_deplibs=yes
16559      export_dynamic_flag_spec='$wl-Bexport'
16560      runpath_var='LD_RUN_PATH'
16561
16562      if test yes = "$GCC"; then
16563	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16564	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16565      else
16566	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16567	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16568      fi
16569      ;;
16570
16571    uts4*)
16572      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16573      hardcode_libdir_flag_spec='-L$libdir'
16574      hardcode_shlibpath_var=no
16575      ;;
16576
16577    *)
16578      ld_shlibs=no
16579      ;;
16580    esac
16581
16582    if test sni = "$host_vendor"; then
16583      case $host in
16584      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16585	export_dynamic_flag_spec='$wl-Blargedynsym'
16586	;;
16587      esac
16588    fi
16589  fi
16590
16591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16592$as_echo "$ld_shlibs" >&6; }
16593test no = "$ld_shlibs" && can_build_shared=no
16594
16595with_gnu_ld=$with_gnu_ld
16596
16597
16598
16599
16600
16601
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611#
16612# Do we need to explicitly link libc?
16613#
16614case "x$archive_cmds_need_lc" in
16615x|xyes)
16616  # Assume -lc should be added
16617  archive_cmds_need_lc=yes
16618
16619  if test yes,yes = "$GCC,$enable_shared"; then
16620    case $archive_cmds in
16621    *'~'*)
16622      # FIXME: we may have to deal with multi-command sequences.
16623      ;;
16624    '$CC '*)
16625      # Test whether the compiler implicitly links with -lc since on some
16626      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16627      # to ld, don't add -lc before -lgcc.
16628      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16629$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16630if ${lt_cv_archive_cmds_need_lc+:} false; then :
16631  $as_echo_n "(cached) " >&6
16632else
16633  $RM conftest*
16634	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16635
16636	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16637  (eval $ac_compile) 2>&5
16638  ac_status=$?
16639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16640  test $ac_status = 0; } 2>conftest.err; then
16641	  soname=conftest
16642	  lib=conftest
16643	  libobjs=conftest.$ac_objext
16644	  deplibs=
16645	  wl=$lt_prog_compiler_wl
16646	  pic_flag=$lt_prog_compiler_pic
16647	  compiler_flags=-v
16648	  linker_flags=-v
16649	  verstring=
16650	  output_objdir=.
16651	  libname=conftest
16652	  lt_save_allow_undefined_flag=$allow_undefined_flag
16653	  allow_undefined_flag=
16654	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16655  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16656  ac_status=$?
16657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16658  test $ac_status = 0; }
16659	  then
16660	    lt_cv_archive_cmds_need_lc=no
16661	  else
16662	    lt_cv_archive_cmds_need_lc=yes
16663	  fi
16664	  allow_undefined_flag=$lt_save_allow_undefined_flag
16665	else
16666	  cat conftest.err 1>&5
16667	fi
16668	$RM conftest*
16669
16670fi
16671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16672$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16673      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16674      ;;
16675    esac
16676  fi
16677  ;;
16678esac
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16832$as_echo_n "checking dynamic linker characteristics... " >&6; }
16833
16834if test yes = "$GCC"; then
16835  case $host_os in
16836    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
16837    *) lt_awk_arg='/^libraries:/' ;;
16838  esac
16839  case $host_os in
16840    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
16841    *) lt_sed_strip_eq='s|=/|/|g' ;;
16842  esac
16843  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16844  case $lt_search_path_spec in
16845  *\;*)
16846    # if the path contains ";" then we assume it to be the separator
16847    # otherwise default to the standard path separator (i.e. ":") - it is
16848    # assumed that no part of a normal pathname contains ";" but that should
16849    # okay in the real world where ";" in dirpaths is itself problematic.
16850    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16851    ;;
16852  *)
16853    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16854    ;;
16855  esac
16856  # Ok, now we have the path, separated by spaces, we can step through it
16857  # and add multilib dir if necessary...
16858  lt_tmp_lt_search_path_spec=
16859  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16860  # ...but if some path component already ends with the multilib dir we assume
16861  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
16862  case "$lt_multi_os_dir; $lt_search_path_spec " in
16863  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
16864    lt_multi_os_dir=
16865    ;;
16866  esac
16867  for lt_sys_path in $lt_search_path_spec; do
16868    if test -d "$lt_sys_path$lt_multi_os_dir"; then
16869      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
16870    elif test -n "$lt_multi_os_dir"; then
16871      test -d "$lt_sys_path" && \
16872	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16873    fi
16874  done
16875  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16876BEGIN {RS = " "; FS = "/|\n";} {
16877  lt_foo = "";
16878  lt_count = 0;
16879  for (lt_i = NF; lt_i > 0; lt_i--) {
16880    if ($lt_i != "" && $lt_i != ".") {
16881      if ($lt_i == "..") {
16882        lt_count++;
16883      } else {
16884        if (lt_count == 0) {
16885          lt_foo = "/" $lt_i lt_foo;
16886        } else {
16887          lt_count--;
16888        }
16889      }
16890    }
16891  }
16892  if (lt_foo != "") { lt_freq[lt_foo]++; }
16893  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16894}'`
16895  # AWK program above erroneously prepends '/' to C:/dos/paths
16896  # for these hosts.
16897  case $host_os in
16898    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16899      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
16900  esac
16901  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16902else
16903  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16904fi
16905library_names_spec=
16906libname_spec='lib$name'
16907soname_spec=
16908shrext_cmds=.so
16909postinstall_cmds=
16910postuninstall_cmds=
16911finish_cmds=
16912finish_eval=
16913shlibpath_var=
16914shlibpath_overrides_runpath=unknown
16915version_type=none
16916dynamic_linker="$host_os ld.so"
16917sys_lib_dlsearch_path_spec="/lib /usr/lib"
16918need_lib_prefix=unknown
16919hardcode_into_libs=no
16920
16921# when you set need_version to no, make sure it does not cause -set_version
16922# flags to be left without arguments
16923need_version=unknown
16924
16925
16926
16927case $host_os in
16928aix3*)
16929  version_type=linux # correct to gnu/linux during the next big refactor
16930  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16931  shlibpath_var=LIBPATH
16932
16933  # AIX 3 has no versioning support, so we append a major version to the name.
16934  soname_spec='$libname$release$shared_ext$major'
16935  ;;
16936
16937aix[4-9]*)
16938  version_type=linux # correct to gnu/linux during the next big refactor
16939  need_lib_prefix=no
16940  need_version=no
16941  hardcode_into_libs=yes
16942  if test ia64 = "$host_cpu"; then
16943    # AIX 5 supports IA64
16944    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16945    shlibpath_var=LD_LIBRARY_PATH
16946  else
16947    # With GCC up to 2.95.x, collect2 would create an import file
16948    # for dependence libraries.  The import file would start with
16949    # the line '#! .'.  This would cause the generated library to
16950    # depend on '.', always an invalid library.  This was fixed in
16951    # development snapshots of GCC prior to 3.0.
16952    case $host_os in
16953      aix4 | aix4.[01] | aix4.[01].*)
16954      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16955	   echo ' yes '
16956	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16957	:
16958      else
16959	can_build_shared=no
16960      fi
16961      ;;
16962    esac
16963    # Using Import Files as archive members, it is possible to support
16964    # filename-based versioning of shared library archives on AIX. While
16965    # this would work for both with and without runtime linking, it will
16966    # prevent static linking of such archives. So we do filename-based
16967    # shared library versioning with .so extension only, which is used
16968    # when both runtime linking and shared linking is enabled.
16969    # Unfortunately, runtime linking may impact performance, so we do
16970    # not want this to be the default eventually. Also, we use the
16971    # versioned .so libs for executables only if there is the -brtl
16972    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16973    # To allow for filename-based versioning support, we need to create
16974    # libNAME.so.V as an archive file, containing:
16975    # *) an Import File, referring to the versioned filename of the
16976    #    archive as well as the shared archive member, telling the
16977    #    bitwidth (32 or 64) of that shared object, and providing the
16978    #    list of exported symbols of that shared object, eventually
16979    #    decorated with the 'weak' keyword
16980    # *) the shared object with the F_LOADONLY flag set, to really avoid
16981    #    it being seen by the linker.
16982    # At run time we better use the real file rather than another symlink,
16983    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16984
16985    case $with_aix_soname,$aix_use_runtimelinking in
16986    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16987    # soname into executable. Probably we can add versioning support to
16988    # collect2, so additional links can be useful in future.
16989    aix,yes) # traditional libtool
16990      dynamic_linker='AIX unversionable lib.so'
16991      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16992      # instead of lib<name>.a to let people know that these are not
16993      # typical AIX shared libraries.
16994      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16995      ;;
16996    aix,no) # traditional AIX only
16997      dynamic_linker='AIX lib.a(lib.so.V)'
16998      # We preserve .a as extension for shared libraries through AIX4.2
16999      # and later when we are not doing run time linking.
17000      library_names_spec='$libname$release.a $libname.a'
17001      soname_spec='$libname$release$shared_ext$major'
17002      ;;
17003    svr4,*) # full svr4 only
17004      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17005      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17006      # We do not specify a path in Import Files, so LIBPATH fires.
17007      shlibpath_overrides_runpath=yes
17008      ;;
17009    *,yes) # both, prefer svr4
17010      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17011      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17012      # unpreferred sharedlib libNAME.a needs extra handling
17013      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"'
17014      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"'
17015      # We do not specify a path in Import Files, so LIBPATH fires.
17016      shlibpath_overrides_runpath=yes
17017      ;;
17018    *,no) # both, prefer aix
17019      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17020      library_names_spec='$libname$release.a $libname.a'
17021      soname_spec='$libname$release$shared_ext$major'
17022      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17023      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)'
17024      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"'
17025      ;;
17026    esac
17027    shlibpath_var=LIBPATH
17028  fi
17029  ;;
17030
17031amigaos*)
17032  case $host_cpu in
17033  powerpc)
17034    # Since July 2007 AmigaOS4 officially supports .so libraries.
17035    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17036    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17037    ;;
17038  m68k)
17039    library_names_spec='$libname.ixlibrary $libname.a'
17040    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17041    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'
17042    ;;
17043  esac
17044  ;;
17045
17046beos*)
17047  library_names_spec='$libname$shared_ext'
17048  dynamic_linker="$host_os ld.so"
17049  shlibpath_var=LIBRARY_PATH
17050  ;;
17051
17052bsdi[45]*)
17053  version_type=linux # correct to gnu/linux during the next big refactor
17054  need_version=no
17055  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17056  soname_spec='$libname$release$shared_ext$major'
17057  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17058  shlibpath_var=LD_LIBRARY_PATH
17059  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17060  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17061  # the default ld.so.conf also contains /usr/contrib/lib and
17062  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17063  # libtool to hard-code these into programs
17064  ;;
17065
17066cygwin* | mingw* | pw32* | cegcc*)
17067  version_type=windows
17068  shrext_cmds=.dll
17069  need_version=no
17070  need_lib_prefix=no
17071
17072  case $GCC,$cc_basename in
17073  yes,*)
17074    # gcc
17075    library_names_spec='$libname.dll.a'
17076    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17077    postinstall_cmds='base_file=`basename \$file`~
17078      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17079      dldir=$destdir/`dirname \$dlpath`~
17080      test -d \$dldir || mkdir -p \$dldir~
17081      $install_prog $dir/$dlname \$dldir/$dlname~
17082      chmod a+x \$dldir/$dlname~
17083      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17084        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17085      fi'
17086    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17087      dlpath=$dir/\$dldll~
17088       $RM \$dlpath'
17089    shlibpath_overrides_runpath=yes
17090
17091    case $host_os in
17092    cygwin*)
17093      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17094      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17095
17096      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17097      ;;
17098    mingw* | cegcc*)
17099      # MinGW DLLs use traditional 'lib' prefix
17100      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17101      ;;
17102    pw32*)
17103      # pw32 DLLs use 'pw' prefix rather than 'lib'
17104      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17105      ;;
17106    esac
17107    dynamic_linker='Win32 ld.exe'
17108    ;;
17109
17110  *,cl*)
17111    # Native MSVC
17112    libname_spec='$name'
17113    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17114    library_names_spec='$libname.dll.lib'
17115
17116    case $build_os in
17117    mingw*)
17118      sys_lib_search_path_spec=
17119      lt_save_ifs=$IFS
17120      IFS=';'
17121      for lt_path in $LIB
17122      do
17123        IFS=$lt_save_ifs
17124        # Let DOS variable expansion print the short 8.3 style file name.
17125        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17126        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17127      done
17128      IFS=$lt_save_ifs
17129      # Convert to MSYS style.
17130      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17131      ;;
17132    cygwin*)
17133      # Convert to unix form, then to dos form, then back to unix form
17134      # but this time dos style (no spaces!) so that the unix form looks
17135      # like /cygdrive/c/PROGRA~1:/cygdr...
17136      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17137      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17138      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17139      ;;
17140    *)
17141      sys_lib_search_path_spec=$LIB
17142      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17143        # It is most probably a Windows format PATH.
17144        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17145      else
17146        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17147      fi
17148      # FIXME: find the short name or the path components, as spaces are
17149      # common. (e.g. "Program Files" -> "PROGRA~1")
17150      ;;
17151    esac
17152
17153    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17154    postinstall_cmds='base_file=`basename \$file`~
17155      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17156      dldir=$destdir/`dirname \$dlpath`~
17157      test -d \$dldir || mkdir -p \$dldir~
17158      $install_prog $dir/$dlname \$dldir/$dlname'
17159    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17160      dlpath=$dir/\$dldll~
17161       $RM \$dlpath'
17162    shlibpath_overrides_runpath=yes
17163    dynamic_linker='Win32 link.exe'
17164    ;;
17165
17166  *)
17167    # Assume MSVC wrapper
17168    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17169    dynamic_linker='Win32 ld.exe'
17170    ;;
17171  esac
17172  # FIXME: first we should search . and the directory the executable is in
17173  shlibpath_var=PATH
17174  ;;
17175
17176darwin* | rhapsody*)
17177  dynamic_linker="$host_os dyld"
17178  version_type=darwin
17179  need_lib_prefix=no
17180  need_version=no
17181  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17182  soname_spec='$libname$release$major$shared_ext'
17183  shlibpath_overrides_runpath=yes
17184  shlibpath_var=DYLD_LIBRARY_PATH
17185  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17186
17187  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17188  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17189  ;;
17190
17191dgux*)
17192  version_type=linux # correct to gnu/linux during the next big refactor
17193  need_lib_prefix=no
17194  need_version=no
17195  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17196  soname_spec='$libname$release$shared_ext$major'
17197  shlibpath_var=LD_LIBRARY_PATH
17198  ;;
17199
17200freebsd* | dragonfly*)
17201  # DragonFly does not have aout.  When/if they implement a new
17202  # versioning mechanism, adjust this.
17203  if test -x /usr/bin/objformat; then
17204    objformat=`/usr/bin/objformat`
17205  else
17206    case $host_os in
17207    freebsd[23].*) objformat=aout ;;
17208    *) objformat=elf ;;
17209    esac
17210  fi
17211  version_type=freebsd-$objformat
17212  case $version_type in
17213    freebsd-elf*)
17214      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17215      soname_spec='$libname$release$shared_ext$major'
17216      need_version=no
17217      need_lib_prefix=no
17218      ;;
17219    freebsd-*)
17220      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17221      need_version=yes
17222      ;;
17223  esac
17224  shlibpath_var=LD_LIBRARY_PATH
17225  case $host_os in
17226  freebsd2.*)
17227    shlibpath_overrides_runpath=yes
17228    ;;
17229  freebsd3.[01]* | freebsdelf3.[01]*)
17230    shlibpath_overrides_runpath=yes
17231    hardcode_into_libs=yes
17232    ;;
17233  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17234  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17235    shlibpath_overrides_runpath=no
17236    hardcode_into_libs=yes
17237    ;;
17238  *) # from 4.6 on, and DragonFly
17239    shlibpath_overrides_runpath=yes
17240    hardcode_into_libs=yes
17241    ;;
17242  esac
17243  ;;
17244
17245haiku*)
17246  version_type=linux # correct to gnu/linux during the next big refactor
17247  need_lib_prefix=no
17248  need_version=no
17249  dynamic_linker="$host_os runtime_loader"
17250  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17251  soname_spec='$libname$release$shared_ext$major'
17252  shlibpath_var=LIBRARY_PATH
17253  shlibpath_overrides_runpath=no
17254  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17255  hardcode_into_libs=yes
17256  ;;
17257
17258hpux9* | hpux10* | hpux11*)
17259  # Give a soname corresponding to the major version so that dld.sl refuses to
17260  # link against other versions.
17261  version_type=sunos
17262  need_lib_prefix=no
17263  need_version=no
17264  case $host_cpu in
17265  ia64*)
17266    shrext_cmds='.so'
17267    hardcode_into_libs=yes
17268    dynamic_linker="$host_os dld.so"
17269    shlibpath_var=LD_LIBRARY_PATH
17270    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17271    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17272    soname_spec='$libname$release$shared_ext$major'
17273    if test 32 = "$HPUX_IA64_MODE"; then
17274      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17275      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17276    else
17277      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17278      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17279    fi
17280    ;;
17281  hppa*64*)
17282    shrext_cmds='.sl'
17283    hardcode_into_libs=yes
17284    dynamic_linker="$host_os dld.sl"
17285    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17286    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17287    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17288    soname_spec='$libname$release$shared_ext$major'
17289    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17290    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17291    ;;
17292  *)
17293    shrext_cmds='.sl'
17294    dynamic_linker="$host_os dld.sl"
17295    shlibpath_var=SHLIB_PATH
17296    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17297    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17298    soname_spec='$libname$release$shared_ext$major'
17299    ;;
17300  esac
17301  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17302  postinstall_cmds='chmod 555 $lib'
17303  # or fails outright, so override atomically:
17304  install_override_mode=555
17305  ;;
17306
17307interix[3-9]*)
17308  version_type=linux # correct to gnu/linux during the next big refactor
17309  need_lib_prefix=no
17310  need_version=no
17311  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17312  soname_spec='$libname$release$shared_ext$major'
17313  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17314  shlibpath_var=LD_LIBRARY_PATH
17315  shlibpath_overrides_runpath=no
17316  hardcode_into_libs=yes
17317  ;;
17318
17319irix5* | irix6* | nonstopux*)
17320  case $host_os in
17321    nonstopux*) version_type=nonstopux ;;
17322    *)
17323	if test yes = "$lt_cv_prog_gnu_ld"; then
17324		version_type=linux # correct to gnu/linux during the next big refactor
17325	else
17326		version_type=irix
17327	fi ;;
17328  esac
17329  need_lib_prefix=no
17330  need_version=no
17331  soname_spec='$libname$release$shared_ext$major'
17332  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17333  case $host_os in
17334  irix5* | nonstopux*)
17335    libsuff= shlibsuff=
17336    ;;
17337  *)
17338    case $LD in # libtool.m4 will add one of these switches to LD
17339    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17340      libsuff= shlibsuff= libmagic=32-bit;;
17341    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17342      libsuff=32 shlibsuff=N32 libmagic=N32;;
17343    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17344      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17345    *) libsuff= shlibsuff= libmagic=never-match;;
17346    esac
17347    ;;
17348  esac
17349  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17350  shlibpath_overrides_runpath=no
17351  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17352  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17353  hardcode_into_libs=yes
17354  ;;
17355
17356# No shared lib support for Linux oldld, aout, or coff.
17357linux*oldld* | linux*aout* | linux*coff*)
17358  dynamic_linker=no
17359  ;;
17360
17361linux*android*)
17362  version_type=none # Android doesn't support versioned libraries.
17363  need_lib_prefix=no
17364  need_version=no
17365  library_names_spec='$libname$release$shared_ext'
17366  soname_spec='$libname$release$shared_ext'
17367  finish_cmds=
17368  shlibpath_var=LD_LIBRARY_PATH
17369  shlibpath_overrides_runpath=yes
17370
17371  # This implies no fast_install, which is unacceptable.
17372  # Some rework will be needed to allow for fast_install
17373  # before this can be enabled.
17374  hardcode_into_libs=yes
17375
17376  dynamic_linker='Android linker'
17377  # Don't embed -rpath directories since the linker doesn't support them.
17378  hardcode_libdir_flag_spec='-L$libdir'
17379  ;;
17380
17381# This must be glibc/ELF.
17382linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17383  version_type=linux # correct to gnu/linux during the next big refactor
17384  need_lib_prefix=no
17385  need_version=no
17386  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17387  soname_spec='$libname$release$shared_ext$major'
17388  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17389  shlibpath_var=LD_LIBRARY_PATH
17390  shlibpath_overrides_runpath=no
17391
17392  # Some binutils ld are patched to set DT_RUNPATH
17393  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17394  $as_echo_n "(cached) " >&6
17395else
17396  lt_cv_shlibpath_overrides_runpath=no
17397    save_LDFLAGS=$LDFLAGS
17398    save_libdir=$libdir
17399    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17400	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17401    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17402/* end confdefs.h.  */
17403
17404int
17405main ()
17406{
17407
17408  ;
17409  return 0;
17410}
17411_ACEOF
17412if ac_fn_c_try_link "$LINENO"; then :
17413  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17414  lt_cv_shlibpath_overrides_runpath=yes
17415fi
17416fi
17417rm -f core conftest.err conftest.$ac_objext \
17418    conftest$ac_exeext conftest.$ac_ext
17419    LDFLAGS=$save_LDFLAGS
17420    libdir=$save_libdir
17421
17422fi
17423
17424  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17425
17426  # This implies no fast_install, which is unacceptable.
17427  # Some rework will be needed to allow for fast_install
17428  # before this can be enabled.
17429  hardcode_into_libs=yes
17430
17431  # Ideally, we could use ldconfig to report *all* directores which are
17432  # searched for libraries, however this is still not possible.  Aside from not
17433  # being certain /sbin/ldconfig is available, command
17434  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17435  # even though it is searched at run-time.  Try to do the best guess by
17436  # appending ld.so.conf contents (and includes) to the search path.
17437  if test -f /etc/ld.so.conf; then
17438    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' ' '`
17439    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17440  fi
17441
17442  # We used to test for /lib/ld.so.1 and disable shared libraries on
17443  # powerpc, because MkLinux only supported shared libraries with the
17444  # GNU dynamic linker.  Since this was broken with cross compilers,
17445  # most powerpc-linux boxes support dynamic linking these days and
17446  # people can always --disable-shared, the test was removed, and we
17447  # assume the GNU/Linux dynamic linker is in use.
17448  dynamic_linker='GNU/Linux ld.so'
17449  ;;
17450
17451netbsdelf*-gnu)
17452  version_type=linux
17453  need_lib_prefix=no
17454  need_version=no
17455  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17456  soname_spec='${libname}${release}${shared_ext}$major'
17457  shlibpath_var=LD_LIBRARY_PATH
17458  shlibpath_overrides_runpath=no
17459  hardcode_into_libs=yes
17460  dynamic_linker='NetBSD ld.elf_so'
17461  ;;
17462
17463netbsd*)
17464  version_type=sunos
17465  need_lib_prefix=no
17466  need_version=no
17467  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17468    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17469    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17470    dynamic_linker='NetBSD (a.out) ld.so'
17471  else
17472    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17473    soname_spec='$libname$release$shared_ext$major'
17474    dynamic_linker='NetBSD ld.elf_so'
17475  fi
17476  shlibpath_var=LD_LIBRARY_PATH
17477  shlibpath_overrides_runpath=yes
17478  hardcode_into_libs=yes
17479  ;;
17480
17481newsos6)
17482  version_type=linux # correct to gnu/linux during the next big refactor
17483  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17484  shlibpath_var=LD_LIBRARY_PATH
17485  shlibpath_overrides_runpath=yes
17486  ;;
17487
17488*nto* | *qnx*)
17489  version_type=qnx
17490  need_lib_prefix=no
17491  need_version=no
17492  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17493  soname_spec='$libname$release$shared_ext$major'
17494  shlibpath_var=LD_LIBRARY_PATH
17495  shlibpath_overrides_runpath=no
17496  hardcode_into_libs=yes
17497  dynamic_linker='ldqnx.so'
17498  ;;
17499
17500openbsd* | bitrig*)
17501  version_type=sunos
17502  sys_lib_dlsearch_path_spec=/usr/lib
17503  need_lib_prefix=no
17504  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17505    need_version=no
17506  else
17507    need_version=yes
17508  fi
17509  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17510  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17511  shlibpath_var=LD_LIBRARY_PATH
17512  shlibpath_overrides_runpath=yes
17513  ;;
17514
17515os2*)
17516  libname_spec='$name'
17517  version_type=windows
17518  shrext_cmds=.dll
17519  need_version=no
17520  need_lib_prefix=no
17521  # OS/2 can only load a DLL with a base name of 8 characters or less.
17522  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17523    v=$($ECHO $release$versuffix | tr -d .-);
17524    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17525    $ECHO $n$v`$shared_ext'
17526  library_names_spec='${libname}_dll.$libext'
17527  dynamic_linker='OS/2 ld.exe'
17528  shlibpath_var=BEGINLIBPATH
17529  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17530  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17531  postinstall_cmds='base_file=`basename \$file`~
17532    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17533    dldir=$destdir/`dirname \$dlpath`~
17534    test -d \$dldir || mkdir -p \$dldir~
17535    $install_prog $dir/$dlname \$dldir/$dlname~
17536    chmod a+x \$dldir/$dlname~
17537    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17538      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17539    fi'
17540  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17541    dlpath=$dir/\$dldll~
17542    $RM \$dlpath'
17543  ;;
17544
17545osf3* | osf4* | osf5*)
17546  version_type=osf
17547  need_lib_prefix=no
17548  need_version=no
17549  soname_spec='$libname$release$shared_ext$major'
17550  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17551  shlibpath_var=LD_LIBRARY_PATH
17552  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17553  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17554  ;;
17555
17556rdos*)
17557  dynamic_linker=no
17558  ;;
17559
17560solaris*)
17561  version_type=linux # correct to gnu/linux during the next big refactor
17562  need_lib_prefix=no
17563  need_version=no
17564  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17565  soname_spec='$libname$release$shared_ext$major'
17566  shlibpath_var=LD_LIBRARY_PATH
17567  shlibpath_overrides_runpath=yes
17568  hardcode_into_libs=yes
17569  # ldd complains unless libraries are executable
17570  postinstall_cmds='chmod +x $lib'
17571  ;;
17572
17573sunos4*)
17574  version_type=sunos
17575  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17576  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17577  shlibpath_var=LD_LIBRARY_PATH
17578  shlibpath_overrides_runpath=yes
17579  if test yes = "$with_gnu_ld"; then
17580    need_lib_prefix=no
17581  fi
17582  need_version=yes
17583  ;;
17584
17585sysv4 | sysv4.3*)
17586  version_type=linux # correct to gnu/linux during the next big refactor
17587  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17588  soname_spec='$libname$release$shared_ext$major'
17589  shlibpath_var=LD_LIBRARY_PATH
17590  case $host_vendor in
17591    sni)
17592      shlibpath_overrides_runpath=no
17593      need_lib_prefix=no
17594      runpath_var=LD_RUN_PATH
17595      ;;
17596    siemens)
17597      need_lib_prefix=no
17598      ;;
17599    motorola)
17600      need_lib_prefix=no
17601      need_version=no
17602      shlibpath_overrides_runpath=no
17603      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17604      ;;
17605  esac
17606  ;;
17607
17608sysv4*MP*)
17609  if test -d /usr/nec; then
17610    version_type=linux # correct to gnu/linux during the next big refactor
17611    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17612    soname_spec='$libname$shared_ext.$major'
17613    shlibpath_var=LD_LIBRARY_PATH
17614  fi
17615  ;;
17616
17617sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17618  version_type=sco
17619  need_lib_prefix=no
17620  need_version=no
17621  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17622  soname_spec='$libname$release$shared_ext$major'
17623  shlibpath_var=LD_LIBRARY_PATH
17624  shlibpath_overrides_runpath=yes
17625  hardcode_into_libs=yes
17626  if test yes = "$with_gnu_ld"; then
17627    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17628  else
17629    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17630    case $host_os in
17631      sco3.2v5*)
17632        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17633	;;
17634    esac
17635  fi
17636  sys_lib_dlsearch_path_spec='/usr/lib'
17637  ;;
17638
17639tpf*)
17640  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17641  version_type=linux # correct to gnu/linux during the next big refactor
17642  need_lib_prefix=no
17643  need_version=no
17644  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17645  shlibpath_var=LD_LIBRARY_PATH
17646  shlibpath_overrides_runpath=no
17647  hardcode_into_libs=yes
17648  ;;
17649
17650uts4*)
17651  version_type=linux # correct to gnu/linux during the next big refactor
17652  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17653  soname_spec='$libname$release$shared_ext$major'
17654  shlibpath_var=LD_LIBRARY_PATH
17655  ;;
17656
17657*)
17658  dynamic_linker=no
17659  ;;
17660esac
17661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17662$as_echo "$dynamic_linker" >&6; }
17663test no = "$dynamic_linker" && can_build_shared=no
17664
17665variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17666if test yes = "$GCC"; then
17667  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17668fi
17669
17670if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
17671  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
17672fi
17673
17674if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
17675  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
17676fi
17677
17678# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
17679configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
17680
17681# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
17682func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
17683
17684# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
17685configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17784$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17785hardcode_action=
17786if test -n "$hardcode_libdir_flag_spec" ||
17787   test -n "$runpath_var" ||
17788   test yes = "$hardcode_automatic"; then
17789
17790  # We can hardcode non-existent directories.
17791  if test no != "$hardcode_direct" &&
17792     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17793     # have to relink, otherwise we might link with an installed library
17794     # when we should be linking with a yet-to-be-installed one
17795     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
17796     test no != "$hardcode_minus_L"; then
17797    # Linking always hardcodes the temporary library directory.
17798    hardcode_action=relink
17799  else
17800    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17801    hardcode_action=immediate
17802  fi
17803else
17804  # We cannot hardcode anything, or else we can only hardcode existing
17805  # directories.
17806  hardcode_action=unsupported
17807fi
17808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17809$as_echo "$hardcode_action" >&6; }
17810
17811if test relink = "$hardcode_action" ||
17812   test yes = "$inherit_rpath"; then
17813  # Fast installation is not supported
17814  enable_fast_install=no
17815elif test yes = "$shlibpath_overrides_runpath" ||
17816     test no = "$enable_shared"; then
17817  # Fast installation is not necessary
17818  enable_fast_install=needless
17819fi
17820
17821
17822
17823
17824
17825
17826  if test yes != "$enable_dlopen"; then
17827  enable_dlopen=unknown
17828  enable_dlopen_self=unknown
17829  enable_dlopen_self_static=unknown
17830else
17831  lt_cv_dlopen=no
17832  lt_cv_dlopen_libs=
17833
17834  case $host_os in
17835  beos*)
17836    lt_cv_dlopen=load_add_on
17837    lt_cv_dlopen_libs=
17838    lt_cv_dlopen_self=yes
17839    ;;
17840
17841  mingw* | pw32* | cegcc*)
17842    lt_cv_dlopen=LoadLibrary
17843    lt_cv_dlopen_libs=
17844    ;;
17845
17846  cygwin*)
17847    lt_cv_dlopen=dlopen
17848    lt_cv_dlopen_libs=
17849    ;;
17850
17851  darwin*)
17852    # if libdl is installed we need to link against it
17853    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17854$as_echo_n "checking for dlopen in -ldl... " >&6; }
17855if ${ac_cv_lib_dl_dlopen+:} false; then :
17856  $as_echo_n "(cached) " >&6
17857else
17858  ac_check_lib_save_LIBS=$LIBS
17859LIBS="-ldl  $LIBS"
17860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17861/* end confdefs.h.  */
17862
17863/* Override any GCC internal prototype to avoid an error.
17864   Use char because int might match the return type of a GCC
17865   builtin and then its argument prototype would still apply.  */
17866#ifdef __cplusplus
17867extern "C"
17868#endif
17869char dlopen ();
17870int
17871main ()
17872{
17873return dlopen ();
17874  ;
17875  return 0;
17876}
17877_ACEOF
17878if ac_fn_c_try_link "$LINENO"; then :
17879  ac_cv_lib_dl_dlopen=yes
17880else
17881  ac_cv_lib_dl_dlopen=no
17882fi
17883rm -f core conftest.err conftest.$ac_objext \
17884    conftest$ac_exeext conftest.$ac_ext
17885LIBS=$ac_check_lib_save_LIBS
17886fi
17887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17888$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17889if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17890  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17891else
17892
17893    lt_cv_dlopen=dyld
17894    lt_cv_dlopen_libs=
17895    lt_cv_dlopen_self=yes
17896
17897fi
17898
17899    ;;
17900
17901  tpf*)
17902    # Don't try to run any link tests for TPF.  We know it's impossible
17903    # because TPF is a cross-compiler, and we know how we open DSOs.
17904    lt_cv_dlopen=dlopen
17905    lt_cv_dlopen_libs=
17906    lt_cv_dlopen_self=no
17907    ;;
17908
17909  *)
17910    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17911if test "x$ac_cv_func_shl_load" = xyes; then :
17912  lt_cv_dlopen=shl_load
17913else
17914  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17915$as_echo_n "checking for shl_load in -ldld... " >&6; }
17916if ${ac_cv_lib_dld_shl_load+:} false; then :
17917  $as_echo_n "(cached) " >&6
17918else
17919  ac_check_lib_save_LIBS=$LIBS
17920LIBS="-ldld  $LIBS"
17921cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17922/* end confdefs.h.  */
17923
17924/* Override any GCC internal prototype to avoid an error.
17925   Use char because int might match the return type of a GCC
17926   builtin and then its argument prototype would still apply.  */
17927#ifdef __cplusplus
17928extern "C"
17929#endif
17930char shl_load ();
17931int
17932main ()
17933{
17934return shl_load ();
17935  ;
17936  return 0;
17937}
17938_ACEOF
17939if ac_fn_c_try_link "$LINENO"; then :
17940  ac_cv_lib_dld_shl_load=yes
17941else
17942  ac_cv_lib_dld_shl_load=no
17943fi
17944rm -f core conftest.err conftest.$ac_objext \
17945    conftest$ac_exeext conftest.$ac_ext
17946LIBS=$ac_check_lib_save_LIBS
17947fi
17948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17949$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17950if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17951  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
17952else
17953  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17954if test "x$ac_cv_func_dlopen" = xyes; then :
17955  lt_cv_dlopen=dlopen
17956else
17957  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17958$as_echo_n "checking for dlopen in -ldl... " >&6; }
17959if ${ac_cv_lib_dl_dlopen+:} false; then :
17960  $as_echo_n "(cached) " >&6
17961else
17962  ac_check_lib_save_LIBS=$LIBS
17963LIBS="-ldl  $LIBS"
17964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17965/* end confdefs.h.  */
17966
17967/* Override any GCC internal prototype to avoid an error.
17968   Use char because int might match the return type of a GCC
17969   builtin and then its argument prototype would still apply.  */
17970#ifdef __cplusplus
17971extern "C"
17972#endif
17973char dlopen ();
17974int
17975main ()
17976{
17977return dlopen ();
17978  ;
17979  return 0;
17980}
17981_ACEOF
17982if ac_fn_c_try_link "$LINENO"; then :
17983  ac_cv_lib_dl_dlopen=yes
17984else
17985  ac_cv_lib_dl_dlopen=no
17986fi
17987rm -f core conftest.err conftest.$ac_objext \
17988    conftest$ac_exeext conftest.$ac_ext
17989LIBS=$ac_check_lib_save_LIBS
17990fi
17991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17992$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17993if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17994  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
17995else
17996  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17997$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17998if ${ac_cv_lib_svld_dlopen+:} false; then :
17999  $as_echo_n "(cached) " >&6
18000else
18001  ac_check_lib_save_LIBS=$LIBS
18002LIBS="-lsvld  $LIBS"
18003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18004/* end confdefs.h.  */
18005
18006/* Override any GCC internal prototype to avoid an error.
18007   Use char because int might match the return type of a GCC
18008   builtin and then its argument prototype would still apply.  */
18009#ifdef __cplusplus
18010extern "C"
18011#endif
18012char dlopen ();
18013int
18014main ()
18015{
18016return dlopen ();
18017  ;
18018  return 0;
18019}
18020_ACEOF
18021if ac_fn_c_try_link "$LINENO"; then :
18022  ac_cv_lib_svld_dlopen=yes
18023else
18024  ac_cv_lib_svld_dlopen=no
18025fi
18026rm -f core conftest.err conftest.$ac_objext \
18027    conftest$ac_exeext conftest.$ac_ext
18028LIBS=$ac_check_lib_save_LIBS
18029fi
18030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18031$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18032if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18033  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18034else
18035  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18036$as_echo_n "checking for dld_link in -ldld... " >&6; }
18037if ${ac_cv_lib_dld_dld_link+:} false; then :
18038  $as_echo_n "(cached) " >&6
18039else
18040  ac_check_lib_save_LIBS=$LIBS
18041LIBS="-ldld  $LIBS"
18042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18043/* end confdefs.h.  */
18044
18045/* Override any GCC internal prototype to avoid an error.
18046   Use char because int might match the return type of a GCC
18047   builtin and then its argument prototype would still apply.  */
18048#ifdef __cplusplus
18049extern "C"
18050#endif
18051char dld_link ();
18052int
18053main ()
18054{
18055return dld_link ();
18056  ;
18057  return 0;
18058}
18059_ACEOF
18060if ac_fn_c_try_link "$LINENO"; then :
18061  ac_cv_lib_dld_dld_link=yes
18062else
18063  ac_cv_lib_dld_dld_link=no
18064fi
18065rm -f core conftest.err conftest.$ac_objext \
18066    conftest$ac_exeext conftest.$ac_ext
18067LIBS=$ac_check_lib_save_LIBS
18068fi
18069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18070$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18071if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18072  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18073fi
18074
18075
18076fi
18077
18078
18079fi
18080
18081
18082fi
18083
18084
18085fi
18086
18087
18088fi
18089
18090    ;;
18091  esac
18092
18093  if test no = "$lt_cv_dlopen"; then
18094    enable_dlopen=no
18095  else
18096    enable_dlopen=yes
18097  fi
18098
18099  case $lt_cv_dlopen in
18100  dlopen)
18101    save_CPPFLAGS=$CPPFLAGS
18102    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18103
18104    save_LDFLAGS=$LDFLAGS
18105    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18106
18107    save_LIBS=$LIBS
18108    LIBS="$lt_cv_dlopen_libs $LIBS"
18109
18110    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18111$as_echo_n "checking whether a program can dlopen itself... " >&6; }
18112if ${lt_cv_dlopen_self+:} false; then :
18113  $as_echo_n "(cached) " >&6
18114else
18115  	  if test yes = "$cross_compiling"; then :
18116  lt_cv_dlopen_self=cross
18117else
18118  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18119  lt_status=$lt_dlunknown
18120  cat > conftest.$ac_ext <<_LT_EOF
18121#line $LINENO "configure"
18122#include "confdefs.h"
18123
18124#if HAVE_DLFCN_H
18125#include <dlfcn.h>
18126#endif
18127
18128#include <stdio.h>
18129
18130#ifdef RTLD_GLOBAL
18131#  define LT_DLGLOBAL		RTLD_GLOBAL
18132#else
18133#  ifdef DL_GLOBAL
18134#    define LT_DLGLOBAL		DL_GLOBAL
18135#  else
18136#    define LT_DLGLOBAL		0
18137#  endif
18138#endif
18139
18140/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18141   find out it does not work in some platform. */
18142#ifndef LT_DLLAZY_OR_NOW
18143#  ifdef RTLD_LAZY
18144#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18145#  else
18146#    ifdef DL_LAZY
18147#      define LT_DLLAZY_OR_NOW		DL_LAZY
18148#    else
18149#      ifdef RTLD_NOW
18150#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18151#      else
18152#        ifdef DL_NOW
18153#          define LT_DLLAZY_OR_NOW	DL_NOW
18154#        else
18155#          define LT_DLLAZY_OR_NOW	0
18156#        endif
18157#      endif
18158#    endif
18159#  endif
18160#endif
18161
18162/* When -fvisibility=hidden is used, assume the code has been annotated
18163   correspondingly for the symbols needed.  */
18164#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18165int fnord () __attribute__((visibility("default")));
18166#endif
18167
18168int fnord () { return 42; }
18169int main ()
18170{
18171  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18172  int status = $lt_dlunknown;
18173
18174  if (self)
18175    {
18176      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18177      else
18178        {
18179	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18180          else puts (dlerror ());
18181	}
18182      /* dlclose (self); */
18183    }
18184  else
18185    puts (dlerror ());
18186
18187  return status;
18188}
18189_LT_EOF
18190  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18191  (eval $ac_link) 2>&5
18192  ac_status=$?
18193  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18194  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18195    (./conftest; exit; ) >&5 2>/dev/null
18196    lt_status=$?
18197    case x$lt_status in
18198      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18199      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18200      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18201    esac
18202  else :
18203    # compilation failed
18204    lt_cv_dlopen_self=no
18205  fi
18206fi
18207rm -fr conftest*
18208
18209
18210fi
18211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18212$as_echo "$lt_cv_dlopen_self" >&6; }
18213
18214    if test yes = "$lt_cv_dlopen_self"; then
18215      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18216      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18217$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18218if ${lt_cv_dlopen_self_static+:} false; then :
18219  $as_echo_n "(cached) " >&6
18220else
18221  	  if test yes = "$cross_compiling"; then :
18222  lt_cv_dlopen_self_static=cross
18223else
18224  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18225  lt_status=$lt_dlunknown
18226  cat > conftest.$ac_ext <<_LT_EOF
18227#line $LINENO "configure"
18228#include "confdefs.h"
18229
18230#if HAVE_DLFCN_H
18231#include <dlfcn.h>
18232#endif
18233
18234#include <stdio.h>
18235
18236#ifdef RTLD_GLOBAL
18237#  define LT_DLGLOBAL		RTLD_GLOBAL
18238#else
18239#  ifdef DL_GLOBAL
18240#    define LT_DLGLOBAL		DL_GLOBAL
18241#  else
18242#    define LT_DLGLOBAL		0
18243#  endif
18244#endif
18245
18246/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18247   find out it does not work in some platform. */
18248#ifndef LT_DLLAZY_OR_NOW
18249#  ifdef RTLD_LAZY
18250#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
18251#  else
18252#    ifdef DL_LAZY
18253#      define LT_DLLAZY_OR_NOW		DL_LAZY
18254#    else
18255#      ifdef RTLD_NOW
18256#        define LT_DLLAZY_OR_NOW	RTLD_NOW
18257#      else
18258#        ifdef DL_NOW
18259#          define LT_DLLAZY_OR_NOW	DL_NOW
18260#        else
18261#          define LT_DLLAZY_OR_NOW	0
18262#        endif
18263#      endif
18264#    endif
18265#  endif
18266#endif
18267
18268/* When -fvisibility=hidden is used, assume the code has been annotated
18269   correspondingly for the symbols needed.  */
18270#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18271int fnord () __attribute__((visibility("default")));
18272#endif
18273
18274int fnord () { return 42; }
18275int main ()
18276{
18277  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18278  int status = $lt_dlunknown;
18279
18280  if (self)
18281    {
18282      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18283      else
18284        {
18285	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
18286          else puts (dlerror ());
18287	}
18288      /* dlclose (self); */
18289    }
18290  else
18291    puts (dlerror ());
18292
18293  return status;
18294}
18295_LT_EOF
18296  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18297  (eval $ac_link) 2>&5
18298  ac_status=$?
18299  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18300  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
18301    (./conftest; exit; ) >&5 2>/dev/null
18302    lt_status=$?
18303    case x$lt_status in
18304      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18305      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18306      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18307    esac
18308  else :
18309    # compilation failed
18310    lt_cv_dlopen_self_static=no
18311  fi
18312fi
18313rm -fr conftest*
18314
18315
18316fi
18317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18318$as_echo "$lt_cv_dlopen_self_static" >&6; }
18319    fi
18320
18321    CPPFLAGS=$save_CPPFLAGS
18322    LDFLAGS=$save_LDFLAGS
18323    LIBS=$save_LIBS
18324    ;;
18325  esac
18326
18327  case $lt_cv_dlopen_self in
18328  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18329  *) enable_dlopen_self=unknown ;;
18330  esac
18331
18332  case $lt_cv_dlopen_self_static in
18333  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18334  *) enable_dlopen_self_static=unknown ;;
18335  esac
18336fi
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354striplib=
18355old_striplib=
18356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18357$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18358if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18359  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18360  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18362$as_echo "yes" >&6; }
18363else
18364# FIXME - insert some real tests, host_os isn't really good enough
18365  case $host_os in
18366  darwin*)
18367    if test -n "$STRIP"; then
18368      striplib="$STRIP -x"
18369      old_striplib="$STRIP -S"
18370      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18371$as_echo "yes" >&6; }
18372    else
18373      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18374$as_echo "no" >&6; }
18375    fi
18376    ;;
18377  *)
18378    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18379$as_echo "no" >&6; }
18380    ;;
18381  esac
18382fi
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395  # Report what library types will actually be built
18396  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18397$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18399$as_echo "$can_build_shared" >&6; }
18400
18401  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18402$as_echo_n "checking whether to build shared libraries... " >&6; }
18403  test no = "$can_build_shared" && enable_shared=no
18404
18405  # On AIX, shared libraries and static libraries use the same namespace, and
18406  # are all built from PIC.
18407  case $host_os in
18408  aix3*)
18409    test yes = "$enable_shared" && enable_static=no
18410    if test -n "$RANLIB"; then
18411      archive_cmds="$archive_cmds~\$RANLIB \$lib"
18412      postinstall_cmds='$RANLIB $lib'
18413    fi
18414    ;;
18415
18416  aix[4-9]*)
18417    if test ia64 != "$host_cpu"; then
18418      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18419      yes,aix,yes) ;;			# shared object as lib.so file only
18420      yes,svr4,*) ;;			# shared object as lib.so archive member only
18421      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
18422      esac
18423    fi
18424    ;;
18425  esac
18426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18427$as_echo "$enable_shared" >&6; }
18428
18429  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18430$as_echo_n "checking whether to build static libraries... " >&6; }
18431  # Make sure either enable_shared or enable_static is yes.
18432  test yes = "$enable_shared" || enable_static=yes
18433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18434$as_echo "$enable_static" >&6; }
18435
18436
18437
18438
18439fi
18440ac_ext=c
18441ac_cpp='$CPP $CPPFLAGS'
18442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18444ac_compiler_gnu=$ac_cv_c_compiler_gnu
18445
18446CC=$lt_save_CC
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462        ac_config_commands="$ac_config_commands libtool"
18463
18464
18465
18466
18467# Only expand once:
18468
18469
18470
18471
18472
18473# Define a configure option for an alternate module directory
18474
18475# Check whether --with-xorg-module-dir was given.
18476if test "${with_xorg_module_dir+set}" = set; then :
18477  withval=$with_xorg_module_dir; moduledir="$withval"
18478else
18479  moduledir="$libdir/xorg/modules"
18480fi
18481
18482
18483# Store the list of server defined optional extensions in REQUIRED_MODULES
18484
18485
18486	SAVE_CFLAGS="$CFLAGS"
18487	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18488	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18489/* end confdefs.h.  */
18490
18491#include "xorg-server.h"
18492#if !defined RANDR
18493#error RANDR not defined
18494#endif
18495
18496int
18497main ()
18498{
18499
18500  ;
18501  return 0;
18502}
18503_ACEOF
18504if ac_fn_c_try_compile "$LINENO"; then :
18505  _EXT_CHECK=yes
18506else
18507  _EXT_CHECK=no
18508fi
18509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18510	CFLAGS="$SAVE_CFLAGS"
18511	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
18512$as_echo_n "checking if RANDR is defined... " >&6; }
18513	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18514$as_echo "$_EXT_CHECK" >&6; }
18515	if test "$_EXT_CHECK" != no; then
18516		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
18517	fi
18518
18519
18520
18521	SAVE_CFLAGS="$CFLAGS"
18522	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18523	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18524/* end confdefs.h.  */
18525
18526#include "xorg-server.h"
18527#if !defined RENDER
18528#error RENDER not defined
18529#endif
18530
18531int
18532main ()
18533{
18534
18535  ;
18536  return 0;
18537}
18538_ACEOF
18539if ac_fn_c_try_compile "$LINENO"; then :
18540  _EXT_CHECK=yes
18541else
18542  _EXT_CHECK=no
18543fi
18544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18545	CFLAGS="$SAVE_CFLAGS"
18546	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
18547$as_echo_n "checking if RENDER is defined... " >&6; }
18548	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18549$as_echo "$_EXT_CHECK" >&6; }
18550	if test "$_EXT_CHECK" != no; then
18551		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
18552	fi
18553
18554
18555
18556	SAVE_CFLAGS="$CFLAGS"
18557	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18558	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18559/* end confdefs.h.  */
18560
18561#include "xorg-server.h"
18562#if !defined XV
18563#error XV not defined
18564#endif
18565
18566int
18567main ()
18568{
18569
18570  ;
18571  return 0;
18572}
18573_ACEOF
18574if ac_fn_c_try_compile "$LINENO"; then :
18575  _EXT_CHECK=yes
18576else
18577  _EXT_CHECK=no
18578fi
18579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18580	CFLAGS="$SAVE_CFLAGS"
18581	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
18582$as_echo_n "checking if XV is defined... " >&6; }
18583	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18584$as_echo "$_EXT_CHECK" >&6; }
18585	if test "$_EXT_CHECK" != no; then
18586		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
18587	fi
18588
18589
18590
18591	SAVE_CFLAGS="$CFLAGS"
18592	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
18593	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18594/* end confdefs.h.  */
18595
18596#include "xorg-server.h"
18597#if !defined DPMSExtension
18598#error DPMSExtension not defined
18599#endif
18600
18601int
18602main ()
18603{
18604
18605  ;
18606  return 0;
18607}
18608_ACEOF
18609if ac_fn_c_try_compile "$LINENO"; then :
18610  _EXT_CHECK=yes
18611else
18612  _EXT_CHECK=no
18613fi
18614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18615	CFLAGS="$SAVE_CFLAGS"
18616	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18617$as_echo_n "checking if DPMSExtension is defined... " >&6; }
18618	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18619$as_echo "$_EXT_CHECK" >&6; }
18620	if test "$_EXT_CHECK" != no; then
18621		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18622	fi
18623
18624
18625# Obtain compiler/linker options for the driver dependencies
18626
18627pkg_failed=no
18628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18629$as_echo_n "checking for XORG... " >&6; }
18630
18631if test -n "$XORG_CFLAGS"; then
18632    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18633 elif test -n "$PKG_CONFIG"; then
18634    if test -n "$PKG_CONFIG" && \
18635    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18636  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18637  ac_status=$?
18638  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18639  test $ac_status = 0; }; then
18640  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18641		      test "x$?" != "x0" && pkg_failed=yes
18642else
18643  pkg_failed=yes
18644fi
18645 else
18646    pkg_failed=untried
18647fi
18648if test -n "$XORG_LIBS"; then
18649    pkg_cv_XORG_LIBS="$XORG_LIBS"
18650 elif test -n "$PKG_CONFIG"; then
18651    if test -n "$PKG_CONFIG" && \
18652    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18653  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18654  ac_status=$?
18655  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18656  test $ac_status = 0; }; then
18657  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18658		      test "x$?" != "x0" && pkg_failed=yes
18659else
18660  pkg_failed=yes
18661fi
18662 else
18663    pkg_failed=untried
18664fi
18665
18666
18667
18668if test $pkg_failed = yes; then
18669   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18670$as_echo "no" >&6; }
18671
18672if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18673        _pkg_short_errors_supported=yes
18674else
18675        _pkg_short_errors_supported=no
18676fi
18677        if test $_pkg_short_errors_supported = yes; then
18678	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18679        else
18680	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18681        fi
18682	# Put the nasty error message in config.log where it belongs
18683	echo "$XORG_PKG_ERRORS" >&5
18684
18685	as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
18686
18687$XORG_PKG_ERRORS
18688
18689Consider adjusting the PKG_CONFIG_PATH environment variable if you
18690installed software in a non-standard prefix.
18691
18692Alternatively, you may set the environment variables XORG_CFLAGS
18693and XORG_LIBS to avoid the need to call pkg-config.
18694See the pkg-config man page for more details." "$LINENO" 5
18695elif test $pkg_failed = untried; then
18696     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18697$as_echo "no" >&6; }
18698	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18699$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18700as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18701is in your PATH or set the PKG_CONFIG environment variable to the full
18702path to pkg-config.
18703
18704Alternatively, you may set the environment variables XORG_CFLAGS
18705and XORG_LIBS to avoid the need to call pkg-config.
18706See the pkg-config man page for more details.
18707
18708To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18709See \`config.log' for more details" "$LINENO" 5; }
18710else
18711	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18712	XORG_LIBS=$pkg_cv_XORG_LIBS
18713        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18714$as_echo "yes" >&6; }
18715
18716fi
18717
18718pkg_failed=no
18719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5
18720$as_echo_n "checking for XEXT... " >&6; }
18721
18722if test -n "$XEXT_CFLAGS"; then
18723    pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS"
18724 elif test -n "$PKG_CONFIG"; then
18725    if test -n "$PKG_CONFIG" && \
18726    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18727  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18728  ac_status=$?
18729  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18730  test $ac_status = 0; }; then
18731  pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null`
18732		      test "x$?" != "x0" && pkg_failed=yes
18733else
18734  pkg_failed=yes
18735fi
18736 else
18737    pkg_failed=untried
18738fi
18739if test -n "$XEXT_LIBS"; then
18740    pkg_cv_XEXT_LIBS="$XEXT_LIBS"
18741 elif test -n "$PKG_CONFIG"; then
18742    if test -n "$PKG_CONFIG" && \
18743    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5
18744  ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5
18745  ac_status=$?
18746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18747  test $ac_status = 0; }; then
18748  pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null`
18749		      test "x$?" != "x0" && pkg_failed=yes
18750else
18751  pkg_failed=yes
18752fi
18753 else
18754    pkg_failed=untried
18755fi
18756
18757
18758
18759if test $pkg_failed = yes; then
18760   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18761$as_echo "no" >&6; }
18762
18763if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18764        _pkg_short_errors_supported=yes
18765else
18766        _pkg_short_errors_supported=no
18767fi
18768        if test $_pkg_short_errors_supported = yes; then
18769	        XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18770        else
18771	        XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1`
18772        fi
18773	# Put the nasty error message in config.log where it belongs
18774	echo "$XEXT_PKG_ERRORS" >&5
18775
18776	HAVE_XEXTPROTO_71="no"
18777elif test $pkg_failed = untried; then
18778     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18779$as_echo "no" >&6; }
18780	HAVE_XEXTPROTO_71="no"
18781else
18782	XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS
18783	XEXT_LIBS=$pkg_cv_XEXT_LIBS
18784        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18785$as_echo "yes" >&6; }
18786	HAVE_XEXTPROTO_71="yes";
18787$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h
18788
18789fi
18790 if  test "$HAVE_XEXTPROTO_71" = "yes" ; then
18791  HAVE_XEXTPROTO_71_TRUE=
18792  HAVE_XEXTPROTO_71_FALSE='#'
18793else
18794  HAVE_XEXTPROTO_71_TRUE='#'
18795  HAVE_XEXTPROTO_71_FALSE=
18796fi
18797
18798
18799# Checks for libraries.
18800SAVE_CPPFLAGS="$CPPFLAGS"
18801CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18802ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18803"
18804if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18805  XSERVER_LIBPCIACCESS=yes
18806else
18807  XSERVER_LIBPCIACCESS=no
18808fi
18809
18810CPPFLAGS="$SAVE_CPPFLAGS"
18811
18812
18813if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18814
18815pkg_failed=no
18816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18817$as_echo_n "checking for PCIACCESS... " >&6; }
18818
18819if test -n "$PCIACCESS_CFLAGS"; then
18820    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18821 elif test -n "$PKG_CONFIG"; then
18822    if test -n "$PKG_CONFIG" && \
18823    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18824  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18825  ac_status=$?
18826  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18827  test $ac_status = 0; }; then
18828  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18829		      test "x$?" != "x0" && pkg_failed=yes
18830else
18831  pkg_failed=yes
18832fi
18833 else
18834    pkg_failed=untried
18835fi
18836if test -n "$PCIACCESS_LIBS"; then
18837    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18838 elif test -n "$PKG_CONFIG"; then
18839    if test -n "$PKG_CONFIG" && \
18840    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18841  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18842  ac_status=$?
18843  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18844  test $ac_status = 0; }; then
18845  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18846		      test "x$?" != "x0" && pkg_failed=yes
18847else
18848  pkg_failed=yes
18849fi
18850 else
18851    pkg_failed=untried
18852fi
18853
18854
18855
18856if test $pkg_failed = yes; then
18857   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18858$as_echo "no" >&6; }
18859
18860if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18861        _pkg_short_errors_supported=yes
18862else
18863        _pkg_short_errors_supported=no
18864fi
18865        if test $_pkg_short_errors_supported = yes; then
18866	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18867        else
18868	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18869        fi
18870	# Put the nasty error message in config.log where it belongs
18871	echo "$PCIACCESS_PKG_ERRORS" >&5
18872
18873	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18874
18875$PCIACCESS_PKG_ERRORS
18876
18877Consider adjusting the PKG_CONFIG_PATH environment variable if you
18878installed software in a non-standard prefix.
18879
18880Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18881and PCIACCESS_LIBS to avoid the need to call pkg-config.
18882See the pkg-config man page for more details." "$LINENO" 5
18883elif test $pkg_failed = untried; then
18884     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18885$as_echo "no" >&6; }
18886	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18887$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18888as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18889is in your PATH or set the PKG_CONFIG environment variable to the full
18890path to pkg-config.
18891
18892Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18893and PCIACCESS_LIBS to avoid the need to call pkg-config.
18894See the pkg-config man page for more details.
18895
18896To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18897See \`config.log' for more details" "$LINENO" 5; }
18898else
18899	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18900	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18901        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18902$as_echo "yes" >&6; }
18903
18904fi
18905    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18906fi
18907 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18908  XSERVER_LIBPCIACCESS_TRUE=
18909  XSERVER_LIBPCIACCESS_FALSE='#'
18910else
18911  XSERVER_LIBPCIACCESS_TRUE='#'
18912  XSERVER_LIBPCIACCESS_FALSE=
18913fi
18914
18915
18916# Check whether --enable-xaa was given.
18917if test "${enable_xaa+set}" = set; then :
18918  enableval=$enable_xaa; XAA="$enableval"
18919else
18920  XAA=auto
18921fi
18922
18923if test "x$XAA" != xno; then
18924        save_CFLAGS=$CFLAGS
18925        save_CPPFLAGS=$CPPFLAGS
18926        CFLAGS=$XORG_CFLAGS
18927        CPPFLAGS="$XORG_CFLAGS"
18928        for ac_header in xaa.h
18929do :
18930  ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18931if test "x$ac_cv_header_xaa_h" = xyes; then :
18932  cat >>confdefs.h <<_ACEOF
18933#define HAVE_XAA_H 1
18934_ACEOF
18935 XAA=yes
18936else
18937  XAA=no
18938fi
18939
18940done
18941
18942        CFLAGS=$save_CFLAGS
18943        CPPFLAGS=$save_CPPFLAGS
18944fi
18945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18946$as_echo_n "checking whether to include XAA support... " >&6; }
18947 if test "x$XAA" = xyes; then
18948  XAA_TRUE=
18949  XAA_FALSE='#'
18950else
18951  XAA_TRUE='#'
18952  XAA_FALSE=
18953fi
18954
18955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18956$as_echo "$XAA" >&6; }
18957
18958
18959
18960DRIVER_NAME=s3virge
18961
18962
18963ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
18964
18965cat >confcache <<\_ACEOF
18966# This file is a shell script that caches the results of configure
18967# tests run on this system so they can be shared between configure
18968# scripts and configure runs, see configure's option --config-cache.
18969# It is not useful on other systems.  If it contains results you don't
18970# want to keep, you may remove or edit it.
18971#
18972# config.status only pays attention to the cache file if you give it
18973# the --recheck option to rerun configure.
18974#
18975# `ac_cv_env_foo' variables (set or unset) will be overridden when
18976# loading this file, other *unset* `ac_cv_foo' will be assigned the
18977# following values.
18978
18979_ACEOF
18980
18981# The following way of writing the cache mishandles newlines in values,
18982# but we know of no workaround that is simple, portable, and efficient.
18983# So, we kill variables containing newlines.
18984# Ultrix sh set writes to stderr and can't be redirected directly,
18985# and sets the high bit in the cache file unless we assign to the vars.
18986(
18987  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18988    eval ac_val=\$$ac_var
18989    case $ac_val in #(
18990    *${as_nl}*)
18991      case $ac_var in #(
18992      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18993$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18994      esac
18995      case $ac_var in #(
18996      _ | IFS | as_nl) ;; #(
18997      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18998      *) { eval $ac_var=; unset $ac_var;} ;;
18999      esac ;;
19000    esac
19001  done
19002
19003  (set) 2>&1 |
19004    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19005    *${as_nl}ac_space=\ *)
19006      # `set' does not quote correctly, so add quotes: double-quote
19007      # substitution turns \\\\ into \\, and sed turns \\ into \.
19008      sed -n \
19009	"s/'/'\\\\''/g;
19010	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19011      ;; #(
19012    *)
19013      # `set' quotes correctly as required by POSIX, so do not add quotes.
19014      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19015      ;;
19016    esac |
19017    sort
19018) |
19019  sed '
19020     /^ac_cv_env_/b end
19021     t clear
19022     :clear
19023     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19024     t end
19025     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19026     :end' >>confcache
19027if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19028  if test -w "$cache_file"; then
19029    if test "x$cache_file" != "x/dev/null"; then
19030      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19031$as_echo "$as_me: updating cache $cache_file" >&6;}
19032      if test ! -f "$cache_file" || test -h "$cache_file"; then
19033	cat confcache >"$cache_file"
19034      else
19035        case $cache_file in #(
19036        */* | ?:*)
19037	  mv -f confcache "$cache_file"$$ &&
19038	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19039        *)
19040	  mv -f confcache "$cache_file" ;;
19041	esac
19042      fi
19043    fi
19044  else
19045    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19046$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19047  fi
19048fi
19049rm -f confcache
19050
19051test "x$prefix" = xNONE && prefix=$ac_default_prefix
19052# Let make expand exec_prefix.
19053test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19054
19055DEFS=-DHAVE_CONFIG_H
19056
19057ac_libobjs=
19058ac_ltlibobjs=
19059U=
19060for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19061  # 1. Remove the extension, and $U if already installed.
19062  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19063  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19064  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19065  #    will be set to the directory where LIBOBJS objects are built.
19066  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19067  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19068done
19069LIBOBJS=$ac_libobjs
19070
19071LTLIBOBJS=$ac_ltlibobjs
19072
19073
19074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19075$as_echo_n "checking that generated files are newer than configure... " >&6; }
19076   if test -n "$am_sleep_pid"; then
19077     # Hide warnings about reused PIDs.
19078     wait $am_sleep_pid 2>/dev/null
19079   fi
19080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19081$as_echo "done" >&6; }
19082 if test -n "$EXEEXT"; then
19083  am__EXEEXT_TRUE=
19084  am__EXEEXT_FALSE='#'
19085else
19086  am__EXEEXT_TRUE='#'
19087  am__EXEEXT_FALSE=
19088fi
19089
19090if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19091  as_fn_error $? "conditional \"AMDEP\" was never defined.
19092Usually this means the macro was only invoked conditionally." "$LINENO" 5
19093fi
19094if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19095  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19096Usually this means the macro was only invoked conditionally." "$LINENO" 5
19097fi
19098if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then
19099  as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined.
19100Usually this means the macro was only invoked conditionally." "$LINENO" 5
19101fi
19102if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
19103  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
19104Usually this means the macro was only invoked conditionally." "$LINENO" 5
19105fi
19106if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
19107  as_fn_error $? "conditional \"XAA\" was never defined.
19108Usually this means the macro was only invoked conditionally." "$LINENO" 5
19109fi
19110
19111: "${CONFIG_STATUS=./config.status}"
19112ac_write_fail=0
19113ac_clean_files_save=$ac_clean_files
19114ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19115{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19116$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19117as_write_fail=0
19118cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19119#! $SHELL
19120# Generated by $as_me.
19121# Run this file to recreate the current configuration.
19122# Compiler output produced by configure, useful for debugging
19123# configure, is in config.log if it exists.
19124
19125debug=false
19126ac_cs_recheck=false
19127ac_cs_silent=false
19128
19129SHELL=\${CONFIG_SHELL-$SHELL}
19130export SHELL
19131_ASEOF
19132cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19133## -------------------- ##
19134## M4sh Initialization. ##
19135## -------------------- ##
19136
19137# Be more Bourne compatible
19138DUALCASE=1; export DUALCASE # for MKS sh
19139if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19140  emulate sh
19141  NULLCMD=:
19142  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19143  # is contrary to our usage.  Disable this feature.
19144  alias -g '${1+"$@"}'='"$@"'
19145  setopt NO_GLOB_SUBST
19146else
19147  case `(set -o) 2>/dev/null` in #(
19148  *posix*) :
19149    set -o posix ;; #(
19150  *) :
19151     ;;
19152esac
19153fi
19154
19155
19156as_nl='
19157'
19158export as_nl
19159# Printing a long string crashes Solaris 7 /usr/bin/printf.
19160as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19161as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19162as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19163# Prefer a ksh shell builtin over an external printf program on Solaris,
19164# but without wasting forks for bash or zsh.
19165if test -z "$BASH_VERSION$ZSH_VERSION" \
19166    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19167  as_echo='print -r --'
19168  as_echo_n='print -rn --'
19169elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19170  as_echo='printf %s\n'
19171  as_echo_n='printf %s'
19172else
19173  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19174    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19175    as_echo_n='/usr/ucb/echo -n'
19176  else
19177    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19178    as_echo_n_body='eval
19179      arg=$1;
19180      case $arg in #(
19181      *"$as_nl"*)
19182	expr "X$arg" : "X\\(.*\\)$as_nl";
19183	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19184      esac;
19185      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19186    '
19187    export as_echo_n_body
19188    as_echo_n='sh -c $as_echo_n_body as_echo'
19189  fi
19190  export as_echo_body
19191  as_echo='sh -c $as_echo_body as_echo'
19192fi
19193
19194# The user is always right.
19195if test "${PATH_SEPARATOR+set}" != set; then
19196  PATH_SEPARATOR=:
19197  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19198    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19199      PATH_SEPARATOR=';'
19200  }
19201fi
19202
19203
19204# IFS
19205# We need space, tab and new line, in precisely that order.  Quoting is
19206# there to prevent editors from complaining about space-tab.
19207# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19208# splitting by setting IFS to empty value.)
19209IFS=" ""	$as_nl"
19210
19211# Find who we are.  Look in the path if we contain no directory separator.
19212as_myself=
19213case $0 in #((
19214  *[\\/]* ) as_myself=$0 ;;
19215  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19216for as_dir in $PATH
19217do
19218  IFS=$as_save_IFS
19219  test -z "$as_dir" && as_dir=.
19220    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19221  done
19222IFS=$as_save_IFS
19223
19224     ;;
19225esac
19226# We did not find ourselves, most probably we were run as `sh COMMAND'
19227# in which case we are not to be found in the path.
19228if test "x$as_myself" = x; then
19229  as_myself=$0
19230fi
19231if test ! -f "$as_myself"; then
19232  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19233  exit 1
19234fi
19235
19236# Unset variables that we do not need and which cause bugs (e.g. in
19237# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19238# suppresses any "Segmentation fault" message there.  '((' could
19239# trigger a bug in pdksh 5.2.14.
19240for as_var in BASH_ENV ENV MAIL MAILPATH
19241do eval test x\${$as_var+set} = xset \
19242  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19243done
19244PS1='$ '
19245PS2='> '
19246PS4='+ '
19247
19248# NLS nuisances.
19249LC_ALL=C
19250export LC_ALL
19251LANGUAGE=C
19252export LANGUAGE
19253
19254# CDPATH.
19255(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19256
19257
19258# as_fn_error STATUS ERROR [LINENO LOG_FD]
19259# ----------------------------------------
19260# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19261# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19262# script with STATUS, using 1 if that was 0.
19263as_fn_error ()
19264{
19265  as_status=$1; test $as_status -eq 0 && as_status=1
19266  if test "$4"; then
19267    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19268    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19269  fi
19270  $as_echo "$as_me: error: $2" >&2
19271  as_fn_exit $as_status
19272} # as_fn_error
19273
19274
19275# as_fn_set_status STATUS
19276# -----------------------
19277# Set $? to STATUS, without forking.
19278as_fn_set_status ()
19279{
19280  return $1
19281} # as_fn_set_status
19282
19283# as_fn_exit STATUS
19284# -----------------
19285# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19286as_fn_exit ()
19287{
19288  set +e
19289  as_fn_set_status $1
19290  exit $1
19291} # as_fn_exit
19292
19293# as_fn_unset VAR
19294# ---------------
19295# Portably unset VAR.
19296as_fn_unset ()
19297{
19298  { eval $1=; unset $1;}
19299}
19300as_unset=as_fn_unset
19301# as_fn_append VAR VALUE
19302# ----------------------
19303# Append the text in VALUE to the end of the definition contained in VAR. Take
19304# advantage of any shell optimizations that allow amortized linear growth over
19305# repeated appends, instead of the typical quadratic growth present in naive
19306# implementations.
19307if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19308  eval 'as_fn_append ()
19309  {
19310    eval $1+=\$2
19311  }'
19312else
19313  as_fn_append ()
19314  {
19315    eval $1=\$$1\$2
19316  }
19317fi # as_fn_append
19318
19319# as_fn_arith ARG...
19320# ------------------
19321# Perform arithmetic evaluation on the ARGs, and store the result in the
19322# global $as_val. Take advantage of shells that can avoid forks. The arguments
19323# must be portable across $(()) and expr.
19324if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19325  eval 'as_fn_arith ()
19326  {
19327    as_val=$(( $* ))
19328  }'
19329else
19330  as_fn_arith ()
19331  {
19332    as_val=`expr "$@" || test $? -eq 1`
19333  }
19334fi # as_fn_arith
19335
19336
19337if expr a : '\(a\)' >/dev/null 2>&1 &&
19338   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19339  as_expr=expr
19340else
19341  as_expr=false
19342fi
19343
19344if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19345  as_basename=basename
19346else
19347  as_basename=false
19348fi
19349
19350if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19351  as_dirname=dirname
19352else
19353  as_dirname=false
19354fi
19355
19356as_me=`$as_basename -- "$0" ||
19357$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19358	 X"$0" : 'X\(//\)$' \| \
19359	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19360$as_echo X/"$0" |
19361    sed '/^.*\/\([^/][^/]*\)\/*$/{
19362	    s//\1/
19363	    q
19364	  }
19365	  /^X\/\(\/\/\)$/{
19366	    s//\1/
19367	    q
19368	  }
19369	  /^X\/\(\/\).*/{
19370	    s//\1/
19371	    q
19372	  }
19373	  s/.*/./; q'`
19374
19375# Avoid depending upon Character Ranges.
19376as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19377as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19378as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19379as_cr_digits='0123456789'
19380as_cr_alnum=$as_cr_Letters$as_cr_digits
19381
19382ECHO_C= ECHO_N= ECHO_T=
19383case `echo -n x` in #(((((
19384-n*)
19385  case `echo 'xy\c'` in
19386  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19387  xy)  ECHO_C='\c';;
19388  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19389       ECHO_T='	';;
19390  esac;;
19391*)
19392  ECHO_N='-n';;
19393esac
19394
19395rm -f conf$$ conf$$.exe conf$$.file
19396if test -d conf$$.dir; then
19397  rm -f conf$$.dir/conf$$.file
19398else
19399  rm -f conf$$.dir
19400  mkdir conf$$.dir 2>/dev/null
19401fi
19402if (echo >conf$$.file) 2>/dev/null; then
19403  if ln -s conf$$.file conf$$ 2>/dev/null; then
19404    as_ln_s='ln -s'
19405    # ... but there are two gotchas:
19406    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19407    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19408    # In both cases, we have to default to `cp -pR'.
19409    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19410      as_ln_s='cp -pR'
19411  elif ln conf$$.file conf$$ 2>/dev/null; then
19412    as_ln_s=ln
19413  else
19414    as_ln_s='cp -pR'
19415  fi
19416else
19417  as_ln_s='cp -pR'
19418fi
19419rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19420rmdir conf$$.dir 2>/dev/null
19421
19422
19423# as_fn_mkdir_p
19424# -------------
19425# Create "$as_dir" as a directory, including parents if necessary.
19426as_fn_mkdir_p ()
19427{
19428
19429  case $as_dir in #(
19430  -*) as_dir=./$as_dir;;
19431  esac
19432  test -d "$as_dir" || eval $as_mkdir_p || {
19433    as_dirs=
19434    while :; do
19435      case $as_dir in #(
19436      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19437      *) as_qdir=$as_dir;;
19438      esac
19439      as_dirs="'$as_qdir' $as_dirs"
19440      as_dir=`$as_dirname -- "$as_dir" ||
19441$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19442	 X"$as_dir" : 'X\(//\)[^/]' \| \
19443	 X"$as_dir" : 'X\(//\)$' \| \
19444	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19445$as_echo X"$as_dir" |
19446    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19447	    s//\1/
19448	    q
19449	  }
19450	  /^X\(\/\/\)[^/].*/{
19451	    s//\1/
19452	    q
19453	  }
19454	  /^X\(\/\/\)$/{
19455	    s//\1/
19456	    q
19457	  }
19458	  /^X\(\/\).*/{
19459	    s//\1/
19460	    q
19461	  }
19462	  s/.*/./; q'`
19463      test -d "$as_dir" && break
19464    done
19465    test -z "$as_dirs" || eval "mkdir $as_dirs"
19466  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19467
19468
19469} # as_fn_mkdir_p
19470if mkdir -p . 2>/dev/null; then
19471  as_mkdir_p='mkdir -p "$as_dir"'
19472else
19473  test -d ./-p && rmdir ./-p
19474  as_mkdir_p=false
19475fi
19476
19477
19478# as_fn_executable_p FILE
19479# -----------------------
19480# Test if FILE is an executable regular file.
19481as_fn_executable_p ()
19482{
19483  test -f "$1" && test -x "$1"
19484} # as_fn_executable_p
19485as_test_x='test -x'
19486as_executable_p=as_fn_executable_p
19487
19488# Sed expression to map a string onto a valid CPP name.
19489as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19490
19491# Sed expression to map a string onto a valid variable name.
19492as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19493
19494
19495exec 6>&1
19496## ----------------------------------- ##
19497## Main body of $CONFIG_STATUS script. ##
19498## ----------------------------------- ##
19499_ASEOF
19500test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19501
19502cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19503# Save the log message, to keep $0 and so on meaningful, and to
19504# report actual input values of CONFIG_FILES etc. instead of their
19505# values after options handling.
19506ac_log="
19507This file was extended by xf86-video-s3virge $as_me 1.11.0, which was
19508generated by GNU Autoconf 2.69.  Invocation command line was
19509
19510  CONFIG_FILES    = $CONFIG_FILES
19511  CONFIG_HEADERS  = $CONFIG_HEADERS
19512  CONFIG_LINKS    = $CONFIG_LINKS
19513  CONFIG_COMMANDS = $CONFIG_COMMANDS
19514  $ $0 $@
19515
19516on `(hostname || uname -n) 2>/dev/null | sed 1q`
19517"
19518
19519_ACEOF
19520
19521case $ac_config_files in *"
19522"*) set x $ac_config_files; shift; ac_config_files=$*;;
19523esac
19524
19525case $ac_config_headers in *"
19526"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19527esac
19528
19529
19530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19531# Files that config.status was made for.
19532config_files="$ac_config_files"
19533config_headers="$ac_config_headers"
19534config_commands="$ac_config_commands"
19535
19536_ACEOF
19537
19538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19539ac_cs_usage="\
19540\`$as_me' instantiates files and other configuration actions
19541from templates according to the current configuration.  Unless the files
19542and actions are specified as TAGs, all are instantiated by default.
19543
19544Usage: $0 [OPTION]... [TAG]...
19545
19546  -h, --help       print this help, then exit
19547  -V, --version    print version number and configuration settings, then exit
19548      --config     print configuration, then exit
19549  -q, --quiet, --silent
19550                   do not print progress messages
19551  -d, --debug      don't remove temporary files
19552      --recheck    update $as_me by reconfiguring in the same conditions
19553      --file=FILE[:TEMPLATE]
19554                   instantiate the configuration file FILE
19555      --header=FILE[:TEMPLATE]
19556                   instantiate the configuration header FILE
19557
19558Configuration files:
19559$config_files
19560
19561Configuration headers:
19562$config_headers
19563
19564Configuration commands:
19565$config_commands
19566
19567Report bugs to <https://gitlab.freedesktop.org/xorg/driver/xf86-video-s3virge/issues>."
19568
19569_ACEOF
19570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19571ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19572ac_cs_version="\\
19573xf86-video-s3virge config.status 1.11.0
19574configured by $0, generated by GNU Autoconf 2.69,
19575  with options \\"\$ac_cs_config\\"
19576
19577Copyright (C) 2012 Free Software Foundation, Inc.
19578This config.status script is free software; the Free Software Foundation
19579gives unlimited permission to copy, distribute and modify it."
19580
19581ac_pwd='$ac_pwd'
19582srcdir='$srcdir'
19583INSTALL='$INSTALL'
19584MKDIR_P='$MKDIR_P'
19585AWK='$AWK'
19586test -n "\$AWK" || AWK=awk
19587_ACEOF
19588
19589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19590# The default lists apply if the user does not specify any file.
19591ac_need_defaults=:
19592while test $# != 0
19593do
19594  case $1 in
19595  --*=?*)
19596    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19597    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19598    ac_shift=:
19599    ;;
19600  --*=)
19601    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19602    ac_optarg=
19603    ac_shift=:
19604    ;;
19605  *)
19606    ac_option=$1
19607    ac_optarg=$2
19608    ac_shift=shift
19609    ;;
19610  esac
19611
19612  case $ac_option in
19613  # Handling of the options.
19614  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19615    ac_cs_recheck=: ;;
19616  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19617    $as_echo "$ac_cs_version"; exit ;;
19618  --config | --confi | --conf | --con | --co | --c )
19619    $as_echo "$ac_cs_config"; exit ;;
19620  --debug | --debu | --deb | --de | --d | -d )
19621    debug=: ;;
19622  --file | --fil | --fi | --f )
19623    $ac_shift
19624    case $ac_optarg in
19625    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19626    '') as_fn_error $? "missing file argument" ;;
19627    esac
19628    as_fn_append CONFIG_FILES " '$ac_optarg'"
19629    ac_need_defaults=false;;
19630  --header | --heade | --head | --hea )
19631    $ac_shift
19632    case $ac_optarg in
19633    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19634    esac
19635    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19636    ac_need_defaults=false;;
19637  --he | --h)
19638    # Conflict between --help and --header
19639    as_fn_error $? "ambiguous option: \`$1'
19640Try \`$0 --help' for more information.";;
19641  --help | --hel | -h )
19642    $as_echo "$ac_cs_usage"; exit ;;
19643  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19644  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19645    ac_cs_silent=: ;;
19646
19647  # This is an error.
19648  -*) as_fn_error $? "unrecognized option: \`$1'
19649Try \`$0 --help' for more information." ;;
19650
19651  *) as_fn_append ac_config_targets " $1"
19652     ac_need_defaults=false ;;
19653
19654  esac
19655  shift
19656done
19657
19658ac_configure_extra_args=
19659
19660if $ac_cs_silent; then
19661  exec 6>/dev/null
19662  ac_configure_extra_args="$ac_configure_extra_args --silent"
19663fi
19664
19665_ACEOF
19666cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19667if \$ac_cs_recheck; then
19668  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19669  shift
19670  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19671  CONFIG_SHELL='$SHELL'
19672  export CONFIG_SHELL
19673  exec "\$@"
19674fi
19675
19676_ACEOF
19677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19678exec 5>>config.log
19679{
19680  echo
19681  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19682## Running $as_me. ##
19683_ASBOX
19684  $as_echo "$ac_log"
19685} >&5
19686
19687_ACEOF
19688cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19689#
19690# INIT-COMMANDS
19691#
19692AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19693
19694
19695# The HP-UX ksh and POSIX shell print the target directory to stdout
19696# if CDPATH is set.
19697(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19698
19699sed_quote_subst='$sed_quote_subst'
19700double_quote_subst='$double_quote_subst'
19701delay_variable_subst='$delay_variable_subst'
19702enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19703macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19704macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19705enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19706pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19707enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19708shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19709SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19710ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19711PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19712host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19713host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19714host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19715build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19716build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19717build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19718SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19719Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19720GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19721EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19722FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19723LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19724NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19725LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19726max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19727ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19728exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19729lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19730lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19731lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19732lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19733lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19734reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19735reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19736OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19737deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19738file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19739file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19740want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19741DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19742sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19743AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19744AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19745archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19746STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19747RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19748old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19749old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19750old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19751lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19752CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19753CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19754compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19755GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19756lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19757lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19758lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19759lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19760lt_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"`'
19761lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19762nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19763lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19764lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19765objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19766MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19767lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19768lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19769lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19770lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19771lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19772need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19773MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19774DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19775NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19776LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19777OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19778OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19779libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19780shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19781extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19782archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19783enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19784export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19785whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19786compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19787old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19788old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19789archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19790archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19791module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19792module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19793with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19794allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19795no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19796hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19797hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19798hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19799hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19800hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19801hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19802hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19803inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19804link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19805always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19806export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19807exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19808include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19809prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19810postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19811file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19812variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19813need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19814need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19815version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19816runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19817shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19818shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19819libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19820library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19821soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19822install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19823postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19824postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19825finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19826finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19827hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19828sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19829configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19830configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19831hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19832enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19833enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19834enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19835old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19836striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19837
19838LTCC='$LTCC'
19839LTCFLAGS='$LTCFLAGS'
19840compiler='$compiler_DEFAULT'
19841
19842# A function that is used when there is no print builtin or printf.
19843func_fallback_echo ()
19844{
19845  eval 'cat <<_LTECHO_EOF
19846\$1
19847_LTECHO_EOF'
19848}
19849
19850# Quote evaled strings.
19851for var in SHELL \
19852ECHO \
19853PATH_SEPARATOR \
19854SED \
19855GREP \
19856EGREP \
19857FGREP \
19858LD \
19859NM \
19860LN_S \
19861lt_SP2NL \
19862lt_NL2SP \
19863reload_flag \
19864OBJDUMP \
19865deplibs_check_method \
19866file_magic_cmd \
19867file_magic_glob \
19868want_nocaseglob \
19869DLLTOOL \
19870sharedlib_from_linklib_cmd \
19871AR \
19872AR_FLAGS \
19873archiver_list_spec \
19874STRIP \
19875RANLIB \
19876CC \
19877CFLAGS \
19878compiler \
19879lt_cv_sys_global_symbol_pipe \
19880lt_cv_sys_global_symbol_to_cdecl \
19881lt_cv_sys_global_symbol_to_import \
19882lt_cv_sys_global_symbol_to_c_name_address \
19883lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19884lt_cv_nm_interface \
19885nm_file_list_spec \
19886lt_cv_truncate_bin \
19887lt_prog_compiler_no_builtin_flag \
19888lt_prog_compiler_pic \
19889lt_prog_compiler_wl \
19890lt_prog_compiler_static \
19891lt_cv_prog_compiler_c_o \
19892need_locks \
19893MANIFEST_TOOL \
19894DSYMUTIL \
19895NMEDIT \
19896LIPO \
19897OTOOL \
19898OTOOL64 \
19899shrext_cmds \
19900export_dynamic_flag_spec \
19901whole_archive_flag_spec \
19902compiler_needs_object \
19903with_gnu_ld \
19904allow_undefined_flag \
19905no_undefined_flag \
19906hardcode_libdir_flag_spec \
19907hardcode_libdir_separator \
19908exclude_expsyms \
19909include_expsyms \
19910file_list_spec \
19911variables_saved_for_relink \
19912libname_spec \
19913library_names_spec \
19914soname_spec \
19915install_override_mode \
19916finish_eval \
19917old_striplib \
19918striplib; do
19919    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19920    *[\\\\\\\`\\"\\\$]*)
19921      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19922      ;;
19923    *)
19924      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19925      ;;
19926    esac
19927done
19928
19929# Double-quote double-evaled strings.
19930for var in reload_cmds \
19931old_postinstall_cmds \
19932old_postuninstall_cmds \
19933old_archive_cmds \
19934extract_expsyms_cmds \
19935old_archive_from_new_cmds \
19936old_archive_from_expsyms_cmds \
19937archive_cmds \
19938archive_expsym_cmds \
19939module_cmds \
19940module_expsym_cmds \
19941export_symbols_cmds \
19942prelink_cmds \
19943postlink_cmds \
19944postinstall_cmds \
19945postuninstall_cmds \
19946finish_cmds \
19947sys_lib_search_path_spec \
19948configure_time_dlsearch_path \
19949configure_time_lt_sys_library_path; do
19950    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19951    *[\\\\\\\`\\"\\\$]*)
19952      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
19953      ;;
19954    *)
19955      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19956      ;;
19957    esac
19958done
19959
19960ac_aux_dir='$ac_aux_dir'
19961
19962# See if we are running on zsh, and set the options that allow our
19963# commands through without removal of \ escapes INIT.
19964if test -n "\${ZSH_VERSION+set}"; then
19965   setopt NO_GLOB_SUBST
19966fi
19967
19968
19969    PACKAGE='$PACKAGE'
19970    VERSION='$VERSION'
19971    RM='$RM'
19972    ofile='$ofile'
19973
19974
19975
19976
19977_ACEOF
19978
19979cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19980
19981# Handling of arguments.
19982for ac_config_target in $ac_config_targets
19983do
19984  case $ac_config_target in
19985    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19986    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19987    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19988    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19989    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19990    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
19991
19992  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19993  esac
19994done
19995
19996
19997# If the user did not use the arguments to specify the items to instantiate,
19998# then the envvar interface is used.  Set only those that are not.
19999# We use the long form for the default assignment because of an extremely
20000# bizarre bug on SunOS 4.1.3.
20001if $ac_need_defaults; then
20002  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20003  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20004  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20005fi
20006
20007# Have a temporary directory for convenience.  Make it in the build tree
20008# simply because there is no reason against having it here, and in addition,
20009# creating and moving files from /tmp can sometimes cause problems.
20010# Hook for its removal unless debugging.
20011# Note that there is a small window in which the directory will not be cleaned:
20012# after its creation but before its name has been assigned to `$tmp'.
20013$debug ||
20014{
20015  tmp= ac_tmp=
20016  trap 'exit_status=$?
20017  : "${ac_tmp:=$tmp}"
20018  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20019' 0
20020  trap 'as_fn_exit 1' 1 2 13 15
20021}
20022# Create a (secure) tmp directory for tmp files.
20023
20024{
20025  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20026  test -d "$tmp"
20027}  ||
20028{
20029  tmp=./conf$$-$RANDOM
20030  (umask 077 && mkdir "$tmp")
20031} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20032ac_tmp=$tmp
20033
20034# Set up the scripts for CONFIG_FILES section.
20035# No need to generate them if there are no CONFIG_FILES.
20036# This happens for instance with `./config.status config.h'.
20037if test -n "$CONFIG_FILES"; then
20038
20039
20040ac_cr=`echo X | tr X '\015'`
20041# On cygwin, bash can eat \r inside `` if the user requested igncr.
20042# But we know of no other shell where ac_cr would be empty at this
20043# point, so we can use a bashism as a fallback.
20044if test "x$ac_cr" = x; then
20045  eval ac_cr=\$\'\\r\'
20046fi
20047ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20048if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20049  ac_cs_awk_cr='\\r'
20050else
20051  ac_cs_awk_cr=$ac_cr
20052fi
20053
20054echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20055_ACEOF
20056
20057
20058{
20059  echo "cat >conf$$subs.awk <<_ACEOF" &&
20060  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20061  echo "_ACEOF"
20062} >conf$$subs.sh ||
20063  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20064ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20065ac_delim='%!_!# '
20066for ac_last_try in false false false false false :; do
20067  . ./conf$$subs.sh ||
20068    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20069
20070  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20071  if test $ac_delim_n = $ac_delim_num; then
20072    break
20073  elif $ac_last_try; then
20074    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20075  else
20076    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20077  fi
20078done
20079rm -f conf$$subs.sh
20080
20081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20082cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20083_ACEOF
20084sed -n '
20085h
20086s/^/S["/; s/!.*/"]=/
20087p
20088g
20089s/^[^!]*!//
20090:repl
20091t repl
20092s/'"$ac_delim"'$//
20093t delim
20094:nl
20095h
20096s/\(.\{148\}\)..*/\1/
20097t more1
20098s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20099p
20100n
20101b repl
20102:more1
20103s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20104p
20105g
20106s/.\{148\}//
20107t nl
20108:delim
20109h
20110s/\(.\{148\}\)..*/\1/
20111t more2
20112s/["\\]/\\&/g; s/^/"/; s/$/"/
20113p
20114b
20115:more2
20116s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20117p
20118g
20119s/.\{148\}//
20120t delim
20121' <conf$$subs.awk | sed '
20122/^[^""]/{
20123  N
20124  s/\n//
20125}
20126' >>$CONFIG_STATUS || ac_write_fail=1
20127rm -f conf$$subs.awk
20128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20129_ACAWK
20130cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20131  for (key in S) S_is_set[key] = 1
20132  FS = ""
20133
20134}
20135{
20136  line = $ 0
20137  nfields = split(line, field, "@")
20138  substed = 0
20139  len = length(field[1])
20140  for (i = 2; i < nfields; i++) {
20141    key = field[i]
20142    keylen = length(key)
20143    if (S_is_set[key]) {
20144      value = S[key]
20145      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20146      len += length(value) + length(field[++i])
20147      substed = 1
20148    } else
20149      len += 1 + keylen
20150  }
20151
20152  print line
20153}
20154
20155_ACAWK
20156_ACEOF
20157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20158if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20159  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20160else
20161  cat
20162fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20163  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20164_ACEOF
20165
20166# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20167# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20168# trailing colons and then remove the whole line if VPATH becomes empty
20169# (actually we leave an empty line to preserve line numbers).
20170if test "x$srcdir" = x.; then
20171  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20172h
20173s///
20174s/^/:/
20175s/[	 ]*$/:/
20176s/:\$(srcdir):/:/g
20177s/:\${srcdir}:/:/g
20178s/:@srcdir@:/:/g
20179s/^:*//
20180s/:*$//
20181x
20182s/\(=[	 ]*\).*/\1/
20183G
20184s/\n//
20185s/^[^=]*=[	 ]*$//
20186}'
20187fi
20188
20189cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20190fi # test -n "$CONFIG_FILES"
20191
20192# Set up the scripts for CONFIG_HEADERS section.
20193# No need to generate them if there are no CONFIG_HEADERS.
20194# This happens for instance with `./config.status Makefile'.
20195if test -n "$CONFIG_HEADERS"; then
20196cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20197BEGIN {
20198_ACEOF
20199
20200# Transform confdefs.h into an awk script `defines.awk', embedded as
20201# here-document in config.status, that substitutes the proper values into
20202# config.h.in to produce config.h.
20203
20204# Create a delimiter string that does not exist in confdefs.h, to ease
20205# handling of long lines.
20206ac_delim='%!_!# '
20207for ac_last_try in false false :; do
20208  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20209  if test -z "$ac_tt"; then
20210    break
20211  elif $ac_last_try; then
20212    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20213  else
20214    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20215  fi
20216done
20217
20218# For the awk script, D is an array of macro values keyed by name,
20219# likewise P contains macro parameters if any.  Preserve backslash
20220# newline sequences.
20221
20222ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20223sed -n '
20224s/.\{148\}/&'"$ac_delim"'/g
20225t rset
20226:rset
20227s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20228t def
20229d
20230:def
20231s/\\$//
20232t bsnl
20233s/["\\]/\\&/g
20234s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20235D["\1"]=" \3"/p
20236s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20237d
20238:bsnl
20239s/["\\]/\\&/g
20240s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20241D["\1"]=" \3\\\\\\n"\\/p
20242t cont
20243s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20244t cont
20245d
20246:cont
20247n
20248s/.\{148\}/&'"$ac_delim"'/g
20249t clear
20250:clear
20251s/\\$//
20252t bsnlc
20253s/["\\]/\\&/g; s/^/"/; s/$/"/p
20254d
20255:bsnlc
20256s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20257b cont
20258' <confdefs.h | sed '
20259s/'"$ac_delim"'/"\\\
20260"/g' >>$CONFIG_STATUS || ac_write_fail=1
20261
20262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20263  for (key in D) D_is_set[key] = 1
20264  FS = ""
20265}
20266/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20267  line = \$ 0
20268  split(line, arg, " ")
20269  if (arg[1] == "#") {
20270    defundef = arg[2]
20271    mac1 = arg[3]
20272  } else {
20273    defundef = substr(arg[1], 2)
20274    mac1 = arg[2]
20275  }
20276  split(mac1, mac2, "(") #)
20277  macro = mac2[1]
20278  prefix = substr(line, 1, index(line, defundef) - 1)
20279  if (D_is_set[macro]) {
20280    # Preserve the white space surrounding the "#".
20281    print prefix "define", macro P[macro] D[macro]
20282    next
20283  } else {
20284    # Replace #undef with comments.  This is necessary, for example,
20285    # in the case of _POSIX_SOURCE, which is predefined and required
20286    # on some systems where configure will not decide to define it.
20287    if (defundef == "undef") {
20288      print "/*", prefix defundef, macro, "*/"
20289      next
20290    }
20291  }
20292}
20293{ print }
20294_ACAWK
20295_ACEOF
20296cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20297  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20298fi # test -n "$CONFIG_HEADERS"
20299
20300
20301eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20302shift
20303for ac_tag
20304do
20305  case $ac_tag in
20306  :[FHLC]) ac_mode=$ac_tag; continue;;
20307  esac
20308  case $ac_mode$ac_tag in
20309  :[FHL]*:*);;
20310  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20311  :[FH]-) ac_tag=-:-;;
20312  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20313  esac
20314  ac_save_IFS=$IFS
20315  IFS=:
20316  set x $ac_tag
20317  IFS=$ac_save_IFS
20318  shift
20319  ac_file=$1
20320  shift
20321
20322  case $ac_mode in
20323  :L) ac_source=$1;;
20324  :[FH])
20325    ac_file_inputs=
20326    for ac_f
20327    do
20328      case $ac_f in
20329      -) ac_f="$ac_tmp/stdin";;
20330      *) # Look for the file first in the build tree, then in the source tree
20331	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20332	 # because $ac_f cannot contain `:'.
20333	 test -f "$ac_f" ||
20334	   case $ac_f in
20335	   [\\/$]*) false;;
20336	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20337	   esac ||
20338	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20339      esac
20340      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20341      as_fn_append ac_file_inputs " '$ac_f'"
20342    done
20343
20344    # Let's still pretend it is `configure' which instantiates (i.e., don't
20345    # use $as_me), people would be surprised to read:
20346    #    /* config.h.  Generated by config.status.  */
20347    configure_input='Generated from '`
20348	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20349	`' by configure.'
20350    if test x"$ac_file" != x-; then
20351      configure_input="$ac_file.  $configure_input"
20352      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20353$as_echo "$as_me: creating $ac_file" >&6;}
20354    fi
20355    # Neutralize special characters interpreted by sed in replacement strings.
20356    case $configure_input in #(
20357    *\&* | *\|* | *\\* )
20358       ac_sed_conf_input=`$as_echo "$configure_input" |
20359       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20360    *) ac_sed_conf_input=$configure_input;;
20361    esac
20362
20363    case $ac_tag in
20364    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20365      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20366    esac
20367    ;;
20368  esac
20369
20370  ac_dir=`$as_dirname -- "$ac_file" ||
20371$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20372	 X"$ac_file" : 'X\(//\)[^/]' \| \
20373	 X"$ac_file" : 'X\(//\)$' \| \
20374	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20375$as_echo X"$ac_file" |
20376    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20377	    s//\1/
20378	    q
20379	  }
20380	  /^X\(\/\/\)[^/].*/{
20381	    s//\1/
20382	    q
20383	  }
20384	  /^X\(\/\/\)$/{
20385	    s//\1/
20386	    q
20387	  }
20388	  /^X\(\/\).*/{
20389	    s//\1/
20390	    q
20391	  }
20392	  s/.*/./; q'`
20393  as_dir="$ac_dir"; as_fn_mkdir_p
20394  ac_builddir=.
20395
20396case "$ac_dir" in
20397.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20398*)
20399  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20400  # A ".." for each directory in $ac_dir_suffix.
20401  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20402  case $ac_top_builddir_sub in
20403  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20404  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20405  esac ;;
20406esac
20407ac_abs_top_builddir=$ac_pwd
20408ac_abs_builddir=$ac_pwd$ac_dir_suffix
20409# for backward compatibility:
20410ac_top_builddir=$ac_top_build_prefix
20411
20412case $srcdir in
20413  .)  # We are building in place.
20414    ac_srcdir=.
20415    ac_top_srcdir=$ac_top_builddir_sub
20416    ac_abs_top_srcdir=$ac_pwd ;;
20417  [\\/]* | ?:[\\/]* )  # Absolute name.
20418    ac_srcdir=$srcdir$ac_dir_suffix;
20419    ac_top_srcdir=$srcdir
20420    ac_abs_top_srcdir=$srcdir ;;
20421  *) # Relative name.
20422    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20423    ac_top_srcdir=$ac_top_build_prefix$srcdir
20424    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20425esac
20426ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20427
20428
20429  case $ac_mode in
20430  :F)
20431  #
20432  # CONFIG_FILE
20433  #
20434
20435  case $INSTALL in
20436  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20437  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20438  esac
20439  ac_MKDIR_P=$MKDIR_P
20440  case $MKDIR_P in
20441  [\\/$]* | ?:[\\/]* ) ;;
20442  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20443  esac
20444_ACEOF
20445
20446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20447# If the template does not know about datarootdir, expand it.
20448# FIXME: This hack should be removed a few years after 2.60.
20449ac_datarootdir_hack=; ac_datarootdir_seen=
20450ac_sed_dataroot='
20451/datarootdir/ {
20452  p
20453  q
20454}
20455/@datadir@/p
20456/@docdir@/p
20457/@infodir@/p
20458/@localedir@/p
20459/@mandir@/p'
20460case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20461*datarootdir*) ac_datarootdir_seen=yes;;
20462*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20463  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20464$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20465_ACEOF
20466cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20467  ac_datarootdir_hack='
20468  s&@datadir@&$datadir&g
20469  s&@docdir@&$docdir&g
20470  s&@infodir@&$infodir&g
20471  s&@localedir@&$localedir&g
20472  s&@mandir@&$mandir&g
20473  s&\\\${datarootdir}&$datarootdir&g' ;;
20474esac
20475_ACEOF
20476
20477# Neutralize VPATH when `$srcdir' = `.'.
20478# Shell code in configure.ac might set extrasub.
20479# FIXME: do we really want to maintain this feature?
20480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20481ac_sed_extra="$ac_vpsub
20482$extrasub
20483_ACEOF
20484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20485:t
20486/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20487s|@configure_input@|$ac_sed_conf_input|;t t
20488s&@top_builddir@&$ac_top_builddir_sub&;t t
20489s&@top_build_prefix@&$ac_top_build_prefix&;t t
20490s&@srcdir@&$ac_srcdir&;t t
20491s&@abs_srcdir@&$ac_abs_srcdir&;t t
20492s&@top_srcdir@&$ac_top_srcdir&;t t
20493s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20494s&@builddir@&$ac_builddir&;t t
20495s&@abs_builddir@&$ac_abs_builddir&;t t
20496s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20497s&@INSTALL@&$ac_INSTALL&;t t
20498s&@MKDIR_P@&$ac_MKDIR_P&;t t
20499$ac_datarootdir_hack
20500"
20501eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20502  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20503
20504test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20505  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20506  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
20507      "$ac_tmp/out"`; test -z "$ac_out"; } &&
20508  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20509which seems to be undefined.  Please make sure it is defined" >&5
20510$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20511which seems to be undefined.  Please make sure it is defined" >&2;}
20512
20513  rm -f "$ac_tmp/stdin"
20514  case $ac_file in
20515  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20516  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20517  esac \
20518  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20519 ;;
20520  :H)
20521  #
20522  # CONFIG_HEADER
20523  #
20524  if test x"$ac_file" != x-; then
20525    {
20526      $as_echo "/* $configure_input  */" \
20527      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20528    } >"$ac_tmp/config.h" \
20529      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20530    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20531      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20532$as_echo "$as_me: $ac_file is unchanged" >&6;}
20533    else
20534      rm -f "$ac_file"
20535      mv "$ac_tmp/config.h" "$ac_file" \
20536	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
20537    fi
20538  else
20539    $as_echo "/* $configure_input  */" \
20540      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20541      || as_fn_error $? "could not create -" "$LINENO" 5
20542  fi
20543# Compute "$ac_file"'s index in $config_headers.
20544_am_arg="$ac_file"
20545_am_stamp_count=1
20546for _am_header in $config_headers :; do
20547  case $_am_header in
20548    $_am_arg | $_am_arg:* )
20549      break ;;
20550    * )
20551      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20552  esac
20553done
20554echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20555$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20556	 X"$_am_arg" : 'X\(//\)[^/]' \| \
20557	 X"$_am_arg" : 'X\(//\)$' \| \
20558	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20559$as_echo X"$_am_arg" |
20560    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20561	    s//\1/
20562	    q
20563	  }
20564	  /^X\(\/\/\)[^/].*/{
20565	    s//\1/
20566	    q
20567	  }
20568	  /^X\(\/\/\)$/{
20569	    s//\1/
20570	    q
20571	  }
20572	  /^X\(\/\).*/{
20573	    s//\1/
20574	    q
20575	  }
20576	  s/.*/./; q'`/stamp-h$_am_stamp_count
20577 ;;
20578
20579  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20580$as_echo "$as_me: executing $ac_file commands" >&6;}
20581 ;;
20582  esac
20583
20584
20585  case $ac_file$ac_mode in
20586    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20587  # Older Autoconf quotes --file arguments for eval, but not when files
20588  # are listed without --file.  Let's play safe and only enable the eval
20589  # if we detect the quoting.
20590  case $CONFIG_FILES in
20591  *\'*) eval set x "$CONFIG_FILES" ;;
20592  *)   set x $CONFIG_FILES ;;
20593  esac
20594  shift
20595  for mf
20596  do
20597    # Strip MF so we end up with the name of the file.
20598    mf=`echo "$mf" | sed -e 's/:.*$//'`
20599    # Check whether this is an Automake generated Makefile or not.
20600    # We used to match only the files named 'Makefile.in', but
20601    # some people rename them; so instead we look at the file content.
20602    # Grep'ing the first line is not enough: some people post-process
20603    # each Makefile.in and add a new line on top of each file to say so.
20604    # Grep'ing the whole file is not good either: AIX grep has a line
20605    # limit of 2048, but all sed's we know have understand at least 4000.
20606    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20607      dirpart=`$as_dirname -- "$mf" ||
20608$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20609	 X"$mf" : 'X\(//\)[^/]' \| \
20610	 X"$mf" : 'X\(//\)$' \| \
20611	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20612$as_echo X"$mf" |
20613    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20614	    s//\1/
20615	    q
20616	  }
20617	  /^X\(\/\/\)[^/].*/{
20618	    s//\1/
20619	    q
20620	  }
20621	  /^X\(\/\/\)$/{
20622	    s//\1/
20623	    q
20624	  }
20625	  /^X\(\/\).*/{
20626	    s//\1/
20627	    q
20628	  }
20629	  s/.*/./; q'`
20630    else
20631      continue
20632    fi
20633    # Extract the definition of DEPDIR, am__include, and am__quote
20634    # from the Makefile without running 'make'.
20635    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20636    test -z "$DEPDIR" && continue
20637    am__include=`sed -n 's/^am__include = //p' < "$mf"`
20638    test -z "$am__include" && continue
20639    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20640    # Find all dependency output files, they are included files with
20641    # $(DEPDIR) in their names.  We invoke sed twice because it is the
20642    # simplest approach to changing $(DEPDIR) to its actual value in the
20643    # expansion.
20644    for file in `sed -n "
20645      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20646	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
20647      # Make sure the directory exists.
20648      test -f "$dirpart/$file" && continue
20649      fdir=`$as_dirname -- "$file" ||
20650$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20651	 X"$file" : 'X\(//\)[^/]' \| \
20652	 X"$file" : 'X\(//\)$' \| \
20653	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20654$as_echo X"$file" |
20655    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20656	    s//\1/
20657	    q
20658	  }
20659	  /^X\(\/\/\)[^/].*/{
20660	    s//\1/
20661	    q
20662	  }
20663	  /^X\(\/\/\)$/{
20664	    s//\1/
20665	    q
20666	  }
20667	  /^X\(\/\).*/{
20668	    s//\1/
20669	    q
20670	  }
20671	  s/.*/./; q'`
20672      as_dir=$dirpart/$fdir; as_fn_mkdir_p
20673      # echo "creating $dirpart/$file"
20674      echo '# dummy' > "$dirpart/$file"
20675    done
20676  done
20677}
20678 ;;
20679    "libtool":C)
20680
20681    # See if we are running on zsh, and set the options that allow our
20682    # commands through without removal of \ escapes.
20683    if test -n "${ZSH_VERSION+set}"; then
20684      setopt NO_GLOB_SUBST
20685    fi
20686
20687    cfgfile=${ofile}T
20688    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20689    $RM "$cfgfile"
20690
20691    cat <<_LT_EOF >> "$cfgfile"
20692#! $SHELL
20693# Generated automatically by $as_me ($PACKAGE) $VERSION
20694# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20695# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20696
20697# Provide generalized library-building support services.
20698# Written by Gordon Matzigkeit, 1996
20699
20700# Copyright (C) 2014 Free Software Foundation, Inc.
20701# This is free software; see the source for copying conditions.  There is NO
20702# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20703
20704# GNU Libtool is free software; you can redistribute it and/or modify
20705# it under the terms of the GNU General Public License as published by
20706# the Free Software Foundation; either version 2 of of the License, or
20707# (at your option) any later version.
20708#
20709# As a special exception to the GNU General Public License, if you
20710# distribute this file as part of a program or library that is built
20711# using GNU Libtool, you may include this file under the  same
20712# distribution terms that you use for the rest of that program.
20713#
20714# GNU Libtool is distributed in the hope that it will be useful, but
20715# WITHOUT ANY WARRANTY; without even the implied warranty of
20716# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20717# GNU General Public License for more details.
20718#
20719# You should have received a copy of the GNU General Public License
20720# along with this program.  If not, see <http://www.gnu.org/licenses/>.
20721
20722
20723# The names of the tagged configurations supported by this script.
20724available_tags=''
20725
20726# Configured defaults for sys_lib_dlsearch_path munging.
20727: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20728
20729# ### BEGIN LIBTOOL CONFIG
20730
20731# Whether or not to build static libraries.
20732build_old_libs=$enable_static
20733
20734# Which release of libtool.m4 was used?
20735macro_version=$macro_version
20736macro_revision=$macro_revision
20737
20738# Whether or not to build shared libraries.
20739build_libtool_libs=$enable_shared
20740
20741# What type of objects to build.
20742pic_mode=$pic_mode
20743
20744# Whether or not to optimize for fast installation.
20745fast_install=$enable_fast_install
20746
20747# Shared archive member basename,for filename based shared library versioning on AIX.
20748shared_archive_member_spec=$shared_archive_member_spec
20749
20750# Shell to use when invoking shell scripts.
20751SHELL=$lt_SHELL
20752
20753# An echo program that protects backslashes.
20754ECHO=$lt_ECHO
20755
20756# The PATH separator for the build system.
20757PATH_SEPARATOR=$lt_PATH_SEPARATOR
20758
20759# The host system.
20760host_alias=$host_alias
20761host=$host
20762host_os=$host_os
20763
20764# The build system.
20765build_alias=$build_alias
20766build=$build
20767build_os=$build_os
20768
20769# A sed program that does not truncate output.
20770SED=$lt_SED
20771
20772# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20773Xsed="\$SED -e 1s/^X//"
20774
20775# A grep program that handles long lines.
20776GREP=$lt_GREP
20777
20778# An ERE matcher.
20779EGREP=$lt_EGREP
20780
20781# A literal string matcher.
20782FGREP=$lt_FGREP
20783
20784# A BSD- or MS-compatible name lister.
20785NM=$lt_NM
20786
20787# Whether we need soft or hard links.
20788LN_S=$lt_LN_S
20789
20790# What is the maximum length of a command?
20791max_cmd_len=$max_cmd_len
20792
20793# Object file suffix (normally "o").
20794objext=$ac_objext
20795
20796# Executable file suffix (normally "").
20797exeext=$exeext
20798
20799# whether the shell understands "unset".
20800lt_unset=$lt_unset
20801
20802# turn spaces into newlines.
20803SP2NL=$lt_lt_SP2NL
20804
20805# turn newlines into spaces.
20806NL2SP=$lt_lt_NL2SP
20807
20808# convert \$build file names to \$host format.
20809to_host_file_cmd=$lt_cv_to_host_file_cmd
20810
20811# convert \$build files to toolchain format.
20812to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20813
20814# An object symbol dumper.
20815OBJDUMP=$lt_OBJDUMP
20816
20817# Method to check whether dependent libraries are shared objects.
20818deplibs_check_method=$lt_deplibs_check_method
20819
20820# Command to use when deplibs_check_method = "file_magic".
20821file_magic_cmd=$lt_file_magic_cmd
20822
20823# How to find potential files when deplibs_check_method = "file_magic".
20824file_magic_glob=$lt_file_magic_glob
20825
20826# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20827want_nocaseglob=$lt_want_nocaseglob
20828
20829# DLL creation program.
20830DLLTOOL=$lt_DLLTOOL
20831
20832# Command to associate shared and link libraries.
20833sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20834
20835# The archiver.
20836AR=$lt_AR
20837
20838# Flags to create an archive.
20839AR_FLAGS=$lt_AR_FLAGS
20840
20841# How to feed a file listing to the archiver.
20842archiver_list_spec=$lt_archiver_list_spec
20843
20844# A symbol stripping program.
20845STRIP=$lt_STRIP
20846
20847# Commands used to install an old-style archive.
20848RANLIB=$lt_RANLIB
20849old_postinstall_cmds=$lt_old_postinstall_cmds
20850old_postuninstall_cmds=$lt_old_postuninstall_cmds
20851
20852# Whether to use a lock for old archive extraction.
20853lock_old_archive_extraction=$lock_old_archive_extraction
20854
20855# A C compiler.
20856LTCC=$lt_CC
20857
20858# LTCC compiler flags.
20859LTCFLAGS=$lt_CFLAGS
20860
20861# Take the output of nm and produce a listing of raw symbols and C names.
20862global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20863
20864# Transform the output of nm in a proper C declaration.
20865global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20866
20867# Transform the output of nm into a list of symbols to manually relocate.
20868global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
20869
20870# Transform the output of nm in a C name address pair.
20871global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20872
20873# Transform the output of nm in a C name address pair when lib prefix is needed.
20874global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20875
20876# The name lister interface.
20877nm_interface=$lt_lt_cv_nm_interface
20878
20879# Specify filename containing input files for \$NM.
20880nm_file_list_spec=$lt_nm_file_list_spec
20881
20882# The root where to search for dependent libraries,and where our libraries should be installed.
20883lt_sysroot=$lt_sysroot
20884
20885# Command to truncate a binary pipe.
20886lt_truncate_bin=$lt_lt_cv_truncate_bin
20887
20888# The name of the directory that contains temporary libtool files.
20889objdir=$objdir
20890
20891# Used to examine libraries when file_magic_cmd begins with "file".
20892MAGIC_CMD=$MAGIC_CMD
20893
20894# Must we lock files when doing compilation?
20895need_locks=$lt_need_locks
20896
20897# Manifest tool.
20898MANIFEST_TOOL=$lt_MANIFEST_TOOL
20899
20900# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20901DSYMUTIL=$lt_DSYMUTIL
20902
20903# Tool to change global to local symbols on Mac OS X.
20904NMEDIT=$lt_NMEDIT
20905
20906# Tool to manipulate fat objects and archives on Mac OS X.
20907LIPO=$lt_LIPO
20908
20909# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20910OTOOL=$lt_OTOOL
20911
20912# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20913OTOOL64=$lt_OTOOL64
20914
20915# Old archive suffix (normally "a").
20916libext=$libext
20917
20918# Shared library suffix (normally ".so").
20919shrext_cmds=$lt_shrext_cmds
20920
20921# The commands to extract the exported symbol list from a shared archive.
20922extract_expsyms_cmds=$lt_extract_expsyms_cmds
20923
20924# Variables whose values should be saved in libtool wrapper scripts and
20925# restored at link time.
20926variables_saved_for_relink=$lt_variables_saved_for_relink
20927
20928# Do we need the "lib" prefix for modules?
20929need_lib_prefix=$need_lib_prefix
20930
20931# Do we need a version for libraries?
20932need_version=$need_version
20933
20934# Library versioning type.
20935version_type=$version_type
20936
20937# Shared library runtime path variable.
20938runpath_var=$runpath_var
20939
20940# Shared library path variable.
20941shlibpath_var=$shlibpath_var
20942
20943# Is shlibpath searched before the hard-coded library search path?
20944shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20945
20946# Format of library name prefix.
20947libname_spec=$lt_libname_spec
20948
20949# List of archive names.  First name is the real one, the rest are links.
20950# The last name is the one that the linker finds with -lNAME
20951library_names_spec=$lt_library_names_spec
20952
20953# The coded name of the library, if different from the real name.
20954soname_spec=$lt_soname_spec
20955
20956# Permission mode override for installation of shared libraries.
20957install_override_mode=$lt_install_override_mode
20958
20959# Command to use after installation of a shared archive.
20960postinstall_cmds=$lt_postinstall_cmds
20961
20962# Command to use after uninstallation of a shared archive.
20963postuninstall_cmds=$lt_postuninstall_cmds
20964
20965# Commands used to finish a libtool library installation in a directory.
20966finish_cmds=$lt_finish_cmds
20967
20968# As "finish_cmds", except a single script fragment to be evaled but
20969# not shown.
20970finish_eval=$lt_finish_eval
20971
20972# Whether we should hardcode library paths into libraries.
20973hardcode_into_libs=$hardcode_into_libs
20974
20975# Compile-time system search path for libraries.
20976sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20977
20978# Detected run-time system search path for libraries.
20979sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
20980
20981# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
20982configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
20983
20984# Whether dlopen is supported.
20985dlopen_support=$enable_dlopen
20986
20987# Whether dlopen of programs is supported.
20988dlopen_self=$enable_dlopen_self
20989
20990# Whether dlopen of statically linked programs is supported.
20991dlopen_self_static=$enable_dlopen_self_static
20992
20993# Commands to strip libraries.
20994old_striplib=$lt_old_striplib
20995striplib=$lt_striplib
20996
20997
20998# The linker used to build libraries.
20999LD=$lt_LD
21000
21001# How to create reloadable object files.
21002reload_flag=$lt_reload_flag
21003reload_cmds=$lt_reload_cmds
21004
21005# Commands used to build an old-style archive.
21006old_archive_cmds=$lt_old_archive_cmds
21007
21008# A language specific compiler.
21009CC=$lt_compiler
21010
21011# Is the compiler the GNU compiler?
21012with_gcc=$GCC
21013
21014# Compiler flag to turn off builtin functions.
21015no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21016
21017# Additional compiler flags for building library objects.
21018pic_flag=$lt_lt_prog_compiler_pic
21019
21020# How to pass a linker flag through the compiler.
21021wl=$lt_lt_prog_compiler_wl
21022
21023# Compiler flag to prevent dynamic linking.
21024link_static_flag=$lt_lt_prog_compiler_static
21025
21026# Does compiler simultaneously support -c and -o options?
21027compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21028
21029# Whether or not to add -lc for building shared libraries.
21030build_libtool_need_lc=$archive_cmds_need_lc
21031
21032# Whether or not to disallow shared libs when runtime libs are static.
21033allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21034
21035# Compiler flag to allow reflexive dlopens.
21036export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21037
21038# Compiler flag to generate shared objects directly from archives.
21039whole_archive_flag_spec=$lt_whole_archive_flag_spec
21040
21041# Whether the compiler copes with passing no objects directly.
21042compiler_needs_object=$lt_compiler_needs_object
21043
21044# Create an old-style archive from a shared archive.
21045old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21046
21047# Create a temporary old-style archive to link instead of a shared archive.
21048old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21049
21050# Commands used to build a shared archive.
21051archive_cmds=$lt_archive_cmds
21052archive_expsym_cmds=$lt_archive_expsym_cmds
21053
21054# Commands used to build a loadable module if different from building
21055# a shared archive.
21056module_cmds=$lt_module_cmds
21057module_expsym_cmds=$lt_module_expsym_cmds
21058
21059# Whether we are building with GNU ld or not.
21060with_gnu_ld=$lt_with_gnu_ld
21061
21062# Flag that allows shared libraries with undefined symbols to be built.
21063allow_undefined_flag=$lt_allow_undefined_flag
21064
21065# Flag that enforces no undefined symbols.
21066no_undefined_flag=$lt_no_undefined_flag
21067
21068# Flag to hardcode \$libdir into a binary during linking.
21069# This must work even if \$libdir does not exist
21070hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21071
21072# Whether we need a single "-rpath" flag with a separated argument.
21073hardcode_libdir_separator=$lt_hardcode_libdir_separator
21074
21075# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21076# DIR into the resulting binary.
21077hardcode_direct=$hardcode_direct
21078
21079# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21080# DIR into the resulting binary and the resulting library dependency is
21081# "absolute",i.e impossible to change by setting \$shlibpath_var if the
21082# library is relocated.
21083hardcode_direct_absolute=$hardcode_direct_absolute
21084
21085# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21086# into the resulting binary.
21087hardcode_minus_L=$hardcode_minus_L
21088
21089# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21090# into the resulting binary.
21091hardcode_shlibpath_var=$hardcode_shlibpath_var
21092
21093# Set to "yes" if building a shared library automatically hardcodes DIR
21094# into the library and all subsequent libraries and executables linked
21095# against it.
21096hardcode_automatic=$hardcode_automatic
21097
21098# Set to yes if linker adds runtime paths of dependent libraries
21099# to runtime path list.
21100inherit_rpath=$inherit_rpath
21101
21102# Whether libtool must link a program against all its dependency libraries.
21103link_all_deplibs=$link_all_deplibs
21104
21105# Set to "yes" if exported symbols are required.
21106always_export_symbols=$always_export_symbols
21107
21108# The commands to list exported symbols.
21109export_symbols_cmds=$lt_export_symbols_cmds
21110
21111# Symbols that should not be listed in the preloaded symbols.
21112exclude_expsyms=$lt_exclude_expsyms
21113
21114# Symbols that must always be exported.
21115include_expsyms=$lt_include_expsyms
21116
21117# Commands necessary for linking programs (against libraries) with templates.
21118prelink_cmds=$lt_prelink_cmds
21119
21120# Commands necessary for finishing linking programs.
21121postlink_cmds=$lt_postlink_cmds
21122
21123# Specify filename containing input files.
21124file_list_spec=$lt_file_list_spec
21125
21126# How to hardcode a shared library path into an executable.
21127hardcode_action=$hardcode_action
21128
21129# ### END LIBTOOL CONFIG
21130
21131_LT_EOF
21132
21133    cat <<'_LT_EOF' >> "$cfgfile"
21134
21135# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21136
21137# func_munge_path_list VARIABLE PATH
21138# -----------------------------------
21139# VARIABLE is name of variable containing _space_ separated list of
21140# directories to be munged by the contents of PATH, which is string
21141# having a format:
21142# "DIR[:DIR]:"
21143#       string "DIR[ DIR]" will be prepended to VARIABLE
21144# ":DIR[:DIR]"
21145#       string "DIR[ DIR]" will be appended to VARIABLE
21146# "DIRP[:DIRP]::[DIRA:]DIRA"
21147#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21148#       "DIRA[ DIRA]" will be appended to VARIABLE
21149# "DIR[:DIR]"
21150#       VARIABLE will be replaced by "DIR[ DIR]"
21151func_munge_path_list ()
21152{
21153    case x$2 in
21154    x)
21155        ;;
21156    *:)
21157        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21158        ;;
21159    x:*)
21160        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21161        ;;
21162    *::*)
21163        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21164        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21165        ;;
21166    *)
21167        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21168        ;;
21169    esac
21170}
21171
21172
21173# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
21174func_cc_basename ()
21175{
21176    for cc_temp in $*""; do
21177      case $cc_temp in
21178        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21179        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21180        \-*) ;;
21181        *) break;;
21182      esac
21183    done
21184    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21185}
21186
21187
21188# ### END FUNCTIONS SHARED WITH CONFIGURE
21189
21190_LT_EOF
21191
21192  case $host_os in
21193  aix3*)
21194    cat <<\_LT_EOF >> "$cfgfile"
21195# AIX sometimes has problems with the GCC collect2 program.  For some
21196# reason, if we set the COLLECT_NAMES environment variable, the problems
21197# vanish in a puff of smoke.
21198if test set != "${COLLECT_NAMES+set}"; then
21199  COLLECT_NAMES=
21200  export COLLECT_NAMES
21201fi
21202_LT_EOF
21203    ;;
21204  esac
21205
21206
21207ltmain=$ac_aux_dir/ltmain.sh
21208
21209
21210  # We use sed instead of cat because bash on DJGPP gets confused if
21211  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21212  # text mode, it properly converts lines to CR/LF.  This bash problem
21213  # is reportedly fixed, but why not run on old versions too?
21214  sed '$q' "$ltmain" >> "$cfgfile" \
21215     || (rm -f "$cfgfile"; exit 1)
21216
21217   mv -f "$cfgfile" "$ofile" ||
21218    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21219  chmod +x "$ofile"
21220
21221 ;;
21222
21223  esac
21224done # for ac_tag
21225
21226
21227as_fn_exit 0
21228_ACEOF
21229ac_clean_files=$ac_clean_files_save
21230
21231test $ac_write_fail = 0 ||
21232  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21233
21234
21235# configure is writing to config.log, and then calls config.status.
21236# config.status does its own redirection, appending to config.log.
21237# Unfortunately, on DOS this fails, as config.log is still kept open
21238# by configure, so config.status won't be able to write to it; its
21239# output is simply discarded.  So we exec the FD to /dev/null,
21240# effectively closing config.log, so it can be properly (re)opened and
21241# appended to by config.status.  When coming back to configure, we
21242# need to make the FD available again.
21243if test "$no_create" != yes; then
21244  ac_cs_success=:
21245  ac_config_status_args=
21246  test "$silent" = yes &&
21247    ac_config_status_args="$ac_config_status_args --quiet"
21248  exec 5>/dev/null
21249  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21250  exec 5>>config.log
21251  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21252  # would make configure fail if this is the last instruction.
21253  $ac_cs_success || as_fn_exit 1
21254fi
21255if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21256  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21257$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21258fi
21259
21260