configure revision cf503b78
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for xf86-video-ast 1.0.1.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306# as_fn_set_status STATUS
307# -----------------------
308# Set $? to STATUS, without forking.
309as_fn_set_status ()
310{
311  return $1
312} # as_fn_set_status
313
314# as_fn_exit STATUS
315# -----------------
316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317as_fn_exit ()
318{
319  set +e
320  as_fn_set_status $1
321  exit $1
322} # as_fn_exit
323
324# as_fn_mkdir_p
325# -------------
326# Create "$as_dir" as a directory, including parents if necessary.
327as_fn_mkdir_p ()
328{
329
330  case $as_dir in #(
331  -*) as_dir=./$as_dir;;
332  esac
333  test -d "$as_dir" || eval $as_mkdir_p || {
334    as_dirs=
335    while :; do
336      case $as_dir in #(
337      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338      *) as_qdir=$as_dir;;
339      esac
340      as_dirs="'$as_qdir' $as_dirs"
341      as_dir=`$as_dirname -- "$as_dir" ||
342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343	 X"$as_dir" : 'X\(//\)[^/]' \| \
344	 X"$as_dir" : 'X\(//\)$' \| \
345	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346$as_echo X"$as_dir" |
347    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)[^/].*/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\/\)$/{
356	    s//\1/
357	    q
358	  }
359	  /^X\(\/\).*/{
360	    s//\1/
361	    q
362	  }
363	  s/.*/./; q'`
364      test -d "$as_dir" && break
365    done
366    test -z "$as_dirs" || eval "mkdir $as_dirs"
367  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370} # as_fn_mkdir_p
371
372# as_fn_executable_p FILE
373# -----------------------
374# Test if FILE is an executable regular file.
375as_fn_executable_p ()
376{
377  test -f "$1" && test -x "$1"
378} # as_fn_executable_p
379# as_fn_append VAR VALUE
380# ----------------------
381# Append the text in VALUE to the end of the definition contained in VAR. Take
382# advantage of any shell optimizations that allow amortized linear growth over
383# repeated appends, instead of the typical quadratic growth present in naive
384# implementations.
385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386  eval 'as_fn_append ()
387  {
388    eval $1+=\$2
389  }'
390else
391  as_fn_append ()
392  {
393    eval $1=\$$1\$2
394  }
395fi # as_fn_append
396
397# as_fn_arith ARG...
398# ------------------
399# Perform arithmetic evaluation on the ARGs, and store the result in the
400# global $as_val. Take advantage of shells that can avoid forks. The arguments
401# must be portable across $(()) and expr.
402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403  eval 'as_fn_arith ()
404  {
405    as_val=$(( $* ))
406  }'
407else
408  as_fn_arith ()
409  {
410    as_val=`expr "$@" || test $? -eq 1`
411  }
412fi # as_fn_arith
413
414
415# as_fn_error STATUS ERROR [LINENO LOG_FD]
416# ----------------------------------------
417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419# script with STATUS, using 1 if that was 0.
420as_fn_error ()
421{
422  as_status=$1; test $as_status -eq 0 && as_status=1
423  if test "$4"; then
424    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426  fi
427  $as_echo "$as_me: error: $2" >&2
428  as_fn_exit $as_status
429} # as_fn_error
430
431if expr a : '\(a\)' >/dev/null 2>&1 &&
432   test "X`expr 00001 : '.*\(...\)'`" = X001; then
433  as_expr=expr
434else
435  as_expr=false
436fi
437
438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439  as_basename=basename
440else
441  as_basename=false
442fi
443
444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445  as_dirname=dirname
446else
447  as_dirname=false
448fi
449
450as_me=`$as_basename -- "$0" ||
451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452	 X"$0" : 'X\(//\)$' \| \
453	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454$as_echo X/"$0" |
455    sed '/^.*\/\([^/][^/]*\)\/*$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\/\)$/{
460	    s//\1/
461	    q
462	  }
463	  /^X\/\(\/\).*/{
464	    s//\1/
465	    q
466	  }
467	  s/.*/./; q'`
468
469# Avoid depending upon Character Ranges.
470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473as_cr_digits='0123456789'
474as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477  as_lineno_1=$LINENO as_lineno_1a=$LINENO
478  as_lineno_2=$LINENO as_lineno_2a=$LINENO
479  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482  sed -n '
483    p
484    /[$]LINENO/=
485  ' <$as_myself |
486    sed '
487      s/[$]LINENO.*/&-/
488      t lineno
489      b
490      :lineno
491      N
492      :loop
493      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494      t loop
495      s/-\n.*//
496    ' >$as_me.lineno &&
497  chmod +x "$as_me.lineno" ||
498    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501  # already done that, so ensure we don't try to do so again and fall
502  # in an infinite loop.  This has already happened in practice.
503  _as_can_reexec=no; export _as_can_reexec
504  # Don't try to exec as it changes $[0], causing all sort of problems
505  # (the dirname of $[0] is not the place where we might find the
506  # original and so on.  Autoconf is especially sensitive to this).
507  . "./$as_me.lineno"
508  # Exit status is that of the last command.
509  exit
510}
511
512ECHO_C= ECHO_N= ECHO_T=
513case `echo -n x` in #(((((
514-n*)
515  case `echo 'xy\c'` in
516  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
517  xy)  ECHO_C='\c';;
518  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519       ECHO_T='	';;
520  esac;;
521*)
522  ECHO_N='-n';;
523esac
524
525rm -f conf$$ conf$$.exe conf$$.file
526if test -d conf$$.dir; then
527  rm -f conf$$.dir/conf$$.file
528else
529  rm -f conf$$.dir
530  mkdir conf$$.dir 2>/dev/null
531fi
532if (echo >conf$$.file) 2>/dev/null; then
533  if ln -s conf$$.file conf$$ 2>/dev/null; then
534    as_ln_s='ln -s'
535    # ... but there are two gotchas:
536    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538    # In both cases, we have to default to `cp -pR'.
539    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540      as_ln_s='cp -pR'
541  elif ln conf$$.file conf$$ 2>/dev/null; then
542    as_ln_s=ln
543  else
544    as_ln_s='cp -pR'
545  fi
546else
547  as_ln_s='cp -pR'
548fi
549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550rmdir conf$$.dir 2>/dev/null
551
552if mkdir -p . 2>/dev/null; then
553  as_mkdir_p='mkdir -p "$as_dir"'
554else
555  test -d ./-p && rmdir ./-p
556  as_mkdir_p=false
557fi
558
559as_test_x='test -x'
560as_executable_p=as_fn_executable_p
561
562# Sed expression to map a string onto a valid CPP name.
563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565# Sed expression to map a string onto a valid variable name.
566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571test -n "$DJDIR" || exec 7<&0 </dev/null
572exec 6>&1
573
574# Name of the host.
575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576# so uname gets run too.
577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579#
580# Initializations.
581#
582ac_default_prefix=/usr/local
583ac_clean_files=
584ac_config_libobj_dir=.
585LIBOBJS=
586cross_compiling=no
587subdirs=
588MFLAGS=
589MAKEFLAGS=
590
591# Identity of this package.
592PACKAGE_NAME='xf86-video-ast'
593PACKAGE_TARNAME='xf86-video-ast'
594PACKAGE_VERSION='1.0.1'
595PACKAGE_STRING='xf86-video-ast 1.0.1'
596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
597PACKAGE_URL=''
598
599ac_unique_file="Makefile.am"
600# Factoring default headers for most tests.
601ac_includes_default="\
602#include <stdio.h>
603#ifdef HAVE_SYS_TYPES_H
604# include <sys/types.h>
605#endif
606#ifdef HAVE_SYS_STAT_H
607# include <sys/stat.h>
608#endif
609#ifdef STDC_HEADERS
610# include <stdlib.h>
611# include <stddef.h>
612#else
613# ifdef HAVE_STDLIB_H
614#  include <stdlib.h>
615# endif
616#endif
617#ifdef HAVE_STRING_H
618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619#  include <memory.h>
620# endif
621# include <string.h>
622#endif
623#ifdef HAVE_STRINGS_H
624# include <strings.h>
625#endif
626#ifdef HAVE_INTTYPES_H
627# include <inttypes.h>
628#endif
629#ifdef HAVE_STDINT_H
630# include <stdint.h>
631#endif
632#ifdef HAVE_UNISTD_H
633# include <unistd.h>
634#endif"
635
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640DRIVER_NAME
641moduledir
642XAA_FALSE
643XAA_TRUE
644XSERVER_LIBPCIACCESS_FALSE
645XSERVER_LIBPCIACCESS_TRUE
646PCIACCESS_LIBS
647PCIACCESS_CFLAGS
648XORG_LIBS
649XORG_CFLAGS
650OTOOL64
651OTOOL
652LIPO
653NMEDIT
654DSYMUTIL
655MANIFEST_TOOL
656RANLIB
657ac_ct_AR
658AR
659DLLTOOL
660OBJDUMP
661LN_S
662NM
663ac_ct_DUMPBIN
664DUMPBIN
665LD
666FGREP
667LIBTOOL
668MAN_SUBSTS
669XORG_MAN_PAGE
670ADMIN_MAN_DIR
671DRIVER_MAN_DIR
672MISC_MAN_DIR
673FILE_MAN_DIR
674LIB_MAN_DIR
675APP_MAN_DIR
676ADMIN_MAN_SUFFIX
677DRIVER_MAN_SUFFIX
678MISC_MAN_SUFFIX
679FILE_MAN_SUFFIX
680LIB_MAN_SUFFIX
681APP_MAN_SUFFIX
682SED
683host_os
684host_vendor
685host_cpu
686host
687build_os
688build_vendor
689build_cpu
690build
691INSTALL_CMD
692PKG_CONFIG_LIBDIR
693PKG_CONFIG_PATH
694PKG_CONFIG
695CHANGELOG_CMD
696STRICT_CFLAGS
697CWARNFLAGS
698BASE_CFLAGS
699EGREP
700GREP
701CPP
702am__fastdepCC_FALSE
703am__fastdepCC_TRUE
704CCDEPMODE
705am__nodep
706AMDEPBACKSLASH
707AMDEP_FALSE
708AMDEP_TRUE
709am__quote
710am__include
711DEPDIR
712OBJEXT
713EXEEXT
714ac_ct_CC
715CPPFLAGS
716LDFLAGS
717CFLAGS
718CC
719MAINT
720MAINTAINER_MODE_FALSE
721MAINTAINER_MODE_TRUE
722AM_BACKSLASH
723AM_DEFAULT_VERBOSITY
724AM_DEFAULT_V
725AM_V
726am__untar
727am__tar
728AMTAR
729am__leading_dot
730SET_MAKE
731AWK
732mkdir_p
733MKDIR_P
734INSTALL_STRIP_PROGRAM
735STRIP
736install_sh
737MAKEINFO
738AUTOHEADER
739AUTOMAKE
740AUTOCONF
741ACLOCAL
742VERSION
743PACKAGE
744CYGPATH_W
745am__isrc
746INSTALL_DATA
747INSTALL_SCRIPT
748INSTALL_PROGRAM
749target_alias
750host_alias
751build_alias
752LIBS
753ECHO_T
754ECHO_N
755ECHO_C
756DEFS
757mandir
758localedir
759libdir
760psdir
761pdfdir
762dvidir
763htmldir
764infodir
765docdir
766oldincludedir
767includedir
768localstatedir
769sharedstatedir
770sysconfdir
771datadir
772datarootdir
773libexecdir
774sbindir
775bindir
776program_transform_name
777prefix
778exec_prefix
779PACKAGE_URL
780PACKAGE_BUGREPORT
781PACKAGE_STRING
782PACKAGE_VERSION
783PACKAGE_TARNAME
784PACKAGE_NAME
785PATH_SEPARATOR
786SHELL'
787ac_subst_files=''
788ac_user_opts='
789enable_option_checking
790enable_silent_rules
791enable_maintainer_mode
792enable_dependency_tracking
793enable_selective_werror
794enable_strict_compilation
795enable_static
796enable_shared
797with_pic
798enable_fast_install
799with_gnu_ld
800with_sysroot
801enable_libtool_lock
802with_xorg_module_dir
803enable_xaa
804'
805      ac_precious_vars='build_alias
806host_alias
807target_alias
808CC
809CFLAGS
810LDFLAGS
811LIBS
812CPPFLAGS
813CPP
814PKG_CONFIG
815PKG_CONFIG_PATH
816PKG_CONFIG_LIBDIR
817XORG_CFLAGS
818XORG_LIBS
819PCIACCESS_CFLAGS
820PCIACCESS_LIBS'
821
822
823# Initialize some variables set by options.
824ac_init_help=
825ac_init_version=false
826ac_unrecognized_opts=
827ac_unrecognized_sep=
828# The variables have the same names as the options, with
829# dashes changed to underlines.
830cache_file=/dev/null
831exec_prefix=NONE
832no_create=
833no_recursion=
834prefix=NONE
835program_prefix=NONE
836program_suffix=NONE
837program_transform_name=s,x,x,
838silent=
839site=
840srcdir=
841verbose=
842x_includes=NONE
843x_libraries=NONE
844
845# Installation directory options.
846# These are left unexpanded so users can "make install exec_prefix=/foo"
847# and all the variables that are supposed to be based on exec_prefix
848# by default will actually change.
849# Use braces instead of parens because sh, perl, etc. also accept them.
850# (The list follows the same order as the GNU Coding Standards.)
851bindir='${exec_prefix}/bin'
852sbindir='${exec_prefix}/sbin'
853libexecdir='${exec_prefix}/libexec'
854datarootdir='${prefix}/share'
855datadir='${datarootdir}'
856sysconfdir='${prefix}/etc'
857sharedstatedir='${prefix}/com'
858localstatedir='${prefix}/var'
859includedir='${prefix}/include'
860oldincludedir='/usr/include'
861docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862infodir='${datarootdir}/info'
863htmldir='${docdir}'
864dvidir='${docdir}'
865pdfdir='${docdir}'
866psdir='${docdir}'
867libdir='${exec_prefix}/lib'
868localedir='${datarootdir}/locale'
869mandir='${datarootdir}/man'
870
871ac_prev=
872ac_dashdash=
873for ac_option
874do
875  # If the previous option needs an argument, assign it.
876  if test -n "$ac_prev"; then
877    eval $ac_prev=\$ac_option
878    ac_prev=
879    continue
880  fi
881
882  case $ac_option in
883  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884  *=)   ac_optarg= ;;
885  *)    ac_optarg=yes ;;
886  esac
887
888  # Accept the important Cygnus configure options, so we can diagnose typos.
889
890  case $ac_dashdash$ac_option in
891  --)
892    ac_dashdash=yes ;;
893
894  -bindir | --bindir | --bindi | --bind | --bin | --bi)
895    ac_prev=bindir ;;
896  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897    bindir=$ac_optarg ;;
898
899  -build | --build | --buil | --bui | --bu)
900    ac_prev=build_alias ;;
901  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902    build_alias=$ac_optarg ;;
903
904  -cache-file | --cache-file | --cache-fil | --cache-fi \
905  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906    ac_prev=cache_file ;;
907  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909    cache_file=$ac_optarg ;;
910
911  --config-cache | -C)
912    cache_file=config.cache ;;
913
914  -datadir | --datadir | --datadi | --datad)
915    ac_prev=datadir ;;
916  -datadir=* | --datadir=* | --datadi=* | --datad=*)
917    datadir=$ac_optarg ;;
918
919  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920  | --dataroo | --dataro | --datar)
921    ac_prev=datarootdir ;;
922  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924    datarootdir=$ac_optarg ;;
925
926  -disable-* | --disable-*)
927    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928    # Reject names that are not valid shell variable names.
929    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930      as_fn_error $? "invalid feature name: $ac_useropt"
931    ac_useropt_orig=$ac_useropt
932    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933    case $ac_user_opts in
934      *"
935"enable_$ac_useropt"
936"*) ;;
937      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938	 ac_unrecognized_sep=', ';;
939    esac
940    eval enable_$ac_useropt=no ;;
941
942  -docdir | --docdir | --docdi | --doc | --do)
943    ac_prev=docdir ;;
944  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945    docdir=$ac_optarg ;;
946
947  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948    ac_prev=dvidir ;;
949  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950    dvidir=$ac_optarg ;;
951
952  -enable-* | --enable-*)
953    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954    # Reject names that are not valid shell variable names.
955    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956      as_fn_error $? "invalid feature name: $ac_useropt"
957    ac_useropt_orig=$ac_useropt
958    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959    case $ac_user_opts in
960      *"
961"enable_$ac_useropt"
962"*) ;;
963      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964	 ac_unrecognized_sep=', ';;
965    esac
966    eval enable_$ac_useropt=\$ac_optarg ;;
967
968  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970  | --exec | --exe | --ex)
971    ac_prev=exec_prefix ;;
972  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974  | --exec=* | --exe=* | --ex=*)
975    exec_prefix=$ac_optarg ;;
976
977  -gas | --gas | --ga | --g)
978    # Obsolete; use --with-gas.
979    with_gas=yes ;;
980
981  -help | --help | --hel | --he | -h)
982    ac_init_help=long ;;
983  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984    ac_init_help=recursive ;;
985  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986    ac_init_help=short ;;
987
988  -host | --host | --hos | --ho)
989    ac_prev=host_alias ;;
990  -host=* | --host=* | --hos=* | --ho=*)
991    host_alias=$ac_optarg ;;
992
993  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994    ac_prev=htmldir ;;
995  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996  | --ht=*)
997    htmldir=$ac_optarg ;;
998
999  -includedir | --includedir | --includedi | --included | --include \
1000  | --includ | --inclu | --incl | --inc)
1001    ac_prev=includedir ;;
1002  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003  | --includ=* | --inclu=* | --incl=* | --inc=*)
1004    includedir=$ac_optarg ;;
1005
1006  -infodir | --infodir | --infodi | --infod | --info | --inf)
1007    ac_prev=infodir ;;
1008  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009    infodir=$ac_optarg ;;
1010
1011  -libdir | --libdir | --libdi | --libd)
1012    ac_prev=libdir ;;
1013  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014    libdir=$ac_optarg ;;
1015
1016  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017  | --libexe | --libex | --libe)
1018    ac_prev=libexecdir ;;
1019  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020  | --libexe=* | --libex=* | --libe=*)
1021    libexecdir=$ac_optarg ;;
1022
1023  -localedir | --localedir | --localedi | --localed | --locale)
1024    ac_prev=localedir ;;
1025  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026    localedir=$ac_optarg ;;
1027
1028  -localstatedir | --localstatedir | --localstatedi | --localstated \
1029  | --localstate | --localstat | --localsta | --localst | --locals)
1030    ac_prev=localstatedir ;;
1031  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033    localstatedir=$ac_optarg ;;
1034
1035  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036    ac_prev=mandir ;;
1037  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038    mandir=$ac_optarg ;;
1039
1040  -nfp | --nfp | --nf)
1041    # Obsolete; use --without-fp.
1042    with_fp=no ;;
1043
1044  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045  | --no-cr | --no-c | -n)
1046    no_create=yes ;;
1047
1048  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050    no_recursion=yes ;;
1051
1052  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054  | --oldin | --oldi | --old | --ol | --o)
1055    ac_prev=oldincludedir ;;
1056  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059    oldincludedir=$ac_optarg ;;
1060
1061  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062    ac_prev=prefix ;;
1063  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064    prefix=$ac_optarg ;;
1065
1066  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067  | --program-pre | --program-pr | --program-p)
1068    ac_prev=program_prefix ;;
1069  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071    program_prefix=$ac_optarg ;;
1072
1073  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074  | --program-suf | --program-su | --program-s)
1075    ac_prev=program_suffix ;;
1076  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078    program_suffix=$ac_optarg ;;
1079
1080  -program-transform-name | --program-transform-name \
1081  | --program-transform-nam | --program-transform-na \
1082  | --program-transform-n | --program-transform- \
1083  | --program-transform | --program-transfor \
1084  | --program-transfo | --program-transf \
1085  | --program-trans | --program-tran \
1086  | --progr-tra | --program-tr | --program-t)
1087    ac_prev=program_transform_name ;;
1088  -program-transform-name=* | --program-transform-name=* \
1089  | --program-transform-nam=* | --program-transform-na=* \
1090  | --program-transform-n=* | --program-transform-=* \
1091  | --program-transform=* | --program-transfor=* \
1092  | --program-transfo=* | --program-transf=* \
1093  | --program-trans=* | --program-tran=* \
1094  | --progr-tra=* | --program-tr=* | --program-t=*)
1095    program_transform_name=$ac_optarg ;;
1096
1097  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098    ac_prev=pdfdir ;;
1099  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100    pdfdir=$ac_optarg ;;
1101
1102  -psdir | --psdir | --psdi | --psd | --ps)
1103    ac_prev=psdir ;;
1104  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105    psdir=$ac_optarg ;;
1106
1107  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108  | -silent | --silent | --silen | --sile | --sil)
1109    silent=yes ;;
1110
1111  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1112    ac_prev=sbindir ;;
1113  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1114  | --sbi=* | --sb=*)
1115    sbindir=$ac_optarg ;;
1116
1117  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1118  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1119  | --sharedst | --shareds | --shared | --share | --shar \
1120  | --sha | --sh)
1121    ac_prev=sharedstatedir ;;
1122  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1123  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1124  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1125  | --sha=* | --sh=*)
1126    sharedstatedir=$ac_optarg ;;
1127
1128  -site | --site | --sit)
1129    ac_prev=site ;;
1130  -site=* | --site=* | --sit=*)
1131    site=$ac_optarg ;;
1132
1133  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1134    ac_prev=srcdir ;;
1135  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1136    srcdir=$ac_optarg ;;
1137
1138  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1139  | --syscon | --sysco | --sysc | --sys | --sy)
1140    ac_prev=sysconfdir ;;
1141  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1142  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1143    sysconfdir=$ac_optarg ;;
1144
1145  -target | --target | --targe | --targ | --tar | --ta | --t)
1146    ac_prev=target_alias ;;
1147  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1148    target_alias=$ac_optarg ;;
1149
1150  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1151    verbose=yes ;;
1152
1153  -version | --version | --versio | --versi | --vers | -V)
1154    ac_init_version=: ;;
1155
1156  -with-* | --with-*)
1157    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1158    # Reject names that are not valid shell variable names.
1159    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160      as_fn_error $? "invalid package name: $ac_useropt"
1161    ac_useropt_orig=$ac_useropt
1162    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163    case $ac_user_opts in
1164      *"
1165"with_$ac_useropt"
1166"*) ;;
1167      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1168	 ac_unrecognized_sep=', ';;
1169    esac
1170    eval with_$ac_useropt=\$ac_optarg ;;
1171
1172  -without-* | --without-*)
1173    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1184	 ac_unrecognized_sep=', ';;
1185    esac
1186    eval with_$ac_useropt=no ;;
1187
1188  --x)
1189    # Obsolete; use --with-x.
1190    with_x=yes ;;
1191
1192  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193  | --x-incl | --x-inc | --x-in | --x-i)
1194    ac_prev=x_includes ;;
1195  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197    x_includes=$ac_optarg ;;
1198
1199  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201    ac_prev=x_libraries ;;
1202  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204    x_libraries=$ac_optarg ;;
1205
1206  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1207Try \`$0 --help' for more information"
1208    ;;
1209
1210  *=*)
1211    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1212    # Reject names that are not valid shell variable names.
1213    case $ac_envvar in #(
1214      '' | [0-9]* | *[!_$as_cr_alnum]* )
1215      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1216    esac
1217    eval $ac_envvar=\$ac_optarg
1218    export $ac_envvar ;;
1219
1220  *)
1221    # FIXME: should be removed in autoconf 3.0.
1222    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1226    ;;
1227
1228  esac
1229done
1230
1231if test -n "$ac_prev"; then
1232  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1233  as_fn_error $? "missing argument to $ac_option"
1234fi
1235
1236if test -n "$ac_unrecognized_opts"; then
1237  case $enable_option_checking in
1238    no) ;;
1239    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1240    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1241  esac
1242fi
1243
1244# Check all directory arguments for consistency.
1245for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1246		datadir sysconfdir sharedstatedir localstatedir includedir \
1247		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1248		libdir localedir mandir
1249do
1250  eval ac_val=\$$ac_var
1251  # Remove trailing slashes.
1252  case $ac_val in
1253    */ )
1254      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1255      eval $ac_var=\$ac_val;;
1256  esac
1257  # Be sure to have absolute directory names.
1258  case $ac_val in
1259    [\\/$]* | ?:[\\/]* )  continue;;
1260    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1261  esac
1262  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1263done
1264
1265# There might be people who depend on the old broken behavior: `$host'
1266# used to hold the argument of --host etc.
1267# FIXME: To remove some day.
1268build=$build_alias
1269host=$host_alias
1270target=$target_alias
1271
1272# FIXME: To remove some day.
1273if test "x$host_alias" != x; then
1274  if test "x$build_alias" = x; then
1275    cross_compiling=maybe
1276  elif test "x$build_alias" != "x$host_alias"; then
1277    cross_compiling=yes
1278  fi
1279fi
1280
1281ac_tool_prefix=
1282test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283
1284test "$silent" = yes && exec 6>/dev/null
1285
1286
1287ac_pwd=`pwd` && test -n "$ac_pwd" &&
1288ac_ls_di=`ls -di .` &&
1289ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1290  as_fn_error $? "working directory cannot be determined"
1291test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292  as_fn_error $? "pwd does not report name of working directory"
1293
1294
1295# Find the source files, if location was not specified.
1296if test -z "$srcdir"; then
1297  ac_srcdir_defaulted=yes
1298  # Try the directory containing this script, then the parent directory.
1299  ac_confdir=`$as_dirname -- "$as_myself" ||
1300$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301	 X"$as_myself" : 'X\(//\)[^/]' \| \
1302	 X"$as_myself" : 'X\(//\)$' \| \
1303	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1304$as_echo X"$as_myself" |
1305    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306	    s//\1/
1307	    q
1308	  }
1309	  /^X\(\/\/\)[^/].*/{
1310	    s//\1/
1311	    q
1312	  }
1313	  /^X\(\/\/\)$/{
1314	    s//\1/
1315	    q
1316	  }
1317	  /^X\(\/\).*/{
1318	    s//\1/
1319	    q
1320	  }
1321	  s/.*/./; q'`
1322  srcdir=$ac_confdir
1323  if test ! -r "$srcdir/$ac_unique_file"; then
1324    srcdir=..
1325  fi
1326else
1327  ac_srcdir_defaulted=no
1328fi
1329if test ! -r "$srcdir/$ac_unique_file"; then
1330  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1332fi
1333ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334ac_abs_confdir=`(
1335	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1336	pwd)`
1337# When building in place, set srcdir=.
1338if test "$ac_abs_confdir" = "$ac_pwd"; then
1339  srcdir=.
1340fi
1341# Remove unnecessary trailing slashes from srcdir.
1342# Double slashes in file names in object file debugging info
1343# mess up M-x gdb in Emacs.
1344case $srcdir in
1345*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346esac
1347for ac_var in $ac_precious_vars; do
1348  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1349  eval ac_env_${ac_var}_value=\$${ac_var}
1350  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1351  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352done
1353
1354#
1355# Report the --help message.
1356#
1357if test "$ac_init_help" = "long"; then
1358  # Omit some internal or obsolete options to make the list less imposing.
1359  # This message is too long to be a string in the A/UX 3.1 sh.
1360  cat <<_ACEOF
1361\`configure' configures xf86-video-ast 1.0.1 to adapt to many kinds of systems.
1362
1363Usage: $0 [OPTION]... [VAR=VALUE]...
1364
1365To assign environment variables (e.g., CC, CFLAGS...), specify them as
1366VAR=VALUE.  See below for descriptions of some of the useful variables.
1367
1368Defaults for the options are specified in brackets.
1369
1370Configuration:
1371  -h, --help              display this help and exit
1372      --help=short        display options specific to this package
1373      --help=recursive    display the short help of all the included packages
1374  -V, --version           display version information and exit
1375  -q, --quiet, --silent   do not print \`checking ...' messages
1376      --cache-file=FILE   cache test results in FILE [disabled]
1377  -C, --config-cache      alias for \`--cache-file=config.cache'
1378  -n, --no-create         do not create output files
1379      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1380
1381Installation directories:
1382  --prefix=PREFIX         install architecture-independent files in PREFIX
1383                          [$ac_default_prefix]
1384  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1385                          [PREFIX]
1386
1387By default, \`make install' will install all the files in
1388\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1389an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1390for instance \`--prefix=\$HOME'.
1391
1392For better control, use the options below.
1393
1394Fine tuning of the installation directories:
1395  --bindir=DIR            user executables [EPREFIX/bin]
1396  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1397  --libexecdir=DIR        program executables [EPREFIX/libexec]
1398  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1399  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1400  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1401  --libdir=DIR            object code libraries [EPREFIX/lib]
1402  --includedir=DIR        C header files [PREFIX/include]
1403  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1404  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1405  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1406  --infodir=DIR           info documentation [DATAROOTDIR/info]
1407  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1408  --mandir=DIR            man documentation [DATAROOTDIR/man]
1409  --docdir=DIR            documentation root [DATAROOTDIR/doc/xf86-video-ast]
1410  --htmldir=DIR           html documentation [DOCDIR]
1411  --dvidir=DIR            dvi documentation [DOCDIR]
1412  --pdfdir=DIR            pdf documentation [DOCDIR]
1413  --psdir=DIR             ps documentation [DOCDIR]
1414_ACEOF
1415
1416  cat <<\_ACEOF
1417
1418Program names:
1419  --program-prefix=PREFIX            prepend PREFIX to installed program names
1420  --program-suffix=SUFFIX            append SUFFIX to installed program names
1421  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1422
1423System types:
1424  --build=BUILD     configure for building on BUILD [guessed]
1425  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1426_ACEOF
1427fi
1428
1429if test -n "$ac_init_help"; then
1430  case $ac_init_help in
1431     short | recursive ) echo "Configuration of xf86-video-ast 1.0.1:";;
1432   esac
1433  cat <<\_ACEOF
1434
1435Optional Features:
1436  --disable-option-checking  ignore unrecognized --enable/--with options
1437  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1438  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1439  --enable-silent-rules   less verbose build output (undo: "make V=1")
1440  --disable-silent-rules  verbose build output (undo: "make V=0")
1441  --enable-maintainer-mode
1442                          enable make rules and dependencies not useful (and
1443                          sometimes confusing) to the casual installer
1444  --enable-dependency-tracking
1445                          do not reject slow dependency extractors
1446  --disable-dependency-tracking
1447                          speeds up one-time build
1448  --disable-selective-werror
1449                          Turn off selective compiler errors. (default:
1450                          enabled)
1451  --enable-strict-compilation
1452                          Enable all warnings from compiler and make them
1453                          errors (default: disabled)
1454  --enable-static[=PKGS]  build static libraries [default=no]
1455  --enable-shared[=PKGS]  build shared libraries [default=yes]
1456  --enable-fast-install[=PKGS]
1457                          optimize for fast installation [default=yes]
1458  --disable-libtool-lock  avoid locking (might break parallel builds)
1459  --enable-xaa            Enable legacy X Acceleration Architecture (XAA)
1460                          [default=auto]
1461
1462Optional Packages:
1463  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1464  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1465  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1466                          both]
1467  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1468  --with-sysroot=DIR Search for dependent libraries within DIR
1469                        (or the compiler's sysroot if not specified).
1470  --with-xorg-module-dir=DIR
1471                          Default xorg module directory
1472                          [[default=$libdir/xorg/modules]]
1473
1474Some influential environment variables:
1475  CC          C compiler command
1476  CFLAGS      C compiler flags
1477  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1478              nonstandard directory <lib dir>
1479  LIBS        libraries to pass to the linker, e.g. -l<library>
1480  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1481              you have headers in a nonstandard directory <include dir>
1482  CPP         C preprocessor
1483  PKG_CONFIG  path to pkg-config utility
1484  PKG_CONFIG_PATH
1485              directories to add to pkg-config's search path
1486  PKG_CONFIG_LIBDIR
1487              path overriding pkg-config's built-in search path
1488  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1489  XORG_LIBS   linker flags for XORG, overriding pkg-config
1490  PCIACCESS_CFLAGS
1491              C compiler flags for PCIACCESS, overriding pkg-config
1492  PCIACCESS_LIBS
1493              linker flags for PCIACCESS, overriding pkg-config
1494
1495Use these variables to override the choices made by `configure' or to help
1496it to find libraries and programs with nonstandard names/locations.
1497
1498Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1499_ACEOF
1500ac_status=$?
1501fi
1502
1503if test "$ac_init_help" = "recursive"; then
1504  # If there are subdirs, report their specific --help.
1505  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1506    test -d "$ac_dir" ||
1507      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1508      continue
1509    ac_builddir=.
1510
1511case "$ac_dir" in
1512.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513*)
1514  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1515  # A ".." for each directory in $ac_dir_suffix.
1516  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1517  case $ac_top_builddir_sub in
1518  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520  esac ;;
1521esac
1522ac_abs_top_builddir=$ac_pwd
1523ac_abs_builddir=$ac_pwd$ac_dir_suffix
1524# for backward compatibility:
1525ac_top_builddir=$ac_top_build_prefix
1526
1527case $srcdir in
1528  .)  # We are building in place.
1529    ac_srcdir=.
1530    ac_top_srcdir=$ac_top_builddir_sub
1531    ac_abs_top_srcdir=$ac_pwd ;;
1532  [\\/]* | ?:[\\/]* )  # Absolute name.
1533    ac_srcdir=$srcdir$ac_dir_suffix;
1534    ac_top_srcdir=$srcdir
1535    ac_abs_top_srcdir=$srcdir ;;
1536  *) # Relative name.
1537    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1538    ac_top_srcdir=$ac_top_build_prefix$srcdir
1539    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1540esac
1541ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1542
1543    cd "$ac_dir" || { ac_status=$?; continue; }
1544    # Check for guested configure.
1545    if test -f "$ac_srcdir/configure.gnu"; then
1546      echo &&
1547      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1548    elif test -f "$ac_srcdir/configure"; then
1549      echo &&
1550      $SHELL "$ac_srcdir/configure" --help=recursive
1551    else
1552      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1553    fi || ac_status=$?
1554    cd "$ac_pwd" || { ac_status=$?; break; }
1555  done
1556fi
1557
1558test -n "$ac_init_help" && exit $ac_status
1559if $ac_init_version; then
1560  cat <<\_ACEOF
1561xf86-video-ast configure 1.0.1
1562generated by GNU Autoconf 2.69
1563
1564Copyright (C) 2012 Free Software Foundation, Inc.
1565This configure script is free software; the Free Software Foundation
1566gives unlimited permission to copy, distribute and modify it.
1567_ACEOF
1568  exit
1569fi
1570
1571## ------------------------ ##
1572## Autoconf initialization. ##
1573## ------------------------ ##
1574
1575# ac_fn_c_try_compile LINENO
1576# --------------------------
1577# Try to compile conftest.$ac_ext, and return whether this succeeded.
1578ac_fn_c_try_compile ()
1579{
1580  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581  rm -f conftest.$ac_objext
1582  if { { ac_try="$ac_compile"
1583case "(($ac_try" in
1584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585  *) ac_try_echo=$ac_try;;
1586esac
1587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588$as_echo "$ac_try_echo"; } >&5
1589  (eval "$ac_compile") 2>conftest.err
1590  ac_status=$?
1591  if test -s conftest.err; then
1592    grep -v '^ *+' conftest.err >conftest.er1
1593    cat conftest.er1 >&5
1594    mv -f conftest.er1 conftest.err
1595  fi
1596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597  test $ac_status = 0; } && {
1598	 test -z "$ac_c_werror_flag" ||
1599	 test ! -s conftest.err
1600       } && test -s conftest.$ac_objext; then :
1601  ac_retval=0
1602else
1603  $as_echo "$as_me: failed program was:" >&5
1604sed 's/^/| /' conftest.$ac_ext >&5
1605
1606	ac_retval=1
1607fi
1608  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609  as_fn_set_status $ac_retval
1610
1611} # ac_fn_c_try_compile
1612
1613# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1614# ---------------------------------------------
1615# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1616# accordingly.
1617ac_fn_c_check_decl ()
1618{
1619  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620  as_decl_name=`echo $2|sed 's/ *(.*//'`
1621  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1622  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1623$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1624if eval \${$3+:} false; then :
1625  $as_echo_n "(cached) " >&6
1626else
1627  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1628/* end confdefs.h.  */
1629$4
1630int
1631main ()
1632{
1633#ifndef $as_decl_name
1634#ifdef __cplusplus
1635  (void) $as_decl_use;
1636#else
1637  (void) $as_decl_name;
1638#endif
1639#endif
1640
1641  ;
1642  return 0;
1643}
1644_ACEOF
1645if ac_fn_c_try_compile "$LINENO"; then :
1646  eval "$3=yes"
1647else
1648  eval "$3=no"
1649fi
1650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1651fi
1652eval ac_res=\$$3
1653	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654$as_echo "$ac_res" >&6; }
1655  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656
1657} # ac_fn_c_check_decl
1658
1659# ac_fn_c_try_cpp LINENO
1660# ----------------------
1661# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1662ac_fn_c_try_cpp ()
1663{
1664  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665  if { { ac_try="$ac_cpp conftest.$ac_ext"
1666case "(($ac_try" in
1667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668  *) ac_try_echo=$ac_try;;
1669esac
1670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671$as_echo "$ac_try_echo"; } >&5
1672  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1673  ac_status=$?
1674  if test -s conftest.err; then
1675    grep -v '^ *+' conftest.err >conftest.er1
1676    cat conftest.er1 >&5
1677    mv -f conftest.er1 conftest.err
1678  fi
1679  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680  test $ac_status = 0; } > conftest.i && {
1681	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1682	 test ! -s conftest.err
1683       }; then :
1684  ac_retval=0
1685else
1686  $as_echo "$as_me: failed program was:" >&5
1687sed 's/^/| /' conftest.$ac_ext >&5
1688
1689    ac_retval=1
1690fi
1691  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692  as_fn_set_status $ac_retval
1693
1694} # ac_fn_c_try_cpp
1695
1696# ac_fn_c_try_run LINENO
1697# ----------------------
1698# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1699# that executables *can* be run.
1700ac_fn_c_try_run ()
1701{
1702  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703  if { { ac_try="$ac_link"
1704case "(($ac_try" in
1705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706  *) ac_try_echo=$ac_try;;
1707esac
1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709$as_echo "$ac_try_echo"; } >&5
1710  (eval "$ac_link") 2>&5
1711  ac_status=$?
1712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1714  { { case "(($ac_try" in
1715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716  *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719$as_echo "$ac_try_echo"; } >&5
1720  (eval "$ac_try") 2>&5
1721  ac_status=$?
1722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723  test $ac_status = 0; }; }; then :
1724  ac_retval=0
1725else
1726  $as_echo "$as_me: program exited with status $ac_status" >&5
1727       $as_echo "$as_me: failed program was:" >&5
1728sed 's/^/| /' conftest.$ac_ext >&5
1729
1730       ac_retval=$ac_status
1731fi
1732  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1733  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734  as_fn_set_status $ac_retval
1735
1736} # ac_fn_c_try_run
1737
1738# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1739# -------------------------------------------------------
1740# Tests whether HEADER exists and can be compiled using the include files in
1741# INCLUDES, setting the cache variable VAR accordingly.
1742ac_fn_c_check_header_compile ()
1743{
1744  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1746$as_echo_n "checking for $2... " >&6; }
1747if eval \${$3+:} false; then :
1748  $as_echo_n "(cached) " >&6
1749else
1750  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751/* end confdefs.h.  */
1752$4
1753#include <$2>
1754_ACEOF
1755if ac_fn_c_try_compile "$LINENO"; then :
1756  eval "$3=yes"
1757else
1758  eval "$3=no"
1759fi
1760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1761fi
1762eval ac_res=\$$3
1763	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1764$as_echo "$ac_res" >&6; }
1765  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766
1767} # ac_fn_c_check_header_compile
1768
1769# ac_fn_c_try_link LINENO
1770# -----------------------
1771# Try to link conftest.$ac_ext, and return whether this succeeded.
1772ac_fn_c_try_link ()
1773{
1774  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775  rm -f conftest.$ac_objext conftest$ac_exeext
1776  if { { ac_try="$ac_link"
1777case "(($ac_try" in
1778  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779  *) ac_try_echo=$ac_try;;
1780esac
1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782$as_echo "$ac_try_echo"; } >&5
1783  (eval "$ac_link") 2>conftest.err
1784  ac_status=$?
1785  if test -s conftest.err; then
1786    grep -v '^ *+' conftest.err >conftest.er1
1787    cat conftest.er1 >&5
1788    mv -f conftest.er1 conftest.err
1789  fi
1790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1791  test $ac_status = 0; } && {
1792	 test -z "$ac_c_werror_flag" ||
1793	 test ! -s conftest.err
1794       } && test -s conftest$ac_exeext && {
1795	 test "$cross_compiling" = yes ||
1796	 test -x conftest$ac_exeext
1797       }; then :
1798  ac_retval=0
1799else
1800  $as_echo "$as_me: failed program was:" >&5
1801sed 's/^/| /' conftest.$ac_ext >&5
1802
1803	ac_retval=1
1804fi
1805  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1806  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1807  # interfere with the next link command; also delete a directory that is
1808  # left behind by Apple's compiler.  We do this before executing the actions.
1809  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811  as_fn_set_status $ac_retval
1812
1813} # ac_fn_c_try_link
1814
1815# ac_fn_c_check_func LINENO FUNC VAR
1816# ----------------------------------
1817# Tests whether FUNC exists, setting the cache variable VAR accordingly
1818ac_fn_c_check_func ()
1819{
1820  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822$as_echo_n "checking for $2... " >&6; }
1823if eval \${$3+:} false; then :
1824  $as_echo_n "(cached) " >&6
1825else
1826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827/* end confdefs.h.  */
1828/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1829   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1830#define $2 innocuous_$2
1831
1832/* System header to define __stub macros and hopefully few prototypes,
1833    which can conflict with char $2 (); below.
1834    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1835    <limits.h> exists even on freestanding compilers.  */
1836
1837#ifdef __STDC__
1838# include <limits.h>
1839#else
1840# include <assert.h>
1841#endif
1842
1843#undef $2
1844
1845/* Override any GCC internal prototype to avoid an error.
1846   Use char because int might match the return type of a GCC
1847   builtin and then its argument prototype would still apply.  */
1848#ifdef __cplusplus
1849extern "C"
1850#endif
1851char $2 ();
1852/* The GNU C library defines this for functions which it implements
1853    to always fail with ENOSYS.  Some functions are actually named
1854    something starting with __ and the normal name is an alias.  */
1855#if defined __stub_$2 || defined __stub___$2
1856choke me
1857#endif
1858
1859int
1860main ()
1861{
1862return $2 ();
1863  ;
1864  return 0;
1865}
1866_ACEOF
1867if ac_fn_c_try_link "$LINENO"; then :
1868  eval "$3=yes"
1869else
1870  eval "$3=no"
1871fi
1872rm -f core conftest.err conftest.$ac_objext \
1873    conftest$ac_exeext conftest.$ac_ext
1874fi
1875eval ac_res=\$$3
1876	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877$as_echo "$ac_res" >&6; }
1878  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1879
1880} # ac_fn_c_check_func
1881
1882# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1883# -------------------------------------------------------
1884# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1885# the include files in INCLUDES and setting the cache variable VAR
1886# accordingly.
1887ac_fn_c_check_header_mongrel ()
1888{
1889  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890  if eval \${$3+:} false; then :
1891  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892$as_echo_n "checking for $2... " >&6; }
1893if eval \${$3+:} false; then :
1894  $as_echo_n "(cached) " >&6
1895fi
1896eval ac_res=\$$3
1897	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898$as_echo "$ac_res" >&6; }
1899else
1900  # Is the header compilable?
1901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1902$as_echo_n "checking $2 usability... " >&6; }
1903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904/* end confdefs.h.  */
1905$4
1906#include <$2>
1907_ACEOF
1908if ac_fn_c_try_compile "$LINENO"; then :
1909  ac_header_compiler=yes
1910else
1911  ac_header_compiler=no
1912fi
1913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1915$as_echo "$ac_header_compiler" >&6; }
1916
1917# Is the header present?
1918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1919$as_echo_n "checking $2 presence... " >&6; }
1920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921/* end confdefs.h.  */
1922#include <$2>
1923_ACEOF
1924if ac_fn_c_try_cpp "$LINENO"; then :
1925  ac_header_preproc=yes
1926else
1927  ac_header_preproc=no
1928fi
1929rm -f conftest.err conftest.i conftest.$ac_ext
1930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1931$as_echo "$ac_header_preproc" >&6; }
1932
1933# So?  What about this header?
1934case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1935  yes:no: )
1936    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1937$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1938    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1939$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1940    ;;
1941  no:yes:* )
1942    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1943$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1944    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1945$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1946    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1947$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1948    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1949$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1950    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1951$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1952( $as_echo "## ---------------------------------------------------------------------- ##
1953## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1954## ---------------------------------------------------------------------- ##"
1955     ) | sed "s/^/$as_me: WARNING:     /" >&2
1956    ;;
1957esac
1958  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959$as_echo_n "checking for $2... " >&6; }
1960if eval \${$3+:} false; then :
1961  $as_echo_n "(cached) " >&6
1962else
1963  eval "$3=\$ac_header_compiler"
1964fi
1965eval ac_res=\$$3
1966	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967$as_echo "$ac_res" >&6; }
1968fi
1969  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970
1971} # ac_fn_c_check_header_mongrel
1972cat >config.log <<_ACEOF
1973This file contains any messages produced by compilers while
1974running configure, to aid debugging if configure makes a mistake.
1975
1976It was created by xf86-video-ast $as_me 1.0.1, which was
1977generated by GNU Autoconf 2.69.  Invocation command line was
1978
1979  $ $0 $@
1980
1981_ACEOF
1982exec 5>>config.log
1983{
1984cat <<_ASUNAME
1985## --------- ##
1986## Platform. ##
1987## --------- ##
1988
1989hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1990uname -m = `(uname -m) 2>/dev/null || echo unknown`
1991uname -r = `(uname -r) 2>/dev/null || echo unknown`
1992uname -s = `(uname -s) 2>/dev/null || echo unknown`
1993uname -v = `(uname -v) 2>/dev/null || echo unknown`
1994
1995/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1996/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1997
1998/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1999/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2000/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2001/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2002/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2003/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2004/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2005
2006_ASUNAME
2007
2008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009for as_dir in $PATH
2010do
2011  IFS=$as_save_IFS
2012  test -z "$as_dir" && as_dir=.
2013    $as_echo "PATH: $as_dir"
2014  done
2015IFS=$as_save_IFS
2016
2017} >&5
2018
2019cat >&5 <<_ACEOF
2020
2021
2022## ----------- ##
2023## Core tests. ##
2024## ----------- ##
2025
2026_ACEOF
2027
2028
2029# Keep a trace of the command line.
2030# Strip out --no-create and --no-recursion so they do not pile up.
2031# Strip out --silent because we don't want to record it for future runs.
2032# Also quote any args containing shell meta-characters.
2033# Make two passes to allow for proper duplicate-argument suppression.
2034ac_configure_args=
2035ac_configure_args0=
2036ac_configure_args1=
2037ac_must_keep_next=false
2038for ac_pass in 1 2
2039do
2040  for ac_arg
2041  do
2042    case $ac_arg in
2043    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2044    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2045    | -silent | --silent | --silen | --sile | --sil)
2046      continue ;;
2047    *\'*)
2048      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2049    esac
2050    case $ac_pass in
2051    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2052    2)
2053      as_fn_append ac_configure_args1 " '$ac_arg'"
2054      if test $ac_must_keep_next = true; then
2055	ac_must_keep_next=false # Got value, back to normal.
2056      else
2057	case $ac_arg in
2058	  *=* | --config-cache | -C | -disable-* | --disable-* \
2059	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2060	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2061	  | -with-* | --with-* | -without-* | --without-* | --x)
2062	    case "$ac_configure_args0 " in
2063	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2064	    esac
2065	    ;;
2066	  -* ) ac_must_keep_next=true ;;
2067	esac
2068      fi
2069      as_fn_append ac_configure_args " '$ac_arg'"
2070      ;;
2071    esac
2072  done
2073done
2074{ ac_configure_args0=; unset ac_configure_args0;}
2075{ ac_configure_args1=; unset ac_configure_args1;}
2076
2077# When interrupted or exit'd, cleanup temporary files, and complete
2078# config.log.  We remove comments because anyway the quotes in there
2079# would cause problems or look ugly.
2080# WARNING: Use '\'' to represent an apostrophe within the trap.
2081# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2082trap 'exit_status=$?
2083  # Save into config.log some information that might help in debugging.
2084  {
2085    echo
2086
2087    $as_echo "## ---------------- ##
2088## Cache variables. ##
2089## ---------------- ##"
2090    echo
2091    # The following way of writing the cache mishandles newlines in values,
2092(
2093  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2094    eval ac_val=\$$ac_var
2095    case $ac_val in #(
2096    *${as_nl}*)
2097      case $ac_var in #(
2098      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2099$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2100      esac
2101      case $ac_var in #(
2102      _ | IFS | as_nl) ;; #(
2103      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2104      *) { eval $ac_var=; unset $ac_var;} ;;
2105      esac ;;
2106    esac
2107  done
2108  (set) 2>&1 |
2109    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2110    *${as_nl}ac_space=\ *)
2111      sed -n \
2112	"s/'\''/'\''\\\\'\'''\''/g;
2113	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2114      ;; #(
2115    *)
2116      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2117      ;;
2118    esac |
2119    sort
2120)
2121    echo
2122
2123    $as_echo "## ----------------- ##
2124## Output variables. ##
2125## ----------------- ##"
2126    echo
2127    for ac_var in $ac_subst_vars
2128    do
2129      eval ac_val=\$$ac_var
2130      case $ac_val in
2131      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2132      esac
2133      $as_echo "$ac_var='\''$ac_val'\''"
2134    done | sort
2135    echo
2136
2137    if test -n "$ac_subst_files"; then
2138      $as_echo "## ------------------- ##
2139## File substitutions. ##
2140## ------------------- ##"
2141      echo
2142      for ac_var in $ac_subst_files
2143      do
2144	eval ac_val=\$$ac_var
2145	case $ac_val in
2146	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2147	esac
2148	$as_echo "$ac_var='\''$ac_val'\''"
2149      done | sort
2150      echo
2151    fi
2152
2153    if test -s confdefs.h; then
2154      $as_echo "## ----------- ##
2155## confdefs.h. ##
2156## ----------- ##"
2157      echo
2158      cat confdefs.h
2159      echo
2160    fi
2161    test "$ac_signal" != 0 &&
2162      $as_echo "$as_me: caught signal $ac_signal"
2163    $as_echo "$as_me: exit $exit_status"
2164  } >&5
2165  rm -f core *.core core.conftest.* &&
2166    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2167    exit $exit_status
2168' 0
2169for ac_signal in 1 2 13 15; do
2170  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2171done
2172ac_signal=0
2173
2174# confdefs.h avoids OS command line length limits that DEFS can exceed.
2175rm -f -r conftest* confdefs.h
2176
2177$as_echo "/* confdefs.h */" > confdefs.h
2178
2179# Predefined preprocessor variables.
2180
2181cat >>confdefs.h <<_ACEOF
2182#define PACKAGE_NAME "$PACKAGE_NAME"
2183_ACEOF
2184
2185cat >>confdefs.h <<_ACEOF
2186#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2187_ACEOF
2188
2189cat >>confdefs.h <<_ACEOF
2190#define PACKAGE_VERSION "$PACKAGE_VERSION"
2191_ACEOF
2192
2193cat >>confdefs.h <<_ACEOF
2194#define PACKAGE_STRING "$PACKAGE_STRING"
2195_ACEOF
2196
2197cat >>confdefs.h <<_ACEOF
2198#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2199_ACEOF
2200
2201cat >>confdefs.h <<_ACEOF
2202#define PACKAGE_URL "$PACKAGE_URL"
2203_ACEOF
2204
2205
2206# Let the site file select an alternate cache file if it wants to.
2207# Prefer an explicitly selected file to automatically selected ones.
2208ac_site_file1=NONE
2209ac_site_file2=NONE
2210if test -n "$CONFIG_SITE"; then
2211  # We do not want a PATH search for config.site.
2212  case $CONFIG_SITE in #((
2213    -*)  ac_site_file1=./$CONFIG_SITE;;
2214    */*) ac_site_file1=$CONFIG_SITE;;
2215    *)   ac_site_file1=./$CONFIG_SITE;;
2216  esac
2217elif test "x$prefix" != xNONE; then
2218  ac_site_file1=$prefix/share/config.site
2219  ac_site_file2=$prefix/etc/config.site
2220else
2221  ac_site_file1=$ac_default_prefix/share/config.site
2222  ac_site_file2=$ac_default_prefix/etc/config.site
2223fi
2224for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2225do
2226  test "x$ac_site_file" = xNONE && continue
2227  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2228    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2229$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2230    sed 's/^/| /' "$ac_site_file" >&5
2231    . "$ac_site_file" \
2232      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2234as_fn_error $? "failed to load site script $ac_site_file
2235See \`config.log' for more details" "$LINENO" 5; }
2236  fi
2237done
2238
2239if test -r "$cache_file"; then
2240  # Some versions of bash will fail to source /dev/null (special files
2241  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2242  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2243    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2244$as_echo "$as_me: loading cache $cache_file" >&6;}
2245    case $cache_file in
2246      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2247      *)                      . "./$cache_file";;
2248    esac
2249  fi
2250else
2251  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2252$as_echo "$as_me: creating cache $cache_file" >&6;}
2253  >$cache_file
2254fi
2255
2256# Check that the precious variables saved in the cache have kept the same
2257# value.
2258ac_cache_corrupted=false
2259for ac_var in $ac_precious_vars; do
2260  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2261  eval ac_new_set=\$ac_env_${ac_var}_set
2262  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2263  eval ac_new_val=\$ac_env_${ac_var}_value
2264  case $ac_old_set,$ac_new_set in
2265    set,)
2266      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2267$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2268      ac_cache_corrupted=: ;;
2269    ,set)
2270      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2271$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2272      ac_cache_corrupted=: ;;
2273    ,);;
2274    *)
2275      if test "x$ac_old_val" != "x$ac_new_val"; then
2276	# differences in whitespace do not lead to failure.
2277	ac_old_val_w=`echo x $ac_old_val`
2278	ac_new_val_w=`echo x $ac_new_val`
2279	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2280	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2281$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2282	  ac_cache_corrupted=:
2283	else
2284	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2285$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2286	  eval $ac_var=\$ac_old_val
2287	fi
2288	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2289$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2290	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2291$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2292      fi;;
2293  esac
2294  # Pass precious variables to config.status.
2295  if test "$ac_new_set" = set; then
2296    case $ac_new_val in
2297    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2298    *) ac_arg=$ac_var=$ac_new_val ;;
2299    esac
2300    case " $ac_configure_args " in
2301      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2302      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2303    esac
2304  fi
2305done
2306if $ac_cache_corrupted; then
2307  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2309  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2310$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2311  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2312fi
2313## -------------------- ##
2314## Main body of script. ##
2315## -------------------- ##
2316
2317ac_ext=c
2318ac_cpp='$CPP $CPPFLAGS'
2319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321ac_compiler_gnu=$ac_cv_c_compiler_gnu
2322
2323
2324
2325ac_config_headers="$ac_config_headers config.h"
2326
2327ac_aux_dir=
2328for ac_dir in . "$srcdir"/.; do
2329  if test -f "$ac_dir/install-sh"; then
2330    ac_aux_dir=$ac_dir
2331    ac_install_sh="$ac_aux_dir/install-sh -c"
2332    break
2333  elif test -f "$ac_dir/install.sh"; then
2334    ac_aux_dir=$ac_dir
2335    ac_install_sh="$ac_aux_dir/install.sh -c"
2336    break
2337  elif test -f "$ac_dir/shtool"; then
2338    ac_aux_dir=$ac_dir
2339    ac_install_sh="$ac_aux_dir/shtool install -c"
2340    break
2341  fi
2342done
2343if test -z "$ac_aux_dir"; then
2344  as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5
2345fi
2346
2347# These three variables are undocumented and unsupported,
2348# and are intended to be withdrawn in a future Autoconf release.
2349# They can cause serious problems if a builder's source tree is in a directory
2350# whose full name contains unusual characters.
2351ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2352ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2353ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2354
2355
2356
2357# Initialize Automake
2358am__api_version='1.13'
2359
2360# Find a good install program.  We prefer a C program (faster),
2361# so one script is as good as another.  But avoid the broken or
2362# incompatible versions:
2363# SysV /etc/install, /usr/sbin/install
2364# SunOS /usr/etc/install
2365# IRIX /sbin/install
2366# AIX /bin/install
2367# AmigaOS /C/install, which installs bootblocks on floppy discs
2368# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2369# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2370# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2371# OS/2's system install, which has a completely different semantic
2372# ./install, which can be erroneously created by make from ./install.sh.
2373# Reject install programs that cannot install multiple files.
2374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2375$as_echo_n "checking for a BSD-compatible install... " >&6; }
2376if test -z "$INSTALL"; then
2377if ${ac_cv_path_install+:} false; then :
2378  $as_echo_n "(cached) " >&6
2379else
2380  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381for as_dir in $PATH
2382do
2383  IFS=$as_save_IFS
2384  test -z "$as_dir" && as_dir=.
2385    # Account for people who put trailing slashes in PATH elements.
2386case $as_dir/ in #((
2387  ./ | .// | /[cC]/* | \
2388  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2389  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2390  /usr/ucb/* ) ;;
2391  *)
2392    # OSF1 and SCO ODT 3.0 have their own names for install.
2393    # Don't use installbsd from OSF since it installs stuff as root
2394    # by default.
2395    for ac_prog in ginstall scoinst install; do
2396      for ac_exec_ext in '' $ac_executable_extensions; do
2397	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2398	  if test $ac_prog = install &&
2399	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2400	    # AIX install.  It has an incompatible calling convention.
2401	    :
2402	  elif test $ac_prog = install &&
2403	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2404	    # program-specific install script used by HP pwplus--don't use.
2405	    :
2406	  else
2407	    rm -rf conftest.one conftest.two conftest.dir
2408	    echo one > conftest.one
2409	    echo two > conftest.two
2410	    mkdir conftest.dir
2411	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2412	      test -s conftest.one && test -s conftest.two &&
2413	      test -s conftest.dir/conftest.one &&
2414	      test -s conftest.dir/conftest.two
2415	    then
2416	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2417	      break 3
2418	    fi
2419	  fi
2420	fi
2421      done
2422    done
2423    ;;
2424esac
2425
2426  done
2427IFS=$as_save_IFS
2428
2429rm -rf conftest.one conftest.two conftest.dir
2430
2431fi
2432  if test "${ac_cv_path_install+set}" = set; then
2433    INSTALL=$ac_cv_path_install
2434  else
2435    # As a last resort, use the slow shell script.  Don't cache a
2436    # value for INSTALL within a source directory, because that will
2437    # break other packages using the cache if that directory is
2438    # removed, or if the value is a relative name.
2439    INSTALL=$ac_install_sh
2440  fi
2441fi
2442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2443$as_echo "$INSTALL" >&6; }
2444
2445# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2446# It thinks the first close brace ends the variable substitution.
2447test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2448
2449test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2450
2451test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2452
2453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2454$as_echo_n "checking whether build environment is sane... " >&6; }
2455# Reject unsafe characters in $srcdir or the absolute working directory
2456# name.  Accept space and tab only in the latter.
2457am_lf='
2458'
2459case `pwd` in
2460  *[\\\"\#\$\&\'\`$am_lf]*)
2461    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2462esac
2463case $srcdir in
2464  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2465    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2466esac
2467
2468# Do 'set' in a subshell so we don't clobber the current shell's
2469# arguments.  Must try -L first in case configure is actually a
2470# symlink; some systems play weird games with the mod time of symlinks
2471# (eg FreeBSD returns the mod time of the symlink's containing
2472# directory).
2473if (
2474   am_has_slept=no
2475   for am_try in 1 2; do
2476     echo "timestamp, slept: $am_has_slept" > conftest.file
2477     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2478     if test "$*" = "X"; then
2479	# -L didn't work.
2480	set X `ls -t "$srcdir/configure" conftest.file`
2481     fi
2482     if test "$*" != "X $srcdir/configure conftest.file" \
2483	&& test "$*" != "X conftest.file $srcdir/configure"; then
2484
2485	# If neither matched, then we have a broken ls.  This can happen
2486	# if, for instance, CONFIG_SHELL is bash and it inherits a
2487	# broken ls alias from the environment.  This has actually
2488	# happened.  Such a system could not be considered "sane".
2489	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2490  alias in your environment" "$LINENO" 5
2491     fi
2492     if test "$2" = conftest.file || test $am_try -eq 2; then
2493       break
2494     fi
2495     # Just in case.
2496     sleep 1
2497     am_has_slept=yes
2498   done
2499   test "$2" = conftest.file
2500   )
2501then
2502   # Ok.
2503   :
2504else
2505   as_fn_error $? "newly created file is older than distributed files!
2506Check your system clock" "$LINENO" 5
2507fi
2508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2509$as_echo "yes" >&6; }
2510# If we didn't sleep, we still need to ensure time stamps of config.status and
2511# generated files are strictly newer.
2512am_sleep_pid=
2513if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2514  ( sleep 1 ) &
2515  am_sleep_pid=$!
2516fi
2517
2518rm -f conftest.file
2519
2520test "$program_prefix" != NONE &&
2521  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2522# Use a double $ so make ignores it.
2523test "$program_suffix" != NONE &&
2524  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2525# Double any \ or $.
2526# By default was `s,x,x', remove it if useless.
2527ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2528program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2529
2530# expand $ac_aux_dir to an absolute path
2531am_aux_dir=`cd $ac_aux_dir && pwd`
2532
2533if test x"${MISSING+set}" != xset; then
2534  case $am_aux_dir in
2535  *\ * | *\	*)
2536    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2537  *)
2538    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2539  esac
2540fi
2541# Use eval to expand $SHELL
2542if eval "$MISSING --is-lightweight"; then
2543  am_missing_run="$MISSING "
2544else
2545  am_missing_run=
2546  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2547$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2548fi
2549
2550if test x"${install_sh}" != xset; then
2551  case $am_aux_dir in
2552  *\ * | *\	*)
2553    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2554  *)
2555    install_sh="\${SHELL} $am_aux_dir/install-sh"
2556  esac
2557fi
2558
2559# Installed binaries are usually stripped using 'strip' when the user
2560# run "make install-strip".  However 'strip' might not be the right
2561# tool to use in cross-compilation environments, therefore Automake
2562# will honor the 'STRIP' environment variable to overrule this program.
2563if test "$cross_compiling" != no; then
2564  if test -n "$ac_tool_prefix"; then
2565  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2566set dummy ${ac_tool_prefix}strip; ac_word=$2
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568$as_echo_n "checking for $ac_word... " >&6; }
2569if ${ac_cv_prog_STRIP+:} false; then :
2570  $as_echo_n "(cached) " >&6
2571else
2572  if test -n "$STRIP"; then
2573  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2574else
2575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576for as_dir in $PATH
2577do
2578  IFS=$as_save_IFS
2579  test -z "$as_dir" && as_dir=.
2580    for ac_exec_ext in '' $ac_executable_extensions; do
2581  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2582    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2583    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2584    break 2
2585  fi
2586done
2587  done
2588IFS=$as_save_IFS
2589
2590fi
2591fi
2592STRIP=$ac_cv_prog_STRIP
2593if test -n "$STRIP"; then
2594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2595$as_echo "$STRIP" >&6; }
2596else
2597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598$as_echo "no" >&6; }
2599fi
2600
2601
2602fi
2603if test -z "$ac_cv_prog_STRIP"; then
2604  ac_ct_STRIP=$STRIP
2605  # Extract the first word of "strip", so it can be a program name with args.
2606set dummy strip; ac_word=$2
2607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608$as_echo_n "checking for $ac_word... " >&6; }
2609if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2610  $as_echo_n "(cached) " >&6
2611else
2612  if test -n "$ac_ct_STRIP"; then
2613  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2614else
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618  IFS=$as_save_IFS
2619  test -z "$as_dir" && as_dir=.
2620    for ac_exec_ext in '' $ac_executable_extensions; do
2621  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2622    ac_cv_prog_ac_ct_STRIP="strip"
2623    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2624    break 2
2625  fi
2626done
2627  done
2628IFS=$as_save_IFS
2629
2630fi
2631fi
2632ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2633if test -n "$ac_ct_STRIP"; then
2634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2635$as_echo "$ac_ct_STRIP" >&6; }
2636else
2637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2638$as_echo "no" >&6; }
2639fi
2640
2641  if test "x$ac_ct_STRIP" = x; then
2642    STRIP=":"
2643  else
2644    case $cross_compiling:$ac_tool_warned in
2645yes:)
2646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2648ac_tool_warned=yes ;;
2649esac
2650    STRIP=$ac_ct_STRIP
2651  fi
2652else
2653  STRIP="$ac_cv_prog_STRIP"
2654fi
2655
2656fi
2657INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2658
2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2660$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2661if test -z "$MKDIR_P"; then
2662  if ${ac_cv_path_mkdir+:} false; then :
2663  $as_echo_n "(cached) " >&6
2664else
2665  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2667do
2668  IFS=$as_save_IFS
2669  test -z "$as_dir" && as_dir=.
2670    for ac_prog in mkdir gmkdir; do
2671	 for ac_exec_ext in '' $ac_executable_extensions; do
2672	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2673	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2674	     'mkdir (GNU coreutils) '* | \
2675	     'mkdir (coreutils) '* | \
2676	     'mkdir (fileutils) '4.1*)
2677	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2678	       break 3;;
2679	   esac
2680	 done
2681       done
2682  done
2683IFS=$as_save_IFS
2684
2685fi
2686
2687  test -d ./--version && rmdir ./--version
2688  if test "${ac_cv_path_mkdir+set}" = set; then
2689    MKDIR_P="$ac_cv_path_mkdir -p"
2690  else
2691    # As a last resort, use the slow shell script.  Don't cache a
2692    # value for MKDIR_P within a source directory, because that will
2693    # break other packages using the cache if that directory is
2694    # removed, or if the value is a relative name.
2695    MKDIR_P="$ac_install_sh -d"
2696  fi
2697fi
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2699$as_echo "$MKDIR_P" >&6; }
2700
2701for ac_prog in gawk mawk nawk awk
2702do
2703  # Extract the first word of "$ac_prog", so it can be a program name with args.
2704set dummy $ac_prog; ac_word=$2
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2706$as_echo_n "checking for $ac_word... " >&6; }
2707if ${ac_cv_prog_AWK+:} false; then :
2708  $as_echo_n "(cached) " >&6
2709else
2710  if test -n "$AWK"; then
2711  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2712else
2713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714for as_dir in $PATH
2715do
2716  IFS=$as_save_IFS
2717  test -z "$as_dir" && as_dir=.
2718    for ac_exec_ext in '' $ac_executable_extensions; do
2719  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2720    ac_cv_prog_AWK="$ac_prog"
2721    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2722    break 2
2723  fi
2724done
2725  done
2726IFS=$as_save_IFS
2727
2728fi
2729fi
2730AWK=$ac_cv_prog_AWK
2731if test -n "$AWK"; then
2732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2733$as_echo "$AWK" >&6; }
2734else
2735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736$as_echo "no" >&6; }
2737fi
2738
2739
2740  test -n "$AWK" && break
2741done
2742
2743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2744$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2745set x ${MAKE-make}
2746ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2747if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2748  $as_echo_n "(cached) " >&6
2749else
2750  cat >conftest.make <<\_ACEOF
2751SHELL = /bin/sh
2752all:
2753	@echo '@@@%%%=$(MAKE)=@@@%%%'
2754_ACEOF
2755# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2756case `${MAKE-make} -f conftest.make 2>/dev/null` in
2757  *@@@%%%=?*=@@@%%%*)
2758    eval ac_cv_prog_make_${ac_make}_set=yes;;
2759  *)
2760    eval ac_cv_prog_make_${ac_make}_set=no;;
2761esac
2762rm -f conftest.make
2763fi
2764if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2766$as_echo "yes" >&6; }
2767  SET_MAKE=
2768else
2769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2770$as_echo "no" >&6; }
2771  SET_MAKE="MAKE=${MAKE-make}"
2772fi
2773
2774rm -rf .tst 2>/dev/null
2775mkdir .tst 2>/dev/null
2776if test -d .tst; then
2777  am__leading_dot=.
2778else
2779  am__leading_dot=_
2780fi
2781rmdir .tst 2>/dev/null
2782
2783# Check whether --enable-silent-rules was given.
2784if test "${enable_silent_rules+set}" = set; then :
2785  enableval=$enable_silent_rules;
2786fi
2787
2788case $enable_silent_rules in # (((
2789  yes) AM_DEFAULT_VERBOSITY=0;;
2790   no) AM_DEFAULT_VERBOSITY=1;;
2791    *) AM_DEFAULT_VERBOSITY=1;;
2792esac
2793am_make=${MAKE-make}
2794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2795$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2796if ${am_cv_make_support_nested_variables+:} false; then :
2797  $as_echo_n "(cached) " >&6
2798else
2799  if $as_echo 'TRUE=$(BAR$(V))
2800BAR0=false
2801BAR1=true
2802V=1
2803am__doit:
2804	@$(TRUE)
2805.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2806  am_cv_make_support_nested_variables=yes
2807else
2808  am_cv_make_support_nested_variables=no
2809fi
2810fi
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2812$as_echo "$am_cv_make_support_nested_variables" >&6; }
2813if test $am_cv_make_support_nested_variables = yes; then
2814    AM_V='$(V)'
2815  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2816else
2817  AM_V=$AM_DEFAULT_VERBOSITY
2818  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2819fi
2820AM_BACKSLASH='\'
2821
2822if test "`cd $srcdir && pwd`" != "`pwd`"; then
2823  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2824  # is not polluted with repeated "-I."
2825  am__isrc=' -I$(srcdir)'
2826  # test to see if srcdir already configured
2827  if test -f $srcdir/config.status; then
2828    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2829  fi
2830fi
2831
2832# test whether we have cygpath
2833if test -z "$CYGPATH_W"; then
2834  if (cygpath --version) >/dev/null 2>/dev/null; then
2835    CYGPATH_W='cygpath -w'
2836  else
2837    CYGPATH_W=echo
2838  fi
2839fi
2840
2841
2842# Define the identity of the package.
2843 PACKAGE='xf86-video-ast'
2844 VERSION='1.0.1'
2845
2846
2847cat >>confdefs.h <<_ACEOF
2848#define PACKAGE "$PACKAGE"
2849_ACEOF
2850
2851
2852cat >>confdefs.h <<_ACEOF
2853#define VERSION "$VERSION"
2854_ACEOF
2855
2856# Some tools Automake needs.
2857
2858ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2859
2860
2861AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2862
2863
2864AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2865
2866
2867AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2868
2869
2870MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2871
2872# For better backward compatibility.  To be removed once Automake 1.9.x
2873# dies out for good.  For more background, see:
2874# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2875# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2876mkdir_p='$(MKDIR_P)'
2877
2878# We need awk for the "check" target.  The system "awk" is bad on
2879# some platforms.
2880# Always define AMTAR for backward compatibility.  Yes, it's still used
2881# in the wild :-(  We should find a proper way to deprecate it ...
2882AMTAR='$${TAR-tar}'
2883
2884
2885# We'll loop over all known methods to create a tar archive until one works.
2886_am_tools='gnutar  pax cpio none'
2887
2888am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2889
2890
2891
2892
2893
2894
2895
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2897$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2898    # Check whether --enable-maintainer-mode was given.
2899if test "${enable_maintainer_mode+set}" = set; then :
2900  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2901else
2902  USE_MAINTAINER_MODE=no
2903fi
2904
2905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2906$as_echo "$USE_MAINTAINER_MODE" >&6; }
2907   if test $USE_MAINTAINER_MODE = yes; then
2908  MAINTAINER_MODE_TRUE=
2909  MAINTAINER_MODE_FALSE='#'
2910else
2911  MAINTAINER_MODE_TRUE='#'
2912  MAINTAINER_MODE_FALSE=
2913fi
2914
2915  MAINT=$MAINTAINER_MODE_TRUE
2916
2917
2918
2919# Require xorg-macros: XORG_DEFAULT_OPTIONS
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931DEPDIR="${am__leading_dot}deps"
2932
2933ac_config_commands="$ac_config_commands depfiles"
2934
2935
2936am_make=${MAKE-make}
2937cat > confinc << 'END'
2938am__doit:
2939	@echo this is the am__doit target
2940.PHONY: am__doit
2941END
2942# If we don't find an include directive, just comment out the code.
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2944$as_echo_n "checking for style of include used by $am_make... " >&6; }
2945am__include="#"
2946am__quote=
2947_am_result=none
2948# First try GNU make style include.
2949echo "include confinc" > confmf
2950# Ignore all kinds of additional output from 'make'.
2951case `$am_make -s -f confmf 2> /dev/null` in #(
2952*the\ am__doit\ target*)
2953  am__include=include
2954  am__quote=
2955  _am_result=GNU
2956  ;;
2957esac
2958# Now try BSD make style include.
2959if test "$am__include" = "#"; then
2960   echo '.include "confinc"' > confmf
2961   case `$am_make -s -f confmf 2> /dev/null` in #(
2962   *the\ am__doit\ target*)
2963     am__include=.include
2964     am__quote="\""
2965     _am_result=BSD
2966     ;;
2967   esac
2968fi
2969
2970
2971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2972$as_echo "$_am_result" >&6; }
2973rm -f confinc confmf
2974
2975# Check whether --enable-dependency-tracking was given.
2976if test "${enable_dependency_tracking+set}" = set; then :
2977  enableval=$enable_dependency_tracking;
2978fi
2979
2980if test "x$enable_dependency_tracking" != xno; then
2981  am_depcomp="$ac_aux_dir/depcomp"
2982  AMDEPBACKSLASH='\'
2983  am__nodep='_no'
2984fi
2985 if test "x$enable_dependency_tracking" != xno; then
2986  AMDEP_TRUE=
2987  AMDEP_FALSE='#'
2988else
2989  AMDEP_TRUE='#'
2990  AMDEP_FALSE=
2991fi
2992
2993
2994ac_ext=c
2995ac_cpp='$CPP $CPPFLAGS'
2996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999if test -n "$ac_tool_prefix"; then
3000  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3001set dummy ${ac_tool_prefix}gcc; ac_word=$2
3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003$as_echo_n "checking for $ac_word... " >&6; }
3004if ${ac_cv_prog_CC+:} false; then :
3005  $as_echo_n "(cached) " >&6
3006else
3007  if test -n "$CC"; then
3008  ac_cv_prog_CC="$CC" # Let the user override the test.
3009else
3010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011for as_dir in $PATH
3012do
3013  IFS=$as_save_IFS
3014  test -z "$as_dir" && as_dir=.
3015    for ac_exec_ext in '' $ac_executable_extensions; do
3016  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019    break 2
3020  fi
3021done
3022  done
3023IFS=$as_save_IFS
3024
3025fi
3026fi
3027CC=$ac_cv_prog_CC
3028if test -n "$CC"; then
3029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3030$as_echo "$CC" >&6; }
3031else
3032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033$as_echo "no" >&6; }
3034fi
3035
3036
3037fi
3038if test -z "$ac_cv_prog_CC"; then
3039  ac_ct_CC=$CC
3040  # Extract the first word of "gcc", so it can be a program name with args.
3041set dummy gcc; ac_word=$2
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043$as_echo_n "checking for $ac_word... " >&6; }
3044if ${ac_cv_prog_ac_ct_CC+:} false; then :
3045  $as_echo_n "(cached) " >&6
3046else
3047  if test -n "$ac_ct_CC"; then
3048  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3049else
3050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051for as_dir in $PATH
3052do
3053  IFS=$as_save_IFS
3054  test -z "$as_dir" && as_dir=.
3055    for ac_exec_ext in '' $ac_executable_extensions; do
3056  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057    ac_cv_prog_ac_ct_CC="gcc"
3058    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059    break 2
3060  fi
3061done
3062  done
3063IFS=$as_save_IFS
3064
3065fi
3066fi
3067ac_ct_CC=$ac_cv_prog_ac_ct_CC
3068if test -n "$ac_ct_CC"; then
3069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3070$as_echo "$ac_ct_CC" >&6; }
3071else
3072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073$as_echo "no" >&6; }
3074fi
3075
3076  if test "x$ac_ct_CC" = x; then
3077    CC=""
3078  else
3079    case $cross_compiling:$ac_tool_warned in
3080yes:)
3081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3083ac_tool_warned=yes ;;
3084esac
3085    CC=$ac_ct_CC
3086  fi
3087else
3088  CC="$ac_cv_prog_CC"
3089fi
3090
3091if test -z "$CC"; then
3092          if test -n "$ac_tool_prefix"; then
3093    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3094set dummy ${ac_tool_prefix}cc; ac_word=$2
3095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096$as_echo_n "checking for $ac_word... " >&6; }
3097if ${ac_cv_prog_CC+:} false; then :
3098  $as_echo_n "(cached) " >&6
3099else
3100  if test -n "$CC"; then
3101  ac_cv_prog_CC="$CC" # Let the user override the test.
3102else
3103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104for as_dir in $PATH
3105do
3106  IFS=$as_save_IFS
3107  test -z "$as_dir" && as_dir=.
3108    for ac_exec_ext in '' $ac_executable_extensions; do
3109  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3110    ac_cv_prog_CC="${ac_tool_prefix}cc"
3111    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112    break 2
3113  fi
3114done
3115  done
3116IFS=$as_save_IFS
3117
3118fi
3119fi
3120CC=$ac_cv_prog_CC
3121if test -n "$CC"; then
3122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123$as_echo "$CC" >&6; }
3124else
3125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126$as_echo "no" >&6; }
3127fi
3128
3129
3130  fi
3131fi
3132if test -z "$CC"; then
3133  # Extract the first word of "cc", so it can be a program name with args.
3134set dummy cc; ac_word=$2
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136$as_echo_n "checking for $ac_word... " >&6; }
3137if ${ac_cv_prog_CC+:} false; then :
3138  $as_echo_n "(cached) " >&6
3139else
3140  if test -n "$CC"; then
3141  ac_cv_prog_CC="$CC" # Let the user override the test.
3142else
3143  ac_prog_rejected=no
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    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3152       ac_prog_rejected=yes
3153       continue
3154     fi
3155    ac_cv_prog_CC="cc"
3156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157    break 2
3158  fi
3159done
3160  done
3161IFS=$as_save_IFS
3162
3163if test $ac_prog_rejected = yes; then
3164  # We found a bogon in the path, so make sure we never use it.
3165  set dummy $ac_cv_prog_CC
3166  shift
3167  if test $# != 0; then
3168    # We chose a different compiler from the bogus one.
3169    # However, it has the same basename, so the bogon will be chosen
3170    # first if we set CC to just the basename; use the full file name.
3171    shift
3172    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3173  fi
3174fi
3175fi
3176fi
3177CC=$ac_cv_prog_CC
3178if test -n "$CC"; then
3179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3180$as_echo "$CC" >&6; }
3181else
3182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183$as_echo "no" >&6; }
3184fi
3185
3186
3187fi
3188if test -z "$CC"; then
3189  if test -n "$ac_tool_prefix"; then
3190  for ac_prog in cl.exe
3191  do
3192    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3193set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195$as_echo_n "checking for $ac_word... " >&6; }
3196if ${ac_cv_prog_CC+:} false; then :
3197  $as_echo_n "(cached) " >&6
3198else
3199  if test -n "$CC"; then
3200  ac_cv_prog_CC="$CC" # Let the user override the test.
3201else
3202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203for as_dir in $PATH
3204do
3205  IFS=$as_save_IFS
3206  test -z "$as_dir" && as_dir=.
3207    for ac_exec_ext in '' $ac_executable_extensions; do
3208  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3209    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3210    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211    break 2
3212  fi
3213done
3214  done
3215IFS=$as_save_IFS
3216
3217fi
3218fi
3219CC=$ac_cv_prog_CC
3220if test -n "$CC"; then
3221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3222$as_echo "$CC" >&6; }
3223else
3224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225$as_echo "no" >&6; }
3226fi
3227
3228
3229    test -n "$CC" && break
3230  done
3231fi
3232if test -z "$CC"; then
3233  ac_ct_CC=$CC
3234  for ac_prog in cl.exe
3235do
3236  # Extract the first word of "$ac_prog", so it can be a program name with args.
3237set dummy $ac_prog; ac_word=$2
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239$as_echo_n "checking for $ac_word... " >&6; }
3240if ${ac_cv_prog_ac_ct_CC+:} false; then :
3241  $as_echo_n "(cached) " >&6
3242else
3243  if test -n "$ac_ct_CC"; then
3244  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3245else
3246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247for as_dir in $PATH
3248do
3249  IFS=$as_save_IFS
3250  test -z "$as_dir" && as_dir=.
3251    for ac_exec_ext in '' $ac_executable_extensions; do
3252  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253    ac_cv_prog_ac_ct_CC="$ac_prog"
3254    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3255    break 2
3256  fi
3257done
3258  done
3259IFS=$as_save_IFS
3260
3261fi
3262fi
3263ac_ct_CC=$ac_cv_prog_ac_ct_CC
3264if test -n "$ac_ct_CC"; then
3265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3266$as_echo "$ac_ct_CC" >&6; }
3267else
3268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269$as_echo "no" >&6; }
3270fi
3271
3272
3273  test -n "$ac_ct_CC" && break
3274done
3275
3276  if test "x$ac_ct_CC" = x; then
3277    CC=""
3278  else
3279    case $cross_compiling:$ac_tool_warned in
3280yes:)
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3283ac_tool_warned=yes ;;
3284esac
3285    CC=$ac_ct_CC
3286  fi
3287fi
3288
3289fi
3290
3291
3292test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294as_fn_error $? "no acceptable C compiler found in \$PATH
3295See \`config.log' for more details" "$LINENO" 5; }
3296
3297# Provide some information about the compiler.
3298$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3299set X $ac_compile
3300ac_compiler=$2
3301for ac_option in --version -v -V -qversion; do
3302  { { ac_try="$ac_compiler $ac_option >&5"
3303case "(($ac_try" in
3304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305  *) ac_try_echo=$ac_try;;
3306esac
3307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308$as_echo "$ac_try_echo"; } >&5
3309  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3310  ac_status=$?
3311  if test -s conftest.err; then
3312    sed '10a\
3313... rest of stderr output deleted ...
3314         10q' conftest.err >conftest.er1
3315    cat conftest.er1 >&5
3316  fi
3317  rm -f conftest.er1 conftest.err
3318  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3319  test $ac_status = 0; }
3320done
3321
3322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323/* end confdefs.h.  */
3324
3325int
3326main ()
3327{
3328
3329  ;
3330  return 0;
3331}
3332_ACEOF
3333ac_clean_files_save=$ac_clean_files
3334ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3335# Try to create an executable without -o first, disregard a.out.
3336# It will help us diagnose broken compilers, and finding out an intuition
3337# of exeext.
3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3339$as_echo_n "checking whether the C compiler works... " >&6; }
3340ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3341
3342# The possible output files:
3343ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3344
3345ac_rmfiles=
3346for ac_file in $ac_files
3347do
3348  case $ac_file in
3349    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3350    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3351  esac
3352done
3353rm -f $ac_rmfiles
3354
3355if { { ac_try="$ac_link_default"
3356case "(($ac_try" in
3357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358  *) ac_try_echo=$ac_try;;
3359esac
3360eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3361$as_echo "$ac_try_echo"; } >&5
3362  (eval "$ac_link_default") 2>&5
3363  ac_status=$?
3364  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365  test $ac_status = 0; }; then :
3366  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3367# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3368# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3369# so that the user can short-circuit this test for compilers unknown to
3370# Autoconf.
3371for ac_file in $ac_files ''
3372do
3373  test -f "$ac_file" || continue
3374  case $ac_file in
3375    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3376	;;
3377    [ab].out )
3378	# We found the default executable, but exeext='' is most
3379	# certainly right.
3380	break;;
3381    *.* )
3382	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3383	then :; else
3384	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3385	fi
3386	# We set ac_cv_exeext here because the later test for it is not
3387	# safe: cross compilers may not add the suffix if given an `-o'
3388	# argument, so we may need to know it at that point already.
3389	# Even if this section looks crufty: it has the advantage of
3390	# actually working.
3391	break;;
3392    * )
3393	break;;
3394  esac
3395done
3396test "$ac_cv_exeext" = no && ac_cv_exeext=
3397
3398else
3399  ac_file=''
3400fi
3401if test -z "$ac_file"; then :
3402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403$as_echo "no" >&6; }
3404$as_echo "$as_me: failed program was:" >&5
3405sed 's/^/| /' conftest.$ac_ext >&5
3406
3407{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3408$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3409as_fn_error 77 "C compiler cannot create executables
3410See \`config.log' for more details" "$LINENO" 5; }
3411else
3412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3413$as_echo "yes" >&6; }
3414fi
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3416$as_echo_n "checking for C compiler default output file name... " >&6; }
3417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3418$as_echo "$ac_file" >&6; }
3419ac_exeext=$ac_cv_exeext
3420
3421rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3422ac_clean_files=$ac_clean_files_save
3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3424$as_echo_n "checking for suffix of executables... " >&6; }
3425if { { ac_try="$ac_link"
3426case "(($ac_try" in
3427  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428  *) ac_try_echo=$ac_try;;
3429esac
3430eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431$as_echo "$ac_try_echo"; } >&5
3432  (eval "$ac_link") 2>&5
3433  ac_status=$?
3434  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435  test $ac_status = 0; }; then :
3436  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3437# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3438# work properly (i.e., refer to `conftest.exe'), while it won't with
3439# `rm'.
3440for ac_file in conftest.exe conftest conftest.*; do
3441  test -f "$ac_file" || continue
3442  case $ac_file in
3443    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3444    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3445	  break;;
3446    * ) break;;
3447  esac
3448done
3449else
3450  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3453See \`config.log' for more details" "$LINENO" 5; }
3454fi
3455rm -f conftest conftest$ac_cv_exeext
3456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3457$as_echo "$ac_cv_exeext" >&6; }
3458
3459rm -f conftest.$ac_ext
3460EXEEXT=$ac_cv_exeext
3461ac_exeext=$EXEEXT
3462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463/* end confdefs.h.  */
3464#include <stdio.h>
3465int
3466main ()
3467{
3468FILE *f = fopen ("conftest.out", "w");
3469 return ferror (f) || fclose (f) != 0;
3470
3471  ;
3472  return 0;
3473}
3474_ACEOF
3475ac_clean_files="$ac_clean_files conftest.out"
3476# Check that the compiler produces executables we can run.  If not, either
3477# the compiler is broken, or we cross compile.
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3479$as_echo_n "checking whether we are cross compiling... " >&6; }
3480if test "$cross_compiling" != yes; then
3481  { { ac_try="$ac_link"
3482case "(($ac_try" in
3483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484  *) ac_try_echo=$ac_try;;
3485esac
3486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3487$as_echo "$ac_try_echo"; } >&5
3488  (eval "$ac_link") 2>&5
3489  ac_status=$?
3490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491  test $ac_status = 0; }
3492  if { ac_try='./conftest$ac_cv_exeext'
3493  { { case "(($ac_try" in
3494  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495  *) ac_try_echo=$ac_try;;
3496esac
3497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498$as_echo "$ac_try_echo"; } >&5
3499  (eval "$ac_try") 2>&5
3500  ac_status=$?
3501  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502  test $ac_status = 0; }; }; then
3503    cross_compiling=no
3504  else
3505    if test "$cross_compiling" = maybe; then
3506	cross_compiling=yes
3507    else
3508	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510as_fn_error $? "cannot run C compiled programs.
3511If you meant to cross compile, use \`--host'.
3512See \`config.log' for more details" "$LINENO" 5; }
3513    fi
3514  fi
3515fi
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3517$as_echo "$cross_compiling" >&6; }
3518
3519rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3520ac_clean_files=$ac_clean_files_save
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3522$as_echo_n "checking for suffix of object files... " >&6; }
3523if ${ac_cv_objext+:} false; then :
3524  $as_echo_n "(cached) " >&6
3525else
3526  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527/* end confdefs.h.  */
3528
3529int
3530main ()
3531{
3532
3533  ;
3534  return 0;
3535}
3536_ACEOF
3537rm -f conftest.o conftest.obj
3538if { { ac_try="$ac_compile"
3539case "(($ac_try" in
3540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541  *) ac_try_echo=$ac_try;;
3542esac
3543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544$as_echo "$ac_try_echo"; } >&5
3545  (eval "$ac_compile") 2>&5
3546  ac_status=$?
3547  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3548  test $ac_status = 0; }; then :
3549  for ac_file in conftest.o conftest.obj conftest.*; do
3550  test -f "$ac_file" || continue;
3551  case $ac_file in
3552    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3553    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3554       break;;
3555  esac
3556done
3557else
3558  $as_echo "$as_me: failed program was:" >&5
3559sed 's/^/| /' conftest.$ac_ext >&5
3560
3561{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3562$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3563as_fn_error $? "cannot compute suffix of object files: cannot compile
3564See \`config.log' for more details" "$LINENO" 5; }
3565fi
3566rm -f conftest.$ac_cv_objext conftest.$ac_ext
3567fi
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3569$as_echo "$ac_cv_objext" >&6; }
3570OBJEXT=$ac_cv_objext
3571ac_objext=$OBJEXT
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3573$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3574if ${ac_cv_c_compiler_gnu+:} false; then :
3575  $as_echo_n "(cached) " >&6
3576else
3577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578/* end confdefs.h.  */
3579
3580int
3581main ()
3582{
3583#ifndef __GNUC__
3584       choke me
3585#endif
3586
3587  ;
3588  return 0;
3589}
3590_ACEOF
3591if ac_fn_c_try_compile "$LINENO"; then :
3592  ac_compiler_gnu=yes
3593else
3594  ac_compiler_gnu=no
3595fi
3596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3597ac_cv_c_compiler_gnu=$ac_compiler_gnu
3598
3599fi
3600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3601$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3602if test $ac_compiler_gnu = yes; then
3603  GCC=yes
3604else
3605  GCC=
3606fi
3607ac_test_CFLAGS=${CFLAGS+set}
3608ac_save_CFLAGS=$CFLAGS
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3610$as_echo_n "checking whether $CC accepts -g... " >&6; }
3611if ${ac_cv_prog_cc_g+:} false; then :
3612  $as_echo_n "(cached) " >&6
3613else
3614  ac_save_c_werror_flag=$ac_c_werror_flag
3615   ac_c_werror_flag=yes
3616   ac_cv_prog_cc_g=no
3617   CFLAGS="-g"
3618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619/* end confdefs.h.  */
3620
3621int
3622main ()
3623{
3624
3625  ;
3626  return 0;
3627}
3628_ACEOF
3629if ac_fn_c_try_compile "$LINENO"; then :
3630  ac_cv_prog_cc_g=yes
3631else
3632  CFLAGS=""
3633      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634/* end confdefs.h.  */
3635
3636int
3637main ()
3638{
3639
3640  ;
3641  return 0;
3642}
3643_ACEOF
3644if ac_fn_c_try_compile "$LINENO"; then :
3645
3646else
3647  ac_c_werror_flag=$ac_save_c_werror_flag
3648	 CFLAGS="-g"
3649	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650/* end confdefs.h.  */
3651
3652int
3653main ()
3654{
3655
3656  ;
3657  return 0;
3658}
3659_ACEOF
3660if ac_fn_c_try_compile "$LINENO"; then :
3661  ac_cv_prog_cc_g=yes
3662fi
3663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3664fi
3665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666fi
3667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3668   ac_c_werror_flag=$ac_save_c_werror_flag
3669fi
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3671$as_echo "$ac_cv_prog_cc_g" >&6; }
3672if test "$ac_test_CFLAGS" = set; then
3673  CFLAGS=$ac_save_CFLAGS
3674elif test $ac_cv_prog_cc_g = yes; then
3675  if test "$GCC" = yes; then
3676    CFLAGS="-g -O2"
3677  else
3678    CFLAGS="-g"
3679  fi
3680else
3681  if test "$GCC" = yes; then
3682    CFLAGS="-O2"
3683  else
3684    CFLAGS=
3685  fi
3686fi
3687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3688$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3689if ${ac_cv_prog_cc_c89+:} false; then :
3690  $as_echo_n "(cached) " >&6
3691else
3692  ac_cv_prog_cc_c89=no
3693ac_save_CC=$CC
3694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695/* end confdefs.h.  */
3696#include <stdarg.h>
3697#include <stdio.h>
3698struct stat;
3699/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3700struct buf { int x; };
3701FILE * (*rcsopen) (struct buf *, struct stat *, int);
3702static char *e (p, i)
3703     char **p;
3704     int i;
3705{
3706  return p[i];
3707}
3708static char *f (char * (*g) (char **, int), char **p, ...)
3709{
3710  char *s;
3711  va_list v;
3712  va_start (v,p);
3713  s = g (p, va_arg (v,int));
3714  va_end (v);
3715  return s;
3716}
3717
3718/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3719   function prototypes and stuff, but not '\xHH' hex character constants.
3720   These don't provoke an error unfortunately, instead are silently treated
3721   as 'x'.  The following induces an error, until -std is added to get
3722   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3723   array size at least.  It's necessary to write '\x00'==0 to get something
3724   that's true only with -std.  */
3725int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3726
3727/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3728   inside strings and character constants.  */
3729#define FOO(x) 'x'
3730int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3731
3732int test (int i, double x);
3733struct s1 {int (*f) (int a);};
3734struct s2 {int (*f) (double a);};
3735int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3736int argc;
3737char **argv;
3738int
3739main ()
3740{
3741return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3742  ;
3743  return 0;
3744}
3745_ACEOF
3746for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3747	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3748do
3749  CC="$ac_save_CC $ac_arg"
3750  if ac_fn_c_try_compile "$LINENO"; then :
3751  ac_cv_prog_cc_c89=$ac_arg
3752fi
3753rm -f core conftest.err conftest.$ac_objext
3754  test "x$ac_cv_prog_cc_c89" != "xno" && break
3755done
3756rm -f conftest.$ac_ext
3757CC=$ac_save_CC
3758
3759fi
3760# AC_CACHE_VAL
3761case "x$ac_cv_prog_cc_c89" in
3762  x)
3763    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3764$as_echo "none needed" >&6; } ;;
3765  xno)
3766    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3767$as_echo "unsupported" >&6; } ;;
3768  *)
3769    CC="$CC $ac_cv_prog_cc_c89"
3770    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3771$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3772esac
3773if test "x$ac_cv_prog_cc_c89" != xno; then :
3774
3775fi
3776
3777ac_ext=c
3778ac_cpp='$CPP $CPPFLAGS'
3779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781ac_compiler_gnu=$ac_cv_c_compiler_gnu
3782
3783depcc="$CC"   am_compiler_list=
3784
3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3786$as_echo_n "checking dependency style of $depcc... " >&6; }
3787if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3788  $as_echo_n "(cached) " >&6
3789else
3790  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3791  # We make a subdir and do the tests there.  Otherwise we can end up
3792  # making bogus files that we don't know about and never remove.  For
3793  # instance it was reported that on HP-UX the gcc test will end up
3794  # making a dummy file named 'D' -- because '-MD' means "put the output
3795  # in D".
3796  rm -rf conftest.dir
3797  mkdir conftest.dir
3798  # Copy depcomp to subdir because otherwise we won't find it if we're
3799  # using a relative directory.
3800  cp "$am_depcomp" conftest.dir
3801  cd conftest.dir
3802  # We will build objects and dependencies in a subdirectory because
3803  # it helps to detect inapplicable dependency modes.  For instance
3804  # both Tru64's cc and ICC support -MD to output dependencies as a
3805  # side effect of compilation, but ICC will put the dependencies in
3806  # the current directory while Tru64 will put them in the object
3807  # directory.
3808  mkdir sub
3809
3810  am_cv_CC_dependencies_compiler_type=none
3811  if test "$am_compiler_list" = ""; then
3812     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3813  fi
3814  am__universal=false
3815  case " $depcc " in #(
3816     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3817     esac
3818
3819  for depmode in $am_compiler_list; do
3820    # Setup a source with many dependencies, because some compilers
3821    # like to wrap large dependency lists on column 80 (with \), and
3822    # we should not choose a depcomp mode which is confused by this.
3823    #
3824    # We need to recreate these files for each test, as the compiler may
3825    # overwrite some of them when testing with obscure command lines.
3826    # This happens at least with the AIX C compiler.
3827    : > sub/conftest.c
3828    for i in 1 2 3 4 5 6; do
3829      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3830      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3831      # Solaris 10 /bin/sh.
3832      echo '/* dummy */' > sub/conftst$i.h
3833    done
3834    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3835
3836    # We check with '-c' and '-o' for the sake of the "dashmstdout"
3837    # mode.  It turns out that the SunPro C++ compiler does not properly
3838    # handle '-M -o', and we need to detect this.  Also, some Intel
3839    # versions had trouble with output in subdirs.
3840    am__obj=sub/conftest.${OBJEXT-o}
3841    am__minus_obj="-o $am__obj"
3842    case $depmode in
3843    gcc)
3844      # This depmode causes a compiler race in universal mode.
3845      test "$am__universal" = false || continue
3846      ;;
3847    nosideeffect)
3848      # After this tag, mechanisms are not by side-effect, so they'll
3849      # only be used when explicitly requested.
3850      if test "x$enable_dependency_tracking" = xyes; then
3851	continue
3852      else
3853	break
3854      fi
3855      ;;
3856    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3857      # This compiler won't grok '-c -o', but also, the minuso test has
3858      # not run yet.  These depmodes are late enough in the game, and
3859      # so weak that their functioning should not be impacted.
3860      am__obj=conftest.${OBJEXT-o}
3861      am__minus_obj=
3862      ;;
3863    none) break ;;
3864    esac
3865    if depmode=$depmode \
3866       source=sub/conftest.c object=$am__obj \
3867       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3868       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3869         >/dev/null 2>conftest.err &&
3870       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3871       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3872       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3873       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3874      # icc doesn't choke on unknown options, it will just issue warnings
3875      # or remarks (even with -Werror).  So we grep stderr for any message
3876      # that says an option was ignored or not supported.
3877      # When given -MP, icc 7.0 and 7.1 complain thusly:
3878      #   icc: Command line warning: ignoring option '-M'; no argument required
3879      # The diagnosis changed in icc 8.0:
3880      #   icc: Command line remark: option '-MP' not supported
3881      if (grep 'ignoring option' conftest.err ||
3882          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3883        am_cv_CC_dependencies_compiler_type=$depmode
3884        break
3885      fi
3886    fi
3887  done
3888
3889  cd ..
3890  rm -rf conftest.dir
3891else
3892  am_cv_CC_dependencies_compiler_type=none
3893fi
3894
3895fi
3896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3897$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3898CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3899
3900 if
3901  test "x$enable_dependency_tracking" != xno \
3902  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3903  am__fastdepCC_TRUE=
3904  am__fastdepCC_FALSE='#'
3905else
3906  am__fastdepCC_TRUE='#'
3907  am__fastdepCC_FALSE=
3908fi
3909
3910
3911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3912$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3913if ${ac_cv_prog_cc_c99+:} false; then :
3914  $as_echo_n "(cached) " >&6
3915else
3916  ac_cv_prog_cc_c99=no
3917ac_save_CC=$CC
3918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3919/* end confdefs.h.  */
3920#include <stdarg.h>
3921#include <stdbool.h>
3922#include <stdlib.h>
3923#include <wchar.h>
3924#include <stdio.h>
3925
3926// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3927#define debug(...) fprintf (stderr, __VA_ARGS__)
3928#define showlist(...) puts (#__VA_ARGS__)
3929#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3930static void
3931test_varargs_macros (void)
3932{
3933  int x = 1234;
3934  int y = 5678;
3935  debug ("Flag");
3936  debug ("X = %d\n", x);
3937  showlist (The first, second, and third items.);
3938  report (x>y, "x is %d but y is %d", x, y);
3939}
3940
3941// Check long long types.
3942#define BIG64 18446744073709551615ull
3943#define BIG32 4294967295ul
3944#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3945#if !BIG_OK
3946  your preprocessor is broken;
3947#endif
3948#if BIG_OK
3949#else
3950  your preprocessor is broken;
3951#endif
3952static long long int bignum = -9223372036854775807LL;
3953static unsigned long long int ubignum = BIG64;
3954
3955struct incomplete_array
3956{
3957  int datasize;
3958  double data[];
3959};
3960
3961struct named_init {
3962  int number;
3963  const wchar_t *name;
3964  double average;
3965};
3966
3967typedef const char *ccp;
3968
3969static inline int
3970test_restrict (ccp restrict text)
3971{
3972  // See if C++-style comments work.
3973  // Iterate through items via the restricted pointer.
3974  // Also check for declarations in for loops.
3975  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3976    continue;
3977  return 0;
3978}
3979
3980// Check varargs and va_copy.
3981static void
3982test_varargs (const char *format, ...)
3983{
3984  va_list args;
3985  va_start (args, format);
3986  va_list args_copy;
3987  va_copy (args_copy, args);
3988
3989  const char *str;
3990  int number;
3991  float fnumber;
3992
3993  while (*format)
3994    {
3995      switch (*format++)
3996	{
3997	case 's': // string
3998	  str = va_arg (args_copy, const char *);
3999	  break;
4000	case 'd': // int
4001	  number = va_arg (args_copy, int);
4002	  break;
4003	case 'f': // float
4004	  fnumber = va_arg (args_copy, double);
4005	  break;
4006	default:
4007	  break;
4008	}
4009    }
4010  va_end (args_copy);
4011  va_end (args);
4012}
4013
4014int
4015main ()
4016{
4017
4018  // Check bool.
4019  _Bool success = false;
4020
4021  // Check restrict.
4022  if (test_restrict ("String literal") == 0)
4023    success = true;
4024  char *restrict newvar = "Another string";
4025
4026  // Check varargs.
4027  test_varargs ("s, d' f .", "string", 65, 34.234);
4028  test_varargs_macros ();
4029
4030  // Check flexible array members.
4031  struct incomplete_array *ia =
4032    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4033  ia->datasize = 10;
4034  for (int i = 0; i < ia->datasize; ++i)
4035    ia->data[i] = i * 1.234;
4036
4037  // Check named initializers.
4038  struct named_init ni = {
4039    .number = 34,
4040    .name = L"Test wide string",
4041    .average = 543.34343,
4042  };
4043
4044  ni.number = 58;
4045
4046  int dynamic_array[ni.number];
4047  dynamic_array[ni.number - 1] = 543;
4048
4049  // work around unused variable warnings
4050  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4051	  || dynamic_array[ni.number - 1] != 543);
4052
4053  ;
4054  return 0;
4055}
4056_ACEOF
4057for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4058do
4059  CC="$ac_save_CC $ac_arg"
4060  if ac_fn_c_try_compile "$LINENO"; then :
4061  ac_cv_prog_cc_c99=$ac_arg
4062fi
4063rm -f core conftest.err conftest.$ac_objext
4064  test "x$ac_cv_prog_cc_c99" != "xno" && break
4065done
4066rm -f conftest.$ac_ext
4067CC=$ac_save_CC
4068
4069fi
4070# AC_CACHE_VAL
4071case "x$ac_cv_prog_cc_c99" in
4072  x)
4073    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4074$as_echo "none needed" >&6; } ;;
4075  xno)
4076    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4077$as_echo "unsupported" >&6; } ;;
4078  *)
4079    CC="$CC $ac_cv_prog_cc_c99"
4080    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4081$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4082esac
4083if test "x$ac_cv_prog_cc_c99" != xno; then :
4084
4085fi
4086
4087
4088
4089ac_ext=c
4090ac_cpp='$CPP $CPPFLAGS'
4091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4095$as_echo_n "checking how to run the C preprocessor... " >&6; }
4096# On Suns, sometimes $CPP names a directory.
4097if test -n "$CPP" && test -d "$CPP"; then
4098  CPP=
4099fi
4100if test -z "$CPP"; then
4101  if ${ac_cv_prog_CPP+:} false; then :
4102  $as_echo_n "(cached) " >&6
4103else
4104      # Double quotes because CPP needs to be expanded
4105    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4106    do
4107      ac_preproc_ok=false
4108for ac_c_preproc_warn_flag in '' yes
4109do
4110  # Use a header file that comes with gcc, so configuring glibc
4111  # with a fresh cross-compiler works.
4112  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4113  # <limits.h> exists even on freestanding compilers.
4114  # On the NeXT, cc -E runs the code through the compiler's parser,
4115  # not just through cpp. "Syntax error" is here to catch this case.
4116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117/* end confdefs.h.  */
4118#ifdef __STDC__
4119# include <limits.h>
4120#else
4121# include <assert.h>
4122#endif
4123		     Syntax error
4124_ACEOF
4125if ac_fn_c_try_cpp "$LINENO"; then :
4126
4127else
4128  # Broken: fails on valid input.
4129continue
4130fi
4131rm -f conftest.err conftest.i conftest.$ac_ext
4132
4133  # OK, works on sane cases.  Now check whether nonexistent headers
4134  # can be detected and how.
4135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136/* end confdefs.h.  */
4137#include <ac_nonexistent.h>
4138_ACEOF
4139if ac_fn_c_try_cpp "$LINENO"; then :
4140  # Broken: success on invalid input.
4141continue
4142else
4143  # Passes both tests.
4144ac_preproc_ok=:
4145break
4146fi
4147rm -f conftest.err conftest.i conftest.$ac_ext
4148
4149done
4150# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4151rm -f conftest.i conftest.err conftest.$ac_ext
4152if $ac_preproc_ok; then :
4153  break
4154fi
4155
4156    done
4157    ac_cv_prog_CPP=$CPP
4158
4159fi
4160  CPP=$ac_cv_prog_CPP
4161else
4162  ac_cv_prog_CPP=$CPP
4163fi
4164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4165$as_echo "$CPP" >&6; }
4166ac_preproc_ok=false
4167for ac_c_preproc_warn_flag in '' yes
4168do
4169  # Use a header file that comes with gcc, so configuring glibc
4170  # with a fresh cross-compiler works.
4171  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4172  # <limits.h> exists even on freestanding compilers.
4173  # On the NeXT, cc -E runs the code through the compiler's parser,
4174  # not just through cpp. "Syntax error" is here to catch this case.
4175  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176/* end confdefs.h.  */
4177#ifdef __STDC__
4178# include <limits.h>
4179#else
4180# include <assert.h>
4181#endif
4182		     Syntax error
4183_ACEOF
4184if ac_fn_c_try_cpp "$LINENO"; then :
4185
4186else
4187  # Broken: fails on valid input.
4188continue
4189fi
4190rm -f conftest.err conftest.i conftest.$ac_ext
4191
4192  # OK, works on sane cases.  Now check whether nonexistent headers
4193  # can be detected and how.
4194  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195/* end confdefs.h.  */
4196#include <ac_nonexistent.h>
4197_ACEOF
4198if ac_fn_c_try_cpp "$LINENO"; then :
4199  # Broken: success on invalid input.
4200continue
4201else
4202  # Passes both tests.
4203ac_preproc_ok=:
4204break
4205fi
4206rm -f conftest.err conftest.i conftest.$ac_ext
4207
4208done
4209# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4210rm -f conftest.i conftest.err conftest.$ac_ext
4211if $ac_preproc_ok; then :
4212
4213else
4214  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4215$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4216as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4217See \`config.log' for more details" "$LINENO" 5; }
4218fi
4219
4220ac_ext=c
4221ac_cpp='$CPP $CPPFLAGS'
4222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4224ac_compiler_gnu=$ac_cv_c_compiler_gnu
4225
4226
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4228$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4229if ${ac_cv_path_GREP+:} false; then :
4230  $as_echo_n "(cached) " >&6
4231else
4232  if test -z "$GREP"; then
4233  ac_path_GREP_found=false
4234  # Loop through the user's path and test for each of PROGNAME-LIST
4235  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4237do
4238  IFS=$as_save_IFS
4239  test -z "$as_dir" && as_dir=.
4240    for ac_prog in grep ggrep; do
4241    for ac_exec_ext in '' $ac_executable_extensions; do
4242      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4243      as_fn_executable_p "$ac_path_GREP" || continue
4244# Check for GNU ac_path_GREP and select it if it is found.
4245  # Check for GNU $ac_path_GREP
4246case `"$ac_path_GREP" --version 2>&1` in
4247*GNU*)
4248  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4249*)
4250  ac_count=0
4251  $as_echo_n 0123456789 >"conftest.in"
4252  while :
4253  do
4254    cat "conftest.in" "conftest.in" >"conftest.tmp"
4255    mv "conftest.tmp" "conftest.in"
4256    cp "conftest.in" "conftest.nl"
4257    $as_echo 'GREP' >> "conftest.nl"
4258    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4259    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4260    as_fn_arith $ac_count + 1 && ac_count=$as_val
4261    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4262      # Best one so far, save it but keep looking for a better one
4263      ac_cv_path_GREP="$ac_path_GREP"
4264      ac_path_GREP_max=$ac_count
4265    fi
4266    # 10*(2^10) chars as input seems more than enough
4267    test $ac_count -gt 10 && break
4268  done
4269  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4270esac
4271
4272      $ac_path_GREP_found && break 3
4273    done
4274  done
4275  done
4276IFS=$as_save_IFS
4277  if test -z "$ac_cv_path_GREP"; then
4278    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4279  fi
4280else
4281  ac_cv_path_GREP=$GREP
4282fi
4283
4284fi
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4286$as_echo "$ac_cv_path_GREP" >&6; }
4287 GREP="$ac_cv_path_GREP"
4288
4289
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4291$as_echo_n "checking for egrep... " >&6; }
4292if ${ac_cv_path_EGREP+:} false; then :
4293  $as_echo_n "(cached) " >&6
4294else
4295  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4296   then ac_cv_path_EGREP="$GREP -E"
4297   else
4298     if test -z "$EGREP"; then
4299  ac_path_EGREP_found=false
4300  # Loop through the user's path and test for each of PROGNAME-LIST
4301  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4303do
4304  IFS=$as_save_IFS
4305  test -z "$as_dir" && as_dir=.
4306    for ac_prog in egrep; do
4307    for ac_exec_ext in '' $ac_executable_extensions; do
4308      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4309      as_fn_executable_p "$ac_path_EGREP" || continue
4310# Check for GNU ac_path_EGREP and select it if it is found.
4311  # Check for GNU $ac_path_EGREP
4312case `"$ac_path_EGREP" --version 2>&1` in
4313*GNU*)
4314  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4315*)
4316  ac_count=0
4317  $as_echo_n 0123456789 >"conftest.in"
4318  while :
4319  do
4320    cat "conftest.in" "conftest.in" >"conftest.tmp"
4321    mv "conftest.tmp" "conftest.in"
4322    cp "conftest.in" "conftest.nl"
4323    $as_echo 'EGREP' >> "conftest.nl"
4324    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4325    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4326    as_fn_arith $ac_count + 1 && ac_count=$as_val
4327    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4328      # Best one so far, save it but keep looking for a better one
4329      ac_cv_path_EGREP="$ac_path_EGREP"
4330      ac_path_EGREP_max=$ac_count
4331    fi
4332    # 10*(2^10) chars as input seems more than enough
4333    test $ac_count -gt 10 && break
4334  done
4335  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4336esac
4337
4338      $ac_path_EGREP_found && break 3
4339    done
4340  done
4341  done
4342IFS=$as_save_IFS
4343  if test -z "$ac_cv_path_EGREP"; then
4344    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4345  fi
4346else
4347  ac_cv_path_EGREP=$EGREP
4348fi
4349
4350   fi
4351fi
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4353$as_echo "$ac_cv_path_EGREP" >&6; }
4354 EGREP="$ac_cv_path_EGREP"
4355
4356
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4358$as_echo_n "checking for ANSI C header files... " >&6; }
4359if ${ac_cv_header_stdc+:} false; then :
4360  $as_echo_n "(cached) " >&6
4361else
4362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363/* end confdefs.h.  */
4364#include <stdlib.h>
4365#include <stdarg.h>
4366#include <string.h>
4367#include <float.h>
4368
4369int
4370main ()
4371{
4372
4373  ;
4374  return 0;
4375}
4376_ACEOF
4377if ac_fn_c_try_compile "$LINENO"; then :
4378  ac_cv_header_stdc=yes
4379else
4380  ac_cv_header_stdc=no
4381fi
4382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383
4384if test $ac_cv_header_stdc = yes; then
4385  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387/* end confdefs.h.  */
4388#include <string.h>
4389
4390_ACEOF
4391if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4392  $EGREP "memchr" >/dev/null 2>&1; then :
4393
4394else
4395  ac_cv_header_stdc=no
4396fi
4397rm -f conftest*
4398
4399fi
4400
4401if test $ac_cv_header_stdc = yes; then
4402  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404/* end confdefs.h.  */
4405#include <stdlib.h>
4406
4407_ACEOF
4408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4409  $EGREP "free" >/dev/null 2>&1; then :
4410
4411else
4412  ac_cv_header_stdc=no
4413fi
4414rm -f conftest*
4415
4416fi
4417
4418if test $ac_cv_header_stdc = yes; then
4419  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4420  if test "$cross_compiling" = yes; then :
4421  :
4422else
4423  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4424/* end confdefs.h.  */
4425#include <ctype.h>
4426#include <stdlib.h>
4427#if ((' ' & 0x0FF) == 0x020)
4428# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4429# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4430#else
4431# define ISLOWER(c) \
4432		   (('a' <= (c) && (c) <= 'i') \
4433		     || ('j' <= (c) && (c) <= 'r') \
4434		     || ('s' <= (c) && (c) <= 'z'))
4435# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4436#endif
4437
4438#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4439int
4440main ()
4441{
4442  int i;
4443  for (i = 0; i < 256; i++)
4444    if (XOR (islower (i), ISLOWER (i))
4445	|| toupper (i) != TOUPPER (i))
4446      return 2;
4447  return 0;
4448}
4449_ACEOF
4450if ac_fn_c_try_run "$LINENO"; then :
4451
4452else
4453  ac_cv_header_stdc=no
4454fi
4455rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4456  conftest.$ac_objext conftest.beam conftest.$ac_ext
4457fi
4458
4459fi
4460fi
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4462$as_echo "$ac_cv_header_stdc" >&6; }
4463if test $ac_cv_header_stdc = yes; then
4464
4465$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4466
4467fi
4468
4469# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4470for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4471		  inttypes.h stdint.h unistd.h
4472do :
4473  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4474ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4475"
4476if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4477  cat >>confdefs.h <<_ACEOF
4478#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4479_ACEOF
4480
4481fi
4482
4483done
4484
4485
4486
4487
4488
4489
4490ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4491if test "x$ac_cv_have_decl___clang__" = xyes; then :
4492  CLANGCC="yes"
4493else
4494  CLANGCC="no"
4495fi
4496
4497ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4498if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4499  INTELCC="yes"
4500else
4501  INTELCC="no"
4502fi
4503
4504ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4505if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4506  SUNCC="yes"
4507else
4508  SUNCC="no"
4509fi
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4520	if test -n "$ac_tool_prefix"; then
4521  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4522set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4524$as_echo_n "checking for $ac_word... " >&6; }
4525if ${ac_cv_path_PKG_CONFIG+:} false; then :
4526  $as_echo_n "(cached) " >&6
4527else
4528  case $PKG_CONFIG in
4529  [\\/]* | ?:[\\/]*)
4530  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4531  ;;
4532  *)
4533  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534for as_dir in $PATH
4535do
4536  IFS=$as_save_IFS
4537  test -z "$as_dir" && as_dir=.
4538    for ac_exec_ext in '' $ac_executable_extensions; do
4539  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4540    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4542    break 2
4543  fi
4544done
4545  done
4546IFS=$as_save_IFS
4547
4548  ;;
4549esac
4550fi
4551PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4552if test -n "$PKG_CONFIG"; then
4553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4554$as_echo "$PKG_CONFIG" >&6; }
4555else
4556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4557$as_echo "no" >&6; }
4558fi
4559
4560
4561fi
4562if test -z "$ac_cv_path_PKG_CONFIG"; then
4563  ac_pt_PKG_CONFIG=$PKG_CONFIG
4564  # Extract the first word of "pkg-config", so it can be a program name with args.
4565set dummy pkg-config; ac_word=$2
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4567$as_echo_n "checking for $ac_word... " >&6; }
4568if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4569  $as_echo_n "(cached) " >&6
4570else
4571  case $ac_pt_PKG_CONFIG in
4572  [\\/]* | ?:[\\/]*)
4573  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4574  ;;
4575  *)
4576  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577for as_dir in $PATH
4578do
4579  IFS=$as_save_IFS
4580  test -z "$as_dir" && as_dir=.
4581    for ac_exec_ext in '' $ac_executable_extensions; do
4582  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4583    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4585    break 2
4586  fi
4587done
4588  done
4589IFS=$as_save_IFS
4590
4591  ;;
4592esac
4593fi
4594ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4595if test -n "$ac_pt_PKG_CONFIG"; then
4596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4597$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4598else
4599  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600$as_echo "no" >&6; }
4601fi
4602
4603  if test "x$ac_pt_PKG_CONFIG" = x; then
4604    PKG_CONFIG=""
4605  else
4606    case $cross_compiling:$ac_tool_warned in
4607yes:)
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4609$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4610ac_tool_warned=yes ;;
4611esac
4612    PKG_CONFIG=$ac_pt_PKG_CONFIG
4613  fi
4614else
4615  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4616fi
4617
4618fi
4619if test -n "$PKG_CONFIG"; then
4620	_pkg_min_version=0.9.0
4621	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4622$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4623	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4624		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4625$as_echo "yes" >&6; }
4626	else
4627		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628$as_echo "no" >&6; }
4629		PKG_CONFIG=""
4630	fi
4631fi
4632# Make sure we can run config.sub.
4633$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4634  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4635
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4637$as_echo_n "checking build system type... " >&6; }
4638if ${ac_cv_build+:} false; then :
4639  $as_echo_n "(cached) " >&6
4640else
4641  ac_build_alias=$build_alias
4642test "x$ac_build_alias" = x &&
4643  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4644test "x$ac_build_alias" = x &&
4645  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4646ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4647  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4648
4649fi
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4651$as_echo "$ac_cv_build" >&6; }
4652case $ac_cv_build in
4653*-*-*) ;;
4654*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4655esac
4656build=$ac_cv_build
4657ac_save_IFS=$IFS; IFS='-'
4658set x $ac_cv_build
4659shift
4660build_cpu=$1
4661build_vendor=$2
4662shift; shift
4663# Remember, the first character of IFS is used to create $*,
4664# except with old shells:
4665build_os=$*
4666IFS=$ac_save_IFS
4667case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4668
4669
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4671$as_echo_n "checking host system type... " >&6; }
4672if ${ac_cv_host+:} false; then :
4673  $as_echo_n "(cached) " >&6
4674else
4675  if test "x$host_alias" = x; then
4676  ac_cv_host=$ac_cv_build
4677else
4678  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4679    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4680fi
4681
4682fi
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4684$as_echo "$ac_cv_host" >&6; }
4685case $ac_cv_host in
4686*-*-*) ;;
4687*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4688esac
4689host=$ac_cv_host
4690ac_save_IFS=$IFS; IFS='-'
4691set x $ac_cv_host
4692shift
4693host_cpu=$1
4694host_vendor=$2
4695shift; shift
4696# Remember, the first character of IFS is used to create $*,
4697# except with old shells:
4698host_os=$*
4699IFS=$ac_save_IFS
4700case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4701
4702
4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4704$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4705if ${ac_cv_path_SED+:} false; then :
4706  $as_echo_n "(cached) " >&6
4707else
4708            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4709     for ac_i in 1 2 3 4 5 6 7; do
4710       ac_script="$ac_script$as_nl$ac_script"
4711     done
4712     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4713     { ac_script=; unset ac_script;}
4714     if test -z "$SED"; then
4715  ac_path_SED_found=false
4716  # Loop through the user's path and test for each of PROGNAME-LIST
4717  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718for as_dir in $PATH
4719do
4720  IFS=$as_save_IFS
4721  test -z "$as_dir" && as_dir=.
4722    for ac_prog in sed gsed; do
4723    for ac_exec_ext in '' $ac_executable_extensions; do
4724      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4725      as_fn_executable_p "$ac_path_SED" || continue
4726# Check for GNU ac_path_SED and select it if it is found.
4727  # Check for GNU $ac_path_SED
4728case `"$ac_path_SED" --version 2>&1` in
4729*GNU*)
4730  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4731*)
4732  ac_count=0
4733  $as_echo_n 0123456789 >"conftest.in"
4734  while :
4735  do
4736    cat "conftest.in" "conftest.in" >"conftest.tmp"
4737    mv "conftest.tmp" "conftest.in"
4738    cp "conftest.in" "conftest.nl"
4739    $as_echo '' >> "conftest.nl"
4740    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4741    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4742    as_fn_arith $ac_count + 1 && ac_count=$as_val
4743    if test $ac_count -gt ${ac_path_SED_max-0}; then
4744      # Best one so far, save it but keep looking for a better one
4745      ac_cv_path_SED="$ac_path_SED"
4746      ac_path_SED_max=$ac_count
4747    fi
4748    # 10*(2^10) chars as input seems more than enough
4749    test $ac_count -gt 10 && break
4750  done
4751  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4752esac
4753
4754      $ac_path_SED_found && break 3
4755    done
4756  done
4757  done
4758IFS=$as_save_IFS
4759  if test -z "$ac_cv_path_SED"; then
4760    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4761  fi
4762else
4763  ac_cv_path_SED=$SED
4764fi
4765
4766fi
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4768$as_echo "$ac_cv_path_SED" >&6; }
4769 SED="$ac_cv_path_SED"
4770  rm -f conftest.sed
4771
4772
4773
4774
4775
4776
4777# Check whether --enable-selective-werror was given.
4778if test "${enable_selective_werror+set}" = set; then :
4779  enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4780else
4781  SELECTIVE_WERROR=yes
4782fi
4783
4784
4785
4786
4787
4788# -v is too short to test reliably with XORG_TESTSET_CFLAG
4789if test "x$SUNCC" = "xyes"; then
4790    BASE_CFLAGS="-v"
4791else
4792    BASE_CFLAGS=""
4793fi
4794
4795# This chunk of warnings were those that existed in the legacy CWARNFLAGS
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809xorg_testset_save_CFLAGS="$CFLAGS"
4810
4811if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4812	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4813	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4814$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4815if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4816  $as_echo_n "(cached) " >&6
4817else
4818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819/* end confdefs.h.  */
4820int i;
4821_ACEOF
4822if ac_fn_c_try_compile "$LINENO"; then :
4823  xorg_cv_cc_flag_unknown_warning_option=yes
4824else
4825  xorg_cv_cc_flag_unknown_warning_option=no
4826fi
4827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4828fi
4829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4830$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4831	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4832	CFLAGS="$xorg_testset_save_CFLAGS"
4833fi
4834
4835if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4836	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4837		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4838	fi
4839	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4840	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4841$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4842if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4843  $as_echo_n "(cached) " >&6
4844else
4845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846/* end confdefs.h.  */
4847int i;
4848_ACEOF
4849if ac_fn_c_try_compile "$LINENO"; then :
4850  xorg_cv_cc_flag_unused_command_line_argument=yes
4851else
4852  xorg_cv_cc_flag_unused_command_line_argument=no
4853fi
4854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855fi
4856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4857$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4858	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4859	CFLAGS="$xorg_testset_save_CFLAGS"
4860fi
4861
4862found="no"
4863
4864	if test $found = "no" ; then
4865		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4866			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4867		fi
4868
4869		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4870			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4871		fi
4872
4873		CFLAGS="$CFLAGS -Wall"
4874
4875		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4876$as_echo_n "checking if $CC supports -Wall... " >&6; }
4877		cacheid=xorg_cv_cc_flag__Wall
4878		if eval \${$cacheid+:} false; then :
4879  $as_echo_n "(cached) " >&6
4880else
4881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882/* end confdefs.h.  */
4883int i;
4884int
4885main ()
4886{
4887
4888  ;
4889  return 0;
4890}
4891_ACEOF
4892if ac_fn_c_try_link "$LINENO"; then :
4893  eval $cacheid=yes
4894else
4895  eval $cacheid=no
4896fi
4897rm -f core conftest.err conftest.$ac_objext \
4898    conftest$ac_exeext conftest.$ac_ext
4899fi
4900
4901
4902		CFLAGS="$xorg_testset_save_CFLAGS"
4903
4904		eval supported=\$$cacheid
4905		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4906$as_echo "$supported" >&6; }
4907		if test "$supported" = "yes" ; then
4908			BASE_CFLAGS="$BASE_CFLAGS -Wall"
4909			found="yes"
4910		fi
4911	fi
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927xorg_testset_save_CFLAGS="$CFLAGS"
4928
4929if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4930	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4931	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4932$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4933if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4934  $as_echo_n "(cached) " >&6
4935else
4936  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937/* end confdefs.h.  */
4938int i;
4939_ACEOF
4940if ac_fn_c_try_compile "$LINENO"; then :
4941  xorg_cv_cc_flag_unknown_warning_option=yes
4942else
4943  xorg_cv_cc_flag_unknown_warning_option=no
4944fi
4945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946fi
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4948$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4949	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4950	CFLAGS="$xorg_testset_save_CFLAGS"
4951fi
4952
4953if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4954	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4955		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4956	fi
4957	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4958	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4959$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4960if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4961  $as_echo_n "(cached) " >&6
4962else
4963  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964/* end confdefs.h.  */
4965int i;
4966_ACEOF
4967if ac_fn_c_try_compile "$LINENO"; then :
4968  xorg_cv_cc_flag_unused_command_line_argument=yes
4969else
4970  xorg_cv_cc_flag_unused_command_line_argument=no
4971fi
4972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973fi
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4975$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4976	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4977	CFLAGS="$xorg_testset_save_CFLAGS"
4978fi
4979
4980found="no"
4981
4982	if test $found = "no" ; then
4983		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4984			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4985		fi
4986
4987		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4988			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4989		fi
4990
4991		CFLAGS="$CFLAGS -Wpointer-arith"
4992
4993		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4994$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4995		cacheid=xorg_cv_cc_flag__Wpointer_arith
4996		if eval \${$cacheid+:} false; then :
4997  $as_echo_n "(cached) " >&6
4998else
4999  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000/* end confdefs.h.  */
5001int i;
5002int
5003main ()
5004{
5005
5006  ;
5007  return 0;
5008}
5009_ACEOF
5010if ac_fn_c_try_link "$LINENO"; then :
5011  eval $cacheid=yes
5012else
5013  eval $cacheid=no
5014fi
5015rm -f core conftest.err conftest.$ac_objext \
5016    conftest$ac_exeext conftest.$ac_ext
5017fi
5018
5019
5020		CFLAGS="$xorg_testset_save_CFLAGS"
5021
5022		eval supported=\$$cacheid
5023		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5024$as_echo "$supported" >&6; }
5025		if test "$supported" = "yes" ; then
5026			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5027			found="yes"
5028		fi
5029	fi
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045xorg_testset_save_CFLAGS="$CFLAGS"
5046
5047if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5048	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5049	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5050$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5051if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5052  $as_echo_n "(cached) " >&6
5053else
5054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055/* end confdefs.h.  */
5056int i;
5057_ACEOF
5058if ac_fn_c_try_compile "$LINENO"; then :
5059  xorg_cv_cc_flag_unknown_warning_option=yes
5060else
5061  xorg_cv_cc_flag_unknown_warning_option=no
5062fi
5063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064fi
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5066$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5067	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5068	CFLAGS="$xorg_testset_save_CFLAGS"
5069fi
5070
5071if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5072	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5073		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5074	fi
5075	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5076	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5077$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5078if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5079  $as_echo_n "(cached) " >&6
5080else
5081  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5082/* end confdefs.h.  */
5083int i;
5084_ACEOF
5085if ac_fn_c_try_compile "$LINENO"; then :
5086  xorg_cv_cc_flag_unused_command_line_argument=yes
5087else
5088  xorg_cv_cc_flag_unused_command_line_argument=no
5089fi
5090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5091fi
5092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5093$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5094	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5095	CFLAGS="$xorg_testset_save_CFLAGS"
5096fi
5097
5098found="no"
5099
5100	if test $found = "no" ; then
5101		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5102			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5103		fi
5104
5105		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5106			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5107		fi
5108
5109		CFLAGS="$CFLAGS -Wmissing-declarations"
5110
5111		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5112$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5113		cacheid=xorg_cv_cc_flag__Wmissing_declarations
5114		if eval \${$cacheid+:} false; then :
5115  $as_echo_n "(cached) " >&6
5116else
5117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5118/* end confdefs.h.  */
5119int i;
5120int
5121main ()
5122{
5123
5124  ;
5125  return 0;
5126}
5127_ACEOF
5128if ac_fn_c_try_link "$LINENO"; then :
5129  eval $cacheid=yes
5130else
5131  eval $cacheid=no
5132fi
5133rm -f core conftest.err conftest.$ac_objext \
5134    conftest$ac_exeext conftest.$ac_ext
5135fi
5136
5137
5138		CFLAGS="$xorg_testset_save_CFLAGS"
5139
5140		eval supported=\$$cacheid
5141		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5142$as_echo "$supported" >&6; }
5143		if test "$supported" = "yes" ; then
5144			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5145			found="yes"
5146		fi
5147	fi
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163xorg_testset_save_CFLAGS="$CFLAGS"
5164
5165if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5166	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5167	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5168$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5169if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5170  $as_echo_n "(cached) " >&6
5171else
5172  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173/* end confdefs.h.  */
5174int i;
5175_ACEOF
5176if ac_fn_c_try_compile "$LINENO"; then :
5177  xorg_cv_cc_flag_unknown_warning_option=yes
5178else
5179  xorg_cv_cc_flag_unknown_warning_option=no
5180fi
5181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5182fi
5183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5184$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5185	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5186	CFLAGS="$xorg_testset_save_CFLAGS"
5187fi
5188
5189if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5190	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5191		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5192	fi
5193	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5194	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5195$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5196if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5197  $as_echo_n "(cached) " >&6
5198else
5199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200/* end confdefs.h.  */
5201int i;
5202_ACEOF
5203if ac_fn_c_try_compile "$LINENO"; then :
5204  xorg_cv_cc_flag_unused_command_line_argument=yes
5205else
5206  xorg_cv_cc_flag_unused_command_line_argument=no
5207fi
5208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209fi
5210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5211$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5212	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5213	CFLAGS="$xorg_testset_save_CFLAGS"
5214fi
5215
5216found="no"
5217
5218	if test $found = "no" ; then
5219		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5220			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5221		fi
5222
5223		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5224			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5225		fi
5226
5227		CFLAGS="$CFLAGS -Wformat=2"
5228
5229		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5230$as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5231		cacheid=xorg_cv_cc_flag__Wformat_2
5232		if eval \${$cacheid+:} false; then :
5233  $as_echo_n "(cached) " >&6
5234else
5235  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236/* end confdefs.h.  */
5237int i;
5238int
5239main ()
5240{
5241
5242  ;
5243  return 0;
5244}
5245_ACEOF
5246if ac_fn_c_try_link "$LINENO"; then :
5247  eval $cacheid=yes
5248else
5249  eval $cacheid=no
5250fi
5251rm -f core conftest.err conftest.$ac_objext \
5252    conftest$ac_exeext conftest.$ac_ext
5253fi
5254
5255
5256		CFLAGS="$xorg_testset_save_CFLAGS"
5257
5258		eval supported=\$$cacheid
5259		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5260$as_echo "$supported" >&6; }
5261		if test "$supported" = "yes" ; then
5262			BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5263			found="yes"
5264		fi
5265	fi
5266
5267	if test $found = "no" ; then
5268		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5269			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5270		fi
5271
5272		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5273			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5274		fi
5275
5276		CFLAGS="$CFLAGS -Wformat"
5277
5278		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5279$as_echo_n "checking if $CC supports -Wformat... " >&6; }
5280		cacheid=xorg_cv_cc_flag__Wformat
5281		if eval \${$cacheid+:} false; then :
5282  $as_echo_n "(cached) " >&6
5283else
5284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285/* end confdefs.h.  */
5286int i;
5287int
5288main ()
5289{
5290
5291  ;
5292  return 0;
5293}
5294_ACEOF
5295if ac_fn_c_try_link "$LINENO"; then :
5296  eval $cacheid=yes
5297else
5298  eval $cacheid=no
5299fi
5300rm -f core conftest.err conftest.$ac_objext \
5301    conftest$ac_exeext conftest.$ac_ext
5302fi
5303
5304
5305		CFLAGS="$xorg_testset_save_CFLAGS"
5306
5307		eval supported=\$$cacheid
5308		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5309$as_echo "$supported" >&6; }
5310		if test "$supported" = "yes" ; then
5311			BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5312			found="yes"
5313		fi
5314	fi
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332xorg_testset_save_CFLAGS="$CFLAGS"
5333
5334if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5335	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5336	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5337$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5338if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5339  $as_echo_n "(cached) " >&6
5340else
5341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5342/* end confdefs.h.  */
5343int i;
5344_ACEOF
5345if ac_fn_c_try_compile "$LINENO"; then :
5346  xorg_cv_cc_flag_unknown_warning_option=yes
5347else
5348  xorg_cv_cc_flag_unknown_warning_option=no
5349fi
5350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351fi
5352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5353$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5354	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5355	CFLAGS="$xorg_testset_save_CFLAGS"
5356fi
5357
5358if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5359	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5360		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5361	fi
5362	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5363	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5364$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5365if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5366  $as_echo_n "(cached) " >&6
5367else
5368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369/* end confdefs.h.  */
5370int i;
5371_ACEOF
5372if ac_fn_c_try_compile "$LINENO"; then :
5373  xorg_cv_cc_flag_unused_command_line_argument=yes
5374else
5375  xorg_cv_cc_flag_unused_command_line_argument=no
5376fi
5377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5378fi
5379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5380$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5381	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5382	CFLAGS="$xorg_testset_save_CFLAGS"
5383fi
5384
5385found="no"
5386
5387	if test $found = "no" ; then
5388		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5389			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5390		fi
5391
5392		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5393			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5394		fi
5395
5396		CFLAGS="$CFLAGS -Wstrict-prototypes"
5397
5398		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5399$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5400		cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5401		if eval \${$cacheid+:} false; then :
5402  $as_echo_n "(cached) " >&6
5403else
5404  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405/* end confdefs.h.  */
5406int i;
5407int
5408main ()
5409{
5410
5411  ;
5412  return 0;
5413}
5414_ACEOF
5415if ac_fn_c_try_link "$LINENO"; then :
5416  eval $cacheid=yes
5417else
5418  eval $cacheid=no
5419fi
5420rm -f core conftest.err conftest.$ac_objext \
5421    conftest$ac_exeext conftest.$ac_ext
5422fi
5423
5424
5425		CFLAGS="$xorg_testset_save_CFLAGS"
5426
5427		eval supported=\$$cacheid
5428		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5429$as_echo "$supported" >&6; }
5430		if test "$supported" = "yes" ; then
5431			BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5432			found="yes"
5433		fi
5434	fi
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450xorg_testset_save_CFLAGS="$CFLAGS"
5451
5452if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5453	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5454	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5455$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5456if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5457  $as_echo_n "(cached) " >&6
5458else
5459  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460/* end confdefs.h.  */
5461int i;
5462_ACEOF
5463if ac_fn_c_try_compile "$LINENO"; then :
5464  xorg_cv_cc_flag_unknown_warning_option=yes
5465else
5466  xorg_cv_cc_flag_unknown_warning_option=no
5467fi
5468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5469fi
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5471$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5472	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5473	CFLAGS="$xorg_testset_save_CFLAGS"
5474fi
5475
5476if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5477	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5478		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5479	fi
5480	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5481	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5482$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5483if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5484  $as_echo_n "(cached) " >&6
5485else
5486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487/* end confdefs.h.  */
5488int i;
5489_ACEOF
5490if ac_fn_c_try_compile "$LINENO"; then :
5491  xorg_cv_cc_flag_unused_command_line_argument=yes
5492else
5493  xorg_cv_cc_flag_unused_command_line_argument=no
5494fi
5495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496fi
5497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5498$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5499	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5500	CFLAGS="$xorg_testset_save_CFLAGS"
5501fi
5502
5503found="no"
5504
5505	if test $found = "no" ; then
5506		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5507			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5508		fi
5509
5510		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5511			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5512		fi
5513
5514		CFLAGS="$CFLAGS -Wmissing-prototypes"
5515
5516		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5517$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5518		cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5519		if eval \${$cacheid+:} false; then :
5520  $as_echo_n "(cached) " >&6
5521else
5522  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523/* end confdefs.h.  */
5524int i;
5525int
5526main ()
5527{
5528
5529  ;
5530  return 0;
5531}
5532_ACEOF
5533if ac_fn_c_try_link "$LINENO"; then :
5534  eval $cacheid=yes
5535else
5536  eval $cacheid=no
5537fi
5538rm -f core conftest.err conftest.$ac_objext \
5539    conftest$ac_exeext conftest.$ac_ext
5540fi
5541
5542
5543		CFLAGS="$xorg_testset_save_CFLAGS"
5544
5545		eval supported=\$$cacheid
5546		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5547$as_echo "$supported" >&6; }
5548		if test "$supported" = "yes" ; then
5549			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5550			found="yes"
5551		fi
5552	fi
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568xorg_testset_save_CFLAGS="$CFLAGS"
5569
5570if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5571	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5572	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5573$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5574if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5575  $as_echo_n "(cached) " >&6
5576else
5577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578/* end confdefs.h.  */
5579int i;
5580_ACEOF
5581if ac_fn_c_try_compile "$LINENO"; then :
5582  xorg_cv_cc_flag_unknown_warning_option=yes
5583else
5584  xorg_cv_cc_flag_unknown_warning_option=no
5585fi
5586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587fi
5588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5589$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5590	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5591	CFLAGS="$xorg_testset_save_CFLAGS"
5592fi
5593
5594if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5595	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5596		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5597	fi
5598	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5599	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5600$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5601if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5602  $as_echo_n "(cached) " >&6
5603else
5604  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605/* end confdefs.h.  */
5606int i;
5607_ACEOF
5608if ac_fn_c_try_compile "$LINENO"; then :
5609  xorg_cv_cc_flag_unused_command_line_argument=yes
5610else
5611  xorg_cv_cc_flag_unused_command_line_argument=no
5612fi
5613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5614fi
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5616$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5617	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5618	CFLAGS="$xorg_testset_save_CFLAGS"
5619fi
5620
5621found="no"
5622
5623	if test $found = "no" ; then
5624		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5625			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5626		fi
5627
5628		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5629			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5630		fi
5631
5632		CFLAGS="$CFLAGS -Wnested-externs"
5633
5634		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5635$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5636		cacheid=xorg_cv_cc_flag__Wnested_externs
5637		if eval \${$cacheid+:} false; then :
5638  $as_echo_n "(cached) " >&6
5639else
5640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641/* end confdefs.h.  */
5642int i;
5643int
5644main ()
5645{
5646
5647  ;
5648  return 0;
5649}
5650_ACEOF
5651if ac_fn_c_try_link "$LINENO"; then :
5652  eval $cacheid=yes
5653else
5654  eval $cacheid=no
5655fi
5656rm -f core conftest.err conftest.$ac_objext \
5657    conftest$ac_exeext conftest.$ac_ext
5658fi
5659
5660
5661		CFLAGS="$xorg_testset_save_CFLAGS"
5662
5663		eval supported=\$$cacheid
5664		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5665$as_echo "$supported" >&6; }
5666		if test "$supported" = "yes" ; then
5667			BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5668			found="yes"
5669		fi
5670	fi
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686xorg_testset_save_CFLAGS="$CFLAGS"
5687
5688if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5689	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5690	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5691$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5692if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5693  $as_echo_n "(cached) " >&6
5694else
5695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696/* end confdefs.h.  */
5697int i;
5698_ACEOF
5699if ac_fn_c_try_compile "$LINENO"; then :
5700  xorg_cv_cc_flag_unknown_warning_option=yes
5701else
5702  xorg_cv_cc_flag_unknown_warning_option=no
5703fi
5704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5705fi
5706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5707$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5708	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5709	CFLAGS="$xorg_testset_save_CFLAGS"
5710fi
5711
5712if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5713	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5714		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5715	fi
5716	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5717	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5718$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5719if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5720  $as_echo_n "(cached) " >&6
5721else
5722  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723/* end confdefs.h.  */
5724int i;
5725_ACEOF
5726if ac_fn_c_try_compile "$LINENO"; then :
5727  xorg_cv_cc_flag_unused_command_line_argument=yes
5728else
5729  xorg_cv_cc_flag_unused_command_line_argument=no
5730fi
5731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5732fi
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5734$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5735	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5736	CFLAGS="$xorg_testset_save_CFLAGS"
5737fi
5738
5739found="no"
5740
5741	if test $found = "no" ; then
5742		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5743			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5744		fi
5745
5746		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5747			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5748		fi
5749
5750		CFLAGS="$CFLAGS -Wbad-function-cast"
5751
5752		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5753$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5754		cacheid=xorg_cv_cc_flag__Wbad_function_cast
5755		if eval \${$cacheid+:} false; then :
5756  $as_echo_n "(cached) " >&6
5757else
5758  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759/* end confdefs.h.  */
5760int i;
5761int
5762main ()
5763{
5764
5765  ;
5766  return 0;
5767}
5768_ACEOF
5769if ac_fn_c_try_link "$LINENO"; then :
5770  eval $cacheid=yes
5771else
5772  eval $cacheid=no
5773fi
5774rm -f core conftest.err conftest.$ac_objext \
5775    conftest$ac_exeext conftest.$ac_ext
5776fi
5777
5778
5779		CFLAGS="$xorg_testset_save_CFLAGS"
5780
5781		eval supported=\$$cacheid
5782		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5783$as_echo "$supported" >&6; }
5784		if test "$supported" = "yes" ; then
5785			BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5786			found="yes"
5787		fi
5788	fi
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804xorg_testset_save_CFLAGS="$CFLAGS"
5805
5806if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5807	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5808	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5809$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5810if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5811  $as_echo_n "(cached) " >&6
5812else
5813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5814/* end confdefs.h.  */
5815int i;
5816_ACEOF
5817if ac_fn_c_try_compile "$LINENO"; then :
5818  xorg_cv_cc_flag_unknown_warning_option=yes
5819else
5820  xorg_cv_cc_flag_unknown_warning_option=no
5821fi
5822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823fi
5824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5825$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5826	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5827	CFLAGS="$xorg_testset_save_CFLAGS"
5828fi
5829
5830if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5831	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5832		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5833	fi
5834	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5835	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5836$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5837if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5838  $as_echo_n "(cached) " >&6
5839else
5840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841/* end confdefs.h.  */
5842int i;
5843_ACEOF
5844if ac_fn_c_try_compile "$LINENO"; then :
5845  xorg_cv_cc_flag_unused_command_line_argument=yes
5846else
5847  xorg_cv_cc_flag_unused_command_line_argument=no
5848fi
5849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850fi
5851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5852$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5853	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5854	CFLAGS="$xorg_testset_save_CFLAGS"
5855fi
5856
5857found="no"
5858
5859	if test $found = "no" ; then
5860		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5861			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5862		fi
5863
5864		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5865			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5866		fi
5867
5868		CFLAGS="$CFLAGS -Wold-style-definition"
5869
5870		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5871$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5872		cacheid=xorg_cv_cc_flag__Wold_style_definition
5873		if eval \${$cacheid+:} false; then :
5874  $as_echo_n "(cached) " >&6
5875else
5876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877/* end confdefs.h.  */
5878int i;
5879int
5880main ()
5881{
5882
5883  ;
5884  return 0;
5885}
5886_ACEOF
5887if ac_fn_c_try_link "$LINENO"; then :
5888  eval $cacheid=yes
5889else
5890  eval $cacheid=no
5891fi
5892rm -f core conftest.err conftest.$ac_objext \
5893    conftest$ac_exeext conftest.$ac_ext
5894fi
5895
5896
5897		CFLAGS="$xorg_testset_save_CFLAGS"
5898
5899		eval supported=\$$cacheid
5900		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5901$as_echo "$supported" >&6; }
5902		if test "$supported" = "yes" ; then
5903			BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5904			found="yes"
5905		fi
5906	fi
5907
5908	if test $found = "no" ; then
5909		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5910			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5911		fi
5912
5913		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5914			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5915		fi
5916
5917		CFLAGS="$CFLAGS -fd"
5918
5919		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5920$as_echo_n "checking if $CC supports -fd... " >&6; }
5921		cacheid=xorg_cv_cc_flag__fd
5922		if eval \${$cacheid+:} false; then :
5923  $as_echo_n "(cached) " >&6
5924else
5925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926/* end confdefs.h.  */
5927int i;
5928int
5929main ()
5930{
5931
5932  ;
5933  return 0;
5934}
5935_ACEOF
5936if ac_fn_c_try_link "$LINENO"; then :
5937  eval $cacheid=yes
5938else
5939  eval $cacheid=no
5940fi
5941rm -f core conftest.err conftest.$ac_objext \
5942    conftest$ac_exeext conftest.$ac_ext
5943fi
5944
5945
5946		CFLAGS="$xorg_testset_save_CFLAGS"
5947
5948		eval supported=\$$cacheid
5949		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5950$as_echo "$supported" >&6; }
5951		if test "$supported" = "yes" ; then
5952			BASE_CFLAGS="$BASE_CFLAGS -fd"
5953			found="yes"
5954		fi
5955	fi
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971xorg_testset_save_CFLAGS="$CFLAGS"
5972
5973if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5974	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5975	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5976$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5977if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5978  $as_echo_n "(cached) " >&6
5979else
5980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981/* end confdefs.h.  */
5982int i;
5983_ACEOF
5984if ac_fn_c_try_compile "$LINENO"; then :
5985  xorg_cv_cc_flag_unknown_warning_option=yes
5986else
5987  xorg_cv_cc_flag_unknown_warning_option=no
5988fi
5989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5990fi
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5992$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5993	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5994	CFLAGS="$xorg_testset_save_CFLAGS"
5995fi
5996
5997if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5998	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5999		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6000	fi
6001	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6002	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6003$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6004if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6005  $as_echo_n "(cached) " >&6
6006else
6007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008/* end confdefs.h.  */
6009int i;
6010_ACEOF
6011if ac_fn_c_try_compile "$LINENO"; then :
6012  xorg_cv_cc_flag_unused_command_line_argument=yes
6013else
6014  xorg_cv_cc_flag_unused_command_line_argument=no
6015fi
6016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6017fi
6018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6019$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6020	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6021	CFLAGS="$xorg_testset_save_CFLAGS"
6022fi
6023
6024found="no"
6025
6026	if test $found = "no" ; then
6027		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6028			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6029		fi
6030
6031		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6032			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6033		fi
6034
6035		CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6036
6037		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6038$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6039		cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6040		if eval \${$cacheid+:} false; then :
6041  $as_echo_n "(cached) " >&6
6042else
6043  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044/* end confdefs.h.  */
6045int i;
6046int
6047main ()
6048{
6049
6050  ;
6051  return 0;
6052}
6053_ACEOF
6054if ac_fn_c_try_link "$LINENO"; then :
6055  eval $cacheid=yes
6056else
6057  eval $cacheid=no
6058fi
6059rm -f core conftest.err conftest.$ac_objext \
6060    conftest$ac_exeext conftest.$ac_ext
6061fi
6062
6063
6064		CFLAGS="$xorg_testset_save_CFLAGS"
6065
6066		eval supported=\$$cacheid
6067		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6068$as_echo "$supported" >&6; }
6069		if test "$supported" = "yes" ; then
6070			BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6071			found="yes"
6072		fi
6073	fi
6074
6075
6076
6077
6078
6079# This chunk adds additional warnings that could catch undesired effects.
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093xorg_testset_save_CFLAGS="$CFLAGS"
6094
6095if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6096	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6097	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6098$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6099if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6100  $as_echo_n "(cached) " >&6
6101else
6102  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103/* end confdefs.h.  */
6104int i;
6105_ACEOF
6106if ac_fn_c_try_compile "$LINENO"; then :
6107  xorg_cv_cc_flag_unknown_warning_option=yes
6108else
6109  xorg_cv_cc_flag_unknown_warning_option=no
6110fi
6111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6112fi
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6114$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6115	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6116	CFLAGS="$xorg_testset_save_CFLAGS"
6117fi
6118
6119if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6120	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6121		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6122	fi
6123	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6124	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6125$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6126if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6127  $as_echo_n "(cached) " >&6
6128else
6129  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130/* end confdefs.h.  */
6131int i;
6132_ACEOF
6133if ac_fn_c_try_compile "$LINENO"; then :
6134  xorg_cv_cc_flag_unused_command_line_argument=yes
6135else
6136  xorg_cv_cc_flag_unused_command_line_argument=no
6137fi
6138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6139fi
6140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6141$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6142	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6143	CFLAGS="$xorg_testset_save_CFLAGS"
6144fi
6145
6146found="no"
6147
6148	if test $found = "no" ; then
6149		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6150			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6151		fi
6152
6153		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6154			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6155		fi
6156
6157		CFLAGS="$CFLAGS -Wunused"
6158
6159		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6160$as_echo_n "checking if $CC supports -Wunused... " >&6; }
6161		cacheid=xorg_cv_cc_flag__Wunused
6162		if eval \${$cacheid+:} false; then :
6163  $as_echo_n "(cached) " >&6
6164else
6165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166/* end confdefs.h.  */
6167int i;
6168int
6169main ()
6170{
6171
6172  ;
6173  return 0;
6174}
6175_ACEOF
6176if ac_fn_c_try_link "$LINENO"; then :
6177  eval $cacheid=yes
6178else
6179  eval $cacheid=no
6180fi
6181rm -f core conftest.err conftest.$ac_objext \
6182    conftest$ac_exeext conftest.$ac_ext
6183fi
6184
6185
6186		CFLAGS="$xorg_testset_save_CFLAGS"
6187
6188		eval supported=\$$cacheid
6189		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6190$as_echo "$supported" >&6; }
6191		if test "$supported" = "yes" ; then
6192			BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6193			found="yes"
6194		fi
6195	fi
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211xorg_testset_save_CFLAGS="$CFLAGS"
6212
6213if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6214	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6215	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6216$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6217if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6218  $as_echo_n "(cached) " >&6
6219else
6220  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221/* end confdefs.h.  */
6222int i;
6223_ACEOF
6224if ac_fn_c_try_compile "$LINENO"; then :
6225  xorg_cv_cc_flag_unknown_warning_option=yes
6226else
6227  xorg_cv_cc_flag_unknown_warning_option=no
6228fi
6229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230fi
6231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6232$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6233	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6234	CFLAGS="$xorg_testset_save_CFLAGS"
6235fi
6236
6237if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6238	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6239		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6240	fi
6241	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6242	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6243$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6244if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6245  $as_echo_n "(cached) " >&6
6246else
6247  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6248/* end confdefs.h.  */
6249int i;
6250_ACEOF
6251if ac_fn_c_try_compile "$LINENO"; then :
6252  xorg_cv_cc_flag_unused_command_line_argument=yes
6253else
6254  xorg_cv_cc_flag_unused_command_line_argument=no
6255fi
6256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6257fi
6258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6259$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6260	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6261	CFLAGS="$xorg_testset_save_CFLAGS"
6262fi
6263
6264found="no"
6265
6266	if test $found = "no" ; then
6267		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6268			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6269		fi
6270
6271		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6272			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6273		fi
6274
6275		CFLAGS="$CFLAGS -Wuninitialized"
6276
6277		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6278$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6279		cacheid=xorg_cv_cc_flag__Wuninitialized
6280		if eval \${$cacheid+:} false; then :
6281  $as_echo_n "(cached) " >&6
6282else
6283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284/* end confdefs.h.  */
6285int i;
6286int
6287main ()
6288{
6289
6290  ;
6291  return 0;
6292}
6293_ACEOF
6294if ac_fn_c_try_link "$LINENO"; then :
6295  eval $cacheid=yes
6296else
6297  eval $cacheid=no
6298fi
6299rm -f core conftest.err conftest.$ac_objext \
6300    conftest$ac_exeext conftest.$ac_ext
6301fi
6302
6303
6304		CFLAGS="$xorg_testset_save_CFLAGS"
6305
6306		eval supported=\$$cacheid
6307		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6308$as_echo "$supported" >&6; }
6309		if test "$supported" = "yes" ; then
6310			BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6311			found="yes"
6312		fi
6313	fi
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329xorg_testset_save_CFLAGS="$CFLAGS"
6330
6331if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6332	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6333	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6334$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6335if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6336  $as_echo_n "(cached) " >&6
6337else
6338  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339/* end confdefs.h.  */
6340int i;
6341_ACEOF
6342if ac_fn_c_try_compile "$LINENO"; then :
6343  xorg_cv_cc_flag_unknown_warning_option=yes
6344else
6345  xorg_cv_cc_flag_unknown_warning_option=no
6346fi
6347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6348fi
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6350$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6351	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6352	CFLAGS="$xorg_testset_save_CFLAGS"
6353fi
6354
6355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6356	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6357		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6358	fi
6359	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6360	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6361$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6362if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6363  $as_echo_n "(cached) " >&6
6364else
6365  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366/* end confdefs.h.  */
6367int i;
6368_ACEOF
6369if ac_fn_c_try_compile "$LINENO"; then :
6370  xorg_cv_cc_flag_unused_command_line_argument=yes
6371else
6372  xorg_cv_cc_flag_unused_command_line_argument=no
6373fi
6374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6375fi
6376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6377$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6378	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6379	CFLAGS="$xorg_testset_save_CFLAGS"
6380fi
6381
6382found="no"
6383
6384	if test $found = "no" ; then
6385		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6386			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6387		fi
6388
6389		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6390			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6391		fi
6392
6393		CFLAGS="$CFLAGS -Wshadow"
6394
6395		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6396$as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6397		cacheid=xorg_cv_cc_flag__Wshadow
6398		if eval \${$cacheid+:} false; then :
6399  $as_echo_n "(cached) " >&6
6400else
6401  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6402/* end confdefs.h.  */
6403int i;
6404int
6405main ()
6406{
6407
6408  ;
6409  return 0;
6410}
6411_ACEOF
6412if ac_fn_c_try_link "$LINENO"; then :
6413  eval $cacheid=yes
6414else
6415  eval $cacheid=no
6416fi
6417rm -f core conftest.err conftest.$ac_objext \
6418    conftest$ac_exeext conftest.$ac_ext
6419fi
6420
6421
6422		CFLAGS="$xorg_testset_save_CFLAGS"
6423
6424		eval supported=\$$cacheid
6425		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6426$as_echo "$supported" >&6; }
6427		if test "$supported" = "yes" ; then
6428			BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6429			found="yes"
6430		fi
6431	fi
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447xorg_testset_save_CFLAGS="$CFLAGS"
6448
6449if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6450	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6451	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6452$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6453if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6454  $as_echo_n "(cached) " >&6
6455else
6456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457/* end confdefs.h.  */
6458int i;
6459_ACEOF
6460if ac_fn_c_try_compile "$LINENO"; then :
6461  xorg_cv_cc_flag_unknown_warning_option=yes
6462else
6463  xorg_cv_cc_flag_unknown_warning_option=no
6464fi
6465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6466fi
6467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6468$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6469	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6470	CFLAGS="$xorg_testset_save_CFLAGS"
6471fi
6472
6473if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6474	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6475		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6476	fi
6477	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6478	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6479$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6480if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6481  $as_echo_n "(cached) " >&6
6482else
6483  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484/* end confdefs.h.  */
6485int i;
6486_ACEOF
6487if ac_fn_c_try_compile "$LINENO"; then :
6488  xorg_cv_cc_flag_unused_command_line_argument=yes
6489else
6490  xorg_cv_cc_flag_unused_command_line_argument=no
6491fi
6492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6493fi
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6495$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6496	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6497	CFLAGS="$xorg_testset_save_CFLAGS"
6498fi
6499
6500found="no"
6501
6502	if test $found = "no" ; then
6503		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6504			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6505		fi
6506
6507		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6508			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6509		fi
6510
6511		CFLAGS="$CFLAGS -Wmissing-noreturn"
6512
6513		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6514$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6515		cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6516		if eval \${$cacheid+:} false; then :
6517  $as_echo_n "(cached) " >&6
6518else
6519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520/* end confdefs.h.  */
6521int i;
6522int
6523main ()
6524{
6525
6526  ;
6527  return 0;
6528}
6529_ACEOF
6530if ac_fn_c_try_link "$LINENO"; then :
6531  eval $cacheid=yes
6532else
6533  eval $cacheid=no
6534fi
6535rm -f core conftest.err conftest.$ac_objext \
6536    conftest$ac_exeext conftest.$ac_ext
6537fi
6538
6539
6540		CFLAGS="$xorg_testset_save_CFLAGS"
6541
6542		eval supported=\$$cacheid
6543		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6544$as_echo "$supported" >&6; }
6545		if test "$supported" = "yes" ; then
6546			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6547			found="yes"
6548		fi
6549	fi
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565xorg_testset_save_CFLAGS="$CFLAGS"
6566
6567if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6568	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6569	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6570$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6571if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6572  $as_echo_n "(cached) " >&6
6573else
6574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575/* end confdefs.h.  */
6576int i;
6577_ACEOF
6578if ac_fn_c_try_compile "$LINENO"; then :
6579  xorg_cv_cc_flag_unknown_warning_option=yes
6580else
6581  xorg_cv_cc_flag_unknown_warning_option=no
6582fi
6583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6584fi
6585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6586$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6587	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6588	CFLAGS="$xorg_testset_save_CFLAGS"
6589fi
6590
6591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6592	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6593		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6594	fi
6595	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6596	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6597$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6598if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6599  $as_echo_n "(cached) " >&6
6600else
6601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602/* end confdefs.h.  */
6603int i;
6604_ACEOF
6605if ac_fn_c_try_compile "$LINENO"; then :
6606  xorg_cv_cc_flag_unused_command_line_argument=yes
6607else
6608  xorg_cv_cc_flag_unused_command_line_argument=no
6609fi
6610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611fi
6612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6613$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6614	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6615	CFLAGS="$xorg_testset_save_CFLAGS"
6616fi
6617
6618found="no"
6619
6620	if test $found = "no" ; then
6621		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6622			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6623		fi
6624
6625		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6626			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6627		fi
6628
6629		CFLAGS="$CFLAGS -Wmissing-format-attribute"
6630
6631		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6632$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6633		cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6634		if eval \${$cacheid+:} false; then :
6635  $as_echo_n "(cached) " >&6
6636else
6637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638/* end confdefs.h.  */
6639int i;
6640int
6641main ()
6642{
6643
6644  ;
6645  return 0;
6646}
6647_ACEOF
6648if ac_fn_c_try_link "$LINENO"; then :
6649  eval $cacheid=yes
6650else
6651  eval $cacheid=no
6652fi
6653rm -f core conftest.err conftest.$ac_objext \
6654    conftest$ac_exeext conftest.$ac_ext
6655fi
6656
6657
6658		CFLAGS="$xorg_testset_save_CFLAGS"
6659
6660		eval supported=\$$cacheid
6661		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6662$as_echo "$supported" >&6; }
6663		if test "$supported" = "yes" ; then
6664			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6665			found="yes"
6666		fi
6667	fi
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683xorg_testset_save_CFLAGS="$CFLAGS"
6684
6685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6686	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6687	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6688$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6689if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6690  $as_echo_n "(cached) " >&6
6691else
6692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693/* end confdefs.h.  */
6694int i;
6695_ACEOF
6696if ac_fn_c_try_compile "$LINENO"; then :
6697  xorg_cv_cc_flag_unknown_warning_option=yes
6698else
6699  xorg_cv_cc_flag_unknown_warning_option=no
6700fi
6701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702fi
6703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6704$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6705	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6706	CFLAGS="$xorg_testset_save_CFLAGS"
6707fi
6708
6709if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6710	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6711		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6712	fi
6713	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6714	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6715$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6716if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6717  $as_echo_n "(cached) " >&6
6718else
6719  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720/* end confdefs.h.  */
6721int i;
6722_ACEOF
6723if ac_fn_c_try_compile "$LINENO"; then :
6724  xorg_cv_cc_flag_unused_command_line_argument=yes
6725else
6726  xorg_cv_cc_flag_unused_command_line_argument=no
6727fi
6728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729fi
6730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6731$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6732	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6733	CFLAGS="$xorg_testset_save_CFLAGS"
6734fi
6735
6736found="no"
6737
6738	if test $found = "no" ; then
6739		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6740			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6741		fi
6742
6743		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6744			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6745		fi
6746
6747		CFLAGS="$CFLAGS -Wredundant-decls"
6748
6749		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6750$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6751		cacheid=xorg_cv_cc_flag__Wredundant_decls
6752		if eval \${$cacheid+:} false; then :
6753  $as_echo_n "(cached) " >&6
6754else
6755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756/* end confdefs.h.  */
6757int i;
6758int
6759main ()
6760{
6761
6762  ;
6763  return 0;
6764}
6765_ACEOF
6766if ac_fn_c_try_link "$LINENO"; then :
6767  eval $cacheid=yes
6768else
6769  eval $cacheid=no
6770fi
6771rm -f core conftest.err conftest.$ac_objext \
6772    conftest$ac_exeext conftest.$ac_ext
6773fi
6774
6775
6776		CFLAGS="$xorg_testset_save_CFLAGS"
6777
6778		eval supported=\$$cacheid
6779		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6780$as_echo "$supported" >&6; }
6781		if test "$supported" = "yes" ; then
6782			BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6783			found="yes"
6784		fi
6785	fi
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801xorg_testset_save_CFLAGS="$CFLAGS"
6802
6803if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6804	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6805	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6806$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6807if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6808  $as_echo_n "(cached) " >&6
6809else
6810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811/* end confdefs.h.  */
6812int i;
6813_ACEOF
6814if ac_fn_c_try_compile "$LINENO"; then :
6815  xorg_cv_cc_flag_unknown_warning_option=yes
6816else
6817  xorg_cv_cc_flag_unknown_warning_option=no
6818fi
6819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6820fi
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6822$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6823	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6824	CFLAGS="$xorg_testset_save_CFLAGS"
6825fi
6826
6827if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6828	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6829		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6830	fi
6831	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6832	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6833$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6834if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6835  $as_echo_n "(cached) " >&6
6836else
6837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6838/* end confdefs.h.  */
6839int i;
6840_ACEOF
6841if ac_fn_c_try_compile "$LINENO"; then :
6842  xorg_cv_cc_flag_unused_command_line_argument=yes
6843else
6844  xorg_cv_cc_flag_unused_command_line_argument=no
6845fi
6846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6847fi
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6849$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6850	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6851	CFLAGS="$xorg_testset_save_CFLAGS"
6852fi
6853
6854found="no"
6855
6856	if test $found = "no" ; then
6857		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6858			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6859		fi
6860
6861		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6862			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6863		fi
6864
6865		CFLAGS="$CFLAGS -Wlogical-op"
6866
6867		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6868$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6869		cacheid=xorg_cv_cc_flag__Wlogical_op
6870		if eval \${$cacheid+:} false; then :
6871  $as_echo_n "(cached) " >&6
6872else
6873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874/* end confdefs.h.  */
6875int i;
6876int
6877main ()
6878{
6879
6880  ;
6881  return 0;
6882}
6883_ACEOF
6884if ac_fn_c_try_link "$LINENO"; then :
6885  eval $cacheid=yes
6886else
6887  eval $cacheid=no
6888fi
6889rm -f core conftest.err conftest.$ac_objext \
6890    conftest$ac_exeext conftest.$ac_ext
6891fi
6892
6893
6894		CFLAGS="$xorg_testset_save_CFLAGS"
6895
6896		eval supported=\$$cacheid
6897		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6898$as_echo "$supported" >&6; }
6899		if test "$supported" = "yes" ; then
6900			BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6901			found="yes"
6902		fi
6903	fi
6904
6905
6906
6907# These are currently disabled because they are noisy.  They will be enabled
6908# in the future once the codebase is sufficiently modernized to silence
6909# them.  For now, I don't want them to drown out the other warnings.
6910# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6911# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6912# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6913
6914# Turn some warnings into errors, so we don't accidently get successful builds
6915# when there are problems that should be fixed.
6916
6917if test "x$SELECTIVE_WERROR" = "xyes" ; then
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931xorg_testset_save_CFLAGS="$CFLAGS"
6932
6933if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6934	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6935	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6936$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6937if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6938  $as_echo_n "(cached) " >&6
6939else
6940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941/* end confdefs.h.  */
6942int i;
6943_ACEOF
6944if ac_fn_c_try_compile "$LINENO"; then :
6945  xorg_cv_cc_flag_unknown_warning_option=yes
6946else
6947  xorg_cv_cc_flag_unknown_warning_option=no
6948fi
6949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6950fi
6951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6952$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6953	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6954	CFLAGS="$xorg_testset_save_CFLAGS"
6955fi
6956
6957if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6958	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6959		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6960	fi
6961	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6962	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6963$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6964if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6965  $as_echo_n "(cached) " >&6
6966else
6967  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968/* end confdefs.h.  */
6969int i;
6970_ACEOF
6971if ac_fn_c_try_compile "$LINENO"; then :
6972  xorg_cv_cc_flag_unused_command_line_argument=yes
6973else
6974  xorg_cv_cc_flag_unused_command_line_argument=no
6975fi
6976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6977fi
6978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6979$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6980	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6981	CFLAGS="$xorg_testset_save_CFLAGS"
6982fi
6983
6984found="no"
6985
6986	if test $found = "no" ; then
6987		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6988			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6989		fi
6990
6991		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6992			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6993		fi
6994
6995		CFLAGS="$CFLAGS -Werror=implicit"
6996
6997		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6998$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6999		cacheid=xorg_cv_cc_flag__Werror_implicit
7000		if eval \${$cacheid+:} false; then :
7001  $as_echo_n "(cached) " >&6
7002else
7003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7004/* end confdefs.h.  */
7005int i;
7006int
7007main ()
7008{
7009
7010  ;
7011  return 0;
7012}
7013_ACEOF
7014if ac_fn_c_try_link "$LINENO"; then :
7015  eval $cacheid=yes
7016else
7017  eval $cacheid=no
7018fi
7019rm -f core conftest.err conftest.$ac_objext \
7020    conftest$ac_exeext conftest.$ac_ext
7021fi
7022
7023
7024		CFLAGS="$xorg_testset_save_CFLAGS"
7025
7026		eval supported=\$$cacheid
7027		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7028$as_echo "$supported" >&6; }
7029		if test "$supported" = "yes" ; then
7030			BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7031			found="yes"
7032		fi
7033	fi
7034
7035	if test $found = "no" ; then
7036		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7037			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7038		fi
7039
7040		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7041			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7042		fi
7043
7044		CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7045
7046		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7047$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7048		cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7049		if eval \${$cacheid+:} false; then :
7050  $as_echo_n "(cached) " >&6
7051else
7052  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053/* end confdefs.h.  */
7054int i;
7055int
7056main ()
7057{
7058
7059  ;
7060  return 0;
7061}
7062_ACEOF
7063if ac_fn_c_try_link "$LINENO"; then :
7064  eval $cacheid=yes
7065else
7066  eval $cacheid=no
7067fi
7068rm -f core conftest.err conftest.$ac_objext \
7069    conftest$ac_exeext conftest.$ac_ext
7070fi
7071
7072
7073		CFLAGS="$xorg_testset_save_CFLAGS"
7074
7075		eval supported=\$$cacheid
7076		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7077$as_echo "$supported" >&6; }
7078		if test "$supported" = "yes" ; then
7079			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7080			found="yes"
7081		fi
7082	fi
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098xorg_testset_save_CFLAGS="$CFLAGS"
7099
7100if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7101	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7102	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7103$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7104if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7105  $as_echo_n "(cached) " >&6
7106else
7107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108/* end confdefs.h.  */
7109int i;
7110_ACEOF
7111if ac_fn_c_try_compile "$LINENO"; then :
7112  xorg_cv_cc_flag_unknown_warning_option=yes
7113else
7114  xorg_cv_cc_flag_unknown_warning_option=no
7115fi
7116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7117fi
7118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7119$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7120	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7121	CFLAGS="$xorg_testset_save_CFLAGS"
7122fi
7123
7124if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7125	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7126		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7127	fi
7128	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7129	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7130$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7131if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7132  $as_echo_n "(cached) " >&6
7133else
7134  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135/* end confdefs.h.  */
7136int i;
7137_ACEOF
7138if ac_fn_c_try_compile "$LINENO"; then :
7139  xorg_cv_cc_flag_unused_command_line_argument=yes
7140else
7141  xorg_cv_cc_flag_unused_command_line_argument=no
7142fi
7143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7144fi
7145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7146$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7147	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7148	CFLAGS="$xorg_testset_save_CFLAGS"
7149fi
7150
7151found="no"
7152
7153	if test $found = "no" ; then
7154		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7155			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7156		fi
7157
7158		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7159			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7160		fi
7161
7162		CFLAGS="$CFLAGS -Werror=nonnull"
7163
7164		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7165$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7166		cacheid=xorg_cv_cc_flag__Werror_nonnull
7167		if eval \${$cacheid+:} false; then :
7168  $as_echo_n "(cached) " >&6
7169else
7170  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171/* end confdefs.h.  */
7172int i;
7173int
7174main ()
7175{
7176
7177  ;
7178  return 0;
7179}
7180_ACEOF
7181if ac_fn_c_try_link "$LINENO"; then :
7182  eval $cacheid=yes
7183else
7184  eval $cacheid=no
7185fi
7186rm -f core conftest.err conftest.$ac_objext \
7187    conftest$ac_exeext conftest.$ac_ext
7188fi
7189
7190
7191		CFLAGS="$xorg_testset_save_CFLAGS"
7192
7193		eval supported=\$$cacheid
7194		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7195$as_echo "$supported" >&6; }
7196		if test "$supported" = "yes" ; then
7197			BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7198			found="yes"
7199		fi
7200	fi
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216xorg_testset_save_CFLAGS="$CFLAGS"
7217
7218if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7219	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7220	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7221$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7222if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7223  $as_echo_n "(cached) " >&6
7224else
7225  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226/* end confdefs.h.  */
7227int i;
7228_ACEOF
7229if ac_fn_c_try_compile "$LINENO"; then :
7230  xorg_cv_cc_flag_unknown_warning_option=yes
7231else
7232  xorg_cv_cc_flag_unknown_warning_option=no
7233fi
7234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7235fi
7236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7237$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7238	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7239	CFLAGS="$xorg_testset_save_CFLAGS"
7240fi
7241
7242if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7243	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7244		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7245	fi
7246	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7247	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7248$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7249if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7250  $as_echo_n "(cached) " >&6
7251else
7252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253/* end confdefs.h.  */
7254int i;
7255_ACEOF
7256if ac_fn_c_try_compile "$LINENO"; then :
7257  xorg_cv_cc_flag_unused_command_line_argument=yes
7258else
7259  xorg_cv_cc_flag_unused_command_line_argument=no
7260fi
7261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7262fi
7263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7264$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7265	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7266	CFLAGS="$xorg_testset_save_CFLAGS"
7267fi
7268
7269found="no"
7270
7271	if test $found = "no" ; then
7272		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7273			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7274		fi
7275
7276		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7277			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7278		fi
7279
7280		CFLAGS="$CFLAGS -Werror=init-self"
7281
7282		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7283$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7284		cacheid=xorg_cv_cc_flag__Werror_init_self
7285		if eval \${$cacheid+:} false; then :
7286  $as_echo_n "(cached) " >&6
7287else
7288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289/* end confdefs.h.  */
7290int i;
7291int
7292main ()
7293{
7294
7295  ;
7296  return 0;
7297}
7298_ACEOF
7299if ac_fn_c_try_link "$LINENO"; then :
7300  eval $cacheid=yes
7301else
7302  eval $cacheid=no
7303fi
7304rm -f core conftest.err conftest.$ac_objext \
7305    conftest$ac_exeext conftest.$ac_ext
7306fi
7307
7308
7309		CFLAGS="$xorg_testset_save_CFLAGS"
7310
7311		eval supported=\$$cacheid
7312		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7313$as_echo "$supported" >&6; }
7314		if test "$supported" = "yes" ; then
7315			BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7316			found="yes"
7317		fi
7318	fi
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334xorg_testset_save_CFLAGS="$CFLAGS"
7335
7336if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7337	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7338	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7339$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7340if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7341  $as_echo_n "(cached) " >&6
7342else
7343  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344/* end confdefs.h.  */
7345int i;
7346_ACEOF
7347if ac_fn_c_try_compile "$LINENO"; then :
7348  xorg_cv_cc_flag_unknown_warning_option=yes
7349else
7350  xorg_cv_cc_flag_unknown_warning_option=no
7351fi
7352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7353fi
7354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7355$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7356	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7357	CFLAGS="$xorg_testset_save_CFLAGS"
7358fi
7359
7360if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7361	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7362		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7363	fi
7364	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7365	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7366$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7367if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7368  $as_echo_n "(cached) " >&6
7369else
7370  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371/* end confdefs.h.  */
7372int i;
7373_ACEOF
7374if ac_fn_c_try_compile "$LINENO"; then :
7375  xorg_cv_cc_flag_unused_command_line_argument=yes
7376else
7377  xorg_cv_cc_flag_unused_command_line_argument=no
7378fi
7379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7380fi
7381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7382$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7383	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7384	CFLAGS="$xorg_testset_save_CFLAGS"
7385fi
7386
7387found="no"
7388
7389	if test $found = "no" ; then
7390		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7391			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7392		fi
7393
7394		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7395			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7396		fi
7397
7398		CFLAGS="$CFLAGS -Werror=main"
7399
7400		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7401$as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7402		cacheid=xorg_cv_cc_flag__Werror_main
7403		if eval \${$cacheid+:} false; then :
7404  $as_echo_n "(cached) " >&6
7405else
7406  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7407/* end confdefs.h.  */
7408int i;
7409int
7410main ()
7411{
7412
7413  ;
7414  return 0;
7415}
7416_ACEOF
7417if ac_fn_c_try_link "$LINENO"; then :
7418  eval $cacheid=yes
7419else
7420  eval $cacheid=no
7421fi
7422rm -f core conftest.err conftest.$ac_objext \
7423    conftest$ac_exeext conftest.$ac_ext
7424fi
7425
7426
7427		CFLAGS="$xorg_testset_save_CFLAGS"
7428
7429		eval supported=\$$cacheid
7430		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7431$as_echo "$supported" >&6; }
7432		if test "$supported" = "yes" ; then
7433			BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7434			found="yes"
7435		fi
7436	fi
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452xorg_testset_save_CFLAGS="$CFLAGS"
7453
7454if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7455	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7456	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7457$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7458if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7459  $as_echo_n "(cached) " >&6
7460else
7461  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462/* end confdefs.h.  */
7463int i;
7464_ACEOF
7465if ac_fn_c_try_compile "$LINENO"; then :
7466  xorg_cv_cc_flag_unknown_warning_option=yes
7467else
7468  xorg_cv_cc_flag_unknown_warning_option=no
7469fi
7470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7471fi
7472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7473$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7474	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7475	CFLAGS="$xorg_testset_save_CFLAGS"
7476fi
7477
7478if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7479	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7480		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7481	fi
7482	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7483	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7484$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7485if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7486  $as_echo_n "(cached) " >&6
7487else
7488  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489/* end confdefs.h.  */
7490int i;
7491_ACEOF
7492if ac_fn_c_try_compile "$LINENO"; then :
7493  xorg_cv_cc_flag_unused_command_line_argument=yes
7494else
7495  xorg_cv_cc_flag_unused_command_line_argument=no
7496fi
7497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7498fi
7499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7500$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7501	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7502	CFLAGS="$xorg_testset_save_CFLAGS"
7503fi
7504
7505found="no"
7506
7507	if test $found = "no" ; then
7508		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7509			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7510		fi
7511
7512		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7513			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7514		fi
7515
7516		CFLAGS="$CFLAGS -Werror=missing-braces"
7517
7518		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7519$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7520		cacheid=xorg_cv_cc_flag__Werror_missing_braces
7521		if eval \${$cacheid+:} false; then :
7522  $as_echo_n "(cached) " >&6
7523else
7524  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7525/* end confdefs.h.  */
7526int i;
7527int
7528main ()
7529{
7530
7531  ;
7532  return 0;
7533}
7534_ACEOF
7535if ac_fn_c_try_link "$LINENO"; then :
7536  eval $cacheid=yes
7537else
7538  eval $cacheid=no
7539fi
7540rm -f core conftest.err conftest.$ac_objext \
7541    conftest$ac_exeext conftest.$ac_ext
7542fi
7543
7544
7545		CFLAGS="$xorg_testset_save_CFLAGS"
7546
7547		eval supported=\$$cacheid
7548		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7549$as_echo "$supported" >&6; }
7550		if test "$supported" = "yes" ; then
7551			BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7552			found="yes"
7553		fi
7554	fi
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570xorg_testset_save_CFLAGS="$CFLAGS"
7571
7572if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7573	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7574	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7575$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7576if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7577  $as_echo_n "(cached) " >&6
7578else
7579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580/* end confdefs.h.  */
7581int i;
7582_ACEOF
7583if ac_fn_c_try_compile "$LINENO"; then :
7584  xorg_cv_cc_flag_unknown_warning_option=yes
7585else
7586  xorg_cv_cc_flag_unknown_warning_option=no
7587fi
7588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7589fi
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7591$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7592	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7593	CFLAGS="$xorg_testset_save_CFLAGS"
7594fi
7595
7596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7597	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7598		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7599	fi
7600	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7601	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7602$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7603if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7604  $as_echo_n "(cached) " >&6
7605else
7606  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7607/* end confdefs.h.  */
7608int i;
7609_ACEOF
7610if ac_fn_c_try_compile "$LINENO"; then :
7611  xorg_cv_cc_flag_unused_command_line_argument=yes
7612else
7613  xorg_cv_cc_flag_unused_command_line_argument=no
7614fi
7615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616fi
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7618$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7619	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7620	CFLAGS="$xorg_testset_save_CFLAGS"
7621fi
7622
7623found="no"
7624
7625	if test $found = "no" ; then
7626		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7627			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7628		fi
7629
7630		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7631			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7632		fi
7633
7634		CFLAGS="$CFLAGS -Werror=sequence-point"
7635
7636		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7637$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7638		cacheid=xorg_cv_cc_flag__Werror_sequence_point
7639		if eval \${$cacheid+:} false; then :
7640  $as_echo_n "(cached) " >&6
7641else
7642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643/* end confdefs.h.  */
7644int i;
7645int
7646main ()
7647{
7648
7649  ;
7650  return 0;
7651}
7652_ACEOF
7653if ac_fn_c_try_link "$LINENO"; then :
7654  eval $cacheid=yes
7655else
7656  eval $cacheid=no
7657fi
7658rm -f core conftest.err conftest.$ac_objext \
7659    conftest$ac_exeext conftest.$ac_ext
7660fi
7661
7662
7663		CFLAGS="$xorg_testset_save_CFLAGS"
7664
7665		eval supported=\$$cacheid
7666		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7667$as_echo "$supported" >&6; }
7668		if test "$supported" = "yes" ; then
7669			BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7670			found="yes"
7671		fi
7672	fi
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688xorg_testset_save_CFLAGS="$CFLAGS"
7689
7690if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7691	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7692	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7693$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7694if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7695  $as_echo_n "(cached) " >&6
7696else
7697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698/* end confdefs.h.  */
7699int i;
7700_ACEOF
7701if ac_fn_c_try_compile "$LINENO"; then :
7702  xorg_cv_cc_flag_unknown_warning_option=yes
7703else
7704  xorg_cv_cc_flag_unknown_warning_option=no
7705fi
7706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7707fi
7708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7709$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7710	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7711	CFLAGS="$xorg_testset_save_CFLAGS"
7712fi
7713
7714if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7715	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7716		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7717	fi
7718	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7719	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7720$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7721if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7722  $as_echo_n "(cached) " >&6
7723else
7724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725/* end confdefs.h.  */
7726int i;
7727_ACEOF
7728if ac_fn_c_try_compile "$LINENO"; then :
7729  xorg_cv_cc_flag_unused_command_line_argument=yes
7730else
7731  xorg_cv_cc_flag_unused_command_line_argument=no
7732fi
7733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734fi
7735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7736$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7737	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7738	CFLAGS="$xorg_testset_save_CFLAGS"
7739fi
7740
7741found="no"
7742
7743	if test $found = "no" ; then
7744		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7745			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7746		fi
7747
7748		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7749			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7750		fi
7751
7752		CFLAGS="$CFLAGS -Werror=return-type"
7753
7754		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7755$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7756		cacheid=xorg_cv_cc_flag__Werror_return_type
7757		if eval \${$cacheid+:} false; then :
7758  $as_echo_n "(cached) " >&6
7759else
7760  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761/* end confdefs.h.  */
7762int i;
7763int
7764main ()
7765{
7766
7767  ;
7768  return 0;
7769}
7770_ACEOF
7771if ac_fn_c_try_link "$LINENO"; then :
7772  eval $cacheid=yes
7773else
7774  eval $cacheid=no
7775fi
7776rm -f core conftest.err conftest.$ac_objext \
7777    conftest$ac_exeext conftest.$ac_ext
7778fi
7779
7780
7781		CFLAGS="$xorg_testset_save_CFLAGS"
7782
7783		eval supported=\$$cacheid
7784		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7785$as_echo "$supported" >&6; }
7786		if test "$supported" = "yes" ; then
7787			BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7788			found="yes"
7789		fi
7790	fi
7791
7792	if test $found = "no" ; then
7793		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7794			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7795		fi
7796
7797		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7798			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7799		fi
7800
7801		CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7802
7803		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7804$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7805		cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7806		if eval \${$cacheid+:} false; then :
7807  $as_echo_n "(cached) " >&6
7808else
7809  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810/* end confdefs.h.  */
7811int i;
7812int
7813main ()
7814{
7815
7816  ;
7817  return 0;
7818}
7819_ACEOF
7820if ac_fn_c_try_link "$LINENO"; then :
7821  eval $cacheid=yes
7822else
7823  eval $cacheid=no
7824fi
7825rm -f core conftest.err conftest.$ac_objext \
7826    conftest$ac_exeext conftest.$ac_ext
7827fi
7828
7829
7830		CFLAGS="$xorg_testset_save_CFLAGS"
7831
7832		eval supported=\$$cacheid
7833		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7834$as_echo "$supported" >&6; }
7835		if test "$supported" = "yes" ; then
7836			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7837			found="yes"
7838		fi
7839	fi
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855xorg_testset_save_CFLAGS="$CFLAGS"
7856
7857if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7858	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7859	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7860$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7861if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7862  $as_echo_n "(cached) " >&6
7863else
7864  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865/* end confdefs.h.  */
7866int i;
7867_ACEOF
7868if ac_fn_c_try_compile "$LINENO"; then :
7869  xorg_cv_cc_flag_unknown_warning_option=yes
7870else
7871  xorg_cv_cc_flag_unknown_warning_option=no
7872fi
7873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7874fi
7875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7876$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7877	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7878	CFLAGS="$xorg_testset_save_CFLAGS"
7879fi
7880
7881if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7882	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7883		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7884	fi
7885	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7886	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7887$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7888if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7889  $as_echo_n "(cached) " >&6
7890else
7891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892/* end confdefs.h.  */
7893int i;
7894_ACEOF
7895if ac_fn_c_try_compile "$LINENO"; then :
7896  xorg_cv_cc_flag_unused_command_line_argument=yes
7897else
7898  xorg_cv_cc_flag_unused_command_line_argument=no
7899fi
7900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7901fi
7902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7903$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7904	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7905	CFLAGS="$xorg_testset_save_CFLAGS"
7906fi
7907
7908found="no"
7909
7910	if test $found = "no" ; then
7911		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7912			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7913		fi
7914
7915		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7916			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7917		fi
7918
7919		CFLAGS="$CFLAGS -Werror=trigraphs"
7920
7921		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7922$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7923		cacheid=xorg_cv_cc_flag__Werror_trigraphs
7924		if eval \${$cacheid+:} false; then :
7925  $as_echo_n "(cached) " >&6
7926else
7927  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928/* end confdefs.h.  */
7929int i;
7930int
7931main ()
7932{
7933
7934  ;
7935  return 0;
7936}
7937_ACEOF
7938if ac_fn_c_try_link "$LINENO"; then :
7939  eval $cacheid=yes
7940else
7941  eval $cacheid=no
7942fi
7943rm -f core conftest.err conftest.$ac_objext \
7944    conftest$ac_exeext conftest.$ac_ext
7945fi
7946
7947
7948		CFLAGS="$xorg_testset_save_CFLAGS"
7949
7950		eval supported=\$$cacheid
7951		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7952$as_echo "$supported" >&6; }
7953		if test "$supported" = "yes" ; then
7954			BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7955			found="yes"
7956		fi
7957	fi
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973xorg_testset_save_CFLAGS="$CFLAGS"
7974
7975if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7976	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7977	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7978$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7979if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7980  $as_echo_n "(cached) " >&6
7981else
7982  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983/* end confdefs.h.  */
7984int i;
7985_ACEOF
7986if ac_fn_c_try_compile "$LINENO"; then :
7987  xorg_cv_cc_flag_unknown_warning_option=yes
7988else
7989  xorg_cv_cc_flag_unknown_warning_option=no
7990fi
7991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7992fi
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7994$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7995	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7996	CFLAGS="$xorg_testset_save_CFLAGS"
7997fi
7998
7999if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8000	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8001		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8002	fi
8003	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8004	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8005$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8006if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8007  $as_echo_n "(cached) " >&6
8008else
8009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010/* end confdefs.h.  */
8011int i;
8012_ACEOF
8013if ac_fn_c_try_compile "$LINENO"; then :
8014  xorg_cv_cc_flag_unused_command_line_argument=yes
8015else
8016  xorg_cv_cc_flag_unused_command_line_argument=no
8017fi
8018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8019fi
8020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8021$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8022	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8023	CFLAGS="$xorg_testset_save_CFLAGS"
8024fi
8025
8026found="no"
8027
8028	if test $found = "no" ; then
8029		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8030			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8031		fi
8032
8033		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8034			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8035		fi
8036
8037		CFLAGS="$CFLAGS -Werror=array-bounds"
8038
8039		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8040$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
8041		cacheid=xorg_cv_cc_flag__Werror_array_bounds
8042		if eval \${$cacheid+:} false; then :
8043  $as_echo_n "(cached) " >&6
8044else
8045  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046/* end confdefs.h.  */
8047int i;
8048int
8049main ()
8050{
8051
8052  ;
8053  return 0;
8054}
8055_ACEOF
8056if ac_fn_c_try_link "$LINENO"; then :
8057  eval $cacheid=yes
8058else
8059  eval $cacheid=no
8060fi
8061rm -f core conftest.err conftest.$ac_objext \
8062    conftest$ac_exeext conftest.$ac_ext
8063fi
8064
8065
8066		CFLAGS="$xorg_testset_save_CFLAGS"
8067
8068		eval supported=\$$cacheid
8069		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8070$as_echo "$supported" >&6; }
8071		if test "$supported" = "yes" ; then
8072			BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8073			found="yes"
8074		fi
8075	fi
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091xorg_testset_save_CFLAGS="$CFLAGS"
8092
8093if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8094	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8095	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8096$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8097if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8098  $as_echo_n "(cached) " >&6
8099else
8100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101/* end confdefs.h.  */
8102int i;
8103_ACEOF
8104if ac_fn_c_try_compile "$LINENO"; then :
8105  xorg_cv_cc_flag_unknown_warning_option=yes
8106else
8107  xorg_cv_cc_flag_unknown_warning_option=no
8108fi
8109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8110fi
8111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8112$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8113	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8114	CFLAGS="$xorg_testset_save_CFLAGS"
8115fi
8116
8117if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8118	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8119		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8120	fi
8121	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8122	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8123$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8124if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8125  $as_echo_n "(cached) " >&6
8126else
8127  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128/* end confdefs.h.  */
8129int i;
8130_ACEOF
8131if ac_fn_c_try_compile "$LINENO"; then :
8132  xorg_cv_cc_flag_unused_command_line_argument=yes
8133else
8134  xorg_cv_cc_flag_unused_command_line_argument=no
8135fi
8136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137fi
8138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8139$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8140	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8141	CFLAGS="$xorg_testset_save_CFLAGS"
8142fi
8143
8144found="no"
8145
8146	if test $found = "no" ; then
8147		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8148			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8149		fi
8150
8151		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8152			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8153		fi
8154
8155		CFLAGS="$CFLAGS -Werror=write-strings"
8156
8157		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8158$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8159		cacheid=xorg_cv_cc_flag__Werror_write_strings
8160		if eval \${$cacheid+:} false; then :
8161  $as_echo_n "(cached) " >&6
8162else
8163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8164/* end confdefs.h.  */
8165int i;
8166int
8167main ()
8168{
8169
8170  ;
8171  return 0;
8172}
8173_ACEOF
8174if ac_fn_c_try_link "$LINENO"; then :
8175  eval $cacheid=yes
8176else
8177  eval $cacheid=no
8178fi
8179rm -f core conftest.err conftest.$ac_objext \
8180    conftest$ac_exeext conftest.$ac_ext
8181fi
8182
8183
8184		CFLAGS="$xorg_testset_save_CFLAGS"
8185
8186		eval supported=\$$cacheid
8187		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8188$as_echo "$supported" >&6; }
8189		if test "$supported" = "yes" ; then
8190			BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8191			found="yes"
8192		fi
8193	fi
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209xorg_testset_save_CFLAGS="$CFLAGS"
8210
8211if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8212	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8213	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8214$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8215if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8216  $as_echo_n "(cached) " >&6
8217else
8218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8219/* end confdefs.h.  */
8220int i;
8221_ACEOF
8222if ac_fn_c_try_compile "$LINENO"; then :
8223  xorg_cv_cc_flag_unknown_warning_option=yes
8224else
8225  xorg_cv_cc_flag_unknown_warning_option=no
8226fi
8227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8228fi
8229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8230$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8231	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8232	CFLAGS="$xorg_testset_save_CFLAGS"
8233fi
8234
8235if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8236	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8237		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8238	fi
8239	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8240	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8241$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8242if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8243  $as_echo_n "(cached) " >&6
8244else
8245  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8246/* end confdefs.h.  */
8247int i;
8248_ACEOF
8249if ac_fn_c_try_compile "$LINENO"; then :
8250  xorg_cv_cc_flag_unused_command_line_argument=yes
8251else
8252  xorg_cv_cc_flag_unused_command_line_argument=no
8253fi
8254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8255fi
8256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8257$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8258	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8259	CFLAGS="$xorg_testset_save_CFLAGS"
8260fi
8261
8262found="no"
8263
8264	if test $found = "no" ; then
8265		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8266			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8267		fi
8268
8269		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8270			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8271		fi
8272
8273		CFLAGS="$CFLAGS -Werror=address"
8274
8275		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8276$as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8277		cacheid=xorg_cv_cc_flag__Werror_address
8278		if eval \${$cacheid+:} false; then :
8279  $as_echo_n "(cached) " >&6
8280else
8281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8282/* end confdefs.h.  */
8283int i;
8284int
8285main ()
8286{
8287
8288  ;
8289  return 0;
8290}
8291_ACEOF
8292if ac_fn_c_try_link "$LINENO"; then :
8293  eval $cacheid=yes
8294else
8295  eval $cacheid=no
8296fi
8297rm -f core conftest.err conftest.$ac_objext \
8298    conftest$ac_exeext conftest.$ac_ext
8299fi
8300
8301
8302		CFLAGS="$xorg_testset_save_CFLAGS"
8303
8304		eval supported=\$$cacheid
8305		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8306$as_echo "$supported" >&6; }
8307		if test "$supported" = "yes" ; then
8308			BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8309			found="yes"
8310		fi
8311	fi
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327xorg_testset_save_CFLAGS="$CFLAGS"
8328
8329if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8330	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8331	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8332$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8333if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8334  $as_echo_n "(cached) " >&6
8335else
8336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337/* end confdefs.h.  */
8338int i;
8339_ACEOF
8340if ac_fn_c_try_compile "$LINENO"; then :
8341  xorg_cv_cc_flag_unknown_warning_option=yes
8342else
8343  xorg_cv_cc_flag_unknown_warning_option=no
8344fi
8345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8346fi
8347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8348$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8349	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8350	CFLAGS="$xorg_testset_save_CFLAGS"
8351fi
8352
8353if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8354	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8355		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8356	fi
8357	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8358	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8359$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8360if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8361  $as_echo_n "(cached) " >&6
8362else
8363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364/* end confdefs.h.  */
8365int i;
8366_ACEOF
8367if ac_fn_c_try_compile "$LINENO"; then :
8368  xorg_cv_cc_flag_unused_command_line_argument=yes
8369else
8370  xorg_cv_cc_flag_unused_command_line_argument=no
8371fi
8372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8373fi
8374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8375$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8376	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8377	CFLAGS="$xorg_testset_save_CFLAGS"
8378fi
8379
8380found="no"
8381
8382	if test $found = "no" ; then
8383		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8384			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8385		fi
8386
8387		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8388			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8389		fi
8390
8391		CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8392
8393		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8394$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8395		cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8396		if eval \${$cacheid+:} false; then :
8397  $as_echo_n "(cached) " >&6
8398else
8399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400/* end confdefs.h.  */
8401int i;
8402int
8403main ()
8404{
8405
8406  ;
8407  return 0;
8408}
8409_ACEOF
8410if ac_fn_c_try_link "$LINENO"; then :
8411  eval $cacheid=yes
8412else
8413  eval $cacheid=no
8414fi
8415rm -f core conftest.err conftest.$ac_objext \
8416    conftest$ac_exeext conftest.$ac_ext
8417fi
8418
8419
8420		CFLAGS="$xorg_testset_save_CFLAGS"
8421
8422		eval supported=\$$cacheid
8423		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8424$as_echo "$supported" >&6; }
8425		if test "$supported" = "yes" ; then
8426			BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8427			found="yes"
8428		fi
8429	fi
8430
8431	if test $found = "no" ; then
8432		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8433			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8434		fi
8435
8436		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8437			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8438		fi
8439
8440		CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8441
8442		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8443$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8444		cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8445		if eval \${$cacheid+:} false; then :
8446  $as_echo_n "(cached) " >&6
8447else
8448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8449/* end confdefs.h.  */
8450int i;
8451int
8452main ()
8453{
8454
8455  ;
8456  return 0;
8457}
8458_ACEOF
8459if ac_fn_c_try_link "$LINENO"; then :
8460  eval $cacheid=yes
8461else
8462  eval $cacheid=no
8463fi
8464rm -f core conftest.err conftest.$ac_objext \
8465    conftest$ac_exeext conftest.$ac_ext
8466fi
8467
8468
8469		CFLAGS="$xorg_testset_save_CFLAGS"
8470
8471		eval supported=\$$cacheid
8472		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8473$as_echo "$supported" >&6; }
8474		if test "$supported" = "yes" ; then
8475			BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8476			found="yes"
8477		fi
8478	fi
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494xorg_testset_save_CFLAGS="$CFLAGS"
8495
8496if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8497	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8498	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8499$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8500if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8501  $as_echo_n "(cached) " >&6
8502else
8503  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504/* end confdefs.h.  */
8505int i;
8506_ACEOF
8507if ac_fn_c_try_compile "$LINENO"; then :
8508  xorg_cv_cc_flag_unknown_warning_option=yes
8509else
8510  xorg_cv_cc_flag_unknown_warning_option=no
8511fi
8512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8513fi
8514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8515$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8516	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8517	CFLAGS="$xorg_testset_save_CFLAGS"
8518fi
8519
8520if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8521	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8522		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8523	fi
8524	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8525	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8526$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8527if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8528  $as_echo_n "(cached) " >&6
8529else
8530  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8531/* end confdefs.h.  */
8532int i;
8533_ACEOF
8534if ac_fn_c_try_compile "$LINENO"; then :
8535  xorg_cv_cc_flag_unused_command_line_argument=yes
8536else
8537  xorg_cv_cc_flag_unused_command_line_argument=no
8538fi
8539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8540fi
8541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8542$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8543	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8544	CFLAGS="$xorg_testset_save_CFLAGS"
8545fi
8546
8547found="no"
8548
8549	if test $found = "no" ; then
8550		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8551			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8552		fi
8553
8554		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8555			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8556		fi
8557
8558		CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8559
8560		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8561$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8562		cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8563		if eval \${$cacheid+:} false; then :
8564  $as_echo_n "(cached) " >&6
8565else
8566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567/* end confdefs.h.  */
8568int i;
8569int
8570main ()
8571{
8572
8573  ;
8574  return 0;
8575}
8576_ACEOF
8577if ac_fn_c_try_link "$LINENO"; then :
8578  eval $cacheid=yes
8579else
8580  eval $cacheid=no
8581fi
8582rm -f core conftest.err conftest.$ac_objext \
8583    conftest$ac_exeext conftest.$ac_ext
8584fi
8585
8586
8587		CFLAGS="$xorg_testset_save_CFLAGS"
8588
8589		eval supported=\$$cacheid
8590		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8591$as_echo "$supported" >&6; }
8592		if test "$supported" = "yes" ; then
8593			BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8594			found="yes"
8595		fi
8596	fi
8597
8598 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8599else
8600{ $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
8601$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;}
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615xorg_testset_save_CFLAGS="$CFLAGS"
8616
8617if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8618	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8619	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8620$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8621if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8622  $as_echo_n "(cached) " >&6
8623else
8624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625/* end confdefs.h.  */
8626int i;
8627_ACEOF
8628if ac_fn_c_try_compile "$LINENO"; then :
8629  xorg_cv_cc_flag_unknown_warning_option=yes
8630else
8631  xorg_cv_cc_flag_unknown_warning_option=no
8632fi
8633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8634fi
8635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8636$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8637	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8638	CFLAGS="$xorg_testset_save_CFLAGS"
8639fi
8640
8641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8642	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8643		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8644	fi
8645	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8646	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8647$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8648if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8649  $as_echo_n "(cached) " >&6
8650else
8651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652/* end confdefs.h.  */
8653int i;
8654_ACEOF
8655if ac_fn_c_try_compile "$LINENO"; then :
8656  xorg_cv_cc_flag_unused_command_line_argument=yes
8657else
8658  xorg_cv_cc_flag_unused_command_line_argument=no
8659fi
8660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8661fi
8662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8663$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8664	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8665	CFLAGS="$xorg_testset_save_CFLAGS"
8666fi
8667
8668found="no"
8669
8670	if test $found = "no" ; then
8671		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8672			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8673		fi
8674
8675		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8676			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8677		fi
8678
8679		CFLAGS="$CFLAGS -Wimplicit"
8680
8681		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8682$as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8683		cacheid=xorg_cv_cc_flag__Wimplicit
8684		if eval \${$cacheid+:} false; then :
8685  $as_echo_n "(cached) " >&6
8686else
8687  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688/* end confdefs.h.  */
8689int i;
8690int
8691main ()
8692{
8693
8694  ;
8695  return 0;
8696}
8697_ACEOF
8698if ac_fn_c_try_link "$LINENO"; then :
8699  eval $cacheid=yes
8700else
8701  eval $cacheid=no
8702fi
8703rm -f core conftest.err conftest.$ac_objext \
8704    conftest$ac_exeext conftest.$ac_ext
8705fi
8706
8707
8708		CFLAGS="$xorg_testset_save_CFLAGS"
8709
8710		eval supported=\$$cacheid
8711		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8712$as_echo "$supported" >&6; }
8713		if test "$supported" = "yes" ; then
8714			BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8715			found="yes"
8716		fi
8717	fi
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733xorg_testset_save_CFLAGS="$CFLAGS"
8734
8735if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8736	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8737	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8738$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8739if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8740  $as_echo_n "(cached) " >&6
8741else
8742  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8743/* end confdefs.h.  */
8744int i;
8745_ACEOF
8746if ac_fn_c_try_compile "$LINENO"; then :
8747  xorg_cv_cc_flag_unknown_warning_option=yes
8748else
8749  xorg_cv_cc_flag_unknown_warning_option=no
8750fi
8751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8752fi
8753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8754$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8755	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8756	CFLAGS="$xorg_testset_save_CFLAGS"
8757fi
8758
8759if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8760	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8761		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8762	fi
8763	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8764	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8765$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8766if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8767  $as_echo_n "(cached) " >&6
8768else
8769  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770/* end confdefs.h.  */
8771int i;
8772_ACEOF
8773if ac_fn_c_try_compile "$LINENO"; then :
8774  xorg_cv_cc_flag_unused_command_line_argument=yes
8775else
8776  xorg_cv_cc_flag_unused_command_line_argument=no
8777fi
8778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8779fi
8780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8781$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8782	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8783	CFLAGS="$xorg_testset_save_CFLAGS"
8784fi
8785
8786found="no"
8787
8788	if test $found = "no" ; then
8789		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8790			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8791		fi
8792
8793		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8794			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8795		fi
8796
8797		CFLAGS="$CFLAGS -Wnonnull"
8798
8799		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8800$as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8801		cacheid=xorg_cv_cc_flag__Wnonnull
8802		if eval \${$cacheid+:} false; then :
8803  $as_echo_n "(cached) " >&6
8804else
8805  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806/* end confdefs.h.  */
8807int i;
8808int
8809main ()
8810{
8811
8812  ;
8813  return 0;
8814}
8815_ACEOF
8816if ac_fn_c_try_link "$LINENO"; then :
8817  eval $cacheid=yes
8818else
8819  eval $cacheid=no
8820fi
8821rm -f core conftest.err conftest.$ac_objext \
8822    conftest$ac_exeext conftest.$ac_ext
8823fi
8824
8825
8826		CFLAGS="$xorg_testset_save_CFLAGS"
8827
8828		eval supported=\$$cacheid
8829		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8830$as_echo "$supported" >&6; }
8831		if test "$supported" = "yes" ; then
8832			BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8833			found="yes"
8834		fi
8835	fi
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851xorg_testset_save_CFLAGS="$CFLAGS"
8852
8853if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8854	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8855	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8856$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8857if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8858  $as_echo_n "(cached) " >&6
8859else
8860  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861/* end confdefs.h.  */
8862int i;
8863_ACEOF
8864if ac_fn_c_try_compile "$LINENO"; then :
8865  xorg_cv_cc_flag_unknown_warning_option=yes
8866else
8867  xorg_cv_cc_flag_unknown_warning_option=no
8868fi
8869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8870fi
8871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8872$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8873	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8874	CFLAGS="$xorg_testset_save_CFLAGS"
8875fi
8876
8877if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8878	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8879		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8880	fi
8881	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8882	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8883$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8884if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8885  $as_echo_n "(cached) " >&6
8886else
8887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888/* end confdefs.h.  */
8889int i;
8890_ACEOF
8891if ac_fn_c_try_compile "$LINENO"; then :
8892  xorg_cv_cc_flag_unused_command_line_argument=yes
8893else
8894  xorg_cv_cc_flag_unused_command_line_argument=no
8895fi
8896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8897fi
8898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8899$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8900	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8901	CFLAGS="$xorg_testset_save_CFLAGS"
8902fi
8903
8904found="no"
8905
8906	if test $found = "no" ; then
8907		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8908			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8909		fi
8910
8911		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8912			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8913		fi
8914
8915		CFLAGS="$CFLAGS -Winit-self"
8916
8917		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8918$as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8919		cacheid=xorg_cv_cc_flag__Winit_self
8920		if eval \${$cacheid+:} false; then :
8921  $as_echo_n "(cached) " >&6
8922else
8923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8924/* end confdefs.h.  */
8925int i;
8926int
8927main ()
8928{
8929
8930  ;
8931  return 0;
8932}
8933_ACEOF
8934if ac_fn_c_try_link "$LINENO"; then :
8935  eval $cacheid=yes
8936else
8937  eval $cacheid=no
8938fi
8939rm -f core conftest.err conftest.$ac_objext \
8940    conftest$ac_exeext conftest.$ac_ext
8941fi
8942
8943
8944		CFLAGS="$xorg_testset_save_CFLAGS"
8945
8946		eval supported=\$$cacheid
8947		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8948$as_echo "$supported" >&6; }
8949		if test "$supported" = "yes" ; then
8950			BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8951			found="yes"
8952		fi
8953	fi
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969xorg_testset_save_CFLAGS="$CFLAGS"
8970
8971if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8972	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8973	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8974$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8975if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8976  $as_echo_n "(cached) " >&6
8977else
8978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979/* end confdefs.h.  */
8980int i;
8981_ACEOF
8982if ac_fn_c_try_compile "$LINENO"; then :
8983  xorg_cv_cc_flag_unknown_warning_option=yes
8984else
8985  xorg_cv_cc_flag_unknown_warning_option=no
8986fi
8987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988fi
8989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8990$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8991	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8992	CFLAGS="$xorg_testset_save_CFLAGS"
8993fi
8994
8995if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8996	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8997		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8998	fi
8999	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9000	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9001$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9002if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9003  $as_echo_n "(cached) " >&6
9004else
9005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006/* end confdefs.h.  */
9007int i;
9008_ACEOF
9009if ac_fn_c_try_compile "$LINENO"; then :
9010  xorg_cv_cc_flag_unused_command_line_argument=yes
9011else
9012  xorg_cv_cc_flag_unused_command_line_argument=no
9013fi
9014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9015fi
9016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9017$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9018	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9019	CFLAGS="$xorg_testset_save_CFLAGS"
9020fi
9021
9022found="no"
9023
9024	if test $found = "no" ; then
9025		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9026			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9027		fi
9028
9029		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9030			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9031		fi
9032
9033		CFLAGS="$CFLAGS -Wmain"
9034
9035		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9036$as_echo_n "checking if $CC supports -Wmain... " >&6; }
9037		cacheid=xorg_cv_cc_flag__Wmain
9038		if eval \${$cacheid+:} false; then :
9039  $as_echo_n "(cached) " >&6
9040else
9041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042/* end confdefs.h.  */
9043int i;
9044int
9045main ()
9046{
9047
9048  ;
9049  return 0;
9050}
9051_ACEOF
9052if ac_fn_c_try_link "$LINENO"; then :
9053  eval $cacheid=yes
9054else
9055  eval $cacheid=no
9056fi
9057rm -f core conftest.err conftest.$ac_objext \
9058    conftest$ac_exeext conftest.$ac_ext
9059fi
9060
9061
9062		CFLAGS="$xorg_testset_save_CFLAGS"
9063
9064		eval supported=\$$cacheid
9065		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9066$as_echo "$supported" >&6; }
9067		if test "$supported" = "yes" ; then
9068			BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9069			found="yes"
9070		fi
9071	fi
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087xorg_testset_save_CFLAGS="$CFLAGS"
9088
9089if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9090	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9091	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9092$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9093if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9094  $as_echo_n "(cached) " >&6
9095else
9096  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9097/* end confdefs.h.  */
9098int i;
9099_ACEOF
9100if ac_fn_c_try_compile "$LINENO"; then :
9101  xorg_cv_cc_flag_unknown_warning_option=yes
9102else
9103  xorg_cv_cc_flag_unknown_warning_option=no
9104fi
9105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9106fi
9107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9108$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9109	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9110	CFLAGS="$xorg_testset_save_CFLAGS"
9111fi
9112
9113if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9114	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9115		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9116	fi
9117	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9118	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9119$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9120if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9121  $as_echo_n "(cached) " >&6
9122else
9123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124/* end confdefs.h.  */
9125int i;
9126_ACEOF
9127if ac_fn_c_try_compile "$LINENO"; then :
9128  xorg_cv_cc_flag_unused_command_line_argument=yes
9129else
9130  xorg_cv_cc_flag_unused_command_line_argument=no
9131fi
9132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9133fi
9134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9135$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9136	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9137	CFLAGS="$xorg_testset_save_CFLAGS"
9138fi
9139
9140found="no"
9141
9142	if test $found = "no" ; then
9143		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9144			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9145		fi
9146
9147		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9148			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9149		fi
9150
9151		CFLAGS="$CFLAGS -Wmissing-braces"
9152
9153		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9154$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9155		cacheid=xorg_cv_cc_flag__Wmissing_braces
9156		if eval \${$cacheid+:} false; then :
9157  $as_echo_n "(cached) " >&6
9158else
9159  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160/* end confdefs.h.  */
9161int i;
9162int
9163main ()
9164{
9165
9166  ;
9167  return 0;
9168}
9169_ACEOF
9170if ac_fn_c_try_link "$LINENO"; then :
9171  eval $cacheid=yes
9172else
9173  eval $cacheid=no
9174fi
9175rm -f core conftest.err conftest.$ac_objext \
9176    conftest$ac_exeext conftest.$ac_ext
9177fi
9178
9179
9180		CFLAGS="$xorg_testset_save_CFLAGS"
9181
9182		eval supported=\$$cacheid
9183		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9184$as_echo "$supported" >&6; }
9185		if test "$supported" = "yes" ; then
9186			BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9187			found="yes"
9188		fi
9189	fi
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205xorg_testset_save_CFLAGS="$CFLAGS"
9206
9207if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9208	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9209	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9210$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9211if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9212  $as_echo_n "(cached) " >&6
9213else
9214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9215/* end confdefs.h.  */
9216int i;
9217_ACEOF
9218if ac_fn_c_try_compile "$LINENO"; then :
9219  xorg_cv_cc_flag_unknown_warning_option=yes
9220else
9221  xorg_cv_cc_flag_unknown_warning_option=no
9222fi
9223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9224fi
9225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9226$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9227	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9228	CFLAGS="$xorg_testset_save_CFLAGS"
9229fi
9230
9231if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9232	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9233		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9234	fi
9235	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9236	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9237$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9238if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9239  $as_echo_n "(cached) " >&6
9240else
9241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242/* end confdefs.h.  */
9243int i;
9244_ACEOF
9245if ac_fn_c_try_compile "$LINENO"; then :
9246  xorg_cv_cc_flag_unused_command_line_argument=yes
9247else
9248  xorg_cv_cc_flag_unused_command_line_argument=no
9249fi
9250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9251fi
9252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9253$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9254	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9255	CFLAGS="$xorg_testset_save_CFLAGS"
9256fi
9257
9258found="no"
9259
9260	if test $found = "no" ; then
9261		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9262			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9263		fi
9264
9265		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9266			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9267		fi
9268
9269		CFLAGS="$CFLAGS -Wsequence-point"
9270
9271		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9272$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9273		cacheid=xorg_cv_cc_flag__Wsequence_point
9274		if eval \${$cacheid+:} false; then :
9275  $as_echo_n "(cached) " >&6
9276else
9277  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278/* end confdefs.h.  */
9279int i;
9280int
9281main ()
9282{
9283
9284  ;
9285  return 0;
9286}
9287_ACEOF
9288if ac_fn_c_try_link "$LINENO"; then :
9289  eval $cacheid=yes
9290else
9291  eval $cacheid=no
9292fi
9293rm -f core conftest.err conftest.$ac_objext \
9294    conftest$ac_exeext conftest.$ac_ext
9295fi
9296
9297
9298		CFLAGS="$xorg_testset_save_CFLAGS"
9299
9300		eval supported=\$$cacheid
9301		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9302$as_echo "$supported" >&6; }
9303		if test "$supported" = "yes" ; then
9304			BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9305			found="yes"
9306		fi
9307	fi
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323xorg_testset_save_CFLAGS="$CFLAGS"
9324
9325if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9326	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9327	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9328$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9329if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9330  $as_echo_n "(cached) " >&6
9331else
9332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333/* end confdefs.h.  */
9334int i;
9335_ACEOF
9336if ac_fn_c_try_compile "$LINENO"; then :
9337  xorg_cv_cc_flag_unknown_warning_option=yes
9338else
9339  xorg_cv_cc_flag_unknown_warning_option=no
9340fi
9341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9342fi
9343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9344$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9345	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9346	CFLAGS="$xorg_testset_save_CFLAGS"
9347fi
9348
9349if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9350	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9351		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9352	fi
9353	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9354	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9355$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9356if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9357  $as_echo_n "(cached) " >&6
9358else
9359  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360/* end confdefs.h.  */
9361int i;
9362_ACEOF
9363if ac_fn_c_try_compile "$LINENO"; then :
9364  xorg_cv_cc_flag_unused_command_line_argument=yes
9365else
9366  xorg_cv_cc_flag_unused_command_line_argument=no
9367fi
9368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9369fi
9370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9371$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9372	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9373	CFLAGS="$xorg_testset_save_CFLAGS"
9374fi
9375
9376found="no"
9377
9378	if test $found = "no" ; then
9379		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9380			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9381		fi
9382
9383		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9384			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9385		fi
9386
9387		CFLAGS="$CFLAGS -Wreturn-type"
9388
9389		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9390$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9391		cacheid=xorg_cv_cc_flag__Wreturn_type
9392		if eval \${$cacheid+:} false; then :
9393  $as_echo_n "(cached) " >&6
9394else
9395  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396/* end confdefs.h.  */
9397int i;
9398int
9399main ()
9400{
9401
9402  ;
9403  return 0;
9404}
9405_ACEOF
9406if ac_fn_c_try_link "$LINENO"; then :
9407  eval $cacheid=yes
9408else
9409  eval $cacheid=no
9410fi
9411rm -f core conftest.err conftest.$ac_objext \
9412    conftest$ac_exeext conftest.$ac_ext
9413fi
9414
9415
9416		CFLAGS="$xorg_testset_save_CFLAGS"
9417
9418		eval supported=\$$cacheid
9419		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9420$as_echo "$supported" >&6; }
9421		if test "$supported" = "yes" ; then
9422			BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9423			found="yes"
9424		fi
9425	fi
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441xorg_testset_save_CFLAGS="$CFLAGS"
9442
9443if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9444	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9445	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9446$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9447if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9448  $as_echo_n "(cached) " >&6
9449else
9450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451/* end confdefs.h.  */
9452int i;
9453_ACEOF
9454if ac_fn_c_try_compile "$LINENO"; then :
9455  xorg_cv_cc_flag_unknown_warning_option=yes
9456else
9457  xorg_cv_cc_flag_unknown_warning_option=no
9458fi
9459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9460fi
9461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9462$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9463	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9464	CFLAGS="$xorg_testset_save_CFLAGS"
9465fi
9466
9467if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9468	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9469		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9470	fi
9471	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9472	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9473$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9474if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9475  $as_echo_n "(cached) " >&6
9476else
9477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478/* end confdefs.h.  */
9479int i;
9480_ACEOF
9481if ac_fn_c_try_compile "$LINENO"; then :
9482  xorg_cv_cc_flag_unused_command_line_argument=yes
9483else
9484  xorg_cv_cc_flag_unused_command_line_argument=no
9485fi
9486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9487fi
9488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9489$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9490	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9491	CFLAGS="$xorg_testset_save_CFLAGS"
9492fi
9493
9494found="no"
9495
9496	if test $found = "no" ; then
9497		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9498			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9499		fi
9500
9501		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9502			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9503		fi
9504
9505		CFLAGS="$CFLAGS -Wtrigraphs"
9506
9507		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9508$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9509		cacheid=xorg_cv_cc_flag__Wtrigraphs
9510		if eval \${$cacheid+:} false; then :
9511  $as_echo_n "(cached) " >&6
9512else
9513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9514/* end confdefs.h.  */
9515int i;
9516int
9517main ()
9518{
9519
9520  ;
9521  return 0;
9522}
9523_ACEOF
9524if ac_fn_c_try_link "$LINENO"; then :
9525  eval $cacheid=yes
9526else
9527  eval $cacheid=no
9528fi
9529rm -f core conftest.err conftest.$ac_objext \
9530    conftest$ac_exeext conftest.$ac_ext
9531fi
9532
9533
9534		CFLAGS="$xorg_testset_save_CFLAGS"
9535
9536		eval supported=\$$cacheid
9537		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9538$as_echo "$supported" >&6; }
9539		if test "$supported" = "yes" ; then
9540			BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9541			found="yes"
9542		fi
9543	fi
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559xorg_testset_save_CFLAGS="$CFLAGS"
9560
9561if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9562	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9563	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9564$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9565if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9566  $as_echo_n "(cached) " >&6
9567else
9568  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9569/* end confdefs.h.  */
9570int i;
9571_ACEOF
9572if ac_fn_c_try_compile "$LINENO"; then :
9573  xorg_cv_cc_flag_unknown_warning_option=yes
9574else
9575  xorg_cv_cc_flag_unknown_warning_option=no
9576fi
9577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9578fi
9579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9580$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9581	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9582	CFLAGS="$xorg_testset_save_CFLAGS"
9583fi
9584
9585if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9586	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9587		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9588	fi
9589	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9590	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9591$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9592if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9593  $as_echo_n "(cached) " >&6
9594else
9595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596/* end confdefs.h.  */
9597int i;
9598_ACEOF
9599if ac_fn_c_try_compile "$LINENO"; then :
9600  xorg_cv_cc_flag_unused_command_line_argument=yes
9601else
9602  xorg_cv_cc_flag_unused_command_line_argument=no
9603fi
9604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9605fi
9606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9607$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9608	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9609	CFLAGS="$xorg_testset_save_CFLAGS"
9610fi
9611
9612found="no"
9613
9614	if test $found = "no" ; then
9615		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9616			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9617		fi
9618
9619		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9620			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9621		fi
9622
9623		CFLAGS="$CFLAGS -Warray-bounds"
9624
9625		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9626$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9627		cacheid=xorg_cv_cc_flag__Warray_bounds
9628		if eval \${$cacheid+:} false; then :
9629  $as_echo_n "(cached) " >&6
9630else
9631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632/* end confdefs.h.  */
9633int i;
9634int
9635main ()
9636{
9637
9638  ;
9639  return 0;
9640}
9641_ACEOF
9642if ac_fn_c_try_link "$LINENO"; then :
9643  eval $cacheid=yes
9644else
9645  eval $cacheid=no
9646fi
9647rm -f core conftest.err conftest.$ac_objext \
9648    conftest$ac_exeext conftest.$ac_ext
9649fi
9650
9651
9652		CFLAGS="$xorg_testset_save_CFLAGS"
9653
9654		eval supported=\$$cacheid
9655		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9656$as_echo "$supported" >&6; }
9657		if test "$supported" = "yes" ; then
9658			BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9659			found="yes"
9660		fi
9661	fi
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677xorg_testset_save_CFLAGS="$CFLAGS"
9678
9679if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9680	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9681	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9682$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9683if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9684  $as_echo_n "(cached) " >&6
9685else
9686  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687/* end confdefs.h.  */
9688int i;
9689_ACEOF
9690if ac_fn_c_try_compile "$LINENO"; then :
9691  xorg_cv_cc_flag_unknown_warning_option=yes
9692else
9693  xorg_cv_cc_flag_unknown_warning_option=no
9694fi
9695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9696fi
9697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9698$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9699	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9700	CFLAGS="$xorg_testset_save_CFLAGS"
9701fi
9702
9703if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9704	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9705		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9706	fi
9707	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9708	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9709$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9710if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9711  $as_echo_n "(cached) " >&6
9712else
9713  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714/* end confdefs.h.  */
9715int i;
9716_ACEOF
9717if ac_fn_c_try_compile "$LINENO"; then :
9718  xorg_cv_cc_flag_unused_command_line_argument=yes
9719else
9720  xorg_cv_cc_flag_unused_command_line_argument=no
9721fi
9722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9723fi
9724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9725$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9726	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9727	CFLAGS="$xorg_testset_save_CFLAGS"
9728fi
9729
9730found="no"
9731
9732	if test $found = "no" ; then
9733		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9734			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9735		fi
9736
9737		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9738			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9739		fi
9740
9741		CFLAGS="$CFLAGS -Wwrite-strings"
9742
9743		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9744$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9745		cacheid=xorg_cv_cc_flag__Wwrite_strings
9746		if eval \${$cacheid+:} false; then :
9747  $as_echo_n "(cached) " >&6
9748else
9749  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9750/* end confdefs.h.  */
9751int i;
9752int
9753main ()
9754{
9755
9756  ;
9757  return 0;
9758}
9759_ACEOF
9760if ac_fn_c_try_link "$LINENO"; then :
9761  eval $cacheid=yes
9762else
9763  eval $cacheid=no
9764fi
9765rm -f core conftest.err conftest.$ac_objext \
9766    conftest$ac_exeext conftest.$ac_ext
9767fi
9768
9769
9770		CFLAGS="$xorg_testset_save_CFLAGS"
9771
9772		eval supported=\$$cacheid
9773		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9774$as_echo "$supported" >&6; }
9775		if test "$supported" = "yes" ; then
9776			BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9777			found="yes"
9778		fi
9779	fi
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795xorg_testset_save_CFLAGS="$CFLAGS"
9796
9797if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9798	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9799	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9800$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9801if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9802  $as_echo_n "(cached) " >&6
9803else
9804  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805/* end confdefs.h.  */
9806int i;
9807_ACEOF
9808if ac_fn_c_try_compile "$LINENO"; then :
9809  xorg_cv_cc_flag_unknown_warning_option=yes
9810else
9811  xorg_cv_cc_flag_unknown_warning_option=no
9812fi
9813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9814fi
9815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9816$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9817	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9818	CFLAGS="$xorg_testset_save_CFLAGS"
9819fi
9820
9821if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9822	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9823		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9824	fi
9825	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9826	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9827$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9828if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9829  $as_echo_n "(cached) " >&6
9830else
9831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832/* end confdefs.h.  */
9833int i;
9834_ACEOF
9835if ac_fn_c_try_compile "$LINENO"; then :
9836  xorg_cv_cc_flag_unused_command_line_argument=yes
9837else
9838  xorg_cv_cc_flag_unused_command_line_argument=no
9839fi
9840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9841fi
9842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9843$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9844	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9845	CFLAGS="$xorg_testset_save_CFLAGS"
9846fi
9847
9848found="no"
9849
9850	if test $found = "no" ; then
9851		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9852			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9853		fi
9854
9855		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9856			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9857		fi
9858
9859		CFLAGS="$CFLAGS -Waddress"
9860
9861		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9862$as_echo_n "checking if $CC supports -Waddress... " >&6; }
9863		cacheid=xorg_cv_cc_flag__Waddress
9864		if eval \${$cacheid+:} false; then :
9865  $as_echo_n "(cached) " >&6
9866else
9867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9868/* end confdefs.h.  */
9869int i;
9870int
9871main ()
9872{
9873
9874  ;
9875  return 0;
9876}
9877_ACEOF
9878if ac_fn_c_try_link "$LINENO"; then :
9879  eval $cacheid=yes
9880else
9881  eval $cacheid=no
9882fi
9883rm -f core conftest.err conftest.$ac_objext \
9884    conftest$ac_exeext conftest.$ac_ext
9885fi
9886
9887
9888		CFLAGS="$xorg_testset_save_CFLAGS"
9889
9890		eval supported=\$$cacheid
9891		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9892$as_echo "$supported" >&6; }
9893		if test "$supported" = "yes" ; then
9894			BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9895			found="yes"
9896		fi
9897	fi
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913xorg_testset_save_CFLAGS="$CFLAGS"
9914
9915if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9916	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9917	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9918$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9919if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9920  $as_echo_n "(cached) " >&6
9921else
9922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9923/* end confdefs.h.  */
9924int i;
9925_ACEOF
9926if ac_fn_c_try_compile "$LINENO"; then :
9927  xorg_cv_cc_flag_unknown_warning_option=yes
9928else
9929  xorg_cv_cc_flag_unknown_warning_option=no
9930fi
9931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9932fi
9933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9934$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9935	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9936	CFLAGS="$xorg_testset_save_CFLAGS"
9937fi
9938
9939if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9940	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9941		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9942	fi
9943	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9944	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9945$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9946if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9947  $as_echo_n "(cached) " >&6
9948else
9949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950/* end confdefs.h.  */
9951int i;
9952_ACEOF
9953if ac_fn_c_try_compile "$LINENO"; then :
9954  xorg_cv_cc_flag_unused_command_line_argument=yes
9955else
9956  xorg_cv_cc_flag_unused_command_line_argument=no
9957fi
9958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9959fi
9960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9961$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9962	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9963	CFLAGS="$xorg_testset_save_CFLAGS"
9964fi
9965
9966found="no"
9967
9968	if test $found = "no" ; then
9969		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9970			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9971		fi
9972
9973		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9974			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9975		fi
9976
9977		CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9978
9979		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9980$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9981		cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9982		if eval \${$cacheid+:} false; then :
9983  $as_echo_n "(cached) " >&6
9984else
9985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9986/* end confdefs.h.  */
9987int i;
9988int
9989main ()
9990{
9991
9992  ;
9993  return 0;
9994}
9995_ACEOF
9996if ac_fn_c_try_link "$LINENO"; then :
9997  eval $cacheid=yes
9998else
9999  eval $cacheid=no
10000fi
10001rm -f core conftest.err conftest.$ac_objext \
10002    conftest$ac_exeext conftest.$ac_ext
10003fi
10004
10005
10006		CFLAGS="$xorg_testset_save_CFLAGS"
10007
10008		eval supported=\$$cacheid
10009		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10010$as_echo "$supported" >&6; }
10011		if test "$supported" = "yes" ; then
10012			BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10013			found="yes"
10014		fi
10015	fi
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031xorg_testset_save_CFLAGS="$CFLAGS"
10032
10033if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10034	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10035	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10036$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10037if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10038  $as_echo_n "(cached) " >&6
10039else
10040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041/* end confdefs.h.  */
10042int i;
10043_ACEOF
10044if ac_fn_c_try_compile "$LINENO"; then :
10045  xorg_cv_cc_flag_unknown_warning_option=yes
10046else
10047  xorg_cv_cc_flag_unknown_warning_option=no
10048fi
10049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10050fi
10051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10052$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10053	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10054	CFLAGS="$xorg_testset_save_CFLAGS"
10055fi
10056
10057if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10058	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10059		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10060	fi
10061	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10062	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10063$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10064if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10065  $as_echo_n "(cached) " >&6
10066else
10067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068/* end confdefs.h.  */
10069int i;
10070_ACEOF
10071if ac_fn_c_try_compile "$LINENO"; then :
10072  xorg_cv_cc_flag_unused_command_line_argument=yes
10073else
10074  xorg_cv_cc_flag_unused_command_line_argument=no
10075fi
10076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10077fi
10078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10079$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10080	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10081	CFLAGS="$xorg_testset_save_CFLAGS"
10082fi
10083
10084found="no"
10085
10086	if test $found = "no" ; then
10087		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10088			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10089		fi
10090
10091		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10092			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10093		fi
10094
10095		CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10096
10097		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10098$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10099		cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10100		if eval \${$cacheid+:} false; then :
10101  $as_echo_n "(cached) " >&6
10102else
10103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104/* end confdefs.h.  */
10105int i;
10106int
10107main ()
10108{
10109
10110  ;
10111  return 0;
10112}
10113_ACEOF
10114if ac_fn_c_try_link "$LINENO"; then :
10115  eval $cacheid=yes
10116else
10117  eval $cacheid=no
10118fi
10119rm -f core conftest.err conftest.$ac_objext \
10120    conftest$ac_exeext conftest.$ac_ext
10121fi
10122
10123
10124		CFLAGS="$xorg_testset_save_CFLAGS"
10125
10126		eval supported=\$$cacheid
10127		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10128$as_echo "$supported" >&6; }
10129		if test "$supported" = "yes" ; then
10130			BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10131			found="yes"
10132		fi
10133	fi
10134
10135
10136fi
10137
10138
10139
10140
10141
10142
10143
10144		CWARNFLAGS="$BASE_CFLAGS"
10145		if  test "x$GCC" = xyes ; then
10146		    CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10147		fi
10148
10149
10150
10151
10152
10153
10154
10155
10156# Check whether --enable-strict-compilation was given.
10157if test "${enable_strict_compilation+set}" = set; then :
10158  enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10159else
10160  STRICT_COMPILE=no
10161fi
10162
10163
10164
10165
10166
10167
10168STRICT_CFLAGS=""
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182xorg_testset_save_CFLAGS="$CFLAGS"
10183
10184if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10185	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10186	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10187$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10188if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10189  $as_echo_n "(cached) " >&6
10190else
10191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192/* end confdefs.h.  */
10193int i;
10194_ACEOF
10195if ac_fn_c_try_compile "$LINENO"; then :
10196  xorg_cv_cc_flag_unknown_warning_option=yes
10197else
10198  xorg_cv_cc_flag_unknown_warning_option=no
10199fi
10200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10201fi
10202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10203$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10204	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10205	CFLAGS="$xorg_testset_save_CFLAGS"
10206fi
10207
10208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10209	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10210		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10211	fi
10212	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10213	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10214$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10215if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10216  $as_echo_n "(cached) " >&6
10217else
10218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219/* end confdefs.h.  */
10220int i;
10221_ACEOF
10222if ac_fn_c_try_compile "$LINENO"; then :
10223  xorg_cv_cc_flag_unused_command_line_argument=yes
10224else
10225  xorg_cv_cc_flag_unused_command_line_argument=no
10226fi
10227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10228fi
10229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10230$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10231	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10232	CFLAGS="$xorg_testset_save_CFLAGS"
10233fi
10234
10235found="no"
10236
10237	if test $found = "no" ; then
10238		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10239			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10240		fi
10241
10242		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10243			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10244		fi
10245
10246		CFLAGS="$CFLAGS -pedantic"
10247
10248		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10249$as_echo_n "checking if $CC supports -pedantic... " >&6; }
10250		cacheid=xorg_cv_cc_flag__pedantic
10251		if eval \${$cacheid+:} false; then :
10252  $as_echo_n "(cached) " >&6
10253else
10254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10255/* end confdefs.h.  */
10256int i;
10257int
10258main ()
10259{
10260
10261  ;
10262  return 0;
10263}
10264_ACEOF
10265if ac_fn_c_try_link "$LINENO"; then :
10266  eval $cacheid=yes
10267else
10268  eval $cacheid=no
10269fi
10270rm -f core conftest.err conftest.$ac_objext \
10271    conftest$ac_exeext conftest.$ac_ext
10272fi
10273
10274
10275		CFLAGS="$xorg_testset_save_CFLAGS"
10276
10277		eval supported=\$$cacheid
10278		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10279$as_echo "$supported" >&6; }
10280		if test "$supported" = "yes" ; then
10281			STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10282			found="yes"
10283		fi
10284	fi
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300xorg_testset_save_CFLAGS="$CFLAGS"
10301
10302if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10303	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10304	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10305$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10306if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10307  $as_echo_n "(cached) " >&6
10308else
10309  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310/* end confdefs.h.  */
10311int i;
10312_ACEOF
10313if ac_fn_c_try_compile "$LINENO"; then :
10314  xorg_cv_cc_flag_unknown_warning_option=yes
10315else
10316  xorg_cv_cc_flag_unknown_warning_option=no
10317fi
10318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10319fi
10320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10321$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10322	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10323	CFLAGS="$xorg_testset_save_CFLAGS"
10324fi
10325
10326if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10327	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10328		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10329	fi
10330	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10331	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10332$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10333if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10334  $as_echo_n "(cached) " >&6
10335else
10336  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10337/* end confdefs.h.  */
10338int i;
10339_ACEOF
10340if ac_fn_c_try_compile "$LINENO"; then :
10341  xorg_cv_cc_flag_unused_command_line_argument=yes
10342else
10343  xorg_cv_cc_flag_unused_command_line_argument=no
10344fi
10345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10346fi
10347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10348$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10349	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10350	CFLAGS="$xorg_testset_save_CFLAGS"
10351fi
10352
10353found="no"
10354
10355	if test $found = "no" ; then
10356		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10357			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10358		fi
10359
10360		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10361			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10362		fi
10363
10364		CFLAGS="$CFLAGS -Werror"
10365
10366		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10367$as_echo_n "checking if $CC supports -Werror... " >&6; }
10368		cacheid=xorg_cv_cc_flag__Werror
10369		if eval \${$cacheid+:} false; then :
10370  $as_echo_n "(cached) " >&6
10371else
10372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10373/* end confdefs.h.  */
10374int i;
10375int
10376main ()
10377{
10378
10379  ;
10380  return 0;
10381}
10382_ACEOF
10383if ac_fn_c_try_link "$LINENO"; then :
10384  eval $cacheid=yes
10385else
10386  eval $cacheid=no
10387fi
10388rm -f core conftest.err conftest.$ac_objext \
10389    conftest$ac_exeext conftest.$ac_ext
10390fi
10391
10392
10393		CFLAGS="$xorg_testset_save_CFLAGS"
10394
10395		eval supported=\$$cacheid
10396		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10397$as_echo "$supported" >&6; }
10398		if test "$supported" = "yes" ; then
10399			STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10400			found="yes"
10401		fi
10402	fi
10403
10404	if test $found = "no" ; then
10405		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10406			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10407		fi
10408
10409		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10410			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10411		fi
10412
10413		CFLAGS="$CFLAGS -errwarn"
10414
10415		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10416$as_echo_n "checking if $CC supports -errwarn... " >&6; }
10417		cacheid=xorg_cv_cc_flag__errwarn
10418		if eval \${$cacheid+:} false; then :
10419  $as_echo_n "(cached) " >&6
10420else
10421  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422/* end confdefs.h.  */
10423int i;
10424int
10425main ()
10426{
10427
10428  ;
10429  return 0;
10430}
10431_ACEOF
10432if ac_fn_c_try_link "$LINENO"; then :
10433  eval $cacheid=yes
10434else
10435  eval $cacheid=no
10436fi
10437rm -f core conftest.err conftest.$ac_objext \
10438    conftest$ac_exeext conftest.$ac_ext
10439fi
10440
10441
10442		CFLAGS="$xorg_testset_save_CFLAGS"
10443
10444		eval supported=\$$cacheid
10445		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10446$as_echo "$supported" >&6; }
10447		if test "$supported" = "yes" ; then
10448			STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10449			found="yes"
10450		fi
10451	fi
10452
10453
10454
10455# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10456# activate it with -Werror, so we add it here explicitly.
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470xorg_testset_save_CFLAGS="$CFLAGS"
10471
10472if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10473	CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10474	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10475$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10476if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10477  $as_echo_n "(cached) " >&6
10478else
10479  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10480/* end confdefs.h.  */
10481int i;
10482_ACEOF
10483if ac_fn_c_try_compile "$LINENO"; then :
10484  xorg_cv_cc_flag_unknown_warning_option=yes
10485else
10486  xorg_cv_cc_flag_unknown_warning_option=no
10487fi
10488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10489fi
10490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10491$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10492	xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10493	CFLAGS="$xorg_testset_save_CFLAGS"
10494fi
10495
10496if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10497	if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10498		CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10499	fi
10500	CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10501	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10502$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10503if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10504  $as_echo_n "(cached) " >&6
10505else
10506  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10507/* end confdefs.h.  */
10508int i;
10509_ACEOF
10510if ac_fn_c_try_compile "$LINENO"; then :
10511  xorg_cv_cc_flag_unused_command_line_argument=yes
10512else
10513  xorg_cv_cc_flag_unused_command_line_argument=no
10514fi
10515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10516fi
10517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10518$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10519	xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10520	CFLAGS="$xorg_testset_save_CFLAGS"
10521fi
10522
10523found="no"
10524
10525	if test $found = "no" ; then
10526		if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10527			CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10528		fi
10529
10530		if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10531			CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10532		fi
10533
10534		CFLAGS="$CFLAGS -Werror=attributes"
10535
10536		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10537$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10538		cacheid=xorg_cv_cc_flag__Werror_attributes
10539		if eval \${$cacheid+:} false; then :
10540  $as_echo_n "(cached) " >&6
10541else
10542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10543/* end confdefs.h.  */
10544int i;
10545int
10546main ()
10547{
10548
10549  ;
10550  return 0;
10551}
10552_ACEOF
10553if ac_fn_c_try_link "$LINENO"; then :
10554  eval $cacheid=yes
10555else
10556  eval $cacheid=no
10557fi
10558rm -f core conftest.err conftest.$ac_objext \
10559    conftest$ac_exeext conftest.$ac_ext
10560fi
10561
10562
10563		CFLAGS="$xorg_testset_save_CFLAGS"
10564
10565		eval supported=\$$cacheid
10566		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10567$as_echo "$supported" >&6; }
10568		if test "$supported" = "yes" ; then
10569			STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10570			found="yes"
10571		fi
10572	fi
10573
10574
10575
10576if test "x$STRICT_COMPILE" = "xyes"; then
10577    BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10578    CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10579fi
10580
10581
10582
10583
10584
10585
10586cat >>confdefs.h <<_ACEOF
10587#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10588_ACEOF
10589
10590	PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10591	if test "x$PVM" = "x"; then
10592		PVM="0"
10593	fi
10594
10595cat >>confdefs.h <<_ACEOF
10596#define PACKAGE_VERSION_MINOR $PVM
10597_ACEOF
10598
10599	PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10600	if test "x$PVP" = "x"; then
10601		PVP="0"
10602	fi
10603
10604cat >>confdefs.h <<_ACEOF
10605#define PACKAGE_VERSION_PATCHLEVEL $PVP
10606_ACEOF
10607
10608
10609
10610CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10611mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10612|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10613echo 'git directory not found: installing possibly empty changelog.' >&2)"
10614
10615
10616
10617
10618macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10619INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10620mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10621|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10622echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10623
10624
10625
10626
10627
10628
10629if test x$APP_MAN_SUFFIX = x    ; then
10630    APP_MAN_SUFFIX=1
10631fi
10632if test x$APP_MAN_DIR = x    ; then
10633    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10634fi
10635
10636if test x$LIB_MAN_SUFFIX = x    ; then
10637    LIB_MAN_SUFFIX=3
10638fi
10639if test x$LIB_MAN_DIR = x    ; then
10640    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10641fi
10642
10643if test x$FILE_MAN_SUFFIX = x    ; then
10644    case $host_os in
10645	solaris*)	FILE_MAN_SUFFIX=4  ;;
10646	*)		FILE_MAN_SUFFIX=5  ;;
10647    esac
10648fi
10649if test x$FILE_MAN_DIR = x    ; then
10650    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10651fi
10652
10653if test x$MISC_MAN_SUFFIX = x    ; then
10654    case $host_os in
10655	solaris*)	MISC_MAN_SUFFIX=5  ;;
10656	*)		MISC_MAN_SUFFIX=7  ;;
10657    esac
10658fi
10659if test x$MISC_MAN_DIR = x    ; then
10660    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10661fi
10662
10663if test x$DRIVER_MAN_SUFFIX = x    ; then
10664    case $host_os in
10665	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
10666	*)		DRIVER_MAN_SUFFIX=4  ;;
10667    esac
10668fi
10669if test x$DRIVER_MAN_DIR = x    ; then
10670    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10671fi
10672
10673if test x$ADMIN_MAN_SUFFIX = x    ; then
10674    case $host_os in
10675	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
10676	*)		ADMIN_MAN_SUFFIX=8  ;;
10677    esac
10678fi
10679if test x$ADMIN_MAN_DIR = x    ; then
10680    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10681fi
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697XORG_MAN_PAGE="X Version 11"
10698
10699MAN_SUBSTS="\
10700	-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10701	-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10702	-e 's|__xservername__|Xorg|g' \
10703	-e 's|__xconfigfile__|xorg.conf|g' \
10704	-e 's|__projectroot__|\$(prefix)|g' \
10705	-e 's|__apploaddir__|\$(appdefaultdir)|g' \
10706	-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10707	-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10708	-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10709	-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10710	-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10711	-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10712
10713
10714
10715# Check whether --enable-silent-rules was given.
10716if test "${enable_silent_rules+set}" = set; then :
10717  enableval=$enable_silent_rules;
10718fi
10719
10720case $enable_silent_rules in # (((
10721  yes) AM_DEFAULT_VERBOSITY=0;;
10722   no) AM_DEFAULT_VERBOSITY=1;;
10723    *) AM_DEFAULT_VERBOSITY=0;;
10724esac
10725am_make=${MAKE-make}
10726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10727$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10728if ${am_cv_make_support_nested_variables+:} false; then :
10729  $as_echo_n "(cached) " >&6
10730else
10731  if $as_echo 'TRUE=$(BAR$(V))
10732BAR0=false
10733BAR1=true
10734V=1
10735am__doit:
10736	@$(TRUE)
10737.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10738  am_cv_make_support_nested_variables=yes
10739else
10740  am_cv_make_support_nested_variables=no
10741fi
10742fi
10743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10744$as_echo "$am_cv_make_support_nested_variables" >&6; }
10745if test $am_cv_make_support_nested_variables = yes; then
10746    AM_V='$(V)'
10747  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10748else
10749  AM_V=$AM_DEFAULT_VERBOSITY
10750  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10751fi
10752AM_BACKSLASH='\'
10753
10754
10755
10756# Initialize libtool
10757# Check whether --enable-static was given.
10758if test "${enable_static+set}" = set; then :
10759  enableval=$enable_static; p=${PACKAGE-default}
10760    case $enableval in
10761    yes) enable_static=yes ;;
10762    no) enable_static=no ;;
10763    *)
10764     enable_static=no
10765      # Look at the argument we got.  We use all the common list separators.
10766      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10767      for pkg in $enableval; do
10768	IFS="$lt_save_ifs"
10769	if test "X$pkg" = "X$p"; then
10770	  enable_static=yes
10771	fi
10772      done
10773      IFS="$lt_save_ifs"
10774      ;;
10775    esac
10776else
10777  enable_static=no
10778fi
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788case `pwd` in
10789  *\ * | *\	*)
10790    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10791$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10792esac
10793
10794
10795
10796macro_version='2.4.2'
10797macro_revision='1.3337'
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811ltmain="$ac_aux_dir/ltmain.sh"
10812
10813# Backslashify metacharacters that are still active within
10814# double-quoted strings.
10815sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10816
10817# Same as above, but do not quote variable references.
10818double_quote_subst='s/\(["`\\]\)/\\\1/g'
10819
10820# Sed substitution to delay expansion of an escaped shell variable in a
10821# double_quote_subst'ed string.
10822delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10823
10824# Sed substitution to delay expansion of an escaped single quote.
10825delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10826
10827# Sed substitution to avoid accidental globbing in evaled expressions
10828no_glob_subst='s/\*/\\\*/g'
10829
10830ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10831ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
10832ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
10833
10834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
10835$as_echo_n "checking how to print strings... " >&6; }
10836# Test print first, because it will be a builtin if present.
10837if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
10838   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
10839  ECHO='print -r --'
10840elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
10841  ECHO='printf %s\n'
10842else
10843  # Use this function as a fallback that always works.
10844  func_fallback_echo ()
10845  {
10846    eval 'cat <<_LTECHO_EOF
10847$1
10848_LTECHO_EOF'
10849  }
10850  ECHO='func_fallback_echo'
10851fi
10852
10853# func_echo_all arg...
10854# Invoke $ECHO with all args, space-separated.
10855func_echo_all ()
10856{
10857    $ECHO ""
10858}
10859
10860case "$ECHO" in
10861  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
10862$as_echo "printf" >&6; } ;;
10863  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
10864$as_echo "print -r" >&6; } ;;
10865  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
10866$as_echo "cat" >&6; } ;;
10867esac
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10883$as_echo_n "checking for a sed that does not truncate output... " >&6; }
10884if ${ac_cv_path_SED+:} false; then :
10885  $as_echo_n "(cached) " >&6
10886else
10887            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10888     for ac_i in 1 2 3 4 5 6 7; do
10889       ac_script="$ac_script$as_nl$ac_script"
10890     done
10891     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10892     { ac_script=; unset ac_script;}
10893     if test -z "$SED"; then
10894  ac_path_SED_found=false
10895  # Loop through the user's path and test for each of PROGNAME-LIST
10896  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10897for as_dir in $PATH
10898do
10899  IFS=$as_save_IFS
10900  test -z "$as_dir" && as_dir=.
10901    for ac_prog in sed gsed; do
10902    for ac_exec_ext in '' $ac_executable_extensions; do
10903      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10904      as_fn_executable_p "$ac_path_SED" || continue
10905# Check for GNU ac_path_SED and select it if it is found.
10906  # Check for GNU $ac_path_SED
10907case `"$ac_path_SED" --version 2>&1` in
10908*GNU*)
10909  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10910*)
10911  ac_count=0
10912  $as_echo_n 0123456789 >"conftest.in"
10913  while :
10914  do
10915    cat "conftest.in" "conftest.in" >"conftest.tmp"
10916    mv "conftest.tmp" "conftest.in"
10917    cp "conftest.in" "conftest.nl"
10918    $as_echo '' >> "conftest.nl"
10919    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10920    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10921    as_fn_arith $ac_count + 1 && ac_count=$as_val
10922    if test $ac_count -gt ${ac_path_SED_max-0}; then
10923      # Best one so far, save it but keep looking for a better one
10924      ac_cv_path_SED="$ac_path_SED"
10925      ac_path_SED_max=$ac_count
10926    fi
10927    # 10*(2^10) chars as input seems more than enough
10928    test $ac_count -gt 10 && break
10929  done
10930  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10931esac
10932
10933      $ac_path_SED_found && break 3
10934    done
10935  done
10936  done
10937IFS=$as_save_IFS
10938  if test -z "$ac_cv_path_SED"; then
10939    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
10940  fi
10941else
10942  ac_cv_path_SED=$SED
10943fi
10944
10945fi
10946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10947$as_echo "$ac_cv_path_SED" >&6; }
10948 SED="$ac_cv_path_SED"
10949  rm -f conftest.sed
10950
10951test -z "$SED" && SED=sed
10952Xsed="$SED -e 1s/^X//"
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10965$as_echo_n "checking for fgrep... " >&6; }
10966if ${ac_cv_path_FGREP+:} false; then :
10967  $as_echo_n "(cached) " >&6
10968else
10969  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10970   then ac_cv_path_FGREP="$GREP -F"
10971   else
10972     if test -z "$FGREP"; then
10973  ac_path_FGREP_found=false
10974  # Loop through the user's path and test for each of PROGNAME-LIST
10975  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10976for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10977do
10978  IFS=$as_save_IFS
10979  test -z "$as_dir" && as_dir=.
10980    for ac_prog in fgrep; do
10981    for ac_exec_ext in '' $ac_executable_extensions; do
10982      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10983      as_fn_executable_p "$ac_path_FGREP" || continue
10984# Check for GNU ac_path_FGREP and select it if it is found.
10985  # Check for GNU $ac_path_FGREP
10986case `"$ac_path_FGREP" --version 2>&1` in
10987*GNU*)
10988  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10989*)
10990  ac_count=0
10991  $as_echo_n 0123456789 >"conftest.in"
10992  while :
10993  do
10994    cat "conftest.in" "conftest.in" >"conftest.tmp"
10995    mv "conftest.tmp" "conftest.in"
10996    cp "conftest.in" "conftest.nl"
10997    $as_echo 'FGREP' >> "conftest.nl"
10998    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10999    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11000    as_fn_arith $ac_count + 1 && ac_count=$as_val
11001    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11002      # Best one so far, save it but keep looking for a better one
11003      ac_cv_path_FGREP="$ac_path_FGREP"
11004      ac_path_FGREP_max=$ac_count
11005    fi
11006    # 10*(2^10) chars as input seems more than enough
11007    test $ac_count -gt 10 && break
11008  done
11009  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11010esac
11011
11012      $ac_path_FGREP_found && break 3
11013    done
11014  done
11015  done
11016IFS=$as_save_IFS
11017  if test -z "$ac_cv_path_FGREP"; then
11018    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11019  fi
11020else
11021  ac_cv_path_FGREP=$FGREP
11022fi
11023
11024   fi
11025fi
11026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11027$as_echo "$ac_cv_path_FGREP" >&6; }
11028 FGREP="$ac_cv_path_FGREP"
11029
11030
11031test -z "$GREP" && GREP=grep
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051# Check whether --with-gnu-ld was given.
11052if test "${with_gnu_ld+set}" = set; then :
11053  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11054else
11055  with_gnu_ld=no
11056fi
11057
11058ac_prog=ld
11059if test "$GCC" = yes; then
11060  # Check if gcc -print-prog-name=ld gives a path.
11061  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11062$as_echo_n "checking for ld used by $CC... " >&6; }
11063  case $host in
11064  *-*-mingw*)
11065    # gcc leaves a trailing carriage return which upsets mingw
11066    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11067  *)
11068    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11069  esac
11070  case $ac_prog in
11071    # Accept absolute paths.
11072    [\\/]* | ?:[\\/]*)
11073      re_direlt='/[^/][^/]*/\.\./'
11074      # Canonicalize the pathname of ld
11075      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11076      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11077	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11078      done
11079      test -z "$LD" && LD="$ac_prog"
11080      ;;
11081  "")
11082    # If it fails, then pretend we aren't using GCC.
11083    ac_prog=ld
11084    ;;
11085  *)
11086    # If it is relative, then search for the first ld in PATH.
11087    with_gnu_ld=unknown
11088    ;;
11089  esac
11090elif test "$with_gnu_ld" = yes; then
11091  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11092$as_echo_n "checking for GNU ld... " >&6; }
11093else
11094  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11095$as_echo_n "checking for non-GNU ld... " >&6; }
11096fi
11097if ${lt_cv_path_LD+:} false; then :
11098  $as_echo_n "(cached) " >&6
11099else
11100  if test -z "$LD"; then
11101  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11102  for ac_dir in $PATH; do
11103    IFS="$lt_save_ifs"
11104    test -z "$ac_dir" && ac_dir=.
11105    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11106      lt_cv_path_LD="$ac_dir/$ac_prog"
11107      # Check to see if the program is GNU ld.  I'd rather use --version,
11108      # but apparently some variants of GNU ld only accept -v.
11109      # Break only if it was the GNU/non-GNU ld that we prefer.
11110      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11111      *GNU* | *'with BFD'*)
11112	test "$with_gnu_ld" != no && break
11113	;;
11114      *)
11115	test "$with_gnu_ld" != yes && break
11116	;;
11117      esac
11118    fi
11119  done
11120  IFS="$lt_save_ifs"
11121else
11122  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11123fi
11124fi
11125
11126LD="$lt_cv_path_LD"
11127if test -n "$LD"; then
11128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11129$as_echo "$LD" >&6; }
11130else
11131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11132$as_echo "no" >&6; }
11133fi
11134test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
11135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11136$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11137if ${lt_cv_prog_gnu_ld+:} false; then :
11138  $as_echo_n "(cached) " >&6
11139else
11140  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11141case `$LD -v 2>&1 </dev/null` in
11142*GNU* | *'with BFD'*)
11143  lt_cv_prog_gnu_ld=yes
11144  ;;
11145*)
11146  lt_cv_prog_gnu_ld=no
11147  ;;
11148esac
11149fi
11150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11151$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11152with_gnu_ld=$lt_cv_prog_gnu_ld
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11163$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11164if ${lt_cv_path_NM+:} false; then :
11165  $as_echo_n "(cached) " >&6
11166else
11167  if test -n "$NM"; then
11168  # Let the user override the test.
11169  lt_cv_path_NM="$NM"
11170else
11171  lt_nm_to_check="${ac_tool_prefix}nm"
11172  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11173    lt_nm_to_check="$lt_nm_to_check nm"
11174  fi
11175  for lt_tmp_nm in $lt_nm_to_check; do
11176    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11177    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11178      IFS="$lt_save_ifs"
11179      test -z "$ac_dir" && ac_dir=.
11180      tmp_nm="$ac_dir/$lt_tmp_nm"
11181      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11182	# Check to see if the nm accepts a BSD-compat flag.
11183	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
11184	#   nm: unknown option "B" ignored
11185	# Tru64's nm complains that /dev/null is an invalid object file
11186	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11187	*/dev/null* | *'Invalid file or object type'*)
11188	  lt_cv_path_NM="$tmp_nm -B"
11189	  break
11190	  ;;
11191	*)
11192	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11193	  */dev/null*)
11194	    lt_cv_path_NM="$tmp_nm -p"
11195	    break
11196	    ;;
11197	  *)
11198	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11199	    continue # so that we can try to find one that supports BSD flags
11200	    ;;
11201	  esac
11202	  ;;
11203	esac
11204      fi
11205    done
11206    IFS="$lt_save_ifs"
11207  done
11208  : ${lt_cv_path_NM=no}
11209fi
11210fi
11211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11212$as_echo "$lt_cv_path_NM" >&6; }
11213if test "$lt_cv_path_NM" != "no"; then
11214  NM="$lt_cv_path_NM"
11215else
11216  # Didn't find any BSD compatible name lister, look for dumpbin.
11217  if test -n "$DUMPBIN"; then :
11218    # Let the user override the test.
11219  else
11220    if test -n "$ac_tool_prefix"; then
11221  for ac_prog in dumpbin "link -dump"
11222  do
11223    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11224set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11226$as_echo_n "checking for $ac_word... " >&6; }
11227if ${ac_cv_prog_DUMPBIN+:} false; then :
11228  $as_echo_n "(cached) " >&6
11229else
11230  if test -n "$DUMPBIN"; then
11231  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11232else
11233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11234for as_dir in $PATH
11235do
11236  IFS=$as_save_IFS
11237  test -z "$as_dir" && as_dir=.
11238    for ac_exec_ext in '' $ac_executable_extensions; do
11239  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11240    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11242    break 2
11243  fi
11244done
11245  done
11246IFS=$as_save_IFS
11247
11248fi
11249fi
11250DUMPBIN=$ac_cv_prog_DUMPBIN
11251if test -n "$DUMPBIN"; then
11252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11253$as_echo "$DUMPBIN" >&6; }
11254else
11255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11256$as_echo "no" >&6; }
11257fi
11258
11259
11260    test -n "$DUMPBIN" && break
11261  done
11262fi
11263if test -z "$DUMPBIN"; then
11264  ac_ct_DUMPBIN=$DUMPBIN
11265  for ac_prog in dumpbin "link -dump"
11266do
11267  # Extract the first word of "$ac_prog", so it can be a program name with args.
11268set dummy $ac_prog; ac_word=$2
11269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11270$as_echo_n "checking for $ac_word... " >&6; }
11271if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11272  $as_echo_n "(cached) " >&6
11273else
11274  if test -n "$ac_ct_DUMPBIN"; then
11275  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11276else
11277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11278for as_dir in $PATH
11279do
11280  IFS=$as_save_IFS
11281  test -z "$as_dir" && as_dir=.
11282    for ac_exec_ext in '' $ac_executable_extensions; do
11283  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11284    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11286    break 2
11287  fi
11288done
11289  done
11290IFS=$as_save_IFS
11291
11292fi
11293fi
11294ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11295if test -n "$ac_ct_DUMPBIN"; then
11296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11297$as_echo "$ac_ct_DUMPBIN" >&6; }
11298else
11299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11300$as_echo "no" >&6; }
11301fi
11302
11303
11304  test -n "$ac_ct_DUMPBIN" && break
11305done
11306
11307  if test "x$ac_ct_DUMPBIN" = x; then
11308    DUMPBIN=":"
11309  else
11310    case $cross_compiling:$ac_tool_warned in
11311yes:)
11312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11314ac_tool_warned=yes ;;
11315esac
11316    DUMPBIN=$ac_ct_DUMPBIN
11317  fi
11318fi
11319
11320    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11321    *COFF*)
11322      DUMPBIN="$DUMPBIN -symbols"
11323      ;;
11324    *)
11325      DUMPBIN=:
11326      ;;
11327    esac
11328  fi
11329
11330  if test "$DUMPBIN" != ":"; then
11331    NM="$DUMPBIN"
11332  fi
11333fi
11334test -z "$NM" && NM=nm
11335
11336
11337
11338
11339
11340
11341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11342$as_echo_n "checking the name lister ($NM) interface... " >&6; }
11343if ${lt_cv_nm_interface+:} false; then :
11344  $as_echo_n "(cached) " >&6
11345else
11346  lt_cv_nm_interface="BSD nm"
11347  echo "int some_variable = 0;" > conftest.$ac_ext
11348  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11349  (eval "$ac_compile" 2>conftest.err)
11350  cat conftest.err >&5
11351  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11352  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11353  cat conftest.err >&5
11354  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11355  cat conftest.out >&5
11356  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11357    lt_cv_nm_interface="MS dumpbin"
11358  fi
11359  rm -f conftest*
11360fi
11361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11362$as_echo "$lt_cv_nm_interface" >&6; }
11363
11364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11365$as_echo_n "checking whether ln -s works... " >&6; }
11366LN_S=$as_ln_s
11367if test "$LN_S" = "ln -s"; then
11368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11369$as_echo "yes" >&6; }
11370else
11371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11372$as_echo "no, using $LN_S" >&6; }
11373fi
11374
11375# find the maximum length of command line arguments
11376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11377$as_echo_n "checking the maximum length of command line arguments... " >&6; }
11378if ${lt_cv_sys_max_cmd_len+:} false; then :
11379  $as_echo_n "(cached) " >&6
11380else
11381    i=0
11382  teststring="ABCD"
11383
11384  case $build_os in
11385  msdosdjgpp*)
11386    # On DJGPP, this test can blow up pretty badly due to problems in libc
11387    # (any single argument exceeding 2000 bytes causes a buffer overrun
11388    # during glob expansion).  Even if it were fixed, the result of this
11389    # check would be larger than it should be.
11390    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
11391    ;;
11392
11393  gnu*)
11394    # Under GNU Hurd, this test is not required because there is
11395    # no limit to the length of command line arguments.
11396    # Libtool will interpret -1 as no limit whatsoever
11397    lt_cv_sys_max_cmd_len=-1;
11398    ;;
11399
11400  cygwin* | mingw* | cegcc*)
11401    # On Win9x/ME, this test blows up -- it succeeds, but takes
11402    # about 5 minutes as the teststring grows exponentially.
11403    # Worse, since 9x/ME are not pre-emptively multitasking,
11404    # you end up with a "frozen" computer, even though with patience
11405    # the test eventually succeeds (with a max line length of 256k).
11406    # Instead, let's just punt: use the minimum linelength reported by
11407    # all of the supported platforms: 8192 (on NT/2K/XP).
11408    lt_cv_sys_max_cmd_len=8192;
11409    ;;
11410
11411  mint*)
11412    # On MiNT this can take a long time and run out of memory.
11413    lt_cv_sys_max_cmd_len=8192;
11414    ;;
11415
11416  amigaos*)
11417    # On AmigaOS with pdksh, this test takes hours, literally.
11418    # So we just punt and use a minimum line length of 8192.
11419    lt_cv_sys_max_cmd_len=8192;
11420    ;;
11421
11422  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11423    # This has been around since 386BSD, at least.  Likely further.
11424    if test -x /sbin/sysctl; then
11425      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11426    elif test -x /usr/sbin/sysctl; then
11427      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11428    else
11429      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
11430    fi
11431    # And add a safety zone
11432    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11433    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11434    ;;
11435
11436  interix*)
11437    # We know the value 262144 and hardcode it with a safety zone (like BSD)
11438    lt_cv_sys_max_cmd_len=196608
11439    ;;
11440
11441  os2*)
11442    # The test takes a long time on OS/2.
11443    lt_cv_sys_max_cmd_len=8192
11444    ;;
11445
11446  osf*)
11447    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11448    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11449    # nice to cause kernel panics so lets avoid the loop below.
11450    # First set a reasonable default.
11451    lt_cv_sys_max_cmd_len=16384
11452    #
11453    if test -x /sbin/sysconfig; then
11454      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11455        *1*) lt_cv_sys_max_cmd_len=-1 ;;
11456      esac
11457    fi
11458    ;;
11459  sco3.2v5*)
11460    lt_cv_sys_max_cmd_len=102400
11461    ;;
11462  sysv5* | sco5v6* | sysv4.2uw2*)
11463    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11464    if test -n "$kargmax"; then
11465      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
11466    else
11467      lt_cv_sys_max_cmd_len=32768
11468    fi
11469    ;;
11470  *)
11471    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11472    if test -n "$lt_cv_sys_max_cmd_len"; then
11473      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11474      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11475    else
11476      # Make teststring a little bigger before we do anything with it.
11477      # a 1K string should be a reasonable start.
11478      for i in 1 2 3 4 5 6 7 8 ; do
11479        teststring=$teststring$teststring
11480      done
11481      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11482      # If test is not a shell built-in, we'll probably end up computing a
11483      # maximum length that is only half of the actual maximum length, but
11484      # we can't tell.
11485      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
11486	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11487	      test $i != 17 # 1/2 MB should be enough
11488      do
11489        i=`expr $i + 1`
11490        teststring=$teststring$teststring
11491      done
11492      # Only check the string length outside the loop.
11493      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11494      teststring=
11495      # Add a significant safety factor because C++ compilers can tack on
11496      # massive amounts of additional arguments before passing them to the
11497      # linker.  It appears as though 1/2 is a usable value.
11498      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11499    fi
11500    ;;
11501  esac
11502
11503fi
11504
11505if test -n $lt_cv_sys_max_cmd_len ; then
11506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11507$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11508else
11509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11510$as_echo "none" >&6; }
11511fi
11512max_cmd_len=$lt_cv_sys_max_cmd_len
11513
11514
11515
11516
11517
11518
11519: ${CP="cp -f"}
11520: ${MV="mv -f"}
11521: ${RM="rm -f"}
11522
11523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11524$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11525# Try some XSI features
11526xsi_shell=no
11527( _lt_dummy="a/b/c"
11528  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
11529      = c,a/b,b/c, \
11530    && eval 'test $(( 1 + 1 )) -eq 2 \
11531    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11532  && xsi_shell=yes
11533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11534$as_echo "$xsi_shell" >&6; }
11535
11536
11537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11538$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11539lt_shell_append=no
11540( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11541    >/dev/null 2>&1 \
11542  && lt_shell_append=yes
11543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11544$as_echo "$lt_shell_append" >&6; }
11545
11546
11547if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11548  lt_unset=unset
11549else
11550  lt_unset=false
11551fi
11552
11553
11554
11555
11556
11557# test EBCDIC or ASCII
11558case `echo X|tr X '\101'` in
11559 A) # ASCII based system
11560    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11561  lt_SP2NL='tr \040 \012'
11562  lt_NL2SP='tr \015\012 \040\040'
11563  ;;
11564 *) # EBCDIC based system
11565  lt_SP2NL='tr \100 \n'
11566  lt_NL2SP='tr \r\n \100\100'
11567  ;;
11568esac
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11579$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11580if ${lt_cv_to_host_file_cmd+:} false; then :
11581  $as_echo_n "(cached) " >&6
11582else
11583  case $host in
11584  *-*-mingw* )
11585    case $build in
11586      *-*-mingw* ) # actually msys
11587        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11588        ;;
11589      *-*-cygwin* )
11590        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11591        ;;
11592      * ) # otherwise, assume *nix
11593        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11594        ;;
11595    esac
11596    ;;
11597  *-*-cygwin* )
11598    case $build in
11599      *-*-mingw* ) # actually msys
11600        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11601        ;;
11602      *-*-cygwin* )
11603        lt_cv_to_host_file_cmd=func_convert_file_noop
11604        ;;
11605      * ) # otherwise, assume *nix
11606        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11607        ;;
11608    esac
11609    ;;
11610  * ) # unhandled hosts (and "normal" native builds)
11611    lt_cv_to_host_file_cmd=func_convert_file_noop
11612    ;;
11613esac
11614
11615fi
11616
11617to_host_file_cmd=$lt_cv_to_host_file_cmd
11618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11619$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11620
11621
11622
11623
11624
11625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11626$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11627if ${lt_cv_to_tool_file_cmd+:} false; then :
11628  $as_echo_n "(cached) " >&6
11629else
11630  #assume ordinary cross tools, or native build.
11631lt_cv_to_tool_file_cmd=func_convert_file_noop
11632case $host in
11633  *-*-mingw* )
11634    case $build in
11635      *-*-mingw* ) # actually msys
11636        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11637        ;;
11638    esac
11639    ;;
11640esac
11641
11642fi
11643
11644to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11646$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11647
11648
11649
11650
11651
11652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11653$as_echo_n "checking for $LD option to reload object files... " >&6; }
11654if ${lt_cv_ld_reload_flag+:} false; then :
11655  $as_echo_n "(cached) " >&6
11656else
11657  lt_cv_ld_reload_flag='-r'
11658fi
11659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11660$as_echo "$lt_cv_ld_reload_flag" >&6; }
11661reload_flag=$lt_cv_ld_reload_flag
11662case $reload_flag in
11663"" | " "*) ;;
11664*) reload_flag=" $reload_flag" ;;
11665esac
11666reload_cmds='$LD$reload_flag -o $output$reload_objs'
11667case $host_os in
11668  cygwin* | mingw* | pw32* | cegcc*)
11669    if test "$GCC" != yes; then
11670      reload_cmds=false
11671    fi
11672    ;;
11673  darwin*)
11674    if test "$GCC" = yes; then
11675      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11676    else
11677      reload_cmds='$LD$reload_flag -o $output$reload_objs'
11678    fi
11679    ;;
11680esac
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690if test -n "$ac_tool_prefix"; then
11691  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11692set dummy ${ac_tool_prefix}objdump; ac_word=$2
11693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11694$as_echo_n "checking for $ac_word... " >&6; }
11695if ${ac_cv_prog_OBJDUMP+:} false; then :
11696  $as_echo_n "(cached) " >&6
11697else
11698  if test -n "$OBJDUMP"; then
11699  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11700else
11701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11702for as_dir in $PATH
11703do
11704  IFS=$as_save_IFS
11705  test -z "$as_dir" && as_dir=.
11706    for ac_exec_ext in '' $ac_executable_extensions; do
11707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11708    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11710    break 2
11711  fi
11712done
11713  done
11714IFS=$as_save_IFS
11715
11716fi
11717fi
11718OBJDUMP=$ac_cv_prog_OBJDUMP
11719if test -n "$OBJDUMP"; then
11720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11721$as_echo "$OBJDUMP" >&6; }
11722else
11723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11724$as_echo "no" >&6; }
11725fi
11726
11727
11728fi
11729if test -z "$ac_cv_prog_OBJDUMP"; then
11730  ac_ct_OBJDUMP=$OBJDUMP
11731  # Extract the first word of "objdump", so it can be a program name with args.
11732set dummy objdump; ac_word=$2
11733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11734$as_echo_n "checking for $ac_word... " >&6; }
11735if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11736  $as_echo_n "(cached) " >&6
11737else
11738  if test -n "$ac_ct_OBJDUMP"; then
11739  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11740else
11741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742for as_dir in $PATH
11743do
11744  IFS=$as_save_IFS
11745  test -z "$as_dir" && as_dir=.
11746    for ac_exec_ext in '' $ac_executable_extensions; do
11747  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11748    ac_cv_prog_ac_ct_OBJDUMP="objdump"
11749    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11750    break 2
11751  fi
11752done
11753  done
11754IFS=$as_save_IFS
11755
11756fi
11757fi
11758ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11759if test -n "$ac_ct_OBJDUMP"; then
11760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11761$as_echo "$ac_ct_OBJDUMP" >&6; }
11762else
11763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764$as_echo "no" >&6; }
11765fi
11766
11767  if test "x$ac_ct_OBJDUMP" = x; then
11768    OBJDUMP="false"
11769  else
11770    case $cross_compiling:$ac_tool_warned in
11771yes:)
11772{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11773$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11774ac_tool_warned=yes ;;
11775esac
11776    OBJDUMP=$ac_ct_OBJDUMP
11777  fi
11778else
11779  OBJDUMP="$ac_cv_prog_OBJDUMP"
11780fi
11781
11782test -z "$OBJDUMP" && OBJDUMP=objdump
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11793$as_echo_n "checking how to recognize dependent libraries... " >&6; }
11794if ${lt_cv_deplibs_check_method+:} false; then :
11795  $as_echo_n "(cached) " >&6
11796else
11797  lt_cv_file_magic_cmd='$MAGIC_CMD'
11798lt_cv_file_magic_test_file=
11799lt_cv_deplibs_check_method='unknown'
11800# Need to set the preceding variable on all platforms that support
11801# interlibrary dependencies.
11802# 'none' -- dependencies not supported.
11803# `unknown' -- same as none, but documents that we really don't know.
11804# 'pass_all' -- all dependencies passed with no checks.
11805# 'test_compile' -- check by making test program.
11806# 'file_magic [[regex]]' -- check by looking for files in library path
11807# which responds to the $file_magic_cmd with a given extended regex.
11808# If you have `file' or equivalent on your system and you're not sure
11809# whether `pass_all' will *always* work, you probably want this one.
11810
11811case $host_os in
11812aix[4-9]*)
11813  lt_cv_deplibs_check_method=pass_all
11814  ;;
11815
11816beos*)
11817  lt_cv_deplibs_check_method=pass_all
11818  ;;
11819
11820bsdi[45]*)
11821  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11822  lt_cv_file_magic_cmd='/usr/bin/file -L'
11823  lt_cv_file_magic_test_file=/shlib/libc.so
11824  ;;
11825
11826cygwin*)
11827  # func_win32_libid is a shell function defined in ltmain.sh
11828  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11829  lt_cv_file_magic_cmd='func_win32_libid'
11830  ;;
11831
11832mingw* | pw32*)
11833  # Base MSYS/MinGW do not provide the 'file' command needed by
11834  # func_win32_libid shell function, so use a weaker test based on 'objdump',
11835  # unless we find 'file', for example because we are cross-compiling.
11836  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11837  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
11838    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11839    lt_cv_file_magic_cmd='func_win32_libid'
11840  else
11841    # Keep this pattern in sync with the one in func_win32_libid.
11842    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
11843    lt_cv_file_magic_cmd='$OBJDUMP -f'
11844  fi
11845  ;;
11846
11847cegcc*)
11848  # use the weaker test based on 'objdump'. See mingw*.
11849  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11850  lt_cv_file_magic_cmd='$OBJDUMP -f'
11851  ;;
11852
11853darwin* | rhapsody*)
11854  lt_cv_deplibs_check_method=pass_all
11855  ;;
11856
11857freebsd* | dragonfly*)
11858  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11859    case $host_cpu in
11860    i*86 )
11861      # Not sure whether the presence of OpenBSD here was a mistake.
11862      # Let's accept both of them until this is cleared up.
11863      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11864      lt_cv_file_magic_cmd=/usr/bin/file
11865      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11866      ;;
11867    esac
11868  else
11869    lt_cv_deplibs_check_method=pass_all
11870  fi
11871  ;;
11872
11873gnu*)
11874  lt_cv_deplibs_check_method=pass_all
11875  ;;
11876
11877haiku*)
11878  lt_cv_deplibs_check_method=pass_all
11879  ;;
11880
11881hpux10.20* | hpux11*)
11882  lt_cv_file_magic_cmd=/usr/bin/file
11883  case $host_cpu in
11884  ia64*)
11885    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11886    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11887    ;;
11888  hppa*64*)
11889    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]'
11890    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11891    ;;
11892  *)
11893    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
11894    lt_cv_file_magic_test_file=/usr/lib/libc.sl
11895    ;;
11896  esac
11897  ;;
11898
11899interix[3-9]*)
11900  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11901  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11902  ;;
11903
11904irix5* | irix6* | nonstopux*)
11905  case $LD in
11906  *-32|*"-32 ") libmagic=32-bit;;
11907  *-n32|*"-n32 ") libmagic=N32;;
11908  *-64|*"-64 ") libmagic=64-bit;;
11909  *) libmagic=never-match;;
11910  esac
11911  lt_cv_deplibs_check_method=pass_all
11912  ;;
11913
11914# This must be glibc/ELF.
11915linux* | k*bsd*-gnu | kopensolaris*-gnu)
11916  lt_cv_deplibs_check_method=pass_all
11917  ;;
11918
11919netbsd*)
11920  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11921    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11922  else
11923    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11924  fi
11925  ;;
11926
11927newos6*)
11928  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11929  lt_cv_file_magic_cmd=/usr/bin/file
11930  lt_cv_file_magic_test_file=/usr/lib/libnls.so
11931  ;;
11932
11933*nto* | *qnx*)
11934  lt_cv_deplibs_check_method=pass_all
11935  ;;
11936
11937openbsd*)
11938  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11939    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11940  else
11941    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11942  fi
11943  ;;
11944
11945osf3* | osf4* | osf5*)
11946  lt_cv_deplibs_check_method=pass_all
11947  ;;
11948
11949rdos*)
11950  lt_cv_deplibs_check_method=pass_all
11951  ;;
11952
11953solaris*)
11954  lt_cv_deplibs_check_method=pass_all
11955  ;;
11956
11957sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11958  lt_cv_deplibs_check_method=pass_all
11959  ;;
11960
11961sysv4 | sysv4.3*)
11962  case $host_vendor in
11963  motorola)
11964    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]'
11965    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11966    ;;
11967  ncr)
11968    lt_cv_deplibs_check_method=pass_all
11969    ;;
11970  sequent)
11971    lt_cv_file_magic_cmd='/bin/file'
11972    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11973    ;;
11974  sni)
11975    lt_cv_file_magic_cmd='/bin/file'
11976    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11977    lt_cv_file_magic_test_file=/lib/libc.so
11978    ;;
11979  siemens)
11980    lt_cv_deplibs_check_method=pass_all
11981    ;;
11982  pc)
11983    lt_cv_deplibs_check_method=pass_all
11984    ;;
11985  esac
11986  ;;
11987
11988tpf*)
11989  lt_cv_deplibs_check_method=pass_all
11990  ;;
11991esac
11992
11993fi
11994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11995$as_echo "$lt_cv_deplibs_check_method" >&6; }
11996
11997file_magic_glob=
11998want_nocaseglob=no
11999if test "$build" = "$host"; then
12000  case $host_os in
12001  mingw* | pw32*)
12002    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12003      want_nocaseglob=yes
12004    else
12005      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12006    fi
12007    ;;
12008  esac
12009fi
12010
12011file_magic_cmd=$lt_cv_file_magic_cmd
12012deplibs_check_method=$lt_cv_deplibs_check_method
12013test -z "$deplibs_check_method" && deplibs_check_method=unknown
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036if test -n "$ac_tool_prefix"; then
12037  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12038set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12040$as_echo_n "checking for $ac_word... " >&6; }
12041if ${ac_cv_prog_DLLTOOL+:} false; then :
12042  $as_echo_n "(cached) " >&6
12043else
12044  if test -n "$DLLTOOL"; then
12045  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12046else
12047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12048for as_dir in $PATH
12049do
12050  IFS=$as_save_IFS
12051  test -z "$as_dir" && as_dir=.
12052    for ac_exec_ext in '' $ac_executable_extensions; do
12053  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12054    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12055    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12056    break 2
12057  fi
12058done
12059  done
12060IFS=$as_save_IFS
12061
12062fi
12063fi
12064DLLTOOL=$ac_cv_prog_DLLTOOL
12065if test -n "$DLLTOOL"; then
12066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12067$as_echo "$DLLTOOL" >&6; }
12068else
12069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12070$as_echo "no" >&6; }
12071fi
12072
12073
12074fi
12075if test -z "$ac_cv_prog_DLLTOOL"; then
12076  ac_ct_DLLTOOL=$DLLTOOL
12077  # Extract the first word of "dlltool", so it can be a program name with args.
12078set dummy dlltool; ac_word=$2
12079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12080$as_echo_n "checking for $ac_word... " >&6; }
12081if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12082  $as_echo_n "(cached) " >&6
12083else
12084  if test -n "$ac_ct_DLLTOOL"; then
12085  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12086else
12087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12088for as_dir in $PATH
12089do
12090  IFS=$as_save_IFS
12091  test -z "$as_dir" && as_dir=.
12092    for ac_exec_ext in '' $ac_executable_extensions; do
12093  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12094    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12096    break 2
12097  fi
12098done
12099  done
12100IFS=$as_save_IFS
12101
12102fi
12103fi
12104ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12105if test -n "$ac_ct_DLLTOOL"; then
12106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12107$as_echo "$ac_ct_DLLTOOL" >&6; }
12108else
12109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12110$as_echo "no" >&6; }
12111fi
12112
12113  if test "x$ac_ct_DLLTOOL" = x; then
12114    DLLTOOL="false"
12115  else
12116    case $cross_compiling:$ac_tool_warned in
12117yes:)
12118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12120ac_tool_warned=yes ;;
12121esac
12122    DLLTOOL=$ac_ct_DLLTOOL
12123  fi
12124else
12125  DLLTOOL="$ac_cv_prog_DLLTOOL"
12126fi
12127
12128test -z "$DLLTOOL" && DLLTOOL=dlltool
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12140$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12141if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12142  $as_echo_n "(cached) " >&6
12143else
12144  lt_cv_sharedlib_from_linklib_cmd='unknown'
12145
12146case $host_os in
12147cygwin* | mingw* | pw32* | cegcc*)
12148  # two different shell functions defined in ltmain.sh
12149  # decide which to use based on capabilities of $DLLTOOL
12150  case `$DLLTOOL --help 2>&1` in
12151  *--identify-strict*)
12152    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12153    ;;
12154  *)
12155    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12156    ;;
12157  esac
12158  ;;
12159*)
12160  # fallback: assume linklib IS sharedlib
12161  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
12162  ;;
12163esac
12164
12165fi
12166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12167$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12168sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12169test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12170
12171
12172
12173
12174
12175
12176
12177if test -n "$ac_tool_prefix"; then
12178  for ac_prog in ar
12179  do
12180    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12181set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12183$as_echo_n "checking for $ac_word... " >&6; }
12184if ${ac_cv_prog_AR+:} false; then :
12185  $as_echo_n "(cached) " >&6
12186else
12187  if test -n "$AR"; then
12188  ac_cv_prog_AR="$AR" # Let the user override the test.
12189else
12190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191for as_dir in $PATH
12192do
12193  IFS=$as_save_IFS
12194  test -z "$as_dir" && as_dir=.
12195    for ac_exec_ext in '' $ac_executable_extensions; do
12196  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12197    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12198    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12199    break 2
12200  fi
12201done
12202  done
12203IFS=$as_save_IFS
12204
12205fi
12206fi
12207AR=$ac_cv_prog_AR
12208if test -n "$AR"; then
12209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12210$as_echo "$AR" >&6; }
12211else
12212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213$as_echo "no" >&6; }
12214fi
12215
12216
12217    test -n "$AR" && break
12218  done
12219fi
12220if test -z "$AR"; then
12221  ac_ct_AR=$AR
12222  for ac_prog in ar
12223do
12224  # Extract the first word of "$ac_prog", so it can be a program name with args.
12225set dummy $ac_prog; ac_word=$2
12226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12227$as_echo_n "checking for $ac_word... " >&6; }
12228if ${ac_cv_prog_ac_ct_AR+:} false; then :
12229  $as_echo_n "(cached) " >&6
12230else
12231  if test -n "$ac_ct_AR"; then
12232  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12233else
12234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12235for as_dir in $PATH
12236do
12237  IFS=$as_save_IFS
12238  test -z "$as_dir" && as_dir=.
12239    for ac_exec_ext in '' $ac_executable_extensions; do
12240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12241    ac_cv_prog_ac_ct_AR="$ac_prog"
12242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12243    break 2
12244  fi
12245done
12246  done
12247IFS=$as_save_IFS
12248
12249fi
12250fi
12251ac_ct_AR=$ac_cv_prog_ac_ct_AR
12252if test -n "$ac_ct_AR"; then
12253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12254$as_echo "$ac_ct_AR" >&6; }
12255else
12256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12257$as_echo "no" >&6; }
12258fi
12259
12260
12261  test -n "$ac_ct_AR" && break
12262done
12263
12264  if test "x$ac_ct_AR" = x; then
12265    AR="false"
12266  else
12267    case $cross_compiling:$ac_tool_warned in
12268yes:)
12269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12271ac_tool_warned=yes ;;
12272esac
12273    AR=$ac_ct_AR
12274  fi
12275fi
12276
12277: ${AR=ar}
12278: ${AR_FLAGS=cru}
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12291$as_echo_n "checking for archiver @FILE support... " >&6; }
12292if ${lt_cv_ar_at_file+:} false; then :
12293  $as_echo_n "(cached) " >&6
12294else
12295  lt_cv_ar_at_file=no
12296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12297/* end confdefs.h.  */
12298
12299int
12300main ()
12301{
12302
12303  ;
12304  return 0;
12305}
12306_ACEOF
12307if ac_fn_c_try_compile "$LINENO"; then :
12308  echo conftest.$ac_objext > conftest.lst
12309      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12310      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12311  (eval $lt_ar_try) 2>&5
12312  ac_status=$?
12313  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12314  test $ac_status = 0; }
12315      if test "$ac_status" -eq 0; then
12316	# Ensure the archiver fails upon bogus file names.
12317	rm -f conftest.$ac_objext libconftest.a
12318	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12319  (eval $lt_ar_try) 2>&5
12320  ac_status=$?
12321  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12322  test $ac_status = 0; }
12323	if test "$ac_status" -ne 0; then
12324          lt_cv_ar_at_file=@
12325        fi
12326      fi
12327      rm -f conftest.* libconftest.a
12328
12329fi
12330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12331
12332fi
12333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12334$as_echo "$lt_cv_ar_at_file" >&6; }
12335
12336if test "x$lt_cv_ar_at_file" = xno; then
12337  archiver_list_spec=
12338else
12339  archiver_list_spec=$lt_cv_ar_at_file
12340fi
12341
12342
12343
12344
12345
12346
12347
12348if test -n "$ac_tool_prefix"; then
12349  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12350set dummy ${ac_tool_prefix}strip; ac_word=$2
12351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12352$as_echo_n "checking for $ac_word... " >&6; }
12353if ${ac_cv_prog_STRIP+:} false; then :
12354  $as_echo_n "(cached) " >&6
12355else
12356  if test -n "$STRIP"; then
12357  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12358else
12359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12360for as_dir in $PATH
12361do
12362  IFS=$as_save_IFS
12363  test -z "$as_dir" && as_dir=.
12364    for ac_exec_ext in '' $ac_executable_extensions; do
12365  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12366    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12367    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12368    break 2
12369  fi
12370done
12371  done
12372IFS=$as_save_IFS
12373
12374fi
12375fi
12376STRIP=$ac_cv_prog_STRIP
12377if test -n "$STRIP"; then
12378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12379$as_echo "$STRIP" >&6; }
12380else
12381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12382$as_echo "no" >&6; }
12383fi
12384
12385
12386fi
12387if test -z "$ac_cv_prog_STRIP"; then
12388  ac_ct_STRIP=$STRIP
12389  # Extract the first word of "strip", so it can be a program name with args.
12390set dummy strip; ac_word=$2
12391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12392$as_echo_n "checking for $ac_word... " >&6; }
12393if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
12394  $as_echo_n "(cached) " >&6
12395else
12396  if test -n "$ac_ct_STRIP"; then
12397  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12398else
12399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400for as_dir in $PATH
12401do
12402  IFS=$as_save_IFS
12403  test -z "$as_dir" && as_dir=.
12404    for ac_exec_ext in '' $ac_executable_extensions; do
12405  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12406    ac_cv_prog_ac_ct_STRIP="strip"
12407    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12408    break 2
12409  fi
12410done
12411  done
12412IFS=$as_save_IFS
12413
12414fi
12415fi
12416ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12417if test -n "$ac_ct_STRIP"; then
12418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12419$as_echo "$ac_ct_STRIP" >&6; }
12420else
12421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12422$as_echo "no" >&6; }
12423fi
12424
12425  if test "x$ac_ct_STRIP" = x; then
12426    STRIP=":"
12427  else
12428    case $cross_compiling:$ac_tool_warned in
12429yes:)
12430{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12431$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12432ac_tool_warned=yes ;;
12433esac
12434    STRIP=$ac_ct_STRIP
12435  fi
12436else
12437  STRIP="$ac_cv_prog_STRIP"
12438fi
12439
12440test -z "$STRIP" && STRIP=:
12441
12442
12443
12444
12445
12446
12447if test -n "$ac_tool_prefix"; then
12448  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12449set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12451$as_echo_n "checking for $ac_word... " >&6; }
12452if ${ac_cv_prog_RANLIB+:} false; then :
12453  $as_echo_n "(cached) " >&6
12454else
12455  if test -n "$RANLIB"; then
12456  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12457else
12458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12459for as_dir in $PATH
12460do
12461  IFS=$as_save_IFS
12462  test -z "$as_dir" && as_dir=.
12463    for ac_exec_ext in '' $ac_executable_extensions; do
12464  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12465    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12466    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12467    break 2
12468  fi
12469done
12470  done
12471IFS=$as_save_IFS
12472
12473fi
12474fi
12475RANLIB=$ac_cv_prog_RANLIB
12476if test -n "$RANLIB"; then
12477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12478$as_echo "$RANLIB" >&6; }
12479else
12480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481$as_echo "no" >&6; }
12482fi
12483
12484
12485fi
12486if test -z "$ac_cv_prog_RANLIB"; then
12487  ac_ct_RANLIB=$RANLIB
12488  # Extract the first word of "ranlib", so it can be a program name with args.
12489set dummy ranlib; ac_word=$2
12490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12491$as_echo_n "checking for $ac_word... " >&6; }
12492if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
12493  $as_echo_n "(cached) " >&6
12494else
12495  if test -n "$ac_ct_RANLIB"; then
12496  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12497else
12498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12499for as_dir in $PATH
12500do
12501  IFS=$as_save_IFS
12502  test -z "$as_dir" && as_dir=.
12503    for ac_exec_ext in '' $ac_executable_extensions; do
12504  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12505    ac_cv_prog_ac_ct_RANLIB="ranlib"
12506    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12507    break 2
12508  fi
12509done
12510  done
12511IFS=$as_save_IFS
12512
12513fi
12514fi
12515ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12516if test -n "$ac_ct_RANLIB"; then
12517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12518$as_echo "$ac_ct_RANLIB" >&6; }
12519else
12520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12521$as_echo "no" >&6; }
12522fi
12523
12524  if test "x$ac_ct_RANLIB" = x; then
12525    RANLIB=":"
12526  else
12527    case $cross_compiling:$ac_tool_warned in
12528yes:)
12529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12531ac_tool_warned=yes ;;
12532esac
12533    RANLIB=$ac_ct_RANLIB
12534  fi
12535else
12536  RANLIB="$ac_cv_prog_RANLIB"
12537fi
12538
12539test -z "$RANLIB" && RANLIB=:
12540
12541
12542
12543
12544
12545
12546# Determine commands to create old-style static archives.
12547old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12548old_postinstall_cmds='chmod 644 $oldlib'
12549old_postuninstall_cmds=
12550
12551if test -n "$RANLIB"; then
12552  case $host_os in
12553  openbsd*)
12554    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
12555    ;;
12556  *)
12557    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
12558    ;;
12559  esac
12560  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
12561fi
12562
12563case $host_os in
12564  darwin*)
12565    lock_old_archive_extraction=yes ;;
12566  *)
12567    lock_old_archive_extraction=no ;;
12568esac
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608# If no C compiler was specified, use CC.
12609LTCC=${LTCC-"$CC"}
12610
12611# If no C compiler flags were specified, use CFLAGS.
12612LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12613
12614# Allow CC to be a program name with arguments.
12615compiler=$CC
12616
12617
12618# Check for command to grab the raw symbol name followed by C symbol from nm.
12619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12620$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12621if ${lt_cv_sys_global_symbol_pipe+:} false; then :
12622  $as_echo_n "(cached) " >&6
12623else
12624
12625# These are sane defaults that work on at least a few old systems.
12626# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
12627
12628# Character class describing NM global symbol codes.
12629symcode='[BCDEGRST]'
12630
12631# Regexp to match symbols that can be accessed directly from C.
12632sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12633
12634# Define system-specific variables.
12635case $host_os in
12636aix*)
12637  symcode='[BCDT]'
12638  ;;
12639cygwin* | mingw* | pw32* | cegcc*)
12640  symcode='[ABCDGISTW]'
12641  ;;
12642hpux*)
12643  if test "$host_cpu" = ia64; then
12644    symcode='[ABCDEGRST]'
12645  fi
12646  ;;
12647irix* | nonstopux*)
12648  symcode='[BCDEGRST]'
12649  ;;
12650osf*)
12651  symcode='[BCDEGQRST]'
12652  ;;
12653solaris*)
12654  symcode='[BDRT]'
12655  ;;
12656sco3.2v5*)
12657  symcode='[DT]'
12658  ;;
12659sysv4.2uw2*)
12660  symcode='[DT]'
12661  ;;
12662sysv5* | sco5v6* | unixware* | OpenUNIX*)
12663  symcode='[ABDT]'
12664  ;;
12665sysv4)
12666  symcode='[DFNSTU]'
12667  ;;
12668esac
12669
12670# If we're using GNU nm, then use its standard symbol codes.
12671case `$NM -V 2>&1` in
12672*GNU* | *'with BFD'*)
12673  symcode='[ABCDGIRSTW]' ;;
12674esac
12675
12676# Transform an extracted symbol line into a proper C declaration.
12677# Some systems (esp. on ia64) link data and code symbols differently,
12678# so use this general approach.
12679lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12680
12681# Transform an extracted symbol line into symbol name and symbol address
12682lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
12683lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
12684
12685# Handle CRLF in mingw tool chain
12686opt_cr=
12687case $build_os in
12688mingw*)
12689  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12690  ;;
12691esac
12692
12693# Try without a prefix underscore, then with it.
12694for ac_symprfx in "" "_"; do
12695
12696  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12697  symxfrm="\\1 $ac_symprfx\\2 \\2"
12698
12699  # Write the raw and C identifiers.
12700  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12701    # Fake it for dumpbin and say T for any non-static function
12702    # and D for any global variable.
12703    # Also find C++ and __fastcall symbols from MSVC++,
12704    # which start with @ or ?.
12705    lt_cv_sys_global_symbol_pipe="$AWK '"\
12706"     {last_section=section; section=\$ 3};"\
12707"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
12708"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12709"     \$ 0!~/External *\|/{next};"\
12710"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12711"     {if(hide[section]) next};"\
12712"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12713"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12714"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
12715"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12716"     ' prfx=^$ac_symprfx"
12717  else
12718    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12719  fi
12720  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
12721
12722  # Check to see that the pipe works correctly.
12723  pipe_works=no
12724
12725  rm -f conftest*
12726  cat > conftest.$ac_ext <<_LT_EOF
12727#ifdef __cplusplus
12728extern "C" {
12729#endif
12730char nm_test_var;
12731void nm_test_func(void);
12732void nm_test_func(void){}
12733#ifdef __cplusplus
12734}
12735#endif
12736int main(){nm_test_var='a';nm_test_func();return(0);}
12737_LT_EOF
12738
12739  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12740  (eval $ac_compile) 2>&5
12741  ac_status=$?
12742  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12743  test $ac_status = 0; }; then
12744    # Now try to grab the symbols.
12745    nlist=conftest.nm
12746    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12747  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12748  ac_status=$?
12749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12750  test $ac_status = 0; } && test -s "$nlist"; then
12751      # Try sorting and uniquifying the output.
12752      if sort "$nlist" | uniq > "$nlist"T; then
12753	mv -f "$nlist"T "$nlist"
12754      else
12755	rm -f "$nlist"T
12756      fi
12757
12758      # Make sure that we snagged all the symbols we need.
12759      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12760	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12761	  cat <<_LT_EOF > conftest.$ac_ext
12762/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
12763#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12764/* DATA imports from DLLs on WIN32 con't be const, because runtime
12765   relocations are performed -- see ld's documentation on pseudo-relocs.  */
12766# define LT_DLSYM_CONST
12767#elif defined(__osf__)
12768/* This system does not cope well with relocations in const data.  */
12769# define LT_DLSYM_CONST
12770#else
12771# define LT_DLSYM_CONST const
12772#endif
12773
12774#ifdef __cplusplus
12775extern "C" {
12776#endif
12777
12778_LT_EOF
12779	  # Now generate the symbol file.
12780	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12781
12782	  cat <<_LT_EOF >> conftest.$ac_ext
12783
12784/* The mapping between symbol names and symbols.  */
12785LT_DLSYM_CONST struct {
12786  const char *name;
12787  void       *address;
12788}
12789lt__PROGRAM__LTX_preloaded_symbols[] =
12790{
12791  { "@PROGRAM@", (void *) 0 },
12792_LT_EOF
12793	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12794	  cat <<\_LT_EOF >> conftest.$ac_ext
12795  {0, (void *) 0}
12796};
12797
12798/* This works around a problem in FreeBSD linker */
12799#ifdef FREEBSD_WORKAROUND
12800static const void *lt_preloaded_setup() {
12801  return lt__PROGRAM__LTX_preloaded_symbols;
12802}
12803#endif
12804
12805#ifdef __cplusplus
12806}
12807#endif
12808_LT_EOF
12809	  # Now try linking the two files.
12810	  mv conftest.$ac_objext conftstm.$ac_objext
12811	  lt_globsym_save_LIBS=$LIBS
12812	  lt_globsym_save_CFLAGS=$CFLAGS
12813	  LIBS="conftstm.$ac_objext"
12814	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12815	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12816  (eval $ac_link) 2>&5
12817  ac_status=$?
12818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12819  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12820	    pipe_works=yes
12821	  fi
12822	  LIBS=$lt_globsym_save_LIBS
12823	  CFLAGS=$lt_globsym_save_CFLAGS
12824	else
12825	  echo "cannot find nm_test_func in $nlist" >&5
12826	fi
12827      else
12828	echo "cannot find nm_test_var in $nlist" >&5
12829      fi
12830    else
12831      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12832    fi
12833  else
12834    echo "$progname: failed program was:" >&5
12835    cat conftest.$ac_ext >&5
12836  fi
12837  rm -rf conftest* conftst*
12838
12839  # Do not use the global_symbol_pipe unless it works.
12840  if test "$pipe_works" = yes; then
12841    break
12842  else
12843    lt_cv_sys_global_symbol_pipe=
12844  fi
12845done
12846
12847fi
12848
12849if test -z "$lt_cv_sys_global_symbol_pipe"; then
12850  lt_cv_sys_global_symbol_to_cdecl=
12851fi
12852if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12854$as_echo "failed" >&6; }
12855else
12856  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12857$as_echo "ok" >&6; }
12858fi
12859
12860# Response file support.
12861if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12862  nm_file_list_spec='@'
12863elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12864  nm_file_list_spec='@'
12865fi
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12894$as_echo_n "checking for sysroot... " >&6; }
12895
12896# Check whether --with-sysroot was given.
12897if test "${with_sysroot+set}" = set; then :
12898  withval=$with_sysroot;
12899else
12900  with_sysroot=no
12901fi
12902
12903
12904lt_sysroot=
12905case ${with_sysroot} in #(
12906 yes)
12907   if test "$GCC" = yes; then
12908     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12909   fi
12910   ;; #(
12911 /*)
12912   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12913   ;; #(
12914 no|'')
12915   ;; #(
12916 *)
12917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12918$as_echo "${with_sysroot}" >&6; }
12919   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12920   ;;
12921esac
12922
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12924$as_echo "${lt_sysroot:-no}" >&6; }
12925
12926
12927
12928
12929
12930# Check whether --enable-libtool-lock was given.
12931if test "${enable_libtool_lock+set}" = set; then :
12932  enableval=$enable_libtool_lock;
12933fi
12934
12935test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12936
12937# Some flags need to be propagated to the compiler or linker for good
12938# libtool support.
12939case $host in
12940ia64-*-hpux*)
12941  # Find out which ABI we are using.
12942  echo 'int i;' > conftest.$ac_ext
12943  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12944  (eval $ac_compile) 2>&5
12945  ac_status=$?
12946  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12947  test $ac_status = 0; }; then
12948    case `/usr/bin/file conftest.$ac_objext` in
12949      *ELF-32*)
12950	HPUX_IA64_MODE="32"
12951	;;
12952      *ELF-64*)
12953	HPUX_IA64_MODE="64"
12954	;;
12955    esac
12956  fi
12957  rm -rf conftest*
12958  ;;
12959*-*-irix6*)
12960  # Find out which ABI we are using.
12961  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12962  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12963  (eval $ac_compile) 2>&5
12964  ac_status=$?
12965  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12966  test $ac_status = 0; }; then
12967    if test "$lt_cv_prog_gnu_ld" = yes; then
12968      case `/usr/bin/file conftest.$ac_objext` in
12969	*32-bit*)
12970	  LD="${LD-ld} -melf32bsmip"
12971	  ;;
12972	*N32*)
12973	  LD="${LD-ld} -melf32bmipn32"
12974	  ;;
12975	*64-bit*)
12976	  LD="${LD-ld} -melf64bmip"
12977	;;
12978      esac
12979    else
12980      case `/usr/bin/file conftest.$ac_objext` in
12981	*32-bit*)
12982	  LD="${LD-ld} -32"
12983	  ;;
12984	*N32*)
12985	  LD="${LD-ld} -n32"
12986	  ;;
12987	*64-bit*)
12988	  LD="${LD-ld} -64"
12989	  ;;
12990      esac
12991    fi
12992  fi
12993  rm -rf conftest*
12994  ;;
12995
12996x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12997s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12998  # Find out which ABI we are using.
12999  echo 'int i;' > conftest.$ac_ext
13000  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13001  (eval $ac_compile) 2>&5
13002  ac_status=$?
13003  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13004  test $ac_status = 0; }; then
13005    case `/usr/bin/file conftest.o` in
13006      *32-bit*)
13007	case $host in
13008	  x86_64-*kfreebsd*-gnu)
13009	    LD="${LD-ld} -m elf_i386_fbsd"
13010	    ;;
13011	  x86_64-*linux*)
13012	    LD="${LD-ld} -m elf_i386"
13013	    ;;
13014	  ppc64-*linux*|powerpc64-*linux*)
13015	    LD="${LD-ld} -m elf32ppclinux"
13016	    ;;
13017	  s390x-*linux*)
13018	    LD="${LD-ld} -m elf_s390"
13019	    ;;
13020	  sparc64-*linux*)
13021	    LD="${LD-ld} -m elf32_sparc"
13022	    ;;
13023	esac
13024	;;
13025      *64-bit*)
13026	case $host in
13027	  x86_64-*kfreebsd*-gnu)
13028	    LD="${LD-ld} -m elf_x86_64_fbsd"
13029	    ;;
13030	  x86_64-*linux*)
13031	    LD="${LD-ld} -m elf_x86_64"
13032	    ;;
13033	  ppc*-*linux*|powerpc*-*linux*)
13034	    LD="${LD-ld} -m elf64ppc"
13035	    ;;
13036	  s390*-*linux*|s390*-*tpf*)
13037	    LD="${LD-ld} -m elf64_s390"
13038	    ;;
13039	  sparc*-*linux*)
13040	    LD="${LD-ld} -m elf64_sparc"
13041	    ;;
13042	esac
13043	;;
13044    esac
13045  fi
13046  rm -rf conftest*
13047  ;;
13048
13049*-*-sco3.2v5*)
13050  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13051  SAVE_CFLAGS="$CFLAGS"
13052  CFLAGS="$CFLAGS -belf"
13053  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13054$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13055if ${lt_cv_cc_needs_belf+:} false; then :
13056  $as_echo_n "(cached) " >&6
13057else
13058  ac_ext=c
13059ac_cpp='$CPP $CPPFLAGS'
13060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13062ac_compiler_gnu=$ac_cv_c_compiler_gnu
13063
13064     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13065/* end confdefs.h.  */
13066
13067int
13068main ()
13069{
13070
13071  ;
13072  return 0;
13073}
13074_ACEOF
13075if ac_fn_c_try_link "$LINENO"; then :
13076  lt_cv_cc_needs_belf=yes
13077else
13078  lt_cv_cc_needs_belf=no
13079fi
13080rm -f core conftest.err conftest.$ac_objext \
13081    conftest$ac_exeext conftest.$ac_ext
13082     ac_ext=c
13083ac_cpp='$CPP $CPPFLAGS'
13084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13086ac_compiler_gnu=$ac_cv_c_compiler_gnu
13087
13088fi
13089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13090$as_echo "$lt_cv_cc_needs_belf" >&6; }
13091  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13092    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13093    CFLAGS="$SAVE_CFLAGS"
13094  fi
13095  ;;
13096*-*solaris*)
13097  # Find out which ABI we are using.
13098  echo 'int i;' > conftest.$ac_ext
13099  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13100  (eval $ac_compile) 2>&5
13101  ac_status=$?
13102  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13103  test $ac_status = 0; }; then
13104    case `/usr/bin/file conftest.o` in
13105    *64-bit*)
13106      case $lt_cv_prog_gnu_ld in
13107      yes*)
13108        case $host in
13109        i?86-*-solaris*)
13110          LD="${LD-ld} -m elf_x86_64"
13111          ;;
13112        sparc*-*-solaris*)
13113          LD="${LD-ld} -m elf64_sparc"
13114          ;;
13115        esac
13116        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13117        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13118          LD="${LD-ld}_sol2"
13119        fi
13120        ;;
13121      *)
13122	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13123	  LD="${LD-ld} -64"
13124	fi
13125	;;
13126      esac
13127      ;;
13128    esac
13129  fi
13130  rm -rf conftest*
13131  ;;
13132esac
13133
13134need_locks="$enable_libtool_lock"
13135
13136if test -n "$ac_tool_prefix"; then
13137  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13138set dummy ${ac_tool_prefix}mt; ac_word=$2
13139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13140$as_echo_n "checking for $ac_word... " >&6; }
13141if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13142  $as_echo_n "(cached) " >&6
13143else
13144  if test -n "$MANIFEST_TOOL"; then
13145  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13146else
13147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13148for as_dir in $PATH
13149do
13150  IFS=$as_save_IFS
13151  test -z "$as_dir" && as_dir=.
13152    for ac_exec_ext in '' $ac_executable_extensions; do
13153  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13154    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13155    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13156    break 2
13157  fi
13158done
13159  done
13160IFS=$as_save_IFS
13161
13162fi
13163fi
13164MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13165if test -n "$MANIFEST_TOOL"; then
13166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13167$as_echo "$MANIFEST_TOOL" >&6; }
13168else
13169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13170$as_echo "no" >&6; }
13171fi
13172
13173
13174fi
13175if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13176  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13177  # Extract the first word of "mt", so it can be a program name with args.
13178set dummy mt; ac_word=$2
13179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13180$as_echo_n "checking for $ac_word... " >&6; }
13181if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13182  $as_echo_n "(cached) " >&6
13183else
13184  if test -n "$ac_ct_MANIFEST_TOOL"; then
13185  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13186else
13187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13188for as_dir in $PATH
13189do
13190  IFS=$as_save_IFS
13191  test -z "$as_dir" && as_dir=.
13192    for ac_exec_ext in '' $ac_executable_extensions; do
13193  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13194    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13196    break 2
13197  fi
13198done
13199  done
13200IFS=$as_save_IFS
13201
13202fi
13203fi
13204ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13205if test -n "$ac_ct_MANIFEST_TOOL"; then
13206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13207$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13208else
13209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13210$as_echo "no" >&6; }
13211fi
13212
13213  if test "x$ac_ct_MANIFEST_TOOL" = x; then
13214    MANIFEST_TOOL=":"
13215  else
13216    case $cross_compiling:$ac_tool_warned in
13217yes:)
13218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13220ac_tool_warned=yes ;;
13221esac
13222    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13223  fi
13224else
13225  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13226fi
13227
13228test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13230$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13231if ${lt_cv_path_mainfest_tool+:} false; then :
13232  $as_echo_n "(cached) " >&6
13233else
13234  lt_cv_path_mainfest_tool=no
13235  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13236  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13237  cat conftest.err >&5
13238  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13239    lt_cv_path_mainfest_tool=yes
13240  fi
13241  rm -f conftest*
13242fi
13243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13244$as_echo "$lt_cv_path_mainfest_tool" >&6; }
13245if test "x$lt_cv_path_mainfest_tool" != xyes; then
13246  MANIFEST_TOOL=:
13247fi
13248
13249
13250
13251
13252
13253
13254  case $host_os in
13255    rhapsody* | darwin*)
13256    if test -n "$ac_tool_prefix"; then
13257  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13258set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13260$as_echo_n "checking for $ac_word... " >&6; }
13261if ${ac_cv_prog_DSYMUTIL+:} false; then :
13262  $as_echo_n "(cached) " >&6
13263else
13264  if test -n "$DSYMUTIL"; then
13265  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13266else
13267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13268for as_dir in $PATH
13269do
13270  IFS=$as_save_IFS
13271  test -z "$as_dir" && as_dir=.
13272    for ac_exec_ext in '' $ac_executable_extensions; do
13273  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13274    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13275    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13276    break 2
13277  fi
13278done
13279  done
13280IFS=$as_save_IFS
13281
13282fi
13283fi
13284DSYMUTIL=$ac_cv_prog_DSYMUTIL
13285if test -n "$DSYMUTIL"; then
13286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13287$as_echo "$DSYMUTIL" >&6; }
13288else
13289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13290$as_echo "no" >&6; }
13291fi
13292
13293
13294fi
13295if test -z "$ac_cv_prog_DSYMUTIL"; then
13296  ac_ct_DSYMUTIL=$DSYMUTIL
13297  # Extract the first word of "dsymutil", so it can be a program name with args.
13298set dummy dsymutil; ac_word=$2
13299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13300$as_echo_n "checking for $ac_word... " >&6; }
13301if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
13302  $as_echo_n "(cached) " >&6
13303else
13304  if test -n "$ac_ct_DSYMUTIL"; then
13305  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13306else
13307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13308for as_dir in $PATH
13309do
13310  IFS=$as_save_IFS
13311  test -z "$as_dir" && as_dir=.
13312    for ac_exec_ext in '' $ac_executable_extensions; do
13313  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13314    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13316    break 2
13317  fi
13318done
13319  done
13320IFS=$as_save_IFS
13321
13322fi
13323fi
13324ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13325if test -n "$ac_ct_DSYMUTIL"; then
13326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13327$as_echo "$ac_ct_DSYMUTIL" >&6; }
13328else
13329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13330$as_echo "no" >&6; }
13331fi
13332
13333  if test "x$ac_ct_DSYMUTIL" = x; then
13334    DSYMUTIL=":"
13335  else
13336    case $cross_compiling:$ac_tool_warned in
13337yes:)
13338{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13339$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13340ac_tool_warned=yes ;;
13341esac
13342    DSYMUTIL=$ac_ct_DSYMUTIL
13343  fi
13344else
13345  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13346fi
13347
13348    if test -n "$ac_tool_prefix"; then
13349  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13350set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13352$as_echo_n "checking for $ac_word... " >&6; }
13353if ${ac_cv_prog_NMEDIT+:} false; then :
13354  $as_echo_n "(cached) " >&6
13355else
13356  if test -n "$NMEDIT"; then
13357  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13358else
13359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13360for as_dir in $PATH
13361do
13362  IFS=$as_save_IFS
13363  test -z "$as_dir" && as_dir=.
13364    for ac_exec_ext in '' $ac_executable_extensions; do
13365  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13366    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13367    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13368    break 2
13369  fi
13370done
13371  done
13372IFS=$as_save_IFS
13373
13374fi
13375fi
13376NMEDIT=$ac_cv_prog_NMEDIT
13377if test -n "$NMEDIT"; then
13378  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13379$as_echo "$NMEDIT" >&6; }
13380else
13381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13382$as_echo "no" >&6; }
13383fi
13384
13385
13386fi
13387if test -z "$ac_cv_prog_NMEDIT"; then
13388  ac_ct_NMEDIT=$NMEDIT
13389  # Extract the first word of "nmedit", so it can be a program name with args.
13390set dummy nmedit; ac_word=$2
13391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13392$as_echo_n "checking for $ac_word... " >&6; }
13393if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
13394  $as_echo_n "(cached) " >&6
13395else
13396  if test -n "$ac_ct_NMEDIT"; then
13397  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13398else
13399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13400for as_dir in $PATH
13401do
13402  IFS=$as_save_IFS
13403  test -z "$as_dir" && as_dir=.
13404    for ac_exec_ext in '' $ac_executable_extensions; do
13405  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13406    ac_cv_prog_ac_ct_NMEDIT="nmedit"
13407    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13408    break 2
13409  fi
13410done
13411  done
13412IFS=$as_save_IFS
13413
13414fi
13415fi
13416ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13417if test -n "$ac_ct_NMEDIT"; then
13418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13419$as_echo "$ac_ct_NMEDIT" >&6; }
13420else
13421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13422$as_echo "no" >&6; }
13423fi
13424
13425  if test "x$ac_ct_NMEDIT" = x; then
13426    NMEDIT=":"
13427  else
13428    case $cross_compiling:$ac_tool_warned in
13429yes:)
13430{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13431$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13432ac_tool_warned=yes ;;
13433esac
13434    NMEDIT=$ac_ct_NMEDIT
13435  fi
13436else
13437  NMEDIT="$ac_cv_prog_NMEDIT"
13438fi
13439
13440    if test -n "$ac_tool_prefix"; then
13441  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13442set dummy ${ac_tool_prefix}lipo; ac_word=$2
13443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13444$as_echo_n "checking for $ac_word... " >&6; }
13445if ${ac_cv_prog_LIPO+:} false; then :
13446  $as_echo_n "(cached) " >&6
13447else
13448  if test -n "$LIPO"; then
13449  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13450else
13451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13452for as_dir in $PATH
13453do
13454  IFS=$as_save_IFS
13455  test -z "$as_dir" && as_dir=.
13456    for ac_exec_ext in '' $ac_executable_extensions; do
13457  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13458    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13459    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13460    break 2
13461  fi
13462done
13463  done
13464IFS=$as_save_IFS
13465
13466fi
13467fi
13468LIPO=$ac_cv_prog_LIPO
13469if test -n "$LIPO"; then
13470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13471$as_echo "$LIPO" >&6; }
13472else
13473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13474$as_echo "no" >&6; }
13475fi
13476
13477
13478fi
13479if test -z "$ac_cv_prog_LIPO"; then
13480  ac_ct_LIPO=$LIPO
13481  # Extract the first word of "lipo", so it can be a program name with args.
13482set dummy lipo; ac_word=$2
13483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13484$as_echo_n "checking for $ac_word... " >&6; }
13485if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
13486  $as_echo_n "(cached) " >&6
13487else
13488  if test -n "$ac_ct_LIPO"; then
13489  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13490else
13491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13492for as_dir in $PATH
13493do
13494  IFS=$as_save_IFS
13495  test -z "$as_dir" && as_dir=.
13496    for ac_exec_ext in '' $ac_executable_extensions; do
13497  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13498    ac_cv_prog_ac_ct_LIPO="lipo"
13499    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13500    break 2
13501  fi
13502done
13503  done
13504IFS=$as_save_IFS
13505
13506fi
13507fi
13508ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13509if test -n "$ac_ct_LIPO"; then
13510  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13511$as_echo "$ac_ct_LIPO" >&6; }
13512else
13513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13514$as_echo "no" >&6; }
13515fi
13516
13517  if test "x$ac_ct_LIPO" = x; then
13518    LIPO=":"
13519  else
13520    case $cross_compiling:$ac_tool_warned in
13521yes:)
13522{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13523$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13524ac_tool_warned=yes ;;
13525esac
13526    LIPO=$ac_ct_LIPO
13527  fi
13528else
13529  LIPO="$ac_cv_prog_LIPO"
13530fi
13531
13532    if test -n "$ac_tool_prefix"; then
13533  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13534set dummy ${ac_tool_prefix}otool; ac_word=$2
13535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13536$as_echo_n "checking for $ac_word... " >&6; }
13537if ${ac_cv_prog_OTOOL+:} false; then :
13538  $as_echo_n "(cached) " >&6
13539else
13540  if test -n "$OTOOL"; then
13541  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13542else
13543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13544for as_dir in $PATH
13545do
13546  IFS=$as_save_IFS
13547  test -z "$as_dir" && as_dir=.
13548    for ac_exec_ext in '' $ac_executable_extensions; do
13549  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13550    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13552    break 2
13553  fi
13554done
13555  done
13556IFS=$as_save_IFS
13557
13558fi
13559fi
13560OTOOL=$ac_cv_prog_OTOOL
13561if test -n "$OTOOL"; then
13562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13563$as_echo "$OTOOL" >&6; }
13564else
13565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13566$as_echo "no" >&6; }
13567fi
13568
13569
13570fi
13571if test -z "$ac_cv_prog_OTOOL"; then
13572  ac_ct_OTOOL=$OTOOL
13573  # Extract the first word of "otool", so it can be a program name with args.
13574set dummy otool; ac_word=$2
13575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13576$as_echo_n "checking for $ac_word... " >&6; }
13577if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
13578  $as_echo_n "(cached) " >&6
13579else
13580  if test -n "$ac_ct_OTOOL"; then
13581  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13582else
13583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13584for as_dir in $PATH
13585do
13586  IFS=$as_save_IFS
13587  test -z "$as_dir" && as_dir=.
13588    for ac_exec_ext in '' $ac_executable_extensions; do
13589  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13590    ac_cv_prog_ac_ct_OTOOL="otool"
13591    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13592    break 2
13593  fi
13594done
13595  done
13596IFS=$as_save_IFS
13597
13598fi
13599fi
13600ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13601if test -n "$ac_ct_OTOOL"; then
13602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13603$as_echo "$ac_ct_OTOOL" >&6; }
13604else
13605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13606$as_echo "no" >&6; }
13607fi
13608
13609  if test "x$ac_ct_OTOOL" = x; then
13610    OTOOL=":"
13611  else
13612    case $cross_compiling:$ac_tool_warned in
13613yes:)
13614{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13615$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13616ac_tool_warned=yes ;;
13617esac
13618    OTOOL=$ac_ct_OTOOL
13619  fi
13620else
13621  OTOOL="$ac_cv_prog_OTOOL"
13622fi
13623
13624    if test -n "$ac_tool_prefix"; then
13625  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13626set dummy ${ac_tool_prefix}otool64; ac_word=$2
13627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13628$as_echo_n "checking for $ac_word... " >&6; }
13629if ${ac_cv_prog_OTOOL64+:} false; then :
13630  $as_echo_n "(cached) " >&6
13631else
13632  if test -n "$OTOOL64"; then
13633  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13634else
13635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13636for as_dir in $PATH
13637do
13638  IFS=$as_save_IFS
13639  test -z "$as_dir" && as_dir=.
13640    for ac_exec_ext in '' $ac_executable_extensions; do
13641  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13642    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13643    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13644    break 2
13645  fi
13646done
13647  done
13648IFS=$as_save_IFS
13649
13650fi
13651fi
13652OTOOL64=$ac_cv_prog_OTOOL64
13653if test -n "$OTOOL64"; then
13654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13655$as_echo "$OTOOL64" >&6; }
13656else
13657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13658$as_echo "no" >&6; }
13659fi
13660
13661
13662fi
13663if test -z "$ac_cv_prog_OTOOL64"; then
13664  ac_ct_OTOOL64=$OTOOL64
13665  # Extract the first word of "otool64", so it can be a program name with args.
13666set dummy otool64; ac_word=$2
13667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13668$as_echo_n "checking for $ac_word... " >&6; }
13669if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
13670  $as_echo_n "(cached) " >&6
13671else
13672  if test -n "$ac_ct_OTOOL64"; then
13673  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13674else
13675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13676for as_dir in $PATH
13677do
13678  IFS=$as_save_IFS
13679  test -z "$as_dir" && as_dir=.
13680    for ac_exec_ext in '' $ac_executable_extensions; do
13681  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13682    ac_cv_prog_ac_ct_OTOOL64="otool64"
13683    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13684    break 2
13685  fi
13686done
13687  done
13688IFS=$as_save_IFS
13689
13690fi
13691fi
13692ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13693if test -n "$ac_ct_OTOOL64"; then
13694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13695$as_echo "$ac_ct_OTOOL64" >&6; }
13696else
13697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13698$as_echo "no" >&6; }
13699fi
13700
13701  if test "x$ac_ct_OTOOL64" = x; then
13702    OTOOL64=":"
13703  else
13704    case $cross_compiling:$ac_tool_warned in
13705yes:)
13706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13708ac_tool_warned=yes ;;
13709esac
13710    OTOOL64=$ac_ct_OTOOL64
13711  fi
13712else
13713  OTOOL64="$ac_cv_prog_OTOOL64"
13714fi
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13743$as_echo_n "checking for -single_module linker flag... " >&6; }
13744if ${lt_cv_apple_cc_single_mod+:} false; then :
13745  $as_echo_n "(cached) " >&6
13746else
13747  lt_cv_apple_cc_single_mod=no
13748      if test -z "${LT_MULTI_MODULE}"; then
13749	# By default we will add the -single_module flag. You can override
13750	# by either setting the environment variable LT_MULTI_MODULE
13751	# non-empty at configure time, or by adding -multi_module to the
13752	# link flags.
13753	rm -rf libconftest.dylib*
13754	echo "int foo(void){return 1;}" > conftest.c
13755	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13756-dynamiclib -Wl,-single_module conftest.c" >&5
13757	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13758	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13759        _lt_result=$?
13760	# If there is a non-empty error log, and "single_module"
13761	# appears in it, assume the flag caused a linker warning
13762        if test -s conftest.err && $GREP single_module conftest.err; then
13763	  cat conftest.err >&5
13764	# Otherwise, if the output was created with a 0 exit code from
13765	# the compiler, it worked.
13766	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
13767	  lt_cv_apple_cc_single_mod=yes
13768	else
13769	  cat conftest.err >&5
13770	fi
13771	rm -rf libconftest.dylib*
13772	rm -f conftest.*
13773      fi
13774fi
13775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13776$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13777
13778    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13779$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13780if ${lt_cv_ld_exported_symbols_list+:} false; then :
13781  $as_echo_n "(cached) " >&6
13782else
13783  lt_cv_ld_exported_symbols_list=no
13784      save_LDFLAGS=$LDFLAGS
13785      echo "_main" > conftest.sym
13786      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13787      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788/* end confdefs.h.  */
13789
13790int
13791main ()
13792{
13793
13794  ;
13795  return 0;
13796}
13797_ACEOF
13798if ac_fn_c_try_link "$LINENO"; then :
13799  lt_cv_ld_exported_symbols_list=yes
13800else
13801  lt_cv_ld_exported_symbols_list=no
13802fi
13803rm -f core conftest.err conftest.$ac_objext \
13804    conftest$ac_exeext conftest.$ac_ext
13805	LDFLAGS="$save_LDFLAGS"
13806
13807fi
13808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13809$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13810
13811    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13812$as_echo_n "checking for -force_load linker flag... " >&6; }
13813if ${lt_cv_ld_force_load+:} false; then :
13814  $as_echo_n "(cached) " >&6
13815else
13816  lt_cv_ld_force_load=no
13817      cat > conftest.c << _LT_EOF
13818int forced_loaded() { return 2;}
13819_LT_EOF
13820      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13821      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13822      echo "$AR cru libconftest.a conftest.o" >&5
13823      $AR cru libconftest.a conftest.o 2>&5
13824      echo "$RANLIB libconftest.a" >&5
13825      $RANLIB libconftest.a 2>&5
13826      cat > conftest.c << _LT_EOF
13827int main() { return 0;}
13828_LT_EOF
13829      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13830      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13831      _lt_result=$?
13832      if test -s conftest.err && $GREP force_load conftest.err; then
13833	cat conftest.err >&5
13834      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
13835	lt_cv_ld_force_load=yes
13836      else
13837	cat conftest.err >&5
13838      fi
13839        rm -f conftest.err libconftest.a conftest conftest.c
13840        rm -rf conftest.dSYM
13841
13842fi
13843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13844$as_echo "$lt_cv_ld_force_load" >&6; }
13845    case $host_os in
13846    rhapsody* | darwin1.[012])
13847      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13848    darwin1.*)
13849      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13850    darwin*) # darwin 5.x on
13851      # if running on 10.5 or later, the deployment target defaults
13852      # to the OS version, if on x86, and 10.4, the deployment
13853      # target defaults to 10.4. Don't you love it?
13854      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13855	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13856	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13857	10.[012]*)
13858	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13859	10.*)
13860	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13861      esac
13862    ;;
13863  esac
13864    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13865      _lt_dar_single_mod='$single_module'
13866    fi
13867    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13868      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13869    else
13870      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13871    fi
13872    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13873      _lt_dsymutil='~$DSYMUTIL $lib || :'
13874    else
13875      _lt_dsymutil=
13876    fi
13877    ;;
13878  esac
13879
13880for ac_header in dlfcn.h
13881do :
13882  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13883"
13884if test "x$ac_cv_header_dlfcn_h" = xyes; then :
13885  cat >>confdefs.h <<_ACEOF
13886#define HAVE_DLFCN_H 1
13887_ACEOF
13888
13889fi
13890
13891done
13892
13893
13894
13895
13896
13897# Set options
13898
13899
13900
13901        enable_dlopen=no
13902
13903
13904  enable_win32_dll=no
13905
13906
13907            # Check whether --enable-shared was given.
13908if test "${enable_shared+set}" = set; then :
13909  enableval=$enable_shared; p=${PACKAGE-default}
13910    case $enableval in
13911    yes) enable_shared=yes ;;
13912    no) enable_shared=no ;;
13913    *)
13914      enable_shared=no
13915      # Look at the argument we got.  We use all the common list separators.
13916      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13917      for pkg in $enableval; do
13918	IFS="$lt_save_ifs"
13919	if test "X$pkg" = "X$p"; then
13920	  enable_shared=yes
13921	fi
13922      done
13923      IFS="$lt_save_ifs"
13924      ;;
13925    esac
13926else
13927  enable_shared=yes
13928fi
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940# Check whether --with-pic was given.
13941if test "${with_pic+set}" = set; then :
13942  withval=$with_pic; lt_p=${PACKAGE-default}
13943    case $withval in
13944    yes|no) pic_mode=$withval ;;
13945    *)
13946      pic_mode=default
13947      # Look at the argument we got.  We use all the common list separators.
13948      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13949      for lt_pkg in $withval; do
13950	IFS="$lt_save_ifs"
13951	if test "X$lt_pkg" = "X$lt_p"; then
13952	  pic_mode=yes
13953	fi
13954      done
13955      IFS="$lt_save_ifs"
13956      ;;
13957    esac
13958else
13959  pic_mode=default
13960fi
13961
13962
13963test -z "$pic_mode" && pic_mode=default
13964
13965
13966
13967
13968
13969
13970
13971  # Check whether --enable-fast-install was given.
13972if test "${enable_fast_install+set}" = set; then :
13973  enableval=$enable_fast_install; p=${PACKAGE-default}
13974    case $enableval in
13975    yes) enable_fast_install=yes ;;
13976    no) enable_fast_install=no ;;
13977    *)
13978      enable_fast_install=no
13979      # Look at the argument we got.  We use all the common list separators.
13980      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13981      for pkg in $enableval; do
13982	IFS="$lt_save_ifs"
13983	if test "X$pkg" = "X$p"; then
13984	  enable_fast_install=yes
13985	fi
13986      done
13987      IFS="$lt_save_ifs"
13988      ;;
13989    esac
13990else
13991  enable_fast_install=yes
13992fi
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004# This can be used to rebuild libtool when needed
14005LIBTOOL_DEPS="$ltmain"
14006
14007# Always use our own libtool.
14008LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039test -z "$LN_S" && LN_S="ln -s"
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054if test -n "${ZSH_VERSION+set}" ; then
14055   setopt NO_GLOB_SUBST
14056fi
14057
14058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14059$as_echo_n "checking for objdir... " >&6; }
14060if ${lt_cv_objdir+:} false; then :
14061  $as_echo_n "(cached) " >&6
14062else
14063  rm -f .libs 2>/dev/null
14064mkdir .libs 2>/dev/null
14065if test -d .libs; then
14066  lt_cv_objdir=.libs
14067else
14068  # MS-DOS does not allow filenames that begin with a dot.
14069  lt_cv_objdir=_libs
14070fi
14071rmdir .libs 2>/dev/null
14072fi
14073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14074$as_echo "$lt_cv_objdir" >&6; }
14075objdir=$lt_cv_objdir
14076
14077
14078
14079
14080
14081cat >>confdefs.h <<_ACEOF
14082#define LT_OBJDIR "$lt_cv_objdir/"
14083_ACEOF
14084
14085
14086
14087
14088case $host_os in
14089aix3*)
14090  # AIX sometimes has problems with the GCC collect2 program.  For some
14091  # reason, if we set the COLLECT_NAMES environment variable, the problems
14092  # vanish in a puff of smoke.
14093  if test "X${COLLECT_NAMES+set}" != Xset; then
14094    COLLECT_NAMES=
14095    export COLLECT_NAMES
14096  fi
14097  ;;
14098esac
14099
14100# Global variables:
14101ofile=libtool
14102can_build_shared=yes
14103
14104# All known linkers require a `.a' archive for static linking (except MSVC,
14105# which needs '.lib').
14106libext=a
14107
14108with_gnu_ld="$lt_cv_prog_gnu_ld"
14109
14110old_CC="$CC"
14111old_CFLAGS="$CFLAGS"
14112
14113# Set sane defaults for various variables
14114test -z "$CC" && CC=cc
14115test -z "$LTCC" && LTCC=$CC
14116test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14117test -z "$LD" && LD=ld
14118test -z "$ac_objext" && ac_objext=o
14119
14120for cc_temp in $compiler""; do
14121  case $cc_temp in
14122    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14123    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14124    \-*) ;;
14125    *) break;;
14126  esac
14127done
14128cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14129
14130
14131# Only perform the check for file, if the check method requires it
14132test -z "$MAGIC_CMD" && MAGIC_CMD=file
14133case $deplibs_check_method in
14134file_magic*)
14135  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14136    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14137$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14138if ${lt_cv_path_MAGIC_CMD+:} false; then :
14139  $as_echo_n "(cached) " >&6
14140else
14141  case $MAGIC_CMD in
14142[\\/*] |  ?:[\\/]*)
14143  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14144  ;;
14145*)
14146  lt_save_MAGIC_CMD="$MAGIC_CMD"
14147  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14148  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14149  for ac_dir in $ac_dummy; do
14150    IFS="$lt_save_ifs"
14151    test -z "$ac_dir" && ac_dir=.
14152    if test -f $ac_dir/${ac_tool_prefix}file; then
14153      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14154      if test -n "$file_magic_test_file"; then
14155	case $deplibs_check_method in
14156	"file_magic "*)
14157	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14158	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14159	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14160	    $EGREP "$file_magic_regex" > /dev/null; then
14161	    :
14162	  else
14163	    cat <<_LT_EOF 1>&2
14164
14165*** Warning: the command libtool uses to detect shared libraries,
14166*** $file_magic_cmd, produces output that libtool cannot recognize.
14167*** The result is that libtool may fail to recognize shared libraries
14168*** as such.  This will affect the creation of libtool libraries that
14169*** depend on shared libraries, but programs linked with such libtool
14170*** libraries will work regardless of this problem.  Nevertheless, you
14171*** may want to report the problem to your system manager and/or to
14172*** bug-libtool@gnu.org
14173
14174_LT_EOF
14175	  fi ;;
14176	esac
14177      fi
14178      break
14179    fi
14180  done
14181  IFS="$lt_save_ifs"
14182  MAGIC_CMD="$lt_save_MAGIC_CMD"
14183  ;;
14184esac
14185fi
14186
14187MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14188if test -n "$MAGIC_CMD"; then
14189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14190$as_echo "$MAGIC_CMD" >&6; }
14191else
14192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14193$as_echo "no" >&6; }
14194fi
14195
14196
14197
14198
14199
14200if test -z "$lt_cv_path_MAGIC_CMD"; then
14201  if test -n "$ac_tool_prefix"; then
14202    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14203$as_echo_n "checking for file... " >&6; }
14204if ${lt_cv_path_MAGIC_CMD+:} false; then :
14205  $as_echo_n "(cached) " >&6
14206else
14207  case $MAGIC_CMD in
14208[\\/*] |  ?:[\\/]*)
14209  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14210  ;;
14211*)
14212  lt_save_MAGIC_CMD="$MAGIC_CMD"
14213  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14214  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14215  for ac_dir in $ac_dummy; do
14216    IFS="$lt_save_ifs"
14217    test -z "$ac_dir" && ac_dir=.
14218    if test -f $ac_dir/file; then
14219      lt_cv_path_MAGIC_CMD="$ac_dir/file"
14220      if test -n "$file_magic_test_file"; then
14221	case $deplibs_check_method in
14222	"file_magic "*)
14223	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14224	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14225	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14226	    $EGREP "$file_magic_regex" > /dev/null; then
14227	    :
14228	  else
14229	    cat <<_LT_EOF 1>&2
14230
14231*** Warning: the command libtool uses to detect shared libraries,
14232*** $file_magic_cmd, produces output that libtool cannot recognize.
14233*** The result is that libtool may fail to recognize shared libraries
14234*** as such.  This will affect the creation of libtool libraries that
14235*** depend on shared libraries, but programs linked with such libtool
14236*** libraries will work regardless of this problem.  Nevertheless, you
14237*** may want to report the problem to your system manager and/or to
14238*** bug-libtool@gnu.org
14239
14240_LT_EOF
14241	  fi ;;
14242	esac
14243      fi
14244      break
14245    fi
14246  done
14247  IFS="$lt_save_ifs"
14248  MAGIC_CMD="$lt_save_MAGIC_CMD"
14249  ;;
14250esac
14251fi
14252
14253MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14254if test -n "$MAGIC_CMD"; then
14255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14256$as_echo "$MAGIC_CMD" >&6; }
14257else
14258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14259$as_echo "no" >&6; }
14260fi
14261
14262
14263  else
14264    MAGIC_CMD=:
14265  fi
14266fi
14267
14268  fi
14269  ;;
14270esac
14271
14272# Use C for the default configuration in the libtool script
14273
14274lt_save_CC="$CC"
14275ac_ext=c
14276ac_cpp='$CPP $CPPFLAGS'
14277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14279ac_compiler_gnu=$ac_cv_c_compiler_gnu
14280
14281
14282# Source file extension for C test sources.
14283ac_ext=c
14284
14285# Object file extension for compiled C test sources.
14286objext=o
14287objext=$objext
14288
14289# Code to be used in simple compile tests
14290lt_simple_compile_test_code="int some_variable = 0;"
14291
14292# Code to be used in simple link tests
14293lt_simple_link_test_code='int main(){return(0);}'
14294
14295
14296
14297
14298
14299
14300
14301# If no C compiler was specified, use CC.
14302LTCC=${LTCC-"$CC"}
14303
14304# If no C compiler flags were specified, use CFLAGS.
14305LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14306
14307# Allow CC to be a program name with arguments.
14308compiler=$CC
14309
14310# Save the default compiler, since it gets overwritten when the other
14311# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14312compiler_DEFAULT=$CC
14313
14314# save warnings/boilerplate of simple test code
14315ac_outfile=conftest.$ac_objext
14316echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14317eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14318_lt_compiler_boilerplate=`cat conftest.err`
14319$RM conftest*
14320
14321ac_outfile=conftest.$ac_objext
14322echo "$lt_simple_link_test_code" >conftest.$ac_ext
14323eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14324_lt_linker_boilerplate=`cat conftest.err`
14325$RM -r conftest*
14326
14327
14328if test -n "$compiler"; then
14329
14330lt_prog_compiler_no_builtin_flag=
14331
14332if test "$GCC" = yes; then
14333  case $cc_basename in
14334  nvcc*)
14335    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14336  *)
14337    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14338  esac
14339
14340  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14341$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14342if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
14343  $as_echo_n "(cached) " >&6
14344else
14345  lt_cv_prog_compiler_rtti_exceptions=no
14346   ac_outfile=conftest.$ac_objext
14347   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14348   lt_compiler_flag="-fno-rtti -fno-exceptions"
14349   # Insert the option either (1) after the last *FLAGS variable, or
14350   # (2) before a word containing "conftest.", or (3) at the end.
14351   # Note that $ac_compile itself does not contain backslashes and begins
14352   # with a dollar sign (not a hyphen), so the echo should work correctly.
14353   # The option is referenced via a variable to avoid confusing sed.
14354   lt_compile=`echo "$ac_compile" | $SED \
14355   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14356   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14357   -e 's:$: $lt_compiler_flag:'`
14358   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14359   (eval "$lt_compile" 2>conftest.err)
14360   ac_status=$?
14361   cat conftest.err >&5
14362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363   if (exit $ac_status) && test -s "$ac_outfile"; then
14364     # The compiler can only warn and ignore the option if not recognized
14365     # So say no if there are warnings other than the usual output.
14366     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14367     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14368     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14369       lt_cv_prog_compiler_rtti_exceptions=yes
14370     fi
14371   fi
14372   $RM conftest*
14373
14374fi
14375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14376$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14377
14378if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14379    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14380else
14381    :
14382fi
14383
14384fi
14385
14386
14387
14388
14389
14390
14391  lt_prog_compiler_wl=
14392lt_prog_compiler_pic=
14393lt_prog_compiler_static=
14394
14395
14396  if test "$GCC" = yes; then
14397    lt_prog_compiler_wl='-Wl,'
14398    lt_prog_compiler_static='-static'
14399
14400    case $host_os in
14401      aix*)
14402      # All AIX code is PIC.
14403      if test "$host_cpu" = ia64; then
14404	# AIX 5 now supports IA64 processor
14405	lt_prog_compiler_static='-Bstatic'
14406      fi
14407      ;;
14408
14409    amigaos*)
14410      case $host_cpu in
14411      powerpc)
14412            # see comment about AmigaOS4 .so support
14413            lt_prog_compiler_pic='-fPIC'
14414        ;;
14415      m68k)
14416            # FIXME: we need at least 68020 code to build shared libraries, but
14417            # adding the `-m68020' flag to GCC prevents building anything better,
14418            # like `-m68040'.
14419            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14420        ;;
14421      esac
14422      ;;
14423
14424    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14425      # PIC is the default for these OSes.
14426      ;;
14427
14428    mingw* | cygwin* | pw32* | os2* | cegcc*)
14429      # This hack is so that the source file can tell whether it is being
14430      # built for inclusion in a dll (and should export symbols for example).
14431      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14432      # (--disable-auto-import) libraries
14433      lt_prog_compiler_pic='-DDLL_EXPORT'
14434      ;;
14435
14436    darwin* | rhapsody*)
14437      # PIC is the default on this platform
14438      # Common symbols not allowed in MH_DYLIB files
14439      lt_prog_compiler_pic='-fno-common'
14440      ;;
14441
14442    haiku*)
14443      # PIC is the default for Haiku.
14444      # The "-static" flag exists, but is broken.
14445      lt_prog_compiler_static=
14446      ;;
14447
14448    hpux*)
14449      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14450      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14451      # sets the default TLS model and affects inlining.
14452      case $host_cpu in
14453      hppa*64*)
14454	# +Z the default
14455	;;
14456      *)
14457	lt_prog_compiler_pic='-fPIC'
14458	;;
14459      esac
14460      ;;
14461
14462    interix[3-9]*)
14463      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14464      # Instead, we relocate shared libraries at runtime.
14465      ;;
14466
14467    msdosdjgpp*)
14468      # Just because we use GCC doesn't mean we suddenly get shared libraries
14469      # on systems that don't support them.
14470      lt_prog_compiler_can_build_shared=no
14471      enable_shared=no
14472      ;;
14473
14474    *nto* | *qnx*)
14475      # QNX uses GNU C++, but need to define -shared option too, otherwise
14476      # it will coredump.
14477      lt_prog_compiler_pic='-fPIC -shared'
14478      ;;
14479
14480    sysv4*MP*)
14481      if test -d /usr/nec; then
14482	lt_prog_compiler_pic=-Kconform_pic
14483      fi
14484      ;;
14485
14486    *)
14487      lt_prog_compiler_pic='-fPIC'
14488      ;;
14489    esac
14490
14491    case $cc_basename in
14492    nvcc*) # Cuda Compiler Driver 2.2
14493      lt_prog_compiler_wl='-Xlinker '
14494      if test -n "$lt_prog_compiler_pic"; then
14495        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14496      fi
14497      ;;
14498    esac
14499  else
14500    # PORTME Check for flag to pass linker flags through the system compiler.
14501    case $host_os in
14502    aix*)
14503      lt_prog_compiler_wl='-Wl,'
14504      if test "$host_cpu" = ia64; then
14505	# AIX 5 now supports IA64 processor
14506	lt_prog_compiler_static='-Bstatic'
14507      else
14508	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14509      fi
14510      ;;
14511
14512    mingw* | cygwin* | pw32* | os2* | cegcc*)
14513      # This hack is so that the source file can tell whether it is being
14514      # built for inclusion in a dll (and should export symbols for example).
14515      lt_prog_compiler_pic='-DDLL_EXPORT'
14516      ;;
14517
14518    hpux9* | hpux10* | hpux11*)
14519      lt_prog_compiler_wl='-Wl,'
14520      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14521      # not for PA HP-UX.
14522      case $host_cpu in
14523      hppa*64*|ia64*)
14524	# +Z the default
14525	;;
14526      *)
14527	lt_prog_compiler_pic='+Z'
14528	;;
14529      esac
14530      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14531      lt_prog_compiler_static='${wl}-a ${wl}archive'
14532      ;;
14533
14534    irix5* | irix6* | nonstopux*)
14535      lt_prog_compiler_wl='-Wl,'
14536      # PIC (with -KPIC) is the default.
14537      lt_prog_compiler_static='-non_shared'
14538      ;;
14539
14540    linux* | k*bsd*-gnu | kopensolaris*-gnu)
14541      case $cc_basename in
14542      # old Intel for x86_64 which still supported -KPIC.
14543      ecc*)
14544	lt_prog_compiler_wl='-Wl,'
14545	lt_prog_compiler_pic='-KPIC'
14546	lt_prog_compiler_static='-static'
14547        ;;
14548      # icc used to be incompatible with GCC.
14549      # ICC 10 doesn't accept -KPIC any more.
14550      icc* | ifort*)
14551	lt_prog_compiler_wl='-Wl,'
14552	lt_prog_compiler_pic='-fPIC'
14553	lt_prog_compiler_static='-static'
14554        ;;
14555      # Lahey Fortran 8.1.
14556      lf95*)
14557	lt_prog_compiler_wl='-Wl,'
14558	lt_prog_compiler_pic='--shared'
14559	lt_prog_compiler_static='--static'
14560	;;
14561      nagfor*)
14562	# NAG Fortran compiler
14563	lt_prog_compiler_wl='-Wl,-Wl,,'
14564	lt_prog_compiler_pic='-PIC'
14565	lt_prog_compiler_static='-Bstatic'
14566	;;
14567      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14568        # Portland Group compilers (*not* the Pentium gcc compiler,
14569	# which looks to be a dead project)
14570	lt_prog_compiler_wl='-Wl,'
14571	lt_prog_compiler_pic='-fpic'
14572	lt_prog_compiler_static='-Bstatic'
14573        ;;
14574      ccc*)
14575        lt_prog_compiler_wl='-Wl,'
14576        # All Alpha code is PIC.
14577        lt_prog_compiler_static='-non_shared'
14578        ;;
14579      xl* | bgxl* | bgf* | mpixl*)
14580	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14581	lt_prog_compiler_wl='-Wl,'
14582	lt_prog_compiler_pic='-qpic'
14583	lt_prog_compiler_static='-qstaticlink'
14584	;;
14585      *)
14586	case `$CC -V 2>&1 | sed 5q` in
14587	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14588	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14589	  lt_prog_compiler_pic='-KPIC'
14590	  lt_prog_compiler_static='-Bstatic'
14591	  lt_prog_compiler_wl=''
14592	  ;;
14593	*Sun\ F* | *Sun*Fortran*)
14594	  lt_prog_compiler_pic='-KPIC'
14595	  lt_prog_compiler_static='-Bstatic'
14596	  lt_prog_compiler_wl='-Qoption ld '
14597	  ;;
14598	*Sun\ C*)
14599	  # Sun C 5.9
14600	  lt_prog_compiler_pic='-KPIC'
14601	  lt_prog_compiler_static='-Bstatic'
14602	  lt_prog_compiler_wl='-Wl,'
14603	  ;;
14604        *Intel*\ [CF]*Compiler*)
14605	  lt_prog_compiler_wl='-Wl,'
14606	  lt_prog_compiler_pic='-fPIC'
14607	  lt_prog_compiler_static='-static'
14608	  ;;
14609	*Portland\ Group*)
14610	  lt_prog_compiler_wl='-Wl,'
14611	  lt_prog_compiler_pic='-fpic'
14612	  lt_prog_compiler_static='-Bstatic'
14613	  ;;
14614	esac
14615	;;
14616      esac
14617      ;;
14618
14619    newsos6)
14620      lt_prog_compiler_pic='-KPIC'
14621      lt_prog_compiler_static='-Bstatic'
14622      ;;
14623
14624    *nto* | *qnx*)
14625      # QNX uses GNU C++, but need to define -shared option too, otherwise
14626      # it will coredump.
14627      lt_prog_compiler_pic='-fPIC -shared'
14628      ;;
14629
14630    osf3* | osf4* | osf5*)
14631      lt_prog_compiler_wl='-Wl,'
14632      # All OSF/1 code is PIC.
14633      lt_prog_compiler_static='-non_shared'
14634      ;;
14635
14636    rdos*)
14637      lt_prog_compiler_static='-non_shared'
14638      ;;
14639
14640    solaris*)
14641      lt_prog_compiler_pic='-KPIC'
14642      lt_prog_compiler_static='-Bstatic'
14643      case $cc_basename in
14644      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14645	lt_prog_compiler_wl='-Qoption ld ';;
14646      *)
14647	lt_prog_compiler_wl='-Wl,';;
14648      esac
14649      ;;
14650
14651    sunos4*)
14652      lt_prog_compiler_wl='-Qoption ld '
14653      lt_prog_compiler_pic='-PIC'
14654      lt_prog_compiler_static='-Bstatic'
14655      ;;
14656
14657    sysv4 | sysv4.2uw2* | sysv4.3*)
14658      lt_prog_compiler_wl='-Wl,'
14659      lt_prog_compiler_pic='-KPIC'
14660      lt_prog_compiler_static='-Bstatic'
14661      ;;
14662
14663    sysv4*MP*)
14664      if test -d /usr/nec ;then
14665	lt_prog_compiler_pic='-Kconform_pic'
14666	lt_prog_compiler_static='-Bstatic'
14667      fi
14668      ;;
14669
14670    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14671      lt_prog_compiler_wl='-Wl,'
14672      lt_prog_compiler_pic='-KPIC'
14673      lt_prog_compiler_static='-Bstatic'
14674      ;;
14675
14676    unicos*)
14677      lt_prog_compiler_wl='-Wl,'
14678      lt_prog_compiler_can_build_shared=no
14679      ;;
14680
14681    uts4*)
14682      lt_prog_compiler_pic='-pic'
14683      lt_prog_compiler_static='-Bstatic'
14684      ;;
14685
14686    *)
14687      lt_prog_compiler_can_build_shared=no
14688      ;;
14689    esac
14690  fi
14691
14692case $host_os in
14693  # For platforms which do not support PIC, -DPIC is meaningless:
14694  *djgpp*)
14695    lt_prog_compiler_pic=
14696    ;;
14697  *)
14698    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14699    ;;
14700esac
14701
14702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14703$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14704if ${lt_cv_prog_compiler_pic+:} false; then :
14705  $as_echo_n "(cached) " >&6
14706else
14707  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14708fi
14709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14710$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14711lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14712
14713#
14714# Check to make sure the PIC flag actually works.
14715#
14716if test -n "$lt_prog_compiler_pic"; then
14717  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14718$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14719if ${lt_cv_prog_compiler_pic_works+:} false; then :
14720  $as_echo_n "(cached) " >&6
14721else
14722  lt_cv_prog_compiler_pic_works=no
14723   ac_outfile=conftest.$ac_objext
14724   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14725   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14726   # Insert the option either (1) after the last *FLAGS variable, or
14727   # (2) before a word containing "conftest.", or (3) at the end.
14728   # Note that $ac_compile itself does not contain backslashes and begins
14729   # with a dollar sign (not a hyphen), so the echo should work correctly.
14730   # The option is referenced via a variable to avoid confusing sed.
14731   lt_compile=`echo "$ac_compile" | $SED \
14732   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14733   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14734   -e 's:$: $lt_compiler_flag:'`
14735   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14736   (eval "$lt_compile" 2>conftest.err)
14737   ac_status=$?
14738   cat conftest.err >&5
14739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740   if (exit $ac_status) && test -s "$ac_outfile"; then
14741     # The compiler can only warn and ignore the option if not recognized
14742     # So say no if there are warnings other than the usual output.
14743     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14744     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14745     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14746       lt_cv_prog_compiler_pic_works=yes
14747     fi
14748   fi
14749   $RM conftest*
14750
14751fi
14752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14753$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14754
14755if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14756    case $lt_prog_compiler_pic in
14757     "" | " "*) ;;
14758     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14759     esac
14760else
14761    lt_prog_compiler_pic=
14762     lt_prog_compiler_can_build_shared=no
14763fi
14764
14765fi
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777#
14778# Check to make sure the static flag actually works.
14779#
14780wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14782$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14783if ${lt_cv_prog_compiler_static_works+:} false; then :
14784  $as_echo_n "(cached) " >&6
14785else
14786  lt_cv_prog_compiler_static_works=no
14787   save_LDFLAGS="$LDFLAGS"
14788   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14789   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14790   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14791     # The linker can only warn and ignore the option if not recognized
14792     # So say no if there are warnings
14793     if test -s conftest.err; then
14794       # Append any errors to the config.log.
14795       cat conftest.err 1>&5
14796       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14797       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14798       if diff conftest.exp conftest.er2 >/dev/null; then
14799         lt_cv_prog_compiler_static_works=yes
14800       fi
14801     else
14802       lt_cv_prog_compiler_static_works=yes
14803     fi
14804   fi
14805   $RM -r conftest*
14806   LDFLAGS="$save_LDFLAGS"
14807
14808fi
14809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14810$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14811
14812if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14813    :
14814else
14815    lt_prog_compiler_static=
14816fi
14817
14818
14819
14820
14821
14822
14823
14824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14825$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14826if ${lt_cv_prog_compiler_c_o+:} false; then :
14827  $as_echo_n "(cached) " >&6
14828else
14829  lt_cv_prog_compiler_c_o=no
14830   $RM -r conftest 2>/dev/null
14831   mkdir conftest
14832   cd conftest
14833   mkdir out
14834   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14835
14836   lt_compiler_flag="-o out/conftest2.$ac_objext"
14837   # Insert the option either (1) after the last *FLAGS variable, or
14838   # (2) before a word containing "conftest.", or (3) at the end.
14839   # Note that $ac_compile itself does not contain backslashes and begins
14840   # with a dollar sign (not a hyphen), so the echo should work correctly.
14841   lt_compile=`echo "$ac_compile" | $SED \
14842   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14843   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14844   -e 's:$: $lt_compiler_flag:'`
14845   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14846   (eval "$lt_compile" 2>out/conftest.err)
14847   ac_status=$?
14848   cat out/conftest.err >&5
14849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14851   then
14852     # The compiler can only warn and ignore the option if not recognized
14853     # So say no if there are warnings
14854     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14855     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14856     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14857       lt_cv_prog_compiler_c_o=yes
14858     fi
14859   fi
14860   chmod u+w . 2>&5
14861   $RM conftest*
14862   # SGI C++ compiler will create directory out/ii_files/ for
14863   # template instantiation
14864   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14865   $RM out/* && rmdir out
14866   cd ..
14867   $RM -r conftest
14868   $RM conftest*
14869
14870fi
14871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14872$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14873
14874
14875
14876
14877
14878
14879  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14880$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14881if ${lt_cv_prog_compiler_c_o+:} false; then :
14882  $as_echo_n "(cached) " >&6
14883else
14884  lt_cv_prog_compiler_c_o=no
14885   $RM -r conftest 2>/dev/null
14886   mkdir conftest
14887   cd conftest
14888   mkdir out
14889   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14890
14891   lt_compiler_flag="-o out/conftest2.$ac_objext"
14892   # Insert the option either (1) after the last *FLAGS variable, or
14893   # (2) before a word containing "conftest.", or (3) at the end.
14894   # Note that $ac_compile itself does not contain backslashes and begins
14895   # with a dollar sign (not a hyphen), so the echo should work correctly.
14896   lt_compile=`echo "$ac_compile" | $SED \
14897   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14898   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14899   -e 's:$: $lt_compiler_flag:'`
14900   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14901   (eval "$lt_compile" 2>out/conftest.err)
14902   ac_status=$?
14903   cat out/conftest.err >&5
14904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14906   then
14907     # The compiler can only warn and ignore the option if not recognized
14908     # So say no if there are warnings
14909     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14910     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14911     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14912       lt_cv_prog_compiler_c_o=yes
14913     fi
14914   fi
14915   chmod u+w . 2>&5
14916   $RM conftest*
14917   # SGI C++ compiler will create directory out/ii_files/ for
14918   # template instantiation
14919   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14920   $RM out/* && rmdir out
14921   cd ..
14922   $RM -r conftest
14923   $RM conftest*
14924
14925fi
14926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14927$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14928
14929
14930
14931
14932hard_links="nottested"
14933if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14934  # do not overwrite the value of need_locks provided by the user
14935  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14936$as_echo_n "checking if we can lock with hard links... " >&6; }
14937  hard_links=yes
14938  $RM conftest*
14939  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14940  touch conftest.a
14941  ln conftest.a conftest.b 2>&5 || hard_links=no
14942  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14943  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14944$as_echo "$hard_links" >&6; }
14945  if test "$hard_links" = no; then
14946    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14947$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14948    need_locks=warn
14949  fi
14950else
14951  need_locks=no
14952fi
14953
14954
14955
14956
14957
14958
14959  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14960$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14961
14962  runpath_var=
14963  allow_undefined_flag=
14964  always_export_symbols=no
14965  archive_cmds=
14966  archive_expsym_cmds=
14967  compiler_needs_object=no
14968  enable_shared_with_static_runtimes=no
14969  export_dynamic_flag_spec=
14970  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14971  hardcode_automatic=no
14972  hardcode_direct=no
14973  hardcode_direct_absolute=no
14974  hardcode_libdir_flag_spec=
14975  hardcode_libdir_separator=
14976  hardcode_minus_L=no
14977  hardcode_shlibpath_var=unsupported
14978  inherit_rpath=no
14979  link_all_deplibs=unknown
14980  module_cmds=
14981  module_expsym_cmds=
14982  old_archive_from_new_cmds=
14983  old_archive_from_expsyms_cmds=
14984  thread_safe_flag_spec=
14985  whole_archive_flag_spec=
14986  # include_expsyms should be a list of space-separated symbols to be *always*
14987  # included in the symbol list
14988  include_expsyms=
14989  # exclude_expsyms can be an extended regexp of symbols to exclude
14990  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14991  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14992  # as well as any symbol that contains `d'.
14993  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14994  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14995  # platforms (ab)use it in PIC code, but their linkers get confused if
14996  # the symbol is explicitly referenced.  Since portable code cannot
14997  # rely on this symbol name, it's probably fine to never include it in
14998  # preloaded symbol tables.
14999  # Exclude shared library initialization/finalization symbols.
15000  extract_expsyms_cmds=
15001
15002  case $host_os in
15003  cygwin* | mingw* | pw32* | cegcc*)
15004    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15005    # When not using gcc, we currently assume that we are using
15006    # Microsoft Visual C++.
15007    if test "$GCC" != yes; then
15008      with_gnu_ld=no
15009    fi
15010    ;;
15011  interix*)
15012    # we just hope/assume this is gcc and not c89 (= MSVC++)
15013    with_gnu_ld=yes
15014    ;;
15015  openbsd*)
15016    with_gnu_ld=no
15017    ;;
15018  esac
15019
15020  ld_shlibs=yes
15021
15022  # On some targets, GNU ld is compatible enough with the native linker
15023  # that we're better off using the native interface for both.
15024  lt_use_gnu_ld_interface=no
15025  if test "$with_gnu_ld" = yes; then
15026    case $host_os in
15027      aix*)
15028	# The AIX port of GNU ld has always aspired to compatibility
15029	# with the native linker.  However, as the warning in the GNU ld
15030	# block says, versions before 2.19.5* couldn't really create working
15031	# shared libraries, regardless of the interface used.
15032	case `$LD -v 2>&1` in
15033	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15034	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15035	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15036	  *)
15037	    lt_use_gnu_ld_interface=yes
15038	    ;;
15039	esac
15040	;;
15041      *)
15042	lt_use_gnu_ld_interface=yes
15043	;;
15044    esac
15045  fi
15046
15047  if test "$lt_use_gnu_ld_interface" = yes; then
15048    # If archive_cmds runs LD, not CC, wlarc should be empty
15049    wlarc='${wl}'
15050
15051    # Set some defaults for GNU ld with shared library support. These
15052    # are reset later if shared libraries are not supported. Putting them
15053    # here allows them to be overridden if necessary.
15054    runpath_var=LD_RUN_PATH
15055    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15056    export_dynamic_flag_spec='${wl}--export-dynamic'
15057    # ancient GNU ld didn't support --whole-archive et. al.
15058    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15059      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15060    else
15061      whole_archive_flag_spec=
15062    fi
15063    supports_anon_versioning=no
15064    case `$LD -v 2>&1` in
15065      *GNU\ gold*) supports_anon_versioning=yes ;;
15066      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15067      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15068      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15069      *\ 2.11.*) ;; # other 2.11 versions
15070      *) supports_anon_versioning=yes ;;
15071    esac
15072
15073    # See if GNU ld supports shared libraries.
15074    case $host_os in
15075    aix[3-9]*)
15076      # On AIX/PPC, the GNU linker is very broken
15077      if test "$host_cpu" != ia64; then
15078	ld_shlibs=no
15079	cat <<_LT_EOF 1>&2
15080
15081*** Warning: the GNU linker, at least up to release 2.19, is reported
15082*** to be unable to reliably create shared libraries on AIX.
15083*** Therefore, libtool is disabling shared libraries support.  If you
15084*** really care for shared libraries, you may want to install binutils
15085*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15086*** You will then need to restart the configuration process.
15087
15088_LT_EOF
15089      fi
15090      ;;
15091
15092    amigaos*)
15093      case $host_cpu in
15094      powerpc)
15095            # see comment about AmigaOS4 .so support
15096            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15097            archive_expsym_cmds=''
15098        ;;
15099      m68k)
15100            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)'
15101            hardcode_libdir_flag_spec='-L$libdir'
15102            hardcode_minus_L=yes
15103        ;;
15104      esac
15105      ;;
15106
15107    beos*)
15108      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15109	allow_undefined_flag=unsupported
15110	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15111	# support --undefined.  This deserves some investigation.  FIXME
15112	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15113      else
15114	ld_shlibs=no
15115      fi
15116      ;;
15117
15118    cygwin* | mingw* | pw32* | cegcc*)
15119      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15120      # as there is no search path for DLLs.
15121      hardcode_libdir_flag_spec='-L$libdir'
15122      export_dynamic_flag_spec='${wl}--export-all-symbols'
15123      allow_undefined_flag=unsupported
15124      always_export_symbols=no
15125      enable_shared_with_static_runtimes=yes
15126      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'
15127      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15128
15129      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15130        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15131	# If the export-symbols file already is a .def file (1st line
15132	# is EXPORTS), use it as is; otherwise, prepend...
15133	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15134	  cp $export_symbols $output_objdir/$soname.def;
15135	else
15136	  echo EXPORTS > $output_objdir/$soname.def;
15137	  cat $export_symbols >> $output_objdir/$soname.def;
15138	fi~
15139	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15140      else
15141	ld_shlibs=no
15142      fi
15143      ;;
15144
15145    haiku*)
15146      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15147      link_all_deplibs=yes
15148      ;;
15149
15150    interix[3-9]*)
15151      hardcode_direct=no
15152      hardcode_shlibpath_var=no
15153      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15154      export_dynamic_flag_spec='${wl}-E'
15155      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15156      # Instead, shared libraries are loaded at an image base (0x10000000 by
15157      # default) and relocated if they conflict, which is a slow very memory
15158      # consuming and fragmenting process.  To avoid this, we pick a random,
15159      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15160      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15161      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15162      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'
15163      ;;
15164
15165    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15166      tmp_diet=no
15167      if test "$host_os" = linux-dietlibc; then
15168	case $cc_basename in
15169	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
15170	esac
15171      fi
15172      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15173	 && test "$tmp_diet" = no
15174      then
15175	tmp_addflag=' $pic_flag'
15176	tmp_sharedflag='-shared'
15177	case $cc_basename,$host_cpu in
15178        pgcc*)				# Portland Group C compiler
15179	  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'
15180	  tmp_addflag=' $pic_flag'
15181	  ;;
15182	pgf77* | pgf90* | pgf95* | pgfortran*)
15183					# Portland Group f77 and f90 compilers
15184	  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'
15185	  tmp_addflag=' $pic_flag -Mnomain' ;;
15186	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
15187	  tmp_addflag=' -i_dynamic' ;;
15188	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15189	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15190	ifc* | ifort*)			# Intel Fortran compiler
15191	  tmp_addflag=' -nofor_main' ;;
15192	lf95*)				# Lahey Fortran 8.1
15193	  whole_archive_flag_spec=
15194	  tmp_sharedflag='--shared' ;;
15195	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15196	  tmp_sharedflag='-qmkshrobj'
15197	  tmp_addflag= ;;
15198	nvcc*)	# Cuda Compiler Driver 2.2
15199	  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'
15200	  compiler_needs_object=yes
15201	  ;;
15202	esac
15203	case `$CC -V 2>&1 | sed 5q` in
15204	*Sun\ C*)			# Sun C 5.9
15205	  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'
15206	  compiler_needs_object=yes
15207	  tmp_sharedflag='-G' ;;
15208	*Sun\ F*)			# Sun Fortran 8.3
15209	  tmp_sharedflag='-G' ;;
15210	esac
15211	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15212
15213        if test "x$supports_anon_versioning" = xyes; then
15214          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15215	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15216	    echo "local: *; };" >> $output_objdir/$libname.ver~
15217	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15218        fi
15219
15220	case $cc_basename in
15221	xlf* | bgf* | bgxlf* | mpixlf*)
15222	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15223	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15224	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15225	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
15226	  if test "x$supports_anon_versioning" = xyes; then
15227	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15228	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15229	      echo "local: *; };" >> $output_objdir/$libname.ver~
15230	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15231	  fi
15232	  ;;
15233	esac
15234      else
15235        ld_shlibs=no
15236      fi
15237      ;;
15238
15239    netbsd*)
15240      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15241	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15242	wlarc=
15243      else
15244	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15245	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15246      fi
15247      ;;
15248
15249    solaris*)
15250      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15251	ld_shlibs=no
15252	cat <<_LT_EOF 1>&2
15253
15254*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15255*** create shared libraries on Solaris systems.  Therefore, libtool
15256*** is disabling shared libraries support.  We urge you to upgrade GNU
15257*** binutils to release 2.9.1 or newer.  Another option is to modify
15258*** your PATH or compiler configuration so that the native linker is
15259*** used, and then restart.
15260
15261_LT_EOF
15262      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15263	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15264	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15265      else
15266	ld_shlibs=no
15267      fi
15268      ;;
15269
15270    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15271      case `$LD -v 2>&1` in
15272        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15273	ld_shlibs=no
15274	cat <<_LT_EOF 1>&2
15275
15276*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15277*** reliably create shared libraries on SCO systems.  Therefore, libtool
15278*** is disabling shared libraries support.  We urge you to upgrade GNU
15279*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15280*** your PATH or compiler configuration so that the native linker is
15281*** used, and then restart.
15282
15283_LT_EOF
15284	;;
15285	*)
15286	  # For security reasons, it is highly recommended that you always
15287	  # use absolute paths for naming shared libraries, and exclude the
15288	  # DT_RUNPATH tag from executables and libraries.  But doing so
15289	  # requires that you compile everything twice, which is a pain.
15290	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15291	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15292	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15293	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15294	  else
15295	    ld_shlibs=no
15296	  fi
15297	;;
15298      esac
15299      ;;
15300
15301    sunos4*)
15302      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15303      wlarc=
15304      hardcode_direct=yes
15305      hardcode_shlibpath_var=no
15306      ;;
15307
15308    *)
15309      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15310	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15311	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15312      else
15313	ld_shlibs=no
15314      fi
15315      ;;
15316    esac
15317
15318    if test "$ld_shlibs" = no; then
15319      runpath_var=
15320      hardcode_libdir_flag_spec=
15321      export_dynamic_flag_spec=
15322      whole_archive_flag_spec=
15323    fi
15324  else
15325    # PORTME fill in a description of your system's linker (not GNU ld)
15326    case $host_os in
15327    aix3*)
15328      allow_undefined_flag=unsupported
15329      always_export_symbols=yes
15330      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'
15331      # Note: this linker hardcodes the directories in LIBPATH if there
15332      # are no directories specified by -L.
15333      hardcode_minus_L=yes
15334      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15335	# Neither direct hardcoding nor static linking is supported with a
15336	# broken collect2.
15337	hardcode_direct=unsupported
15338      fi
15339      ;;
15340
15341    aix[4-9]*)
15342      if test "$host_cpu" = ia64; then
15343	# On IA64, the linker does run time linking by default, so we don't
15344	# have to do anything special.
15345	aix_use_runtimelinking=no
15346	exp_sym_flag='-Bexport'
15347	no_entry_flag=""
15348      else
15349	# If we're using GNU nm, then we don't want the "-C" option.
15350	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15351	# Also, AIX nm treats weak defined symbols like other global
15352	# defined symbols, whereas GNU nm marks them as "W".
15353	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15354	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15355	else
15356	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15357	fi
15358	aix_use_runtimelinking=no
15359
15360	# Test if we are trying to use run time linking or normal
15361	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15362	# need to do runtime linking.
15363	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15364	  for ld_flag in $LDFLAGS; do
15365	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15366	    aix_use_runtimelinking=yes
15367	    break
15368	  fi
15369	  done
15370	  ;;
15371	esac
15372
15373	exp_sym_flag='-bexport'
15374	no_entry_flag='-bnoentry'
15375      fi
15376
15377      # When large executables or shared objects are built, AIX ld can
15378      # have problems creating the table of contents.  If linking a library
15379      # or program results in "error TOC overflow" add -mminimal-toc to
15380      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15381      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15382
15383      archive_cmds=''
15384      hardcode_direct=yes
15385      hardcode_direct_absolute=yes
15386      hardcode_libdir_separator=':'
15387      link_all_deplibs=yes
15388      file_list_spec='${wl}-f,'
15389
15390      if test "$GCC" = yes; then
15391	case $host_os in aix4.[012]|aix4.[012].*)
15392	# We only want to do this on AIX 4.2 and lower, the check
15393	# below for broken collect2 doesn't work under 4.3+
15394	  collect2name=`${CC} -print-prog-name=collect2`
15395	  if test -f "$collect2name" &&
15396	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15397	  then
15398	  # We have reworked collect2
15399	  :
15400	  else
15401	  # We have old collect2
15402	  hardcode_direct=unsupported
15403	  # It fails to find uninstalled libraries when the uninstalled
15404	  # path is not listed in the libpath.  Setting hardcode_minus_L
15405	  # to unsupported forces relinking
15406	  hardcode_minus_L=yes
15407	  hardcode_libdir_flag_spec='-L$libdir'
15408	  hardcode_libdir_separator=
15409	  fi
15410	  ;;
15411	esac
15412	shared_flag='-shared'
15413	if test "$aix_use_runtimelinking" = yes; then
15414	  shared_flag="$shared_flag "'${wl}-G'
15415	fi
15416      else
15417	# not using gcc
15418	if test "$host_cpu" = ia64; then
15419	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15420	# chokes on -Wl,-G. The following line is correct:
15421	  shared_flag='-G'
15422	else
15423	  if test "$aix_use_runtimelinking" = yes; then
15424	    shared_flag='${wl}-G'
15425	  else
15426	    shared_flag='${wl}-bM:SRE'
15427	  fi
15428	fi
15429      fi
15430
15431      export_dynamic_flag_spec='${wl}-bexpall'
15432      # It seems that -bexpall does not export symbols beginning with
15433      # underscore (_), so it is better to generate a list of symbols to export.
15434      always_export_symbols=yes
15435      if test "$aix_use_runtimelinking" = yes; then
15436	# Warning - without using the other runtime loading flags (-brtl),
15437	# -berok will link without error, but may produce a broken library.
15438	allow_undefined_flag='-berok'
15439        # Determine the default libpath from the value encoded in an
15440        # empty executable.
15441        if test "${lt_cv_aix_libpath+set}" = set; then
15442  aix_libpath=$lt_cv_aix_libpath
15443else
15444  if ${lt_cv_aix_libpath_+:} false; then :
15445  $as_echo_n "(cached) " >&6
15446else
15447  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448/* end confdefs.h.  */
15449
15450int
15451main ()
15452{
15453
15454  ;
15455  return 0;
15456}
15457_ACEOF
15458if ac_fn_c_try_link "$LINENO"; then :
15459
15460  lt_aix_libpath_sed='
15461      /Import File Strings/,/^$/ {
15462	  /^0/ {
15463	      s/^0  *\([^ ]*\) *$/\1/
15464	      p
15465	  }
15466      }'
15467  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15468  # Check for a 64-bit object if we didn't find anything.
15469  if test -z "$lt_cv_aix_libpath_"; then
15470    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15471  fi
15472fi
15473rm -f core conftest.err conftest.$ac_objext \
15474    conftest$ac_exeext conftest.$ac_ext
15475  if test -z "$lt_cv_aix_libpath_"; then
15476    lt_cv_aix_libpath_="/usr/lib:/lib"
15477  fi
15478
15479fi
15480
15481  aix_libpath=$lt_cv_aix_libpath_
15482fi
15483
15484        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15485        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15486      else
15487	if test "$host_cpu" = ia64; then
15488	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15489	  allow_undefined_flag="-z nodefs"
15490	  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"
15491	else
15492	 # Determine the default libpath from the value encoded in an
15493	 # empty executable.
15494	 if test "${lt_cv_aix_libpath+set}" = set; then
15495  aix_libpath=$lt_cv_aix_libpath
15496else
15497  if ${lt_cv_aix_libpath_+:} false; then :
15498  $as_echo_n "(cached) " >&6
15499else
15500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15501/* end confdefs.h.  */
15502
15503int
15504main ()
15505{
15506
15507  ;
15508  return 0;
15509}
15510_ACEOF
15511if ac_fn_c_try_link "$LINENO"; then :
15512
15513  lt_aix_libpath_sed='
15514      /Import File Strings/,/^$/ {
15515	  /^0/ {
15516	      s/^0  *\([^ ]*\) *$/\1/
15517	      p
15518	  }
15519      }'
15520  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15521  # Check for a 64-bit object if we didn't find anything.
15522  if test -z "$lt_cv_aix_libpath_"; then
15523    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15524  fi
15525fi
15526rm -f core conftest.err conftest.$ac_objext \
15527    conftest$ac_exeext conftest.$ac_ext
15528  if test -z "$lt_cv_aix_libpath_"; then
15529    lt_cv_aix_libpath_="/usr/lib:/lib"
15530  fi
15531
15532fi
15533
15534  aix_libpath=$lt_cv_aix_libpath_
15535fi
15536
15537	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15538	  # Warning - without using the other run time loading flags,
15539	  # -berok will link without error, but may produce a broken library.
15540	  no_undefined_flag=' ${wl}-bernotok'
15541	  allow_undefined_flag=' ${wl}-berok'
15542	  if test "$with_gnu_ld" = yes; then
15543	    # We only use this code for GNU lds that support --whole-archive.
15544	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15545	  else
15546	    # Exported symbols can be pulled into shared objects from archives
15547	    whole_archive_flag_spec='$convenience'
15548	  fi
15549	  archive_cmds_need_lc=yes
15550	  # This is similar to how AIX traditionally builds its shared libraries.
15551	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15552	fi
15553      fi
15554      ;;
15555
15556    amigaos*)
15557      case $host_cpu in
15558      powerpc)
15559            # see comment about AmigaOS4 .so support
15560            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15561            archive_expsym_cmds=''
15562        ;;
15563      m68k)
15564            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)'
15565            hardcode_libdir_flag_spec='-L$libdir'
15566            hardcode_minus_L=yes
15567        ;;
15568      esac
15569      ;;
15570
15571    bsdi[45]*)
15572      export_dynamic_flag_spec=-rdynamic
15573      ;;
15574
15575    cygwin* | mingw* | pw32* | cegcc*)
15576      # When not using gcc, we currently assume that we are using
15577      # Microsoft Visual C++.
15578      # hardcode_libdir_flag_spec is actually meaningless, as there is
15579      # no search path for DLLs.
15580      case $cc_basename in
15581      cl*)
15582	# Native MSVC
15583	hardcode_libdir_flag_spec=' '
15584	allow_undefined_flag=unsupported
15585	always_export_symbols=yes
15586	file_list_spec='@'
15587	# Tell ltmain to make .lib files, not .a files.
15588	libext=lib
15589	# Tell ltmain to make .dll files, not .so files.
15590	shrext_cmds=".dll"
15591	# FIXME: Setting linknames here is a bad hack.
15592	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15593	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15594	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15595	  else
15596	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15597	  fi~
15598	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15599	  linknames='
15600	# The linker will not automatically build a static lib if we build a DLL.
15601	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15602	enable_shared_with_static_runtimes=yes
15603	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15604	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15605	# Don't use ranlib
15606	old_postinstall_cmds='chmod 644 $oldlib'
15607	postlink_cmds='lt_outputfile="@OUTPUT@"~
15608	  lt_tool_outputfile="@TOOL_OUTPUT@"~
15609	  case $lt_outputfile in
15610	    *.exe|*.EXE) ;;
15611	    *)
15612	      lt_outputfile="$lt_outputfile.exe"
15613	      lt_tool_outputfile="$lt_tool_outputfile.exe"
15614	      ;;
15615	  esac~
15616	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15617	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15618	    $RM "$lt_outputfile.manifest";
15619	  fi'
15620	;;
15621      *)
15622	# Assume MSVC wrapper
15623	hardcode_libdir_flag_spec=' '
15624	allow_undefined_flag=unsupported
15625	# Tell ltmain to make .lib files, not .a files.
15626	libext=lib
15627	# Tell ltmain to make .dll files, not .so files.
15628	shrext_cmds=".dll"
15629	# FIXME: Setting linknames here is a bad hack.
15630	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15631	# The linker will automatically build a .lib file if we build a DLL.
15632	old_archive_from_new_cmds='true'
15633	# FIXME: Should let the user specify the lib program.
15634	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15635	enable_shared_with_static_runtimes=yes
15636	;;
15637      esac
15638      ;;
15639
15640    darwin* | rhapsody*)
15641
15642
15643  archive_cmds_need_lc=no
15644  hardcode_direct=no
15645  hardcode_automatic=yes
15646  hardcode_shlibpath_var=unsupported
15647  if test "$lt_cv_ld_force_load" = "yes"; then
15648    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\"`'
15649
15650  else
15651    whole_archive_flag_spec=''
15652  fi
15653  link_all_deplibs=yes
15654  allow_undefined_flag="$_lt_dar_allow_undefined"
15655  case $cc_basename in
15656     ifort*) _lt_dar_can_shared=yes ;;
15657     *) _lt_dar_can_shared=$GCC ;;
15658  esac
15659  if test "$_lt_dar_can_shared" = "yes"; then
15660    output_verbose_link_cmd=func_echo_all
15661    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15662    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15663    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}"
15664    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}"
15665
15666  else
15667  ld_shlibs=no
15668  fi
15669
15670      ;;
15671
15672    dgux*)
15673      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15674      hardcode_libdir_flag_spec='-L$libdir'
15675      hardcode_shlibpath_var=no
15676      ;;
15677
15678    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15679    # support.  Future versions do this automatically, but an explicit c++rt0.o
15680    # does not break anything, and helps significantly (at the cost of a little
15681    # extra space).
15682    freebsd2.2*)
15683      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15684      hardcode_libdir_flag_spec='-R$libdir'
15685      hardcode_direct=yes
15686      hardcode_shlibpath_var=no
15687      ;;
15688
15689    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15690    freebsd2.*)
15691      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15692      hardcode_direct=yes
15693      hardcode_minus_L=yes
15694      hardcode_shlibpath_var=no
15695      ;;
15696
15697    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15698    freebsd* | dragonfly*)
15699      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15700      hardcode_libdir_flag_spec='-R$libdir'
15701      hardcode_direct=yes
15702      hardcode_shlibpath_var=no
15703      ;;
15704
15705    hpux9*)
15706      if test "$GCC" = yes; then
15707	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15708      else
15709	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15710      fi
15711      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15712      hardcode_libdir_separator=:
15713      hardcode_direct=yes
15714
15715      # hardcode_minus_L: Not really in the search PATH,
15716      # but as the default location of the library.
15717      hardcode_minus_L=yes
15718      export_dynamic_flag_spec='${wl}-E'
15719      ;;
15720
15721    hpux10*)
15722      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15723	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15724      else
15725	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15726      fi
15727      if test "$with_gnu_ld" = no; then
15728	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15729	hardcode_libdir_separator=:
15730	hardcode_direct=yes
15731	hardcode_direct_absolute=yes
15732	export_dynamic_flag_spec='${wl}-E'
15733	# hardcode_minus_L: Not really in the search PATH,
15734	# but as the default location of the library.
15735	hardcode_minus_L=yes
15736      fi
15737      ;;
15738
15739    hpux11*)
15740      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15741	case $host_cpu in
15742	hppa*64*)
15743	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15744	  ;;
15745	ia64*)
15746	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15747	  ;;
15748	*)
15749	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15750	  ;;
15751	esac
15752      else
15753	case $host_cpu in
15754	hppa*64*)
15755	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15756	  ;;
15757	ia64*)
15758	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15759	  ;;
15760	*)
15761
15762	  # Older versions of the 11.00 compiler do not understand -b yet
15763	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15764	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15765$as_echo_n "checking if $CC understands -b... " >&6; }
15766if ${lt_cv_prog_compiler__b+:} false; then :
15767  $as_echo_n "(cached) " >&6
15768else
15769  lt_cv_prog_compiler__b=no
15770   save_LDFLAGS="$LDFLAGS"
15771   LDFLAGS="$LDFLAGS -b"
15772   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15773   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15774     # The linker can only warn and ignore the option if not recognized
15775     # So say no if there are warnings
15776     if test -s conftest.err; then
15777       # Append any errors to the config.log.
15778       cat conftest.err 1>&5
15779       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15780       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15781       if diff conftest.exp conftest.er2 >/dev/null; then
15782         lt_cv_prog_compiler__b=yes
15783       fi
15784     else
15785       lt_cv_prog_compiler__b=yes
15786     fi
15787   fi
15788   $RM -r conftest*
15789   LDFLAGS="$save_LDFLAGS"
15790
15791fi
15792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15793$as_echo "$lt_cv_prog_compiler__b" >&6; }
15794
15795if test x"$lt_cv_prog_compiler__b" = xyes; then
15796    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15797else
15798    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15799fi
15800
15801	  ;;
15802	esac
15803      fi
15804      if test "$with_gnu_ld" = no; then
15805	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15806	hardcode_libdir_separator=:
15807
15808	case $host_cpu in
15809	hppa*64*|ia64*)
15810	  hardcode_direct=no
15811	  hardcode_shlibpath_var=no
15812	  ;;
15813	*)
15814	  hardcode_direct=yes
15815	  hardcode_direct_absolute=yes
15816	  export_dynamic_flag_spec='${wl}-E'
15817
15818	  # hardcode_minus_L: Not really in the search PATH,
15819	  # but as the default location of the library.
15820	  hardcode_minus_L=yes
15821	  ;;
15822	esac
15823      fi
15824      ;;
15825
15826    irix5* | irix6* | nonstopux*)
15827      if test "$GCC" = yes; then
15828	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'
15829	# Try to use the -exported_symbol ld option, if it does not
15830	# work, assume that -exports_file does not work either and
15831	# implicitly export all symbols.
15832	# This should be the same for all languages, so no per-tag cache variable.
15833	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15834$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15835if ${lt_cv_irix_exported_symbol+:} false; then :
15836  $as_echo_n "(cached) " >&6
15837else
15838  save_LDFLAGS="$LDFLAGS"
15839	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15840	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15841/* end confdefs.h.  */
15842int foo (void) { return 0; }
15843_ACEOF
15844if ac_fn_c_try_link "$LINENO"; then :
15845  lt_cv_irix_exported_symbol=yes
15846else
15847  lt_cv_irix_exported_symbol=no
15848fi
15849rm -f core conftest.err conftest.$ac_objext \
15850    conftest$ac_exeext conftest.$ac_ext
15851           LDFLAGS="$save_LDFLAGS"
15852fi
15853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15854$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15855	if test "$lt_cv_irix_exported_symbol" = yes; then
15856          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'
15857	fi
15858      else
15859	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'
15860	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'
15861      fi
15862      archive_cmds_need_lc='no'
15863      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15864      hardcode_libdir_separator=:
15865      inherit_rpath=yes
15866      link_all_deplibs=yes
15867      ;;
15868
15869    netbsd*)
15870      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15871	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15872      else
15873	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15874      fi
15875      hardcode_libdir_flag_spec='-R$libdir'
15876      hardcode_direct=yes
15877      hardcode_shlibpath_var=no
15878      ;;
15879
15880    newsos6)
15881      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15882      hardcode_direct=yes
15883      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15884      hardcode_libdir_separator=:
15885      hardcode_shlibpath_var=no
15886      ;;
15887
15888    *nto* | *qnx*)
15889      ;;
15890
15891    openbsd*)
15892      if test -f /usr/libexec/ld.so; then
15893	hardcode_direct=yes
15894	hardcode_shlibpath_var=no
15895	hardcode_direct_absolute=yes
15896	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15897	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15898	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15899	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15900	  export_dynamic_flag_spec='${wl}-E'
15901	else
15902	  case $host_os in
15903	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15904	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15905	     hardcode_libdir_flag_spec='-R$libdir'
15906	     ;;
15907	   *)
15908	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15909	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15910	     ;;
15911	  esac
15912	fi
15913      else
15914	ld_shlibs=no
15915      fi
15916      ;;
15917
15918    os2*)
15919      hardcode_libdir_flag_spec='-L$libdir'
15920      hardcode_minus_L=yes
15921      allow_undefined_flag=unsupported
15922      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15923      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15924      ;;
15925
15926    osf3*)
15927      if test "$GCC" = yes; then
15928	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15929	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'
15930      else
15931	allow_undefined_flag=' -expect_unresolved \*'
15932	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'
15933      fi
15934      archive_cmds_need_lc='no'
15935      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15936      hardcode_libdir_separator=:
15937      ;;
15938
15939    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15940      if test "$GCC" = yes; then
15941	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15942	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'
15943	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15944      else
15945	allow_undefined_flag=' -expect_unresolved \*'
15946	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'
15947	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~
15948	$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'
15949
15950	# Both c and cxx compiler support -rpath directly
15951	hardcode_libdir_flag_spec='-rpath $libdir'
15952      fi
15953      archive_cmds_need_lc='no'
15954      hardcode_libdir_separator=:
15955      ;;
15956
15957    solaris*)
15958      no_undefined_flag=' -z defs'
15959      if test "$GCC" = yes; then
15960	wlarc='${wl}'
15961	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15962	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15963	  $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'
15964      else
15965	case `$CC -V 2>&1` in
15966	*"Compilers 5.0"*)
15967	  wlarc=''
15968	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15969	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15970	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15971	  ;;
15972	*)
15973	  wlarc='${wl}'
15974	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15975	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15976	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15977	  ;;
15978	esac
15979      fi
15980      hardcode_libdir_flag_spec='-R$libdir'
15981      hardcode_shlibpath_var=no
15982      case $host_os in
15983      solaris2.[0-5] | solaris2.[0-5].*) ;;
15984      *)
15985	# The compiler driver will combine and reorder linker options,
15986	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15987	# but is careful enough not to reorder.
15988	# Supported since Solaris 2.6 (maybe 2.5.1?)
15989	if test "$GCC" = yes; then
15990	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15991	else
15992	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15993	fi
15994	;;
15995      esac
15996      link_all_deplibs=yes
15997      ;;
15998
15999    sunos4*)
16000      if test "x$host_vendor" = xsequent; then
16001	# Use $CC to link under sequent, because it throws in some extra .o
16002	# files that make .init and .fini sections work.
16003	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16004      else
16005	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16006      fi
16007      hardcode_libdir_flag_spec='-L$libdir'
16008      hardcode_direct=yes
16009      hardcode_minus_L=yes
16010      hardcode_shlibpath_var=no
16011      ;;
16012
16013    sysv4)
16014      case $host_vendor in
16015	sni)
16016	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16017	  hardcode_direct=yes # is this really true???
16018	;;
16019	siemens)
16020	  ## LD is ld it makes a PLAMLIB
16021	  ## CC just makes a GrossModule.
16022	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16023	  reload_cmds='$CC -r -o $output$reload_objs'
16024	  hardcode_direct=no
16025        ;;
16026	motorola)
16027	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16028	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16029	;;
16030      esac
16031      runpath_var='LD_RUN_PATH'
16032      hardcode_shlibpath_var=no
16033      ;;
16034
16035    sysv4.3*)
16036      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16037      hardcode_shlibpath_var=no
16038      export_dynamic_flag_spec='-Bexport'
16039      ;;
16040
16041    sysv4*MP*)
16042      if test -d /usr/nec; then
16043	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16044	hardcode_shlibpath_var=no
16045	runpath_var=LD_RUN_PATH
16046	hardcode_runpath_var=yes
16047	ld_shlibs=yes
16048      fi
16049      ;;
16050
16051    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16052      no_undefined_flag='${wl}-z,text'
16053      archive_cmds_need_lc=no
16054      hardcode_shlibpath_var=no
16055      runpath_var='LD_RUN_PATH'
16056
16057      if test "$GCC" = yes; then
16058	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16059	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16060      else
16061	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16062	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16063      fi
16064      ;;
16065
16066    sysv5* | sco3.2v5* | sco5v6*)
16067      # Note: We can NOT use -z defs as we might desire, because we do not
16068      # link with -lc, and that would cause any symbols used from libc to
16069      # always be unresolved, which means just about no library would
16070      # ever link correctly.  If we're not using GNU ld we use -z text
16071      # though, which does catch some bad symbols but isn't as heavy-handed
16072      # as -z defs.
16073      no_undefined_flag='${wl}-z,text'
16074      allow_undefined_flag='${wl}-z,nodefs'
16075      archive_cmds_need_lc=no
16076      hardcode_shlibpath_var=no
16077      hardcode_libdir_flag_spec='${wl}-R,$libdir'
16078      hardcode_libdir_separator=':'
16079      link_all_deplibs=yes
16080      export_dynamic_flag_spec='${wl}-Bexport'
16081      runpath_var='LD_RUN_PATH'
16082
16083      if test "$GCC" = yes; then
16084	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16085	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16086      else
16087	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16088	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16089      fi
16090      ;;
16091
16092    uts4*)
16093      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16094      hardcode_libdir_flag_spec='-L$libdir'
16095      hardcode_shlibpath_var=no
16096      ;;
16097
16098    *)
16099      ld_shlibs=no
16100      ;;
16101    esac
16102
16103    if test x$host_vendor = xsni; then
16104      case $host in
16105      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16106	export_dynamic_flag_spec='${wl}-Blargedynsym'
16107	;;
16108      esac
16109    fi
16110  fi
16111
16112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16113$as_echo "$ld_shlibs" >&6; }
16114test "$ld_shlibs" = no && can_build_shared=no
16115
16116with_gnu_ld=$with_gnu_ld
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132#
16133# Do we need to explicitly link libc?
16134#
16135case "x$archive_cmds_need_lc" in
16136x|xyes)
16137  # Assume -lc should be added
16138  archive_cmds_need_lc=yes
16139
16140  if test "$enable_shared" = yes && test "$GCC" = yes; then
16141    case $archive_cmds in
16142    *'~'*)
16143      # FIXME: we may have to deal with multi-command sequences.
16144      ;;
16145    '$CC '*)
16146      # Test whether the compiler implicitly links with -lc since on some
16147      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16148      # to ld, don't add -lc before -lgcc.
16149      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16150$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16151if ${lt_cv_archive_cmds_need_lc+:} false; then :
16152  $as_echo_n "(cached) " >&6
16153else
16154  $RM conftest*
16155	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16156
16157	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16158  (eval $ac_compile) 2>&5
16159  ac_status=$?
16160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16161  test $ac_status = 0; } 2>conftest.err; then
16162	  soname=conftest
16163	  lib=conftest
16164	  libobjs=conftest.$ac_objext
16165	  deplibs=
16166	  wl=$lt_prog_compiler_wl
16167	  pic_flag=$lt_prog_compiler_pic
16168	  compiler_flags=-v
16169	  linker_flags=-v
16170	  verstring=
16171	  output_objdir=.
16172	  libname=conftest
16173	  lt_save_allow_undefined_flag=$allow_undefined_flag
16174	  allow_undefined_flag=
16175	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16176  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16177  ac_status=$?
16178  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16179  test $ac_status = 0; }
16180	  then
16181	    lt_cv_archive_cmds_need_lc=no
16182	  else
16183	    lt_cv_archive_cmds_need_lc=yes
16184	  fi
16185	  allow_undefined_flag=$lt_save_allow_undefined_flag
16186	else
16187	  cat conftest.err 1>&5
16188	fi
16189	$RM conftest*
16190
16191fi
16192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16193$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16194      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16195      ;;
16196    esac
16197  fi
16198  ;;
16199esac
16200
16201
16202
16203
16204
16205
16206
16207
16208
16209
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16353$as_echo_n "checking dynamic linker characteristics... " >&6; }
16354
16355if test "$GCC" = yes; then
16356  case $host_os in
16357    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16358    *) lt_awk_arg="/^libraries:/" ;;
16359  esac
16360  case $host_os in
16361    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16362    *) lt_sed_strip_eq="s,=/,/,g" ;;
16363  esac
16364  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16365  case $lt_search_path_spec in
16366  *\;*)
16367    # if the path contains ";" then we assume it to be the separator
16368    # otherwise default to the standard path separator (i.e. ":") - it is
16369    # assumed that no part of a normal pathname contains ";" but that should
16370    # okay in the real world where ";" in dirpaths is itself problematic.
16371    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16372    ;;
16373  *)
16374    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16375    ;;
16376  esac
16377  # Ok, now we have the path, separated by spaces, we can step through it
16378  # and add multilib dir if necessary.
16379  lt_tmp_lt_search_path_spec=
16380  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16381  for lt_sys_path in $lt_search_path_spec; do
16382    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16383      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16384    else
16385      test -d "$lt_sys_path" && \
16386	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16387    fi
16388  done
16389  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16390BEGIN {RS=" "; FS="/|\n";} {
16391  lt_foo="";
16392  lt_count=0;
16393  for (lt_i = NF; lt_i > 0; lt_i--) {
16394    if ($lt_i != "" && $lt_i != ".") {
16395      if ($lt_i == "..") {
16396        lt_count++;
16397      } else {
16398        if (lt_count == 0) {
16399          lt_foo="/" $lt_i lt_foo;
16400        } else {
16401          lt_count--;
16402        }
16403      }
16404    }
16405  }
16406  if (lt_foo != "") { lt_freq[lt_foo]++; }
16407  if (lt_freq[lt_foo] == 1) { print lt_foo; }
16408}'`
16409  # AWK program above erroneously prepends '/' to C:/dos/paths
16410  # for these hosts.
16411  case $host_os in
16412    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16413      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16414  esac
16415  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16416else
16417  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16418fi
16419library_names_spec=
16420libname_spec='lib$name'
16421soname_spec=
16422shrext_cmds=".so"
16423postinstall_cmds=
16424postuninstall_cmds=
16425finish_cmds=
16426finish_eval=
16427shlibpath_var=
16428shlibpath_overrides_runpath=unknown
16429version_type=none
16430dynamic_linker="$host_os ld.so"
16431sys_lib_dlsearch_path_spec="/lib /usr/lib"
16432need_lib_prefix=unknown
16433hardcode_into_libs=no
16434
16435# when you set need_version to no, make sure it does not cause -set_version
16436# flags to be left without arguments
16437need_version=unknown
16438
16439case $host_os in
16440aix3*)
16441  version_type=linux # correct to gnu/linux during the next big refactor
16442  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16443  shlibpath_var=LIBPATH
16444
16445  # AIX 3 has no versioning support, so we append a major version to the name.
16446  soname_spec='${libname}${release}${shared_ext}$major'
16447  ;;
16448
16449aix[4-9]*)
16450  version_type=linux # correct to gnu/linux during the next big refactor
16451  need_lib_prefix=no
16452  need_version=no
16453  hardcode_into_libs=yes
16454  if test "$host_cpu" = ia64; then
16455    # AIX 5 supports IA64
16456    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16457    shlibpath_var=LD_LIBRARY_PATH
16458  else
16459    # With GCC up to 2.95.x, collect2 would create an import file
16460    # for dependence libraries.  The import file would start with
16461    # the line `#! .'.  This would cause the generated library to
16462    # depend on `.', always an invalid library.  This was fixed in
16463    # development snapshots of GCC prior to 3.0.
16464    case $host_os in
16465      aix4 | aix4.[01] | aix4.[01].*)
16466      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16467	   echo ' yes '
16468	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16469	:
16470      else
16471	can_build_shared=no
16472      fi
16473      ;;
16474    esac
16475    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16476    # soname into executable. Probably we can add versioning support to
16477    # collect2, so additional links can be useful in future.
16478    if test "$aix_use_runtimelinking" = yes; then
16479      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16480      # instead of lib<name>.a to let people know that these are not
16481      # typical AIX shared libraries.
16482      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16483    else
16484      # We preserve .a as extension for shared libraries through AIX4.2
16485      # and later when we are not doing run time linking.
16486      library_names_spec='${libname}${release}.a $libname.a'
16487      soname_spec='${libname}${release}${shared_ext}$major'
16488    fi
16489    shlibpath_var=LIBPATH
16490  fi
16491  ;;
16492
16493amigaos*)
16494  case $host_cpu in
16495  powerpc)
16496    # Since July 2007 AmigaOS4 officially supports .so libraries.
16497    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16498    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16499    ;;
16500  m68k)
16501    library_names_spec='$libname.ixlibrary $libname.a'
16502    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16503    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
16504    ;;
16505  esac
16506  ;;
16507
16508beos*)
16509  library_names_spec='${libname}${shared_ext}'
16510  dynamic_linker="$host_os ld.so"
16511  shlibpath_var=LIBRARY_PATH
16512  ;;
16513
16514bsdi[45]*)
16515  version_type=linux # correct to gnu/linux during the next big refactor
16516  need_version=no
16517  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16518  soname_spec='${libname}${release}${shared_ext}$major'
16519  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16520  shlibpath_var=LD_LIBRARY_PATH
16521  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16522  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16523  # the default ld.so.conf also contains /usr/contrib/lib and
16524  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16525  # libtool to hard-code these into programs
16526  ;;
16527
16528cygwin* | mingw* | pw32* | cegcc*)
16529  version_type=windows
16530  shrext_cmds=".dll"
16531  need_version=no
16532  need_lib_prefix=no
16533
16534  case $GCC,$cc_basename in
16535  yes,*)
16536    # gcc
16537    library_names_spec='$libname.dll.a'
16538    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16539    postinstall_cmds='base_file=`basename \${file}`~
16540      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16541      dldir=$destdir/`dirname \$dlpath`~
16542      test -d \$dldir || mkdir -p \$dldir~
16543      $install_prog $dir/$dlname \$dldir/$dlname~
16544      chmod a+x \$dldir/$dlname~
16545      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16546        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16547      fi'
16548    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16549      dlpath=$dir/\$dldll~
16550       $RM \$dlpath'
16551    shlibpath_overrides_runpath=yes
16552
16553    case $host_os in
16554    cygwin*)
16555      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16556      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16557
16558      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16559      ;;
16560    mingw* | cegcc*)
16561      # MinGW DLLs use traditional 'lib' prefix
16562      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16563      ;;
16564    pw32*)
16565      # pw32 DLLs use 'pw' prefix rather than 'lib'
16566      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16567      ;;
16568    esac
16569    dynamic_linker='Win32 ld.exe'
16570    ;;
16571
16572  *,cl*)
16573    # Native MSVC
16574    libname_spec='$name'
16575    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16576    library_names_spec='${libname}.dll.lib'
16577
16578    case $build_os in
16579    mingw*)
16580      sys_lib_search_path_spec=
16581      lt_save_ifs=$IFS
16582      IFS=';'
16583      for lt_path in $LIB
16584      do
16585        IFS=$lt_save_ifs
16586        # Let DOS variable expansion print the short 8.3 style file name.
16587        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16588        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16589      done
16590      IFS=$lt_save_ifs
16591      # Convert to MSYS style.
16592      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16593      ;;
16594    cygwin*)
16595      # Convert to unix form, then to dos form, then back to unix form
16596      # but this time dos style (no spaces!) so that the unix form looks
16597      # like /cygdrive/c/PROGRA~1:/cygdr...
16598      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16599      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16600      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16601      ;;
16602    *)
16603      sys_lib_search_path_spec="$LIB"
16604      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16605        # It is most probably a Windows format PATH.
16606        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16607      else
16608        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16609      fi
16610      # FIXME: find the short name or the path components, as spaces are
16611      # common. (e.g. "Program Files" -> "PROGRA~1")
16612      ;;
16613    esac
16614
16615    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16616    postinstall_cmds='base_file=`basename \${file}`~
16617      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16618      dldir=$destdir/`dirname \$dlpath`~
16619      test -d \$dldir || mkdir -p \$dldir~
16620      $install_prog $dir/$dlname \$dldir/$dlname'
16621    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16622      dlpath=$dir/\$dldll~
16623       $RM \$dlpath'
16624    shlibpath_overrides_runpath=yes
16625    dynamic_linker='Win32 link.exe'
16626    ;;
16627
16628  *)
16629    # Assume MSVC wrapper
16630    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16631    dynamic_linker='Win32 ld.exe'
16632    ;;
16633  esac
16634  # FIXME: first we should search . and the directory the executable is in
16635  shlibpath_var=PATH
16636  ;;
16637
16638darwin* | rhapsody*)
16639  dynamic_linker="$host_os dyld"
16640  version_type=darwin
16641  need_lib_prefix=no
16642  need_version=no
16643  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16644  soname_spec='${libname}${release}${major}$shared_ext'
16645  shlibpath_overrides_runpath=yes
16646  shlibpath_var=DYLD_LIBRARY_PATH
16647  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16648
16649  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16650  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16651  ;;
16652
16653dgux*)
16654  version_type=linux # correct to gnu/linux during the next big refactor
16655  need_lib_prefix=no
16656  need_version=no
16657  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16658  soname_spec='${libname}${release}${shared_ext}$major'
16659  shlibpath_var=LD_LIBRARY_PATH
16660  ;;
16661
16662freebsd* | dragonfly*)
16663  # DragonFly does not have aout.  When/if they implement a new
16664  # versioning mechanism, adjust this.
16665  if test -x /usr/bin/objformat; then
16666    objformat=`/usr/bin/objformat`
16667  else
16668    case $host_os in
16669    freebsd[23].*) objformat=aout ;;
16670    *) objformat=elf ;;
16671    esac
16672  fi
16673  version_type=freebsd-$objformat
16674  case $version_type in
16675    freebsd-elf*)
16676      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16677      need_version=no
16678      need_lib_prefix=no
16679      ;;
16680    freebsd-*)
16681      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16682      need_version=yes
16683      ;;
16684  esac
16685  shlibpath_var=LD_LIBRARY_PATH
16686  case $host_os in
16687  freebsd2.*)
16688    shlibpath_overrides_runpath=yes
16689    ;;
16690  freebsd3.[01]* | freebsdelf3.[01]*)
16691    shlibpath_overrides_runpath=yes
16692    hardcode_into_libs=yes
16693    ;;
16694  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16695  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16696    shlibpath_overrides_runpath=no
16697    hardcode_into_libs=yes
16698    ;;
16699  *) # from 4.6 on, and DragonFly
16700    shlibpath_overrides_runpath=yes
16701    hardcode_into_libs=yes
16702    ;;
16703  esac
16704  ;;
16705
16706gnu*)
16707  version_type=linux # correct to gnu/linux during the next big refactor
16708  need_lib_prefix=no
16709  need_version=no
16710  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16711  soname_spec='${libname}${release}${shared_ext}$major'
16712  shlibpath_var=LD_LIBRARY_PATH
16713  shlibpath_overrides_runpath=no
16714  hardcode_into_libs=yes
16715  ;;
16716
16717haiku*)
16718  version_type=linux # correct to gnu/linux during the next big refactor
16719  need_lib_prefix=no
16720  need_version=no
16721  dynamic_linker="$host_os runtime_loader"
16722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16723  soname_spec='${libname}${release}${shared_ext}$major'
16724  shlibpath_var=LIBRARY_PATH
16725  shlibpath_overrides_runpath=yes
16726  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16727  hardcode_into_libs=yes
16728  ;;
16729
16730hpux9* | hpux10* | hpux11*)
16731  # Give a soname corresponding to the major version so that dld.sl refuses to
16732  # link against other versions.
16733  version_type=sunos
16734  need_lib_prefix=no
16735  need_version=no
16736  case $host_cpu in
16737  ia64*)
16738    shrext_cmds='.so'
16739    hardcode_into_libs=yes
16740    dynamic_linker="$host_os dld.so"
16741    shlibpath_var=LD_LIBRARY_PATH
16742    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16743    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16744    soname_spec='${libname}${release}${shared_ext}$major'
16745    if test "X$HPUX_IA64_MODE" = X32; then
16746      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16747    else
16748      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16749    fi
16750    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16751    ;;
16752  hppa*64*)
16753    shrext_cmds='.sl'
16754    hardcode_into_libs=yes
16755    dynamic_linker="$host_os dld.sl"
16756    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16757    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16758    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16759    soname_spec='${libname}${release}${shared_ext}$major'
16760    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16761    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16762    ;;
16763  *)
16764    shrext_cmds='.sl'
16765    dynamic_linker="$host_os dld.sl"
16766    shlibpath_var=SHLIB_PATH
16767    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16768    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16769    soname_spec='${libname}${release}${shared_ext}$major'
16770    ;;
16771  esac
16772  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16773  postinstall_cmds='chmod 555 $lib'
16774  # or fails outright, so override atomically:
16775  install_override_mode=555
16776  ;;
16777
16778interix[3-9]*)
16779  version_type=linux # correct to gnu/linux during the next big refactor
16780  need_lib_prefix=no
16781  need_version=no
16782  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16783  soname_spec='${libname}${release}${shared_ext}$major'
16784  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16785  shlibpath_var=LD_LIBRARY_PATH
16786  shlibpath_overrides_runpath=no
16787  hardcode_into_libs=yes
16788  ;;
16789
16790irix5* | irix6* | nonstopux*)
16791  case $host_os in
16792    nonstopux*) version_type=nonstopux ;;
16793    *)
16794	if test "$lt_cv_prog_gnu_ld" = yes; then
16795		version_type=linux # correct to gnu/linux during the next big refactor
16796	else
16797		version_type=irix
16798	fi ;;
16799  esac
16800  need_lib_prefix=no
16801  need_version=no
16802  soname_spec='${libname}${release}${shared_ext}$major'
16803  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16804  case $host_os in
16805  irix5* | nonstopux*)
16806    libsuff= shlibsuff=
16807    ;;
16808  *)
16809    case $LD in # libtool.m4 will add one of these switches to LD
16810    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16811      libsuff= shlibsuff= libmagic=32-bit;;
16812    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16813      libsuff=32 shlibsuff=N32 libmagic=N32;;
16814    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16815      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16816    *) libsuff= shlibsuff= libmagic=never-match;;
16817    esac
16818    ;;
16819  esac
16820  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16821  shlibpath_overrides_runpath=no
16822  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16823  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16824  hardcode_into_libs=yes
16825  ;;
16826
16827# No shared lib support for Linux oldld, aout, or coff.
16828linux*oldld* | linux*aout* | linux*coff*)
16829  dynamic_linker=no
16830  ;;
16831
16832# This must be glibc/ELF.
16833linux* | k*bsd*-gnu | kopensolaris*-gnu)
16834  version_type=linux # correct to gnu/linux during the next big refactor
16835  need_lib_prefix=no
16836  need_version=no
16837  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16838  soname_spec='${libname}${release}${shared_ext}$major'
16839  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16840  shlibpath_var=LD_LIBRARY_PATH
16841  shlibpath_overrides_runpath=no
16842
16843  # Some binutils ld are patched to set DT_RUNPATH
16844  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16845  $as_echo_n "(cached) " >&6
16846else
16847  lt_cv_shlibpath_overrides_runpath=no
16848    save_LDFLAGS=$LDFLAGS
16849    save_libdir=$libdir
16850    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16851	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16852    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16853/* end confdefs.h.  */
16854
16855int
16856main ()
16857{
16858
16859  ;
16860  return 0;
16861}
16862_ACEOF
16863if ac_fn_c_try_link "$LINENO"; then :
16864  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16865  lt_cv_shlibpath_overrides_runpath=yes
16866fi
16867fi
16868rm -f core conftest.err conftest.$ac_objext \
16869    conftest$ac_exeext conftest.$ac_ext
16870    LDFLAGS=$save_LDFLAGS
16871    libdir=$save_libdir
16872
16873fi
16874
16875  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16876
16877  # This implies no fast_install, which is unacceptable.
16878  # Some rework will be needed to allow for fast_install
16879  # before this can be enabled.
16880  hardcode_into_libs=yes
16881
16882  # Add ABI-specific directories to the system library path.
16883  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16884
16885  # Append ld.so.conf contents to the search path
16886  if test -f /etc/ld.so.conf; then
16887    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' ' '`
16888    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16889
16890  fi
16891
16892  # We used to test for /lib/ld.so.1 and disable shared libraries on
16893  # powerpc, because MkLinux only supported shared libraries with the
16894  # GNU dynamic linker.  Since this was broken with cross compilers,
16895  # most powerpc-linux boxes support dynamic linking these days and
16896  # people can always --disable-shared, the test was removed, and we
16897  # assume the GNU/Linux dynamic linker is in use.
16898  dynamic_linker='GNU/Linux ld.so'
16899  ;;
16900
16901netbsd*)
16902  version_type=sunos
16903  need_lib_prefix=no
16904  need_version=no
16905  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16906    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16907    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16908    dynamic_linker='NetBSD (a.out) ld.so'
16909  else
16910    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16911    soname_spec='${libname}${release}${shared_ext}$major'
16912    dynamic_linker='NetBSD ld.elf_so'
16913  fi
16914  shlibpath_var=LD_LIBRARY_PATH
16915  shlibpath_overrides_runpath=yes
16916  hardcode_into_libs=yes
16917  ;;
16918
16919newsos6)
16920  version_type=linux # correct to gnu/linux during the next big refactor
16921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16922  shlibpath_var=LD_LIBRARY_PATH
16923  shlibpath_overrides_runpath=yes
16924  ;;
16925
16926*nto* | *qnx*)
16927  version_type=qnx
16928  need_lib_prefix=no
16929  need_version=no
16930  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16931  soname_spec='${libname}${release}${shared_ext}$major'
16932  shlibpath_var=LD_LIBRARY_PATH
16933  shlibpath_overrides_runpath=no
16934  hardcode_into_libs=yes
16935  dynamic_linker='ldqnx.so'
16936  ;;
16937
16938openbsd*)
16939  version_type=sunos
16940  sys_lib_dlsearch_path_spec="/usr/lib"
16941  need_lib_prefix=no
16942  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16943  case $host_os in
16944    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
16945    *)				need_version=no  ;;
16946  esac
16947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16948  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16949  shlibpath_var=LD_LIBRARY_PATH
16950  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16951    case $host_os in
16952      openbsd2.[89] | openbsd2.[89].*)
16953	shlibpath_overrides_runpath=no
16954	;;
16955      *)
16956	shlibpath_overrides_runpath=yes
16957	;;
16958      esac
16959  else
16960    shlibpath_overrides_runpath=yes
16961  fi
16962  ;;
16963
16964os2*)
16965  libname_spec='$name'
16966  shrext_cmds=".dll"
16967  need_lib_prefix=no
16968  library_names_spec='$libname${shared_ext} $libname.a'
16969  dynamic_linker='OS/2 ld.exe'
16970  shlibpath_var=LIBPATH
16971  ;;
16972
16973osf3* | osf4* | osf5*)
16974  version_type=osf
16975  need_lib_prefix=no
16976  need_version=no
16977  soname_spec='${libname}${release}${shared_ext}$major'
16978  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16979  shlibpath_var=LD_LIBRARY_PATH
16980  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16981  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16982  ;;
16983
16984rdos*)
16985  dynamic_linker=no
16986  ;;
16987
16988solaris*)
16989  version_type=linux # correct to gnu/linux during the next big refactor
16990  need_lib_prefix=no
16991  need_version=no
16992  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16993  soname_spec='${libname}${release}${shared_ext}$major'
16994  shlibpath_var=LD_LIBRARY_PATH
16995  shlibpath_overrides_runpath=yes
16996  hardcode_into_libs=yes
16997  # ldd complains unless libraries are executable
16998  postinstall_cmds='chmod +x $lib'
16999  ;;
17000
17001sunos4*)
17002  version_type=sunos
17003  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17004  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17005  shlibpath_var=LD_LIBRARY_PATH
17006  shlibpath_overrides_runpath=yes
17007  if test "$with_gnu_ld" = yes; then
17008    need_lib_prefix=no
17009  fi
17010  need_version=yes
17011  ;;
17012
17013sysv4 | sysv4.3*)
17014  version_type=linux # correct to gnu/linux during the next big refactor
17015  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17016  soname_spec='${libname}${release}${shared_ext}$major'
17017  shlibpath_var=LD_LIBRARY_PATH
17018  case $host_vendor in
17019    sni)
17020      shlibpath_overrides_runpath=no
17021      need_lib_prefix=no
17022      runpath_var=LD_RUN_PATH
17023      ;;
17024    siemens)
17025      need_lib_prefix=no
17026      ;;
17027    motorola)
17028      need_lib_prefix=no
17029      need_version=no
17030      shlibpath_overrides_runpath=no
17031      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17032      ;;
17033  esac
17034  ;;
17035
17036sysv4*MP*)
17037  if test -d /usr/nec ;then
17038    version_type=linux # correct to gnu/linux during the next big refactor
17039    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17040    soname_spec='$libname${shared_ext}.$major'
17041    shlibpath_var=LD_LIBRARY_PATH
17042  fi
17043  ;;
17044
17045sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17046  version_type=freebsd-elf
17047  need_lib_prefix=no
17048  need_version=no
17049  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17050  soname_spec='${libname}${release}${shared_ext}$major'
17051  shlibpath_var=LD_LIBRARY_PATH
17052  shlibpath_overrides_runpath=yes
17053  hardcode_into_libs=yes
17054  if test "$with_gnu_ld" = yes; then
17055    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17056  else
17057    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17058    case $host_os in
17059      sco3.2v5*)
17060        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17061	;;
17062    esac
17063  fi
17064  sys_lib_dlsearch_path_spec='/usr/lib'
17065  ;;
17066
17067tpf*)
17068  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
17069  version_type=linux # correct to gnu/linux during the next big refactor
17070  need_lib_prefix=no
17071  need_version=no
17072  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17073  shlibpath_var=LD_LIBRARY_PATH
17074  shlibpath_overrides_runpath=no
17075  hardcode_into_libs=yes
17076  ;;
17077
17078uts4*)
17079  version_type=linux # correct to gnu/linux during the next big refactor
17080  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17081  soname_spec='${libname}${release}${shared_ext}$major'
17082  shlibpath_var=LD_LIBRARY_PATH
17083  ;;
17084
17085*)
17086  dynamic_linker=no
17087  ;;
17088esac
17089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17090$as_echo "$dynamic_linker" >&6; }
17091test "$dynamic_linker" = no && can_build_shared=no
17092
17093variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17094if test "$GCC" = yes; then
17095  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17096fi
17097
17098if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17099  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17100fi
17101if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17102  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17103fi
17104
17105
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17197$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17198hardcode_action=
17199if test -n "$hardcode_libdir_flag_spec" ||
17200   test -n "$runpath_var" ||
17201   test "X$hardcode_automatic" = "Xyes" ; then
17202
17203  # We can hardcode non-existent directories.
17204  if test "$hardcode_direct" != no &&
17205     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17206     # have to relink, otherwise we might link with an installed library
17207     # when we should be linking with a yet-to-be-installed one
17208     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17209     test "$hardcode_minus_L" != no; then
17210    # Linking always hardcodes the temporary library directory.
17211    hardcode_action=relink
17212  else
17213    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17214    hardcode_action=immediate
17215  fi
17216else
17217  # We cannot hardcode anything, or else we can only hardcode existing
17218  # directories.
17219  hardcode_action=unsupported
17220fi
17221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17222$as_echo "$hardcode_action" >&6; }
17223
17224if test "$hardcode_action" = relink ||
17225   test "$inherit_rpath" = yes; then
17226  # Fast installation is not supported
17227  enable_fast_install=no
17228elif test "$shlibpath_overrides_runpath" = yes ||
17229     test "$enable_shared" = no; then
17230  # Fast installation is not necessary
17231  enable_fast_install=needless
17232fi
17233
17234
17235
17236
17237
17238
17239  if test "x$enable_dlopen" != xyes; then
17240  enable_dlopen=unknown
17241  enable_dlopen_self=unknown
17242  enable_dlopen_self_static=unknown
17243else
17244  lt_cv_dlopen=no
17245  lt_cv_dlopen_libs=
17246
17247  case $host_os in
17248  beos*)
17249    lt_cv_dlopen="load_add_on"
17250    lt_cv_dlopen_libs=
17251    lt_cv_dlopen_self=yes
17252    ;;
17253
17254  mingw* | pw32* | cegcc*)
17255    lt_cv_dlopen="LoadLibrary"
17256    lt_cv_dlopen_libs=
17257    ;;
17258
17259  cygwin*)
17260    lt_cv_dlopen="dlopen"
17261    lt_cv_dlopen_libs=
17262    ;;
17263
17264  darwin*)
17265  # if libdl is installed we need to link against it
17266    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17267$as_echo_n "checking for dlopen in -ldl... " >&6; }
17268if ${ac_cv_lib_dl_dlopen+:} false; then :
17269  $as_echo_n "(cached) " >&6
17270else
17271  ac_check_lib_save_LIBS=$LIBS
17272LIBS="-ldl  $LIBS"
17273cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17274/* end confdefs.h.  */
17275
17276/* Override any GCC internal prototype to avoid an error.
17277   Use char because int might match the return type of a GCC
17278   builtin and then its argument prototype would still apply.  */
17279#ifdef __cplusplus
17280extern "C"
17281#endif
17282char dlopen ();
17283int
17284main ()
17285{
17286return dlopen ();
17287  ;
17288  return 0;
17289}
17290_ACEOF
17291if ac_fn_c_try_link "$LINENO"; then :
17292  ac_cv_lib_dl_dlopen=yes
17293else
17294  ac_cv_lib_dl_dlopen=no
17295fi
17296rm -f core conftest.err conftest.$ac_objext \
17297    conftest$ac_exeext conftest.$ac_ext
17298LIBS=$ac_check_lib_save_LIBS
17299fi
17300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17301$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17302if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17303  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17304else
17305
17306    lt_cv_dlopen="dyld"
17307    lt_cv_dlopen_libs=
17308    lt_cv_dlopen_self=yes
17309
17310fi
17311
17312    ;;
17313
17314  *)
17315    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17316if test "x$ac_cv_func_shl_load" = xyes; then :
17317  lt_cv_dlopen="shl_load"
17318else
17319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17320$as_echo_n "checking for shl_load in -ldld... " >&6; }
17321if ${ac_cv_lib_dld_shl_load+:} false; then :
17322  $as_echo_n "(cached) " >&6
17323else
17324  ac_check_lib_save_LIBS=$LIBS
17325LIBS="-ldld  $LIBS"
17326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17327/* end confdefs.h.  */
17328
17329/* Override any GCC internal prototype to avoid an error.
17330   Use char because int might match the return type of a GCC
17331   builtin and then its argument prototype would still apply.  */
17332#ifdef __cplusplus
17333extern "C"
17334#endif
17335char shl_load ();
17336int
17337main ()
17338{
17339return shl_load ();
17340  ;
17341  return 0;
17342}
17343_ACEOF
17344if ac_fn_c_try_link "$LINENO"; then :
17345  ac_cv_lib_dld_shl_load=yes
17346else
17347  ac_cv_lib_dld_shl_load=no
17348fi
17349rm -f core conftest.err conftest.$ac_objext \
17350    conftest$ac_exeext conftest.$ac_ext
17351LIBS=$ac_check_lib_save_LIBS
17352fi
17353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17354$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17355if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17356  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17357else
17358  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17359if test "x$ac_cv_func_dlopen" = xyes; then :
17360  lt_cv_dlopen="dlopen"
17361else
17362  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17363$as_echo_n "checking for dlopen in -ldl... " >&6; }
17364if ${ac_cv_lib_dl_dlopen+:} false; then :
17365  $as_echo_n "(cached) " >&6
17366else
17367  ac_check_lib_save_LIBS=$LIBS
17368LIBS="-ldl  $LIBS"
17369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17370/* end confdefs.h.  */
17371
17372/* Override any GCC internal prototype to avoid an error.
17373   Use char because int might match the return type of a GCC
17374   builtin and then its argument prototype would still apply.  */
17375#ifdef __cplusplus
17376extern "C"
17377#endif
17378char dlopen ();
17379int
17380main ()
17381{
17382return dlopen ();
17383  ;
17384  return 0;
17385}
17386_ACEOF
17387if ac_fn_c_try_link "$LINENO"; then :
17388  ac_cv_lib_dl_dlopen=yes
17389else
17390  ac_cv_lib_dl_dlopen=no
17391fi
17392rm -f core conftest.err conftest.$ac_objext \
17393    conftest$ac_exeext conftest.$ac_ext
17394LIBS=$ac_check_lib_save_LIBS
17395fi
17396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17397$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17398if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17399  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17400else
17401  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17402$as_echo_n "checking for dlopen in -lsvld... " >&6; }
17403if ${ac_cv_lib_svld_dlopen+:} false; then :
17404  $as_echo_n "(cached) " >&6
17405else
17406  ac_check_lib_save_LIBS=$LIBS
17407LIBS="-lsvld  $LIBS"
17408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17409/* end confdefs.h.  */
17410
17411/* Override any GCC internal prototype to avoid an error.
17412   Use char because int might match the return type of a GCC
17413   builtin and then its argument prototype would still apply.  */
17414#ifdef __cplusplus
17415extern "C"
17416#endif
17417char dlopen ();
17418int
17419main ()
17420{
17421return dlopen ();
17422  ;
17423  return 0;
17424}
17425_ACEOF
17426if ac_fn_c_try_link "$LINENO"; then :
17427  ac_cv_lib_svld_dlopen=yes
17428else
17429  ac_cv_lib_svld_dlopen=no
17430fi
17431rm -f core conftest.err conftest.$ac_objext \
17432    conftest$ac_exeext conftest.$ac_ext
17433LIBS=$ac_check_lib_save_LIBS
17434fi
17435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17436$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17437if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
17438  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17439else
17440  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17441$as_echo_n "checking for dld_link in -ldld... " >&6; }
17442if ${ac_cv_lib_dld_dld_link+:} false; then :
17443  $as_echo_n "(cached) " >&6
17444else
17445  ac_check_lib_save_LIBS=$LIBS
17446LIBS="-ldld  $LIBS"
17447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17448/* end confdefs.h.  */
17449
17450/* Override any GCC internal prototype to avoid an error.
17451   Use char because int might match the return type of a GCC
17452   builtin and then its argument prototype would still apply.  */
17453#ifdef __cplusplus
17454extern "C"
17455#endif
17456char dld_link ();
17457int
17458main ()
17459{
17460return dld_link ();
17461  ;
17462  return 0;
17463}
17464_ACEOF
17465if ac_fn_c_try_link "$LINENO"; then :
17466  ac_cv_lib_dld_dld_link=yes
17467else
17468  ac_cv_lib_dld_dld_link=no
17469fi
17470rm -f core conftest.err conftest.$ac_objext \
17471    conftest$ac_exeext conftest.$ac_ext
17472LIBS=$ac_check_lib_save_LIBS
17473fi
17474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17475$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17476if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
17477  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17478fi
17479
17480
17481fi
17482
17483
17484fi
17485
17486
17487fi
17488
17489
17490fi
17491
17492
17493fi
17494
17495    ;;
17496  esac
17497
17498  if test "x$lt_cv_dlopen" != xno; then
17499    enable_dlopen=yes
17500  else
17501    enable_dlopen=no
17502  fi
17503
17504  case $lt_cv_dlopen in
17505  dlopen)
17506    save_CPPFLAGS="$CPPFLAGS"
17507    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17508
17509    save_LDFLAGS="$LDFLAGS"
17510    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17511
17512    save_LIBS="$LIBS"
17513    LIBS="$lt_cv_dlopen_libs $LIBS"
17514
17515    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17516$as_echo_n "checking whether a program can dlopen itself... " >&6; }
17517if ${lt_cv_dlopen_self+:} false; then :
17518  $as_echo_n "(cached) " >&6
17519else
17520  	  if test "$cross_compiling" = yes; then :
17521  lt_cv_dlopen_self=cross
17522else
17523  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17524  lt_status=$lt_dlunknown
17525  cat > conftest.$ac_ext <<_LT_EOF
17526#line $LINENO "configure"
17527#include "confdefs.h"
17528
17529#if HAVE_DLFCN_H
17530#include <dlfcn.h>
17531#endif
17532
17533#include <stdio.h>
17534
17535#ifdef RTLD_GLOBAL
17536#  define LT_DLGLOBAL		RTLD_GLOBAL
17537#else
17538#  ifdef DL_GLOBAL
17539#    define LT_DLGLOBAL		DL_GLOBAL
17540#  else
17541#    define LT_DLGLOBAL		0
17542#  endif
17543#endif
17544
17545/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17546   find out it does not work in some platform. */
17547#ifndef LT_DLLAZY_OR_NOW
17548#  ifdef RTLD_LAZY
17549#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17550#  else
17551#    ifdef DL_LAZY
17552#      define LT_DLLAZY_OR_NOW		DL_LAZY
17553#    else
17554#      ifdef RTLD_NOW
17555#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17556#      else
17557#        ifdef DL_NOW
17558#          define LT_DLLAZY_OR_NOW	DL_NOW
17559#        else
17560#          define LT_DLLAZY_OR_NOW	0
17561#        endif
17562#      endif
17563#    endif
17564#  endif
17565#endif
17566
17567/* When -fvisbility=hidden is used, assume the code has been annotated
17568   correspondingly for the symbols needed.  */
17569#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17570int fnord () __attribute__((visibility("default")));
17571#endif
17572
17573int fnord () { return 42; }
17574int main ()
17575{
17576  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17577  int status = $lt_dlunknown;
17578
17579  if (self)
17580    {
17581      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17582      else
17583        {
17584	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17585          else puts (dlerror ());
17586	}
17587      /* dlclose (self); */
17588    }
17589  else
17590    puts (dlerror ());
17591
17592  return status;
17593}
17594_LT_EOF
17595  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17596  (eval $ac_link) 2>&5
17597  ac_status=$?
17598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17599  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17600    (./conftest; exit; ) >&5 2>/dev/null
17601    lt_status=$?
17602    case x$lt_status in
17603      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17604      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17605      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17606    esac
17607  else :
17608    # compilation failed
17609    lt_cv_dlopen_self=no
17610  fi
17611fi
17612rm -fr conftest*
17613
17614
17615fi
17616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17617$as_echo "$lt_cv_dlopen_self" >&6; }
17618
17619    if test "x$lt_cv_dlopen_self" = xyes; then
17620      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17621      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17622$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17623if ${lt_cv_dlopen_self_static+:} false; then :
17624  $as_echo_n "(cached) " >&6
17625else
17626  	  if test "$cross_compiling" = yes; then :
17627  lt_cv_dlopen_self_static=cross
17628else
17629  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17630  lt_status=$lt_dlunknown
17631  cat > conftest.$ac_ext <<_LT_EOF
17632#line $LINENO "configure"
17633#include "confdefs.h"
17634
17635#if HAVE_DLFCN_H
17636#include <dlfcn.h>
17637#endif
17638
17639#include <stdio.h>
17640
17641#ifdef RTLD_GLOBAL
17642#  define LT_DLGLOBAL		RTLD_GLOBAL
17643#else
17644#  ifdef DL_GLOBAL
17645#    define LT_DLGLOBAL		DL_GLOBAL
17646#  else
17647#    define LT_DLGLOBAL		0
17648#  endif
17649#endif
17650
17651/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17652   find out it does not work in some platform. */
17653#ifndef LT_DLLAZY_OR_NOW
17654#  ifdef RTLD_LAZY
17655#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
17656#  else
17657#    ifdef DL_LAZY
17658#      define LT_DLLAZY_OR_NOW		DL_LAZY
17659#    else
17660#      ifdef RTLD_NOW
17661#        define LT_DLLAZY_OR_NOW	RTLD_NOW
17662#      else
17663#        ifdef DL_NOW
17664#          define LT_DLLAZY_OR_NOW	DL_NOW
17665#        else
17666#          define LT_DLLAZY_OR_NOW	0
17667#        endif
17668#      endif
17669#    endif
17670#  endif
17671#endif
17672
17673/* When -fvisbility=hidden is used, assume the code has been annotated
17674   correspondingly for the symbols needed.  */
17675#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17676int fnord () __attribute__((visibility("default")));
17677#endif
17678
17679int fnord () { return 42; }
17680int main ()
17681{
17682  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17683  int status = $lt_dlunknown;
17684
17685  if (self)
17686    {
17687      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17688      else
17689        {
17690	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
17691          else puts (dlerror ());
17692	}
17693      /* dlclose (self); */
17694    }
17695  else
17696    puts (dlerror ());
17697
17698  return status;
17699}
17700_LT_EOF
17701  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17702  (eval $ac_link) 2>&5
17703  ac_status=$?
17704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17705  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17706    (./conftest; exit; ) >&5 2>/dev/null
17707    lt_status=$?
17708    case x$lt_status in
17709      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17710      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17711      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17712    esac
17713  else :
17714    # compilation failed
17715    lt_cv_dlopen_self_static=no
17716  fi
17717fi
17718rm -fr conftest*
17719
17720
17721fi
17722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17723$as_echo "$lt_cv_dlopen_self_static" >&6; }
17724    fi
17725
17726    CPPFLAGS="$save_CPPFLAGS"
17727    LDFLAGS="$save_LDFLAGS"
17728    LIBS="$save_LIBS"
17729    ;;
17730  esac
17731
17732  case $lt_cv_dlopen_self in
17733  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17734  *) enable_dlopen_self=unknown ;;
17735  esac
17736
17737  case $lt_cv_dlopen_self_static in
17738  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17739  *) enable_dlopen_self_static=unknown ;;
17740  esac
17741fi
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759striplib=
17760old_striplib=
17761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17762$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17763if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17764  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17765  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17767$as_echo "yes" >&6; }
17768else
17769# FIXME - insert some real tests, host_os isn't really good enough
17770  case $host_os in
17771  darwin*)
17772    if test -n "$STRIP" ; then
17773      striplib="$STRIP -x"
17774      old_striplib="$STRIP -S"
17775      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17776$as_echo "yes" >&6; }
17777    else
17778      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17779$as_echo "no" >&6; }
17780    fi
17781    ;;
17782  *)
17783    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17784$as_echo "no" >&6; }
17785    ;;
17786  esac
17787fi
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800  # Report which library types will actually be built
17801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17802$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17804$as_echo "$can_build_shared" >&6; }
17805
17806  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17807$as_echo_n "checking whether to build shared libraries... " >&6; }
17808  test "$can_build_shared" = "no" && enable_shared=no
17809
17810  # On AIX, shared libraries and static libraries use the same namespace, and
17811  # are all built from PIC.
17812  case $host_os in
17813  aix3*)
17814    test "$enable_shared" = yes && enable_static=no
17815    if test -n "$RANLIB"; then
17816      archive_cmds="$archive_cmds~\$RANLIB \$lib"
17817      postinstall_cmds='$RANLIB $lib'
17818    fi
17819    ;;
17820
17821  aix[4-9]*)
17822    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17823      test "$enable_shared" = yes && enable_static=no
17824    fi
17825    ;;
17826  esac
17827  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17828$as_echo "$enable_shared" >&6; }
17829
17830  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17831$as_echo_n "checking whether to build static libraries... " >&6; }
17832  # Make sure either enable_shared or enable_static is yes.
17833  test "$enable_shared" = yes || enable_static=yes
17834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17835$as_echo "$enable_static" >&6; }
17836
17837
17838
17839
17840fi
17841ac_ext=c
17842ac_cpp='$CPP $CPPFLAGS'
17843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17845ac_compiler_gnu=$ac_cv_c_compiler_gnu
17846
17847CC="$lt_save_CC"
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863        ac_config_commands="$ac_config_commands libtool"
17864
17865
17866
17867
17868# Only expand once:
17869
17870
17871
17872
17873
17874# Define a configure option for an alternate module directory
17875
17876# Check whether --with-xorg-module-dir was given.
17877if test "${with_xorg_module_dir+set}" = set; then :
17878  withval=$with_xorg_module_dir; moduledir="$withval"
17879else
17880  moduledir="$libdir/xorg/modules"
17881fi
17882
17883
17884# Store the list of server defined optional extensions in REQUIRED_MODULES
17885
17886
17887	SAVE_CFLAGS="$CFLAGS"
17888	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17889	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17890/* end confdefs.h.  */
17891
17892#include "xorg-server.h"
17893#if !defined RANDR
17894#error RANDR not defined
17895#endif
17896
17897int
17898main ()
17899{
17900
17901  ;
17902  return 0;
17903}
17904_ACEOF
17905if ac_fn_c_try_compile "$LINENO"; then :
17906  _EXT_CHECK=yes
17907else
17908  _EXT_CHECK=no
17909fi
17910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17911	CFLAGS="$SAVE_CFLAGS"
17912	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5
17913$as_echo_n "checking if RANDR is defined... " >&6; }
17914	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17915$as_echo "$_EXT_CHECK" >&6; }
17916	if test "$_EXT_CHECK" != no; then
17917		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
17918	fi
17919
17920
17921
17922	SAVE_CFLAGS="$CFLAGS"
17923	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17924	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17925/* end confdefs.h.  */
17926
17927#include "xorg-server.h"
17928#if !defined RENDER
17929#error RENDER not defined
17930#endif
17931
17932int
17933main ()
17934{
17935
17936  ;
17937  return 0;
17938}
17939_ACEOF
17940if ac_fn_c_try_compile "$LINENO"; then :
17941  _EXT_CHECK=yes
17942else
17943  _EXT_CHECK=no
17944fi
17945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17946	CFLAGS="$SAVE_CFLAGS"
17947	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5
17948$as_echo_n "checking if RENDER is defined... " >&6; }
17949	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17950$as_echo "$_EXT_CHECK" >&6; }
17951	if test "$_EXT_CHECK" != no; then
17952		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
17953	fi
17954
17955
17956
17957	SAVE_CFLAGS="$CFLAGS"
17958	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17959	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17960/* end confdefs.h.  */
17961
17962#include "xorg-server.h"
17963#if !defined XV
17964#error XV not defined
17965#endif
17966
17967int
17968main ()
17969{
17970
17971  ;
17972  return 0;
17973}
17974_ACEOF
17975if ac_fn_c_try_compile "$LINENO"; then :
17976  _EXT_CHECK=yes
17977else
17978  _EXT_CHECK=no
17979fi
17980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17981	CFLAGS="$SAVE_CFLAGS"
17982	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if XV is defined" >&5
17983$as_echo_n "checking if XV is defined... " >&6; }
17984	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
17985$as_echo "$_EXT_CHECK" >&6; }
17986	if test "$_EXT_CHECK" != no; then
17987		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
17988	fi
17989
17990
17991
17992	SAVE_CFLAGS="$CFLAGS"
17993	CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`"
17994	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17995/* end confdefs.h.  */
17996
17997#include "xorg-server.h"
17998#if !defined DPMSExtension
17999#error DPMSExtension not defined
18000#endif
18001
18002int
18003main ()
18004{
18005
18006  ;
18007  return 0;
18008}
18009_ACEOF
18010if ac_fn_c_try_compile "$LINENO"; then :
18011  _EXT_CHECK=yes
18012else
18013  _EXT_CHECK=no
18014fi
18015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18016	CFLAGS="$SAVE_CFLAGS"
18017	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5
18018$as_echo_n "checking if DPMSExtension is defined... " >&6; }
18019	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5
18020$as_echo "$_EXT_CHECK" >&6; }
18021	if test "$_EXT_CHECK" != no; then
18022		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
18023	fi
18024
18025
18026# Obtain compiler/linker options for the driver dependencies
18027
18028pkg_failed=no
18029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
18030$as_echo_n "checking for XORG... " >&6; }
18031
18032if test -n "$XORG_CFLAGS"; then
18033    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
18034 elif test -n "$PKG_CONFIG"; then
18035    if test -n "$PKG_CONFIG" && \
18036    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18037  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18038  ac_status=$?
18039  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18040  test $ac_status = 0; }; then
18041  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18042		      test "x$?" != "x0" && pkg_failed=yes
18043else
18044  pkg_failed=yes
18045fi
18046 else
18047    pkg_failed=untried
18048fi
18049if test -n "$XORG_LIBS"; then
18050    pkg_cv_XORG_LIBS="$XORG_LIBS"
18051 elif test -n "$PKG_CONFIG"; then
18052    if test -n "$PKG_CONFIG" && \
18053    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5
18054  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
18055  ac_status=$?
18056  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18057  test $ac_status = 0; }; then
18058  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
18059		      test "x$?" != "x0" && pkg_failed=yes
18060else
18061  pkg_failed=yes
18062fi
18063 else
18064    pkg_failed=untried
18065fi
18066
18067
18068
18069if test $pkg_failed = yes; then
18070   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18071$as_echo "no" >&6; }
18072
18073if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18074        _pkg_short_errors_supported=yes
18075else
18076        _pkg_short_errors_supported=no
18077fi
18078        if test $_pkg_short_errors_supported = yes; then
18079	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18080        else
18081	        XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1`
18082        fi
18083	# Put the nasty error message in config.log where it belongs
18084	echo "$XORG_PKG_ERRORS" >&5
18085
18086	as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
18087
18088$XORG_PKG_ERRORS
18089
18090Consider adjusting the PKG_CONFIG_PATH environment variable if you
18091installed software in a non-standard prefix.
18092
18093Alternatively, you may set the environment variables XORG_CFLAGS
18094and XORG_LIBS to avoid the need to call pkg-config.
18095See the pkg-config man page for more details." "$LINENO" 5
18096elif test $pkg_failed = untried; then
18097     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18098$as_echo "no" >&6; }
18099	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18101as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18102is in your PATH or set the PKG_CONFIG environment variable to the full
18103path to pkg-config.
18104
18105Alternatively, you may set the environment variables XORG_CFLAGS
18106and XORG_LIBS to avoid the need to call pkg-config.
18107See the pkg-config man page for more details.
18108
18109To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18110See \`config.log' for more details" "$LINENO" 5; }
18111else
18112	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
18113	XORG_LIBS=$pkg_cv_XORG_LIBS
18114        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18115$as_echo "yes" >&6; }
18116
18117fi
18118
18119# Checks for libraries.
18120SAVE_CPPFLAGS="$CPPFLAGS"
18121CPPFLAGS="$CPPFLAGS $XORG_CFLAGS"
18122ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\"
18123"
18124if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then :
18125  XSERVER_LIBPCIACCESS=yes
18126else
18127  XSERVER_LIBPCIACCESS=no
18128fi
18129
18130CPPFLAGS="$SAVE_CPPFLAGS"
18131
18132if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18133
18134pkg_failed=no
18135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5
18136$as_echo_n "checking for PCIACCESS... " >&6; }
18137
18138if test -n "$PCIACCESS_CFLAGS"; then
18139    pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS"
18140 elif test -n "$PKG_CONFIG"; then
18141    if test -n "$PKG_CONFIG" && \
18142    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18143  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18144  ac_status=$?
18145  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18146  test $ac_status = 0; }; then
18147  pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null`
18148		      test "x$?" != "x0" && pkg_failed=yes
18149else
18150  pkg_failed=yes
18151fi
18152 else
18153    pkg_failed=untried
18154fi
18155if test -n "$PCIACCESS_LIBS"; then
18156    pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS"
18157 elif test -n "$PKG_CONFIG"; then
18158    if test -n "$PKG_CONFIG" && \
18159    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5
18160  ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5
18161  ac_status=$?
18162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18163  test $ac_status = 0; }; then
18164  pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null`
18165		      test "x$?" != "x0" && pkg_failed=yes
18166else
18167  pkg_failed=yes
18168fi
18169 else
18170    pkg_failed=untried
18171fi
18172
18173
18174
18175if test $pkg_failed = yes; then
18176   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18177$as_echo "no" >&6; }
18178
18179if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18180        _pkg_short_errors_supported=yes
18181else
18182        _pkg_short_errors_supported=no
18183fi
18184        if test $_pkg_short_errors_supported = yes; then
18185	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18186        else
18187	        PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1`
18188        fi
18189	# Put the nasty error message in config.log where it belongs
18190	echo "$PCIACCESS_PKG_ERRORS" >&5
18191
18192	as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met:
18193
18194$PCIACCESS_PKG_ERRORS
18195
18196Consider adjusting the PKG_CONFIG_PATH environment variable if you
18197installed software in a non-standard prefix.
18198
18199Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18200and PCIACCESS_LIBS to avoid the need to call pkg-config.
18201See the pkg-config man page for more details." "$LINENO" 5
18202elif test $pkg_failed = untried; then
18203     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18204$as_echo "no" >&6; }
18205	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18207as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18208is in your PATH or set the PKG_CONFIG environment variable to the full
18209path to pkg-config.
18210
18211Alternatively, you may set the environment variables PCIACCESS_CFLAGS
18212and PCIACCESS_LIBS to avoid the need to call pkg-config.
18213See the pkg-config man page for more details.
18214
18215To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18216See \`config.log' for more details" "$LINENO" 5; }
18217else
18218	PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS
18219	PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS
18220        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18221$as_echo "yes" >&6; }
18222
18223fi
18224    XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS"
18225fi
18226 if test "x$XSERVER_LIBPCIACCESS" = xyes; then
18227  XSERVER_LIBPCIACCESS_TRUE=
18228  XSERVER_LIBPCIACCESS_FALSE='#'
18229else
18230  XSERVER_LIBPCIACCESS_TRUE='#'
18231  XSERVER_LIBPCIACCESS_FALSE=
18232fi
18233
18234
18235# Check whether --enable-xaa was given.
18236if test "${enable_xaa+set}" = set; then :
18237  enableval=$enable_xaa; XAA="$enableval"
18238else
18239  XAA=auto
18240fi
18241
18242if test "x$XAA" != xno; then
18243        save_CFLAGS=$CFLAGS
18244        save_CPPFLAGS=$CPPFLAGS
18245        CFLAGS=$XORG_CFLAGS
18246        CPPFLAGS="$XORG_CFLAGS"
18247        for ac_header in xaa.h
18248do :
18249  ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default"
18250if test "x$ac_cv_header_xaa_h" = xyes; then :
18251  cat >>confdefs.h <<_ACEOF
18252#define HAVE_XAA_H 1
18253_ACEOF
18254 XAA=yes
18255else
18256  XAA=no
18257fi
18258
18259done
18260
18261        CFLAGS=$save_CFLAGS
18262        CPPFLAGS=$save_CPPFLAGS
18263fi
18264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5
18265$as_echo_n "checking whether to include XAA support... " >&6; }
18266 if test "x$XAA" = xyes; then
18267  XAA_TRUE=
18268  XAA_FALSE='#'
18269else
18270  XAA_TRUE='#'
18271  XAA_FALSE=
18272fi
18273
18274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5
18275$as_echo "$XAA" >&6; }
18276
18277
18278
18279
18280DRIVER_NAME=nv
18281
18282
18283ac_config_files="$ac_config_files Makefile src/Makefile"
18284
18285cat >confcache <<\_ACEOF
18286# This file is a shell script that caches the results of configure
18287# tests run on this system so they can be shared between configure
18288# scripts and configure runs, see configure's option --config-cache.
18289# It is not useful on other systems.  If it contains results you don't
18290# want to keep, you may remove or edit it.
18291#
18292# config.status only pays attention to the cache file if you give it
18293# the --recheck option to rerun configure.
18294#
18295# `ac_cv_env_foo' variables (set or unset) will be overridden when
18296# loading this file, other *unset* `ac_cv_foo' will be assigned the
18297# following values.
18298
18299_ACEOF
18300
18301# The following way of writing the cache mishandles newlines in values,
18302# but we know of no workaround that is simple, portable, and efficient.
18303# So, we kill variables containing newlines.
18304# Ultrix sh set writes to stderr and can't be redirected directly,
18305# and sets the high bit in the cache file unless we assign to the vars.
18306(
18307  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18308    eval ac_val=\$$ac_var
18309    case $ac_val in #(
18310    *${as_nl}*)
18311      case $ac_var in #(
18312      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18313$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18314      esac
18315      case $ac_var in #(
18316      _ | IFS | as_nl) ;; #(
18317      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18318      *) { eval $ac_var=; unset $ac_var;} ;;
18319      esac ;;
18320    esac
18321  done
18322
18323  (set) 2>&1 |
18324    case $as_nl`(ac_space=' '; set) 2>&1` in #(
18325    *${as_nl}ac_space=\ *)
18326      # `set' does not quote correctly, so add quotes: double-quote
18327      # substitution turns \\\\ into \\, and sed turns \\ into \.
18328      sed -n \
18329	"s/'/'\\\\''/g;
18330	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18331      ;; #(
18332    *)
18333      # `set' quotes correctly as required by POSIX, so do not add quotes.
18334      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18335      ;;
18336    esac |
18337    sort
18338) |
18339  sed '
18340     /^ac_cv_env_/b end
18341     t clear
18342     :clear
18343     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18344     t end
18345     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18346     :end' >>confcache
18347if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18348  if test -w "$cache_file"; then
18349    if test "x$cache_file" != "x/dev/null"; then
18350      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18351$as_echo "$as_me: updating cache $cache_file" >&6;}
18352      if test ! -f "$cache_file" || test -h "$cache_file"; then
18353	cat confcache >"$cache_file"
18354      else
18355        case $cache_file in #(
18356        */* | ?:*)
18357	  mv -f confcache "$cache_file"$$ &&
18358	  mv -f "$cache_file"$$ "$cache_file" ;; #(
18359        *)
18360	  mv -f confcache "$cache_file" ;;
18361	esac
18362      fi
18363    fi
18364  else
18365    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18366$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18367  fi
18368fi
18369rm -f confcache
18370
18371test "x$prefix" = xNONE && prefix=$ac_default_prefix
18372# Let make expand exec_prefix.
18373test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18374
18375DEFS=-DHAVE_CONFIG_H
18376
18377ac_libobjs=
18378ac_ltlibobjs=
18379U=
18380for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18381  # 1. Remove the extension, and $U if already installed.
18382  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18383  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18384  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18385  #    will be set to the directory where LIBOBJS objects are built.
18386  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18387  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18388done
18389LIBOBJS=$ac_libobjs
18390
18391LTLIBOBJS=$ac_ltlibobjs
18392
18393
18394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18395$as_echo_n "checking that generated files are newer than configure... " >&6; }
18396   if test -n "$am_sleep_pid"; then
18397     # Hide warnings about reused PIDs.
18398     wait $am_sleep_pid 2>/dev/null
18399   fi
18400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
18401$as_echo "done" >&6; }
18402 if test -n "$EXEEXT"; then
18403  am__EXEEXT_TRUE=
18404  am__EXEEXT_FALSE='#'
18405else
18406  am__EXEEXT_TRUE='#'
18407  am__EXEEXT_FALSE=
18408fi
18409
18410if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18411  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
18412Usually this means the macro was only invoked conditionally." "$LINENO" 5
18413fi
18414if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18415  as_fn_error $? "conditional \"AMDEP\" was never defined.
18416Usually this means the macro was only invoked conditionally." "$LINENO" 5
18417fi
18418if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18419  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18420Usually this means the macro was only invoked conditionally." "$LINENO" 5
18421fi
18422if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then
18423  as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined.
18424Usually this means the macro was only invoked conditionally." "$LINENO" 5
18425fi
18426if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then
18427  as_fn_error $? "conditional \"XAA\" was never defined.
18428Usually this means the macro was only invoked conditionally." "$LINENO" 5
18429fi
18430
18431: "${CONFIG_STATUS=./config.status}"
18432ac_write_fail=0
18433ac_clean_files_save=$ac_clean_files
18434ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18435{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18436$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18437as_write_fail=0
18438cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18439#! $SHELL
18440# Generated by $as_me.
18441# Run this file to recreate the current configuration.
18442# Compiler output produced by configure, useful for debugging
18443# configure, is in config.log if it exists.
18444
18445debug=false
18446ac_cs_recheck=false
18447ac_cs_silent=false
18448
18449SHELL=\${CONFIG_SHELL-$SHELL}
18450export SHELL
18451_ASEOF
18452cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18453## -------------------- ##
18454## M4sh Initialization. ##
18455## -------------------- ##
18456
18457# Be more Bourne compatible
18458DUALCASE=1; export DUALCASE # for MKS sh
18459if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18460  emulate sh
18461  NULLCMD=:
18462  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18463  # is contrary to our usage.  Disable this feature.
18464  alias -g '${1+"$@"}'='"$@"'
18465  setopt NO_GLOB_SUBST
18466else
18467  case `(set -o) 2>/dev/null` in #(
18468  *posix*) :
18469    set -o posix ;; #(
18470  *) :
18471     ;;
18472esac
18473fi
18474
18475
18476as_nl='
18477'
18478export as_nl
18479# Printing a long string crashes Solaris 7 /usr/bin/printf.
18480as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18481as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18482as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18483# Prefer a ksh shell builtin over an external printf program on Solaris,
18484# but without wasting forks for bash or zsh.
18485if test -z "$BASH_VERSION$ZSH_VERSION" \
18486    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18487  as_echo='print -r --'
18488  as_echo_n='print -rn --'
18489elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18490  as_echo='printf %s\n'
18491  as_echo_n='printf %s'
18492else
18493  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18494    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18495    as_echo_n='/usr/ucb/echo -n'
18496  else
18497    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18498    as_echo_n_body='eval
18499      arg=$1;
18500      case $arg in #(
18501      *"$as_nl"*)
18502	expr "X$arg" : "X\\(.*\\)$as_nl";
18503	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18504      esac;
18505      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18506    '
18507    export as_echo_n_body
18508    as_echo_n='sh -c $as_echo_n_body as_echo'
18509  fi
18510  export as_echo_body
18511  as_echo='sh -c $as_echo_body as_echo'
18512fi
18513
18514# The user is always right.
18515if test "${PATH_SEPARATOR+set}" != set; then
18516  PATH_SEPARATOR=:
18517  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18518    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18519      PATH_SEPARATOR=';'
18520  }
18521fi
18522
18523
18524# IFS
18525# We need space, tab and new line, in precisely that order.  Quoting is
18526# there to prevent editors from complaining about space-tab.
18527# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18528# splitting by setting IFS to empty value.)
18529IFS=" ""	$as_nl"
18530
18531# Find who we are.  Look in the path if we contain no directory separator.
18532as_myself=
18533case $0 in #((
18534  *[\\/]* ) as_myself=$0 ;;
18535  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18536for as_dir in $PATH
18537do
18538  IFS=$as_save_IFS
18539  test -z "$as_dir" && as_dir=.
18540    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18541  done
18542IFS=$as_save_IFS
18543
18544     ;;
18545esac
18546# We did not find ourselves, most probably we were run as `sh COMMAND'
18547# in which case we are not to be found in the path.
18548if test "x$as_myself" = x; then
18549  as_myself=$0
18550fi
18551if test ! -f "$as_myself"; then
18552  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18553  exit 1
18554fi
18555
18556# Unset variables that we do not need and which cause bugs (e.g. in
18557# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18558# suppresses any "Segmentation fault" message there.  '((' could
18559# trigger a bug in pdksh 5.2.14.
18560for as_var in BASH_ENV ENV MAIL MAILPATH
18561do eval test x\${$as_var+set} = xset \
18562  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18563done
18564PS1='$ '
18565PS2='> '
18566PS4='+ '
18567
18568# NLS nuisances.
18569LC_ALL=C
18570export LC_ALL
18571LANGUAGE=C
18572export LANGUAGE
18573
18574# CDPATH.
18575(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18576
18577
18578# as_fn_error STATUS ERROR [LINENO LOG_FD]
18579# ----------------------------------------
18580# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18581# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18582# script with STATUS, using 1 if that was 0.
18583as_fn_error ()
18584{
18585  as_status=$1; test $as_status -eq 0 && as_status=1
18586  if test "$4"; then
18587    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18588    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18589  fi
18590  $as_echo "$as_me: error: $2" >&2
18591  as_fn_exit $as_status
18592} # as_fn_error
18593
18594
18595# as_fn_set_status STATUS
18596# -----------------------
18597# Set $? to STATUS, without forking.
18598as_fn_set_status ()
18599{
18600  return $1
18601} # as_fn_set_status
18602
18603# as_fn_exit STATUS
18604# -----------------
18605# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18606as_fn_exit ()
18607{
18608  set +e
18609  as_fn_set_status $1
18610  exit $1
18611} # as_fn_exit
18612
18613# as_fn_unset VAR
18614# ---------------
18615# Portably unset VAR.
18616as_fn_unset ()
18617{
18618  { eval $1=; unset $1;}
18619}
18620as_unset=as_fn_unset
18621# as_fn_append VAR VALUE
18622# ----------------------
18623# Append the text in VALUE to the end of the definition contained in VAR. Take
18624# advantage of any shell optimizations that allow amortized linear growth over
18625# repeated appends, instead of the typical quadratic growth present in naive
18626# implementations.
18627if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18628  eval 'as_fn_append ()
18629  {
18630    eval $1+=\$2
18631  }'
18632else
18633  as_fn_append ()
18634  {
18635    eval $1=\$$1\$2
18636  }
18637fi # as_fn_append
18638
18639# as_fn_arith ARG...
18640# ------------------
18641# Perform arithmetic evaluation on the ARGs, and store the result in the
18642# global $as_val. Take advantage of shells that can avoid forks. The arguments
18643# must be portable across $(()) and expr.
18644if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18645  eval 'as_fn_arith ()
18646  {
18647    as_val=$(( $* ))
18648  }'
18649else
18650  as_fn_arith ()
18651  {
18652    as_val=`expr "$@" || test $? -eq 1`
18653  }
18654fi # as_fn_arith
18655
18656
18657if expr a : '\(a\)' >/dev/null 2>&1 &&
18658   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18659  as_expr=expr
18660else
18661  as_expr=false
18662fi
18663
18664if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18665  as_basename=basename
18666else
18667  as_basename=false
18668fi
18669
18670if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18671  as_dirname=dirname
18672else
18673  as_dirname=false
18674fi
18675
18676as_me=`$as_basename -- "$0" ||
18677$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18678	 X"$0" : 'X\(//\)$' \| \
18679	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18680$as_echo X/"$0" |
18681    sed '/^.*\/\([^/][^/]*\)\/*$/{
18682	    s//\1/
18683	    q
18684	  }
18685	  /^X\/\(\/\/\)$/{
18686	    s//\1/
18687	    q
18688	  }
18689	  /^X\/\(\/\).*/{
18690	    s//\1/
18691	    q
18692	  }
18693	  s/.*/./; q'`
18694
18695# Avoid depending upon Character Ranges.
18696as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18697as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18698as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18699as_cr_digits='0123456789'
18700as_cr_alnum=$as_cr_Letters$as_cr_digits
18701
18702ECHO_C= ECHO_N= ECHO_T=
18703case `echo -n x` in #(((((
18704-n*)
18705  case `echo 'xy\c'` in
18706  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18707  xy)  ECHO_C='\c';;
18708  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18709       ECHO_T='	';;
18710  esac;;
18711*)
18712  ECHO_N='-n';;
18713esac
18714
18715rm -f conf$$ conf$$.exe conf$$.file
18716if test -d conf$$.dir; then
18717  rm -f conf$$.dir/conf$$.file
18718else
18719  rm -f conf$$.dir
18720  mkdir conf$$.dir 2>/dev/null
18721fi
18722if (echo >conf$$.file) 2>/dev/null; then
18723  if ln -s conf$$.file conf$$ 2>/dev/null; then
18724    as_ln_s='ln -s'
18725    # ... but there are two gotchas:
18726    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18727    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18728    # In both cases, we have to default to `cp -pR'.
18729    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18730      as_ln_s='cp -pR'
18731  elif ln conf$$.file conf$$ 2>/dev/null; then
18732    as_ln_s=ln
18733  else
18734    as_ln_s='cp -pR'
18735  fi
18736else
18737  as_ln_s='cp -pR'
18738fi
18739rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18740rmdir conf$$.dir 2>/dev/null
18741
18742
18743# as_fn_mkdir_p
18744# -------------
18745# Create "$as_dir" as a directory, including parents if necessary.
18746as_fn_mkdir_p ()
18747{
18748
18749  case $as_dir in #(
18750  -*) as_dir=./$as_dir;;
18751  esac
18752  test -d "$as_dir" || eval $as_mkdir_p || {
18753    as_dirs=
18754    while :; do
18755      case $as_dir in #(
18756      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18757      *) as_qdir=$as_dir;;
18758      esac
18759      as_dirs="'$as_qdir' $as_dirs"
18760      as_dir=`$as_dirname -- "$as_dir" ||
18761$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18762	 X"$as_dir" : 'X\(//\)[^/]' \| \
18763	 X"$as_dir" : 'X\(//\)$' \| \
18764	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18765$as_echo X"$as_dir" |
18766    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18767	    s//\1/
18768	    q
18769	  }
18770	  /^X\(\/\/\)[^/].*/{
18771	    s//\1/
18772	    q
18773	  }
18774	  /^X\(\/\/\)$/{
18775	    s//\1/
18776	    q
18777	  }
18778	  /^X\(\/\).*/{
18779	    s//\1/
18780	    q
18781	  }
18782	  s/.*/./; q'`
18783      test -d "$as_dir" && break
18784    done
18785    test -z "$as_dirs" || eval "mkdir $as_dirs"
18786  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18787
18788
18789} # as_fn_mkdir_p
18790if mkdir -p . 2>/dev/null; then
18791  as_mkdir_p='mkdir -p "$as_dir"'
18792else
18793  test -d ./-p && rmdir ./-p
18794  as_mkdir_p=false
18795fi
18796
18797
18798# as_fn_executable_p FILE
18799# -----------------------
18800# Test if FILE is an executable regular file.
18801as_fn_executable_p ()
18802{
18803  test -f "$1" && test -x "$1"
18804} # as_fn_executable_p
18805as_test_x='test -x'
18806as_executable_p=as_fn_executable_p
18807
18808# Sed expression to map a string onto a valid CPP name.
18809as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18810
18811# Sed expression to map a string onto a valid variable name.
18812as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18813
18814
18815exec 6>&1
18816## ----------------------------------- ##
18817## Main body of $CONFIG_STATUS script. ##
18818## ----------------------------------- ##
18819_ASEOF
18820test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18821
18822cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18823# Save the log message, to keep $0 and so on meaningful, and to
18824# report actual input values of CONFIG_FILES etc. instead of their
18825# values after options handling.
18826ac_log="
18827This file was extended by xf86-video-ast $as_me 1.0.1, which was
18828generated by GNU Autoconf 2.69.  Invocation command line was
18829
18830  CONFIG_FILES    = $CONFIG_FILES
18831  CONFIG_HEADERS  = $CONFIG_HEADERS
18832  CONFIG_LINKS    = $CONFIG_LINKS
18833  CONFIG_COMMANDS = $CONFIG_COMMANDS
18834  $ $0 $@
18835
18836on `(hostname || uname -n) 2>/dev/null | sed 1q`
18837"
18838
18839_ACEOF
18840
18841case $ac_config_files in *"
18842"*) set x $ac_config_files; shift; ac_config_files=$*;;
18843esac
18844
18845case $ac_config_headers in *"
18846"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18847esac
18848
18849
18850cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18851# Files that config.status was made for.
18852config_files="$ac_config_files"
18853config_headers="$ac_config_headers"
18854config_commands="$ac_config_commands"
18855
18856_ACEOF
18857
18858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18859ac_cs_usage="\
18860\`$as_me' instantiates files and other configuration actions
18861from templates according to the current configuration.  Unless the files
18862and actions are specified as TAGs, all are instantiated by default.
18863
18864Usage: $0 [OPTION]... [TAG]...
18865
18866  -h, --help       print this help, then exit
18867  -V, --version    print version number and configuration settings, then exit
18868      --config     print configuration, then exit
18869  -q, --quiet, --silent
18870                   do not print progress messages
18871  -d, --debug      don't remove temporary files
18872      --recheck    update $as_me by reconfiguring in the same conditions
18873      --file=FILE[:TEMPLATE]
18874                   instantiate the configuration file FILE
18875      --header=FILE[:TEMPLATE]
18876                   instantiate the configuration header FILE
18877
18878Configuration files:
18879$config_files
18880
18881Configuration headers:
18882$config_headers
18883
18884Configuration commands:
18885$config_commands
18886
18887Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18888
18889_ACEOF
18890cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18891ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18892ac_cs_version="\\
18893xf86-video-ast config.status 1.0.1
18894configured by $0, generated by GNU Autoconf 2.69,
18895  with options \\"\$ac_cs_config\\"
18896
18897Copyright (C) 2012 Free Software Foundation, Inc.
18898This config.status script is free software; the Free Software Foundation
18899gives unlimited permission to copy, distribute and modify it."
18900
18901ac_pwd='$ac_pwd'
18902srcdir='$srcdir'
18903INSTALL='$INSTALL'
18904MKDIR_P='$MKDIR_P'
18905AWK='$AWK'
18906test -n "\$AWK" || AWK=awk
18907_ACEOF
18908
18909cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18910# The default lists apply if the user does not specify any file.
18911ac_need_defaults=:
18912while test $# != 0
18913do
18914  case $1 in
18915  --*=?*)
18916    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18917    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18918    ac_shift=:
18919    ;;
18920  --*=)
18921    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18922    ac_optarg=
18923    ac_shift=:
18924    ;;
18925  *)
18926    ac_option=$1
18927    ac_optarg=$2
18928    ac_shift=shift
18929    ;;
18930  esac
18931
18932  case $ac_option in
18933  # Handling of the options.
18934  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18935    ac_cs_recheck=: ;;
18936  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18937    $as_echo "$ac_cs_version"; exit ;;
18938  --config | --confi | --conf | --con | --co | --c )
18939    $as_echo "$ac_cs_config"; exit ;;
18940  --debug | --debu | --deb | --de | --d | -d )
18941    debug=: ;;
18942  --file | --fil | --fi | --f )
18943    $ac_shift
18944    case $ac_optarg in
18945    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18946    '') as_fn_error $? "missing file argument" ;;
18947    esac
18948    as_fn_append CONFIG_FILES " '$ac_optarg'"
18949    ac_need_defaults=false;;
18950  --header | --heade | --head | --hea )
18951    $ac_shift
18952    case $ac_optarg in
18953    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18954    esac
18955    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18956    ac_need_defaults=false;;
18957  --he | --h)
18958    # Conflict between --help and --header
18959    as_fn_error $? "ambiguous option: \`$1'
18960Try \`$0 --help' for more information.";;
18961  --help | --hel | -h )
18962    $as_echo "$ac_cs_usage"; exit ;;
18963  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18964  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18965    ac_cs_silent=: ;;
18966
18967  # This is an error.
18968  -*) as_fn_error $? "unrecognized option: \`$1'
18969Try \`$0 --help' for more information." ;;
18970
18971  *) as_fn_append ac_config_targets " $1"
18972     ac_need_defaults=false ;;
18973
18974  esac
18975  shift
18976done
18977
18978ac_configure_extra_args=
18979
18980if $ac_cs_silent; then
18981  exec 6>/dev/null
18982  ac_configure_extra_args="$ac_configure_extra_args --silent"
18983fi
18984
18985_ACEOF
18986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18987if \$ac_cs_recheck; then
18988  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18989  shift
18990  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18991  CONFIG_SHELL='$SHELL'
18992  export CONFIG_SHELL
18993  exec "\$@"
18994fi
18995
18996_ACEOF
18997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18998exec 5>>config.log
18999{
19000  echo
19001  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19002## Running $as_me. ##
19003_ASBOX
19004  $as_echo "$ac_log"
19005} >&5
19006
19007_ACEOF
19008cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19009#
19010# INIT-COMMANDS
19011#
19012AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19013
19014
19015# The HP-UX ksh and POSIX shell print the target directory to stdout
19016# if CDPATH is set.
19017(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19018
19019sed_quote_subst='$sed_quote_subst'
19020double_quote_subst='$double_quote_subst'
19021delay_variable_subst='$delay_variable_subst'
19022enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19023macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19024macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19025enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19026pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19027enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19028SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19029ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19030PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19031host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19032host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19033host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19034build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19035build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19036build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19037SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19038Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19039GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19040EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19041FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19042LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19043NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19044LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19045max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19046ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19047exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19048lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19049lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19050lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19051lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19052lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19053reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19054reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19055OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19056deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19057file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19058file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19059want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19060DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19061sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19062AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19063AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19064archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19065STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19066RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19067old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19068old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19069old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19070lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19071CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19072CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19073compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19074GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19075lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19076lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19077lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19078lt_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"`'
19079nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19080lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19081objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19082MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19083lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19084lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19085lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19086lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19087lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19088need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19089MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19090DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19091NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19092LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19093OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19094OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19095libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19096shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19097extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19098archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19099enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19100export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19101whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19102compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19103old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19104old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19105archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19106archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19107module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19108module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19109with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19110allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19111no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19112hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19113hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19114hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19115hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19116hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19117hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19118hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19119inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19120link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19121always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19122export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19123exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19124include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19125prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19126postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19127file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19128variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19129need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19130need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19131version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19132runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19133shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19134shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19135libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19136library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19137soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19138install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19139postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19140postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19141finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19142finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19143hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19144sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19145sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
19146hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19147enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19148enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19149enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19150old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19151striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19152
19153LTCC='$LTCC'
19154LTCFLAGS='$LTCFLAGS'
19155compiler='$compiler_DEFAULT'
19156
19157# A function that is used when there is no print builtin or printf.
19158func_fallback_echo ()
19159{
19160  eval 'cat <<_LTECHO_EOF
19161\$1
19162_LTECHO_EOF'
19163}
19164
19165# Quote evaled strings.
19166for var in SHELL \
19167ECHO \
19168PATH_SEPARATOR \
19169SED \
19170GREP \
19171EGREP \
19172FGREP \
19173LD \
19174NM \
19175LN_S \
19176lt_SP2NL \
19177lt_NL2SP \
19178reload_flag \
19179OBJDUMP \
19180deplibs_check_method \
19181file_magic_cmd \
19182file_magic_glob \
19183want_nocaseglob \
19184DLLTOOL \
19185sharedlib_from_linklib_cmd \
19186AR \
19187AR_FLAGS \
19188archiver_list_spec \
19189STRIP \
19190RANLIB \
19191CC \
19192CFLAGS \
19193compiler \
19194lt_cv_sys_global_symbol_pipe \
19195lt_cv_sys_global_symbol_to_cdecl \
19196lt_cv_sys_global_symbol_to_c_name_address \
19197lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19198nm_file_list_spec \
19199lt_prog_compiler_no_builtin_flag \
19200lt_prog_compiler_pic \
19201lt_prog_compiler_wl \
19202lt_prog_compiler_static \
19203lt_cv_prog_compiler_c_o \
19204need_locks \
19205MANIFEST_TOOL \
19206DSYMUTIL \
19207NMEDIT \
19208LIPO \
19209OTOOL \
19210OTOOL64 \
19211shrext_cmds \
19212export_dynamic_flag_spec \
19213whole_archive_flag_spec \
19214compiler_needs_object \
19215with_gnu_ld \
19216allow_undefined_flag \
19217no_undefined_flag \
19218hardcode_libdir_flag_spec \
19219hardcode_libdir_separator \
19220exclude_expsyms \
19221include_expsyms \
19222file_list_spec \
19223variables_saved_for_relink \
19224libname_spec \
19225library_names_spec \
19226soname_spec \
19227install_override_mode \
19228finish_eval \
19229old_striplib \
19230striplib; do
19231    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19232    *[\\\\\\\`\\"\\\$]*)
19233      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19234      ;;
19235    *)
19236      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19237      ;;
19238    esac
19239done
19240
19241# Double-quote double-evaled strings.
19242for var in reload_cmds \
19243old_postinstall_cmds \
19244old_postuninstall_cmds \
19245old_archive_cmds \
19246extract_expsyms_cmds \
19247old_archive_from_new_cmds \
19248old_archive_from_expsyms_cmds \
19249archive_cmds \
19250archive_expsym_cmds \
19251module_cmds \
19252module_expsym_cmds \
19253export_symbols_cmds \
19254prelink_cmds \
19255postlink_cmds \
19256postinstall_cmds \
19257postuninstall_cmds \
19258finish_cmds \
19259sys_lib_search_path_spec \
19260sys_lib_dlsearch_path_spec; do
19261    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19262    *[\\\\\\\`\\"\\\$]*)
19263      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19264      ;;
19265    *)
19266      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19267      ;;
19268    esac
19269done
19270
19271ac_aux_dir='$ac_aux_dir'
19272xsi_shell='$xsi_shell'
19273lt_shell_append='$lt_shell_append'
19274
19275# See if we are running on zsh, and set the options which allow our
19276# commands through without removal of \ escapes INIT.
19277if test -n "\${ZSH_VERSION+set}" ; then
19278   setopt NO_GLOB_SUBST
19279fi
19280
19281
19282    PACKAGE='$PACKAGE'
19283    VERSION='$VERSION'
19284    TIMESTAMP='$TIMESTAMP'
19285    RM='$RM'
19286    ofile='$ofile'
19287
19288
19289
19290
19291_ACEOF
19292
19293cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19294
19295# Handling of arguments.
19296for ac_config_target in $ac_config_targets
19297do
19298  case $ac_config_target in
19299    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19300    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19301    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19302    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19303    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19304
19305  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19306  esac
19307done
19308
19309
19310# If the user did not use the arguments to specify the items to instantiate,
19311# then the envvar interface is used.  Set only those that are not.
19312# We use the long form for the default assignment because of an extremely
19313# bizarre bug on SunOS 4.1.3.
19314if $ac_need_defaults; then
19315  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19316  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19317  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19318fi
19319
19320# Have a temporary directory for convenience.  Make it in the build tree
19321# simply because there is no reason against having it here, and in addition,
19322# creating and moving files from /tmp can sometimes cause problems.
19323# Hook for its removal unless debugging.
19324# Note that there is a small window in which the directory will not be cleaned:
19325# after its creation but before its name has been assigned to `$tmp'.
19326$debug ||
19327{
19328  tmp= ac_tmp=
19329  trap 'exit_status=$?
19330  : "${ac_tmp:=$tmp}"
19331  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19332' 0
19333  trap 'as_fn_exit 1' 1 2 13 15
19334}
19335# Create a (secure) tmp directory for tmp files.
19336
19337{
19338  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19339  test -d "$tmp"
19340}  ||
19341{
19342  tmp=./conf$$-$RANDOM
19343  (umask 077 && mkdir "$tmp")
19344} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19345ac_tmp=$tmp
19346
19347# Set up the scripts for CONFIG_FILES section.
19348# No need to generate them if there are no CONFIG_FILES.
19349# This happens for instance with `./config.status config.h'.
19350if test -n "$CONFIG_FILES"; then
19351
19352
19353ac_cr=`echo X | tr X '\015'`
19354# On cygwin, bash can eat \r inside `` if the user requested igncr.
19355# But we know of no other shell where ac_cr would be empty at this
19356# point, so we can use a bashism as a fallback.
19357if test "x$ac_cr" = x; then
19358  eval ac_cr=\$\'\\r\'
19359fi
19360ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19361if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19362  ac_cs_awk_cr='\\r'
19363else
19364  ac_cs_awk_cr=$ac_cr
19365fi
19366
19367echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19368_ACEOF
19369
19370
19371{
19372  echo "cat >conf$$subs.awk <<_ACEOF" &&
19373  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19374  echo "_ACEOF"
19375} >conf$$subs.sh ||
19376  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19377ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19378ac_delim='%!_!# '
19379for ac_last_try in false false false false false :; do
19380  . ./conf$$subs.sh ||
19381    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19382
19383  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19384  if test $ac_delim_n = $ac_delim_num; then
19385    break
19386  elif $ac_last_try; then
19387    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19388  else
19389    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19390  fi
19391done
19392rm -f conf$$subs.sh
19393
19394cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19395cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19396_ACEOF
19397sed -n '
19398h
19399s/^/S["/; s/!.*/"]=/
19400p
19401g
19402s/^[^!]*!//
19403:repl
19404t repl
19405s/'"$ac_delim"'$//
19406t delim
19407:nl
19408h
19409s/\(.\{148\}\)..*/\1/
19410t more1
19411s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19412p
19413n
19414b repl
19415:more1
19416s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19417p
19418g
19419s/.\{148\}//
19420t nl
19421:delim
19422h
19423s/\(.\{148\}\)..*/\1/
19424t more2
19425s/["\\]/\\&/g; s/^/"/; s/$/"/
19426p
19427b
19428:more2
19429s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19430p
19431g
19432s/.\{148\}//
19433t delim
19434' <conf$$subs.awk | sed '
19435/^[^""]/{
19436  N
19437  s/\n//
19438}
19439' >>$CONFIG_STATUS || ac_write_fail=1
19440rm -f conf$$subs.awk
19441cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19442_ACAWK
19443cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19444  for (key in S) S_is_set[key] = 1
19445  FS = ""
19446
19447}
19448{
19449  line = $ 0
19450  nfields = split(line, field, "@")
19451  substed = 0
19452  len = length(field[1])
19453  for (i = 2; i < nfields; i++) {
19454    key = field[i]
19455    keylen = length(key)
19456    if (S_is_set[key]) {
19457      value = S[key]
19458      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19459      len += length(value) + length(field[++i])
19460      substed = 1
19461    } else
19462      len += 1 + keylen
19463  }
19464
19465  print line
19466}
19467
19468_ACAWK
19469_ACEOF
19470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19471if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19472  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19473else
19474  cat
19475fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19476  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19477_ACEOF
19478
19479# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19480# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19481# trailing colons and then remove the whole line if VPATH becomes empty
19482# (actually we leave an empty line to preserve line numbers).
19483if test "x$srcdir" = x.; then
19484  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19485h
19486s///
19487s/^/:/
19488s/[	 ]*$/:/
19489s/:\$(srcdir):/:/g
19490s/:\${srcdir}:/:/g
19491s/:@srcdir@:/:/g
19492s/^:*//
19493s/:*$//
19494x
19495s/\(=[	 ]*\).*/\1/
19496G
19497s/\n//
19498s/^[^=]*=[	 ]*$//
19499}'
19500fi
19501
19502cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19503fi # test -n "$CONFIG_FILES"
19504
19505# Set up the scripts for CONFIG_HEADERS section.
19506# No need to generate them if there are no CONFIG_HEADERS.
19507# This happens for instance with `./config.status Makefile'.
19508if test -n "$CONFIG_HEADERS"; then
19509cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19510BEGIN {
19511_ACEOF
19512
19513# Transform confdefs.h into an awk script `defines.awk', embedded as
19514# here-document in config.status, that substitutes the proper values into
19515# config.h.in to produce config.h.
19516
19517# Create a delimiter string that does not exist in confdefs.h, to ease
19518# handling of long lines.
19519ac_delim='%!_!# '
19520for ac_last_try in false false :; do
19521  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19522  if test -z "$ac_tt"; then
19523    break
19524  elif $ac_last_try; then
19525    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19526  else
19527    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19528  fi
19529done
19530
19531# For the awk script, D is an array of macro values keyed by name,
19532# likewise P contains macro parameters if any.  Preserve backslash
19533# newline sequences.
19534
19535ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19536sed -n '
19537s/.\{148\}/&'"$ac_delim"'/g
19538t rset
19539:rset
19540s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19541t def
19542d
19543:def
19544s/\\$//
19545t bsnl
19546s/["\\]/\\&/g
19547s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19548D["\1"]=" \3"/p
19549s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19550d
19551:bsnl
19552s/["\\]/\\&/g
19553s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19554D["\1"]=" \3\\\\\\n"\\/p
19555t cont
19556s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19557t cont
19558d
19559:cont
19560n
19561s/.\{148\}/&'"$ac_delim"'/g
19562t clear
19563:clear
19564s/\\$//
19565t bsnlc
19566s/["\\]/\\&/g; s/^/"/; s/$/"/p
19567d
19568:bsnlc
19569s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19570b cont
19571' <confdefs.h | sed '
19572s/'"$ac_delim"'/"\\\
19573"/g' >>$CONFIG_STATUS || ac_write_fail=1
19574
19575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19576  for (key in D) D_is_set[key] = 1
19577  FS = ""
19578}
19579/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19580  line = \$ 0
19581  split(line, arg, " ")
19582  if (arg[1] == "#") {
19583    defundef = arg[2]
19584    mac1 = arg[3]
19585  } else {
19586    defundef = substr(arg[1], 2)
19587    mac1 = arg[2]
19588  }
19589  split(mac1, mac2, "(") #)
19590  macro = mac2[1]
19591  prefix = substr(line, 1, index(line, defundef) - 1)
19592  if (D_is_set[macro]) {
19593    # Preserve the white space surrounding the "#".
19594    print prefix "define", macro P[macro] D[macro]
19595    next
19596  } else {
19597    # Replace #undef with comments.  This is necessary, for example,
19598    # in the case of _POSIX_SOURCE, which is predefined and required
19599    # on some systems where configure will not decide to define it.
19600    if (defundef == "undef") {
19601      print "/*", prefix defundef, macro, "*/"
19602      next
19603    }
19604  }
19605}
19606{ print }
19607_ACAWK
19608_ACEOF
19609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19610  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19611fi # test -n "$CONFIG_HEADERS"
19612
19613
19614eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19615shift
19616for ac_tag
19617do
19618  case $ac_tag in
19619  :[FHLC]) ac_mode=$ac_tag; continue;;
19620  esac
19621  case $ac_mode$ac_tag in
19622  :[FHL]*:*);;
19623  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19624  :[FH]-) ac_tag=-:-;;
19625  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19626  esac
19627  ac_save_IFS=$IFS
19628  IFS=:
19629  set x $ac_tag
19630  IFS=$ac_save_IFS
19631  shift
19632  ac_file=$1
19633  shift
19634
19635  case $ac_mode in
19636  :L) ac_source=$1;;
19637  :[FH])
19638    ac_file_inputs=
19639    for ac_f
19640    do
19641      case $ac_f in
19642      -) ac_f="$ac_tmp/stdin";;
19643      *) # Look for the file first in the build tree, then in the source tree
19644	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19645	 # because $ac_f cannot contain `:'.
19646	 test -f "$ac_f" ||
19647	   case $ac_f in
19648	   [\\/$]*) false;;
19649	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19650	   esac ||
19651	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19652      esac
19653      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19654      as_fn_append ac_file_inputs " '$ac_f'"
19655    done
19656
19657    # Let's still pretend it is `configure' which instantiates (i.e., don't
19658    # use $as_me), people would be surprised to read:
19659    #    /* config.h.  Generated by config.status.  */
19660    configure_input='Generated from '`
19661	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19662	`' by configure.'
19663    if test x"$ac_file" != x-; then
19664      configure_input="$ac_file.  $configure_input"
19665      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19666$as_echo "$as_me: creating $ac_file" >&6;}
19667    fi
19668    # Neutralize special characters interpreted by sed in replacement strings.
19669    case $configure_input in #(
19670    *\&* | *\|* | *\\* )
19671       ac_sed_conf_input=`$as_echo "$configure_input" |
19672       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19673    *) ac_sed_conf_input=$configure_input;;
19674    esac
19675
19676    case $ac_tag in
19677    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19678      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19679    esac
19680    ;;
19681  esac
19682
19683  ac_dir=`$as_dirname -- "$ac_file" ||
19684$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19685	 X"$ac_file" : 'X\(//\)[^/]' \| \
19686	 X"$ac_file" : 'X\(//\)$' \| \
19687	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19688$as_echo X"$ac_file" |
19689    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19690	    s//\1/
19691	    q
19692	  }
19693	  /^X\(\/\/\)[^/].*/{
19694	    s//\1/
19695	    q
19696	  }
19697	  /^X\(\/\/\)$/{
19698	    s//\1/
19699	    q
19700	  }
19701	  /^X\(\/\).*/{
19702	    s//\1/
19703	    q
19704	  }
19705	  s/.*/./; q'`
19706  as_dir="$ac_dir"; as_fn_mkdir_p
19707  ac_builddir=.
19708
19709case "$ac_dir" in
19710.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19711*)
19712  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19713  # A ".." for each directory in $ac_dir_suffix.
19714  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19715  case $ac_top_builddir_sub in
19716  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19717  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19718  esac ;;
19719esac
19720ac_abs_top_builddir=$ac_pwd
19721ac_abs_builddir=$ac_pwd$ac_dir_suffix
19722# for backward compatibility:
19723ac_top_builddir=$ac_top_build_prefix
19724
19725case $srcdir in
19726  .)  # We are building in place.
19727    ac_srcdir=.
19728    ac_top_srcdir=$ac_top_builddir_sub
19729    ac_abs_top_srcdir=$ac_pwd ;;
19730  [\\/]* | ?:[\\/]* )  # Absolute name.
19731    ac_srcdir=$srcdir$ac_dir_suffix;
19732    ac_top_srcdir=$srcdir
19733    ac_abs_top_srcdir=$srcdir ;;
19734  *) # Relative name.
19735    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19736    ac_top_srcdir=$ac_top_build_prefix$srcdir
19737    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19738esac
19739ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19740
19741
19742  case $ac_mode in
19743  :F)
19744  #
19745  # CONFIG_FILE
19746  #
19747
19748  case $INSTALL in
19749  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19750  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19751  esac
19752  ac_MKDIR_P=$MKDIR_P
19753  case $MKDIR_P in
19754  [\\/$]* | ?:[\\/]* ) ;;
19755  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19756  esac
19757_ACEOF
19758
19759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19760# If the template does not know about datarootdir, expand it.
19761# FIXME: This hack should be removed a few years after 2.60.
19762ac_datarootdir_hack=; ac_datarootdir_seen=
19763ac_sed_dataroot='
19764/datarootdir/ {
19765  p
19766  q
19767}
19768/@datadir@/p
19769/@docdir@/p
19770/@infodir@/p
19771/@localedir@/p
19772/@mandir@/p'
19773case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19774*datarootdir*) ac_datarootdir_seen=yes;;
19775*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19776  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19777$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19778_ACEOF
19779cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19780  ac_datarootdir_hack='
19781  s&@datadir@&$datadir&g
19782  s&@docdir@&$docdir&g
19783  s&@infodir@&$infodir&g
19784  s&@localedir@&$localedir&g
19785  s&@mandir@&$mandir&g
19786  s&\\\${datarootdir}&$datarootdir&g' ;;
19787esac
19788_ACEOF
19789
19790# Neutralize VPATH when `$srcdir' = `.'.
19791# Shell code in configure.ac might set extrasub.
19792# FIXME: do we really want to maintain this feature?
19793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19794ac_sed_extra="$ac_vpsub
19795$extrasub
19796_ACEOF
19797cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19798:t
19799/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19800s|@configure_input@|$ac_sed_conf_input|;t t
19801s&@top_builddir@&$ac_top_builddir_sub&;t t
19802s&@top_build_prefix@&$ac_top_build_prefix&;t t
19803s&@srcdir@&$ac_srcdir&;t t
19804s&@abs_srcdir@&$ac_abs_srcdir&;t t
19805s&@top_srcdir@&$ac_top_srcdir&;t t
19806s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19807s&@builddir@&$ac_builddir&;t t
19808s&@abs_builddir@&$ac_abs_builddir&;t t
19809s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19810s&@INSTALL@&$ac_INSTALL&;t t
19811s&@MKDIR_P@&$ac_MKDIR_P&;t t
19812$ac_datarootdir_hack
19813"
19814eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19815  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19816
19817test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19818  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19819  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19820      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19821  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19822which seems to be undefined.  Please make sure it is defined" >&5
19823$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19824which seems to be undefined.  Please make sure it is defined" >&2;}
19825
19826  rm -f "$ac_tmp/stdin"
19827  case $ac_file in
19828  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19829  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19830  esac \
19831  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19832 ;;
19833  :H)
19834  #
19835  # CONFIG_HEADER
19836  #
19837  if test x"$ac_file" != x-; then
19838    {
19839      $as_echo "/* $configure_input  */" \
19840      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19841    } >"$ac_tmp/config.h" \
19842      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19843    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19844      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19845$as_echo "$as_me: $ac_file is unchanged" >&6;}
19846    else
19847      rm -f "$ac_file"
19848      mv "$ac_tmp/config.h" "$ac_file" \
19849	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19850    fi
19851  else
19852    $as_echo "/* $configure_input  */" \
19853      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19854      || as_fn_error $? "could not create -" "$LINENO" 5
19855  fi
19856# Compute "$ac_file"'s index in $config_headers.
19857_am_arg="$ac_file"
19858_am_stamp_count=1
19859for _am_header in $config_headers :; do
19860  case $_am_header in
19861    $_am_arg | $_am_arg:* )
19862      break ;;
19863    * )
19864      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19865  esac
19866done
19867echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19868$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19869	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19870	 X"$_am_arg" : 'X\(//\)$' \| \
19871	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19872$as_echo X"$_am_arg" |
19873    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19874	    s//\1/
19875	    q
19876	  }
19877	  /^X\(\/\/\)[^/].*/{
19878	    s//\1/
19879	    q
19880	  }
19881	  /^X\(\/\/\)$/{
19882	    s//\1/
19883	    q
19884	  }
19885	  /^X\(\/\).*/{
19886	    s//\1/
19887	    q
19888	  }
19889	  s/.*/./; q'`/stamp-h$_am_stamp_count
19890 ;;
19891
19892  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19893$as_echo "$as_me: executing $ac_file commands" >&6;}
19894 ;;
19895  esac
19896
19897
19898  case $ac_file$ac_mode in
19899    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19900  # Older Autoconf quotes --file arguments for eval, but not when files
19901  # are listed without --file.  Let's play safe and only enable the eval
19902  # if we detect the quoting.
19903  case $CONFIG_FILES in
19904  *\'*) eval set x "$CONFIG_FILES" ;;
19905  *)   set x $CONFIG_FILES ;;
19906  esac
19907  shift
19908  for mf
19909  do
19910    # Strip MF so we end up with the name of the file.
19911    mf=`echo "$mf" | sed -e 's/:.*$//'`
19912    # Check whether this is an Automake generated Makefile or not.
19913    # We used to match only the files named 'Makefile.in', but
19914    # some people rename them; so instead we look at the file content.
19915    # Grep'ing the first line is not enough: some people post-process
19916    # each Makefile.in and add a new line on top of each file to say so.
19917    # Grep'ing the whole file is not good either: AIX grep has a line
19918    # limit of 2048, but all sed's we know have understand at least 4000.
19919    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19920      dirpart=`$as_dirname -- "$mf" ||
19921$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19922	 X"$mf" : 'X\(//\)[^/]' \| \
19923	 X"$mf" : 'X\(//\)$' \| \
19924	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19925$as_echo X"$mf" |
19926    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19927	    s//\1/
19928	    q
19929	  }
19930	  /^X\(\/\/\)[^/].*/{
19931	    s//\1/
19932	    q
19933	  }
19934	  /^X\(\/\/\)$/{
19935	    s//\1/
19936	    q
19937	  }
19938	  /^X\(\/\).*/{
19939	    s//\1/
19940	    q
19941	  }
19942	  s/.*/./; q'`
19943    else
19944      continue
19945    fi
19946    # Extract the definition of DEPDIR, am__include, and am__quote
19947    # from the Makefile without running 'make'.
19948    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19949    test -z "$DEPDIR" && continue
19950    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19951    test -z "$am__include" && continue
19952    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19953    # Find all dependency output files, they are included files with
19954    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19955    # simplest approach to changing $(DEPDIR) to its actual value in the
19956    # expansion.
19957    for file in `sed -n "
19958      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19959	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19960      # Make sure the directory exists.
19961      test -f "$dirpart/$file" && continue
19962      fdir=`$as_dirname -- "$file" ||
19963$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19964	 X"$file" : 'X\(//\)[^/]' \| \
19965	 X"$file" : 'X\(//\)$' \| \
19966	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19967$as_echo X"$file" |
19968    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19969	    s//\1/
19970	    q
19971	  }
19972	  /^X\(\/\/\)[^/].*/{
19973	    s//\1/
19974	    q
19975	  }
19976	  /^X\(\/\/\)$/{
19977	    s//\1/
19978	    q
19979	  }
19980	  /^X\(\/\).*/{
19981	    s//\1/
19982	    q
19983	  }
19984	  s/.*/./; q'`
19985      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19986      # echo "creating $dirpart/$file"
19987      echo '# dummy' > "$dirpart/$file"
19988    done
19989  done
19990}
19991 ;;
19992    "libtool":C)
19993
19994    # See if we are running on zsh, and set the options which allow our
19995    # commands through without removal of \ escapes.
19996    if test -n "${ZSH_VERSION+set}" ; then
19997      setopt NO_GLOB_SUBST
19998    fi
19999
20000    cfgfile="${ofile}T"
20001    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20002    $RM "$cfgfile"
20003
20004    cat <<_LT_EOF >> "$cfgfile"
20005#! $SHELL
20006
20007# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20008# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20009# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20010# NOTE: Changes made to this file will be lost: look at ltmain.sh.
20011#
20012#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20013#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20014#                 Foundation, Inc.
20015#   Written by Gordon Matzigkeit, 1996
20016#
20017#   This file is part of GNU Libtool.
20018#
20019# GNU Libtool is free software; you can redistribute it and/or
20020# modify it under the terms of the GNU General Public License as
20021# published by the Free Software Foundation; either version 2 of
20022# the License, or (at your option) any later version.
20023#
20024# As a special exception to the GNU General Public License,
20025# if you distribute this file as part of a program or library that
20026# is built using GNU Libtool, you may include this file under the
20027# same distribution terms that you use for the rest of that program.
20028#
20029# GNU Libtool is distributed in the hope that it will be useful,
20030# but WITHOUT ANY WARRANTY; without even the implied warranty of
20031# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20032# GNU General Public License for more details.
20033#
20034# You should have received a copy of the GNU General Public License
20035# along with GNU Libtool; see the file COPYING.  If not, a copy
20036# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20037# obtained by writing to the Free Software Foundation, Inc.,
20038# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20039
20040
20041# The names of the tagged configurations supported by this script.
20042available_tags=""
20043
20044# ### BEGIN LIBTOOL CONFIG
20045
20046# Whether or not to build static libraries.
20047build_old_libs=$enable_static
20048
20049# Which release of libtool.m4 was used?
20050macro_version=$macro_version
20051macro_revision=$macro_revision
20052
20053# Whether or not to build shared libraries.
20054build_libtool_libs=$enable_shared
20055
20056# What type of objects to build.
20057pic_mode=$pic_mode
20058
20059# Whether or not to optimize for fast installation.
20060fast_install=$enable_fast_install
20061
20062# Shell to use when invoking shell scripts.
20063SHELL=$lt_SHELL
20064
20065# An echo program that protects backslashes.
20066ECHO=$lt_ECHO
20067
20068# The PATH separator for the build system.
20069PATH_SEPARATOR=$lt_PATH_SEPARATOR
20070
20071# The host system.
20072host_alias=$host_alias
20073host=$host
20074host_os=$host_os
20075
20076# The build system.
20077build_alias=$build_alias
20078build=$build
20079build_os=$build_os
20080
20081# A sed program that does not truncate output.
20082SED=$lt_SED
20083
20084# Sed that helps us avoid accidentally triggering echo(1) options like -n.
20085Xsed="\$SED -e 1s/^X//"
20086
20087# A grep program that handles long lines.
20088GREP=$lt_GREP
20089
20090# An ERE matcher.
20091EGREP=$lt_EGREP
20092
20093# A literal string matcher.
20094FGREP=$lt_FGREP
20095
20096# A BSD- or MS-compatible name lister.
20097NM=$lt_NM
20098
20099# Whether we need soft or hard links.
20100LN_S=$lt_LN_S
20101
20102# What is the maximum length of a command?
20103max_cmd_len=$max_cmd_len
20104
20105# Object file suffix (normally "o").
20106objext=$ac_objext
20107
20108# Executable file suffix (normally "").
20109exeext=$exeext
20110
20111# whether the shell understands "unset".
20112lt_unset=$lt_unset
20113
20114# turn spaces into newlines.
20115SP2NL=$lt_lt_SP2NL
20116
20117# turn newlines into spaces.
20118NL2SP=$lt_lt_NL2SP
20119
20120# convert \$build file names to \$host format.
20121to_host_file_cmd=$lt_cv_to_host_file_cmd
20122
20123# convert \$build files to toolchain format.
20124to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20125
20126# An object symbol dumper.
20127OBJDUMP=$lt_OBJDUMP
20128
20129# Method to check whether dependent libraries are shared objects.
20130deplibs_check_method=$lt_deplibs_check_method
20131
20132# Command to use when deplibs_check_method = "file_magic".
20133file_magic_cmd=$lt_file_magic_cmd
20134
20135# How to find potential files when deplibs_check_method = "file_magic".
20136file_magic_glob=$lt_file_magic_glob
20137
20138# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20139want_nocaseglob=$lt_want_nocaseglob
20140
20141# DLL creation program.
20142DLLTOOL=$lt_DLLTOOL
20143
20144# Command to associate shared and link libraries.
20145sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20146
20147# The archiver.
20148AR=$lt_AR
20149
20150# Flags to create an archive.
20151AR_FLAGS=$lt_AR_FLAGS
20152
20153# How to feed a file listing to the archiver.
20154archiver_list_spec=$lt_archiver_list_spec
20155
20156# A symbol stripping program.
20157STRIP=$lt_STRIP
20158
20159# Commands used to install an old-style archive.
20160RANLIB=$lt_RANLIB
20161old_postinstall_cmds=$lt_old_postinstall_cmds
20162old_postuninstall_cmds=$lt_old_postuninstall_cmds
20163
20164# Whether to use a lock for old archive extraction.
20165lock_old_archive_extraction=$lock_old_archive_extraction
20166
20167# A C compiler.
20168LTCC=$lt_CC
20169
20170# LTCC compiler flags.
20171LTCFLAGS=$lt_CFLAGS
20172
20173# Take the output of nm and produce a listing of raw symbols and C names.
20174global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20175
20176# Transform the output of nm in a proper C declaration.
20177global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20178
20179# Transform the output of nm in a C name address pair.
20180global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20181
20182# Transform the output of nm in a C name address pair when lib prefix is needed.
20183global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20184
20185# Specify filename containing input files for \$NM.
20186nm_file_list_spec=$lt_nm_file_list_spec
20187
20188# The root where to search for dependent libraries,and in which our libraries should be installed.
20189lt_sysroot=$lt_sysroot
20190
20191# The name of the directory that contains temporary libtool files.
20192objdir=$objdir
20193
20194# Used to examine libraries when file_magic_cmd begins with "file".
20195MAGIC_CMD=$MAGIC_CMD
20196
20197# Must we lock files when doing compilation?
20198need_locks=$lt_need_locks
20199
20200# Manifest tool.
20201MANIFEST_TOOL=$lt_MANIFEST_TOOL
20202
20203# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20204DSYMUTIL=$lt_DSYMUTIL
20205
20206# Tool to change global to local symbols on Mac OS X.
20207NMEDIT=$lt_NMEDIT
20208
20209# Tool to manipulate fat objects and archives on Mac OS X.
20210LIPO=$lt_LIPO
20211
20212# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20213OTOOL=$lt_OTOOL
20214
20215# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20216OTOOL64=$lt_OTOOL64
20217
20218# Old archive suffix (normally "a").
20219libext=$libext
20220
20221# Shared library suffix (normally ".so").
20222shrext_cmds=$lt_shrext_cmds
20223
20224# The commands to extract the exported symbol list from a shared archive.
20225extract_expsyms_cmds=$lt_extract_expsyms_cmds
20226
20227# Variables whose values should be saved in libtool wrapper scripts and
20228# restored at link time.
20229variables_saved_for_relink=$lt_variables_saved_for_relink
20230
20231# Do we need the "lib" prefix for modules?
20232need_lib_prefix=$need_lib_prefix
20233
20234# Do we need a version for libraries?
20235need_version=$need_version
20236
20237# Library versioning type.
20238version_type=$version_type
20239
20240# Shared library runtime path variable.
20241runpath_var=$runpath_var
20242
20243# Shared library path variable.
20244shlibpath_var=$shlibpath_var
20245
20246# Is shlibpath searched before the hard-coded library search path?
20247shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20248
20249# Format of library name prefix.
20250libname_spec=$lt_libname_spec
20251
20252# List of archive names.  First name is the real one, the rest are links.
20253# The last name is the one that the linker finds with -lNAME
20254library_names_spec=$lt_library_names_spec
20255
20256# The coded name of the library, if different from the real name.
20257soname_spec=$lt_soname_spec
20258
20259# Permission mode override for installation of shared libraries.
20260install_override_mode=$lt_install_override_mode
20261
20262# Command to use after installation of a shared archive.
20263postinstall_cmds=$lt_postinstall_cmds
20264
20265# Command to use after uninstallation of a shared archive.
20266postuninstall_cmds=$lt_postuninstall_cmds
20267
20268# Commands used to finish a libtool library installation in a directory.
20269finish_cmds=$lt_finish_cmds
20270
20271# As "finish_cmds", except a single script fragment to be evaled but
20272# not shown.
20273finish_eval=$lt_finish_eval
20274
20275# Whether we should hardcode library paths into libraries.
20276hardcode_into_libs=$hardcode_into_libs
20277
20278# Compile-time system search path for libraries.
20279sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20280
20281# Run-time system search path for libraries.
20282sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20283
20284# Whether dlopen is supported.
20285dlopen_support=$enable_dlopen
20286
20287# Whether dlopen of programs is supported.
20288dlopen_self=$enable_dlopen_self
20289
20290# Whether dlopen of statically linked programs is supported.
20291dlopen_self_static=$enable_dlopen_self_static
20292
20293# Commands to strip libraries.
20294old_striplib=$lt_old_striplib
20295striplib=$lt_striplib
20296
20297
20298# The linker used to build libraries.
20299LD=$lt_LD
20300
20301# How to create reloadable object files.
20302reload_flag=$lt_reload_flag
20303reload_cmds=$lt_reload_cmds
20304
20305# Commands used to build an old-style archive.
20306old_archive_cmds=$lt_old_archive_cmds
20307
20308# A language specific compiler.
20309CC=$lt_compiler
20310
20311# Is the compiler the GNU compiler?
20312with_gcc=$GCC
20313
20314# Compiler flag to turn off builtin functions.
20315no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20316
20317# Additional compiler flags for building library objects.
20318pic_flag=$lt_lt_prog_compiler_pic
20319
20320# How to pass a linker flag through the compiler.
20321wl=$lt_lt_prog_compiler_wl
20322
20323# Compiler flag to prevent dynamic linking.
20324link_static_flag=$lt_lt_prog_compiler_static
20325
20326# Does compiler simultaneously support -c and -o options?
20327compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20328
20329# Whether or not to add -lc for building shared libraries.
20330build_libtool_need_lc=$archive_cmds_need_lc
20331
20332# Whether or not to disallow shared libs when runtime libs are static.
20333allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20334
20335# Compiler flag to allow reflexive dlopens.
20336export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20337
20338# Compiler flag to generate shared objects directly from archives.
20339whole_archive_flag_spec=$lt_whole_archive_flag_spec
20340
20341# Whether the compiler copes with passing no objects directly.
20342compiler_needs_object=$lt_compiler_needs_object
20343
20344# Create an old-style archive from a shared archive.
20345old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20346
20347# Create a temporary old-style archive to link instead of a shared archive.
20348old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20349
20350# Commands used to build a shared archive.
20351archive_cmds=$lt_archive_cmds
20352archive_expsym_cmds=$lt_archive_expsym_cmds
20353
20354# Commands used to build a loadable module if different from building
20355# a shared archive.
20356module_cmds=$lt_module_cmds
20357module_expsym_cmds=$lt_module_expsym_cmds
20358
20359# Whether we are building with GNU ld or not.
20360with_gnu_ld=$lt_with_gnu_ld
20361
20362# Flag that allows shared libraries with undefined symbols to be built.
20363allow_undefined_flag=$lt_allow_undefined_flag
20364
20365# Flag that enforces no undefined symbols.
20366no_undefined_flag=$lt_no_undefined_flag
20367
20368# Flag to hardcode \$libdir into a binary during linking.
20369# This must work even if \$libdir does not exist
20370hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20371
20372# Whether we need a single "-rpath" flag with a separated argument.
20373hardcode_libdir_separator=$lt_hardcode_libdir_separator
20374
20375# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20376# DIR into the resulting binary.
20377hardcode_direct=$hardcode_direct
20378
20379# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20380# DIR into the resulting binary and the resulting library dependency is
20381# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20382# library is relocated.
20383hardcode_direct_absolute=$hardcode_direct_absolute
20384
20385# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20386# into the resulting binary.
20387hardcode_minus_L=$hardcode_minus_L
20388
20389# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20390# into the resulting binary.
20391hardcode_shlibpath_var=$hardcode_shlibpath_var
20392
20393# Set to "yes" if building a shared library automatically hardcodes DIR
20394# into the library and all subsequent libraries and executables linked
20395# against it.
20396hardcode_automatic=$hardcode_automatic
20397
20398# Set to yes if linker adds runtime paths of dependent libraries
20399# to runtime path list.
20400inherit_rpath=$inherit_rpath
20401
20402# Whether libtool must link a program against all its dependency libraries.
20403link_all_deplibs=$link_all_deplibs
20404
20405# Set to "yes" if exported symbols are required.
20406always_export_symbols=$always_export_symbols
20407
20408# The commands to list exported symbols.
20409export_symbols_cmds=$lt_export_symbols_cmds
20410
20411# Symbols that should not be listed in the preloaded symbols.
20412exclude_expsyms=$lt_exclude_expsyms
20413
20414# Symbols that must always be exported.
20415include_expsyms=$lt_include_expsyms
20416
20417# Commands necessary for linking programs (against libraries) with templates.
20418prelink_cmds=$lt_prelink_cmds
20419
20420# Commands necessary for finishing linking programs.
20421postlink_cmds=$lt_postlink_cmds
20422
20423# Specify filename containing input files.
20424file_list_spec=$lt_file_list_spec
20425
20426# How to hardcode a shared library path into an executable.
20427hardcode_action=$hardcode_action
20428
20429# ### END LIBTOOL CONFIG
20430
20431_LT_EOF
20432
20433  case $host_os in
20434  aix3*)
20435    cat <<\_LT_EOF >> "$cfgfile"
20436# AIX sometimes has problems with the GCC collect2 program.  For some
20437# reason, if we set the COLLECT_NAMES environment variable, the problems
20438# vanish in a puff of smoke.
20439if test "X${COLLECT_NAMES+set}" != Xset; then
20440  COLLECT_NAMES=
20441  export COLLECT_NAMES
20442fi
20443_LT_EOF
20444    ;;
20445  esac
20446
20447
20448ltmain="$ac_aux_dir/ltmain.sh"
20449
20450
20451  # We use sed instead of cat because bash on DJGPP gets confused if
20452  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20453  # text mode, it properly converts lines to CR/LF.  This bash problem
20454  # is reportedly fixed, but why not run on old versions too?
20455  sed '$q' "$ltmain" >> "$cfgfile" \
20456     || (rm -f "$cfgfile"; exit 1)
20457
20458  if test x"$xsi_shell" = xyes; then
20459  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20460func_dirname ()\
20461{\
20462\    case ${1} in\
20463\      */*) func_dirname_result="${1%/*}${2}" ;;\
20464\      *  ) func_dirname_result="${3}" ;;\
20465\    esac\
20466} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20467  && mv -f "$cfgfile.tmp" "$cfgfile" \
20468    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20469test 0 -eq $? || _lt_function_replace_fail=:
20470
20471
20472  sed -e '/^func_basename ()$/,/^} # func_basename /c\
20473func_basename ()\
20474{\
20475\    func_basename_result="${1##*/}"\
20476} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20477  && mv -f "$cfgfile.tmp" "$cfgfile" \
20478    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20479test 0 -eq $? || _lt_function_replace_fail=:
20480
20481
20482  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20483func_dirname_and_basename ()\
20484{\
20485\    case ${1} in\
20486\      */*) func_dirname_result="${1%/*}${2}" ;;\
20487\      *  ) func_dirname_result="${3}" ;;\
20488\    esac\
20489\    func_basename_result="${1##*/}"\
20490} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20491  && mv -f "$cfgfile.tmp" "$cfgfile" \
20492    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20493test 0 -eq $? || _lt_function_replace_fail=:
20494
20495
20496  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20497func_stripname ()\
20498{\
20499\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20500\    # positional parameters, so assign one to ordinary parameter first.\
20501\    func_stripname_result=${3}\
20502\    func_stripname_result=${func_stripname_result#"${1}"}\
20503\    func_stripname_result=${func_stripname_result%"${2}"}\
20504} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20505  && mv -f "$cfgfile.tmp" "$cfgfile" \
20506    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20507test 0 -eq $? || _lt_function_replace_fail=:
20508
20509
20510  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20511func_split_long_opt ()\
20512{\
20513\    func_split_long_opt_name=${1%%=*}\
20514\    func_split_long_opt_arg=${1#*=}\
20515} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20516  && mv -f "$cfgfile.tmp" "$cfgfile" \
20517    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20518test 0 -eq $? || _lt_function_replace_fail=:
20519
20520
20521  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20522func_split_short_opt ()\
20523{\
20524\    func_split_short_opt_arg=${1#??}\
20525\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20526} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20527  && mv -f "$cfgfile.tmp" "$cfgfile" \
20528    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20529test 0 -eq $? || _lt_function_replace_fail=:
20530
20531
20532  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20533func_lo2o ()\
20534{\
20535\    case ${1} in\
20536\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20537\      *)    func_lo2o_result=${1} ;;\
20538\    esac\
20539} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20540  && mv -f "$cfgfile.tmp" "$cfgfile" \
20541    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20542test 0 -eq $? || _lt_function_replace_fail=:
20543
20544
20545  sed -e '/^func_xform ()$/,/^} # func_xform /c\
20546func_xform ()\
20547{\
20548    func_xform_result=${1%.*}.lo\
20549} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20550  && mv -f "$cfgfile.tmp" "$cfgfile" \
20551    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20552test 0 -eq $? || _lt_function_replace_fail=:
20553
20554
20555  sed -e '/^func_arith ()$/,/^} # func_arith /c\
20556func_arith ()\
20557{\
20558    func_arith_result=$(( $* ))\
20559} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20560  && mv -f "$cfgfile.tmp" "$cfgfile" \
20561    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20562test 0 -eq $? || _lt_function_replace_fail=:
20563
20564
20565  sed -e '/^func_len ()$/,/^} # func_len /c\
20566func_len ()\
20567{\
20568    func_len_result=${#1}\
20569} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20570  && mv -f "$cfgfile.tmp" "$cfgfile" \
20571    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20572test 0 -eq $? || _lt_function_replace_fail=:
20573
20574fi
20575
20576if test x"$lt_shell_append" = xyes; then
20577  sed -e '/^func_append ()$/,/^} # func_append /c\
20578func_append ()\
20579{\
20580    eval "${1}+=\\${2}"\
20581} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20582  && mv -f "$cfgfile.tmp" "$cfgfile" \
20583    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20584test 0 -eq $? || _lt_function_replace_fail=:
20585
20586
20587  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20588func_append_quoted ()\
20589{\
20590\    func_quote_for_eval "${2}"\
20591\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20592} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20593  && mv -f "$cfgfile.tmp" "$cfgfile" \
20594    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20595test 0 -eq $? || _lt_function_replace_fail=:
20596
20597
20598  # Save a `func_append' function call where possible by direct use of '+='
20599  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20600    && mv -f "$cfgfile.tmp" "$cfgfile" \
20601      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20602  test 0 -eq $? || _lt_function_replace_fail=:
20603else
20604  # Save a `func_append' function call even when '+=' is not available
20605  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20606    && mv -f "$cfgfile.tmp" "$cfgfile" \
20607      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20608  test 0 -eq $? || _lt_function_replace_fail=:
20609fi
20610
20611if test x"$_lt_function_replace_fail" = x":"; then
20612  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20613$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20614fi
20615
20616
20617   mv -f "$cfgfile" "$ofile" ||
20618    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20619  chmod +x "$ofile"
20620
20621 ;;
20622
20623  esac
20624done # for ac_tag
20625
20626
20627as_fn_exit 0
20628_ACEOF
20629ac_clean_files=$ac_clean_files_save
20630
20631test $ac_write_fail = 0 ||
20632  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20633
20634
20635# configure is writing to config.log, and then calls config.status.
20636# config.status does its own redirection, appending to config.log.
20637# Unfortunately, on DOS this fails, as config.log is still kept open
20638# by configure, so config.status won't be able to write to it; its
20639# output is simply discarded.  So we exec the FD to /dev/null,
20640# effectively closing config.log, so it can be properly (re)opened and
20641# appended to by config.status.  When coming back to configure, we
20642# need to make the FD available again.
20643if test "$no_create" != yes; then
20644  ac_cs_success=:
20645  ac_config_status_args=
20646  test "$silent" = yes &&
20647    ac_config_status_args="$ac_config_status_args --quiet"
20648  exec 5>/dev/null
20649  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20650  exec 5>>config.log
20651  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20652  # would make configure fail if this is the last instruction.
20653  $ac_cs_success || as_fn_exit 1
20654fi
20655if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20656  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20657$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20658fi
20659
20660